export default function generateResponsiveCSS(...e){let t=!1,o=!1,S=!1,l=!1,p=!1,a=e.reduce(((e,t)=>t?(e[t.selector]={mobileCSS:"",mobileLandscapeCSS:"",tabletCSS:"",laptopCSS:"",desktopCSS:""},e):e),{});e.forEach((e=>{const{selector:i,property:n,value:$,valueFn:b}=e;null!=$&&("string"==typeof $&&$.trim().length>0?(t=!0,a[i].mobileCSS+=b&&"function"==typeof b?`${n}: ${b($)};`:`${n}: ${$};`):"object"==typeof $&&(void 0!==$.mobile&&(t=!0,b&&"function"==typeof b?a[i].mobileCSS+=`${n}: ${b($.mobile)};`:`${$.mobile}`.length>0&&(a[i].mobileCSS+=`${n}: ${$.mobile};`)),void 0!==$.mobileLandscape&&(o=!0,b&&"function"==typeof b?a[i].mobileLandscapeCSS+=`${n}: ${b($.mobileLandscape)};`:`${$.mobileLandscape}`.length>0&&(a[i].mobileLandscapeCSS+=`${n}: ${$.mobileLandscape};`)),void 0!==$.tablet&&(S=!0,b&&"function"==typeof b?a[i].tabletCSS+=`${n}: ${b($.tablet)};`:`${$.tablet}`.length>0&&(a[i].tabletCSS+=`${n}: ${$.tablet};`)),void 0!==$.laptop&&(l=!0,b&&"function"==typeof b?a[i].laptopCSS+=`${n}: ${b($.laptop)};`:`${$.laptop}`.length>0&&(a[i].laptopCSS+=`${n}: ${$.laptop};`)),void 0!==$.desktop&&(p=!0,b&&"function"==typeof b?a[i].desktopCSS+=`${n}: ${b($.desktop)};`:`${$.desktop}`.length>0&&(a[i].desktopCSS+=`${n}: ${$.desktop};`))))}));let i="";return t&&Object.keys(a).forEach((e=>{i+=a[e].mobileCSS?`${e} {${a[e].mobileCSS}}`:""})),o&&(i+="@media (min-width: 640px) {",Object.keys(a).forEach((e=>{i+=a[e].mobileLandscapeCSS?`${e} {${a[e].mobileLandscapeCSS}}`:""})),i+="}"),S&&(i+="@media (min-width: 768px) {",Object.keys(a).forEach((e=>{i+=a[e].tabletCSS?`${e} {${a[e].tabletCSS}}`:""})),i+="}"),l&&(i+="@media (min-width: 1024px) {",Object.keys(a).forEach((e=>{i+=a[e].laptopCSS?`${e} {${a[e].laptopCSS}}`:""})),i+="}"),p&&(i+="@media (min-width: 1280px) {",Object.keys(a).forEach((e=>{i+=a[e].desktopCSS?`${e} {${a[e].desktopCSS}}`:""})),i+="}"),i}