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