"use strict";var e=require("@gem-sdk/core"),t=require("@gem-sdk/system");exports.BreadcrumbProductTemplate=({getBreadcrumbChildIconStyles:l,breadcrumbSecondItemClasses:s,breadcrumbChildItemStyles:c,iconSvg:i,composePageClasses:a,breadcrumbChildSecondItemStyles:o,breadcrumbSubPageIconItemClasses:r,composeSubPageClasses:n})=>e.template`
    ${t.LiquidIf('tpl == "product"',e.template`
       ${t.LiquidIf("product.collections",`
        {% assign collect = false %}
          ${t.Liquid(`
            {% 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.LiquidIf("collect",e.template`
              <span style="${l}" class="${r}">${i}</span>
              <a class="${n}" title="{{ collect.title | strip_html | escape }}" href="{{ collect.url }}" style="${o}">{{ collect.title }}</a>
           `)}
        `)}
      <span style="${l}" class="${s}">${i}</span>
      <span class="${a}" style="${c}">{{ product.title }}</span>
      `)}
  `;
