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