import{template as e,makeStyleResponsive as t}from"@gem-sdk/core";let 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=(r,o,p)=>e`
    {% assign app_blocks = section.blocks | where: "type", "@app" %}
    <div
      class="gp-flex gp-w-full gp-items-center ${p}"
      style="${{...t("jc",o)}}"
    >
      {% for block in app_blocks %}
        {% if block.type == '@app' and block.id contains '${r}' %}
          {% render block %}
        {% endif %}
      {% endfor %}
    </div>
  `,get3rdPartyInstallLink=({handle:e})=>`https://gempages.co/${e}`;export{get3rdPartyInstallLink,getLiquidForAppBlock,getYotpoFormCode,getYotpoUri};
