Advertisement
Guest User

previous ip matching

a guest
Jul 22nd, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.33 KB | None | 0 0
  1. {this.dragPreviewOptions=t||null,Ve(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null}receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){this.reconnectDragSource(),this.reconnectDragPreview()}reconnectDragSource(){const e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource();const t=this.dragSource;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}reconnectDragPreview(){const e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview();const t=this.dragPreview;this.handlerId&&t&&e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!je(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!je(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}function ze(e,t){return"string"==typeof e||"symbol"==typeof e||!!t&&Array.isArray(e)&&e.every(e=>ze(e,!1))}const Ke=n(18);function qe(e,t,n,r={}){ie(0,0);let i=e;"function"!=typeof e&&(Ke(ze(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=(()=>e)),Ke(me(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);const a=function(e){return Object.keys(e).forEach(t=>{De(Me.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',Me.join(", "),t),De("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),Pe.forEach(t=>{De("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),function(t,n){return new we(e,t,n)}}(t);return Ke("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Ke(me(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return Ce({containerDisplayName:"DragSource",createHandler:a,registerHandler:Re,createConnector:e=>new We(e),createMonitor:e=>new Ge(e),DecoratedComponent:e,getType:i,collect:n,options:r})}}function $e(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}const Xe=n(18),Qe=["canDrop","hover","drop"];class Je{constructor(e,t,n){this.spec=e,this.monitor=t,this.ref=n,this.props=null}receiveProps(e){this.props=e}receiveMonitor(e){this.monitor=e}canDrop(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}hover(){this.spec.hover&&this.spec.hover(this.props,this.monitor,Le(this.ref))}drop(){if(!this.spec.drop)return;return this.spec.drop(this.props,this.monitor,this.ref.current)}}const Ze=n(18);let et=!1;class tt{constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;Ze(!et,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return et=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{et=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}}const nt=n(139);class rt{constructor(e){this.backend=e,this.hooks=Ye({dropTarget:(e,t)=>{this.dropTargetOptions=t,Ve(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null}get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!nt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}const it=n(18);function at(e,t,n,r={}){ie(0,0);let i=e;"function"!=typeof e&&(it(ze(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=(()=>e)),it(me(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);const a=function(e){return Object.keys(e).forEach(t=>{Xe(Qe.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Qe.join(", "),t),Xe("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}),function(t,n){return new Je(e,t,n)}}(t);return it("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),it(me(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return Ce({containerDisplayName:"DropTarget",createHandler:a,registerHandler:$e,createMonitor:e=>new tt(e),createConnector:e=>new rt(e),DecoratedComponent:e,getType:i,collect:n,options:r})}}const ot=i.memo(({connect:e,src:t})=>{if("undefined"!=typeof Image){const n=new Image;n.src=t,n.onload=(()=>e(n))}return null});ot.displayName="DragPreviewImage";var st=ot;const ut=n(139);function lt(e,t,n){const[r,a]=Object(i.useState)(()=>t(e)),o=Object(i.useCallback)(()=>{const i=t(e);ut(r,i)||(a(i),n&&n())},[r,e,n]);return[r,o]}function ct(e,t,n){const[r,a]=lt(e,t,n);return Object(i.useEffect)(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})},[e,a]),r}const dt=n(18);function ft(){const{dragDropManager:e}=Object(i.useContext)(le);return dt(null!=e,"Expected drag drop context"),e}const pt=n(18);const _t=n(18);function ht(e){const t=Object(i.useRef)(e);t.current=e,_t(null!=e.item,"item must be defined"),_t(null!=e.item.type,"item type must be defined");const[n,r]=function(){const e=ft();return[Object(i.useMemo)(()=>new Ge(e),[e]),Object(i.useMemo)(()=>new We(e.getBackend()),[e])]}();!function(e,t,n){const r=ft(),a=Object(i.useMemo)(()=>({beginDrag(){const{begin:n,item:r}=e.current;if(n){const e=n(t);return pt(null==e||"object"==typeof e,"dragSpec.begin() must either return an object, undefined, or null"),e||r||{}}return r||{}},canDrag:()=>"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t),isDragging(n,r){const{isDragging:i}=e.current;return i?i(t):r===n.getSourceId()},endDrag(){const{end:r}=e.current;r&&r(t.getItem(),t),n.reconnect()}}),[]);Object(i.useEffect)(function(){const[i,o]=Re(e.current.item.type,a,r);return t.receiveHandlerId(i),n.receiveHandlerId(i),o},[])}(t,n,r);const a=ct(n,t.current.collect||(()=>({})),()=>r.reconnect()),o=Object(i.useMemo)(()=>r.hooks.dragSource(),[r]),s=Object(i.useMemo)(()=>r.hooks.dragPreview(),[r]);return Object(i.useEffect)(()=>{r.dragSourceOptions=t.current.options||null,r.reconnect()},[r]),Object(i.useEffect)(()=>{r.dragPreviewOptions=t.current.previewOptions||null,r.reconnect()},[r]),[a,o,s]}const Et=n(18);function mt(e){const t=Object(i.useRef)(e);t.current=e,Et(null!=e.accept,"accept must be defined");const[n,r]=function(){const e=ft();return[Object(i.useMemo)(()=>new tt(e),[e]),Object(i.useMemo)(()=>new rt(e.getBackend()),[e])]}();!function(e,t,n){const r=ft(),a=Object(i.useMemo)(()=>({canDrop(){const{canDrop:n}=e.current;return!n||n(t.getItem(),t)},hover(){const{hover:n}=e.current;n&&n(t.getItem(),t)},drop(){const{drop:n}=e.current;if(n)return n(t.getItem(),t)}}),[t]);Object(i.useEffect)(function(){const[i,o]=$e(e.current.accept,a,r);return t.receiveHandlerId(i),n.receiveHandlerId(i),o},[t,n])}(t,n,r);const a=ct(n,t.current.collect||(()=>({})),()=>r.reconnect()),o=Object(i.useMemo)(()=>r.hooks.dropTarget(),[r]);return Object(i.useEffect)(()=>{r.dropTargetOptions=e.options||null,r.reconnect()},[e.options]),[a,o]}function gt(e){const t=ft().getMonitor(),[n,r]=lt(t,e);return Object(i.useEffect)(()=>t.subscribeToOffsetChange(r)),Object(i.useEffect)(()=>t.subscribeToStateChange(r)),n}n.d(t,"DragDropContext",function(){return _e}),n.d(t,"DragDropContextProvider",function(){return pe}),n.d(t,"DragDropContextConsumer",function(){return ce}),n.d(t,"DragLayer",function(){return ye}),n.d(t,"DragSource",function(){return qe}),n.d(t,"DropTarget",function(){return at}),n.d(t,"DragPreviewImage",function(){return st}),n.d(t,"useDrag",function(){return ht}),n.d(t,"useDragLayer",function(){return gt}),n.d(t,"useDrop",function(){return mt})},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.PREMIUM_CODE_SUBSCRIPTION_ID=void 0;var r,i=(r=n(56))&&r.__esModule?r:{default:r},a=n(1);function o(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)}}t.PREMIUM_CODE_SUBSCRIPTION_ID="0";var s=function(e){var t,n,r,i,s;function u(){return e.apply(this,arguments)||this}return n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,u.createFromServer=function(e){return null==e.id?new u({id:"0",type:e.type,createdAt:null,canceledAt:null,currentPeriodStart:0,currentPeriodEnd:new Date(e.current_period_end),status:a.SubscriptionStatusTypes.CANCELED,paymentSourceId:null,paymentGateway:null,plan:null,planId:a.SubscriptionPlans.PREMIUM_MONTH_TIER_2}):new u({id:e.id,type:e.type,createdAt:new Date(e.created_at),canceledAt:null!=e.canceled_at?new Date(e.canceled_at):null,currentPeriodStart:new Date(e.current_period_start),currentPeriodEnd:new Date(e.current_period_end),status:e.status,paymentSourceId:e.payment_source_id,paymentGateway:e.payment_gateway,paymentGatewayPlanId:e.payment_gateway_plan_id,plan:e.payment_gateway_plan_id,planId:e.plan_id,trialId:e.trial_id,trialEndsAt:e.trial_ends_at})},u.prototype.initialize=function(e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement