"use strict";var core=require("@gem-sdk/core");const getYotpoFormCode=e=>{if(!e)return"";let t="";return e.replace(/data-yotpo-instance-id ?= ?"([^"]+)"/gi,r=>(t=(t=(t=(t=r).replace("data-yotpo-instance-id=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t},getYotpoUri=e=>{if(!e)return"";let t="";return(e.replace(/src ?= ?"([^"]+)"/gi,r=>(t=(t=(t=(t=r).replace("src=","")).replace(/['"]+/g,"")).replace(/["']+/g,""),e)),t)?t:""},getLiquidForAppBlock=(e,t,r)=>core.template`
    {% assign app_blocks = section.blocks | where: "type", "@app" %}
    <div
      class="gp-flex gp-w-full gp-items-center ${r}"
      style="${{...core.makeStyleResponsive("jc",t)}}"
    >
      {% for block in app_blocks %}
        {% if block.type == '@app' and block.id contains '${e}' %}
          {% render block %}
        {% endif %}
      {% endfor %}
    </div>
  `,get3rdPartyInstallLink=({handle:e})=>`https://gempages.co/${e}`;exports.get3rdPartyInstallLink=get3rdPartyInstallLink,exports.getLiquidForAppBlock=getLiquidForAppBlock,exports.getYotpoFormCode=getYotpoFormCode,exports.getYotpoUri=getYotpoUri;
