@biznext-ui/react 0.3.4 → 0.3.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/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4921,7 +4921,7 @@ const Ja = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, exitBe
|
|
|
4921
4921
|
// <ToastContext.Provider value={toastContext}>
|
|
4922
4922
|
/* @__PURE__ */ me(Ua.Provider, { value: a, children: [
|
|
4923
4923
|
/* @__PURE__ */ F(ju, {}),
|
|
4924
|
-
/* @__PURE__ */ F(Dh, { isOpen: r, onClose: u, config: n }),
|
|
4924
|
+
n ? /* @__PURE__ */ F(Dh, { isOpen: r, onClose: u, config: n }) : null,
|
|
4925
4925
|
t
|
|
4926
4926
|
] })
|
|
4927
4927
|
);
|
package/dist/index.umd.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
top: ${a}px !important;
|
|
11
11
|
left: ${l}px !important;
|
|
12
12
|
}
|
|
13
|
-
`),()=>{document.head.removeChild(c)}},[e]),E.jsx(nh,{isPresent:e,childRef:i,sizeRef:r,children:G.cloneElement(t,{ref:i})})}const Mi=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const u=Lr(rh),a=C.useId(),l=C.useMemo(()=>({id:a,initial:e,isPresent:n,custom:r,onExitComplete:c=>{u.set(c,!0);for(const d of u.values())if(!d)return;i&&i()},register:c=>(u.set(c,!1),()=>u.delete(c))}),s?[Math.random()]:[n]);return C.useMemo(()=>{u.forEach((c,d)=>u.set(d,!1))},[n]),G.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),o==="popLayout"&&(t=E.jsx(ih,{isPresent:n,children:t})),E.jsx(Zt.Provider,{value:l,children:t})};function rh(){return new Map}function sh(t){return C.useEffect(()=>()=>t(),[])}const Ue=t=>t.key||"";function oh(t,e){t.forEach(n=>{const i=Ue(n);e.set(i,n)})}function ah(t){const e=[];return C.Children.forEach(t,n=>{C.isValidElement(n)&&e.push(n)}),e}const na=({children:t,custom:e,initial:n=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{Ee(!r,"Replace exitBeforeEnter with mode='wait'");const u=C.useContext(Ln).forceRender||th()[0],a=ta(),l=ah(t);let c=l;const d=C.useRef(new Map).current,f=C.useRef(c),h=C.useRef(new Map).current,m=C.useRef(!0);if(Dn(()=>{m.current=!1,oh(l,h),f.current=c}),sh(()=>{m.current=!0,h.clear(),d.clear()}),m.current)return E.jsx(E.Fragment,{children:c.map(I=>E.jsx(Mi,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o,children:I},Ue(I)))});c=[...c];const p=f.current.map(Ue),g=l.map(Ue),b=p.length;for(let I=0;I<b;I++){const v=p[I];g.indexOf(v)===-1&&!d.has(v)&&d.set(v,void 0)}return o==="wait"&&d.size&&(c=[]),d.forEach((I,v)=>{if(g.indexOf(v)!==-1)return;const x=h.get(v);if(!x)return;const y=p.indexOf(v);let S=I;if(!S){const P=()=>{d.delete(v);const A=Array.from(h.keys()).filter(M=>!g.includes(M));if(A.forEach(M=>h.delete(M)),f.current=l.filter(M=>{const N=Ue(M);return N===v||A.includes(N)}),!d.size){if(a.current===!1)return;u(),i&&i()}};S=E.jsx(Mi,{isPresent:!1,onExitComplete:P,custom:e,presenceAffectsLayout:s,mode:o,children:x},Ue(x)),d.set(v,S)}c.splice(y,0,S)}),c=c.map(I=>{const v=I.key;return d.has(v)?I:E.jsx(Mi,{isPresent:!0,presenceAffectsLayout:s,mode:o,children:I},Ue(I))}),process.env.NODE_ENV!=="production"&&o==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),E.jsx(E.Fragment,{children:d.size?c:c.map(I=>C.cloneElement(I))})},uh=t=>{const{isOpen:e,onClose:n,config:i}=t,{type:r,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=i,c=()=>{n()},d=()=>{a(),n()};return E.jsx(Wu,{children:E.jsx("div",{className:he["confirm-dialog-wrapper"],children:E.jsx(na,{children:e&&E.jsx(un.div,{className:he["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:E.jsx(un.div,{className:Ot(he["confirm-dialog"],he[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:E.jsxs("div",{className:he["confirm-dialog-content"],children:[E.jsxs("div",{className:he["confirm-dialog-body"],children:[E.jsx("div",{className:he["confirm-dialog-icon-container"],children:E.jsx("div",{className:he["confirm-dialog-icon"],children:u||E.jsx(Nu,{})})}),E.jsxs("div",{children:[E.jsx("h2",{children:s}),E.jsx("p",{children:o})]})]}),E.jsxs("div",{className:he["confirm-dialog-footer"],children:[E.jsx("button",{type:"button",className:he["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),E.jsx("button",{type:"button",className:he["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},ia=C.createContext({}),lh=({children:t,toastPosition:e})=>{console.log(e,"toastPosition");const[n,i]=C.useState({}),[r,s]=C.useState(!1),o=l=>{i(l),s(!0)},u=()=>{s(!1)},a=o;return E.jsxs(ia.Provider,{value:a,children:[E.jsx(Tu,{}),E.jsx(uh,{isOpen:r,onClose:u,config:n}),t]})},pe={"modal-wrapper":"biznext-ui-n2Vjx4mdikE-9","modal-overlay":"biznext-ui-6sKjk6L11EQ-e",modal:"biznext-ui-Mao59ye15po-3",left:"biznext-ui-5bDq6-PrHF4-e","left-slider":"biznext-ui-dhv7A0opLyg-7",right:"biznext-ui-X9XXG3R3kc4-5","right-slider":"biznext-ui-EXk9iqQoKIU-1","top-left":"biznext-ui-agEjPkJufuY-6","top-center":"biznext-ui-CzoFpYQH5r0-0","top-right":"biznext-ui-e0SRVasbx2Q-7","bottom-left":"biznext-ui-jMdhucf3jH4-8","bottom-center":"biznext-ui-1ruLnzU-7Mg-d","bottom-right":"biznext-ui-IBxY5gMZXAs-2",center:"biznext-ui-g7IKSnXitqg-8",full:"biznext-ui-T4NhvYHqFMo-4","modal-content":"biznext-ui-1F-uEUK7Izg-d","modal-header":"biznext-ui-nWO9WSw4Ix8-9","module-header-close-btn":"biznext-ui-kCEeyonkTlE-9","modal-title":"biznext-ui-r-WKlIAFS20-a","modal-body":"biznext-ui-7AJhK9Yn-KQ-e","modal-footer":"biznext-ui-lUyv0bpMUw4-9","modal-footer-close-btn":"biznext-ui-acScPNehEic-6"};function ch(t){return fr({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(t)}function dh(t){const{children:e}=t,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?$e.createPortal(e,r):$e.createPortal(e,document.body)}const Di=C.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ot=t=>{const{type:e,index:n,height:i,width:r,sx:s,isOpen:o,onClose:u,children:a}=t;return E.jsx(Di.Provider,{value:{onClose:u},children:E.jsx(dh,{children:E.jsx(na,{children:o&&E.jsxs("div",{className:pe["modal-wrapper"],children:[E.jsx(un.div,{className:pe["modal-overlay"],style:{zIndex:9999+(n||0)},onClick:u,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),E.jsx(un.div,{initial:{opacity:0,scale:.95},className:Ot(pe.modal,pe[e]),style:{height:i,width:r,zIndex:99999+(n||0),...s},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})]})})})})},fh=ot,hh=({children:t})=>E.jsx("div",{className:pe["modal-content"],children:t}),ph=({children:t})=>{const{onClose:e}=C.useContext(Di);return E.jsxs("header",{id:"handle",className:pe["modal-header"],children:[t,E.jsx("button",{type:"button",className:pe["module-header-close-btn"],onClick:e,children:E.jsx(ch,{})})]})},mh=({children:t})=>E.jsx("h2",{className:pe["modal-title"],children:t}),gh=({children:t})=>E.jsx("div",{className:pe["modal-body"],children:t}),bh=t=>{const{children:e,closeTitle:n}=t,{onClose:i}=C.useContext(Di);return E.jsxs("footer",{className:pe["modal-footer"],children:[e,E.jsx("button",{type:"button",className:pe["modal-footer-close-btn"],onClick:i,children:n||"Cancel"})]})};ot.Content=hh,ot.Header=ph,ot.Title=mh,ot.Body=gh,ot.Footer=bh;const vh=C.createContext({}),yh=()=>C.useContext(vh),Ih=()=>C.useContext(ia),me={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function _e(t){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(t)}function Ch(t,e){if(_e(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(_e(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ra(t){var e=Ch(t,"string");return _e(e)=="symbol"?e:e+""}function wt(t,e,n){return(e=ra(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sa(Object(n),!0).forEach(function(i){wt(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function xh(t){if(Array.isArray(t))return t}function Ah(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=s.call(n)).done)&&(u.push(i.value),u.length!==e);a=!0);}catch(c){l=!0,r=c}finally{try{if(!a&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return u}}function Ni(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function oa(t,e){if(t){if(typeof t=="string")return Ni(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(t,e):void 0}}function Sh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
`),()=>{document.head.removeChild(c)}},[e]),E.jsx(nh,{isPresent:e,childRef:i,sizeRef:r,children:G.cloneElement(t,{ref:i})})}const Mi=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const u=Lr(rh),a=C.useId(),l=C.useMemo(()=>({id:a,initial:e,isPresent:n,custom:r,onExitComplete:c=>{u.set(c,!0);for(const d of u.values())if(!d)return;i&&i()},register:c=>(u.set(c,!1),()=>u.delete(c))}),s?[Math.random()]:[n]);return C.useMemo(()=>{u.forEach((c,d)=>u.set(d,!1))},[n]),G.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),o==="popLayout"&&(t=E.jsx(ih,{isPresent:n,children:t})),E.jsx(Zt.Provider,{value:l,children:t})};function rh(){return new Map}function sh(t){return C.useEffect(()=>()=>t(),[])}const Ue=t=>t.key||"";function oh(t,e){t.forEach(n=>{const i=Ue(n);e.set(i,n)})}function ah(t){const e=[];return C.Children.forEach(t,n=>{C.isValidElement(n)&&e.push(n)}),e}const na=({children:t,custom:e,initial:n=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{Ee(!r,"Replace exitBeforeEnter with mode='wait'");const u=C.useContext(Ln).forceRender||th()[0],a=ta(),l=ah(t);let c=l;const d=C.useRef(new Map).current,f=C.useRef(c),h=C.useRef(new Map).current,m=C.useRef(!0);if(Dn(()=>{m.current=!1,oh(l,h),f.current=c}),sh(()=>{m.current=!0,h.clear(),d.clear()}),m.current)return E.jsx(E.Fragment,{children:c.map(I=>E.jsx(Mi,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o,children:I},Ue(I)))});c=[...c];const p=f.current.map(Ue),g=l.map(Ue),b=p.length;for(let I=0;I<b;I++){const v=p[I];g.indexOf(v)===-1&&!d.has(v)&&d.set(v,void 0)}return o==="wait"&&d.size&&(c=[]),d.forEach((I,v)=>{if(g.indexOf(v)!==-1)return;const x=h.get(v);if(!x)return;const y=p.indexOf(v);let S=I;if(!S){const P=()=>{d.delete(v);const A=Array.from(h.keys()).filter(M=>!g.includes(M));if(A.forEach(M=>h.delete(M)),f.current=l.filter(M=>{const N=Ue(M);return N===v||A.includes(N)}),!d.size){if(a.current===!1)return;u(),i&&i()}};S=E.jsx(Mi,{isPresent:!1,onExitComplete:P,custom:e,presenceAffectsLayout:s,mode:o,children:x},Ue(x)),d.set(v,S)}c.splice(y,0,S)}),c=c.map(I=>{const v=I.key;return d.has(v)?I:E.jsx(Mi,{isPresent:!0,presenceAffectsLayout:s,mode:o,children:I},Ue(I))}),process.env.NODE_ENV!=="production"&&o==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),E.jsx(E.Fragment,{children:d.size?c:c.map(I=>C.cloneElement(I))})},uh=t=>{const{isOpen:e,onClose:n,config:i}=t,{type:r,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=i,c=()=>{n()},d=()=>{a(),n()};return E.jsx(Wu,{children:E.jsx("div",{className:he["confirm-dialog-wrapper"],children:E.jsx(na,{children:e&&E.jsx(un.div,{className:he["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:E.jsx(un.div,{className:Ot(he["confirm-dialog"],he[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:E.jsxs("div",{className:he["confirm-dialog-content"],children:[E.jsxs("div",{className:he["confirm-dialog-body"],children:[E.jsx("div",{className:he["confirm-dialog-icon-container"],children:E.jsx("div",{className:he["confirm-dialog-icon"],children:u||E.jsx(Nu,{})})}),E.jsxs("div",{children:[E.jsx("h2",{children:s}),E.jsx("p",{children:o})]})]}),E.jsxs("div",{className:he["confirm-dialog-footer"],children:[E.jsx("button",{type:"button",className:he["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),E.jsx("button",{type:"button",className:he["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},ia=C.createContext({}),lh=({children:t,toastPosition:e})=>{console.log(e,"toastPosition");const[n,i]=C.useState({}),[r,s]=C.useState(!1),o=l=>{i(l),s(!0)},u=()=>{s(!1)},a=o;return E.jsxs(ia.Provider,{value:a,children:[E.jsx(Tu,{}),n?E.jsx(uh,{isOpen:r,onClose:u,config:n}):null,t]})},pe={"modal-wrapper":"biznext-ui-n2Vjx4mdikE-9","modal-overlay":"biznext-ui-6sKjk6L11EQ-e",modal:"biznext-ui-Mao59ye15po-3",left:"biznext-ui-5bDq6-PrHF4-e","left-slider":"biznext-ui-dhv7A0opLyg-7",right:"biznext-ui-X9XXG3R3kc4-5","right-slider":"biznext-ui-EXk9iqQoKIU-1","top-left":"biznext-ui-agEjPkJufuY-6","top-center":"biznext-ui-CzoFpYQH5r0-0","top-right":"biznext-ui-e0SRVasbx2Q-7","bottom-left":"biznext-ui-jMdhucf3jH4-8","bottom-center":"biznext-ui-1ruLnzU-7Mg-d","bottom-right":"biznext-ui-IBxY5gMZXAs-2",center:"biznext-ui-g7IKSnXitqg-8",full:"biznext-ui-T4NhvYHqFMo-4","modal-content":"biznext-ui-1F-uEUK7Izg-d","modal-header":"biznext-ui-nWO9WSw4Ix8-9","module-header-close-btn":"biznext-ui-kCEeyonkTlE-9","modal-title":"biznext-ui-r-WKlIAFS20-a","modal-body":"biznext-ui-7AJhK9Yn-KQ-e","modal-footer":"biznext-ui-lUyv0bpMUw4-9","modal-footer-close-btn":"biznext-ui-acScPNehEic-6"};function ch(t){return fr({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(t)}function dh(t){const{children:e}=t,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?$e.createPortal(e,r):$e.createPortal(e,document.body)}const Di=C.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ot=t=>{const{type:e,index:n,height:i,width:r,sx:s,isOpen:o,onClose:u,children:a}=t;return E.jsx(Di.Provider,{value:{onClose:u},children:E.jsx(dh,{children:E.jsx(na,{children:o&&E.jsxs("div",{className:pe["modal-wrapper"],children:[E.jsx(un.div,{className:pe["modal-overlay"],style:{zIndex:9999+(n||0)},onClick:u,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),E.jsx(un.div,{initial:{opacity:0,scale:.95},className:Ot(pe.modal,pe[e]),style:{height:i,width:r,zIndex:99999+(n||0),...s},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})]})})})})},fh=ot,hh=({children:t})=>E.jsx("div",{className:pe["modal-content"],children:t}),ph=({children:t})=>{const{onClose:e}=C.useContext(Di);return E.jsxs("header",{id:"handle",className:pe["modal-header"],children:[t,E.jsx("button",{type:"button",className:pe["module-header-close-btn"],onClick:e,children:E.jsx(ch,{})})]})},mh=({children:t})=>E.jsx("h2",{className:pe["modal-title"],children:t}),gh=({children:t})=>E.jsx("div",{className:pe["modal-body"],children:t}),bh=t=>{const{children:e,closeTitle:n}=t,{onClose:i}=C.useContext(Di);return E.jsxs("footer",{className:pe["modal-footer"],children:[e,E.jsx("button",{type:"button",className:pe["modal-footer-close-btn"],onClick:i,children:n||"Cancel"})]})};ot.Content=hh,ot.Header=ph,ot.Title=mh,ot.Body=gh,ot.Footer=bh;const vh=C.createContext({}),yh=()=>C.useContext(vh),Ih=()=>C.useContext(ia),me={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function _e(t){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(t)}function Ch(t,e){if(_e(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(_e(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ra(t){var e=Ch(t,"string");return _e(e)=="symbol"?e:e+""}function wt(t,e,n){return(e=ra(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sa(Object(n),!0).forEach(function(i){wt(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function xh(t){if(Array.isArray(t))return t}function Ah(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=s.call(n)).done)&&(u.push(i.value),u.length!==e);a=!0);}catch(c){l=!0,r=c}finally{try{if(!a&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return u}}function Ni(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function oa(t,e){if(t){if(typeof t=="string")return Ni(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(t,e):void 0}}function Sh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Me(t,e){return xh(t)||Ah(t,e)||oa(t,e)||Sh()}function Ph(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.includes(i))continue;n[i]=t[i]}return n}function De(t,e){if(t==null)return{};var n,i,r=Ph(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var Eh=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Th(t){var e=t.defaultInputValue,n=e===void 0?"":e,i=t.defaultMenuIsOpen,r=i===void 0?!1:i,s=t.defaultValue,o=s===void 0?null:s,u=t.inputValue,a=t.menuIsOpen,l=t.onChange,c=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,h=t.value,m=De(t,Eh),p=C.useState(u!==void 0?u:n),g=Me(p,2),b=g[0],I=g[1],v=C.useState(a!==void 0?a:r),x=Me(v,2),y=x[0],S=x[1],P=C.useState(h!==void 0?h:o),A=Me(P,2),M=A[0],N=A[1],k=C.useCallback(function(_,Ae){typeof l=="function"&&l(_,Ae),N(_)},[l]),Y=C.useCallback(function(_,Ae){var ge;typeof c=="function"&&(ge=c(_,Ae)),I(ge!==void 0?ge:_)},[c]),le=C.useCallback(function(){typeof f=="function"&&f(),S(!0)},[f]),se=C.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),D=u!==void 0?u:b,L=a!==void 0?a:y,ne=h!==void 0?h:M;return w(w({},m),{},{inputValue:D,menuIsOpen:L,onChange:k,onInputChange:Y,onMenuClose:se,onMenuOpen:le,value:ne})}function B(){return B=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},B.apply(null,arguments)}function Vh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aa(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ra(i.key),i)}}function wh(t,e,n){return e&&aa(t.prototype,e),n&&aa(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wi(t,e){return Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wi(t,e)}function Fh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wi(t,e)}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ln(t)}function ua(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ua=function(){return!!t})()}function Bh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gh(t,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bh(t)}function Mh(t){var e=ua();return function(){var n,i=ln(t);if(e){var r=ln(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Gh(this,n)}}function Dh(t){if(Array.isArray(t))return Ni(t)}function Nh(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
15
15
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ri(t){return Dh(t)||Nh(t)||oa(t)||Wh()}var Rh=!1;function Lh(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Oh(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Xh=function(){function t(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!Rh:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Oh(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Lh(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),te="-ms-",cn="-moz-",W="-webkit-",la="comm",Li="rule",Oi="decl",Zh="@import",ca="@keyframes",Hh="@layer",kh=Math.abs,dn=String.fromCharCode,zh=Object.assign;function jh(t,e){return K(t,0)^45?(((e<<2^K(t,0))<<2^K(t,1))<<2^K(t,2))<<2^K(t,3):0}function da(t){return t.trim()}function Yh(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Xi(t,e){return t.indexOf(e)}function K(t,e){return t.charCodeAt(e)|0}function Ft(t,e,n){return t.slice(e,n)}function Ie(t){return t.length}function Zi(t){return t.length}function fn(t,e){return e.push(t),t}function Jh(t,e){return t.map(e).join("")}var hn=1,at=1,fa=0,re=0,U=0,ut="";function pn(t,e,n,i,r,s,o){return{value:t,root:e,parent:n,type:i,props:r,children:s,line:hn,column:at,length:o,return:""}}function Bt(t,e){return zh(pn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Uh(){return U}function _h(){return U=re>0?K(ut,--re):0,at--,U===10&&(at=1,hn--),U}function ue(){return U=re<fa?K(ut,re++):0,at++,U===10&&(at=1,hn++),U}function Ce(){return K(ut,re)}function mn(){return re}function Gt(t,e){return Ft(ut,t,e)}function Mt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ha(t){return hn=at=1,fa=Ie(ut=t),re=0,[]}function pa(t){return ut="",t}function gn(t){return da(Gt(re-1,Hi(t===91?t+2:t===40?t+1:t)))}function Qh(t){for(;(U=Ce())&&U<33;)ue();return Mt(t)>2||Mt(U)>3?"":" "}function $h(t,e){for(;--e&&ue()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Gt(t,mn()+(e<6&&Ce()==32&&ue()==32))}function Hi(t){for(;ue();)switch(U){case t:return re;case 34:case 39:t!==34&&t!==39&&Hi(U);break;case 40:t===41&&Hi(t);break;case 92:ue();break}return re}function Kh(t,e){for(;ue()&&t+U!==57;)if(t+U===84&&Ce()===47)break;return"/*"+Gt(e,re-1)+"*"+dn(t===47?t:ue())}function qh(t){for(;!Mt(Ce());)ue();return Gt(t,re)}function ep(t){return pa(bn("",null,null,null,[""],t=ha(t),0,[0],t))}function bn(t,e,n,i,r,s,o,u,a){for(var l=0,c=0,d=o,f=0,h=0,m=0,p=1,g=1,b=1,I=0,v="",x=r,y=s,S=i,P=v;g;)switch(m=I,I=ue()){case 40:if(m!=108&&K(P,d-1)==58){Xi(P+=R(gn(I),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:P+=gn(I);break;case 9:case 10:case 13:case 32:P+=Qh(m);break;case 92:P+=$h(mn()-1,7);continue;case 47:switch(Ce()){case 42:case 47:fn(tp(Kh(ue(),mn()),e,n),a);break;default:P+="/"}break;case 123*p:u[l++]=Ie(P)*b;case 125*p:case 59:case 0:switch(I){case 0:case 125:g=0;case 59+c:b==-1&&(P=R(P,/\f/g,"")),h>0&&Ie(P)-d&&fn(h>32?ga(P+";",i,n,d-1):ga(R(P," ","")+";",i,n,d-2),a);break;case 59:P+=";";default:if(fn(S=ma(P,e,n,l,c,r,u,v,x=[],y=[],d),s),I===123)if(c===0)bn(P,e,S,S,x,s,d,u,y);else switch(f===99&&K(P,3)===110?100:f){case 100:case 108:case 109:case 115:bn(t,S,S,i&&fn(ma(t,S,S,0,0,r,u,v,r,x=[],d),y),r,y,d,u,i?x:y);break;default:bn(P,S,S,S,[""],y,0,u,y)}}l=c=h=0,p=b=1,v=P="",d=o;break;case 58:d=1+Ie(P),h=m;default:if(p<1){if(I==123)--p;else if(I==125&&p++==0&&_h()==125)continue}switch(P+=dn(I),I*p){case 38:b=c>0?1:(P+="\f",-1);break;case 44:u[l++]=(Ie(P)-1)*b,b=1;break;case 64:Ce()===45&&(P+=gn(ue())),f=Ce(),c=d=Ie(v=P+=qh(mn())),I++;break;case 45:m===45&&Ie(P)==2&&(p=0)}}return s}function ma(t,e,n,i,r,s,o,u,a,l,c){for(var d=r-1,f=r===0?s:[""],h=Zi(f),m=0,p=0,g=0;m<i;++m)for(var b=0,I=Ft(t,d+1,d=kh(p=o[m])),v=t;b<h;++b)(v=da(p>0?f[b]+" "+I:R(I,/&\f/g,f[b])))&&(a[g++]=v);return pn(t,e,n,r===0?Li:u,a,l,c)}function tp(t,e,n){return pn(t,e,n,la,dn(Uh()),Ft(t,2,-2),0)}function ga(t,e,n,i){return pn(t,e,n,Oi,Ft(t,0,i),Ft(t,i+1,-1),i)}function lt(t,e){for(var n="",i=Zi(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function np(t,e,n,i){switch(t.type){case Hh:if(t.children.length)break;case Zh:case Oi:return t.return=t.return||t.value;case la:return"";case ca:return t.return=t.value+"{"+lt(t.children,i)+"}";case Li:t.value=t.props.join(",")}return Ie(n=lt(t.children,i))?t.return=t.value+"{"+n+"}":""}function ip(t){var e=Zi(t);return function(n,i,r,s){for(var o="",u=0;u<e;u++)o+=t[u](n,i,r,s)||"";return o}}function rp(t){return function(e){e.root||(e=e.return)&&t(e)}}function sp(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var op=function(e,n,i){for(var r=0,s=0;r=s,s=Ce(),r===38&&s===12&&(n[i]=1),!Mt(s);)ue();return Gt(e,re)},ap=function(e,n){var i=-1,r=44;do switch(Mt(r)){case 0:r===38&&Ce()===12&&(n[i]=1),e[i]+=op(re-1,n,i);break;case 2:e[i]+=gn(r);break;case 4:if(r===44){e[++i]=Ce()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=dn(r)}while(r=ue());return e},up=function(e,n){return pa(ap(ha(e),n))},ba=new WeakMap,lp=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!ba.get(i))&&!r){ba.set(e,!0);for(var s=[],o=up(n,s),u=i.props,a=0,l=0;a<o.length;a++)for(var c=0;c<u.length;c++,l++)e.props[l]=s[a]?o[a].replace(/&\f/g,u[c]):u[c]+" "+o[a]}}},cp=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function va(t,e){switch(jh(t,e)){case 5103:return W+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return W+t+cn+t+te+t+t;case 6828:case 4268:return W+t+te+t+t;case 6165:return W+t+te+"flex-"+t+t;case 5187:return W+t+R(t,/(\w+).+(:[^]+)/,W+"box-$1$2"+te+"flex-$1$2")+t;case 5443:return W+t+te+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return W+t+te+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return W+t+te+R(t,"shrink","negative")+t;case 5292:return W+t+te+R(t,"basis","preferred-size")+t;case 6060:return W+"box-"+R(t,"-grow","")+W+t+te+R(t,"grow","positive")+t;case 4554:return W+R(t,/([^-])(transform)/g,"$1"+W+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,W+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ie(t)-1-e>6)switch(K(t,e+1)){case 109:if(K(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+cn+(K(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Xi(t,"stretch")?va(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(K(t,e+1)!==115)break;case 6444:switch(K(t,Ie(t)-3-(~Xi(t,"!important")&&10))){case 107:return R(t,":",":"+W)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(K(t,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+te+"$2box$3")+t}break;case 5936:switch(K(t,e+11)){case 114:return W+t+te+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return W+t+te+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return W+t+te+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return W+t+te+t+t}return t}var dp=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case Oi:e.return=va(e.value,e.length);break;case ca:return lt([Bt(e,{value:R(e.value,"@","@"+W)})],r);case Li:if(e.length)return Jh(e.props,function(s){switch(Yh(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lt([Bt(e,{props:[R(s,/:(read-\w+)/,":"+cn+"$1")]})],r);case"::placeholder":return lt([Bt(e,{props:[R(s,/:(plac\w+)/,":"+W+"input-$1")]}),Bt(e,{props:[R(s,/:(plac\w+)/,":"+cn+"$1")]}),Bt(e,{props:[R(s,/:(plac\w+)/,te+"input-$1")]})],r)}return""})}},fp=[dp],hp=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=e.stylisPlugins||fp,s={},o,u=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)s[g[b]]=!0;u.push(p)});var a,l=[lp,cp];{var c,d=[np,rp(function(p){c.insert(p)})],f=ip(l.concat(r,d)),h=function(g){return lt(ep(g),f)};a=function(g,b,I,v){c=I,h(g?g+"{"+b.styles+"}":b.styles),v&&(m.inserted[b.name]=!0)}}var m={key:n,sheet:new Xh({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return m.sheet.hydrate(u),m},ki={exports:{}},X={};/** @license React v16.13.1
|
|
16
16
|
* react-is.production.min.js
|