import{template as l}from"@gem-sdk/core";import{LiquidIf as t,Liquid as e}from"@gem-sdk/system";let BreadcrumbProductTemplate=({getBreadcrumbChildIconStyles:s,breadcrumbSecondItemClasses:c,breadcrumbChildItemStyles:o,iconSvg:r,composePageClasses:a,breadcrumbChildSecondItemStyles:i,breadcrumbSubPageIconItemClasses:n,composeSubPageClasses:p})=>l`
    ${t('tpl == "product"',l`
       ${t("product.collections",`
        {% assign collect = false %}
          ${e(`
            {% if request and request.path contains "/collections/" %}
              {% assign collectionUrl = request.path | split: "/products/" | first %}
              {% assign collectionHandle = collectionUrl | split: "/collections/" | reverse | first %}
              {% assign collect = product.collections | where: "handle", collectionHandle | first %}
            {% endif %}
          `)}
          ${t("collect",l`
              <span style="${s}" class="${n}">${r}</span>
              <a class="${p}" title="{{ collect.title | strip_html | escape }}" href="{{ collect.url }}" style="${i}">{{ collect.title }}</a>
           `)}
        `)}
      <span style="${s}" class="${c}">${r}</span>
      <span class="${a}" style="${o}">{{ product.title }}</span>
      `)}
  `;export{BreadcrumbProductTemplate};
