From c17bec49af0583b48a8df470589fb2e634c534d2 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Thu, 5 Dec 2019 00:58:42 -0500 Subject: [PATCH] prepping contact add --- pkg/arvo/app/contacts/js/index.js | 59073 +++++++++++++++- pkg/arvo/app/contacts/js/tile.js | 19413 ++++- .../contacts/src/js/components/contacts.js | 13 + .../contacts/src/js/components/groups.js | 8 +- .../src/js/components/lib/groups-item.js | 4 +- .../contacts/src/js/components/root.js | 16 +- 6 files changed, 78521 insertions(+), 6 deletions(-) create mode 100644 pkg/interface/contacts/src/js/components/contacts.js diff --git a/pkg/arvo/app/contacts/js/index.js b/pkg/arvo/app/contacts/js/index.js index 871fb9895..b0e8678ca 100644 --- a/pkg/arvo/app/contacts/js/index.js +++ b/pkg/arvo/app/contacts/js/index.js @@ -1 +1,59072 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("buffer")):"function"==typeof define&&define.amd?define("index",["buffer"],t):t((e=e||self).buffer)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n=t.performance||{},r=(n.now||n.mozNow||n.msNow||n.oNow||n.webkitNow,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}var a=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;var s=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o2?n-2:0),i=2;i1?t-1:0),r=1;r2?n-2:0),i=2;i8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var o=r.map(function(e){return""+e});o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}try{var a=0,u="Warning: "+t.replace(/%s/g,function(){return r[a++]});throw new Error(u)}catch(e){}}},P={};function M(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;P[i]||(C(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),P[i]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){M(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){M(e,"replaceState")},enqueueSetState:function(e,t,n,r){M(e,"setState")}},N={};function A(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||R}Object.freeze(N),A.prototype.isReactComponent={},A.prototype.setState=function(e,t){!function(){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw T(Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."))}(),this.updater.enqueueSetState(this,e,t,"setState")},A.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},I=function(e,t){Object.defineProperty(A.prototype,e,{get:function(){S(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var U in O)O.hasOwnProperty(U)&&I(U,O[U]);function D(){}function z(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||R}D.prototype=A.prototype;var j=z.prototype=new D;j.constructor=z,t(j,A.prototype),j.isPureReactComponent=!0;var L={current:null},F={suspense:null},W={current:null},B=/^(.*)[\\\/]/,$=1;function H(e){if(null==e)return null;if("number"==typeof e.tag&&C(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case o:return"Portal";case l:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case m:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case c:return"Context.Provider";case p:return r=e,i=e.render,s="ForwardRef",d=i.displayName||i.name||"",r.displayName||(""!==d?s+"("+d+")":s);case v:return H(e.type);case g:var t=(n=e)._status===$?n._result:null;if(t)return H(t)}var n,r,i,s,d;return null}var V={},q=null;function Y(e){q=e}V.getCurrentStack=null,V.getStackAddendum=function(){var e="";if(q){var t=H(q.type),n=q._owner;e+=function(e,t,n){var r="";if(t){var i=t.fileName,o=i.replace(B,"");if(/^index\./.test(o)){var a=i.match(B);if(a){var u=a[1];u&&(o=u.replace(B,"")+"/"+o)}}r=" (at "+o+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(t,q._source,n&&H(n.type))}var r=V.getCurrentStack;return r&&(e+=r()||""),e};var Q={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:F,ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:t};t(Q,{ReactDebugCurrentFrame:V,ReactComponentTreeHook:{}});var K,Z,X=function(e,t){if(!e){for(var n=Q.ReactDebugCurrentFrame.getStackAddendum(),r=arguments.length,i=new Array(r>2?r-2:0),o=2;o1){for(var c=Array(s),f=0;f.")}return t}(t);if(!xe[n]){xe[n]=!0;var r="";e&&e._owner&&e._owner!==W.current&&(r=" It was passed a child from "+H(e._owner.type)+"."),Y(e),X(!1,'Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),Y(null)}}}function Te(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n",l=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,X(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,l)}var f=re.apply(this,arguments);if(null==f)return f;if(u)for(var d=2;d is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,X(!1,"Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Consumer}}}),n.Consumer=o,n._currentRenderer=null,n._currentRenderer2=null,n},forwardRef:function(e){return null!=e&&e.$$typeof===v?C(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&C(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:p,render:e}},lazy:function(e){var t,n,r={$$typeof:g,_ctor:e,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){X(!1,"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){X(!1,"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},memo:function(e,t){return we(e)||C(!1,"memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:v,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return _e().useCallback(e,t)},useContext:function(e,t){var n=_e();if(void 0!==t&&X(!1,"useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?X(!1,"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&X(!1,"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},useEffect:function(e,t){return _e().useEffect(e,t)},useImperativeHandle:function(e,t,n){return _e().useImperativeHandle(e,t,n)},useDebugValue:function(e,t){return _e().useDebugValue(e,t)},useLayoutEffect:function(e,t){return _e().useLayoutEffect(e,t)},useMemo:function(e,t){return _e().useMemo(e,t)},useReducer:function(e,t,n){return _e().useReducer(e,t,n)},useRef:function(e){return _e().useRef(e)},useState:function(e){return _e().useState(e)},Fragment:a,Profiler:l,StrictMode:u,Suspense:h,unstable_SuspenseList:m,createElement:Ce,cloneElement:function(e,n,r){for(var i=function(e,n,r){var i;!function(){if(null==e)throw T(Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+"."))}();var o,a=t({},e.props),u=e.key,l=e.ref,s=e._self,c=e._source,f=e._owner;if(null!=n)for(i in ee(n)&&(l=n.ref,f=W.current),te(n)&&(u=""+n.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),n)G.call(n,i)&&!J.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==o?a[i]=o[i]:a[i]=n[i]);var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var p=Array(d),h=0;h=k},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125P(a,n))void 0!==l&&0>P(l,a)?(e[r]=l,e[u]=n,r=u):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>P(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],R=[],N=1,A=null,O=3,I=!1,U=!1,D=!1;function z(e){for(var t=S(R);null!==t;){if(null===t.callback)C(R);else{if(!(t.startTime<=e))break;C(R),t.sortIndex=t.expirationTime,T(M,t)}t=S(R)}}function j(e){if(D=!1,z(e),!U)if(null!==S(M))U=!0,n(L);else{var t=S(R);null!==t&&r(j,t.startTime-e)}}function L(e,n){U=!1,D&&(D=!1,i()),I=!0;var a=O;try{for(z(n),A=S(M);null!==A&&(!(A.expirationTime>n)||e&&!o());){var u=A.callback;if(null!==u){A.callback=null,O=A.priorityLevel;var l=u(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?A.callback=l:A===S(M)&&C(M),z(n)}else C(M);A=S(M)}if(null!==A)var s=!0;else{var c=S(R);null!==c&&r(j,c.startTime-n),s=!1}return s}finally{A=null,O=a,I=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var W=a;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_scheduleCallback=function(e,o,a){var u=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0u?(e.sortIndex=l,T(R,e),null===S(M)&&e===S(R)&&(D?i():D=!0,r(j,l-u))):(e.sortIndex=a,T(M,e),U||I||(U=!0,n(L))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_shouldYield=function(){var e=t.unstable_now();z(e);var n=S(M);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime=x},o=function(){},t.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=e>0?Math.floor(1e3/e):33.33};var E=new MessageChannel,T=E.port2;E.port1.onmessage=function(){if(null!==w){var e=t.unstable_now();x=e+k;try{w(!0,e)?T.postMessage(null):(b=!1,w=null)}catch(e){throw T.postMessage(null),e}}else b=!1},e=function(e){w=e,b||(b=!0,T.postMessage(null))},n=function(e,n){_=h(function(){e(t.unstable_now())},n)},r=function(){m(_),_=-1}}function S(e,t){var n=e.length;e.push(t),function(e,t,n){var r=n;for(;;){var i=Math.floor((r-1)/2),o=e[i];if(!(void 0!==o&&M(o,t)>0))return;e[i]=t,e[r]=o,r=i}}(e,t,n)}function C(e){var t=e[0];return void 0===t?null:t}function P(e){var t=e[0];if(void 0!==t){var n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){var r=n,i=e.length;for(;rq){if((q*=2)>V)return console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`."),void oe();var n=new Int32Array(4*q);n.set(Q),Y=n.buffer,Q=n}Q.set(e,t)}}function oe(){var e=Y;return q=0,Y=null,Q=null,K=0,e}function ae(e,t){L[$]++,null!==Q&&ie([Z,t,e.id,e.priorityLevel])}function ue(e,t){L[F]=R,L[W]=0,L[$]--,null!==Q&&ie([X,t,e.id])}function le(e,t){L[F]=R,L[W]=0,L[B]=0,null!==Q&&ie([te,t,e.id,D])}var se=-1,ce=250,fe=5e3,de=1e4,pe=1073741823,he=[],me=[],ve=1,ge=null,ye=O,be=!1,we=!1,_e=!1;function ke(e){for(var t=C(me);null!==t;){if(null===t.callback)P(me);else{if(!(t.startTime<=e))return;P(me),t.sortIndex=t.expirationTime,S(he,t),ae(t,e),t.isQueued=!0}t=C(me)}}function xe(t){if(_e=!1,ke(t),!we)if(null!==C(he))we=!0,e(Ee);else{var r=C(me);null!==r&&n(xe,r.startTime-t)}}function Ee(e,n){var i;i=n,null!==Q&&ie([re,i,z]),we=!1,_e&&(_e=!1,r()),be=!0;var o=ye;try{if(!u)return Te(e,n);try{return Te(e,n)}catch(e){if(null!==ge){var a=t.unstable_now();!function(e,t){L[F]=R,L[W]=0,L[$]--,null!==Q&&ie([G,t,e.id])}(ge,a),ge.isQueued=!1}throw e}}finally{ge=null,ye=o,be=!1,function(e){z++,null!==Q&&ie([ne,e,z])}(t.unstable_now())}}function Te(e,r){var o,u,l=r;for(ke(l),ge=C(he);null!==ge&&!a&&(!(ge.expirationTime>l)||e&&!i());){var s=ge.callback;if(null!==s){ge.callback=null,ye=ge.priorityLevel;var c=ge.expirationTime<=l;o=ge,u=l,D++,L[F]=o.priorityLevel,L[W]=o.id,L[B]=D,null!==Q&&ie([ee,u,o.id,D]);var f=s(c);l=t.unstable_now(),"function"==typeof f?(ge.callback=f,le(ge,l)):(ue(ge,l),ge.isQueued=!1,ge===C(he)&&P(he)),ke(l)}else P(he);ge=C(he)}if(null!==ge)return!0;var d=C(me);return null!==d&&n(xe,d.startTime-l),!1}function Se(e){switch(e){case N:return se;case A:return ce;case U:return pe;case I:return de;case O:default:return fe}}var Ce=o,Pe={startLoggingProfilingEvents:function(){q=H,Y=new ArrayBuffer(4*q),Q=new Int32Array(Y),K=0},stopLoggingProfilingEvents:oe,sharedProfilingBuffer:j};t.unstable_ImmediatePriority=N,t.unstable_UserBlockingPriority=A,t.unstable_NormalPriority=O,t.unstable_IdlePriority=U,t.unstable_LowPriority=I,t.unstable_runWithPriority=function(e,t){switch(e){case N:case A:case O:case I:case U:break;default:e=O}var n=ye;ye=e;try{return t()}finally{ye=n}},t.unstable_next=function(e){var t;switch(ye){case N:case A:case O:t=O;break;default:t=ye}var n=ye;ye=t;try{return e()}finally{ye=n}},t.unstable_scheduleCallback=function(i,o,a){var u,l,s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;u="number"==typeof c&&c>0?s+c:s,l="number"==typeof a.timeout?a.timeout:Se(i)}else l=Se(i),u=s;var f=u+l,d={id:ve++,callback:o,priorityLevel:i,startTime:u,expirationTime:f,sortIndex:-1,isQueued:!1};return u>s?(d.sortIndex=u,S(me,d),null===C(he)&&d===C(me)&&(_e?r():_e=!0,n(xe,u-s))):(d.sortIndex=f,S(he,d),ae(d,s),d.isQueued=!0,we||be||(we=!0,e(Ee))),d},t.unstable_cancelCallback=function(e){e.isQueued&&(function(e,t){L[$]--,null!==Q&&ie([J,t,e.id])}(e,t.unstable_now()),e.isQueued=!1),e.callback=null},t.unstable_wrapCallback=function(e){var t=ye;return function(){var n=ye;ye=t;try{return e.apply(this,arguments)}finally{ye=n}}},t.unstable_getCurrentPriorityLevel=function(){return ye},t.unstable_shouldYield=function(){var e=t.unstable_now();ke(e);var n=C(he);return n!==ge&&null!==ge&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime