@woovi/ui 0.0.7 → 0.0.8

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.cjs CHANGED
@@ -1036,7 +1036,7 @@ const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".r
1036
1036
  `,iJ=({header:e,sidebar:t,children:o})=>{let{width:n}=(0,r6.useWindowSize)();return n<600?(0,r.jsxs)(g.Grid,{container:!0,children:[e,t,o]}):(0,r.jsxs)(g.Grid,{container:!0,children:[e,(0,r.jsx)(em,{sx:{flexDirection:"column",mt:"60px",flex:1},children:o})]})},i1=({width:e,height:t="40px",showText:o=!0})=>{let n=o?"#1F6D61":"#fff",i=o?"#4AB7A8":"#fff";return(0,r.jsxs)("svg",{version:"1.1",id:"OpenPixLogo","data-testid":"OpenPixLogo",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:e,height:t,viewBox:"0 0 670.49 140.22",children:[(0,r.jsxs)("g",{fill:o?"#96969A":"#fff",fillRule:"nonzero",id:"open",children:[(0,r.jsx)("polygon",{points:"469.7,34.9 469.6,35.2 469.8,35"}),(0,r.jsx)("path",{d:"M264.8,59.4c0,8.5-1.2,15.9-3.7,22.4c-2.5,6.5-5.8,11.9-10,16.2c-4.2,4.3-9.1,7.6-14.7,9.8 c-5.6,2.2-11.5,3.3-17.8,3.3c-6.3,0-12.2-1.1-17.8-3.3c-5.6-2.2-10.5-5.4-14.7-9.8c-4.2-4.3-7.6-9.7-10-16.2 c-2.5-6.5-3.7-13.9-3.7-22.4c0-8.5,1.2-15.9,3.7-22.3c2.5-6.4,5.8-11.8,10-16.1c4.2-4.3,9.1-7.6,14.7-9.8 c5.6-2.2,11.5-3.3,17.8-3.3c6.3,0,12.2,1.1,17.8,3.3c5.6,2.2,10.5,5.4,14.7,9.8c4.2,4.3,7.6,9.7,10,16.1 C263.5,43.5,264.8,51,264.8,59.4L264.8,59.4z M254.5,59.4c0-6.6-0.9-12.6-2.6-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.4,6.2l7.9,4.3l34,18.6c3.5,1.9,8.2,1.9,11.7,0l33.9-18.6l7.9-4.3l11.4-6.2 c2.8-1.6,4.5-4.1,4.5-6.9C136,44.1,135.6,42.8,134.8,41.6z M122.1,48.8l-9.8,5.4l-7.9,4.3l-26,14.3c-3.5,1.9-8.2,1.9-11.7,0 L40.5,58.5l-7.9-4.3l-9.9-5.4c-2.9-1.6-2.9-5.1,0-6.7l43.8-24c3.5-1.9,8.2-1.9,11.7,0l43.8,24.1C125,43.8,125,47.2,122.1,48.8z"}),(0,r.jsxs)("g",{fill:n,children:[(0,r.jsx)("path",{d:"M65.8,44.1c-3.3-2-6.6-3.9-9.9-5.9c-1.2-0.7-2.4-1.1-3.8-1c-0.8-0.1-1.5,0.1-2.2,0.5 c-3.7,2.2-7.5,4.4-11.3,6.7c-1.4,0.8-1.4,2,0,2.8c3.7,2.1,7.4,4.1,11.1,6.3c2.2,1.3,4.4,1.1,6.6,0c3.2-1.8,6.3-3.7,9.5-5.5 C67.6,46.9,67.6,45.2,65.8,44.1z M58.4,46.4l-5.6,3.1c-0.2,0.1-0.5,0.1-0.8,0l-5.6-3.2c-0.5-0.3-0.5-1.1,0-1.4l5.7-3.2 c0.2-0.1,0.6-0.1,0.8,0l5.5,3.2C58.9,45.4,58.9,46.1,58.4,46.4z"}),(0,r.jsx)("path",{d:"M86.3,56.4L74.1,49c-0.8-0.5-1.7-0.5-2.5,0L59,56.2c-0.9,0.5-0.9,1.8,0,2.3l11.3,6.6c1.5,0.8,3.2,0.8,4.7,0 l11.3-6.5C87.2,58.2,87.2,56.9,86.3,56.4z M78.9,58l-6,3.4c-0.2,0.1-0.4,0.1-0.6,0l-6-3.5c-0.4-0.2-0.4-0.8,0-1.1l5.8-3.3 c0.4-0.2,0.8-0.2,1.1,0L79,57C79.4,57.2,79.4,57.8,78.9,58z"}),(0,r.jsx)("path",{d:"M86.6,33.1l-12.3-7.9c-0.8-0.5-1.8-0.5-2.6,0L59,32.3c-1.2,0.7-1.4,2.6-0.2,3.3l11.9,7c1.2,0.7,2.8,0.7,4,0 l11.8-6.4C87.7,35.5,87.7,33.8,86.6,33.1z M78.6,34.9l-5,2.7c-0.5,0.3-1.2,0.3-1.7,0l-5.1-3c-0.5-0.3-0.4-1.1,0.1-1.4l5.4-3 c0.3-0.2,0.8-0.2,1.1,0l5.3,3.4C79.1,33.9,79.1,34.6,78.6,34.9z"}),(0,r.jsx)("path",{d:"M87.1,52.3l3.5,2.2c0.9,0.7,2.1,0.7,3.1,0.1l3.3-2c0.8-0.5,0.8-1.6,0-2.1l-4-2.5c-0.4-0.2-0.8-0.2-1.2,0 l-4.7,2.6C86.6,50.9,86.5,51.8,87.1,52.3z"}),(0,r.jsx)("path",{d:"M96.7,46.7l3.4,2.2c0.9,0.6,2.1,0.6,3,0.1l3.6-2.2c0.5-0.3,0.6-1.1,0-1.5l-3.7-2.3c-0.7-0.5-1.7-0.5-2.4,0 l-3.8,2.2C96.2,45.5,96.1,46.3,96.7,46.7z"}),(0,r.jsx)("path",{d:"M87.6,41l4.2,2.9c0.7,0.5,1.5,0.5,2.2,0l4.3-2.8c0.4-0.3,0.4-0.8,0-1.1l-4.5-2.8c-0.6-0.4-1.3-0.4-1.9,0 l-4.3,2.6C87.2,40.2,87.2,40.7,87.6,41z"})]})]})]})},i0=({width:e,height:t="40px",color:o="#03D69D"})=>(0,r.jsx)("svg",{id:"WooviLogo","data-testid":"WooviLogo",width:e,height:t,viewBox:"0 0 124 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsxs)("g",{id:"Group",children:[(0,r.jsx)("path",{id:"Vector",d:"M101.243 35.5452C99.1586 35.5452 97.2858 34.3098 96.5084 32.3684L89.4766 15.5312C88.5932 13.4133 90.148 11.1189 92.4095 11.1189C93.7169 11.1189 94.883 11.8955 95.3777 13.1309L101.243 27.709L107.109 13.1309C107.604 11.9308 108.77 11.1189 110.077 11.1189C112.374 11.1189 113.894 13.4486 113.01 15.5312L105.978 32.4037C105.201 34.3098 103.328 35.5452 101.243 35.5452Z",fill:o}),(0,r.jsx)("path",{id:"Vector_2",d:"M122.833 1.16484C123.575 1.9414 123.964 2.82386 123.964 3.8828C123.964 4.94175 123.575 5.8595 122.833 6.56546C122.091 7.27143 121.137 7.62441 120.042 7.62441C118.911 7.62441 117.957 7.27143 117.215 6.56546C116.473 5.8595 116.12 4.94175 116.12 3.8828C116.12 2.82386 116.508 1.9414 117.25 1.16484C117.992 0.38828 118.946 0 120.042 0C121.137 0 122.091 0.38828 122.833 1.16484ZM116.791 32.3331V14.3664C116.791 12.6015 118.24 11.1542 120.007 11.1542C121.773 11.1542 123.222 12.6015 123.222 14.3664V32.2978C123.222 34.0628 121.773 35.51 120.007 35.51C118.24 35.5453 116.791 34.0981 116.791 32.3331Z",fill:o}),(0,r.jsx)("g",{id:"Group_2",children:(0,r.jsx)("path",{id:"Vector_3",d:"M23.8226 35.5453C21.8792 35.5453 20.2184 34.2746 19.7237 32.4391L16.5081 20.5083L13.2572 32.4391C12.7625 34.2746 11.1017 35.5453 9.1936 35.5453C7.32081 35.5453 5.66002 34.3099 5.12998 32.4744L0.112297 14.9665C-0.41774 13.0957 0.995693 11.2249 2.93916 11.2249C4.24659 11.2249 5.41267 12.1073 5.76603 13.378L9.40562 26.5443L12.8332 13.9781C13.2926 12.3544 14.7413 11.2249 16.4374 11.2249C18.1336 11.2249 19.6177 12.3544 20.0417 13.9781L23.4693 26.5443L27.1089 13.378C27.4622 12.1073 28.6283 11.2249 29.9357 11.2249H30.0417C31.9852 11.2249 33.3986 13.0957 32.8686 14.9665L27.8863 32.5097C27.3916 34.3099 25.7308 35.5453 23.8226 35.5453Z",fill:o})}),(0,r.jsx)("path",{id:"Vector_4",d:"M53.7168 25.6265C55.4482 27.3561 57.0383 28.9446 58.6285 30.533C55.0242 34.9453 50.5366 37.6632 44.5648 36.5337C39.0171 35.4747 35.3775 32.0508 33.9287 26.5443C32.4093 20.7201 35.0948 14.6841 40.2892 11.719C45.4835 8.754 51.9853 9.53056 56.261 13.731C61.0313 18.3904 65.6956 23.1557 70.4306 27.8503C72.8688 30.2506 76.4731 30.533 79.0879 28.5916C82.0208 26.4031 82.5508 22.1673 80.2893 19.3082C77.9925 16.449 73.7522 15.9901 70.996 18.3904C70.0419 19.2023 69.2645 20.2259 68.4518 21.1437C66.685 19.3788 65.0949 17.7903 63.5048 16.2019C67.0031 11.8955 71.42 8.96579 77.9925 10.2718C83.4695 11.3308 87.5332 15.8136 88.4519 21.426C89.3353 26.9326 86.4378 32.6156 81.3847 35.2629C76.2257 37.9456 69.9713 37.0278 65.7663 32.898C61.0666 28.2386 56.4023 23.5439 51.7026 18.8846C49.6885 16.8726 46.8616 16.2725 44.3881 17.4021C41.8793 18.5316 40.5012 20.5083 40.4658 23.2969C40.4305 26.0501 41.7026 28.1327 44.2114 29.2975C46.7556 30.4624 49.1585 30.1094 51.2786 28.2739C52.1973 27.4267 52.9394 26.4737 53.7168 25.6265Z",fill:o})]})}),i2="ACTIVE_WAITING_PAYMENT_METHOD",i3="ACTIVE",i4="COMPLETED",i5="DELETED",i6="EXPIRED",i9="OVERDUE",i7={[i3]:"#FF9800",[i5]:"#ff7f50",[i2]:"#FF9800",[i6]:"#ff7f50",[i9]:"#e65100",[i4]:"#4CAF50",SCHEDULED:"rgb(0 149 255)"},i8=d()(nl)`
1037
1037
  background-color: ${e=>i7[e.status]} !important;
1038
1038
  color: white !important;
1039
- `,ae=({label:e,text:t})=>(0,r.jsxs)(em,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,r.jsx)(g.Typography,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof t?(0,r.jsx)(g.Typography,{variant:"h6",sx:{overflowWrap:"anywhere"},children:t}):t]}),at=({charge:e})=>{let{t}=(0,ek.useTranslation)();return!e.additionalInfo||e.additionalInfo.length<=0?null:e?.additionalInfo?.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(em,{sx:{justifyContent:"center",mb:"18px"},children:(0,r.jsx)(g.Typography,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:t("Additional information")})}),e.additionalInfo?.map(e=>(0,r.jsx)(ae,{label:e?.key,text:e?.value},e?.key))]}):null};var ar="0.0.7";let ao=({children:e,heading:t,secondaryHeading:o,primaryAction:n,primaryActionLabel:i,primaryActionProps:a,payAsGuestAction:l=null,payAsGuestActionLabel:s=null,payAsGuestActionProps:c=null,secondaryAction:d=null,secondaryActionLabel:p=null,secondaryActionProps:u=null,renderFooter:x=null,isTemp:h=!1,withCard:m=!0})=>{let f=ii(),_=()=>(0,r.jsxs)(g.Stack,{sx:{gap:2},flexDirection:"column",children:[(0,r.jsx)(i0,{}),(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",justifyContent:"center"},children:[(0,r.jsx)(g.Typography,{variant:"h5",color:"secondary",align:"center",children:t}),o&&(0,r.jsx)(g.Typography,{color:"secondary",textAlign:"center",children:o})]})]}),C=()=>(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column"},children:[(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",gap:1},children:[e,n?(0,r.jsx)(g.Stack,{children:(0,r.jsx)(D,{fullWidth:!0,endIcon:(0,r.jsx)(eM.KeyboardArrowRight,{htmlColor:"#fff",fontSize:"large"}),height:42,onClick:n,...a,children:(0,r.jsx)(g.Typography,{color:"#FFF",fontSize:18,fontWeight:600,children:i})})}):null,l?(0,r.jsx)(g.Stack,{sx:{ml:"-8px"},children:(0,r.jsx)(D,{fullWidth:!0,variant:"outlined",color:"secondary",endIcon:(0,r.jsx)(eM.KeyboardArrowRight,{htmlColor:"#607389",fontSize:"large"}),height:42,onClick:l,...c,children:(0,r.jsx)(g.Typography,{color:"#607389",fontSize:18,fontWeight:600,children:s})})}):null,d||p||u?(0,r.jsx)(g.Stack,{sx:{justifyContent:"center"},children:(0,r.jsx)(D,{color:"secondary",variant:"none",onClick:d,...u,children:(0,r.jsx)(g.Typography,{color:f?.palette?.primary?.light,fontSize:18,children:p})})}):null]}),(0,r.jsx)(g.Divider,{light:!0}),(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,py:2},children:[x&&x(),(0,r.jsxs)(g.Stack,{sx:{justifyContent:"center",alignItems:"center",width:"100%"},children:[(0,r.jsx)(tG,{}),(0,r.jsxs)(g.Typography,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:f.palette.grey[400]},children:["(v",ar,")"]})]})]})]});return m?(0,r.jsxs)(eg,{sx:{display:"flex",flexDirection:"column",width:"464px",minHeight:"500px",align:"center",justifyContent:"center",padding:4},children:[_(),C()]}):(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",width:"464px",alignItems:"center",minHeight:"500px",padding:4},children:[_(),C()]})},an={[nR]:"#FF9800",[nI]:"#4CAF50",[nD]:"#ff7f50",[nA]:"#ff0000",[nP]:"#ff0000",[nO]:"#4CAF50",[nN]:"#4CAF50",[nL]:"#4CAF50"},ai=d()(nl)`
1039
+ `,ae=({label:e,text:t})=>(0,r.jsxs)(em,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,r.jsx)(g.Typography,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof t?(0,r.jsx)(g.Typography,{variant:"h6",sx:{overflowWrap:"anywhere"},children:t}):t]}),at=({charge:e})=>{let{t}=(0,ek.useTranslation)();return!e.additionalInfo||e.additionalInfo.length<=0?null:e?.additionalInfo?.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(em,{sx:{justifyContent:"center",mb:"18px"},children:(0,r.jsx)(g.Typography,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:t("Additional information")})}),e.additionalInfo?.map(e=>(0,r.jsx)(ae,{label:e?.key,text:e?.value},e?.key))]}):null};var ar="0.0.8";let ao=({children:e,heading:t,secondaryHeading:o,primaryAction:n,primaryActionLabel:i,primaryActionProps:a,payAsGuestAction:l=null,payAsGuestActionLabel:s=null,payAsGuestActionProps:c=null,secondaryAction:d=null,secondaryActionLabel:p=null,secondaryActionProps:u=null,renderFooter:x=null,isTemp:h=!1,withCard:m=!0})=>{let f=ii(),_=()=>(0,r.jsxs)(g.Stack,{sx:{gap:2},flexDirection:"column",children:[(0,r.jsx)(i0,{}),(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",justifyContent:"center"},children:[(0,r.jsx)(g.Typography,{variant:"h5",color:"secondary",align:"center",children:t}),o&&(0,r.jsx)(g.Typography,{color:"secondary",textAlign:"center",children:o})]})]}),C=()=>(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column"},children:[(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",gap:1},children:[e,n?(0,r.jsx)(g.Stack,{children:(0,r.jsx)(D,{fullWidth:!0,endIcon:(0,r.jsx)(eM.KeyboardArrowRight,{htmlColor:"#fff",fontSize:"large"}),height:42,onClick:n,...a,children:(0,r.jsx)(g.Typography,{color:"#FFF",fontSize:18,fontWeight:600,children:i})})}):null,l?(0,r.jsx)(g.Stack,{sx:{ml:"-8px"},children:(0,r.jsx)(D,{fullWidth:!0,variant:"outlined",color:"secondary",endIcon:(0,r.jsx)(eM.KeyboardArrowRight,{htmlColor:"#607389",fontSize:"large"}),height:42,onClick:l,...c,children:(0,r.jsx)(g.Typography,{color:"#607389",fontSize:18,fontWeight:600,children:s})})}):null,d||p||u?(0,r.jsx)(g.Stack,{sx:{justifyContent:"center"},children:(0,r.jsx)(D,{color:"secondary",variant:"none",onClick:d,...u,children:(0,r.jsx)(g.Typography,{color:f?.palette?.primary?.light,fontSize:18,children:p})})}):null]}),(0,r.jsx)(g.Divider,{light:!0}),(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,py:2},children:[x&&x(),(0,r.jsxs)(g.Stack,{sx:{justifyContent:"center",alignItems:"center",width:"100%"},children:[(0,r.jsx)(tG,{}),(0,r.jsxs)(g.Typography,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:f.palette.grey[400]},children:["(v",ar,")"]})]})]})]});return m?(0,r.jsxs)(eg,{sx:{display:"flex",flexDirection:"column",width:"464px",minHeight:"500px",align:"center",justifyContent:"center",padding:4},children:[_(),C()]}):(0,r.jsxs)(g.Stack,{sx:{flexDirection:"column",width:"464px",alignItems:"center",minHeight:"500px",padding:4},children:[_(),C()]})},an={[nR]:"#FF9800",[nI]:"#4CAF50",[nD]:"#ff7f50",[nA]:"#ff0000",[nP]:"#ff0000",[nO]:"#4CAF50",[nN]:"#4CAF50",[nL]:"#4CAF50"},ai=d()(nl)`
1040
1040
  background-color: ${e=>an[e.status]} !important;
1041
1041
  color: white !important;
1042
1042
  `,aa=(e,t)=>{if(e<1)return[];let r=Array(e).fill("");if(t){let o=t.trim().split("");for(let t=0;t<Math.min(e,o.length);t+=1)r[t]=o[t]}return r},al={number:/^[0-9]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i},as=(0,L.forwardRef)(({name:e,length:t=6,type:o="alphanumeric",placeholder:n="",manageFocus:i=!0,error:a,disabled:l,autoFocus:s,onComplete:c,onChange:d},p)=>{let[u,x]=(0,L.useState)(-1),{t:h}=(0,ek.useTranslation)(),[m,f]=(0,L.useState)(""),[_,C]=(0,L.useState)(null),b=(0,L.useRef)([]),y=e=>{let t=o instanceof RegExp?o:o in al?al[o]:null;return t?.test(e)},w=(e,r)=>{if(i){if("next"===e){let e=r+1;b.current[e<t?e:r].focus()}if("prev"===e){let e=r-1;b.current[e>-1?e:r].focus()}}},v=(e,r)=>{let o=[...aa(t,m)];o[r]=e;let n=o.join("");f(n),d&&d(n),r===t-1&&(n.length===t&&n.replaceAll(" ","").length===t?C(null):C(h("Code must be {{ size }} digits",{size:t})))},j=()=>{x(-1)},k=e=>{e.preventDefault();let t=e.clipboardData.getData("Text");y(t)&&(f(t),d&&d(t))};return(0,L.useEffect)(()=>{m.length===t&&c?.(m)},[m]),(0,L.useEffect)(()=>{e&&f("")},[e]),(0,r.jsxs)(em,{sx:{flexDirection:"column"},children:[(0,r.jsxs)(em,{sx:{gap:1},ref:p,children:[aa(t,m).map((t,o)=>(0,r.jsx)(g.TextField,{id:`${e}-${o+1}`,name:`${e}-${o}`,inputProps:{"data-testid":`code-input-${o+1}`},inputRef:e=>{b.current[o]=e},onChange:e=>{var t,r;let n,i;return t=e,r=o,i=(n=t.target.value).length>1?n.split("")[n.length-1]:n,void(y(i)?(v(i,r),w("next",r)):v("",r))},onKeyDown:e=>{var t,r;return t=e,r=o,void("Backspace"===t.key&&(""!==t.target.value?v("",r):w("prev",r)))},onFocus:e=>{var t,r;return t=e,r=o,void(t.target.select(),x(r))},onBlur:j,onPaste:k,error:a,disabled:l,placeholder:u===o?"":n,value:t,autoFocus:s&&0===o,size:"small",sx:{width:"40px"}},`${e}-${o}`)),(0,r.jsx)("input",{type:"hidden",name:e,value:m})]}),!!_&&(0,r.jsx)(g.Typography,{sx:{fontWeight:"400",fontSize:"0.64rem",paddingLeft:"10px"},color:"error",children:_})]})}),ac=e=>{let{name:t,...o}=e,[n]=(0,t0.useField)(t);return(0,r.jsx)(as,{...n,...o})},ad=require("react-error-boundary"),ap="staging",au="production",ax=d().div`
package/dist/index.js CHANGED
@@ -1036,7 +1036,7 @@ let e,t;import*as r from"react-json-view";import*as i from"react";import{__webpa
1036
1036
  `,l4=({header:e,sidebar:t,children:r})=>{let{width:i}=t_();return i<600?l(V,{container:!0,children:[e,t,r]}):l(V,{container:!0,children:[e,a(i2,{sx:{flexDirection:"column",mt:"60px",flex:1},children:r})]})},l5=({width:e,height:t="40px",showText:r=!0})=>{let i=r?"#1F6D61":"#fff",n=r?"#4AB7A8":"#fff";return l("svg",{version:"1.1",id:"OpenPixLogo","data-testid":"OpenPixLogo",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:e,height:t,viewBox:"0 0 670.49 140.22",children:[l("g",{fill:r?"#96969A":"#fff",fillRule:"nonzero",id:"open",children:[a("polygon",{points:"469.7,34.9 469.6,35.2 469.8,35"}),a("path",{d:"M264.8,59.4c0,8.5-1.2,15.9-3.7,22.4c-2.5,6.5-5.8,11.9-10,16.2c-4.2,4.3-9.1,7.6-14.7,9.8 c-5.6,2.2-11.5,3.3-17.8,3.3c-6.3,0-12.2-1.1-17.8-3.3c-5.6-2.2-10.5-5.4-14.7-9.8c-4.2-4.3-7.6-9.7-10-16.2 c-2.5-6.5-3.7-13.9-3.7-22.4c0-8.5,1.2-15.9,3.7-22.3c2.5-6.4,5.8-11.8,10-16.1c4.2-4.3,9.1-7.6,14.7-9.8 c5.6-2.2,11.5-3.3,17.8-3.3c6.3,0,12.2,1.1,17.8,3.3c5.6,2.2,10.5,5.4,14.7,9.8c4.2,4.3,7.6,9.7,10,16.1 C263.5,43.5,264.8,51,264.8,59.4L264.8,59.4z M254.5,59.4c0-6.6-0.9-12.6-2.6-17.9c-1.7-5.3-4.1-9.8-7.3-13.5 c-3.1-3.7-6.9-6.5-11.3-8.5c-4.4-1.9-9.4-2.9-14.9-2.9c-5.5,0-10.5,1-14.9,2.9c-4.4,1.9-8.2,4.8-11.3,8.5 c-3.1,3.7-5.6,8.2-7.3,13.5c-1.7,5.3-2.6,11.2-2.6,17.9c0,6.7,0.9,12.6,2.6,17.9c1.7,5.3,4.1,9.8,7.3,13.5 c3.1,3.7,6.9,6.6,11.3,8.5c4.4,2,9.4,3,14.9,3c5.5,0,10.5-1,14.9-3c4.4-2,8.2-4.8,11.3-8.5c3.1-3.7,5.6-8.2,7.3-13.5 C253.6,72,254.5,66.1,254.5,59.4L254.5,59.4z"}),a("path",{d:"M289.7,135.2h-9.3V37.8c2.8-0.9,6.3-1.9,10.5-2.7c4.3-0.9,9.7-1.3,16.2-1.3c5.4,0,10.3,0.9,14.7,2.6 c4.4,1.8,8.2,4.3,11.4,7.6c3.2,3.3,5.6,7.4,7.4,12.1c1.8,4.7,2.6,10.1,2.6,16.1c0,5.6-0.7,10.8-2.2,15.5 c-1.5,4.7-3.6,8.7-6.5,12.1c-2.8,3.4-6.3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,17.1-1.4c5.6,0,10.3,0.8,14,2.4 c3.8,1.6,6.7,3.9,9,6.9c2.2,3,3.8,6.6,4.8,10.8c0.9,4.2,1.4,8.8,1.4,13.8v41.2h-9.3V70.7c0-5.2-0.4-9.6-1.1-13.3 c-0.7-3.6-1.9-6.6-3.6-8.8c-1.7-2.3-3.8-3.9-6.6-4.9c-2.7-1-6.1-1.5-10.2-1.5c-4.4,0-8.1,0.2-11.3,0.7c-3.2,0.5-5.3,0.9-6.2,1.3 v64.7h-9.3V37.8z"})]}),l("g",{fill:n,fillRule:"nonzero",id:"pix",children:[a("path",{d:"M532.1,19.1c12.8,0,22.3,2.4,28.5,7.3c6.3,4.9,9.4,11.8,9.4,20.7c0,5.1-0.9,9.5-2.7,13.1 c-1.8,3.6-4.4,6.5-7.8,8.7c-3.4,2.2-7.5,3.8-12.4,4.8c-4.9,1-10.4,1.5-16.6,1.5h-12.2v34.9h-8.9V21.6c3.1-0.9,6.8-1.5,11-1.9 C524.6,19.3,528.5,19.1,532.1,19.1z M532.5,26.8c-3.3,0-6.1,0.1-8.4,0.3c-2.3,0.2-4.3,0.4-5.9,0.6v39.9h11.2 c4.8,0,9.1-0.3,13-0.8c3.9-0.6,7.2-1.6,9.9-3.1c2.7-1.5,4.8-3.6,6.3-6.3c1.5-2.7,2.2-6.1,2.2-10.3c0-4-0.8-7.3-2.4-9.9 c-1.6-2.6-3.7-4.7-6.4-6.2c-2.6-1.5-5.7-2.6-9.1-3.2C539.6,27.1,536.1,26.8,532.5,26.8z"}),a("path",{d:"M599,22.5c0,2-0.6,3.6-1.8,4.8c-1.2,1.2-2.7,1.8-4.4,1.8c-1.7,0-3.2-0.6-4.4-1.8c-1.2-1.2-1.8-2.8-1.8-4.8 c0-2,0.6-3.6,1.8-4.8c1.2-1.2,2.7-1.8,4.4-1.8c1.7,0,3.2,0.6,4.4,1.8C598.3,19,599,20.5,599,22.5z M597,110.2h-8.5V42.9h8.5 V110.2z"}),a("path",{d:"M643,81.7c-1.9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c-2.8,1.6-4.5,4.1-4.5,6.9c0,1.4,0.4,2.7,1.2,3.9c0.8,1.2,1.9,2.2,3.3,3l11.4,6.2l7.9,4.3l34,18.6 c3.5,1.9,8.2,1.9,11.7,0L112.2,89l7.9-4.3l11.4-6.2c2.8-1.6,4.5-4.1,4.5-6.9C136,70.2,135.6,68.9,134.8,67.7z"}),a("path",{fill:n,d:"M134.8,41.6c-0.8-1.2-1.9-2.2-3.3-3L78.3,9.5c-3.5-1.9-8.2-1.9-11.7,0L13.3,38.6c-2.8,1.6-4.5,4.1-4.5,6.9 c0,1.4,0.4,2.7,1.2,3.8c0.8,1.2,1.9,2.2,3.3,3l11.4,6.2l7.9,4.3l34,18.6c3.5,1.9,8.2,1.9,11.7,0l33.9-18.6l7.9-4.3l11.4-6.2 c2.8-1.6,4.5-4.1,4.5-6.9C136,44.1,135.6,42.8,134.8,41.6z M122.1,48.8l-9.8,5.4l-7.9,4.3l-26,14.3c-3.5,1.9-8.2,1.9-11.7,0 L40.5,58.5l-7.9-4.3l-9.9-5.4c-2.9-1.6-2.9-5.1,0-6.7l43.8-24c3.5-1.9,8.2-1.9,11.7,0l43.8,24.1C125,43.8,125,47.2,122.1,48.8z"}),l("g",{fill:i,children:[a("path",{d:"M65.8,44.1c-3.3-2-6.6-3.9-9.9-5.9c-1.2-0.7-2.4-1.1-3.8-1c-0.8-0.1-1.5,0.1-2.2,0.5 c-3.7,2.2-7.5,4.4-11.3,6.7c-1.4,0.8-1.4,2,0,2.8c3.7,2.1,7.4,4.1,11.1,6.3c2.2,1.3,4.4,1.1,6.6,0c3.2-1.8,6.3-3.7,9.5-5.5 C67.6,46.9,67.6,45.2,65.8,44.1z M58.4,46.4l-5.6,3.1c-0.2,0.1-0.5,0.1-0.8,0l-5.6-3.2c-0.5-0.3-0.5-1.1,0-1.4l5.7-3.2 c0.2-0.1,0.6-0.1,0.8,0l5.5,3.2C58.9,45.4,58.9,46.1,58.4,46.4z"}),a("path",{d:"M86.3,56.4L74.1,49c-0.8-0.5-1.7-0.5-2.5,0L59,56.2c-0.9,0.5-0.9,1.8,0,2.3l11.3,6.6c1.5,0.8,3.2,0.8,4.7,0 l11.3-6.5C87.2,58.2,87.2,56.9,86.3,56.4z M78.9,58l-6,3.4c-0.2,0.1-0.4,0.1-0.6,0l-6-3.5c-0.4-0.2-0.4-0.8,0-1.1l5.8-3.3 c0.4-0.2,0.8-0.2,1.1,0L79,57C79.4,57.2,79.4,57.8,78.9,58z"}),a("path",{d:"M86.6,33.1l-12.3-7.9c-0.8-0.5-1.8-0.5-2.6,0L59,32.3c-1.2,0.7-1.4,2.6-0.2,3.3l11.9,7c1.2,0.7,2.8,0.7,4,0 l11.8-6.4C87.7,35.5,87.7,33.8,86.6,33.1z M78.6,34.9l-5,2.7c-0.5,0.3-1.2,0.3-1.7,0l-5.1-3c-0.5-0.3-0.4-1.1,0.1-1.4l5.4-3 c0.3-0.2,0.8-0.2,1.1,0l5.3,3.4C79.1,33.9,79.1,34.6,78.6,34.9z"}),a("path",{d:"M87.1,52.3l3.5,2.2c0.9,0.7,2.1,0.7,3.1,0.1l3.3-2c0.8-0.5,0.8-1.6,0-2.1l-4-2.5c-0.4-0.2-0.8-0.2-1.2,0 l-4.7,2.6C86.6,50.9,86.5,51.8,87.1,52.3z"}),a("path",{d:"M96.7,46.7l3.4,2.2c0.9,0.6,2.1,0.6,3,0.1l3.6-2.2c0.5-0.3,0.6-1.1,0-1.5l-3.7-2.3c-0.7-0.5-1.7-0.5-2.4,0 l-3.8,2.2C96.2,45.5,96.1,46.3,96.7,46.7z"}),a("path",{d:"M87.6,41l4.2,2.9c0.7,0.5,1.5,0.5,2.2,0l4.3-2.8c0.4-0.3,0.4-0.8,0-1.1l-4.5-2.8c-0.6-0.4-1.3-0.4-1.9,0 l-4.3,2.6C87.2,40.2,87.2,40.7,87.6,41z"})]})]})]})},l6=({width:e,height:t="40px",color:r="#03D69D"})=>a("svg",{id:"WooviLogo","data-testid":"WooviLogo",width:e,height:t,viewBox:"0 0 124 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l("g",{id:"Group",children:[a("path",{id:"Vector",d:"M101.243 35.5452C99.1586 35.5452 97.2858 34.3098 96.5084 32.3684L89.4766 15.5312C88.5932 13.4133 90.148 11.1189 92.4095 11.1189C93.7169 11.1189 94.883 11.8955 95.3777 13.1309L101.243 27.709L107.109 13.1309C107.604 11.9308 108.77 11.1189 110.077 11.1189C112.374 11.1189 113.894 13.4486 113.01 15.5312L105.978 32.4037C105.201 34.3098 103.328 35.5452 101.243 35.5452Z",fill:r}),a("path",{id:"Vector_2",d:"M122.833 1.16484C123.575 1.9414 123.964 2.82386 123.964 3.8828C123.964 4.94175 123.575 5.8595 122.833 6.56546C122.091 7.27143 121.137 7.62441 120.042 7.62441C118.911 7.62441 117.957 7.27143 117.215 6.56546C116.473 5.8595 116.12 4.94175 116.12 3.8828C116.12 2.82386 116.508 1.9414 117.25 1.16484C117.992 0.38828 118.946 0 120.042 0C121.137 0 122.091 0.38828 122.833 1.16484ZM116.791 32.3331V14.3664C116.791 12.6015 118.24 11.1542 120.007 11.1542C121.773 11.1542 123.222 12.6015 123.222 14.3664V32.2978C123.222 34.0628 121.773 35.51 120.007 35.51C118.24 35.5453 116.791 34.0981 116.791 32.3331Z",fill:r}),a("g",{id:"Group_2",children:a("path",{id:"Vector_3",d:"M23.8226 35.5453C21.8792 35.5453 20.2184 34.2746 19.7237 32.4391L16.5081 20.5083L13.2572 32.4391C12.7625 34.2746 11.1017 35.5453 9.1936 35.5453C7.32081 35.5453 5.66002 34.3099 5.12998 32.4744L0.112297 14.9665C-0.41774 13.0957 0.995693 11.2249 2.93916 11.2249C4.24659 11.2249 5.41267 12.1073 5.76603 13.378L9.40562 26.5443L12.8332 13.9781C13.2926 12.3544 14.7413 11.2249 16.4374 11.2249C18.1336 11.2249 19.6177 12.3544 20.0417 13.9781L23.4693 26.5443L27.1089 13.378C27.4622 12.1073 28.6283 11.2249 29.9357 11.2249H30.0417C31.9852 11.2249 33.3986 13.0957 32.8686 14.9665L27.8863 32.5097C27.3916 34.3099 25.7308 35.5453 23.8226 35.5453Z",fill:r})}),a("path",{id:"Vector_4",d:"M53.7168 25.6265C55.4482 27.3561 57.0383 28.9446 58.6285 30.533C55.0242 34.9453 50.5366 37.6632 44.5648 36.5337C39.0171 35.4747 35.3775 32.0508 33.9287 26.5443C32.4093 20.7201 35.0948 14.6841 40.2892 11.719C45.4835 8.754 51.9853 9.53056 56.261 13.731C61.0313 18.3904 65.6956 23.1557 70.4306 27.8503C72.8688 30.2506 76.4731 30.533 79.0879 28.5916C82.0208 26.4031 82.5508 22.1673 80.2893 19.3082C77.9925 16.449 73.7522 15.9901 70.996 18.3904C70.0419 19.2023 69.2645 20.2259 68.4518 21.1437C66.685 19.3788 65.0949 17.7903 63.5048 16.2019C67.0031 11.8955 71.42 8.96579 77.9925 10.2718C83.4695 11.3308 87.5332 15.8136 88.4519 21.426C89.3353 26.9326 86.4378 32.6156 81.3847 35.2629C76.2257 37.9456 69.9713 37.0278 65.7663 32.898C61.0666 28.2386 56.4023 23.5439 51.7026 18.8846C49.6885 16.8726 46.8616 16.2725 44.3881 17.4021C41.8793 18.5316 40.5012 20.5083 40.4658 23.2969C40.4305 26.0501 41.7026 28.1327 44.2114 29.2975C46.7556 30.4624 49.1585 30.1094 51.2786 28.2739C52.1973 27.4267 52.9394 26.4737 53.7168 25.6265Z",fill:r})]})}),l9={ACTIVE:"#FF9800",DELETED:"#ff7f50",ACTIVE_WAITING_PAYMENT_METHOD:"#FF9800",EXPIRED:"#ff7f50",OVERDUE:"#e65100",COMPLETED:"#4CAF50",SCHEDULED:"rgb(0 149 255)"},l7=c(ak)`
1037
1037
  background-color: ${e=>l9[e.status]} !important;
1038
1038
  color: white !important;
1039
- `,l8=({label:e,text:t})=>l(i2,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[a(eo,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof t?a(eo,{variant:"h6",sx:{overflowWrap:"anywhere"},children:t}):t]}),se=({charge:e})=>{let{t}=eH();return!e.additionalInfo||e.additionalInfo.length<=0?null:e?.additionalInfo?.length>0?l(o,{children:[a(i2,{sx:{justifyContent:"center",mb:"18px"},children:a(eo,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:t("Additional information")})}),e.additionalInfo?.map(e=>a(l8,{label:e?.key,text:e?.value},e?.key))]}):null};var st,sr,si,sn="0.0.7";let so=({children:e,heading:t,secondaryHeading:r,primaryAction:i,primaryActionLabel:n,primaryActionProps:o,payAsGuestAction:s=null,payAsGuestActionLabel:c=null,payAsGuestActionProps:d=null,secondaryAction:u=null,secondaryActionLabel:p=null,secondaryActionProps:m=null,renderFooter:h=null,isTemp:f=!1,withCard:g=!0})=>{let x=lg(),C=()=>l(Y,{sx:{gap:2},flexDirection:"column",children:[a(l6,{}),l(Y,{sx:{flexDirection:"column",justifyContent:"center"},children:[a(eo,{variant:"h5",color:"secondary",align:"center",children:t}),r&&a(eo,{color:"secondary",textAlign:"center",children:r})]})]}),b=()=>l(Y,{sx:{flexDirection:"column"},children:[l(Y,{sx:{flexDirection:"column",gap:1},children:[e,i?a(Y,{children:a(iW,{fullWidth:!0,endIcon:a(eJ,{htmlColor:"#fff",fontSize:"large"}),height:42,onClick:i,...o,children:a(eo,{color:"#FFF",fontSize:18,fontWeight:600,children:n})})}):null,s?a(Y,{sx:{ml:"-8px"},children:a(iW,{fullWidth:!0,variant:"outlined",color:"secondary",endIcon:a(eJ,{htmlColor:"#607389",fontSize:"large"}),height:42,onClick:s,...d,children:a(eo,{color:"#607389",fontSize:18,fontWeight:600,children:c})})}):null,u||p||m?a(Y,{sx:{justifyContent:"center"},children:a(iW,{color:"secondary",variant:"none",onClick:u,...m,children:a(eo,{color:x?.palette?.primary?.light,fontSize:18,children:p})})}):null]}),a(P,{light:!0}),l(Y,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,py:2},children:[h&&h(),l(Y,{sx:{justifyContent:"center",alignItems:"center",width:"100%"},children:[a(oe,{}),l(eo,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:x.palette.grey[400]},children:["(v",sn,")"]})]})]})]});return g?l(i3,{sx:{display:"flex",flexDirection:"column",width:"464px",minHeight:"500px",align:"center",justifyContent:"center",padding:4},children:[C(),b()]}):l(Y,{sx:{flexDirection:"column",width:"464px",alignItems:"center",minHeight:"500px",padding:4},children:[C(),b()]})},sa={REFUND:"#FF9800",PAYMENT:"#4CAF50",WITHDRAW:"#ff7f50",FEE:"#ff0000",BALANCE_BLOCK:"#ff0000",BALANCE_UNBLOCK:"#4CAF50",INTERNAL_TRANSFER:"#4CAF50",REVERSAL:"#4CAF50"},sl=c(ak)`
1039
+ `,l8=({label:e,text:t})=>l(i2,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[a(eo,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof t?a(eo,{variant:"h6",sx:{overflowWrap:"anywhere"},children:t}):t]}),se=({charge:e})=>{let{t}=eH();return!e.additionalInfo||e.additionalInfo.length<=0?null:e?.additionalInfo?.length>0?l(o,{children:[a(i2,{sx:{justifyContent:"center",mb:"18px"},children:a(eo,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:t("Additional information")})}),e.additionalInfo?.map(e=>a(l8,{label:e?.key,text:e?.value},e?.key))]}):null};var st,sr,si,sn="0.0.8";let so=({children:e,heading:t,secondaryHeading:r,primaryAction:i,primaryActionLabel:n,primaryActionProps:o,payAsGuestAction:s=null,payAsGuestActionLabel:c=null,payAsGuestActionProps:d=null,secondaryAction:u=null,secondaryActionLabel:p=null,secondaryActionProps:m=null,renderFooter:h=null,isTemp:f=!1,withCard:g=!0})=>{let x=lg(),C=()=>l(Y,{sx:{gap:2},flexDirection:"column",children:[a(l6,{}),l(Y,{sx:{flexDirection:"column",justifyContent:"center"},children:[a(eo,{variant:"h5",color:"secondary",align:"center",children:t}),r&&a(eo,{color:"secondary",textAlign:"center",children:r})]})]}),b=()=>l(Y,{sx:{flexDirection:"column"},children:[l(Y,{sx:{flexDirection:"column",gap:1},children:[e,i?a(Y,{children:a(iW,{fullWidth:!0,endIcon:a(eJ,{htmlColor:"#fff",fontSize:"large"}),height:42,onClick:i,...o,children:a(eo,{color:"#FFF",fontSize:18,fontWeight:600,children:n})})}):null,s?a(Y,{sx:{ml:"-8px"},children:a(iW,{fullWidth:!0,variant:"outlined",color:"secondary",endIcon:a(eJ,{htmlColor:"#607389",fontSize:"large"}),height:42,onClick:s,...d,children:a(eo,{color:"#607389",fontSize:18,fontWeight:600,children:c})})}):null,u||p||m?a(Y,{sx:{justifyContent:"center"},children:a(iW,{color:"secondary",variant:"none",onClick:u,...m,children:a(eo,{color:x?.palette?.primary?.light,fontSize:18,children:p})})}):null]}),a(P,{light:!0}),l(Y,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,py:2},children:[h&&h(),l(Y,{sx:{justifyContent:"center",alignItems:"center",width:"100%"},children:[a(oe,{}),l(eo,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:x.palette.grey[400]},children:["(v",sn,")"]})]})]})]});return g?l(i3,{sx:{display:"flex",flexDirection:"column",width:"464px",minHeight:"500px",align:"center",justifyContent:"center",padding:4},children:[C(),b()]}):l(Y,{sx:{flexDirection:"column",width:"464px",alignItems:"center",minHeight:"500px",padding:4},children:[C(),b()]})},sa={REFUND:"#FF9800",PAYMENT:"#4CAF50",WITHDRAW:"#ff7f50",FEE:"#ff0000",BALANCE_BLOCK:"#ff0000",BALANCE_UNBLOCK:"#4CAF50",INTERNAL_TRANSFER:"#4CAF50",REVERSAL:"#4CAF50"},sl=c(ak)`
1040
1040
  background-color: ${e=>sa[e.status]} !important;
1041
1041
  color: white !important;
1042
1042
  `,ss=(e,t)=>{if(e<1)return[];let r=Array(e).fill("");if(t){let i=t.trim().split("");for(let t=0;t<Math.min(e,i.length);t+=1)r[t]=i[t]}return r},sc={number:/^[0-9]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i},sd=(0,i.forwardRef)(({name:e,length:t=6,type:r="alphanumeric",placeholder:n="",manageFocus:o=!0,error:s,disabled:c,autoFocus:d,onComplete:u,onChange:p},m)=>{let[h,f]=(0,i.useState)(-1),{t:g}=eH(),[x,C]=(0,i.useState)(""),[b,y]=(0,i.useState)(null),v=(0,i.useRef)([]),w=e=>{let t=r instanceof RegExp?r:r in sc?sc[r]:null;return t?.test(e)},E=(e,r)=>{if(o){if("next"===e){let e=r+1;v.current[e<t?e:r].focus()}if("prev"===e){let e=r-1;v.current[e>-1?e:r].focus()}}},M=(e,r)=>{let i=[...ss(t,x)];i[r]=e;let n=i.join("");C(n),p&&p(n),r===t-1&&(n.length===t&&n.replaceAll(" ","").length===t?y(null):y(g("Code must be {{ size }} digits",{size:t})))},S=()=>{f(-1)},I=e=>{e.preventDefault();let t=e.clipboardData.getData("Text");w(t)&&(C(t),p&&p(t))};return(0,i.useEffect)(()=>{x.length===t&&u?.(x)},[x]),(0,i.useEffect)(()=>{e&&C("")},[e]),l(i2,{sx:{flexDirection:"column"},children:[l(i2,{sx:{gap:1},ref:m,children:[ss(t,x).map((t,r)=>a(ei,{id:`${e}-${r+1}`,name:`${e}-${r}`,inputProps:{"data-testid":`code-input-${r+1}`},inputRef:e=>{v.current[r]=e},onChange:e=>{let t,i;w(i=(t=e.target.value).length>1?t.split("")[t.length-1]:t)?(M(i,r),E("next",r)):M("",r)},onKeyDown:e=>{"Backspace"===e.key&&(""!==e.target.value?M("",r):E("prev",r))},onFocus:e=>{e.target.select(),f(r)},onBlur:S,onPaste:I,error:s,disabled:c,placeholder:h===r?"":n,value:t,autoFocus:d&&0===r,size:"small",sx:{width:"40px"}},`${e}-${r}`)),a("input",{type:"hidden",name:e,value:x})]}),!!b&&a(eo,{sx:{fontWeight:"400",fontSize:"0.64rem",paddingLeft:"10px"},color:"error",children:b})]})}),su=e=>{let{name:t,...r}=e,[i]=ts(t);return a(sd,{...i,...r})},sp="staging",sm=c.div`
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "engines": {
5
5
  "node": ">=18.0.0"
6
6
  },
7
- "version": "0.0.7",
7
+ "version": "0.0.8",
8
8
  "license": "MIT",
9
9
  "keywords": [
10
10
  "react",
@@ -60,6 +60,8 @@
60
60
  "@mui/styles": "5.16.5",
61
61
  "@mui/x-data-grid-pro": "6.16.3",
62
62
  "@mui/x-date-pickers": "6.19.6",
63
+ "@mui/x-date-pickers-pro": "6.19.6",
64
+ "@mui/x-license-pro": "6.10.2",
63
65
  "@tanstack/react-virtual": "3.13.13",
64
66
  "brazilian-values": "0.13.1",
65
67
  "chroma-js": "3.2.0",
@@ -150,6 +152,8 @@
150
152
  "@mui/styles": "5.16.5",
151
153
  "@mui/x-data-grid-pro": "6.16.3",
152
154
  "@mui/x-date-pickers": "6.19.6",
155
+ "@mui/x-date-pickers-pro": "6.19.6",
156
+ "@mui/x-license-pro": "6.10.2",
153
157
  "react-router-dom": "5.3.0",
154
158
  "react-table": "7.8.0",
155
159
  "react-virtual": "2.2.5",