react-hoax
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports["react-hoax"]=e(require("react")):t["react-hoax"]=e(t.React)}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=95)}([function(e,r){e.exports=t},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(18),o="object"==typeof self&&self&&self.Object===Object&&self,u=n||o||Function("return this")();t.exports=u},function(t,e,r){var n=r(40),o=r(46);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e){t.exports=function(t){return null==t}},function(t,e,r){var n=r(27);t.exports=function(t,e){return n(t,e)}},function(t,e,r){!function(t,e){e=e&&e.hasOwnProperty("default")?e.default:e;var r=Symbol(),n=function(t,n){var o=t[r],u=e.useReducer((function(t){return t+1}),0)[1],c=e.useContext(t),i=n(c),a=e.useRef(null);return e.useLayoutEffect((function(){a.current={f:n,v:c,s:i}})),e.useLayoutEffect((function(){var t=function(t){try{if(a.current.v===t||Object.is(a.current.s,a.current.f(t)))return}catch(t){}u()};return o.add(t),function(){o.delete(t)}}),[o]),i};t.createContext=function(t){var n,o,u=e.createContext(t,(function(){return 0}));return u[r]=new Set,u.Provider=(n=u.Provider,o=u[r],e.memo((function(t){var r=t.value,u=t.children;return o.forEach((function(t){t(r)})),e.createElement(n,{value:r},u)}))),delete u.Consumer,u},t.useContext=function(t){return n(t,(function(t){return t}))},t.useContextSelector=n}(e,r(0))},function(t,e,r){var n=r(30),o=r(31),u=r(32),c=r(33),i=r(34);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=u,a.prototype.has=c,a.prototype.set=i,t.exports=a},function(t,e,r){var n=r(16);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(14),o=r(42),u=r(43),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):u(t)}},function(t,e,r){var n=r(3)(Object,"create");t.exports=n},function(t,e,r){var n=r(55);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(3)(r(2),"Map");t.exports=n},function(t,e,r){var n=r(2).Symbol;t.exports=n},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(9),o=r(19);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(41))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(47),o=r(54),u=r(56),c=r(57),i=r(58);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=u,a.prototype.has=c,a.prototype.set=i,t.exports=a},function(t,e,r){var n=r(59),o=r(62),u=r(63);t.exports=function(t,e,r,c,i,a){var f=1&r,s=t.length,p=e.length;if(s!=p&&!(f&&p>s))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var d=-1,y=!0,b=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++d<s;){var v=t[d],O=e[d];if(c)var h=f?c(O,v,d,e,t,a):c(v,O,d,t,e,a);if(void 0!==h){if(h)continue;y=!1;break}if(b){if(!o(e,(function(t,e){if(!u(b,e)&&(v===t||i(v,t,r,c,a)))return b.push(e)}))){y=!1;break}}else if(v!==O&&!i(v,O,r,c,a)){y=!1;break}}return a.delete(t),a.delete(e),y}},function(t,e,r){(function(t){var n=r(2),o=r(80),u=e&&!e.nodeType&&e,c=u&&"object"==typeof t&&t&&!t.nodeType&&t,i=c&&c.exports===u?n.Buffer:void 0,a=(i?i.isBuffer:void 0)||o;t.exports=a}).call(this,r(24)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(82),o=r(83),u=r(84),c=u&&u.isTypedArray,i=c?o(c):n;t.exports=i},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){var n=r(28),o=r(12);t.exports=function t(e,r,u,c,i){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,u,c,t,i))}},function(t,e,r){var n=r(29),o=r(22),u=r(64),c=r(68),i=r(90),a=r(15),f=r(23),s=r(25),p="[object Object]",l=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,y,b){var v=a(t),O=a(e),h=v?"[object Array]":i(t),j=O?"[object Array]":i(e),g=(h="[object Arguments]"==h?p:h)==p,P=(j="[object Arguments]"==j?p:j)==p,m=h==j;if(m&&f(t)){if(!f(e))return!1;v=!0,g=!1}if(m&&!g)return b||(b=new n),v||s(t)?o(t,e,r,d,y,b):u(t,e,h,r,d,y,b);if(!(1&r)){var x=g&&l.call(t,"__wrapped__"),_=P&&l.call(e,"__wrapped__");if(x||_){var w=x?t.value():t,S=_?e.value():e;return b||(b=new n),y(w,S,r,d,b)}}return!!m&&(b||(b=new n),c(t,e,r,d,y,b))}},function(t,e,r){var n=r(7),o=r(35),u=r(36),c=r(37),i=r(38),a=r(39);function f(t){var e=this.__data__=new n(t);this.size=e.size}f.prototype.clear=o,f.prototype.delete=u,f.prototype.get=c,f.prototype.has=i,f.prototype.set=a,t.exports=f},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(8),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(8);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(8);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(8);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(7);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(7),o=r(13),u=r(21);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new u(c)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(17),o=r(44),u=r(19),c=r(20),i=/^\[object .+?Constructor\]$/,a=Function.prototype,f=Object.prototype,s=a.toString,p=f.hasOwnProperty,l=RegExp("^"+s.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!u(t)||o(t))&&(n(t)?l:i).test(c(t))}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(14),o=Object.prototype,u=o.hasOwnProperty,c=o.toString,i=n?n.toStringTag:void 0;t.exports=function(t){var e=u.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(e?t[i]=r:delete t[i]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(45),u=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!u&&u in t}},function(t,e,r){var n=r(2)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(48),o=r(7),u=r(13);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(u||o),string:new n}}},function(t,e,r){var n=r(49),o=r(50),u=r(51),c=r(52),i=r(53);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=u,a.prototype.has=c,a.prototype.set=i,t.exports=a},function(t,e,r){var n=r(10);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(10),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(10),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(10);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(11);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(11);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(11);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(11);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(21),o=r(60),u=r(61);function c(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}c.prototype.add=c.prototype.push=o,c.prototype.has=u,t.exports=c},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(14),o=r(65),u=r(16),c=r(22),i=r(66),a=r(67),f=n?n.prototype:void 0,s=f?f.valueOf:void 0;t.exports=function(t,e,r,n,f,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return u(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=i;case"[object Set]":var y=1&n;if(d||(d=a),t.size!=e.size&&!y)return!1;var b=l.get(t);if(b)return b==e;n|=2,l.set(t,e);var v=c(d(t),d(e),n,f,p,l);return l.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},function(t,e,r){var n=r(2).Uint8Array;t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(69),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,u,c,i){var a=1&r,f=n(t),s=f.length;if(s!=n(e).length&&!a)return!1;for(var p=s;p--;){var l=f[p];if(!(a?l in e:o.call(e,l)))return!1}var d=i.get(t);if(d&&i.get(e))return d==e;var y=!0;i.set(t,e),i.set(e,t);for(var b=a;++p<s;){var v=t[l=f[p]],O=e[l];if(u)var h=a?u(O,v,l,e,t,i):u(v,O,l,t,e,i);if(!(void 0===h?v===O||c(v,O,r,u,i):h)){y=!1;break}b||(b="constructor"==l)}if(y&&!b){var j=t.constructor,g=e.constructor;j!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof j&&j instanceof j&&"function"==typeof g&&g instanceof g)&&(y=!1)}return i.delete(t),i.delete(e),y}},function(t,e,r){var n=r(70),o=r(72),u=r(75);t.exports=function(t){return n(t,u,o)}},function(t,e,r){var n=r(71),o=r(15);t.exports=function(t,e,r){var u=e(t);return o(t)?u:n(u,r(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(73),o=r(74),u=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,i=c?function(t){return null==t?[]:(t=Object(t),n(c(t),(function(e){return u.call(t,e)})))}:o;t.exports=i},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,u=[];++r<n;){var c=t[r];e(c,r,t)&&(u[o++]=c)}return u}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(76),o=r(85),u=r(89);t.exports=function(t){return u(t)?n(t):o(t)}},function(t,e,r){var n=r(77),o=r(78),u=r(15),c=r(23),i=r(81),a=r(25),f=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=u(t),s=!r&&o(t),p=!r&&!s&&c(t),l=!r&&!s&&!p&&a(t),d=r||s||p||l,y=d?n(t.length,String):[],b=y.length;for(var v in t)!e&&!f.call(t,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||l&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,b))||y.push(v);return y}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(79),o=r(12),u=Object.prototype,c=u.hasOwnProperty,i=u.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!i.call(t,"callee")};t.exports=a},function(t,e,r){var n=r(9),o=r(12);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(9),o=r(26),u=r(12),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return u(t)&&o(t.length)&&!!c[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(18),o=e&&!e.nodeType&&e,u=o&&"object"==typeof t&&t&&!t.nodeType&&t,c=u&&u.exports===o&&n.process,i=function(){try{var t=u&&u.require&&u.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=i}).call(this,r(24)(t))},function(t,e,r){var n=r(86),o=r(87),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(88)(Object.keys,Object);t.exports=n},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(17),o=r(26);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(91),o=r(13),u=r(92),c=r(93),i=r(94),a=r(9),f=r(20),s=f(n),p=f(o),l=f(u),d=f(c),y=f(i),b=a;(n&&"[object DataView]"!=b(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||u&&"[object Promise]"!=b(u.resolve())||c&&"[object Set]"!=b(new c)||i&&"[object WeakMap]"!=b(new i))&&(b=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?f(r):"";if(n)switch(n){case s:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case d:return"[object Set]";case y:return"[object WeakMap]"}return e}),t.exports=b},function(t,e,r){var n=r(3)(r(2),"DataView");t.exports=n},function(t,e,r){var n=r(3)(r(2),"Promise");t.exports=n},function(t,e,r){var n=r(3)(r(2),"Set");t.exports=n},function(t,e,r){var n=r(3)(r(2),"WeakMap");t.exports=n},function(t,e,r){"use strict";r.r(e),r.d(e,"makeMemberHoax",(function(){return _t})),r.d(e,"makeCollectionHoax",(function(){return ce})),r.d(e,"hoaxActions",(function(){return o})),r.d(e,"hoaxResourceActions",(function(){return c})),r.d(e,"hoaxActionTypes",(function(){return n})),r.d(e,"hoaxResourceActionTypes",(function(){return u}));var n={};r.r(n),r.d(n,"initialize",(function(){return j})),r.d(n,"update",(function(){return g})),r.d(n,"updateBatch",(function(){return P})),r.d(n,"reset",(function(){return m})),r.d(n,"resetPristine",(function(){return x})),r.d(n,"resetPristineKey",(function(){return _})),r.d(n,"startFetch",(function(){return w})),r.d(n,"doneFetch",(function(){return S})),r.d(n,"failFetch",(function(){return R})),r.d(n,"startProcess",(function(){return A})),r.d(n,"doneProcess",(function(){return D}));var o={};r.r(o),r.d(o,"initialize",(function(){return C})),r.d(o,"update",(function(){return k})),r.d(o,"updateBatch",(function(){return z})),r.d(o,"updateOnChange",(function(){return F})),r.d(o,"reset",(function(){return M})),r.d(o,"resetPristine",(function(){return T})),r.d(o,"resetPristineKey",(function(){return K})),r.d(o,"startFetch",(function(){return B})),r.d(o,"doneFetch",(function(){return U})),r.d(o,"failFetch",(function(){return $})),r.d(o,"startProcess",(function(){return L})),r.d(o,"doneProcess",(function(){return q}));var u={};r.r(u),r.d(u,"initializeResource",(function(){return Rt})),r.d(u,"updateResource",(function(){return At})),r.d(u,"updateBatchResource",(function(){return Dt})),r.d(u,"removeResource",(function(){return Et})),r.d(u,"resetResource",(function(){return It})),r.d(u,"resetPristineResource",(function(){return Ct})),r.d(u,"resetPristineKeyResource",(function(){return kt})),r.d(u,"startFetchResource",(function(){return zt})),r.d(u,"doneFetchResource",(function(){return Ft})),r.d(u,"failFetchResource",(function(){return Mt})),r.d(u,"startProcessResource",(function(){return Tt})),r.d(u,"doneProcessResource",(function(){return Kt}));var c={};function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,u=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){o=!0,u=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw u}}return r}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.r(c),r.d(c,"initializeResource",(function(){return Bt})),r.d(c,"updateResource",(function(){return Ut})),r.d(c,"updateBatchResource",(function(){return $t})),r.d(c,"updateOnChangeResource",(function(){return Lt})),r.d(c,"removeResource",(function(){return qt})),r.d(c,"resetResource",(function(){return Nt})),r.d(c,"resetPristineResource",(function(){return Vt})),r.d(c,"resetPristineKeyResource",(function(){return Wt})),r.d(c,"startFetchResource",(function(){return Ht})),r.d(c,"doneFetchResource",(function(){return Gt})),r.d(c,"failFetchResource",(function(){return Jt})),r.d(c,"startProcessResource",(function(){return Qt})),r.d(c,"doneProcessResource",(function(){return Xt}));var p=r(0),l=r.n(p);function d(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=r(1),b=r.n(y);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var O=function(t,e,r,n,o){if("function"!=typeof t)return e(t);var u=t.apply(void 0,d(n));return"function"==typeof u?u(e,r,o):e(u)},h=function(t,e){var r=e.initialState,n=e.init,o=void 0===n?b.a:n,u=e.actions,c=void 0===u?{}:u,a=e.extraArgument,f=s(Object(p.useReducer)(t,r,o),2),l=f[0],d=f[1],y=Object(p.useRef)();y.current=l;var h=Object(p.useRef)();if(h.current)return[l,h.current];var j=function(){return y.current};return h.current=Object.keys(c).reduce((function(t,e){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t,i({},e,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(c[e],d,j,r,a)})))}),{dispatch:d}),[l,h.current]},j="initialize",g="update",P="updateBatch",m="reset",x="resetPristine",_="resetPristineKey",w="startFetch",S="doneFetch",R="failFetch",A="startProcess",D="doneProcess";function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var C=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.merge;return function(e,n){return e(r?{type:j,values:I({},n(),{},t)}:{type:j,values:t})}},k=function(t,e){return{type:g,attr:t,value:e}},z=function(t){return{type:P,values:t}},F=function(t){var e=t.target;return k(e.name,e.value)},M={type:m},T={type:x},K=function(t){return{type:_,attr:t}},B={type:w},U=function(t){return{type:S,values:t}},$={type:R},L={type:A},q={type:D},N=r(6),V=function(){return[Object(N.createContext)({}),Object(N.createContext)({})]};function W(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var H=function(t){var e=t.getInitialState,r=t.defaultInitialState;return e&&"function"==typeof e?function(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?W(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r,{},e())}:function(){return r}},G=r(4),J=r.n(G),Q=r(5),X=r.n(Q);function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var tt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pristine",e=function(){return i({},t,{})},r=function(e,r){return!!e[t]&&e[t].hasOwnProperty(r)},n=function(e,r){return Z({},e,i({},t,Z({},e[t],i({},r,e[r]))))},o=function(n,o){return o?r(n,o)?(delete n[t][o],Z({},n,i({},t,Z({},n[t])))):n:Z({},n,{},e())};return{updatePristine:function(e,u,c){var i=r(e,u);return i||X()(c,e[u])?i&&X()(c,e[t][u])?o(e,u):e:n(e,u)},removePristine:o,getInitialPristineState:e}};function et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?et(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var nt=function(t,e,r){return Array.isArray(r)?function(t,e,r){return r.reduce((function(e,r){var n=r.attr,o=r.value;return rt({},e,{},t(e,n,o))}),e)}(t,e,r):function(t,e,r){return Object.keys(r).reduce((function(e,n){return rt({},e,{},t(e,n,r[n]))}),e)}(t,e,r)},ot=function(t){return function(e,r){return t.hasOwnProperty(r.type)?t[r.type](e,r):e}};function ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var it=function(t,e){var r,n=tt("pristine"),o=n.getInitialPristineState,u=n.updatePristine,c=n.removePristine,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct({},t(),{},e,{},o())},f=function(e,r,n){return n=function(e,r){return J()(r)?t()[e]:r}(r,n),ct({},e=u(e,r,n),i({},r,n))},s=ct((i(r={},j,(function(t,e){return a(e.values)})),i(r,g,(function(t,e){return f(t,e.attr,e.value)})),i(r,P,(function(t,e){return nt(f,t,e.values)})),i(r,m,(function(t,e){return a()})),i(r,x,(function(t,e){return c(t)})),i(r,_,(function(t,e){return c(t,e.attr)})),i(r,A,(function(t,e){return ct({},t,{processing:!0})})),i(r,D,(function(t,e){return ct({},t,{processing:!1})})),i(r,w,(function(t,e){return ct({},t,{loading:!0})})),i(r,S,(function(t,e){return a(ct({},e.values,{loading:!1,loaded:!0}))})),i(r,R,(function(t,e){return ct({},t,{loading:!1})})),r),e);return{reducer:ot(s),init:a}},at=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.a,r=Object(p.useRef)();return Object(N.useContextSelector)(t,(function(t){var n=e(t);return X()(r.current,n)||(r.current=n),r.current}))},ft=function(t){return function(e){return e.byId[t]}},st=function(t,e){return{useSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.a;return at(t,e)},useResourceSelector:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.a,n=Object(p.useCallback)((function(t){return r(ft(e)(t))}),[e]);return at(t,n)},useAction:function(t){var r=Object(p.useMemo)((function(){return t?function(e){return e[t]}:b.a}),[t]);return at(e,r)}}};function pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var lt=function(t){return function(e){return t?e.updateResource:e.update}},dt=function(t,e){return function(r){var n=r.fieldKey,o=r.resourceId,u=r.getUpdate,c=void 0===u?lt:u,a=r.select,f=void 0===a?o?ft:b.a:a,l=Object(p.useCallback)((function(t){var e=o?f(o)(t):f(t);return[e[n],e.errors]}),[o,n]),d=s(at(t,l),2),y=d[0],v=d[1],O=Object(p.useCallback)((function(t){var e=c(o)(t);if("function"!=typeof e)throw new Error("useMember expects an 'update' dispatch function");return o?function(t,r){return e(o,t,r)}:e}),[o]),h=at(e,O);return[y,Object(p.useCallback)((function(t){return h(n,t)}),[h,n]),v[n],Object(p.useCallback)((function(t){return h("errors",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},v,i({},n,t)))}),[h,v])]}},yt=function(t,e){var r=dt(t,e);return function(t){var e=t.fieldKey,n=t.resourceId,o=t.uniq,u=t.getUpdate,c=t.select,i=s(r({fieldKey:e,resourceId:n,getUpdate:u,select:c}),4),a=i[0],f=i[1],l=i[2],y=i[3],v=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?function(t){return d(new Set(t))}:b.a}(o),O=Object(p.useCallback)((function(t){t<0||t>=a.length||f(v([].concat(d(a.slice(0,t)),d(a.slice(t+1)))))}),[a]),h=Object(p.useCallback)((function(t,e){t<0||t>=a.length||f(v([].concat(d(a.slice(0,t)),[e],d(a.slice(t+1)))))}),[a]),j=Object(p.useCallback)((function(t,e){t<0||f(v([].concat(d(a.slice(0,t)),[e],d(a.slice(t)))))}),[a]),g=Object(p.useCallback)((function(t){return j(a.length,t)}),[a]),P=Object(p.useCallback)((function(t,e){if(!(t<0||t>=a.length||e<0||e>=a.length)){var r=d(a),n=s(r.splice(t,1),1)[0];r.splice(e,0,n),f(v(r))}}),[a]);return{collection:a,set:f,add:j,push:g,edit:h,remove:O,reorder:P,error:l,setError:y}}};function bt(){return(bt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function vt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},u=Object.keys(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ot=function(t){return t.target.value},ht=function(t){return t.target.checked},jt=function(t){var e=function(e){var r=e.Component,n=void 0===r?"input":r,o=e.fieldKey,u=e.select,c=e.resourceId,a=(e.getUpdate,e.onChange),f=void 0===a?b.a:a,p=vt(e,["Component","fieldKey","select","resourceId","getUpdate","onChange"]),d=s(t({fieldKey:o,select:u,resourceId:c}),3),y=d[0],v=d[1],O=d[2];return l.a.createElement(n,bt(i({name:o,"data-testid":o,onChange:function(){return v(f.apply(void 0,arguments))},value:y,error:O},"name",o),p))};return{Select:function(t){var r=t.Component,n=void 0===r?"select":r,o=t.onChange,u=void 0===o?Ot:o,c=t.options,i=void 0===c?[]:c,a=vt(t,["Component","onChange","options"]);return(l.a.createElement(e,bt({Component:n,onChange:u,options:i},a)))},Checkbox:function(t){var r=t.type,n=void 0===r?"checkbox":r,o=t.onChange,u=void 0===o?ht:o,c=vt(t,["type","onChange"]);return(l.a.createElement(e,bt({type:n,onChange:u},c)))},Input:function(t){var r=t.onChange,n=void 0===r?Ot:r,o=vt(t,["onChange"]);return(l.a.createElement(e,bt({type:"text",onChange:n},o)))}}},gt=function(t,e){return{useSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.a;return at(t,e)},useAction:function(t){var r=Object(p.useMemo)((function(){return t?function(e){return e[t]}:b.a}),[t]);return at(e,r)}}},Pt={loading:!0,loaded:!1,processing:!1,errors:{}};function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.getInitialState,n=e.reducer,u=e.actions,c=H({getInitialState:r,defaultInitialState:Pt}),i=it(c,n),a=i.reducer,f=i.init,p=V(),d=s(p,2),y=d[0],b=d[1],v=dt(y,b),O=yt(y,b),j=jt(v),g=gt(y,b),P=g.useSelector,m=g.useAction,x=function(t){var e=t.children,r=t.initialState,n=t.extraArgument,c=s(h(a,{initialState:r,init:f,actions:xt({},o,{},u),extraArgument:n}),2),i=c[0],p=c[1];return l.a.createElement(b.Provider,{value:p},l.a.createElement(y.Provider,{value:i},e))};return x.displayName=t,{Provider:x,useMember:v,useCollection:O,useSelector:P,useAction:m,Field:j,getInitialState:c}},wt={loading:!0,loaded:!1,processing:!1,byId:{},ids:[]},St={loading:!0,loaded:!1,processing:!1,errors:{}},Rt="initializeResource",At="updateResource",Dt="updateBatchResource",Et="removeResource",It="resetResource",Ct="resetPristineResource",kt="resetPristineKeyResource",zt="startFetchResource",Ft="doneFetchResource",Mt="failFetchResource",Tt="startProcessResource",Kt="doneProcessResource",Bt=function(t,e){return{type:Rt,id:t,values:e}},Ut=function(t,e,r){return{type:At,id:t,attr:e,value:r}},$t=function(t,e){return{type:Dt,id:t,values:e}},Lt=function(t,e){var r=e.target;return Ut(t,r.name,r.value)},qt=function(t){return{type:Et,id:t}},Nt=function(t){return{type:It,id:t}},Vt=function(t){return{type:Ct,id:t}},Wt=function(t,e){return{type:kt,id:t,attr:e}},Ht=function(t){return{type:zt,id:t}},Gt=function(t,e){return{type:Ft,id:t,values:e}},Jt=function(t){return{type:Mt,id:t}},Qt=function(t){return{type:Tt,id:t}},Xt=function(t){return{type:Kt,id:t}};function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var te=function(t){var e,r=t.getInitialState,n=t.customReducer,o=void 0===n?{}:n,c=t.resourceReducer,a=void 0===c?{}:c,f=t.initResource,s=t.customResourceActionTypes,p=void 0===s?{}:s,l=t.idKey,y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Zt({},r(),{},t)},b=function(t,e,r){var n=t.byId[e]||f();return a(n,Zt(i({},l,e),r),l)},v=function(t,e,n){return Zt({},t,i({},e,n=function(t,e){return J()(e)?r()[t]:e}(e,n)))},O=function(t,e){var r=e.id,n=vt(e,["id"]),o=b(t,r,n),u=t.byId.hasOwnProperty(r)?t.ids:[].concat(d(t.ids),[r]);return Zt({},t,{byId:Zt({},t.byId,i({},r,o)),ids:u})},h=Zt((i(e={},j,(function(t,e){return y(e.values)})),i(e,g,(function(t,e){return v(t,e.attr,e.value)})),i(e,P,(function(t,e){return nt(v,t,e.values)})),i(e,m,(function(t,e){return y()})),i(e,A,(function(t,e){return Zt({},t,{processing:!0})})),i(e,D,(function(t,e){return Zt({},t,{processing:!1})})),i(e,w,(function(t,e){return Zt({},t,{loading:!0})})),i(e,S,(function(t,e){return function(t,e){var r=[],n=e.reduce((function(e,n){return r.push(n[l]),Zt({},e,i({},n[l],b(t,n[l],{type:Rt,values:n})))}),{});return Zt({},t,{byId:Zt({},t.byId,{},n),ids:d(new Set([].concat(d(t.ids),r))),loading:!1,loaded:!0})}(t,e.values)})),i(e,R,(function(t,e){return Zt({},t,{loading:!1})})),e),Object.keys(Zt({},u,{},p)).reduce((function(t,e){return Zt({},t,i({},e,O))}),{}),i({},Et,(function(t,e){return function(t,e){var r=Zt({},t.byId);delete r[e];var n=t.ids.filter((function(t){return t!==e}));return Zt({},t,{byId:r,ids:n})}(t,e.id)})),o);return{reducer:ot(h),init:y}};function ee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ne=function(t,e,r){var n,o=tt("pristine"),u=o.getInitialPristineState,c=o.updatePristine,a=o.removePristine,f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return re(i({},r,e),t(),{},n,{},u())},s=function(e,r,n){return n=function(e,r){return J()(r)?t()[e]:r}(r,n),re({},e=c(e,r,n),i({},r,n))},p=re((i(n={},Rt,(function(t,e){return f(e.id,e.values)})),i(n,At,(function(t,e){return s(t,e.attr,e.value)})),i(n,Dt,(function(t,e){return nt(s,t,e.values)})),i(n,It,(function(t,e){return f(e.id)})),i(n,Ct,(function(t,e){return a(t)})),i(n,kt,(function(t,e){return a(t,e.attr)})),i(n,Tt,(function(t,e){return re({},t,{processing:!0})})),i(n,Kt,(function(t,e){return re({},t,{processing:!1})})),i(n,zt,(function(t,e){return re({},t,{loading:!0})})),i(n,Ft,(function(t,e){return f(e.id,re({},e.values,{loading:!1,loaded:!0}))})),i(n,Mt,(function(t,e){return re({},t,{loading:!1})})),n),e);return{reducer:ot(p),init:f}};function oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ce=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.getInitialState,n=e.reducer,u=e.actions,i=e.resourceOptions,a=void 0===i?{}:i,f=e.idKey,p=void 0===f?"id":f,d=H({getInitialState:r,defaultInitialState:wt}),y=H({getInitialState:a.getInitialState,defaultInitialState:St}),b=ne(y,a.reducer),v=b.reducer,O=b.init,j=te({getInitialState:d,customReducer:n,resourceReducer:v,customResourceActionTypes:a.actionTypes,initResource:O,idKey:p}),g=j.reducer,P=j.init,m=V(),x=s(m,2),_=x[0],w=x[1],S=yt(_,w),R=dt(_,w),A=jt(R),D=st(_,w),E=D.useSelector,I=D.useAction,C=D.useResourceSelector,k=function(t){var e=t.children,r=t.initialState,n=t.extraArgument,i=s(h(g,{initialState:r,init:P,actions:ue({},o,{},c,{},u),extraArgument:n}),2),a=i[0],f=i[1];return l.a.createElement(w.Provider,{value:f},l.a.createElement(_.Provider,{value:a},e))};return k.displayName=t,{Provider:k,useCollection:S,useMember:R,useSelector:E,useAction:I,useResourceSelector:C,Field:A,getInitialState:d,getInitialResourceState:y}}}])})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports["react-hoax"]=e(require("react")):t["react-hoax"]=e(t.React)}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=95)}([function(e,r){e.exports=t},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(18),o="object"==typeof self&&self&&self.Object===Object&&self,u=n||o||Function("return this")();t.exports=u},function(t,e,r){var n=r(40),o=r(46);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e){t.exports=function(t){return null==t}},function(t,e,r){var n=r(27);t.exports=function(t,e){return n(t,e)}},function(t,e,r){!function(t,e){e=e&&e.hasOwnProperty("default")?e.default:e;var r=Symbol(),n=function(t,n){var o=t[r],u=e.useReducer((function(t){return t+1}),0)[1],c=e.useContext(t),i=n(c),a=e.useRef(null);return e.useLayoutEffect((function(){a.current={f:n,v:c,s:i}})),e.useLayoutEffect((function(){var t=function(t){try{if(a.current.v===t||Object.is(a.current.s,a.current.f(t)))return}catch(t){}u()};return o.add(t),function(){o.delete(t)}}),[o]),i};t.createContext=function(t){var n,o,u=e.createContext(t,(function(){return 0}));return u[r]=new Set,u.Provider=(n=u.Provider,o=u[r],e.memo((function(t){var r=t.value,u=t.children;return o.forEach((function(t){t(r)})),e.createElement(n,{value:r},u)}))),delete u.Consumer,u},t.useContext=function(t){return n(t,(function(t){return t}))},t.useContextSelector=n}(e,r(0))},function(t,e,r){var n=r(30),o=r(31),u=r(32),c=r(33),i=r(34);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=u,a.prototype.has=c,a.prototype.set=i,t.exports=a},function(t,e,r){var n=r(16);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(14),o=r(42),u=r(43),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):u(t)}},function(t,e,r){var n=r(3)(Object,"create");t.exports=n},function(t,e,r){var n=r(55);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(3)(r(2),"Map");t.exports=n},function(t,e,r){var n=r(2).Symbol;t.exports=n},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(9),o=r(19);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(41))},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(47),o=r(54),u=r(56),c=r(57),i=r(58);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=u,a.prototype.has=c,a.prototype.set=i,t.exports=a},function(t,e,r){var n=r(59),o=r(62),u=r(63);t.exports=function(t,e,r,c,i,a){var f=1&r,s=t.length,p=e.length;if(s!=p&&!(f&&p>s))return!1;var l=a.get(t);if(l&&a.get(e))return l==e;var d=-1,y=!0,b=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++d<s;){var v=t[d],O=e[d];if(c)var h=f?c(O,v,d,e,t,a):c(v,O,d,t,e,a);if(void 0!==h){if(h)continue;y=!1;break}if(b){if(!o(e,(function(t,e){if(!u(b,e)&&(v===t||i(v,t,r,c,a)))return b.push(e)}))){y=!1;break}}else if(v!==O&&!i(v,O,r,c,a)){y=!1;break}}return a.delete(t),a.delete(e),y}},function(t,e,r){(function(t){var n=r(2),o=r(80),u=e&&!e.nodeType&&e,c=u&&"object"==typeof t&&t&&!t.nodeType&&t,i=c&&c.exports===u?n.Buffer:void 0,a=(i?i.isBuffer:void 0)||o;t.exports=a}).call(this,r(24)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(82),o=r(83),u=r(84),c=u&&u.isTypedArray,i=c?o(c):n;t.exports=i},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){var n=r(28),o=r(12);t.exports=function t(e,r,u,c,i){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,u,c,t,i))}},function(t,e,r){var n=r(29),o=r(22),u=r(64),c=r(68),i=r(90),a=r(15),f=r(23),s=r(25),p="[object Object]",l=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,y,b){var v=a(t),O=a(e),h=v?"[object Array]":i(t),j=O?"[object Array]":i(e),g=(h="[object Arguments]"==h?p:h)==p,P=(j="[object Arguments]"==j?p:j)==p,m=h==j;if(m&&f(t)){if(!f(e))return!1;v=!0,g=!1}if(m&&!g)return b||(b=new n),v||s(t)?o(t,e,r,d,y,b):u(t,e,h,r,d,y,b);if(!(1&r)){var x=g&&l.call(t,"__wrapped__"),_=P&&l.call(e,"__wrapped__");if(x||_){var w=x?t.value():t,S=_?e.value():e;return b||(b=new n),y(w,S,r,d,b)}}return!!m&&(b||(b=new n),c(t,e,r,d,y,b))}},function(t,e,r){var n=r(7),o=r(35),u=r(36),c=r(37),i=r(38),a=r(39);function f(t){var e=this.__data__=new n(t);this.size=e.size}f.prototype.clear=o,f.prototype.delete=u,f.prototype.get=c,f.prototype.has=i,f.prototype.set=a,t.exports=f},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(8),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(8);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(8);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(8);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(7);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(7),o=r(13),u=r(21);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new u(c)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(17),o=r(44),u=r(19),c=r(20),i=/^\[object .+?Constructor\]$/,a=Function.prototype,f=Object.prototype,s=a.toString,p=f.hasOwnProperty,l=RegExp("^"+s.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!u(t)||o(t))&&(n(t)?l:i).test(c(t))}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(14),o=Object.prototype,u=o.hasOwnProperty,c=o.toString,i=n?n.toStringTag:void 0;t.exports=function(t){var e=u.call(t,i),r=t[i];try{t[i]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(e?t[i]=r:delete t[i]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(45),u=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!u&&u in t}},function(t,e,r){var n=r(2)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(48),o=r(7),u=r(13);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(u||o),string:new n}}},function(t,e,r){var n=r(49),o=r(50),u=r(51),c=r(52),i=r(53);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=u,a.prototype.has=c,a.prototype.set=i,t.exports=a},function(t,e,r){var n=r(10);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(10),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(10),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(10);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(11);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(11);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(11);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(11);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(21),o=r(60),u=r(61);function c(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}c.prototype.add=c.prototype.push=o,c.prototype.has=u,t.exports=c},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(14),o=r(65),u=r(16),c=r(22),i=r(66),a=r(67),f=n?n.prototype:void 0,s=f?f.valueOf:void 0;t.exports=function(t,e,r,n,f,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return u(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=i;case"[object Set]":var y=1&n;if(d||(d=a),t.size!=e.size&&!y)return!1;var b=l.get(t);if(b)return b==e;n|=2,l.set(t,e);var v=c(d(t),d(e),n,f,p,l);return l.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},function(t,e,r){var n=r(2).Uint8Array;t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(69),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,u,c,i){var a=1&r,f=n(t),s=f.length;if(s!=n(e).length&&!a)return!1;for(var p=s;p--;){var l=f[p];if(!(a?l in e:o.call(e,l)))return!1}var d=i.get(t);if(d&&i.get(e))return d==e;var y=!0;i.set(t,e),i.set(e,t);for(var b=a;++p<s;){var v=t[l=f[p]],O=e[l];if(u)var h=a?u(O,v,l,e,t,i):u(v,O,l,t,e,i);if(!(void 0===h?v===O||c(v,O,r,u,i):h)){y=!1;break}b||(b="constructor"==l)}if(y&&!b){var j=t.constructor,g=e.constructor;j!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof j&&j instanceof j&&"function"==typeof g&&g instanceof g)&&(y=!1)}return i.delete(t),i.delete(e),y}},function(t,e,r){var n=r(70),o=r(72),u=r(75);t.exports=function(t){return n(t,u,o)}},function(t,e,r){var n=r(71),o=r(15);t.exports=function(t,e,r){var u=e(t);return o(t)?u:n(u,r(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(73),o=r(74),u=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols,i=c?function(t){return null==t?[]:(t=Object(t),n(c(t),(function(e){return u.call(t,e)})))}:o;t.exports=i},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,u=[];++r<n;){var c=t[r];e(c,r,t)&&(u[o++]=c)}return u}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(76),o=r(85),u=r(89);t.exports=function(t){return u(t)?n(t):o(t)}},function(t,e,r){var n=r(77),o=r(78),u=r(15),c=r(23),i=r(81),a=r(25),f=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=u(t),s=!r&&o(t),p=!r&&!s&&c(t),l=!r&&!s&&!p&&a(t),d=r||s||p||l,y=d?n(t.length,String):[],b=y.length;for(var v in t)!e&&!f.call(t,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||l&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,b))||y.push(v);return y}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(79),o=r(12),u=Object.prototype,c=u.hasOwnProperty,i=u.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!i.call(t,"callee")};t.exports=a},function(t,e,r){var n=r(9),o=r(12);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(9),o=r(26),u=r(12),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return u(t)&&o(t.length)&&!!c[n(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(18),o=e&&!e.nodeType&&e,u=o&&"object"==typeof t&&t&&!t.nodeType&&t,c=u&&u.exports===o&&n.process,i=function(){try{var t=u&&u.require&&u.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=i}).call(this,r(24)(t))},function(t,e,r){var n=r(86),o=r(87),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))u.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(88)(Object.keys,Object);t.exports=n},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(17),o=r(26);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(91),o=r(13),u=r(92),c=r(93),i=r(94),a=r(9),f=r(20),s=f(n),p=f(o),l=f(u),d=f(c),y=f(i),b=a;(n&&"[object DataView]"!=b(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||u&&"[object Promise]"!=b(u.resolve())||c&&"[object Set]"!=b(new c)||i&&"[object WeakMap]"!=b(new i))&&(b=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?f(r):"";if(n)switch(n){case s:return"[object DataView]";case p:return"[object Map]";case l:return"[object Promise]";case d:return"[object Set]";case y:return"[object WeakMap]"}return e}),t.exports=b},function(t,e,r){var n=r(3)(r(2),"DataView");t.exports=n},function(t,e,r){var n=r(3)(r(2),"Promise");t.exports=n},function(t,e,r){var n=r(3)(r(2),"Set");t.exports=n},function(t,e,r){var n=r(3)(r(2),"WeakMap");t.exports=n},function(t,e,r){"use strict";r.r(e),r.d(e,"makeMemberHoax",(function(){return _t})),r.d(e,"makeCollectionHoax",(function(){return ce})),r.d(e,"hoaxActions",(function(){return o})),r.d(e,"hoaxResourceActions",(function(){return c})),r.d(e,"hoaxActionTypes",(function(){return n})),r.d(e,"hoaxResourceActionTypes",(function(){return u}));var n={};r.r(n),r.d(n,"initialize",(function(){return j})),r.d(n,"update",(function(){return g})),r.d(n,"updateBatch",(function(){return P})),r.d(n,"reset",(function(){return m})),r.d(n,"resetPristine",(function(){return x})),r.d(n,"resetPristineKey",(function(){return _})),r.d(n,"startFetch",(function(){return w})),r.d(n,"doneFetch",(function(){return S})),r.d(n,"failFetch",(function(){return R})),r.d(n,"startProcess",(function(){return A})),r.d(n,"doneProcess",(function(){return D}));var o={};r.r(o),r.d(o,"initialize",(function(){return C})),r.d(o,"update",(function(){return k})),r.d(o,"updateBatch",(function(){return z})),r.d(o,"updateOnChange",(function(){return F})),r.d(o,"reset",(function(){return M})),r.d(o,"resetPristine",(function(){return T})),r.d(o,"resetPristineKey",(function(){return K})),r.d(o,"startFetch",(function(){return B})),r.d(o,"doneFetch",(function(){return U})),r.d(o,"failFetch",(function(){return $})),r.d(o,"startProcess",(function(){return L})),r.d(o,"doneProcess",(function(){return q}));var u={};r.r(u),r.d(u,"initializeResource",(function(){return Rt})),r.d(u,"updateResource",(function(){return At})),r.d(u,"updateBatchResource",(function(){return Dt})),r.d(u,"removeResource",(function(){return Et})),r.d(u,"resetResource",(function(){return It})),r.d(u,"resetPristineResource",(function(){return Ct})),r.d(u,"resetPristineKeyResource",(function(){return kt})),r.d(u,"startFetchResource",(function(){return zt})),r.d(u,"doneFetchResource",(function(){return Ft})),r.d(u,"failFetchResource",(function(){return Mt})),r.d(u,"startProcessResource",(function(){return Tt})),r.d(u,"doneProcessResource",(function(){return Kt}));var c={};function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,u=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){o=!0,u=t}finally{try{n||null==i.return||i.return()}finally{if(o)throw u}}return r}}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.r(c),r.d(c,"initializeResource",(function(){return Bt})),r.d(c,"updateResource",(function(){return Ut})),r.d(c,"updateBatchResource",(function(){return $t})),r.d(c,"updateOnChangeResource",(function(){return Lt})),r.d(c,"removeResource",(function(){return qt})),r.d(c,"resetResource",(function(){return Nt})),r.d(c,"resetPristineResource",(function(){return Vt})),r.d(c,"resetPristineKeyResource",(function(){return Wt})),r.d(c,"startFetchResource",(function(){return Ht})),r.d(c,"doneFetchResource",(function(){return Gt})),r.d(c,"failFetchResource",(function(){return Jt})),r.d(c,"startProcessResource",(function(){return Qt})),r.d(c,"doneProcessResource",(function(){return Xt}));var p=r(0),l=r.n(p);function d(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var y=r(1),b=r.n(y);function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var O=function(t,e,r,n,o){if("function"!=typeof t)return e(t);var u=t.apply(void 0,d(n));return"function"==typeof u?u(e,r,o):e(u)},h=function(t,e){var r=e.initialState,n=e.init,o=void 0===n?b.a:n,u=e.actions,c=void 0===u?{}:u,a=e.extraArgument,f=s(Object(p.useReducer)(t,r,o),2),l=f[0],d=f[1],y=Object(p.useRef)();y.current=l;var h=Object(p.useRef)();if(h.current)return[l,h.current];var j=function(){return y.current};return h.current=Object.keys(c).reduce((function(t,e){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t,i({},e,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(c[e],d,j,r,a)})))}),{dispatch:d}),[l,h.current]},j="initialize",g="update",P="updateBatch",m="reset",x="resetPristine",_="resetPristineKey",w="startFetch",S="doneFetch",R="failFetch",A="startProcess",D="doneProcess";function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var C=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.merge;return function(e,n){return e(r?{type:j,values:I({},n(),{},t)}:{type:j,values:t})}},k=function(t,e){return{type:g,attr:t,value:e}},z=function(t){return{type:P,values:t}},F=function(t){var e=t.target;return k(e.name,e.value)},M={type:m},T={type:x},K=function(t){return{type:_,attr:t}},B={type:w},U=function(t){return{type:S,values:t}},$={type:R},L={type:A},q={type:D},N=r(6),V=function(){return[Object(N.createContext)({}),Object(N.createContext)({})]};function W(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var H=function(t){var e=t.getInitialState,r=t.defaultInitialState;return e&&"function"==typeof e?function(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?W(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r,{},e())}:function(){return r}},G=r(4),J=r.n(G),Q=r(5),X=r.n(Q);function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var tt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pristine",e=function(){return i({},t,{})},r=function(e,r){return!!e[t]&&e[t].hasOwnProperty(r)},n=function(e,r){return Z({},e,i({},t,Z({},e[t],i({},r,e[r]))))},o=function(n,o){return o?r(n,o)?(delete n[t][o],Z({},n,i({},t,Z({},n[t])))):n:Z({},n,{},e())};return{updatePristine:function(e,u,c){var i=r(e,u);return i||X()(c,e[u])?i&&X()(c,e[t][u])?o(e,u):e:n(e,u)},removePristine:o,getInitialPristineState:e}};function et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function rt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?et(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var nt=function(t,e,r){return Array.isArray(r)?function(t,e,r){return r.reduce((function(e,r){var n=r.attr,o=r.value;return rt({},e,{},t(e,n,o))}),e)}(t,e,r):function(t,e,r){return Object.keys(r).reduce((function(e,n){return rt({},e,{},t(e,n,r[n]))}),e)}(t,e,r)},ot=function(t){return function(e,r){return t.hasOwnProperty(r.type)?t[r.type](e,r):e}};function ut(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var it=function(t,e){var r,n=tt("pristine"),o=n.getInitialPristineState,u=n.updatePristine,c=n.removePristine,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct({},t(),{},e,{},o())},f=function(e,r,n){return n=function(e,r){return J()(r)?t()[e]:r}(r,n),ct({},e=u(e,r,n),i({},r,n))},s=ct((i(r={},j,(function(t,e){return a(e.values)})),i(r,g,(function(t,e){return f(t,e.attr,e.value)})),i(r,P,(function(t,e){return nt(f,t,e.values)})),i(r,m,(function(t,e){return a()})),i(r,x,(function(t,e){return c(t)})),i(r,_,(function(t,e){return c(t,e.attr)})),i(r,A,(function(t,e){return ct({},t,{processing:!0})})),i(r,D,(function(t,e){return ct({},t,{processing:!1})})),i(r,w,(function(t,e){return ct({},t,{loading:!0})})),i(r,S,(function(t,e){return a(ct({},e.values,{loading:!1,loaded:!0}))})),i(r,R,(function(t,e){return ct({},t,{loading:!1})})),r),e);return{reducer:ot(s),init:a}},at=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.a,r=Object(p.useRef)();return Object(N.useContextSelector)(t,(function(t){var n=e(t);return X()(r.current,n)||(r.current=n),r.current}))},ft=function(t){return function(e){return e.byId[t]}},st=function(t,e){return{useSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.a;return at(t,e)},useResourceSelector:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.a,n=Object(p.useCallback)((function(t){return r(ft(e)(t))}),[e]);return at(t,n)},useAction:function(t){var r=Object(p.useMemo)((function(){return t?function(e){return e[t]}:b.a}),[t]);return at(e,r)}}};function pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var lt=function(t){return function(e){return t?e.updateResource:e.update}},dt=function(t,e){return function(r){var n=r.fieldKey,o=r.resourceId,u=r.getUpdate,c=void 0===u?lt:u,a=r.select,f=void 0===a?o?ft:b.a:a,l=Object(p.useCallback)((function(t){var e=o?f(o)(t):f(t);return[e[n],e.errors]}),[o,n]),d=s(at(t,l),2),y=d[0],v=d[1],O=Object(p.useCallback)((function(t){var e=c(o)(t);if("function"!=typeof e)throw new Error("useMember expects an 'update' dispatch function");return o?function(t,r){return e(o,t,r)}:e}),[o]),h=at(e,O);return[y,Object(p.useCallback)((function(t){return h(n,t)}),[h,n]),v[n],Object(p.useCallback)((function(t){return h("errors",function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pt(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},v,i({},n,t)))}),[h,v])]}},yt=function(t,e){var r=dt(t,e);return function(t){var e=t.fieldKey,n=t.resourceId,o=t.uniq,u=t.getUpdate,c=t.select,i=s(r({fieldKey:e,resourceId:n,getUpdate:u,select:c}),4),a=i[0],f=i[1],l=i[2],y=i[3],v=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?function(t){return d(new Set(t))}:b.a}(o),O=Object(p.useCallback)((function(t){t<0||t>=a.length||f(v([].concat(d(a.slice(0,t)),d(a.slice(t+1)))))}),[a]),h=Object(p.useCallback)((function(t,e){t<0||t>=a.length||f(v([].concat(d(a.slice(0,t)),[e],d(a.slice(t+1)))))}),[a]),j=Object(p.useCallback)((function(t,e){t<0||f(v([].concat(d(a.slice(0,t)),[e],d(a.slice(t)))))}),[a]),g=Object(p.useCallback)((function(t){return j(a.length,t)}),[a]),P=Object(p.useCallback)((function(t,e){if(!(t<0||t>=a.length||e<0||e>=a.length)){var r=d(a),n=s(r.splice(t,1),1)[0];r.splice(e,0,n),f(v(r))}}),[a]);return{collection:a,set:f,add:j,push:g,edit:h,remove:O,reorder:P,error:l,setError:y}}};function bt(){return(bt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function vt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},u=Object.keys(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ot=function(t){return t.target.value},ht=function(t){return t.target.checked},jt=function(t){var e=function(e){var r=e.Component,n=void 0===r?"input":r,o=e.fieldKey,u=e.select,c=e.resourceId,a=(e.getUpdate,e.onChange),f=void 0===a?b.a:a,p=vt(e,["Component","fieldKey","select","resourceId","getUpdate","onChange"]),d=s(t({fieldKey:o,select:u,resourceId:c}),3),y=d[0],v=d[1],O=d[2];return l.a.createElement(n,bt(i({name:o,"data-testid":o,onChange:function(){return v(f.apply(void 0,arguments))},value:y,error:O},"name",o),p))};return{Select:function(t){var r=t.Component,n=void 0===r?"select":r,o=t.onChange,u=void 0===o?Ot:o,c=t.options,i=void 0===c?[]:c,a=vt(t,["Component","onChange","options"]);return(l.a.createElement(e,bt({Component:n,onChange:u,options:i},a)))},Checkbox:function(t){var r=t.type,n=void 0===r?"checkbox":r,o=t.onChange,u=void 0===o?ht:o,c=vt(t,["type","onChange"]);return(l.a.createElement(e,bt({type:n,onChange:u},c)))},Input:function(t){var r=t.onChange,n=void 0===r?Ot:r,o=vt(t,["onChange"]);return(l.a.createElement(e,bt({type:"text",onChange:n},o)))}}},gt=function(t,e){return{useSelector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.a;return at(t,e)},useAction:function(t){var r=Object(p.useMemo)((function(){return t?function(e){return e[t]}:b.a}),[t]);return at(e,r)}}},Pt={loading:!0,loaded:!1,processing:!1,errors:{}};function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.getInitialState,n=e.reducer,u=e.actions,c=H({getInitialState:r,defaultInitialState:Pt}),i=it(c,n),a=i.reducer,f=i.init,p=V(),d=s(p,2),y=d[0],b=d[1],v=dt(y,b),O=yt(y,b),j=jt(v),g=gt(y,b),P=g.useSelector,m=g.useAction,x=function(t){var e=t.children,r=t.initialState,n=t.extraArgument,c=s(h(a,{initialState:r,init:f,actions:xt({},o,{},u),extraArgument:n}),2),i=c[0],p=c[1];return l.a.createElement(b.Provider,{value:p},l.a.createElement(y.Provider,{value:i},e))};return x.displayName=t,{Provider:x,useMember:v,useCollection:O,useSelector:P,useAction:m,Field:j,getInitialState:c}},wt={loading:!0,loaded:!1,processing:!1,byId:{},ids:[]},St={loading:!0,loaded:!1,processing:!1,errors:{}},Rt="initializeResource",At="updateResource",Dt="updateBatchResource",Et="removeResource",It="resetResource",Ct="resetPristineResource",kt="resetPristineKeyResource",zt="startFetchResource",Ft="doneFetchResource",Mt="failFetchResource",Tt="startProcessResource",Kt="doneProcessResource",Bt=function(t,e){return{type:Rt,id:t,values:e}},Ut=function(t,e,r){return{type:At,id:t,attr:e,value:r}},$t=function(t,e){return{type:Dt,id:t,values:e}},Lt=function(t,e){var r=e.target;return Ut(t,r.name,r.value)},qt=function(t){return{type:Et,id:t}},Nt=function(t){return{type:It,id:t}},Vt=function(t){return{type:Ct,id:t}},Wt=function(t,e){return{type:kt,id:t,attr:e}},Ht=function(t){return{type:zt,id:t}},Gt=function(t,e){return{type:Ft,id:t,values:e}},Jt=function(t){return{type:Mt,id:t}},Qt=function(t){return{type:Tt,id:t}},Xt=function(t){return{type:Kt,id:t}};function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var te=function(t){var e,r=t.getInitialState,n=t.customReducer,o=void 0===n?{}:n,c=t.resourceReducer,a=void 0===c?{}:c,f=t.initResource,s=t.customResourceActionTypes,p=void 0===s?{}:s,l=t.idKey,y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Zt({},r(),{},t)},b=function(t,e,r){var n=t.byId[e]||f();return a(n,Zt(i({},l,e),r))},v=function(t,e,n){return Zt({},t,i({},e,n=function(t,e){return J()(e)?r()[t]:e}(e,n)))},O=function(t,e){var r=e.id,n=vt(e,["id"]),o=b(t,r,n),u=t.byId.hasOwnProperty(r)?t.ids:[].concat(d(t.ids),[r]);return Zt({},t,{byId:Zt({},t.byId,i({},r,o)),ids:u})},h=Zt((i(e={},j,(function(t,e){return y(e.values)})),i(e,g,(function(t,e){return v(t,e.attr,e.value)})),i(e,P,(function(t,e){return nt(v,t,e.values)})),i(e,m,(function(t,e){return y()})),i(e,A,(function(t,e){return Zt({},t,{processing:!0})})),i(e,D,(function(t,e){return Zt({},t,{processing:!1})})),i(e,w,(function(t,e){return Zt({},t,{loading:!0})})),i(e,S,(function(t,e){return function(t,e){var r=[],n=e.reduce((function(e,n){return r.push(n[l]),Zt({},e,i({},n[l],b(t,n[l],{type:Rt,values:n})))}),{});return Zt({},t,{byId:Zt({},t.byId,{},n),ids:d(new Set([].concat(d(t.ids),r))),loading:!1,loaded:!0})}(t,e.values)})),i(e,R,(function(t,e){return Zt({},t,{loading:!1})})),e),Object.keys(Zt({},u,{},p)).reduce((function(t,e){return Zt({},t,i({},e,O))}),{}),i({},Et,(function(t,e){return function(t,e){var r=Zt({},t.byId);delete r[e];var n=t.ids.filter((function(t){return t!==e}));return Zt({},t,{byId:r,ids:n})}(t,e.id)})),o);return{reducer:ot(h),init:y}};function ee(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ne=function(t,e,r){var n,o=tt("pristine"),u=o.getInitialPristineState,c=o.updatePristine,a=o.removePristine,f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return re(i({},r,e),t(),{},n,{},u())},s=function(e,r,n){return n=function(e,r){return J()(r)?t()[e]:r}(r,n),re({},e=c(e,r,n),i({},r,n))},p=re((i(n={},Rt,(function(t,e){return f(e.id,e.values)})),i(n,At,(function(t,e){return s(t,e.attr,e.value)})),i(n,Dt,(function(t,e){return nt(s,t,e.values)})),i(n,It,(function(t,e){return f(e.id)})),i(n,Ct,(function(t,e){return a(t)})),i(n,kt,(function(t,e){return a(t,e.attr)})),i(n,Tt,(function(t,e){return re({},t,{processing:!0})})),i(n,Kt,(function(t,e){return re({},t,{processing:!1})})),i(n,zt,(function(t,e){return re({},t,{loading:!0})})),i(n,Ft,(function(t,e){return f(e.id,re({},e.values,{loading:!1,loaded:!0}))})),i(n,Mt,(function(t,e){return re({},t,{loading:!1})})),n),e);return{reducer:ot(p),init:f}};function oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ce=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.getInitialState,n=e.reducer,u=e.actions,i=e.resourceOptions,a=void 0===i?{}:i,f=e.idKey,p=void 0===f?"id":f,d=H({getInitialState:r,defaultInitialState:wt}),y=H({getInitialState:a.getInitialState,defaultInitialState:St}),b=ne(y,a.reducer,p),v=b.reducer,O=b.init,j=te({getInitialState:d,customReducer:n,resourceReducer:v,customResourceActionTypes:a.actionTypes,initResource:O,idKey:p}),g=j.reducer,P=j.init,m=V(),x=s(m,2),_=x[0],w=x[1],S=yt(_,w),R=dt(_,w),A=jt(R),D=st(_,w),E=D.useSelector,I=D.useAction,C=D.useResourceSelector,k=function(t){var e=t.children,r=t.initialState,n=t.extraArgument,i=s(h(g,{initialState:r,init:P,actions:ue({},o,{},c,{},u),extraArgument:n}),2),a=i[0],f=i[1];return l.a.createElement(w.Provider,{value:f},l.a.createElement(_.Provider,{value:a},e))};return k.displayName=t,{Provider:k,useCollection:S,useMember:R,useSelector:E,useAction:I,useResourceSelector:C,Field:A,getInitialState:d,getInitialResourceState:y}}}])})); |
@@ -66,3 +66,3 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
var _makeResourceReducer = makeResourceReducer(getInitialResourceState, resourceOptions.reducer), | ||
var _makeResourceReducer = makeResourceReducer(getInitialResourceState, resourceOptions.reducer, idKey), | ||
resourceReducer = _makeResourceReducer.reducer, | ||
@@ -69,0 +69,0 @@ initResource = _makeResourceReducer.init; |
@@ -48,3 +48,3 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
var prevResource = state.byId[id] || initResource(); | ||
return resourceReducer(prevResource, _objectSpread(_defineProperty({}, idKey, id), payload), idKey); | ||
return resourceReducer(prevResource, _objectSpread(_defineProperty({}, idKey, id), payload)); | ||
}; | ||
@@ -51,0 +51,0 @@ |
@@ -91,3 +91,3 @@ "use strict"; | ||
var _makeResourceReducer = (0, _makeReducer3["default"])(getInitialResourceState, resourceOptions.reducer), | ||
var _makeResourceReducer = (0, _makeReducer3["default"])(getInitialResourceState, resourceOptions.reducer, idKey), | ||
resourceReducer = _makeResourceReducer.reducer, | ||
@@ -94,0 +94,0 @@ initResource = _makeResourceReducer.init; |
@@ -65,3 +65,3 @@ "use strict"; | ||
var prevResource = state.byId[id] || initResource(); | ||
return resourceReducer(prevResource, _objectSpread((0, _defineProperty2["default"])({}, idKey, id), payload), idKey); | ||
return resourceReducer(prevResource, _objectSpread((0, _defineProperty2["default"])({}, idKey, id), payload)); | ||
}; | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "react-hoax", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Idiomatic resourceful context", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -63,3 +63,4 @@ import React from "react"; | ||
getInitialResourceState, | ||
resourceOptions.reducer | ||
resourceOptions.reducer, | ||
idKey | ||
); | ||
@@ -66,0 +67,0 @@ const { reducer, init } = makeReducer({ |
@@ -36,3 +36,3 @@ import * as actionTypes from "../actionTypes"; | ||
const prevResource = state.byId[id] || initResource(); | ||
return resourceReducer(prevResource, { [idKey]: id, ...payload }, idKey); | ||
return resourceReducer(prevResource, { [idKey]: id, ...payload }); | ||
}; | ||
@@ -39,0 +39,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
328246
7299