{% block page_content_section_default %}
{% set layout = section.sizingMode ? section.sizingMode|replace({"_": "-"}) : "container" %}
{% set pageHead = page %}
{% set bannerImageLink = config('ShopWithMeUI.config.BannerImageLink') %}
{% set bannerImageLinkPartner = config('ShopWithMeUI.config.BannerImageLinkPartner') %}
{% set linkBanner = config('ShopWithMeUI.config.LinkBanner') %}
{% set linkBannerPartner = config('ShopWithMeUI.config.LinkBannerPartner') %}
{% set isLoggedIn = context.customer is defined %}
{% set translationCode = page.header.activeLanguage.translationCode.code|lower|split('-') %}
{% set countryLocal = translationCode[1] %}
<div id="swm_homepage" class="cms-section-default">
<div>
{% if countryLocal not in ['vn', 'th'] %}
{% if countryLocal in ['cn', 'hk'] %}
<div class="home_header_video-box overflow-hidden" style="height: auto;">
<div class="mobile:d-none desktop-carousel home_header_video-box-desktop">
<div class="carousel-track">
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b1-Website-hk.webp') }}" />
</div>
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b2-Website-hk.webp') }}" />
</div>
</div>
<button class="carousel-btn prev">{% sw_icon 'arrow-head-left' style { 'size': 'sm' } %}</button>
<button class="carousel-btn next">{% sw_icon 'arrow-head-right' style { 'size': 'sm' } %}</button>
</div>
<div class="mobile:d-block d-none mobile-carousel home_header_video-box-mobile">
<div class="carousel-track">
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b1-mobile-hk.webp') }}" />
</div>
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b2-mobile-hk.webp') }}" />
</div>
</div>
<button class="carousel-btn prev">{% sw_icon 'arrow-head-left' style { 'size': 'sm' } %}</button>
<button class="carousel-btn next">{% sw_icon 'arrow-head-right' style { 'size': 'sm' } %}</button>
</div>
</div>
{% elseif countryLocal in ['de'] %}
<div class="home_header_video-box overflow-hidden" style="height: auto;">
<div class="mobile:d-none desktop-carousel home_header_video-box-desktop">
<div class="carousel-track">
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b1-Website-de.webp') }}" />
</div>
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b2-Website-de.webp') }}" />
</div>
</div>
<button class="carousel-btn prev">{% sw_icon 'arrow-head-left' style { 'size': 'sm' } %}</button>
<button class="carousel-btn next">{% sw_icon 'arrow-head-right' style { 'size': 'sm' } %}</button>
</div>
<div class="mobile:d-block d-none mobile-carousel home_header_video-box-mobile">
<div class="carousel-track">
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b1-mobile-de.webp') }}" />
</div>
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b2-mobile-de.webp') }}" />
</div>
</div>
<button class="carousel-btn prev">{% sw_icon 'arrow-head-left' style { 'size': 'sm' } %}</button>
<button class="carousel-btn next">{% sw_icon 'arrow-head-right' style { 'size': 'sm' } %}</button>
</div>
</div>
{% else %}
<div class="home_header_video-box overflow-hidden" style="height: auto;">
<div class="mobile:d-none desktop-carousel home_header_video-box-desktop">
<div class="carousel-track">
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b1-Website-en.webp') }}" />
</div>
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b2-Website-en.webp') }}" />
</div>
</div>
<button class="carousel-btn prev">{% sw_icon 'arrow-head-left' style { 'size': 'sm' } %}</button>
<button class="carousel-btn next">{% sw_icon 'arrow-head-right' style { 'size': 'sm' } %}</button>
</div>
<div class="mobile:d-block d-none mobile-carousel home_header_video-box-mobile">
<div class="carousel-track">
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b1-mobile-en.webp') }}" />
</div>
<div class="carousel-slide">
<img src="{{ asset('bundles/shopwithmeui/assets/imgs/april-deals/banner-b2-mobile-en.webp') }}" />
</div>
</div>
<button class="carousel-btn prev">{% sw_icon 'arrow-head-left' style { 'size': 'sm' } %}</button>
<button class="carousel-btn next">{% sw_icon 'arrow-head-right' style { 'size': 'sm' } %}</button>
</div>
</div>
{% endif %}
{% endif %}
{# {% if countryLocal not in ['cn', 'hk', 'vn'] %}#}
{# <div class="home_header_video-box overflow-hidden">#}
{# <video class="home_header_video-box-video" width="100%" height="100%" autoplay playsinline loop controls muted>#}
{# <source onload="" src="https://sg-media.shopwithme.info/images/2024/12/03/87e57cb44617c7ea58d2da1b1886f351.mp4" type="video/mp4"/>#}
{# <!-- <source src="/bundles/shopwithmeui/assets/video-eg.mp4" type="video/ogg" /> -->#}
{# {{ 'app.noVid'|trans }}#}
{# </video>#}
{# </div>#}
{# {% endif %}#}
{% if bannerImageLinkPartner and context.customer.affiliateCode == context.customer.campaignCode and isLoggedIn %}
{% set bannerSrc = bannerImageLinkPartner %}
{% set bannerLink = linkBannerPartner %}
{% elseif bannerImageLink %}
{% set bannerSrc = bannerImageLink %}
{% set bannerLink = linkBanner %}
{% else %}
{% set bannerSrc = null %}
{% set bannerLink = null %}
{% endif %}
{% if bannerSrc and countryLocal not in ['cn', 'hk', 'vn'] %}
<section class="banner-image-section">
<a class="swm-m-auto" {% if bannerLink %}target="_blank" href="{{ bannerLink }}"{% endif %}>
<img src="{{ bannerSrc }}" alt="">
</a>
</section>
{% endif %}
<!--Subscription Banner-->
{% if productResult and countryLocal not in ['cn', 'hk', 'vn'] %}
<section class="banner-image-section">
<a href="{{ seoUrl('frontend.detail.page', {'productId': productResult.id, '_query': { 'subscription': '1' }}) }}"
class="save4more_homepage-banner width-full">
<img src-lazy="{{ asset('bundles/shopwithmeui/assets/imgs/save4more/home/banner.png') }}"
class="width-full"/>
</a>
</section>
{% endif %}
<section
class="homePage_promotionBanner_wrapper" {% if countryLocal in ['cn', 'hk', 'vn'] %} style="padding-top: 96px" {% endif %}>
<!--Container-->
<div class="homePage_promotionBanner_container d-flex gap-1.5rem swm-m-auto mobile:flex-col">
<!--shop4free-->
{% if countryLocal in ['cn', 'hk'] %}
<div class="homePage_promotionBanner_shop4free homePage_promotionBanner_container_items homePage_promotionBanner_container_items-reverse d-flex flex-col">
<!--Images-->
<div class="homePage_promotionBanner_right_images-reverse d-flex justify-center">
<img class="radius-8px"
src-lazy="{{ asset('bundles/shopwithmeui/assets/imgs/home_save4more.jpg') }}"
width="100%"/>
</div>
<!--Title-->
<div class="homePage_promotionBanner_shop4free_title gap-1.5rem d-flex flex-col">
<!--Text-->
<div class="d-flex flex-col gap-8px">
<p class="homePage_promotionBanner_text typo-head-4-b">{{ 'app.home.promotion.promotionSave4moreTitleHK'|trans }}</p>
<p class="homePage_promotionBanner_subtext typo-sub-text-3">{{ 'app.home.promotion.promotionSave4moreSubtext'|trans }}</p>
</div>
<!--Button-->
{# {% if countryLocal not in ['cn', 'hk'] %}
<a href="{{ seoUrl('frontend.save4more.home') }}">
<button class="homePage_promotionBanner_button button-square button-primary">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="text-body-m">{{ 'app.home.learnMore'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
</a>
{% endif %} #}
</div>
</div>
{% endif %}
<div class="homePage_promotionBanner_right d-flex flex-col mobile:flex-col-reverse">
<!--Lucky Wheel-->
<div class="homePage_promotionBanner_luckyWheel homePage_promotionBanner_container_items d-flex flex-1 mobile:flex-col">
<!--Content-->
<div class="homePage_promotionBanner_right_content d-flex flex-col gap-1.5rem">
<!--Text-->
<div class="d-flex flex-col gap-8px">
<p class="typo-head-4-b">{{ 'app.home.promotion.earnCreditLuckyWheel'|trans }}</p>
<div>
<p class="homePage_promotionBanner_subtext typo-sub-text-2">{{ 'app.home.promotion.earnCreditLuckyWheelSubtext'|trans }}</p>
{# <ul class="homePage_promotionBanner_subtext" style="padding: 0;">
<li class="typo-sub-text-2">-{{ 'app.home.promotion.earnCreditLuckyWheelSubtitle'|trans }}</li>
<li class="typo-sub-text-2">-{{ 'app.home.promotion.earnCreditLuckyWheelSubtitle2'|trans }}</li>
<li class="typo-sub-text-2">-{{ 'app.home.promotion.earnCreditLuckyWheelSubtitle3'|trans }}</li>
</ul> #}
</div>
</div>
<!--Button-->
<a href="{{ seoUrl('frontend.credit.lucky-wheel') }}">
<button class="homePage_promotionBanner_button button-square button-primary">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="text-body-m">{{ 'app.home.learnMore'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
</a>
</div>
<!--Image-->
<div class="homePage_promotionBanner_right_images">
<img class="radius-8px"
src-lazy="{{ asset('bundles/shopwithmeui/assets/imgs/Lucky_Wheel.jpeg') }}"
width="100%"/>
</div>
</div>
<!--Coupon-->
<div class="homePage_promotionBanner_coupon homePage_promotionBanner_container_items d-flex flex-1 mobile:flex-col">
<!--Content-->
<div class="homePage_promotionBanner_right_content d-flex flex-col gap-1.5rem ">
<!--Text-->
<div class="d-flex flex-col gap-8px">
<p class="typo-head-4-b">{{ 'app.home.promotion.get1000Credits'|trans }}</p>
<p class="homePage_promotionBanner_subtext typo-sub-text-2">{{ 'app.home.promotion.get1000CreditsSubtitle'|trans }}</p>
</div>
<!--Button-->
<a href="{{ seoUrl('frontend.ai.stream.upload') }}">
<button class="homePage_promotionBanner_button button-square button-primary">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="text-body-m">{{ 'app.postVideoNow'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
</a>
</div>
<!--Images-->
<div class="homePage_promotionBanner_right_images">
<img class="radius-8px"
src-lazy="{{ asset('bundles/shopwithmeui/assets/imgs/img_money.jpeg') }}"
width="100%"/>
</div>
</div>
</div>
<div class="homePage_promotionBanner_shop4free homePage_promotionBanner_container_items homePage_promotionBanner_container_items-reverse d-flex flex-col">
<!--Images-->
<div class="homePage_promotionBanner_right_images-reverse d-flex justify-center">
<img class="radius-8px"
src-lazy="{{ asset('bundles/shopwithmeui/assets/imgs/home_samsungTv.png') }}"
width="100%"/>
</div>
<!--Title-->
<div class="homePage_promotionBanner_shop4free_title gap-1.5rem d-flex flex-col">
<!--Text-->
<div class="d-flex flex-col gap-8px">
<p class="homePage_promotionBanner_text typo-head-4-b">{{ 'app.shop4freeUpper'|trans }}</p>
<p class="homePage_promotionBanner_subtext typo-sub-text-3">{{ 'app.home.promotion.promotionShop4freeSubtext'|trans|raw }}</p>
</div>
<!--Button-->
{% if countryLocal in ['vn'] %}
<button class="homePage_promotionBanner_button button-square button-primary" data-toggle="modal" data-target="#featureComingSoonModal">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="text-body-m">{{ 'app.home.shop4freeNow'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
{% else %}
<a href="{{ seoUrl('frontend.shop4free') }}">
<button class="homePage_promotionBanner_button button-square button-primary">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="text-body-m">{{ 'app.home.shop4freeNow'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
</a>
{% endif %}
</div>
</div>
</div>
</section>
<section class="section-3__home__best__quality swm-m-auto">
<div id="desktop_section-3__home__best__quality-header" class="section-3__home__best__quality-header">
<div class="typo-head-2 d-flex items-end section-3__home__best__quality-header-text">
{{ 'app.home.getBestHappy'|trans }} <img
src="{{ asset('bundles/shopwithmeui/assets/icons/quality-header-icon.svg') }}"
class="item_best_quality_img_icon section-3__home__best__quality-header-icon width-full height-full"
style="width: 45px; height: 45px; margin-left: 4px">
</div>
<span class="typo-sub-text-2">{{ 'app.home.getBestHappyTitle'|trans }}</span>
</div>
<div class="section-3__home__best__quality-content swm-mt-8">
{% set categoriesMap = {
'all': { 'title': 'app.home.allProducts', 'savings': '78%', 'time': 'app.home.limitedTime' },
'5bf8d9999ab24a84930e7bf07d7d4a6e': { 'title': 'app.home.rejuvenateAndBeYouthful', 'savings': '84%', 'time': 'app.home.limitedTime' },
'a8b823eae895400cb33b767d41502dd4': { 'title': 'app.home.relaxWithWellness', 'savings': '74%', 'time': 'app.home.limitedTime' },
'defe75e13ae7497d84edc460491818c6': { 'title': 'app.home.haveAFitterBody', 'savings': '78%', 'time': 'app.home.limitedTime' },
'a3e978d399ad4e56bf9eab1e896dd6fe': { 'title': 'app.home.improveHealth', 'savings': '74%', 'time': 'app.home.limitedTime' },
'4b9877842d644023a899643e1cd8548f': { 'title': 'app.home.redeemProductsForFREE', 'savings': 'app.home.creditExchange', 'time': 'app.home.greatProducts' },
'4c4d1ba950094b3a959fce443c65557d': { 'title': 'app.home.hiTechLiving', 'savings': '85%', 'time': 'app.home.limitedTime' }
} %}
{% for index, category in categories %}
{% set categoryId = category.id|trim %}
{% set data = categoriesMap[categoryId] ?? null %}
{% if countryLocal in ['vn'] and category.name|upper == 'SHOP4FREE' %}
{% continue %}
{% endif %}
<div class="section-3__home__best__quality-content-item section-3__home__best__quality-content-item-{{ index }} border-radius-1 position-relative overflow-hidden"
id="category-item-{{ index }}" data-id="{{ category.id }}"
data-seoUrlShop4free="{{ seoUrl('frontend.shop4free') }}">
<div class="section-3__home__best__quality-content-item-container position-absolute d-flex justify-between flex-col">
<div class="section-3__home__best__quality-content-item-tag border-radius-3 d-flex items-center justify-start">
<img src="{{ asset('bundles/shopwithmeui/assets/icons/category-' ~ category.id ~ '-icon.svg') }}"
class="item_best_quality_img_icon">
<span class="section-3__home__best__quality-content-item-tag-name typo-sub-text-4-smb">{{ category.name }}</span>
</div>
</div>
<img src-lazy="{{ asset('bundles/shopwithmeui/assets/imgs/bestQuality/category-' ~ category.id ~ '.jpeg') }}"
class="section-3__home__best__quality-content-item-img item_best_quality_img">
<div class="section-3__home__best__quality-content-item-overlay position-absolute"></div>
{% if data %}
<div class="quality-content-infomation">
<div class="quality-content-infomation-head text-heading-5-m">{{ data.title|trans }}</div>
<div class="quality-content-infomation-title">
<div class="quality-content-infomation-title-savings text-body-m">{{ data.savings|trans }}
{% if categoryId != '4b9877842d644023a899643e1cd8548f' %}
{{ 'app.savings'|trans }}
{% endif %}
</div>
<div class="quality-content-infomation-title-time text-body-r">
<div class="quality-content-infomation-title-time-dot"></div> {{ data.time|trans }}
</div>
</div>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</section>
<section id="home-list-products">
{% for index, category in categories %}
<div id="category-product-list-{{ category.id }}" class="homePage_productList_container d-none">
{% if category.products && category.products %}
{% for product in category.products %}
{% set subscriptionProduct = product.customFields.isBuyProductSubscription ?? false %}
{% set imageSave4moreConfig = product.customFields.mediaList.productSave4more ?: product.cover.media %}
{% set imageProduct = subscriptionProduct ? imageSave4moreConfig : product.cover.media %}
<!--Container-->
<div class="mb-5 swm-m-auto d-flex flex-col items-center" style="gap: 34px;">
<!--Product Infos-->
<div class="homePage_productList_product_container d-flex flex-col items-center gap-1.5rem">
<!--Certi-->
<div class="d-flex gap-1rem justify-center" style="flex-wrap: wrap">
{% if product.customFields.productTags is not null and product.customFields.productTags|length > 0 %}
{% for productTag in product.customFields.productTags %}
<button class="swm-btn swm-btn-certificate">{{ productTag.name }}</button>
{% endfor %}
{% else %}
<button class="swm-btn swm-btn-certificate">{{ category.name }}</button>
{% endif %}
{# <button class="swm-btn swm-btn-certificate"><img src="{{ asset('bundles/shopwithmeui/assets/icons/certi_check.svg') }}"/>2 Year Warranty</button>
<button class="swm-btn swm-btn-certificate">Pro Sonic Technology</button> #}
</div>
<!--Infos-->
<div class="homePage_productList_title_container d-flex flex-col items-center gap-1rem">
<p class="login__title__title text-center"
style="max-width: 608px">{{ product.translated.name }}</p>
{% autoescape false %}
{% set description = (product.translated.customFields.summary ?: product.translated.description)|striptags|raw %}
<p class="homePage_productList_subtext typo-sub-text-2 text-center"
style="max-width: 620px;">
{{ description|length > 280 ? description|slice(0, 280) ~ '...' : description|raw }}
</p>
{% endautoescape %}
</div>
<!--Countdown-->
<div class="homePage_productList_countdown_container d-flex flex-col items-center gap-1.5rem">
<div class="homePage_productList_countdown-saving d-flex items-center">
{% if product.extensions.currentDeal.discountRate is not null %}
<p class="homePage_productList_sale typo-head-4-b text-center">{{ 'app.home.listing.save'|trans }} {{ product.extensions.currentDeal.discountRate }}
% {{ 'app.home.listing.now'|trans }}</p>
{% endif %}
<div class="homePage_productList_cao_dao d-flex gap-1rem items-center">
<div class="d-flex" style="gap: 4px;">
<img src="{{ asset('bundles/shopwithmeui/assets/icons/lighting-circle.svg') }}"
class="icon-svg-lighting-circle"/>
<span class="homePage_productList_cao_dao_text">{{ 'app.home.listing.timeLeft'|trans }}</span>
</div>
{# <div class="homePage_productList_cao_dao_time d-flex items-center">
<div class="homePage_productList_cao_dao_time_box">09d</div>
<span>:</span>
<div class="homePage_productList_cao_dao_time_box">09h</div>
<span>:</span>
<div class="homePage_productList_cao_dao_time_box">23m</div>
<span>:</span>
<div class="homePage_productList_cao_dao_time_box">56s</div>
</div> #}
<div class="deals-expiration-timer homePage_productList_cao_dao_time d-flex items-center"
data-expired-text="{{ 'app.expired'|trans|sw_sanitize }}"
data-expired-time="{{ product.extensions.currentDeal.endDate|date("U") }}"></div>
</div>
</div>
<div class="d-flex items-center gap-1.5rem">
<a href="{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}"
class="text-center">
<button class="homePage_promotionBanner_button button-square button-primary swm-m-auto">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="text-body-m">{{ 'app.home.learnMore'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round"/>
</svg>
</div>
</button>
</a>
{% if subscriptionProduct %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': product.id, '_query': { 'subscription': '1' }}) }}"
class="text-center">
<button class="homePage_promotionBanner_button homePage_promotionBanner_button-subscription button-square button-primary swm-m-auto">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="text-body-m">{{ 'app.subscriptionPage.emptyPages.joinSave4moreNow'|trans|sw_sanitize }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5"
stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor"
stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round"/>
</svg>
</div>
</button>
</a>
{% endif %}
</div>
</div>
</div>
<!--Images-->
<div class="homePage_productList_container-info-img-box width-full"
style="max-width: 1240px; max-height: 600px">
{% if imageProduct.mimeType starts with 'video' %}
<video class="width-full homePage_productList_container-info-img" autoplay playsinline muted
video-lazy-load style="max-height: 600px; border-radius: 20px; object-fit: contain;">
<source data-src="{{ imageProduct.url }}" type="{{ imageProduct.mimeType }}"/>
</video>
{% else %}
<img class="width-full homePage_productList_container-info-img"
style="object-fit: cover;max-height: 600px; border-radius: 20px; object-fit: contain"
src-lazy="{{ imageProduct.url }}">
{% endif %}
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% endfor %}
</section>
<section class="section-5__home__experience swm-m-auto overflow-hidden swm-mb-8"
data-video-list-plugin="true"
data-path="{{ path('frontend.data-stream') }}"
data-csrf="{{ sw_csrf('frontend.data-stream', {'mode': 'token'}) }}">
<div class="section-5__home__experience-header typo-head-2">
{{ 'app.home.experienceItYourSelf'|trans }}
</div>
<div class="section-5__home__experience-container d-flex items-center justify-start">
</div>
{# <div class="section-5__home__experience-container_mobile d-flex items-center justify-start"> #}
{# {% if dataStream|first %} #}
{# {% set video = null %} #}
{# {% if dataStream|first.postChildren.elements && dataStream|first.postChildren.elements|first %} #}
{# {% set video = dataStream|first.postChildren.elements|first.file.fileUrl %} #}
{# {% endif %} #}
{# <div class="section-5__home__experience-container-item border-radius-1 position-relative overflow-hidden"> #}
{# <div id="home_aiStream_play" class="section-5__home__experience-container-item-content position-absolute d-flex justify-between flex-col"> #}
{# <div class="section-5__home__experience-container-item-tag d-flex items-center justify-start"> #}
{# <img src="/bundles/shopwithmetheme/assets/icons/mage_video.svg" class="item_experience_img_icon"> #}
{# <span class="section-5__home__experience-container-item-tag-name typo-sub-text-4-smb">Consumer #}
{# Electronics</span> #}
{# </div> #}
{# <div class="section-5__home__experience_container_mobile_navigation position-absolute d-flex flex-col"> #}
{# <div class="d-flex gap-1rem flex-col section-5__home__experience_container_mobile_navigation_actions"> #}
{# <div class="section-5__home__experience_container_mobile_navigation_action d-flex flex-col items-center"> #}
{# <img class="section-5__home__experience_container_mobile_navigation_action_img" src="{{ asset('bundles/shopwithmetheme/assets/imgs/aiStream_heart.svg') }}"/> #}
{# <span class="typo-sub-text-4 section-5__home__experience_container_mobile_navigation_info">{{dataStream|first.likeCount}}</span> #}
{# </div> #}
{# <div class="section-5__home__experience_container_mobile_navigation_action d-flex flex-col items-center"> #}
{# <img class="section-5__home__experience_container_mobile_navigation_action_img" src="{{ asset('bundles/shopwithmetheme/assets/imgs/aiStream_edit.svg') }}"/> #}
{# <span class="typo-sub-text-4 section-5__home__experience_container_mobile_navigation_info">Edit</span> #}
{# </div> #}
{# <div class="section-5__home__experience_container_mobile_navigation_action d-flex flex-col items-center"> #}
{# <img class="section-5__home__experience_container_mobile_navigation_action_img" src="{{ asset('bundles/shopwithmetheme/assets/imgs/aiStream_cart.svg') }}"/> #}
{# </div> #}
{# </div> #}
{# <div class=" gap-8px d-flex flex-col"> #}
{# <img src="/bundles/shopwithmetheme/assets/imgs/aiStream_navUp.svg"/> #}
{# <img src="/bundles/shopwithmetheme/assets/imgs/aiStream_navDown.svg"/> #}
{# </div> #}
{# </div> #}
{# <div class="section-5__home__experience_container_mobile_video_infor d-flex flex-col"> #}
{# <div class="section-5__home__experience_container_video_infor_user_info d-flex items-center"> #}
{# <img class="section-5__home__experience_container_video_avatar_image" src="{{ asset('bundles/shopwithmeui/assets/imgs/shop_with_me.svg') }}"/> #}
{# <span class="section-5__home__experience_container_username typo-sub-text-4">{{dataStream|first.postUser}}</span> #}
{# </div> #}
{# <div class="section-5__home__experience_container_video_infor d-flex flex-col gap-8px"> #}
{# <span class="section-5__home__experience_container_video_infor_product_name">{{dataStream|first.product.translated.name}}</span> #}
{# <div id="userScore" class="section-5__home__experience_container_mobile_video_infor_truncate-text-container d-flex"> #}
{# <span class="typo-sub-text-5-smb section-5__home__experience_container_video_infor_user_review truncate-text truncated"> #}
{# {{dataStream|first.product.translated.description|raw}} #}
{# </span> #}
{# <span class="typo-sub-text-5-smb show-more-btn">more</span> #}
{# </div> #}
{# </div> #}
{# </div> #}
{# <div class="section-5__home__experience_container_mobile_video_pause_button position-absolute"> #}
{# <img id="home_aiStream_play_button" src="{{ asset('bundles/shopwithmetheme/assets/imgs/aiStream_play.svg') }}"/> #}
{# </div> #}
{# </div> #}
{# <video id="home_aiStream_vid" class="section-5__home__experience-container-item-img item_experience_img width-full" muted playsinline loop> #}
{# <source src="{{video}}" type="video/mp4" /> #}
{# </video> #}
{# <div class="section-5__home__experience-container-item-overlay position-absolute"></div> #}
{# </div> #}
{# {% endif %} #}
{# </div> #}
</section>
<section
class="homePage_how_wrapper">
<!--Container-->
<div
class="homePage_how_container d-flex flex-col items-center swm-m-auto">
<!--Title-->
<div class="homePage_how_container_title d-flex flex-col items-center">
<p class="homePage_how_container_title_title typo-head-2">{{ 'app.home.howToShop4free.howToShop4freeTitle'|trans }}</p>
<p class="homePage_how_container_title_des typo-sub-text-2">{{ 'app.home.howToShop4free.howToShop4freeSubTitle'|trans }}</p>
</div>
<!--Contents-->
<div
class="d-flex mobile:flex-col" style="gap: 27px;">
<!--Content-->
<div
class="homePage_how_content border-radius-5 gap-1.5rem d-flex flex-col items-center">
<!--Icon-->
<div>
<img src="{{ asset('bundles/shopwithmeui/assets/icons/home_spinner.svg') }}"/>
</div>
<!--Text-->
<div class="homePage_how_content_text items-center d-flex flex-col text-center">
<p class="homePage_how_content_text_title text-heading-3-m">{{ 'app.home.howToShop4free.howToItems.luckyWheel.title'|trans|raw }}</p>
<p class="homePage_how_content_text_des typo-sub-text-2">{{ 'app.home.howToShop4free.howToItems.luckyWheel.description'|trans|raw }}</p>
</div>
<!--Button-->
<button class="d-none homePage_how_content_button swm-btn swm-btn-learnMore-white swm-m-auto">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="homePage_how_content_button_text text-body-m">{{ 'app.home.learnMore'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
</div>
<div
class="homePage_how_content border-radius-5 gap-1.5rem d-flex flex-col items-center">
<!--Icon-->
<div>
<img src="{{ asset('bundles/shopwithmeui/assets/icons/home_friends.svg') }}"/>
</div>
<!--Text-->
<div class="homePage_how_content_text items-center d-flex flex-col text-center">
<p class="homePage_how_content_text_title text-heading-3-m">{{ 'app.home.howToShop4free.howToItems.inviteFriends.title'|trans|raw }}</p>
<p class="homePage_how_content_text_des typo-sub-text-2">{{ 'app.home.howToShop4free.howToItems.inviteFriends.description'|trans|raw }}</p>
</div>
<!--Button-->
<button class="d-none homePage_how_content_button swm-btn swm-btn-learnMore-white swm-m-auto">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="homePage_how_content_button_text text-body-m">{{ 'app.home.learnMore'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
</div>
<div
class="homePage_how_content border-radius-5 gap-1.5rem d-flex flex-col items-center">
<!--Icon-->
<div>
<img src="{{ asset('bundles/shopwithmeui/assets/icons/home_cart.svg') }}"/>
</div>
<!--Text-->
<div class="homePage_how_content_text items-center d-flex flex-col text-center">
<p class="homePage_how_content_text_title text-heading-3-m">{{ 'app.home.howToShop4free.howToItems.addBasket.title'|trans|raw }}</p>
<p class="homePage_how_content_text_des typo-sub-text-2">{{ 'app.home.howToShop4free.howToItems.addBasket.description'|trans|raw }}</p>
</div>
<!--Button-->
<button class="d-none homePage_how_content_button swm-btn swm-btn-learnMore-white swm-m-auto">
<div class="d-flex items-center justify-between gap-8px">
<div class="d-flex flex-col items-start">
<span class="homePage_how_content_button_text text-body-m">{{ 'app.home.learnMore'|trans }}</span>
</div>
<svg width="18" height="18" viewbox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M9 17C11.1217 17 13.1566 16.1571 14.6569 14.6569C16.1571 13.1566 17 11.1217 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
<path d="M1 9H11M11 9L8 6M11 9L8 12" stroke="currentColor" stroke-width="1.5"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</button>
</div>
</div>
</div>
</section>
</div>
{% if countryLocal in ['vn'] %}
<!--Feature Coming Soon Modal-->
<div class="modal fade" id="featureComingSoonModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content feature-coming-soon-modal">
<button type="button" class="feature-coming-soon-modal__close" data-dismiss="modal" aria-label="Close">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 4L4 12M4 4L12 12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<p class="feature-coming-soon-modal__text typo-head-4-b">{{ 'app.featureAvailableSoon'|trans }}</p>
</div>
</div>
</div>
{% endif %}
</div>
<script>
var translation = {
...(translation || {}),
more: "{{ 'app.aiStreamPage.more'|trans|sw_sanitize }}",
less: "{{ 'app.aiStreamPage.less'|trans|sw_sanitize }}"
}
const translationsProductDetail = {
expired: "{{ 'app.expired'|trans|sw_sanitize }}",
};
</script>
{% endblock %}