"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../../text/components/Text.liquid.js");exports.default=({setting:d,styles:r,advanced:l,builderProps:o})=>{let n=d?.label&&d.label.trim().length>0?`${d.label}`:"";return e.template`
    {%- 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.default({styles:r,setting:{...d,text:`${n} {{ product.vendor }}`,excludeFlex:!0,isForceValue:!0},advanced:l,builderProps:o})}
        </a>
      `:`
        ${t.default({styles:r,setting:{...d,text:`${n} {{ product.vendor }}`,excludeFlex:!0,isForceValue:!0},advanced:l,builderProps:o})}
      `}
    {%- endunless -%}
  `};
