{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace ot=Opentalent\OtTemplating\ViewHelpers}

<f:comment><!--
Assets included with the VHS viewhelpers

/!\ Warning: assets'names shall be uniques, even among styles and scripts viewhelpers!
--></f:comment>

<v:variable.set name="assets_dir" value="EXT:ot_templating/Resources/Public/assets/Classic" />

<f:comment><!-- Style assets --></f:comment>
<v:asset.style name="classic-fontAwesome"
               path="{assets_dir}/style/ext/font-awesome/css/all.min.css"/>

<v:asset.style name="classic-jquery-ui-css"
               path="{assets_dir}/style/ext/jquery-ui.min.css"/>

<v:asset.style name="classic-slick-css"
               path="{assets_dir}/style/ext/slick.css"/>

<v:asset.style name="classic-slick-theme"
               path="{assets_dir}/style/ext/slick-theme.css"/>

<f:comment><!-- Leaflet's path shall not be rewritten since
                it won't find the images files anymore --></f:comment>
<v:asset.style name="classic-leaflet-css"
               path="{assets_dir}/style/ext/leaflet.css"
               rewrite="0"
               standalone="1"/>

<v:asset.style name="classic-leaflet-clusters-css"
               path="{assets_dir}/style/ext/MarkerCluster.css"
               rewrite="0"
               standalone="1"/>

<v:asset.style name="classic-leaflet-clusters-default-css"
               path="{assets_dir}/style/ext/MarkerCluster.Default.css"
               rewrite="0"
               standalone="1"/>

<f:comment><!-- Theme's file shall not be rewritten since
                it may not be updated from a website to another --></f:comment>
<v:asset.style name="classic-theme"
               path="{assets_dir}/style/classic-{ot:template.getPreference(key: 'themeColor')}.css"
               dependencies="fontAwesome,slick,slick-theme,leaflet"
               rewrite="0"
               standalone="1"/>


<f:comment><!-- Script assets --></f:comment>
<v:asset.script name="classic-jquery"
                path="{assets_dir}/script/jquery-3.4.1.min.js"
                defer="1"/>

<v:asset.script name="classic-datepicker"
                path="{assets_dir}/script/jquery-ui.min.js"
                defer="1"/>

<v:asset.script name="classic-slick"
                path="{assets_dir}/script/slick.min.js"
                dependencies="classic-jquery"
                defer="1"/>

<v:asset.script name="classic-leaflet"
                path="{assets_dir}/script/leaflet.js"
                defer="1"/>

<v:asset.script name="classic-leaflet-clusters"
                path="{assets_dir}/script/leaflet.markercluster.js"
                defer="1"/>

<v:asset.script name="classic-main"
                path="{assets_dir}/script/main.js"
                dependencies="classic-jquery,classic-datepicker,classic-slick,classic-leaflet"
                standalone="1"
                defer="1"/>
