import{template as s,makeStyleResponsive as e,RenderIf as r,isLocalEnv as o,baseAssetURL as a}from"@gem-sdk/core";import{getSettingPreloadData as c}from"../../helpers.js";import{getLiquidForAppBlock as t}from"../common/helpers.js";let BoostAISearchDiscovery=({setting:i,advanced:l})=>{let{appBlockId:d,widgetType:p,align:v}=i??{};return p?t(d,v,`${l?.cssClass??""} !gp-block [&_*]:gp-max-w-none`):s`
    <div
      class="${l?.cssClass}"
      style="${{...e("ta",i?.align)}}"
    >
      <div class="boost-sd__filter-block"></div>
      ${r(o,`<script ${c('class="gps-link" delay',"src")}="{{ 'gp-boost-ai-search-and-discovery-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${c('class="gps-link" delay',"src")}="${a}/assets-v2/gp-boost-ai-search-and-discovery-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
      </div>
  `};export{BoostAISearchDiscovery as default};
