[{$smarty.block.parent}] [{d3modcfgcheck modid="d3_extsearch"}][{/d3modcfgcheck}] [{if $mod_d3_extsearch && false == $oModCfg_d3_extsearch->isThemeIdMappedTo('mobile')}] [{if $blUseSuggestSearch}] [{strip}] [{block name="d3_extsearch_js__suggest"}] [{block name="d3_extsearch_js__suggest_jsfile"}] [{oxscript include=$oViewConf->getModuleUrl('d3_extsearch', 'out/src/js/wave/d3extsearch.min.js')}] [{/block}] [{block name="d3_extsearch_js__suggest_jssuggestcall"}] [{assign var="sCharSet" value="charset"|oxmultilangassign}] [{capture name="d3script"}][{strip}] document.addEventListener("DOMContentLoaded", () => { try { var suggestSearch = new d3ExtsearchSuggest({ sWaitMessage: '[{$sD3QSWaitMessage|strip|oxescape:"htmlall":$sCharSet}]', sParentThemeId: '[{$oModCfg_d3_extsearch->getReferenceThemeId()}]', sRequestUrl: '[{$oViewConf->getSelfLink()|oxaddparams:"cl=d3_extsearch_response"|cat:"&=shp="|cat:$oViewConf->getActiveShopId()|cat:"&"}]', iMinCharCount: 3 }); } catch (e) { [{* don't use console.error because of undefined break in PhantomJS while generating critical css *}] console.error(e.message); } }); [{/strip}][{/capture}] [{oxscript add=$smarty.capture.d3script}] [{/block}] [{if !$blD3EmptySearch}] [{assign var="sSBDefault" value="D3_EXTSEARCH_FIELD_NOTICE"|oxmultilangassign}] [{oxscript add="var sD3SearchBoxDefault = '"|cat:$sSBDefault|cat:"';"}] [{else}] [{oxscript add="var sD3SearchBoxDefault = '';"}] [{/if}] [{/block}] [{/strip}] [{/if}] [{if $blD3ShowIAS}] [{strip}] [{block name="d3_extsearch_js__ias"}] [{block name="d3_extsearch_js__ias_jsfile"}] [{oxscript include=$oViewConf->getModuleUrl('d3_extsearch', 'out/src/js/wave/d3extsearch_ias.min.js')}] [{/block}] [{block name="d3_extsearch_js__suggest_jsiascall"}] [{assign var="sCharSet" value="charset"|oxmultilangassign}] [{capture name="d3script"}][{strip}] document.addEventListener("DOMContentLoaded", () => { try { new d3ExtsearchIAS(); } catch (e) { [{* don't use console.error because of undefined break in PhantomJS while generating critical css *}] console.error(e.message); } }); [{/strip}][{/capture}] [{oxscript add=$smarty.capture.d3script}] [{/block}]