wickes-css2 2.105.0-develop.1 → 2.105.0-develop.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +5 -4
- package/build/css/category-main.css +1 -1
- package/build/css/components/checkout-payment-details-v2.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pages/checkout-new.css +1 -1
- package/build/css/pages/checkout.css +1 -1
- package/build/css/pages/my-account-v2.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_discount.css +1 -1
- package/build/css/pages/page_product_search.css +1 -1
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pages/page_products-list.css +1 -1
- package/build/css/pages/tradePro-rewards.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/img/google-pay-mark.svg +11 -0
- package/build/img/quick-filters/bath1.svg +10 -0
- package/build/img/quick-filters/bath3.svg +3 -0
- package/build/img/quick-filters/bath4.svg +10 -0
- package/build/img/quick-filters/bath5.svg +10 -0
- package/build/img/quick-filters/image1.jpg +0 -0
- package/build/img/quick-filters/image2.jpg +0 -0
- package/build/img/quick-filters/image3.jpg +0 -0
- package/build/js/account-members.min.js +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +12140 -11596
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/kitchen/kitchen-plp.min.js +1 -9
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/mini-basket-slider.min.js +1 -1
- package/build/js/my-account.min.js +1 -1
- package/build/js/page/basket/basket-update-cart-action.js +59 -56
- package/build/js/page/basket/basket-update-cart.js +27 -27
- package/build/js/page/basket/basket-utils.js +40 -33
- package/build/js/page/basket/mini-basket-total.js +70 -66
- package/build/js/page/basket/quantity-change-handler.js +73 -55
- package/build/js/page/basket/update-quantity-operation.js +39 -30
- package/build/js/page/basket/update-quantity.js +62 -62
- package/build/js/page/basket-v2.js +360 -225
- package/build/js/page/billie-business-type.js +27 -27
- package/build/js/page/checkout-payment-details.js +301 -299
- package/build/js/page/components/billie-modal.js +31 -0
- package/build/js/page/components/discounts.js +39 -36
- package/build/js/page/components/mini-basket-slider.js +604 -545
- package/build/js/page/filters/desktop-nav.js +64 -0
- package/build/js/page/filters/mobile-nav.js +93 -0
- package/build/js/page/filters/plp-filters-chips.js +92 -0
- package/build/js/page/filters/plp-filters-mobile.js +150 -0
- package/build/js/page/filters/plp-filters-panel.js +123 -0
- package/build/js/page/filters/plp-filters-utils.js +66 -0
- package/build/js/page/filters/plp-filters.js +268 -0
- package/build/js/page/filters/sort-by.js +172 -0
- package/build/js/page/kitchen/colour-swatches.js +5 -2
- package/build/js/page/klarna-modal-scroll-disable.js +4 -4
- package/build/js/page/my-account.js +32 -47
- package/build/js/page/online-exclusive.js +28 -31
- package/build/js/page/quick-filter.js +108 -0
- package/build/js/page/search-filter.js +62 -0
- package/build/js/page/share-project-list.js +57 -0
- package/build/js/page/tradePro-rewards.js +69 -39
- package/build/js/page/utils/copy-to-clipboard.js +79 -47
- package/build/js/page/utils/helpers.js +14 -9
- package/build/js/page/utils/show-more-less.js +273 -0
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp-filters.min.js +9 -0
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +143 -85
- package/build/js/search-filter.min.js +1 -0
- package/build/js/share-project-list.min.js +1 -0
- package/build/js/tradePro-rewards.min.js +1 -1
- package/package.json +4 -2
- package/src/components/.DS_Store +0 -0
- package/src/components/accordion.hbs +2 -2
- package/src/components/checkout-payment-details-v2.hbs +1 -1
- package/src/components/date-selection.hbs +25 -6
- package/src/components/generate-project-id.hbs +1 -1
- package/src/components/kitchen/dropdown.hbs +6 -3
- package/src/components/kitchen/filter-modal-content-kitchen.hbs +10 -0
- package/src/components/kitchen/filter-modal.hbs +10 -13
- package/src/components/kitchen/kitchen-card.hbs +1 -1
- package/src/components/kitchen/plp-filters.hbs +3 -1
- package/src/components/kitchen/sort-by.hbs +1 -1
- package/src/components/my-account/barcode.hbs +1 -3
- package/src/components/my-account/cards-swap.hbs +10 -0
- package/src/components/my-account/clipboard-code-card.hbs +3 -3
- package/src/components/my-account/discount.hbs +1 -1
- package/src/components/my-account/greetings.hbs +1 -1
- package/src/components/order-summary.hbs +1 -0
- package/src/components/price-block-v2.hbs +1 -0
- package/src/components/quick-filter.hbs +56 -0
- package/src/components/search-filter-modal-content.hbs +102 -0
- package/src/components/search-filter.hbs +121 -112
- package/src/components/shopping-list-with-share-list-v2.hbs +28 -10
- package/src/components/shopping-list.hbs +5 -5
- package/src/data/data_plp_load-more.json +1 -1
- package/src/data/data_quick-filter.json +508 -0
- package/src/data/my-account/data_my-account.json +9 -0
- package/src/elements/btn.hbs +7 -0
- package/src/img/google-pay-mark.svg +11 -0
- package/src/img/quick-filters/bath1.svg +10 -0
- package/src/img/quick-filters/bath3.svg +3 -0
- package/src/img/quick-filters/bath4.svg +10 -0
- package/src/img/quick-filters/bath5.svg +10 -0
- package/src/img/quick-filters/image1.jpg +0 -0
- package/src/img/quick-filters/image2.jpg +0 -0
- package/src/img/quick-filters/image3.jpg +0 -0
- package/src/js/components/cards-swap.js +74 -0
- package/src/js/components/general/accordion.js +44 -33
- package/src/js/components/general/cart-slider.js +19 -16
- package/src/js/components/general/create-popup-slider.js +168 -173
- package/src/js/components/pdp-billie-modal-scroll-reset.js +53 -0
- package/src/js/components/share-project-list.js +8 -5
- package/src/js/emulation/big-wins.js +1081 -904
- package/src/js/emulation/billie-modal.js +39 -18
- package/src/js/emulation/checkout-payment-details.js +47 -38
- package/src/js/emulation/custom-slider-emulation.js +17 -13
- package/src/js/emulation/filters-emulation.js +164 -0
- package/src/js/emulation/forms.js +360 -323
- package/src/js/emulation/mini-basket-data.js +1051 -923
- package/src/js/emulation/paymentLoader.js +17 -17
- package/src/js/emulation/pdf-file-loader.js +89 -91
- package/src/js/emulation/popover-mini-basket.js +246 -239
- package/src/js/emulation/product-counter.js +50 -0
- package/src/js/emulation/project-list-pdp.js +320 -316
- package/src/js/emulation/repayment-toggle.js +23 -24
- package/src/js/emulation/reset-filter-desktop.js +5 -0
- package/src/js/emulation/selectable.js +22 -18
- package/src/js/emulation/wismo-details.js +23 -31
- package/src/js/page/basket/basket-update-cart-action.js +59 -56
- package/src/js/page/basket/basket-update-cart.js +27 -27
- package/src/js/page/basket/basket-utils.js +40 -33
- package/src/js/page/basket/mini-basket-total.js +70 -66
- package/src/js/page/basket/quantity-change-handler.js +73 -55
- package/src/js/page/basket/update-quantity-operation.js +39 -30
- package/src/js/page/basket/update-quantity.js +62 -62
- package/src/js/page/basket-v2.js +360 -225
- package/src/js/page/billie-business-type.js +27 -27
- package/src/js/page/checkout-payment-details.js +301 -299
- package/src/js/page/components/billie-modal.js +31 -0
- package/src/js/page/components/discounts.js +39 -36
- package/src/js/page/components/mini-basket-slider.js +604 -545
- package/src/js/page/filters/desktop-nav.js +64 -0
- package/src/js/page/filters/mobile-nav.js +93 -0
- package/src/js/page/filters/plp-filters-chips.js +92 -0
- package/src/js/page/filters/plp-filters-mobile.js +150 -0
- package/src/js/page/filters/plp-filters-panel.js +123 -0
- package/src/js/page/filters/plp-filters-utils.js +66 -0
- package/src/js/page/filters/plp-filters.js +268 -0
- package/src/js/page/filters/sort-by.js +172 -0
- package/src/js/page/kitchen/colour-swatches.js +5 -2
- package/src/js/page/klarna-modal-scroll-disable.js +4 -4
- package/src/js/page/my-account.js +32 -47
- package/src/js/page/online-exclusive.js +28 -31
- package/src/js/page/quick-filter.js +108 -0
- package/src/js/page/search-filter.js +62 -0
- package/src/js/page/share-project-list.js +57 -0
- package/src/js/page/tradePro-rewards.js +69 -39
- package/src/js/page/utils/copy-to-clipboard.js +79 -47
- package/src/js/page/utils/helpers.js +14 -9
- package/src/js/page/utils/show-more-less.js +273 -0
- package/src/page_empty-shared-project-list-bicester-hub.html +4 -0
- package/src/page_empty-shopping-list_guest.html +1 -0
- package/src/page_kitchen-plp.html +2 -2
- package/src/page_my-account-installer.html +1 -1
- package/src/page_my-account-trade-pro-carousel-double.html +127 -0
- package/src/page_my-account-trade-pro-carousel.html +134 -0
- package/src/page_my-account-trade-pro.html +1 -1
- package/src/page_my-shopping-list-add-notes.html +1 -0
- package/src/page_my-shopping-list-energy.html +1 -0
- package/src/page_my-shopping-list-hide-download.html +3 -2
- package/src/page_my-shopping-list-pdf.html +2 -0
- package/src/page_my-shopping-list-saved-ref.html +1 -0
- package/src/page_my-shopping-list-wisdom-oos-registered.html +1 -0
- package/src/page_my-shopping-list-wisdom-oos.html +1 -0
- package/src/page_my-shopping-list-wisdom-partial-registered.html +1 -0
- package/src/page_my-shopping-list-wisdom-registered.html +1 -0
- package/src/page_my-shopping-list-wisdom.html +1 -0
- package/src/page_my-shopping-list.html +1 -0
- package/src/page_my-shopping-list_not-register.html +3 -0
- package/src/page_plp-with-paint.html +2 -7
- package/src/page_plp.html +2 -7
- package/src/page_plp_v2-energy-efficiency.html +1 -6
- package/src/page_plp_v2-favourite-products.html +6 -7
- package/src/page_plp_v2-quick-filter_colourSwatches_11.html +79 -0
- package/src/page_plp_v2-quick-filter_colourSwatches_5.html +79 -0
- package/src/page_plp_v2-quick-filter_iconAndText_5.html +79 -0
- package/src/page_plp_v2-quick-filter_iconAndText_9.html +79 -0
- package/src/page_plp_v2-quick-filter_iconOnly_11.html +79 -0
- package/src/page_plp_v2-quick-filter_iconOnly_5.html +79 -0
- package/src/page_plp_v2-quick-filter_imageAndText_5.html +79 -0
- package/src/page_plp_v2-quick-filter_imageAndText_9.html +79 -0
- package/src/page_plp_v2-quick-filter_textOnly_5.html +79 -0
- package/src/page_plp_v2-quick-filter_textOnly_9.html +79 -0
- package/src/page_plp_v2-vat.html +2 -7
- package/src/page_plp_v2.html +22 -9
- package/src/page_product-details-tile-steps-klarna-widget-with-method-ids.html +120 -0
- package/src/page_product_search-vat.html +2 -7
- package/src/page_product_search.html +2 -7
- package/src/page_project-list-generate-project-list-ID.html +3 -0
- package/src/page_project-list-vat.html +4 -0
- package/src/page_project-list-with-new-share-popup-android.html +16 -0
- package/src/page_project-list-with-new-share-popup-ios.html +16 -0
- package/src/page_project-list-with-new-share-popup.html +2 -1
- package/src/page_search-results.html +2 -7
- package/src/page_shared-project-list-bicester-hub.html +3 -1
- package/src/page_shopping-cart-v2-klarna-with-method-ids.html +50 -0
- package/src/page_tradepro-discount-app.html +1 -1
- package/src/page_tradepro-discount-double.html +109 -0
- package/src/page_tradepro-discount.html +36 -2
- package/src/partials/head.hbs +1 -0
- package/src/scss/common/_common.scss +10 -4
- package/src/scss/components/_accordion.scss +1 -3
- package/src/scss/components/_custom-slider.scss +17 -16
- package/src/scss/components/_date-selection-add-new-styles.scss +48 -7
- package/src/scss/components/_date-selection.scss +80 -1
- package/src/scss/components/{kitchen/_filter-modal.scss → _filter-modal.scss} +55 -4
- package/src/scss/components/{kitchen/_plp-filters.scss → _plp-filters.scss} +31 -13
- package/src/scss/components/_popover-mini-basket.scss +3 -3
- package/src/scss/components/_quick-filter.scss +288 -0
- package/src/scss/components/_search-filter.scss +95 -15
- package/src/scss/components/_shared-shopping-list.scss +22 -0
- package/src/scss/components/_shopping-list.scss +18 -8
- package/src/scss/components/_sort-by.scss +190 -0
- package/src/scss/components/checkout-chip.scss +2 -2
- package/src/scss/components/checkout-payment-details-v2.scss +10 -4
- package/src/scss/components/checkout-payment-repayment-terms.scss +1 -1
- package/src/scss/components/kitchen/_price-tooltip.scss +1 -1
- package/src/scss/components/kitchen/_price.scss +1 -1
- package/src/scss/components/my-account/_barcode.scss +9 -1
- package/src/scss/components/my-account/_cards-swap.scss +60 -0
- package/src/scss/components/my-account/_clipboard-code.scss +11 -3
- package/src/scss/components/my-account/_discount.scss +12 -2
- package/src/scss/globals/_global-components.scss +3 -0
- package/src/scss/helpers/_colors-semantic.scss +68 -68
- package/src/scss/helpers/_variables.scss +244 -196
- package/src/scss/kitchen-plp-main.scss +0 -4
- package/src/scss/main.scss +65 -65
- package/src/scss/pages/_checkout-confirmation-new.scss +49 -21
- package/src/scss/pages/my-account-v2.scss +42 -5
- package/src/scss/pages/page_discount.scss +8 -4
- package/src/scss/pages/page_product-details-v2.scss +1 -4
- package/src/scss/pages/page_product_search.scss +9 -1
- package/src/scss/pages/page_products-list-combined.scss +28 -24
- package/src/scss/pages/page_products-list.scss +8 -0
- package/src/scss/pages/tradePro-rewards.scss +3 -4
- package/src/scss/plp-main.scss +1 -0
- package/src/sitemap.html +40 -4
- package/build/img/google-pay-mark.png +0 -0
- package/build/js/page/accordion.js +0 -35
- package/build/js/page/kitchen/plp-filters-chips.js +0 -90
- package/build/js/page/kitchen/plp-filters-mobile.js +0 -72
- package/build/js/page/kitchen/plp-filters-panel.js +0 -119
- package/build/js/page/kitchen/plp-filters-utils.js +0 -65
- package/build/js/page/kitchen/plp-filters.js +0 -205
- package/build/js/page/kitchen/sort-by.js +0 -157
- package/src/img/google-pay-mark.png +0 -0
- package/src/js/components/general/search-filter.js +0 -21
- package/src/js/page/accordion.js +0 -35
- package/src/js/page/kitchen/plp-filters-chips.js +0 -90
- package/src/js/page/kitchen/plp-filters-mobile.js +0 -72
- package/src/js/page/kitchen/plp-filters-panel.js +0 -119
- package/src/js/page/kitchen/plp-filters-utils.js +0 -65
- package/src/js/page/kitchen/plp-filters.js +0 -205
- package/src/js/page/kitchen/sort-by.js +0 -157
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function o(i,n,s){function l(t,e){if(!n[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=n[t]={exports:{}},i[t][0].call(r.exports,function(e){return l(i[t][1][e]||e)},r,r.exports,o,i,n,s)}return n[t].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,r){"use strict";var o,i,n;o=$(".filter-results_mobile"),$("#open-overlay").click(function(e){e.preventDefault(),$("body").addClass("is-filters-visible"),o.toggleClass("show")}),$("#close-overlay, .filter-results__btn-close").click(function(e){e.preventDefault(),o.hasClass("show")&&($("body").removeClass("is-filters-visible"),o.removeClass("show"))}),$('.filter-results_desktop .filter__item input[type="checkbox"]').click(function(){$(this).closest("form").submit()}),i=".close",n='.filter-results_desktop .filter__item input[type="checkbox"]',$(".filter-modal-cta").on("click",function(e){e.preventDefault()}),$(document).on("click",i,function(e){e.preventDefault()}),$(document).on("click",n,function(){$(this).closest("form").submit()})},{}]},{},[1]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function t(r,i,c){function l(n,e){if(!i[n]){if(!r[n]){var o="function"==typeof require&&require;if(!e&&o)return o(n,!0);if(a)return a(n,!0);throw(e=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",e}o=i[n]={exports:{}},r[n][0].call(o.exports,function(e){return l(r[n][1][e]||e)},o,o.exports,t,r,i,c)}return i[n].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,n,o){"use strict";var t,r,i,c,l=e("./utils/copy-to-clipboard");function a(){var e,n;t.length&&(e=t.get(0),t.removeAttr("disabled"),e.focus(),n=(e.value||"").length,"function"==typeof e.setSelectionRange?e.setSelectionRange(0,n):"function"==typeof e.select&&e.select())}t=$("#share-list-modal #shopping-list-link"),r=$("#copy-link"),i=r.find("a"),c="copy-link_hovered",i.on("click",function(e){e.preventDefault()}),r.on("click",function(e){e.preventDefault(),a();e=(t.val()||"").trim();e&&(0,l.copyToClipboard)(e,r[0],{noUpperCase:!0}).then(function(){i.addClass(c)}).catch(function(e){console.error(e)})}),t.on("click",function(e){e.preventDefault(),a(),i.removeClass(c)})},{"./utils/copy-to-clipboard":2}],2:[function(e,n,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.copyToClipboard=function(e,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e=function(e,n){e=null==e?"":e+"";return(n.noUpperCase?e:e.replace(/(^\w|\s\w)/g,function(e){return e.toUpperCase()})).split(" ").filter(function(e){return""!==e}).join(" ").trim()}(e,o);if(!e)return Promise.reject(new Error("Empty text"));if(null!=(o=window.webkit)&&null!=(o=o.messageHandlers)&&o.copy)try{return window.webkit.messageHandlers.copy.postMessage(e),Promise.resolve(!0)}catch(e){console.error(e)}if(null!=(o=window.Android)&&o.copyToClipboard&&"function"==typeof window.Android.copyToClipboard)try{return window.Android.copyToClipboard(e),Promise.resolve(!0)}catch(e){console.error(e)}if(null!=(o=navigator.clipboard)&&o.writeText)return navigator.clipboard.writeText(e).then(function(){return!0});return function(a,u){return new Promise(function(e,n){try{var o,t=$(u).parent(),r=$("<textarea>").val(a).attr("readonly","readonly").css({position:"fixed",top:0,left:"-9999px",opacity:0,width:"1px",height:"1px",padding:0,border:0,margin:0}),i=(t.append(r),r.get(0)),c=(i.focus(),(i.value||"").length),l=("function"==typeof i.setSelectionRange?i.setSelectionRange(0,c):r.select(),document.execCommand("copy"));r.remove(),window.getSelection&&(o=window.getSelection())&&o.removeAllRanges&&o.removeAllRanges(),l?e(!0):n(new Error("execCommand failed"))}catch(e){n(e)}})}(e,n)}},{}]},{},[1]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function o(n,a,i){function d(t,e){if(!a[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=a[t]={exports:{}},n[t][0].call(r.exports,function(e){return d(n[t][1][e]||e)},r,r.exports,o,n,a,i)}return a[t].exports}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)d(i[e]);return d}({1:[function(e,t,r){"use strict";var o=e("./utils/copy-to-clipboard"),n=window.Wick||{};n.TradeProRewards={el:{$tradeProRewards:$(".page_tradePro-rewards"),buttonSelector:".copy-tradePro-barcode"},message:"Code copied to clipboard",copyToClipboardInit:function(){n.SnackBar.init(),$(n.TradeProRewards.el.buttonSelector).on("click",function(e){e.preventDefault(),e.stopPropagation();var t=$(this).parent().find("input"),r=t.val().trim();return t.removeAttr("disabled").attr("readonly","readonly"),(0,o.copyToClipboard)(r,e.currentTarget,{noUpperCase:!0}),t.attr("disabled","disabled").removeAttr("readonly"),window.getSelection().removeAllRanges(),n.SnackBar.show({text:n.TradeProRewards.message,type:n.SnackBar.types.SUCCESS,withCloseButton:!1,autoClose:!0,delayBeforeClose:3e3}),!1})},init:function(){n.TradeProRewards.copyToClipboardInit()}},$(document).ready(function(){n.TradeProRewards.el.$tradeProRewards.length&&n.TradeProRewards.init()})},{"./utils/copy-to-clipboard":2}],2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.copyToClipboard=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=$("<textarea>").css({position:"absolute",top:0,left:0,opacity:0});$(t).parent().append(o),t=r.noUpperCase?e:e.replace(/(^\w|\s\w)/g,function(e){return e.toUpperCase()});r=t.split(" ").filter(function(e){return""!==e}).join(" ");o.val(r),navigator.userAgent.match(/TradeProMobile_iOS|DIYMobile_iOS/i)?function(e){var e=e.get(0),t=e.contentEditable,r=e.readOnly,o=document.createRange(),n=window.getSelection();e.contentEditable=!0,e.readOnly=!1,o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),e.setSelectionRange(0,999999),e.contentEditable=t,e.readOnly=r}(o):navigator.userAgent.match(/ipad|ipod|iphone/i)?(o.select(),o[0].setSelectionRange(0,999999)):o.select();document.execCommand("copy"),o.remove()}},{}]},{},[1]);
|
|
1
|
+
!function n(o,i,a){function c(e,t){if(!i[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}r=i[e]={exports:{}},o[e][0].call(r.exports,function(t){return c(o[e][1][t]||t)},r,r.exports,n,o,i,a)}return i[e].exports}for(var u="function"==typeof require&&require,t=0;t<a.length;t++)c(a[t]);return c}({1:[function(t,e,r){"use strict";function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=t("./utils/copy-to-clipboard");function S(){S=function(){return a};var a={},t=Object.prototype,u=t.hasOwnProperty,l=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o,i,a,c,e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),n=new x(n||[]);return l(e,"_invoke",{value:(o=t,i=r,a=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return{value:void 0,done:!0}}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;n=s(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,f;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}(r,a);if(r){if(r===f)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===c)throw c="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c="executing";r=s(o,i,a);if("normal"===r.type){if(c=a.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c="completed",a.method="throw",a.arg=r.arg)}})}),e}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=c;var f={};function p(){}function d(){}function h(){}var e={},y=(i(e,n,function(){return this}),Object.getPrototypeOf),y=y&&y(y(E([]))),v=(y&&y!==t&&u.call(y,n)&&(e=y),h.prototype=p.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function w(a,c){var e;l(this,"_invoke",{value:function(r,n){function t(){return new c(function(t,e){!function e(t,r,n,o){var i,t=s(a[t],a,r);if("throw"!==t.type)return(r=(i=t.arg).value)&&"object"==L(r)&&u.call(r,"__await")?c.resolve(r.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):c.resolve(r).then(function(t){i.value=t,n(i)},function(t){return e("throw",t,n,o)});o(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function E(e){if(e||""===e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return r=-1,(t=function t(){for(;++r<e.length;)if(u.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}throw new TypeError(L(e)+" is not iterable")}return l(v,"constructor",{value:d.prototype=h,configurable:!0}),l(h,"constructor",{value:d,configurable:!0}),d.displayName=i(h,o,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,o,"GeneratorFunction")),t.prototype=Object.create(v),t},a.awrap=function(t){return{__await:t}},g(w.prototype),i(w.prototype,r,function(){return this}),a.AsyncIterator=w,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new w(c(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},g(v),i(v,o,"Generator"),i(v,n,function(){return this}),i(v,"toString",function(){return"[object Generator]"}),a.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=E,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),c=u.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,b(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},a}function l(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var s=window.Wick||{};s.TradeProRewards={el:{$tradeProRewards:$(".page_tradePro-rewards"),buttonSelector:".copy-tradePro-barcode"},message:"Code copied to clipboard",errorMessage:"Unable to copy. Please copy manually",copyToClipboardInit:function(){s.SnackBar.init(),$(document).on("click",s.TradeProRewards.el.buttonSelector,function(){c=S().mark(function t(e){var r,n,o,i,a;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),e.stopPropagation(),o=$(this),(o=o.parent().find("input")).length){t.next=6;break}return t.abrupt("return",!1);case 6:if(i=(o.val()||"").trim()){t.next=9;break}return t.abrupt("return",!1);case 9:return o.removeAttr("disabled").attr("readonly","readonly"),t.prev=10,t.next=13,(0,u.copyToClipboard)(i,e.currentTarget,{noUpperCase:!0});case 13:s.SnackBar.show({text:s.TradeProRewards.message,type:s.SnackBar.types.SUCCESS,withCloseButton:!1,autoClose:!0,delayBeforeClose:3e3}),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(10);try{(a=o.get(0)).focus(),a.select(),a.setSelectionRange(0,999999)}catch(t){console.error(t)}s.SnackBar.show({text:s.TradeProRewards.errorMessage,type:s.SnackBar.types.ERROR,withCloseButton:!1,autoClose:!0,delayBeforeClose:4e3});case 20:return o.attr("disabled","disabled").removeAttr("readonly"),null!=(r=window.getSelection())&&null!=(n=r.removeAllRanges)&&n.call(r),t.abrupt("return",!1);case 23:case"end":return t.stop()}},t,this,[[10,16]])});var c,e=function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){l(n,e,r,o,i,"next",t)}function i(t){l(n,e,r,o,i,"throw",t)}o(void 0)})};return function(t){return e.apply(this,arguments)}}())},init:function(){s.TradeProRewards.copyToClipboardInit()}},$(document).ready(function(){s.TradeProRewards.el.$tradeProRewards.length&&s.TradeProRewards.init()})},{"./utils/copy-to-clipboard":2}],2:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.copyToClipboard=function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=function(t,e){t=null==t?"":t+"";return(e.noUpperCase?t:t.replace(/(^\w|\s\w)/g,function(t){return t.toUpperCase()})).split(" ").filter(function(t){return""!==t}).join(" ").trim()}(t,r);if(!t)return Promise.reject(new Error("Empty text"));if(null!=(r=window.webkit)&&null!=(r=r.messageHandlers)&&r.copy)try{return window.webkit.messageHandlers.copy.postMessage(t),Promise.resolve(!0)}catch(t){console.error(t)}if(null!=(r=window.Android)&&r.copyToClipboard&&"function"==typeof window.Android.copyToClipboard)try{return window.Android.copyToClipboard(t),Promise.resolve(!0)}catch(t){console.error(t)}if(null!=(r=navigator.clipboard)&&r.writeText)return navigator.clipboard.writeText(t).then(function(){return!0});return function(u,l){return new Promise(function(t,e){try{var r,n=$(l).parent(),o=$("<textarea>").val(u).attr("readonly","readonly").css({position:"fixed",top:0,left:"-9999px",opacity:0,width:"1px",height:"1px",padding:0,border:0,margin:0}),i=(n.append(o),o.get(0)),a=(i.focus(),(i.value||"").length),c=("function"==typeof i.setSelectionRange?i.setSelectionRange(0,a):o.select(),document.execCommand("copy"));o.remove(),window.getSelection&&(r=window.getSelection())&&r.removeAllRanges&&r.removeAllRanges(),c?t(!0):e(new Error("execCommand failed"))}catch(t){e(t)}})}(t,e)}},{}]},{},[1]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wickes-css2",
|
|
3
|
-
"version": "2.105.0-develop.
|
|
3
|
+
"version": "2.105.0-develop.11",
|
|
4
4
|
"description": "CSS and JS and page templates in use by Wickes",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
"prettier --write"
|
|
16
16
|
],
|
|
17
17
|
"src/scss/**/*.{scss,css}": [
|
|
18
|
+
"sass-lint-auto-fix",
|
|
18
19
|
"prettier --write",
|
|
19
|
-
"sass-lint-
|
|
20
|
+
"sass-lint -c .sasslintrc --"
|
|
20
21
|
]
|
|
21
22
|
},
|
|
22
23
|
"keywords": [
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
"prettier": "^3.7.4",
|
|
71
72
|
"pug": "2.0.4",
|
|
72
73
|
"sass": "^1.54.9",
|
|
74
|
+
"sass-lint": "^1.13.1",
|
|
73
75
|
"sass-lint-auto-fix": "^0.21.2",
|
|
74
76
|
"semantic-release": "^16.0.0-beta.9",
|
|
75
77
|
"through2": "^4.0.2",
|
package/src/components/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<div class="accordion {{mod}} {{collapsed}}">
|
|
1
|
+
<div class="accordion {{mod}} {{collapsed}}" {{#if facetStep}}data-facet-step="{{facetStep}}"{{/if}}>
|
|
2
2
|
<h5 class="accordion__header">
|
|
3
3
|
{{#unless hide-chevron}}
|
|
4
|
-
|
|
4
|
+
<span class="icon accordion__header-icon">
|
|
5
5
|
<i class="fas fa-angle-up"></i>
|
|
6
6
|
</span>
|
|
7
7
|
{{/unless}}
|
|
@@ -28,7 +28,18 @@
|
|
|
28
28
|
<div class="calendar__row">
|
|
29
29
|
<div class="calendar__row_days">
|
|
30
30
|
{{/if}}
|
|
31
|
-
|
|
31
|
+
<span class="calendar__cell calendar__cell_cnt{{#if isInactive}} calendar__cell_inactive{{/if}}{{#if (eq day '1')}}{{#unless isInactive}} calendar__cell_rapid{{/unless}}{{/if}}">
|
|
32
|
+
{{#if (eq day '1')}}
|
|
33
|
+
{{#unless isInactive}}
|
|
34
|
+
{{day}}
|
|
35
|
+
<span class="label-rapid">Rapid</span>
|
|
36
|
+
{{else}}
|
|
37
|
+
{{day}}
|
|
38
|
+
{{/unless}}
|
|
39
|
+
{{else}}
|
|
40
|
+
{{day}}
|
|
41
|
+
{{/if}}
|
|
42
|
+
</span>
|
|
32
43
|
{{#if (eq (mod_inc @index 7) 0)}}
|
|
33
44
|
</div>
|
|
34
45
|
</div>
|
|
@@ -53,11 +64,19 @@
|
|
|
53
64
|
</div>
|
|
54
65
|
</div>
|
|
55
66
|
<div class="delivery-time">
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
67
|
+
<div class="delivery-time__rapid-hint">
|
|
68
|
+
<span class="icon-wrap icon-wrap--large">
|
|
69
|
+
<i class="fas fa-shipping-fast icon"></i>
|
|
70
|
+
</span>
|
|
71
|
+
<p class="description">
|
|
72
|
+
Select todays’ day on the calendar to get Wickes Rapid delivery
|
|
73
|
+
</p>
|
|
74
|
+
</div>
|
|
75
|
+
{{> delivery-types
|
|
76
|
+
title=titleDelivery
|
|
77
|
+
subtitle=subtitleDelivery
|
|
78
|
+
classImg=imgDelivery
|
|
79
|
+
}}
|
|
61
80
|
</div>
|
|
62
81
|
</div>
|
|
63
82
|
</div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="row">
|
|
5
5
|
<div class="col-12 generate-project-id__col">
|
|
6
6
|
<button class="generate-project-id__btn btn btn-transparent">
|
|
7
|
-
<span class="btn_text btn-transparent__text">Generate
|
|
7
|
+
<span class="btn_text btn-transparent__text">Generate project ID</span>
|
|
8
8
|
<i class="btn-transparent__icon far fa-download"></i>
|
|
9
9
|
<a href="#" class="copy-barcode page-footer__copy" style="display:none;">
|
|
10
10
|
<i class="far fa-copy"></i>
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<div class="sort-dd" role="menu" aria-label="Sort options" hidden>
|
|
2
|
-
<button class="sort-opt" type="button" data-value="relevance"
|
|
2
|
+
<button class="sort-opt" type="button" data-value="relevance"
|
|
3
|
+
{{#unless isKitchenMode}}data-is-plp-srp="true"{{/unless}}>
|
|
3
4
|
<i class="fa fa-check sort-opt__check" aria-hidden="true"></i>
|
|
4
5
|
<span>Relevance</span>
|
|
5
6
|
</button>
|
|
6
|
-
<button class="sort-opt" type="button" data-value="priceLow"
|
|
7
|
+
<button class="sort-opt" type="button" data-value="priceLow"
|
|
8
|
+
{{#unless isKitchenMode}}data-is-plp-srp="true"{{/unless}}>
|
|
7
9
|
<i class="fa fa-check sort-opt__check" aria-hidden="true"></i>
|
|
8
10
|
<span>Price (lowest first)</span>
|
|
9
11
|
</button>
|
|
10
|
-
<button class="sort-opt" type="button" data-value="priceHigh"
|
|
12
|
+
<button class="sort-opt" type="button" data-value="priceHigh"
|
|
13
|
+
{{#unless isKitchenMode}}data-is-plp-srp="true"{{/unless}}>
|
|
11
14
|
<i class="fa fa-check sort-opt__check" aria-hidden="true"></i>
|
|
12
15
|
<span>Price (highest first)</span>
|
|
13
16
|
</button>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{{#with kitchen-plp}}
|
|
2
|
+
{{> kitchen/chips mod="mobile"}}
|
|
3
|
+
{{#each filters}}
|
|
4
|
+
{{#extend "accordion" header=name collapsed="accordion_collapsed" hidden="hidden-state"}}
|
|
5
|
+
{{#content "content"}}
|
|
6
|
+
{{> kitchen/filter-option }}
|
|
7
|
+
{{/content}}
|
|
8
|
+
{{/extend}}
|
|
9
|
+
{{/each}}
|
|
10
|
+
{{/with}}
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
{{#extend "modal" id="filterModal" classMod="filter-modal modal-scroll-observer" title="" showCloseBtn=true centered=true backdrop=true fullWidth=true}}
|
|
2
2
|
{{#content "header"}}
|
|
3
3
|
<h4 class="filter-modal__title">
|
|
4
|
-
|
|
4
|
+
{{ modalTitle }}
|
|
5
5
|
</h4>
|
|
6
6
|
{{/content}}
|
|
7
7
|
{{#content "body"}}
|
|
8
8
|
<div class="filter-modal__content">
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{{
|
|
12
|
-
{{
|
|
13
|
-
|
|
14
|
-
{{> kitchen/filter-option }}
|
|
15
|
-
{{/content}}
|
|
16
|
-
{{/extend}}
|
|
17
|
-
{{/each}}
|
|
18
|
-
{{/with}}
|
|
9
|
+
{{#if isKitchenMode}}
|
|
10
|
+
{{> kitchen/filter-modal-content-kitchen }}
|
|
11
|
+
{{else}}
|
|
12
|
+
{{> search-filter-modal-content }}
|
|
13
|
+
{{/if}}
|
|
19
14
|
</div>
|
|
20
15
|
{{/content}}
|
|
21
16
|
|
|
22
17
|
{{#content "footer"}}
|
|
23
18
|
<div class="modal-box__inner-row justify-content-center modal-box__footer-row">
|
|
24
19
|
<div class="modal-box__inner-columns">
|
|
25
|
-
<button type="button" class="btn btn-secondary" data-dismiss="modal"
|
|
26
|
-
|
|
20
|
+
<button type="button" class="btn btn-secondary" data-dismiss="modal"
|
|
21
|
+
{{#unless isKitchenMode}}data-is-plp-srp="true"{{/unless}} >Clear all</button>
|
|
22
|
+
<button type="button" class="btn btn-primary" data-dismiss="modal"
|
|
23
|
+
{{#unless isKitchenMode}}data-is-plp-srp="true"{{/unless}}>View results</button>
|
|
27
24
|
</div>
|
|
28
25
|
</div>
|
|
29
26
|
{{/content}}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
<div class="kitchen-card__parameters">
|
|
27
27
|
<div class="kitchen-card__design">{{design}} design</div>
|
|
28
|
-
<div class="kitchen-card__finishes">{{finishes}} finishes</div>
|
|
28
|
+
<div class="kitchen-card__finishes">{{finishes}} {{#ifCond finishes.length '>' 1}}finishes{{else}}finish{{/ifCond}}</div>
|
|
29
29
|
</div>
|
|
30
30
|
<div class="kitchen-card__price">
|
|
31
31
|
{{> kitchen/price price=priceData small=true}}
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
<div class="plp-filters__bar plp-filters__bar-mobile" role="tablist" aria-label="Filters">
|
|
4
4
|
{{> kitchen/mobile-nav-item
|
|
5
5
|
icon="fas fa-filter"
|
|
6
|
-
title="Filter"
|
|
6
|
+
title="Filter by"
|
|
7
7
|
modalId="filterModal"
|
|
8
8
|
}}
|
|
9
9
|
{{> kitchen/mobile-nav-item
|
|
10
10
|
icon="fas fa-sort-alt"
|
|
11
11
|
title="Sort by"
|
|
12
|
+
info="Relevance"
|
|
12
13
|
dropdown=true
|
|
14
|
+
isKitchenMode=true
|
|
13
15
|
}}
|
|
14
16
|
</div>
|
|
15
17
|
<div class="container">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<label class="sort__label">Sort by</label>
|
|
3
3
|
|
|
4
4
|
<button class="sort-button" type="button" aria-haspopup="menu" aria-expanded="false">
|
|
5
|
-
<span class="js-sort-info"
|
|
5
|
+
<span class="js-sort-info">Relevance</span>
|
|
6
6
|
<i class="sort__chevron fa fa-chevron-down" aria-hidden="true"></i>
|
|
7
7
|
</button>
|
|
8
8
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<div class="cards-swap">
|
|
2
|
+
<div class="cards-swap__card cards-swap__card1 active static">
|
|
3
|
+
<div class="cards-swap__toggle">2</div>
|
|
4
|
+
{{#block "card1"}}{{/block}}
|
|
5
|
+
</div>
|
|
6
|
+
<div class="cards-swap__card cards-swap__card2">
|
|
7
|
+
<div class="cards-swap__toggle">1</div>
|
|
8
|
+
{{#block "card2"}}{{/block}}
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="clipboard-code {{mod}}">
|
|
1
|
+
<div class="clipboard-code {{mod}} {{#if secondary}}clipboard-code--secondary{{/if}}">
|
|
2
2
|
<span class="icon-wrap">
|
|
3
3
|
{{#if customIcon}}
|
|
4
4
|
{{{customIcon}}}
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
<p class="title">{{title}}</p>
|
|
11
11
|
<div class="clipboard-code__cta">
|
|
12
12
|
<span class="subtitle">{{code}}</span>
|
|
13
|
-
<button class="btn btn--icon btn--{{mod}}">
|
|
13
|
+
<button class="btn btn--icon copy-code btn--{{mod}}">
|
|
14
14
|
<i class="fas fa-copy icon-copy"></i>
|
|
15
15
|
</button>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
{{#if description}}
|
|
19
19
|
<div class="clipboard-code__description">
|
|
20
|
-
<p>{{description.text}} <a class="link" href="{{{description.link}}}">{{description.link}}</a></p>
|
|
20
|
+
<p>{{{description.text}}} <a class="link" href="{{{description.link}}}">{{description.link}}</a></p>
|
|
21
21
|
</div>
|
|
22
22
|
{{/if}}
|
|
23
23
|
</div>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{{#with filterData}}
|
|
2
|
+
<div class="
|
|
3
|
+
quick-filter
|
|
4
|
+
{{#ifCond type "===" "ICON"}}quick-filter--icon{{/ifCond}}
|
|
5
|
+
{{#ifCond type "===" "ICON_TEXT"}}quick-filter--icon-text{{/ifCond}}
|
|
6
|
+
{{#ifCond type "===" "COLOUR"}}quick-filter--colour{{/ifCond}}
|
|
7
|
+
{{#ifCond type "===" "TEXT"}}quick-filter--text{{/ifCond}}
|
|
8
|
+
">
|
|
9
|
+
{{#if displayText}}
|
|
10
|
+
<h6 class="quick-filter__title">{{displayText}}</h6>
|
|
11
|
+
{{/if}}
|
|
12
|
+
<div class="quick-filter__swiper swiper-container swiper-container-main">
|
|
13
|
+
<div class="swiper-wrapper">
|
|
14
|
+
{{#each values}}
|
|
15
|
+
<a
|
|
16
|
+
href="{{url}}"
|
|
17
|
+
class="quick-filter__slide swiper-slide {{#if selected}}quick-filter__slide--selected{{/if}}"
|
|
18
|
+
>
|
|
19
|
+
{{#ifCond ../type "===" "IMAGE_TEXT"}}
|
|
20
|
+
<img src="{{additionalData}}" alt="{{text}}">
|
|
21
|
+
{{#if text}}<span>{{text}}</span>{{/if}}
|
|
22
|
+
{{/ifCond}}
|
|
23
|
+
{{#ifCond ../type "===" "ICON_TEXT"}}
|
|
24
|
+
<img src="{{additionalData}}" alt="{{text}}">
|
|
25
|
+
{{#if text}}<span>{{text}}</span>{{/if}}
|
|
26
|
+
{{/ifCond}}
|
|
27
|
+
{{#ifCond ../type "===" "ICON"}}
|
|
28
|
+
<img src="{{additionalData}}" alt="{{text}}">
|
|
29
|
+
{{/ifCond}}
|
|
30
|
+
{{#ifCond ../type "===" "TEXT"}}
|
|
31
|
+
<span>{{text}}</span>
|
|
32
|
+
{{/ifCond}}
|
|
33
|
+
{{#ifCond ../type "===" "COLOUR"}}
|
|
34
|
+
<span
|
|
35
|
+
data-toggle="tooltip"
|
|
36
|
+
data-placement="top"
|
|
37
|
+
title="{{text}}"
|
|
38
|
+
data-container=".quick-filter"
|
|
39
|
+
data-trigger="hover"
|
|
40
|
+
class="colour-swatch"
|
|
41
|
+
style="background-color: {{additionalData}}">
|
|
42
|
+
</span>
|
|
43
|
+
{{/ifCond}}
|
|
44
|
+
</a>
|
|
45
|
+
{{/each}}
|
|
46
|
+
</div>
|
|
47
|
+
<div class="swiper-pagination"></div>
|
|
48
|
+
<div class="quick-filter__next-btn">
|
|
49
|
+
<i class="far fa-angle-right"></i>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="quick-filter__prev-btn">
|
|
52
|
+
<i class="far fa-angle-left"></i>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
{{/with}}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<form class="filter-results filter-results_mobile">
|
|
2
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Color Family" mod="filter" facetStep="5" }}
|
|
3
|
+
{{#content "content"}}
|
|
4
|
+
{{#each filters.colors}}
|
|
5
|
+
<div class="filter__item">
|
|
6
|
+
<label for="m-{{id}}" class="chb chb-color">
|
|
7
|
+
<input type="checkbox" value="{{label}}" id="m-{{id}}" name="{{id}}-filter">
|
|
8
|
+
<ins><i class="fas fa-check"></i></ins>
|
|
9
|
+
<span>{{label}}</span>
|
|
10
|
+
</label>
|
|
11
|
+
</div>
|
|
12
|
+
{{/each}}
|
|
13
|
+
{{/content}}
|
|
14
|
+
{{/extend}}
|
|
15
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Shop by category" mod="filter category-filter" fixed-height=""}}
|
|
16
|
+
{{#content "content"}}
|
|
17
|
+
{{>category-tree filters}}
|
|
18
|
+
{{/content}}
|
|
19
|
+
{{/extend}}
|
|
20
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Shop by pack quantity" mod="filter" facetStep="5"}}
|
|
21
|
+
{{#content "content"}}
|
|
22
|
+
{{/content}}
|
|
23
|
+
{{/extend}}
|
|
24
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Shop by type" mod="filter" facetStep="5"}}
|
|
25
|
+
{{#content "content"}}
|
|
26
|
+
{{#each filters.type-list}}
|
|
27
|
+
<div class="filter__item">
|
|
28
|
+
<label for="m-{{id}}" class="chb chb-{{classForGtm}}">
|
|
29
|
+
<input type="checkbox" value="{{value}}" id="m-{{id}}"
|
|
30
|
+
name="m-{{id}}" {{#if checked}}checked{{/if}} {{#if disabled}}disabled{{/if}}>
|
|
31
|
+
<ins><i class="fas fa-check"></i></ins>
|
|
32
|
+
<span>{{label}}</span>
|
|
33
|
+
<span class="filter-quantity">({{quantity}})</span>
|
|
34
|
+
</label>
|
|
35
|
+
</div>
|
|
36
|
+
{{/each}}
|
|
37
|
+
{{/content}}
|
|
38
|
+
{{/extend}}
|
|
39
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Customer Rating" mod="filter" facetStep="5"}}
|
|
40
|
+
{{#content "content"}}
|
|
41
|
+
{{#each filters.rated}}
|
|
42
|
+
<div class="filter__item">
|
|
43
|
+
{{#ifvalue quantity value='0'}}
|
|
44
|
+
{{else}}
|
|
45
|
+
<label class="chb chb-{{classForGtm}}">
|
|
46
|
+
<input type="checkbox" value="{{value}}" id="{{id}}" name="{{id}}" {{#if checked}}checked{{/if}} {{#if
|
|
47
|
+
disabled}}disabled{{/if}}>
|
|
48
|
+
<ins><i class="fas fa-check"></i></ins>
|
|
49
|
+
<div class="filter__reviews">
|
|
50
|
+
<div class="product-rating">
|
|
51
|
+
<div class="rating-bg">
|
|
52
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
53
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
54
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
55
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
56
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
57
|
+
<div class="rating-overlay" data-rating="{{#if rating}}{{rating}}{{else}}0{{/if}}">
|
|
58
|
+
<span class="star-overlay">
|
|
59
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
60
|
+
</span>
|
|
61
|
+
<span class="star-overlay">
|
|
62
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
63
|
+
</span>
|
|
64
|
+
<span class="star-overlay">
|
|
65
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
66
|
+
</span>
|
|
67
|
+
<span class="star-overlay">
|
|
68
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
69
|
+
</span>
|
|
70
|
+
<span class="star-overlay">
|
|
71
|
+
<i class="fa fa-star" aria-hidden="true"></i>
|
|
72
|
+
</span>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
({{quantity}})
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</label>
|
|
79
|
+
{{/ifvalue}}
|
|
80
|
+
</div>
|
|
81
|
+
{{/each}}
|
|
82
|
+
{{/content}}
|
|
83
|
+
{{/extend}}
|
|
84
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Shop by bulb shape" mod="filter" facetStep="5"}}
|
|
85
|
+
{{#content "content"}}
|
|
86
|
+
{{/content}}
|
|
87
|
+
{{/extend}}
|
|
88
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Shop by number of gangs" mod="filter" facetStep="5"}}
|
|
89
|
+
{{#content "content"}}
|
|
90
|
+
{{/content}}
|
|
91
|
+
{{/extend}}
|
|
92
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Shop by bulb fitting" mod="filter" facetStep="5"}}
|
|
93
|
+
{{#content "content"}}
|
|
94
|
+
{{/content}}
|
|
95
|
+
{{/extend}}
|
|
96
|
+
{{#extend "accordion" collapsed="accordion_collapsed" hidden="hidden-state" header="Shop by wattage" mod="filter" facetStep="5"}}
|
|
97
|
+
{{#content "content"}}
|
|
98
|
+
{{/content}}
|
|
99
|
+
{{/extend}}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
</form>
|