@circle-vibe/shared 1.0.2 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './src/constants';
5
5
  export * from './src/hooks';
6
6
  export * from './src/types';
7
7
  export * from './src/utils';
8
+ export * from './src/models';
package/build/index.js CHANGED
@@ -1 +1,2 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var n="object"==typeof exports?t(require("react")):t(e.react);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(e=>(()=>{"use strict";var t={56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],l=r.base?c[0]+r.base:c[0],u=a[l]||0,d="".concat(l," ").concat(u);a[l]=u+1;var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var v=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:v,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),l=0;l<a.length;l++){var u=n(a[l]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=c}}},88:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,".centered-vertical-layout{display:flex;flex-direction:row;align-items:center;gap:var(--space);justify-content:var(--justify-content)}",""]);const s=i},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},155:t=>{t.exports=e},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(i[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},509:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,".cluster-layout{display:flex;flex-direction:column;gap:var(--space);justify-content:var(--justify-content);align-items:var(--align-content)}",""]);const s=i},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},601:e=>{e.exports=function(e){return e[1]}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},681:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,".stack-layout{display:flex;flex-direction:row;gap:var(--space);justify-content:var(--justify-content);align-items:var(--align-content)}",""]);const s=i},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};r.r(o),r.d(o,{CenteredVertialLayout:()=>j,ClusterLayout:()=>T,PASSWORD_REGEX:()=>N,Show:()=>M,StackLayout:()=>I,colors:()=>a,configuration:()=>P,hooks:()=>O,utils:()=>k});var a={},i=r(155),s=r.n(i),c=r(72),l=r.n(c),u=r(825),d=r.n(u),f=r(659),p=r.n(f),v=r(56),y=r.n(v),m=r(540),h=r.n(m),g=r(113),b=r.n(g),A=r(88),x={};x.styleTagTransform=b(),x.setAttributes=y(),x.insert=p().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=h();l()(A.A,x);A.A&&A.A.locals&&A.A.locals;var j=function(e){var t=e.space,n=void 0===t?"initial":t,r=e.justifyContent,o=void 0===r?"initial":r,a=e.children;return s().createElement("div",{className:"centered-vertial-layout",style:{"--space":n,"--justify-content":o}},a)},S=r(509),E={};E.styleTagTransform=b(),E.setAttributes=y(),E.insert=p().bind(null,"head"),E.domAPI=d(),E.insertStyleElement=h();l()(S.A,E);S.A&&S.A.locals&&S.A.locals;var T=function(e){var t=e.children,n=e.alignItems,r=void 0===n?"initial":n,o=e.justifyContent,a=void 0===o?"initial":o,i=e.space,c=void 0===i?"1rem":i;return s().createElement("div",{className:"stack-layout",style:{"--space":c,"--justify-content":a,"--align-items":r}},t)},C=r(681),w={};w.styleTagTransform=b(),w.setAttributes=y(),w.insert=p().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=h();l()(C.A,w);C.A&&C.A.locals&&C.A.locals;var I=function(e){var t=e.children,n=e.alignItems,r=void 0===n?"initial":n,o=e.justifyContent,a=void 0===o?"initial":o,i=e.space,c=void 0===i?"1rem":i;return s().createElement("div",{className:"stack-layout",style:{"--space":c,"--justify-content":a,"--align-items":r}},t)},M=function(e){var t=e.children,n=s().Children.toArray(t).find((function(e){return(null==e?void 0:e.type)===M.When})),r=s().Children.toArray(t).find((function(e){return(null==e?void 0:e.type)===M.Else}));return null!=n&&n.props.isTrue?n:r||null};M.When=function(e){var t=e.children;return e.isTrue?s().createElement(s().Fragment,null,t):null},M.Else=function(e){var t=e.children;return s().createElement(s().Fragment,null,t)};var P={},N=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*\W)(?!.* )$/,O={},k={};return o})()));
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var r="object"==typeof exports?e(require("react")):e(t.react);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(this,(t=>(()=>{"use strict";var e={56:(t,e,r)=>{t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},72:t=>{var e=[];function r(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function n(t,n){for(var c={},a=[],i=0;i<t.length;i++){var u=t[i],s=n.base?u[0]+n.base:u[0],l=c[s]||0,f="".concat(s," ").concat(l);c[s]=l+1;var p=r(f),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)e[p].references++,e[p].updater(d);else{var y=o(d,n);n.byIndex=i,e.splice(i,0,{identifier:f,updater:y,references:1})}a.push(f)}return a}function o(t,e){var r=e.domAPI(e);r.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,o){var c=n(t=t||[],o=o||{});return function(t){t=t||[];for(var a=0;a<c.length;a++){var i=r(c[a]);e[i].references--}for(var u=n(t,o),s=0;s<c.length;s++){var l=r(c[s]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}c=u}}},88:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(601),o=r.n(n),c=r(314),a=r.n(c)()(o());a.push([t.id,".centered-vertical-layout{display:flex;flex-direction:row;align-items:center;gap:var(--space);justify-content:var(--justify-content)}",""]);const i=a},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},115:t=>{var e=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,o="undefined"!=typeof Element;function c(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){var i,u,s,l=e(t),f=e(a);if(l&&f){if((u=t.length)!=a.length)return!1;for(i=u;0!=i--;)if(!c(t[i],a[i]))return!1;return!0}if(l!=f)return!1;var p=t instanceof Date,d=a instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==a.getTime();var y=t instanceof RegExp,v=a instanceof RegExp;if(y!=v)return!1;if(y&&v)return t.toString()==a.toString();var h=r(t);if((u=h.length)!==r(a).length)return!1;for(i=u;0!=i--;)if(!n.call(a,h[i]))return!1;if(o&&t instanceof Element&&a instanceof Element)return t===a;for(i=u;0!=i--;)if(!("_owner"===(s=h[i])&&t.$$typeof||c(t[s],a[s])))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return c(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}}},146:(t,e,r)=>{var n=r(363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},c={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function u(t){return n.isMemo(t)?a:i[t.$$typeof]||o}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(y){var o=d(r);o&&o!==y&&t(e,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var i=u(e),v=u(r),h=0;h<a.length;++h){var b=a[h];if(!(c[b]||n&&n[b]||v&&v[b]||i&&i[b])){var m=p(r,b);try{s(e,b,m)}catch(t){}}}}return e}},155:e=>{e.exports=t},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,o,c){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var i=0;i<this.length;i++){var u=this[i][0];null!=u&&(a[u]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&a[l[0]]||(void 0!==c&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=c),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},363:(t,e,r)=>{t.exports=r(799)},509:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(601),o=r.n(n),c=r(314),a=r.n(c)()(o());a.push([t.id,".cluster-layout{display:flex;flex-direction:column;gap:var(--space);justify-content:var(--justify-content);align-items:var(--align-content)}",""]);const i=a},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},601:t=>{t.exports=function(t){return t[1]}},652:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(601),o=r.n(n),c=r(314),a=r.n(c)()(o());a.push([t.id,".text-input-generic-styles{padding:.25rem;border-width:1px;border-style:solid;outline-color:var(--text-input-outline-color);border-color:var(--text-input-border-color);color:var(--text-input-text-color);outline:none;border-radius:.5rem;font-size:1rem;text-align:left;background:var(--text-input-background)}",""]);const i=a},659:t=>{var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},681:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(601),o=r.n(n),c=r(314),a=r.n(c)()(o());a.push([t.id,".stack-layout{display:flex;flex-direction:row;gap:var(--space);justify-content:var(--justify-content);align-items:var(--align-content)}",""]);const i=a},799:(t,e)=>{var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function _(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case l:case f:case c:case i:case a:case d:return t;default:switch(t=t&&t.$$typeof){case s:case p:case h:case v:case u:return t;default:return e}}case o:return e}}}function A(t){return _(t)===f}e.AsyncMode=l,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=u,e.Element=n,e.ForwardRef=p,e.Fragment=c,e.Lazy=h,e.Memo=v,e.Portal=o,e.Profiler=i,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return A(t)||_(t)===l},e.isConcurrentMode=A,e.isContextConsumer=function(t){return _(t)===s},e.isContextProvider=function(t){return _(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return _(t)===p},e.isFragment=function(t){return _(t)===c},e.isLazy=function(t){return _(t)===h},e.isMemo=function(t){return _(t)===v},e.isPortal=function(t){return _(t)===o},e.isProfiler=function(t){return _(t)===i},e.isStrictMode=function(t){return _(t)===a},e.isSuspense=function(t){return _(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===c||t===f||t===i||t===a||t===d||t===y||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===m||t.$$typeof===g||t.$$typeof===j||t.$$typeof===b)},e.typeOf=_},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var c=r.sourceMap;c&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(c))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var c=r[t]={id:t,exports:{}};return e[t](c,c.exports,n),c.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var o={};n.r(o),n.d(o,{CenteredVertialLayout:()=>A,ClusterLayout:()=>x,FormikFormControl:()=>In,Label:()=>zn,PASSWORD_REGEX:()=>Vn,Show:()=>C,StackLayout:()=>E,TextInput:()=>Bn,colors:()=>c,configuration:()=>Ln,hooks:()=>Wn,utils:()=>qn});var c={},a=n(155),i=n.n(a),u=n(72),s=n.n(u),l=n(825),f=n.n(l),p=n(659),d=n.n(p),y=n(56),v=n.n(y),h=n(540),b=n.n(h),m=n(113),g=n.n(m),j=n(88),_={};_.styleTagTransform=g(),_.setAttributes=v(),_.insert=d().bind(null,"head"),_.domAPI=f(),_.insertStyleElement=b();s()(j.A,_);j.A&&j.A.locals&&j.A.locals;var A=function(t){var e=t.space,r=void 0===e?"initial":e,n=t.justifyContent,o=void 0===n?"initial":n,c=t.children;return i().createElement("div",{className:"centered-vertial-layout",style:{"--space":r,"--justify-content":o}},c)},O=n(509),w={};w.styleTagTransform=g(),w.setAttributes=v(),w.insert=d().bind(null,"head"),w.domAPI=f(),w.insertStyleElement=b();s()(O.A,w);O.A&&O.A.locals&&O.A.locals;var x=function(t){var e=t.children,r=t.alignItems,n=void 0===r?"initial":r,o=t.justifyContent,c=void 0===o?"initial":o,a=t.space,u=void 0===a?"1rem":a;return i().createElement("div",{className:"stack-layout",style:{"--space":u,"--justify-content":c,"--align-items":n}},e)},S=n(681),P={};P.styleTagTransform=g(),P.setAttributes=v(),P.insert=d().bind(null,"head"),P.domAPI=f(),P.insertStyleElement=b();s()(S.A,P);S.A&&S.A.locals&&S.A.locals;var E=function(t){var e=t.children,r=t.alignItems,n=void 0===r?"initial":r,o=t.justifyContent,c=void 0===o?"initial":o,a=t.space,u=void 0===a?"1rem":a;return i().createElement("div",{className:"stack-layout",style:{"--space":u,"--justify-content":c,"--align-items":n}},e)},C=function(t){var e=t.children,r=i().Children.toArray(e).find((function(t){return(null==t?void 0:t.type)===C.When})),n=i().Children.toArray(e).find((function(t){return(null==t?void 0:t.type)===C.Else}));return null!=r&&r.props.isTrue?r:n||null};C.When=function(t){var e=t.children;return t.isTrue?i().createElement(i().Fragment,null,e):null},C.Else=function(t){var e=t.children;return i().createElement(i().Fragment,null,e)};var F=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===M}(t)}(t)};var M="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function $(t,e){return!1!==e.clone&&e.isMergeableObject(t)?k((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function T(t,e,r){return t.concat(e).map((function(t){return $(t,r)}))}function k(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||T,r.isMergeableObject=r.isMergeableObject||F;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(t,e,r){var n={};return r.isMergeableObject(t)&&Object.keys(t).forEach((function(e){n[e]=$(t[e],r)})),Object.keys(e).forEach((function(o){r.isMergeableObject(e[o])&&t[o]?n[o]=k(t[o],e[o],r):n[o]=$(e[o],r)})),n}(t,e,r):$(e,r)}k.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return k(t,r,e)}),{})};const I=function(){this.__data__=[],this.size=0};const z=function(t,e){return t===e||t!=t&&e!=e};const R=function(t,e){for(var r=t.length;r--;)if(z(t[r][0],e))return r;return-1};var U=Array.prototype.splice;const N=function(t){var e=this.__data__,r=R(e,t);return!(r<0)&&(r==e.length-1?e.pop():U.call(e,r,1),--this.size,!0)};const D=function(t){var e=this.__data__,r=R(e,t);return r<0?void 0:e[r][1]};const B=function(t){return R(this.__data__,t)>-1};const L=function(t,e){var r=this.__data__,n=R(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function V(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])}}V.prototype.clear=I,V.prototype.delete=N,V.prototype.get=D,V.prototype.has=B,V.prototype.set=L;const W=V;const q=function(){this.__data__=new W,this.size=0};const G=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};const H=function(t){return this.__data__.get(t)};const J=function(t){return this.__data__.has(t)};const X="object"==typeof global&&global&&global.Object===Object&&global;var Z="object"==typeof self&&self&&self.Object===Object&&self;const K=X||Z||Function("return this")();const Q=K.Symbol;var Y=Object.prototype,tt=Y.hasOwnProperty,et=Y.toString,rt=Q?Q.toStringTag:void 0;const nt=function(t){var e=tt.call(t,rt),r=t[rt];try{t[rt]=void 0;var n=!0}catch(t){}var o=et.call(t);return n&&(e?t[rt]=r:delete t[rt]),o};var ot=Object.prototype.toString;const ct=function(t){return ot.call(t)};var at=Q?Q.toStringTag:void 0;const it=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":at&&at in Object(t)?nt(t):ct(t)};const ut=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const st=function(t){if(!ut(t))return!1;var e=it(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const lt=K["__core-js_shared__"];var ft,pt=(ft=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||""))?"Symbol(src)_1."+ft:"";const dt=function(t){return!!pt&&pt in t};var yt=Function.prototype.toString;const vt=function(t){if(null!=t){try{return yt.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var ht=/^\[object .+?Constructor\]$/,bt=Function.prototype,mt=Object.prototype,gt=bt.toString,jt=mt.hasOwnProperty,_t=RegExp("^"+gt.call(jt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const At=function(t){return!(!ut(t)||dt(t))&&(st(t)?_t:ht).test(vt(t))};const Ot=function(t,e){return null==t?void 0:t[e]};const wt=function(t,e){var r=Ot(t,e);return At(r)?r:void 0};const xt=wt(K,"Map");const St=wt(Object,"create");const Pt=function(){this.__data__=St?St(null):{},this.size=0};const Et=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ct=Object.prototype.hasOwnProperty;const Ft=function(t){var e=this.__data__;if(St){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Ct.call(e,t)?e[t]:void 0};var Mt=Object.prototype.hasOwnProperty;const $t=function(t){var e=this.__data__;return St?void 0!==e[t]:Mt.call(e,t)};const Tt=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=St&&void 0===e?"__lodash_hash_undefined__":e,this};function kt(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])}}kt.prototype.clear=Pt,kt.prototype.delete=Et,kt.prototype.get=Ft,kt.prototype.has=$t,kt.prototype.set=Tt;const It=kt;const zt=function(){this.size=0,this.__data__={hash:new It,map:new(xt||W),string:new It}};const Rt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Ut=function(t,e){var r=t.__data__;return Rt(e)?r["string"==typeof e?"string":"hash"]:r.map};const Nt=function(t){var e=Ut(this,t).delete(t);return this.size-=e?1:0,e};const Dt=function(t){return Ut(this,t).get(t)};const Bt=function(t){return Ut(this,t).has(t)};const Lt=function(t,e){var r=Ut(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Vt(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])}}Vt.prototype.clear=zt,Vt.prototype.delete=Nt,Vt.prototype.get=Dt,Vt.prototype.has=Bt,Vt.prototype.set=Lt;const Wt=Vt;const qt=function(t,e){var r=this.__data__;if(r instanceof W){var n=r.__data__;if(!xt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wt(n)}return r.set(t,e),this.size=r.size,this};function Gt(t){var e=this.__data__=new W(t);this.size=e.size}Gt.prototype.clear=q,Gt.prototype.delete=G,Gt.prototype.get=H,Gt.prototype.has=J,Gt.prototype.set=qt;const Ht=Gt;const Jt=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t};const Xt=function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Zt=function(t,e,r){"__proto__"==e&&Xt?Xt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var Kt=Object.prototype.hasOwnProperty;const Qt=function(t,e,r){var n=t[e];Kt.call(t,e)&&z(n,r)&&(void 0!==r||e in t)||Zt(t,e,r)};const Yt=function(t,e,r,n){var o=!r;r||(r={});for(var c=-1,a=e.length;++c<a;){var i=e[c],u=n?n(r[i],t[i],i,r,t):void 0;void 0===u&&(u=t[i]),o?Zt(r,i,u):Qt(r,i,u)}return r};const te=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};const ee=function(t){return null!=t&&"object"==typeof t};const re=function(t){return ee(t)&&"[object Arguments]"==it(t)};var ne=Object.prototype,oe=ne.hasOwnProperty,ce=ne.propertyIsEnumerable;const ae=re(function(){return arguments}())?re:function(t){return ee(t)&&oe.call(t,"callee")&&!ce.call(t,"callee")};const ie=Array.isArray;const ue=function(){return!1};var se="object"==typeof exports&&exports&&!exports.nodeType&&exports,le=se&&"object"==typeof module&&module&&!module.nodeType&&module,fe=le&&le.exports===se?K.Buffer:void 0;const pe=(fe?fe.isBuffer:void 0)||ue;var de=/^(?:0|[1-9]\d*)$/;const ye=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&de.test(t))&&t>-1&&t%1==0&&t<e};const ve=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var he={};he["[object Float32Array]"]=he["[object Float64Array]"]=he["[object Int8Array]"]=he["[object Int16Array]"]=he["[object Int32Array]"]=he["[object Uint8Array]"]=he["[object Uint8ClampedArray]"]=he["[object Uint16Array]"]=he["[object Uint32Array]"]=!0,he["[object Arguments]"]=he["[object Array]"]=he["[object ArrayBuffer]"]=he["[object Boolean]"]=he["[object DataView]"]=he["[object Date]"]=he["[object Error]"]=he["[object Function]"]=he["[object Map]"]=he["[object Number]"]=he["[object Object]"]=he["[object RegExp]"]=he["[object Set]"]=he["[object String]"]=he["[object WeakMap]"]=!1;const be=function(t){return ee(t)&&ve(t.length)&&!!he[it(t)]};const me=function(t){return function(e){return t(e)}};var ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,je=ge&&"object"==typeof module&&module&&!module.nodeType&&module,_e=je&&je.exports===ge&&X.process;const Ae=function(){try{var t=je&&je.require&&je.require("util").types;return t||_e&&_e.binding&&_e.binding("util")}catch(t){}}();var Oe=Ae&&Ae.isTypedArray;const we=Oe?me(Oe):be;var xe=Object.prototype.hasOwnProperty;const Se=function(t,e){var r=ie(t),n=!r&&ae(t),o=!r&&!n&&pe(t),c=!r&&!n&&!o&&we(t),a=r||n||o||c,i=a?te(t.length,String):[],u=i.length;for(var s in t)!e&&!xe.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||c&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ye(s,u))||i.push(s);return i};var Pe=Object.prototype;const Ee=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Pe)};const Ce=function(t,e){return function(r){return t(e(r))}};const Fe=Ce(Object.keys,Object);var Me=Object.prototype.hasOwnProperty;const $e=function(t){if(!Ee(t))return Fe(t);var e=[];for(var r in Object(t))Me.call(t,r)&&"constructor"!=r&&e.push(r);return e};const Te=function(t){return null!=t&&ve(t.length)&&!st(t)};const ke=function(t){return Te(t)?Se(t):$e(t)};const Ie=function(t,e){return t&&Yt(e,ke(e),t)};const ze=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var Re=Object.prototype.hasOwnProperty;const Ue=function(t){if(!ut(t))return ze(t);var e=Ee(t),r=[];for(var n in t)("constructor"!=n||!e&&Re.call(t,n))&&r.push(n);return r};const Ne=function(t){return Te(t)?Se(t,!0):Ue(t)};const De=function(t,e){return t&&Yt(e,Ne(e),t)};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,Le=Be&&"object"==typeof module&&module&&!module.nodeType&&module,Ve=Le&&Le.exports===Be?K.Buffer:void 0,We=Ve?Ve.allocUnsafe:void 0;const qe=function(t,e){if(e)return t.slice();var r=t.length,n=We?We(r):new t.constructor(r);return t.copy(n),n};const Ge=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};const He=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,c=[];++r<n;){var a=t[r];e(a,r,t)&&(c[o++]=a)}return c};const Je=function(){return[]};var Xe=Object.prototype.propertyIsEnumerable,Ze=Object.getOwnPropertySymbols;const Ke=Ze?function(t){return null==t?[]:(t=Object(t),He(Ze(t),(function(e){return Xe.call(t,e)})))}:Je;const Qe=function(t,e){return Yt(t,Ke(t),e)};const Ye=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t};const tr=Ce(Object.getPrototypeOf,Object);const er=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ye(e,Ke(t)),t=tr(t);return e}:Je;const rr=function(t,e){return Yt(t,er(t),e)};const nr=function(t,e,r){var n=e(t);return ie(t)?n:Ye(n,r(t))};const or=function(t){return nr(t,ke,Ke)};const cr=function(t){return nr(t,Ne,er)};const ar=wt(K,"DataView");const ir=wt(K,"Promise");const ur=wt(K,"Set");const sr=wt(K,"WeakMap");var lr="[object Map]",fr="[object Promise]",pr="[object Set]",dr="[object WeakMap]",yr="[object DataView]",vr=vt(ar),hr=vt(xt),br=vt(ir),mr=vt(ur),gr=vt(sr),jr=it;(ar&&jr(new ar(new ArrayBuffer(1)))!=yr||xt&&jr(new xt)!=lr||ir&&jr(ir.resolve())!=fr||ur&&jr(new ur)!=pr||sr&&jr(new sr)!=dr)&&(jr=function(t){var e=it(t),r="[object Object]"==e?t.constructor:void 0,n=r?vt(r):"";if(n)switch(n){case vr:return yr;case hr:return lr;case br:return fr;case mr:return pr;case gr:return dr}return e});const _r=jr;var Ar=Object.prototype.hasOwnProperty;const Or=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Ar.call(t,"index")&&(r.index=t.index,r.input=t.input),r};const wr=K.Uint8Array;const xr=function(t){var e=new t.constructor(t.byteLength);return new wr(e).set(new wr(t)),e};const Sr=function(t,e){var r=e?xr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)};var Pr=/\w*$/;const Er=function(t){var e=new t.constructor(t.source,Pr.exec(t));return e.lastIndex=t.lastIndex,e};var Cr=Q?Q.prototype:void 0,Fr=Cr?Cr.valueOf:void 0;const Mr=function(t){return Fr?Object(Fr.call(t)):{}};const $r=function(t,e){var r=e?xr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};const Tr=function(t,e,r){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return xr(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return Sr(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return $r(t,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return Er(t);case"[object Symbol]":return Mr(t)}};var kr=Object.create;const Ir=function(){function t(){}return function(e){if(!ut(e))return{};if(kr)return kr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();const zr=function(t){return"function"!=typeof t.constructor||Ee(t)?{}:Ir(tr(t))};const Rr=function(t){return ee(t)&&"[object Map]"==_r(t)};var Ur=Ae&&Ae.isMap;const Nr=Ur?me(Ur):Rr;const Dr=function(t){return ee(t)&&"[object Set]"==_r(t)};var Br=Ae&&Ae.isSet;const Lr=Br?me(Br):Dr;var Vr="[object Arguments]",Wr="[object Function]",qr="[object Object]",Gr={};Gr[Vr]=Gr["[object Array]"]=Gr["[object ArrayBuffer]"]=Gr["[object DataView]"]=Gr["[object Boolean]"]=Gr["[object Date]"]=Gr["[object Float32Array]"]=Gr["[object Float64Array]"]=Gr["[object Int8Array]"]=Gr["[object Int16Array]"]=Gr["[object Int32Array]"]=Gr["[object Map]"]=Gr["[object Number]"]=Gr[qr]=Gr["[object RegExp]"]=Gr["[object Set]"]=Gr["[object String]"]=Gr["[object Symbol]"]=Gr["[object Uint8Array]"]=Gr["[object Uint8ClampedArray]"]=Gr["[object Uint16Array]"]=Gr["[object Uint32Array]"]=!0,Gr["[object Error]"]=Gr[Wr]=Gr["[object WeakMap]"]=!1;const Hr=function t(e,r,n,o,c,a){var i,u=1&r,s=2&r,l=4&r;if(n&&(i=c?n(e,o,c,a):n(e)),void 0!==i)return i;if(!ut(e))return e;var f=ie(e);if(f){if(i=Or(e),!u)return Ge(e,i)}else{var p=_r(e),d=p==Wr||"[object GeneratorFunction]"==p;if(pe(e))return qe(e,u);if(p==qr||p==Vr||d&&!c){if(i=s||d?{}:zr(e),!u)return s?rr(e,De(i,e)):Qe(e,Ie(i,e))}else{if(!Gr[p])return c?e:{};i=Tr(e,p,u)}}a||(a=new Ht);var y=a.get(e);if(y)return y;a.set(e,i),Lr(e)?e.forEach((function(o){i.add(t(o,r,n,o,e,a))})):Nr(e)&&e.forEach((function(o,c){i.set(c,t(o,r,n,c,e,a))}));var v=f?void 0:(l?s?cr:or:s?Ne:ke)(e);return Jt(v||e,(function(o,c){v&&(o=e[c=o]),Qt(i,c,t(o,r,n,c,e,a))})),i};const Jr=function(t){return Hr(t,5)};var Xr=n(115),Zr=n.n(Xr);const Kr=function(t,e){};const Qr=function(t){return Hr(t,4)};const Yr=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};const tn=function(t){return"symbol"==typeof t||ee(t)&&"[object Symbol]"==it(t)};function en(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],c=r.cache;if(c.has(o))return c.get(o);var a=t.apply(this,n);return r.cache=c.set(o,a)||c,a};return r.cache=new(en.Cache||Wt),r}en.Cache=Wt;const rn=en;var nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,on=/\\(\\)?/g;const cn=function(t){var e=rn(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(nn,(function(t,r,n,o){e.push(n?o.replace(on,"$1"):r||t)})),e}));const an=function(t){if("string"==typeof t||tn(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};var un=Q?Q.prototype:void 0,sn=un?un.toString:void 0;const ln=function t(e){if("string"==typeof e)return e;if(ie(e))return Yr(e,t)+"";if(tn(e))return sn?sn.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r};const fn=function(t){return null==t?"":ln(t)};const pn=function(t){return ie(t)?Yr(t,an):tn(t)?[t]:Ge(cn(fn(t)))};n(146);function dn(){return dn=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},dn.apply(this,arguments)}function yn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function vn(t,e){if(null==t)return{};var r,n,o={},c=Object.keys(t);for(n=0;n<c.length;n++)r=c[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}function hn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var bn=(0,a.createContext)(void 0);bn.displayName="FormikContext";bn.Provider,bn.Consumer;function mn(){var t=(0,a.useContext)(bn);return t||Kr(!1),t}var gn=function(t){return Array.isArray(t)&&0===t.length},jn=function(t){return"function"==typeof t},_n=function(t){return null!==t&&"object"==typeof t},An=function(t){return String(Math.floor(Number(t)))===t},On=function(t){return 0===a.Children.count(t)};function wn(t,e,r,n){void 0===n&&(n=0);for(var o=pn(e);t&&n<o.length;)t=t[o[n++]];return n===o.length||t?void 0===t?r:t:r}function xn(t,e,r){for(var n=Qr(t),o=n,c=0,a=pn(e);c<a.length-1;c++){var i=a[c],u=wn(t,a.slice(0,c+1));if(u&&(_n(u)||Array.isArray(u)))o=o[i]=Qr(u);else{var s=a[c+1];o=o[i]=An(s)&&Number(s)>=0?[]:{}}}return(0===c?t:o)[a[c]]===r?t:(void 0===r?delete o[a[c]]:o[a[c]]=r,0===c&&void 0===r&&delete n[a[c]],n)}"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;(0,a.forwardRef)((function(t,e){var r=t.action,n=vn(t,["action"]),o=null!=r?r:"#",c=mn(),i=c.handleReset,u=c.handleSubmit;return(0,a.createElement)("form",dn({onSubmit:u,ref:e,onReset:i,action:o},n))})).displayName="Form";var Sn=function(t,e,r){var n=Pn(t);return n.splice(e,0,r),n},Pn=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(dn({},t,{length:e+1}))}return[]},En=function(t,e){var r="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||_n(t)){var e=Pn(t);return r(e)}return t}},Cn=function(t){function e(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(t,e,n){var o=r.props,c=o.name;(0,o.formik.setFormikState)((function(r){var o=En(n,t),a=En(e,t),i=xn(r.values,c,t(wn(r.values,c))),u=n?o(wn(r.errors,c)):void 0,s=e?a(wn(r.touched,c)):void 0;return gn(u)&&(u=void 0),gn(s)&&(s=void 0),dn({},r,{values:i,errors:n?xn(r.errors,c,u):r.errors,touched:e?xn(r.touched,c,s):r.touched})}))},r.push=function(t){return r.updateArrayField((function(e){return[].concat(Pn(e),[Jr(t)])}),!1,!1)},r.handlePush=function(t){return function(){return r.push(t)}},r.swap=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Pn(t),o=n[e];return n[e]=n[r],n[r]=o,n}(r,t,e)}),!0,!0)},r.handleSwap=function(t,e){return function(){return r.swap(t,e)}},r.move=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Pn(t),o=n[e];return n.splice(e,1),n.splice(r,0,o),n}(r,t,e)}),!0,!0)},r.handleMove=function(t,e){return function(){return r.move(t,e)}},r.insert=function(t,e){return r.updateArrayField((function(r){return Sn(r,t,e)}),(function(e){return Sn(e,t,null)}),(function(e){return Sn(e,t,null)}))},r.handleInsert=function(t,e){return function(){return r.insert(t,e)}},r.replace=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=Pn(t);return n[e]=r,n}(r,t,e)}),!1,!1)},r.handleReplace=function(t,e){return function(){return r.replace(t,e)}},r.unshift=function(t){var e=-1;return r.updateArrayField((function(r){var n=r?[t].concat(r):[t];return e=n.length,n}),(function(t){return t?[null].concat(t):[null]}),(function(t){return t?[null].concat(t):[null]})),e},r.handleUnshift=function(t){return function(){return r.unshift(t)}},r.handleRemove=function(t){return function(){return r.remove(t)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(hn(r)),r.pop=r.pop.bind(hn(r)),r}yn(e,t);var r=e.prototype;return r.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Zr()(wn(t.formik.values,t.name),wn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(t){var e;return this.updateArrayField((function(r){var n=r?Pn(r):[];return e||(e=n[t]),jn(n.splice)&&n.splice(t,1),jn(n.every)&&n.every((function(t){return void 0===t}))?[]:n}),!0,!0),e},r.pop=function(){var t;return this.updateArrayField((function(e){var r=e.slice();return t||(t=r&&r.pop&&r.pop()),r}),!0,!0),t},r.render=function(){var t={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},e=this.props,r=e.component,n=e.render,o=e.children,c=e.name,i=dn({},t,{form:vn(e.formik,["validate","validationSchema"]),name:c});return r?(0,a.createElement)(r,i):n?n(i):o?"function"==typeof o?o(i):On(o)?null:a.Children.only(o):null},e}(a.Component);Cn.defaultProps={validateOnChange:!0};var Fn={value:void 0,errors:null,touched:!1,setTouched:function(t){},setError:function(t){},setValue:function(t){},onBlur:function(t){}},Mn=(0,a.createContext)(Fn),$n=Mn.Provider;function Tn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,c,a,i=[],u=!0,s=!1;try{if(c=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=c.call(r)).done)&&(i.push(n.value),i.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return kn(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kn(t,e):void 0}}(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.")}()}function kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var In=function(t){var e=t.formFieldName,r=t.children,n=Tn(function(t){var e=mn(),r=e.getFieldProps,n=e.getFieldMeta,o=e.getFieldHelpers,c=e.registerField,i=e.unregisterField,u=_n(t)?t:{name:t},s=u.name,l=u.validate;(0,a.useEffect)((function(){return s&&c(s,{validate:l}),function(){s&&i(s)}}),[c,i,s,l]),s||Kr(!1);var f=(0,a.useMemo)((function(){return o(s)}),[o,s]);return[r(u),n(s),f]}(e),3),o=n[0],c=o.value,u=o.onBlur,s=n[1],l=s.touched,f=s.error,p=n[2],d=p.setValue,y=p.setTouched,v=p.setError;return i().createElement($n,{value:{value:c,errors:null!=f?f:null,touched:l,setTouched:y,setValue:function(t){!l&&y(!0),d(t)},onBlur:function(t){y(!0),u(t)},setError:function(t){!l&&y(!0),v(null!=t?t:void 0)}}},r)},zn=function(t){var e=t.children;return i().createElement("div",null,i().createElement("span",null,e))},Rn=n(652),Un={};Un.styleTagTransform=g(),Un.setAttributes=v(),Un.insert=d().bind(null,"head"),Un.domAPI=f(),Un.insertStyleElement=b();s()(Rn.A,Un);Rn.A&&Rn.A.locals&&Rn.A.locals;var Nn=["onChange","value"];function Dn(){return Dn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dn.apply(null,arguments)}var Bn=function(t){t.onChange;var e,r,n,o,c,u,s,l,f=t.value,p=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(n=0;n<c.length;n++)r=c[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,Nn),d=(0,a.useContext)(Mn);return i().createElement("input",Dn({className:"text-input-generic-styles"},p,{onChange:function(t){d.setValue(t.target.value)},value:f,style:{"--text-input-border-color":(null===(e=null!==(r=d.errors)&&void 0!==r?r:"")||void 0===e?void 0:e.length)>0?"var(--chat-var-default-field-border-errors-color)":"transparent","--text-input-text-color":"var(".concat((null===(n=null!==(o=d.errors)&&void 0!==o?o:"")||void 0===n?void 0:n.length)>0?"--chat-var-default-field-color-errors-color":"--chat-var-default-text-color",")"),"--text-input-outline-color":(null===(c=null!==(u=d.errors)&&void 0!==u?u:"")||void 0===c?void 0:c.length)>0?"var(--chat-var-default-field-outline-errors-color)":"transparent","--text-input-background":"var(".concat((null===(s=null!==(l=d.errors)&&void 0!==l?l:"")||void 0===s?void 0:s.length)>0?"--chat-var-default-field-errors-background":"--chat-var-color-white",")")}}))},Ln={},Vn=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*\W)(?!.* )$/,Wn={},qn={};return o})()));
@@ -0,0 +1,8 @@
1
+ /** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ExtendedReactFunctionalComponent } from "../../../types/extended-react-functional-component";
3
- import '../../fields/_shared/constants/text-input-generic-styles.scss';
3
+ import 'src/styles/text-input-generic-styles.scss';
4
4
  export type TextInputProps = React.InputHTMLAttributes<HTMLInputElement>;
5
5
  export declare const TextInput: ExtendedReactFunctionalComponent<React.InputHTMLAttributes<HTMLInputElement>>;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.TextInput = void 0;
27
27
  const react_1 = __importStar(require("react"));
28
28
  const field_context_1 = require("../field-context/field-context");
29
- require("../../fields/_shared/constants/text-input-generic-styles.scss");
29
+ require("src/styles/text-input-generic-styles.scss");
30
30
  const TextInput = ({ onChange, value, ...props }) => {
31
31
  const fieldProvider = (0, react_1.useContext)(field_context_1.FieldContext);
32
32
  return (react_1.default.createElement("input", { className: 'text-input-generic-styles', ...props, onChange: (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"text-input.js","sourceRoot":"","sources":["../../../../../src/components/form/text-input/text-input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAI1C,kEAA8D;AAE9D,yEAAuE;AAIhE,MAAM,SAAS,GAAkF,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACxI,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,4BAAY,CAAC,CAAC;IAC/C,OAAO,CACL,yCAAO,SAAS,EAAC,2BAA2B,KAAK,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACtE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAA0B,CAAC,CAAA;QAC7D,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YACtB,2BAA2B,EAAE,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,mDAAmD,CAAC,CAAC,CAAC,aAAa;YAC3I,yBAAyB,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,6CAA6C,CAAC,CAAC,CAAC,+BAA+B,GAAG;YAC/J,4BAA4B,EAAE,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,oDAAoD,CAAC,CAAC,CAAC,aAAa;YAC7I,yBAAyB,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,4CAA4C,CAAC,CAAC,CAAC,wBAAwB,GAAG;SAClI,GAAI,CAC5B,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,SAAS,aAYrB"}
1
+ {"version":3,"file":"text-input.js","sourceRoot":"","sources":["../../../../../src/components/form/text-input/text-input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAI1C,kEAA8D;AAE9D,qDAAmD;AAI5C,MAAM,SAAS,GAAkF,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACxI,MAAM,aAAa,GAAG,IAAA,kBAAU,EAAC,4BAAY,CAAC,CAAC;IAC/C,OAAO,CACL,yCAAO,SAAS,EAAC,2BAA2B,KAAK,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;YACtE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAA0B,CAAC,CAAA;QAC7D,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YACtB,2BAA2B,EAAE,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,mDAAmD,CAAC,CAAC,CAAC,aAAa;YAC3I,yBAAyB,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,6CAA6C,CAAC,CAAC,CAAC,+BAA+B,GAAG;YAC/J,4BAA4B,EAAE,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,oDAAoD,CAAC,CAAC,CAAC,aAAa;YAC7I,yBAAyB,EAAE,OAAO,CAAC,aAAa,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,4CAA4C,CAAC,CAAC,CAAC,wBAAwB,GAAG;SAClI,GAAI,CAC5B,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,SAAS,aAYrB"}
@@ -1,2 +1,3 @@
1
1
  export * from './layout';
2
2
  export * from './show';
3
+ export * from './form';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./layout"), exports);
18
18
  __exportStar(require("./show"), exports);
19
+ __exportStar(require("./form"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAuB;AACvB,yCAAuB"}
@@ -0,0 +1 @@
1
+ export * from './user';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./user"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
@@ -0,0 +1,16 @@
1
+ export interface User {
2
+ _id: string;
3
+ username: string;
4
+ surname: string;
5
+ birthDate: Date;
6
+ password: string;
7
+ avatarUrl?: string | null;
8
+ isHiddenContactInfo: boolean;
9
+ address?: string | null;
10
+ city?: string | null;
11
+ zipCode?: string | null;
12
+ country?: string | null;
13
+ phones?: string[] | null;
14
+ email: string;
15
+ primaryPhone?: string | null;
16
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/models/user.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@circle-vibe/shared",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "Shared componenets, utils, hooks",
5
5
  "scripts": {
6
6
  "build": "./scripts/build.sh",
7
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "publish": "./scripts/publish.sh",
9
+ "patch": "npm version patch"
8
10
  },
9
11
  "files": [
10
12
  "build"