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O,SAASA,GACZyC,MAAMgD,YAAYzF,EACtB,EACAiF,SAAU,WACNqF,EAAM9L,YAAY,UACtB,GAER,I,4FAAC,CAr7BU,GAw7BfnC,GAAE,WACE,IAAMyO,EAAe,IAAI5O,EAEzB4O,EAAaC,OAEb7I,YAAW,WACP,IAAMC,EAAyB9F,EAAE,6BAE7B8F,EAAuB/D,SAAW+D,EAAuBC,SACzD0I,EAAa9L,eAAe3C,EAAE,oBAEtC,GAAG,MAEHA,EAAE2O,KAAK3O,EAAE,2EAA2E,WAChFA,EAAEG,MAAM2B,QAAQ,0BAA0BgC,MAC9C,GACJ,G","sources":["webpack:///./platform/themes/anjeer/assets/js/ecommerce.js"],"sourcesContent":["class Ecommerce {\n $body = $(document.body)\n $productsFilter = this.$body.find('#products-filter')\n\n init() {\n this.$body\n .on('click', '.add-to-cart:not(.cart-form button[type=submit])', (event) => {\n this.addToCart(event)\n })\n .on('click', '.remove-cart-item', (event) => {\n this.removeFromCart(event)\n })\n .on('click', '.btn-apply-coupon-code', (event) => {\n this.applyCouponCode(event)\n })\n .on('click', '.btn-remove-coupon-code', (event) => {\n this.removeCouponCode(event)\n })\n .on('click', '.product-quantity span', (event) => {\n this.changeCartQuantity(event)\n })\n .on('keyup', '.product-quantity input', (event) => {\n this.onChangeQuantityInput(event)\n })\n .on('click', '.add-to-compare', (event) => {\n this.addToCompare(event)\n })\n .on('click', '.js-sale-popup-quick-view-button', (event) => {\n this.quickView(event)\n })\n .on('click', '.tpproduct .quickview', (event) => {\n this.quickView(event)\n })\n .on('click', '.tpproduct .button-quick-shop', (event) => {\n this.quickShop(event)\n })\n .on('click', '.remove-compare-item', (event) => {\n this.removeFromCompare(event)\n })\n .on('click', '.add-to-wishlist', (event) => {\n this.addToWishlist(event)\n })\n .on('click', '.remove-wishlist-item', (event) => {\n this.removeFromWishlist(event)\n })\n .on('submit', '#products-filter', (event) => {\n event.preventDefault()\n\n this.filterProducts($(event.currentTarget), 1)\n })\n .on('click', '.product-area .basic-pagination ul li a', (event) => {\n this.handleProductsPagination(event)\n })\n .on('change', '.product-area .tp-shop-selector select[name=\"sort-by\"]', (event) => {\n this.handleProductsSorting(event)\n })\n .on('change', '.product-area .tp-shop-selector select[name=\"per-page\"]', (event) => {\n this.handleProductsPerPage(event)\n })\n .on('click', '.product-area .product-filter-nav button', (event) => {\n this.handleProductsLayout(event)\n })\n .on('change', '#products-filter select, input', (event) => {\n if ($(event.currentTarget).closest('#quick-shop-popup').length) {\n return\n }\n\n this.$productsFilter.trigger('submit')\n })\n .on('click', '.product-filter-button', () => {\n this.$body.find('.product-filter-mobile').addClass('active')\n })\n .on('click', '.product-filter-mobile .backdrop, .close-product-filter-mobile', () => {\n this.$body.find('.product-filter-mobile').removeClass('active')\n })\n .on('click', 'form.cart-form button[type=submit]', (event) => {\n this.addProductToCart(event)\n })\n .on('click', '.tpproduct-details__reviewers', () => {\n this.$body.find('.tpproduct-details__nav #reviews-tab').trigger('click')\n $('html, body').animate({\n scrollTop: $('.tpproduct-details__navtab').offset().top - 100,\n })\n })\n .on('click', '.product-sidebar__list .f-right', (event) => {\n event.preventDefault()\n\n $(event.currentTarget).closest('.category-filter').find('.product-sidebar__list').slideToggle()\n })\n\n this.priceFilter()\n this.productGallery($('.product-gallery'))\n this.quickSearchProducts()\n\n const _this = this\n\n window.onBeforeChangeSwatches = function(data, $attrs) {\n const $product = $attrs.closest('.tpproduct-details__content')\n const $form = $product.find('.cart-form')\n\n $product.find('.error-message').hide()\n $product.find('.success-message').hide()\n $product.find('.number-items-available').html('').hide()\n const $submit = $form.find('button[type=submit]')\n\n if (data) {\n $submit.prop('disabled', true)\n }\n }\n\n window.onChangeSwatchesSuccess = function(response, $attrs) {\n const $product = $attrs.closest('.tpproduct-details__content')\n const $form = $product.find('.cart-form')\n const $footerCartForm = $('.footer-cart-form')\n\n if (!response) {\n return\n }\n\n const $submit = $form.find('button[type=submit]')\n\n if (response.error) {\n $submit.prop('disabled', true)\n $product\n .find('.number-items-available')\n .html(`(${response.message})`)\n .show()\n $form.find('.hidden-product-id').val('')\n $footerCartForm.find('.hidden-product-id').val('')\n } else {\n const data = response.data\n const $price = $product.find('.tpproduct-details__price')\n const $salePrice = $price.find('.product-price-sale')\n const $originalPrice = $price.find('.product-price-original')\n\n if (data.sale_price !== data.price) {\n $salePrice.removeClass('d-none')\n $originalPrice.addClass('d-none')\n } else {\n $salePrice.addClass('d-none')\n $originalPrice.removeClass('d-none')\n }\n\n $salePrice.find('span.amount').text(data.display_sale_price)\n $salePrice.find('del.amount').text(data.display_price)\n $originalPrice.find('span.amount').text(data.display_sale_price)\n\n if (data.sku) {\n $product.find('.meta-sku .meta-value').text(data.sku)\n $product.find('.meta-sku').removeClass('d-none')\n } else {\n $product.find('.meta-sku').addClass('d-none')\n }\n\n $form.find('.hidden-product-id').val(data.id)\n $footerCartForm.find('.hidden-product-id').val(data.id)\n $submit.prop('disabled', false)\n\n if (data.error_message) {\n $submit.prop('disabled', true)\n $product\n .find('.number-items-available')\n .html(`(${data.error_message})`)\n .show()\n } else if (data.success_message) {\n $product.find('.number-items-available').html(response.data.stock_status_html).show()\n } else {\n $product.find('.number-items-available').html('').hide()\n }\n\n const unavailableAttributeIds = data.unavailable_attribute_ids || []\n $product.find('.attribute-swatch-item').removeClass('pe-none')\n $product.find('.product-filter-item option').prop('disabled', false)\n\n if (unavailableAttributeIds && unavailableAttributeIds.length) {\n unavailableAttributeIds.map(function(id) {\n let $item = $product.find(`.attribute-swatch-item[data-id=\"${id}\"]`)\n if ($item.length) {\n $item.addClass('pe-none')\n $item.find('input').prop('checked', false)\n } else {\n $item = $product.find(`.product-filter-item option[data-id=\"${id}\"]`)\n if ($item.length) {\n $item.prop('disabled', 'disabled').prop('selected', false)\n }\n }\n })\n }\n\n const $gallery = $product.closest('.product-area').find('.product-gallery')\n\n let imageHtml = ''\n\n data.image_with_sizes.origin.forEach(function(item) {\n imageHtml += `\n \n `\n })\n\n $gallery.find('.product-gallery__wrapper').slick('unslick').html(imageHtml)\n\n let thumbHtml = ''\n\n data.image_with_sizes.thumb.forEach(function(item) {\n thumbHtml += `
`\n })\n\n $gallery.find('.product-thumbnails').slick('unslick').html(thumbHtml)\n\n _this.productGallery($gallery)\n\n setTimeout(function() {\n const $productGalleryWrapper = $('.product-gallery__wrapper')\n\n if ($productGalleryWrapper.length && !$productGalleryWrapper.width()) {\n _this.productGallery($gallery)\n }\n }, 1500)\n }\n }\n }\n\n productGallery($gallery) {\n if (!$gallery.length) {\n return\n }\n\n const first = $gallery.find('.product-gallery__wrapper')\n const thumbnails = $gallery.find('.product-thumbnails')\n\n if (first.length) {\n if (first.hasClass('slick-initialized')) {\n first.slick('unslick')\n }\n\n first.slick({\n rtl: Theme.isRtl(),\n slidesToShow: 1,\n slidesToScroll: 1,\n infinite: false,\n dots: false,\n arrows: false,\n lazyLoad: 'ondemand',\n })\n }\n\n if (thumbnails.length) {\n if (thumbnails.hasClass('slick-initialized')) {\n thumbnails.slick('unslick')\n }\n\n thumbnails.slick({\n rtl: Theme.isRtl(),\n slidesToShow: 6,\n slidesToScroll: 1,\n infinite: false,\n focusOnSelect: true,\n asNavFor: first,\n vertical: thumbnails.data('vertical') === 1,\n nextArrow: '',\n prevArrow: '',\n responsive: [\n {\n breakpoint: 768,\n settings: {\n slidesToShow: 4,\n vertical: false,\n },\n },\n {\n breakpoint: 480,\n settings: {\n slidesToShow: 3,\n vertical: false,\n },\n },\n ],\n })\n }\n\n this.lightGallery($gallery)\n }\n\n quickSearchProducts() {\n const quickSearch = '.form--quick-search'\n const $quickSearch = $('.form--quick-search')\n $('body').on('click', function(e) {\n if (!$(e.target).closest(quickSearch).length) {\n $('.panel--search-result').removeClass('active')\n }\n })\n\n let currentRequest = null\n $quickSearch.on('keyup', '.input-search-product', function() {\n const $form = $(this).closest('form')\n ajaxSearchProduct($form)\n })\n\n $quickSearch.on('change', '.product-category-select', function() {\n const $form = $(this).closest('form')\n ajaxSearchProduct($form)\n })\n\n $quickSearch.on('click', '.loadmore', function(e) {\n e.preventDefault()\n const $form = $(this).closest('form')\n $(this).addClass('loading')\n ajaxSearchProduct($form, $(this).attr('href'))\n })\n\n function ajaxSearchProduct($form, url = null) {\n const $panel = $form.find('.panel--search-result')\n const k = $form.find('.input-search-product').val()\n if (!k) {\n $panel.html('').removeClass('active')\n return\n }\n\n $quickSearch.find('.input-search-product').val(k)\n const $button = $form.find('button[type=submit]')\n\n currentRequest = $.ajax({\n type: 'GET',\n url: url || $form.data('url'),\n dataType: 'json',\n data: url ? [] : $form.serialize(),\n beforeSend: function() {\n $button.addClass('loading')\n\n if (currentRequest !== null) {\n currentRequest.abort()\n }\n },\n success: ({ error, data }) => {\n if (!error) {\n if (url) {\n const $content = $(`