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