@woovi/ui 0.1.2 → 0.1.3
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 @@
|
|
|
1036
1036
|
`,LayoutWrapperFluid=({header:e,sidebar:t,children:a})=>{let{width:r}=(0,external_use_window_size_hook_namespaceObject.useWindowSize)();return r<600?(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Grid,{container:!0,children:[e,t,a]}):(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Grid,{container:!0,children:[e,(0,jsx_runtime_namespaceObject.jsx)(mui_BoxFlex,{sx:{flexDirection:"column",mt:"60px",flex:1},children:a})]})},layoutWrapper_LayoutWrapperFluid=LayoutWrapperFluid,OpenPixLogoColor=({width:e,height:t="40px",showText:a=!0})=>{let r=a?"#1F6D61":"#fff",n=a?"#4AB7A8":"#fff";return(0,jsx_runtime_namespaceObject.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,jsx_runtime_namespaceObject.jsxs)("g",{fill:a?"#96969A":"#fff",fillRule:"nonzero",id:"open",children:[(0,jsx_runtime_namespaceObject.jsx)("polygon",{points:"469.7,34.9 469.6,35.2 469.8,35"}),(0,jsx_runtime_namespaceObject.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-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"}),(0,jsx_runtime_namespaceObject.jsx)("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,6-10.5,7.9c-4.1,1.9-8.9,2.8-14.2,2.8c-4.8,0-9-0.7-12.6-2.1c-3.6-1.4-6.2-2.7-7.8-3.9 V135.2z M289.7,95.6c0.9,0.7,1.9,1.4,3.2,2.1c1.3,0.8,2.8,1.5,4.5,2.1c1.7,0.7,3.6,1.2,5.6,1.6c2,0.4,4.1,0.6,6.3,0.6 c4.6,0,8.4-0.8,11.5-2.4c3.1-1.6,5.6-3.7,7.5-6.4c1.9-2.7,3.3-5.9,4.1-9.5c0.9-3.7,1.3-7.5,1.3-11.6c0-9.7-2.4-17.1-7.3-22.3 c-4.8-5.2-11.3-7.8-19.2-7.8c-4.6,0-8.2,0.2-11,0.6c-2.8,0.4-4.9,0.9-6.3,1.4V95.6z"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M353.7,72c0-6.5,0.9-12.1,2.8-16.9c1.9-4.8,4.3-8.8,7.3-12c3-3.2,6.4-5.6,10.3-7.2c3.8-1.6,7.8-2.4,11.9-2.4 c9,0,16.2,2.9,21.6,8.8c5.4,5.9,8.1,15,8.1,27.2c0,0.8,0,1.5-0.1,2.3c0,0.8-0.1,1.5-0.2,2.1h-51.7c0.3,9,2.5,16,6.7,20.8 c4.2,4.8,10.8,7.3,19.9,7.3c5,0,9-0.5,12-1.4c2.9-0.9,5.1-1.8,6.4-2.4l1.7,8c-1.3,0.8-3.8,1.7-7.5,2.7c-3.7,1-8,1.6-12.9,1.6 c-6.5,0-12-1-16.5-2.9c-4.6-1.9-8.3-4.6-11.3-8c-2.9-3.4-5.1-7.5-6.4-12.2C354.3,82.7,353.7,77.6,353.7,72L353.7,72z M406,66.1 c-0.2-7.7-2-13.7-5.4-18c-3.4-4.3-8.3-6.4-14.5-6.4c-3.3,0-6.3,0.7-8.9,2c-2.6,1.3-4.9,3.1-6.8,5.3c-1.9,2.2-3.5,4.8-4.6,7.8 c-1.1,2.9-1.7,6-1.9,9.3H406z"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M430.7,37.8c2.8-0.8,6.5-1.6,11.1-2.6c4.7-0.9,10.4-1.4,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"})]}),(0,jsx_runtime_namespaceObject.jsxs)("g",{fill:n,fillRule:"nonzero",id:"pix",children:[(0,jsx_runtime_namespaceObject.jsx)("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"}),(0,jsx_runtime_namespaceObject.jsx)("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"}),(0,jsx_runtime_namespaceObject.jsx)("path",{d:"M643,81.7c-1.9,2.3-3.8,4.7-5.7,7.2c-1.9,2.5-3.7,5-5.5,7.4c-1.8,2.4-3.4,4.9-4.9,7.4 c-1.5,2.5-2.7,4.7-3.7,6.6h-8.8c3.6-6.6,7.5-12.8,11.6-18.4c4.1-5.6,8.2-11.1,12.5-16.5l-22.8-32.4h9.9l17.6,25.5l17.6-25.5h9.2 l-22.3,32c1.9,2.4,3.9,4.9,6.1,7.7c2.2,2.8,4.3,5.7,6.5,8.7c2.2,3,4.2,6.1,6.3,9.3c2,3.2,3.9,6.4,5.6,9.6h-9.1 c-1-1.9-2.3-4-3.8-6.3c-1.5-2.3-3.1-4.7-4.9-7.2c-1.8-2.5-3.7-5-5.6-7.6C646.8,86.5,644.9,84,643,81.7z"})]}),(0,jsx_runtime_namespaceObject.jsxs)("g",{children:[(0,jsx_runtime_namespaceObject.jsx)("path",{fill:r,d:"M134.8,93.9c-0.8-1.2-1.9-2.2-3.3-3l-11.4-6.2l-7.9-4.3l-7.9,4.3l7.9,4.3l9.9,5.4c2.9,1.6,2.9,5.1,0,6.7 l-43.8,24c-3.5,1.9-8.2,1.9-11.7,0l-43.8-24.1c-2.9-1.6-2.9-5.1,0-6.7l9.8-5.4l7.9-4.3l-7.9-4.3l-7.9,4.3l-11.4,6.2 c-2.8,1.6-4.5,4.1-4.5,6.9c0,1.4,0.4,2.7,1.2,3.8c0.8,1.2,1.9,2.2,3.3,3l53.3,29.2c3.5,1.9,8.2,1.9,11.7,0l53.2-29.2 c2.8-1.6,4.5-4.1,4.5-6.9C136,96.4,135.6,95.1,134.8,93.9z"}),(0,jsx_runtime_namespaceObject.jsx)("path",{fill:a?"#308E83":"#fff",d:"M134.8,67.7c-0.8-1.2-1.9-2.2-3.3-3l-11.4-6.2l-7.9-4.3l-7.9,4.3l7.9,4.3l9.9,5.4c2.9,1.6,2.9,5.1,0,6.7 l-9.8,5.4l-7.9,4.3L78.3,99c-3.5,1.9-8.2,1.9-11.7,0L40.5,84.7l-7.9-4.3l-9.9-5.4c-2.9-1.6-2.9-5.1,0-6.7l9.8-5.4l7.9-4.3 l-7.9-4.3l-7.9,4.3l-11.4,6.2c-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"}),(0,jsx_runtime_namespaceObject.jsx)("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"}),(0,jsx_runtime_namespaceObject.jsxs)("g",{fill:r,children:[(0,jsx_runtime_namespaceObject.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,jsx_runtime_namespaceObject.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,jsx_runtime_namespaceObject.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,jsx_runtime_namespaceObject.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,jsx_runtime_namespaceObject.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,jsx_runtime_namespaceObject.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"})]})]})]})},WooviLogo=({width:e,height:t="40px",color:a="#03D69D"})=>(0,jsx_runtime_namespaceObject.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,jsx_runtime_namespaceObject.jsxs)("g",{id:"Group",children:[(0,jsx_runtime_namespaceObject.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:a}),(0,jsx_runtime_namespaceObject.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:a}),(0,jsx_runtime_namespaceObject.jsx)("g",{id:"Group_2",children:(0,jsx_runtime_namespaceObject.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:a})}),(0,jsx_runtime_namespaceObject.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:a})]})}),logo_WooviLogo=WooviLogo,CHARGE_STATUS_ENUM={ACTIVE_WAITING_PAYMENT_METHOD:"ACTIVE_WAITING_PAYMENT_METHOD",ACTIVE:"ACTIVE",COMPLETED:"COMPLETED",DELETED:"DELETED",REMOVED_BY_RECEIVER_USER:"REMOVED_BY_RECEIVER_USER",REMOVED_BY_PSP:"REMOVED_BY_PSP",CANCELED:"CANCELED",EXPIRED:"EXPIRED",OVERDUE:"OVERDUE",PAID_FROM_ANOTHER_TAX_ID:"PAID_FROM_ANOTHER_TAX_ID"},SUBSCRIPTION_INSTALLMENT_STATUS_ENUM={SCHEDULED:"SCHEDULED",ACTIVE:"ACTIVE",COMPLETED:"COMPLETED",EXPIRED:"EXPIRED",CANCELED:"CANCELED"},TAG_STATUS_COLOR={[CHARGE_STATUS_ENUM.ACTIVE]:"#FF9800",[CHARGE_STATUS_ENUM.DELETED]:"#ff7f50",[CHARGE_STATUS_ENUM.ACTIVE_WAITING_PAYMENT_METHOD]:"#FF9800",[CHARGE_STATUS_ENUM.EXPIRED]:"#ff7f50",[CHARGE_STATUS_ENUM.OVERDUE]:"#e65100",[CHARGE_STATUS_ENUM.COMPLETED]:"#4CAF50",[SUBSCRIPTION_INSTALLMENT_STATUS_ENUM.SCHEDULED]:"rgb(0 149 255)"},ChargeTagStatus=external_styled_components_default()(tag_Tag)`
|
|
1037
1037
|
background-color: ${e=>TAG_STATUS_COLOR[e.status]} !important;
|
|
1038
1038
|
color: white !important;
|
|
1039
|
-
`,AccountInfoLabel=({label:e,text:t})=>(0,jsx_runtime_namespaceObject.jsxs)(mui_BoxFlex,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof t?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"h6",sx:{overflowWrap:"anywhere"},children:t}):t]}),AdditionalInfo=({charge:e})=>{let{t}=(0,external_react_i18next_namespaceObject.useTranslation)();return!e.additionalInfo||e.additionalInfo.length<=0?null:e?.additionalInfo?.length>0?(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(mui_BoxFlex,{sx:{justifyContent:"center",mb:"18px"},children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:t("Additional information")})}),e.additionalInfo?.map(e=>(0,jsx_runtime_namespaceObject.jsx)(AccountInfoLabel,{label:e?.key,text:e?.value},e?.key))]}):null};var package_namespaceObject={rE:"0.1.
|
|
1039
|
+
`,AccountInfoLabel=({label:e,text:t})=>(0,jsx_runtime_namespaceObject.jsxs)(mui_BoxFlex,{sx:{mb:"10px",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{sx:{fontWeight:600},variant:"h6",children:e}),"string"==typeof t?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"h6",sx:{overflowWrap:"anywhere"},children:t}):t]}),AdditionalInfo=({charge:e})=>{let{t}=(0,external_react_i18next_namespaceObject.useTranslation)();return!e.additionalInfo||e.additionalInfo.length<=0?null:e?.additionalInfo?.length>0?(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(mui_BoxFlex,{sx:{justifyContent:"center",mb:"18px"},children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{sx:{fontWeight:600,fontSize:"18px",textAlign:"center"},children:t("Additional information")})}),e.additionalInfo?.map(e=>(0,jsx_runtime_namespaceObject.jsx)(AccountInfoLabel,{label:e?.key,text:e?.value},e?.key))]}):null};var package_namespaceObject={rE:"0.1.3"};const WooviAuthForm=({children:e,heading:t,secondaryHeading:a,primaryAction:r,primaryActionLabel:n,primaryActionProps:s,payAsGuestAction:i=null,payAsGuestActionLabel:o=null,payAsGuestActionProps:c=null,secondaryAction:l=null,secondaryActionLabel:_=null,secondaryActionProps:p=null,renderFooter:m=null,isTemp:d=!1,withCard:u=!0})=>{let x=useTheme(),j=()=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{gap:2},flexDirection:"column",children:[(0,jsx_runtime_namespaceObject.jsx)(logo_WooviLogo,{}),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{flexDirection:"column",justifyContent:"center"},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"h5",color:"secondary",align:"center",children:t}),a&&(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{color:"secondary",textAlign:"center",children:a})]})]}),b=()=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{flexDirection:"column"},children:[(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{flexDirection:"column",gap:1},children:[e,r?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{children:(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{fullWidth:!0,endIcon:(0,jsx_runtime_namespaceObject.jsx)(icons_material_namespaceObject.KeyboardArrowRight,{htmlColor:"#fff",fontSize:"large"}),height:42,onClick:r,...s,children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{color:"#FFF",fontSize:18,fontWeight:600,children:n})})}):null,i?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{ml:"-8px"},children:(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{fullWidth:!0,variant:"outlined",color:"secondary",endIcon:(0,jsx_runtime_namespaceObject.jsx)(icons_material_namespaceObject.KeyboardArrowRight,{htmlColor:"#607389",fontSize:"large"}),height:42,onClick:i,...c,children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{color:"#607389",fontSize:18,fontWeight:600,children:o})})}):null,l||_||p?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{justifyContent:"center"},children:(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{color:"secondary",variant:"none",onClick:l,...p,children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{color:x?.palette?.primary?.light,fontSize:18,children:_})})}):null]}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Divider,{light:!0}),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,py:2},children:[m&&m(),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{justifyContent:"center",alignItems:"center",width:"100%"},children:[(0,jsx_runtime_namespaceObject.jsx)(src_EncryptedText,{}),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Typography,{variant:"body2",sx:{fontSize:10,textAlign:"center",color:x.palette.grey[400]},children:["(v",package_namespaceObject.rE,")"]})]})]})]});return u?(0,jsx_runtime_namespaceObject.jsxs)(card_Card,{sx:{display:"flex",flexDirection:"column",width:"464px",minHeight:"500px",align:"center",justifyContent:"center",padding:4},children:[j(),b()]}):(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{flexDirection:"column",width:"464px",alignItems:"center",minHeight:"500px",padding:4},children:[j(),b()]})},shopper_WooviAuthForm=WooviAuthForm,PIX_TRANSACTION_TYPE_TAG_COLOR={[PIX_TRANSACTION_TYPES.REFUND]:"#FF9800",[PIX_TRANSACTION_TYPES.PAYMENT]:"#4CAF50",[PIX_TRANSACTION_TYPES.WITHDRAW]:"#ff7f50",[PIX_TRANSACTION_TYPES.FEE]:"#ff0000",[PIX_TRANSACTION_TYPES.BALANCE_BLOCK]:"#ff0000",[PIX_TRANSACTION_TYPES.BALANCE_UNBLOCK]:"#4CAF50",[PIX_TRANSACTION_TYPES.INTERNAL_TRANSFER]:"#4CAF50",[PIX_TRANSACTION_TYPES.REVERSAL]:"#4CAF50"},PixTransactionTypeTag=external_styled_components_default()(tag_Tag)`
|
|
1040
1040
|
background-color: ${e=>PIX_TRANSACTION_TYPE_TAG_COLOR[e.status]} !important;
|
|
1041
1041
|
color: white !important;
|
|
1042
1042
|
`,createPinArray=(e,t)=>{if(e<1)return[];let a=Array(e).fill("");if(t){let r=t.trim().split("");for(let t=0;t<Math.min(e,r.length);t+=1)a[t]=r[t]}return a},pinInputRegex={number:/^[0-9]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i},PinInput=(0,external_react_namespaceObject.forwardRef)(({name:e,length:t=6,type:a="alphanumeric",placeholder:r="",manageFocus:n=!0,error:s,disabled:i,autoFocus:o,onComplete:c,onChange:l},_)=>{let[p,m]=(0,external_react_namespaceObject.useState)(-1),{t:d}=(0,external_react_i18next_namespaceObject.useTranslation)(),[u,x]=(0,external_react_namespaceObject.useState)(""),[j,b]=(0,external_react_namespaceObject.useState)(null),C=(0,external_react_namespaceObject.useRef)([]),O=e=>{let t=a instanceof RegExp?a:a in pinInputRegex?pinInputRegex[a]:null;return t?.test(e)},h=(e,a)=>{if(n){if("next"===e){let e=a+1;C.current[e<t?e:a].focus()}if("prev"===e){let e=a-1;C.current[e>-1?e:a].focus()}}},T=(e,a)=>{let r=[...createPinArray(t,u)];r[a]=e;let n=r.join("");x(n),l&&l(n),a===t-1&&(n.length===t&&n.replaceAll(" ","").length===t?b(null):b(d("Code must be {{ size }} digits",{size:t})))},f=()=>{m(-1)},g=e=>{e.preventDefault();let t=e.clipboardData.getData("Text");O(t)&&(x(t),l&&l(t))};return(0,external_react_namespaceObject.useEffect)(()=>{u.length===t&&c?.(u)},[u]),(0,external_react_namespaceObject.useEffect)(()=>{e&&x("")},[e]),(0,jsx_runtime_namespaceObject.jsxs)(mui_BoxFlex,{sx:{flexDirection:"column"},children:[(0,jsx_runtime_namespaceObject.jsxs)(mui_BoxFlex,{sx:{gap:1},ref:_,children:[createPinArray(t,u).map((t,a)=>(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.TextField,{id:`${e}-${a+1}`,name:`${e}-${a}`,inputProps:{"data-testid":`code-input-${a+1}`},inputRef:e=>{C.current[a]=e},onChange:e=>{let t,r;O(r=(t=e.target.value).length>1?t.split("")[t.length-1]:t)?(T(r,a),h("next",a)):T("",a)},onKeyDown:e=>{"Backspace"===e.key&&(""!==e.target.value?T("",a):h("prev",a))},onFocus:e=>{e.target.select(),m(a)},onBlur:f,onPaste:g,error:s,disabled:i,placeholder:p===a?"":r,value:t,autoFocus:o&&0===a,size:"small",sx:{width:"40px"}},`${e}-${a}`)),(0,jsx_runtime_namespaceObject.jsx)("input",{type:"hidden",name:e,value:u})]}),!!j&&(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{sx:{fontWeight:"400",fontSize:"0.64rem",paddingLeft:"10px"},color:"error",children:j})]})}),pinInput_PinInput=PinInput,PinInputFormik=e=>{let{name:t,...a}=e,[r]=(0,external_formik_namespaceObject.useField)(t);return(0,jsx_runtime_namespaceObject.jsx)(pinInput_PinInput,{...r,...a})},pinInput_PinInputFormik=PinInputFormik,external_react_error_boundary_namespaceObject=require("react-error-boundary"),APP_ENVIRONMENT_ENUM={DEVELOPMENT:"development",TESTING:"testing",STAGING:"staging",SANDBOX:"sandbox",SANDBOX_DEV:"sandbox-dev",SANDBOX_PROD:"sandbox-prod",PRODUCTION:"production"},ContentBoundary_Wrapper=external_styled_components_default().div`
|
|
@@ -1546,7 +1546,7 @@ A aceita\xe7\xe3o deste termo ser\xe1 feita quando voc\xea se cadastrar em nossa
|
|
|
1546
1546
|
box-sizing: border-box;
|
|
1547
1547
|
`,Table=({columns:e,data:t,skipPageReset:a,hasSelection:r=!0,setSelectedData:n})=>{let{t:s}=(0,external_react_i18next_namespaceObject.useTranslation)(),{getTableProps:i,headerGroups:o,prepareRow:c,rows:l,state:{selectedRowIds:_},selectedFlatRows:p}=(0,external_react_table_namespaceObject.useTable)({columns:e,data:t,autoResetPage:!a},external_react_table_namespaceObject.useSortBy,external_react_table_namespaceObject.useRowSelect,e=>{r&&e.allColumns.push(e=>[{id:"selection",Header:({getToggleAllRowsSelectedProps:e})=>(0,jsx_runtime_namespaceObject.jsx)("div",{children:(0,jsx_runtime_namespaceObject.jsx)(IndeterminateCheckbox,{...e()})}),Cell:({row:e})=>(0,jsx_runtime_namespaceObject.jsx)("div",{children:(0,jsx_runtime_namespaceObject.jsx)(IndeterminateCheckbox,{index:e.index,...e.getToggleRowSelectedProps()})})},...e])});return(0,jsx_runtime_namespaceObject.jsx)(TableContainer_default(),{children:(0,jsx_runtime_namespaceObject.jsxs)(MuiTable,{component:"div",...i(),children:[(0,jsx_runtime_namespaceObject.jsx)(TableHead_default(),{component:"div",children:o.map(e=>(0,jsx_runtime_namespaceObject.jsx)(TableRow_default(),{component:"div",...e.getHeaderGroupProps(),children:e.headers.map(e=>(0,jsx_runtime_namespaceObject.jsxs)(TableCell,{component:"div",..."selection"===e.id?e.getHeaderProps():e.getHeaderProps(e.getSortByToggleProps({title:s("Order by {{type}}",{type:e?.Header?.toString().toLowerCase()})})),children:[e.render("Header"),"selection"!==e.id?(0,jsx_runtime_namespaceObject.jsx)(TableSortLabel_default(),{active:e.isSorted,direction:e.isSortedDesc?"desc":"asc",title:s("Order by {{type}}",{type:e?.Header?.toString().toLowerCase()})}):null]}))}))}),(0,jsx_runtime_namespaceObject.jsx)(TableBody_default(),{component:"div",children:l.map(e=>(c(e),(0,jsx_runtime_namespaceObject.jsx)(reactTable_RowTable,{...e.getRowProps(),row:e,isSelected:_[e.id]})))})]})})},reactTable_Table=Table,notRequired="N\xe3o obrigat\xf3rio",required="Obrigat\xf3rio",requiredOr=()=>e=>`N\xe3o obrigat\xf3rio se presente: ${e.join(" ou ")}`,CHARGE_COLUMNS={CUSTOMER_TAXID:"CPF/CNPJ do Cliente",CUSTOMER_NAME:"Nome do Cliente",CUSTOMER_EMAIL:"Email do Cliente",CUSTOMER_PHONE:"Celular do Cliente",VALUE:"Valor em Reais",COMMENT:"Coment\xe1rio",EXPIRATION_DATE:"Data de Vencimento",ADITIONAL_INFO:"Informa\xe7\xf5es Adicionais"},CHARGE_COMMENTS={[CHARGE_COLUMNS.CUSTOMER_TAXID]:"CPF/CNPJ do Cliente.",[CHARGE_COLUMNS.CUSTOMER_NAME]:"Nome do Cliente",[CHARGE_COLUMNS.CUSTOMER_EMAIL]:"Email do Cliente.",[CHARGE_COLUMNS.CUSTOMER_PHONE]:"Celular do Cliente",[CHARGE_COLUMNS.VALUE]:"Valor em Reais",[CHARGE_COLUMNS.COMMENT]:"Coment\xe1rio.",[CHARGE_COLUMNS.EXPIRATION_DATE]:"Data de Vencimento. Ex: 16/11/1993",[CHARGE_COLUMNS.ADITIONAL_INFO]:"Informa\xe7\xf5es Adicionais. Ex: item1:calca;item2:camisa"},CHARGE_FIELDS={[CHARGE_COLUMNS.CUSTOMER_TAXID]:notRequired,[CHARGE_COLUMNS.CUSTOMER_NAME]:notRequired,[CHARGE_COLUMNS.CUSTOMER_EMAIL]:notRequired,[CHARGE_COLUMNS.CUSTOMER_PHONE]:notRequired,[CHARGE_COLUMNS.VALUE]:required,[CHARGE_COLUMNS.COMMENT]:notRequired,[CHARGE_COLUMNS.EXPIRATION_DATE]:notRequired,[CHARGE_COLUMNS.ADITIONAL_INFO]:notRequired},COMPANY_COLUMNS=e=>({NAME:e("Company Name"),TRADE_NAME:e("Trade Name"),TAX_ID:e("CNPJ"),EMAIL:e("Email"),PHONE:e("Phone"),WEBSITE:e("Website"),FIRST_NAME:e("First name"),LAST_NAME:e("Last name"),USER_MASTER_TAX_ID:e("User taxID")}),COMPANY_COMMENTS=e=>{let t=COMPANY_COLUMNS(e);return{[t.NAME]:e("Company Name"),[t.TRADE_NAME]:e("Trade Name"),[t.TAX_ID]:e("CNPJ"),[t.EMAIL]:e("Email"),[t.PHONE]:e("Phone"),[t.WEBSITE]:e("Website"),[t.FIRST_NAME]:e("First name"),[t.LAST_NAME]:e("Last name"),[t.USER_MASTER_TAX_ID]:e("User taxID")}},COMPANY_FIELDS=e=>{let t=COMPANY_COLUMNS(e);return{[t.NAME]:required,[t.TRADE_NAME]:notRequired,[t.TAX_ID]:required,[t.EMAIL]:required,[t.PHONE]:required,[t.WEBSITE]:notRequired,[t.FIRST_NAME]:required,[t.LAST_NAME]:required,[t.LAST_NAME]:required,[t.USER_MASTER_TAX_ID]:required}},CUSTOMER_COLUMNS=e=>({NAME:e("Name"),TAX_ID:e("CPF/CNPJ"),EMAIL:e("Email"),PHONE:e("Phone")}),CUSTOMER_COMMENTS=e=>{let t=CUSTOMER_COLUMNS(e);return{[t.NAME]:e("Name"),[t.TAX_ID]:e("CPF/CNPJ"),[t.EMAIL]:e("Email"),[t.PHONE]:e("Phone")}},CUSTOMER_FIELDS=e=>{let t=CUSTOMER_COLUMNS(e);return{[t.NAME]:required,[t.TAX_ID]:required,[t.EMAIL]:notRequired,[t.PHONE]:notRequired}},DATATYPE_ROWS=1e3,getCellsWithDataTypes=(e,t)=>{let a=e[0];return[...Array(1e3).keys()].reduce((r,n)=>{let s=`${a}${2+n}`;return{...r,[s]:"string"==typeof t[e]?{t:t[e],v:" "}:t[e]}},{})},formatCells=(e,t)=>{e["!cols"]=[],Object.entries(e).forEach(([a,r])=>{let{v:n}=r;n&&e["!cols"]&&e["!cols"].push({width:n.length+2}),t&&n in t&&(e={...e,...getCellsWithDataTypes(n,t)})})},PAYMENT_COLUMNS=e=>({CORRELATION_ID:e("Correlation ID"),VALUE:e("Value"),DESTINATION_PIX_KEY:e("Destination Pix Key"),DESTINATION_PIX_KEY_TYPE:e("Destination Pix Key Type"),COMMENT:e("Comment")}),PAYMENT_BRANCH_ACCOUNT_COLUMNS=e=>({VALUE:e("Value"),PSP_ID:e("PSP ID"),PSP_NAME:e("PSP Name"),HOLDER_NAME:e("Holder Name"),CPF_CNPJ:e("CPF ou CNPJ"),BRANCH:e("Ag\xeancia"),ACCOUNT:e("Conta"),ACCOUNT_TYPE:e("Tipo de Conta"),COMMENT:e("Coment\xe1rio")}),PAYMENT_COMMENTS=e=>{let t=PAYMENT_COLUMNS(e);return{[t.CORRELATION_ID]:e("Unique identifier for tracking the payment"),[t.VALUE]:e("Value"),[t.DESTINATION_PIX_KEY]:e("Destination Pix Key"),[t.COMMENT]:e("Comment")}},PAYMENT_BRANCH_ACCOUNT_COMMENTS=e=>{let t=PAYMENT_BRANCH_ACCOUNT_COLUMNS(e);return{[t.VALUE]:e("Value"),[t.PSP_ID]:e("PSP ID"),[t.PSP_NAME]:e("PSP Name"),[t.HOLDER_NAME]:e("Holder Name"),[t.CPF_CNPJ]:e("CPF ou CNPJ"),[t.BRANCH]:e("Ag\xeancia"),[t.ACCOUNT]:e("Conta"),[t.ACCOUNT_TYPE]:e("Tipo de Conta"),[t.COMMENT]:e("Coment\xe1rio")}},PAYMENT_FIELDS=e=>{let t=PAYMENT_COLUMNS(e);return{[t.CORRELATION_ID]:notRequired,[t.VALUE]:required,[t.DESTINATION_PIX_KEY]:required,[t.DESTINATION_PIX_KEY_TYPE]:notRequired,[t.COMMENT]:notRequired}},PAYMENT_BRANCH_ACCOUNT_FIELDS=e=>{let t=PAYMENT_BRANCH_ACCOUNT_COLUMNS(e);return{[t.VALUE]:required,[t.PSP_ID]:required,[t.PSP_NAME]:required,[t.HOLDER_NAME]:required,[t.CPF_CNPJ]:required,[t.BRANCH]:required,[t.ACCOUNT]:required,[t.ACCOUNT_TYPE]:required,[t.COMMENT]:notRequired}},USER_COLUMNS={EMPLOYEE_ID:"ID/Matr\xedcula Colaborador",CPF:"CPF Colaborador",ACTIVE:"Ativo",NAME:"Nome Colaborador",EMAIL:"E-mail Colaborador",GENDER:"G\xeanero Colaborador",BIRTHDATE:"Nascimento Colaborador",ADMISSION:"Admiss\xe3o Colaborador",DEMISSION:"Demiss\xe3o Colaborador",JOB_TITLE:"Cargo Colaborador",MOBILE_PHONE:"Celulares",CRC_NAME:"\xc1rea",CRC_ID:"ID da \xc1rea",MANAGER_EMPLOYEE_ID:"ID/Matr\xedcula Gestor",MANAGER_CPF:"CPF Gestor",MANAGER_EMAIL:"E-mail Gestor",BUSINESS_DIVISION_ID:"ID da Unidade de Neg\xf3cio",BUSINESS_DIVISION_NAME:"Unidade de Neg\xf3cio",TAGS:"Tags"},USER_COLUMNS_DATA_TYPES={[USER_COLUMNS.BIRTHDATE]:"d",[USER_COLUMNS.ADMISSION]:"d",[USER_COLUMNS.DEMISSION]:"d",[USER_COLUMNS.MOBILE_PHONE]:"s"},USER_COMMENTS={[USER_COLUMNS.EMPLOYEE_ID]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[USER_COLUMNS.ACTIVE]:"Se o usu\xe1rio est\xe1 ativo ou n\xe3o. (sim,true,ativo)",[USER_COLUMNS.CPF]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[USER_COLUMNS.NAME]:"Nome completo.",[USER_COLUMNS.EMAIL]:"C\xf3digo de identifica\xe7\xe3o do colaborador.",[USER_COLUMNS.GENDER]:"Masculino, Feminino ou Outro.",[USER_COLUMNS.BIRTHDATE]:"Formato: DD/MM/YYYY.",[USER_COLUMNS.ADMISSION]:"Formato: DD/MM/YYYY.",[USER_COLUMNS.DEMISSION]:"Formato: DD/MM/YYYY.",[USER_COLUMNS.JOB_TITLE]:"T\xedtulo do cargo.",[USER_COLUMNS.MOBILE_PHONE]:"Celular: 5511912345678, use ; (ponto e v\xedrgula) para separar os celulares",[USER_COLUMNS.CRC_NAME]:"Nome da \xe1rea.",[USER_COLUMNS.CRC_ID]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[USER_COLUMNS.MANAGER_EMPLOYEE_ID]:"C\xf3digo de identifica\xe7\xe3o do gestor.",[USER_COLUMNS.MANAGER_CPF]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[USER_COLUMNS.MANAGER_EMAIL]:"E-mail corporativo v\xe1lido.",[USER_COLUMNS.BUSINESS_DIVISION_ID]:"Preencher n\xfameros sem pontos e/ou tra\xe7os.",[USER_COLUMNS.BUSINESS_DIVISION_NAME]:"Nome da Unidade de Neg\xf3cio",[USER_COLUMNS.TAGS]:"Ex: Time de Vendas. Use ; (ponto e v\xedrgula) para separar as tags"},USER_REQUIRED_FIELDS={[USER_COLUMNS.EMPLOYEE_ID]:notRequired,[USER_COLUMNS.ACTIVE]:notRequired,[USER_COLUMNS.CPF]:requiredOr()([USER_COLUMNS.EMAIL]),[USER_COLUMNS.NAME]:required,[USER_COLUMNS.EMAIL]:requiredOr()([USER_COLUMNS.CPF]),[USER_COLUMNS.GENDER]:notRequired,[USER_COLUMNS.BIRTHDATE]:notRequired,[USER_COLUMNS.ADMISSION]:notRequired,[USER_COLUMNS.DEMISSION]:notRequired,[USER_COLUMNS.JOB_TITLE]:notRequired,[USER_COLUMNS.MOBILE_PHONE]:notRequired,[USER_COLUMNS.CRC_NAME]:notRequired,[USER_COLUMNS.CRC_ID]:notRequired,[USER_COLUMNS.MANAGER_EMPLOYEE_ID]:notRequired,[USER_COLUMNS.MANAGER_CPF]:notRequired,[USER_COLUMNS.MANAGER_EMAIL]:notRequired,[USER_COLUMNS.BUSINESS_DIVISION_ID]:notRequired,[USER_COLUMNS.BUSINESS_DIVISION_NAME]:notRequired,[USER_COLUMNS.TAGS]:notRequired},DATA_IMPORT_TYPE={USERS:"USERS",CHARGE:"CHARGE",PAYMENT:"PAYMENT",PAYMENT_BRANCH_ACCOUNT:"PAYMENT_BRANCH_ACCOUNT",CUSTOMER:"CUSTOMER",COMPANY:"COMPANY"},WORKSHEET_NAME={USER:"USER_IMPORT",USERS:"USER_IMPORT",CHARGE:"CHARGE_IMPORT",PAYMENT:"PAYMENT_IMPORT",PAYMENT_BRANCH_ACCOUNT:"PAYMENT_BRANCH_ACCOUNT_IMPORT",CUSTOMER:"CUSTOMER_IMPORT",COMPANY:"COMPANY_IMPORT"},getTypeData=(e,t=e=>e)=>{switch(e){case DATA_IMPORT_TYPE.USERS:return{columns:USER_COLUMNS,comments:USER_COMMENTS,requiredFields:USER_REQUIRED_FIELDS,dataTypes:USER_COLUMNS_DATA_TYPES};case DATA_IMPORT_TYPE.CHARGE:return{columns:CHARGE_COLUMNS,comments:CHARGE_COMMENTS,requiredFields:CHARGE_FIELDS};case DATA_IMPORT_TYPE.PAYMENT:return{columns:PAYMENT_COLUMNS(t),comments:PAYMENT_COMMENTS(t),requiredFields:PAYMENT_FIELDS(t)};case DATA_IMPORT_TYPE.PAYMENT_BRANCH_ACCOUNT:return{columns:PAYMENT_BRANCH_ACCOUNT_COLUMNS(t),comments:PAYMENT_BRANCH_ACCOUNT_COMMENTS(t),requiredFields:PAYMENT_BRANCH_ACCOUNT_FIELDS(t)};case DATA_IMPORT_TYPE.CUSTOMER:return{columns:CUSTOMER_COLUMNS(t),comments:CUSTOMER_COLUMNS(t),requiredFields:CUSTOMER_FIELDS(t)};case DATA_IMPORT_TYPE.COMPANY:return{columns:COMPANY_COLUMNS(t),comments:COMPANY_COLUMNS(t),requiredFields:COMPANY_FIELDS(t)};default:return{columns:{},comments:{},requiredFields:{}}}},getDataImportEnum=e=>({[DATA_IMPORT_TYPE.USERS]:e("Users"),[DATA_IMPORT_TYPE.CHARGE]:e("Charge"),[DATA_IMPORT_TYPE.PAYMENT]:e("Payment"),[DATA_IMPORT_TYPE.PAYMENT_BRANCH_ACCOUNT]:e("Payment Branch Account"),[DATA_IMPORT_TYPE.CUSTOMER]:e("Customer"),[DATA_IMPORT_TYPE.COMPANY]:e("Company")}),getTemplateFilename=(e,t)=>{let a=getDataImportEnum(t),r=t("charge_batch_template_time_data");return e===DATA_IMPORT_TYPE.CHARGE?`${r}.xlsx`:`Template_Import_${a[e]}.xlsx`},generateExcel=(e,t)=>{let a=external_xlsx_namespaceObject.utils.book_new(),{columns:r,dataTypes:n}=getTypeData(t,e),s=external_xlsx_namespaceObject.utils.json_to_sheet([],{header:Object.values(r)});formatCells(s,n);let i=WORKSHEET_NAME[t.toLocaleUpperCase()];return a.Sheets[i]=s,a.SheetNames.push(i),{stream:external_xlsx_namespaceObject.write(a,{type:"buffer",bookType:"xlsx"}),fileName:getTemplateFilename(t,e)}},templateMiddleware=(e,t)=>{if(!Object.values(DATA_IMPORT_TYPE).includes(t))return null;let{fileName:a,stream:r}=generateExcel(e,t);return{stream:r,fileName:a}},ImportTable_Link=external_styled_components_default().a`
|
|
1548
1548
|
color: ${e=>e.theme.primaryLighterColor};
|
|
1549
|
-
`,ImportTable_ImportTable=({dataImportTable:e,type:t})=>{let{t:a}=(0,external_react_i18next_namespaceObject.useTranslation)(),r=[{property:"name",header:{label:a("Field")}},{property:"description",header:{label:a("Description")}},{property:"requiredMessage",header:{label:a("Required")}}],{stream:n,fileName:s}=(0,external_react_namespaceObject.useMemo)(()=>templateMiddleware(a,t),[t]);return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Typography,{my:"15px",fontSize:"12px",children:[a("Download here the")," ",(0,jsx_runtime_namespaceObject.jsx)(ImportTable_Link,{href:(()=>{if(!n)return"";let e=new File([n],s);return URL.createObjectURL(e)})(),download:s,children:"excel template"})," ",a("to mount your data")]}),(0,jsx_runtime_namespaceObject.jsx)(Table,{columns:r,rows:e,hideFooter:!0})]})},xlsx_ImportTable=ImportTable_ImportTable,getSteps=(e,t)=>{let{importLabel:a=e("Import")}=t??{};return[e("Select a file to upload"),e("Analyze data"),e("Data review"),a]},ImportStepper=e=>{let[t,a]=(0,external_react_namespaceObject.useState)(null),[r,n]=(0,external_react_namespaceObject.useState)([]),[s,i]=(0,external_react_namespaceObject.useState)(!1),[o,c]=(0,external_react_namespaceObject.useState)(!1),[l,_]=(0,external_react_namespaceObject.useState)(!1),[p,m]=(0,external_react_namespaceObject.useState)(0),[d,u]=(0,external_react_namespaceObject.useState)(new Set),{t:x}=(0,external_react_i18next_namespaceObject.useTranslation)(),j=(0,external_react_namespaceObject.useRef)(),[b,C]=(0,external_react_namespaceObject.useState)([]),[O,h]=(0,external_react_namespaceObject.useState)(!1),[T,f]=(0,external_react_namespaceObject.useState)(!0),{dataImportTable:g,getColumnType:E,getInvalidFieldsMessage:S,getReferences:y,updateRows:A,prepareQueue:I,processQueueItem:R,reducer:P,labels:w,customColumnValidation:M,type:N}=e,k=getSteps(x,w),D=e=>{e.stopPropagation(),a(null),n([]),_(!1),j.current=[]},v=async e=>{n(e),j.current=e},L=0===p||o,U=p===k?.length-1||s||!r?.length||o||!T;return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Stepper_default(),{activeStep:p,children:k.map((e,t)=>(0,jsx_runtime_namespaceObject.jsx)(Step_default(),{children:(0,jsx_runtime_namespaceObject.jsx)(StepLabel_default(),{children:e})},t))}),(e=>{switch(e){case 0:return(0,jsx_runtime_namespaceObject.jsx)(ImportDropzone,{setIsLoading:i,setSheet:a,clearData:D,sheet:t,isLoading:s,dataComplete:!!r.length,setData:n,setShowReport:_,setFirstData:v,setFirstImport:h,dataImportTable:g});case 1:return(0,jsx_runtime_namespaceObject.jsx)(ImportProcessData,{data:r,setData:n,latestData:j,setIsProcessing:c,isProcessing:o,updateRows:A});case 2:return(0,jsx_runtime_namespaceObject.jsx)(Import,{setData:n,data:r,isProcessing:o,setShowReport:_,showReport:l,setSelectedData:C,firstImport:O,selectedData:b,dataImportTable:g,getColumnType:E,getInvalidFieldsMessage:S,getReferences:y,setIsNextEnabled:f,customColumnValidation:M});case 3:return(0,jsx_runtime_namespaceObject.jsx)(ImportProcessQueue,{data:r,setData:n,setShowReport:_,selectedData:b,setSelectedData:C,showReport:l,setFirstImport:h,setActiveStep:m,prepareQueue:I,processQueueItem:R,reducer:P});default:return""}})(p),t&&r.length<1?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{justifyContent:"flex-end",children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{color:"error",children:x("You are trying to import a empty sheet")})}):null,(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{justifyContent:"flex-end",alignItems:"center",my:"15px",children:(0,jsx_runtime_namespaceObject.jsxs)(helpers_HorizontalStack,{children:[(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",disabled:L,onClick:()=>{m(e=>e-1)},children:x("Previous")}),(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"contained",color:"primary",onClick:()=>{let e=d;d.has(p)&&(e=new Set(e.values())).delete(p),m(e=>e+1),u(e)},disabled:U,children:x("Go forward")})]})}),0===p&&(0,jsx_runtime_namespaceObject.jsx)(ImportTable_ImportTable,{dataImportTable:g,type:N})]})},xlsx_ImportStepper=ImportStepper,WooviLink=({children:e,to:t,...a})=>(0,jsx_runtime_namespaceObject.jsx)(Link_default(),{component:ReactRouterLinkBehavior,to:t,...a,children:e}),md_namespaceObject=require("react-icons/md"),tb_namespaceObject=require("react-icons/tb"),vsc_namespaceObject=require("react-icons/vsc"),external_qrcode_react_namespaceObject=require("qrcode.react"),usePooling=(e,t,a)=>{let r=(0,external_react_namespaceObject.useRef)();(0,external_react_namespaceObject.useEffect)(()=>{r.current=t},[t]),(0,external_react_namespaceObject.useEffect)(()=>{let t;return e?t=setInterval((...e)=>r.current(...e),a):t&&clearInterval(t),()=>{t&&clearInterval(t)}},[e,a])},PIX_AUTHENTICATION_RESULT_ENUM={MATCHED:"MATCHED",MISMATCH:"MISMATCH",UNVERIFIED:"UNVERIFIED"},CopyQRCode=({value:e,onError:t,debounceDelay:a=1e3})=>{let{t:r}=(0,external_react_i18next_namespaceObject.useTranslation)(),{enqueueSnackbar:n}=(0,external_notistack_namespaceObject.useSnackbar)(),s=async()=>{n(r("Error copying QR Code"),{variant:"error"}),t&&t(!0)};return(0,jsx_runtime_namespaceObject.jsx)(CopyButton,{value:e,debounceDelay:a,onError:s,"data-testid":"btn-copy-qrcode-payment-link",children:r("Copy QR Code")})},paymentLink_CopyQRCode=CopyQRCode,QRCodeWrapper=({qrCodeShow:e,children:t,...a})=>{let r=(0,material_namespaceObject.useTheme)();return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{display:e?"flex":"none",alignItems:"center",justifyContent:"center",border:e?"1px solid":"none",borderColor:r.palette.primary.main,borderRadius:r.shape.borderRadius,boxShadow:e?`0px 0px 0px 3px ${(0,material_namespaceObject.lighten)(r.palette.primary.main,.7)}`:"none","& > svg":{display:e?"block":"none",height:"auto",width:"100%",borderRadius:r.shape.borderRadius},"@media (min-width: 600px)":{display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:r.palette.primary.main,borderRadius:r.shape.borderRadius,boxShadow:`0px 0px 0px 3px ${(0,material_namespaceObject.lighten)(r.palette.primary.main,.7)}`,"& > svg":{display:"block",height:"auto",width:"100%",borderRadius:r.shape.borderRadius}}},"data-testid":a["data-testid"],children:t})},MultiFactorPixPaymentMatch=({amount:e=1,onContinue:t})=>{let{t:a}=(0,external_react_i18next_namespaceObject.useTranslation)(),r=(0,styles_namespaceObject.useTheme)(),n=r.palette.success.main,s=convertToMoney(e)??convertToMoney(1);return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{alignItems:"center",sx:{textAlign:"center"},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdCheckCircle,{size:30,color:n})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"h6",fontWeight:r.typography.fontWeightBold,color:"text.primary",sx:{mb:2},children:a("Two-factor verification confirmed")}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:a("We received the payment of {{amount}} and confirmed the payer tax ID matches your account. You can continue securely.",{amount:s})})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Button,{variant:"contained",color:"primary",onClick:t,sx:{mt:2,px:4},children:a("Continue")})]})},multifactor_MultiFactorPixPaymentMatch=MultiFactorPixPaymentMatch,MultiFactorPixPaymentMismatch=({amount:e=1})=>{let{t}=(0,external_react_i18next_namespaceObject.useTranslation)(),a=(0,styles_namespaceObject.useTheme)(),r=a.palette.error.main,n=convertToMoney(e);return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{alignItems:"center",sx:{textAlign:"center"},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdCancel,{size:30,color:r})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"h6",fontWeight:a.typography.fontWeightBold,color:"text.primary",sx:{marginBottom:2},children:t("Unable to confirm your identity")}),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:t("We received the payment of {{amount}}, but the payer's taxpayer ID does not match the CPF on your account. For security, we cannot grant access.",{amount:n})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:t("Try making the payment from a bank account in your name or choose another verification method.")})]})]})},multifactor_MultiFactorPixPaymentMismatch=MultiFactorPixPaymentMismatch,POLLING_INTERVAL=5e3,MultiFactorPixPaymentView=({brCode:e,onGetResult:t,onContinue:a})=>{let{t:r}=(0,external_react_i18next_namespaceObject.useTranslation)(),n=(0,styles_namespaceObject.useTheme)(),[s,i]=(0,external_react_namespaceObject.useState)();return usePooling(!s||s===PIX_AUTHENTICATION_RESULT_ENUM.UNVERIFIED,async()=>{if(!t)return;let e=await t();i(e?.result)},5e3),s===PIX_AUTHENTICATION_RESULT_ENUM.MISMATCH?(0,jsx_runtime_namespaceObject.jsx)(multifactor_MultiFactorPixPaymentMismatch,{}):s===PIX_AUTHENTICATION_RESULT_ENUM.MATCHED?(0,jsx_runtime_namespaceObject.jsx)(multifactor_MultiFactorPixPaymentMatch,{onContinue:a}):(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{flexDirection:"column",spacing:1.5,alignItems:"center",sx:{py:1},children:[(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{variant:"body1",textAlign:"center",sx:{mb:.5},children:r("We will confirm account ownership through payment data. The amount will be automatically refunded.")}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{maxWidth:"200px",width:"100%"},children:(0,jsx_runtime_namespaceObject.jsx)(QRCodeWrapper,{qrCodeShow:!0,"data-testid":"pix-qrcode",children:(0,jsx_runtime_namespaceObject.jsx)(external_qrcode_react_namespaceObject.QRCodeSVG,{value:e,size:160,level:"M",marginSize:4})})}),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{spacing:1,sx:{maxWidth:"320px",width:"100%"},children:[(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{variant:"caption",sx:{px:1.5,py:.5,bgcolor:n.palette.grey[100],borderRadius:1,fontFamily:"monospace",fontSize:"0.7rem",whiteSpace:"nowrap",overflow:"auto",textAlign:"left","&::-webkit-scrollbar":{height:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.palette.grey[400],borderRadius:"4px"}},children:e}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{"& > div":{flex:"unset"}},children:(0,jsx_runtime_namespaceObject.jsx)(paymentLink_CopyQRCode,{value:e})})]})]})},multifactor_MultiFactorPixPaymentView=MultiFactorPixPaymentView,MultiFactorConfirmModal=({title:e,message:t,actionMessage:a,isOpen:r,isMutationPending:n=!1,onConfirm:s,handleOpenChange:i,onTryAnotherWay:o,email:c,isTOTPActive:l,isWhatsAppAuthenticatorActive:_,phoneNumber:p,name:m="multiFactorCode",action:d,onGetResult:u,onContinue:x})=>{let{t:j}=(0,external_react_i18next_namespaceObject.useTranslation)(),b=(0,styles_namespaceObject.useTheme)(),[C,O]=(0,external_react_namespaceObject.useState)(!1),[h,T]=(0,external_react_namespaceObject.useState)(!1),[f,g]=(0,external_react_namespaceObject.useState)(null),[E]=(0,external_formik_namespaceObject.useField)(m),S=n||E.value.length<6||E.value.replaceAll(" ","").length<6,y=async()=>{if(T(!0),o){let e=await o();e&&e.brCode&&(g(e),O(!0))}T(!1)},A=()=>{g(null),O(!1),i()};return(0,jsx_runtime_namespaceObject.jsx)(SwipeableModal,{open:r,onClose:A,title:e,actions:C?(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",color:"secondary",onClick:A,children:j("Cancel")}):(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[o&&(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",color:"secondary",disabled:h,onClick:y,sx:{marginRight:"auto"},children:j("Try another way")}),(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",color:"secondary",onClick:A,children:j("Cancel")}),(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{onClick:()=>s(E.value),disabled:S,children:j("Confirm")},"action-2")]}),children:C&&f?.brCode?(0,jsx_runtime_namespaceObject.jsx)(multifactor_MultiFactorPixPaymentView,{brCode:f.brCode,onGetResult:u,onContinue:x}):(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{flexDirection:"column",spacing:2,children:[(()=>{let e=d===MULTI_FACTOR_ACTION_ENUM.USER_MASTER_AUTHENTICATOR_TOTP_DEACTIVATE_METHOD;if(t)return t;if(l&&!e){let e=[{icon:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdOutlineDevicesOther,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Access your authentication app"),description:j("Open the authentication application previously configured on your cell phone.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(vsc_namespaceObject.VscShield,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Locate the authentication code"),description:j("Look for the 6-digit authentication code displayed in the app.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(tb_namespaceObject.TbPasswordMobilePhone,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Enter the code and confirm"),description:j("Enter the 6-digit code in the field below and confirm the operation.")}];return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{children:[j("Validate your code with the authenticator code generated in your app.")," ",a]}),e.map((e,t)=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{gap:2,flexDirection:"row",children:[e.icon,(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{justifyContent:"center",children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[t+1,"\xb0 - ",e.title]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:e.description})]})]},t))]})}if(_){let e=[{icon:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdOutlineDevicesOther,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Access your phone"),description:j("Open the WhatsApp or SMS application on your cell phone.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(vsc_namespaceObject.VscShield,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Locate the authentication code"),description:j("Look for the 6-digit authentication code displayed in the WhatsApp or SMS.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(tb_namespaceObject.TbPasswordMobilePhone,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Enter the code and confirm"),description:j("Enter the 6-digit code in the field below and confirm the operation.")}];return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{flexDirection:"column",gap:1},children:[(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:j("We send a validation code to {{phoneNumber}}.",{phoneNumber:p})}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:j("The code will be valid for 10 minutes after we send it.")}),e.map((e,t)=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{gap:2,flexDirection:"row",children:[e.icon,(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{justifyContent:"center",children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[t+1,"\xb0 - ",e.title]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:e.description})]})]},t))]})}if(!l&&!_&&c){let e=[{icon:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdMailOutline,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Access your email"),description:j("Open your email and look for the message with the authentication code.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(vsc_namespaceObject.VscShield,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Locate the authentication code"),description:j("Look for the 6-digit authentication code displayed in the email.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(tb_namespaceObject.TbPasswordMobilePhone,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Enter the code and confirm"),description:j("Enter the 6-digit code in the field below and confirm the operation.")}];return(0,jsx_runtime_namespaceObject.jsxs)(mui_BoxFlex,{sx:{flexDirection:"column",gap:1},children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{children:[j("We send a validation code to {{email}}.",{email:c})," ",a]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:j("The code will be valid for 10 minutes after we send it.")}),e.map((e,t)=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{gap:2,flexDirection:"row",children:[e.icon,(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{justifyContent:"center",children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[t+1,"\xb0 - ",e.title]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:e.description})]})]},t))]})}})(),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[j("Authentication code"),":"]}),(0,jsx_runtime_namespaceObject.jsx)(pinInput_PinInputFormik,{name:m})]})]})})},multifactor_MultiFactorConfirmModal=MultiFactorConfirmModal,COBR_STATUS_ENUM={CREATED:"CREATED",ACTIVE:"ACTIVE",CONCLUDED:"CONCLUDED",CANCELED:"CANCELED",REJECTED:"REJECTED",EXPIRED:"EXPIRED",FAILED_TRY:"FAILED_TRY"},COBR_TRY_STATUS={REQUESTED:"REQUESTED",SCHEDULED:"SCHEDULED",PAID:"PAID",REJECTED:"REJECTED"},CobrTagStatus_TAG_STATUS_COLOR={[COBR_STATUS_ENUM.ACTIVE]:"#FF9800",[COBR_STATUS_ENUM.REJECTED]:"#ff7f50",[COBR_STATUS_ENUM.CANCELED]:"#FF9800",[COBR_STATUS_ENUM.EXPIRED]:"#ff7f50",[COBR_STATUS_ENUM.CREATED]:"#e6cf00ff",[COBR_STATUS_ENUM.CONCLUDED]:"#4CAF50",[COBR_TRY_STATUS.PAID]:"#4CAF50",[COBR_TRY_STATUS.SCHEDULED]:"#FF9800",[COBR_TRY_STATUS.REQUESTED]:"#e6cf00ff"},CobrTagStatus=external_styled_components_default()(tag_Tag)`
|
|
1549
|
+
`,ImportTable_ImportTable=({dataImportTable:e,type:t})=>{let{t:a}=(0,external_react_i18next_namespaceObject.useTranslation)(),r=[{property:"name",header:{label:a("Field")}},{property:"description",header:{label:a("Description")}},{property:"requiredMessage",header:{label:a("Required")}}],{stream:n,fileName:s}=(0,external_react_namespaceObject.useMemo)(()=>templateMiddleware(a,t),[t]);return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Typography,{my:"15px",fontSize:"12px",children:[a("Download here the")," ",(0,jsx_runtime_namespaceObject.jsx)(ImportTable_Link,{href:(()=>{if(!n)return"";let e=new File([n],s);return URL.createObjectURL(e)})(),download:s,children:"excel template"})," ",a("to mount your data")]}),(0,jsx_runtime_namespaceObject.jsx)(Table,{columns:r,rows:e,hideFooter:!0})]})},xlsx_ImportTable=ImportTable_ImportTable,getSteps=(e,t)=>{let{importLabel:a=e("Import")}=t??{};return[e("Select a file to upload"),e("Analyze data"),e("Data review"),a]},ImportStepper=e=>{let[t,a]=(0,external_react_namespaceObject.useState)(null),[r,n]=(0,external_react_namespaceObject.useState)([]),[s,i]=(0,external_react_namespaceObject.useState)(!1),[o,c]=(0,external_react_namespaceObject.useState)(!1),[l,_]=(0,external_react_namespaceObject.useState)(!1),[p,m]=(0,external_react_namespaceObject.useState)(0),[d,u]=(0,external_react_namespaceObject.useState)(new Set),{t:x}=(0,external_react_i18next_namespaceObject.useTranslation)(),j=(0,external_react_namespaceObject.useRef)(),[b,C]=(0,external_react_namespaceObject.useState)([]),[O,h]=(0,external_react_namespaceObject.useState)(!1),[T,f]=(0,external_react_namespaceObject.useState)(!0),{dataImportTable:g,getColumnType:E,getInvalidFieldsMessage:S,getReferences:y,updateRows:A,prepareQueue:I,processQueueItem:R,reducer:P,labels:w,customColumnValidation:M,type:N}=e,k=getSteps(x,w),D=e=>{e.stopPropagation(),a(null),n([]),_(!1),j.current=[]},v=async e=>{n(e),j.current=e},L=0===p||o,U=p===k?.length-1||s||!r?.length||o||!T;return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsx)(Stepper_default(),{activeStep:p,children:k.map((e,t)=>(0,jsx_runtime_namespaceObject.jsx)(Step_default(),{children:(0,jsx_runtime_namespaceObject.jsx)(StepLabel_default(),{children:e})},t))}),(e=>{switch(e){case 0:return(0,jsx_runtime_namespaceObject.jsx)(ImportDropzone,{setIsLoading:i,setSheet:a,clearData:D,sheet:t,isLoading:s,dataComplete:!!r.length,setData:n,setShowReport:_,setFirstData:v,setFirstImport:h,dataImportTable:g});case 1:return(0,jsx_runtime_namespaceObject.jsx)(ImportProcessData,{data:r,setData:n,latestData:j,setIsProcessing:c,isProcessing:o,updateRows:A});case 2:return(0,jsx_runtime_namespaceObject.jsx)(Import,{setData:n,data:r,isProcessing:o,setShowReport:_,showReport:l,setSelectedData:C,firstImport:O,selectedData:b,dataImportTable:g,getColumnType:E,getInvalidFieldsMessage:S,getReferences:y,setIsNextEnabled:f,customColumnValidation:M});case 3:return(0,jsx_runtime_namespaceObject.jsx)(ImportProcessQueue,{data:r,setData:n,setShowReport:_,selectedData:b,setSelectedData:C,showReport:l,setFirstImport:h,setActiveStep:m,prepareQueue:I,processQueueItem:R,reducer:P});default:return""}})(p),t&&r.length<1?(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{justifyContent:"flex-end",children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{color:"error",children:x("You are trying to import a empty sheet")})}):null,(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{justifyContent:"flex-end",alignItems:"center",my:"15px",children:(0,jsx_runtime_namespaceObject.jsxs)(helpers_HorizontalStack,{children:[(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",disabled:L,onClick:()=>{m(e=>e-1)},children:x("Previous")}),(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"contained",color:"primary",onClick:()=>{let e=d;d.has(p)&&(e=new Set(e.values())).delete(p),m(e=>e+1),u(e)},disabled:U,children:x("Go forward")})]})}),0===p&&(0,jsx_runtime_namespaceObject.jsx)(ImportTable_ImportTable,{dataImportTable:g,type:N})]})},xlsx_ImportStepper=ImportStepper,WooviLink=({children:e,to:t,...a})=>(0,jsx_runtime_namespaceObject.jsx)(Link_default(),{component:ReactRouterLinkBehavior,to:t,...a,children:e}),md_namespaceObject=require("react-icons/md"),tb_namespaceObject=require("react-icons/tb"),vsc_namespaceObject=require("react-icons/vsc"),MULTI_FACTOR_ACTION_ENUM={USER_MASTER_PHONE_NUMBERS_EDIT:"USER_MASTER_PHONE_NUMBERS_EDIT",USER_MASTER_EMAILS_EDIT:"USER_MASTER_EMAILS_EDIT",USER_MASTER_AUTHENTICATOR_TOTP_DEACTIVATE_METHOD:"USER_MASTER_AUTHENTICATOR_TOTP_DEACTIVATE_METHOD"},external_qrcode_react_namespaceObject=require("qrcode.react"),usePooling=(e,t,a)=>{let r=(0,external_react_namespaceObject.useRef)();(0,external_react_namespaceObject.useEffect)(()=>{r.current=t},[t]),(0,external_react_namespaceObject.useEffect)(()=>{let t;return e?t=setInterval((...e)=>r.current(...e),a):t&&clearInterval(t),()=>{t&&clearInterval(t)}},[e,a])},PIX_AUTHENTICATION_RESULT_ENUM={MATCHED:"MATCHED",MISMATCH:"MISMATCH",UNVERIFIED:"UNVERIFIED"},CopyQRCode=({value:e,onError:t,debounceDelay:a=1e3})=>{let{t:r}=(0,external_react_i18next_namespaceObject.useTranslation)(),{enqueueSnackbar:n}=(0,external_notistack_namespaceObject.useSnackbar)(),s=async()=>{n(r("Error copying QR Code"),{variant:"error"}),t&&t(!0)};return(0,jsx_runtime_namespaceObject.jsx)(CopyButton,{value:e,debounceDelay:a,onError:s,"data-testid":"btn-copy-qrcode-payment-link",children:r("Copy QR Code")})},paymentLink_CopyQRCode=CopyQRCode,QRCodeWrapper=({qrCodeShow:e,children:t,...a})=>{let r=(0,material_namespaceObject.useTheme)();return(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{display:e?"flex":"none",alignItems:"center",justifyContent:"center",border:e?"1px solid":"none",borderColor:r.palette.primary.main,borderRadius:r.shape.borderRadius,boxShadow:e?`0px 0px 0px 3px ${(0,material_namespaceObject.lighten)(r.palette.primary.main,.7)}`:"none","& > svg":{display:e?"block":"none",height:"auto",width:"100%",borderRadius:r.shape.borderRadius},"@media (min-width: 600px)":{display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:r.palette.primary.main,borderRadius:r.shape.borderRadius,boxShadow:`0px 0px 0px 3px ${(0,material_namespaceObject.lighten)(r.palette.primary.main,.7)}`,"& > svg":{display:"block",height:"auto",width:"100%",borderRadius:r.shape.borderRadius}}},"data-testid":a["data-testid"],children:t})},MultiFactorPixPaymentMatch=({amount:e=1,onContinue:t})=>{let{t:a}=(0,external_react_i18next_namespaceObject.useTranslation)(),r=(0,styles_namespaceObject.useTheme)(),n=r.palette.success.main,s=convertToMoney(e)??convertToMoney(1);return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{alignItems:"center",sx:{textAlign:"center"},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdCheckCircle,{size:30,color:n})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"h6",fontWeight:r.typography.fontWeightBold,color:"text.primary",sx:{mb:2},children:a("Two-factor verification confirmed")}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:a("We received the payment of {{amount}} and confirmed the payer tax ID matches your account. You can continue securely.",{amount:s})})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Button,{variant:"contained",color:"primary",onClick:t,sx:{mt:2,px:4},children:a("Continue")})]})},multifactor_MultiFactorPixPaymentMatch=MultiFactorPixPaymentMatch,MultiFactorPixPaymentMismatch=({amount:e=1})=>{let{t}=(0,external_react_i18next_namespaceObject.useTranslation)(),a=(0,styles_namespaceObject.useTheme)(),r=a.palette.error.main,n=convertToMoney(e);return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{alignItems:"center",sx:{textAlign:"center"},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdCancel,{size:30,color:r})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"h6",fontWeight:a.typography.fontWeightBold,color:"text.primary",sx:{marginBottom:2},children:t("Unable to confirm your identity")}),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{spacing:1.2,sx:{maxWidth:560,lineHeight:1.7},children:[(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:t("We received the payment of {{amount}}, but the payer's taxpayer ID does not match the CPF on your account. For security, we cannot grant access.",{amount:n})}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Typography,{variant:"body1",color:"text.secondary",sx:{lineHeight:1.7},children:t("Try making the payment from a bank account in your name or choose another verification method.")})]})]})},multifactor_MultiFactorPixPaymentMismatch=MultiFactorPixPaymentMismatch,POLLING_INTERVAL=5e3,MultiFactorPixPaymentView=({brCode:e,onGetResult:t,onContinue:a})=>{let{t:r}=(0,external_react_i18next_namespaceObject.useTranslation)(),n=(0,styles_namespaceObject.useTheme)(),[s,i]=(0,external_react_namespaceObject.useState)();return usePooling(!s||s===PIX_AUTHENTICATION_RESULT_ENUM.UNVERIFIED,async()=>{if(!t)return;let e=await t();i(e?.result)},5e3),s===PIX_AUTHENTICATION_RESULT_ENUM.MISMATCH?(0,jsx_runtime_namespaceObject.jsx)(multifactor_MultiFactorPixPaymentMismatch,{}):s===PIX_AUTHENTICATION_RESULT_ENUM.MATCHED?(0,jsx_runtime_namespaceObject.jsx)(multifactor_MultiFactorPixPaymentMatch,{onContinue:a}):(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{flexDirection:"column",spacing:1.5,alignItems:"center",sx:{py:1},children:[(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{variant:"body1",textAlign:"center",sx:{mb:.5},children:r("We will confirm account ownership through payment data. The amount will be automatically refunded.")}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{maxWidth:"200px",width:"100%"},children:(0,jsx_runtime_namespaceObject.jsx)(QRCodeWrapper,{qrCodeShow:!0,"data-testid":"pix-qrcode",children:(0,jsx_runtime_namespaceObject.jsx)(external_qrcode_react_namespaceObject.QRCodeSVG,{value:e,size:160,level:"M",marginSize:4})})}),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{spacing:1,sx:{maxWidth:"320px",width:"100%"},children:[(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{variant:"caption",sx:{px:1.5,py:.5,bgcolor:n.palette.grey[100],borderRadius:1,fontFamily:"monospace",fontSize:"0.7rem",whiteSpace:"nowrap",overflow:"auto",textAlign:"left","&::-webkit-scrollbar":{height:"4px"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.palette.grey[400],borderRadius:"4px"}},children:e}),(0,jsx_runtime_namespaceObject.jsx)(material_namespaceObject.Stack,{sx:{"& > div":{flex:"unset"}},children:(0,jsx_runtime_namespaceObject.jsx)(paymentLink_CopyQRCode,{value:e})})]})]})},multifactor_MultiFactorPixPaymentView=MultiFactorPixPaymentView,MultiFactorConfirmModal=({title:e,message:t,actionMessage:a,isOpen:r,isMutationPending:n=!1,onConfirm:s,handleOpenChange:i,onTryAnotherWay:o,email:c,isTOTPActive:l,isWhatsAppAuthenticatorActive:_,phoneNumber:p,name:m="multiFactorCode",action:d,onGetResult:u,onContinue:x})=>{let{t:j}=(0,external_react_i18next_namespaceObject.useTranslation)(),b=(0,styles_namespaceObject.useTheme)(),[C,O]=(0,external_react_namespaceObject.useState)(!1),[h,T]=(0,external_react_namespaceObject.useState)(!1),[f,g]=(0,external_react_namespaceObject.useState)(null),[E]=(0,external_formik_namespaceObject.useField)(m),S=n||E.value.length<6||E.value.replaceAll(" ","").length<6,y=async()=>{if(T(!0),o){let e=await o();e&&e.brCode&&(g(e),O(!0))}T(!1)},A=()=>{g(null),O(!1),i()};return(0,jsx_runtime_namespaceObject.jsx)(SwipeableModal,{open:r,onClose:A,title:e,actions:C?(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",color:"secondary",onClick:A,children:j("Cancel")}):(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[o&&(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",color:"secondary",disabled:h,onClick:y,sx:{marginRight:"auto"},children:j("Try another way")}),(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{variant:"text",color:"secondary",onClick:A,children:j("Cancel")}),(0,jsx_runtime_namespaceObject.jsx)(buttons_ActionButton,{onClick:()=>s(E.value),disabled:S,children:j("Confirm")},"action-2")]}),children:C&&f?.brCode?(0,jsx_runtime_namespaceObject.jsx)(multifactor_MultiFactorPixPaymentView,{brCode:f.brCode,onGetResult:u,onContinue:x}):(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{flexDirection:"column",spacing:2,children:[(()=>{let e=d===MULTI_FACTOR_ACTION_ENUM.USER_MASTER_AUTHENTICATOR_TOTP_DEACTIVATE_METHOD;if(t)return t;if(l&&!e){let e=[{icon:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdOutlineDevicesOther,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Access your authentication app"),description:j("Open the authentication application previously configured on your cell phone.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(vsc_namespaceObject.VscShield,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Locate the authentication code"),description:j("Look for the 6-digit authentication code displayed in the app.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(tb_namespaceObject.TbPasswordMobilePhone,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Enter the code and confirm"),description:j("Enter the 6-digit code in the field below and confirm the operation.")}];return(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{children:[j("Validate your code with the authenticator code generated in your app.")," ",a]}),e.map((e,t)=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{gap:2,flexDirection:"row",children:[e.icon,(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{justifyContent:"center",children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[t+1,"\xb0 - ",e.title]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:e.description})]})]},t))]})}if(_){let e=[{icon:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdOutlineDevicesOther,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Access your phone"),description:j("Open the WhatsApp or SMS application on your cell phone.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(vsc_namespaceObject.VscShield,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Locate the authentication code"),description:j("Look for the 6-digit authentication code displayed in the WhatsApp or SMS.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(tb_namespaceObject.TbPasswordMobilePhone,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Enter the code and confirm"),description:j("Enter the 6-digit code in the field below and confirm the operation.")}];return(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{sx:{flexDirection:"column",gap:1},children:[(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:j("We send a validation code to {{phoneNumber}}.",{phoneNumber:p})}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:j("The code will be valid for 10 minutes after we send it.")}),e.map((e,t)=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{gap:2,flexDirection:"row",children:[e.icon,(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{justifyContent:"center",children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[t+1,"\xb0 - ",e.title]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:e.description})]})]},t))]})}if(!l&&!_&&c){let e=[{icon:(0,jsx_runtime_namespaceObject.jsx)(md_namespaceObject.MdMailOutline,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Access your email"),description:j("Open your email and look for the message with the authentication code.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(vsc_namespaceObject.VscShield,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Locate the authentication code"),description:j("Look for the 6-digit authentication code displayed in the email.")},{icon:(0,jsx_runtime_namespaceObject.jsx)(tb_namespaceObject.TbPasswordMobilePhone,{fontSize:b.spacing(6),color:b.palette.primary.main}),title:j("Enter the code and confirm"),description:j("Enter the 6-digit code in the field below and confirm the operation.")}];return(0,jsx_runtime_namespaceObject.jsxs)(mui_BoxFlex,{sx:{flexDirection:"column",gap:1},children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{children:[j("We send a validation code to {{email}}.",{email:c})," ",a]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:j("The code will be valid for 10 minutes after we send it.")}),e.map((e,t)=>(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{gap:2,flexDirection:"row",children:[e.icon,(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{justifyContent:"center",children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[t+1,"\xb0 - ",e.title]}),(0,jsx_runtime_namespaceObject.jsx)(Typography_default(),{children:e.description})]})]},t))]})}})(),(0,jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Stack,{children:[(0,jsx_runtime_namespaceObject.jsxs)(Typography_default(),{fontWeight:b.typography.fontWeightBold,children:[j("Authentication code"),":"]}),(0,jsx_runtime_namespaceObject.jsx)(pinInput_PinInputFormik,{name:m})]})]})})},multifactor_MultiFactorConfirmModal=MultiFactorConfirmModal,COBR_STATUS_ENUM={CREATED:"CREATED",ACTIVE:"ACTIVE",CONCLUDED:"CONCLUDED",CANCELED:"CANCELED",REJECTED:"REJECTED",EXPIRED:"EXPIRED",FAILED_TRY:"FAILED_TRY"},COBR_TRY_STATUS={REQUESTED:"REQUESTED",SCHEDULED:"SCHEDULED",PAID:"PAID",REJECTED:"REJECTED"},CobrTagStatus_TAG_STATUS_COLOR={[COBR_STATUS_ENUM.ACTIVE]:"#FF9800",[COBR_STATUS_ENUM.REJECTED]:"#ff7f50",[COBR_STATUS_ENUM.CANCELED]:"#FF9800",[COBR_STATUS_ENUM.EXPIRED]:"#ff7f50",[COBR_STATUS_ENUM.CREATED]:"#e6cf00ff",[COBR_STATUS_ENUM.CONCLUDED]:"#4CAF50",[COBR_TRY_STATUS.PAID]:"#4CAF50",[COBR_TRY_STATUS.SCHEDULED]:"#FF9800",[COBR_TRY_STATUS.REQUESTED]:"#e6cf00ff"},CobrTagStatus=external_styled_components_default()(tag_Tag)`
|
|
1550
1550
|
background-color: ${e=>CobrTagStatus_TAG_STATUS_COLOR[e.status]} !important;
|
|
1551
1551
|
color: white !important;
|
|
1552
1552
|
`,CobrTryTagStatus=external_styled_components_default()(tag_Tag)`
|