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