qcell-react 1.0.95 → 1.0.97

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.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 50.be51b3525ada1744cf41.js.LICENSE.txt */
2
+ (this.webpackChunkqcell_react=this.webpackChunkqcell_react||[]).push([[50],{1050:(e,t,n)=>{var r,i,l,o;function a(e){return a="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},a(e)}o=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(D);i||(i=new n(this,t),r.data(D,i))}))}function n(t,n){function L(t){if(!(!0===Se.data(D+"_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 u,s=a.touches,c=s?s[0]:a;return xe=m,s?Oe=s.length:!1!==n.preventDefaultEvents&&t.preventDefault(),he=0,ge=null,de=null,me=null,we=0,ve=0,Te=0,ye=1,be=0,(p={})[r]=ne(r),p[i]=ne(i),p[l]=ne(l),p[o]=ne(o),Ee=p,B(),$(0,c),!s||Oe===n.fingers||n.fingers===y||F()?(Pe=oe(),2==Oe&&($(1,s[1]),ve=Te=ie(Me[0].start,Me[1].start)),(n.swipeStatus||n.pinchStatus)&&(u=j(a,xe))):u=!1,!1===u?(j(a,xe=x),u):(n.hold&&(Ie=setTimeout(e.proxy((function(){Se.trigger("hold",[a.target]),n.hold&&(u=n.hold.call(Se,a,a.target))}),this),n.longTapThreshold)),K(!0),null)}}var p}function k(t){var a,f,h=t.originalEvent?t.originalEvent:t;if(xe!==S&&xe!==x&&!J()){var g,d=h.touches,w=ee(d?d[0]:h);if(De=oe(),d&&(Oe=d.length),n.hold&&clearTimeout(Ie),xe=E,2==Oe&&(0==ve?($(1,d[1]),ve=Te=ie(Me[0].start,Me[1].start)):(ee(d[1]),Te=ie(Me[0].end,Me[1].end),Me[0].end,Me[1].end,me=1>ye?s:u),ye=(Te/ve*1).toFixed(2),be=Math.abs(ve-Te)),Oe===n.fingers||n.fingers===y||!d||F()){if(ge=le(w.start,w.end),function(e,t){if(!1!==n.preventDefaultEvents)if(n.allowPageScroll===c)e.preventDefault();else{var a=n.allowPageScroll===p;switch(t){case r:(n.swipeLeft&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault();break;case i:(n.swipeRight&&a||!a&&n.allowPageScroll!=v)&&e.preventDefault();break;case l:(n.swipeUp&&a||!a&&n.allowPageScroll!=T)&&e.preventDefault();break;case o:(n.swipeDown&&a||!a&&n.allowPageScroll!=T)&&e.preventDefault()}}}(t,de=le(w.last,w.end)),a=w.start,f=w.end,he=Math.round(Math.sqrt(Math.pow(f.x-a.x,2)+Math.pow(f.y-a.y,2))),we=re(),function(e,t){e!=c&&(t=Math.max(t,te(e)),Ee[e].distance=t)}(ge,he),g=j(h,xe),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var b=!0;if(n.triggerOnTouchLeave){var m=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);b=function(e,t){return e.x>t.left&&e.x<t.right&&e.y>t.top&&e.y<t.bottom}(w.end,m)}!n.triggerOnTouchEnd&&b?xe=N(E):n.triggerOnTouchLeave&&!b&&(xe=N(S)),xe!=x&&xe!=S||j(h,xe)}}else j(h,xe=x);!1===g&&j(h,xe=x)}}function R(e){var t=e.originalEvent?e.originalEvent:e,r=t.touches;if(r){if(r.length&&!J())return function(e){Le=oe(),ke=e.touches.length+1}(t),!0;if(r.length&&J())return!0}return J()&&(Oe=ke),De=oe(),we=re(),C()||!_()?j(t,xe=x):n.triggerOnTouchEnd||!1===n.triggerOnTouchEnd&&xe===E?(!1!==n.preventDefaultEvents&&!1!==e.cancelable&&e.preventDefault(),j(t,xe=S)):!n.triggerOnTouchEnd&&z()?H(t,xe=S,g):xe===E&&j(t,xe=x),K(!1),null}function A(){Oe=0,De=0,Pe=0,ve=0,Te=0,ye=1,B(),K(!1)}function I(e){var t=e.originalEvent?e.originalEvent:e;n.triggerOnTouchLeave&&j(t,xe=N(S))}function U(){Se.off(ue,L),Se.off(fe,A),Se.off(se,k),Se.off(ce,R),pe&&Se.off(pe,I),K(!1)}function N(e){var t=e,r=Q(),i=_(),l=C();return!r||l?t=x:!i||e!=E||n.triggerOnTouchEnd&&!n.triggerOnTouchLeave?!i&&e==S&&n.triggerOnTouchLeave&&(t=x):t=S,t}function j(e,t){var r,i=e.touches;return(!(!X()||!Y())||Y())&&(r=H(e,t,f)),(!(!q()||!F())||F())&&!1!==r&&(r=H(e,t,h)),Z()&&G()&&!1!==r?r=H(e,t,d):we>n.longTapThreshold&&b>he&&n.longTap&&!1!==r?r=H(e,t,w):!(1!==Oe&&O||!(isNaN(he)||he<n.threshold)||!z())&&!1!==r&&(r=H(e,t,g)),t===x&&A(),t===S&&(i&&i.length||A()),r}function H(t,a,c){var p;if(c==f){if(Se.trigger("swipeStatus",[a,ge||null,he||0,we||0,Oe,Me,de]),n.swipeStatus&&!1===(p=n.swipeStatus.call(Se,t,a,ge||null,he||0,we||0,Oe,Me,de)))return!1;if(a==S&&X()){if(clearTimeout(Ae),clearTimeout(Ie),Se.trigger("swipe",[ge,he,we,Oe,Me,de]),n.swipe&&!1===(p=n.swipe.call(Se,t,ge,he,we,Oe,Me,de)))return!1;switch(ge){case r:Se.trigger("swipeLeft",[ge,he,we,Oe,Me,de]),n.swipeLeft&&(p=n.swipeLeft.call(Se,t,ge,he,we,Oe,Me,de));break;case i:Se.trigger("swipeRight",[ge,he,we,Oe,Me,de]),n.swipeRight&&(p=n.swipeRight.call(Se,t,ge,he,we,Oe,Me,de));break;case l:Se.trigger("swipeUp",[ge,he,we,Oe,Me,de]),n.swipeUp&&(p=n.swipeUp.call(Se,t,ge,he,we,Oe,Me,de));break;case o:Se.trigger("swipeDown",[ge,he,we,Oe,Me,de]),n.swipeDown&&(p=n.swipeDown.call(Se,t,ge,he,we,Oe,Me,de))}}}if(c==h){if(Se.trigger("pinchStatus",[a,me||null,be||0,we||0,Oe,ye,Me]),n.pinchStatus&&!1===(p=n.pinchStatus.call(Se,t,a,me||null,be||0,we||0,Oe,ye,Me)))return!1;if(a==S&&q())switch(me){case u:Se.trigger("pinchIn",[me||null,be||0,we||0,Oe,ye,Me]),n.pinchIn&&(p=n.pinchIn.call(Se,t,me||null,be||0,we||0,Oe,ye,Me));break;case s:Se.trigger("pinchOut",[me||null,be||0,we||0,Oe,ye,Me]),n.pinchOut&&(p=n.pinchOut.call(Se,t,me||null,be||0,we||0,Oe,ye,Me))}}return c==g?a!==x&&a!==S||(clearTimeout(Ae),clearTimeout(Ie),G()&&!Z()?(Re=oe(),Ae=setTimeout(e.proxy((function(){Re=null,Se.trigger("tap",[t.target]),n.tap&&(p=n.tap.call(Se,t,t.target))}),this),n.doubleTapThreshold)):(Re=null,Se.trigger("tap",[t.target]),n.tap&&(p=n.tap.call(Se,t,t.target)))):c==d?a!==x&&a!==S||(clearTimeout(Ae),clearTimeout(Ie),Re=null,Se.trigger("doubletap",[t.target]),n.doubleTap&&(p=n.doubleTap.call(Se,t,t.target))):c==w&&(a!==x&&a!==S||(clearTimeout(Ae),Re=null,Se.trigger("longtap",[t.target]),n.longTap&&(p=n.longTap.call(Se,t,t.target)))),p}function _(){var e=!0;return null!==n.threshold&&(e=he>=n.threshold),e}function C(){var e=!1;return null!==n.cancelThreshold&&null!==ge&&(e=te(ge)-he>=n.cancelThreshold),e}function Q(){return!(n.maxTimeThreshold&&we>=n.maxTimeThreshold)}function q(){var e=V(),t=W(),r=null===n.pinchThreshold||be>=n.pinchThreshold;return e&&t&&r}function F(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function X(){var e=Q(),t=_(),n=V(),r=W();return!C()&&r&&n&&t&&e}function Y(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function V(){return Oe===n.fingers||n.fingers===y||!O}function W(){return 0!==Me[0].end.x}function z(){return!!n.tap}function G(){return!!n.doubleTap}function Z(){if(null==Re)return!1;var e=oe();return G()&&e-Re<=n.doubleTapThreshold}function B(){Le=0,ke=0}function J(){var e=!1;return Le&&oe()-Le<=n.fingerReleaseThreshold&&(e=!0),e}function K(e){Se&&(!0===e?(Se.on(se,k),Se.on(ce,R),pe&&Se.on(pe,I)):(Se.off(se,k,!1),Se.off(ce,R,!1),pe&&Se.off(pe,I,!1)),Se.data(D+"_intouch",!0===e))}function $(e,t){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=t.pageX||t.clientX,n.start.y=n.last.y=n.end.y=t.pageY||t.clientY,Me[e]=n,n}function ee(e){var t=void 0!==e.identifier?e.identifier:0,n=function(e){return Me[e]||null}(t);return null===n&&(n=$(t,e)),n.last.x=n.end.x,n.last.y=n.end.y,n.end.x=e.pageX||e.clientX,n.end.y=e.pageY||e.clientY,n}function te(e){return Ee[e]?Ee[e].distance:void 0}function ne(e){return{direction:e,distance:0}}function re(){return De-Pe}function ie(e,t){var n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return Math.round(Math.sqrt(n*n+r*r))}function le(e,t){if(a=t,(n=e).x==a.x&&n.y==a.y)return c;var n,a,u=function(e,t){var n=e.x-t.x,r=t.y-e.y,i=Math.atan2(r,n),l=Math.round(180*i/Math.PI);return 0>l&&(l=360-Math.abs(l)),l}(e,t);return 45>=u&&u>=0||360>=u&&u>=315?r:u>=135&&225>=u?i:u>45&&135>u?o:l}function oe(){return(new Date).getTime()}n=e.extend({},n);var ae=O||P||!n.fallbackToMouseEvents,ue=ae?P?M?"MSPointerDown":"pointerdown":"touchstart":"mousedown",se=ae?P?M?"MSPointerMove":"pointermove":"touchmove":"mousemove",ce=ae?P?M?"MSPointerUp":"pointerup":"touchend":"mouseup",pe=ae?P?"mouseleave":null:"mouseleave",fe=P?M?"MSPointerCancel":"pointercancel":"touchcancel",he=0,ge=null,de=null,we=0,ve=0,Te=0,ye=1,be=0,me=0,Ee=null,Se=e(t),xe="start",Oe=0,Me={},Pe=0,De=0,Le=0,ke=0,Re=0,Ae=null,Ie=null;try{Se.on(ue,L),Se.on(fe,A)}catch(t){e.error("events not supported "+ue+","+fe+" on jQuery.swipe")}this.enable=function(){return this.disable(),Se.on(ue,L),Se.on(fe,A),Se},this.disable=function(){return U(),Se},this.destroy=function(){U(),Se.data(D,null),Se=null},this.option=function(t,r){if("object"==a(t))n=e.extend(n,t);else if(void 0!==n[t]){if(void 0===r)return n[t];n[t]=r}else{if(!t)return n;e.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var r="left",i="right",l="up",o="down",u="in",s="out",c="none",p="auto",f="swipe",h="pinch",g="tap",d="doubletap",w="longtap",v="horizontal",T="vertical",y="all",b=10,m="start",E="move",S="end",x="cancel",O="ontouchstart"in window,M=window.navigator.msPointerEnabled&&!window.PointerEvent&&!O,P=(window.PointerEvent||window.navigator.msPointerEnabled)&&!O,D="TouchSwipe";e.fn.swipe=function(n){var r=e(this),i=r.data(D);if(i&&"string"==typeof n){if(i[n])return i[n].apply(i,Array.prototype.slice.call(arguments,1));e.error("Method "+n+" does not exist on jQuery.swipe")}else if(i&&"object"==a(n))i.option.apply(i,arguments);else if(!(i||"object"!=a(n)&&n))return t.apply(this,arguments);return r},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},e.fn.swipe.phases={PHASE_START:m,PHASE_MOVE:E,PHASE_END:S,PHASE_CANCEL:x},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:l,DOWN:o,IN:u,OUT:s},e.fn.swipe.pageScroll={NONE:c,HORIZONTAL:v,VERTICAL:T,AUTO:p},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:y}},n.amdO.jQuery?(i=[n(4692)],void 0===(l="function"==typeof(r=o)?r.apply(t,i):r)||(e.exports=l)):o(e.exports?n(4692):jQuery)}}]);
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * @fileOverview TouchSwipe - jQuery Plugin
3
+ * @version 1.6.18
4
+ *
5
+ * @author Matt Bryson http://www.github.com/mattbryson
6
+ * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
7
+ * @see http://labs.rampinteractive.co.uk/touchSwipe/
8
+ * @see http://plugins.jquery.com/project/touchSwipe
9
+ * @license
10
+ * Copyright (c) 2010-2015 Matt Bryson
11
+ * Dual licensed under the MIT or GPL Version 2 licenses.
12
+ *
13
+ */