import{DEVICES as t,getResponsiveValueByScreen as e}from"@gem-sdk/core";let l=t=>{let e=t.desktop,l=t.tablet?t.tablet:e,i=t.mobile?t.mobile:l;return{desktop:e,tablet:l,mobile:i}},i=({vertical:l,arrowType:i,gapToEachSize:o,left:a})=>{let r={};return t.forEach(t=>{let p=e(l,t,!1),b="desktop"===t?"":`-${t}`;p?(r[`top${b}`]="inside"===i[t]&&a?o+"px":"initial",r[`left${b}`]=a?"initial":"",r[`bottom${b}`]="inside"!==i[t]||a?"initial":o+"px",r[`right${b}`]=a?"":"initial"):(a?(r[`left${b}`]="inside"===i[t]?o+"px":"3px",r[`right${b}`]="initial"):(r[`right${b}`]="inside"===i[t]?o+"px":"3px",r[`left${b}`]="initial"),r[`top${b}`]=a?"initial":"",r[`bottom${b}`]=a?"":"initial")}),r},o=(l,i)=>{let o={},a={vertical:{left:{desktop:"gp-rotate-[-90deg]",tablet:"tablet:gp-rotate-[-90deg]",mobile:"mobile:gp-rotate-[-90deg]"},right:{desktop:"gp-rotate-90",tablet:"tablet:gp-rotate-90",mobile:"mobile:gp-rotate-90"}},horizontal:{left:{desktop:"gp-rotate-180",tablet:"tablet:gp-rotate-180",mobile:"mobile:gp-rotate-180"},right:{desktop:"gp-rotate-0",tablet:"tablet:gp-rotate-0",mobile:"mobile:gp-rotate-0"}}};return t.forEach(t=>{let r=e(i,t,!1),p=a[r?"vertical":"horizontal"][l?"left":"right"][t];o[p]=!0}),o},a=e=>{let l={inside:{desktop:"!gp-flex !gp-absolute gp-z-2",tablet:"tablet:!gp-flex tablet:!gp-absolute tablet:gp-z-2",mobile:"mobile:!gp-flex mobile:!gp-absolute mobile:gp-z-2"},outside:{desktop:"!gp-flex !gp-relative",tablet:"tablet:!gp-flex tablet:!gp-relative",mobile:"mobile:!gp-flex mobile:!gp-relative"},none:{desktop:"!gp-hidden",tablet:"tablet:!gp-hidden",mobile:"mobile:!gp-hidden"}},i={};return t.forEach(t=>{let o=e?.[t];o&&l[o]||(o="none");let a=l[o][t];i[a]=!0}),i},r=l=>{let i={};return t.forEach(t=>{let o=e(l,t,"none");i={...i,[t]:"none"===o?"none":"flex"}}),i},p=e=>{let l=e=>{let l={...e},i=t.filter(t=>!Object.keys(l).includes(t));return i.forEach(t=>{"tablet"===t&&(l[t]=l.desktop),"mobile"===t&&(l[t]=l.tablet)}),l};if(e?.layout==="vertical"){let{controlOverContent:i,arrow:o}=e,a=l(o),r=l(i),p={};return t.forEach(t=>{a[t]?a[t]&&r[t]?p[t]="inside":p[t]="outside":p[t]="none"}),{...e,navigationStyle:p}}return e},b=t=>{let e=!!t.custom&&""!==t.custom;return{isRenderCustomIcon:e}},g=(t,e,l)=>{for(let i of({mobile:["mobile","tablet","desktop"],tablet:["tablet","desktop"],desktop:["desktop"]})[e]){let e=t?.[i]?.[l];if(void 0!==e)return""===e?"auto":e}return"auto"},n=t=>({"--w":g(t,"desktop","width"),"--w-tablet":g(t,"tablet","width"),"--w-mobile":g(t,"mobile","width")}),s=t=>({"--h":g(t,"desktop","height"),"--h-tablet":g(t,"tablet","height"),"--h-mobile":g(t,"mobile","height")});export{r as getArrowDisplayStyle,i as getArrowPositionStyle,a as getClassArrowDisplay,o as getClassArrowRotate,b as getData,s as getResponsiveHeight,l as getResponsiveSetting,n as getResponsiveWidth,p as mappingNavigationCarousel};
