"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../../helpers.js"),r=require("../../../text/components/Text.liquid.js"),s=require("@gem-sdk/system"),l=require("./common/helpers.js");exports.default=i=>{let{setting:p,builderProps:a}=i,u=`<p>${t.getStaticLocale("ProductTitle","product_not_found")}</p>`,d=()=>r.default(l.getTextProps(i)),o=s.createAttr({href:"{{ product.url }}",title:"{{ product.title }}"}),c=p?.linkProduct,n=s.createClass({"gp-product-title-link-wrapper":!0}),g=s.createStateOrContext({setting:{linkProduct:p?.linkProduct},uid:a?.uid});return s.LiquidUnless("product",`${u}`,e.template`
      <gp-product-title
        gp-data='${e.dataStringify(g)}'
      >
        ${s.If(c,e.template`<a ${o} class="${n}">
            ${d()}
            </a>`,e.template`${d()}`)}
      </gp-product-title>
      ${(()=>{let r=e.isLocalEnv?"{{ 'gp-product-title-v7-5.js' | asset_url }}":`${e.baseAssetURL}/assets-v2/gp-product-title-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${t.getSettingPreloadData('class="gps-link" delay',"src")}="${r}" defer="defer"></script>`})()}
    `)};
