@biznext-ui/react 0.4.9 → 0.5.0
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 +22 -2
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5113,8 +5113,28 @@ const Ir = De({ onClose: () => console.warn("Biznext-UI-Modal: Close Function no
|
|
|
5113
5113
|
return Ie(() => {
|
|
5114
5114
|
d(!0);
|
|
5115
5115
|
}, []), /* @__PURE__ */ T(Ir.Provider, { value: { onClose: u }, children: l ? /* @__PURE__ */ T(Ap, { children: /* @__PURE__ */ T(yr, { children: s && /* @__PURE__ */ me("div", { className: Se["modal-wrapper"], children: [
|
|
5116
|
-
/* @__PURE__ */ T(
|
|
5117
|
-
|
|
5116
|
+
/* @__PURE__ */ T(
|
|
5117
|
+
Ot.div,
|
|
5118
|
+
{
|
|
5119
|
+
className: Se["modal-overlay"],
|
|
5120
|
+
style: { zIndex: c },
|
|
5121
|
+
onClick: u,
|
|
5122
|
+
initial: { opacity: 0 },
|
|
5123
|
+
animate: { opacity: 1 },
|
|
5124
|
+
exit: { opacity: 0 }
|
|
5125
|
+
}
|
|
5126
|
+
),
|
|
5127
|
+
/* @__PURE__ */ T(
|
|
5128
|
+
Ot.div,
|
|
5129
|
+
{
|
|
5130
|
+
className: yt(Se.modal, Se[t]),
|
|
5131
|
+
style: { height: i, width: r, zIndex: c, ...o },
|
|
5132
|
+
initial: { opacity: 0, scale: 0.95 },
|
|
5133
|
+
animate: { opacity: 1, scale: 1 },
|
|
5134
|
+
exit: { opacity: 0, scale: 0.95 },
|
|
5135
|
+
children: a
|
|
5136
|
+
}
|
|
5137
|
+
)
|
|
5118
5138
|
] }) }) }) : null });
|
|
5119
5139
|
}, Sp = ({ children: e }) => /* @__PURE__ */ T("div", { className: Se["modal-content"], children: e }), Tp = ({ children: e }) => {
|
|
5120
5140
|
const { onClose: t } = z(Ir);
|
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)}},[t]),A.jsx(Sh,{isPresent:t,childRef:i,sizeRef:r,children:G.cloneElement(e,{ref:i})})}const Th=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const u=Wi(Ph),a=I.useId(),l=I.useCallback(d=>{u.set(d,!0);for(const f of u.values())if(!f)return;i&&i()},[u,i]),c=I.useMemo(()=>({id:a,initial:t,isPresent:n,custom:r,onExitComplete:l,register:d=>(u.set(d,!1),()=>u.delete(d))}),s?[Math.random(),l]:[n,l]);return I.useMemo(()=>{u.forEach((d,f)=>u.set(f,!1))},[n]),G.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),o==="popLayout"&&(e=A.jsx(Eh,{isPresent:n,children:e})),A.jsx(rn.Provider,{value:c,children:e})};function Ph(){return new Map}const dn=e=>e.key||"";function ba(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const ki=({children:e,exitBeforeEnter:t,custom:n,initial:i=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{Be(!t,"Replace exitBeforeEnter with mode='wait'");const u=I.useMemo(()=>ba(e),[e]),a=u.map(dn),l=I.useRef(!0),c=I.useRef(u),d=Wi(()=>new Map),[f,h]=I.useState(u),[p,g]=I.useState(u);_o(()=>{l.current=!1,c.current=u;for(let C=0;C<p.length;C++){const v=dn(p[C]);a.includes(v)?d.delete(v):d.get(v)!==!0&&d.set(v,!1)}},[p,a.length,a.join("-")]);const m=[];if(u!==f){let C=[...u];for(let v=0;v<p.length;v++){const x=p[v],y=dn(x);a.includes(y)||(C.splice(v,0,x),m.push(x))}o==="wait"&&m.length&&(C=m),g(ba(C)),h(u);return}process.env.NODE_ENV!=="production"&&o==="wait"&&p.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.`);const{forceRender:b}=I.useContext(Ei);return A.jsx(A.Fragment,{children:p.map(C=>{const v=dn(C),x=u===p||a.includes(v),y=()=>{if(d.has(v))d.set(v,!0);else return;let E=!0;d.forEach(T=>{T||(E=!1)}),E&&(b==null||b(),g(c.current),r&&r())};return A.jsx(Th,{isPresent:x,initial:!l.current||i?void 0:!1,custom:x?void 0:n,presenceAffectsLayout:s,mode:o,onExitComplete:x?void 0:y,children:C},v)})})},Vh=e=>{let t=A.jsx(A.Fragment,{});switch(e){case"success":t=A.jsx(qu,{});break;case"info":t=A.jsx(tl,{});break;case"warning":t=A.jsx(nl,{});break;case"error":t=A.jsx(el,{});break}return{icon:t}},wh=e=>{const{id:t,type:n,title:i}=e,{icon:r}=Vh(n),s=4e3,o=Cr(),u=I.useCallback(()=>{o.removeToast(t)},[t,o]);return I.useEffect(()=>{const a=setTimeout(()=>{setTimeout(()=>{u()},1e3)},s);return()=>{clearTimeout(a)}},[]),A.jsx(Gt.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:0,scale:.8},children:A.jsxs("div",{className:qe(Ce.toast,Ce[n]),children:[A.jsx("div",{className:Ce["toast-icon"],children:r}),A.jsx("div",{className:Ce["toast-content"],children:A.jsx("p",{className:Ce["toast-title"],children:i})}),A.jsx("div",{className:Ce["toast-close"],children:A.jsx("button",{type:"button",className:Ce["toast-close-btn"],onClick:u,children:A.jsx("span",{className:Ce["toast-close-btn-icon"],children:A.jsx(il,{})})})})]})},t)};function Fh(e){const{children:t}=e,[n,i]=I.useState(!1);I.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-toast-portal");return n&&r?Oe.createPortal(t,r):Oe.createPortal(t,document.body)}const Bh=e=>{const{toasts:t,toastPosition:n="top-center"}=e;return A.jsx(Fh,{children:A.jsx("div",{className:qe(Ce["toasts-container"],Ce[n]),children:A.jsx(ki,{children:t.map(i=>A.jsx(wh,{id:i.id,type:i.type,title:i.title},i.id))})})})};for(var q=[],zi=0;zi<256;++zi)q.push((zi+256).toString(16).slice(1));function Gh(e,t=0){return(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase()}var fn,Mh=new Uint8Array(16);function Dh(){if(!fn&&(fn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fn(Mh)}var Nh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const va={randomUUID:Nh};function Lh(e,t,n){if(va.randomUUID&&!t&&!e)return va.randomUUID();e=e||{};var i=e.random||(e.rng||Dh)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Gh(i)}function Wh(){return Oe.createPortal(A.jsxs("div",{id:"biznext-ui-portal",children:[A.jsx("div",{id:"biznext-ui-modal-portal"}),A.jsx("div",{id:"biznext-ui-toast-portal"}),A.jsx("div",{id:"biznext-ui-confirm-dialog-portal"})]}),document.body)}function Oh(e){return je({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(e)}const ge={"confirm-dialog":"biznext-ui-4yyscqDACxw-e","confirm-dialog-overlay":"biznext-ui-ylpaWxEFaTU-c","confirm-dialog-content":"biznext-ui-xwshXokj5ZA-c","confirm-dialog-body":"biznext-ui-K3-i0eWEQi8-2","confirm-dialog-icon-container":"biznext-ui-W86o6InrK1E-5","confirm-dialog-icon":"biznext-ui-PSIKxZhvjyo-3","confirm-dialog-footer":"biznext-ui-ffcW632vEe0-7","confirm-dialog-footer-close-btn":"biznext-ui-hDNTUYM-ra0-8","confirm-dialog-footer-confirm-btn":"biznext-ui-bFmcSx3W8Rs-6",info:"biznext-ui-wec4qWkj9NU-c",warning:"biznext-ui-mcehjNn9Nl0-9",danger:"biznext-ui-pYq-UQoFMHM-a",success:"biznext-ui-bgVORylkzc0-6"};function Rh(e){const{children:t}=e,[n,i]=I.useState(!1);I.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-confirm-dialog-portal");return n&&r?Oe.createPortal(t,r):Oe.createPortal(t,document.body)}const Xh=e=>{const{isOpen:t,onClose:n,config:i}=e,{type:r,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=i,c=()=>{n()},d=()=>{a(),n()};return A.jsx(Rh,{children:A.jsx("div",{className:ge["confirm-dialog-wrapper"],children:A.jsx(ki,{children:t&&A.jsx(Gt.div,{className:ge["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:A.jsx(Gt.div,{className:qe(ge["confirm-dialog"],ge[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:A.jsxs("div",{className:ge["confirm-dialog-content"],children:[A.jsxs("div",{className:ge["confirm-dialog-body"],children:[A.jsx("div",{className:ge["confirm-dialog-icon-container"],children:A.jsx("div",{className:ge["confirm-dialog-icon"],children:u||A.jsx(Oh,{})})}),A.jsxs("div",{children:[A.jsx("h2",{children:s}),A.jsx("p",{children:o})]})]}),A.jsxs("div",{className:ge["confirm-dialog-footer"],children:[A.jsx("button",{type:"button",className:ge["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),A.jsx("button",{type:"button",className:ge["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},ya=I.createContext({}),Zh=({children:e,toastPosition:t})=>{const n={toasts:[]},[i,r]=I.useReducer(ku,n),s=(v,x,y)=>{const E=Lh();r({type:"ADD_TOAST",payload:{id:E,title:x,type:v,config:y}})},d={success:(v,x)=>{s("success",v,x)},warning:(v,x)=>{s("warning",v,x)},info:(v,x)=>{s("info",v,x)},error:(v,x)=>{s("error",v,x)},removeToast:v=>{r({type:"DELETE_TOAST",payload:{id:v,title:"",type:""}})}},[f,h]=I.useState({}),[p,g]=I.useState(!1),m=v=>{h(v),g(!0)},b=()=>{g(!1)},C=m;return A.jsx(Ir.Provider,{value:d,children:A.jsxs(ya.Provider,{value:C,children:[A.jsx(Wh,{}),A.jsx(Bh,{toasts:i.toasts,toastPosition:t}),A.jsx(Xh,{isOpen:p,onClose:b,config:f}),e]})})},be={"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 Hh(e){return je({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:[]}]})(e)}function kh(e){const{children:t}=e,[n,i]=I.useState(!1);I.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?Oe.createPortal(t,r):Oe.createPortal(t,document.body)}const ji=I.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ct=e=>{const{type:t,index:n,height:i,width:r,sx:s,isOpen:o,onClose:u,children:a}=e,l=9999+(n||0),[c,d]=I.useState(!1);return I.useEffect(()=>{d(!0)},[]),A.jsx(ji.Provider,{value:{onClose:u},children:c?A.jsx(kh,{children:A.jsx(ki,{children:o&&A.jsxs("div",{className:be["modal-wrapper"],children:[A.jsx(Gt.div,{className:be["modal-overlay"],style:{zIndex:l},onClick:u}),A.jsx(Gt.div,{className:qe(be.modal,be[t]),style:{height:i,width:r,zIndex:l,...s},children:a})]})})}):null})},zh=({children:e})=>A.jsx("div",{className:be["modal-content"],children:e}),jh=({children:e})=>{const{onClose:t}=I.useContext(ji);return A.jsxs("header",{id:"handle",className:be["modal-header"],children:[e,A.jsx("button",{type:"button",className:be["module-header-close-btn"],onClick:t,children:A.jsx(Hh,{})})]})},Yh=({children:e})=>A.jsx("h2",{className:be["modal-title"],children:e}),Jh=({children:e})=>A.jsx("div",{className:be["modal-body"],children:e}),Uh=e=>{const{children:t,closeTitle:n}=e,{onClose:i}=I.useContext(ji);return A.jsxs("footer",{className:be["modal-footer"],children:[t,A.jsx("button",{type:"button",className:be["modal-footer-close-btn"],onClick:i,children:n||"Cancel"})]})};ct.Content=zh,ct.Header=jh,ct.Title=Yh,ct.Body=Jh,ct.Footer=Uh;const _h=()=>I.useContext(ya),ve={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(e){"@babel/helpers - typeof";return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(e)}function Qh(e,t){if($e(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if($e(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ia(e){var t=Qh(e,"string");return $e(t)=="symbol"?t:t+""}function Mt(e,t,n){return(t=Ia(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(i){Mt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function $h(e){if(Array.isArray(e))return e}function Kh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=s.call(n)).done)&&(u.push(i.value),u.length!==t);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 Yi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xa(e,t){if(e){if(typeof e=="string")return Yi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(e,t):void 0}}function qh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
`),()=>{document.head.removeChild(c)}},[t]),A.jsx(Sh,{isPresent:t,childRef:i,sizeRef:r,children:G.cloneElement(e,{ref:i})})}const Th=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const u=Wi(Ph),a=I.useId(),l=I.useCallback(d=>{u.set(d,!0);for(const f of u.values())if(!f)return;i&&i()},[u,i]),c=I.useMemo(()=>({id:a,initial:t,isPresent:n,custom:r,onExitComplete:l,register:d=>(u.set(d,!1),()=>u.delete(d))}),s?[Math.random(),l]:[n,l]);return I.useMemo(()=>{u.forEach((d,f)=>u.set(f,!1))},[n]),G.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),o==="popLayout"&&(e=A.jsx(Eh,{isPresent:n,children:e})),A.jsx(rn.Provider,{value:c,children:e})};function Ph(){return new Map}const dn=e=>e.key||"";function ba(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const ki=({children:e,exitBeforeEnter:t,custom:n,initial:i=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{Be(!t,"Replace exitBeforeEnter with mode='wait'");const u=I.useMemo(()=>ba(e),[e]),a=u.map(dn),l=I.useRef(!0),c=I.useRef(u),d=Wi(()=>new Map),[f,h]=I.useState(u),[p,g]=I.useState(u);_o(()=>{l.current=!1,c.current=u;for(let C=0;C<p.length;C++){const v=dn(p[C]);a.includes(v)?d.delete(v):d.get(v)!==!0&&d.set(v,!1)}},[p,a.length,a.join("-")]);const m=[];if(u!==f){let C=[...u];for(let v=0;v<p.length;v++){const x=p[v],y=dn(x);a.includes(y)||(C.splice(v,0,x),m.push(x))}o==="wait"&&m.length&&(C=m),g(ba(C)),h(u);return}process.env.NODE_ENV!=="production"&&o==="wait"&&p.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.`);const{forceRender:b}=I.useContext(Ei);return A.jsx(A.Fragment,{children:p.map(C=>{const v=dn(C),x=u===p||a.includes(v),y=()=>{if(d.has(v))d.set(v,!0);else return;let E=!0;d.forEach(T=>{T||(E=!1)}),E&&(b==null||b(),g(c.current),r&&r())};return A.jsx(Th,{isPresent:x,initial:!l.current||i?void 0:!1,custom:x?void 0:n,presenceAffectsLayout:s,mode:o,onExitComplete:x?void 0:y,children:C},v)})})},Vh=e=>{let t=A.jsx(A.Fragment,{});switch(e){case"success":t=A.jsx(qu,{});break;case"info":t=A.jsx(tl,{});break;case"warning":t=A.jsx(nl,{});break;case"error":t=A.jsx(el,{});break}return{icon:t}},wh=e=>{const{id:t,type:n,title:i}=e,{icon:r}=Vh(n),s=4e3,o=Cr(),u=I.useCallback(()=>{o.removeToast(t)},[t,o]);return I.useEffect(()=>{const a=setTimeout(()=>{setTimeout(()=>{u()},1e3)},s);return()=>{clearTimeout(a)}},[]),A.jsx(Gt.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:0,scale:.8},children:A.jsxs("div",{className:qe(Ce.toast,Ce[n]),children:[A.jsx("div",{className:Ce["toast-icon"],children:r}),A.jsx("div",{className:Ce["toast-content"],children:A.jsx("p",{className:Ce["toast-title"],children:i})}),A.jsx("div",{className:Ce["toast-close"],children:A.jsx("button",{type:"button",className:Ce["toast-close-btn"],onClick:u,children:A.jsx("span",{className:Ce["toast-close-btn-icon"],children:A.jsx(il,{})})})})]})},t)};function Fh(e){const{children:t}=e,[n,i]=I.useState(!1);I.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-toast-portal");return n&&r?Oe.createPortal(t,r):Oe.createPortal(t,document.body)}const Bh=e=>{const{toasts:t,toastPosition:n="top-center"}=e;return A.jsx(Fh,{children:A.jsx("div",{className:qe(Ce["toasts-container"],Ce[n]),children:A.jsx(ki,{children:t.map(i=>A.jsx(wh,{id:i.id,type:i.type,title:i.title},i.id))})})})};for(var q=[],zi=0;zi<256;++zi)q.push((zi+256).toString(16).slice(1));function Gh(e,t=0){return(q[e[t+0]]+q[e[t+1]]+q[e[t+2]]+q[e[t+3]]+"-"+q[e[t+4]]+q[e[t+5]]+"-"+q[e[t+6]]+q[e[t+7]]+"-"+q[e[t+8]]+q[e[t+9]]+"-"+q[e[t+10]]+q[e[t+11]]+q[e[t+12]]+q[e[t+13]]+q[e[t+14]]+q[e[t+15]]).toLowerCase()}var fn,Mh=new Uint8Array(16);function Dh(){if(!fn&&(fn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fn(Mh)}var Nh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const va={randomUUID:Nh};function Lh(e,t,n){if(va.randomUUID&&!t&&!e)return va.randomUUID();e=e||{};var i=e.random||(e.rng||Dh)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Gh(i)}function Wh(){return Oe.createPortal(A.jsxs("div",{id:"biznext-ui-portal",children:[A.jsx("div",{id:"biznext-ui-modal-portal"}),A.jsx("div",{id:"biznext-ui-toast-portal"}),A.jsx("div",{id:"biznext-ui-confirm-dialog-portal"})]}),document.body)}function Oh(e){return je({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(e)}const ge={"confirm-dialog":"biznext-ui-4yyscqDACxw-e","confirm-dialog-overlay":"biznext-ui-ylpaWxEFaTU-c","confirm-dialog-content":"biznext-ui-xwshXokj5ZA-c","confirm-dialog-body":"biznext-ui-K3-i0eWEQi8-2","confirm-dialog-icon-container":"biznext-ui-W86o6InrK1E-5","confirm-dialog-icon":"biznext-ui-PSIKxZhvjyo-3","confirm-dialog-footer":"biznext-ui-ffcW632vEe0-7","confirm-dialog-footer-close-btn":"biznext-ui-hDNTUYM-ra0-8","confirm-dialog-footer-confirm-btn":"biznext-ui-bFmcSx3W8Rs-6",info:"biznext-ui-wec4qWkj9NU-c",warning:"biznext-ui-mcehjNn9Nl0-9",danger:"biznext-ui-pYq-UQoFMHM-a",success:"biznext-ui-bgVORylkzc0-6"};function Rh(e){const{children:t}=e,[n,i]=I.useState(!1);I.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-confirm-dialog-portal");return n&&r?Oe.createPortal(t,r):Oe.createPortal(t,document.body)}const Xh=e=>{const{isOpen:t,onClose:n,config:i}=e,{type:r,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=i,c=()=>{n()},d=()=>{a(),n()};return A.jsx(Rh,{children:A.jsx("div",{className:ge["confirm-dialog-wrapper"],children:A.jsx(ki,{children:t&&A.jsx(Gt.div,{className:ge["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:A.jsx(Gt.div,{className:qe(ge["confirm-dialog"],ge[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:A.jsxs("div",{className:ge["confirm-dialog-content"],children:[A.jsxs("div",{className:ge["confirm-dialog-body"],children:[A.jsx("div",{className:ge["confirm-dialog-icon-container"],children:A.jsx("div",{className:ge["confirm-dialog-icon"],children:u||A.jsx(Oh,{})})}),A.jsxs("div",{children:[A.jsx("h2",{children:s}),A.jsx("p",{children:o})]})]}),A.jsxs("div",{className:ge["confirm-dialog-footer"],children:[A.jsx("button",{type:"button",className:ge["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),A.jsx("button",{type:"button",className:ge["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},ya=I.createContext({}),Zh=({children:e,toastPosition:t})=>{const n={toasts:[]},[i,r]=I.useReducer(ku,n),s=(v,x,y)=>{const E=Lh();r({type:"ADD_TOAST",payload:{id:E,title:x,type:v,config:y}})},d={success:(v,x)=>{s("success",v,x)},warning:(v,x)=>{s("warning",v,x)},info:(v,x)=>{s("info",v,x)},error:(v,x)=>{s("error",v,x)},removeToast:v=>{r({type:"DELETE_TOAST",payload:{id:v,title:"",type:""}})}},[f,h]=I.useState({}),[p,g]=I.useState(!1),m=v=>{h(v),g(!0)},b=()=>{g(!1)},C=m;return A.jsx(Ir.Provider,{value:d,children:A.jsxs(ya.Provider,{value:C,children:[A.jsx(Wh,{}),A.jsx(Bh,{toasts:i.toasts,toastPosition:t}),A.jsx(Xh,{isOpen:p,onClose:b,config:f}),e]})})},be={"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 Hh(e){return je({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:[]}]})(e)}function kh(e){const{children:t}=e,[n,i]=I.useState(!1);I.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?Oe.createPortal(t,r):Oe.createPortal(t,document.body)}const ji=I.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ct=e=>{const{type:t,index:n,height:i,width:r,sx:s,isOpen:o,onClose:u,children:a}=e,l=9999+(n||0),[c,d]=I.useState(!1);return I.useEffect(()=>{d(!0)},[]),A.jsx(ji.Provider,{value:{onClose:u},children:c?A.jsx(kh,{children:A.jsx(ki,{children:o&&A.jsxs("div",{className:be["modal-wrapper"],children:[A.jsx(Gt.div,{className:be["modal-overlay"],style:{zIndex:l},onClick:u,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),A.jsx(Gt.div,{className:qe(be.modal,be[t]),style:{height:i,width:r,zIndex:l,...s},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})]})})}):null})},zh=({children:e})=>A.jsx("div",{className:be["modal-content"],children:e}),jh=({children:e})=>{const{onClose:t}=I.useContext(ji);return A.jsxs("header",{id:"handle",className:be["modal-header"],children:[e,A.jsx("button",{type:"button",className:be["module-header-close-btn"],onClick:t,children:A.jsx(Hh,{})})]})},Yh=({children:e})=>A.jsx("h2",{className:be["modal-title"],children:e}),Jh=({children:e})=>A.jsx("div",{className:be["modal-body"],children:e}),Uh=e=>{const{children:t,closeTitle:n}=e,{onClose:i}=I.useContext(ji);return A.jsxs("footer",{className:be["modal-footer"],children:[t,A.jsx("button",{type:"button",className:be["modal-footer-close-btn"],onClick:i,children:n||"Cancel"})]})};ct.Content=zh,ct.Header=jh,ct.Title=Yh,ct.Body=Jh,ct.Footer=Uh;const _h=()=>I.useContext(ya),ve={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(e){"@babel/helpers - typeof";return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(e)}function Qh(e,t){if($e(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if($e(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ia(e){var t=Qh(e,"string");return $e(t)=="symbol"?t:t+""}function Mt(e,t,n){return(t=Ia(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ca(Object(n),!0).forEach(function(i){Mt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function $h(e){if(Array.isArray(e))return e}function Kh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=s.call(n)).done)&&(u.push(i.value),u.length!==t);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 Yi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xa(e,t){if(e){if(typeof e=="string")return Yi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(e,t):void 0}}function qh(){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 Ne(e,t){return $h(e)||Kh(e,t)||xa(e,t)||qh()}function ep(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}function Le(e,t){if(e==null)return{};var n,i,r=ep(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var tp=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function np(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,s=e.defaultValue,o=s===void 0?null:s,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,p=Le(e,tp),g=I.useState(u!==void 0?u:n),m=Ne(g,2),b=m[0],C=m[1],v=I.useState(a!==void 0?a:r),x=Ne(v,2),y=x[0],E=x[1],T=I.useState(h!==void 0?h:o),S=Ne(T,2),M=S[0],L=S[1],k=I.useCallback(function(Z,ue){typeof l=="function"&&l(Z,ue),L(Z)},[l]),J=I.useCallback(function(Z,ue){var re;typeof c=="function"&&(re=c(Z,ue)),C(re!==void 0?re:Z)},[c]),fe=I.useCallback(function(){typeof f=="function"&&f(),E(!0)},[f]),ae=I.useCallback(function(){typeof d=="function"&&d(),E(!1)},[d]),U=u!==void 0?u:b,j=a!==void 0?a:y,X=h!==void 0?h:M;return w(w({},p),{},{inputValue:U,menuIsOpen:j,onChange:k,onInputChange:J,onMenuClose:ae,onMenuOpen:fe,value:X})}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},B.apply(null,arguments)}function ip(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aa(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ia(i.key),i)}}function rp(e,t,n){return t&&Aa(e.prototype,t),n&&Aa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ji(e,t){return Ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ji(e,t)}function sp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ji(e,t)}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hn(e)}function Sa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sa=function(){return!!e})()}function op(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ap(e,t){if(t&&($e(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return op(e)}function up(e){var t=Sa();return function(){var n,i=hn(e);if(t){var r=hn(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ap(this,n)}}function lp(e){if(Array.isArray(e))return Yi(e)}function cp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dp(){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 Ui(e){return lp(e)||cp(e)||xa(e)||dp()}var fp=!1;function hp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function pp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var mp=function(){function e(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?!fp: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 t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(pp(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=hp(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},e}(),ie="-ms-",pn="-moz-",D="-webkit-",Ea="comm",_i="rule",Qi="decl",gp="@import",Ta="@keyframes",bp="@layer",vp=Math.abs,mn=String.fromCharCode,yp=Object.assign;function Ip(e,t){return ee(e,0)^45?(((t<<2^ee(e,0))<<2^ee(e,1))<<2^ee(e,2))<<2^ee(e,3):0}function Pa(e){return e.trim()}function Cp(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,n){return e.replace(t,n)}function $i(e,t){return e.indexOf(t)}function ee(e,t){return e.charCodeAt(t)|0}function Dt(e,t,n){return e.slice(t,n)}function Ee(e){return e.length}function Ki(e){return e.length}function gn(e,t){return t.push(e),e}function xp(e,t){return e.map(t).join("")}var bn=1,dt=1,Va=0,oe=0,Q=0,ft="";function vn(e,t,n,i,r,s,o){return{value:e,root:t,parent:n,type:i,props:r,children:s,line:bn,column:dt,length:o,return:""}}function Nt(e,t){return yp(vn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ap(){return Q}function Sp(){return Q=oe>0?ee(ft,--oe):0,dt--,Q===10&&(dt=1,bn--),Q}function de(){return Q=oe<Va?ee(ft,oe++):0,dt++,Q===10&&(dt=1,bn++),Q}function Te(){return ee(ft,oe)}function yn(){return oe}function Lt(e,t){return Dt(ft,e,t)}function Wt(e){switch(e){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 wa(e){return bn=dt=1,Va=Ee(ft=e),oe=0,[]}function Fa(e){return ft="",e}function In(e){return Pa(Lt(oe-1,qi(e===91?e+2:e===40?e+1:e)))}function Ep(e){for(;(Q=Te())&&Q<33;)de();return Wt(e)>2||Wt(Q)>3?"":" "}function Tp(e,t){for(;--t&&de()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return Lt(e,yn()+(t<6&&Te()==32&&de()==32))}function qi(e){for(;de();)switch(Q){case e:return oe;case 34:case 39:e!==34&&e!==39&&qi(Q);break;case 40:e===41&&qi(e);break;case 92:de();break}return oe}function Pp(e,t){for(;de()&&e+Q!==57;)if(e+Q===84&&Te()===47)break;return"/*"+Lt(t,oe-1)+"*"+mn(e===47?e:de())}function Vp(e){for(;!Wt(Te());)de();return Lt(e,oe)}function wp(e){return Fa(Cn("",null,null,null,[""],e=wa(e),0,[0],e))}function Cn(e,t,n,i,r,s,o,u,a){for(var l=0,c=0,d=o,f=0,h=0,p=0,g=1,m=1,b=1,C=0,v="",x=r,y=s,E=i,T=v;m;)switch(p=C,C=de()){case 40:if(p!=108&&ee(T,d-1)==58){$i(T+=N(In(C),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=In(C);break;case 9:case 10:case 13:case 32:T+=Ep(p);break;case 92:T+=Tp(yn()-1,7);continue;case 47:switch(Te()){case 42:case 47:gn(Fp(Pp(de(),yn()),t,n),a);break;default:T+="/"}break;case 123*g:u[l++]=Ee(T)*b;case 125*g:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+c:b==-1&&(T=N(T,/\f/g,"")),h>0&&Ee(T)-d&&gn(h>32?Ga(T+";",i,n,d-1):Ga(N(T," ","")+";",i,n,d-2),a);break;case 59:T+=";";default:if(gn(E=Ba(T,t,n,l,c,r,u,v,x=[],y=[],d),s),C===123)if(c===0)Cn(T,t,E,E,x,s,d,u,y);else switch(f===99&&ee(T,3)===110?100:f){case 100:case 108:case 109:case 115:Cn(e,E,E,i&&gn(Ba(e,E,E,0,0,r,u,v,r,x=[],d),y),r,y,d,u,i?x:y);break;default:Cn(T,E,E,E,[""],y,0,u,y)}}l=c=h=0,g=b=1,v=T="",d=o;break;case 58:d=1+Ee(T),h=p;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&Sp()==125)continue}switch(T+=mn(C),C*g){case 38:b=c>0?1:(T+="\f",-1);break;case 44:u[l++]=(Ee(T)-1)*b,b=1;break;case 64:Te()===45&&(T+=In(de())),f=Te(),c=d=Ee(v=T+=Vp(yn())),C++;break;case 45:p===45&&Ee(T)==2&&(g=0)}}return s}function Ba(e,t,n,i,r,s,o,u,a,l,c){for(var d=r-1,f=r===0?s:[""],h=Ki(f),p=0,g=0,m=0;p<i;++p)for(var b=0,C=Dt(e,d+1,d=vp(g=o[p])),v=e;b<h;++b)(v=Pa(g>0?f[b]+" "+C:N(C,/&\f/g,f[b])))&&(a[m++]=v);return vn(e,t,n,r===0?_i:u,a,l,c)}function Fp(e,t,n){return vn(e,t,n,Ea,mn(Ap()),Dt(e,2,-2),0)}function Ga(e,t,n,i){return vn(e,t,n,Qi,Dt(e,0,i),Dt(e,i+1,-1),i)}function ht(e,t){for(var n="",i=Ki(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function Bp(e,t,n,i){switch(e.type){case bp:if(e.children.length)break;case gp:case Qi:return e.return=e.return||e.value;case Ea:return"";case Ta:return e.return=e.value+"{"+ht(e.children,i)+"}";case _i:e.value=e.props.join(",")}return Ee(n=ht(e.children,i))?e.return=e.value+"{"+n+"}":""}function Gp(e){var t=Ki(e);return function(n,i,r,s){for(var o="",u=0;u<t;u++)o+=e[u](n,i,r,s)||"";return o}}function Mp(e){return function(t){t.root||(t=t.return)&&e(t)}}function Dp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Np=function(t,n,i){for(var r=0,s=0;r=s,s=Te(),r===38&&s===12&&(n[i]=1),!Wt(s);)de();return Lt(t,oe)},Lp=function(t,n){var i=-1,r=44;do switch(Wt(r)){case 0:r===38&&Te()===12&&(n[i]=1),t[i]+=Np(oe-1,n,i);break;case 2:t[i]+=In(r);break;case 4:if(r===44){t[++i]=Te()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=mn(r)}while(r=de());return t},Wp=function(t,n){return Fa(Lp(wa(t),n))},Ma=new WeakMap,Op=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,r=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ma.get(i))&&!r){Ma.set(t,!0);for(var s=[],o=Wp(n,s),u=i.props,a=0,l=0;a<o.length;a++)for(var c=0;c<u.length;c++,l++)t.props[l]=s[a]?o[a].replace(/&\f/g,u[c]):u[c]+" "+o[a]}}},Rp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Da(e,t){switch(Ip(e,t)){case 5103:return D+"print-"+e+e;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 D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+pn+e+ie+e+e;case 6828:case 4268:return D+e+ie+e+e;case 6165:return D+e+ie+"flex-"+e+e;case 5187:return D+e+N(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return D+e+ie+"flex-item-"+N(e,/flex-|-self/,"")+e;case 4675:return D+e+ie+"flex-line-pack"+N(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+ie+N(e,"shrink","negative")+e;case 5292:return D+e+ie+N(e,"basis","preferred-size")+e;case 6060:return D+"box-"+N(e,"-grow","")+D+e+ie+N(e,"grow","positive")+e;case 4554:return D+N(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,D+"$1$2")+e;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(Ee(e)-1-t>6)switch(ee(e,t+1)){case 109:if(ee(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+pn+(ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$i(e,"stretch")?Da(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ee(e,t+1)!==115)break;case 6444:switch(ee(e,Ee(e)-3-(~$i(e,"!important")&&10))){case 107:return N(e,":",":"+D)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(ee(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(ee(e,t+11)){case 114:return D+e+ie+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+ie+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+ie+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+ie+e+e}return e}var Xp=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case Qi:t.return=Da(t.value,t.length);break;case Ta:return ht([Nt(t,{value:N(t.value,"@","@"+D)})],r);case _i:if(t.length)return xp(t.props,function(s){switch(Cp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ht([Nt(t,{props:[N(s,/:(read-\w+)/,":"+pn+"$1")]})],r);case"::placeholder":return ht([Nt(t,{props:[N(s,/:(plac\w+)/,":"+D+"input-$1")]}),Nt(t,{props:[N(s,/:(plac\w+)/,":"+pn+"$1")]}),Nt(t,{props:[N(s,/:(plac\w+)/,ie+"input-$1")]})],r)}return""})}},Zp=[Xp],Hp=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=t.stylisPlugins||Zp,s={},o,u=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),b=1;b<m.length;b++)s[m[b]]=!0;u.push(g)});var a,l=[Op,Rp];{var c,d=[Bp,Mp(function(g){c.insert(g)})],f=Gp(l.concat(r,d)),h=function(m){return ht(wp(m),f)};a=function(m,b,C,v){c=C,h(m?m+"{"+b.styles+"}":b.styles),v&&(p.inserted[b.name]=!0)}}var p={key:n,sheet:new mp({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return p.sheet.hydrate(u),p},er={exports:{}},W={};/** @license React v16.13.1
|
|
16
16
|
* react-is.production.min.js
|