"use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");const s=(s,r)=>{let l=t.getHiddenOnPageByDevice("tablet",s),i=t.getHiddenOnPageByDevice("mobile",s),a=e.cls({"gp-hidden":s?.desktop&&r?.extendCondition,"tablet:gp-hidden":l&&r?.extendCondition,"tablet:gp-flex":!l,"mobile:gp-hidden":i&&r?.extendCondition,"mobile:gp-flex":!i}),p=`${a} ${r?.additionalStaticClasses}`.trim();return g(p)},r=`
    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)]
  `,l=`
    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=>e.trim().split(/\s+/).reduce((e,t)=>(e[t]=!0,e),{});exports.generateBreadcrumbClasses=s,exports.getBreadcrumbChildItemClasses=(t,s,r)=>{let l=e.cls({"gp-cursor-pointer":t+1!==s},"gp-inline-flex gp-select-none gp-w-fit",r);return{...g(l)}},exports.getBreadcrumbClasses=t=>{let s=e.cls("gp-flex",t);return g(s)},exports.getBreadcrumbContainerChildItemClasses=()=>({...g(e.cls("gp-flex"))}),exports.getBreadcrumbSecondItemClasses=(e,t,r)=>{let g=s(t,{additionalStaticClasses:l,extendCondition:e+1===r});return g},exports.getNavClasses=()=>g(r),exports.staticFirstClasses=r,exports.staticSecondClasses=l;
