398 lines
200 KiB
JavaScript
398 lines
200 KiB
JavaScript
|
|
!function(){var e={902:function(){
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
!function(e){var t=0,n=function(t,n){this.options=n,this.$elementFilestyle=[],this.$element=e(t)};n.prototype={clear:function(){this.$element.val(""),this.$elementFilestyle.find(":text").val(""),this.$elementFilestyle.find(".badge").remove()},destroy:function(){this.$element.removeAttr("style").removeData("filestyle"),this.$elementFilestyle.remove()},disabled:function(e){if(!0===e)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else{if(!1!==e)return this.options.disabled;this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1)}},buttonBefore:function(e){if(!0===e)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else{if(!1!==e)return this.options.buttonBefore;this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()))}},icon:function(e){if(!0===e)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else{if(!1!==e)return this.options.icon;this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".icon-span-filestyle").remove())}},input:function(e){if(!0===e)this.options.input||(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),this.pushNameFiles(),this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"));else{if(!1!==e)return this.options.input;if(this.options.input){this.options.input=!1,this.$elementFilestyle.find(":text").remove();var t=this.pushNameFiles();t.length>0&&this.options.badge&&this.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"</span>"),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn")}}},size:function(e){if(void 0===e)return this.options.size;var t=this.$elementFilestyle.find("label"),n=this.$elementFilestyle.find("input");t.removeClass("btn-lg btn-sm"),n.removeClass("input-lg input-sm"),"nr"!=e&&(t.addClass("btn-"+e),n.addClass("input-"+e))},placeholder:function(e){if(void 0===e)return this.options.placeholder;this.options.placeholder=e,this.$elementFilestyle.find("input").attr("placeholder",e)},buttonText:function(e){if(void 0===e)return this.options.buttonText;this.options.buttonText=e,this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText)},buttonName:function(e){if(void 0===e)return this.options.buttonName;this.options.buttonName=e,this.$elementFilestyle.find("label").attr({class:"btn "+this.options.buttonName})},iconName:function(e){if(void 0===e)return this.options.iconName;this.$elementFilestyle.find(".icon-span-filestyle").attr({class:"icon-span-filestyle "+this.options.iconName})},htmlIcon:function(){return this.options.icon?'<span class="icon-span-filestyle '+this.options.iconName+'"></span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+("nr"==this.options.size?"":"input-"+this.options.size)+'" placeholder="'+this.options.placeholder+'" disabled> ':""},pushNameFiles:function(){var e="",t=[];void 0===this.$element[0].files?t[0]={name:this.$element[0]&&this.$element[0].value}:t=this.$element[0].files;for(var n=0;n<t.length;n++)e+=t[n].name.split("\\").pop()+", ";return""!==e?this.$elementFilestyle.find(":text").val(e.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val(""),t},constructor:function(){var n,r,i=this,o=i.$element.attr("id");""!==o&&o||(o="filestyle-"+t,i.$element.attr({id:o}),t++),r='<span class="group-span-filestyle '+(i.options.input?"input-group-btn":"")+'"><label for="'+o+'" class="btn '+i.options.buttonName+" "+("nr"==i.options.size?"":"btn-"+i.options.size)+'" '+(i.options.disabled?'disabled="true"':"")+">"+i.htmlIcon()+'<span class="bu
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
!function(e){e.fn.scrollbox=function(t){return(t=e.extend({linear:!1,startDelay:2,delay:3,step:5,speed:32,switchItems:1,direction:"vertical",distance:"auto",autoPlay:!0,onMouseOverPause:!0,paused:!1,queue:null,listElement:"ul",listItemElement:"li",infiniteLoop:!0,switchAmount:0,afterForward:null,afterBackward:null,triggerStackable:!1},t)).scrollOffset="vertical"===t.direction?"scrollTop":"scrollLeft",t.queue&&(t.queue=e("#"+t.queue)),this.each((function(){var n,r,i,o,s,a,l,c,u,f=e(this),d=null,p=null,h=!1,m=0,g=0;t.onMouseOverPause&&(f.bind("mouseover",(function(){h=!0})),f.bind("mouseout",(function(){h=!1}))),n=f.children(t.listElement+":first-child"),!1===t.infiniteLoop&&0===t.switchAmount&&(t.switchAmount=n.children().length),a=function(){var i,s,a,l,c;if(!h&&(i=n.children(t.listItemElement+":first-child"),l="auto"!==t.distance?t.distance:"vertical"===t.direction?i.outerHeight(!0):i.outerWidth(!0),t.linear?a=Math.min(f[0][t.scrollOffset]+t.step,l):(c=Math.max(3,parseInt(.3*(l-f[0][t.scrollOffset]),10)),a=Math.min(f[0][t.scrollOffset]+c,l)),f[0][t.scrollOffset]=a,a>=l)){for(s=0;s<t.switchItems;s++)t.queue&&t.queue.find(t.listItemElement).length>0?(n.append(t.queue.find(t.listItemElement)[0]),n.children(t.listItemElement+":first-child").remove()):n.append(n.children(t.listItemElement+":first-child")),++m;if(f[0][t.scrollOffset]=0,clearInterval(d),d=null,e.isFunction(t.afterForward)&&t.afterForward.call(f,{switchCount:m,currentFirstChild:n.children(t.listItemElement+":first-child")}),t.triggerStackable&&0!==g)return void r();if(!1===t.infiniteLoop&&m>=t.switchAmount)return;t.autoPlay&&(p=setTimeout(o,1e3*t.delay))}},l=function(){if(!h){var i,s,a,l,c;if(0===f[0][t.scrollOffset]){for(s=0;s<t.switchItems;s++)n.children(t.listItemElement+":last-child").insertBefore(n.children(t.listItemElement+":first-child"));i=n.children(t.listItemElement+":first-child"),l="auto"!==t.distance?t.distance:"vertical"===t.direction?i.height():i.width(),f[0][t.scrollOffset]=l}if(t.linear?a=Math.max(f[0][t.scrollOffset]-t.step,0):(c=Math.max(3,parseInt(.3*f[0][t.scrollOffset],10)),a=Math.max(f[0][t.scrollOffset]-c,0)),f[0][t.scrollOffset]=a,0===a){if(--m,clearInterval(d),d=null,e.isFunction(t.afterBackward)&&t.afterBackward.call(f,{switchCount:m,currentFirstChild:n.children(t.listItemElement+":first-child")}),t.triggerStackable&&0!==g)return void r();t.autoPlay&&(p=setTimeout(o,1e3*t.delay))}}},r=function(){0!==g&&(g>0?(g--,p=setTimeout(o,0)):(g++,p=setTimeout(i,0)))},o=function(){clearInterval(d),d=setInterval(a,t.speed)},i=function(){clearInterval(d),d=setInterval(l,t.speed)},c=function(){t.autoPlay=!0,h=!1,clearInterval(d),d=setInterval(a,t.speed)},u=function(){h=!0},s=function(e){t.delay=e||t.delay,clearTimeout(p),t.autoPlay&&(p=setTimeout(o,1e3*t.delay))},t.autoPlay&&(p=setTimeout(o,1e3*t.startDelay)),f.bind("resetClock",(function(e){s(e)})),f.bind("forward",(function(){t.triggerStackable?null!==d?g++:o():(clearTimeout(p),o())})),f.bind("backward",(function(){t.triggerStackable?null!==d?g--:i():(clearTimeout(p),i())})),f.bind("pauseHover",(function(){u()})),f.bind("forwardHover",(function(){c()})),f.bind("speedUp",(function(e,n){"undefined"===n&&(n=Math.max(1,parseInt(t.speed/2,10))),t.speed=n})),f.bind("speedDown",(function(e,n){"undefined"===n&&(n=2*t.speed),t.speed=n})),f.bind("updateConfig",(function(n,r){t=e.extend(t,r)}))}))}}(jQuery)},355:function(){!function(e){"use strict";var t=0;function n(t,n){return e.map(t,(function(e){return function(e,t){return e+".touchspin_"+t}(e,n)}))}e.fn.TouchSpin=function(r){if("destroy"!==r){var i={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},o={min:"min",max:"max",initval:"init-
|
||
|
|
/*!
|
||
|
|
* Bootstrap v4.0.0-alpha.5 (https://getbootstrap.com)
|
||
|
|
* Copyright 2011-2016 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
|
|
*/
|
||
|
|
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t,n,r,i,o,s,a,l,c,u,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e){function t(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(e){return(e[0]||e).nodeType}function r(t){var n=this,r=!1;return e(this).one(s.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||s.triggerTransitionEnd(n)}),t),this}var i=!1,o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},s={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");return t||(t=e.getAttribute("href")||"",t=/^#[a-z]/i.test(t)?t:null),t},reflow:function(e){new Function("bs","return bs")(e.offsetHeight)},triggerTransitionEnd:function(t){e(t).trigger(i.end)},supportsTransitionEnd:function(){return Boolean(i)},typeCheckConfig:function(e,r,i){for(var o in i)if(i.hasOwnProperty(o)){var s,a=i[o],l=r[o];if(s=l&&n(l)?"element":t(l),!new RegExp(a).test(s))throw new Error(e.toUpperCase()+': Option "'+o+'" provided type "'+s+'" but expected type "'+a+'".')}}};return i=function(){if(window.QUnit)return!1;var e=document.createElement("bootstrap");for(var t in o)if(void 0!==e.style[t])return{end:o[t]};return!1}(),e.fn.emulateTransitionEnd=r,s.supportsTransitionEnd()&&(e.event.special[s.TRANSITION_END]={bindType:i.end,delegateType:i.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),s}(jQuery),h=(t=jQuery,n="alert",i="."+(r="bs.alert"),o=t.fn[n],s={CLOSE:"close"+i,CLOSED:"closed"+i,CLICK_DATA_API:"click"+i+".data-api"},a="alert",l="fade",c="in",u=function(){function n(t){e(this,n),this._element=t}return n.prototype.close=function(e){e=e||this._element;var t=this._getRootElement(e);this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.prototype.dispose=function(){t.removeData(this._element,r),this._element=null},n.prototype._getRootElement=function(e){var n=p.getSelectorFromElement(e),r=!1;return n&&(r=t(n)[0]),r||(r=t(e).closest("."+a)[0]),r},n.prototype._triggerCloseEvent=function(e){var n=t.Event(s.CLOSE);return t(e).trigger(n),n},n.prototype._removeElement=function(e){return t(e).removeClass(c),p.supportsTransitionEnd()&&t(e).hasClass(l)?void t(e).one(p.TRANSITION_END,t.proxy(this._destroyElement,this,e)).emulateTransitionEnd(150):void this._destroyElement(e)},n.prototype._destroyElement=function(e){t(e).detach().trigger(s.CLOSED).remove()},n._jQueryInterface=function(e){return this.each((function(){var i=t(this),o=i.data(r);o||(o=new n(this),i.data(r,o)),"close"===e&&o[e](this)}))},n._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},d(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.5"}}]),n}(),t(document).on(s.CLICK_DATA_API,'[data-dismiss="alert"]',u._handleDismiss(new u)),t.fn[n]=u._jQueryInterface,t.fn[n].Constructor=u,t.fn[n].noConflict=function(){return t.fn[n]=o,u._jQueryInterface},function(t){var n="button",r="bs.button",i="."+r,o=".data-api",s=t.fn[n],a="active",l="btn",c="focus",u='[data-toggle^="button"]',f='[data-toggle="buttons"]',p="input",h=".active",m=".btn",g={CLICK_DATA_API:"click"+i+o,F
|
||
|
|
/*!
|
||
|
|
* @fileOverview TouchSwipe - jQuery Plugin
|
||
|
|
* @version 1.6.18
|
||
|
|
*
|
||
|
|
* @author Matt Bryson http://www.github.com/mattbryson
|
||
|
|
* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
|
||
|
|
* @see http://labs.rampinteractive.co.uk/touchSwipe/
|
||
|
|
* @see http://plugins.jquery.com/project/touchSwipe
|
||
|
|
* @license
|
||
|
|
* Copyright (c) 2010-2015 Matt Bryson
|
||
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
|
|
*
|
||
|
|
*/s=function(e){"use strict";function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=c),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=e.extend({},e.fn.swipe.defaults,t),this.each((function(){var r=e(this),i=r.data(k);i||(i=new n(this,t),r.data(k,i))}))}function n(t,n){function A(t){if(!(!0===Se.data(k+"_intouch")||e(t.target).closest(n.excludedElements,Se).length>0)){var a=t.originalEvent?t.originalEvent:t;if(!a.pointerType||"mouse"!=a.pointerType||0!=n.fallbackToMouseEvents){var l,c=a.touches,u=c?c[0]:a;return _e=w,c?Ce=c.length:!1!==n.preventDefaultEvents&&t.preventDefault(),de=0,pe=null,he=null,we=null,me=0,ge=0,ve=0,ye=1,be=0,(f={})[r]=te(r),f[i]=te(i),f[o]=te(o),f[s]=te(s),xe=f,K(),Z(0,u),!c||Ce===n.fingers||n.fingers===y||W()?(Te=oe(),2==Ce&&(Z(1,c[1]),ge=ve=re(Ee[0].start,Ee[1].start)),(n.swipeStatus||n.pinchStatus)&&(l=L(a,_e))):l=!1,!1===l?(L(a,_e=_),l):(n.hold&&(Ne=setTimeout(e.proxy((function(){Se.trigger("hold",[a.target]),n.hold&&(l=n.hold.call(Se,a,a.target))}),this),n.longTapThreshold)),G(!0),null)}}var f}function O(t){var f,d,p,h,m=t.originalEvent?t.originalEvent:t;if(_e!==S&&_e!==_&&!X()){var b,w=m.touches,C=J(w?w[0]:m);if(ke=oe(),w&&(Ce=w.length),n.hold&&clearTimeout(Ne),_e=x,2==Ce&&(0==ge?(Z(1,w[1]),ge=ve=re(Ee[0].start,Ee[1].start)):(J(w[1]),ve=re(Ee[0].end,Ee[1].end),Ee[0].end,Ee[1].end,we=1>ye?l:a),ye=(ve/ge*1).toFixed(2),be=Math.abs(ge-ve)),Ce===n.fingers||n.fingers===y||!w||W()){if(pe=ie(C.start,C.end),function(e,t){if(!1!==n.preventDefaultEvents)if(n.allowPageScroll===c)e.preventDefault();else{var a=n.allowPageScroll===u;switch(t){case r:(n.swipeLeft&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case i:(n.swipeRight&&a||!a&&n.allowPageScroll!=g)&&e.preventDefault();break;case o:(n.swipeUp&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault();break;case s:(n.swipeDown&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault()}}}(t,he=ie(C.last,C.end)),p=C.start,h=C.end,de=Math.round(Math.sqrt(Math.pow(h.x-p.x,2)+Math.pow(h.y-p.y,2))),me=ne(),d=de,(f=pe)!=c&&(d=Math.max(d,ee(f)),xe[f].distance=d),b=L(m,_e),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var E=!0;if(n.triggerOnTouchLeave){var T=function(t){var n=(t=e(t)).offset(),r={left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()};return r}(this);E=function(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}(C.end,T)}!n.triggerOnTouchEnd&&E?_e=D(x):n.triggerOnTouchLeave&&!E&&(_e=D(S)),_e!=_&&_e!=S||L(m,_e)}}else L(m,_e=_);!1===b&&L(m,_e=_)}}function I(e){var t=e.originalEvent?e.originalEvent:e,r=t.touches;if(r){if(r.length&&!X())return function(e){Ae=oe(),Oe=e.touches.length+1}(t),!0;if(r.length&&X())return!0}return X()&&(Ce=Oe),ke=oe(),me=ne(),M()||!B()?L(t,_e=_):n.triggerOnTouchEnd||!1===n.triggerOnTouchEnd&&_e===x?(!1!==n.preventDefaultEvents&&!1!==e.cancelable&&e.preventDefault(),L(t,_e=S)):!n.triggerOnTouchEnd&&U()?F(t,_e=S,p):_e===x&&L(t,_e=_),G(!1),null}function P(){Ce=0,ke=0,Te=0,ge=0,ve=0,ye=1,K(),G(!1)}function N(e){var t=e.originalEvent?e.originalEvent:e;n.triggerOnTouchLeave&&L(t,_e=D(S))}function j(){Se.off(ae,A),Se.off(fe,P),Se.off(le,O),Se.off(ce,I),ue&&Se.off(ue,N),G(!1)}function D(e){var t=e,r=V(),i=B(),o=M();return!r||o?t=_:!i||e!=x||n.triggerOnTouchEnd&&!n.triggerOnTouchLeave?!i&&e==S&&n.triggerOnTouchLeave&&(t=_):t=S,t}function L(e,t){var r,i=e.touches;return(!(!R()||!q())||q())&&(r=F(e,t,f)),(!(!H()||!W())||W())&&!1!==r&&(r=F(e,t,d)),Y()&&Q()&&!1!==r?r=F(e,t,h):me>n.longTapThreshold&&b>de&&n.longTap&&!1!==r?r=F(e,t,m):!(1!==Ce&&C||!(isNaN(de)||de<n.threshold)||!U())&&!1!==r&&(r=F(e,t,p)),t===_&&P(),t===S&&(i&&i.length||P()),r}function F(t,c,u){var g;if(u==f){if(Se.trigger("swipeStatus",[c,pe||null,de||0,me||0,Ce,Ee,he]),n.swipeStatus&&!1===(g=n.swipeStatus.call(Se,t,c,pe||null,de||0,me||0,Ce,Ee,he)))return!1;if(c==S&&R()){if(clearTimeout(Pe),clearTimeout(Ne),Se.trigger("swipe",[pe,de,me,Ce,Ee,he]),n.swipe&&!1===(g=n.swipe.call(Se,t,pe,de,me,Ce,Ee,he)))return!1;switch(pe){case r:Se.trigger("swipeLeft",[pe,de,me,Ce,Ee,he])
|
||
|
|
/*! tether 2.0.0 */
|
||
|
|
var t,n;function f(t){var n;return(n=e.call(this)||this).position=n.position.bind(i(n)),W.push(i(n)),n.history=[],n.setOptions(t,!1),L.modules.forEach((function(e){s(e.initialize)||e.initialize.call(i(n))})),n.position(),n}n=e,(t=f).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var h=f.prototype;return h.setOptions=function(e,t){var n=this;void 0===t&&(t=!0);var r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether",bodyElement:document.body};this.options=m(r,e);var i=this.options,a=i.element,l=i.target,c=i.targetModifier,u=i.bodyElement;if(this.element=a,this.target=l,this.targetModifier=c,"string"==typeof u&&(u=document.querySelector(u)),this.bodyElement=u,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(s(n[e]))throw new Error("Tether Error: Both element and target must be defined");s(n[e].jquery)?o(n[e])&&(n[e]=document.querySelector(n[e])):n[e]=n[e][0]})),this._addClasses(),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=j(this.options.targetAttachment),this.attachment=j(this.options.attachment),this.offset=j(this.options.offset),this.targetOffset=j(this.options.targetOffset),s(this.scrollParents)||this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=function(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var i=void 0;try{i=getComputedStyle(r)}catch(e){}if(s(i)||null===i)return n.push(r),n;var o=i,a=o.overflow,l=o.overflowX,c=o.overflowY;/(auto|scroll|overlay)/.test(a+c+l)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(i.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}(this.target),!1!==this.options.enabled&&this.enable(t)},h.getTargetBounds=function(){return s(this.targetModifier)?w(this.bodyElement,this.target):"visible"===this.targetModifier?function(e,t){if(t===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var n=w(e,t),r={height:n.height,width:n.width,top:n.top,left:n.left};return r.height=Math.min(r.height,n.height-(pageYOffset-n.top)),r.height=Math.min(r.height,n.height-(n.top+n.height-(pageYOffset+innerHeight))),r.height=Math.min(innerHeight,r.height),r.height-=2,r.width=Math.min(r.width,n.width-(pageXOffset-n.left)),r.width=Math.min(r.width,n.width-(n.left+n.width-(pageXOffset+innerWidth))),r.width=Math.min(innerWidth,r.width),r.width-=2,r.top<pageYOffset&&(r.top=pageYOffset),r.left<pageXOffset&&(r.left=pageXOffset),r}(this.bodyElement,this.target):"scroll-handle"===this.targetModifier?function(e,t){var n,r=t.scrollTop,i=t===document.body;i?(t=document.documentElement,n={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):n=w(e,t);var o=getComputedStyle(t),s=0;(t.scrollWidth>t.clientWidth||[o.overflow,o.overflowX].indexOf("scroll")>=0||!i)&&(s=15);var a=n.height-parseFloat(o.borderTopWidth)-parseFloat(o.borderBottomWidth)-s,l={width:15,height:.975*a*(a/t.scrollHeight),left:n.left+n.width-parseFloat(o.borderLeftWidth)-15},c=0;a<408&&i&&(c=-11e-5*Math.pow(a,2)-.00727*a+22.58),i||(l.height=Math.max(l.height,24));var u=r/(t.scrollHeight-a);return l.top=u*(a-l.height-c)+n.top+parseFloat(o.borderTopWidth),i&&(l.height=Math.max(l.height,24)),l}(this.bodyElement,this.target):void 0},h.clearCache=function(){this._cache={}},h.cache=function(e,t){return s(this._cache)&&(this._cache={}),s(this._cache[e])&&(this._cache[e]=t.call(this)),this._cache[e]},h.enable=function(e){var t=this;void 0===e&&(e=!0);var n=this.options,r=n.classes,i=n.classPrefix;!1!==this.options.addTargetClasses&&a(this.target,l("enabled",r,i)),a(this.element,l("enabled",r,i)),this.enabled=!0,this.scrollParents.forEach((function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",
|
||
|
|
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */!function(e){"use strict";if(!e.jQuery){var t=function(e,n){return new t.fn.init(e,n)};t.isWindow=function(e){return e&&e===e.window},t.type=function(e){return e?"object"==typeof e||"function"==typeof e?r[o.call(e)]||"object":typeof e:e+""},t.isArray=Array.isArray||function(e){return"array"===t.type(e)},t.isPlainObject=function(e){var n;if(!e||"object"!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(n in e);return void 0===n||i.call(e,n)},t.each=function(e,t,n){var r=0,i=e.length,o=l(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(e.hasOwnProperty(r)&&!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(e[r],r,e[r]))break;return e},t.data=function(e,r,i){if(void 0===i){var o=e[t.expando],s=o&&n[o];if(void 0===r)return s;if(s&&r in s)return s[r]}else if(void 0!==r){var a=e[t.expando]||(e[t.expando]=++t.uuid);return n[a]=n[a]||{},n[a][r]=i,i}},t.removeData=function(e,r){var i=e[t.expando],o=i&&n[i];o&&(r?t.each(r,(function(e,t){delete o[t]})):delete n[i])},t.extend=function(){var e,n,r,i,o,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[l]||{},l++),"object"!=typeof a&&"function"!==t.type(a)&&(a={}),l===c&&(a=this,l--);l<c;l++)if(o=arguments[l])for(i in o)o.hasOwnProperty(i)&&(e=a[i],a!==(r=o[i])&&(u&&r&&(t.isPlainObject(r)||(n=t.isArray(r)))?(n?(n=!1,s=e&&t.isArray(e)?e:[]):s=e&&t.isPlainObject(e)?e:{},a[i]=t.extend(u,s,r)):void 0!==r&&(a[i]=r)));return a},t.queue=function(e,n,r){if(e){n=(n||"fx")+"queue";var i,o,s,a=t.data(e,n);return r?(!a||t.isArray(r)?a=t.data(e,n,(s=o||[],(i=r)&&(l(Object(i))?function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!=n)for(;void 0!==t[r];)e[i++]=t[r++];e.length=i}(s,"string"==typeof i?[i]:i):[].push.call(s,i)),s)):a.push(r),a):a||[]}},t.dequeue=function(e,n){t.each(e.nodeType?[e]:e,(function(e,r){n=n||"fx";var i=t.queue(r,n),o=i.shift();"inprogress"===o&&(o=i.shift()),o&&("fx"===n&&i.unshift("inprogress"),o.call(r,(function(){t.dequeue(r,n)})))}))},t.fn=t.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var e=this[0],n=function(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase();)t=t.offsetParent;return t||document}(e),r=this.offset(),i=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return r.top-=parseFloat(e.style.marginTop)||0,r.left-=parseFloat(e.style.marginLeft)||0,n.style&&(i.top+=parseFloat(n.style.borderTopWidth)||0,i.left+=parseFloat(n.style.borderLeftWidth)||0),{top:r.top-i.top,left:r.left-i.left}}};var n={};t.expando="velocity"+(new Date).getTime(),t.uuid=0;for(var r={},i=r.hasOwnProperty,o=r.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),a=0;a<s.length;a++)r["[object "+s[a]+"]"]=s[a].toLowerCase();t.fn.init.prototype=t.fn,e.Velocity={Utilities:t}}function l(e){var n=e.length,r=t.type(e);return"function"!==r&&!t.isWindow(e)&&(!(1!==e.nodeType||!n)||("array"===r||0===n||"number"==typeof n&&n>0&&n-1 in e))}}(window),function(o){"use strict";"object"==typeof e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}((function(){"use strict";return function(e,t,n,r){var i,o=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
t().responsive=t().responsive||{},t().responsive.current_width=window.innerWidth,t().responsive.min_width=768,t().responsive.mobile=t().responsive.current_width<t().responsive.min_width,i()(window).on("resize",(()=>{const e=t().responsive.current_width,n=t().responsive.min_width,r=window.innerWidth,i=e>=n&&r<n||e<n&&r>=n;t().responsive.current_width=r,t().responsive.mobile=t().responsive.current_width<t().responsive.min_width,i&&s()})),i()(document).ready((()=>{t().responsive.mobile&&s()})),i()(document).ready((()=>{1===i()("body#checkout").length&&(i()(t().themeSelectors.checkout.termsLink).on("click",(e=>{e.preventDefault();let n=i()(e.target).attr("href");n&&(n+="?content_only=1",i().get(n,(e=>{i()(t().themeSelectors.modal).find(t().themeSelectors.modalContent).html(i()(e).find(".page-cms").contents())})).fail((e=>{t().emit("handleError",{eventType:"clickTerms",resp:e})}))),i()(t().themeSelectors.modal).modal("show")})),i()(t().themeSelectors.checkout.giftCheckbox).on("click",(()=>{i()("#gift").slideToggle()})),i()(t().themeSelectors.checkout.imagesLink).on("click",(function(){const e=i()(this).find("i.material-icons");"expand_more"===e.text()?e.text("expand_less"):e.text("expand_more")}))),t().on("updatedDeliveryForm",(e=>{void 0!==e.deliveryOption&&0!==e.deliveryOption.length&&(i()(t().themeSelectors.checkout.carrierExtraContent).hide(),e.deliveryOption.next(t().themeSelectors.checkout.carrierExtraContent).slideDown())}))})),i()(document).ready((function(){i()("body#order-detail")&&i()(`${t().themeSelectors.order.returnForm} table thead input[type=checkbox]`).on("click",(function(){const e=i()(this).prop("checked");i()(`${t().themeSelectors.order.returnForm} table tbody input[type=checkbox]`).each(((t,n)=>{i()(n).prop("checked",e)}))}))}));n(924);
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
function a(e,t){if(void 0===t)return;const n=i()(e).siblings('source[type="image/webp"]'),r=i()(e).siblings('source[type="image/avif"]');void 0!==t.webp&&n.length&&n.attr("srcset",t.webp),void 0!==t.avif&&r.length&&r.attr("srcset",t.avif)}
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
class l{init(){i()(".js-product-miniature").each(((e,t)=>{if(i()(t).find(".color").length>5){let e=0;i()(t).find(".color").each(((t,n)=>{t>4&&(i()(n).hide(),e+=1)})),i()(t).find(".js-count").append(`+${e}`)}}))}}
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
i()(document).ready((()=>{const e=e=>{const t=i()(".js-qv-product-images"),n=i()(".js-qv-product-images li img").height()+20,r=t.position().top;t.velocity({translateY:"up"===e?r+n:r-n},(()=>{t.position().top>=0?i()(".arrow-up").css("opacity",".2"):t.position().top+t.height()<=i()(".js-qv-mask").height()&&i()(".arrow-down").css("opacity",".2")}))};t().on("clickQuickView",(n=>{const r={action:"quickview",id_product:n.dataset.idProduct,id_product_attribute:n.dataset.idProductAttribute};i().post(t().urls.pages.product,r,null,"json").then((n=>{i()("body").append(n.quickview_html);const r=i()(`#quickview-modal-${n.product.id}-${n.product.id_product_attribute}`);r.modal("show"),(n=>{const r=i()(t().themeSelectors.product.arrows),o=n.find(".js-qv-product-images");i()(t().themeSelectors.product.thumb).on("click",(e=>{i()(t().themeSelectors.product.thumb).hasClass("selected")&&i()(t().themeSelectors.product.thumb).removeClass("selected"),i()(e.currentTarget).addClass("selected"),i()(t().themeSelectors.product.cover).attr("src",i()(e.target).data("image-large-src")),i()(t().themeSelectors.product.cover).attr("alt",i()(e.target).attr("alt")),i()(t().themeSelectors.product.cover).attr("title",i()(e.target).attr("title")),a(i()(t().themeSelectors.product.cover),i()(e.target).data("image-large-sources"))})),o.find("li").length<=4?r.hide():r.on("click",(n=>{i()(n.target).hasClass("arrow-up")&&i()(".js-qv-product-images").position().top<0?(e("up"),i()(t().themeSelectors.arrowDown).css("opacity","1")):i()(n.target).hasClass("arrow-down")&&o.position().top+o.height()>i()(".js-qv-mask").height()&&(e("down"),i()(t().themeSelectors.arrowUp).css("opacity","1"))})),n.find(t().selectors.quantityWanted).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6}),i()(t().themeSelectors.touchspin).off("touchstart.touchspin")})(r),r.on("hidden.bs.modal",(()=>{r.remove()}))})).fail((e=>{t().emit("handleError",{eventType:"clickQuickView",resp:e})}))})),i()("body").on("click",t().themeSelectors.listing.searchFilterToggler,(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.footer).addClass("hidden-sm-down")})),i()(`${t().themeSelectors.listing.searchFilterControls} ${t().themeSelectors.clear}`).on("click",(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.footer).removeClass("hidden-sm-down")})),i()(`${t().themeSelectors.listing.searchFilterControls} .ok`).on("click",(()=>{i()(t().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i()(t().themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i()(t().themeSelectors.footer).removeClass("hidden-sm-down")}));const n=function(e){if(void 0!==e.target.dataset.searchUrl)return e.target.dataset.searchUrl;if(void 0===i()(e.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return i()(e.target).parent()[0].dataset.searchUrl};i()("body").on("change",`${t().themeSelectors.listing.searchFilters} input[data-search-url]`,(e=>{t().emit("updateFacets",n(e))})),i()("body").on("click",t().themeSelectors.listing.searchFiltersClearAll,(e=>{t().emit("updateFacets",n(e))})),i()("body").on("click",t().themeSelectors.listing.searchLink,(e=>{e.preventDefault(),t().emit("updateFacets",i()(e.target).closest("a").get(0).href)})),window.addEventListener("popstate",(e=>{e.state&&e.state.current_url&&(window.location.href=e.state.current_url)})),i()("body").on("change",`${t().themeSelectors.listing.searchFilters} select`,(e=>{const n=i()(e.target).closest("form");t().emit("updateFacets",`?${n.serialize()}`)})),t().on("updateProductList",(e=>{!function(e){i()(t().themeSelectors.listing.searchFilters).replaceWith(e.rendered_facets),i()(t().themeSelector
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
class c{init(){const e=i()(".js-modal-arrows"),t=i()(".js-modal-product-images");i()("body").on("click",".js-modal-thumb",(e=>{i()(".js-modal-thumb").hasClass("selected")&&i()(".js-modal-thumb").removeClass("selected"),i()(e.currentTarget).addClass("selected"),i()(prestashop.themeSelectors.product.modalProductCover).attr("src",i()(e.target).data("image-large-src")),i()(prestashop.themeSelectors.product.modalProductCover).attr("title",i()(e.target).attr("title")),i()(prestashop.themeSelectors.product.modalProductCover).attr("alt",i()(e.target).attr("alt")),a(i()(prestashop.themeSelectors.product.modalProductCover),i()(e.target).data("image-large-sources"))})).on("click","aside#thumbnails",(e=>{"thumbnails"===e.target.id&&i()("#product-modal").modal("hide")})),i()(".js-modal-product-images li").length<=5?e.css("opacity",".2"):e.on("click",(e=>{i()(e.target).hasClass("arrow-up")&&t.position().top<0?(this.move("up"),i()(".js-modal-arrow-down").css("opacity","1")):i()(e.target).hasClass("arrow-down")&&t.position().top+t.height()>i()(".js-modal-mask").height()&&(this.move("down"),i()(".js-modal-arrow-up").css("opacity","1"))}))}move(e){const t=i()(".js-modal-product-images"),n=i()(".js-modal-product-images li img").height()+10,r=t.position().top;t.velocity({translateY:"up"===e?r+n:r-n},(()=>{t.position().top>=0?i()(".js-modal-arrow-up").css("opacity",".2"):t.position().top+t.height()<=i()(".js-modal-mask").height()&&i()(".js-modal-arrow-down").css("opacity",".2")}))}}
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
i()(document).ready((()=>{function e(){const e=i()(t().themeSelectors.product.cover),n=i()(t().themeSelectors.product.modalProductCover);let r=i()(t().themeSelectors.product.selected);const o=(r,i)=>{const o=i.find(t().themeSelectors.product.thumb);r.removeClass("selected"),o.addClass("selected"),n.prop("src",o.data("image-large-src")),e.prop("src",o.data("image-medium-src")),e.attr("title",o.attr("title")),n.attr("title",o.attr("title")),e.attr("alt",o.attr("alt")),n.attr("alt",o.attr("alt")),a(e,o.data("image-medium-sources")),a(n,o.data("image-large-sources"))};i()(t().themeSelectors.product.thumb).on("click",(e=>{r=i()(t().themeSelectors.product.selected),o(r,i()(e.target).closest(t().themeSelectors.product.thumbContainer))})),e.swipe({swipe:(e,n)=>{r=i()(t().themeSelectors.product.selected);const s=r.closest(t().themeSelectors.product.thumbContainer);"right"===n?s.prev().length>0?o(r,s.prev()):s.next().length>0&&o(r,s.next()):"left"===n&&(s.next().length>0?o(r,s.next()):s.prev().length>0&&o(r,s.prev()))},allowPageScroll:"vertical"})}function n(){i()("#main .js-qv-product-images li").length>2?(i()("#main .js-qv-mask").addClass("scroll"),i()(".scroll-box-arrows").addClass("scroll"),i()("#main .js-qv-mask").scrollbox({direction:"h",distance:113,autoPlay:!1}),i()(".scroll-box-arrows .left").click((()=>{i()("#main .js-qv-mask").trigger("backward")})),i()(".scroll-box-arrows .right").click((()=>{i()("#main .js-qv-mask").trigger("forward")}))):(i()("#main .js-qv-mask").removeClass("scroll"),i()(".scroll-box-arrows").removeClass("scroll"))}function r(){i()(t().themeSelectors.fileInput).on("change",(e=>{const t=i()(e.currentTarget)[0],n=t?t.files[0]:null;t&&n&&i()(t).prev().text(n.name)}))}!function(){const e=i()(t().selectors.quantityWanted);e.TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(e.attr("min"),10),max:1e6}),i()(t().themeSelectors.touchspin).off("touchstart.touchspin"),e.on("focusout",(()=>{(""===e.val()||e.val()<e.attr("min"))&&(e.val(e.attr("min")),e.trigger("change"))})),i()("body").on("change keyup",t().selectors.quantityWanted,(n=>{""!==e.val()&&(i()(n.currentTarget).trigger("touchspin.stopspin"),t().emit("updateProduct",{eventType:"updatedProductQuantity",event:n}))}))}(),r(),e(),n(),function(){const e=i()(t().themeSelectors.product.tabs);e.on("show.bs.tab",(e=>{const n=i()(e.target);n.addClass(t().themeSelectors.product.activeNavClass),i()(n.attr("href")).addClass(t().themeSelectors.product.activeTabClass)})),e.on("hide.bs.tab",(e=>{const n=i()(e.target);n.removeClass(t().themeSelectors.product.activeNavClass),i()(n.attr("href")).removeClass(t().themeSelectors.product.activeTabClass)}))}(),t().on("updatedProduct",(o=>{if(r(),e(),o&&o.product_minimal_quantity){const e=parseInt(o.product_minimal_quantity,10),n=t().selectors.quantityWanted;i()(n).trigger("touchspin.updatesettings",{min:e})}n(),i()(i()(t().themeSelectors.product.activeTabs).attr("href")).addClass("active").removeClass("fade"),i()(t().themeSelectors.product.imagesModal).replaceWith(o.product_images_modal);(new c).init()}))})),t().cart=t().cart||{},t().cart.active_inputs=null;const u='input[name="product-quantity-spin"]';let f=!1,d=!1,p="";const h=()=>{const e=i()(t().themeSelectors.checkout.btn);if((i()(t().themeSelectors.notifications.dangerAlert).length||""!==p&&!f)&&e.addClass("disabled"),""!==p){const n=`\n <article class="alert alert-danger" role="alert" data-alert="danger">\n <ul>\n <li>${p}</li>\n </ul>\n </article>\n `;i()(t().themeSelectors.notifications.container).html(n),p="",d=!1,f&&e.removeClass("disabled")}else!f&&d&&(f=!1,d=!1,i()(t().themeSelectors.notifications.container).html(""),e.removeClass("disabled"))},m=e=>{const{hasError:t,errors:n}=e;f=null!=t&&t;const r=null!=n?n:"";p=r instanceof Array?r.join(" "):r,d=!0};function g(){i().each(i()(u),((e,t)=>{i()(t).TouchSpin({verticalbuttons:!0,verti
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
function(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}}(l)),r.on("focusout keyup",e,(e=>"keyup"===e.type?(13===e.keyCode&&(d=!0,l(e)),!1):(d||l(e),!1)));r.on("hidden.bs.collapse",t().themeSelectors.cart.promoCode,(()=>{i()(t().themeSelectors.cart.displayPromo).show(400)})),r.on("click",t().themeSelectors.cart.promoCodeButton,(e=>{e.preventDefault(),i()(t().themeSelectors.cart.promoCode).collapse("toggle")})),r.on("click",t().themeSelectors.cart.displayPromo,(e=>{i()(e.currentTarget).hide(400)})),r.on("click",t().themeSelectors.cart.discountCode,(e=>{e.stopPropagation();const n=i()(e.currentTarget);return i()(t().themeSelectors.cart.discountName).val(n.text()),i()(t().themeSelectors.cart.promoCode).collapse("show"),i()(t().themeSelectors.cart.displayPromo).hide(400),!1}))}));var y=n(58),b=n.n(y);
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
class w{constructor(e){this.el=e}init(){this.el.on("show.bs.dropdown",((e,t)=>{t?i()(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideDown():i()(e.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()})),this.el.on("hide.bs.dropdown",((e,t)=>{t?i()(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideUp():i()(e.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()})),this.el.find("select.link").each(((e,t)=>{i()(t).on("change",(function(){window.location=i()(this).val()}))}))}}
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
class x{init(){this.parentFocus(),this.togglePasswordVisibility()}parentFocus(){i()(".js-child-focus").on("focus",(function(){i()(this).closest(".js-parent-focus").addClass("focus")})),i()(".js-child-focus").on("focusout",(function(){i()(this).closest(".js-parent-focus").removeClass("focus")}))}togglePasswordVisibility(){i()('button[data-action="show-password"]').on("click",(function(){const e=i()(this).closest(".input-group").children("input.js-visible-password");"password"===e.attr("type")?(e.attr("type","text"),i()(this).text(i()(this).data("textHide"))):(e.attr("type","password"),i()(this).text(i()(this).data("textShow")))}))}}var S=n(531);
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
const{passwordPolicy:_}=prestashop.themeSelectors,C=(e,t,n)=>{return r=void 0,i=null,o=function*(){const{prestashop:r}=window,i=e.value,o=t.querySelector(_.requirementScoreIcon),s=yield r.checkPasswordScore(i),a=(e=>{switch(e){case 0:case 1:return{color:"bg-danger"};case 2:return{color:"bg-warning"};case 3:case 4:return{color:"bg-success"};default:throw new Error("Invalid password strength indicator.")}})(s.score),l=i.length,c=[];$(e).popover("dispose"),t.style.display=""===i?"none":"block",""!==s.feedback.warning&&s.feedback.warning in n&&c.push(n[s.feedback.warning]),s.feedback.suggestions.forEach((e=>{e in n&&c.push(n[e])})),$(e).popover({html:!0,placement:"top",content:c.join("<br/>")}).popover("show");const u=l>=parseInt(e.dataset.minlength,10)&&l<=parseInt(e.dataset.maxlength,10),f=parseInt(e.dataset.minscore,10)<=s.score;t.querySelector(_.requirementLengthIcon).classList.toggle("text-success",u),o.classList.toggle("text-success",f),e.classList.remove("border-success","border-danger"),e.classList.add(f&&u?"border-success":"border-danger"),e.classList.add("form-control","border");const d=20*s.score+20,p=t.querySelector(_.progressBar);p&&(p.style.width=`${d}%`,p.classList.remove("bg-success","bg-danger","bg-warning"),p.classList.add(a.color))},new Promise(((e,t)=>{var n=e=>{try{a(o.next(e))}catch(e){t(e)}},s=e=>{try{a(o.throw(e))}catch(e){t(e)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,s);a((o=o.apply(r,i)).next())}));var r,i,o};var E=e=>{document.querySelectorAll(e).forEach((e=>{const t=null==e?void 0:e.querySelector(_.inputColumn),n=null==e?void 0:e.querySelector("input"),r=document.createElement("div"),i=document.querySelector(_.template);let o;if(i&&e&&t&&n&&(r.innerHTML=i.innerHTML,t.append(r),o=e.querySelector(_.container),o)){const e=document.querySelector(_.hint);if(e){const t=JSON.parse(e.innerHTML),r=o.querySelector(_.requirementLength),i=o.querySelector(_.requirementScore),s=null==r?void 0:r.querySelector("span"),a=null==i?void 0:i.querySelector("span");s&&r&&r.dataset.translation&&(s.innerText=(0,S.sprintf)(r.dataset.translation,n.dataset.minlength,n.dataset.maxlength)),a&&i&&i.dataset.translation&&(a.innerText=(0,S.sprintf)(i.dataset.translation,t[n.dataset.minscore])),n.addEventListener("keyup",(()=>C(n,o,t))),n.addEventListener("blur",(()=>{$(n).popover("dispose")}))}}return e?{element:e}:{error:new Error("The password policy elements are undefined.")}}))};
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
class T extends w{init(){let e;const n=this;this.el.find("li").on("mouseenter mouseleave",(t=>{if(this.el.parent().hasClass("mobile"))return;const n=i()(t.currentTarget).attr("class");if(e!==n){const n=Array.prototype.slice.call(t.currentTarget.classList).map((e=>"string"==typeof e&&`.${e}`));e=n.join(""),e&&0===i()(t.target).data("depth")&&i()(`${e} .js-sub-menu`).css({top:i()(`${e}`).height()+i()(`${e}`).position().top})}})),i()("#menu-icon").on("click",(()=>{i()("#mobile_top_menu_wrapper").toggle(),n.toggleMobileMenu()})),this.el.on("click",(e=>{this.el.parent().hasClass("mobile")||e.stopPropagation()})),t().on("responsive update",(()=>{i()(".js-sub-menu").removeAttr("style"),n.toggleMobileMenu()})),super.init()}toggleMobileMenu(){i()("#header").toggleClass("is-open"),i()("#mobile_top_menu_wrapper").is(":visible")?i()("#notifications, #wrapper, #footer").hide():i()("#notifications, #wrapper, #footer").show()}}n(902),n(290);
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
t().blockcart=t().blockcart||{},t().blockcart.showModal=e=>{function n(){return i()("#blockcart-modal")}let r=n();r.length&&r.remove(),i()("body").append(e),r=n(),r.modal("show").on("hidden.bs.modal",(e=>{t().emit("updateProduct",{reason:e.currentTarget.dataset,event:e})}))};
|
||
|
|
/**
|
||
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
||
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||
|
|
*
|
||
|
|
* NOTICE OF LICENSE
|
||
|
|
*
|
||
|
|
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||
|
|
* that is bundled with this package in the file LICENSE.md.
|
||
|
|
* It is also available through the world-wide-web at this URL:
|
||
|
|
* https://opensource.org/licenses/AFL-3.0
|
||
|
|
* If you did not receive a copy of the license and are unable to
|
||
|
|
* obtain it through the world-wide-web, please send an email
|
||
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
||
|
|
*
|
||
|
|
* DISCLAIMER
|
||
|
|
*
|
||
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
||
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
||
|
|
*
|
||
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
||
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
||
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||
|
|
*/
|
||
|
|
for(const e in b().prototype)t()[e]=b().prototype[e];i()(document).ready((()=>{const e=i()(".js-dropdown"),t=new x,n=i()('.js-top-menu ul[data-depth="0"]'),r=new w(e),o=new T(n),s=new l,a=new c;r.init(),t.init(),o.init(),s.init(),a.init(),E(".field-password-policy"),i()('.carousel[data-touch="true"]').swipe({swipe(e,t){"left"===t&&i()(this).carousel("next"),"right"===t&&i()(this).carousel("prev")},allowPageScroll:"vertical"})}))}()}();
|