Advertisement
Guest User

prob nothing

a guest
Jul 22nd, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.10 KB | None | 0 0
  1. i.default.dispatch({type:c.ActionTypes.GIFT_CODE_REVOKE,code:t}),e.prev=1,e.next=4,r.default.delete(c.Endpoints.USER_GIFT_CODE_REVOKE(t));case 4:i.default.dispatch({type:c.ActionTypes.GIFT_CODE_REVOKE_SUCCESS,code:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),i.default.dispatch({type:c.ActionTypes.GIFT_CODE_REVOKE_FAILURE,code:t});case 10:case"end":return e.stop()}},e,null,[[1,7]])}))).apply(this,arguments)}},,,,function(e,t,n){"use strict";n.r(t);var r,i=n(0);!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(r||(r={}));var a=n(402),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(l)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,c=[],d=c,f=!1;function p(){d===c&&(d=c.slice())}function _(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1)}}}function E(e){if(!u(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,o=i(o,e)}finally{f=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}return E({type:s.INIT}),(r={dispatch:E,subscribe:h,getState:_,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,E({type:s.REPLACE})}})[a.a]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(_())}return n(),{unsubscribe:t(n)}}})[a.a]=function(){return this},e},r}const c="dnd-core/INIT_COORDS",d="dnd-core/BEGIN_DRAG",f="dnd-core/PUBLISH_DRAG_SOURCE",p="dnd-core/HOVER",_="dnd-core/DROP",h="dnd-core/END_DRAG";function E(e,t){return{type:c,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function m(e){return"object"==typeof e}const g=n(18),v={type:c,payload:{clientOffset:null,sourceClientOffset:null}};function T(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(E(i)),function(e,t,n){g(!t.isDragging(),"Cannot call beginDrag while dragging.");for(const t of e)g(n.getSource(t),"Expected sourceIds to be registered.")}(t,o,s);const u=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,o);if(null===u)return void e.dispatch(v);let l=null;i&&(!function(e){g("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),l=a(u)),e.dispatch(E(i,l));const c=s.getSource(u).beginDrag(o,u);!function(e){g(m(e),"Item must be an object.")}(c),s.pinSource(u);const f=s.getSourceType(u);return{type:d,payload:{itemType:f,item:c,sourceId:u,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}}}}function y(e){return function(){if(e.getMonitor().isDragging())return{type:f}}}function S(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}const b=n(18);function I(e){return function(t,{clientOffset:n}={}){!function(e){b(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return function(e,t,n){b(t.isDragging(),"Cannot call hover while not dragging."),b(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];b(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");const i=n.getTarget(r);b(i,"Expected targetIds to be registered.")}}(r,i,a),function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],a=t.getTargetType(i);S(a,n)||e.splice(r,1)}}(r,a,i.getItemType()),function(e,t,n){for(const r of e){const e=n.getTarget(r);e.hover(t,r)}}(r,i,a),{type:p,payload:{targetIds:r,clientOffset:n||null}}}}const A=n(18);function O(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){A(e.isDragging(),"Cannot call drop while not dragging."),A(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n).forEach((i,a)=>{const o=function(e,t,n,r){const i=n.getTarget(e);let a=i?i.drop(r,e):void 0;(function(e){A(void 0===e||m(e),"Drop result must either be an object or undefined.")})(a),void 0===a&&(a=0===t?{}:r.getDropResult());return a}(i,a,r,n),s={type:_,payload:{dropResult:Object.assign({},t,o)}};e.dispatch(s)})}}const N=n(18);function C(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){N(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:h}}}const R=(e,t)=>e===t;const L={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function D(e=L,t){const{payload:n}=t;switch(t.type){case c:case d:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case p:return r=e.clientOffset,i=n.clientOffset,!r&&!i||r&&i&&r.x===i.x&&r.y===i.y?e:Object.assign({},e,{clientOffset:n.clientOffset});case h:case _:return L;default:return e}var r,i}const M="dnd-core/ADD_SOURCE",P="dnd-core/ADD_TARGET",w="dnd-core/REMOVE_SOURCE",U="dnd-core/REMOVE_TARGET";const k={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function x(e=k,t){const{payload:n}=t;switch(t.type){case d:return Object.assign({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case f:return Object.assign({},e,{isSourcePublic:!0});case p:return Object.assign({},e,{targetIds:n.targetIds});case U:return-1===e.targetIds.indexOf(n.targetId)?e:Object.assign({},e,{targetIds:(r=e.targetIds,i=n.targetId,r.filter(e=>e!==i))});case _:return Object.assign({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case h:return Object.assign({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function G(e=0,t){switch(t.type){case M:case P:return e+1;case w:case U:return e-1;default:return e}}const F=[],B=[];function H(e=F,t){switch(t.type){case p:break;case M:case P:case U:case w:return F;case d:case f:case h:case _:default:return B}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>n.set(e,n.has(e)?n.get(e)+1:1);e.forEach(r),t.forEach(r);const i=[];return n.forEach((e,t)=>{1===e&&i.push(t)}),i}(n,r);if(!(i.length>0||!function(e,t,n=R){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r)))return F;const a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function Y(e=0){return e+1}function V(e={},t){return{dirtyHandlerIds:H(e.dirtyHandlerIds,{type:t.type,payload:Object.assign({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",i=[],r.split(".").reduce((e,t)=>e&&e[t]?e[t]:i||null,n))})}),dragOffset:D(e.dragOffset,t),refCount:G(e.refCount,t),dragOperation:x(e.dragOperation,t),stateId:Y(e.stateId)};var n,r,i}function j(e,t){return{x:e.x-t.x,y:e.y-t.y}}F.__IS_NONE__=!0,B.__IS_ALL__=!0;const W=n(18);class z{constructor(e,t){this.store=e,this.registry=t}subscribeToStateChange(e,t={handlerIds:void 0}){const{handlerIds:n}=t;W("function"==typeof e,"listener must be a function."),W(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!function(e,t){return e!==F&&(e===B||void 0===t||(n=e,t.filter(e=>n.indexOf(e)>-1)).length>0);var n}(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){W("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return W(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return W(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&(S(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return W(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!S(r,i))return!1;const a=this.getTargetIds();if(!a.length)return!1;const o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement