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