import{cls as e}from"@gem-sdk/core";import{getHiddenOnPageByDevice as t}from"./helpers.js";let l=(l,s)=>{let a=t("tablet",l),g=t("mobile",l),i=e({"gp-hidden":l?.desktop&&s?.extendCondition,"tablet:gp-hidden":a&&s?.extendCondition,"tablet:gp-flex":!a,"mobile:gp-hidden":g&&s?.extendCondition,"mobile:gp-flex":!g}),r=`${i} ${s?.additionalStaticClasses}`.trim();return o(r)},s=`
    gp-flex gp-flex-wrap gp-align-center gp-w-full
    !gp-gap-x-[var(--gap-desktop)] tablet:!gp-gap-x-[var(--gap-tablet)] mobile:!gp-gap-x-[var(--gap-mobile)]
  `,a=`
    gp-inline-flex gp-items-center gp-justify-center gp-overflow-hidden
    [&>svg]:!gp-text-[var(--color)] [&>svg]:!gp-h-[var(--height-desktop)]
    [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--height-tablet)]
    mobile:[&>svg]:!gp-h-[var(--height-mobile)]
    `,g=(e,t,s)=>{let g=l(t,{additionalStaticClasses:a,extendCondition:e+1===s});return g},i=(t,l,s)=>{let a=e({"gp-cursor-pointer":t+1!==l},"gp-inline-flex gp-select-none gp-w-fit",s);return{...o(a)}},r=()=>({...o(e("gp-flex"))}),p=t=>{let l=e("gp-flex",t);return o(l)},n=()=>o(s),o=e=>e.trim().split(/\s+/).reduce((e,t)=>(e[t]=!0,e),{});export{l as generateBreadcrumbClasses,i as getBreadcrumbChildItemClasses,p as getBreadcrumbClasses,r as getBreadcrumbContainerChildItemClasses,g as getBreadcrumbSecondItemClasses,n as getNavClasses,s as staticFirstClasses,a as staticSecondClasses};
