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