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