"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),Text_liquid=require("../../../text/components/Text.liquid.js");const ProductVendor=({setting:e,styles:t,advanced:d,builderProps:r})=>{let o=e?.label&&e.label.trim().length>0?`${e.label}`:"";return core.template`
    {%- unless product -%}
      <p>Product not found</p>
    {%- else -%}
      {% assign encoded_product_vendor = product.vendor | url_encode %}
      ${e?.url?`
        <a href="/collections/vendors?q={{ encoded_product_vendor }}" title="{{ encoded_product_vendor }}" target="${"new-tab"===e.openIn?"_blank":"_self"}">
        ${Text_liquid.default({styles:t,setting:{...e,text:`${o} {{ product.vendor }}`,excludeFlex:!0},advanced:d,builderProps:r})}
        </a>
      `:`
        ${Text_liquid.default({styles:t,setting:{...e,text:`${o} {{ product.vendor }}`,excludeFlex:!0},advanced:d,builderProps:r})}
      `}
    {%- endunless -%}
  `};exports.default=ProductVendor;
