Files
Falcon-PrestaShop-9/falcon/assets/js/dbec96fd298efc01baed.js

2 lines
5.0 KiB
JavaScript

"use strict";(()=>{var w=Object.defineProperty;var L=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var C=(c,r,i)=>r in c?w(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,N=(c,r)=>{for(var i in r||(r={}))P.call(r,i)&&C(c,i,r[i]);if(L)for(var i of L(r))j.call(r,i)&&C(c,i,r[i]);return c};(self.webpackChunkFalcon_theme=self.webpackChunkFalcon_theme||[]).push([[124],{8124:(c,r,i)=>{i.r(r),i.d(r,{default:()=>M});var S=i(5311),e=i.n(S),a=i(980);const h="toast",g="4.6.2",p="bs.toast",E=`.${p}`,I=e().fn[h],A="fade",u="hide",f="show",t="showing",s=`click.dismiss${E}`,o=`hide${E}`,l=`hidden${E}`,d=`show${E}`,m=`shown${E}`,y='[data-dismiss="toast"]',O={animation:!0,autohide:!0,delay:500},v={animation:"boolean",autohide:"boolean",delay:"number"};class D{constructor(n,_){this._element=n,this._config=this._getConfig(_),this._timeout=null,this._setListeners()}static get VERSION(){return g}static get DefaultType(){return v}static get Default(){return O}show(){const n=e().Event(d);if(e()(this._element).trigger(n),n.isDefaultPrevented())return;this._clearTimeout(),this._config.animation&&this._element.classList.add(A);const _=()=>{this._element.classList.remove(t),this._element.classList.add(f),e()(this._element).trigger(m),this._config.autohide&&(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))};if(this._element.classList.remove(u),a.Z.reflow(this._element),this._element.classList.add(t),this._config.animation){const T=a.Z.getTransitionDurationFromElement(this._element);e()(this._element).one(a.Z.TRANSITION_END,_).emulateTransitionEnd(T)}else _()}hide(){if(!this._element.classList.contains(f))return;const n=e().Event(o);e()(this._element).trigger(n),!n.isDefaultPrevented()&&this._close()}dispose(){this._clearTimeout(),this._element.classList.contains(f)&&this._element.classList.remove(f),e()(this._element).off(s),e().removeData(this._element,p),this._element=null,this._config=null}_getConfig(n){return n=N(N(N({},O),e()(this._element).data()),typeof n=="object"&&n?n:{}),a.Z.typeCheckConfig(h,n,this.constructor.DefaultType),n}_setListeners(){e()(this._element).on(s,y,()=>this.hide())}_close(){const n=()=>{this._element.classList.add(u),e()(this._element).trigger(l)};if(this._element.classList.remove(f),this._config.animation){const _=a.Z.getTransitionDurationFromElement(this._element);e()(this._element).one(a.Z.TRANSITION_END,n).emulateTransitionEnd(_)}else n()}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static _jQueryInterface(n){return this.each(function(){const _=e()(this);let T=_.data(p);const R=typeof n=="object"&&n;if(T||(T=new D(this,R),_.data(p,T)),typeof n=="string"){if(typeof T[n]=="undefined")throw new TypeError(`No method named "${n}"`);T[n](this)}})}}e().fn[h]=D._jQueryInterface,e().fn[h].Constructor=D,e().fn[h].noConflict=()=>(e().fn[h]=I,D._jQueryInterface);const M=D},980:(c,r,i)=>{i.d(r,{Z:()=>f});var S=i(5311),e=i.n(S);const a="transitionend",h=1e6,g=1e3;function p(t){return t===null||typeof t=="undefined"?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function E(){return{bindType:a,delegateType:a,handle(t){if(e()(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function I(t){let s=!1;return e()(this).one(u.TRANSITION_END,()=>{s=!0}),setTimeout(()=>{s||u.triggerTransitionEnd(this)},t),this}function A(){e().fn.emulateTransitionEnd=I,e().event.special[u.TRANSITION_END]=E()}const u={TRANSITION_END:"bsTransitionEnd",getUID(t){do t+=~~(Math.random()*h);while(document.getElementById(t));return t},getSelectorFromElement(t){let s=t.getAttribute("data-target");if(!s||s==="#"){const o=t.getAttribute("href");s=o&&o!=="#"?o.trim():""}try{return document.querySelector(s)?s:null}catch(o){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let s=e()(t).css("transition-duration"),o=e()(t).css("transition-delay");const l=parseFloat(s),d=parseFloat(o);return!l&&!d?0:(s=s.split(",")[0],o=o.split(",")[0],(parseFloat(s)+parseFloat(o))*g)},reflow(t){return t.offsetHeight},triggerTransitionEnd(t){e()(t).trigger(a)},supportsTransitionEnd(){return Boolean(a)},isElement(t){return(t[0]||t).nodeType},typeCheckConfig(t,s,o){for(const l in o)if(Object.prototype.hasOwnProperty.call(o,l)){const d=o[l],m=s[l],y=m&&u.isElement(m)?"element":p(m);if(!new RegExp(d).test(y))throw new Error(`${t.toUpperCase()}: Option "${l}" provided type "${y}" but expected type "${d}".`)}},findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const s=t.getRootNode();return s instanceof ShadowRoot?s:null}return t instanceof ShadowRoot?t:t.parentNode?u.findShadowRoot(t.parentNode):null},jQueryDetection(){if(typeof e()=="undefined")throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");const t=e().fn.jquery.split(" ")[0].split("."),s=1,o=2,l=9,d=1,m=4;if(t[0]<o&&t[1]<l||t[0]===s&&t[1]===l&&t[2]<d||t[0]>=m)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};u.jQueryDetection(),A();const f=u}}]);})();