|
|
|
@@ -1,82 +1,84 @@
|
|
|
|
import prestashop from 'prestashop';
|
|
|
|
import prestashop from "prestashop";
|
|
|
|
import $ from 'jquery';
|
|
|
|
import $ from "jquery";
|
|
|
|
|
|
|
|
|
|
|
|
prestashop.themeSelectors = {
|
|
|
|
prestashop.themeSelectors = {
|
|
|
|
product: {
|
|
|
|
product: {
|
|
|
|
tabs: '.tabs .nav-link',
|
|
|
|
tabs: ".tabs .nav-link",
|
|
|
|
activeNavClass: 'js-product-nav-active',
|
|
|
|
activeNavClass: "js-product-nav-active",
|
|
|
|
activeTabClass: 'js-product-tab-active',
|
|
|
|
activeTabClass: "js-product-tab-active",
|
|
|
|
activeTabs: '.tabs .nav-link.active, .js-product-nav-active',
|
|
|
|
activeTabs: ".tabs .nav-link.active, .js-product-nav-active",
|
|
|
|
imagesModal: '.js-product-images-modal',
|
|
|
|
imagesModal: ".js-product-images-modal",
|
|
|
|
thumb: '.js-thumb',
|
|
|
|
thumb: ".js-thumb",
|
|
|
|
thumbContainer: '.thumb-container, .js-thumb-container',
|
|
|
|
thumbContainer: ".thumb-container, .js-thumb-container",
|
|
|
|
arrows: '.js-arrows',
|
|
|
|
arrows: ".js-arrows",
|
|
|
|
selected: '.selected, .js-thumb-selected',
|
|
|
|
selected: ".selected, .js-thumb-selected",
|
|
|
|
modalProductCover: '.js-modal-product-cover',
|
|
|
|
modalProductCover: ".js-modal-product-cover",
|
|
|
|
cover: '.js-qv-product-cover',
|
|
|
|
cover: ".js-qv-product-cover",
|
|
|
|
customizationModal: '.js-customization-modal',
|
|
|
|
customizationModal: ".js-customization-modal",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
listing: {
|
|
|
|
listing: {
|
|
|
|
searchFilterToggler: '#search_filter_toggler, .js-search-toggler',
|
|
|
|
searchFilterToggler: "#search_filter_toggler, .js-search-toggler",
|
|
|
|
searchFiltersWrapper: '#search_filters_wrapper',
|
|
|
|
searchFiltersWrapper: "#search_filters_wrapper",
|
|
|
|
searchFilterControls: '#search_filter_controls',
|
|
|
|
searchFilterControls: "#search_filter_controls",
|
|
|
|
searchFilters: '#search_filters',
|
|
|
|
searchFilters: "#search_filters",
|
|
|
|
activeSearchFilters: '#js-active-search-filters',
|
|
|
|
activeSearchFilters: "#js-active-search-filters",
|
|
|
|
listTop: '#js-product-list-top',
|
|
|
|
listTop: "#js-product-list-top",
|
|
|
|
list: '#js-product-list',
|
|
|
|
list: "#js-product-list",
|
|
|
|
listBottom: '#js-product-list-bottom',
|
|
|
|
listBottom: "#js-product-list-bottom",
|
|
|
|
listHeader: '#js-product-list-header',
|
|
|
|
listHeader: "#js-product-list-header",
|
|
|
|
searchFiltersClearAll: '.js-search-filters-clear-all',
|
|
|
|
searchFiltersClearAll: ".js-search-filters-clear-all",
|
|
|
|
searchLink: '.js-search-link',
|
|
|
|
searchLink: ".js-search-link",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
order: {
|
|
|
|
order: {
|
|
|
|
returnForm: '#order-return-form, .js-order-return-form',
|
|
|
|
returnForm: "#order-return-form, .js-order-return-form",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
arrowDown: '.arrow-down, .js-arrow-down',
|
|
|
|
arrowDown: ".arrow-down, .js-arrow-down",
|
|
|
|
arrowUp: '.arrow-up, .js-arrow-up',
|
|
|
|
arrowUp: ".arrow-up, .js-arrow-up",
|
|
|
|
clear: '.clear',
|
|
|
|
clear: ".clear",
|
|
|
|
fileInput: '.js-file-input',
|
|
|
|
fileInput: ".js-file-input",
|
|
|
|
contentWrapper: '#content-wrapper, .js-content-wrapper',
|
|
|
|
contentWrapper: "#content-wrapper, .js-content-wrapper",
|
|
|
|
footer: '#footer, .js-footer',
|
|
|
|
footer: "#footer, .js-footer",
|
|
|
|
modalContent: '.js-modal-content',
|
|
|
|
modalContent: ".js-modal-content",
|
|
|
|
modal: '.js-checkout-modal',
|
|
|
|
modal: ".js-checkout-modal",
|
|
|
|
touchspin: '.js-touchspin',
|
|
|
|
touchspin: ".js-touchspin",
|
|
|
|
checkout: {
|
|
|
|
checkout: {
|
|
|
|
termsLink: '.js-terms a',
|
|
|
|
termsLink: ".js-terms a",
|
|
|
|
giftCheckbox: '.js-gift-checkbox',
|
|
|
|
giftCheckbox: ".js-gift-checkbox",
|
|
|
|
imagesLink: '.card-block .cart-summary-products p a, .js-show-details',
|
|
|
|
imagesLink: ".card-block .cart-summary-products p a, .js-show-details",
|
|
|
|
carrierExtraContent: '.carrier-extra-content, .js-carrier-extra-content',
|
|
|
|
carrierExtraContent:
|
|
|
|
btn: '.checkout a',
|
|
|
|
".carrier-extra-content, .js-carrier-extra-content",
|
|
|
|
},
|
|
|
|
btn: ".checkout a",
|
|
|
|
cart: {
|
|
|
|
},
|
|
|
|
productLineQty: '.js-cart-line-product-quantity',
|
|
|
|
cart: {
|
|
|
|
quickview: '.quickview',
|
|
|
|
productLineQty: ".js-cart-line-product-quantity",
|
|
|
|
touchspin: '.bootstrap-touchspin',
|
|
|
|
quickview: ".quickview",
|
|
|
|
promoCode: '#promo-code',
|
|
|
|
touchspin: ".bootstrap-touchspin",
|
|
|
|
displayPromo: '.display-promo',
|
|
|
|
promoCode: "#promo-code",
|
|
|
|
promoCodeButton: '.promo-code-button',
|
|
|
|
displayPromo: ".display-promo",
|
|
|
|
discountCode: '.js-discount .code',
|
|
|
|
promoCodeButton: ".promo-code-button",
|
|
|
|
discountName: '[name=discount_name]',
|
|
|
|
discountCode: ".js-discount .js-code",
|
|
|
|
actions: '[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',
|
|
|
|
discountName: "[name=discount_name]",
|
|
|
|
},
|
|
|
|
actions:
|
|
|
|
notifications: {
|
|
|
|
'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',
|
|
|
|
dangerAlert: '#notifications article.alert-danger',
|
|
|
|
},
|
|
|
|
container: '#notifications .container',
|
|
|
|
notifications: {
|
|
|
|
},
|
|
|
|
dangerAlert: "#notifications article.alert-danger",
|
|
|
|
passwordPolicy: {
|
|
|
|
container: "#notifications .container",
|
|
|
|
template: '#password-feedback',
|
|
|
|
},
|
|
|
|
hint: '.js-hint-password',
|
|
|
|
passwordPolicy: {
|
|
|
|
container: '.js-password-strength-feedback',
|
|
|
|
template: "#password-feedback",
|
|
|
|
strengthText: '.js-password-strength-text',
|
|
|
|
hint: ".js-hint-password",
|
|
|
|
requirementScore: '.js-password-requirements-score',
|
|
|
|
container: ".js-password-strength-feedback",
|
|
|
|
requirementLength: '.js-password-requirements-length',
|
|
|
|
strengthText: ".js-password-strength-text",
|
|
|
|
requirementScoreIcon: '.js-password-requirements-score i',
|
|
|
|
requirementScore: ".js-password-requirements-score",
|
|
|
|
requirementLengthIcon: '.js-password-requirements-length i',
|
|
|
|
requirementLength: ".js-password-requirements-length",
|
|
|
|
progressBar: '.js-password-policy-progress-bar',
|
|
|
|
requirementScoreIcon: ".js-password-requirements-score i",
|
|
|
|
inputColumn: '.js-input-column',
|
|
|
|
requirementLengthIcon: ".js-password-requirements-length i",
|
|
|
|
},
|
|
|
|
progressBar: ".js-password-policy-progress-bar",
|
|
|
|
|
|
|
|
inputColumn: ".js-input-column",
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$(() => {
|
|
|
|
$(() => {
|
|
|
|
prestashop.emit('themeSelectorsInit');
|
|
|
|
prestashop.emit("themeSelectorsInit");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|