"use strict";var e=require("@gem-sdk/core");const t=(e={})=>{let{desktop:t="",tablet:o=t,mobile:l=o||t}=e;return{desktop:t,tablet:o,mobile:l}};exports.getStyleWidthByPositionResponsive=e=>{let o={desktop:"",tablet:"",mobile:""};if(e.position)for(let l of Object.keys(o))if(e.position[l]&&"top"!==e.position[l]){let r=t(e.labelWidth);o[l]=r?.[l]||"min-content"}else{let r=t(e.panelWidth);o[l]=r?.[l]||"auto"}return o},exports.getUlClassByPositionResponsive=e=>{let t="";if(e)for(let[o,l]of Object.entries(e))"left"===l||"right"===l?t+=` ${"desktop"===o?"gp-flex-col":o+":gp-flex-col"}`:t+=` ${"desktop"===o?"gp-flex-row":o+":gp-flex-row"}`;return t},exports.getWrapClassByPositionResponsive=e=>{let t="";if(e)for(let[o,l]of Object.entries(e))"left"===l?t+=` ${"desktop"===o?"gp-flex-row":o+":gp-flex-row"}`:"right"===l?t+=` ${"desktop"===o?"gp-flex-row-reverse":o+":gp-flex-row-reverse"}`:"top"===l?t+=` ${"desktop"===o?"gp-flex-col":o+":gp-flex-col"}`:"bottom"===l&&(t+=` ${"desktop"===o?"gp-flex-col-reverse":o+":gp-flex-col-reverse"}`);return t},exports.makeStyleLayoutFullWidthResponsive=(t,o)=>e.DEVICES.map(l=>{if("100%"===e.getValueByDevice(t,l))return`.${o?.uid}
      .wrap-width_full_${l}_top_true { width: 100%; } .${o?.uid} .wrap-width_full_${l}_top_true .gp-tab-item { flex: 1 }`}).join("");
