-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from bombastictranz/main
Stock-control-supervisors/KRAKEN-PRO-
- Loading branch information
Showing
4 changed files
with
4 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4993],{14993:function(e,r,t){t.d(r,{gN:function(){return z},l0:function(){return Y},J9:function(){return H},U$:function(){return K},TA:function(){return Z},u6:function(){return V}});var n=t(67294),a=t(69590),i=t.n(a),u=function(e){var r;return!!e&&"object"==typeof e&&"[object RegExp]"!==(r=Object.prototype.toString.call(e))&&"[object Date]"!==r&&e.$$typeof!==o},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,r){return!1!==r.clone&&r.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,r):e}function c(e,r,t){return e.concat(r).map(function(e){return l(e,t)})}function s(e,r,t){(t=t||{}).arrayMerge=t.arrayMerge||c,t.isMergeableObject=t.isMergeableObject||u;var n,a,i=Array.isArray(r);return i!==Array.isArray(e)?l(r,t):i?t.arrayMerge(e,r,t):(a={},(n=t).isMergeableObject(e)&&Object.keys(e).forEach(function(r){a[r]=l(e[r],n)}),Object.keys(r).forEach(function(t){n.isMergeableObject(r[t])&&e[t]?a[t]=s(e[t],r[t],n):a[t]=l(r[t],n)}),a)}s.all=function(e,r){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,t){return s(e,t,r)},{})};var f=s,d=t(63914),v=t(93553),p=function(e){return(0,v.Z)(e,4)},h=t(83311),y=t(91924),m=t(39557),E=t(52661),S=t(43920),b=t(61701),g=t(31406),T=function(e){return(0,m.Z)(e)?(0,h.Z)(e,b.Z):(0,E.Z)(e)?[e]:(0,y.Z)((0,S.Z)((0,g.Z)(e)))},A=function(e,r){};t(8679);var _=t(69340);function O(){return(O=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function R(e,r){if(null==e)return{};var t,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}function F(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var I=function(e){return Array.isArray(e)&&0===e.length},C=function(e){return"function"==typeof e},k=function(e){return null!==e&&"object"==typeof e},M=function(e){return"[object String]"===Object.prototype.toString.call(e)},D=function(e){return 0===n.Children.count(e)},P=function(e){return k(e)&&C(e.then)};function w(e,r,t,n){void 0===n&&(n=0);for(var a=T(r);e&&n<a.length;)e=e[a[n++]];return void 0===e?t:e}function U(e,r,t){for(var n=p(e),a=n,i=0,u=T(r);i<u.length-1;i++){var o=u[i],l=w(e,u.slice(0,i+1));if(l&&(k(l)||Array.isArray(l)))a=a[o]=p(l);else{var c=u[i+1];a=a[o]=String(Math.floor(Number(c)))===c&&Number(c)>=0?[]:{}}}return(0===i?e:a)[u[i]]===t?e:(void 0===t?delete a[u[i]]:a[u[i]]=t,0===i&&void 0===t&&delete n[u[i]],n)}var j=(0,n.createContext)(void 0);j.displayName="FormikContext";var L=j.Provider;function V(){var e=(0,n.useContext)(j);return e||A(!1),e}function N(e,r){switch(r.type){case"SET_VALUES":return O({},e,{values:r.payload});case"SET_TOUCHED":return O({},e,{touched:r.payload});case"SET_ERRORS":if(i()(e.errors,r.payload))return e;return O({},e,{errors:r.payload});case"SET_STATUS":return O({},e,{status:r.payload});case"SET_ISSUBMITTING":return O({},e,{isSubmitting:r.payload});case"SET_ISVALIDATING":return O({},e,{isValidating:r.payload});case"SET_FIELD_VALUE":return O({},e,{values:U(e.values,r.payload.field,r.payload.value)});case"SET_FIELD_TOUCHED":return O({},e,{touched:U(e.touched,r.payload.field,r.payload.value)});case"SET_FIELD_ERROR":return O({},e,{errors:U(e.errors,r.payload.field,r.payload.value)});case"RESET_FORM":return O({},e,r.payload);case"SET_FORMIK_STATE":return r.payload(e);case"SUBMIT_ATTEMPT":return O({},e,{touched:function e(r,t,n,a){void 0===n&&(n=new WeakMap),void 0===a&&(a={});for(var i=0,u=Object.keys(r);i<u.length;i++){var o=u[i],l=r[o];k(l)?n.get(l)||(n.set(l,!0),a[o]=Array.isArray(l)?[]:{},e(l,t,n,a[o])):a[o]=t}return a}(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return O({},e,{isSubmitting:!1});default:return e}}j.Consumer;var B={},x={};function Z(e){var r=e.validateOnChange,t=void 0===r||r,a=e.validateOnBlur,u=void 0===a||a,o=e.validateOnMount,l=void 0!==o&&o,c=e.isInitialValid,s=e.enableReinitialize,v=void 0!==s&&s,p=e.onSubmit,h=O({validateOnChange:t,validateOnBlur:u,validateOnMount:l,onSubmit:p},R(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"])),y=(0,n.useRef)(h.initialValues),m=(0,n.useRef)(h.initialErrors||B),E=(0,n.useRef)(h.initialTouched||x),S=(0,n.useRef)(h.initialStatus),b=(0,n.useRef)(!1),g=(0,n.useRef)({});(0,n.useEffect)(function(){return b.current=!0,function(){b.current=!1}},[]);var T=(0,n.useReducer)(N,{values:h.initialValues,errors:h.initialErrors||B,touched:h.initialTouched||x,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),A=T[0],_=T[1],F=(0,n.useCallback)(function(e,r){return new Promise(function(t,n){var a=h.validate(e,r);null==a?t(B):P(a)?a.then(function(e){t(e||B)},function(e){n(e)}):t(a)})},[h.validate]),I=(0,n.useCallback)(function(e,r){var t,n,a,i=h.validationSchema,u=C(i)?i(r):i,o=r&&u.validateAt?u.validateAt(r,e):(void 0===t&&(t=!1),void 0===n&&(n={}),a=function e(r){var t=Array.isArray(r)?[]:{};for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=String(n);!0===Array.isArray(r[a])?t[a]=r[a].map(function(r){return!0===Array.isArray(r)||(0,d.Z)(r)?e(r):""!==r?r:void 0}):(0,d.Z)(r[a])?t[a]=e(r[a]):t[a]=""!==r[a]?r[a]:void 0}return t}(e),u[t?"validateSync":"validate"](a,{abortEarly:!1,context:n}));return new Promise(function(e,r){o.then(function(){e(B)},function(t){"ValidationError"===t.name?e(function(e){var r={};if(e.inner){if(0===e.inner.length)return U(r,e.path,e.message);for(var t=e.inner,n=Array.isArray(t),a=0,t=n?t:t[Symbol.iterator]();;){if(n){if(a>=t.length)break;i=t[a++]}else{if((a=t.next()).done)break;i=a.value}var i,u=i;w(r,u.path)||(r=U(r,u.path,u.message))}}return r}(t)):r(t)})})},[h.validationSchema]),D=(0,n.useCallback)(function(e,r){return new Promise(function(t){return t(g.current[e].validate(r))})},[]),j=(0,n.useCallback)(function(e){var r=Object.keys(g.current).filter(function(e){return C(g.current[e].validate)});return Promise.all(r.length>0?r.map(function(r){return D(r,w(e,r))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,t,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===t||t&&(e=U(e,r[n],t)),e},{})})},[D]),L=(0,n.useCallback)(function(e){return Promise.all([j(e),h.validationSchema?I(e):{},h.validate?F(e):{}]).then(function(e){var r=e[0],t=e[1],n=e[2];return f.all([r,t,n],{arrayMerge:G})})},[h.validate,h.validationSchema,j,F,I]),V=$(function(e){return void 0===e&&(e=A.values),_({type:"SET_ISVALIDATING",payload:!0}),L(e).then(function(e){return b.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e})});(0,n.useEffect)(function(){l&&!0===b.current&&i()(y.current,h.initialValues)&&V(y.current)},[l,V]);var Z=(0,n.useCallback)(function(e){var r=e&&e.values?e.values:y.current,t=e&&e.errors?e.errors:m.current?m.current:h.initialErrors||{},n=e&&e.touched?e.touched:E.current?E.current:h.initialTouched||{},a=e&&e.status?e.status:S.current?S.current:h.initialStatus;y.current=r,m.current=t,E.current=n,S.current=a;var i=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:t,touched:n,status:a,values:r,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var u=h.onReset(A.values,ec);P(u)?u.then(i):i()}else i()},[h.initialErrors,h.initialStatus,h.initialTouched]);(0,n.useEffect)(function(){!0===b.current&&!i()(y.current,h.initialValues)&&(v&&(y.current=h.initialValues,Z()),l&&V(y.current))},[v,h.initialValues,Z,l,V]),(0,n.useEffect)(function(){v&&!0===b.current&&!i()(m.current,h.initialErrors)&&(m.current=h.initialErrors||B,_({type:"SET_ERRORS",payload:h.initialErrors||B}))},[v,h.initialErrors]),(0,n.useEffect)(function(){v&&!0===b.current&&!i()(E.current,h.initialTouched)&&(E.current=h.initialTouched||x,_({type:"SET_TOUCHED",payload:h.initialTouched||x}))},[v,h.initialTouched]),(0,n.useEffect)(function(){v&&!0===b.current&&!i()(S.current,h.initialStatus)&&(S.current=h.initialStatus,_({type:"SET_STATUS",payload:h.initialStatus}))},[v,h.initialStatus,h.initialTouched]);var H=$(function(e){if(g.current[e]&&C(g.current[e].validate)){var r=w(A.values,e),t=g.current[e].validate(r);return P(t)?(_({type:"SET_ISVALIDATING",payload:!0}),t.then(function(e){return e}).then(function(r){_({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),_({type:"SET_ISVALIDATING",payload:!1})})):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),Promise.resolve(t))}return h.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),I(A.values,e).then(function(e){return e}).then(function(r){_({type:"SET_FIELD_ERROR",payload:{field:e,value:r[e]}}),_({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),W=(0,n.useCallback)(function(e,r){var t=r.validate;g.current[e]={validate:t}},[]),K=(0,n.useCallback)(function(e){delete g.current[e]},[]),z=$(function(e,r){return _({type:"SET_TOUCHED",payload:e}),(void 0===r?u:r)?V(A.values):Promise.resolve()}),Y=(0,n.useCallback)(function(e){_({type:"SET_ERRORS",payload:e})},[]),J=$(function(e,r){var n=C(e)?e(A.values):e;return _({type:"SET_VALUES",payload:n}),(void 0===r?t:r)?V(n):Promise.resolve()}),q=(0,n.useCallback)(function(e,r){_({type:"SET_FIELD_ERROR",payload:{field:e,value:r}})},[]),Q=$(function(e,r,n){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:r}}),(void 0===n?t:n)?V(U(A.values,e,r)):Promise.resolve()}),X=(0,n.useCallback)(function(e,r){var t,n=r,a=e;if(!M(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,u=i.type,o=i.name,l=i.id,c=i.value,s=i.checked,f=(i.outerHTML,i.options),d=i.multiple;n=r||o||l,a=/number|range/.test(u)?isNaN(t=parseFloat(c))?"":t:/checkbox/.test(u)?function(e,r,t){if("boolean"==typeof e)return!!r;var n=[],a=!1,i=-1;if(Array.isArray(e))n=e,a=(i=e.indexOf(t))>=0;else if(!t||"true"==t||"false"==t)return!!r;return r&&t&&!a?n.concat(t):a?n.slice(0,i).concat(n.slice(i+1)):n}(w(A.values,n),s,c):f&&d?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):c}n&&Q(n,a)},[Q,A.values]),ee=$(function(e){if(M(e))return function(r){return X(r,e)};X(e)}),er=$(function(e,r,t){return void 0===r&&(r=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:r}}),(void 0===t?u:t)?V(A.values):Promise.resolve()}),et=(0,n.useCallback)(function(e,r){e.persist&&e.persist();var t=e.target,n=t.name,a=t.id;t.outerHTML,er(r||n||a,!0)},[er]),en=$(function(e){if(M(e))return function(r){return et(r,e)};et(e)}),ea=(0,n.useCallback)(function(e){C(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),ei=(0,n.useCallback)(function(e){_({type:"SET_STATUS",payload:e})},[]),eu=(0,n.useCallback)(function(e){_({type:"SET_ISSUBMITTING",payload:e})},[]),eo=$(function(){return _({type:"SUBMIT_ATTEMPT"}),V().then(function(e){var r,t=e instanceof Error;if(!t&&0===Object.keys(e).length){try{if(r=es(),void 0===r)return}catch(e){throw e}return Promise.resolve(r).then(function(e){return b.current&&_({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw _({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(_({type:"SUBMIT_FAILURE"}),t))throw e})}),el=$(function(e){e&&e.preventDefault&&C(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&C(e.stopPropagation)&&e.stopPropagation(),eo().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),ec={resetForm:Z,validateForm:V,validateField:H,setErrors:Y,setFieldError:q,setFieldTouched:er,setFieldValue:Q,setStatus:ei,setSubmitting:eu,setTouched:z,setValues:J,setFormikState:ea,submitForm:eo},es=$(function(){return p(A.values,ec)}),ef=$(function(e){e&&e.preventDefault&&C(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&C(e.stopPropagation)&&e.stopPropagation(),Z()}),ed=(0,n.useCallback)(function(e){return{value:w(A.values,e),error:w(A.errors,e),touched:!!w(A.touched,e),initialValue:w(y.current,e),initialTouched:!!w(E.current,e),initialError:w(m.current,e)}},[A.errors,A.touched,A.values]),ev=(0,n.useCallback)(function(e){return{setValue:function(r,t){return Q(e,r,t)},setTouched:function(r,t){return er(e,r,t)},setError:function(r){return q(e,r)}}},[Q,er,q]),ep=(0,n.useCallback)(function(e){var r=k(e),t=r?e.name:e,n=w(A.values,t),a={name:t,value:n,onChange:ee,onBlur:en};if(r){var i=e.type,u=e.value,o=e.as,l=e.multiple;"checkbox"===i?void 0===u?a.checked=!!n:(a.checked=!!(Array.isArray(n)&&~n.indexOf(u)),a.value=u):"radio"===i?(a.checked=n===u,a.value=u):"select"===o&&l&&(a.value=a.value||[],a.multiple=!0)}return a},[en,ee,A.values]),eh=(0,n.useMemo)(function(){return!i()(y.current,A.values)},[y.current,A.values]),ey=(0,n.useMemo)(function(){return void 0!==c?eh?A.errors&&0===Object.keys(A.errors).length:!1!==c&&C(c)?c(h):c:A.errors&&0===Object.keys(A.errors).length},[c,eh,A.errors,h]);return O({},A,{initialValues:y.current,initialErrors:m.current,initialTouched:E.current,initialStatus:S.current,handleBlur:en,handleChange:ee,handleReset:ef,handleSubmit:el,resetForm:Z,setErrors:Y,setFormikState:ea,setFieldTouched:er,setFieldValue:Q,setFieldError:q,setStatus:ei,setSubmitting:eu,setTouched:z,setValues:J,submitForm:eo,validateForm:V,validateField:H,isValid:ey,dirty:eh,unregisterField:K,registerField:W,getFieldProps:ep,getFieldMeta:ed,getFieldHelpers:ev,validateOnBlur:u,validateOnChange:t,validateOnMount:l})}function H(e){var r=Z(e),t=e.component,a=e.children,i=e.render,u=e.innerRef;return(0,n.useImperativeHandle)(u,function(){return r}),(0,n.createElement)(L,{value:r},t?(0,n.createElement)(t,r):i?i(r):a?C(a)?a(r):D(a)?null:n.Children.only(a):null)}function G(e,r,t){var n=e.slice();return r.forEach(function(r,a){if(void 0===n[a]){var i=!1!==t.clone&&t.isMergeableObject(r);n[a]=i?f(Array.isArray(r)?[]:{},r,t):r}else t.isMergeableObject(r)?n[a]=f(e[a],r,t):-1===e.indexOf(r)&&n.push(r)}),n}var W="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function $(e){var r=(0,n.useRef)(e);return W(function(){r.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.current.apply(void 0,t)},[])}function K(e){var r=V(),t=r.getFieldProps,a=r.getFieldMeta,i=r.getFieldHelpers,u=r.registerField,o=r.unregisterField,l=k(e)?e:{name:e},c=l.name,s=l.validate;return(0,n.useEffect)(function(){return c&&u(c,{validate:s}),function(){c&&o(c)}},[u,o,c,s]),c||A(!1),[t(l),a(c),i(c)]}function z(e){var r=e.validate,t=e.name,a=e.render,i=e.children,u=e.as,o=e.component,l=R(e,["validate","name","render","children","as","component"]),c=R(V(),["validate","validationSchema"]),s=c.registerField,f=c.unregisterField;(0,n.useEffect)(function(){return s(t,{validate:r}),function(){f(t)}},[s,f,t,r]);var d=c.getFieldProps(O({name:t},l)),v=c.getFieldMeta(t),p={field:d,form:c};if(a)return a(O({},p,{meta:v}));if(C(i))return i(O({},p,{meta:v}));if(o){if("string"==typeof o){var h=l.innerRef,y=R(l,["innerRef"]);return(0,n.createElement)(o,O({ref:h},d,y),i)}return(0,n.createElement)(o,O({field:d,form:c},l),i)}var m=u||"input";if("string"==typeof m){var E=l.innerRef,S=R(l,["innerRef"]);return(0,n.createElement)(m,O({ref:E},d,S),i)}return(0,n.createElement)(m,O({},d,l),i)}var Y=(0,n.forwardRef)(function(e,r){var t=e.action,a=R(e,["action"]),i=V(),u=i.handleReset,o=i.handleSubmit;return(0,n.createElement)("form",Object.assign({onSubmit:o,ref:r,onReset:u,action:null!=t?t:"#"},a))});Y.displayName="Form";var J=function(e,r,t){var n=ee(e),a=n[r];return n.splice(r,1),n.splice(t,0,a),n},q=function(e,r,t){var n=ee(e),a=n[r];return n[r]=n[t],n[t]=a,n},Q=function(e,r,t){var n=ee(e);return n.splice(r,0,t),n},X=function(e,r,t){var n=ee(e);return n[r]=t,n},ee=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var r=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,r){return r>e?r:e},0);return Array.from(O({},e,{length:r+1}))};(function(e){function r(r){var t;return(t=e.call(this,r)||this).updateArrayField=function(e,r,n){var a=t.props,i=a.name;(0,a.formik.setFormikState)(function(t){var a=U(t.values,i,e(w(t.values,i))),u=n?("function"==typeof n?n:e)(w(t.errors,i)):void 0,o=r?("function"==typeof r?r:e)(w(t.touched,i)):void 0;return I(u)&&(u=void 0),I(o)&&(o=void 0),O({},t,{values:a,errors:n?U(t.errors,i,u):t.errors,touched:r?U(t.touched,i,o):t.touched})})},t.push=function(e){return t.updateArrayField(function(r){return[].concat(ee(r),[(0,_.Z)(e)])},!1,!1)},t.handlePush=function(e){return function(){return t.push(e)}},t.swap=function(e,r){return t.updateArrayField(function(t){return q(t,e,r)},!0,!0)},t.handleSwap=function(e,r){return function(){return t.swap(e,r)}},t.move=function(e,r){return t.updateArrayField(function(t){return J(t,e,r)},!0,!0)},t.handleMove=function(e,r){return function(){return t.move(e,r)}},t.insert=function(e,r){return t.updateArrayField(function(t){return Q(t,e,r)},function(r){return Q(r,e,null)},function(r){return Q(r,e,null)})},t.handleInsert=function(e,r){return function(){return t.insert(e,r)}},t.replace=function(e,r){return t.updateArrayField(function(t){return X(t,e,r)},!1,!1)},t.handleReplace=function(e,r){return function(){return t.replace(e,r)}},t.unshift=function(e){var r=-1;return t.updateArrayField(function(t){var n=t?[e].concat(t):[e];return r<0&&(r=n.length),n},function(e){var t=e?[null].concat(e):[null];return r<0&&(r=t.length),t},function(e){var t=e?[null].concat(e):[null];return r<0&&(r=t.length),t}),r},t.handleUnshift=function(e){return function(){return t.unshift(e)}},t.handleRemove=function(e){return function(){return t.remove(e)}},t.handlePop=function(){return function(){return t.pop()}},t.remove=t.remove.bind(F(t)),t.pop=t.pop.bind(F(t)),t}(t=r).prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var t,a=r.prototype;return a.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!i()(w(e.formik.values,e.name),w(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},a.remove=function(e){var r;return this.updateArrayField(function(t){var n=t?ee(t):[];return r||(r=n[e]),C(n.splice)&&n.splice(e,1),n},!0,!0),r},a.pop=function(){var e;return this.updateArrayField(function(r){return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},a.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},r=this.props,t=r.component,a=r.render,i=r.children,u=r.name,o=O({},e,{form:R(r.formik,["validate","validationSchema"]),name:u});return t?(0,n.createElement)(t,o):a?a(o):i?"function"==typeof i?i(o):D(i)?null:n.Children.only(i):null},r})(n.Component).defaultProps={validateOnChange:!0},n.Component,n.Component},69590:function(e){var r=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,i){try{return function e(i,u){if(i===u)return!0;if(i&&u&&"object"==typeof i&&"object"==typeof u){var o,l,c,s=r(i),f=r(u);if(s&&f){if((l=i.length)!=u.length)return!1;for(o=l;0!=o--;)if(!e(i[o],u[o]))return!1;return!0}if(s!=f)return!1;var d=i instanceof Date,v=u instanceof Date;if(d!=v)return!1;if(d&&v)return i.getTime()==u.getTime();var p=i instanceof RegExp,h=u instanceof RegExp;if(p!=h)return!1;if(p&&h)return i.toString()==u.toString();var y=t(i);if((l=y.length)!==t(u).length)return!1;for(o=l;0!=o--;)if(!n.call(u,y[o]))return!1;if(a&&i instanceof Element&&u instanceof Element)return i===u;for(o=l;0!=o--;)if(("_owner"!==(c=y[o])||!i.$$typeof)&&!e(i[c],u[c]))return!1;return!0}return i!=i&&u!=u}(e,i)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}}}]); |
Oops, something went wrong.