@cntrl-site/components 1.0.37 → 1.0.38
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/components.css +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ControlSlider-module__wrapper___sHEkd{position:relative;width:100%;height:100%}.ControlSlider-module__wrapper___sHEkd:hover .ControlSlider-module__hoverArrow___A-dOH{opacity:1!important}.ControlSlider-module__slider___R3i9-{width:100%;height:100%}.ControlSlider-module__sliderItems___1MgPL{display:flex;overflow:hidden;width:100%;height:100%;transition:transform .3s ease-in-out}.ControlSlider-module__sliderItem___QQSkR{width:100%;height:100%;display:flex;position:relative}.ControlSlider-module__sliderImage___9hRl-{width:100%;height:100%;object-fit:cover}.ControlSlider-module__arrow___05ghY{position:absolute;display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);z-index:1;transform:translate3d(-50%,-50%,0);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.ControlSlider-module__arrow___05ghY.ControlSlider-module__arrowVertical___tBfVN{left:50%;top:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate3d(-50%,-50%,0)}.ControlSlider-module__nextArrow___-30Yc{left:unset;right:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate3d(50%,-50%,0)}.ControlSlider-module__nextArrow___-30Yc.ControlSlider-module__arrowVertical___tBfVN{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate3d(-50%,50%,0)}.ControlSlider-module__arrowInner___aEra3{all:unset;cursor:pointer;width:100%;height:100%}.ControlSlider-module__arrowInner___aEra3:hover .ControlSlider-module__arrowIcon___S4ztF path{fill:var(--arrow-hover-color)!important}.ControlSlider-module__arrowImg___2dwJW{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ControlSlider-module__arrowIcon___S4ztF{width:100%;height:100%;overflow:visible}.ControlSlider-module__arrowIcon___S4ztF path{transition:fill .15s ease-in-out}.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleX(-1)!important}.ControlSlider-module__arrowVertical___tBfVN.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleY(-1)!important}.ControlSlider-module__hoverArrow___A-dOH{opacity:0;transition:opacity .15s ease-in-out}.ControlSlider-module__hoverArrow___A-dOH:hover{opacity:1}.ControlSlider-module__pagination___bicLF{position:absolute;z-index:1;border-radius:50%}.ControlSlider-module__paginationInner___bT-P-{display:flex;gap:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);padding-top:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-bottom:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-left:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);padding-right:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);border-radius:calc(var(--is-editor, 0) * 2.3611111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.3611111111vw)}.ControlSlider-module__paginationVertical___zYqKw{flex-direction:column}.ControlSlider-module__paginationItem___nTRbk{all:unset;flex-shrink:0;position:relative;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);cursor:pointer}.ControlSlider-module__paginationItem___nTRbk:hover .ControlSlider-module__dot___p1Qun{background-color:var(--pagination-hover-color)!important}.ControlSlider-module__dot___p1Qun{border-radius:50%;scale:.5;transition:background-color .3s ease-in-out,transform .3s ease-in-out;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw)}.ControlSlider-module__activeDot___LHFaj{transform:scale(2)}.ControlSlider-module__paginationInsideBottom___R3FWn{bottom:0;left:50%;transform:translate3d(-50%,0,0)}.ControlSlider-module__paginationInsideTop___V-qb-{left:50%;transform:translate3d(-50%,0,0);top:0}.ControlSlider-module__paginationOutsideBottom___14w8D{left:50%;transform:translate3d(-50%,0,0);bottom:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideTop___SCLqB{left:50%;transform:translate3d(-50%,0,0);top:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideLeft___yOBRZ{top:50%;transform:translate3d(0,-50%,0);left:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideRight___Rtt3o{top:50%;transform:translate3d(0,-50%,0);right:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideLeft___lahaw{top:50%;transform:translate3d(0,-50%,0);left:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__paginationOutsideRight___EtuQa{top:50%;transform:translate3d(0,-50%,0);right:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__imgWrapper___UjEgB,.ControlSlider-module__wrapperInner___DLAWV{width:100%;height:100%}.ControlSlider-module__captionBlock___dJ6-j{pointer-events:none;position:absolute;top:0;z-index:1;left:0;right:0;bottom:0}.ControlSlider-module__captionTextWrapper___HFlpf{position:relative;width:100%;height:100%}.ControlSlider-module__captionText___uGBVc{pointer-events:none;max-width:100%;transition-property:opacity;transition-timing-function:ease-in-out;position:absolute;display:inline-block;white-space:pre-wrap;overflow-wrap:break-word;opacity:0}.ControlSlider-module__captionText___uGBVc.ControlSlider-module__active___WZK4G{opacity:1}.ControlSlider-module__withPointerEvents___t-18M{pointer-events:auto}.ControlSlider-module__absolute___KxmYB{position:absolute}.ControlSlider-module__topLeftAlignment___zjnGM{top:0;left:0}.ControlSlider-module__topCenterAlignment___gD1xW{top:0;left:50%;transform:translate(-50%)}.ControlSlider-module__topRightAlignment___NMapS{top:0;right:0}.ControlSlider-module__middleLeftAlignment___OnUrY{top:50%;transform:translateY(-50%);left:0}.ControlSlider-module__middleCenterAlignment___Tdkl0{top:50%;transform:translate(-50%,-50%);left:50%}.ControlSlider-module__middleRightAlignment___wEbfX{top:50%;transform:translateY(-50%);right:0}.ControlSlider-module__bottomLeftAlignment___cTP2-{bottom:0;left:0}.ControlSlider-module__bottomCenterAlignment___c54fB{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__bottomRightAlignment___kEwrz{bottom:0;right:0}.ControlSlider-module__clickOverlay___DZA28{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.ControlSlider-module__contain___pLyq7{object-fit:contain}.ControlSlider-module__cover___KdDat{object-fit:cover}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}.RichTextRenderer-module__link___BWeZ2{color:var(--link-color);cursor:pointer;pointer-events:auto;transition:color .2s ease}.RichTextRenderer-module__link___BWeZ2:hover{color:var(--link-hover-color)}.SvgImage-module__svg___q3xE-{width:100%;height:100%;color:transparent;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--fill);transition:background-color .2s;-webkit-mask:var(--svg) no-repeat center/contain;mask:var(--svg) no-repeat center/contain}.SvgImage-module__svg___q3xE-:hover{background-color:var(--hover-fill)}.SvgImage-module__img___VsTm-{width:100%;height:100%;object-fit:contain}.ImageRevealSlider-module__imageRevealSlider___UE5Ob{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.ImageRevealSlider-module__image___Qjt-e{display:block;width:100%;height:100%;object-fit:cover;position:relative;-webkit-user-select:none;user-select:none;pointer-events:none}.ImageRevealSlider-module__link___N-iLG{width:100%;height:100%;display:block}.ImageRevealSlider-module__cursor___2U03d{position:absolute;top:0;left:0;pointer-events:none;width:32px;height:32px}.LightBox-module__hidden___9s-9x{display:none}.LightBox-module__heroImage___sTxNF{width:100%;height:100%;cursor:pointer;object-fit:cover}.LightBox-module__background___rm9ml{position:fixed;z-index:9997;top:0;left:0;right:0;bottom:0;width:100%;height:100%}.LightBox-module__editor___4ACaY{width:var(--cntrl-article-width)!important;margin-left:auto;margin-right:auto}.LightBox-module__contentStyle___Bgnsq{position:fixed;z-index:9999;top:0;left:0;right:0;bottom:0;overflow:hidden;background:transparent;box-sizing:border-box}.LightBox-module__imageStyle___tLIlB{position:relative;display:block;cursor:pointer;background-color:transparent;max-width:100%;max-height:100%;width:auto;height:auto}.LightBox-module__imgWrapper___LuFUp{position:relative;display:flex;width:100%;height:100%;overflow:hidden;box-sizing:border-box}.LightBox-module__contain___8-yaS{object-fit:contain;max-width:100%;max-height:100%}.LightBox-module__cover___hNvOG{width:100%;height:100%;object-fit:cover}.LightBox-module__caption___b6L2I{z-index:9999;position:absolute;display:flex}.LightBox-module__captionTextInner___rCGNH{position:relative}.LightBox-module__lightboxSplide___XFuWC.splide,.LightBox-module__lightboxSplide___XFuWC .splide__track{height:100%}.LightBox-module__arrow___iz38X{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;background-color:transparent;top:50%;z-index:1;transform:translate(-50%,-50%);padding:0;left:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.LightBox-module__arrow___iz38X.LightBox-module__arrowVertical___Zfz81{left:50%;top:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,-50%)}.LightBox-module__nextArrow___zkAQN{left:unset;right:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(50%,-50%)}.LightBox-module__nextArrow___zkAQN.LightBox-module__arrowVertical___Zfz81{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,50%)}.LightBox-module__arrowInner___p48sW{all:unset;cursor:pointer;width:100%;height:100%}.LightBox-module__arrowInner___p48sW:hover .LightBox-module__arrowIcon___3VaFf path{fill:var(--arrow-hover-color)!important}.LightBox-module__arrowImg___pNV88{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.LightBox-module__arrowIcon___3VaFf{width:100%;height:100%;overflow:visible}.LightBox-module__arrowIcon___3VaFf path{transition:fill .15s ease-in-out}.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleX(-1)!important}.LightBox-module__arrowVertical___Zfz81.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleY(-1)!important}.LightBox-module__thumbsWrapper___GB-nU{height:auto;width:auto;max-height:100vh;max-width:100%;overflow:auto;position:absolute;top:0;-webkit-overflow-scrolling:touch}.LightBox-module__thumbsWrapper___GB-nU::-webkit-scrollbar{padding:10px;scrollbar-width:none}.LightBox-module__thumbsContainerVertical___wttk5{flex-direction:column;display:flex}.LightBox-module__thumbsContainer___osSma{display:flex;pointer-events:none}.LightBox-module__thumbsAlignStart___MO6tY{align-items:flex-start}.LightBox-module__thumbsAlignCenter___Q4sUx{align-items:center}.LightBox-module__thumbsAlignEnd___p4y9R{align-items:flex-end}.LightBox-module__thumbItem___HvnF3{all:unset;display:inline-flex;align-items:center;justify-content:center;pointer-events:all;flex:0 0 auto;cursor:pointer;overflow:hidden}.LightBox-module__thumbItem___HvnF3:hover{opacity:var(--thumb-hover)!important}.LightBox-module__thumbsContainerVertical___wttk5 .LightBox-module__thumbItem___HvnF3{flex:1 1 auto}.LightBox-module__closeButton___g2khP{all:unset;cursor:pointer;position:absolute;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}@keyframes LightBox-module__lbFadeIn___P8mx0{0%{opacity:0}to{opacity:1}}.LightBox-module__fadeIn___0m5GW{animation-name:LightBox-module__lbFadeIn___P8mx0}@keyframes LightBox-module__lbSlideInLeft___ygsXZ{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInRight___w2YKV{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInTop___W7CSQ{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes LightBox-module__lbSlideInBottom___7kiT2{0%{transform:translateY(100%)}to{transform:translateY(0)}}.LightBox-module__slideInLeft___gPYwC{animation-name:LightBox-module__lbSlideInLeft___ygsXZ}.LightBox-module__slideInRight___S-pPp{animation-name:LightBox-module__lbSlideInRight___w2YKV}.LightBox-module__slideInTop___DFdAj{animation-name:LightBox-module__lbSlideInTop___W7CSQ}.LightBox-module__slideInBottom___m27kZ{animation-name:LightBox-module__lbSlideInBottom___7kiT2}@keyframes LightBox-module__lbFadeOut___MhEeN{0%{opacity:1}to{opacity:0}}.LightBox-module__fadeOut___55qBR{animation-name:LightBox-module__lbFadeOut___MhEeN!important}@keyframes LightBox-module__lbSlideOutLeft___xM4sO{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes LightBox-module__lbSlideOutRight___Jppgj{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes LightBox-module__lbSlideOutTop___pvscE{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes LightBox-module__lbSlideOutBottom___oFjPG{0%{transform:translateY(0)}to{transform:translateY(100%)}}.LightBox-module__slideOutLeft___NvU7P{animation-name:LightBox-module__lbSlideOutLeft___xM4sO!important}.LightBox-module__slideOutRight___SK7eC{animation-name:LightBox-module__lbSlideOutRight___Jppgj!important}.LightBox-module__slideOutTop___Vgg0z{animation-name:LightBox-module__lbSlideOutTop___pvscE!important}.LightBox-module__slideOutBottom___nJ0Ef{animation-name:LightBox-module__lbSlideOutBottom___oFjPG!important}.LightBox-module__lightboxSplide___XFuWC.splide--fade .LightBox-module__scaleSlide___vZriG{opacity:0!important;transform:var(--position-transform, none) scale(.9)!important;transition:opacity var(--splide-speed, .5s) ease,transform var(--splide-speed, .5s) ease!important}.LightBox-module__lightboxSplide___XFuWC.splide--fade .splide__slide.is-active .LightBox-module__scaleSlide___vZriG{opacity:1!important;transform:var(--position-transform, none) scale(1)!important}.LightBox-module__lightboxSplide___XFuWC.splide--fade .splide__slide:not(.is-active) .LightBox-module__scaleSlide___vZriG{opacity:0!important;transform:var(--position-transform, none) scale(1.1)!important}
|
|
1
|
+
.ControlSlider-module__wrapper___sHEkd{position:relative;width:100%;height:100%}.ControlSlider-module__wrapper___sHEkd:hover .ControlSlider-module__hoverArrow___A-dOH{opacity:1!important}.ControlSlider-module__slider___R3i9-{width:100%;height:100%}.ControlSlider-module__sliderItems___1MgPL{display:flex;overflow:hidden;width:100%;height:100%;transition:transform .3s ease-in-out}.ControlSlider-module__sliderItem___QQSkR{width:100%;height:100%;display:flex;position:relative}.ControlSlider-module__sliderImage___9hRl-{width:100%;height:100%;object-fit:cover}.ControlSlider-module__arrow___05ghY{position:absolute;display:flex;align-items:center;justify-content:center;border:none;background-color:transparent;top:50%;left:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);z-index:1;transform:translate3d(-50%,-50%,0);padding:0;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.ControlSlider-module__arrow___05ghY.ControlSlider-module__arrowVertical___tBfVN{left:50%;top:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate3d(-50%,-50%,0)}.ControlSlider-module__nextArrow___-30Yc{left:unset;right:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate3d(50%,-50%,0)}.ControlSlider-module__nextArrow___-30Yc.ControlSlider-module__arrowVertical___tBfVN{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * -1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -1.3888888889vw);transform:translate3d(-50%,50%,0)}.ControlSlider-module__arrowInner___aEra3{all:unset;cursor:pointer;width:100%;height:100%}.ControlSlider-module__arrowInner___aEra3:hover .ControlSlider-module__arrowIcon___S4ztF path{fill:var(--arrow-hover-color)!important}.ControlSlider-module__arrowImg___2dwJW{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ControlSlider-module__arrowIcon___S4ztF{width:100%;height:100%;overflow:visible}.ControlSlider-module__arrowIcon___S4ztF path{transition:fill .15s ease-in-out}.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleX(-1)!important}.ControlSlider-module__arrowVertical___tBfVN.ControlSlider-module__mirror___brd6U{transform:translate(-50%,-50%) scaleY(-1)!important}.ControlSlider-module__hoverArrow___A-dOH{opacity:0;transition:opacity .15s ease-in-out}.ControlSlider-module__hoverArrow___A-dOH:hover{opacity:1}.ControlSlider-module__pagination___bicLF{position:absolute;z-index:1;border-radius:50%}.ControlSlider-module__paginationInner___bT-P-{display:flex;gap:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);padding-top:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-bottom:calc(var(--is-editor, 0) * .6944444444vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * .6944444444vw);padding-left:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);padding-right:calc(var(--is-editor, 0) * 1.25vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.25vw);border-radius:calc(var(--is-editor, 0) * 2.3611111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.3611111111vw)}.ControlSlider-module__paginationVertical___zYqKw{flex-direction:column}.ControlSlider-module__paginationItem___nTRbk{all:unset;flex-shrink:0;position:relative;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);cursor:pointer}.ControlSlider-module__paginationItem___nTRbk:hover .ControlSlider-module__dot___p1Qun{background-color:var(--pagination-hover-color)!important}.ControlSlider-module__dot___p1Qun{border-radius:50%;scale:.5;transition:background-color .3s ease-in-out,transform .3s ease-in-out;width:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw);height:calc(var(--is-editor, 0) * 1.1111111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.1111111111vw)}.ControlSlider-module__activeDot___LHFaj{transform:scale(2)}.ControlSlider-module__paginationInsideBottom___R3FWn{bottom:0;left:50%;transform:translate3d(-50%,0,0)}.ControlSlider-module__paginationInsideTop___V-qb-{left:50%;transform:translate3d(-50%,0,0);top:0}.ControlSlider-module__paginationOutsideBottom___14w8D{left:50%;transform:translate3d(-50%,0,0);bottom:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideTop___SCLqB{left:50%;transform:translate3d(-50%,0,0);top:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideLeft___yOBRZ{top:50%;transform:translate3d(0,-50%,0);left:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationInsideRight___Rtt3o{top:50%;transform:translate3d(0,-50%,0);right:calc(var(--is-editor, 0) * -2.4305555556vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -2.4305555556vw)}.ControlSlider-module__paginationOutsideLeft___lahaw{top:50%;transform:translate3d(0,-50%,0);left:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__paginationOutsideRight___EtuQa{top:50%;transform:translate3d(0,-50%,0);right:calc(var(--is-editor, 0) * -5.4861111111vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * -5.4861111111vw)}.ControlSlider-module__imgWrapper___UjEgB,.ControlSlider-module__wrapperInner___DLAWV{width:100%;height:100%}.ControlSlider-module__captionBlock___dJ6-j{pointer-events:none;position:absolute;top:0;z-index:1;left:0;right:0;bottom:0}.ControlSlider-module__captionTextWrapper___HFlpf{position:relative;width:100%;height:100%}.ControlSlider-module__captionText___uGBVc{pointer-events:none;max-width:100%;transition-property:opacity;transition-timing-function:ease-in-out;position:absolute;display:inline-block;white-space:pre-wrap;overflow-wrap:break-word;opacity:0}.ControlSlider-module__captionText___uGBVc.ControlSlider-module__active___WZK4G{opacity:1}.ControlSlider-module__withPointerEvents___t-18M{pointer-events:auto}.ControlSlider-module__absolute___KxmYB{position:absolute}.ControlSlider-module__topLeftAlignment___zjnGM{top:0;left:0}.ControlSlider-module__topCenterAlignment___gD1xW{top:0;left:50%;transform:translate(-50%)}.ControlSlider-module__topRightAlignment___NMapS{top:0;right:0}.ControlSlider-module__middleLeftAlignment___OnUrY{top:50%;transform:translateY(-50%);left:0}.ControlSlider-module__middleCenterAlignment___Tdkl0{top:50%;transform:translate(-50%,-50%);left:50%}.ControlSlider-module__middleRightAlignment___wEbfX{top:50%;transform:translateY(-50%);right:0}.ControlSlider-module__bottomLeftAlignment___cTP2-{bottom:0;left:0}.ControlSlider-module__bottomCenterAlignment___c54fB{bottom:0;left:50%;transform:translate(-50%)}.ControlSlider-module__bottomRightAlignment___kEwrz{bottom:0;right:0}.ControlSlider-module__clickOverlay___DZA28{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer}.ControlSlider-module__contain___pLyq7{object-fit:contain}.ControlSlider-module__cover___KdDat{object-fit:cover}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{backface-visibility:hidden;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}.RichTextRenderer-module__link___BWeZ2{color:var(--link-color);cursor:pointer;pointer-events:auto;transition:color .2s ease}.RichTextRenderer-module__link___BWeZ2:hover{color:var(--link-hover-color)}.SvgImage-module__svg___q3xE-{width:100%;height:100%;color:transparent;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--fill);transition:background-color .2s;-webkit-mask:var(--svg) no-repeat center/contain;mask:var(--svg) no-repeat center/contain}.SvgImage-module__svg___q3xE-:hover{background-color:var(--hover-fill)}.SvgImage-module__img___VsTm-{width:100%;height:100%;object-fit:contain}.ImageRevealSlider-module__imageRevealSlider___UE5Ob{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.ImageRevealSlider-module__image___Qjt-e{display:block;width:100%;height:100%;object-fit:cover;position:relative;-webkit-user-select:none;user-select:none;pointer-events:none}.ImageRevealSlider-module__link___N-iLG{width:100%;height:100%;display:block}.ImageRevealSlider-module__cursor___2U03d{position:absolute;top:0;left:0;pointer-events:none;width:32px;height:32px}.LightBox-module__hidden___9s-9x{display:none}.LightBox-module__heroImage___sTxNF{width:100%;height:100%;cursor:pointer;object-fit:cover}.LightBox-module__background___rm9ml{position:fixed;z-index:9997;top:var(--cntrl-article-top, 0);left:var(--cntrl-article-left, 0);width:var(--cntrl-article-width, 100vw)!important;height:var(--cntrl-viewport-height, 100vh)!important}.LightBox-module__editor___4ACaY{width:var(--cntrl-article-width)!important;margin-left:auto;margin-right:auto}.LightBox-module__contentStyle___Bgnsq{position:fixed;z-index:9999;top:var(--cntrl-article-top, 0);left:var(--cntrl-article-left, 0);width:var(--cntrl-article-width, 100vw)!important;height:var(--cntrl-viewport-height, 100vh)!important;overflow:hidden;background:transparent;box-sizing:border-box}.LightBox-module__imageStyle___tLIlB{position:relative;display:block;cursor:pointer;background-color:transparent;max-width:100%;max-height:100%;width:auto;height:auto}.LightBox-module__imgWrapper___LuFUp{position:relative;display:flex;width:100%;height:100%;overflow:hidden;box-sizing:border-box}.LightBox-module__contain___8-yaS{object-fit:contain;max-width:100%;max-height:100%}.LightBox-module__cover___hNvOG{width:100%;height:100%;object-fit:cover}.LightBox-module__caption___b6L2I{z-index:9999;position:absolute;display:flex}.LightBox-module__captionTextInner___rCGNH{position:relative}.LightBox-module__lightboxSplide___XFuWC.splide,.LightBox-module__lightboxSplide___XFuWC .splide__track{height:100%}.LightBox-module__arrow___iz38X{position:absolute;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;background-color:transparent;top:50%;z-index:1;transform:translate(-50%,-50%);padding:0;left:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}.LightBox-module__arrow___iz38X.LightBox-module__arrowVertical___Zfz81{left:50%;top:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,-50%)}.LightBox-module__nextArrow___zkAQN{left:unset;right:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(50%,-50%)}.LightBox-module__nextArrow___zkAQN.LightBox-module__arrowVertical___Zfz81{left:50%;right:unset;top:unset;bottom:calc(var(--is-editor, 0) * 1.3888888889vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 1.3888888889vw);transform:translate(-50%,50%)}.LightBox-module__arrowInner___p48sW{all:unset;cursor:pointer;width:100%;height:100%}.LightBox-module__arrowInner___p48sW:hover .LightBox-module__arrowIcon___3VaFf path{fill:var(--arrow-hover-color)!important}.LightBox-module__arrowImg___pNV88{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.LightBox-module__arrowIcon___3VaFf{width:100%;height:100%;overflow:visible}.LightBox-module__arrowIcon___3VaFf path{transition:fill .15s ease-in-out}.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleX(-1)!important}.LightBox-module__arrowVertical___Zfz81.LightBox-module__mirror___pjeXc{transform:translate(-50%,-50%) scaleY(-1)!important}.LightBox-module__thumbsWrapper___GB-nU{height:auto;width:auto;max-height:100vh;max-width:100%;overflow:auto;position:absolute;top:0;-webkit-overflow-scrolling:touch}.LightBox-module__thumbsWrapper___GB-nU::-webkit-scrollbar{padding:10px;scrollbar-width:none}.LightBox-module__thumbsContainerVertical___wttk5{flex-direction:column;display:flex}.LightBox-module__thumbsContainer___osSma{display:flex;pointer-events:none}.LightBox-module__thumbsAlignStart___MO6tY{align-items:flex-start}.LightBox-module__thumbsAlignCenter___Q4sUx{align-items:center}.LightBox-module__thumbsAlignEnd___p4y9R{align-items:flex-end}.LightBox-module__thumbItem___HvnF3{all:unset;display:inline-flex;align-items:center;justify-content:center;pointer-events:all;flex:0 0 auto;cursor:pointer;overflow:hidden}.LightBox-module__thumbItem___HvnF3:hover{opacity:var(--thumb-hover)!important}.LightBox-module__thumbsContainerVertical___wttk5 .LightBox-module__thumbItem___HvnF3{flex:1 1 auto}.LightBox-module__closeButton___g2khP{all:unset;cursor:pointer;position:absolute;width:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw);height:calc(var(--is-editor, 0) * 2.0833333333vw / var(--cntrl-reverse-layout-deviation, 1) + (1 - var(--is-editor, 0)) * 2.0833333333vw)}@keyframes LightBox-module__lbFadeIn___P8mx0{0%{opacity:0}to{opacity:1}}.LightBox-module__fadeIn___0m5GW{animation-name:LightBox-module__lbFadeIn___P8mx0}@keyframes LightBox-module__lbSlideInLeft___ygsXZ{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInRight___w2YKV{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes LightBox-module__lbSlideInTop___W7CSQ{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes LightBox-module__lbSlideInBottom___7kiT2{0%{transform:translateY(100%)}to{transform:translateY(0)}}.LightBox-module__slideInLeft___gPYwC{animation-name:LightBox-module__lbSlideInLeft___ygsXZ}.LightBox-module__slideInRight___S-pPp{animation-name:LightBox-module__lbSlideInRight___w2YKV}.LightBox-module__slideInTop___DFdAj{animation-name:LightBox-module__lbSlideInTop___W7CSQ}.LightBox-module__slideInBottom___m27kZ{animation-name:LightBox-module__lbSlideInBottom___7kiT2}@keyframes LightBox-module__lbFadeOut___MhEeN{0%{opacity:1}to{opacity:0}}.LightBox-module__fadeOut___55qBR{animation-name:LightBox-module__lbFadeOut___MhEeN!important}@keyframes LightBox-module__lbSlideOutLeft___xM4sO{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes LightBox-module__lbSlideOutRight___Jppgj{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes LightBox-module__lbSlideOutTop___pvscE{0%{transform:translateY(0)}to{transform:translateY(-100%)}}@keyframes LightBox-module__lbSlideOutBottom___oFjPG{0%{transform:translateY(0)}to{transform:translateY(100%)}}.LightBox-module__slideOutLeft___NvU7P{animation-name:LightBox-module__lbSlideOutLeft___xM4sO!important}.LightBox-module__slideOutRight___SK7eC{animation-name:LightBox-module__lbSlideOutRight___Jppgj!important}.LightBox-module__slideOutTop___Vgg0z{animation-name:LightBox-module__lbSlideOutTop___pvscE!important}.LightBox-module__slideOutBottom___nJ0Ef{animation-name:LightBox-module__lbSlideOutBottom___oFjPG!important}.LightBox-module__lightboxSplide___XFuWC.splide--fade .LightBox-module__scaleSlide___vZriG{opacity:0!important;transform:var(--position-transform, none) scale(.9)!important;transition:opacity var(--splide-speed, .5s) ease,transform var(--splide-speed, .5s) ease!important}.LightBox-module__lightboxSplide___XFuWC.splide--fade .splide__slide.is-active .LightBox-module__scaleSlide___vZriG{opacity:1!important;transform:var(--position-transform, none) scale(1)!important}.LightBox-module__lightboxSplide___XFuWC.splide--fade .splide__slide:not(.is-active) .LightBox-module__scaleSlide___vZriG{opacity:0!important;transform:var(--position-transform, none) scale(1.1)!important}
|
package/dist/index.js
CHANGED
|
@@ -10228,7 +10228,7 @@ export function FAQ({ settings, content, isEditor, isPreviewMode, isEditMode, ac
|
|
|
10228
10228
|
</>
|
|
10229
10229
|
);
|
|
10230
10230
|
}
|
|
10231
|
-
`;function Ln(e){return{type:"number",scope:"layout",title:e,min:0,max:100,display:{type:"range-control"}}}const ts={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Km=["questionColor","answerColor","dividerColor","iconColor","questionHoverColor","iconHoverColor","iconActiveColor","dividerHoverColor"],Um={type:"object",version:1,content:{type:"array",display:{type:"array"},items:{type:"object",properties:{question:{type:"string",label:"Question",placeholder:"Add question...",display:{type:"text-input"}},answer:{label:"Answer",placeholder:"Add answer...",display:{type:"rich-text"}}}},default:[{question:"What are the three main parts of The Divine Comedy?",answer:[{type:"paragraph",children:[{text:"The poem is divided into Inferno, Purgatorio, and Paradiso. These three sections follow Dante’s journey through Hell, Purgatory, and Heaven."}]}]},{question:"Who guides Dante through Hell and most of Purgatory?",answer:[{type:"paragraph",children:[{text:"Dante is guided by Virgil, the ancient Roman poet. Virgil represents human reason and wisdom, but because he lived before Christianity, he cannot guide Dante all the way into Heaven."}]}]},{question:"What does the dark wood at the beginning of the poem symbolize?",answer:[{type:"paragraph",children:[{text:"The dark wood symbolizes Dante’s spiritual confusion and moral crisis. It shows that he has lost the “straight way” in life and needs guidance to return to truth and salvation."}]}]},{question:"What is “contrapasso” in Inferno?",answer:[{type:"paragraph",children:[{text:"“Contrapasso” is the principle that punishments in Hell reflect the sins committed during life. For example, people who caused division are themselves physically divided, showing how their punishment mirrors their wrongdoing."}]}]},{question:"Who guides Dante through Heaven?",answer:[{type:"paragraph",children:[{text:"Beatrice guides Dante through Paradiso. She represents divine love, grace, and spiritual understanding, helping Dante move beyond human reason toward a vision of God."}]}]},{question:"Why is The Divine Comedy important in literary history?",answer:[{type:"paragraph",children:[{text:"The Divine Comedy is important because it is one of the greatest works of world literature and helped shape the Italian language. Dante wrote it in the Tuscan dialect rather than Latin, making serious literature more accessible to ordinary readers."}]}]},{question:"What is the overall journey of The Divine Comedy about?",answer:[{type:"paragraph",children:[{text:"The poem is about Dante’s spiritual journey from sin and despair toward repentance, wisdom, and union with God. On a deeper level, it represents the soul’s path from confusion to divine truth."}]}]}]},settings:{sizing:"auto",properties:{wrapperWidth:{type:"number",scope:"layout",title:"Width",display:{type:"numeric-input"},min:0,max:9999},cellMinHeight:{type:"number",scope:"layout",title:"Min height",display:{type:"numeric-input"},min:0,max:9999},dividerWidth:{type:"number",scope:"layout",title:"Width",display:{type:"numeric-input"},min:0,max:9999},dividerStyle:{type:"string",scope:"common",title:"Style",display:{type:"toggle-cycle",enum:["solid","dashed","dotted"]}},entryHoverEffect:{type:"string",scope:"common",title:"Effect",display:{type:"toggle-cycle",enum:["none","default"]}},autoclose:{type:"string",scope:"common",title:"Autoclose",display:{type:"toggle-cycle",enum:["on","off"]}},icon:{type:["string","null"],scope:"common",display:{type:"settings-image-input"}},iconMaxWidth:{type:"number",scope:"layout",title:"Max Width",display:{type:"numeric-input"},min:0,max:9999},iconPaddingRight:Ln("Icon Padding Right"),iconAnimation:{type:"string",scope:"common",title:"Icon Animation",display:{type:"toggle-cycle",enum:["rotate 180","rotate 90","rotate 45"]}},questionColor:{type:"string",scope:"common",title:"Question Default",display:{type:"palette-color-picker"}},answerColor:{type:"string",scope:"common",title:"Answer Default",display:{type:"palette-color-picker"}},dividerColor:{type:"string",scope:"common",title:"Divider Default",display:{type:"palette-color-picker"}},iconColor:{type:"string",scope:"common",title:"Icon Default",display:{type:"palette-color-picker"}},questionHoverColor:{type:"string",scope:"common",title:"Question Hover",display:{type:"palette-color-picker"}},iconHoverColor:{type:"string",scope:"common",title:"Icon Hover",display:{type:"palette-color-picker"}},iconActiveColor:{type:"string",scope:"common",title:"Icon Active",display:{type:"palette-color-picker"}},dividerHoverColor:{type:"string",scope:"common",title:"Divider Hover",display:{type:"palette-color-picker"}},questionFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},questionFontSettings:{...ts.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},questionFontSize:{type:"number",scope:"layout",title:"Question Font Size",display:{type:"font-size"}},questionLineHeight:{type:"number",scope:"layout",title:"Question Line Height",display:{type:"line-height-input"}},questionLetterSpacing:{type:"number",scope:"layout",title:"Question Letter Spacing",display:{type:"letter-spacing-input"}},questionWordSpacing:{type:"number",scope:"layout",title:"Question Word Spacing",display:{type:"word-spacing-input"}},questionTextAppearance:{type:"object",scope:"layout",title:"Question Text Appearance",display:{type:"text-appearance"}},answerFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},answerFontSettings:{...ts.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},answerFontSize:{type:"number",scope:"layout",title:"Answer Font Size",display:{type:"font-size"}},answerLineHeight:{type:"number",scope:"layout",title:"Answer Line Height",display:{type:"line-height-input"}},answerLetterSpacing:{type:"number",scope:"layout",title:"Answer Letter Spacing",display:{type:"letter-spacing-input"}},answerWordSpacing:{type:"number",scope:"layout",title:"Answer Word Spacing",display:{type:"word-spacing-input"}},answerTextAppearance:{type:"object",scope:"layout",title:"Answer Text Appearance",display:{type:"text-appearance"}},questionPaddingLeft:Ln("Question Padding Left"),questionPaddingTop:Ln("Question Padding Top"),questionPaddingBottom:Ln("Question Padding Bottom"),answerPaddingLeft:Ln("Answer Padding Left"),answerPaddingRight:Ln("Answer Padding Right"),answerPaddingTop:Ln("Answer Padding Top"),answerPaddingBottom:Ln("Answer Padding Bottom")},defaults:{dividerStyle:"dotted",entryHoverEffect:"default",autoclose:"off",icon:"https://cdn.cntrl.site/component-assets/PlusIcon.svg",iconAnimation:"rotate 45",questionColor:"#000000",answerColor:"#000000",dividerColor:"#000000",iconColor:"#000000",questionHoverColor:"#A60239",iconHoverColor:"#A60239",iconActiveColor:"#000000",dividerHoverColor:"#A60239",questionFontFamily:"Goudy Bookletter 1911",questionFontSettings:{fontWeight:400,fontStyle:"normal"},questionLetterSpacing:0,questionWordSpacing:0,questionTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},answerFontFamily:"Goudy Bookletter 1911",answerFontSettings:{fontWeight:400,fontStyle:"normal"},answerLetterSpacing:0,answerWordSpacing:0,answerTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{wrapperWidth:1,cellMinHeight:0,dividerWidth:.008,iconMaxWidth:.0533,iconPaddingRight:.08,questionFontSize:.09066,questionLineHeight:.10133,questionLetterSpacing:-.00266,answerFontSize:.0533,answerLineHeight:.064,questionPaddingLeft:.0533,questionPaddingTop:.0533,questionPaddingBottom:.0533,answerPaddingLeft:.0533,answerPaddingRight:.16,answerPaddingTop:.0533,answerPaddingBottom:.0533},t:{wrapperWidth:.651041,cellMinHeight:0,dividerWidth:.00390625,iconMaxWidth:.02604166,iconPaddingRight:.0130208,questionFontSize:.0390625,questionLineHeight:.04427,questionLetterSpacing:-.00091145833,answerFontSize:.0234375,answerLineHeight:.026041,questionPaddingLeft:0,questionPaddingTop:.01302,questionPaddingBottom:.01302,answerPaddingLeft:.065104,answerPaddingRight:.09765625,answerPaddingTop:.026041,answerPaddingBottom:.026041},d:{wrapperWidth:.6388,cellMinHeight:0,dividerWidth:.002083,iconMaxWidth:.01388,iconPaddingRight:.01388,questionFontSize:.0333,questionLineHeight:.0333,questionLetterSpacing:-9e-4,answerFontSize:.01111,answerLineHeight:.01388,questionPaddingLeft:0,questionPaddingTop:.01111,questionPaddingBottom:.01111,answerPaddingLeft:.0625,answerPaddingRight:.1625,answerPaddingTop:0,answerPaddingBottom:.01111}},layout:["__componentName__","wrapperWidth","cellMinHeight","dividerWidth","dividerStyle","entryHoverEffect","autoclose","icon","iconMaxWidth","iconAnimation"]},panels:[{id:"general",icon:"settings",title:"General",tooltip:"General Settings",layout:["__componentName__",{type:"row",title:"",items:["wrapperWidth","cellMinHeight"]},{type:"row",title:"",items:["entryHoverEffect","autoclose"]},{type:"row",title:"Divider",items:["dividerWidth","dividerStyle"]},{type:"row",title:"Icon",items:["icon","iconMaxWidth"]},{type:"row",title:"",items:["iconAnimation"]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["__componentName__",{type:"group",title:"Question",items:["questionFontFamily","questionFontSettings",{type:"row",items:["questionFontSize","questionLineHeight","questionLetterSpacing","questionWordSpacing"]},"questionTextAppearance"]},{type:"group",title:"Answer",items:["answerFontFamily","answerFontSettings",{type:"row",items:["answerFontSize","answerLineHeight","answerLetterSpacing","answerWordSpacing"]},"answerTextAppearance"]}]}],paletteBookmark:{items:[...Km],panelIds:["general","typeStyle"],stateItems:{default:["questionColor","answerColor","dividerColor","iconColor","questionHoverColor","dividerHoverColor","iconHoverColor","iconActiveColor"]}}},Xm={element:qm,id:"faq",name:"FAQ",category:"lists",layoutMode:"structured",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/FAQ_List.png"},version:1,defaultSize:{d:{width:720,height:540}},assetsPaths:{content:[],parameters:[{path:"icon"}]},fontSettingsPaths:{content:[],parameters:[{path:"questionFontFamily"},{path:"answerFontFamily"}]},fontRelations:{questionFontSettings:"questionFontFamily",answerFontSettings:"answerFontFamily"},schema:Um,sourceCode:Gm},vn=e=>e.display==="cover",Xo=e=>{const t=e.ratioValue??"1:1",n=e.reversed??!1,[i,o]=t.split(":").map(Number);return`${n?o:i} / ${n?i:o}`},ns=100,Ym=.2,is=8,cl=({enabled:e,onClose:t,animMs:n=300,isBlockedTarget:i})=>{const[o,s]=l.useState(0),[a,d]=l.useState(!1),c=l.useRef(null),p=l.useRef(0);p.current=o;const m=l.useMemo(()=>typeof window>"u"?ns:Math.max(ns,window.innerHeight*Ym),[]),x=l.useCallback(y=>Math.max(0,1-y/(m*1.5)),[m]),w=l.useCallback(y=>Math.max(0,1-y/(m*.45)),[m]),$=l.useCallback(y=>{const _=typeof window<"u"?window.innerHeight:800,H=Math.max(.88,1-y/_*.12);return`translateY(${y}px) scale(${H})`},[]),h=l.useCallback(()=>{c.current=null},[]),v=l.useCallback(()=>{d(!0),s(0),window.setTimeout(()=>d(!1),n),h()},[n,h]),b=l.useCallback(()=>{const y=typeof window<"u"?window.innerHeight:800;d(!0),s(y),window.setTimeout(()=>{t(),h(),d(!1)},Math.min(n,200))},[n,t,h]),S=l.useCallback(y=>{!e||a||y.pointerType==="touch"&&(i!=null&&i(y.target)||(c.current={startX:y.clientX,startY:y.clientY,isLocked:null,pointerId:y.pointerId}))},[e,a,i]),L=l.useCallback(y=>{const _=c.current;if(!e||!_||y.pointerType!=="touch"||_.pointerId!==y.pointerId)return;const H=y.clientX-_.startX,q=y.clientY-_.startY;if(_.isLocked===null){if(Math.abs(H)<is&&Math.abs(q)<is)return;if(q>0&&q>Math.abs(H))_.isLocked=!0,y.currentTarget.setPointerCapture(y.pointerId);else{_.isLocked=!1,h();return}}if(!_.isLocked)return;y.preventDefault();const ee=Math.max(0,q);p.current=ee,s(ee)},[e,h]),I=l.useCallback(y=>{const _=c.current;if(!e||!_||y.pointerType!=="touch"||_.pointerId!==y.pointerId)return;const H=_.isLocked===!0;if(y.currentTarget.hasPointerCapture(y.pointerId)&&y.currentTarget.releasePointerCapture(y.pointerId),!H){h();return}y.clientY-_.startY>=m?b():v()},[m,b,e,h,v]),N=l.useCallback(y=>{I(y)},[I]),M=l.useCallback(y=>{I(y)},[I]),O=o>0,k=a?`transform ${n}ms ease`:"none",T=a?`opacity ${n}ms ease`:"none",J=o>0||a;return{isSwipeDragging:O,backdropStyle:{opacity:x(o),transition:T},mediaAreaStyle:{transform:$(o),transition:k,touchAction:O?"none":void 0,willChange:O?"transform":void 0},overlayContentStyle:J?{opacity:w(o),transition:T}:void 0,swipeHandlers:e?{onPointerDown:S,onPointerMove:L,onPointerUp:N,onPointerCancel:M}:{},dismissAreaStyle:e?{touchAction:O?"none":"pan-x"}:void 0}},Jm="[data-lightbox-scrollable]",dl=()=>{l.useEffect(()=>{const e=window.scrollY,t=document.body.style.overflow,n=document.body.style.position,i=document.body.style.top,o=document.body.style.width,s=document.documentElement.style.overflow;document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",document.documentElement.style.overflow="hidden";const a=d=>{const c=d.target;c instanceof Element&&c.closest(Jm)||d.preventDefault()};return document.addEventListener("touchmove",a,{passive:!1}),()=>{document.removeEventListener("touchmove",a),document.body.style.overflow=t,document.body.style.position=n,document.body.style.top=i,document.body.style.width=o,document.documentElement.style.overflow=s,window.scrollTo(0,e)}},[])},Zm=(e,t,n,i)=>{const o=Math.min(Math.abs(e)/Math.max(i,1),1);return t+(n-t)*o},Qm=e=>{e.style.transition="",e.style.transform="",e.style.willChange=""},eg=e=>{const t=getComputedStyle(e).transform;return t==="none"?0:new DOMMatrixReadOnly(t).m41},tg=(e,t,n,{duration:i,easing:o,onComplete:s})=>{const a=e.scrollLeft,d=n-a,c=a-n,p=(h,v)=>{Qm(t),e.scrollLeft=h,v&&(s==null||s())};if(Math.abs(d)<.5)return p(n,!0),()=>{};let m=!1,x=0;const w=()=>{t.removeEventListener("transitionend",$),clearTimeout(x)},$=h=>{h.target!==t||h.propertyName!=="transform"||m||(m=!0,w(),p(n,!0))};return t.addEventListener("transitionend",$),t.style.willChange="transform",t.style.transition="none",t.style.transform="translate3d(0, 0, 0)",t.offsetHeight,t.style.transition=`transform ${i}ms ${o}`,t.style.transform=`translate3d(${c}px, 0, 0)`,x=window.setTimeout(()=>{m||(m=!0,w(),p(n,!0))},i+64),()=>{m||(m=!0,w(),p(a-eg(t),!1))}},Ri=300,ng=900,ig=1500,og="cubic-bezier(0.16, 1, 0.3, 1)",rg=3e3,ag=2,sg=16,lg=.05,cg=1,po=.3,dg=50,ug=20,ti=.004,fi=["title1","title2","title3"],pg={title1:"1",title2:"2",title3:"3"},mg={title1:"title1Color",title2:"title2Color",title3:"title3Color"},gg={title1:.02,title2:.02,title3:.02},mo=e=>`max(${e}, ${ug}px)`,hg=e=>{if(!Array.isArray(e)||e.length===0)return{};const t=e.find(o=>(o==null?void 0:o.type)==="paragraph")??e[0],n=t==null?void 0:t.children;if(!Array.isArray(n))return{};const i=n.map(o=>typeof(o==null?void 0:o.text)=="string"?o.text.trim():"").filter(Boolean);return{title1:i[0],title2:i[1],title3:i[2]}},fg=e=>{if(!e)return{title1:"",title2:"",title3:""};if(e.title1||e.title2||e.title3)return{title1:e.title1??"",title2:e.title2??"",title3:e.title3??""};const t=hg(e.text);return{title1:t.title1??"",title2:t.title2??"",title3:t.title3??""}},st=(e,t)=>`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`,yg=e=>[st(e,"fontFamily"),st(e,"fontSettings"),{type:"row",items:[st(e,"fontSize"),st(e,"lineHeight"),st(e,"letterSpacing"),st(e,"wordSpacing")]},st(e,"textAlign"),st(e,"textAppearance")],vg=()=>({type:"tab",id:"stripTextStyle",tabs:Object.fromEntries(fi.map(e=>[pg[e],yg(e)]))}),ra=(e,t)=>{if(e<=0)return[];const n=t.slice(0,e),i=n.reduce((s,a)=>s+a,0);if(i<=1)return n;const{widths:o}=[...n].reverse().reduce(({overflow:s,widths:a},d)=>{if(s<=0||d<=0)return{overflow:s,widths:[d,...a]};const c=Math.min(s,d);return{overflow:s-c,widths:[d-c,...a]}},{overflow:i-1,widths:[]});return o},ul=(e,t)=>ra(e,t),go=(e,t)=>{const n=t.filter((i,o)=>o!==e).reduce((i,o)=>i+o,0);return Math.max(1-n,0)},os=(e,t)=>{const n=e.map(i=>t[i.widthKey]??0);return{resolved:ra(e.length,n),effective:ul(e.length,n)}},xg=(e,t,n,i,o,s,a)=>{const d=[];return t&&d.push({prefix:"title1",widthKey:"title1Width",className:`${e}-title1`,style:o,text:t}),n&&d.push({prefix:"title2",widthKey:"title2Width",marginLeftKey:"title2MarginLeft",className:`${e}-title2`,style:s,text:n}),i&&d.push({prefix:"title3",widthKey:"title3Width",marginLeftKey:"title3MarginLeft",className:`${e}-title3`,style:a,text:i}),d},fr=(e,t)=>{const n=i=>{const o=st(t,i);return e[o]};return{fontFamily:n("fontFamily")??"Arial",fontSettings:n("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:n("fontSize"),lineHeight:n("lineHeight"),letterSpacing:n("letterSpacing")??0,wordSpacing:n("wordSpacing")??0,textAlign:n("textAlign")??"left",textAppearance:n("textAppearance"),color:e[mg[t]]}},bg=(e,t,n,i)=>e.slice(0,i).reduce((o,s,a)=>o+(s!=null&&s.marginLeftKey?n[s.marginLeftKey]??0:0)+(t[a]??0),0),yr=(e,t,n)=>{var o,s;const i={fontSettings:{fontFamily:t.fontFamily,fontWeight:((o=t.fontSettings)==null?void 0:o.fontWeight)??400,fontStyle:((s=t.fontSettings)==null?void 0:s.fontStyle)??"normal"},fontSize:t.fontSize??gg[e],lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,textAlign:t.textAlign,textAppearance:t.textAppearance,color:t.color??"#ffffff"};return kt(i,n)},wg=({prefix:e,images:t,settings:n,isEditor:i,isEditMode:o,isPreviewMode:s,onClose:a})=>{const{backgroundColor:d,thumbnailSize:c,thumbnailGap:p,thumbnailMarginBottom:m,imageGap:x,closeIcon:w,closeIconMaxWidth:$,closeIconColor:h,closeIconHoverColor:v,thumbnailTrigger:b,thumbnailVisibility:S,thumbnailObjectFit:L,thumbnailActive:I,thumbnailActiveColor:N,title1Width:M,title2Width:O,title3Width:k,title1MarginLeft:T=0,title2MarginLeft:J=0,title3MarginLeft:y=0,titleRowMarginBottom:_=0,titleHeaderLayout:H="desktop",contentMarginTop:q,iconMarginLeft:ee}=n,ce=u=>A.scalingValue(u,i??!1),U=c??n.thumnailSize??.03,j=ce(U),B=ce(p),E=ce(m??.02),P=ce(x??0),D=ce(q??0),Z=mo(D),X=ce(ee??0),[z,ae]=l.useState(0),g=l.useRef(z);g.current=z;const se=t[z],{title1:ye,title2:fe,title3:ke}=fg(se),te=yr("title1",fr(n,"title1"),i),ge=yr("title2",fr(n,"title2"),i),Y=yr("title3",fr(n,"title3"),i),ve=H==="mobile",re=!o&&(!i||s),le=re,ne=re,we=re,Te=vn(L),xe=Te?{"--image-aspect-ratio":Xo(L)}:void 0,Ie=!!(ye||fe||ke),F=l.useMemo(()=>xg(e,ye,fe,ke,te,ge,Y),[e,z,ye,fe,ke,te,ge,Y]),Q=l.useMemo(()=>({title1Width:M,title2Width:O,title3Width:k}),[M,O,k]),R=l.useMemo(()=>F.map(u=>Q[u.widthKey]),[F,Q]),V=l.useMemo(()=>ra(F.length,R),[F.length,R]),G=l.useMemo(()=>ul(F.length,R),[F.length,R]),ie=l.useMemo(()=>F.filter(u=>u.prefix==="title1"),[F]),oe=l.useMemo(()=>F.filter(u=>u.prefix==="title2"||u.prefix==="title3"),[F]),he=l.useMemo(()=>os(ie,Q),[ie,Q]),Ae=l.useMemo(()=>os(oe,Q),[oe,Q]),Le=l.useCallback((u,f)=>{const C=F.indexOf(u);if(!ve||f==="single-row")return{effectiveWidth:G[C]??0,resolvedWidth:V[C]??0,maxWidth:go(C,V)};if(f==="two-row-top"){const de=ie.indexOf(u);return{effectiveWidth:he.effective[de]??0,resolvedWidth:he.resolved[de]??0,maxWidth:go(de,he.resolved)}}const K=oe.indexOf(u);return{effectiveWidth:Ae.effective[K]??0,resolvedWidth:Ae.resolved[K]??0,maxWidth:go(K,Ae.resolved)}},[oe,Ae,G,V,F,ie,he,ve]),$e=l.useCallback(u=>A.scalingValue(u,i??!1),[i]),Ge=$e(_??0),pe=l.useMemo(()=>({title1MarginLeft:T,title2MarginLeft:J,title3MarginLeft:y}),[T,J,y]),Pe=l.useCallback(u=>F.slice(0,u+1).reduce((f,C,K)=>f+(C!=null&&C.marginLeftKey?pe[C.marginLeftKey]??0:0)+(V[K]??0),0)+(ve?0:T??0),[F,pe,V,ve,T]),We=l.useCallback(()=>ve?0:T??0,[ve,T]),Be=l.useCallback(u=>oe.slice(0,u).reduce((f,C,K)=>f+(C.marginLeftKey?pe[C.marginLeftKey]??0:0)+(Ae.resolved[K]??0),0),[oe,Ae.resolved,pe]),ct=l.useCallback(u=>{const f=oe[u];return Be(u)+(f.marginLeftKey?pe[f.marginLeftKey]??0:0)+(Ae.resolved[u]??0)},[oe,Ae.resolved,Be,pe]),gt=(u,f)=>{const C=u.marginLeftKey?pe[u.marginLeftKey]??0:0,{effectiveWidth:K,resolvedWidth:de,maxWidth:Se}=Le(u,f),Fe=o&&f==="two-row-top";return r.jsxs("div",{className:`${e}-title-cell`,"data-title":u.prefix,style:{...f==="single-row"?{gridArea:u.prefix}:{},width:$e(K),...C>0?{marginLeft:$e(C)}:{}},children:[r.jsx("p",{className:u.className,style:u.style,children:u.text}),Fe&&u.marginLeftKey&&r.jsx("div",{"data-controls":u.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(de),style:{position:"absolute",top:0,left:$e(-C),width:`max(${$e(C)}, 10px)`,height:"100%",pointerEvents:"auto"}}),Fe&&r.jsx("div",{"data-controls":u.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(Se),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,right:$e(-ti/2),width:$e(ti),height:"100%",pointerEvents:"auto"}})]},u.className)},Ct=()=>{const u=ve?-1:F.findIndex(K=>K.prefix==="title1"),f=!ve&&(o||(T??0)>0)?(()=>{const K=T??0,de=u>=0?V[u]:M??0;return r.jsx("div",{"data-controls":"title1MarginLeft","data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(de),style:{position:"absolute",top:0,left:0,width:`max(${$e(K)}, 10px)`,height:"100%",pointerEvents:"auto"}},"title1MarginLeft")})():null,C=F.flatMap((K,de)=>{if(!K.marginLeftKey)return[];const Se=pe[K.marginLeftKey]??0,Fe=bg(F,V,pe,de)+We();return r.jsx("div",{"data-controls":K.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(V[de]),style:{position:"absolute",top:0,left:$e(Fe),width:`max(${$e(Se)}, 10px)`,height:"100%",pointerEvents:"auto"}},K.marginLeftKey)});return f?[f,...C]:C},vt=()=>F.map((u,f)=>{const C=go(f,V),de=Pe(f)-ti/2;return r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx("div",{"data-controls":u.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(C),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:$e(de),width:$e(ti),height:"100%",pointerEvents:"auto"}})},`${u.widthKey}-junction`)}),$t=()=>oe.flatMap((u,f)=>{if(!u.marginLeftKey)return[];const C=pe[u.marginLeftKey]??0,K=Be(f),{resolvedWidth:de}=Le(u,"two-row-bottom");return r.jsx("div",{"data-controls":u.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(de),style:{position:"absolute",top:0,left:$e(K),width:`max(${$e(C)}, 10px)`,height:"100%",pointerEvents:"auto"}},u.marginLeftKey)}),Nt=()=>oe.map((u,f)=>{const{maxWidth:C}=Le(u,"two-row-bottom"),de=ct(f)-ti/2;return r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx("div",{"data-controls":u.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(C),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:$e(de),width:$e(ti),height:"100%",pointerEvents:"auto"}})},`${u.widthKey}-junction`)}),Pt=l.useRef(null),Ke=l.useRef(null),_e=l.useRef(null),Ze=l.useRef(null),Xe=l.useRef([]),Ne=l.useRef([]),ht=l.useRef(0),ft=l.useRef(null),Je=l.useRef({isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1}),At=l.useRef(null),Ht=l.useRef(null),ze=l.useRef(0),xt=l.useRef("forward"),Qe=l.useRef(0),et=l.useRef(null),rt=l.useRef(!1),dt=t.length>1&&(!o||!!s),jt=dt?3:1,wn=l.useMemo(()=>Array.from({length:jt},()=>t).flat(),[t,jt]),[Fn,nt]=l.useState(!1),[nn,Dt]=l.useState(!1),[zt,qe]=l.useState(!0),ut=l.useRef(null),ue=l.useRef(null),Ce=l.useRef(!1),Re=l.useRef(!1),He=l.useRef(null),tt=l.useRef(null),bt=le&&!zt,Ee=l.useCallback(()=>{le&&(qe(!0),tt.current&&clearTimeout(tt.current),tt.current=setTimeout(()=>{Je.current.isActive||qe(!1)},rg))},[le]),it=l.useCallback(()=>{o||Re.current||(Re.current=!0,Dt(!1),He.current=setTimeout(()=>{a()},Ri))},[o,a]),je=()=>r.jsxs("div",{className:`${e}-close-icon`,"data-overlay-content-hidden":bt?"true":"false",style:{width:A.scalingValue($??0,i),height:A.scalingValue($??0,i),marginRight:X,"--close-icon-hover-color":v},children:[r.jsx("button",{type:"button",className:`${e}-close-icon-inner`,onClick:it,"aria-label":"Close",children:r.jsx(en,{url:w,fill:h,hoverFill:i&&!s?h:v,className:`${e}-close-icon-img`})}),o&&r.jsx("div",{"data-controls":"iconMarginLeft","data-controls-axis":"x","data-controls-reverse":"",className:`${e}-control`,style:{position:"absolute",top:0,left:"100%",width:X,height:"100%",pointerEvents:"auto"}})]}),at=(u="two-row")=>r.jsx("div",{...u==="two-row"&&o?{"data-controls":"title1MarginLeft","data-controls-axis":"x"}:{},style:{width:$e(T??0),flexShrink:0,...u==="single-row"?{gridArea:"margin"}:{alignSelf:"stretch"},...u==="two-row"&&o?{pointerEvents:"auto"}:{}}}),ot=()=>{const u=F.find(K=>K.prefix==="title1"),f=F.filter(K=>K.prefix==="title2"||K.prefix==="title3"),C=f.length>0||o||(_??0)>0;return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:`${e}-header-row-top`,children:[(T??0)>0||o?at():null,u&>(u,"two-row-top"),w&&je()]}),C?r.jsxs("div",{className:`${e}-header-row-bottom-wrap`,children:[f.length>0?r.jsxs("div",{className:`${e}-header-row-bottom`,children:[f.map(K=>gt(K,"two-row-bottom")),o&&r.jsxs(r.Fragment,{children:[$t(),Nt()]})]}):null,r.jsx("div",{"data-controls":o?"titleRowMarginBottom":void 0,"data-controls-axis":o?"y":void 0,"data-controls-reverse":o?"":void 0,className:o?`${e}-control`:void 0,style:{height:Ge,width:"100%",flexShrink:0,pointerEvents:o?"auto":"none"}})]}):null]})},Rt=()=>r.jsxs(r.Fragment,{children:[(T??0)>0||o?at("single-row"):null,F.map(u=>gt(u,"single-row")),o?r.jsxs(r.Fragment,{children:[Ct(),vt()]}):null,w?je():null]}),St=l.useCallback(u=>!!(u.closest("[data-controls]")||u.closest(`.${e}-thumbnails`)||u.closest(`.${e}-close-icon`)),[e]),{isSwipeDragging:De,backdropStyle:wt,mediaAreaStyle:Tt,overlayContentStyle:Lt,swipeHandlers:on,dismissAreaStyle:mt}=cl({enabled:re??!1,onClose:it,animMs:Ri,isBlockedTarget:St}),Ot=()=>{if(!dt||t.length===0)return ht.current=0,0;const u=Ne.current[0],f=Ne.current[t.length];if(!u||!f)return ht.current;const C=f.offsetLeft-u.offsetLeft;return C>0&&(ht.current=C),ht.current},Ft=(u=!1)=>{if(!dt)return;const f=Ke.current,C=Ot();!f||C<=0||C<f.clientWidth*.25||(f.scrollLeft<=0?(f.scrollLeft+=C,u&&(Je.current.scrollLeft+=C),rt.current&&(Qe.current+=C)):f.scrollLeft>=C*2&&(f.scrollLeft-=C,u&&(Je.current.scrollLeft-=C),rt.current&&(Qe.current-=C)))},cn=(u,f=(C=>(C=Ke.current)==null?void 0:C.scrollLeft)()??0)=>{if(!dt)return u;let K=t.length+u,de=1/0;for(let Se=0;Se<jt;Se++){const Fe=Se*t.length+u,Ue=Ne.current[Fe];if(!Ue)continue;const Mt=Math.abs(Ue.offsetLeft-f);Mt<de&&(de=Mt,K=Fe)}return K},$n=u=>{const f=Ke.current;return!u||!f?!1:u.offsetWidth>f.clientWidth+1},dn=u=>{const f=Ke.current;if(!u||!f||!$n(u))return!1;const C=u.offsetLeft,K=C+u.offsetWidth;return f.scrollLeft>=C-1&&f.scrollLeft+f.clientWidth<=K+1},Vt=(u=(f=>(f=Ke.current)==null?void 0:f.scrollLeft)()??0)=>{for(let K=0;K<Ne.current.length;K+=1){const de=Ne.current[K];if(de&&dn(de))return K}let C={flatIndex:0,distance:1/0};return Ne.current.forEach((K,de)=>{if(!K)return;const Se=Math.abs(K.offsetLeft-u);Se<C.distance&&(C={flatIndex:de,distance:Se})}),C.flatIndex},Sn=u=>{Ke.current&&Ne.current.forEach(f=>{f&&(f.style.scrollSnapAlign=$n(f)&&u==="backward"?"end":"start")})},Yn=(u,f,C)=>{const K=u-f,de=Vt(f),Se=Ne.current[de];if(dn(Se))return Vt(u)%t.length;const Fe=Ne.current[de+1],Ue=Se?Fe?Fe.offsetLeft-Se.offsetLeft:Se.offsetWidth:0,Mt=Ue>0?K>Ue*po?1:K<-Ue*po?-1:0:0;return Mt===0?C:dt?(C+Mt+t.length)%t.length:Math.max(0,Math.min(t.length-1,C+Mt))},Jn=l.useCallback((u=!1)=>{if(S!=="on"||o)return;const f=Ze.current,C=g.current,K=Xe.current[C];if(!f||!K||f.scrollWidth<=f.clientWidth)return;const de=f.scrollLeft,Se=de+f.clientWidth,Fe=K.offsetLeft,Ue=Fe+K.offsetWidth;if(Fe>=de&&Ue<=Se)return;const Mt=f.scrollWidth-f.clientWidth;let It=de;if(!u&&ut.current===null){const Qn=Xe.current[C-1],Ci=Xe.current[C+1],no=Qn?K.offsetLeft-Qn.offsetLeft:Ci?Ci.offsetLeft-K.offsetLeft:K.offsetWidth;Ue>Se?It+=no:Fe<de&&(It-=no)}else Ue>Se?It=Ue-f.clientWidth:It=Fe;f.scrollLeft=Math.max(0,Math.min(Mt,It))},[o,S]),Si=l.useCallback((u=!1)=>{u&&(Ce.current=!0),ue.current===null&&(ue.current=requestAnimationFrame(()=>{ue.current=null;const f=Ce.current;Ce.current=!1,Jn(f)}))},[Jn]),Zo=l.useCallback(u=>{if(u===g.current)return;const f=g.current;g.current=u;const C=Math.abs(u-f)>1,K=dt&&t.length>1&&(f===t.length-1&&u===0||f===0&&u===t.length-1);ae(u),Si(C||K)},[t.length,dt,Si]),Yt=()=>{if(!Ke.current||t.length===0||ut.current!==null||Je.current.isActive&&Je.current.hasMoved)return;const u=Ke.current.scrollLeft,f=Vt(u)%t.length;f!==g.current&&Zo(f)},Ji=()=>{ut.current=null},Jt=u=>{const f=Ke.current;f&&(f.style.scrollSnapType=u?"":"none")},un=()=>{var u;(u=Ht.current)==null||u.call(Ht),Ht.current=null},Cn=()=>{et.current!==null&&(cancelAnimationFrame(et.current),et.current=null),rt.current=!1},Wn=()=>{const u=Ke.current;if(!u){et.current=null,rt.current=!1;return}const f=Qe.current-u.scrollLeft;if(Math.abs(f)<.5){u.scrollLeft=Qe.current,Ft(),Yt(),et.current=null,rt.current=!1;return}u.scrollLeft+=f*lg,Ft(),Yt(),Ee(),et.current=requestAnimationFrame(Wn)},Nn=()=>{const u=_e.current;u&&(u.style.transition="",u.style.transform="",u.style.willChange="")},Zi=(u,f,C,K)=>{Nn(),u.scrollLeft=f,ze.current=u.scrollLeft,Ft(),C!==void 0?(g.current=C,ae(C)):Yt(),Jt(!0),K==null||K()},Qi=(u,{behavior:f="smooth",activeIndex:C,onComplete:K}={})=>{const de=Ke.current,Se=_e.current;if(!de||!Se)return;if(Cn(),un(),Jt(!1),f==="auto"){Zi(de,u,C,K);return}const Fe=Math.abs(u-de.scrollLeft),Ue=Zm(Fe,ng,ig,de.clientWidth*.55);Ht.current=tg(de,Se,u,{duration:Ue,easing:og,onComplete:()=>{Ht.current=null,Zi(de,u,C,K)}})},Qo=(u="smooth")=>{const f=Ke.current;if(!f||t.length===0)return;const C=Vt()%t.length,K=cn(C,f.scrollLeft),de=Ne.current[K];de&&Qi(de.offsetLeft,{behavior:u,activeIndex:C})},er=(u,f="smooth",C,K)=>{const de=Ke.current;if(!de||t.length===0)return;const Se=(K??de.scrollLeft)-u,Fe=Vt(u),Ue=Ne.current[Fe];if(dn(Ue)){Jt(!0),Yt();return}const Mt=Ne.current[Fe+1],It=Ue?Mt?Mt.offsetLeft-Ue.offsetLeft:Ue.offsetWidth:0;if((It>0?Se>It*po?1:Se<-It*po?-1:0:0)!==0){const yl=C??Fe%t.length,vl=Yn(K??de.scrollLeft,u,yl);rn(vl,f);return}const Ci=K??de.scrollLeft,no=Vt(Ci),la=Ne.current[no];if(la&&Math.abs(la.offsetLeft-Ci)<1){Jt(!0),Yt();return}Qo("auto")},rn=(u,f="smooth")=>{const C=Ke.current;if(!C||t.length===0)return;const K=cn(u,C.scrollLeft),de=Ne.current[K];de&&(f==="smooth"?ut.current=u:ut.current=null,g.current=u,ae(u),Si(!0),Qi(de.offsetLeft,{behavior:f,activeIndex:u,onComplete:f==="smooth"?Ji:void 0}))},Zn=()=>{At.current&&(window.removeEventListener("pointerup",At.current),window.removeEventListener("pointercancel",At.current),At.current=null)},eo=(u,f,C,K,de)=>{const Se=C-u,Fe=K-f,Ue=Math.abs(Se),Mt=Math.abs(Fe);if(Ue<dg||Ue<=Mt)return!1;const It=Se<0?1:-1,Qn=dt?(de+It+t.length)%t.length:Math.max(0,Math.min(t.length-1,de+It));return Qn===de?!1:(rn(Qn),!0)},Hn=u=>{if(!Je.current.isActive)return;Zn();const f=Ke.current;if(!f)return;const{scrollLeft:C,startActiveIndex:K,hasMoved:de}=Je.current,Se=f.scrollLeft;Ft(!0),Je.current={isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1},nt(!1),u!==void 0&&f.hasPointerCapture(u)&&f.releasePointerCapture(u),de?er(C,"smooth",K,Se):(Jt(!0),Yt()),Ee()},to=(u,f)=>{const C=ft.current;ft.current=null,C&&(eo(C.startX,C.startY,u,f,C.startActiveIndex),Ee())},tr=u=>{if(!ne)return;if(u.pointerType==="touch"){if(Cn(),Jt(!0),St(u.target))return;ft.current={startX:u.clientX,startY:u.clientY,startActiveIndex:g.current};return}if(u.pointerType!=="mouse"||u.button!==0||St(u.target))return;const f=Ke.current;if(!f)return;Cn(),un(),Nn(),ut.current=null,Je.current={isActive:!0,startX:u.clientX,scrollLeft:f.scrollLeft,startActiveIndex:g.current,hasMoved:!1},Jt(!1),Ee(),f.setPointerCapture(u.pointerId),Zn();const C=K=>{K.pointerType==="mouse"&&Hn(K.pointerId)};At.current=C,window.addEventListener("pointerup",C),window.addEventListener("pointercancel",C)},nr=u=>{if(!ne||u.pointerType!=="mouse")return;const f=Ke.current;if(!f||!Je.current.isActive)return;if(u.buttons===0){Hn(u.pointerId);return}const C=u.clientX-Je.current.startX;Math.abs(C)>cg&&(Je.current.hasMoved=!0,nt(!0)),Je.current.hasMoved&&(u.preventDefault(),f.scrollLeft=Je.current.scrollLeft-C,Ft(!0),Yt(),Ee())},W=u=>{if(ne){if(u.pointerType==="touch"){u.type==="pointerup"?to(u.clientX,u.clientY):ft.current=null;return}u.pointerType==="mouse"&&Hn(u.pointerId)}},me=u=>{!ne||u.pointerType!=="mouse"||Hn(u.pointerId)};return dl(),l.useEffect(()=>{const u=requestAnimationFrame(()=>Dt(!0));return()=>{cancelAnimationFrame(u),un(),Zn(),ue.current!==null&&(cancelAnimationFrame(ue.current),ue.current=null),He.current&&clearTimeout(He.current),tt.current&&clearTimeout(tt.current)}},[]),l.useEffect(()=>{if(!le){qe(!0);return}Ee();const u=Pt.current;if(!u)return;const f=()=>Ee();return u.addEventListener("pointermove",f),u.addEventListener("pointerdown",f),()=>{u.removeEventListener("pointermove",f),u.removeEventListener("pointerdown",f),tt.current&&clearTimeout(tt.current)}},[le,Ee]),l.useEffect(()=>{const u=f=>{f.key==="Escape"&&it()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[it]),l.useLayoutEffect(()=>{Ot()},[P,t.length,dt]),l.useLayoutEffect(()=>{o||rn(g.current,"auto")},[P,o]),l.useLayoutEffect(()=>{rn(0,"auto")},[t.length,dt]),l.useEffect(()=>{const u=Ke.current;if(!u||o||!re)return;const f=C=>{if(C.preventDefault(),Math.abs(C.deltaY)<=Math.abs(C.deltaX))return;const K=C.deltaMode===1?sg:C.deltaMode===2?u.clientHeight:1,de=C.deltaY*K*ag;if(de!==0){if(un(),rt.current||(rt.current=!0,Qe.current=u.scrollLeft,ut.current=null,Jt(!1)),Qe.current+=de,!dt){const Se=u.scrollWidth-u.clientWidth;Qe.current=Math.max(0,Math.min(Se,Qe.current))}Ee(),et.current===null&&(et.current=requestAnimationFrame(Wn))}};return u.addEventListener("wheel",f,{passive:!1}),()=>{u.removeEventListener("wheel",f),Cn()}},[o,re,dt]),l.useEffect(()=>{const u=Ke.current;if(!u)return;const f=()=>{Ft(Je.current.isActive);const K=u.scrollLeft,de=K-ze.current;ze.current=K;const Se=ht.current>0?ht.current*.5:1/0;if(de!==0&&Math.abs(de)<Se){const Fe=de>0?"forward":"backward";Fe!==xt.current&&(xt.current=Fe,Sn(Fe))}Je.current.isActive&&Je.current.hasMoved||Yt()};u.addEventListener("scroll",f,{passive:!0});const C=new ResizeObserver(()=>{Ot(),Ft(Je.current.isActive),Sn(xt.current),Yt()});return C.observe(u),()=>{un(),u.removeEventListener("scroll",f),C.disconnect()}},[t.length,dt]),r.jsxs("div",{"data-selection":"none",className:`${e}-lightbox${i?` ${e}-lightbox-editor`:""}${o?` ${e}-lightbox-edit-mode`:""}`,onClick:()=>{De||it()},role:"dialog","aria-modal":"true","aria-label":"Image gallery",style:{opacity:nn?1:0,transition:`opacity ${Ri}ms ease`,pointerEvents:nn?"auto":"none"},children:[r.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:d,...wt}}),r.jsxs("div",{ref:Pt,className:`${e}-lightbox-dismiss-area`,style:mt,...on,children:[r.jsx("div",{className:`${e}-lightbox-content`,style:Tt,onClick:u=>u.stopPropagation(),children:r.jsx("div",{ref:Ke,className:`${e}-lightbox-strip`,"data-lightbox-scrollable":"","data-mouse-draggable":ne&&t.length>0?"true":"false","data-mouse-dragging":Fn?"true":"false",onPointerDown:tr,onPointerMove:nr,onPointerUp:W,onPointerCancel:W,onLostPointerCapture:me,children:r.jsx("div",{ref:_e,className:`${e}-lightbox-strip-track`,style:{gap:P},children:wn.map((u,f)=>{const C=u.image.objectFit??"contain",K=f%t.length,de=Math.floor(f/t.length),Se=mo(P),Fe=`calc(-0.5 * (${Se} + ${P}))`;return r.jsxs("div",{ref:Ue=>Ne.current[f]=Ue,className:`${e}-strip-item`,style:{height:H==="mobile"?"75vh":"100%"},children:[r.jsx("img",{src:u.image.url,draggable:!1,style:{display:"block",maxWidth:"100%",height:"100%",objectFit:C}}),o&&K<t.length-1&&de===0&&r.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Fe,width:Se,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${de}-${u.image.url}-${K}`)})})})}),r.jsxs("div",{className:`${e}-lightbox-content-inner`,"data-overlay-content-hidden":bt?"true":"false",style:Lt,children:[r.jsx("div",{style:{position:"relative",width:"100%",height:D,flexShrink:0,pointerEvents:"none"},children:o&&r.jsx("div",{"data-controls":"contentMarginTop","data-controls-axis":"y","data-controls-handle-left-fraction":"0.05",style:{position:"absolute",left:0,right:0,top:0,height:Z,pointerEvents:"auto",zIndex:3}})}),r.jsx("div",{style:{display:"flex",flexDirection:"row",width:"100%",flex:1,minHeight:0,pointerEvents:"none"},children:r.jsx("div",{className:`${e}-lightbox-content-area${ve?` ${e}-lightbox-content-area-stacked`:""}`,children:(Ie||w)&&r.jsx("div",{className:`${e}-header ${ve?`${e}-header-two-row`:`${e}-header-single-row`}`,children:ve?ot():Ie||w?Rt():null})})})]}),t.length>1&&S==="on"&&(()=>{const u=mo(E),f=`calc(-0.5 * (${E} + ${u}))`;return r.jsx("div",{className:`${e}-thumbnails-wrap`,style:{bottom:E},children:r.jsx("div",{ref:Ze,className:`${e}-thumbnails`,"data-lightbox-scrollable":"",onClick:C=>C.stopPropagation(),children:r.jsxs("div",{className:`${e}-thumbnails-track`,"data-thumbnail-active":I,style:{gap:B,"--thumbnail-active-color":N},children:[t.map((C,K)=>{const de=mo(B),Se=`calc(-0.5 * (${de} + ${B}))`;return r.jsxs("div",{ref:Fe=>{Xe.current[K]=Fe},style:{position:"relative",flex:"0 0 auto"},children:[r.jsx("button",{type:"button",className:`${e}-thumb`,"data-active":z===K?"true":"false",onClick:()=>re&&b==="click"&&rn(K),onMouseEnter:()=>we&&b==="hover"&&rn(K),"aria-label":C.image.name?`View ${C.image.name}`:`View image ${K+1}`,"aria-current":z===K?"true":void 0,children:r.jsx("img",{className:`${e}-thumb-image${Te?` ${e}-thumb-image-cover`:""}`,src:C.image.url,alt:"",draggable:!1,style:{...xe,maxWidth:j,maxHeight:j,width:L.display==="cover"?"auto":"100%",height:"auto",objectFit:L.display==="cover"?"cover":"contain"}})}),o&&K<t.length-1&&r.jsx("div",{"data-controls":"thumbnailGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Se,width:de,height:"100%",pointerEvents:"auto",zIndex:3}})]},`thumb-${C.image.url}-${K}`)}),o&&r.jsx("div",{"data-controls":"thumbnailMarginBottom","data-controls-axis":"y","data-controls-reverse":o?"":void 0,style:{position:"absolute",left:0,right:0,bottom:f,height:u,pointerEvents:"auto",zIndex:3}})]})})})})()]})]})};function $g(e){return`
|
|
10231
|
+
`;function Ln(e){return{type:"number",scope:"layout",title:e,min:0,max:100,display:{type:"range-control"}}}const ts={fontSettings:{type:"object",display:{type:"font-settings-weight"},properties:{fontWeight:{type:"number"},fontStyle:{type:"string"}}}},Km=["questionColor","answerColor","dividerColor","iconColor","questionHoverColor","iconHoverColor","iconActiveColor","dividerHoverColor"],Um={type:"object",version:1,content:{type:"array",display:{type:"array"},items:{type:"object",properties:{question:{type:"string",label:"Question",placeholder:"Add question...",display:{type:"text-input"}},answer:{label:"Answer",placeholder:"Add answer...",display:{type:"rich-text"}}}},default:[{question:"What are the three main parts of The Divine Comedy?",answer:[{type:"paragraph",children:[{text:"The poem is divided into Inferno, Purgatorio, and Paradiso. These three sections follow Dante’s journey through Hell, Purgatory, and Heaven."}]}]},{question:"Who guides Dante through Hell and most of Purgatory?",answer:[{type:"paragraph",children:[{text:"Dante is guided by Virgil, the ancient Roman poet. Virgil represents human reason and wisdom, but because he lived before Christianity, he cannot guide Dante all the way into Heaven."}]}]},{question:"What does the dark wood at the beginning of the poem symbolize?",answer:[{type:"paragraph",children:[{text:"The dark wood symbolizes Dante’s spiritual confusion and moral crisis. It shows that he has lost the “straight way” in life and needs guidance to return to truth and salvation."}]}]},{question:"What is “contrapasso” in Inferno?",answer:[{type:"paragraph",children:[{text:"“Contrapasso” is the principle that punishments in Hell reflect the sins committed during life. For example, people who caused division are themselves physically divided, showing how their punishment mirrors their wrongdoing."}]}]},{question:"Who guides Dante through Heaven?",answer:[{type:"paragraph",children:[{text:"Beatrice guides Dante through Paradiso. She represents divine love, grace, and spiritual understanding, helping Dante move beyond human reason toward a vision of God."}]}]},{question:"Why is The Divine Comedy important in literary history?",answer:[{type:"paragraph",children:[{text:"The Divine Comedy is important because it is one of the greatest works of world literature and helped shape the Italian language. Dante wrote it in the Tuscan dialect rather than Latin, making serious literature more accessible to ordinary readers."}]}]},{question:"What is the overall journey of The Divine Comedy about?",answer:[{type:"paragraph",children:[{text:"The poem is about Dante’s spiritual journey from sin and despair toward repentance, wisdom, and union with God. On a deeper level, it represents the soul’s path from confusion to divine truth."}]}]}]},settings:{sizing:"auto",properties:{wrapperWidth:{type:"number",scope:"layout",title:"Width",display:{type:"numeric-input"},min:0,max:9999},cellMinHeight:{type:"number",scope:"layout",title:"Min height",display:{type:"numeric-input"},min:0,max:9999},dividerWidth:{type:"number",scope:"layout",title:"Width",display:{type:"numeric-input"},min:0,max:9999},dividerStyle:{type:"string",scope:"common",title:"Style",display:{type:"toggle-cycle",enum:["solid","dashed","dotted"]}},entryHoverEffect:{type:"string",scope:"common",title:"Effect",display:{type:"toggle-cycle",enum:["none","default"]}},autoclose:{type:"string",scope:"common",title:"Autoclose",display:{type:"toggle-cycle",enum:["on","off"]}},icon:{type:["string","null"],scope:"common",display:{type:"settings-image-input"}},iconMaxWidth:{type:"number",scope:"layout",title:"Max Width",display:{type:"numeric-input"},min:0,max:9999},iconPaddingRight:Ln("Icon Padding Right"),iconAnimation:{type:"string",scope:"common",title:"Icon Animation",display:{type:"toggle-cycle",enum:["rotate 180","rotate 90","rotate 45"]}},questionColor:{type:"string",scope:"common",title:"Question Default",display:{type:"palette-color-picker"}},answerColor:{type:"string",scope:"common",title:"Answer Default",display:{type:"palette-color-picker"}},dividerColor:{type:"string",scope:"common",title:"Divider Default",display:{type:"palette-color-picker"}},iconColor:{type:"string",scope:"common",title:"Icon Default",display:{type:"palette-color-picker"}},questionHoverColor:{type:"string",scope:"common",title:"Question Hover",display:{type:"palette-color-picker"}},iconHoverColor:{type:"string",scope:"common",title:"Icon Hover",display:{type:"palette-color-picker"}},iconActiveColor:{type:"string",scope:"common",title:"Icon Active",display:{type:"palette-color-picker"}},dividerHoverColor:{type:"string",scope:"common",title:"Divider Hover",display:{type:"palette-color-picker"}},questionFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},questionFontSettings:{...ts.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},questionFontSize:{type:"number",scope:"layout",title:"Question Font Size",display:{type:"font-size"}},questionLineHeight:{type:"number",scope:"layout",title:"Question Line Height",display:{type:"line-height-input"}},questionLetterSpacing:{type:"number",scope:"layout",title:"Question Letter Spacing",display:{type:"letter-spacing-input"}},questionWordSpacing:{type:"number",scope:"layout",title:"Question Word Spacing",display:{type:"word-spacing-input"}},questionTextAppearance:{type:"object",scope:"layout",title:"Question Text Appearance",display:{type:"text-appearance"}},answerFontFamily:{type:"string",scope:"common",title:"Font family",display:{type:"font-family-select"}},answerFontSettings:{...ts.fontSettings,scope:"common",title:"",display:{type:"font-settings-weight"}},answerFontSize:{type:"number",scope:"layout",title:"Answer Font Size",display:{type:"font-size"}},answerLineHeight:{type:"number",scope:"layout",title:"Answer Line Height",display:{type:"line-height-input"}},answerLetterSpacing:{type:"number",scope:"layout",title:"Answer Letter Spacing",display:{type:"letter-spacing-input"}},answerWordSpacing:{type:"number",scope:"layout",title:"Answer Word Spacing",display:{type:"word-spacing-input"}},answerTextAppearance:{type:"object",scope:"layout",title:"Answer Text Appearance",display:{type:"text-appearance"}},questionPaddingLeft:Ln("Question Padding Left"),questionPaddingTop:Ln("Question Padding Top"),questionPaddingBottom:Ln("Question Padding Bottom"),answerPaddingLeft:Ln("Answer Padding Left"),answerPaddingRight:Ln("Answer Padding Right"),answerPaddingTop:Ln("Answer Padding Top"),answerPaddingBottom:Ln("Answer Padding Bottom")},defaults:{dividerStyle:"dotted",entryHoverEffect:"default",autoclose:"off",icon:"https://cdn.cntrl.site/component-assets/PlusIcon.svg",iconAnimation:"rotate 45",questionColor:"#000000",answerColor:"#000000",dividerColor:"#000000",iconColor:"#000000",questionHoverColor:"#A60239",iconHoverColor:"#A60239",iconActiveColor:"#000000",dividerHoverColor:"#A60239",questionFontFamily:"Goudy Bookletter 1911",questionFontSettings:{fontWeight:400,fontStyle:"normal"},questionLetterSpacing:0,questionWordSpacing:0,questionTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"},answerFontFamily:"Goudy Bookletter 1911",answerFontSettings:{fontWeight:400,fontStyle:"normal"},answerLetterSpacing:0,answerWordSpacing:0,answerTextAppearance:{textTransform:"none",textDecoration:"none",fontVariant:"normal"}},layoutDefaults:{m:{wrapperWidth:1,cellMinHeight:0,dividerWidth:.008,iconMaxWidth:.0533,iconPaddingRight:.08,questionFontSize:.09066,questionLineHeight:.10133,questionLetterSpacing:-.00266,answerFontSize:.0533,answerLineHeight:.064,questionPaddingLeft:.0533,questionPaddingTop:.0533,questionPaddingBottom:.0533,answerPaddingLeft:.0533,answerPaddingRight:.16,answerPaddingTop:.0533,answerPaddingBottom:.0533},t:{wrapperWidth:.651041,cellMinHeight:0,dividerWidth:.00390625,iconMaxWidth:.02604166,iconPaddingRight:.0130208,questionFontSize:.0390625,questionLineHeight:.04427,questionLetterSpacing:-.00091145833,answerFontSize:.0234375,answerLineHeight:.026041,questionPaddingLeft:0,questionPaddingTop:.01302,questionPaddingBottom:.01302,answerPaddingLeft:.065104,answerPaddingRight:.09765625,answerPaddingTop:.026041,answerPaddingBottom:.026041},d:{wrapperWidth:.6388,cellMinHeight:0,dividerWidth:.002083,iconMaxWidth:.01388,iconPaddingRight:.01388,questionFontSize:.0333,questionLineHeight:.0333,questionLetterSpacing:-9e-4,answerFontSize:.01111,answerLineHeight:.01388,questionPaddingLeft:0,questionPaddingTop:.01111,questionPaddingBottom:.01111,answerPaddingLeft:.0625,answerPaddingRight:.1625,answerPaddingTop:0,answerPaddingBottom:.01111}},layout:["__componentName__","wrapperWidth","cellMinHeight","dividerWidth","dividerStyle","entryHoverEffect","autoclose","icon","iconMaxWidth","iconAnimation"]},panels:[{id:"general",icon:"settings",title:"General",tooltip:"General Settings",layout:["__componentName__",{type:"row",title:"",items:["wrapperWidth","cellMinHeight"]},{type:"row",title:"",items:["entryHoverEffect","autoclose"]},{type:"row",title:"Divider",items:["dividerWidth","dividerStyle"]},{type:"row",title:"Icon",items:["icon","iconMaxWidth"]},{type:"row",title:"",items:["iconAnimation"]}]},{id:"typeStyle",icon:"text-icon",title:"Type Style",tooltip:"Typography",layout:["__componentName__",{type:"group",title:"Question",items:["questionFontFamily","questionFontSettings",{type:"row",items:["questionFontSize","questionLineHeight","questionLetterSpacing","questionWordSpacing"]},"questionTextAppearance"]},{type:"group",title:"Answer",items:["answerFontFamily","answerFontSettings",{type:"row",items:["answerFontSize","answerLineHeight","answerLetterSpacing","answerWordSpacing"]},"answerTextAppearance"]}]}],paletteBookmark:{items:[...Km],panelIds:["general","typeStyle"],stateItems:{default:["questionColor","answerColor","dividerColor","iconColor","questionHoverColor","dividerHoverColor","iconHoverColor","iconActiveColor"]}}},Xm={element:qm,id:"faq",name:"FAQ",category:"lists",layoutMode:"structured",preview:{type:"image",url:"https://cdn.cntrl.site/component-assets/FAQ_List.png"},version:1,defaultSize:{d:{width:720,height:540}},assetsPaths:{content:[],parameters:[{path:"icon"}]},fontSettingsPaths:{content:[],parameters:[{path:"questionFontFamily"},{path:"answerFontFamily"}]},fontRelations:{questionFontSettings:"questionFontFamily",answerFontSettings:"answerFontFamily"},schema:Um,sourceCode:Gm},vn=e=>e.display==="cover",Xo=e=>{const t=e.ratioValue??"1:1",n=e.reversed??!1,[i,o]=t.split(":").map(Number);return`${n?o:i} / ${n?i:o}`},ns=100,Ym=.2,is=8,cl=({enabled:e,onClose:t,animMs:n=300,isBlockedTarget:i})=>{const[o,s]=l.useState(0),[a,d]=l.useState(!1),c=l.useRef(null),p=l.useRef(0);p.current=o;const m=l.useMemo(()=>typeof window>"u"?ns:Math.max(ns,window.innerHeight*Ym),[]),x=l.useCallback(y=>Math.max(0,1-y/(m*1.5)),[m]),w=l.useCallback(y=>Math.max(0,1-y/(m*.45)),[m]),$=l.useCallback(y=>{const _=typeof window<"u"?window.innerHeight:800,H=Math.max(.88,1-y/_*.12);return`translateY(${y}px) scale(${H})`},[]),h=l.useCallback(()=>{c.current=null},[]),v=l.useCallback(()=>{d(!0),s(0),window.setTimeout(()=>d(!1),n),h()},[n,h]),b=l.useCallback(()=>{const y=typeof window<"u"?window.innerHeight:800;d(!0),s(y),window.setTimeout(()=>{t(),h(),d(!1)},Math.min(n,200))},[n,t,h]),S=l.useCallback(y=>{!e||a||y.pointerType==="touch"&&(i!=null&&i(y.target)||(c.current={startX:y.clientX,startY:y.clientY,isLocked:null,pointerId:y.pointerId}))},[e,a,i]),L=l.useCallback(y=>{const _=c.current;if(!e||!_||y.pointerType!=="touch"||_.pointerId!==y.pointerId)return;const H=y.clientX-_.startX,q=y.clientY-_.startY;if(_.isLocked===null){if(Math.abs(H)<is&&Math.abs(q)<is)return;if(q>0&&q>Math.abs(H))_.isLocked=!0,y.currentTarget.setPointerCapture(y.pointerId);else{_.isLocked=!1,h();return}}if(!_.isLocked)return;y.preventDefault();const ee=Math.max(0,q);p.current=ee,s(ee)},[e,h]),I=l.useCallback(y=>{const _=c.current;if(!e||!_||y.pointerType!=="touch"||_.pointerId!==y.pointerId)return;const H=_.isLocked===!0;if(y.currentTarget.hasPointerCapture(y.pointerId)&&y.currentTarget.releasePointerCapture(y.pointerId),!H){h();return}y.clientY-_.startY>=m?b():v()},[m,b,e,h,v]),N=l.useCallback(y=>{I(y)},[I]),M=l.useCallback(y=>{I(y)},[I]),O=o>0,k=a?`transform ${n}ms ease`:"none",T=a?`opacity ${n}ms ease`:"none",J=o>0||a;return{isSwipeDragging:O,backdropStyle:{opacity:x(o),transition:T},mediaAreaStyle:{transform:$(o),transition:k,touchAction:O?"none":void 0,willChange:O?"transform":void 0},overlayContentStyle:J?{opacity:w(o),transition:T}:void 0,swipeHandlers:e?{onPointerDown:S,onPointerMove:L,onPointerUp:N,onPointerCancel:M}:{},dismissAreaStyle:e?{touchAction:O?"none":"pan-x"}:void 0}},Jm="[data-lightbox-scrollable]",dl=()=>{l.useEffect(()=>{const e=window.scrollY,t=document.body.style.overflow,n=document.body.style.position,i=document.body.style.top,o=document.body.style.width,s=document.documentElement.style.overflow;document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",document.documentElement.style.overflow="hidden";const a=d=>{const c=d.target;c instanceof Element&&c.closest(Jm)||d.preventDefault()};return document.addEventListener("touchmove",a,{passive:!1}),()=>{document.removeEventListener("touchmove",a),document.body.style.overflow=t,document.body.style.position=n,document.body.style.top=i,document.body.style.width=o,document.documentElement.style.overflow=s,window.scrollTo(0,e)}},[])},Zm=(e,t,n,i)=>{const o=Math.min(Math.abs(e)/Math.max(i,1),1);return t+(n-t)*o},Qm=e=>{e.style.transition="",e.style.transform="",e.style.willChange=""},eg=e=>{const t=getComputedStyle(e).transform;return t==="none"?0:new DOMMatrixReadOnly(t).m41},tg=(e,t,n,{duration:i,easing:o,onComplete:s})=>{const a=e.scrollLeft,d=n-a,c=a-n,p=(h,v)=>{Qm(t),e.scrollLeft=h,v&&(s==null||s())};if(Math.abs(d)<.5)return p(n,!0),()=>{};let m=!1,x=0;const w=()=>{t.removeEventListener("transitionend",$),clearTimeout(x)},$=h=>{h.target!==t||h.propertyName!=="transform"||m||(m=!0,w(),p(n,!0))};return t.addEventListener("transitionend",$),t.style.willChange="transform",t.style.transition="none",t.style.transform="translate3d(0, 0, 0)",t.offsetHeight,t.style.transition=`transform ${i}ms ${o}`,t.style.transform=`translate3d(${c}px, 0, 0)`,x=window.setTimeout(()=>{m||(m=!0,w(),p(n,!0))},i+64),()=>{m||(m=!0,w(),p(a-eg(t),!1))}},Ri=300,ng=900,ig=1500,og="cubic-bezier(0.16, 1, 0.3, 1)",rg=3e3,ag=2,sg=16,lg=.05,cg=1,po=.3,dg=50,ug=20,ti=.004,fi=["title1","title2","title3"],pg={title1:"1",title2:"2",title3:"3"},mg={title1:"title1Color",title2:"title2Color",title3:"title3Color"},gg={title1:.02,title2:.02,title3:.02},mo=e=>`max(${e}, ${ug}px)`,hg=e=>{if(!Array.isArray(e)||e.length===0)return{};const t=e.find(o=>(o==null?void 0:o.type)==="paragraph")??e[0],n=t==null?void 0:t.children;if(!Array.isArray(n))return{};const i=n.map(o=>typeof(o==null?void 0:o.text)=="string"?o.text.trim():"").filter(Boolean);return{title1:i[0],title2:i[1],title3:i[2]}},fg=e=>{if(!e)return{title1:"",title2:"",title3:""};if(e.title1||e.title2||e.title3)return{title1:e.title1??"",title2:e.title2??"",title3:e.title3??""};const t=hg(e.text);return{title1:t.title1??"",title2:t.title2??"",title3:t.title3??""}},st=(e,t)=>`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`,yg=e=>[st(e,"fontFamily"),st(e,"fontSettings"),{type:"row",items:[st(e,"fontSize"),st(e,"lineHeight"),st(e,"letterSpacing"),st(e,"wordSpacing")]},st(e,"textAlign"),st(e,"textAppearance")],vg=()=>({type:"tab",id:"stripTextStyle",tabs:Object.fromEntries(fi.map(e=>[pg[e],yg(e)]))}),ra=(e,t)=>{if(e<=0)return[];const n=t.slice(0,e),i=n.reduce((s,a)=>s+a,0);if(i<=1)return n;const{widths:o}=[...n].reverse().reduce(({overflow:s,widths:a},d)=>{if(s<=0||d<=0)return{overflow:s,widths:[d,...a]};const c=Math.min(s,d);return{overflow:s-c,widths:[d-c,...a]}},{overflow:i-1,widths:[]});return o},ul=(e,t)=>ra(e,t),go=(e,t)=>{const n=t.filter((i,o)=>o!==e).reduce((i,o)=>i+o,0);return Math.max(1-n,0)},os=(e,t)=>{const n=e.map(i=>t[i.widthKey]??0);return{resolved:ra(e.length,n),effective:ul(e.length,n)}},xg=(e,t,n,i,o,s,a)=>{const d=[];return t&&d.push({prefix:"title1",widthKey:"title1Width",className:`${e}-title1`,style:o,text:t}),n&&d.push({prefix:"title2",widthKey:"title2Width",marginLeftKey:"title2MarginLeft",className:`${e}-title2`,style:s,text:n}),i&&d.push({prefix:"title3",widthKey:"title3Width",marginLeftKey:"title3MarginLeft",className:`${e}-title3`,style:a,text:i}),d},fr=(e,t)=>{const n=i=>{const o=st(t,i);return e[o]};return{fontFamily:n("fontFamily")??"Arial",fontSettings:n("fontSettings")??{fontWeight:400,fontStyle:"normal"},fontSize:n("fontSize"),lineHeight:n("lineHeight"),letterSpacing:n("letterSpacing")??0,wordSpacing:n("wordSpacing")??0,textAlign:n("textAlign")??"left",textAppearance:n("textAppearance"),color:e[mg[t]]}},bg=(e,t,n,i)=>e.slice(0,i).reduce((o,s,a)=>o+(s!=null&&s.marginLeftKey?n[s.marginLeftKey]??0:0)+(t[a]??0),0),yr=(e,t,n)=>{var o,s;const i={fontSettings:{fontFamily:t.fontFamily,fontWeight:((o=t.fontSettings)==null?void 0:o.fontWeight)??400,fontStyle:((s=t.fontSettings)==null?void 0:s.fontStyle)??"normal"},fontSize:t.fontSize??gg[e],lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,wordSpacing:t.wordSpacing,textAlign:t.textAlign,textAppearance:t.textAppearance,color:t.color??"#ffffff"};return kt(i,n)},wg=({prefix:e,images:t,settings:n,isEditor:i,isEditMode:o,isPreviewMode:s,onClose:a})=>{const{backgroundColor:d,thumbnailSize:c,thumbnailGap:p,thumbnailMarginBottom:m,imageGap:x,closeIcon:w,closeIconMaxWidth:$,closeIconColor:h,closeIconHoverColor:v,thumbnailTrigger:b,thumbnailVisibility:S,thumbnailObjectFit:L,thumbnailActive:I,thumbnailActiveColor:N,title1Width:M,title2Width:O,title3Width:k,title1MarginLeft:T=0,title2MarginLeft:J=0,title3MarginLeft:y=0,titleRowMarginBottom:_=0,titleHeaderLayout:H="desktop",contentMarginTop:q,iconMarginLeft:ee}=n,ce=u=>A.scalingValue(u,i??!1),U=c??n.thumnailSize??.03,j=ce(U),B=ce(p),E=ce(m??.02),P=ce(x??0),D=ce(q??0),Z=mo(D),X=ce(ee??0),[z,ae]=l.useState(0),g=l.useRef(z);g.current=z;const se=t[z],{title1:ye,title2:fe,title3:ke}=fg(se),te=yr("title1",fr(n,"title1"),i),ge=yr("title2",fr(n,"title2"),i),Y=yr("title3",fr(n,"title3"),i),ve=H==="mobile",re=!o&&(!i||s),le=re,ne=re,we=re,Te=vn(L),xe=Te?{"--image-aspect-ratio":Xo(L)}:void 0,Ie=!!(ye||fe||ke),F=l.useMemo(()=>xg(e,ye,fe,ke,te,ge,Y),[e,z,ye,fe,ke,te,ge,Y]),Q=l.useMemo(()=>({title1Width:M,title2Width:O,title3Width:k}),[M,O,k]),R=l.useMemo(()=>F.map(u=>Q[u.widthKey]),[F,Q]),V=l.useMemo(()=>ra(F.length,R),[F.length,R]),G=l.useMemo(()=>ul(F.length,R),[F.length,R]),ie=l.useMemo(()=>F.filter(u=>u.prefix==="title1"),[F]),oe=l.useMemo(()=>F.filter(u=>u.prefix==="title2"||u.prefix==="title3"),[F]),he=l.useMemo(()=>os(ie,Q),[ie,Q]),Ae=l.useMemo(()=>os(oe,Q),[oe,Q]),Le=l.useCallback((u,f)=>{const C=F.indexOf(u);if(!ve||f==="single-row")return{effectiveWidth:G[C]??0,resolvedWidth:V[C]??0,maxWidth:go(C,V)};if(f==="two-row-top"){const de=ie.indexOf(u);return{effectiveWidth:he.effective[de]??0,resolvedWidth:he.resolved[de]??0,maxWidth:go(de,he.resolved)}}const K=oe.indexOf(u);return{effectiveWidth:Ae.effective[K]??0,resolvedWidth:Ae.resolved[K]??0,maxWidth:go(K,Ae.resolved)}},[oe,Ae,G,V,F,ie,he,ve]),$e=l.useCallback(u=>A.scalingValue(u,i??!1),[i]),Ge=$e(_??0),pe=l.useMemo(()=>({title1MarginLeft:T,title2MarginLeft:J,title3MarginLeft:y}),[T,J,y]),Pe=l.useCallback(u=>F.slice(0,u+1).reduce((f,C,K)=>f+(C!=null&&C.marginLeftKey?pe[C.marginLeftKey]??0:0)+(V[K]??0),0)+(ve?0:T??0),[F,pe,V,ve,T]),We=l.useCallback(()=>ve?0:T??0,[ve,T]),Be=l.useCallback(u=>oe.slice(0,u).reduce((f,C,K)=>f+(C.marginLeftKey?pe[C.marginLeftKey]??0:0)+(Ae.resolved[K]??0),0),[oe,Ae.resolved,pe]),ct=l.useCallback(u=>{const f=oe[u];return Be(u)+(f.marginLeftKey?pe[f.marginLeftKey]??0:0)+(Ae.resolved[u]??0)},[oe,Ae.resolved,Be,pe]),gt=(u,f)=>{const C=u.marginLeftKey?pe[u.marginLeftKey]??0:0,{effectiveWidth:K,resolvedWidth:de,maxWidth:Se}=Le(u,f),Fe=o&&f==="two-row-top";return r.jsxs("div",{className:`${e}-title-cell`,"data-title":u.prefix,style:{...f==="single-row"?{gridArea:u.prefix}:{},width:$e(K),...C>0?{marginLeft:$e(C)}:{}},children:[r.jsx("p",{className:u.className,style:u.style,children:u.text}),Fe&&u.marginLeftKey&&r.jsx("div",{"data-controls":u.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(de),style:{position:"absolute",top:0,left:$e(-C),width:`max(${$e(C)}, 10px)`,height:"100%",pointerEvents:"auto"}}),Fe&&r.jsx("div",{"data-controls":u.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(Se),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,right:$e(-ti/2),width:$e(ti),height:"100%",pointerEvents:"auto"}})]},u.className)},Ct=()=>{const u=ve?-1:F.findIndex(K=>K.prefix==="title1"),f=!ve&&(o||(T??0)>0)?(()=>{const K=T??0,de=u>=0?V[u]:M??0;return r.jsx("div",{"data-controls":"title1MarginLeft","data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(de),style:{position:"absolute",top:0,left:0,width:`max(${$e(K)}, 10px)`,height:"100%",pointerEvents:"auto"}},"title1MarginLeft")})():null,C=F.flatMap((K,de)=>{if(!K.marginLeftKey)return[];const Se=pe[K.marginLeftKey]??0,Fe=bg(F,V,pe,de)+We();return r.jsx("div",{"data-controls":K.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(V[de]),style:{position:"absolute",top:0,left:$e(Fe),width:`max(${$e(Se)}, 10px)`,height:"100%",pointerEvents:"auto"}},K.marginLeftKey)});return f?[f,...C]:C},vt=()=>F.map((u,f)=>{const C=go(f,V),de=Pe(f)-ti/2;return r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx("div",{"data-controls":u.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(C),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:$e(de),width:$e(ti),height:"100%",pointerEvents:"auto"}})},`${u.widthKey}-junction`)}),$t=()=>oe.flatMap((u,f)=>{if(!u.marginLeftKey)return[];const C=pe[u.marginLeftKey]??0,K=Be(f),{resolvedWidth:de}=Le(u,"two-row-bottom");return r.jsx("div",{"data-controls":u.marginLeftKey,"data-controls-axis":"x","data-controls-min":"0","data-controls-max-fraction":String(de),style:{position:"absolute",top:0,left:$e(K),width:`max(${$e(C)}, 10px)`,height:"100%",pointerEvents:"auto"}},u.marginLeftKey)}),Nt=()=>oe.map((u,f)=>{const{maxWidth:C}=Le(u,"two-row-bottom"),de=ct(f)-ti/2;return r.jsx("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:r.jsx("div",{"data-controls":u.widthKey,"data-controls-axis":"x","data-controls-max-fraction":String(C),"data-controls-variant":"column-width",className:`${e}-title-resize-handle`,style:{position:"absolute",top:0,left:$e(de),width:$e(ti),height:"100%",pointerEvents:"auto"}})},`${u.widthKey}-junction`)}),Pt=l.useRef(null),Ke=l.useRef(null),_e=l.useRef(null),Ze=l.useRef(null),Xe=l.useRef([]),Ne=l.useRef([]),ht=l.useRef(0),ft=l.useRef(null),Je=l.useRef({isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1}),At=l.useRef(null),Ht=l.useRef(null),ze=l.useRef(0),xt=l.useRef("forward"),Qe=l.useRef(0),et=l.useRef(null),rt=l.useRef(!1),dt=t.length>1&&(!o||!!s),jt=dt?3:1,wn=l.useMemo(()=>Array.from({length:jt},()=>t).flat(),[t,jt]),[Fn,nt]=l.useState(!1),[nn,Dt]=l.useState(!1),[zt,qe]=l.useState(!0),ut=l.useRef(null),ue=l.useRef(null),Ce=l.useRef(!1),Re=l.useRef(!1),He=l.useRef(null),tt=l.useRef(null),bt=le&&!zt,Ee=l.useCallback(()=>{le&&(qe(!0),tt.current&&clearTimeout(tt.current),tt.current=setTimeout(()=>{Je.current.isActive||qe(!1)},rg))},[le]),it=l.useCallback(()=>{o||Re.current||(Re.current=!0,Dt(!1),He.current=setTimeout(()=>{a()},Ri))},[o,a]),je=()=>r.jsxs("div",{className:`${e}-close-icon`,"data-overlay-content-hidden":bt?"true":"false",style:{width:A.scalingValue($??0,i),height:A.scalingValue($??0,i),marginRight:X,"--close-icon-hover-color":v},children:[r.jsx("button",{type:"button",className:`${e}-close-icon-inner`,onClick:it,"aria-label":"Close",children:r.jsx(en,{url:w,fill:h,hoverFill:i&&!s?h:v,className:`${e}-close-icon-img`})}),o&&r.jsx("div",{"data-controls":"iconMarginLeft","data-controls-axis":"x","data-controls-reverse":"",className:`${e}-control`,style:{position:"absolute",top:0,left:"100%",width:X,height:"100%",pointerEvents:"auto"}})]}),at=(u="two-row")=>r.jsx("div",{...u==="two-row"&&o?{"data-controls":"title1MarginLeft","data-controls-axis":"x"}:{},style:{width:$e(T??0),flexShrink:0,...u==="single-row"?{gridArea:"margin"}:{alignSelf:"stretch"},...u==="two-row"&&o?{pointerEvents:"auto"}:{}}}),ot=()=>{const u=F.find(K=>K.prefix==="title1"),f=F.filter(K=>K.prefix==="title2"||K.prefix==="title3"),C=f.length>0||o||(_??0)>0;return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:`${e}-header-row-top`,children:[(T??0)>0||o?at():null,u&>(u,"two-row-top"),w&&je()]}),C?r.jsxs("div",{className:`${e}-header-row-bottom-wrap`,children:[f.length>0?r.jsxs("div",{className:`${e}-header-row-bottom`,children:[f.map(K=>gt(K,"two-row-bottom")),o&&r.jsxs(r.Fragment,{children:[$t(),Nt()]})]}):null,r.jsx("div",{"data-controls":o?"titleRowMarginBottom":void 0,"data-controls-axis":o?"y":void 0,"data-controls-reverse":o?"":void 0,className:o?`${e}-control`:void 0,style:{height:Ge,width:"100%",flexShrink:0,pointerEvents:o?"auto":"none"}})]}):null]})},Rt=()=>r.jsxs(r.Fragment,{children:[(T??0)>0||o?at("single-row"):null,F.map(u=>gt(u,"single-row")),o?r.jsxs(r.Fragment,{children:[Ct(),vt()]}):null,w?je():null]}),St=l.useCallback(u=>!!(u.closest("[data-controls]")||u.closest(`.${e}-thumbnails`)||u.closest(`.${e}-close-icon`)),[e]),{isSwipeDragging:De,backdropStyle:wt,mediaAreaStyle:Tt,overlayContentStyle:Lt,swipeHandlers:on,dismissAreaStyle:mt}=cl({enabled:re??!1,onClose:it,animMs:Ri,isBlockedTarget:St}),Ot=()=>{if(!dt||t.length===0)return ht.current=0,0;const u=Ne.current[0],f=Ne.current[t.length];if(!u||!f)return ht.current;const C=f.offsetLeft-u.offsetLeft;return C>0&&(ht.current=C),ht.current},Ft=(u=!1)=>{if(!dt)return;const f=Ke.current,C=Ot();!f||C<=0||C<f.clientWidth*.25||(f.scrollLeft<=0?(f.scrollLeft+=C,u&&(Je.current.scrollLeft+=C),rt.current&&(Qe.current+=C)):f.scrollLeft>=C*2&&(f.scrollLeft-=C,u&&(Je.current.scrollLeft-=C),rt.current&&(Qe.current-=C)))},cn=(u,f=(C=>(C=Ke.current)==null?void 0:C.scrollLeft)()??0)=>{if(!dt)return u;let K=t.length+u,de=1/0;for(let Se=0;Se<jt;Se++){const Fe=Se*t.length+u,Ue=Ne.current[Fe];if(!Ue)continue;const Mt=Math.abs(Ue.offsetLeft-f);Mt<de&&(de=Mt,K=Fe)}return K},$n=u=>{const f=Ke.current;return!u||!f?!1:u.offsetWidth>f.clientWidth+1},dn=u=>{const f=Ke.current;if(!u||!f||!$n(u))return!1;const C=u.offsetLeft,K=C+u.offsetWidth;return f.scrollLeft>=C-1&&f.scrollLeft+f.clientWidth<=K+1},Vt=(u=(f=>(f=Ke.current)==null?void 0:f.scrollLeft)()??0)=>{for(let K=0;K<Ne.current.length;K+=1){const de=Ne.current[K];if(de&&dn(de))return K}let C={flatIndex:0,distance:1/0};return Ne.current.forEach((K,de)=>{if(!K)return;const Se=Math.abs(K.offsetLeft-u);Se<C.distance&&(C={flatIndex:de,distance:Se})}),C.flatIndex},Sn=u=>{Ke.current&&Ne.current.forEach(f=>{f&&(f.style.scrollSnapAlign=$n(f)&&u==="backward"?"end":"start")})},Yn=(u,f,C)=>{const K=u-f,de=Vt(f),Se=Ne.current[de];if(dn(Se))return Vt(u)%t.length;const Fe=Ne.current[de+1],Ue=Se?Fe?Fe.offsetLeft-Se.offsetLeft:Se.offsetWidth:0,Mt=Ue>0?K>Ue*po?1:K<-Ue*po?-1:0:0;return Mt===0?C:dt?(C+Mt+t.length)%t.length:Math.max(0,Math.min(t.length-1,C+Mt))},Jn=l.useCallback((u=!1)=>{if(S!=="on"||o)return;const f=Ze.current,C=g.current,K=Xe.current[C];if(!f||!K||f.scrollWidth<=f.clientWidth)return;const de=f.scrollLeft,Se=de+f.clientWidth,Fe=K.offsetLeft,Ue=Fe+K.offsetWidth;if(Fe>=de&&Ue<=Se)return;const Mt=f.scrollWidth-f.clientWidth;let It=de;if(!u&&ut.current===null){const Qn=Xe.current[C-1],Ci=Xe.current[C+1],no=Qn?K.offsetLeft-Qn.offsetLeft:Ci?Ci.offsetLeft-K.offsetLeft:K.offsetWidth;Ue>Se?It+=no:Fe<de&&(It-=no)}else Ue>Se?It=Ue-f.clientWidth:It=Fe;f.scrollLeft=Math.max(0,Math.min(Mt,It))},[o,S]),Si=l.useCallback((u=!1)=>{u&&(Ce.current=!0),ue.current===null&&(ue.current=requestAnimationFrame(()=>{ue.current=null;const f=Ce.current;Ce.current=!1,Jn(f)}))},[Jn]),Zo=l.useCallback(u=>{if(u===g.current)return;const f=g.current;g.current=u;const C=Math.abs(u-f)>1,K=dt&&t.length>1&&(f===t.length-1&&u===0||f===0&&u===t.length-1);ae(u),Si(C||K)},[t.length,dt,Si]),Yt=()=>{if(!Ke.current||t.length===0||ut.current!==null||Je.current.isActive&&Je.current.hasMoved)return;const u=Ke.current.scrollLeft,f=Vt(u)%t.length;f!==g.current&&Zo(f)},Ji=()=>{ut.current=null},Jt=u=>{const f=Ke.current;f&&(f.style.scrollSnapType=u?"":"none")},un=()=>{var u;(u=Ht.current)==null||u.call(Ht),Ht.current=null},Cn=()=>{et.current!==null&&(cancelAnimationFrame(et.current),et.current=null),rt.current=!1},Wn=()=>{const u=Ke.current;if(!u){et.current=null,rt.current=!1;return}const f=Qe.current-u.scrollLeft;if(Math.abs(f)<.5){u.scrollLeft=Qe.current,Ft(),Yt(),et.current=null,rt.current=!1;return}u.scrollLeft+=f*lg,Ft(),Yt(),Ee(),et.current=requestAnimationFrame(Wn)},Nn=()=>{const u=_e.current;u&&(u.style.transition="",u.style.transform="",u.style.willChange="")},Zi=(u,f,C,K)=>{Nn(),u.scrollLeft=f,ze.current=u.scrollLeft,Ft(),C!==void 0?(g.current=C,ae(C)):Yt(),Jt(!0),K==null||K()},Qi=(u,{behavior:f="smooth",activeIndex:C,onComplete:K}={})=>{const de=Ke.current,Se=_e.current;if(!de||!Se)return;if(Cn(),un(),Jt(!1),f==="auto"){Zi(de,u,C,K);return}const Fe=Math.abs(u-de.scrollLeft),Ue=Zm(Fe,ng,ig,de.clientWidth*.55);Ht.current=tg(de,Se,u,{duration:Ue,easing:og,onComplete:()=>{Ht.current=null,Zi(de,u,C,K)}})},Qo=(u="smooth")=>{const f=Ke.current;if(!f||t.length===0)return;const C=Vt()%t.length,K=cn(C,f.scrollLeft),de=Ne.current[K];de&&Qi(de.offsetLeft,{behavior:u,activeIndex:C})},er=(u,f="smooth",C,K)=>{const de=Ke.current;if(!de||t.length===0)return;const Se=(K??de.scrollLeft)-u,Fe=Vt(u),Ue=Ne.current[Fe];if(dn(Ue)){Jt(!0),Yt();return}const Mt=Ne.current[Fe+1],It=Ue?Mt?Mt.offsetLeft-Ue.offsetLeft:Ue.offsetWidth:0;if((It>0?Se>It*po?1:Se<-It*po?-1:0:0)!==0){const yl=C??Fe%t.length,vl=Yn(K??de.scrollLeft,u,yl);rn(vl,f);return}const Ci=K??de.scrollLeft,no=Vt(Ci),la=Ne.current[no];if(la&&Math.abs(la.offsetLeft-Ci)<1){Jt(!0),Yt();return}Qo("auto")},rn=(u,f="smooth")=>{const C=Ke.current;if(!C||t.length===0)return;const K=cn(u,C.scrollLeft),de=Ne.current[K];de&&(f==="smooth"?ut.current=u:ut.current=null,g.current=u,ae(u),Si(!0),Qi(de.offsetLeft,{behavior:f,activeIndex:u,onComplete:f==="smooth"?Ji:void 0}))},Zn=()=>{At.current&&(window.removeEventListener("pointerup",At.current),window.removeEventListener("pointercancel",At.current),At.current=null)},eo=(u,f,C,K,de)=>{const Se=C-u,Fe=K-f,Ue=Math.abs(Se),Mt=Math.abs(Fe);if(Ue<dg||Ue<=Mt)return!1;const It=Se<0?1:-1,Qn=dt?(de+It+t.length)%t.length:Math.max(0,Math.min(t.length-1,de+It));return Qn===de?!1:(rn(Qn),!0)},Hn=u=>{if(!Je.current.isActive)return;Zn();const f=Ke.current;if(!f)return;const{scrollLeft:C,startActiveIndex:K,hasMoved:de}=Je.current,Se=f.scrollLeft;Ft(!0),Je.current={isActive:!1,startX:0,scrollLeft:0,startActiveIndex:0,hasMoved:!1},nt(!1),u!==void 0&&f.hasPointerCapture(u)&&f.releasePointerCapture(u),de?er(C,"smooth",K,Se):(Jt(!0),Yt()),Ee()},to=(u,f)=>{const C=ft.current;ft.current=null,C&&(eo(C.startX,C.startY,u,f,C.startActiveIndex),Ee())},tr=u=>{if(!ne)return;if(u.pointerType==="touch"){if(Cn(),Jt(!0),St(u.target))return;ft.current={startX:u.clientX,startY:u.clientY,startActiveIndex:g.current};return}if(u.pointerType!=="mouse"||u.button!==0||St(u.target))return;const f=Ke.current;if(!f)return;Cn(),un(),Nn(),ut.current=null,Je.current={isActive:!0,startX:u.clientX,scrollLeft:f.scrollLeft,startActiveIndex:g.current,hasMoved:!1},Jt(!1),Ee(),f.setPointerCapture(u.pointerId),Zn();const C=K=>{K.pointerType==="mouse"&&Hn(K.pointerId)};At.current=C,window.addEventListener("pointerup",C),window.addEventListener("pointercancel",C)},nr=u=>{if(!ne||u.pointerType!=="mouse")return;const f=Ke.current;if(!f||!Je.current.isActive)return;if(u.buttons===0){Hn(u.pointerId);return}const C=u.clientX-Je.current.startX;Math.abs(C)>cg&&(Je.current.hasMoved=!0,nt(!0)),Je.current.hasMoved&&(u.preventDefault(),f.scrollLeft=Je.current.scrollLeft-C,Ft(!0),Yt(),Ee())},W=u=>{if(ne){if(u.pointerType==="touch"){u.type==="pointerup"?to(u.clientX,u.clientY):ft.current=null;return}u.pointerType==="mouse"&&Hn(u.pointerId)}},me=u=>{!ne||u.pointerType!=="mouse"||Hn(u.pointerId)};return dl(),l.useEffect(()=>{const u=requestAnimationFrame(()=>Dt(!0));return()=>{cancelAnimationFrame(u),un(),Zn(),ue.current!==null&&(cancelAnimationFrame(ue.current),ue.current=null),He.current&&clearTimeout(He.current),tt.current&&clearTimeout(tt.current)}},[]),l.useEffect(()=>{if(!le){qe(!0);return}Ee();const u=Pt.current;if(!u)return;const f=()=>Ee();return u.addEventListener("pointermove",f),u.addEventListener("pointerdown",f),()=>{u.removeEventListener("pointermove",f),u.removeEventListener("pointerdown",f),tt.current&&clearTimeout(tt.current)}},[le,Ee]),l.useEffect(()=>{const u=f=>{f.key==="Escape"&&it()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[it]),l.useLayoutEffect(()=>{Ot()},[P,t.length,dt]),l.useLayoutEffect(()=>{o||rn(g.current,"auto")},[P,o]),l.useLayoutEffect(()=>{rn(0,"auto")},[t.length,dt]),l.useEffect(()=>{const u=Ke.current;if(!u||o||!re)return;const f=C=>{if(C.preventDefault(),Math.abs(C.deltaY)<=Math.abs(C.deltaX))return;const K=C.deltaMode===1?sg:C.deltaMode===2?u.clientHeight:1,de=C.deltaY*K*ag;if(de!==0){if(un(),rt.current||(rt.current=!0,Qe.current=u.scrollLeft,ut.current=null,Jt(!1)),Qe.current+=de,!dt){const Se=u.scrollWidth-u.clientWidth;Qe.current=Math.max(0,Math.min(Se,Qe.current))}Ee(),et.current===null&&(et.current=requestAnimationFrame(Wn))}};return u.addEventListener("wheel",f,{passive:!1}),()=>{u.removeEventListener("wheel",f),Cn()}},[o,re,dt]),l.useEffect(()=>{const u=Ke.current;if(!u)return;const f=()=>{Ft(Je.current.isActive);const K=u.scrollLeft,de=K-ze.current;ze.current=K;const Se=ht.current>0?ht.current*.5:1/0;if(de!==0&&Math.abs(de)<Se){const Fe=de>0?"forward":"backward";Fe!==xt.current&&(xt.current=Fe,Sn(Fe))}Je.current.isActive&&Je.current.hasMoved||Yt()};u.addEventListener("scroll",f,{passive:!0});const C=new ResizeObserver(()=>{Ot(),Ft(Je.current.isActive),Sn(xt.current),Yt()});return C.observe(u),()=>{un(),u.removeEventListener("scroll",f),C.disconnect()}},[t.length,dt]),r.jsxs("div",{"data-selection":"none",className:`${e}-lightbox${i?` ${e}-lightbox-editor`:""}${o?` ${e}-lightbox-edit-mode`:""}`,onClick:()=>{De||it()},role:"dialog","aria-modal":"true","aria-label":"Image gallery",style:{opacity:nn?1:0,transition:`opacity ${Ri}ms ease`,pointerEvents:nn?"auto":"none"},children:[r.jsx("div",{className:`${e}-lightbox-backdrop`,style:{backgroundColor:d,...wt}}),r.jsxs("div",{ref:Pt,className:`${e}-lightbox-dismiss-area`,style:mt,...on,children:[r.jsx("div",{className:`${e}-lightbox-content`,style:Tt,onClick:u=>u.stopPropagation(),children:r.jsx("div",{ref:Ke,className:`${e}-lightbox-strip`,"data-lightbox-scrollable":"","data-mouse-draggable":ne&&t.length>0?"true":"false","data-mouse-dragging":Fn?"true":"false",onPointerDown:tr,onPointerMove:nr,onPointerUp:W,onPointerCancel:W,onLostPointerCapture:me,children:r.jsx("div",{ref:_e,className:`${e}-lightbox-strip-track`,style:{gap:P},children:wn.map((u,f)=>{const C=u.image.objectFit??"contain",K=f%t.length,de=Math.floor(f/t.length),Se=mo(P),Fe=`calc(-0.5 * (${Se} + ${P}))`;return r.jsxs("div",{ref:Ue=>Ne.current[f]=Ue,className:`${e}-strip-item`,style:{height:H==="mobile"?"calc(0.75 * var(--cntrl-viewport-height, 100vh))":"75%"},children:[r.jsx("img",{src:u.image.url,draggable:!1,style:{display:"block",maxWidth:"100%",height:"100%",objectFit:C}}),o&&K<t.length-1&&de===0&&r.jsx("div",{"data-controls":"imageGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Fe,width:Se,height:"100%",pointerEvents:"auto",zIndex:3}})]},`${de}-${u.image.url}-${K}`)})})})}),r.jsxs("div",{className:`${e}-lightbox-content-inner`,"data-overlay-content-hidden":bt?"true":"false",style:Lt,children:[r.jsx("div",{style:{position:"relative",width:"100%",height:D,flexShrink:0,pointerEvents:"none"},children:o&&r.jsx("div",{"data-controls":"contentMarginTop","data-controls-axis":"y","data-controls-handle-left-fraction":"0.05",style:{position:"absolute",left:0,right:0,top:0,height:Z,pointerEvents:"auto",zIndex:3}})}),r.jsx("div",{style:{display:"flex",flexDirection:"row",width:"100%",flex:1,minHeight:0,pointerEvents:"none"},children:r.jsx("div",{className:`${e}-lightbox-content-area${ve?` ${e}-lightbox-content-area-stacked`:""}`,children:(Ie||w)&&r.jsx("div",{className:`${e}-header ${ve?`${e}-header-two-row`:`${e}-header-single-row`}`,children:ve?ot():Ie||w?Rt():null})})})]}),t.length>1&&S==="on"&&(()=>{const u=mo(E),f=`calc(-0.5 * (${E} + ${u}))`;return r.jsx("div",{className:`${e}-thumbnails-wrap`,style:{bottom:E},children:r.jsx("div",{ref:Ze,className:`${e}-thumbnails`,"data-lightbox-scrollable":"",onClick:C=>C.stopPropagation(),children:r.jsxs("div",{className:`${e}-thumbnails-track`,"data-thumbnail-active":I,style:{gap:B,"--thumbnail-active-color":N},children:[t.map((C,K)=>{const de=mo(B),Se=`calc(-0.5 * (${de} + ${B}))`;return r.jsxs("div",{ref:Fe=>{Xe.current[K]=Fe},style:{position:"relative",flex:"0 0 auto"},children:[r.jsx("button",{type:"button",className:`${e}-thumb`,"data-active":z===K?"true":"false",onClick:()=>re&&b==="click"&&rn(K),onMouseEnter:()=>we&&b==="hover"&&rn(K),"aria-label":C.image.name?`View ${C.image.name}`:`View image ${K+1}`,"aria-current":z===K?"true":void 0,children:r.jsx("img",{className:`${e}-thumb-image${Te?` ${e}-thumb-image-cover`:""}`,src:C.image.url,alt:"",draggable:!1,style:{...xe,maxWidth:j,maxHeight:j,width:L.display==="cover"?"auto":"100%",height:"auto",objectFit:L.display==="cover"?"cover":"contain"}})}),o&&K<t.length-1&&r.jsx("div",{"data-controls":"thumbnailGap","data-controls-axis":"x",style:{position:"absolute",top:0,right:Se,width:de,height:"100%",pointerEvents:"auto",zIndex:3}})]},`thumb-${C.image.url}-${K}`)}),o&&r.jsx("div",{"data-controls":"thumbnailMarginBottom","data-controls-axis":"y","data-controls-reverse":o?"":void 0,style:{position:"absolute",left:0,right:0,bottom:f,height:u,pointerEvents:"auto",zIndex:3}})]})})})})()]})]})};function $g(e){return`
|
|
10232
10232
|
.${e}-wrapper {
|
|
10233
10233
|
position: relative;
|
|
10234
10234
|
width: 100%;
|
|
@@ -10287,10 +10287,10 @@ export function FAQ({ settings, content, isEditor, isPreviewMode, isEditMode, ac
|
|
|
10287
10287
|
.${e}-lightbox-editor {
|
|
10288
10288
|
inset: auto;
|
|
10289
10289
|
top: var(--cntrl-article-top, 0);
|
|
10290
|
-
overflow: hidden;
|
|
10291
10290
|
left: var(--cntrl-article-left, 0);
|
|
10292
10291
|
width: var(--cntrl-article-width, 100vw) !important;
|
|
10293
10292
|
height: var(--cntrl-viewport-height, 100vh) !important;
|
|
10293
|
+
overflow: hidden;
|
|
10294
10294
|
}
|
|
10295
10295
|
|
|
10296
10296
|
.${e}-lightbox-edit-mode {
|
|
@@ -10706,10 +10706,10 @@ function getCSS(P: string): string {
|
|
|
10706
10706
|
.\${P}-lightbox-editor {
|
|
10707
10707
|
inset: auto;
|
|
10708
10708
|
top: var(--cntrl-article-top, 0);
|
|
10709
|
-
overflow: hidden;
|
|
10710
10709
|
left: var(--cntrl-article-left, 0);
|
|
10711
10710
|
width: var(--cntrl-article-width, 100vw) !important;
|
|
10712
10711
|
height: var(--cntrl-viewport-height, 100vh) !important;
|
|
10712
|
+
overflow: hidden;
|
|
10713
10713
|
}
|
|
10714
10714
|
|
|
10715
10715
|
.\${P}-lightbox-edit-mode {
|
package/dist/index.mjs
CHANGED
|
@@ -25083,7 +25083,7 @@ const ps = {
|
|
|
25083
25083
|
{
|
|
25084
25084
|
ref: (et) => De.current[h] = et,
|
|
25085
25085
|
className: `${e}-strip-item`,
|
|
25086
|
-
style: { height: F === "mobile" ? "
|
|
25086
|
+
style: { height: F === "mobile" ? "calc(0.75 * var(--cntrl-viewport-height, 100vh))" : "75%" },
|
|
25087
25087
|
children: [
|
|
25088
25088
|
/* @__PURE__ */ s(
|
|
25089
25089
|
"img",
|
|
@@ -25337,10 +25337,10 @@ function _g(e) {
|
|
|
25337
25337
|
.${e}-lightbox-editor {
|
|
25338
25338
|
inset: auto;
|
|
25339
25339
|
top: var(--cntrl-article-top, 0);
|
|
25340
|
-
overflow: hidden;
|
|
25341
25340
|
left: var(--cntrl-article-left, 0);
|
|
25342
25341
|
width: var(--cntrl-article-width, 100vw) !important;
|
|
25343
25342
|
height: var(--cntrl-viewport-height, 100vh) !important;
|
|
25343
|
+
overflow: hidden;
|
|
25344
25344
|
}
|
|
25345
25345
|
|
|
25346
25346
|
.${e}-lightbox-edit-mode {
|
|
@@ -25804,10 +25804,10 @@ function getCSS(P: string): string {
|
|
|
25804
25804
|
.\${P}-lightbox-editor {
|
|
25805
25805
|
inset: auto;
|
|
25806
25806
|
top: var(--cntrl-article-top, 0);
|
|
25807
|
-
overflow: hidden;
|
|
25808
25807
|
left: var(--cntrl-article-left, 0);
|
|
25809
25808
|
width: var(--cntrl-article-width, 100vw) !important;
|
|
25810
25809
|
height: var(--cntrl-viewport-height, 100vh) !important;
|
|
25810
|
+
overflow: hidden;
|
|
25811
25811
|
}
|
|
25812
25812
|
|
|
25813
25813
|
.\${P}-lightbox-edit-mode {
|