"use strict";var core=require("@gem-sdk/core"),system=require("@gem-sdk/system");const getData=e=>{let t=["mobile","tablet","desktop"],{setting:r,rootId:o,builderProps:s,styles:a,moveToIdx:n,isHiddenArrowWhenDisabled:c}=e,i=o??s?.uid,l=`gp-carousel-slider-${s?.uid}`,{enableAction:g={desktop:!0},navigationStyle:u,navigationEnable:p={desktop:!0}}=r??{},d=()=>{let e=r?.loop;return t.forEach(t=>{e={...e,[t]:!!core.getResponsiveValueByScreen(g)&&e?.[t]}}),e},y=()=>{let e=u;return t.forEach(t=>{e={...e,[t]:core.getResponsiveValueByScreen(p,t)?core.getResponsiveValueByScreen(e,t):"none"}}),e},m=system.createStateOrContext({id:i,moveToIdx:n,isHiddenArrowWhenDisabled:c,setting:r,styles:a});return{loopConfig:d(),stateData:JSON.stringify(m).replaceAll("'","&#039;"),uniqueComponentId:i,arrowShowConfig:y(),sliderSelector:l}};exports.getData=getData;
