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