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