"use strict";var e=require("@gem-sdk/core");exports.getArrowDisplayStyle=t=>{let l={};return e.DEVICES.forEach(o=>{let i=e.getResponsiveValueByScreen(t,o,"none");l={...l,[o]:"none"===i?"none":"flex"}}),l},exports.getArrowPositionStyle=({vertical:t,arrowType:l,gapToEachSize:o,left:i})=>{let r={};return e.DEVICES.forEach(a=>{let p=e.getResponsiveValueByScreen(t,a,!1),g="desktop"===a?"":`-${a}`;p?(r[`top${g}`]="inside"===l[a]&&i?o+"px":"initial",r[`left${g}`]=i?"initial":"",r[`bottom${g}`]="inside"!==l[a]||i?"initial":o+"px",r[`right${g}`]=i?"":"initial"):(i?(r[`left${g}`]="inside"===l[a]?o+"px":"3px",r[`right${g}`]="initial"):(r[`right${g}`]="inside"===l[a]?o+"px":"3px",r[`left${g}`]="initial"),r[`top${g}`]=i?"initial":"",r[`bottom${g}`]=i?"":"initial")}),r},exports.getClassArrowDisplay=t=>{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"}},o={};return e.DEVICES.forEach(e=>{let i=t?.[e];i&&l[i]||(i="none");let r=l[i][e];o[r]=!0}),o},exports.getClassArrowRotate=(t,l)=>{let o={},i={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 e.DEVICES.forEach(r=>{let a=e.getResponsiveValueByScreen(l,r,!1),p=i[a?"vertical":"horizontal"][t?"left":"right"][r];o[p]=!0}),o},exports.getData=e=>{let t=!!e.custom&&""!==e.custom;return{isRenderCustomIcon:t}},exports.getResponsiveSetting=e=>{let t=e.desktop,l=e.tablet?e.tablet:t,o=e.mobile?e.mobile:l;return{desktop:t,tablet:l,mobile:o}},exports.mappingNavigationCarousel=t=>{let l=t=>{let l={...t},o=e.DEVICES.filter(e=>!Object.keys(l).includes(e));return o.forEach(e=>{"tablet"===e&&(l[e]=l.desktop),"mobile"===e&&(l[e]=l.tablet)}),l};if(t?.layout==="vertical"){let{controlOverContent:o,arrow:i}=t,r=l(i),a=l(o),p={};return e.DEVICES.forEach(e=>{r[e]?r[e]&&a[e]?p[e]="inside":p[e]="outside":p[e]="none"}),{...t,navigationStyle:p}}return t};
