var __renderjsModules={};
__renderjsModules["5a1e922e"]=(()=>{var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var a in e)u(t,a,{get:e[a],enumerable:!0})},g=(t,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of f(e))!p.call(t,i)&&i!==a&&u(t,i,{get:()=>e[i],enumerable:!(o=c(e,i))||o.enumerable});return t};var v=t=>g(u({},"__esModule",{value:!0}),t);var D={};m(D,{default:()=>W});var n={showWatch(t,e,a,o,i){var s=i.state||{},h=a.$el||a.$vm&&a.$vm.$el;if(h){if(this.getDom(o,a,i),t&&t!=="none"){this.openState(t,o,a,i);return}s.left&&this.openState("none",o,a,i),this.resetTouchStatus(o,i)}},touchstart(t,e,a){let o=t.instance,i=o.getDataset().disabled,s=a.state||{};this.getDom(o,e,a),i=this.getDisabledType(i),!i&&(o.requestAnimationFrame(function(){o.removeClass("ani"),e.callMethod("closeSwipe")}),s.x=s.left||0,this.stopTouchStart(t,e,a))},touchmove(t,e,a){let o=t.instance;if(!o)return;let i=o.getDataset().disabled,s=a.state||{};if(i=this.getDisabledType(i),i||(this.stopTouchMove(t,a),s.direction!=="horizontal"))return;t.preventDefault&&t.preventDefault();let h=s.x+s.deltaX;this.move(h,o,e,a)},touchend(t,e,a){let o=t.instance,i=o.getDataset().disabled,s=a.state||{};i=this.getDisabledType(i),!i&&this.moveDirection(s.left,o,e,a)},move(t,e,a,o){t=t||0;let i=o.state||{},s=i.leftWidth,h=i.rightWidth;i.left=this.range(t,-h,s),e.requestAnimationFrame(function(){e.setStyle({transform:"translateX("+i.left+"px)","-webkit-transform":"translateX("+i.left+"px)"})})},getDom(t,e,a){var o=a.state||{},i=e.$el||e.$vm&&e.$vm.$el,s=i.querySelector(".button-group--left"),h=i.querySelector(".button-group--right");s&&s.offsetWidth?o.leftWidth=s.offsetWidth||0:o.leftWidth=0,h&&h.offsetWidth?o.rightWidth=h.offsetWidth||0:o.rightWidth=0,o.threshold=t.getDataset().threshold},getDisabledType(t){return(typeof t=="string"?JSON.parse(t):t)||!1},range(t,e,a){return Math.min(Math.max(t,e),a)},moveDirection(t,e,a,o){var i=o.state||{},s=i.threshold,h=i.position,r=i.isopen||"none",l=i.leftWidth,d=i.rightWidth;if(i.deltaX===0){this.openState("none",e,a,o);return}r==="none"&&d>0&&-t>s||r!=="none"&&d>0&&d+t<s?this.openState("right",e,a,o):r==="none"&&l>0&&t>s||r!=="none"&&l>0&&l-t<s?this.openState("left",e,a,o):this.openState("none",e,a,o)},openState(t,e,a,o){let i=o.state||{},s=i.leftWidth,h=i.rightWidth,r="";switch(i.isopen=i.isopen?i.isopen:"none",t){case"left":r=s;break;case"right":r=-h;break;default:r=0}i.isopen!==t&&(i.throttle=!0,a.callMethod("change",{open:t})),i.isopen=t,e.requestAnimationFrame(()=>{e.addClass("ani"),this.move(r,e,a,o)})},getDirection(t,e){return t>e&&t>10?"horizontal":e>t&&e>10?"vertical":""},resetTouchStatus(t,e){let a=e.state||{};a.direction="",a.deltaX=0,a.deltaY=0,a.offsetX=0,a.offsetY=0},stopTouchStart(t,e,a){let o=t.instance,i=a.state||{};this.resetTouchStatus(o,a);var s=t.touches[0];i.startX=s.clientX,i.startY=s.clientY},stopTouchMove(t,e){let a=t.instance,o=e.state||{},i=t.touches[0];o.deltaX=i.clientX-o.startX,o.deltaY=i.clientY-o.startY,o.offsetY=Math.abs(o.deltaY),o.offsetX=Math.abs(o.deltaX),o.direction=o.direction||this.getDirection(o.offsetX,o.offsetY)}};var W={mounted(t,e,a){this.state={}},methods:{showWatch(t,e,a,o){n.showWatch(t,e,a,o,this)},touchstart(t,e){__f__("log","at uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue:120","\u6ED1\u52A8\u5F00\u59CB"),n.touchstart(t,e,this)},touchmove(t,e){__f__("log","at uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue:124","\u6ED1\u52A8\u6301\u7EED\u4E2D----------"),n.touchmove(t,e,this)},touchend(t,e){__f__("log","at uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue:128","\u6ED1\u52A8\u6301\u7EED\u4E2D----------\uFF0C\u653E\u5F00\u624B\u6307"),n.touchend(t,e,this)}}};return v(D);})();
