PageSourceSearch

https://app.contabilium.com/v3/static/js/main.4fff3c20.chunk.js

js contabilium.com collected 2026-10-08 07:29:33 UTC 2,057,142 bytes, 77 lines download raw bytes

1(this["webpackJsonp@micro-frontends-cbl/Attributes"]=this["webpackJsonp@micro-frontends-cbl/Attributes"]||[]).push([[0],{12:function(e,t,a){"use strict";a(1);var i=a(310),o=a(0);const n={helpIcon:"M6.83325 0.333313C3.24927 0.333313 0.333252 3.24933 0.333252 6.83331C0.333252 10.4173 3.24927 13.3333 6.83325 13.3333C10.4172 13.3333 13.3333 10.4173 13.3333 6.83331C13.3333 3.24933 10.4172 0.333313 6.83325 0.333313ZM6.83325 1.33331C9.87622 1.33331 12.3333 3.79034 12.3333 6.83331C12.3333 9.87628 9.87622 12.3333 6.83325 12.3333C3.79028 12.3333 1.33325 9.87628 1.33325 6.83331C1.33325 3.79034 3.79028 1.33331 6.83325 1.33331ZM6.33325 3.83331V4.83331H7.33325V3.83331H6.33325ZM6.33325 5.83331V9.83331H7.33325V5.83331H6.33325Z",plus:"M5.5 0.5V5.5H0.5V6.5H5.5V11.5H6.5V6.5H11.5V5.5H6.5V0.5H5.5Z",greenArrow:"M7.35938 0.333344L6.64062 1.05209L10.0312 4.44272H0V5.44272H10.0312L6.64062 8.83334L7.35938 9.55209L11.6094 5.30209L11.9531 4.94272L11.6094 4.58334L7.35938 0.333344Z",currency:"M5.79982 7.9C3.52982 7.31 2.79982 6.7 2.79982 5.75C2.79982 4.66 3.80982 3.9 5.49982 3.9C7.27982 3.9 7.93982 4.75 7.99982 6H10.2098C10.1398 4.28 9.08982 2.7 6.99982 2.19V0H3.99982V2.16C2.05982 2.58 0.499824 3.84 0.499824 5.77C0.499824 8.08 2.40982 9.23 5.19982 9.9C7.69982 10.5 8.19982 11.38 8.19982 12.31C8.19982 13 7.70982 14.1 5.49982 14.1C3.43982 14.1 2.62982 13.18 2.51982 12H0.319824C0.439824 14.19 2.07982 15.42 3.99982 15.83V18H6.99982V15.85C8.94982 15.48 10.4998 14.35 10.4998 12.3C10.4998 9.46 8.06982 8.49 5.79982 7.9Z",circleCheck:"M7 0.5C3.41602 0.5 0.5 3.41602 0.5 7C0.5 10.584 3.41602 13.5 7 13.5C10.584 13.5 13.5 10.584 13.5 7C13.5 3.41602 10.584 0.5 7 0.5ZM7 1.5C10.043 1.5 12.5 3.95703 12.5 7C12.5 10.043 10.043 12.5 7 12.5C3.95703 12.5 1.5 10.043 1.5 7C1.5 3.95703 3.95703 1.5 7 1.5ZM5.10938 4.39062L4.39062 5.10938L6.28125 7L4.39062 8.89062L5.10938 9.60938L7 7.71875L8.89062 9.60938L9.60938 8.89062L7.71875 7L9.60938 5.10938L8.89062 4.39062L7 6.28125L5.10938 4.39062Z",close:"M1.38525 0.666656L0.666504 1.38541L5.05713 5.77603L0.666504 10.1667L1.38525 10.8854L5.77588 6.49478L10.1665 10.8854L10.8853 10.1667L6.49463 5.77603L10.8853 1.38541L10.1665 0.666656L5.77588 5.05728L1.38525 0.666656Z",clear:"M6 0C5.60742 0 5.20605 0.137695 4.92188 0.421875C4.6377 0.706055 4.5 1.10742 4.5 1.5V2.25H0V3.75H0.75V15.75C0.75 16.9834 1.7666 18 3 18H12C13.2334 18 14.25 16.9834 14.25 15.75V3.75H15V2.25H10.5V1.5C10.5 1.10742 10.3623 0.706055 10.0781 0.421875C9.79395 0.137695 9.39258 0 9 0H6ZM6 1.5H9V2.25H6V1.5ZM2.25 3.75H12.75V15.75C12.75 16.166 12.416 16.5 12 16.5H3C2.58398 16.5 2.25 16.166 2.25 15.75V3.75ZM3.75 6V14.25H5.25V6H3.75ZM6.75 6V14.25H8.25V6H6.75ZM9.75 6V14.25H11.25V6H9.75Z",edit:"M18.75 3C18.1758 3 17.6133 3.22266 17.1797 3.65625L9.75 11.0625L9.58594 11.2266L9.53906 11.4609L9.02344 14.0859L8.78906 15.1875L9.89062 14.9531L12.5156 14.4375L12.75 14.3906L12.9141 14.2266L20.3203 6.79688C21.1846 5.93262 21.1846 4.52051 20.3203 3.65625C19.8867 3.22266 19.3242 3 18.75 3ZM18.75 4.45312C18.9258 4.45312 19.0986 4.54395 19.2656 4.71094C19.5996 5.04492 19.5996 5.4082 19.2656 5.74219L12 13.0078L10.7109 13.2656L10.9688 11.9766L18.2344 4.71094C18.4014 4.54395 18.5742 4.45312 18.75 4.45312ZM3 5.97656V20.9766H18V11.0859L16.5 12.5859V19.4766H4.5V7.47656H11.3906L12.8906 5.97656H3Z",check:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",arrowLeft:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",sliders:"M13.125 16.0625C12.4 16.0625 11.7812 15.8063 11.2688 15.2938C10.7563 14.7812 10.5 14.1625 10.5 13.4375C10.5 12.7125 10.7563 12.0938 11.2688 11.5813C11.7812 11.0688 12.4 10.8125 13.125 10.8125C13.85 10.8125 14.4688 11.0688 14.9813 11.5813C15.4938 12.0938 15.75 12.7125 15.75 13.4375C15.75 14.1625 15.4938 14.7812 14.9813 15.2938C14.4688 15.8063 13.85 16.0625 13.125 16.0625ZM13.1206 14.9375C13.536 14.9375 13.8906 14.7921 14.1844 14.5013C14.4781 14.2105 14.625 13.8574 14.625 13.4419C14.625 13.0265 14.4796 12.6719 14.1888 12.3781C13.898 12.0844 13.5449 11.9375 13.1294 11.9375C12.714 11.9375 12.3594 12.0829 12.0656 12.3737C11.7719 12.6645 11.625 13.0176 11.625 13.4331C11.625 13.8485 11.7704 14.2031 12.0612 14.4969C12.352 14.7906 12.7051 14.9375 13.1206 14.9375ZM2.25 14V12.875H9V14H2.25ZM4.875 8.1875C4.15 8.1875 3.53125 7.93125 3.01875 7.41875C2.50625 6.90625 2.25 6.2875 2.25 5.5625C2.25 4.8375 2.50625 4.21875 3.01875 3.70625C3.53125 3.19375 4.15 2.9375 4.875 2.9375C5.6 2.9375 6.21875 3.19375 6.73125 3.70625C7.24375 4.21875 7.5 4.8375 7.5 5.5625C7.5 6.2875 7.24375 6.90625 6.73125 7.41875C6.21875 7.93125 5.6 8.1875 4.875 8.1875ZM4.87059 7.0625C5.28603 7.0625 5.64063 6.91709 5.93438 6.62628C6.22813 6.33548 6.375 5.98236 6.375 5.56691C6.375 5.15147 6.22959 4.79688 5.93878 4.50313C5.64798 4.20938 5.29486 4.0625 4.87941 4.0625C4.46397 4.0625 4.10938 4.20791 3.81563 4.49872C3.52188 4.78952 3.375 5.14264 3.375 5.55809C3.375 5.97353 3.52041 6.32813 3.8
11122 6.62188C4.10202 6.91563 4.45514 7.0625 4.87059 7.0625ZM9 6.125V5H15.75V6.125H9Z",clearIcon:"M6.4 15L10 11.4L13.6 15L15 13.6L11.4 10L15 6.4L13.6 5L10 8.6L6.4 5L5 6.4L8.6 10L5 13.6L6.4 15ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z",lampIcon:"M8 20C7.56667 20 7.175 19.8958 6.825 19.6875C6.475 19.4792 6.2 19.2 6 18.85C5.45 18.85 4.97917 18.6542 4.5875 18.2625C4.19583 17.8708 4 17.4 4 16.85V13.3C3.01667 12.65 2.22917 11.7917 1.6375 10.725C1.04583 9.65833 0.75 8.5 0.75 7.25C0.75 5.23333 1.45417 3.52083 2.8625 2.1125C4.27083 0.704167 5.98333 0 8 0C10.0167 0 11.7292 0.704167 13.1375 2.1125C14.5458 3.52083 15.25 5.23333 15.25 7.25C15.25 8.53333 14.9542 9.7 14.3625 10.75C13.7708 11.8 12.9833 12.65 12 13.3V16.85C12 17.4 11.8042 17.8708 11.4125 18.2625C11.0208 18.6542 10.55 18.85 10 18.85C9.8 19.2 9.525 19.4792 9.175 19.6875C8.825 19.8958 8.43333 20 8 20ZM6 16.85H10V15.95H6V16.85ZM6 14.95H10V14H6V14.95ZM5.8 12H7.25V9.3L5.05 7.1L6.1 6.05L8 7.95L9.9 6.05L10.95 7.1L8.75 9.3V12H10.2C11.1 11.5667 11.8333 10.9292 12.4 10.0875C12.9667 9.24583 13.25 8.3 13.25 7.25C13.25 5.78333 12.7417 4.54167 11.725 3.525C10.7083 2.50833 9.46667 2 8 2C6.53333 2 5.29167 2.50833 4.275 3.525C3.25833 4.54167 2.75 5.78333 2.75 7.25C2.75 8.3 3.03333 9.24583 3.6 10.0875C4.16667 10.9292 4.9 11.5667 5.8 12Z",download:"M11 3V15.4219L7.03906 11.4609L5.96094 12.5391L11.2109 17.7891L11.75 18.3047L12.2891 17.7891L17.5391 12.5391L16.4609 11.4609L12.5 15.4219V3H11ZM5 19.5V21H18.5V19.5H5Z",error:"M12 2.25C6.62402 2.25 2.25 6.62402 2.25 12C2.25 17.376 6.62402 21.75 12 21.75C17.376 21.75 21.75 17.376 21.75 12C21.75 6.62402 17.376 2.25 12 2.25ZM12 3.75C16.5645 3.75 20.25 7.43555 20.25 12C20.25 16.5645 16.5645 20.25 12 20.25C7.43555 20.25 3.75 16.5645 3.75 12C3.75 7.43555 7.43555 3.75 12 3.75ZM9.16406 8.08594L8.08594 9.16406L10.9219 12L8.08594 14.8359L9.16406 15.9141L12 13.0781L14.8359 15.9141L15.9141 14.8359L13.0781 12L15.9141 9.16406L14.8359 8.08594L12 10.9219L9.16406 8.08594Z",clock:"M11.75 2C6.37354 2 2 6.37354 2 11.75C2 17.1265 6.37354 21.5 11.75 21.5C17.1265 21.5 21.5 17.1265 21.5 11.75C21.5 6.37354 17.1265 2 11.75 2ZM11.75 3.625C16.2473 3.625 19.875 7.25269 19.875 11.75C19.875 16.2473 16.2473 19.875 11.75 19.875C7.25269 19.875 3.625 16.2473 3.625 11.75C3.625 7.25269 7.25269 3.625 11.75 3.625ZM10.9375 5.25V12.5625H16.625V10.9375H12.5625V5.25H10.9375Z",bell:"M11.5 2C10.6709 2 10 2.6709 10 3.5C10 3.56445 10.0146 3.62598 10.0234 3.6875C7.43066 4.34961 5.5 6.70508 5.5 9.5V16.25C5.5 16.6748 5.1748 17 4.75 17H4V18.5H9.39062C9.30566 18.7373 9.25 18.9863 9.25 19.25C9.25 20.4834 10.2666 21.5 11.5 21.5C12.7334 21.5 13.75 20.4834 13.75 19.25C13.75 18.9863 13.6943 18.7373 13.6094 18.5H19V17H18.25C17.8252 17 17.5 16.6748 17.5 16.25V9.71094C17.5 6.89258 15.6162 4.37891 12.9766 3.6875C12.9854 3.62598 13 3.56445 13 3.5C13 2.6709 12.3291 2 11.5 2ZM11.1719 5C11.2803 4.99121 11.3887 5 11.5 5C11.5469 5 11.5938 5 11.6406 5C14.0898 5.07324 16 7.2207 16 9.71094V16.25C16 16.5137 16.0557 16.7627 16.1406 17H6.85938C6.94434 16.7627 7 16.5137 7 16.25V9.5C7 7.11816 8.83398 5.16992 11.1719 5ZM11.5 18.5C11.9219 18.5 12.25 18.8281 12.25 19.25C12.25 19.6719 11.9219 20 11.5 20C11.0781 20 10.75 19.6719 10.75 19.25C10.75 18.8281 11.0781 18.5 11.5 18.5Z",upload:"M8.33398 2.5L7.97461 2.84375L4.47461 6.34375L5.19336 7.0625L7.83398 4.42188V12.7031H8.83398V4.42188L11.4746 7.0625L12.1934 6.34375L8.69336 2.84375L8.33398 2.5ZM3.83398 13.7031V14.7031H12.834V13.7031H3.83398Z",pencil:"M18.7266 3C18.0996 3 17.4902 3.25195 17.0156 3.72656L16.9453 3.79688L16.4766 3.35156L4.10156 15.7266L4.05469 15.9609L3.23438 20.0859L3 21.1875L4.10156 20.9531L8.22656 20.1328L8.46094 20.0859L20.8359 7.71094L20.3906 7.26562L20.4375 7.21875L20.4609 7.17188C21.4102 6.22266 21.4102 4.67578 20.4609 3.72656C19.9863 3.25195 19.3535 3 18.7266 3ZM18.7266 4.47656C18.9609 4.47656 19.207 4.58203 19.4062 4.78125C19.8076 5.18262 19.8076 5.71582 19.4062 6.11719L19.3359 6.1875L18 4.85156L18.0703 4.78125C18.2695 4.58203 18.4922 4.47656 18.7266 4.47656ZM16.5 5.46094L18.7266 7.6875L17.6484 8.78906L15.3984 6.53906L16.5 5.46094ZM14.3672 7.61719L16.5703 9.82031L8.74219 17.6719L8.4375 16.3125L8.34375 15.8438L7.875 15.75L6.51562 15.4453L14.3672 7.61719ZM5.4375 16.7344L7.07812 17.1094L7.45312 18.75L5.92969 19.0547L5.13281 18.2578L5.4375 16.7344Z",double:"M3 3V18H8.25V16.5H4.5V4.5H13.5V5.25H15V3H3ZM9 6V21H21V6H9ZM10.5 7.5H19.5V19.5H10.5V7.5Z",export:"M6 0V12.4219L2.03906 8.46094L0.960938 9.53906L6.21094 14.7891L6.75 15.3047L7.28906 14.7891L12.5391 9.53906L11.4609 8.46094L7.5 12.4219V0H6ZM0 16.5V18H13.5V16.5H0Z",glass:"M13.7891 2C9.65527 2 6.28906 5.36621 6.28906 9.5C6.28906 11.2959 6.91895 12.9424 7.97656 14.2344L2 20.2109L3.07812 21.2891L9.05469 15.3125C10.3467 16.3701 11.9932 17 13.7891 17C17.9229 17 21.2891 13.6338 21.2891 9.5C21.2891 5.36621 17.9229 2 13.7891 2ZM13.7891 3.5C17.1113 3.5 19.7891 6.17773 19.7891 9.5C19.7891 12.8223 17.1113 15.5 13.7891 15.5C10.4668 15.5 7.78906 12.8223 7.78906 9.5C7.78906 6.17773 10.4668 3.5 13.7891 3.5Z",calendar:"M3 0V0.75H0V17.25H16.5V0.75H13.5V0H12V0.75H4.5V0H3ZM1.5 2.25H3V3H4.5V2.25H12V3H13.5V2.25H15V3.75H1.5V2.25ZM1.5 5.25H15V15.75H1.5V5.25ZM6 6.75V8.25H7.5V6.75H6ZM9 6.75V8.25H10.5V6.75H9ZM12 6.75V8.25H13.5V6.75H12ZM3 9.75V11.25H4.5V9.75H3ZM6 9.75V11.25H7.5V9.75H6ZM9 9.75V11.25H10.5V9.75H9ZM12 9.75V11.25H13.5V9.75H12ZM3 12.75V14.25H4.5V12.75H3ZM6 12.75V14.25H7.5V12.75H6ZM9 12.75V14.25H10.5V12.75H9Z",delete:"M10 3C9.60742 3 9.20605 3.1377 8.92188 3.42188C8.6377 3.70605 8.5 4.10742 8.5 4.5V5.25H4V6.75H4.75V18.75C4.75 19.9834 5.7666 21 7 21H16C17.2334 21 18.25 19.9834 18.25 18.75V6.75H19V5.25H14.5V4.5C14.5 4.10742 14.3623 3.70605 14.0781 3.42188C13.7939 3.1377 13.3926 3 13 3H10ZM10 4.5H13V5.25H10V4.5ZM6.25 6.75H16.75V18.7
15C16.75 19.166 16.416 19.5 16 19.5H7C6.58398 19.5 6.25 19.166 6.25 18.75V6.75ZM7.75 9V17.25H9.25V9H7.75ZM10.75 9V17.25H12.25V9H10.75ZM13.75 9V17.25H15.25V9H13.75Z",print:"M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4h-2z",file:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z",send:"M4.01 6.03l7.51 3.22-7.52-1 .01-2.22m7.5 8.72L4 17.97v-2.22l7.51-1M2.01 3L2 10l15 2-15 2 .01 7L23 12 2.01 3z",clearIcon2:"M5.07812 4L4 5.07812L10.5859 11.6641L4 18.25L5.07812 19.3281L11.6641 12.7422L18.25 19.3281L19.3281 18.25L12.7422 11.6641L19.3281 5.07812L18.25 4L11.6641 10.5859L5.07812 4Z",loader:"M12 4.125C12 3.50368 11.4938 2.99262 10.8772 3.06935C6.43655 3.62197 3 7.40966 3 12C3 16.9706 7.02944 21 12 21C16.5903 21 20.378 17.5634 20.9306 13.1228C21.0074 12.5062 20.4963 12 19.875 12C19.2537 12 18.7598 12.5075 18.6575 13.1203C18.1238 16.315 15.3463 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.65373 7.68497 5.87619 10.8797 5.34254C11.4925 5.24017 12 4.74632 12 4.125Z",creditNote:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z",ok:"M9.75 0C4.35059 0 0 4.35059 0 9.75C0 15.1494 4.35059 19.5 9.75 19.5C15.1494 19.5 19.5 15.1494 19.5 9.75C19.5 8.70117 19.3594 7.65527 18.9844 6.67969L17.7656 7.875C17.915 8.47559 18 9.07617 18 9.75C18 14.3262 14.3262 18 9.75 18C5.17383 18 1.5 14.3262 1.5 9.75C1.5 5.17383 5.17383 1.5 9.75 1.5C12 1.5 14.0215 2.39648 15.4453 3.82031L16.5 2.76562C14.7744 1.04004 12.375 0 9.75 0ZM18.2109 3.21094L9.75 11.6719L6.53906 8.46094L5.46094 9.53906L9.21094 13.2891L9.75 13.8047L10.2891 13.2891L19.2891 4.28906L18.2109 3.21094Z",arrowRight:"M9.35938 3.33398L8.64062 4.05273L12.0312 7.44336H2V8.44336H12.0312L8.64062 11.834L9.35938 12.5527L13.6094 8.30273L13.9531 7.94336L13.6094 7.58398L9.35938 3.33398Z",openEye:"M10 4.5C10.6631 4.5 11.299 4.76339 11.7678 5.23223C12.2366 5.70107 12.5 6.33696 12.5 7C12.5 7.66304 12.2366 8.29893 11.7678 8.76777C11.299 9.23661 10.6631 9.5 10 9.5C9.337 9.5 8.70111 9.23661 8.23227 8.76777C7.76343 8.29893 7.50004 7.66304 7.50004 7C7.50004 6.33696 7.76343 5.70107 8.23227 5.23223C8.70111 4.76339 9.337 4.5 10 4.5ZM10 0.75C14.1667 0.75 17.725 3.34167 19.1667 7C17.725 10.6583 14.1667 13.25 10 13.25C5.83337 13.25 2.27504 10.6583 0.833374 7C2.27504 3.34167 5.83337 0.75 10 0.75ZM2.65004 7C4.02504 9.8 6.86671 11.5833 10 11.5833C13.1334 11.5833 15.975 9.8 17.35 7C15.975 4.2 13.1334 2.41667 10 2.41667C6.86671 2.41667 4.02504 4.2 2.65004 7Z",closeEye:"M1.66671 1.39167L2.73337 0.333333L16.6667 14.2667L15.6084 15.3333L13.0417 12.7667C12.0834 13.0833 11.0667 13.25 10 13.25C5.83337 13.25 2.27504 10.6583 0.833374 7C1.40837 5.53333 2.32504 4.24167 3.49171 3.21667L1.66671 1.39167ZM10 4.5C10.6631 4.5 11.299 4.76339 11.7678 5.23223C12.2366 5.70107 12.5 6.33696 12.5 7C12.5 7.29167 12.45 7.575 12.3584 7.83333L9.16671 4.64167C9.42504 4.55 9.70837 4.5 10 4.5ZM10 0.75C14.1667 0.75 17.725 3.34167 19.1667 7C18.4834 8.73333 17.325 10.2333 15.8334 11.325L14.65 10.1333C15.7834 9.35 16.7167 8.28333 17.35 7C15.975 4.2 13.1334 2.41667 10 2.41667C9.09171 2.41667 8.20004 2.56667 7.36671 2.83333L6.08337 1.55833C7.28337 1.04167 8.60837 0.75 10 0.75ZM2.65004 7C4.02504 9.8 6.86671 11.5833 10 11.5833C10.575 11.5833 11.1417 11.525 11.6667 11.4083L9.76671 9.5C8.57504 9.375 7.62504 8.425 7.50004 7.23333L4.66671 4.39167C3.84171 5.1 3.15004 5.98333 2.65004 7Z",play:"M18 12.5625L6 21V3L18 12.5625ZM7.5 18.1123L15.499 12.4873L7.5 6.1123V18.1123Z",draggable:"M8 18C9.10457 18 10 18.8954 10 20C10 21.1046 9.10457 22 8 22C6.89543 22 6 21.1046 6 20C6 18.8954 6.89543 18 8 18ZM16 18C17.1046 18 18 18.8954 18 20C18 21.1046 17.1046 22 16 22C14.8954 22 14 21.1046 14 20C14 18.8954 14.8954 18 16 18ZM8 10C9.10457 10 10 10.8954 10 12C10 13.1046 9.10457 14 8 14C6.89543 14 6 13.1046 6 12C6 10.8954 6.89543 10 8 10ZM16 10C17.1046 10 18 10.8954 18 12C18 13.1046 17.1046 14 16 14C14.8954 14 14 13.1046 14 12C14 10.8954 14.8954 10 16 10ZM8 2C9.1045
17 2 10 2.89543 10 4C10 5.10457 9.10457 6 8 6C6.89543 6 6 5.10457 6 4C6 2.89543 6.89543 2 8 2ZM16 2C17.1046 2 18 2.89543 18 4C18 5.10457 17.1046 6 16 6C14.8954 6 14 5.10457 14 4C14 2.89543 14.8954 2 16 2Z"};t.a=e=>{let{name:t,viewBox:a="0 0 14 14",width:r="10px",height:s="10px",onClick:l,...c}=e;return Object(o.jsx)(i.a,{onClick:l,...c,viewBox:a,width:r,height:s,children:Object(o.jsx)("path",{d:n[t]})})}},128:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return n})),a.d(t,"b",(function(){return r}));const i={Nombre:{title:"Nombre",fieldName:"",fieldValue:"",required:"Si",realName:"Nombre",secondRealName:"Nombre agrupador",templateName:"Nombre agrupador"},"C\xf3d SKU agrupador":{title:"C\xf3d SKU agrupador",fieldName:"",fieldValue:"",required:"Si",realName:"C\xf3d SKU agrupador"},"Nombre de variante":{title:"Nombre de variante",fieldName:"",fieldValue:"",realName:"Nombre de variante",secondRealName:"Nombre variante",templateName:"Nombre variante"},"SKU variante":{title:"SKU variante",fieldName:"",fieldValue:"",realName:"SKU variante"},Tipo:{title:"Tipo",fieldName:"",fieldValue:"",required:"Si",realName:"Tipo"},Estado:{title:"Estado",fieldName:"",fieldValue:"",required:"Si",realName:"Estado"},Moneda:{title:"Moneda",fieldName:"",fieldValue:"",required:"Si",realName:"Moneda"},"URL imagen":{title:"URL imagen",fieldName:"",fieldValue:"",realName:"Imagen",templateName:"Imagen"},Rubro:{title:"Rubro",fieldName:"",fieldValue:"",required:"Si",realName:"Rubro"},Subrubro:{title:"Subrubro",fieldName:"",fieldValue:"",realName:"Subrubro",secondRealName:"Sub Rubro"},"Descripci\xf3n":{title:"Descripci\xf3n",fieldName:"",fieldValue:"",realName:"Descripci\xf3n"},"Cuentas compra":{title:"Cuentas compra",fieldName:"",fieldValue:"",realName:"Cuentas compra",secondRealName:"CC Compras"},"Cuentas venta":{title:"Cuentas venta",fieldName:"",fieldValue:"",realName:"Cuentas venta",secondRealName:"CC Ventas"},"Cuenta mercader\xeda":{title:"Cuenta mercader\xeda",fieldName:"",fieldValue:"",realName:"Cuenta mercader\xeda",secondRealName:"CC Mercaderia"},"Alcanzado RG":{title:"Alcanzado RG",fieldName:"",fieldValue:"",realName:"Alcanzado RG"},Observaciones:{title:"Observaciones",fieldName:"",fieldValue:"",realName:"Observaciones"},"Atributo 1":{title:"Atributo 1",fieldName:"",fieldValue:"",required:"Si",realName:"Atributo 1"},"Variante de atributo 1":{title:"Variante de atributo 1",fieldName:"",fieldValue:"",required:"Si",realName:"Variante de atributo 1"},"Atributo 2":{title:"Atributo 2",fieldName:"",fieldValue:"",realName:"Atributo 2"},"Variante de atributo 2":{title:"Variante de atributo 2",fieldName:"",fieldValue:"",realName:"Variante de atributo 2"},"Precio unitario":{title:"Precio unitario",fieldName:"",fieldValue:"",required:"Si",realName:"Precio unitario",secondRealName:"Precio"},"Tipo IVA":{title:"Tipo IVA",fieldName:"",fieldValue:"",required:"Si",realName:"Tipo de IVA",secondRealName:"Tipo IVA",templateName:"Tipo IVA"},"Tasa IVA":{title:"Tasa IVA",fieldName:"",fieldValue:"",required:"Si",realName:"Tasa IVA",secondRealName:"Iva"},"Costo interno":{title:"Costo interno",fieldName:"",fieldValue:"",realName:"Costo interno"},Rentabilidad:{title:"Rentabilidad",fieldName:"",fieldValue:"",realName:"Rentabilidad"},"C\xf3digo de barra":{title:"C\xf3digo de barra",fieldName:"",fieldValue:"",realName:"C\xf3digo de barra",secondRealName:"Codigo Barras"},"Stock m\xednimo":{title:"Stock m\xednimo",fieldName:"",fieldValue:"",realName:"Stock m\xednimo"},"C\xf3digo proveedor":{title:"C\xf3digo proveedor",fieldName:"",fieldValue:"",realName:"Proveedor origen",secondRealName:"Codigo proveedor",templateName:"C\xf3digo proveedor"},"C\xf3d oem":{title:"C\xf3d oem",fieldName:"",fieldValue:"",realName:"C\xf3d oem",secondRealName:"Codigo Oem"},"Observaciones de variante":{title:"Observaciones de variante",fieldName:"",fieldValue:"",realName:"Observaciones de variante"}},o=e=>{const t=JSON.parse(JSON.stringify(i));return["cl","uy","py"].includes(e)?delete t["Alcanzado RG"]:delete t["Tipo IVA"],t},n=e=>e>10485760,r=e=>{let{rowCount:t}=e;return 0===t?"variantsEmptyFileError":t>2500?"variantsMaxRowsError":null}},13:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var i=a(32),o=a.n(i);var n=a(19),r=a(17);const s=(new n.a).get("Secure-1CBL"),l=function(e){let{baseURL:t}=e;return o.a.create({baseURL:t,headers:{Accept:"application/json"}})}({baseURL:Object(r.a)(),token:s}),c=(d=l,e=>{d.interceptors.request.use((e=>function(t){return t.headers.Authorization=e?`Bearer ${e}`:"",t})(e))});var d;"undefined"!==typeof window&&s&&c(s)},149:function(e,t,a){"use strict";a.d(t,"c",(function(){return o}
1)),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));var i=a(60);const o=e=>{i.a.getInstance().setUserId(e)},n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t?i.a.getInstance().logEvent(e,t):i.a.getInstance().logEvent(e)},r=e=>{var t=(new i.a.Identify).set("properties",e);i.a.getInstance().identify(t)}},17:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));const i="ar",o={cl:"cl",uy:"uy",py:"py"},n=()=>{const e=Object({NODE_ENV:"production",PUBLIC_URL:"/v3",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BASE:"https://vir-internalapi.contabilium.com/api/",REACT_APP_BASE_CL:"https://vir-internalapi.contabilium.cl/api/",REACT_APP_BASE_UY:"https://vir-internalapi.contabilium.com.uy/api/",REACT_APP_BASE_PY:"https://vir-internalapi.contabilium.com.py/api/",REACT_APP_BASE_HOST:"https://app.contabilium.com/",REACT_APP_BASE_HOST_CL:"https://app.contabilium.cl/",REACT_APP_BASE_HOST_UY:"https://app.contabilium.com.uy/",REACT_APP_BASE_HOST_PY:"https://app.contabilium.com.py/",REACT_APP_BASE_AR_HOME:"https://app.contabilium.com/v3/dashboard",REACT_APP_VALIDATE:"https://app.contabilium.com/v3/login/mailauth",REACT_APP_PLAN_EXPIRED_ADMIN:"modulos/seguridad/elegir-plan.aspx",REACT_APP_PLAN_EXPIRED:"modulos/seguridad/pago-pendiente-hijo.aspx",REACT_APP_BANNER:"message/banner",REACT_APP_AMPLITUDE:"3fd99627cc179983dc296b7c86c0c182",REACT_APP_DASHBOARD:"v3/dashboard",REACT_APP_NOTIFICATIONS:"dashboard/get_notifications",REACT_APP_READ_NOTIFICACION:"dashboard/readnotification",REACT_APP_COMPANIESLIST:"company/list",REACT_APP_CHANCE_COMPANY:"company/changecompany",REACT_APP_CREATE_COMPANY:"users/addChildUsers",REACT_APP_INACTIVATE_COMPANY:"users/inactivateChildUser",REACT_APP_BANK:"banks",REACT_APP_PERMISION:"permissions",REACT_APP_GET_CHANGE_TYPE:"dashboard/get_change_type",REACT_APP_PUT_CHANGE_TYPE:"dashboard/changeType",REACT_APP_SALE_CHANGE_TYPE:"dashboard/get_change_type",REACT_APP_SALE_CONDITIONS:"sale-condition",REACT_APP_BASE_URL_AR:"v3/login",REACT_APP_BASE_URL_CL:"v3/login",REACT_APP_BASE_URL_UY:"v3/login",REACT_APP_BASE_URL_PY:"v3/login",REACT_APP_BASE_URL_AR_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_CL_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_UY_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_PY_LOG_OUT:"v3/login?logOut=true",REACT_APP_VALIDATE_JWT:"login/validate_jwt",REACT_APP_PLANS_PURCHASE:"plans/purchase",REACT_APP_PLANS_SALE:"plans/sale",REACT_APP_PLANS_MERCHANDISE:"plans/merchandise",REACT_APP_CHOSE_PLAN:"modulos/seguridad/elegir-plan.aspx",REACT_APP_PLANS_INVENTARIES:"inventaries",REACT_APP_PEOPLE:"people",REACT_APP_PEOPLE_BTN:"personase.aspx?tipo=c?",REACT_APP_TREASURY_BANK:"/v3/treasury/banks",REACT_APP_TREASURY:"/v3/treasury",REACT_APP_EDIT_ENTITY:"/v3/treasury/banks?id=",REACT_APP_ENTITY_SAVE:"treasury/financialinstitutions",REACT_APP_ENTITY_GET_ENTITY:"treasury/financialinstitutions/",REACT_APP_ACCOUNT_PLAN:"treasury/accountsplan",REACT_APP_CURRENCIES:"currencies",REACT_APP_CURRENCY:"currencies",REACT_APP_MULTI_CURRENCY_ACTIVATION:"/currency/bicurrencyActivation",REACT_APP_MULTI_CURRENCY_ACTIVATION_STATUS:"/currency/bicurrencyActivationStatus",REACT_APP_FUNCTIONALITIES:"/v3/functionalities",REACT_APP_USER_CONFIGURATION:"users/config",REACT_APP_EMBED:"https://embed-148202430.sleekplan.app",REACT_APP_EMBED_NOVEDADES:"https://embed-148202430.sleekplan.app/#/changelog?sso=",REACT_APP_EMBED_SUGERENCIAS:"https://embed-148202430.sleekplan.app/#/feedback?sso=",REACT_APP_EMBED_MEJORAS:"https://embed-148202430.sleekplan.app/#/roadmap?sso=",REACT_APP_SLEEK_PLAN_SSO:"sleekplan/sso",REACT_APP_HEADINGS_BTN:"rubros.aspx",REACT_APP_TUTORIAL_AR:"https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_UY:"https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_CL:"https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_PY:"https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_VARIA
1NTS_AR:"https://ayuda.contabilium.com/hc/es/articles/53049668996115-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_CL:"https://ayuda.contabilium.cl/hc/es/articles/53049812639507-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_UY:"https://ayuda.contabilium.com.uy/hc/es/articles/53049919361171-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_PY:"https://ayuda.contabilium.com.py/hc/es-419/articles/53049831908499-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_LABEL_PRINTING:"/v3/labelPrinting",REACT_APP_LABELS:"labels",REACT_APP_SHOW_LABEL_PRINTING:"true",REACT_APP_ADD_NEW:"/v3/attributes/addNew",REACT_APP_ATTIBUTES:"/v3/attributes",REACT_APP_ATTRIBUTES:"/v3/attributes/creation",REACT_APP_EDITION_ATTRIBUTES:"/v3/attributes/edition",REACT_APP_SHOW_ATRIBUTES:"true",REACT_APP_SHOW_FUNCTIONALITIES:"true",REACT_APP_SHOW_EDITION_ATTRIBUTES:"true",REACT_APP_SHOW_CREATE_ATTRIBUTES:"true",REACT_APP_USE_PRODUCT_PRESENTATIONS:"false",REACT_APP_PRESENTATIONS:"presentations",REACT_APP_CONCEPT_PRESENTATIONS:"concept-presentations",REACT_APP_ADD_PRODUCT:"products",REACT_APP_ADD_SERVICES:"services",REACT_APP_ADD_COMBO:"combos",REACT_APP_ADD_ATTRIBUTES:"attributes",REACT_APP_STEP_VALIDATOR:"step",REACT_APP_ADD_VARIANT:"variants",REACT_APP_CONCEPTS_FILTER:"concepts/filter",REACT_APP_CONCEPTS_ID:"concepts",REACT_APP_HEADINGS:"headings",REACT_APP_SUBHEADINGS:"/subheadings",REACT_APP_STOCK_INVENTORY:"/stock",REACT_APP_USER_ADDITIONAL:"users/additionals",REACT_APP_BUDGETS:"/v3/budgets",REACT_APP_BUDGETS_EDITION:"/v3/budgets/edition/",REACT_APP_BUDGETS_CREATION:"/v3/budgets/addNew",REACT_APP_USER_OBSERVATIONS_CONFIG:"/users/observations",REACT_APP_BUDGETS_NUMBER:"budgets/lastNumber",REACT_APP_BUDGETS_WITHOUTIVA:"true",REACT_APP_SHOW_BUDGETS:"true",REACT_APP_SHOW_CREATE_BUDGETS:"true",REACT_APP_GET_BUDGETS:"budgets",REACT_APP_BULK_IMPORT:"/v3/bulkImport",REACT_APP_BULK_START:"/v3/bulkImport/start",REACT_APP_BULK_IMPORT_VARIANT:"/v3/bulkImportVariant",REACT_APP_BULK_IMPORT_VARIANT_START:"/v3/bulkImportVariant/start",REACT_APP_USERS:"users",REACT_APP_LIMITATION:"limitations",REACT_APP_ADD_USAGE_LIMITATION:"addUsage",REACT_APP_SUB_USAGE_LIMITATION:"subUsage",REACT_APP_LIMITED_PLANS_START_DATE:"2025-03-05",REACT_APP_SEND_BUDGETS_MAIL:"/budgets/sendmail",REACT_APP_IVA_RATES:"/rates",REACT_APP_INVOICE_ROUTE:"/v3/invoice",REACT_APP_INVOICE_CREATION_ROUTE:"/v3/invoice/addNew",REACT_APP_INVOICE:"receipt",REACT_APP_SHOW_INVOICE:"false",REACT_APP_INVOICE_NET:"comprobantes.aspx",REACT_APP_CREATE_INVOICE_NET:"comprobantese.aspx",REACT_APP_INVOICE_DELETE:"/delete",REACT_APP_INVOICE_NC:"/guardarNC",REACT_APP_ADD_NC:"/ObtenerComprobanteParaNC",REACT_APP_EXPORT_PDF:"export-pdf",REACT_APP_INVOICE_NEXT_NUMBER:"next-number",REACT_APP_GET_COUNTRIES:"countries",REACT_APP_GET_PROVINCES:"provinces",REACT_APP_GET_CITIES:"cities",REACT_APP_SALE_POINT:"sale-point",REACT_APP_SALE_ORDERS:"sale-orders",REACT_APP_SALE_ORDERS_COSTUMERS:"customers",REACT_APP_COST_CENTER:"category",REACT_APP_PROVINCES:"provinces",REACT_APP_ACCOUNT_LOGIN:"login",REACT_APP_CHANGE_RECOVER:"/v3/login/recoverpass",REACT_APP_CHANGERECOVER:"password/recovery",REACT_APP_SEND_EMAIL:"/v3/login/recovermailsend",REACT_APP_LANDING_AR:"https://home.contabilium.com/comunicacion-clientes-ar",REACT_APP_LANDING_CL:"https://home.contabilium.com/comunicacion-clientes-cl",REACT_APP_LANDING_UY:"https://home.contabilium.com/comunicacion-clientes-uy",REACT_APP_LANDING_PY:"https://home.contabilium.com/comunicacion-clientes-cl",REACT_APP_MAIL_AUTH:"/v3/login/mailauth",REACT_APP_LOGIN_MFA_AUTH:"/v3/login/login-mfa",REACT_APP_LOGIN_MFA_SUCCESS_AUTH:"/v3/login/login-successauth",REACT_APP_LINK:"/v3/login/link",REACT_APP_LOGOUT:"logout",REACT_APP_CHANGE_PASSWORD:"/v3/login/changepass",REACT_APP_COMPLETE_PASS:"/v3/login/completepass",REACT_APP_LOGIN:"/v3/login/",REACT_APP_LANDING_REGISTER_AR:"https://contabilium.com/registrate-gratis?from=ar&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_CL:"https://contabilium.com/registrate-gratis?from=cl&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_UY:"https://contabilium.com/registrate-gratis?from=uy&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_PY:"https://contabilium.com/registrate-gratis?from=py&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_BASE_URL_IMAGES:"https://app.contabilium.com/v3/login/images/",REACT_APP_CHANGEPASSWORD:"password/recovery/change",REACT_APP_SUCCESS_AUTH:"/v3/login/successauth",REACT_APP_CONFIRM_EMAIL:"/v3/login/confirmemail",REACT_APP_RESEND_CODE:"register/send_activation_code",REACT_APP_SEND_OTP_CODE:"login/send_otp_code",REACT_APP_VALIDATE_OTP_CODE:"login/validate_otp",REACT_APP_REFRESH_JWT:"login/refresh_jwt",REACT_APP_CODE:"login/validate_code",REACT_APP_API_CHANGE_EMAIL:"profile/modify_email",REACT_APP_CHECK_LINK:"/v3/login/checklink",REACT_APP_EXPIRE_PASSWORD:"/v3/login/expiredpass",REACT_APP_VALIDATE_LINK:"password/recovery/check_secret",REACT_APP_DASHBOARD_V3:"/v3/dashboard",REACT_APP_V2_VALIDATE_USER_LOGIN_AR:"https://app.contabilium.com/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_CL:"https://app.contabilium.cl/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_UY:"https://app.contabilium.com.uy/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_PY:"https://app.contabilium.com.py/v3/login/mailauth",REACT_APP_V1_AR:"https://app.contabilium.com/",REACT_APP_V1_CL:"https://app.contabilium.cl/",REACT_APP_V1_UY:"https://app.contabilium.com.uy/",REACT_APP_V1_PY:"https://app.contabilium.com.py/",REACT_APP_ACCOUNT_PAY:"dashboard/get_pending_bills",REACT_APP_PENDING_PAYMENT:"dashboard/get_pending_payment",REACT_APP_SAVING_BANKS:"dashboard/get_saving_banks",REACT_APP_COMPARATIVE_SALES:"dashboard/comparativesales",REACT_APP_ANNUAL_SALES:"dashboard/annualsales",REACT_APP_SALES_BUYS:"dashboard/salesvsbuys",REACT_APP_EXPIRED_PLAN:"dashboard/expiredplannotifications",REACT_APP_SHOW_DASHBOARD_AR_V3:"false",REACT_APP_DAYS_EXPIRED_FREETRIAL:"0",REACT_APP_DAYS_EXPIRED_AR:"30",REACT_APP_DAYS_EXPIRED_CL_UY:"7",REACT_APP_COMMON_NET:"common.aspx",REACT_APP_CREATE_CLIENTS_NET:"/CrearPersona",REACT_APP_GET_AFIP_DATA_NET:"/ObtenerDatosAfipPersona",REACT_APP_GET_REGIO_DATA_NET:"/ObtenerDatosDeEmisorReceptorNoArgentinos",REACT_APP_ACCOUNT:"/v3/account",REACT_APP_SHOW_ACCOUNT:"true",REACT_APP_SHOW_PRODUCT_FIELDS:"true",REACT_APP_ACCOUNT_CURRENCY:"/currency",REACT_APP_ACCOUNT_ADDITIONAL_COMPANY:"/additionalCompany",REACT_APP_ACCOUNT_ADDITIONAL_COMPANY_ADDIN:"users/hasAddins",REACT_APP_ACCOUNT_NOTIFICATIONS:"/notifications",REACT_APP_ACCOUNT_PRODUCT_FIELDS:"/productFields",REACT_APP_REPORTS:"/reports",REACT_APP_GET_ADDINS:"users/showAddin",REACT_APP_USER_PROMOTIONS:"61278",REACT_APP_FLAGSMITH_KEY:"",REACT_APP_FLAGSMITH_URL:"https://edge.api.flagsmith.com/api/v1"}).REACT_APP_API_COUNTRY;if(e&&e in{ar:"https://vir-internalapi.contabilium.com/api/",cl:"https://vir-internalapi.contabilium.cl/api/",uy:"https://vir-internalapi.contabilium.com.uy/api/",py:"https://vir-internalapi.contabilium.com.py/api/"})return e;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split(".").pop().toLowerCase();return o[t]||i}("undefined"!==typeof window?window.location.hostname:"")},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n();const t={ar:"https://vir-internalapi.contabilium.com/api/",cl:"https://vir-internalapi.contabilium.cl/api/",uy:"https://vir-internalapi.contabilium.com.uy/api/",py:"https://vir-internalapi.contabilium.com.py/api/"};return t[e]||t[i]}},18:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));const i={individuo:{name:"Individuo",id:1},basic:{name:"Basic",id:2}
1,standard:{name:"Standard",id:3},pro:{name:"Pro",id:4},full:{name:"Full",id:5},prueba:{name:"Prueba",id:6},contable:{name:"Contable",id:7},free:{name:"Free",id:99},freemium:{name:"Freemium",id:100},basicNew:{name:"BasicNew",id:101},standardNew:{name:"StandardNew",id:102},proNew:{name:"ProNew",id:103},fullNew:{name:"FullNew",id:104},enterprise:{name:"Enterprise",id:105}}},189:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return c})),a.d(t,"b",(function(){return d})),a.d(t,"d",(function(){return u}));var i=a(62);const o={sheets:0,sheetRows:20001},n=[80,75],r=[208,207,17,224],s=(e,t)=>t.every(((t,a)=>e[a]===t)),l=e=>!e||e.length<2?"empty":s(e,n)?"zip":s(e,r)?"ole":"text",c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const a=l(t);if("empty"===a)return"variantsEmptyFileError";const i=String(e).toLowerCase();return i.endsWith(".csv")?"text"===a?null:"variantsInvalidFileType":(i.endsWith(".xlsx")||i.endsWith(".xls"))&&"text"===a?"variantsInvalidFileType":null},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""===e.trim())return"variantsEmptyFileError";let t=0,a=0,i=0;const o=()=>Math.max(t,a,i)+1>200;for(let n=0;n<e.length;n+=1){const r=e.charCodeAt(n);if(10===r){if(o())return"variantsColumnCountError";t=0,a=0,i=0}else 44===r?t+=1:59===r?a+=1:9===r&&(i+=1)}return o()?"variantsColumnCountError":null},u=e=>{const t=e&&e["!ref"];if(!t)return"variantsEmptyFileError";let a;try{a=i.b.decode_range(t)}catch{return"variantsFileReadError"}const o=a.e.r-a.s.r+1,n=a.e.c-a.s.c+1;return Number.isFinite(o)&&Number.isFinite(n)?o>2e4||n>200||o*n>6e5?"variantsFileReadError":null:"variantsFileReadError"}},2:function(e,t,a){"use strict";var i=a(307),o=a(19),n=a(33);const r=(()=>{const e=(new o.a).get("Secure-1CBL");if(!e)return"ar";return JSON.parse(Object(n.a)(e)).data.country||"ar"})();i.a.init({interpolation:{escapeValue:!1},lng:r,resources:{en:{translation:{error:"Se produjo un error.",errorTitle:"An error has occurred",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",bulkImportVariantsRetry:"Reintentar",bulkImportVariantsStatsErrorTitle:"No pudimos obtener el resumen del archivo",bulkImportVariantsStatsErrorText:"Reintent\xe1 para conocer cu\xe1ntas filas se pueden importar y continuar.",bulkImportVariantsStatusComplete:"Completada",bulkImportVariantsStatusError:"Err\xf3nea",bulkImportVariantsStatusInProgress:"En progreso",bulkImportVariantsRunningStatusError:"No pudimos verificar si hay una importaci\xf3n en curso. Reintentaremos autom\xe1ticamente.",bulkImportVariantsSkuDuplicatedError:"El SKU ingresado ya pertenece a otro concepto.",bulkImportVariantsConceptNotParentError:"El SKU agrupador informado corresponde a un producto o servicio que no admite variantes.",bulkImportVariantsErrorDetailTitle:"Registro de productos err\xf3neos",bulkImportVariantsGrouperSkuColumn:"SKU Agrupador",bulkImportVariantsSkuColumn:"SKU",bulkImportVariantsFieldsColumn:"Campos",bulkImportVariantsErrorTypeColumn:"Tipo de error",bulkImportVariantsHeadingField:"Rubro",bulkImportVariantsSubheadingField:"Subrubro",bulkImportVariantsTypeField:"Tipo",bulkImportVariantsCurrencyField:"Moneda",bulkImportVariantsProviderField:"Proveedor",bulkImportVariantsLimitReachedField:"L\xedmite alcanzado",bulkImportVariantsProductsAndServices:"Importaci\xf3n masiva de productos y servicios con variantes",bulkImportVariantsProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n para importar masivamente productos y/o servicios con variantes.",bulkImportVariantsImportedConcepts:"Productos y servicios importados",variantsDownloadFileInfo:"Descarg\xe1 la planilla y utiliz\xe1 el archivo modelo o hac\xe9 click en siguiente y sub\xed tu propia planilla. Aseg\xfarate de completar todos los campos obligatorios.",variantsTemplateGuide:"Indicaciones para completar la planilla",variantAttribute1Header:"Atributo 1",variantVariant1Header:"Variante de atributo 1",variantIvaTypeHeader:"Tipo IVA",errorVariantMax:"Superaste el m\xe1ximo de 100 variantes para este SKU agrupador. Las variantes excedentes no ser\xe1n importadas.",errorInvalidVariantType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cV\u201d para variantes de producto y \u201cG\u201d para variantes de servicio.",errorVariantTypeNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Tipo. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantCurrencyDistinct:"Todas las variantes de un mismo SKU agrupador deben tener la misma moneda.",errorVariantCurrencyNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Moneda. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantAttributeRepeated:"Esta combinaci\xf3n de variantes de atributo y
1a fue utilizada dentro del mismo SKU agrupador.",errorVariantSkuDuplicated:"El SKU de variante ingresado ya pertenece a otro concepto. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSkuEquals:"El SKU de la variante no puede ser igual al SKU agrupador",errorAttributeNotExists:"El atributo ingresado no existe o no coincide con ninguno que tengas registrado.",errorAttributeDisabled:"El atributo ingresado est\xe1 inactivo.",errorAttributeMax:"Se admite un m\xe1ximo de 2 atributos por producto o servicio con variantes.",errorAttributeItemNotExist:"La variante ingresada no existe.",errorAttributeItemDisabled:"La variante ingresada est\xe1 inactiva.",attributes:"Atributos",urlImg:"URL imagen",errorRequiredField:"Este campo es obligatorio. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorInvalidURL:"El formato URL de la imagen es incorrecto. Por favor, corrobor\xe1 que comience con \u201chttps\u201d y que el tipo de archivo de imagen sea jpg, jpeg, gif, o png.",errorHeading:"El rubro ingresado no existe o no coincide con ning\xfan rubro que tengas registrado. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSubHeading:"El sub-rubro ingresado no existe o no tiene relaci\xf3n con el rubro seleccionado.",bulkImportFieldValueNotFound:"The value does not exist for that field or it is inactive. Check it in My Account \u2192 Product fields.",bulkImportFieldNotAvailable:"The field is not enabled. Enable it in My Account \u2192 Product fields or leave the cell empty.",descriptiveFieldsTutorialText:"Brand, Line, Material, Origin, Season and Quality are optional. Type the value name as it appears in My Account \u2192 Product fields. The field must be enabled and the value active; otherwise the row is flagged with an error. New values are never created.",errorAttributeItemUnlinked:"La variante de atributo ingresada no existe o no tiene relaci\xf3n con el atributo seleccionado.",variantGrouperNameHeader:"Nombre agrupador",category:"Rubro",subcategory:"Sub-rubro",description:"Descripci\xf3n",purchaseAcc:"Cta. compra",saleAcc:"Cta. venta",merchAcc:"Cta. mercader\xeda",rgAchived:"Alcanzado RG",ivaRate:"Tasa IVA",internalCost3:"Costo interno",costEffec:"Rentabilidad",barCode:"C\xf3d. barra",stockMin:"Stock m\xednimo",originSupplier:"C\xf3d. proveedor",CodOEM:"C\xf3digo OEM",variantSkuGrouperHeader:"C\xf3d SKU agrupador",variantNameHeader:"Nombre de variante",variantAttribute2Header:"Atributo 2",variantVariant2Header:"Variante de atributo 2",variantSkuHeader:"SKU variante",variantObservationsHeader:"Observaciones de variante",variantsSkuGrouperFilterPlaceholder:"Buscar por C\xf3d SKU agrupador",errorGrouperNotFound:"El SKU Agrupador no existe.",errorTypeNotEditable:"No es posible modificar el tipo de un producto o servicio con variantes existente.",errorCurrencyNotEditable:"No es posible modificar la moneda de un producto o servicio con variantes existente.",errorCurrencyNotShared:"Todas las variantes de un mismo agrupador deben compartir la misma moneda.",errorHeadingNotFound:"El rubro informado no existe.",errorSubHeadingNotFound:"El subrubro informado no existe o no pertenece al rubro seleccionado.",errorProviderNotFound:"El proveedor informado no existe.",errorInvalidCurrency:"La opci\xf3n ingresada es inv\xe1lida. Verific\xe1 la moneda informada.",bulkImportErrorModal:"Por favor, verific\xe1 que los campos o el archivo importado posean el formato correcto.",jobError:"Se han detectado errores en el proceso de importaci\xf3n. Por favor, revis\xe1 tu documento y volvelo a intentar.",limitations:{skusMaxUsage:"Has superado el m\xe1ximo de productos disponibles en tu plan."},errorAttributeNotMatch:"El atributo informado no corresponde al agrupador.",errorNoNewAttributes:"No es posible agregar nuevos atributos a un agrupador existente.",errorMaxAttributes:"El agrupador ya posee el m\xe1ximo de dos atributos configurados.",errorAttributeVariantNotMatch:"La variante del atributo no corresponde al atributo informado.",errorAttributeCombination:"La combinaci\xf3n de atributos ya existe para este agrupador.",errorVariantSkuNotFound:"El SKU Variante no existe.",errorVariantSkuOtherGrouper:"El SKU Variante ya pertenece a otro agrupador.",errorMaxVariants:"No se pueden crear m\xe1s de 100 variantes por atributo.",variantsRowErrorSingular:"err\xf3neo de",variantsRowErrorPlural:"err\xf3neos de",selectAnOption:"Seleccion\xe1 una opci\xf3n",variantsMaxFileSizeError:"El archivo importado supera el tama\xf1o m\xe1ximo permitido.",variantsColumnCountError:"La cantidad de columnas del archivo no coincide con la estructura esperada.",variantsEmptyFileError:"El archivo no posee ning\xfan registro.",variantsMaxRowsError:"El archivo supera el m\xe1ximo de 2500 filas permitidas.",variantsInvali
1dFileType:"No pod\xe9s subir este tipo de archivo. Solo se permiten archivos .csv y .xlsx.",variantsFileReadError:"Hubo un problema al leer el archivo. Verific\xe1 que no est\xe9 da\xf1ado e intent\xe1 nuevamente.",variantsWizardStepInProgress:"historia 3 en desarrollo",variantIndicationFirstRowText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",variantIndicationNameText:"Debes completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evit\xe1 el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",variantIndicationSkuText:"Para crear o actualizar productos o servicios con variantes es obligatorio informar el SKU Agrupador. Todas las variantes que pertenezcan al mismo producto o servicio deber\xe1n repetir el mismo SKU Agrupador. Si el SKU no existe, se crear\xe1 un nuevo concepto; si existe, se actualizar\xe1.",variantIndicationCurrencyText:"En empresas con bi-moneda, todas las variantes de un mismo agrupador deben compartir la misma moneda. No es posible modificar la moneda de conceptos ya existentes.",variantIndicationAttributeText:"Cada agrupador debe contar con al menos un atributo y una variante asociada. Se permite configurar hasta 2 atributos y un m\xe1ximo de 10 variantes por atributo.",variantsSkuMaxLengthError:"El campo SKU variante admite hasta 50 caracteres. Correg\xed el archivo y volv\xe9 a subirlo.",variantIndicationUnitPriceText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",variantIndicationFirstRowTitle:"1\xb0 Fila",variantIndicationNameTitle:"Nombre agrupador",variantIndicationSkuTitle:"C\xf3d SKU agrupador",variantIndicationCurrencyTitle:"Moneda",variantIndicationAttributeTitle:"Atributo 1 y Variante de atributo 1",variantIndicationUnitPriceTitle:"Precio unitario",variantIndicationIvaRateTitle:"Tasa IVA",variantIndicationIvaRateText:"Para productos sujetos a impuesto al valor agregado (IVA), los Monotributistas solo pueden completar el campo de porcentaje de IVA con \u201c0\u201d (cero). Esto puede ser importante para la correcta facturaci\xf3n y cumplimiento fiscal.",variantIndicationNonRequiredText:"Si un producto o servicio con variantes ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",name:"Nombre",type:"Tipo",state:"Estado",currency:"Moneda",observations:"Observaciones",unitP:"P. unitario",existingProduct:"Producto existente",tableNewProduct:"Producto nuevo",errorBulkImportHistoryTitle:"Ocurri\xf3 un error al cargar el historial",alertC2:"El plazo para pagar tu plan se encuentra vencido. Comunicate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",alertC2Ch:"El plazo para pagar tu plan se encuentra vencido. Comun\xedcate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",rut:"RUT",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",click:"click aqu\xed.",SKU:"SKU",presentations:"Presentations",presentationsInfo:"The Presentations you configure will be created automatically in all warehouses. Stock is always managed in base units.",presentationsVariantsInfo:"Presentations can be applied to all variants or configured independently for each variant. Stock is always managed in base units.",addPresentation:"Add presentation",noAdditionalPresentations:"No additional presentations.",presentationTypesEmptyTitle:"You don't have Presentation types configured yet",presentationTypesEmptyDescription:"Configure at least one Presentation type to add it to your products.",configurePresentations:"Configure Presentations",presentationType:"Presentation type",selectPresentationType:"Select type...",equalsTo:"Equals",unitsLabel:"units",presentationEquivalenceInvalid:"Equivalence must be an integer greater than 1.",presentationEquivalenceMax:"Equivalence cannot exceed 999,999.",weight:"Weight",weightPlaceholder:"E.g.: 3.5",dimensions:"Dimensions",dimensionsPlaceholder:"E.g.: 30x20x15",adjustmentPercent:"Adjustment (%)",adjustmentPlaceholder:"0",presentationPriceWithIva:"Present. price w/VAT",presentationPriceWithoutIva:"Present. price w/o VAT",presentationPriceComplementWithIva:"Present. price w/VAT",presentationPriceComplementWithoutIva:"Present. price w/o VAT",presentationPriceMaxTooltip:"You have exceeded the allowed number of numeric characters. The maximum available is 9 integer digits and decimals according to base configuration.",presentationCalculatedPriceExceedsMaxAlert:"The calculated price of one or more presentations exceeds the maximum allowed. Check the equivalence or unit price to continue.",price:"Price",complete:"complete",presentationsCount:"presentations",noVariantsForPresentations:"There are no variants to configure presentations.",applyPresentationsToAll:"Apply to all variants",applyPresentationsToAllConfirmTitle:"Confirm change",applyPresentationsToAllConfirm:"Do you want to apply the same presentations configuration to all variants? Each variant's particular configurations will be replaced by the general configuration.",applyPresentationsToAllDisableConfirm:"Do you want to configure presentations independently per variant? You will stop applying the same configuration to all variants.",presentationDeleteBlockedTitle:"Could not delete the Presentation",presentationDeleteConfirmTitle:"Are you sure you want to delete the presentation {{name}}?",presentationDeleteBlockedDescription:"The Presentation cannot be deleted because it has already been used in one or more vouchers. If you no longer need to use it, you can inactivate it.",searchVariantSkuPlaceholder:"Search by SKU or name",noVariantsForSkuSearch:"No variants found for the searched SKU",uniquePriceBlockTitle:"Precio \xfanico para todas las variantes",uniquePriceBlockTooltip:"El precio que cargues aqu\xed se aplicar\xe1 autom\xe1ticamente a todas las variantes del producto.",uniquePriceInfoCardVariants:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Tienes configurado utilizar el mismo precio para todas las variantes. Completa el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas. Si necesitas editar informaci\xf3n espec\xedfica de una variante, haz clic en el \xedcono del l\xe1piz.",uniquePriceLockedTooltip:"El precio de esta variante se completa autom\xe1ticamente con el valor del bloque Precio \xfanico. Puedes modificar esta configuraci\xf3n desde Mi Cuenta \u2192 Preferencias \u2192 Par\xe1metros.",uniquePriceConvergenceWarning:"Las variantes de este producto tienen precios distintos. Al guardar, todas quedar\xe1n con los valores del bloque Precio \xfanico.",uniquePriceConfirmTitle:"\xbfActualizar el precio de todas las variantes?",uniquePriceConfirmText:"This product has variants with different prices. On continuing, ",uniquePriceConfirmTextHighlight:"all variants will be updated with the price set in Single price for all variants: {{price}}.",uniquePriceConfirmTextReplace:" This change will replace the current prices of all variants.",uniquePriceConfirmContinue:"Continuar",uniquePriceMissingTitle:"Complete the price to continue",uniquePriceMissingText:"We detected that this product has variants with different prices. Complete the price once in the Single price block and it will be applied automatically to all variants.",uniquePriceMissingUnderstood:"Understood",duplicateCodeError:"SKU duplicado",emptySKU:"Has dejado c\xf3digos SKU incompletos, por favor, revisa el listado y compl\xe9talo para continuar.",login:{loginMfaVerification:"Verify your identity",loginMfaSubVerification:"We sent a code to",loginMfaSubVerification2:". Enter it to continue.",loginMfaSuccessAuth:"Two-factor authentication completed successfully.",loginMfaSendCodeError:"We could not send the code. Please try again in a few seconds.",loginMfaSendCodeErrorUnavailable:"We could not send the code. Please try again later.",loginMfaEmailVerifiedError:"We could not send the verification code. Contact support to enable two-factor authentication.",loginMfaInvalidCode:"The code is not val
1id. Check your email and try again.",loginMfaInvalidCodeLastAttempt:"The code is not valid. You have 1 attempt left.",loginMfaSoftLockBlocked:"For security, access is temporarily blocked. Try again in {{countdown}}.",loginMfaResendCode:"Resend code",loginMfaResendCodeWithTimer:"Resend code ({{seconds}}s)",loginMfaResendCodeWithTimerMmSs:"Resend code ({{countdown}})",loginMfaResendCodeSuccess:"We sent you a new code.",loginMfaResendRateLimitSupport:"If you still do not receive the code, contact Support."},descriptiveFieldsSelectPlaceholder:"Select a value",descriptiveFieldsInactiveValue:"(inactive)",descriptiveFieldsLoading:"Loading descriptive fields...",descriptiveFieldsErrorNotAvailable:"One of the descriptive fields is no longer available. Refresh the page and save again.",descriptiveFieldsErrorValueInactive:"One of the selected values was deactivated. Refresh the page and choose another.",descriptiveFieldsErrorValueInvalid:"One of the selected values is not valid for that field.",descriptiveFieldsErrorDuplicated:"A descriptive field can only have one value.",account:{productFields:{title:"Product fields",description:"Set up the values of the descriptive fields that apply to your whole catalog. Only fields that are active and have at least one active value are shown when creating or editing products.",fieldNames:{marca:"Brand",linea:"Line",material:"Material",origen:"Origin",temporada:"Season",calidad:"Quality"},valuesCount:"{{count}} of {{limit}} values",manageValues:"Manage values",statusInactive:"Inactive",activateBlocked:"To activate this field, add at least one active value.",deactivateTitle:"Are you sure you want to deactivate this field?",deactivateText:"The field will no longer be shown when creating or editing products. The configured values and the information already recorded will not be deleted.",deactivate:"Deactivate",valuesDescription:"Manage the values available for this field.",backToFields:"Back to Product fields",emptyTitle:"This field has no values yet.",emptyText:"Add the values that can be selected in products.",searchPlaceholder:"Search for a value",noSearchResults:"No values match your search.",emptyFieldsT
1itle:"No fields available yet.",emptyFieldsText:"Descriptive fields are not enabled yet. If the problem persists, contact support.",newValuePlaceholder:"Enter a {{field}} name",newValuePlaceholderFallback:"Enter a name",limitReached:"You reached the maximum of {{limit}} values for this field. Delete one that is not in use to add another.",nameRequired:"Enter a name for the value.",nameTooLong:"The name cannot exceed {{max}} characters.",nameDuplicated:"A value with that name already exists in this field.",renameTitle:"Edit value",renameLabel:"Value name",deleteTitle:"Delete the value {{name}}?",deleteText:"This action cannot be undone.",deleteBlockedReason:"It cannot be deleted because it is assigned to products. You can inactivate it so it is not used in new products.",lastActiveTitle:"This is the last active value of the field",lastActiveText:"If you continue, the field will be deactivated and will no longer be shown when creating or editing products. The values and the information already recorded will not be deleted.",retry:"Retry",errors:{fieldNotFound:"The field does not exist or is not available.",valueNotFound:"The value does not exist or does not belong to your company.",noActiveValues:"To activate the field there must be at least one active value.",valueInUse:"The value is assigned to products and cannot be deleted. You can inactivate it."}}}}},ar:{translation:{error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",bulkImportVariantsRetry:"Reintentar",bulkImportVariantsStatsErrorTitle:"No pudimos obtener el resumen del archivo",bulkImportVariantsStatsErrorText:"Reintent\xe1 para conocer cu\xe1ntas filas se pueden importar y continuar.",bulkImportVariantsStatusComplete:"Completada",bulkImportVariantsStatusError:"Err\xf3nea",bulkImportVariantsStatusInProgress:"En progreso",bulkImportVariantsRunningStatusError:"No pudimos verificar si hay una importaci\xf3n en curso. Reintentaremos autom\xe1ticamente.",bulkImportVariantsSkuDuplicatedError:"El SKU ingresado ya pertenece a otro concepto.",bulkImportVariantsConceptNotParentError:"El SKU agrupador informado corresponde a un producto o servicio que no admite variantes.",bulkImportVariantsErrorDetailTitle:"Registro de productos err\xf3neos",bulkImportVariantsGrouperSkuColumn:"SKU Agrupador",bulkImportVariantsSkuColumn:"SKU",bulkImportVariantsFieldsColumn:"Campos",bulkImportVariantsErrorTypeColumn:"Tipo de error",bulkImportVariantsHeadingField:"Rubro",bulkImportVariantsSubheadingField:"Subrubro",bulkImportVariantsTypeField:"Tipo",bulkImportVariantsCurrencyField:"Moneda",bulkImportVariantsProviderField:"Proveedor",bulkImportVariantsLimitReachedField:"L\xedmite alcanzado",alertC2:"El plazo para pagar tu plan se encuentra vencido. Comunicate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",alertC2Ch:"El plazo para pagar tu plan se encuentra vencido. Comun\xedcate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",rut:"RUT",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",click:"click aqu\xed.",tools:"HERRAMIENTAS",attributes:"Atributos",accept:"Aceptar",cancel:"Cancelar",add:"Agregar",save:"Guardar",AddPh:"Adjuntar foto",titleAttributes:"Productos y servicios",titlePrincipalAttributes:"Datos principales",subTitlePrincipalAttributes:"Estos son los datos b\xe1sicos que el sistema necesita para poder facturar un producto.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",type:"Tipo",condSKU:"C\xf3digo (SKU)",condSKU2:"C\xf3digo SKU",barcode:"C\xf3digo de barras",SKU:"SKU",name:"Nombre",state:"Estado",category:"Rubro",subcategory:"Sub-rubro",amounts:"Importes",requiredFiles:"Complet\xe1 los campos obligatorios.",stockMin:"Stock m\xednimo",stockMinSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Configuraci\xf3n -> Avisos y alertas -> Alertas.",aditionalData:"Datos adicionales",aditionalDataSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Configuraci\xf3n -> Avisos y alertas -> Alertas.",entityName:"Entidades",generalData:"Datos generales",entityPrice:"Moneda y saldo",entityMoreOptions:"Mas opciones",entitylessOptions:"Menos opciones",entity:"Entidad",accountName:"Nombre de cuenta",currency:"Moneda",currencies:"Monedas",balance:"Saldo",address:"Direcci\xf3n",email:"Email",executive:"Ejecutivo",observations:"Observaciones",observationsPlace:"No es necesario agregar una observaci\xf3n pero te puede servir de utilidad",reqField:"Campo obligatorio",buttonNewEntity:"+ Nuevo",actualBalance:"Saldo actual",newProduct:"Nuevo producto o servicio",back:"Volver",process:"Procesando...",addNew:"A\xf1adir nuevo",createNproduct:"Crear un nuevo producto",createNService:"Crear un nuevo servicio",createNCombo:"Crear un combo de 2 o m\xe1s productos/servicios",product:"Producto",service:"Servicio",combo:"Combo",fieldsReq:"Los campos marcados con",required:"son requeridos.",requiredField:"Este campo es requerido",next:"Siguiente",comboItems:"Items del combo",addNewProduct:"A\xf1adir nuevo producto",addNewService:"A\xf1adir nuevo servicio",addNe
1wCombo:"A\xf1adir nuevo combo",addProductName:"Ingresa el nombre del producto",addServiceName:"Ingresa el nombre del servicio",addComboName:"Ingresa el nombre del combo",typeProduct:"Tipo de producto",typeService:"Tipo de servicio",typeCombo:"Tipo de combo",amount:"Cantidad",description:"Descripci\xf3n",item:"Item",internalCost:"Costo interno s/IVA",unitPrice:"Precio unitario s/IVA",unitPriceWithIVA:"Precio unitario c/IVA",priceDetail:"Detalle del precio",detail:"Detalle",addMinStock:"Ingrese el stock m\xednimo",alertMinStock:"Te enviaremos una alerta cuando el stock llegue al m\xednimo.",tooltipMinStock:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Configuraci\xf3n -> Avisos y alertas -> Alertas.",alertStock:"Alerta de stock m\xednimo",automaticPrice:"Precio autom\xe1tico",automaticPriceExp:"El precio autom\xe1tico se calcula en base al precio sin IVA de los productos que lo componen.",internalCost2:"Costo interno sin IVA",costEffec:"Rentabilidad",unitPrice2:"Precio unitario con IVA",unitPrice3:"Precio unitario sin IVA",finalPrice:"Precio final",AdditionalInfo:"Informaci\xf3n adicional",CodOEM:"C\xf3digo OEM",supplierOr:"Proveedor origen",supplier:"Proveedor",selectSupplierOr:"Seleccione un cliente/proveedor",purchaseAccount:"Cuenta Compra",selectAccount:"Seleccione una cuenta",accountSale:"Cuenta Venta",merchAccount:"Cuenta Mercader\xeda",visibleSalesMod:"Visible en m\xf3dulo ventas",achievedRG:"Alcanzado por RG 5329/2023",mainInformation:"Informaci\xf3n principal",title:"T\xedtulo",active:"Activo",formatImg:"JPG, PNG o GIF",selectFormat:"Selecciona un archivo en formato",selectFormat2:"con un formato m\xe1ximo recomendado de 100x70px.",img:"Imagen",deposit:"Dep\xf3sito",initialStock:"Stock inicial",appAll:"Aplicar a todos",uniquePriceBlockTitle:"Precio \xfanico para todas las variantes",uniquePriceBlockTooltip:"El precio que cargues ac\xe1 se aplicar\xe1 autom\xe1ticamente a todas las variantes del producto.",uniquePriceInfoCardVariants:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Ten\xe9s configurado utilizar el mismo precio para todas las variantes. Complet\xe1 el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas. Si necesit\xe1s editar informaci\xf3n espec\xedfica de una variante, hac\xe9 clic en el \xedcono del l\xe1piz.",uniquePriceLockedTooltip:"El precio de esta variante se completa autom\xe1ticamente con el valor del bloque Precio \xfanico. Pod\xe9s modificar esta configuraci\xf3n desde Mi Cuenta \u2192 Preferencias \u2192 Par\xe1metros.",uniquePriceConvergenceWarning:"Las variantes de este producto tienen precios distintos. Al guardar, todas quedar\xe1n con los valores del bloque Precio \xfanico.",uniquePriceConfirmTitle:"\xbfActualizar el precio de todas las variantes?",uniquePriceConfirmText:"Este producto tiene variantes con diferentes precios. Al continuar, ",uniquePriceConfirmTextHighlight:"todas las variantes se actualizar\xe1n con el precio definido en Precio \xfanico para todas las variantes: {{price}}.",uniquePriceConfirmTextReplace:" Este cambio reemplazar\xe1 los precios actuales de todas las variantes.",uniquePriceConfirmContinue:"Continuar",uniquePriceMissingTitle:"Complet\xe1 el precio para continuar",uniquePriceMissingText:"Detectamos que este producto tiene variantes con distintos precios. Complet\xe1 el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas las variantes.",uniquePriceMissingUnderstood:"Entendido",only:"\xdanico",withVariants:"Con variantes",tooltipVariant:"Aprende m\xe1s sobre variantes desde Tutoriales recomendados",noOption:"No se ha encontrado una opci\xf3n",selectCat:"Selecciona un rubro",selectSubCat:"Selecciona un sub-rubro",selectItem:"Seleccione un item",initialStockCharge:"Carga inicial de stock",presentations:"Presentaciones",presentationsInfo:"Las Presentaciones que configures se crear\xe1n autom\xe1ticamente en todos los dep\xf3sitos. El stock siempre se administra en unidades base.",presentationsVariantsInfo:"Las Presentaciones pueden aplicarse a todas las variantes o configurarse de forma independiente en cada variante. El stock siempre se administra en unidades base.",addPresentation:"Agregar presentaci\xf3n",noAdditionalPresentations:"Sin presentaciones adicionales.",presentationTypesEmptyTitle:"A\xfan no ten\xe9s tipos de Presentaciones configurados",presentationTypesEmptyDescription:"Configur\xe1 al menos un tipo de Presentaci\xf3n para poder agregarlo a tus productos.",configurePresentations:"Configurar Presentaciones",presentationType:"Tipo de presentaci\xf3n",selectPresentationType:"Seleccionar tipo...",equalsTo:"Equivale a",unitsLabel:"unidades",presentationEquivalenceInvalid:"La equivalencia debe ser un n\xfamero entero mayor a 1.",presentationEquivalenceMax:"La equivalencia no puede superar 999.999.",weight:"Peso",weightPlaceholder:"Ej: 3,5",dimensions:"Dimensiones",dimensionsPlaceholder:"Ej: 30x20x15",adjustmentPercent:"Ajuste (%)",adjustmentPlaceholder:"0",presentationPriceWithIva:"Precio Present. c/IVA",presentationPriceWithoutIva:"Precio Present. s/IVA",presentationPriceComplementWithIva:"Precio Present. c/IVA",presentationPriceComplementWithoutIva:"Precio Present. s/IVA",presentationPriceMaxTooltip:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y decimales seg\xfan configuraci\xf3n base.",presentationCalculatedPriceExceedsMaxAlert:"El precio calculado de una o m\xe1s presentaciones supera el m\xe1ximo permitido. Revis\xe1 la equivalencia o el precio unitario para continuar.",price:"Precio",complete:"completos",presentationsCount:"presentaciones",noVariantsForPresentations:"No hay variantes para configurar presentaciones.",applyPresentationsToAll:"Aplicar a todas las variantes",applyPresentationsToAllConfirmTitle:"Confirmar cambio",applyPresentationsToAllConfirm:"\xbfDese\xe1s aplicar la misma configuraci\xf3n de presentaciones a todas las variantes? Las configuraciones particulares de cada variante ser\xe1n reemplazadas por la configuraci\xf3n general.",applyPresentationsToAllDisableConfirm:"\xbfDese\xe1s configurar las presentaciones de forma independiente por variante? Dejar\xe1s de aplicar la misma configuraci\xf3n a todas las variantes.",presentationDeleteBlockedTitle:"No se pudo eliminar la Presentaci\xf3n",presentationDeleteConfirmTitle:"\xbfEst\xe1s seguro que deseas eliminar la presentaci\xf3n {{name}}?",presentationDeleteBlockedDescription:"La Presentaci\xf3n no puede eliminarse porque ya fue utilizada en uno o m\xe1s comprobantes. Si ya no necesit\xe1s utilizarla, pod\xe9s inactivarla.",searchVariantSkuPlaceholder:"Buscar por SKU o nombre",noVariantsForSkuSearch:"Sin variantes para el SKU buscado",charactersToSearch:"Escribe dos o m\xe1s caracteres para buscar",noResults:"No hay resultados para mostrar",errorTitle:"Ha ocurrido un error",errorcontent:" Lo sentimos, ha ocurrido un error. No se pudo completar tu solicitud. Por favor, intenta m\xe1s tarde.",errorContent2:"Lo sentimos, ha ocurrido un error. No se pudo completar la acci\xf3n. Por favor intenta de nuevo m\xe1s tarde.",tooldeleteEntities:"No es posible eliminar entidades con comprobantes asociados",entitiesNotDelete:"No es posible eliminar todas la entidades. Debe haber al menos una entidad activa",Advert
1isements:"Anuncios",alertFuntionalities1:"Aqu\xed encontraras inpormaci\xf3n actualizada sobre las \xfaltimas funcionalidades que hemos agregado, para que puedas aprovechar al m\xe1ximo nuestra plataforma ",alertFuntionalities2:"En contabilium queremos escucharte. Ay\xfadanos a mejorar la plataforma dej\xe1ndonos tus sugerencias o votando por las que consideres importantes. Solo presiona la flecha hacia arriba junto al n\xfamero de la sugerencias",alertFuntionalities3:"Aqu\xed encontraras un listado de las mejoras y nuevas funcionalidades que pronto estar\xe1n disponibles en nuestra plataforma. \xa1Mantente al d\xeda con lo que viene! ",headingsError:"Si no cuenta con rubros, deber\xe1 crear uno",attributeWarning:"Est\xe1s por modificar un atributo",attributeChangeWarning:"Al proceder se modificar\xe1 en cada producto o servicios d\xf3nde se encuentre configurado.",modifyAttribute:"Modificar atributo",attributeConfig:"Configuraci\xf3n de atributo",attributeName:"Nombre del atributo",writeName:"Escribe un nombre",attributeDescription:"Descripci\xf3n del atributo",writeDescription:"Escribe una descripci\xf3n",variant:"Variante",addNewVariant:"A\xf1adir nueva variante",close:"Cerrar",eliminateAttribute:"No puedes eliminar el atributo",eliminateWarning:"Para proceder deber\xe1s eliminar los productos o servicios que est\xe9n asociados a \xe9ste atributo.",IVAPer:"IVA %",finalPriceWoIVA:"PRECIO SIN IVA",yes:"Si",no:"No",store:"Bodega",tooltipIVA2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVAStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl500:"Est\xe1s usando el precio con IVA incluido y redondeo de 500. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl1000:"Est\xe1s usando el precio con IVA incluido y redondeo de 1000. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVAClStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",mainData:"Datos principales",search:"Buscar",searchPlaceHolder:"Escribe para buscar",addNewAttribute:"A\xf1adir nuevo atributo",attributesVariants:"Variantes del atributo",deleteAttribute:"Eliminar atributo",attributesAndVariants:"Nombre y variantes del atributo",typeSelectorDescriptionProduct:"Un producto \xfanico es para aquellos comercios que solo tienen un tipo de producto, mientras que cargar un producto con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",newFunctionality:"\xa1Nueva funcionalidad!",variantName:"Nombre variante",attributesConfig:"Configuraci\xf3n de atributos",variantsConfig:"Configuraci\xf3n de variantes",attribute:"Atributo",variantsSummary:"Al presionar las variantes, estas se deseleccionar\xe1n.",variantsSummaryEdition:"Solo se pueden activar y agregar nuevas variantes",addExitAttribute:"Agregar atributo existente",depositName:"Nombre del dep\xf3sito",depositInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de los dep\xf3sitos.",storeName:"Nombre de la bodega",storeInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de las bodegas.",addVariant:"Agregar variante",apply:"Aplicar",applyChanges:"Aplicar cambios",insertName:"Ingresar nombre",typeSelectorDescriptionService:"Un servicio \xfanico es para aquellos comercios que solo tienen un tipo de servicio, mientras que cargar un servicio con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",variantStatusTooptip:"Si el estado es inactivo todas las variantes quedar\xe1n inactivas",stockInfo:"*Al ingresar stock desde esta pantalla no se generan de forma autom\xe1tica los asientos contables por ajuste de mercader\xeda.",productSearchLabel:"Buscar nombre, descripci\xf3n o SKU",viewFilters:"Ver filtros",filtersApplied:"filtros aplicad
1os",allProducts:"Todos los productos",allHeadings:"Todos los rubros",allSubHeadings:"Todos los sub-rubro",allProviders:"Todos los proveedores",productType:"Tipo de producto",filters:"Filtros",filter:"Filtrar",labelPrinting:"Impresi\xf3n de etiquetas",selectPrintingItems:"Seleccionar los \xedtems a imprimir",labelPrintingConfig:"Configuraci\xf3n de etiquetas",printers:"Impresora",selectPrinter:"Seleccione impresora",selectOption:"Seleccione una opci\xf3n",selectFieldsToShow:"Seleccione los campos de la etiqueta",barcodeFormat:"Formato del c\xf3digo de barras",labelQuantity:"Cantidad de etiquetas por producto",labelSize:"Tama\xf1o de etiqueta",fieldsToShow:"Campos a mostrar",print:"Imprimir",preview:"Vista previa",successDownload:"Se descarg\xf3 el archivo para imprimir correctamente",errorDownload:"No se pudo descargar el archivo para imprimir correctamente",noResult:"No se encontraron resultados",emptyStateSearchProductsText:"Intenta cambiar los filtros, buscar otro art\xedculo, descripci\xf3n o SKU",view:"Ver",all:"Todos",grouperSkuCodeP:"Al cargar un producto con variantes se debe crear un c\xf3digo SKU agrupador",grouperSkuCodeS:"Al cargar un servicio con variantes se debe crear un c\xf3digo SKU agrupador",labelBarCodeLengthMax:"Se ha excedido la longitud m\xe1xima permitida para el c\xf3digo de barras.",labelBarCodeLabelLengthDistinct:"Los formatos de c\xf3digo de barra de tus productos elegidos no son compatibles con el formato de c\xf3digo de barra seleccionado.",defaultError:"Ha ocurrido un error, por favor, vuelve a intentarlo.",columnMatchingTitle:"Asignar los campos importados a los productos",columnMatchingInfo:"Selecciona las columnas de tu archivo y asegurate de hacerlas coincidir con los campos requeridos para la importaci\xf3n.",columnName:"Nombre de la columna",assignField:"Asignar al campo",firstRowPreview:"Vista previa 1ra fila",bulkImportTitle:"Importaci\xf3n masiva de informaci\xf3n",bulkImportDate:"Fecha de importaci\xf3n",bulkImportStatus:"Estado de importaci\xf3n",bulkImportHistory:"Historial de importaciones",downloadBaseFile:"Descargar planilla base",select:"Seleccionar",uploadFile:"Subir archivo xlsx o csv",dragAndDropFileTitle:"o arrastrar el archivo aqu\xed.",validUploadFilesText:"Record\xe1 que solo se pueden subir archivos ",columnOrder:"Asignaci\xf3n de columnas",downloadFile:"Descarga de planilla ",downloadFileButton:"Descargar planilla",downloadFileInfo:"Descarg\xe1 la planilla y utiliz\xe1 el archivo modelo o hac\xe9 click en siguiente y sub\xed tu propia planilla. Aseg\xfarate de completar todos los campos obligatorios.",uploadFileHelp:"Para guardar el archivo haz click en \u201cArchivo\u201d -> \u201cGuardar Como\u201d y guard\xe1 tu excel en formato \u201c.xlsx\u201d. Si tu computadora es de la marca Apple, podr\xedas necesitar esta informaci\xf3n.",bulkImportConfirmation:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n?",bulkImportConfirmationWithTable:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n? De no ser as\xed, sugerimos que revises el listado que figura en la previsualizaci\xf3n.",bulkImportProcessedText:"Ten presente que este proceso se ejecuta en segundo plano. Cuando finalice, se te enviar\xe1 una notificaci\xf3n con la confirmaci\xf3n.",bulkImportDataSizeText:"Dependiendo de la cantidad de datos a importar el proceso puede demorar algunos minutos.",bulkImportProductErrorText:"Los productos marcados con errores en la tabla o que posean datos incorrectos al momento de la importaci\xf3n, no ser\xe1n importados.",buklImportCheckText:"He verificado que los datos a subir son correctos",bulkImportErrorModalTitle:"Ha ocurrido un error en la importaci\xf3n",bulkImportErrorModal:"Por favor, verific\xe1 que los campos o el archivo importado posean el formato correcto.",import:"Importar",importSuccess:"\xa1Importaci\xf3n iniciada con \xe9xito!",importNewsNotification:"Mantente atento al historial de importaciones para ver en qu\xe9 estado se encuentra tu importaci\xf3n.",templateGuide:"Indicaciones para completar la planilla",columnTemplateGuide:"Indicaciones para reacomodar las columnas",firstTutorialText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",secondTutorialText:"Debes completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evit\xe1 el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",thirdTutorialText:"Para determinar el tipo de concepto (ya sea producto o servicio), utiliza \u201cP\u201d para producto y \u201cS\u201d para servicio. Esto ayuda a clasificar adecuadamente los elementos en la planilla.",fourthTutorialText:"El estado de un producto se define como activo (A) o inactivo (I). Pod\xe9s crear nuevos productos con estados activos o inactivos, o modificar el estado de productos existentes seg\xfan sea necesario.",fifthTutorialText:"En el caso de usuarios con bi-moneda, la moneda debe ser especificada como ARS o USD. No es posible editar la moneda de un producto previamente cargado en el sistema.",sixthTutorialText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",seventhTutorialText:"Para productos sujetos a impuesto al valor agregado (IVA), los Monotributistas solo pueden completar el campo de porcentaje de IVA con \u201c0\u201d (cero). Esto puede ser importante para la correcta facturaci\xf3n y cumplimiento fiscal.",eighthTutorialText:"Si un producto ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",firstColumnTutorialText:"Representa el t\xedtulo del campo requerido para la importaci\xf3n de datos.",secondColumnTutorialText:"Columna en donde se mostrar\xe1n los t\xedtulos del archivo importado.",thirdColumnTutorialText:"Se debe seleccionar un elemento. Los datos importados de este elemento se asignar\xe1n al campo requerido. Si un t\xedtulo ya se encuentra seleccionado, no puede repetirse en otro campo requerido.",fourthColumnTutorialText:"Vista previa del primer dato del archivo importado que se asignar\xe1 al campo requerido.",firstRow:"1\xb0 Fila",fatherSKU:"SKU padre",unitP:"P. unitario",barCode:"C\xf3d. barra",urlImg:"URL imagen",originSupplier:"C\xf3d. proveedor",purchaseAcc:"Cta. compra",saleAcc:"Cta. venta",merchAcc:"Cta. mercader\xeda",rgAchived:"Alcanzado RG",attribute1:"Atributo1",attribute2:"Atributo2",variantAttribute1:"Var. atributo1",variantAttribute2:"Var. atributo2",internalCost3:"Costo interno",variantSKU:"SKU variante",variantObservation:"Observ. variante",existingProduct:"Producto existente",tableNewProduct:"Producto nuevo",title1:"Zapatilla run",title2:"Pantal\xf3n run",sku1:"SKU-ABC123",sku2:"\tSKU-DEF456",typeP:"P",typeS:"S",stateA:"A",stateI:"I",currency1:"ARS",currency2:"USD",urlImg1:"http://imagen.com/imagen01.jpg",urlImg2:"http://imagen.com/imagen02.jpg",category1:"Zapatillas",category2:"Pantalones",subCategory2:"Deportivo",de
1scription1:"Zapatillas deportivas",description2:"Pantalones largos, algod\xf3n",tableSupplier:"CODE123",accCode1:"1.1.2.3",accCode2:"1.2.1.4",observation1:"Lleva cordones",observation2:"Ajustable",ivaRate:"Tasa IVA",ivaDetail:"Tipo de IVA",iva1:"21",iva2:"10,5",bCode1:"12345678",bCode2:"AB67890CD",fileFirstColumnText:"Borr\xe1 o ignor\xe1 esta columna",fileSecondRowText1:"Borr\xe1 o ignor\xe1 esta fila",fileSecondRowText2:"CAMPO OBLIGATORIO - Denominaci\xf3n de tu Producto o servicio",bulkImportProductsAndServices:"Importaci\xf3n masiva de productos y servicios",bulkImportVariantsProductsAndServices:"Importaci\xf3n masiva de productos y servicios con variantes",bulkImportVariantsProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n para importar masivamente productos y/o servicios con variantes.",bulkImportVariantsImportedConcepts:"Productos y servicios importados",variantsDownloadFileInfo:"Descarg\xe1 la planilla y utiliz\xe1 el archivo modelo o hac\xe9 click en siguiente y sub\xed tu propia planilla. Asegurate de completar todos los campos obligatorios.",variantsTemplateGuide:"Indicaciones para completar la planilla",variantAttribute1Header:"Atributo 1",variantVariant1Header:"Variante de atributo 1",variantIvaTypeHeader:"Tipo IVA",errorVariantMax:"Superaste el m\xe1ximo de 100 variantes para este SKU agrupador. Las variantes excedentes no ser\xe1n importadas.",errorInvalidVariantType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cV\u201d para variantes de producto y \u201cG\u201d para variantes de servicio.",errorVariantTypeNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Tipo. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantCurrencyDistinct:"Todas las variantes de un mismo SKU agrupador deben tener la misma moneda.",errorVariantCurrencyNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Moneda. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantAttributeRepeated:"Esta combinaci\xf3n de variantes de atributo ya fue utilizada dentro del mismo SKU agrupador.",errorVariantSkuDuplicated:"El SKU de variante ingresado ya pertenece a otro concepto. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSkuEquals:"El SKU de la variante no puede ser igual al SKU agrupador",errorAttributeNotExists:"El atributo ingresado no existe o no coincide con ninguno que tengas registrado.",errorAttributeDisabled:"El atributo ingresado est\xe1 inactivo.",errorAttributeMax:"Se admite un m\xe1ximo de 2 atributos por producto o servicio con variantes.",errorAttributeItemNotExist:"La variante ingresada no existe.",errorAttributeItemDisabled:"La variante ingresada est\xe1 inactiva.",errorAttributeItemUnlinked:"La variante de atributo ingresada no existe o no tiene relaci\xf3n con el atributo seleccionado.",variantGrouperNameHeader:"Nombre agrupador",variantSkuGrouperHeader:"C\xf3d SKU agrupador",variantNameHeader:"Nombre de variante",variantAttribute2Header:"Atributo 2",variantVariant2Header:"Variante de atributo 2",variantSkuHeader:"SKU variante",variantObservationsHeader:"Observaciones de variante",variantsSkuGrouperFilterPlaceholder:"Buscar por C\xf3d SKU agrupador",errorGrouperNotFound:"El SKU Agrupador no existe.",errorTypeNotEditable:"No es posible modificar el tipo de un producto o servicio con variantes existente.",errorCurrencyNotEditable:"No es posible modificar la moneda de un producto o servicio con variantes existente.",errorCurrencyNotShared:"Todas las variantes de un mismo agrupador deben compartir la misma moneda.",errorHeadingNotFound:"El rubro informado no existe.",errorSubHeadingNotFound:"El subrubro informado no existe o no pertenece al rubro seleccionado.",errorProviderNotFound:"El proveedor informado no existe.",errorAttributeNotMatch:"El atributo informado no corresponde al agrupador.",errorNoNewAttributes:"No es posible agregar nuevos atributos a un agrupador existente.",errorMaxAttributes:"El agrupador ya posee el m\xe1ximo de dos atributos configurados.",errorAttributeVariantNotMatch:"La variante del atributo no corresponde al atributo informado.",errorAttributeCombination:"La combinaci\xf3n de atributos ya existe para este agrupador.",errorVariantSkuNotFound:"El SKU Variante no existe.",errorVariantSkuOtherGrouper:"El SKU Variante ya pertenece a otro agrupador.",errorMaxVariants:"No se pueden crear m\xe1s de 100 variantes por atributo.",variantsRowErrorSingular:"err\xf3neo de",variantsRowErrorPlural:"err\xf3neos de",selectAnOption:"Seleccion\xe1 una opci\xf3n",variantsMaxFileSizeError:"El archivo importado supera el tama\xf1o m\xe1ximo permitido.",variantsColumnCountError:"La cantidad de columnas del archivo no coincide con la estructura esperada.",variantsEmptyFileError:"El archivo no posee ning\xfan registro.",variantsMaxRowsError:"El archivo supera el m\xe1ximo de 2500 filas permitidas.",variantsInvali
1dFileType:"No pod\xe9s subir este tipo de archivo. Solo se permiten archivos .csv y .xlsx.",variantsFileReadError:"Hubo un problema al leer el archivo. Verific\xe1 que no est\xe9 da\xf1ado e intent\xe1 nuevamente.",variantsWizardStepInProgress:"historia 3 en desarrollo.",variantIndicationFirstRowText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",variantIndicationNameText:"Deb\xe9s completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evit\xe1 el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",variantIndicationSkuText:"Para crear o actualizar productos o servicios con variantes es obligatorio informar el SKU Agrupador. Todas las variantes que pertenezcan al mismo producto o servicio deber\xe1n repetir el mismo SKU Agrupador. Si el SKU no existe, se crear\xe1 un nuevo concepto; si existe, se actualizar\xe1.",variantIndicationCurrencyText:"En empresas con bi-moneda, todas las variantes de un mismo agrupador deben compartir la misma moneda. No es posible modificar la moneda de conceptos ya existentes.",variantIndicationAttributeText:"Cada agrupador debe contar con al menos un atributo y una variante asociada. Se permite configurar hasta 2 atributos y un m\xe1ximo de 10 variantes por atributo.",variantsSkuMaxLengthError:"El campo SKU variante admite hasta 50 caracteres. Correg\xed el archivo y volv\xe9 a subirlo.",variantIndicationUnitPriceText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",variantIndicationFirstRowTitle:"1\xb0 Fila",variantIndicationNameTitle:"Nombre agrupador",variantIndicationSkuTitle:"C\xf3d SKU agrupador",variantIndicationCurrencyTitle:"Moneda",variantIndicationAttributeTitle:"Atributo 1 y Variante de atributo 1",variantIndicationUnitPriceTitle:"Precio unitario",variantIndicationIvaRateTitle:"Tasa IVA",variantIndicationIvaRateText:"Para productos sujetos a impuesto al valor agregado (IVA), los Monotributistas solo pueden completar el campo de porcentaje de IVA con \u201c0\u201d (cero). Esto puede ser importante para la correcta facturaci\xf3n y cumplimiento fiscal.",variantIndicationNonRequiredText:"Si un producto o servicio con variantes ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",bulkImportProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n si quer\xe9s cargar productos y/o servicios.",startBulkImport:"Empezar importaci\xf3n",duplicatedField:"Campo duplicado",emptyBulkImportHistoryTitle:"Tu historial de importaciones est\xe1 vac\xedo",errorBulkImportHistoryTitle:"Ocurri\xf3 un error al cargar el historial",emptyBulkImportHistoryText:"Una vez que comiences una importaci\xf3n, podr\xe1s ver el progreso y los detalles aqu\xed.",user:"Usuario",users:"Usuarios",uploadNew:"Cargar nuevo",dropNew:"o arrastrar otro archivo aqu\xed",selectImgByUrl:"Sube una imagen mediante URL: Ingresa la direcci\xf3n web de la imagen que deseas cargar",goToOldConceptsCreation:"Ir a la versi\xf3n anterior",duplicateCodeError:"SKU duplicado",emptySKU:"Has dejado c\xf3digos SKU incompletos, por favor, revis\xe1 el listado y completalo para continuar.",productCheck:"Revisi\xf3n de productos",bulkImportPreviousResults:"Resultados previos a la importaci\xf3n",filterFor:"Filtrar por:",result:"Resultado",errorState:"Error",errorFilter:"Err\xf3neos",correctState:"Correcto",withoutErrorFilter:"Sin errores",bulkImportFileErrorTitle:"El archivo importado presenta errores",bulkImportFileErrorText:"Se han detectado errores en el archivo que dese\xe1s importar. Si contin\xfaas, los elementos con fallas no ser\xe1n importados. Para asegurar una importaci\xf3n completa, correg\xed los errores y volv\xe9 a subir el archivo.",uploadAgain:"Volver a subir",emptyStateChangeFilter:"Intent\xe1 cambiar los filtros.",errorMissing:"Este campo posee un error.",errorRequiredField:"Este campo es obligatorio. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorMaxLimit30:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 30 caracteres.",errorMaxLimit50:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 50 caracteres.",errorMaxLimit128:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 128 caracteres.",errorMaxLimit150:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 150 caracteres.",errorMaxLimit500:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 500 caracteres.",errorMaxLimitPrice:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y 3 decimales (999999999,999).",errorMaxLimitProfitability:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 6 enteros y 3 decimales (999999,999).",errorMaxLimitMinStock:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 4 enteros (9999).",errorSkuRepeated:"El SKU ingresado ya fue utilizado dentro de esta importaci\xf3n. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorInvalidCurrency:"La opci\xf3n ingresada es inv\xe1lida. El campo Moneda \xfanicamente acepta ARS o $ para pesos Argentinos o, en caso de poseer bi moneda, USD o U$S para d\xf3lares Estadounidenses.",errorInvalidType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cP\u201d o \u201cProducto\u201d para productos y \u201cS\u201d o \u201cServicio\u201d para servicios.",errorInvalidStatus:"La opci\xf3n ingresada es inv\xe1lida. El campo Estado debe completarse \xfanicamente con \u201cA\u201d o \u201cActivo\u201d para activos e \u201cI\u201d o \u201cInactivo\u201d para inactivos.",errorInvalidURL:"La URL de la imagen es inv\xe1lida. Verific\xe1 que comience con https:// y que corresponda a un archivo con formato JPG, JPEG, GIF o PNG.",errorInvalidNumberField:"\xc9ste campo puede completarse \xfanicamente con caracteres num\xe9ricos y utilizando una coma (,) o un punto (.) como separador decimal.",errorInvalidIVA:"La Tasa IVA ingresada es inv\xe1lida. Los valores permitidos son: 0, 2.5, 5, 10.5, 21 y 27.",errorInvalidIvaMonotributo:"La opci\xf3n ingresada es inv\xe1lida. Para usuarios MO, el \xfanico valor permitido en IVA es 0.",errorInvalidIvaDetail:"El tipo de IVA ingresado no existe o no tiene relaci\xf3n con la Tasa IVA.",errorInvalidMinStock:"\xc9ste campo debe completarse \xfanicamente con caracteres num\xe9ricos. Ten\xe9 en cuenta que el campo Stock m\xednimo no acepta decimales.",errorInvalidRG5329:"La opci\xf3n ingresada es inv\xe1lida. El campo RG5329/2023 debe completarse \xfanicamente con \u201cSI\u201d o \u201cNO\u201d.",errorNegativeNumbers:"\xc9ste campo no puede completarse con n\xfameros negativos. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorDecimals:"El campo Stock m\xednimo no acepta decimales. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorHeading:"El rubro registrado no existe o no coincide con ning\xfan rubro que tengas registrado.",errorSubHeading:"El sub-rubro ingresado no existe o no tiene relaci\xf3n con el rubro seleccionado.",bulkImportFieldValueNotFound:"El valor no existe en ese campo o est\xe1 inactivo. Revisalo en Mi Cuenta \u2192 Campos de productos.",bulkImportFieldNotAvailable:"El campo no est\xe1 habilitado. Habilitalo en Mi Cuenta \u2192 Campos de productos o dej\xe1 la celda vac\xeda.",descriptiveFieldsTutorialText:"Marca, L\xednea, Material, Origen, Temporada y Calidad son opcionales. Escrib\xed el nombre del valor como figura en Mi Cuenta \u2192 Campos de productos. El campo tiene que estar habilitado y el valor activo; si no, la fila se marca con error. No se crean valores nuevos.",noFileError:"No se ha adjuntado ning\xfan archivo.",maxProductsFileError:"Has superado el m\xe1ximo de productos por archivo. Por favor, verific\xe1 que tu documento posea menos de 2500 items.",emptyFileError:"El archivo no posee ning\xfan item.",invalidFileError:"El archivo enviado no posee un formato correcto.",fileTooLargeError:"El archivo importado en muy pesado. Por favor, verific\xe1 que tu documento pese menos de 1MB.",columnFileDistinctError:"El n\xfamero de columnas que posee tu archivo es distinto al esperado.",jobError:"Se han detectado errores en el proceso de importaci\xf3n. Por favor, revis\xe1 tu documento y volvelo a intentar.",importRunningError:"No es posible realizar dos importaciones al mismo tiempo. Por favor, esper\xe1 que termine el proceso actual para cargar otro archivo.",currencyNotEditable:"No es posible editar la moneda de un producto previamente cargado en el sistema.",providerNotFound:"El proveedor no existe o no coincide con ningun registro guardado.",headingNotFound:"El rubro no existe o no coincide con ningun registro guardado.",subHeadingNotFound:"El subrubro no existe o no est\xe1 relacionado con el rubro seleccionado.",typeNotEditable:"No es posible editar el tipo de un producto previamente cargado en el sistema.",budgetsTitle:"Presupuestos realizados",numberClient:"Buscar n\xfamero de presupuesto o cliente",period:"Periodo",addClient:"Ingrese el n\xfamero de presupuesto y/o cliente",newBudget:"Nuevo presupuesto",export:"Exportar",dateValidity:"Fecha de validez",dateFrom:"Fecha desde",dateTo:"Fecha hasta",selectUserAdditional:"Seleccione un usuario adicional",emptyBudgetsListTitle:"Todav\xeda n
1o creaste ningun presupuesto",emptyBudgetsListText:"Una vez que cargues un presupuesto, podr\xe1s ver los detalles aqu\xed.",emptyFiltersBudgetsListTitle:"No se han encontrado resultados",emptyFiltersBudgetsListText:"Lo sentimos, no se han encontrado resultados. Por favor, intente con diferentes criterios de b\xfasqueda.",errorFiltersBudgetsListTitle:"Ha ocurrido un error",errorFiltersBudgetsListText:"Por favor, vuelve a intentarlo",client:"Cliente",document:"Documento",location:"Domicilio",sellerCondition:"Condici\xf3n de Venta",exchangeType:"Tipo de cambio",date:"Fecha",seller:"Vendedor",quantityShort:"Cant.",code:"C\xf3digo",unitPriceShort:"Precio unit.",unitPriceShortWoIVA:"Precio unit. s/IVA",unitPriceShortIVA:"Precio unit. c/IVA",bonusShort:"Bonif. %",subtotal:"Subtotal",userCreates:"Usuario Alta",userModifies:"Usuario Modifica",budgets:"Presupuestos",transmitter:"Emisor",receiver:"Receptor",modalBudgetsTitle:"\xbfEst\xe1 seguro que desea eliminar el presupuesto ",delete:"Eliminar",sellers:"Vendedores",createBudgets:"Crear nuevo presupuesto",editBudgets:"Editar presupuesto",principalData:"Datos principales",paymentConditions:"Condiciones de pago",selectSeller:"Selecciona un vendedor",exchangeRate:"Tipo de cambio",itemsToBudget:"Items a presupuestar",supplierClient:"Proveedor/Cliente",unitPriceTable:"Precio unit. sin IVA",bonif:"Bonif %",netTax:"Neto gravado",noNetTax:"NO gravado/Exento",total:"TOTAL",iva:"IVA",addNewItem:"Agregar nuevo item",actionModalTitle:"Presupuesto emitido correctamente",sendEmail:"Enviar por email",downloadRemittance:"Descargar remito",downloadBudget:"Descargar presupuesto",duplicate:"Duplicar",totalDefault:"TOTAL EN MONEDA PRINCIPAL",errorStep4Budgets:"Lo sentimos! Ingrese al menos un producto o servicio para realizar el presupuesto.",errorStep1Budgets:"Campo requerido. Completalo con un cliente/proveedor existente.",number:"N\xfamero",otherActions:"Otras acciones",createSaleOrder:"Crear orden de venta",createInvoice:"Facturar",voucherPreview:"Visualizaci\xf3n de comprobante",sendEmailVoucher:"Enviar comprobante por email",emailFor:"Para: (separa las direcciones mediante una coma)",emailSubject:"Asunto:",emailMessage:"Mensaje:",send:"Enviar",errorMailSending:"\xa1Lo sentimos! El email no pudo ser enviado, actualice la p\xe1gina e intente nuevamente.",successMailSending:"\xa1Bien hecho! El email ha sido enviado correctamente.",addFreeDescription:"o ingrese una descripci\xf3n libre",dateValidityTo:"Fecha de validez hasta",dateCreated:"Fecha de creaci\xf3n",exchangeRateError:"El tipo de cambio debe ser mayor que 0",edit:"Editar",receiptView:"Visualizaci\xf3n del comprobante",budgetView:"Visualizaci\xf3n de presupuesto",pdfPreview:"Previsualizar en PDF",simple:"Simple",detailed:"Detallado",salesModule:"M\xf3dulo Ventas",purchaseModule:"M\xf3dulo Compras",inverntaryModule:"M\xf3dulo Inventarios",treasuryModule:"M\xf3dulo Tesorer\xeda",accountingModule:"M\xf3dulo Contabilidad",reportsModule:"M\xf3dulo Reportes",restrictedAccessToModule:"\xa1Desbloque\xe1 todo el potencial de tu cuenta!",blockedModuleText:"Con un plan superior, podr\xe1s acceder a todas las funcionalidades avanzadas, incluyendo ",uploadPlan:"Actualiz\xe1 tu plan y empez\xe1 a aprovechar todas las ventajas.",comparePlans:"Comparar planes",conceptsLimitWarning:"Al guardar, las variantes activas que superen el l\xedmite de tu plan actual ser\xe1n descartadas. Record\xe1 que el c\xf3digo SKU principal tambi\xe9n se considera dentro de este l\xedmite.",bulkImportLimitWarning:"Todos los productos o servicios activos que superen la limitaci\xf3n ser\xe1n descartados al momento de guardar.",limitations:{skusMaxUsage:"Has superado el m\xe1ximo de productos disponibles en tu plan."},draft:"Borrador",phone:"Tel\xe9fono",invoice:{invoiceMade:"Facturas realizadas",invoiceNew:"Nuevo comprobante",genericError:"Lo sentimos, ha ocurrido un error. Por favor intenta de nuevo m\xe1s tarde.",createNc:"Crear NC",seeInvoice:"Ver factura",modalInvoiceTitle:"\xbfEst\xe1 seguro que desea eliminar el comprobante realizado a ",mode:"Modo",cell:"Tel:",sum:"Importe",totalInvoice:"Total fact.",no:"Nro",client:"Cliente",legendInvoiceA1:"El credito fiscal discriminado en el presente comprobante solo podra ser computado a efectos del Procedimiento permanente de transicion al Regimen General.",legendInvoiceA2:"Detectamos que ten\xe9s pendiente de presentaci\xf3n el formulario de habilitaci\xf3n de comprobantes o su fecha de presentaci\xf3n es anterior a tu alta en IVA. Ten\xe9s que proceder a anular la operaci\xf3n clase 'A' o 'M' emitida, mediante una Nota de Cr\xe9dito.",downloadInvoice:"Descargar factura",invoiceCancelled:"Comprobante anulado",createNcModal:"Crear nota de cr\xe9dito para el comprobante ",invoiceType:"Tipo de comprobante",pointSale:"Punto de Venta",nc:"Nota cr\xe9dito",saveDraft:"Guardar Borrador",editNc:"Editar nota de cr\xe9dito",emitNc:"Emitir nota de cr\xe9dito electr\xf3nica",appliedIn:"Aplicado en",balance:"Saldo",type:"Tipo",selectInvoiceType:"Seleccione el tipo",selectSalePoint:"Seleccione un punto de venta",salePoint:"Punto de venta",selectInvoiceMode:"Seleccione el modo",supplier:"Proveedor",selectSupplier:"Seleccione un Proveedor",selectClient:"Seleccione un cliente",associatedCollection:"y su cobranza asociada",cause:"Motivo",seeEntry:"Ver asiento",processEntry:"Reprocesar asiento",name:"Nombre",debit:"Debe",credit:"Haber",numberClient:"N\xfamero/Tipo de Factura/Cliente",ncOk:"La nota de cr\xe9dito fue creada correctamente.",counterSale:"Venta de mostrador",massBilling:"Facturaci\xf3n masiva de pendientes",currentSubscriptions:"Ver abonos actuales",createPayment:"Crear abono",billingCredits:"Facturar abonos",massPrinting:"Impresi\xf3n masiva",otherOptions:"... M\xe1s",processEntryResponse:"Se ha procesado con \xe9xito 1 de un total de 1",errorEntry:"Error al procesar los asientos",errorEntry2:"Ocurri\xf3 un error al intentar cargar los datos del asiento contable. Por favor, int\xe9ntelo de nuevo m\xe1s tarde.",errorAlert:"Lo sentimos!",okAlert:"Bien hecho!",pointsSale:"Puntos de venta",pag:"Hojas",format:"Formato",generate:"Generar",massPrintingInvoice:"Impresi\xf3n masiva de comprobantes",textPointsSale:"Ej: 1,2. Si no ingresa ninguno, se imprimir\xe1n todos.",errorTextModal:"Debe completar todos los campos",tooltipDate:"El rango de fechas no puede ser mayor a 6 meses",invoice:"Facturaci\xf3n",generalInformation:"Ac\xe1 van los datos m\xe1s generales de la factura.",issueInvoice:"Emitir factura electr\xf3nica",periodImputed:"Per\xedodo a imputar",periodImputedText:"Ingrese la fecha de emisi\xf3n de la factura y la fecha de Vencimiento del cobro de la factura.",currencyText:"Ingrese la moneda de la compra y el tipo de cambio.",invoiceItems:"Items a facturar",invoiceItemsText:"Ingrese a continuaci\xf3n los productos o servicios que va a incluir en la factura.",enterSalesOrderNumber:"Ingrese el nro de orden",costCenter:"Centro de costo",costCenterPlaceholder:"Seleccione un centro de costo",account:"Cuenta",emitAutoReceipt:"Emite recibo autom\xe1tico",totalDefault:"TOTAL EN MONEDA SECUNDARIA"},emailWrong:"Una de las direcciones ingresadas es inv\xe1lida.",emailsMaxLimit:"Has alcanzado el m\xe1ximo de 100 direcciones de email.",maxLimitItems:"El archivo seleccionado supera el l\xedmite de {{limit}} \xedtems. Por favor, seleccion\xe1 otro archivo para continuar.",providerCode:"C\xf3digo de proveedor",create:"Crear",clientModal:{taxData:"Datos fiscales",otherData:"Otros datos",newClient:"Nuevo cliente",docType:"Tipo de documento",organism:"ARCA",socialReasonOrName:"Raz\xf3n Social/Nombre",taxCategory:"Categor\xeda Impositiva",legalIdentity:"Personer\xeda",fantasyName:"Nombre Fantas\xeda",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Provincia",selectProvince:"Seleccione una provincia...",city:"Ciudad/Localidad",selectCity:"Seleccione una ciudad...",floor:"Piso/Depto",postalCode:"C\xf3digo Postal",errors:{userRutAlreadyExists:"Lo sentimos! El RUT ingresado ya se encuentra registrado.",userRucAlreadyExists:"Lo sentimos! El RUC ingresado ya se encuentra registrado.",userCiAlreadyExists:"Lo sentimos! La CI ingresada ya se encuentra registrado.",userCuitAlreadyExists:"Lo sentimos! El CUIT ingresado ya se encuentra registrado.",userDniAlreadyExists:"Lo sentimos! El DNI ingresado ya se encuentra registrado."}},newClientModal:{newClient:"Nuevo cliente",taxDataTitle:"Datos fiscales",otherData:"Otros datos",docType:"Tipo de documento",organism:"ARCA",socialReasonOrName:"Raz\xf3n s
1ocial/nombre",taxCategory:"Categor\xeda impositiva",legalIdentity:"Personer\xeda",turn:"Giro",fantasyName:"Nombre fantas\xeda",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Provincia",selectProvince:"Seleccione una provincia...",city:"Ciudad/localidad",selectCity:"Seleccione una ciudad...",floor:"Piso/depto",postalCode:"C\xf3digo postal"},ivaRateTooltip:"",budgetItemError:"Lo sentimos! Debe guardar el producto o servicio para continuar.",budgetTotalNegativeError:"Lo sentimos! El total del presupuesto debe ser mayor a 0.",totalBudget:"Total Presup.",sendEmailBudget:"Enviar presupuesto por email",login:{useEmail:"Us\xe1 tu mail para ingresar",useEmail2:" O complet\xe1 los siguientes datos",account:"\xbfNo ten\xe9s cuenta?",accountNow:"\xbfYa ten\xe9s cuenta?",useEmailChUy:"Usa tu mail para ingresar",accountChUy:"\xbfNo tienes cuenta?",register:"Registrate",emaiCh:"Ingresa un email v\xe1lido",errPass:"Usuario y/o contrase\xf1a incorrecta",blockedUser:"Has superado el n\xfamero m\xe1ximo de intentos posibles. Por su seguridad, su cuenta ha sido bloqueada. Haga click en olvid\xe9 mi contrase\xf1a para poder recuperarla. ",remember:"Recordarme",forgot:"Olvid\xe9 mi contrase\xf1a",into:"Ingresar",recoverText:"Ingres\xe1 el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverTextChUy:"Ingresa el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverPass:"Recuperar contrase\xf1a",errorMessage:"Por favor, ingrese una direcci\xf3n de correo v\xe1lida",continue:"Continuar",goBack:"Volver al login",recoverTextMail:"Ingres\xe1 al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verific\xe1 la casilla de correo no deseado.",recoverTextMailChUy:"Ingresa al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verifica la casilla de correo no deseado.",sendMailRecover:"Se envi\xf3 un correo a la direcci\xf3n ingresada.",newChancePass:"Crear nueva contrase\xf1a",createNewPass:"Escribe una contrase\xf1a \xfanica y segura que sea f\xe1cil ",createNewPass2:"de recordar para que no la olvides la pr\xf3xima vez.",newPass:"Contrase\xf1a nueva *",characters:"Min. 8 caracteres",oneCapital:"1 letra may\xfascula",oneletter:"1 letra min\xfascula",numberCh:"Min. 1 caracter num\xe9rico",plusCh:"No est\xe1 permitido inclu\xedr el caracter \u201c+\u201d",confirmPass:"Confirma la nueva contrase\xf1a *",matchPass:"Las contrase\xf1as no coinciden",reqField:"Campo obligatorio",chancePass:"Cambiar contrase\xf1a",btnErr:"La contrase\xf1a ha sido utilizada previamente",err:"Mensaje de error",goBackLogin1:"Ya puedes volver al login e ingresar con tu correo electr\xf3nico y tu nueva contrase\xf1a.",goBackLogin2:"Se ha completado el cambio de contrase\xf1a con \xe9xito.",subEmailVerification:"Hemos enviado un c\xf3digo de verificaci\xf3n a la cuenta ",subEmailVerification2:"el cual te solicitamos a continuaci\xf3n",registerG1:"Registro con Google",registerG2:"\xa1Te damos la bienvenida,",registerG3:"Se crear\xe1 una nueva cuenta de Contabilium",registerG4:"para la direcci\xf3n de correo electr\xf3nico",emailVerification:"Verificaci\xf3n de email",loginMfaVerification:"Verific\xe1 tu identidad",loginMfaSubVerification:"Enviamos un c\xf3digo a",loginMfaSubVerification2:". Ingresalo para continuar.",loginMfaSuccessAuth:"Autenticaci\xf3n de doble factor completada con \xe9xito.",loginMfaSendCodeError:"No pudimos enviar el c\xf3digo. Intent\xe1 nuevamente en unos segundos.",loginMfaSendCodeErrorUnavailable:"No pudimos enviar el c\xf3digo, intentalo m\xe1s tarde.",loginMfaEmailVerifiedError:"No se pudo enviar el c\xf3digo de verificaci\xf3n. Contact\xe1 a soporte para habilitar la autenticaci\xf3n de doble factor.",loginMfaInvalidCode:"El c\xf3digo no es v\xe1lido. Revis\xe1 tu email e intent\xe1 de nuevo.",loginMfaInvalidCodeLastAttempt:"El c\xf3digo no es v\xe1lido. Te queda 1 intento.",loginMfaSoftLockBlocked:"Por seguridad, el acceso est\xe1 bloqueado temporalmente. Intent\xe1 de nuevo en {{countdown}}.",loginMfaResendCode:"Reenviar c\xf3digo",loginMfaResendCodeWithTimer:"Reenviar c\xf3digo ({{seconds}}s)",loginMfaResendCodeWithTimerMmSs:"Reenviar c\xf3digo ({{countdown}})",loginMfaResendCodeSuccess:"Te enviamos un nuevo c\xf3digo.",loginMfaResendRateLimitSupport:"Si segu\xeds sin recibir el c\xf3digo, contact\xe1 a Soporte.",codeLabel:"\xbfNo recibiste el c\xf3digo?",enterLater:"Lo ingresar\xe9 m\xe1s tarde, d\xe9jame continuar",notReceive:"\xbfNo recibiste el email? Revis\xe1 tu carpeta de spam o ",enterNewEmail:"ingres\xe1 un nuevo email",openGmail:"Abrir Gmail",openOutlook:"Abrir Outlook",notReceive2:" y prob\xe1 nuevamente",wait:"Esper\xe1",confirm:"Confirmar",seconds:"segundos",successAuth:"Se ha verificado tu email con \xe9xito.",enterCbl:"En unos segundos ingresar\xe1s a Contabilium autom\xe1ticamente.",confirmMail:"Cambio de email",enterNewEmailLabel:"Ingres\xe1 un nuevo correo electr\xf3nico para tu cuenta, donde recibir\xe1s el c\xf3digo de verificaci\xf3n.",goBackMail:"
1Volver a verificaci\xf3n de email",resendNow:"Reenviar ahora",errCodeApi:"El c\xf3digo que ingresaste es incorrecto o inv\xe1lido",expiredText:"El link ya no es v\xe1lido, por favor volv\xe9 a recuperar tu contrase\xf1a.",expiredText2:"Record\xe1 que el link tiene validez por 24 horas.",disableAccount:"Tu cuenta se ha deshabilitado temporalmente porque aun no has ingresado el c\xf3digo de verificaci\xf3n que enviamos a",pleaseEnterCode:"Por favor ingresa el c\xf3digo para volver a habilitar tu cuenta"},dashboard:{accounts:"Cuentas a pagar",sales:"Ventas - Comparativo",incomeExpenses:"Ventas vs Compras",dashboard:"Dashboard",seeInvoice:"Ver factura",pay:"Pagar",seeAll:"Ver todas",noBills:"A\xfan no ten\xe9s cuentas a pagar",noBillsChUy:"A\xfan no tienes cuentas a pagar",noSales:"A\xfan no has emitido comprobantes",lastUpdate:"\xdaltima actualizaci\xf3n: 23:30 hs.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",dashboardData:"Los datos que se muestran en esta pantalla se sincronizan cada 5 minutos",noPending:" A\xfan no hay datos para mostrar",noPendingChUy:" A\xfan no hay datos para mostrar",remainingBalance:"Total anual de ventas sin IVA dentro del a\xf1o calendario.",tooltipPendingPay:"Total de saldo pendiente de cobro con IVA incluido.",tooltipBoxes:"Saldo acumulado hist\xf3rico de la caja visualizada.",salesPastMonth:"Ventas mes anterior",salesThisMonth:"Ventas este mes",lastSixMonths:"\xdaltimos 6 meses",noPermits:"No ten\xe9s permisos para visualizar este gr\xe1fico",error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",lockAnualBilling:"No ten\xe9s permisos para visualizar este dato",lockAnualBillingCh:"No tienes permisos para visualizar este dato",errorAnualBilling:"Intent\xe1 nuevamente m\xe1s tarde.",errorAnualBillingCh:"Intenta nuevamente m\xe1s tarde.",payNow:"Pagar ahora",payLater:"Pagar\xe9 m\xe1s tarde",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",rut:"RUT",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",expiredPlanCh:"El plazo para pagar tu plan se encuentra vencido. Ponte al d\xeda haciendo",click:"click aqu\xed.",popupText1:"Tu plan se encuentra impago",popupText2:"Actualmente est\xe1s en el per\xedodo de gracia ya que",popupText3:"tu plan se encuentra vencido hace ",popupText4:"d\xedas.",popupText5:"Te sugerimos realizar el pago lo antes posible",popupText6:"para que puedas seguir utilizando la plataforma.",anualBilling:"Facturado anual",buttonAnualBillingND:"+ Nueva factura",boxes:"Cajas",buttonBoxesND:"+ Nueva Caja",pendingPayment:"Pendiente de cobro",pendingPaymentBtn:"Ver detalle",errorText:"Se produjo un error.",tooltipUnitsSold:"Refleja la cantidad de unidades vendidas durante el mes actual, el mes anterior y el mismo mes del a\xf1o pasado. Solo se incluyen \xedtems con SKU; los combos se contabilizan como una sola unidad.",tooltipGetSales:"Muestra el total de ventas netas (sin IVA) correspondientes al mes en curso, mes anterior y a\xf1o calendario.",tooltipPendingBills:"Muestra el total de saldos pendientes de cobro con IVA incluido y su desglose en vencidas, por vencer y saldos a favor de tus clientes.",tooltipPendingBillsRegion:"Indica el total de saldos pendientes de cobro con IVA incluido, calculados al d\xeda cerrado.",tooltipVatPosition:"Este valor muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un dato estimativo, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes.",tooltipVatPositionCurrent:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipVatPositionPrevious:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes anterior. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipValueStock:"Este valor representa el total del stock disponible, valorizado al precio de venta actual.",salesVariationTooltip:"Variaci\xf3n respecto al mes anterior",unitsVariationTooltip:"Variaci\xf3n respecto al mismo mes a\xf1o anterior",thisYear:"Este a\xf1o",lastMonth:"Mes anterior",getSalesTitle:"Ventas del mes sin iva",viewDetail:"Ver detalle",valuedStockLegend:"Valor total al precio de venta",dateDashboard:"Datos actualizados al cierre del d\xeda",currentMonth:"Mes actual",previousMonth:"Mes anterior",vatSales:"IVA ventas",vatPay:"IVA a pagar",vatBuys:"IVA compras",pen
1dingBillsLegend:"Saldo con IVA incluido",minimumStockTitle:"Stock m\xednimo",minimumStockLegend:"Alcanzaron el stock m\xednimo",minimumStockTooltip:"Productos y combos cuyo stock actual est\xe1 por debajo del m\xednimo definido.",minimumStockProducts:"productos",minimumStockCombos:"combos",salesByChannelTitle:"Ventas por canal",salesByChannelTooltip:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",salesByChannelFilter:"Filtrar",salesByChannelViewReport:"Ver ventas por integraci\xf3n",salesByChannelSelectChannels:"Seleccionar canales",salesByChannelMaxSelection:"M\xe1ximo 5 canales",salesByChannelApply:"Aplicar",salesByChannelOthers:"Otros",salesByChannelTotalSales:"Total ventas:",salesByChannelViewDetail:"Ver detalle",noPermissionText:"No ten\xe9s permisos para ver esta informaci\xf3n. Por favor, contact\xe1 a tu administrador.",noPermissionToViewData:"Tu perfil no tiene acceso a esta informaci\xf3n.",contactAdminForAccess:"Contact\xe1 a tu administrador para solicitarlo.",customizeDashboardEmptyState:"Personaliz\xe1 tu dashboard para visualizar tu informaci\xf3n.",filtersLimitationText:"la personalizaci\xf3n del dashboard",getSalesLimitationText:"el reporte de cuentas a pagar",boxesLimitationText:"tesorer\xeda",pendingBillsLimitationtext:"el reporte de pendiente de cobro",popUpText:"No pudimos procesar el cobro autom\xe1tico de tu plan",popUpText1:"Actualmente te encontr\xe1s en el",popUpText2:"per\xedodo de gracia",popUpText3:"ya que",popUpText4:"tu plan est\xe1 vencido.",popUpText5:"Intentaremos realizar el cobro autom\xe1ticamente en los pr\xf3ximos d\xedas, pero es importante que regularices tu situaci\xf3n para evitar la interrupci\xf3n del servicio. En tu resumen bancario ver\xe1s el cargo como:",popUpText6:"\xbfNecesit\xe1s ayuda?",popUpText7:"Contactar al soporte",overdueWhyTitle:"\xbfPor qu\xe9 pudo fallar el pago?",overdueWhy:{reason1:"No hay fondos suficientes en la tarjeta.",reason2:"Tu banco requiere autorizaci\xf3n previa para este tipo de d\xe9bitos.",reason3:"La tarjeta venci\xf3 o fue reemplazada."},completeConfiguration:"Complet\xe1 la configuraci\xf3n inicial",tooltipCustomerRanking:"Presenta los 5 clientes con mayor volumen de compras en el periodo filtrado.",tootilPendingPayments:"Los comprobantes se ordenan autom\xe1ticamente por fecha de vencimiento, del m\xe1s pr\xf3ximo al m\xe1s lejano.",noData:"A\xfan no hay datos para mostrar",newBuy:"Nueva compra",emitReceipt:"Emitir comprobante",createReceipt:"Crea tu primer comprobante",products:"productos",product:"producto",closedWeek:"Rango de fechas",hide:"Ocultar",show:"Mostrar",sameMonth:"Mismo mes a\xf1o ant.",noDataFor:"A\xfan no hay datos para",loadFailed:"Error al cargar",loadBoxes:"Error al cargar cajas",loadSales:"Error al cargar ventas",loadReceivables:"Error al cargar pendiente de cobro",loadSalesVsBuys:"Error al cargar Ventas vs Compras",loadCustomerRanking:"Error al cargar ranking de clientes",loadPayables:"Error al cargar cuentas a pagar",loadUnitsSold:"Error al cargar unidades vendidas",loadVatPosition:"Error al cargar posici\xf3n de IVA",noPermissionMessage:"Este reporte est\xe1 disponible solo para usuarios con planes superiores.",upgradePlan:"Actualizar plan",prev:"Anterior",payLaterOverdue:"Pagar\xe9 m\xe1s tarde",balance:"Saldo",overdue:"Vencidas",dueSoon:"Por vencer",favorableBalance:"Saldo a favor",customize:"Personalizar",all:"Todas",purchases:"Compras",inventories:"Inventarios",reports:"Reportes",availableWidgets:"Indicadores disponibles",noWidgetsAvailable:"No hay ning\xfan indicador disponible",reset:"Restablecer",close:"cerrar",monthlySales:"Ventas del mes",widgetDescription:"Informaci\xf3n relevante del widget.",widgetDescriptionGetSales:"Ventas del mes actual y su comparaci\xf3n con el mes anterior y el a\xf1o.",widgetDescriptionPendingBills:"Total pendiente, dividido entre vencido y por vencer.",widgetDescriptionUnitsSold:"Unidades vendidas del mes y variaci\xf3n con per\xedodos anteriores.",widgetDescriptionSalesVsBuys:"Comparaci\xf3n de ventas y compras en el per\xedodo seleccionado.",widgetDescriptionCustomerRanking:"Top 5 de clientes con mayores compras.",widgetDescriptionPendingPayments:"Obligaciones pendientes ordenadas por vencimiento.",widgetDescriptionVatPosition:"Diferencia entre IVA Ventas e IVA Compras, filtrable por mes actual o anterior.",widgetDescriptionMinimumStock:"Productos/Combos por debajo del stock m\xednimo definido.",widgetDescriptionSalesByChannel:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",exclusivePlan:"Exclusivo plan Full/Enterprise",added:"A\xf1adido",add:"A\xf1adir",salesCard:"Ventas",quickAccess:{title:"Accesos r\xe1pidos",tooltip:"Accesos directos a tus secciones m\xe1s utilizadas.",newSale:"Nva. venta",newPurchase:"Nva. compra",clients:"Clientes",suppliers:"Proveedores",currentAccount:"Cta. corriente",integrations:"Integraciones",newBudget:"Nvo. presupuesto",cashRegisters:"Cajas",products:"Productos",newSaleSubtitle:"Crear comprobante",newPurchaseSubt
1itle:"Crear compra",newBudgetSubtitle:"Crear presupuesto",cashRegistersSubtitle:"Ver cajas",productsSubtitle:"Ver productos y servicios",integrationsSubtitle:"Ver integraciones"},initialSetupHelp:"\xbfNecesit\xe1s ayuda con la configuraci\xf3n inicial?",visitHelpCenter:"Visita nuestro centro de ayuda",tooltipCustomize:"Personaliz\xe1 tu dashboard.",tooltipCustomizeEditMode:"Est\xe1s en modo edici\xf3n.",tooltipReset:"Restaur\xe1 la vista predeterminada del dashboard, incluyendo indicadores y filtros aplicados.",tooltipAddToDashboard:"Agregar al dashboard",tooltipRemoveWidget:"Quit\xe1 este indicador del dashboard. Pod\xe9s volver a agregarlo cuando quieras.",planUpgradeTitle:"Tu plan es Standard y guarda la configuraci\xf3n de forma temporal. Personaliz\xe1 tu dashboard a partir del plan Pro.",planUpgradeSubtitle:"Tu plan guarda la configuraci\xf3n de forma temporal.",updatePlan:"Actualizar plan"},descriptiveFieldsSelectPlaceholder:"Seleccion\xe1 un valor",descriptiveFieldsInactiveValue:"(inactivo)",descriptiveFieldsLoading:"Cargando campos descriptivos...",descriptiveFieldsErrorNotAvailable:"Uno de los campos descriptivos ya no est\xe1 disponible. Actualiz\xe1 la p\xe1gina y volv\xe9 a guardar.",descriptiveFieldsErrorValueInactive:"Uno de los valores elegidos fue inactivado. Actualiz\xe1 la p\xe1gina y eleg\xed otro.",descriptiveFieldsErrorValueInvalid:"Uno de los valores elegidos no es v\xe1lido para ese campo.",descriptiveFieldsErrorDuplicated:"Un campo descriptivo solo puede tener un valor.",account:{accountTitle:"Mi cuenta",company:"Empresa",companyConfig:"Configur\xe1 la informaci\xf3n de tu empresa.",generalData:"Datos generales",users:"Usuarios",costCenter:"Centros de costos",billingAndReceipts:"Facturaci\xf3n y comprobantes",billData:"Configur\xe1 los datos que van en tu factura.",salesCondition:"Condici\xf3n de venta",salesPoints:"Puntos de venta ARCA",vouchersTypes:"Tipos de comprobantes",billFormat:"Formato de factura",taxSettings:"Configuraci\xf3n impositiva",taxSettingsConfig:"Configur\xe1 impuestos y retenciones",economicActivities:"Actividades econ\xf3micas",vatSimple:"IVA Simple",advancedParametersConfig:"Configur\xe1 par\xe1metros avanzados.",perceptionAgent:"Agente de percepci\xf3n",retentionAgent:"Agente de retenci\xf3n",iibb:"IIBB",closeDates:"Fechas de cierre",preferences:"Preferencias",generals:"Generales",defaultObservations:"Observaciones predeterminadas",parameters:"Par\xe1metros",PDV:"Punto de venta (PDV)",customerAccess:"Acceso clientes",noticesAndAlerts:"Avisos y alertas",messagesAndNotificationsConfig:"Configur\xe1 mensajes y notificaciones.",sendingVouchers:"Env\xedo de comprobantes",expirationNotices:"Avisos de vencimientos",alerts:"Alertas",ahaMoments:"Aha moments",notifications:"Notificaciones",additionalCompanies:"Empresas adicionales",additionalCompaniesConfig:"Configur\xe1 tus empresas adicionales.",companiesAdministration:"Administrar empresas",API:"API",APICredentials:"Acced\xe9 a las credenciales de API.",credentials:"Credenciales",configuration:"Configuraci\xf3n",backToPrincipalPanel:"Volver al panel principal",continue:"Continuar",currencyAvailable:"Disponible s\xf3lo para planes Pro, Full y Enterprise.",howDoesCurrencyWork:"\xbfC\xf3mo funciona la moneda secundaria?",infoCurrencyModalText:'Esta acci\xf3n puede demorar entre 24 y 48 horas. Te enviaremos un mail cuando la moneda "{{currencyName}}" est\xe9 activada.',contactSupport:"Contact\xe1 a soporte para inhabilitarla. Al hacerlo, se inactivar\xe1n los productos en USD y sus publicaciones vinculadas en integraciones.",defaultCurrency:"Moneda principal",secondaryCurrency:"Moneda secundaria",dollarCurrencyWithSymbol:"D\xf3lar (USD)",pesoCurrencyWithSymbol:"Pesos (ARS)",dollarCurrency:"D\xf3lar",pesoCurrency:"Pesos",activate:"Habilitar",active:"Habilitada",infoCurrencyConfirmationModalTitle:'\xbfEst\xe1s seguro/a de que deseas activar la moneda "{{currencyName}}"?',infoCurrencyConfirmationModalText:"Una vez activada, no ser\xe1 posible desactivarla. Esta restricci\xf3n se aplica para mantener la consistencia de la informaci\xf3n.",pendingActivation:"Activaci\xf3n pendiente",infoCurrencyModalTitle:"\xa1Activaci\xf3n iniciada con exito!",currencyErrorModalTitle:"Ha ocurrido un error en la activaci\xf3n de la moneda",currencyErrorModalText:"Lo sentimos, ha ocurrido un error en la activaci\xf3n de la moneda. Por favor intenta de nuevo m\xe1s tarde.",newCompany:"Nueva empresa",actualCompany:"Empresa actual",otherCompanies:"Tus otras empresas",logo:"LOGO",default:"Predeterminada",createdAt:"Creada el ",useThisCompany:"Usar esta empresa",deleteCompany:"Eliminar empresa",additionalCompany:{deleteCompanyDescription:"Antes de dar de baja la cuenta, sugerimos hacer un backup de la informaci\xf3n.",deleteReasonTitle:"Por favor, seleccion\xe1 el motivo de la baja.",deleteReasons:{priceReasonCode:"PRECIO",priceReason:"Baja por precio del producto",integrationReasonCode:"INTEGRACIONES",integrationReason:"Problemas con integraciones o API",closeReasonCode:"CIERRE DE NEGOCIO",closeReason:"Estoy cerrando o cambiando la actividad comercial de la cuenta.",pauseReasonCode:"PAUSA TE
1MPORAL",pauseReason:"Voy a pausar el uso de la cuenta por un tiempo.",badFunctionalityReasonCode:"MAL FUNCIONAMIENTO",badFunctionalityReason:"Reclamo por mal funcionamiento del sistema.",functionalitiesReasonCode:"FUNCIONALIDADES",functionalitiesReason:"No disponen de las funcionalidades que necesito.",paymentMethodsReasonCode:"MEDIOS DE PAGO",paymentMethodsReason:"No tengo los medios de pagos disponibles para el contrato del servicio",otherReasonCode:"OTROS",otherReason:"Otro motivo.",otherReasonPlaceholder:"Ingres\xe1 tu motivo...",minLengthError:"El motivo debe tener al menos 10 caracteres."},successMessage:"La empresa se ha desactivado con exito",errors:{userIdNotExist:"La empresa no existe",userChildUserAndParentUserEqual:"La empresa y el usuario padre son iguales",userChildUserNotExist:"La empresa no existe",userChildUserDesactivateExist:"La empresa ya fue desactivada previamente",userParentDistinct:"La empresa padre es distinta a la empresa a inactivar"},additionalCompanyEmptyState:"No se han encontrado empresas adicionales.",additionalCompanyEmptyStateText:"Intenta ajustar los filtros para obtener m\xe1s resultados."},cuitCuil:"CUIT/CUIL",socialReason:"Raz\xf3n social",searchARCA:"Buscar en ARCA",taxData:"Datos impositivos",fiscalAddress:"Domicilio fiscal",password:"Contrase\xf1a",passwordTooltipText:"Debe contener al menos 8 caracteres, incluyendo un nu\u0301mero, una letra mayu\u0301scula, una letra minu\u0301scula, y un s\xedmbolo",invalidMail:"Formato de correo inv\xe1lido",invalidPassword:"Formato de contrase\xf1a inv\xe1lido",invalidCUIT:"CUIT/CUIL inv\xe1lido",isRequired:"Campo obligatorio",additionalAccountCreated:"La cuenta se ha creado correctamente.",additionalAccountCreationError:"Ha ocurrido un error al crear la cuenta.",emailAlreadyExists:"El E-mail ingresado ya se encuentra registrado.",cuitAlreadyExists:"El CUIT/CUIL ingresado ya se encuentra registrado.",arcaDataError:"No se han encontrado los datos de ARCA.",arcaEmptyDataError:"Debe ingresar un CUIT para poder solicitar datos a ARCA.",additionalAccountLimitationError:"Has alcanzado el m\xe1ximo de empresas adicionales disponibles en tu plan.",createCompany:"Crear empresa",mySuscription:"Mi suscripci\xf3n",changePassword:"Cambiar contrase\xf1a",priceAndFunctionalities:"Precio y Funcionalidades",logout:"Cerrar sesi\xf3n",manageCAEs:"Administrar CAEs",digitalCertificate:"Certificado digital",manageFolios:"Administrar folios",passwordError:"Contrase\xf1a incorrecta. Vuelve a ingresarla para continuar con la baja",physical:"F\xedsica",passwordWithLeyend:"Contrase\xf1a. Por favor, ingresa la contrase\xf1a con la que inici\xe1s sesi\xf3n.",reportsSending:"Env\xedo de reportes",saveChanges:"Guardar cambios",notificationsInfoText:"Te enviaremos un reporte semanal con informaci\xf3n relevante para tu negocio. Lo recibir\xe1s los lunes.",reportTypeTitle:"Marc\xe1 qu\xe9 tipo de informaci\xf3n quer\xe9s recibir seg\xfan tu actividad:",products:"Productos",productsLegend:"*Marc\xe1 esta opci\xf3n si vend\xe9s productos f\xedsicos. Vas a recibir informaci\xf3n sobre ventas, unidades, evoluci\xf3n, etc.",services:"Servicios (Pr\xf3ximamente)",servicesLegend:"*Marc\xe1 esta opci\xf3n si prest\xe1s servicios. Vas a recibir datos sobre ventas, comprobantes emitidos, evoluci\xf3n, etc.",dataSuccessfullyUpdated:"Bien hecho! Los datos se han actualizado correctamente.",chooseOneReport:"Lo sentimos! Ten\xe9s que elegir al menos una opci\xf3n de reporte.",errorSavingChanges:"Lo sentimos! Ocurri\xf3 un error al guardar los cambios. Intent\xe1 nuevamente.",automaticBilling:{title:"Facturador autom\xe1tico",noIntegrationsFound:"No se han encontrado integraciones",noIntegrationsFoundDescription:"Para configurar el facturador autom\xe1tico, primero debes conectar una integraci\xf3n.",connectIntegration:"Conectar integraci\xf3n",state:"Estado",startDate:"Fecha desde (hasta 60 d\xedas atr\xe1s)",toDate:"Fecha hasta",startDateTooltip:"Seleccion\xe1 la fecha de inicio para la facturaci\xf3n autom\xe1tica.",toDateTooltip:"Seleccion\xe1 la cantidad de d\xedas que se tomar\xe1n para la facturaci\xf3n autom\xe1tica.",integrations:"Seleccion\xe1 integraciones (m\xednimo 1)",toDateCheckbox:"Facturar ordenes creadas hace al menos 30 minutos",toDateDescription:"Solo se van a facturar \xf3rdenes que tengan al menos este tiempo de antig\xfcedad.",toDateRequired:"Debe seleccionar una opci\xf3n.",toDateRequiredDescription:"Debe seleccionar una opci\xf3n o activar la facturaci\xf3n hasta los \xfaltimos 30 minutos",integrationsRequired:"Debe seleccionar al menos una integraci\xf3n",startDateRequired:"Debe seleccionar una fecha de inicio",startDateRequiredDescription:"Debe seleccionar una fecha de inicio",stateRequired:"Debe seleccionar un estado",stateRequiredDescription:"Debe seleccionar un estado",validationError:"Por favor, complete todos los campos requeridos",
1saveError:"Error al guardar la configuraci\xf3n, intente nuevamente.",toDateTitle:"\xbfDesde qu\xe9 antig\xfcedad quer\xe9s facturar tus \xf3rdenes autom\xe1ticamente?",confirmModalTitle:"\xbfEst\xe1s seguro de que quieres activar el facturador autom\xe1tico?",confirmModalDescription:"Se facturar\xe1n todas las \xf3rdenes de ventas de las integraciones seleccionadas.",confirmModalDescription2:"A partir de esta fecha: {{fecha}}",confirmModalDescription3:"Modalidad: {{modalidad}}",confirmModalDescription4:"Integraciones: {{integraciones}}",confirmModalCheckbox:"Confirmo que deseo activar el facturador autom\xe1tico",modalityTitle:"\xd3rdenes de venta con al menos",fromDateTitle:"\xd3rdenes de venta creadas desde",days:"d\xedas",integrationsTitle:"Integraciones",stateDescription:"\xdaltima fecha de ejecuci\xf3n: {{fecha}}",modalityText:"Modalidad",dateOutOfRange:"La fecha no puede ser anterior a 60 d\xedas",dateRangeLegend:"Filtra las \xf3rdenes seg\xfan la fecha de creaci\xf3n del comprobante en la tienda.",fromDateFieldTitle:"\xbfDesde qu\xe9 fecha quer\xe9s que revisemos tus \xf3rdenes de venta?",fromDateFieldDescription:"Vamos a buscar \xf3rdenes pendientes de facturar desde esta fecha hacia adelante.",startDateExceedsFADiasHastaOV:"La antig\xfcedad ({{fechaAntiguedad}}) no puede ser mayor que la fecha desde seleccionada. Ajust\xe1 la fecha desde o la antig\xfcedad."},productFields:{title:"Campos de productos",description:"Configur\xe1 los valores de los campos descriptivos que aplican a todo tu cat\xe1logo. Solo se mostrar\xe1n al crear o editar productos los campos que est\xe9n activos y tengan al menos un valor activo.",fieldNames:{marca:"Marca",linea:"L\xednea",material:"Material",origen:"Origen",temporada:"Temporada",calidad:"Calidad"},valuesCount:"{{count}} de {{limit}} valores",manageValues:"Administrar valores",statusInactive:"Inactivo",activateBlocked:"Para activar este campo, agreg\xe1 al menos un valor activo.",deactivateTitle:"\xbfEst\xe1s seguro/a que quer\xe9s desactivar este campo?",deactivateText:"El campo dejar\xe1 de mostrarse al crear o editar productos. Los valores configurados y la informaci\xf3n ya registrada no se eliminar\xe1n.",deactivate:"Desactivar",valuesDescription:"Administr\xe1 los valores disponibles para este campo.",backToFields:"Volver a Campos de productos",emptyTitle:"Este campo no tiene valores configurados.",emptyText:"Agreg\xe1 los valores que podr\xe1n seleccionarse en los productos.",searchPlaceholder:"Busc\xe1 un valor",noSearchResults:"No encontramos valores que coincidan con tu b\xfasqueda.",emptyFieldsT
1itle:"Todav\xeda no hay campos disponibles.",emptyFieldsText:"Los campos descriptivos todav\xeda no est\xe1n habilitados. Si el problema persiste, comunicate con soporte.",newValuePlaceholder:"Ingres\xe1 un nombre de {{field}}",newValuePlaceholderFallback:"Ingres\xe1 un nombre",limitReached:"Alcanzaste el m\xe1ximo de {{limit}} valores para este campo. Elimin\xe1 uno que no est\xe9 en uso para agregar otro.",nameRequired:"Ingres\xe1 un nombre para el valor.",nameTooLong:"El nombre no puede superar los {{max}} caracteres.",nameDuplicated:"Ya existe un valor con ese nombre en este campo.",renameTitle:"Editar valor",renameLabel:"Nombre del valor",deleteTitle:"\xbfQuer\xe9s eliminar el valor {{name}}?",deleteText:"Esta acci\xf3n no se puede deshacer.",deleteBlockedReason:"No se puede eliminar porque est\xe1 asignado a productos. Pod\xe9s inactivarlo para que no se use en productos nuevos.",lastActiveTitle:"Este es el \xfaltimo valor activo del campo",lastActiveText:"Si continu\xe1s, el campo se va a desactivar y dejar\xe1 de mostrarse al crear o editar productos. Los valores y la informaci\xf3n ya registrada no se eliminar\xe1n.",retry:"Reintentar",errors:{fieldNotFound:"El campo no existe o no est\xe1 disponible.",valueNotFound:"El valor no existe o no pertenece a tu empresa.",noActiveValues:"Para activar el campo tiene que haber al menos un valor activo.",valueInUse:"El valor est\xe1 asignado a productos y no se puede eliminar. Pod\xe9s inactivarlo."}}},captchaVerificationButton:"Verificar",captchaVerificationSuccess:"Verificaci\xf3n completada",captchaVerificationFailed:"\xa1Verificaci\xf3n fallida! Por favor intente nuevamente.",actives:"Activas",inactive:"Inactivas",PDVAddinModalTitle:"\xa1Potenci\xe1 tu plan con el Punto de Venta (PDV)!",PDVAddinModalText1:"El Punto de Venta (PDV) es un complemento (addin) disponible para tu cuenta.",PDVAddinModalText2:"Si quer\xe9s contactarlo y aprovechar todas sus funciones, contact\xe1 a nuestro equipo escribiendo a ",supportEmail:"[email protected]",automaticBillingModalTitle:"Facturador autom\xe1tico no disponible",automaticBillingModalText1:"Para utilizar el Facturador autom\xe1tico, primero necesit\xe1s activar la facturaci\xf3n electr\xf3nica.",automaticBillingModalText2:"\ud83d\udc49 Contact\xe1 a soporte para habilitarla. \nLuego vas a poder activar y configurar el Facturador autom\xe1tico desde tu cuenta. \n\nContactar a: ",ruc:"RUC",errorGeneratingRemittance:"Error al generar remito",trainingEvents:{emptyStateTitle:"A\xfan no hay capacitaciones disponibles.",emptyStateDescription:"Cuando se publiquen nuevas capacitaciones, las vas a encontrar en esta secci\xf3n.",modalTitle:"Eventos de Capacitaci\xf3n",registerButton:"Registrarse",watchVideoButton:"Ver video"},referred:"Refer\xed",referredProgram:"Programa de referidos"}},cl:{translation:{error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",bulkImportVariantsRetry:"Reintentar",bulkImportVariantsStatsErrorTitle:"No pudimos obtener el resumen del archivo",bulkImportVariantsStatsErrorText:"Reintenta para conocer cu\xe1ntas filas se pueden importar y continuar.",bulkImportVariantsStatusComplete:"Completada",bulkImportVariantsStatusError:"Err\xf3nea",bulkImportVariantsStatusInProgress:"En progreso",bulkImportVariantsRunningStatusError:"No pudimos verificar si hay una importaci\xf3n en curso. Reintentaremos autom\xe1ticamente.",bulkImportVariantsSkuDuplicatedError:"El SKU ingresado ya pertenece a otro concepto.",bulkImportVariantsConceptNotParentError:"El SKU agrupador informado corresponde a un producto o servicio que no admite variantes.",bulkImportVariantsErrorDetailTitle:"Registro de productos err\xf3neos",bulkImportVariantsGrouperSkuColumn:"SKU Agrupador",bulkImportVariantsSkuColumn:"SKU",bulkImportVariantsFieldsColumn:"Campos",bulkImportVariantsErrorTypeColumn:"Tipo de error",bulkImportVariantsHeadingField:"Rubro",bulkImportVariantsSubheadingField:"Subrubro",bulkImportVariantsTypeField:"Tipo",bulkImportVariantsCurrencyField:"Moneda",bulkImportVariantsProviderField:"Proveedor",bulkImportVariantsLimitReachedField:"L\xedmite alcanzado",alertC2:"El plazo para pagar tu plan se encuentra vencido. Comunicate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",alertC2Ch:"El plazo para pagar tu plan se encuentra vencido. Comun\xedcate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",rut:"RUT",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",click:"click aqu\xed.",tools:"HERRAMIENTAS",attributes:"Atributos",accept:"Aceptar",cancel:"Cancelar",add:"Agregar",save:"Guardar",AddPh:"Adjuntar foto",titleAttributes:"Productos y servicios",titlePrincipalAttributes:"Datos principales",subTitlePrincipalAttributes:"Estos son los datos b\xe1sicos que el sistema necesita para poder facturar un producto.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",type:"Tipo",condSKU:"C\xf3digo (SKU)",condSKU2:"C\xf3digo SKU",barcode:"C\xf3digo de barras",SKU:"SKU",name:"Nombre",state:"Estado",category:"Rubro",subcategory:"Sub-rubro",amounts:"Importes",requiredFiles:"
1Complet\xe1 los campos obligatorios.",stockMin:"Stock m\xednimo",stockMinSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Configuraci\xf3n -> Alertas y avisos -> Alertas.",aditionalData:"Datos adicionales",aditionalDataSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Configuraci\xf3n -> Alertas y avisos -> Alertas.",entityName:"Entidades",generalData:"Datos generales",entityPrice:"Moneda y saldo",entityMoreOptions:"Mas opciones",entitylessOptions:"Menos opciones",entity:"Entidad",accountName:"Nombre de cuenta",currency:"Moneda",currencies:"Monedas",balance:"Saldo",address:"Direcci\xf3n",email:"Email",executive:"Ejecutivo",observations:"Observaciones",observationsPlace:"No es necesario agregar una observaci\xf3n pero te puede servir de utilidad",reqField:"Campo obligatorio",buttonNewEntity:"+ Nuevo",actualBalance:"Saldo actual",newProduct:"Nuevo producto o servicio",back:"Volver",process:"Procesando...",addNew:"A\xf1adir nuevo",createNproduct:"Crear un nuevo producto",createNService:"Crear un nuevo servicio",createNCombo:"Crear un combo de 2 o m\xe1s productos/servicios",product:"Producto",service:"Servicio",combo:"Combo",fieldsReq:"Los campos marcados con",required:"son requeridos.",requiredField:"Este campo es requerido",next:"Siguiente",comboItems:"Items del combo",addNewProduct:"A\xf1adir nuevo producto",addNewService:"A\xf1adir nuevo servicio",addNewCombo:"A\xf1adir nuevo combo",addProductName:"Ingresa el nombre del producto",addServiceName:"Ingresa el nombre del servicio",addComboName:"Ingresa el nombre del combo",typeProduct:"Tipo de producto",typeService:"Tipo de servicio",typeCombo:"Tipo de combo",amount:"C
1antidad",description:"Descripci\xf3n",item:"Item",internalCost:"Costo interno s/IVA",unitPrice:"Precio unitario s/IVA",unitPriceWithIVA:"Precio unitario c/IVA",priceDetail:"Detalle del precio",detail:"Detalle",addMinStock:"Ingrese el stock m\xednimo",alertMinStock:"Te enviaremos una alerta cuando el stock llegue al m\xednimo.",tooltipMinStock:"Para configurar el alerta de stock m\xednimo ingresa a Mi cuenta > Datos de la empresa > Alerta y avisos",alertStock:"Alerta de stock m\xednimo",automaticPrice:"Precio autom\xe1tico",automaticPriceExp:"El precio autom\xe1tico se calcula en base al precio sin IVA de los productos que lo componen.",internalCost2:"Costo interno sin IVA",costEffec:"Rentabilidad",unitPrice2:"Precio unitario con IVA",unitPrice3:"Precio unitario sin IVA",finalPrice:"Precio final",AdditionalInfo:"Informaci\xf3n adicional",CodOEM:"C\xf3digo OEM",supplierOr:"Proveedor origen",supplier:"Proveedor",selectSupplierOr:"Seleccione un cliente/proveedor",purchaseAccount:"Cuenta Compra",selectAccount:"Seleccione una cuenta",accountSale:"Cuenta Venta",merchAccount:"Cuenta Mercader\xeda",visibleSalesMod:"Visible en m\xf3dulo ventas",achievedRG:"Alcanzado por RG 5329/2023",mainInformation:"Informaci\xf3n principal",title:"T\xedtulo",active:"Activo",formatImg:"JPG, PNG o GIF",selectFormat:"Selecciona un archivo en formato",selectFormat2:"con un formato m\xe1ximo recomendado de 100x70px.",img:"Imagen",deposit:"Dep\xf3sito",initialStock:"Stock inicial",appAll:"Aplicar a todos",uniquePriceBlockTitle:"Precio \xfanico para todas las variantes",uniquePriceBlockTooltip:"El precio que cargues aqu\xed se aplicar\xe1 autom\xe1ticamente a todas las variantes del producto.",uniquePriceInfoCardVariants:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Tienes configurado utilizar el mismo precio para todas las variantes. Completa el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas. Si necesitas editar informaci\xf3n espec\xedfica de una variante, haz clic en el \xedcono del l\xe1piz.",uniquePriceLockedTooltip:"El precio de esta variante se completa autom\xe1ticamente con el valor del bloque Precio \xfanico. Puedes modificar esta configuraci\xf3n desde Mi Cuenta \u2192 Preferencias \u2192 Par\xe1metros.",uniquePriceConvergenceWarning:"Las variantes de este producto tienen precios distintos. Al guardar, todas quedar\xe1n con los valores del bloque Precio \xfanico.",uniquePriceConfirmTitle:"\xbfActualizar el precio de todas las variantes?",uniquePriceConfirmText:"Este producto tiene variantes con diferentes precios. Al continuar, ",uniquePriceConfirmTextHighlight:"todas las variantes se actualizar\xe1n con el precio definido en Precio \xfanico para todas las variantes: {{price}}.",uniquePriceConfirmTextReplace:" Este cambio reemplazar\xe1 los precios actuales de todas las variantes.",uniquePriceConfirmContinue:"Continuar",uniquePriceMissingTitle:"Completa el precio para continuar",uniquePriceMissingText:"Detectamos que este producto tiene variantes con distintos precios. Completa el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas las variantes.",uniquePriceMissingUnderstood:"Entendido",only:"\xdanico",withVariants:"Con variantes",tooltipVariant:"Aprende m\xe1s sobre variantes desde Tutoriales recomendados",noOption:"No se ha encontrado una opci\xf3n",selectCat:"Selecciona un rubro",selectSubCat:"Selecciona un sub-rubro",selectItem:"Seleccione un item",initialStockCharge:"Carga inicial de stock",presentations:"Presentaciones",presentationsInfo:"Las Presentaciones que configures se crear\xe1n autom\xe1ticamente en todos los dep\xf3sitos. El stock siempre se administra en unidades base.",presentationsVariantsInfo:"Las Presentaciones pueden aplicarse a todas las variantes o configurarse de forma independiente en cada variante. El stock siempre se administra en unidades base.",addPresentation:"Agregar presentaci\xf3n",noAdditionalPresentations:"Sin presentaciones adicionales.",presentationTypesEmptyTitle:"A\xfan no ten\xe9s tipos de Presentaciones configurados",presentationTypesEmptyDescription:"Configur\xe1 al menos un tipo de Presentaci\xf3n para poder agregarlo a tus productos.",configurePresentations:"Configurar Presentaciones",presentationType:"Tipo de presentaci\xf3n",selectPresentationType:"Seleccionar tipo...",equalsTo:"Equivale a",unitsLabel:"unidades",presentationEquivalenceInvalid:"La equivalencia debe ser un n\xfamero entero mayor a 1.",presentationEquivalenceMax:"La equivalencia no puede superar 999.999.",weight:"Peso",weightPlaceholder:"Ej: 3,5",dimensions:"Dimensiones",dimensionsPlaceholder:"Ej: 30x20x15",adjustmentPercent:"Ajuste (%)",adjustmentPlaceholder:"0",presentationPriceWithIva:"Precio Present. c/IVA",presentationPriceWithoutIva:"Precio Present. s/IVA",presentationPriceComplementWithIva:"Precio Present. c/IVA",presentationPriceComplementWithoutIva:"Precio Present. s/IVA",presentationPriceMaxTooltip:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y decimales seg\xfan configuraci\xf3n base.",presentationCalculatedPriceExceedsMaxAlert:"El precio calculado de una o m\xe1s presentaciones supera el m\xe1ximo permitido. Revis\xe1 la equivalencia o el precio unitario para continuar.",price:"Precio",complete:"completos",presentationsCount:"presentaciones",noVariantsForPresentations:"No hay variantes para configurar presentaciones.",applyPresentationsToAll:"Aplicar a todas las variantes",applyPresentationsToAllConfirmTitle:"Confirmar cambio",applyPresentationsToAllConfirm:"\xbfDeseas aplicar la misma configuraci\xf3n de presentaciones a todas las variantes? Las configuraciones particulares de cada variante ser\xe1n reemplazadas por la configuraci\xf3n general.",applyPresentationsToAllDisableConfirm:"\xbfDeseas configurar las presentaciones de forma independiente por variante? Dejar\xe1s de aplicar la misma configuraci\xf3n a todas las variantes.",presentationDeleteBlockedTitle:"No se pudo eliminar la Presentaci\xf3n.",presentationDeleteConfirmTitle:"\xbfEst\xe1s seguro que deseas eliminar la presentaci\xf3n {{name}}?",presentationDeleteBlockedDescription:"La Presentaci\xf3n no puede eliminarse porque ya ha sido utilizada en uno o m\xe1s comprobantes. Si ya no necesitas utilizarla, puedes inactivarla.",searchVariantSkuPlaceholder:"Buscar por SKU o nombre",noVariantsForSkuSearch:"Sin variantes para el SKU buscado",charactersToSearch:"Escribe dos o m\xe1s caracteres para buscar",noResults:"No hay resultados para mostrar",errorTitle:"Ha ocurrido un error",errorcontent:" Lo sentimos, ha ocurrido un error. No se pudo completar tu solicitud. Por favor, intenta m\xe1s tarde.",errorContent2:"Lo sentimos, ha ocurrido un error. No se pudo completar la acci\xf3n. Por favor intenta de nuevo m\xe1s tarde.",tooldeleteEntities:"No es posible eliminar entidades con comprobantes asociados",entitiesNotDelete:"No es posible eliminar todas la entidades. Debe haber al menos una entidad activa",Advert
1isements:"Anuncios",alertFuntionalities1:"Aqu\xed encontraras inpormaci\xf3n actualizada sobre las \xfaltimas funcionalidades que hemos agregado, para que puedas aprovechar al m\xe1ximo nuestra plataforma ",alertFuntionalities2:"En contabilium queremos escucharte. Ay\xfadanos a mejorar la plataforma dej\xe1ndonos tus sugerencias o votando por las que consideres importantes. Solo presiona la flecha hacia arriba junto al n\xfamero de la sugerencias",alertFuntionalities3:"Aqu\xed encontraras un listado de las mejoras y nuevas funcionalidades que pronto estar\xe1n disponibles en nuestra plataforma. \xa1Mantente al d\xeda con lo que viene! ",headingsError:"Si no cuenta con rubros, deber\xe1 crear uno",attributeWarning:"Est\xe1s por modificar un atributo",attributeChangeWarning:"Al proceder se modificar\xe1 en cada producto o servicios d\xf3nde se encuentre configurado.",modifyAttribute:"Modificar atributo",attributeConfig:"Configuraci\xf3n de atributo",attributeName:"Nombre del atributo",writeName:"Escribe un nombre",attributeDescription:"Descripci\xf3n del atributo",writeDescription:"Escribe una descripci\xf3n",variant:"Variante",addNewVariant:"A\xf1adir nueva variante",close:"Cerrar",eliminateAttribute:"No puedes eliminar el atributo",eliminateWarning:"Para proceder deber\xe1s eliminar los productos o servicios que est\xe9n asociados a \xe9ste atributo.",IVAPer:"IVA %",finalPriceWoIVA:"PRECIO SIN IVA",yes:"Si",no:"No",store:"Bodega",tooltipIVA2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVAStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl500:"Est\xe1s usando el precio con IVA incluido y redondeo de 500. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl1000:"Est\xe1s usando el precio con IVA incluido y redondeo de 1000. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVAClStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",mainData:"Datos principales",search:"Buscar",searchPlaceHolder:"Escribe para buscar",addNewAttribute:"A\xf1adir nuevo atributo",attributesVariants:"Variantes del atributo",deleteAttribute:"Eliminar atributo",attributesAndVariants:"Nombre y variantes del atributo",typeSelectorDescriptionProduct:"Un producto \xfanico es para aquellos comercios que solo tienen un tipo de producto, mientras que cargar un producto con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",newFunctionality:"\xa1Nueva funcionalidad!",variantName:"Nombre variante",attributesConfig:"Configuraci\xf3n de atributos",variantsConfig:"Configuraci\xf3n de variantes",attribute:"Atributo",variantsSummary:"Al presionar las variantes, estas se deseleccionar\xe1n.",variantsSummaryEdition:"Solo se pueden activar y agregar nuevas variantes",addExitAttribute:"Agregar atributo existente",depositName:"Nombre del dep\xf3sito",depositInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de los dep\xf3sitos.",storeName:"Nombre de la bodega",storeInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de las bodegas.",addVariant:"Agregar variante",apply:"Aplicar",applyChanges:"Aplicar cambios",insertName:"Ingresar nombre",typeSelectorDescriptionService:"Un servicio \xfanico es para aquellos comercios que solo tienen un tipo de servicio, mientras que cargar un servicio con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",variantStatusTooptip:"Si el estado es inactivo todas las variantes quedar\xe1n inactivas",stockInfo:"*Al ingresar stock desde esta pantalla no se generan de forma autom\xe1tica los asientos contables por ajuste de mercader\xeda.",productSearchLabel:"Buscar nombre, descripci\xf3n o SKU",viewFilters:"Ver filtros",filtersApplied:"filtros aplicad
1os",allProducts:"Todos los productos",allHeadings:"Todos los rubros",allSubHeadings:"Todos los sub-rubro",allProviders:"Todos los proveedores",productType:"Tipo de producto",filters:"Filtros",filter:"Filtrar",labelPrinting:"Impresi\xf3n de etiquetas",selectPrintingItems:"Seleccionar los \xedtems a imprimir",labelPrintingConfig:"Configuraci\xf3n de etiquetas",printers:"Impresora",selectPrinter:"Seleccione impresora",selectOption:"Seleccione una opci\xf3n",selectFieldsToShow:"Seleccione los campos de la etiqueta",barcodeFormat:"Formato del c\xf3digo de barras",labelQuantity:"Cantidad de etiquetas por producto",labelSize:"Tama\xf1o de etiqueta",fieldsToShow:"Campos a mostrar",print:"Imprimir",preview:"Vista previa",successDownload:"Se descarg\xf3 el archivo para imprimir correctamente",errorDownload:"No se pudo descargar el archivo para imprimir correctamente",noResult:"No se encontraron resultados",emptyStateSearchProductsText:"Intenta cambiar los filtros, buscar otro art\xedculo, descripci\xf3n o SKU",view:"Ver",all:"Todos",grouperSkuCodeP:"Al cargar un producto con variantes se debe crear un c\xf3digo SKU agrupador",grouperSkuCodeS:"Al cargar un servicio con variantes se debe crear un c\xf3digo SKU agrupador",labelBarCodeLengthMax:"Se ha excedido la longitud m\xe1xima permitida para el c\xf3digo de barras.",labelBarCodeLabelLengthDistinct:"Los formatos de c\xf3digo de barra de tus productos elegidos no son compatibles con el formato de c\xf3digo de barra seleccionado.",defaultError:"Ha ocurrido un error, por favor, vuelve a intentarlo.",columnMatchingTitle:"Asignar los campos importados a los productos",columnMatchingInfo:"Selecciona las columnas de tu archivo y asegurate de hacerlas coincidir con los campos requeridos para la importaci\xf3n.",columnName:"Nombre de la columna",assignField:"Asignar al campo",firstRowPreview:"Vista previa 1ra fila",bulkImportTitle:"Importaci\xf3n masiva de informaci\xf3n",bulkImportDate:"Fecha de importaci\xf3n",bulkImportStatus:"Estado de importaci\xf3n",bulkImportHistory:"Historial de importaciones",downloadBaseFile:"Descargar planilla base",select:"Seleccionar",uploadFile:"Subir archivo xlsx o csv",dragAndDropFileTitle:"o arrastrar el archivo aqu\xed.",validUploadFilesText:"Recuerda que solo se pueden subir archivos ",columnOrder:"Asignaci\xf3n de columnas",downloadFile:"Descarga de planilla ",downloadFileButton:"Descargar planilla",downloadFileInfo:"Descarga la planilla y utiliza el archivo modelo o haz click en siguiente y sube tu propia planilla. Aseg\xfarate de completar todos los campos obligatorios.",uploadFileHelp:"Para guardar el archivo haz click en \u201cArchivo\u201d -> \u201cGuardar Como\u201d y guarda tu excel en formato \u201c.xlsx\u201d. Si tu computadora es de la marca Apple, podr\xedas necesitar esta informaci\xf3n.",bulkImportConfirmation:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n?",bulkImportConfirmationWithTable:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n? De no ser as\xed, sugerimos que revises el listado que figura en la previsualizaci\xf3n.",bulkImportProcessedText:"Ten presente que este proceso se ejecuta en segundo plano. Cuando finalice, se te enviar\xe1 una notificaci\xf3n con la confirmaci\xf3n.",bulkImportDataSizeText:"Dependiendo de la cantidad de datos a importar el proceso puede demorar algunos minutos.",bulkImportProductErrorText:"Los productos marcados con errores en la tabla o que posean datos incorrectos al momento de la importaci\xf3n, no ser\xe1n importados.",buklImportCheckText:"He verificado que los datos a subir son correctos",bulkImportErrorModalTitle:"Ha ocurrido un error en la importaci\xf3n",bulkImportErrorModal:"Por favor, verifica que los campos o el archivo importado posean el formato correcto.",import:"Importar",importSuccess:"\xa1Importaci\xf3n iniciada con \xe9xito!",importNewsNotification:"Mantente atento al historial de importaciones para ver en qu\xe9 estado se encuentra tu importaci\xf3n.",templateGuide:"Indicaciones para completar la planilla",columnTemplateGuide:"Indicaciones para reacomodar las columnas",firstTutorialText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",secondTutorialText:"Debes completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evita el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",thirdTutorialText:"Para determinar el tipo de concepto (ya sea producto o servicio), utiliza \u201cP\u201d para producto y \u201cS\u201d para servicio. Esto ayuda a clasificar adecuadamente los elementos en la planilla.",fourthTutorialText:"El estado de un producto se define como activo (A) o inactivo (I). Puedes crear nuevos productos con estados activos o inactivos, o modificar el estado de productos existentes seg\xfan sea necesario.",fifthTutorialText:"En el caso de usuarios con bi-moneda, la moneda debe ser especificada como CLP o USD. No es posible editar la moneda de un producto previamente cargado en el sistema.",sixthTutorialText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",seventhTutorialText:"Si un producto ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",firstColumnTutorialText:"Representa el t\xedtulo del campo requerido para la importaci\xf3n de datos.",secondColumnTutorialText:"Columna en donde se mostrar\xe1n los t\xedtulos del archivo importado.",thirdColumnTutorialText:"Se debe seleccionar un elemento. Los datos importados de este elemento se asignar\xe1n al campo requerido. Si un t\xedtulo ya se encuentra seleccionado, no puede repetirse en otro campo requerido.",fourthColumnTutorialText:"Vista previa del primer dato del archivo importado que se asignar\xe1 al campo requerido.",firstRow:"1\xb0 Fila",fatherSKU:"SKU padre",unitP:"P. unitario",barCode:"C\xf3d. barra",urlImg:"URL imagen",originSupplier:"C\xf3d. proveedor",purchaseAcc:"Cta. compra",saleAcc:"Cta. venta",merchAcc:"Cta. mercader\xeda",rgAchived:"Alcanzado RG",attribute1:"Atributo1",attribute2:"Atributo2",variantAttribute1:"Var. atributo1",variantAttribute2:"Var. atributo2",internalCost3:"Costo interno",variantSKU:"SKU variante",variantObservation:"Observ. variante",existingProduct:"Producto existente",tableNewProduct:"Producto nuevo",title1:"Zapatilla run",title2:"Pantal\xf3n run",sku1:"SKU-ABC123",sku2:"\tSKU-DEF456",typeP:"P",typeS:"S",stateA:"A",stateI:"I",urlImg1:"http://imagen.com/imagen01.jpg",urlImg2:"http://imagen.com/imagen02.jpg",category1:"Zapatillas",category2:"Pantalones",subCategory2:"Deportivo",de
1scription1:"Zapatillas deportivas",description2:"Pantalones largos, algod\xf3n",tableSupplier:"CODE123",accCode1:"1.1.2.3",accCode2:"1.2.1.4",observation1:"Lleva cordones",observation2:"Ajustable",bCode1:"12345678",bCode2:"AB67890CD",ivaRate:"Tasa IVA",ivaDetail:"Tipo de IVA",iva1:"0",iva2:"19",ivaDetail1:"Exento",ivaDetail2:"Gravado a tasa b\xe1sica",currency1:"CLP",currency2:"USD",fileFirstColumnText:"Borra o ignora esta columna",fileSecondRowText1:"Borra o ignora esta fila",fileSecondRowText2:"CAMPO OBLIGATORIO - Denominaci\xf3n de tu Producto o servicio",bulkImportProductsAndServices:"Importaci\xf3n masiva de productos y servicios",bulkImportVariantsProductsAndServices:"Importaci\xf3n masiva de productos y servicios con variantes",bulkImportVariantsProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n para importar masivamente productos y/o servicios con variantes.",bulkImportVariantsImportedConcepts:"Productos y servicios importados",variantsDownloadFileInfo:"Descarga la planilla y utiliza el archivo modelo o haz click en siguiente y sube tu propia planilla. Aseg\xfarate de completar todos los campos obligatorios.",variantsTemplateGuide:"Indicaciones para completar la planilla",variantAttribute1Header:"Atributo 1",variantVariant1Header:"Variante de atributo 1",variantIvaTypeHeader:"Tipo IVA",errorVariantMax:"Superaste el m\xe1ximo de 100 variantes para este SKU agrupador. Las variantes excedentes no ser\xe1n importadas.",errorInvalidVariantType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cV\u201d para variantes de producto y \u201cG\u201d para variantes de servicio.",errorVariantTypeNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Tipo. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantCurrencyDistinct:"Todas las variantes de un mismo SKU agrupador deben tener la misma moneda.",errorVariantCurrencyNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Moneda. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantAttributeRepeated:"Esta combinaci\xf3n de variantes de atributo ya fue utilizada dentro del mismo SKU agrupador.",errorVariantSkuDuplicated:"El SKU de variante ingresado ya pertenece a otro concepto. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSkuEquals:"El SKU de la variante no puede ser igual al SKU agrupador",errorAttributeNotExists:"El atributo ingresado no existe o no coincide con ninguno que tengas registrado.",errorAttributeDisabled:"El atributo ingresado est\xe1 inactivo.",errorAttributeMax:"Se admite un m\xe1ximo de 2 atributos por producto o servicio con variantes.",errorAttributeItemNotExist:"La variante ingresada no existe.",errorAttributeItemDisabled:"La variante ingresada est\xe1 inactiva.",errorAttributeItemUnlinked:"La variante de atributo ingresada no existe o no tiene relaci\xf3n con el atributo seleccionado.",variantGrouperNameHeader:"Nombre agrupador",variantSkuGrouperHeader:"C\xf3d SKU agrupador",variantNameHeader:"Nombre de variante",variantAttribute2Header:"Atributo 2",variantVariant2Header:"Variante de atributo 2",variantSkuHeader:"SKU variante",variantObservationsHeader:"Observaciones de variante",variantsSkuGrouperFilterPlaceholder:"Buscar por C\xf3d SKU agrupador",errorGrouperNotFound:"El SKU Agrupador no existe.",errorTypeNotEditable:"No es posible modificar el tipo de un producto o servicio con variantes existente.",errorCurrencyNotEditable:"No es posible modificar la moneda de un producto o servicio con variantes existente.",errorCurrencyNotShared:"Todas las variantes de un mismo agrupador deben compartir la misma moneda.",errorHeadingNotFound:"El rubro informado no existe.",errorSubHeadingNotFound:"El subrubro informado no existe o no pertenece al rubro seleccionado.",errorProviderNotFound:"El proveedor informado no existe.",errorAttributeNotMatch:"El atributo informado no corresponde al agrupador.",errorNoNewAttributes:"No es posible agregar nuevos atributos a un agrupador existente.",errorMaxAttributes:"El agrupador ya posee el m\xe1ximo de dos atributos configurados.",errorAttributeVariantNotMatch:"La variante del atributo no corresponde al atributo informado.",errorAttributeCombination:"La combinaci\xf3n de atributos ya existe para este agrupador.",errorVariantSkuNotFound:"El SKU Variante no existe.",errorVariantSkuOtherGrouper:"El SKU Variante ya pertenece a otro agrupador.",errorMaxVariants:"No se pueden crear m\xe1s de 100 variantes por atributo.",variantsRowErrorSingular:"err\xf3neo de",variantsRowErrorPlural:"err\xf3neos de",selectAnOption:"Selecciona una opci\xf3n",variantsMaxFileSizeError:"El archivo importado supera el tama\xf1o m\xe1ximo permitido.",variantsColumnCountError:"La cantidad de columnas del archivo no coincide con la estructura esperada.",variantsEmptyFileError:"El archivo no posee ning\xfan registro.",variantsMaxRowsError:"El archivo supera el m\xe1ximo de 2500 filas permitidas.",variantsInvali
1dFileType:"No puedes subir este tipo de archivo. Solo se permiten archivos .csv y .xlsx.",variantsFileReadError:"Hubo un problema al leer el archivo. Verifica que no est\xe9 da\xf1ado e intenta nuevamente.",variantsWizardStepInProgress:"historia 3 en desarrollo",variantIndicationFirstRowText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",variantIndicationNameText:"Debes completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evita el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",variantIndicationSkuText:"Para crear o actualizar productos o servicios con variantes es obligatorio informar el SKU Agrupador. Todas las variantes que pertenezcan al mismo producto o servicio deber\xe1n repetir el mismo SKU Agrupador. Si el SKU no existe, se crear\xe1 un nuevo concepto; si existe, se actualizar\xe1.",variantIndicationCurrencyText:"En empresas con bi-moneda, todas las variantes de un mismo agrupador deben compartir la misma moneda. No es posible modificar la moneda de conceptos ya existentes.",variantIndicationAttributeText:"Cada agrupador debe contar con al menos un atributo y una variante asociada. Se permite configurar hasta 2 atributos y un m\xe1ximo de 10 variantes por atributo.",variantsSkuMaxLengthError:"El campo SKU variante admite hasta 50 caracteres. Corrige el archivo y vuelve a subirlo.",variantIndicationUnitPriceText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",variantIndicationFirstRowTitle:"1\xb0 Fila",variantIndicationNameTitle:"Nombre agrupador",variantIndicationSkuTitle:"C\xf3d SKU agrupador",variantIndicationCurrencyTitle:"Moneda",variantIndicationAttributeTitle:"Atributo 1 y Variante de atributo 1",variantIndicationUnitPriceTitle:"Precio unitario",variantIndicationIvaRateTitle:"Tasa IVA",variantIndicationIvaRateText:"Para productos sujetos a impuesto al valor agregado (IVA), los Monotributistas solo pueden completar el campo de porcentaje de IVA con \u201c0\u201d (cero). Esto puede ser importante para la correcta facturaci\xf3n y cumplimiento fiscal.",variantIndicationNonRequiredText:"Si un producto o servicio con variantes ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",bulkImportProductsAndServicesSubTitle:"Selecciona esta opci\xf3n si quieres cargar productos y/o servicios.",startBulkImport:"Empezar importaci\xf3n",duplicatedField:"Campo duplicado",emptyBulkImportHistoryTitle:"Tu historial de importaciones est\xe1 vac\xedo",errorBulkImportHistoryTitle:"Ocurri\xf3 un error al cargar el historial",emptyBulkImportHistoryText:"Una vez que comiences una importaci\xf3n, podr\xe1s ver el progreso y los detalles aqu\xed.",user:"Usuario",users:"Usuarios",uploadNew:"Cargar nuevo",dropNew:"o arrastrar otro archivo aqu\xed",selectImgByUrl:"Sube una imagen mediante URL: Ingresa la direcci\xf3n web de la imagen que deseas cargar",goToOldConceptsCreation:"Ir a la versi\xf3n anterior",duplicateCodeError:"SKU duplicado",emptySKU:"Has dejado c\xf3digos SKU incompletos, por favor, revisa el listado y compl\xe9talo para continuar.",productCheck:"Revisi\xf3n de productos",bulkImportPreviousResults:"Resultados previos a la importaci\xf3n",filterFor:"Filtrar por:",result:"Resultado",errorState:"Error",errorFilter:"Err\xf3neos",correctState:"Correcto",withoutErrorFilter:"Sin errores",bulkImportFileErrorTitle:"El archivo importado presenta errores",bulkImportFileErrorText:"Se han detectado errores en el archivo que deseas importar. Si contin\xfaas, los elementos con fallas no ser\xe1n importados. Para asegurar una importaci\xf3n completa, corrige los errores y vuelve a subir el archivo.",uploadAgain:"Volver a subir",emptyStateChangeFilter:"Intenta cambiar los filtros.",errorMissing:"Este campo posee un error.",errorRequiredField:"Este campo es obligatorio. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorMaxLimit30:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 30 caracteres.",errorMaxLimit50:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 50 caracteres.",errorMaxLimit128:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 128 caracteres.",errorMaxLimit150:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 150 caracteres.",errorMaxLimit500:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 500 caracteres.",errorMaxLimitPrice:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y 3 decimales (999999999,999).",errorMaxLimitProfitability:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 6 enteros y 3 decimales (999999,999).",errorMaxLimitMinStock:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 4 enteros (9999).",errorSkuRepeated:"El SKU ingresado ya fue utilizado dentro de esta importaci\xf3n. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorInvalidCurrency:"La opci\xf3n ingresada es inv\xe1lida. El campo Moneda \xfanicamente acepta CLP para pesos Chilenos o, en caso de poseer bi moneda, USD para d\xf3lares Estadounidenses.",errorInvalidType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cP\u201d o \u201cProducto\u201d para productos y \u201cS\u201d o \u201cServicio\u201d para servicios.",errorInvalidStatus:"La opci\xf3n ingresada es inv\xe1lida. El campo Estado debe completarse \xfanicamente con \u201cA\u201d o \u201cActivo\u201d para activos e \u201cI\u201d o \u201cInactivo\u201d para inactivos.",errorInvalidURL:"El formato URL de la imagen es incorrecto. Por favor, corrobora que comience con \u201chttps\u201d y que el tipo de archivo de imagen sea jpg, jpeg, gif, o png.",errorInvalidNumberField:"\xc9ste campo puede completarse \xfanicamente con caracteres num\xe9ricos y utilizando una coma (,) o un punto (.) como separador decimal.",errorInvalidIVA:"La Tasa IVA ingresada es inv\xe1lida. Los valores permitidos son: 0, 11.5 y 19.",errorInvalidIvaDetail:"El tipo de IVA ingresado no existe o no tiene relaci\xf3n con la Tasa IVA.",errorInvalidMinStock:"\xc9ste campo debe completarse \xfanicamente con caracteres num\xe9ricos. Ten en cuenta que el campo Stock m\xednimo no acepta decimales.",errorNegativeNumbers:"\xc9ste campo no puede completarse con n\xfameros negativos. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorDecimals:"El campo Stock m\xednimo no acepta decimales. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorHeading:"El rubro ingresado no existe o no coincide con ning\xfan rubro que tengas registrado. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSubHeading:"El sub-rubro ingresado no existe o no tiene relaci\xf3n con el rubro seleccionado.",bulkImportFieldValueNotFound:"El valor no existe en ese campo o est\xe1 inactivo. Rev\xedsalo en Mi Cuenta \u2192 Campos de productos.",bulkImportFieldNotAvailable:"El campo no est\xe1 habilitado. Habil\xedtalo en Mi Cuenta \u2192 Campos de productos o deja la celda vac\xeda.",descriptiveFieldsTutorialText:"Marca, L\xednea, Material, Origen, Temporada y Calidad son opcionales. Escribe el nombre del valor como figura en Mi Cuenta \u2192 Campos de productos. El campo tiene que estar habilitado y el valor activo; si no, la fila se marca con error. No se crean valores nuevos.",noFileError:"No se ha adjuntado ning\xfan archivo.",maxProductsFileError:"Has superado el m\xe1ximo de productos por archivo. Por favor, verifica que tu documento posea menos de 2500 items.",emptyFileError:"El archivo no posee ning\xfan item.",invalidFileError:"El archivo enviado no posee un formato correcto.",fileTooLargeError:"El archivo importado en muy pesado. Por favor, verifica que tu documento pese menos de 1MB.",columnFileDistinctError:"El n\xfamero de columnas que posee tu archivo es distinto al esperado.",jobError:"Se han detectado errores en el proceso de importaci\xf3n. Por favor, revisa tu documento y vu\xe9lvelo a intentar.",importRunningError:"No es posible realizar dos importaciones al mismo tiempo. Por favor, espera que termine el proceso actual para cargar otro archivo.",currencyNotEditable:"No es posible editar la moneda de un producto previamente cargado en el sistema.",providerNotFound:"El proveedor no existe o no coincide con ningun registro guardado",headingNotFound:"El rubro no existe o no coincide con ningun registro guardado",subHeadingNotFound:"El subrubro no existe o no est\xe1 relacionado con el rubro seleccionado.",typeNotEditable:"No es posible editar el tipo de un producto previamente cargado en el sistema.",budgetsTitle:"Cotizaciones realizadas",numberClient:"Buscar n\xfamero de cotizaci\xf3n o cliente",period:"Periodo",addClient:"Ingrese el n\xfamero de cotizaci\xf3n y/o cliente",newBudget:"Nueva cotizaci\xf3n",export:"Exportar",dateValidity:"Fecha de validez",dateFrom:"Fecha desde",dateTo:"Fecha hasta",selectUserAdditional:"Seleccione un usuario adicional",emptyBudgetsListTitle:"Todav\xeda n
1o creaste ninguna cotizaci\xf3n",emptyBudgetsListText:"Una vez que cargues una cotizaci\xf3n, podr\xe1s ver los detalles aqu\xed.",emptyFiltersBudgetsListTitle:"No se han encontrado resultados",emptyFiltersBudgetsListText:"Lo sentimos, no se han encontrado resultados. Por favor, intente con diferentes criterios de b\xfasqueda.",errorFiltersBudgetsListTitle:"Ha ocurrido un error",errorFiltersBudgetsListText:"Por favor, vuelve a intentarlo",client:"Cliente",document:"Documento",location:"Domicilio",sellerCondition:"Condici\xf3n de Venta",exchangeType:"Tipo de cambio",date:"Fecha",seller:"Vendedor",quantityShort:"Cant.",code:"C\xf3digo",unitPriceShort:"Precio unit.",unitPriceShortWoIVA:"Precio unit. s/IVA",unitPriceShortIVA:"Precio unit. c/IVA",bonusShort:"Bonif. %",iva:"Iva",subtotal:"Subtotal",userCreates:"Usuario Alta",userModifies:"Usuario Modifica",budgets:"Presupuestos",modalBudgetsTitle:"\xbfEst\xe1 seguro que desea eliminar la cotizaci\xf3n ",delete:"Eliminar",sellers:"Vendedores",createBudgets:"Crear nueva cotizaci\xf3n",editBudgets:"Editar cotizaci\xf3n",principalData:"Datos principales",paymentConditions:"Condiciones de pago",selectSeller:"Selecciona un vendedor",exchangeRate:"Tipo de cambio",itemsToBudget:"Items a cotizar",supplierClient:"Proveedor/Cliente",unitPriceTable:"Precio unit. sin IVA",bonif:"Bonif %",netTax:"Neto gravado",noNetTax:"NO gravado/Exento",total:"TOTAL",ivaMayus:"IVA",addNewItem:"Agregar nuevo item",actionModalTitle:"Cotizaci\xf3n emitida correctamente",sendEmail:"Enviar por email",downloadRemittance:"Descargar remito",downloadBudget:"Descargar cotizaci\xf3n",duplicate:"Duplicar",totalDefault:"TOTAL EN MONEDA PRINCIPAL",errorStep4Budgets:"Lo sentimos! Ingrese al menos un producto o servicio para realizar la cotizaci\xf3n.",errorStep1Budgets:"Campo requerido. Compl\xe9talo con un cliente/proveedor existente.",number:"N\xfamero",otherActions:"Otras acciones",createSaleOrder:"Crear orden de venta",createInvoice:"Facturar",voucherPreview:"Visualizaci\xf3n de comprobante",sendEmailVoucher:"Enviar comprobante por email",emailFor:"Para: (separa las direcciones mediante una coma)",emailSubject:"Asunto:",emailMessage:"Mensaje:",send:"Enviar",errorMailSending:"\xa1Lo sentimos! El email no pudo ser enviado, actualice la p\xe1gina e intente nuevamente.",successMailSending:"\xa1Bien hecho! El email ha sido enviado correctamente.",addFreeDescription:"o ingrese una descripci\xf3n libre",dateValidityTo:"Fecha de validez hasta",dateCreated:"Fecha de creaci\xf3n",exchangeRateError:"El tipo de cambio debe ser mayor que 0",edit:"Editar",receiptView:"Visualizaci\xf3n del comprobante",budgetView:"Visualizaci\xf3n de cotizaci\xf3n",pdfPreview:"Previsualizar en PDF",simple:"Simple",detailed:"Detallado",salesModule:"M\xf3dulo Ventas",purchaseModule:"M\xf3dulo Compras",inverntaryModule:"M\xf3dulo Inventarios",treasuryModule:"M\xf3dulo Tesorer\xeda",accountingModule:"M\xf3dulo Contabilidad",reportsModule:"M\xf3dulo Reportes",restrictedAccessToModule:"\xa1Desbloquea todo el potencial de tu cuenta!",blockedModuleTextPart1:"El acceso a ",blockedModuleTextPart2:" est\xe1 disponible para planes superiores. Actualiza tu plan para disfrutar de todas las ventajas:",comparePlans:"Comparar planes",limitations:{skusMaxUsage:"Has superado el m\xe1ximo de productos disponibles en tu plan."},draft:"Borrador",phone:"Tel\xe9fono",invoice:{invoiceMade:"Facturas realizadas",invoiceNew:"Nuevo comprobante",genericError:"Lo sentimos, ha ocurrido un error. Por favor intenta de nuevo m\xe1s tarde.",createNc:"Crear NC",seeInvoice:"Ver factura",modalInvoiceTitle:"\xbfEst\xe1 seguro que desea eliminar el comprobante realizado a ",mode:"Modo:",cell:"Tel:",sum:"Importe",totalInvoice:"Total fact.",no:"Nro",client:"Cliente",legendInvoiceA1:"El credito fiscal discriminado en el presente comprobante solo podra ser computado a efectos del Procedimiento permanente de transicion al Regimen General.",legendInvoiceA2:"Detectamos que ten\xe9s pendiente de presentaci\xf3n el formulario de habilitaci\xf3n de comprobantes o su fecha de presentaci\xf3n es anterior a tu alta en IVA. Ten\xe9s que proceder a anular la operaci\xf3n clase 'A' o 'M' emitida, mediante una Nota de Cr\xe9dito.",downloadInvoice:"Descargar factura",invoiceCancelled:"Comprobante anulado",createNcModal:"Crear nota de cr\xe9dito para el comprobante ",invoiceType:"Tipo de comprobante",pointSale:"Punto de Venta",nc:"Nota cr\xe9dito",saveDraft:"Guardar Borrador",editNc:"Editar nota de cr\xe9dito",emitNc:"Emitir nota de cr\xe9dito electr\xf3nica",appliedIn:"Aplicado en",balance:"Saldo",type:"Tipo",selectInvoiceType:"Seleccione el tipo",selectSalePoint:"Seleccione un punto de venta",salePoint:"Punto de venta",selectInvoiceMode:"Seleccione el modo",supplier:"Proveedor",selectSupplier:"Seleccione un Proveedor",selectClient:"Seleccione un cliente",associatedCollection:"y su cobranza asociada",cause:"Motivo",seeEntry:"Ver asiento",processEntry:"Reprocesar asiento",name:"Nombre",debit:"Debe",credit:"Haber",numberClient:"N\xfamero/Tipo de Factura/Cliente",ncOk:"La nota de cr\xe9dito fue creada correctamente.",counterSale:"Venta de mostrador",massBilling:"Facturaci\xf3n masiva de pendientes",currentSubscriptions:"Ver abonos actuales",createPayment:"Crear abono",billingCredits:"Facturar abonos",massPrinting:"Impresi\xf3n masiva",otherOptions:"Otras opciones",processEntryResponse:"Se ha procesado con \xe9xito 1 de un total de 1",errorEntry:"Error al procesar los asientos",errorEntry2:"Ocurri\xf3 un error al intentar cargar los datos del asiento contable. Por favor, int\xe9ntelo de nuevo m\xe1s tarde.",errorAlert:"Lo sentimos!",okAlert:"Bien hecho!",pointsSale:"Puntos de venta",pag:"hojas",format:"Formato",generate:"Generar",massPrintingInvoice:"Impresi\xf3n masiva de comprobantes",textPointsSale:"Ej: 1,2. Si no ingresa ninguno, se imprimir\xe1n todos.",errorTextModal:"Debe completar todos los campos",tooltipDate:"El rango de fechas no puede ser mayor a 6 meses",invoice:"Facturaci\xf3n",generalInformation:"Ac\xe1 van los datos m\xe1s generales de la factura.",issueInvoice:"Emitir factura electr\xf3nica",periodImputed:"Per\xedodo a imputar",periodImputedText:"Ingrese la fecha de emisi\xf3n de la factura y la fecha de Vencimiento del cobro de la factura.",currencyText:"Ingrese la moneda de la compra y el tipo de cambio.",invoiceItems:"Items a facturar",invoiceItemsText:"Ingrese a continuaci\xf3n los productos o servicios que va a incluir en la factura.",enterSalesOrderNumber:"Ingrese el nro de orden",costCenter:"Centro de costo",costCenterPlaceholder:"Seleccione un centro de costo",account:"Cuenta",emitAutoReceipt:"Emite recibo autom\xe1tico",totalDefault:"TOTAL EN MONEDA SECUNDARIA"},emailWrong:"Una de las direcciones ingresadas es inv\xe1lida.",emailsMaxLimit:"Has alcanzado el m\xe1ximo de 100 direcciones de email.",maxLimitItems:"El archivo seleccionado supera el l\xedmite de {{limit}} \xedtems. Por favor, selecciona otro archivo para continuar.",providerCode:"C\xf3digo de proveedor",create:"Crear",clientModal:{taxData:"Datos fiscales",otherData:"Otros datos",newClient:"Nuevo cliente",docType:"Tipo doc",organism:"SII",socialReasonOrName:"Raz\xf3n Social/Nombre",taxCategory:"Categor\xeda Impositiva",legalIdentity:"Personer\xeda",fantasyName:"Nombre Fantas\xeda",turn:"Giro",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Regi\xf3n",selectProvince:"Seleccione una regi\xf3n...",city:"Comuna",selectCity:"Seleccione una comuna...",floor:"Piso/Depto",postalCode:"C\xf3digo Postal",errors:{userRutAlreadyExists:"Lo sentimos! El RUT ingresado ya se encuentra registrado.",userRucAlreadyExists:"Lo sentimos! El RUC ingresado ya se encuentra registrado.",userCiAlreadyExists:"Lo sentimos! La CI ingresada ya se encuentra registrado.",userCuitAlreadyExists:"Lo sentimos! El CUIT ingresado ya se encuentra registrado.",userDniAlreadyExists:"Lo sentimos! El DNI ingresado ya se encuentra registrado."}},newClientModal:{newClient:"Nuevo cliente",taxDataTitle:"Datos fiscales",otherData:"Otros datos",docType:"Indicanos c\xf3mo identificarlo",organism:"SII",socialReasonOrName:"Raz\xf3n s
1ocial/nombre",taxCategory:"Categor\xeda impositiva",legalIdentity:"Personer\xeda",turn:"Giro",fantasyName:"Nombre fantas\xeda",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Regi\xf3n",selectProvince:"Seleccione una regi\xf3n...",city:"Comuna",selectCity:"Seleccione una comuna...",floor:"Piso/depto",postalCode:"C\xf3digo postal"},ivaRateTooltip:"Corresponde al nombre, Exento, Gravado a tasa b\xe1sica, Gravado a tasa m\xednima.",budgetItemError:"Lo sentimos! Debe guardar el producto o servicio para continuar.",budgetTotalNegativeError:"Lo sentimos! El total de la cotizaci\xf3n debe ser mayor a 0.",totalBudget:"Total Cotiz.",sendEmailBudget:"Enviar cotizaci\xf3n por email",login:{useEmail:"Us\xe1 tu mail para ingresar",useEmail2:" O complet\xe1 los siguientes datos",account:"\xbfNo ten\xe9s cuenta?",accountNow:"\xbfYa ten\xe9s cuenta?",useEmailChUy:"Usa tu mail para ingresar",accountChUy:"\xbfNo tienes cuenta?",register:"Registrate",emaiCh:"Ingresa un email v\xe1lido",errPass:"Usuario y/o contrase\xf1a incorrecta",blockedUser:"Has superado el n\xfamero m\xe1ximo de intentos posibles. Por su seguridad, su cuenta ha sido bloqueada. Haga click en olvid\xe9 mi contrase\xf1a para poder recuperarla. ",remember:"Recordarme",forgot:"Olvid\xe9 mi contrase\xf1a",into:"Ingresar",recoverText:"Ingres\xe1 el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverTextChUy:"Ingresa el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverPass:"Recuperar contrase\xf1a",errorMessage:"Por favor, ingrese una direcci\xf3n de correo v\xe1lida",continue:"Continuar",goBack:"Volver al login",recoverTextMail:"Ingres\xe1 al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verific\xe1 la casilla de correo no deseado.",recoverTextMailChUy:"Ingresa al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verifica la casilla de correo no deseado.",sendMailRecover:"Se envi\xf3 un correo a la direcci\xf3n ingresada.",newChancePass:"Crear nueva contrase\xf1a",createNewPass:"Escribe una contrase\xf1a \xfanica y segura que sea f\xe1cil ",createNewPass2:"de recordar para que no la olvides la pr\xf3xima vez.",newPass:"Contrase\xf1a nueva *",characters:"Min. 8 caracteres",oneCapital:"1 letra may\xfascula",oneletter:"1 letra min\xfascula",numberCh:"Min. 1 caracter num\xe9rico",plusCh:"No est\xe1 permitido inclu\xedr el caracter \u201c+\u201d",confirmPass:"Confirma la nueva contrase\xf1a *",matchPass:"Las contrase\xf1as no coinciden",reqField:"Campo obligatorio",chancePass:"Cambiar contrase\xf1a",btnErr:"La contrase\xf1a ha sido utilizada previamente",err:"Mensaje de error",goBackLogin1:"Ya puedes volver al login e ingresar con tu correo electr\xf3nico y tu nueva contrase\xf1a.",goBackLogin2:"Se ha completado el cambio de contrase\xf1a con \xe9xito.",subEmailVerification:"Hemos enviado un c\xf3digo de verificaci\xf3n a la cuenta ",subEmailVerification2:"el cual te solicitamos a continuaci\xf3n",registerG1:"Registro con Google",registerG2:"\xa1Te damos la bienvenida,",registerG3:"Se crear\xe1 una nueva cuenta de Contabilium",registerG4:"para la direcci\xf3n de correo electr\xf3nico",emailVerification:"Verificaci\xf3n de email",loginMfaVerification:"Verifica tu identidad",loginMfaSubVerification:"Enviamos un c\xf3digo a",loginMfaSubVerification2:". Ingresa para continuar.",loginMfaSuccessAuth:"Autenticaci\xf3n de doble factor completada con \xe9xito.",loginMfaSendCodeError:"No pudimos enviar el c\xf3digo. Intent\xe1 nuevamente en unos segundos.",loginMfaSendCodeErrorUnavailable:"No pudimos enviar el c\xf3digo, int\xe9ntelo m\xe1s tarde.",loginMfaEmailVerifiedError:"No se pudo enviar el c\xf3digo de verificaci\xf3n. Contact\xe1 a soporte para habilitar la autenticaci\xf3n de doble factor.",loginMfaInvalidCode:"El c\xf3digo no es v\xe1lido. Revisa tu email e intenta de nuevo.",loginMfaInvalidCodeLastAttempt:"El c\xf3digo no es v\xe1lido. Te queda 1 intento.",loginMfaSoftLockBlocked:"Por seguridad, el acceso est\xe1 bloqueado temporalmente. Intenta de nuevo en {{countdown}}.",loginMfaResendCode:"Reenviar c\xf3digo",loginMfaResendCodeWithTimer:"Reenviar c\xf3digo ({{seconds}}s)",loginMfaResendCodeWithTimerMmSs:"Reenviar c\xf3digo ({{countdown}})",loginMfaResendCodeSuccess:"Te enviamos un nuevo c\xf3digo.",loginMfaResendRateLimitSupport:"Si sigues sin recibir el c\xf3digo, contacta a Soporte.",codeLabel:"\xbfNo recibiste el c\xf3digo?",enterLater:"Lo ingresar\xe9 m\xe1s tarde, d\xe9jame continuar",notReceive:"\xbfNo recibiste el email? Revis\xe1 tu carpeta de spam o ",enterNewEmail:"ingres\xe1 un nuevo email",openGmail:"Abrir Gmail",openOutlook:"Abrir Outlook",notReceive2:" y prob\xe1 nuevamente",wait:"Esper\xe1",confirm:"Confirmar",seconds:"segundos",successAuth:"Se ha verificado tu email con \xe9xito.",enterCbl:"En unos segundos ingresar\xe1s a Contabilium autom\xe1ticamente.",confirmMail:"Cambio de email",enterNewEmailLabel:"Ingres\xe1 un nuevo correo electr\xf3nico para tu cuenta, donde recibir\xe1s el c\xf3digo de verificaci\xf3n.",goBackMail:"
1Volver a verificaci\xf3n de email",resendNow:"Reenviar ahora",errCodeApi:"El c\xf3digo que ingresaste es incorrecto o inv\xe1lido",expiredText:"El link ya no es v\xe1lido, por favor volv\xe9 a recuperar tu contrase\xf1a.",expiredText2:"Record\xe1 que el link tiene validez por 24 horas.",disableAccount:"Tu cuenta se ha deshabilitado temporalmente porque aun no has ingresado el c\xf3digo de verificaci\xf3n que enviamos a",pleaseEnterCode:"Por favor ingresa el c\xf3digo para volver a habilitar tu cuenta"},dashboard:{accounts:"Cuentas a pagar",sales:"Ventas - Comparativo",incomeExpenses:"Ventas vs Compras",dashboard:"Dashboard",seeInvoice:"Ver factura",pay:"Pagar",seeAll:"Ver todas",noBills:"A\xfan no ten\xe9s cuentas a pagar",noBillsChUy:"A\xfan no tienes cuentas a pagar",noSales:"A\xfan no has emitido comprobantes",lastUpdate:"\xdaltima actualizaci\xf3n: 23:30 hs.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",dashboardData:"Los datos que se muestran en esta pantalla se sincronizan cada 5 minutos",noPending:" A\xfan no hay datos para mostrar",noPendingChUy:" A\xfan no hay datos para mostrar",remainingBalance:"Total anual de ventas sin IVA dentro del a\xf1o calendario.",tooltipPendingPay:"Total de saldo pendiente de cobro con IVA incluido.",tooltipBoxes:"Saldo acumulado hist\xf3rico de la caja visualizada.",salesPastMonth:"Ventas mes anterior",salesThisMonth:"Ventas este mes",lastSixMonths:"\xdaltimos 6 meses",noPermits:"No ten\xe9s permisos para visualizar este gr\xe1fico",error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",lockAnualBilling:"No ten\xe9s permisos para visualizar este dato",lockAnualBillingCh:"No tienes permisos para visualizar este dato",errorAnualBilling:"Intent\xe1 nuevamente m\xe1s tarde.",errorAnualBillingCh:"Intenta nuevamente m\xe1s tarde.",payNow:"Pagar ahora",payLater:"Pagar\xe9 m\xe1s tarde",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",rut:"RUT",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",expiredPlanCh:"El plazo para pagar tu plan se encuentra vencido. Ponte al d\xeda haciendo",click:"click aqu\xed.",popupText1:"Tu plan se encuentra impago",popupText2:"Actualmente est\xe1s en el per\xedodo de gracia ya que",popupText3:"tu plan se encuentra vencido hace ",popupText4:"d\xedas.",popupText5:"Te sugerimos realizar el pago lo antes posible",popupText6:"para que puedas seguir utilizando la plataforma.",anualBilling:"Facturado anual",buttonAnualBillingND:"+ Nueva factura",boxes:"Cajas",buttonBoxesND:"+ Nueva Caja",pendingPayment:"Pendiente de cobro",pendingPaymentBtn:"Ver detalle",errorText:"Se produjo un error.",tooltipUnitsSold:"Refleja la cantidad de unidades vendidas durante el mes actual, el mes anterior y el mismo mes del a\xf1o pasado. Solo se incluyen \xedtems con SKU; los combos se contabilizan como una sola unidad.",tooltipGetSales:"Muestra el total de ventas netas (sin IVA) correspondientes al mes en curso, mes anterior y a\xf1o calendario.",tooltipPendingBills:"Muestra el total de saldos pendientes de cobro con IVA incluido y su desglose en vencidas, por vencer y saldos a favor de tus clientes.",tooltipPendingBillsRegion:"Indica el total de saldos pendientes de cobro con IVA incluido, calculados al d\xeda cerrado.",tooltipVatPosition:"Este valor muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un dato estimativo, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes.",tooltipVatPositionCurrent:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipVatPositionPrevious:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes anterior. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipValueStock:"Este valor representa el total del stock disponible, valorizado al precio de venta actual.",salesVariationTooltip:"Variaci\xf3n respecto al mes anterior",unitsVariationTooltip:"Variaci\xf3n respecto al mismo mes a\xf1o anterior",thisYear:"Este a\xf1o",lastMonth:"Mes anterior",getSalesTitle:"Ventas del mes sin iva",viewDetail:"Ver detalle",valuedStockLegend:"Valor total al precio de venta",dateDashboard:"Datos actualizados al cierre del d\xeda",currentMonth:"Mes actual",previousMonth:"Mes anterior",vatSales:"IVA ventas",vatPay:"IVA a pagar",vatBuys:"IVA compras",pen
1dingBillsLegend:"Saldo con IVA incluido",minimumStockTitle:"Stock m\xednimo",minimumStockLegend:"Alcanzaron el stock m\xednimo",minimumStockTooltip:"Productos y combos cuyo stock actual est\xe1 por debajo del m\xednimo definido.",minimumStockProducts:"productos",minimumStockCombos:"combos",salesByChannelTitle:"Ventas por canal",salesByChannelTooltip:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",salesByChannelFilter:"Filtrar",salesByChannelViewReport:"Ver ventas por integraci\xf3n",salesByChannelSelectChannels:"Seleccionar canales",salesByChannelMaxSelection:"M\xe1ximo 5 canales",salesByChannelApply:"Aplicar",salesByChannelOthers:"Otros",salesByChannelTotalSales:"Total ventas:",salesByChannelViewDetail:"Ver detalle",noPermissionText:"No tienes permisos para ver esta informaci\xf3n. Por favor, contacta a tu administrador.",noPermissionToViewData:"Tu perfil no tiene acceso a esta informaci\xf3n.",contactAdminForAccess:"Contacta a tu administrador para solicitarlo.",customizeDashboardEmptyState:"Personaliza tu dashboard para visualizar tu informaci\xf3n.",filtersLimitationText:"la personalizaci\xf3n del dashboard",getSalesLimitationText:"el reporte de cuentas a pagar",boxesLimitationText:"tesorer\xeda",pendingBillsLimitationtext:"el reporte de pendiente de cobro",popUpText:"No pudimos procesar el cobro autom\xe1tico de tu plan",popUpText1:"Actualmente te encontr\xe1s en el",popUpText2:"per\xedodo de gracia",popUpText3:"ya que",popUpText4:"tu plan est\xe1 vencido.",popUpText5:"Intentaremos realizar el cobro autom\xe1ticamente en los pr\xf3ximos d\xedas, pero es importante que regularices tu situaci\xf3n para evitar la interrupci\xf3n del servicio. En tu resumen bancario ver\xe1s el cargo como:",popUpText6:"\xbfNecesit\xe1s ayuda?",popUpText7:"Contactar al soporte",overdueWhy:{reason1:"No hay fondos suficientes en la tarjeta.",reason2:"Tu banco requiere autorizaci\xf3n previa para este tipo de d\xe9bitos.",reason3:"La tarjeta venci\xf3 o fue reemplazada."},completeConfiguration:"Completa la configuraci\xf3n inicial",tooltipCustomerRanking:"Presenta los 5 clientes con mayor volumen de compras en el periodo filtrado.",tootilPendingPayments:"Los comprobantes se ordenan autom\xe1ticamente por fecha de vencimiento, del m\xe1s pr\xf3ximo al m\xe1s lejano.",noData:"A\xfan no hay datos para mostrar",newBuy:"Nueva compra",emitReceipt:"Emitir comprobante",createReceipt:"Crea tu primer comprobante",products:"productos",product:"producto",closedWeek:"Rango de fechas",hide:"Ocultar",show:"Mostrar",sameMonth:"Mismo mes a\xf1o ant.",noDataFor:"A\xfan no hay datos para",loadFailed:"Error al cargar",loadBoxes:"Error al cargar cajas",loadSales:"Error al cargar ventas",loadReceivables:"Error al cargar pendiente de cobro",loadSalesVsBuys:"Error al cargar Ventas vs Compras",loadCustomerRanking:"Error al cargar ranking de clientes",loadPayables:"Error al cargar cuentas a pagar",loadUnitsSold:"Error al cargar unidades vendidas",loadVatPosition:"Error al cargar posici\xf3n de IVA",noPermissionMessage:"Este reporte est\xe1 disponible solo para usuarios con planes superiores.",upgradePlan:"Actualizar plan",prev:"Anterior",payLaterOverdue:"Pagar\xe9 m\xe1s tarde",balance:"Saldo",overdue:"Vencidas",dueSoon:"Por vencer",favorableBalance:"Saldo a favor",customize:"Personalizar",all:"Todas",purchases:"Compras",inventories:"Inventarios",reports:"Reportes",availableWidgets:"Indicadores disponibles",noWidgetsAvailable:"No hay ning\xfan indicador disponible",reset:"Restablecer",close:"cerrar",monthlySales:"Ventas del mes",widgetDescription:"Informaci\xf3n relevante del widget.",widgetDescriptionGetSales:"Ventas del mes actual y su comparaci\xf3n con el mes anterior y el a\xf1o.",widgetDescriptionPendingBills:"Total de saldos pendientes de cobro, con IVA incluido.",widgetDescriptionUnitsSold:"Unidades vendidas del mes y variaci\xf3n con per\xedodos anteriores.",widgetDescriptionSalesVsBuys:"Comparaci\xf3n de ventas y compras en el per\xedodo seleccionado.",widgetDescriptionCustomerRanking:"Top 5 de clientes con mayores compras.",widgetDescriptionPendingPayments:"Obligaciones pendientes ordenadas por vencimiento.",widgetDescriptionVatPosition:"Diferencia entre IVA Ventas e IVA Compras, filtrable por mes actual o anterior.",widgetDescriptionMinimumStock:"Productos/Combos por debajo del stock m\xednimo definido.",widgetDescriptionSalesByChannel:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",exclusivePlan:"Exclusivo plan Full/Enterprise",added:"A\xf1adido",add:"A\xf1adir",salesCard:"Ventas",quickAccess:{title:"Accesos r\xe1pidos",tooltip:"Accesos directos a tus secciones m\xe1s utilizadas.",newSale:"Nva. venta",newPurchase:"Nva. compra",clients:"Clientes",suppliers:"Proveedores",currentAccount:"Cta. cr\xe9dito",integrations:"Integraciones",newBudget:"Nva. cotizaci\xf3n",cashRegisters:"Cajas",products:"Productos",newSaleSubtitle:"Crear Comprobante",newPurchaseSubt
1itle:"Crear compra",newBudgetSubtitle:"Crear cotizaci\xf3n",cashRegistersSubtitle:"Ver cajas",productsSubtitle:"Ver productos y servicios",integrationsSubtitle:"Ver integraciones"},tooltipCustomize:"Personaliza tu dashboard.",tooltipCustomizeEditMode:"Est\xe1s en modo edici\xf3n.",tooltipReset:"Restaura la vista predeterminada del dashboard, incluyendo indicadores y filtros aplicados.",tooltipAddToDashboard:"Agregar al dashboard",tooltipRemoveWidget:"Quita este indicador del dashboard. Puedes volver a agregarlo cuando quieras.",planUpgradeTitle:"Tu plan es Standard y guarda la configuraci\xf3n de forma temporal. Personaliza tu dashboard a partir del plan Pro.",planUpgradeSubtitle:"Tu plan guarda la configuraci\xf3n de forma temporal.",updatePlan:"Actualizar plan",dashboardUnavailableText:"Actualizando tu dashboard. Intentalo m\xe1s tarde.",initialSetupHelp:"\xbfNecesit\xe1s ayuda con la configuraci\xf3n inicial?",visitHelpCenter:"Visita nuestro centro de ayuda"},descriptiveFieldsSelectPlaceholder:"Selecciona un valor",descriptiveFieldsInactiveValue:"(inactivo)",descriptiveFieldsLoading:"Cargando campos descriptivos...",descriptiveFieldsErrorNotAvailable:"Uno de los campos descriptivos ya no est\xe1 disponible. Actualiza la p\xe1gina y vuelve a guardar.",descriptiveFieldsErrorValueInactive:"Uno de los valores elegidos fue inactivado. Actualiza la p\xe1gina y elige otro.",descriptiveFieldsErrorValueInvalid:"Uno de los valores elegidos no es v\xe1lido para ese campo.",descriptiveFieldsErrorDuplicated:"Un campo descriptivo solo puede tener un valor.",account:{accountTitle:"Mi cuenta",company:"Empresa",companyConfig:"Configura la informaci\xf3n de tu empresa.",generalData:"Datos generales",users:"Usuarios",costCenter:"Centros de costos",billingAndReceipts:"Facturaci\xf3n y comprobantes",billData:"Configura los datos que van en tu factura.",salesCondition:"Condici\xf3n de venta",salesPoints:"Sucursales",vouchersTypes:"Tipos de comprobantes",billFormat:"Formato de factura",taxSettings:"Configuraci\xf3n impositiva",advancedParametersConfig:"Configura par\xe1metros avanzados.",taxSettingsConfig:"Configur\xe1 impuestos y retenciones",economicActivities:"Actividades econ\xf3micas",vatSimple:"IVA Simple",perceptionAgent:"Agente de percepci\xf3n",retentionAgent:"Agente de retenci\xf3n",iibb:"IIBB",closeDates:"Fechas de cierre",preferences:"Preferencias",generals:"Generales",defaultObservations:"Observaciones predeterminadas",parameters:"Par\xe1metros",PDV:"Punto de venta (PDV)",customerAccess:"Acceso clientes",noticesAndAlerts:"Avisos y alertas",messagesAndNotificationsConfig:"Configura mensajes y notificaciones.",sendingVouchers:"Env\xedo de comprobantes",expirationNotices:"Avisos de vencimientos",alerts:"Alertas",ahaMoments:"Aha moments",notifications:"Notificaciones",additionalCompanies:"Empresas adicionales",additionalCompaniesConfig:"Configura tus empresas adicionales.",companiesAdministration:"Administrar empresas",API:"API",APICredentials:"Accede a las credenciales de API.",credentials:"Credenciales",configuration:"Configuraci\xf3n",backToPrincipalPanel:"Volver al panel principal",continue:"Continuar",currencyAvailable:"Disponible s\xf3lo para planes Full.",howDoesCurrencyWork:"\xbfC\xf3mo funciona la moneda secundaria?",infoCurrencyModalText:'Esta acci\xf3n puede demorar entre 24 y 48 horas. Te enviaremos un mail cuando la moneda "{{currencyName}}" est\xe9 activada.',contactSupport:"Contacta a soporte para inhabilitarla. Al hacerlo, se inactivar\xe1n los productos en USD y sus publicaciones vinculadas en integraciones.",defaultCurrency:"Moneda principal",secondaryCurrency:"Moneda secundaria",dollarCurrencyWithSymbol:"D\xf3lar (USD)",pesoCurrencyWithSymbol:"Pesos (CLP)",dollarCurrency:"D\xf3lar",pesoCurrency:"Pesos",activate:"Habilitar",active:"Habilitada",infoCurrencyConfirmationModalTitle:'\xbfEst\xe1s seguro/a de que deseas activar la moneda "{{currencyName}}"?',infoCurrencyConfirmationModalText:"Una vez activada, no ser\xe1 posible desactivarla. Esta restricci\xf3n se aplica para mantener la consistencia de la informaci\xf3n.",pendingActivation:"Activaci\xf3n pendiente",infoCurrencyModalTitle:"\xa1Activaci\xf3n iniciada con exito!",currencyErrorModalTitle:"Ha ocurrido un error en la activaci\xf3n de la moneda",currencyErrorModalText:"Lo sentimos, ha ocurrido un error en la activaci\xf3n de la moneda. Por favor intenta de nuevo m\xe1s tarde.",newCompany:"Nueva empresa",actualCompany:"Empresa actual",otherCompanies:"Tus otras empresas",logo:"LOGO",default:"Predeterminada",createdAt:"Creada el ",useThisCompany:"Usar esta empresa",deleteCompany:"Eliminar empresa",additionalCompany:{deleteCompanyDescription:"Antes de dar de baja la cuenta, sugerimos hacer un backup de la informaci\xf3n.",deleteReasonTitle:"Por favor, seleccion\xe1 el motivo de la baja.",deleteReasons:{priceReasonCode:"PRECIO",priceReason:"Baja por precio del producto",integrationReasonCode:"INTEGRACIONES",integrationReason:"Problemas con integraciones o API",closeReasonCode:"CIERRE DE NEGOCIO",closeReason:"Estoy cerrando o cambiando la actividad comercial de la cuenta.",pauseReasonCode:"PAUSA TE
1MPORAL",pauseReason:"Voy a pausar el uso de la cuenta por un tiempo.",badFunctionalityReasonCode:"MAL FUNCIONAMIENTO",badFunctionalityReason:"Reclamo por mal funcionamiento del sistema.",functionalitiesReasonCode:"FUNCIONALIDADES",functionalitiesReason:"No disponen de las funcionalidades que necesito.",paymentMethodsReasonCode:"MEDIOS DE PAGO",paymentMethodsReason:"No tengo los medios de pagos disponibles para el contrato del servicio",otherReasonCode:"OTROS",otherReason:"Otro motivo",otherReasonPlaceholder:"Ingresa tu motivo",minLengthError:"El motivo debe tener al menos 10 caracteres."},successMessage:"La empresa se ha desactivado con exito",errors:{userIdNotExist:"La empresa no existe",userChildUserAndParentUserEqual:"La empresa y el usuario padre son iguales",userChildUserNotExist:"La empresa no existe",userChildUserDesactivateExist:"La empresa ya fue desactivada previamente",userParentDistinct:"La empresa padre es distinta a la empresa a inactivar"},additionalCompanyEmptyState:"No se han encontrado empresas adicionales.",additionalCompanyEmptyStateText:"Intenta ajustar los filtros para obtener m\xe1s resultados."},cuitCuil:"RUT",socialReason:"Raz\xf3n social",searchARCA:"Buscar en SII",taxData:"Datos impositivos",fiscalAddress:"Domicilio fiscal",password:"Contrase\xf1a",passwordTooltipText:"Debe contener al menos 8 caracteres, incluyendo un nu\u0301mero, una letra mayu\u0301scula, una letra minu\u0301scula, y un s\xedmbolo",invalidMail:"Formato de correo inv\xe1lido",invalidPassword:"Formato de contrase\xf1a inv\xe1lido",invalidCUIT:"RUT inv\xe1lido",isRequired:"Campo obligatorio",additionalAccountCreated:"La cuenta se ha creado correctamente.",additionalAccountCreationError:"Ha ocurrido un error al crear la cuenta.",emailAlreadyExists:"El E-mail ingresado ya se encuentra registrado.",cuitAlreadyExists:"El RUT ingresado ya se encuentra registrado.",arcaDataError:"No se han encontrado los datos de SII.",arcaEmptyDataError:"Debe ingresar un CUIT para poder solicitar datos a SII.",additionalAccountLimitationError:"Has alcanzado el m\xe1ximo de empresas adicionales disponibles en tu plan.",createCompany:"Crear empresa",mySuscription:"Mi suscripci\xf3n",changePassword:"Cambiar contrase\xf1a",priceAndFunctionalities:"Precio y Funcionalidades",logout:"Cerrar sesi\xf3n",manageCAEs:"Administrar CAEs",digitalCertificate:"Certificado digital",manageFolios:"Administrar folios",passwordError:"Contrase\xf1a incorrecta. Vuelve a ingresarla para continuar con la baja",physical:"Natural",passwordWithLeyend:"Contrase\xf1a. Por favor, ingresa la contrase\xf1a con la que inici\xe1s sesi\xf3n.",reportsSending:"Env\xedo de reportes",saveChanges:"Guardar cambios",notificationsInfoText:"Te enviaremos un reporte semanal con informaci\xf3n relevante para tu negocio. Lo recibir\xe1s los lunes.",reportTypeTitle:"Marc\xe1 qu\xe9 tipo de informaci\xf3n quer\xe9s recibir seg\xfan tu actividad:",products:"Productos",productsLegend:"*Marc\xe1 esta opci\xf3n si vend\xe9s productos f\xedsicos. Vas a recibir informaci\xf3n sobre ventas, unidades, evoluci\xf3n, etc.",services:"Servicios (Proximamente)",servicesLegend:"*Marc\xe1 esta opci\xf3n si prest\xe1s servicios. Vas a recibir datos sobre ventas, comprobantes emitidos, evoluci\xf3n, etc.",dataSuccessfullyUpdated:"Bien hecho! Los datos se han actualizado correctamente.",chooseOneReport:"Lo sentimos! Ten\xe9s que elegir al menos una opci\xf3n de reporte.",errorSavingChanges:"Lo sentimos! Ocurri\xf3 un error al guardar los cambios. Intent\xe1 nuevamente.",automaticBilling:{title:"Facturador autom\xe1tico",noIntegrationsFound:"No se han encontrado integraciones",noIntegrationsFoundDescription:"Para configurar el facturador autom\xe1tico, primero debes conectar una integraci\xf3n.",connectIntegration:"Conectar integraci\xf3n",state:"Estado",startDate:"Fecha de inicio",toDate:"Fecha hasta",startDateTooltip:"Seleccion\xe1 la fecha de inicio para la facturaci\xf3n autom\xe1tica.",toDateTooltip:"Seleccion\xe1 la cantidad de d\xedas que se tomar\xe1n para la facturaci\xf3n autom\xe1tica.",integrations:"Seleccion\xe1 integraciones (m\xednimo 1)",toDateCheckbox:"Facturar hasta \xfaltimos 30 minutos",toDateDescription:"Seleccion\xe1 la cantidad de d\xedas hacia atras para la facturaci\xf3n autom\xe1tica. En caso de no seleccionar, se facturar\xe1 hasta 30 minutos despu\xe9s de la \xfaltima orden de venta.",toDateRequired:"Debe seleccionar una opci\xf3n o activar la facturaci\xf3n hasta los \xfaltimos 30 minutos",toDateRequiredDescription:"Debe seleccionar una opci\xf3n o activar la facturaci\xf3n hasta los \xfaltimos 30 minutos",integrationsRequired:"Debe seleccionar al menos una integraci\xf3n",startDateRequired:"Debe seleccionar una fecha de inicio",startDateRequiredDescription:"Debe seleccionar una fecha de inicio",stateRequired:"Debe seleccionar un estado",stateRequiredDescription:"Debe seleccionar un estado",validationError:"Por favor, complete todos los campos requeridos",
1saveError:"Error al guardar la configuraci\xf3n, intente nuevamente."},productFields:{title:"Campos de productos",description:"Configura los valores de los campos descriptivos que aplican a todo tu cat\xe1logo. Solo se mostrar\xe1n al crear o editar productos los campos que est\xe9n activos y tengan al menos un valor activo.",fieldNames:{marca:"Marca",linea:"L\xednea",material:"Material",origen:"Origen",temporada:"Temporada",calidad:"Calidad"},valuesCount:"{{count}} de {{limit}} valores",manageValues:"Administrar valores",statusInactive:"Inactivo",activateBlocked:"Para activar este campo, agrega al menos un valor activo.",deactivateTitle:"\xbfEst\xe1s seguro/a que quieres desactivar este campo?",deactivateText:"El campo dejar\xe1 de mostrarse al crear o editar productos. Los valores configurados y la informaci\xf3n ya registrada no se eliminar\xe1n.",deactivate:"Desactivar",valuesDescription:"Administra los valores disponibles para este campo.",backToFields:"Volver a Campos de productos",emptyTitle:"Este campo no tiene valores configurados.",emptyText:"Agrega los valores que podr\xe1n seleccionarse en los productos.",searchPlaceholder:"Busca un valor",noSearchResults:"No encontramos valores que coincidan con tu b\xfasqueda.",emptyFieldsT
1itle:"Todav\xeda no hay campos disponibles.",emptyFieldsText:"Los campos descriptivos todav\xeda no est\xe1n habilitados. Si el problema persiste, comun\xedcate con soporte.",newValuePlaceholder:"Ingresa un nombre de {{field}}",newValuePlaceholderFallback:"Ingresa un nombre",limitReached:"Alcanzaste el m\xe1ximo de {{limit}} valores para este campo. Elimina uno que no est\xe9 en uso para agregar otro.",nameRequired:"Ingresa un nombre para el valor.",nameTooLong:"El nombre no puede superar los {{max}} caracteres.",nameDuplicated:"Ya existe un valor con ese nombre en este campo.",renameTitle:"Editar valor",renameLabel:"Nombre del valor",deleteTitle:"\xbfQuieres eliminar el valor {{name}}?",deleteText:"Esta acci\xf3n no se puede deshacer.",deleteBlockedReason:"No se puede eliminar porque est\xe1 asignado a productos. Puedes inactivarlo para que no se use en productos nuevos.",lastActiveTitle:"Este es el \xfaltimo valor activo del campo",lastActiveText:"Si contin\xfaas, el campo se desactivar\xe1 y dejar\xe1 de mostrarse al crear o editar productos. Los valores y la informaci\xf3n ya registrada no se eliminar\xe1n.",retry:"Reintentar",errors:{fieldNotFound:"El campo no existe o no est\xe1 disponible.",valueNotFound:"El valor no existe o no pertenece a tu empresa.",noActiveValues:"Para activar el campo tiene que haber al menos un valor activo.",valueInUse:"El valor est\xe1 asignado a productos y no se puede eliminar. Puedes inactivarlo."}}},captchaVerificationButton:"Verificar",captchaVerificationSuccess:"Verificaci\xf3n completada",captchaVerificationFailed:"\xa1Verificaci\xf3n fallida! Por favor intente nuevamente.",actives:"Activas",inactive:"Inactivas",PDVAddinModalTitle:"\xa1Potenci\xe1 tu plan con el Punto de Venta (PDV)!",PDVAddinModalText1:"El Punto de Venta (PDV) es un complemento (addin) disponible para tu cuenta.",PDVAddinModalText2:"Si quer\xe9s contactarlo y aprovechar todas sus funciones, contacta a nuestro equipo escribiendo a ",supportEmail:"[email protected]",ruc:"RUC",blockedModuleText:"Con un plan superior, podr\xe1s acceder a todas las funcionalidades avanzadas, incluyendo ",uploadPlan:"Actualiza tu plan y empieza a aprovechar todas las ventajas.",errorGeneratingRemittance:"Error al generar remito",trainingEvents:{emptyStateTitle:"A\xfan no hay capacitaciones disponibles.",emptyStateDescription:"Cuando se publiquen nuevas capacitaciones, las vas a encontrar en esta secci\xf3n.",modalTitle:"Eventos de Capacitaci\xf3n",registerButton:"Registrarse",watchVideoButton:"Ver video"},referred:"Refiere",referredProgram:"Programa de referidos"}},uy:{translation:{error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",bulkImportVariantsRetry:"Reintentar",bulkImportVariantsStatsErrorTitle:"No pudimos obtener el resumen del archivo",bulkImportVariantsStatsErrorText:"Reintent\xe1 para conocer cu\xe1ntas filas se pueden importar y continuar.",bulkImportVariantsStatusComplete:"Completada",bulkImportVariantsStatusError:"Err\xf3nea",bulkImportVariantsStatusInProgress:"En progreso",bulkImportVariantsRunningStatusError:"No pudimos verificar si hay una importaci\xf3n en curso. Reintentaremos autom\xe1ticamente.",bulkImportVariantsSkuDuplicatedError:"El SKU ingresado ya pertenece a otro concepto.",bulkImportVariantsConceptNotParentError:"El SKU agrupador informado corresponde a un producto o servicio que no admite variantes.",bulkImportVariantsErrorDetailTitle:"Registro de productos err\xf3neos",bulkImportVariantsGrouperSkuColumn:"SKU Agrupador",bulkImportVariantsSkuColumn:"SKU",bulkImportVariantsFieldsColumn:"Campos",bulkImportVariantsErrorTypeColumn:"Tipo de error",bulkImportVariantsHeadingField:"Rubro",bulkImportVariantsSubheadingField:"Subrubro",bulkImportVariantsTypeField:"Tipo",bulkImportVariantsCurrencyField:"Moneda",bulkImportVariantsProviderField:"Proveedor",bulkImportVariantsLimitReachedField:"L\xedmite alcanzado",alertC2:"El plazo para pagar tu plan se encuentra vencido. Comunicate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",alertC2Ch:"El plazo para pagar tu plan se encuentra vencido. Comun\xedcate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",rut:"RUT",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",click:"click aqu\xed.",tools:"HERRAMIENTAS",attributes:"Atributos",accept:"Aceptar",cancel:"Cancelar",add:"Agregar",save:"Guardar",AddPh:"Adjuntar foto",titleAttributes:"Productos y servicios",titlePrincipalAttributes:"Datos principales",subTitlePrincipalAttributes:"Estos son los datos b\xe1sicos que el sistema necesita para poder facturar un producto.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",type:"Tipo",condSKU:"C\xf3digo (SKU)",condSKU2:"C\xf3digo SKU",barcode:"C\xf3digo de barras",SKU:"SKU",name:"Nombre",state:"Estado",category:"Rubro",subcategory:"Sub-rubro",amounts:"Importes",requiredFiles:"
1Complet\xe1 los campos obligatorios.",stockMin:"Stock m\xednimo",stockMinSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Configuraci\xf3n -> Alertas y avisos -> Alertas.",aditionalData:"Datos adicionales",aditionalDataSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Configuraci\xf3n -> Alertas y avisos -> Alertas.",entityName:"Entidades",generalData:"Datos generales",entityPrice:"Moneda y saldo",entityMoreOptions:"Mas opciones",entitylessOptions:"Menos opciones",entity:"Entidad",accountName:"Nombre de cuenta",currency:"Moneda",currencies:"Monedas",balance:"Saldo",address:"Direcci\xf3n",email:"Email",executive:"Ejecutivo",observations:"Observaciones",observationsPlace:"No es necesario agregar una observaci\xf3n pero te puede servir de utilidad",reqField:"Campo obligatorio",buttonNewEntity:"+ Nuevo",actualBalance:"Saldo actual",newProduct:"Nuevo producto o servicio",back:"Volver",process:"Procesando...",addNew:"A\xf1adir nuevo",createNproduct:"Crear un nuevo producto",createNService:"Crear un nuevo servicio",createNCombo:"Crear un combo de 2 o m\xe1s productos/servicios",product:"Producto",service:"Servicio",combo:"Combo",fieldsReq:"Los campos marcados con",required:"son requeridos.",requiredField:"Este campo es requerido",next:"Siguiente",comboItems:"Items del combo",addNewProduct:"A\xf1adir nuevo producto",addNewService:"A\xf1adir nuevo servicio",addNewCombo:"A\xf1adir nuevo combo",addProductName:"Ingresa el nombre del producto",addServiceName:"Ingresa el nombre del servicio",addComboName:"Ingresa el nombre del combo",typeProduct:"Tipo de producto",typeService:"Tipo de servicio",typeCombo:"Tipo de combo",amount:"C
1antidad",description:"Descripci\xf3n",item:"Item",internalCost:"Costo interno s/IVA",unitPrice:"Precio unitario s/IVA",unitPriceWithIVA:"Precio unitario c/IVA",priceDetail:"Detalle del precio",detail:"Detalle",addMinStock:"Ingrese el stock m\xednimo",alertMinStock:"Te enviaremos una alerta cuando el stock llegue al m\xednimo.",tooltipMinStock:"Para configurar el alerta de stock m\xednimo ingresa a Mi cuenta > Datos de la empresa > Alerta y avisos",alertStock:"Alerta de stock m\xednimo",automaticPrice:"Precio autom\xe1tico",automaticPriceExp:"El precio autom\xe1tico se calcula en base al precio sin IVA de los productos que lo componen.",internalCost2:"Costo interno sin IVA",costEffec:"Rentabilidad",unitPrice2:"Precio unitario con IVA",unitPrice3:"Precio unitario sin IVA",finalPrice:"Precio final",AdditionalInfo:"Informaci\xf3n adicional",CodOEM:"C\xf3digo OEM",supplierOr:"Proveedor origen",supplier:"Proveedor",selectSupplierOr:"Seleccione un cliente/proveedor",purchaseAccount:"Cuenta Compra",selectAccount:"Seleccione una cuenta",accountSale:"Cuenta Venta",merchAccount:"Cuenta Mercader\xeda",visibleSalesMod:"Visible en m\xf3dulo ventas",achievedRG:"Alcanzado por RG 5329/2023",mainInformation:"Informaci\xf3n principal",title:"T\xedtulo",active:"Activo",formatImg:"JPG, PNG o GIF",selectFormat:"Selecciona un archivo en formato",selectFormat2:"con un formato m\xe1ximo recomendado de 100x70px.",img:"Imagen",deposit:"Dep\xf3sito",initialStock:"Stock inicial",appAll:"Aplicar a todos",uniquePriceBlockTitle:"Precio \xfanico para todas las variantes",uniquePriceBlockTooltip:"El precio que cargues ac\xe1 se aplicar\xe1 autom\xe1ticamente a todas las variantes del producto.",uniquePriceInfoCardVariants:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Ten\xe9s configurado utilizar el mismo precio para todas las variantes. Complet\xe1 el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas. Si necesit\xe1s editar informaci\xf3n espec\xedfica de una variante, hac\xe9 clic en el \xedcono del l\xe1piz.",uniquePriceLockedTooltip:"El precio de esta variante se completa autom\xe1ticamente con el valor del bloque Precio \xfanico. Pod\xe9s modificar esta configuraci\xf3n desde Mi Cuenta \u2192 Preferencias \u2192 Par\xe1metros.",uniquePriceConvergenceWarning:"Las variantes de este producto tienen precios distintos. Al guardar, todas quedar\xe1n con los valores del bloque Precio \xfanico.",uniquePriceConfirmTitle:"\xbfActualizar el precio de todas las variantes?",uniquePriceConfirmText:"Este producto tiene variantes con diferentes precios. Al continuar, ",uniquePriceConfirmTextHighlight:"todas las variantes se actualizar\xe1n con el precio definido en Precio \xfanico para todas las variantes: {{price}}.",uniquePriceConfirmTextReplace:" Este cambio reemplazar\xe1 los precios actuales de todas las variantes.",uniquePriceConfirmContinue:"Continuar",uniquePriceMissingTitle:"Complet\xe1 el precio para continuar",uniquePriceMissingText:"Detectamos que este producto tiene variantes con distintos precios. Complet\xe1 el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas las variantes.",uniquePriceMissingUnderstood:"Entendido",only:"\xdanico",withVariants:"Con variantes",tooltipVariant:"Aprende m\xe1s sobre variantes desde Tutoriales recomendados",noOption:"No se ha encontrado una opci\xf3n",selectCat:"Selecciona un rubro",selectSubCat:"Selecciona un sub-rubro",selectItem:"Seleccione un item",initialStockCharge:"Carga inicial de stock",presentations:"Presentaciones",presentationsInfo:"Las Presentaciones que configures se crear\xe1n autom\xe1ticamente en todos los dep\xf3sitos. El stock siempre se administra en unidades base.",presentationsVariantsInfo:"Las Presentaciones pueden aplicarse a todas las variantes o configurarse de forma independiente en cada variante. El stock siempre se administra en unidades base.",addPresentation:"Agregar presentaci\xf3n",noAdditionalPresentations:"Sin presentaciones adicionales.",presentationTypesEmptyTitle:"A\xfan no ten\xe9s tipos de Presentaciones configurados",presentationTypesEmptyDescription:"Configur\xe1 al menos un tipo de Presentaci\xf3n para poder agregarlo a tus productos.",configurePresentations:"Configurar Presentaciones",presentationType:"Tipo de presentaci\xf3n",selectPresentationType:"Seleccionar tipo...",equalsTo:"Equivale a",unitsLabel:"unidades",presentationEquivalenceInvalid:"La equivalencia debe ser un n\xfamero entero mayor a 1.",presentationEquivalenceMax:"La equivalencia no puede superar 999.999.",weight:"Peso",weightPlaceholder:"Ej: 3,5",dimensions:"Dimensiones",dimensionsPlaceholder:"Ej: 30x20x15",adjustmentPercent:"Ajuste (%)",adjustmentPlaceholder:"0",presentationPriceWithIva:"Precio Present. c/IVA",presentationPriceWithoutIva:"Precio Present. s/IVA",presentationPriceComplementWithIva:"Precio Present. c/IVA",presentationPriceComplementWithoutIva:"Precio Present. s/IVA",presentationPriceMaxTooltip:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y decimales seg\xfan configuraci\xf3n base.",presentationCalculatedPriceExceedsMaxAlert:"El precio calculado de una o m\xe1s presentaciones supera el m\xe1ximo permitido. Revis\xe1 la equivalencia o el precio unitario para continuar.",price:"Precio",complete:"completos",presentationsCount:"presentaciones",noVariantsForPresentations:"No hay variantes para configurar presentaciones.",applyPresentationsToAll:"Aplicar a todas las variantes",applyPresentationsToAllConfirmTitle:"Confirmar cambio",applyPresentationsToAllConfirm:"\xbfDese\xe1s aplicar la misma configuraci\xf3n de presentaciones a todas las variantes? Las configuraciones particulares de cada variante ser\xe1n reemplazadas por la configuraci\xf3n general.",applyPresentationsToAllDisableConfirm:"\xbfDese\xe1s configurar las presentaciones de forma independiente por variante? Dejar\xe1s de aplicar la misma configuraci\xf3n a todas las variantes.",presentationDeleteBlockedTitle:"No se pudo eliminar la Presentaci\xf3n",presentationDeleteConfirmTitle:"\xbfEst\xe1s seguro que deseas eliminar la presentaci\xf3n {{name}}?",presentationDeleteBlockedDescription:"La Presentaci\xf3n no puede eliminarse porque ya fue utilizada en uno o m\xe1s comprobantes. Si ya no necesit\xe1s utilizarla, pod\xe9s inactivarla.",searchVariantSkuPlaceholder:"Buscar por SKU o nombre",noVariantsForSkuSearch:"Sin variantes para el SKU buscado",charactersToSearch:"Escribe dos o m\xe1s caracteres para buscar",noResults:"No hay resultados para mostrar",errorTitle:"Ha ocurrido un error",errorcontent:" Lo sentimos, ha ocurrido un error. No se pudo completar tu solicitud. Por favor, intenta m\xe1s tarde.",errorContent2:"Lo sentimos, ha ocurrido un error. No se pudo completar la acci\xf3n. Por favor intenta de nuevo m\xe1s tarde.",tooldeleteEntities:"No es posible eliminar entidades con comprobantes asociados",entitiesNotDelete:"No es posible eliminar todas la entidades. Debe haber al menos una entidad activa",Advert
1isements:"Anuncios",alertFuntionalities1:"Aqu\xed encontraras inpormaci\xf3n actualizada sobre las \xfaltimas funcionalidades que hemos agregado, para que puedas aprovechar al m\xe1ximo nuestra plataforma ",alertFuntionalities2:"En contabilium queremos escucharte. Ay\xfadanos a mejorar la plataforma dej\xe1ndonos tus sugerencias o votando por las que consideres importantes. Solo presiona la flecha hacia arriba junto al n\xfamero de la sugerencias",alertFuntionalities3:"Aqu\xed encontraras un listado de las mejoras y nuevas funcionalidades que pronto estar\xe1n disponibles en nuestra plataforma. \xa1Mantente al d\xeda con lo que viene! ",headingsError:"Si no cuenta con rubros, deber\xe1 crear uno",attributeWarning:"Est\xe1s por modificar un atributo",attributeChangeWarning:"Al proceder se modificar\xe1 en cada producto o servicios d\xf3nde se encuentre configurado.",modifyAttribute:"Modificar atributo",attributeConfig:"Configuraci\xf3n de atributo",attributeName:"Nombre del atributo",writeName:"Escribe un nombre",attributeDescription:"Descripci\xf3n del atributo",writeDescription:"Escribe una descripci\xf3n",variant:"Variante",addNewVariant:"A\xf1adir nueva variante",close:"Cerrar",eliminateAttribute:"No puedes eliminar el atributo",eliminateWarning:"Para proceder deber\xe1s eliminar los productos o servicios que est\xe9n asociados a \xe9ste atributo.",IVAPer:"IVA %",finalPriceWoIVA:"PRECIO SIN IVA",yes:"Si",no:"No",store:"Bodega",tooltipIVA2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVA1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVAStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo pod\xe9s cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl500:"Est\xe1s usando el precio con IVA incluido y redondeo de 500. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVACl1000:"Est\xe1s usando el precio con IVA incluido y redondeo de 1000. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",tooltipIVAClStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo puedes cambiar desde Mi cuenta > Configuraci\xf3n > Preferencias > Par\xe1metros.",mainData:"Datos principales",search:"Buscar",searchPlaceHolder:"Escribe para buscar",addNewAttribute:"A\xf1adir nuevo atributo",attributesVariants:"Variantes del atributo",deleteAttribute:"Eliminar atributo",attributesAndVariants:"Nombre y variantes del atributo",typeSelectorDescriptionProduct:"Un producto \xfanico es para aquellos comercios que solo tienen un tipo de producto, mientras que cargar un producto con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",newFunctionality:"\xa1Nueva funcionalidad!",variantName:"Nombre variante",attributesConfig:"Configuraci\xf3n de atributos",variantsConfig:"Configuraci\xf3n de variantes",attribute:"Atributo",variantsSummary:"Al presionar las variantes, estas se deseleccionar\xe1n.",variantsSummaryEdition:"Solo se pueden activar y agregar nuevas variantes",addExitAttribute:"Agregar atributo existente",depositName:"Nombre del dep\xf3sito",depositInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de los dep\xf3sitos.",storeName:"Nombre de la bodega",storeInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de las bodegas.",addVariant:"Agregar variante",apply:"Aplicar",applyChanges:"Aplicar cambios",insertName:"Ingresar nombre",typeSelectorDescriptionService:"Un servicio \xfanico es para aquellos comercios que solo tienen un tipo de servicio, mientras que cargar un servicio con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",variantStatusTooptip:"Si el estado es inactivo todas las variantes quedar\xe1n inactivas",stockInfo:"*Al ingresar stock desde esta pantalla no se generan de forma autom\xe1tica los asientos contables por ajuste de mercader\xeda.",productSearchLabel:"Buscar nombre, descripci\xf3n o SKU",viewFilters:"Ver filtros",filtersApplied:"filtros aplicad
1os",allProducts:"Todos los productos",allHeadings:"Todos los rubros",allSubHeadings:"Todos los sub-rubro",allProviders:"Todos los proveedores",productType:"Tipo de producto",filters:"Filtros",filter:"Filtrar",labelPrinting:"Impresi\xf3n de etiquetas",selectPrintingItems:"Seleccionar los \xedtems a imprimir",labelPrintingConfig:"Configuraci\xf3n de etiquetas",printers:"Impresora",selectPrinter:"Seleccione impresora",selectOption:"Seleccione una opci\xf3n",selectFieldsToShow:"Seleccione los campos de la etiqueta",barcodeFormat:"Formato del c\xf3digo de barras",labelQuantity:"Cantidad de etiquetas por producto",labelSize:"Tama\xf1o de etiqueta",fieldsToShow:"Campos a mostrar",print:"Imprimir",preview:"Vista previa",successDownload:"Se descarg\xf3 el archivo para imprimir correctamente",errorDownload:"No se pudo descargar el archivo para imprimir correctamente",noResult:"No se encontraron resultados",emptyStateSearchProductsText:"Intenta cambiar los filtros, buscar otro art\xedculo, descripci\xf3n o SKU",view:"Ver",all:"Todos",grouperSkuCodeP:"Al cargar un producto con variantes se debe crear un c\xf3digo SKU agrupador",grouperSkuCodeS:"Al cargar un servicio con variantes se debe crear un c\xf3digo SKU agrupador",labelBarCodeLengthMax:"Se ha excedido la longitud m\xe1xima permitida para el c\xf3digo de barras.",labelBarCodeLabelLengthDistinct:"Los formatos de c\xf3digo de barra de tus productos elegidos no son compatibles con el formato de c\xf3digo de barra seleccionado.",defaultError:"Ha ocurrido un error, por favor, vuelve a intentarlo.",columnMatchingTitle:"Asignar los campos importados a los productos",columnMatchingInfo:"Selecciona las columnas de tu archivo y asegurate de hacerlas coincidir con los campos requeridos para la importaci\xf3n.",columnName:"Nombre de la columna",assignField:"Asignar al campo",firstRowPreview:"Vista previa 1ra fila",bulkImportTitle:"Importaci\xf3n masiva de informaci\xf3n",bulkImportDate:"Fecha de importaci\xf3n",bulkImportStatus:"Estado de importaci\xf3n",bulkImportHistory:"Historial de importaciones",downloadBaseFile:"Descargar planilla base",select:"Seleccionar",uploadFile:"Subir archivo xlsx o csv",dragAndDropFileTitle:"o arrastrar el archivo aqu\xed.",validUploadFilesText:"Record\xe1 que solo se pueden subir archivos ",columnOrder:"Asignaci\xf3n de columnas",downloadFile:"Descarga de planilla ",downloadFileButton:"Descargar planilla",downloadFileInfo:"Descarg\xe1 la planilla y utiliz\xe1 el archivo modelo o hac\xe9 click en siguiente y sub\xed tu propia planilla. Aseg\xfarate de completar todos los campos obligatorios.",uploadFileHelp:"Para guardar el archivo haz click en \u201cArchivo\u201d -> \u201cGuardar Como\u201d y guard\xe1 tu excel en formato \u201c.xlsx\u201d. Si tu computadora es de la marca Apple, podr\xedas necesitar esta informaci\xf3n.",bulkImportConfirmation:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n?",bulkImportConfirmationWithTable:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n? De no ser as\xed, sugerimos que revises el listado que figura en la previsualizaci\xf3n.",bulkImportProcessedText:"Ten presente que este proceso se ejecuta en segundo plano. Cuando finalice, se te enviar\xe1 una notificaci\xf3n con la confirmaci\xf3n.",bulkImportDataSizeText:"Dependiendo de la cantidad de datos a importar el proceso puede demorar algunos minutos.",bulkImportProductErrorText:"Los productos marcados con errores en la tabla o que posean datos incorrectos al momento de la importaci\xf3n, no ser\xe1n importados.",buklImportCheckText:"He verificado que los datos a subir son correctos",bulkImportErrorModalTitle:"Ha ocurrido un error en la importaci\xf3n",bulkImportErrorModal:"Por favor, verific\xe1 que los campos o el archivo importado posean el formato correcto.",import:"Importar",importSuccess:"\xa1Importaci\xf3n iniciada con \xe9xito!",importNewsNotification:"Mantente atento al historial de importaciones para ver en que estado se encuentra tu importaci\xf3n.",templateGuide:"Indicaciones para completar la planilla",columnTemplateGuide:"Indicaciones para reacomodar las columnas",firstTutorialText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",secondTutorialText:"Debes completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evit\xe1 el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",thirdTutorialText:"Para determinar el tipo de concepto (ya sea producto o servicio), utiliza \u201cP\u201d para producto y \u201cS\u201d para servicio. Esto ayuda a clasificar adecuadamente los elementos en la planilla.",fourthTutorialText:"El estado de un producto se define como activo (A) o inactivo (I). Pod\xe9s crear nuevos productos con estados activos o inactivos, o modificar el estado de productos existentes seg\xfan sea necesario.",fifthTutorialText:"En el caso de usuarios con bi-moneda, la moneda debe ser especificada como UYU o USD. No es posible editar la moneda de un producto previamente cargado en el sistema.",sixthTutorialText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",seventhTutorialText:"Si un producto ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",firstColumnTutorialText:"Representa el t\xedtulo del campo requerido para la importaci\xf3n de datos.",secondColumnTutorialText:"Columna en donde se mostrar\xe1n los t\xedtulos del archivo importado.",thirdColumnTutorialText:"Se debe seleccionar un elemento. Los datos importados de este elemento se asignar\xe1n al campo requerido. Si un t\xedtulo ya se encuentra seleccionado, no puede repetirse en otro campo requerido.",fourthColumnTutorialText:"Vista previa del primer dato del archivo importado que se asignar\xe1 al campo requerido.",firstRow:"1\xb0 Fila",fatherSKU:"SKU padre",unitP:"P. unitario",barCode:"C\xf3d. barra",urlImg:"URL imagen",originSupplier:"C\xf3d. proveedor",purchaseAcc:"Cta. compra",saleAcc:"Cta. venta",merchAcc:"Cta. mercader\xeda",rgAchived:"Alcanzado RG",attribute1:"Atributo1",attribute2:"Atributo2",variantAttribute1:"Var. atributo1",variantAttribute2:"Var. atributo2",internalCost3:"Costo interno",variantSKU:"SKU variante",variantObservation:"Observ. variante",existingProduct:"Producto existente",tableNewProduct:"Producto nuevo",title1:"Zapatilla run",title2:"Pantal\xf3n run",sku1:"SKU-ABC123",sku2:"\tSKU-DEF456",typeP:"P",typeS:"S",stateA:"A",stateI:"I",urlImg1:"http://imagen.com/imagen01.jpg",urlImg2:"http://imagen.com/imagen02.jpg",category1:"Zapatillas",category2:"Pantalones",subCategory2:"Deportivo",de
1scription1:"Zapatillas deportivas",description2:"Pantalones largos, algod\xf3n",tableSupplier:"CODE123",accCode1:"1.1.2.3",accCode2:"1.2.1.4",observation1:"Lleva cordones",observation2:"Ajustable",bCode1:"12345678",bCode2:"AB67890CD",ivaRate:"Tasa IVA",ivaDetail:"Tipo de IVA",iva1:"0",iva2:"10",ivaDetail1:"Exento de IVA",ivaDetail2:"Gravado a tasa m\xednima",currency1:"UYU",currency2:"USD",fileFirstColumnText:"Borr\xe1 o ignor\xe1 esta columna",fileSecondRowText1:"Borr\xe1 o ignor\xe1 esta fila",fileSecondRowText2:"CAMPO OBLIGATORIO - Denominaci\xf3n de tu Producto o servicio",bulkImportProductsAndServices:"Importaci\xf3n masiva de productos y servicios",bulkImportVariantsProductsAndServices:"Importaci\xf3n masiva de productos y servicios con variantes",bulkImportVariantsProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n para importar masivamente productos y/o servicios con variantes.",bulkImportVariantsImportedConcepts:"Productos y servicios importados",variantsDownloadFileInfo:"Descarg\xe1 la planilla y utiliz\xe1 el archivo modelo o hac\xe9 click en siguiente y sub\xed tu propia planilla. Asegurate de completar todos los campos obligatorios.",variantsTemplateGuide:"Indicaciones para completar la planilla",variantAttribute1Header:"Atributo 1",variantVariant1Header:"Variante de atributo 1",variantIvaTypeHeader:"Tipo IVA",errorVariantMax:"Superaste el m\xe1ximo de 100 variantes para este SKU agrupador. Las variantes excedentes no ser\xe1n importadas.",errorInvalidVariantType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cV\u201d para variantes de producto y \u201cG\u201d para variantes de servicio.",errorVariantTypeNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Tipo. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantCurrencyDistinct:"Todas las variantes de un mismo SKU agrupador deben tener la misma moneda.",errorVariantCurrencyNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Moneda. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantAttributeRepeated:"Esta combinaci\xf3n de variantes de atributo ya fue utilizada dentro del mismo SKU agrupador.",errorVariantSkuDuplicated:"El SKU de variante ingresado ya pertenece a otro concepto. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSkuEquals:"El SKU de la variante no puede ser igual al SKU agrupador",errorAttributeNotExists:"El atributo ingresado no existe o no coincide con ninguno que tengas registrado.",errorAttributeDisabled:"El atributo ingresado est\xe1 inactivo.",errorAttributeMax:"Se admite un m\xe1ximo de 2 atributos por producto o servicio con variantes.",errorAttributeItemNotExist:"La variante ingresada no existe.",errorAttributeItemDisabled:"La variante ingresada est\xe1 inactiva.",errorAttributeItemUnlinked:"La variante de atributo ingresada no existe o no tiene relaci\xf3n con el atributo seleccionado.",variantGrouperNameHeader:"Nombre agrupador",variantSkuGrouperHeader:"C\xf3d SKU agrupador",variantNameHeader:"Nombre de variante",variantAttribute2Header:"Atributo 2",variantVariant2Header:"Variante de atributo 2",variantSkuHeader:"SKU variante",variantObservationsHeader:"Observaciones de variante",variantsSkuGrouperFilterPlaceholder:"Buscar por C\xf3d SKU agrupador",errorGrouperNotFound:"El SKU Agrupador no existe.",errorTypeNotEditable:"No es posible modificar el tipo de un producto o servicio con variantes existente.",errorCurrencyNotEditable:"No es posible modificar la moneda de un producto o servicio con variantes existente.",errorCurrencyNotShared:"Todas las variantes de un mismo agrupador deben compartir la misma moneda.",errorHeadingNotFound:"El rubro informado no existe.",errorSubHeadingNotFound:"El subrubro informado no existe o no pertenece al rubro seleccionado.",errorProviderNotFound:"El proveedor informado no existe.",errorAttributeNotMatch:"El atributo informado no corresponde al agrupador.",errorNoNewAttributes:"No es posible agregar nuevos atributos a un agrupador existente.",errorMaxAttributes:"El agrupador ya posee el m\xe1ximo de dos atributos configurados.",errorAttributeVariantNotMatch:"La variante del atributo no corresponde al atributo informado.",errorAttributeCombination:"La combinaci\xf3n de atributos ya existe para este agrupador.",errorVariantSkuNotFound:"El SKU Variante no existe.",errorVariantSkuOtherGrouper:"El SKU Variante ya pertenece a otro agrupador.",errorMaxVariants:"No se pueden crear m\xe1s de 100 variantes por atributo.",variantsRowErrorSingular:"err\xf3neo de",variantsRowErrorPlural:"err\xf3neos de",selectAnOption:"Seleccion\xe1 una opci\xf3n",variantsMaxFileSizeError:"El archivo importado supera el tama\xf1o m\xe1ximo permitido.",variantsColumnCountError:"La cantidad de columnas del archivo no coincide con la estructura esperada.",variantsEmptyFileError:"El archivo no posee ning\xfan registro.",variantsMaxRowsError:"El archivo supera el m\xe1ximo de 2500 filas permitidas.",variantsInvali
1dFileType:"No pod\xe9s subir este tipo de archivo. Solo se permiten archivos .csv y .xlsx.",variantsFileReadError:"Hubo un problema al leer el archivo. Verific\xe1 que no est\xe9 da\xf1ado e intent\xe1 nuevamente.",variantsWizardStepInProgress:"historia 3 en desarrollo",variantIndicationFirstRowText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",variantIndicationNameText:"Deb\xe9s completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evit\xe1 el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",variantIndicationSkuText:"Para crear o actualizar productos o servicios con variantes es obligatorio informar el SKU Agrupador. Todas las variantes que pertenezcan al mismo producto o servicio deber\xe1n repetir el mismo SKU Agrupador. Si el SKU no existe, se crear\xe1 un nuevo concepto; si existe, se actualizar\xe1.",variantIndicationCurrencyText:"En empresas con bi-moneda, todas las variantes de un mismo agrupador deben compartir la misma moneda. No es posible modificar la moneda de conceptos ya existentes.",variantIndicationAttributeText:"Cada agrupador debe contar con al menos un atributo y una variante asociada. Se permite configurar hasta 2 atributos y un m\xe1ximo de 10 variantes por atributo.",variantsSkuMaxLengthError:"El campo SKU variante admite hasta 50 caracteres. Correg\xed el archivo y volv\xe9 a subirlo.",variantIndicationUnitPriceText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",variantIndicationFirstRowTitle:"1\xb0 Fila",variantIndicationNameTitle:"Nombre agrupador",variantIndicationSkuTitle:"C\xf3d SKU agrupador",variantIndicationCurrencyTitle:"Moneda",variantIndicationAttributeTitle:"Atributo 1 y Variante de atributo 1",variantIndicationUnitPriceTitle:"Precio unitario",variantIndicationIvaRateTitle:"Tasa IVA",variantIndicationIvaRateText:"Para productos sujetos a impuesto al valor agregado (IVA), los Monotributistas solo pueden completar el campo de porcentaje de IVA con \u201c0\u201d (cero). Esto puede ser importante para la correcta facturaci\xf3n y cumplimiento fiscal.",variantIndicationNonRequiredText:"Si un producto o servicio con variantes ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",bulkImportProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n si quer\xe9s cargar productos y/o servicios.",startBulkImport:"Empezar importaci\xf3n",duplicatedField:"Campo duplicado",emptyBulkImportHistoryTitle:"Tu historial de importaciones est\xe1 vac\xedo",errorBulkImportHistoryTitle:"Ocurri\xf3 un error al cargar el historial",emptyBulkImportHistoryText:"Una vez que comiences una importaci\xf3n, podr\xe1s ver el progreso y los detalles aqu\xed.",user:"Usuario",users:"Usuarios",uploadNew:"Cargar nuevo",dropNew:"o arrastrar otro archivo aqu\xed",selectImgByUrl:"Sube una imagen mediante URL: Ingresa la direcci\xf3n web de la imagen que deseas cargar",goToOldConceptsCreation:"Ir a la versi\xf3n anterior",duplicateCodeError:"SKU duplicado",emptySKU:"Has dejado c\xf3digos SKU incompletos, por favor, revis\xe1 el listado y completalo para continuar.",productCheck:"Revisi\xf3n de productos",bulkImportPreviousResults:"Resultados previos a la importaci\xf3n",filterFor:"Filtrar por:",result:"Resultado",errorState:"Error",errorFilter:"Err\xf3neos",correctState:"Correcto",withoutErrorFilter:"Sin errores",bulkImportFileErrorTitle:"El archivo importado presenta errores",bulkImportFileErrorText:"Se han detectado errores en el archivo que dese\xe1s importar. Si contin\xfaas, los elementos con fallas no ser\xe1n importados. Para asegurar una importaci\xf3n completa, correg\xed los errores y volv\xe9 a subir el archivo.",uploadAgain:"Volver a subir",emptyStateChangeFilter:"Intent\xe1 cambiar los filtros.",errorMissing:"Este campo posee un error.",errorMaxLimit30:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 30 caracteres.",errorRequiredField:"Este campo es obligatorio. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorMaxLimit50:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 50 caracteres.",errorMaxLimit128:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 128 caracteres.",errorMaxLimit150:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 150 caracteres.",errorMaxLimit500:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 500 caracteres.",errorMaxLimitPrice:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y 3 decimales (999999999,999).",errorMaxLimitProfitability:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 6 enteros y 3 decimales (999999,999).",errorMaxLimitMinStock:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 4 enteros (9999).",errorSkuRepeated:"El SKU ingresado ya fue utilizado dentro de esta importaci\xf3n. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorInvalidCurrency:"La opci\xf3n ingresada es inv\xe1lida. El campo Moneda \xfanicamente acepta UYU para pesos Uruguayos o, en caso de poseer bi moneda, USD para d\xf3lares Estadounidenses.",errorInvalidType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cP\u201d o \u201cProducto\u201d para productos y \u201cS\u201d o \u201cServicio\u201d para servicios.",errorInvalidStatus:"La opci\xf3n ingresada es inv\xe1lida. El campo Estado debe completarse \xfanicamente con \u201cA\u201d o \u201cActivo\u201d para activos e \u201cI\u201d o \u201cInactivo\u201d para inactivos.",errorInvalidURL:"El formato URL de la imagen es incorrecto. Por favor, corrobor\xe1 que comience con \u201chttps\u201d y que el tipo de archivo de imagen sea jpg, jpeg, gif, o png.",errorInvalidNumberField:"\xc9ste campo puede completarse \xfanicamente con caracteres num\xe9ricos y utilizando una coma (,) o un punto (.) como separador decimal.",errorInvalidIVA:"La Tasa IVA ingresada es inv\xe1lida. Los valores permitidos son: 0, 10 y 22.",errorInvalidIvaDetail:"El tipo de IVA ingresado no existe o no tiene relaci\xf3n con la Tasa IVA.",errorInvalidMinStock:"\xc9ste campo debe completarse \xfanicamente con caracteres num\xe9ricos. Ten\xe9 en cuenta que el campo Stock m\xednimo no acepta decimales.",errorNegativeNumbers:"\xc9ste campo no puede completarse con n\xfameros negativos. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorDecimals:"El campo Stock m\xednimo no acepta decimales. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorHeading:"El rubro ingresado no existe o no coincide con ning\xfan rubro que tengas registrado. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSubHeading:"El sub-rubro ingresado no existe o no tiene relaci\xf3n con el rubro seleccionado.",bulkImportFieldValueNotFound:"El valor no existe en ese campo o est\xe1 inactivo. Revisalo en Mi Cuenta \u2192 Campos de productos.",bulkImportFieldNotAvailable:"El campo no est\xe1 habilitado. Habilitalo en Mi Cuenta \u2192 Campos de productos o dej\xe1 la celda vac\xeda.",descriptiveFieldsTutorialText:"Marca, L\xednea, Material, Origen, Temporada y Calidad son opcionales. Escrib\xed el nombre del valor como figura en Mi Cuenta \u2192 Campos de productos. El campo tiene que estar habilitado y el valor activo; si no, la fila se marca con error. No se crean valores nuevos.",noFileError:"No se ha adjuntado ning\xfan archivo.",maxProductsFileError:"Has superado el m\xe1ximo de productos por archivo. Por favor, verific\xe1 que tu documento posea menos de 2500 items.",emptyFileError:"El archivo no posee ning\xfan item.",invalidFileError:"El archivo enviado no posee un formato correcto.",fileTooLargeError:"El archivo importado en muy pesado. Por favor, verific\xe1 que tu documento pese menos de 1MB.",columnFileDistinctError:"El n\xfamero de columnas que posee tu archivo es distinto al esperado.",jobError:"Se han detectado errores en el proceso de importaci\xf3n. Por favor, revis\xe1 tu documento y volvelo a intentar.",importRunningError:"No es posible realizar dos importaciones al mismo tiempo. Por favor, esper\xe1 que termine el proceso actual para cargar otro archivo.",currencyNotEditable:"No es posible editar la moneda de un producto previamente cargado en el sistema.",providerNotFound:"El proveedor no existe o no coincide con ningun registro guardado",headingNotFound:"El rubro no existe o no coincide con ningun registro guardado",subHeadingNotFound:"El subrubro no existe o no est\xe1 relacionado con el rubro seleccionado.",typeNotEditable:"No es posible editar el tipo de un producto previamente cargado en el sistema.",budgetsTitle:"Presupuestos realizados",numberClient:"Buscar n\xfamero de presupuesto o cliente",period:"Periodo",addClient:"Ingrese el n\xfamero de presupuesto y/o cliente",newBudget:"Nuevo presupuesto",export:"Exportar",dateValidity:"Fecha de validez",dateFrom:"Fecha desde",dateTo:"Fecha hasta",selectUserAdditional:"Seleccione un usuario adicional",emptyBudgetsListTitle:"Todav\xeda n
1o creaste ningun presupuesto",emptyBudgetsListText:"Una vez que cargues un presupuesto, podr\xe1s ver los detalles aqu\xed.",emptyFiltersBudgetsListTitle:"No se han encontrado resultados",emptyFiltersBudgetsListText:"Lo sentimos, no se han encontrado resultados. Por favor, intente con diferentes criterios de b\xfasqueda.",errorFiltersBudgetsListTitle:"Ha ocurrido un error",errorFiltersBudgetsListText:"Por favor, vuelve a intentarlo",client:"Cliente",document:"Documento",location:"Domicilio",sellerCondition:"Condici\xf3n de Venta",exchangeType:"Tipo de cambio",date:"Fecha",seller:"Vendedor",quantityShort:"Cant.",code:"C\xf3digo",unitPriceShort:"Precio unit.",unitPriceShortWoIVA:"Precio unit. s/IVA",unitPriceShortIVA:"Precio unit. c/IVA",bonusShort:"Bonif. %",iva:"Iva",subtotal:"Subtotal",userCreates:"Usuario Alta",userModifies:"Usuario Modifica",budgets:"Presupuestos",modalBudgetsTitle:"\xbfEst\xe1 seguro que desea eliminar el presupuesto ",delete:"Eliminar",sellers:"Vendedores",createBudgets:"Crear nuevo presupuesto",editBudgets:"Editar presupuesto",principalData:"Datos principales",paymentConditions:"Condiciones de pago",selectSeller:"Selecciona un vendedor",exchangeRate:"Tipo de cambio",itemsToBudget:"Items a presupuestar",supplierClient:"Proveedor/Cliente",unitPriceTable:"Precio unit. sin IVA",bonif:"Bonif %",netTax:"Neto gravado",noNetTax:"NO gravado/Exento",total:"TOTAL",addNewItem:"Agregar nuevo item",actionModalTitle:"Presupuesto emitido correctamente",sendEmail:"Enviar por email",downloadRemittance:"Descargar remito",downloadBudget:"Descargar presupuesto",duplicate:"Duplicar",totalDefault:"TOTAL EN MONEDA PRINCIPAL",errorStep4Budgets:"Lo sentimos! Ingrese al menos un producto o servicio para realizar el presupuesto.",errorStep1Budgets:"Campo requerido. Completalo con un cliente/proveedor existente.",number:"N\xfamero",otherActions:"Otras acciones",createSaleOrder:"Crear orden de venta",createInvoice:"Facturar",voucherPreview:"Visualizaci\xf3n de comprobante",sendEmailVoucher:"Enviar comprobante por email",emailFor:"Para: (separa las direcciones mediante una coma)",emailSubject:"Asunto:",emailMessage:"Mensaje:",send:"Enviar",errorMailSending:"\xa1Lo sentimos! El email no pudo ser enviado, actualice la p\xe1gina e intente nuevamente.",successMailSending:"\xa1Bien hecho! El email ha sido enviado correctamente.",addFreeDescription:"o ingrese una descripci\xf3n libre",dateValidityTo:"Fecha de validez hasta",dateCreated:"Fecha de creaci\xf3n",exchangeRateError:"El tipo de cambio debe ser mayor que 0",edit:"Editar",receiptView:"Visualizaci\xf3n del comprobante",budgetView:"Visualizaci\xf3n de presupuesto",pdfPreview:"Previsualizar en PDF",simple:"Simple",detailed:"Detallado",salesModule:"M\xf3dulo Ventas",purchaseModule:"M\xf3dulo Compras",inverntaryModule:"M\xf3dulo Inventarios",treasuryModule:"M\xf3dulo Tesorer\xeda",accountingModule:"M\xf3dulo Contabilidad",reportsModule:"M\xf3dulo Reportes",restrictedAccessToModule:"\xa1Desbloque\xe1 todo el potencial de tu cuenta!",blockedModuleTextPart1:"El acceso a ",blockedModuleTextPart2:" est\xe1 disponible para planes superiores. Actualiz\xe1 tu plan para disfrutar de todas las ventajas:",comparePlans:"Comparar planes",limitations:{skusMaxUsage:"Has superado el m\xe1ximo de productos disponibles en tu plan."},draft:"Borrador",phone:"Tel\xe9fono",invoice:{invoiceMade:"Facturas realizadas",invoiceNew:"Nuevo comprobante",genericError:"Lo sentimos, ha ocurrido un error. Por favor intenta de nuevo m\xe1s tarde.",createNc:"Crear NC",seeInvoice:"Ver factura",modalInvoiceTitle:"\xbfEst\xe1 seguro que desea eliminar el comprobante realizado a ",mode:"Modo:",cell:"Tel:",sum:"Importe",totalInvoice:"Total fact.",no:"Nro",client:"Cliente",legendInvoiceA1:"El credito fiscal discriminado en el presente comprobante solo podra ser computado a efectos del Procedimiento permanente de transicion al Regimen General.",legendInvoiceA2:"Detectamos que ten\xe9s pendiente de presentaci\xf3n el formulario de habilitaci\xf3n de comprobantes o su fecha de presentaci\xf3n es anterior a tu alta en IVA. Ten\xe9s que proceder a anular la operaci\xf3n clase 'A' o 'M' emitida, mediante una Nota de Cr\xe9dito.",downloadInvoice:"Descargar factura",invoiceCancelled:"Comprobante anulado",createNcModal:"Crear nota de cr\xe9dito para el comprobante ",invoiceType:"Tipo de comprobante",pointSale:"Punto de Venta",nc:"Nota cr\xe9dito",saveDraft:"Guardar Borrador",editNc:"Editar nota de cr\xe9dito",emitNc:"Emitir nota de cr\xe9dito electr\xf3nica",appliedIn:"Aplicado en",balance:"Saldo",type:"Tipo",selectInvoiceType:"Seleccione el tipo",selectSalePoint:"Seleccione un punto de venta",salePoint:"Punto de venta",selectInvoiceMode:"Seleccione el modo",supplier:"Proveedor",selectSupplier:"Seleccione un Proveedor",selectClient:"Seleccione un cliente",associatedCollection:"y su cobranza asociada",cause:"Motivo",seeEntry:"Ver asiento",processEntry:"Reprocesar asiento",name:"Nombre",debit:"Debe",credit:"Haber",numberClient:"N\xfamero/Tipo de Factura/Cliente",ncOk:"La nota de cr\xe9dito fue creada correctamente.",counterSale:"Venta de mostrador",massBilling:"Facturaci\xf3n masiva de pendientes",currentSubscriptions:"Ver abonos actuales",createPayment:"Crear abono",billingCredits:"Facturar abonos",massPrinting:"Impresi\xf3n masiva",otherOptions:"Otras opciones",processEntryResponse:"Se ha procesado con \xe9xito 1 de un total de 1",errorEntry:"Error al procesar los asientos",errorEntry2:"Ocurri\xf3 un error al intentar cargar los datos del asiento contable. Por favor, int\xe9ntelo de nuevo m\xe1s tarde.",errorAlert:"Lo sentimos!",okAlert:"Bien hecho!",pointsSale:"Puntos de venta",pag:"hojas",format:"Formato",generate:"Generar",massPrintingInvoice:"Impresi\xf3n masiva de comprobantes",textPointsSale:"Ej: 1,2. Si no ingresa ninguno, se imprimir\xe1n todos.",errorTextModal:"Debe completar todos los campos",tooltipDate:"El rango de fechas no puede ser mayor a 6 meses",invoice:"Facturaci\xf3n",generalInformation:"Ac\xe1 van los datos m\xe1s generales de la factura.",issueInvoice:"Emitir factura electr\xf3nica",periodImputed:"Per\xedodo a imputar",periodImputedText:"Ingrese la fecha de emisi\xf3n de la factura y la fecha de Vencimiento del cobro de la factura.",currencyText:"Ingrese la moneda de la compra y el tipo de cambio.",invoiceItems:"Items a facturar",invoiceItemsText:"Ingrese a continuaci\xf3n los productos o servicios que va a incluir en la factura.",enterSalesOrderNumber:"Ingrese el nro de orden",costCenter:"Centro de costo",costCenterPlaceholder:"Seleccione un centro de costo",account:"Cuenta",emitAutoReceipt:"Emite recibo autom\xe1tico",totalDefault:"TOTAL EN MONEDA SECUNDARIA"},emailWrong:"Una de las direcciones ingresadas es inv\xe1lida.",emailsMaxLimit:"Has alcanzado el m\xe1ximo de 100 direcciones de email.",maxLimitItems:"El archivo seleccionado supera el l\xedmite de {{limit}} \xedtems. Por favor, seleccion\xe1 otro archivo para continuar.",providerCode:"C\xf3digo de proveedor",create:"Crear",clientModal:{taxData:"Datos fiscales",otherData:"Otros datos",newClient:"Nuevo cliente",docType:"Tipo doc",organism:"DGI",
1socialReasonOrName:"Raz\xf3n Social/Nombre",taxCategory:"Categor\xeda Impositiva",legalIdentity:"Personer\xeda",fantasyName:"Nombre Fantas\xeda",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Departamento",selectProvince:"Seleccione un departamento...",city:"Ciudad",selectCity:"Seleccione una ciudad...",floor:"Piso/Depto",postalCode:"C\xf3digo Postal",errors:{userRutAlreadyExists:"Lo sentimos! El RUT ingresado ya se encuentra registrado.",userRucAlreadyExists:"Lo sentimos! El RUC ingresado ya se encuentra registrado.",userCiAlreadyExists:"Lo sentimos! La CI ingresada ya se encuentra registrado.",userCuitAlreadyExists:"Lo sentimos! El CUIT ingresado ya se encuentra registrado.",userDniAlreadyExists:"Lo sentimos! El DNI ingresado ya se encuentra registrado."}},newClientModal:{newClient:"Nuevo cliente",taxDataTitle:"Datos fiscales",otherData:"Otros datos",docType:"Ind\xedcanos c\xf3mo identificarlo",organism:"DGI",socialReasonOrName:"Raz\xf3n social/nombre",taxCategory:"Categor\xeda impositiva",legalIdentity:"Personer\xeda",turn:"Giro",fantasyName:"Nombre fantas\xeda",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Departamento",selectProvince:"Seleccione un departamento...",city:"Ciudad",selectCity:"Seleccione una ciudad...",floor:"Piso/depto",postalCode:"C\xf3digo postal"},ivaRateTooltip:"Corresponde al nombre, Exportaci\xf3n y asimilares, Gravado a tasa b\xe1sica, Gravado a tasa m\xednima, Literal E , No facturable negativo, Exento de IVA.",budgetItemError:"Lo sentimos! Debe guardar el producto o servicio para continuar.",budgetTotalNegativeError:"Lo sentimos! El total del presupuesto debe ser mayor a 0.",totalBudget:"Total Presup.",sendEmailBudget:"Enviar presupuesto por email",login:{useEmail:"Us\xe1 tu mail para ingresar",useEmail2:" O complet\xe1 los siguientes datos",account:"\xbfNo ten\xe9s cuenta?",accountNow:"\xbfYa ten\xe9s cuenta?",useEmailChUy:"Usa tu mail para ingresar",accountChUy:"\xbfNo tienes cuenta?",register:"Registrate",emaiCh:"Ingresa un email v\xe1lido",errPass:"Usuario y/o contrase\xf1a incorrecta",blockedUser:"Has superado el n\xfamero m\xe1ximo de intentos posibles. Por su seguridad, su cuenta ha sido bloqueada. Haga click en olvid\xe9 mi contrase\xf1a para poder recuperarla. ",remember:"Recordarme",forgot:"Olvid\xe9 mi contrase\xf1a",into:"Ingresar",recoverText:"Ingres\xe1 el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverTextChUy:"Ingresa el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverPass:"Recuperar contrase\xf1a",errorMessage:"Por favor, ingrese una direcci\xf3n de correo v\xe1lida",continue:"Continuar",goBack:"Volver al login",recoverTextMail:"Ingres\xe1 al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verific\xe1 la casilla de correo no deseado.",recoverTextMailChUy:"Ingresa al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verifica la casilla de correo no deseado.",sendMailRecover:"Se envi\xf3 un correo a la direcci\xf3n ingresada.",newChancePass:"Crear nueva contrase\xf1a",createNewPass:"Escribe una contrase\xf1a \xfanica y segura que sea f\xe1cil ",createNewPass2:"de recordar para que no la olvides la pr\xf3xima vez.",newPass:"Contrase\xf1a nueva *",characters:"Min. 8 caracteres",oneCapital:"1 letra may\xfascula",oneletter:"1 letra min\xfascula",numberCh:"Min. 1 caracter num\xe9rico",plusCh:"No est\xe1 permitido inclu\xedr el caracter \u201c+\u201d",confirmPass:"Confirma la nueva contrase\xf1a *",matchPass:"Las contrase\xf1as no coinciden",reqField:"Campo obligatorio",chancePass:"Cambiar contrase\xf1a",btnErr:"La contrase\xf1a ha sido utilizada previamente",err:"Mensaje de error",goBackLogin1:"Ya puedes volver al login e ingresar con tu correo electr\xf3nico y tu nueva contrase\xf1a.",goBackLogin2:"Se ha completado el cambio de contrase\xf1a con \xe9xito.",subEmailVerification:"Hemos enviado un c\xf3digo de verificaci\xf3n a la cuenta ",subEmailVerification2:"el cual te solicitamos a continuaci\xf3n",registerG1:"Registro con Google",registerG2:"\xa1Te damos la bienvenida,",registerG3:"Se crear\xe1 una nueva cuenta de Contabilium",registerG4:"para la direcci\xf3n de correo electr\xf3nico",emailVerification:"Verificaci\xf3n de email",loginMfaVerification:"Verific\xe1 tu identidad",loginMfaSubVerification:"Enviamos un c\xf3digo a",loginMfaSubVerification2:". Ingresalo para continuar.",loginMfaSuccessAuth:"Autenticaci\xf3n de doble factor completada con \xe9xito.",loginMfaSendCodeError:"No pudimos enviar el c\xf3digo. Intent\xe1 nuevamente en unos segundos.",loginMfaSendCodeErrorUnavailable:"No pudimos enviar el c\xf3digo, intentalo m\xe1s tarde.",loginMfaEmailVerifiedError:"No se pudo enviar el c\xf3digo de verificaci\xf3n. Contact\xe1 a soporte para habilitar la autenticaci\xf3n de doble factor.",loginMfaInvalidCode:"El c\xf3digo no es v\xe1lido. Revis\xe1 tu email e intent\xe1 de nuevo.",loginMfaInvalidCodeLastAttempt:"El c\xf3digo no es v\xe1lido. Te queda 1 intento.",loginMfaSoftLockBlocked:"Por seguridad, el acceso est\xe1 bloqueado temporalmente. Intent\xe1 de nuevo en {{countdown}}.",loginMfaResendCode:"Reenviar c\xf3digo",loginMfaResendCodeWithTimer:"Reenviar c\xf3digo ({{seconds}}s)",loginMfaResendCodeWithTimerMmSs:"Reenviar c\xf3digo ({{countdown}})",loginMfaResendCodeSuccess:"Te enviamos un nuevo c\xf3digo.",loginMfaResendRateLimitSupport:"Si segu\xeds sin recibir el c\xf3digo, contact\xe1 a Soporte.",codeLabel:"\xbfNo recibiste el c\xf3digo?",enterLater:"Lo ingresar\xe9 m\xe1s tarde, d\xe9jame continuar",notReceive:"\xbfNo recibiste el email? Revis\xe1 tu carpeta de spam o ",enterNewEmail:"ingres\xe1 un nuevo email",openGmail:"Abrir Gmail",openOutlook:"Abrir Outlook",notReceive2:" y prob\xe1 nuevamente",wait:"Esper\xe1",confirm:"Confirmar",seconds:"segundos",successAuth:"Se ha verificado tu email con \xe9xito.",enterCbl:"En unos segundos ingresar\xe1s a Contabilium autom\xe1ticamente.",confirmMail:"Cambio de email",enterNewEmailLabel:"Ingres\xe1 un nuevo correo electr\xf3nico para tu cuenta, donde recibir\xe1s el c\xf3digo de verificaci\xf3n.",goBackMail:"
1Volver a verificaci\xf3n de email",resendNow:"Reenviar ahora",errCodeApi:"El c\xf3digo que ingresaste es incorrecto o inv\xe1lido",expiredText:"El link ya no es v\xe1lido, por favor volv\xe9 a recuperar tu contrase\xf1a.",expiredText2:"Record\xe1 que el link tiene validez por 24 horas.",disableAccount:"Tu cuenta se ha deshabilitado temporalmente porque aun no has ingresado el c\xf3digo de verificaci\xf3n que enviamos a",pleaseEnterCode:"Por favor ingresa el c\xf3digo para volver a habilitar tu cuenta"},dashboard:{accounts:"Cuentas a pagar",sales:"Ventas - Comparativo",incomeExpenses:"Ventas vs Compras",dashboard:"Dashboard",seeInvoice:"Ver factura",pay:"Pagar",seeAll:"Ver todas",noBills:"A\xfan no ten\xe9s cuentas a pagar",noBillsChUy:"A\xfan no tienes cuentas a pagar",noSales:"A\xfan no has emitido comprobantes",lastUpdate:"\xdaltima actualizaci\xf3n: 23:30 hs.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",dashboardData:"Los datos que se muestran en esta pantalla se sincronizan cada 5 minutos",noPending:" A\xfan no hay datos para mostrar",noPendingChUy:" A\xfan no hay datos para mostrar",remainingBalance:"Total anual de ventas sin IVA dentro del a\xf1o calendario.",tooltipPendingPay:"Total de saldo pendiente de cobro con IVA incluido.",tooltipBoxes:"Saldo acumulado hist\xf3rico de la caja visualizada.",salesPastMonth:"Ventas mes anterior",salesThisMonth:"Ventas este mes",lastSixMonths:"\xdaltimos 6 meses",noPermits:"No ten\xe9s permisos para visualizar este gr\xe1fico",error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",lockAnualBilling:"No ten\xe9s permisos para visualizar este dato",lockAnualBillingCh:"No tienes permisos para visualizar este dato",errorAnualBilling:"Intent\xe1 nuevamente m\xe1s tarde.",errorAnualBillingCh:"Intenta nuevamente m\xe1s tarde.",payNow:"Pagar ahora",payLater:"Pagar\xe9 m\xe1s tarde",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",rut:"RUT",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",expiredPlanCh:"El plazo para pagar tu plan se encuentra vencido. Ponte al d\xeda haciendo",click:"click aqu\xed.",popupText1:"Tu plan se encuentra impago",popupText2:"Actualmente est\xe1s en el per\xedodo de gracia ya que",popupText3:"tu plan se encuentra vencido hace ",popupText4:"d\xedas.",popupText5:"Te sugerimos realizar el pago lo antes posible",popupText6:"para que puedas seguir utilizando la plataforma.",anualBilling:"Facturado anual",buttonAnualBillingND:"+ Nueva factura",boxes:"Cajas",buttonBoxesND:"+ Nueva Caja",pendingPayment:"Pendiente de cobro",pendingPaymentBtn:"Ver detalle",errorText:"Se produjo un error.",tooltipUnitsSold:"Refleja la cantidad de unidades vendidas durante el mes actual, el mes anterior y el mismo mes del a\xf1o pasado. Solo se incluyen \xedtems con SKU; los combos se contabilizan como una sola unidad.",tooltipGetSales:"Muestra el total de ventas netas (sin IVA) correspondientes al mes en curso, mes anterior y a\xf1o calendario.",tooltipPendingBills:"Muestra el total de saldos pendientes de cobro con IVA incluido y su desglose en vencidas, por vencer y saldos a favor de tus clientes.",tooltipPendingBillsRegion:"Indica el total de saldos pendientes de cobro con IVA incluido, calculados al d\xeda cerrado.",tooltipVatPosition:"Este valor muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un dato estimativo, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes.",tooltipVatPositionCurrent:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipVatPositionPrevious:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes anterior. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipValueStock:"Este valor representa el total del stock disponible, valorizado al precio de venta actual.",salesVariationTooltip:"Variaci\xf3n respecto al mes anterior",unitsVariationTooltip:"Variaci\xf3n respecto al mismo mes a\xf1o anterior",thisYear:"Este a\xf1o",lastMonth:"Mes anterior",getSalesTitle:"Ventas del mes sin iva",viewDetail:"Ver detalle",valuedStockLegend:"Valor total al precio de venta",dateDashboard:"Datos actualizados al cierre del d\xeda",currentMonth:"Mes actual",previousMonth:"Mes anterior",vatSales:"IVA ventas",vatPay:"IVA a pagar",vatBuys:"IVA compras",pen
1dingBillsLegend:"Saldo con IVA incluido",minimumStockTitle:"Stock m\xednimo",minimumStockLegend:"Alcanzaron el stock m\xednimo",minimumStockTooltip:"Productos y combos cuyo stock actual est\xe1 por debajo del m\xednimo definido.",minimumStockProducts:"productos",minimumStockCombos:"combos",salesByChannelTitle:"Ventas por canal",salesByChannelTooltip:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",salesByChannelFilter:"Filtrar",salesByChannelViewReport:"Ver ventas por integraci\xf3n",salesByChannelSelectChannels:"Seleccionar canales",salesByChannelMaxSelection:"M\xe1ximo 5 canales",salesByChannelApply:"Aplicar",salesByChannelOthers:"Otros",salesByChannelTotalSales:"Total ventas:",salesByChannelViewDetail:"Ver detalle",noPermissionText:"No ten\xe9s permisos para ver esta informaci\xf3n. Por favor, contact\xe1 a tu administrador.",noPermissionToViewData:"Tu perfil no tiene acceso a esta informaci\xf3n.",contactAdminForAccess:"Contact\xe1 a tu administrador para solicitarlo.",customizeDashboardEmptyState:"Personaliz\xe1 tu dashboard para visualizar tu informaci\xf3n.",filtersLimitationText:"la personalizaci\xf3n del dashboard",getSalesLimitationText:"el reporte de cuentas a pagar",boxesLimitationText:"tesorer\xeda",pendingBillsLimitationtext:"el reporte de pendiente de cobro",popUpText:"No pudimos procesar el cobro autom\xe1tico de tu plan",popUpText1:"Actualmente te encontr\xe1s en el",popUpText2:"per\xedodo de gracia",popUpText3:"ya que",popUpText4:"tu plan est\xe1 vencido.",popUpText5:"Intentaremos realizar el cobro autom\xe1ticamente en los pr\xf3ximos d\xedas, pero es importante que regularices tu situaci\xf3n para evitar la interrupci\xf3n del servicio. En tu resumen bancario ver\xe1s el cargo como:",popUpText6:"\xbfNecesit\xe1s ayuda?",popUpText7:"Contactar al soporte",overdueWhy:{reason1:"No hay fondos suficientes en la tarjeta.",reason2:"Tu banco requiere autorizaci\xf3n previa para este tipo de d\xe9bitos.",reason3:"La tarjeta venci\xf3 o fue reemplazada."},completeConfiguration:"Complet\xe1 la configuraci\xf3n inicial",tooltipCustomerRanking:"Presenta los 5 clientes con mayor volumen de compras en el periodo filtrado.",tootilPendingPayments:"Los comprobantes se ordenan autom\xe1ticamente por fecha de vencimiento, del m\xe1s pr\xf3ximo al m\xe1s lejano.",noData:"A\xfan no hay datos para mostrar",newBuy:"Nueva compra",emitReceipt:"Emitir comprobante",createReceipt:"Crea tu primer comprobante",products:"productos",product:"producto",closedWeek:"Rango de fechas",hide:"Ocultar",show:"Mostrar",sameMonth:"Mismo mes a\xf1o ant.",noDataFor:"A\xfan no hay datos para",loadFailed:"Error al cargar",loadBoxes:"Error al cargar cajas",loadSales:"Error al cargar ventas",loadReceivables:"Error al cargar pendiente de cobro",loadSalesVsBuys:"Error al cargar Ventas vs Compras",loadCustomerRanking:"Error al cargar ranking de clientes",loadPayables:"Error al cargar cuentas a pagar",loadUnitsSold:"Error al cargar unidades vendidas",loadVatPosition:"Error al cargar posici\xf3n de IVA",noPermissionMessage:"Este reporte est\xe1 disponible solo para usuarios con planes superiores.",upgradePlan:"Actualizar plan",prev:"Anterior",payLaterOverdue:"Pagar\xe9 m\xe1s tarde",balance:"Saldo",overdue:"Vencidas",dueSoon:"Por vencer",favorableBalance:"Saldo a favor",customize:"Personalizar",all:"Todas",purchases:"Compras",inventories:"Inventarios",reports:"Reportes",availableWidgets:"Indicadores disponibles",noWidgetsAvailable:"No hay ning\xfan indicador disponible",reset:"Restablecer",close:"cerrar",monthlySales:"Ventas del mes",widgetDescription:"Informaci\xf3n relevante del widget.",widgetDescriptionGetSales:"Ventas del mes actual y su comparaci\xf3n con el mes anterior y el a\xf1o.",widgetDescriptionPendingBills:"Total de saldos pendientes de cobro, con IVA incluido.",widgetDescriptionUnitsSold:"Unidades vendidas del mes y variaci\xf3n con per\xedodos anteriores.",widgetDescriptionSalesVsBuys:"Comparaci\xf3n de ventas y compras en el per\xedodo seleccionado.",widgetDescriptionCustomerRanking:"Top 5 de clientes con mayores compras.",widgetDescriptionPendingPayments:"Obligaciones pendientes ordenadas por vencimiento.",widgetDescriptionVatPosition:"Diferencia entre IVA Ventas e IVA Compras, filtrable por mes actual o anterior.",widgetDescriptionMinimumStock:"Productos/Combos por debajo del stock m\xednimo definido.",widgetDescriptionSalesByChannel:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",exclusivePlan:"Exclusivo plan Full/Enterprise",added:"A\xf1adido",add:"A\xf1adir",salesCard:"Ventas",quickAccess:{title:"Accesos r\xe1pidos",tooltip:"Accesos directos a tus secciones m\xe1s utilizadas.",newSale:"Nva. venta",newPurchase:"Nva. compra",clients:"Clientes",suppliers:"Proveedores",currentAccount:"Cta. corriente",integrations:"Integraciones",newBudget:"Nvo. presupuesto",cashRegisters:"Cajas",products:"Productos",newSaleSubtitle:"Crear Comprobante",newPurchaseSubt
1itle:"Crear compra",newBudgetSubtitle:"Crear presupuesto",cashRegistersSubtitle:"Ver cajas",productsSubtitle:"Ver productos y servicios",integrationsSubtitle:"Ver integraciones"},tooltipCustomize:"Personaliz\xe1 tu dashboard.",tooltipCustomizeEditMode:"Est\xe1s en modo edici\xf3n.",tooltipReset:"Restaur\xe1 la vista predeterminada del dashboard, incluyendo indicadores y filtros aplicados.",tooltipAddToDashboard:"Agregar al dashboard",tooltipRemoveWidget:"Quit\xe1 este indicador del dashboard. Pod\xe9s volver a agregarlo cuando quieras.",planUpgradeTitle:"Tu plan es Standard y guarda la configuraci\xf3n de forma temporal. Personaliz\xe1 tu dashboard a partir del plan Pro.",planUpgradeSubtitle:"Tu plan guarda la configuraci\xf3n de forma temporal.",updatePlan:"Actualizar plan",dashboardUnavailableText:"Actualizando tu dashboard. Intentalo m\xe1s tarde.",initialSetupHelp:"\xbfNecesit\xe1s ayuda con la configuraci\xf3n inicial?",visitHelpCenter:"Visita nuestro centro de ayuda"},descriptiveFieldsSelectPlaceholder:"Seleccion\xe1 un valor",descriptiveFieldsInactiveValue:"(inactivo)",descriptiveFieldsLoading:"Cargando campos descriptivos...",descriptiveFieldsErrorNotAvailable:"Uno de los campos descriptivos ya no est\xe1 disponible. Actualiz\xe1 la p\xe1gina y volv\xe9 a guardar.",descriptiveFieldsErrorValueInactive:"Uno de los valores elegidos fue inactivado. Actualiz\xe1 la p\xe1gina y eleg\xed otro.",descriptiveFieldsErrorValueInvalid:"Uno de los valores elegidos no es v\xe1lido para ese campo.",descriptiveFieldsErrorDuplicated:"Un campo descriptivo solo puede tener un valor.",account:{accountTitle:"Mi cuenta",company:"Empresa",companyConfig:"Configur\xe1 la informaci\xf3n de tu empresa.",generalData:"Datos generales",users:"Usuarios",costCenter:"Centros de costos",billingAndReceipts:"Facturaci\xf3n y comprobantes",billData:"Configur\xe1 los datos que van en tu factura.",salesCondition:"Condici\xf3n de venta",salesPoints:"Sucursales",vouchersTypes:"Tipos de comprobantes",billFormat:"Formato de factura",taxSettings:"Configuraci\xf3n impositiva",taxSettingsConfig:"Configur\xe1 impuestos y retenciones",economicActivities:"Actividades econ\xf3micas",vatSimple:"IVA Simple",advancedParametersConfig:"Configur\xe1 par\xe1metros avanzados.",perceptionAgent:"Agente de percepci\xf3n",retentionAgent:"Agente de retenci\xf3n",iibb:"IIBB",closeDates:"Fechas de cierre",preferences:"Preferencias",generals:"Generales",defaultObservations:"Observaciones predeterminadas",parameters:"Par\xe1metros",PDV:"Punto de venta (PDV)",customerAccess:"Acceso clientes",noticesAndAlerts:"Avisos y alertas",messagesAndNotificationsConfig:"Configur\xe1 mensajes y notificaciones.",sendingVouchers:"Env\xedo de comprobantes",expirationNotices:"Avisos de vencimientos",alerts:"Alertas",ahaMoments:"Aha moments",notifications:"Notificaciones",additionalCompanies:"Empresas adicionales",additionalCompaniesConfig:"Configur\xe1 tus empresas adicionales.",companiesAdministration:"Administrar empresas",API:"API",APICredentials:"Acced\xe9 a las credenciales de API.",credentials:"Credenciales",configuration:"Configuraci\xf3n",backToPrincipalPanel:"Volver al panel principal",continue:"Continuar",currencyAvailable:"Disponible s\xf3lo para planes Full.",howDoesCurrencyWork:"\xbfC\xf3mo funciona la moneda secundaria?",infoCurrencyModalText:'Esta acci\xf3n puede demorar entre 24 y 48 horas. Te enviaremos un mail cuando la moneda "{{currencyName}}" est\xe9 activada.',contactSupport:"Contact\xe1 a soporte para inhabilitarla. Al hacerlo, se inactivar\xe1n los productos en USD y sus publicaciones vinculadas en integraciones.",defaultCurrency:"Moneda principal",secondaryCurrency:"Moneda secundaria",dollarCurrencyWithSymbol:"D\xf3lar (USD)",pesoCurrencyWithSymbol:"Pesos (UYU)",dollarCurrency:"D\xf3lar",pesoCurrency:"Pesos",activate:"Habilitar",active:"Habilitada",infoCurrencyConfirmationModalTitle:'\xbfEst\xe1s seguro/a de que deseas activar la moneda "{{currencyName}}"?',infoCurrencyConfirmationModalText:"Una vez activada, no ser\xe1 posible desactivarla. Esta restricci\xf3n se aplica para mantener la consistencia de la informaci\xf3n.",pendingActivation:"Activaci\xf3n pendiente",infoCurrencyModalTitle:"\xa1Activaci\xf3n iniciada con exito!",currencyErrorModalTitle:"Ha ocurrido un error en la activaci\xf3n de la moneda",currencyErrorModalText:"Lo sentimos, ha ocurrido un error en la activaci\xf3n de la moneda. Por favor intenta de nuevo m\xe1s tarde.",newCompany:"Nueva empresa",actualCompany:"Empresa actual",otherCompanies:"Tus otras empresas",logo:"LOGO",default:"Predeterminada",createdAt:"Creada el ",useThisCompany:"Usar esta empresa",deleteCompany:"Eliminar empresa",additionalCompany:{deleteCompanyDescription:"Antes de dar de baja la cuenta, sugerimos hacer un backup de la informaci\xf3n.",deleteReasonTitle:"Por favor, seleccion\xe1 el motivo de la baja.",deleteReasons:{priceReasonCode:"PRECIO",priceReason:"Baja por precio del producto",integrationReasonCode:"INTEGRACIONES",integrationReason:"Problemas con integraciones o API",closeReasonCode:"CIERRE DE NEGOCIO",closeReason:"Estoy cerrando o cambiando la actividad comercial de la cuenta.",pauseReasonCode:"PAUSA TE
1MPORAL",pauseReason:"Voy a pausar el uso de la cuenta por un tiempo.",badFunctionalityReasonCode:"MAL FUNCIONAMIENTO",badFunctionalityReason:"Reclamo por mal funcionamiento del sistema.",functionalitiesReasonCode:"FUNCIONALIDADES",functionalitiesReason:"No disponen de las funcionalidades que necesito.",paymentMethodsReasonCode:"MEDIOS DE PAGO",paymentMethodsReason:"No tengo los medios de pagos disponibles para el contrato del servicio",otherReasonCode:"OTROS",otherReason:"Otro motivo",otherReasonPlaceholder:"Ingres\xe1 tu motivo",minLengthError:"El motivo debe tener al menos 10 caracteres."},successMessage:"La empresa se ha desactivado con exito",errors:{userIdNotExist:"La empresa no existe",userChildUserAndParentUserEqual:"La empresa y el usuario padre son iguales",userChildUserNotExist:"La empresa no existe",userChildUserDesactivateExist:"La empresa ya fue desactivada previamente",userParentDistinct:"La empresa padre es distinta a la empresa a inactivar"},additionalCompanyEmptyState:"No se han encontrado empresas adicionales.",additionalCompanyEmptyStateText:"Intenta ajustar los filtros para obtener m\xe1s resultados."},cuitCuil:"RUT",socialReason:"Raz\xf3n social",searchARCA:"Buscar en DGI",taxData:"Datos impositivos",fiscalAddress:"Domicilio fiscal",password:"Contrase\xf1a",passwordTooltipText:"Debe contener al menos 8 caracteres, incluyendo un nu\u0301mero, una letra mayu\u0301scula, una letra minu\u0301scula, y un s\xedmbolo",invalidMail:"Formato de correo inv\xe1lido",invalidPassword:"Formato de contrase\xf1a inv\xe1lido",invalidCUIT:"RUT inv\xe1lido",isRequired:"Campo obligatorio",additionalAccountCreated:"La cuenta se ha creado correctamente.",additionalAccountCreationError:"Ha ocurrido un error al crear la cuenta.",emailAlreadyExists:"El E-mail ingresado ya se encuentra registrado.",cuitAlreadyExists:"El RUT ingresado ya se encuentra registrado.",arcaDataError:"No se han encontrado los datos de DGI.",arcaEmptyDataError:"Debe ingresar un CUIT para poder solicitar datos a DGI.",additionalAccountLimitationError:"Has alcanzado el m\xe1ximo de empresas adicionales disponibles en tu plan.",createCompany:"Crear empresa",mySuscription:"Mi suscripci\xf3n",changePassword:"Cambiar contrase\xf1a",priceAndFunctionalities:"Precio y Funcionalidades",logout:"Cerrar sesi\xf3n",manageCAEs:"Administrar CAEs",voucherTypes:"Tipos de comprobantes",passwordError:"Contrase\xf1a incorrecta. Vuelve a ingresarla para continuar con la baja",physical:"F\xedsica",passwordWithLeyend:"Contrase\xf1a. Por favor, ingresa la contrase\xf1a con la que inici\xe1s sesi\xf3n.",reportsSending:"Env\xedo de reportes",saveChanges:"Guardar cambios",notificationsInfoText:"Te enviaremos un reporte semanal con informaci\xf3n relevante para tu negocio. Lo recibir\xe1s los lunes.",reportTypeTitle:"Marc\xe1 qu\xe9 tipo de informaci\xf3n quer\xe9s recibir seg\xfan tu actividad:",products:"Productos",productsLegend:"*Marc\xe1 esta opci\xf3n si vend\xe9s productos f\xedsicos. Vas a recibir informaci\xf3n sobre ventas, unidades, evoluci\xf3n, etc.",services:"Servicios (Proximamente)",servicesLegend:"*Marc\xe1 esta opci\xf3n si prest\xe1s servicios. Vas a recibir datos sobre ventas, comprobantes emitidos, evoluci\xf3n, etc.",dataSuccessfullyUpdated:"Bien hecho! Los datos se han actualizado correctamente.",chooseOneReport:"Lo sentimos! Ten\xe9s que elegir al menos una opci\xf3n de reporte.",errorSavingChanges:"Lo sentimos! Ocurri\xf3 un error al guardar los cambios. Intent\xe1 nuevamente.",automaticBilling:{title:"Facturador autom\xe1tico",noIntegrationsFound:"No se han encontrado integraciones",noIntegrationsFoundDescription:"Para configurar el facturador autom\xe1tico, primero debes conectar una integraci\xf3n.",connectIntegration:"Conectar integraci\xf3n",state:"Estado",startDate:"Fecha de inicio",toDate:"Fecha hasta",startDateTooltip:"Seleccion\xe1 la fecha de inicio para la facturaci\xf3n autom\xe1tica.",toDateTooltip:"Seleccion\xe1 la cantidad de d\xedas que se tomar\xe1n para la facturaci\xf3n autom\xe1tica.",integrations:"Seleccion\xe1 integraciones (m\xednimo 1)",toDateCheckbox:"Facturar hasta \xfaltimos 30 minutos",toDateDescription:"Seleccion\xe1 la cantidad de d\xedas hacia atras para la facturaci\xf3n autom\xe1tica. En caso de no seleccionar, se facturar\xe1 hasta 30 minutos despu\xe9s de la \xfaltima orden de venta.",toDateRequired:"Debe seleccionar una opci\xf3n o activar la facturaci\xf3n hasta los \xfaltimos 30 minutos",toDateRequiredDescription:"Debe seleccionar una opci\xf3n o activar la facturaci\xf3n hasta los \xfaltimos 30 minutos",integrationsRequired:"Debe seleccionar al menos una integraci\xf3n",startDateRequired:"Debe seleccionar una fecha de inicio",startDateRequiredDescription:"Debe seleccionar una fecha de inicio",stateRequired:"Debe seleccionar un estado",stateRequiredDescription:"Debe seleccionar un estado",validationError:"Por favor, complete todos los campos requeridos",
1saveError:"Error al guardar la configuraci\xf3n, intente nuevamente."},productFields:{title:"Campos de productos",description:"Configur\xe1 los valores de los campos descriptivos que aplican a todo tu cat\xe1logo. Solo se mostrar\xe1n al crear o editar productos los campos que est\xe9n activos y tengan al menos un valor activo.",fieldNames:{marca:"Marca",linea:"L\xednea",material:"Material",origen:"Origen",temporada:"Temporada",calidad:"Calidad"},valuesCount:"{{count}} de {{limit}} valores",manageValues:"Administrar valores",statusInactive:"Inactivo",activateBlocked:"Para activar este campo, agreg\xe1 al menos un valor activo.",deactivateTitle:"\xbfEst\xe1s seguro/a que quer\xe9s desactivar este campo?",deactivateText:"El campo dejar\xe1 de mostrarse al crear o editar productos. Los valores configurados y la informaci\xf3n ya registrada no se eliminar\xe1n.",deactivate:"Desactivar",valuesDescription:"Administr\xe1 los valores disponibles para este campo.",backToFields:"Volver a Campos de productos",emptyTitle:"Este campo no tiene valores configurados.",emptyText:"Agreg\xe1 los valores que podr\xe1n seleccionarse en los productos.",searchPlaceholder:"Busc\xe1 un valor",noSearchResults:"No encontramos valores que coincidan con tu b\xfasqueda.",emptyFieldsT
1itle:"Todav\xeda no hay campos disponibles.",emptyFieldsText:"Los campos descriptivos todav\xeda no est\xe1n habilitados. Si el problema persiste, comunicate con soporte.",newValuePlaceholder:"Ingres\xe1 un nombre de {{field}}",newValuePlaceholderFallback:"Ingres\xe1 un nombre",limitReached:"Alcanzaste el m\xe1ximo de {{limit}} valores para este campo. Elimin\xe1 uno que no est\xe9 en uso para agregar otro.",nameRequired:"Ingres\xe1 un nombre para el valor.",nameTooLong:"El nombre no puede superar los {{max}} caracteres.",nameDuplicated:"Ya existe un valor con ese nombre en este campo.",renameTitle:"Editar valor",renameLabel:"Nombre del valor",deleteTitle:"\xbfQuer\xe9s eliminar el valor {{name}}?",deleteText:"Esta acci\xf3n no se puede deshacer.",deleteBlockedReason:"No se puede eliminar porque est\xe1 asignado a productos. Pod\xe9s inactivarlo para que no se use en productos nuevos.",lastActiveTitle:"Este es el \xfaltimo valor activo del campo",lastActiveText:"Si continu\xe1s, el campo se va a desactivar y dejar\xe1 de mostrarse al crear o editar productos. Los valores y la informaci\xf3n ya registrada no se eliminar\xe1n.",retry:"Reintentar",errors:{fieldNotFound:"El campo no existe o no est\xe1 disponible.",valueNotFound:"El valor no existe o no pertenece a tu empresa.",noActiveValues:"Para activar el campo tiene que haber al menos un valor activo.",valueInUse:"El valor est\xe1 asignado a productos y no se puede eliminar. Pod\xe9s inactivarlo."}}},captchaVerificationButton:"Verificar",captchaVerificationSuccess:"Verificaci\xf3n completada",captchaVerificationFailed:"\xa1Verificaci\xf3n fallida! Por favor intente nuevamente.",actives:"Activas",inactive:"Inactivas",PDVAddinModalTitle:"\xa1Potenci\xe1 tu plan con el Punto de Venta (PDV)!",PDVAddinModalText1:"El Punto de Venta (PDV) es un complemento (addin) disponible para tu cuenta.",PDVAddinModalText2:"Si quer\xe9s contactarlo y aprovechar todas sus funciones, contact\xe1 a nuestro equipo escribiendo a ",supportEmail:"[email protected]",ruc:"RUC",blockedModuleText:"Con un plan superior, podr\xe1s acceder a todas las funcionalidades avanzadas, incluyendo ",uploadPlan:"Actualiz\xe1 tu plan y empez\xe1 a aprovechar todas las ventajas.",errorGeneratingRemittance:"Error al generar remito",trainingEvents:{emptyStateTitle:"A\xfan no hay capacitaciones disponibles.",emptyStateDescription:"Cuando se publiquen nuevas capacitaciones, las vas a encontrar en esta secci\xf3n.",modalTitle:"Eventos de Capacitaci\xf3n",registerButton:"Registrarse",watchVideoButton:"Ver video"},referred:"Refer\xed",referredProgram:"Programa de referidos"}},py:{translation:{error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",bulkImportVariantsRetry:"Reintentar",bulkImportVariantsStatsErrorTitle:"No pudimos obtener el resumen del archivo",bulkImportVariantsStatsErrorText:"Reintenta para conocer cu\xe1ntas filas se pueden importar y continuar.",bulkImportVariantsStatusComplete:"Completada",bulkImportVariantsStatusError:"Err\xf3nea",bulkImportVariantsStatusInProgress:"En progreso",bulkImportVariantsRunningStatusError:"No pudimos verificar si hay una importaci\xf3n en curso. Reintentaremos autom\xe1ticamente.",bulkImportVariantsSkuDuplicatedError:"El SKU ingresado ya pertenece a otro concepto.",bulkImportVariantsConceptNotParentError:"El SKU agrupador informado corresponde a un producto o servicio que no admite variantes.",bulkImportVariantsErrorDetailTitle:"Registro de productos err\xf3neos",bulkImportVariantsGrouperSkuColumn:"SKU Agrupador",bulkImportVariantsSkuColumn:"SKU",bulkImportVariantsFieldsColumn:"Campos",bulkImportVariantsErrorTypeColumn:"Tipo de error",bulkImportVariantsHeadingField:"Rubro",bulkImportVariantsSubheadingField:"Subrubro",bulkImportVariantsTypeField:"Tipo",bulkImportVariantsCurrencyField:"Moneda",bulkImportVariantsProviderField:"Proveedor",bulkImportVariantsLimitReachedField:"L\xedmite alcanzado",alertC2:"El plazo para pagar tu plan se encuentra vencido. Comunicate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",alertC2Ch:"El plazo para pagar tu plan se encuentra vencido. Comun\xedcate con administraci\xf3n para regularizar tu situaci\xf3n haciendo",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",RUC:"RUC",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",click:"click aqu\xed.",tools:"HERRAMIENTAS",attributes:"Atributos",accept:"Aceptar",cancel:"Cancelar",add:"Agregar",save:"Guardar",AddPh:"Adjuntar foto",titleAttributes:"Productos y servicios",titlePrincipalAttributes:"Datos principales",subTitlePrincipalAttributes:"Estos son los datos b\xe1sicos que el sistema necesita para poder facturar un producto.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",type:"Tipo",condSKU:"C\xf3digo (SKU)",condSKU2:"C\xf3digo SKU",barcode:"C\xf3digo de barras",SKU:"SKU",name:"Nombre",state:"Estado",category:"Rubro",subcategory:"Sub-rubro",amounts:"Importes",requiredFiles:"
1Complet\xe1 los campos obligatorios.",stockMin:"Stock m\xednimo",stockMinSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Datos de mi empresa -> Alertas y avisos.",aditionalData:"Datos adicionales",aditionalDataSubTitle:"Para configurar las alertas de stock m\xednimo ingrese a Mi cuenta -> Datos de mi empresa -> Alertas y avisos.",entityName:"Entidades",generalData:"Datos generales",entityPrice:"Moneda y saldo",entityMoreOptions:"Mas opciones",entitylessOptions:"Menos opciones",entity:"Entidad",accountName:"Nombre de cuenta",currency:"Moneda",currencies:"Monedas",balance:"Saldo",address:"Direcci\xf3n",email:"Email",executive:"Ejecutivo",observations:"Observaciones",observationsPlace:"No es necesario agregar una observaci\xf3n pero te puede servir de utilidad",reqField:"Campo obligatorio",buttonNewEntity:"+ Nuevo",actualBalance:"Saldo actual",newProduct:"Nuevo producto o servicio",back:"Volver",process:"Procesando...",addNew:"A\xf1adir nuevo",createNproduct:"Crear un nuevo producto",createNService:"Crear un nuevo servicio",createNCombo:"Crear un combo de 2 o m\xe1s productos/servicios",product:"Producto",service:"Servicio",combo:"Combo",fieldsReq:"Los campos marcados con",required:"son requeridos.",requiredField:"Este campo es requerido",next:"Siguiente",comboItems:"Items del combo",addNewProduct:"A\xf1adir nuevo producto",addNewService:"A\xf1adir nuevo servicio",addNewCombo:"A\xf1adir nuevo combo",addProductName:"Ingresa el nombre del producto",addServiceName:"Ingresa el nombre del servicio",addComboName:"Ingresa el nombre del combo",typeProduct:"Tipo de producto",typeService:"Tipo de servicio",typeCombo:"Tipo de combo",amount:"C
1antidad",description:"Descripci\xf3n",item:"Item",internalCost:"Costo interno s/IVA",unitPrice:"Precio unitario s/IVA",unitPriceWithIVA:"Precio unitario c/IVA",priceDetail:"Detalle del precio",detail:"Detalle",addMinStock:"Ingrese el stock m\xednimo",alertMinStock:"Te enviaremos una alerta cuando el stock llegue al m\xednimo.",tooltipMinStock:"Para configurar el alerta de stock m\xednimo ingresa a Mi cuenta > Datos de la empresa > Alerta y avisos",alertStock:"Alerta de stock m\xednimo",automaticPrice:"Precio autom\xe1tico",automaticPriceExp:"El precio autom\xe1tico se calcula en base al precio sin IVA de los productos que lo componen.",internalCost2:"Costo interno sin IVA",costEffec:"Rentabilidad",unitPrice2:"Precio unitario con IVA",unitPrice3:"Precio unitario sin IVA",finalPrice:"Precio final",AdditionalInfo:"Informaci\xf3n adicional",CodOEM:"C\xf3digo OEM",supplierOr:"Proveedor origen",supplier:"Proveedor",selectSupplierOr:"Seleccione un cliente/proveedor",purchaseAccount:"Cuenta Compra",selectAccount:"Seleccione una cuenta",accountSale:"Cuenta Venta",merchAccount:"Cuenta Mercader\xeda",visibleSalesMod:"Visible en m\xf3dulo ventas",achievedRG:"Alcanzado por RG 5329/2023",mainInformation:"Informaci\xf3n principal",title:"T\xedtulo",active:"Activo",formatImg:"JPG, PNG o GIF",selectFormat:"Selecciona un archivo en formato",selectFormat2:"con un formato m\xe1ximo recomendado de 100x70px.",img:"Imagen",deposit:"Dep\xf3sito",initialStock:"Stock inicial",appAll:"Aplicar a todos",uniquePriceBlockTitle:"Precio \xfanico para todas las variantes",uniquePriceBlockTooltip:"El precio que cargues aqu\xed se aplicar\xe1 autom\xe1ticamente a todas las variantes del producto.",uniquePriceInfoCardVariants:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Tienes configurado utilizar el mismo precio para todas las variantes. Completa el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas. Si necesitas editar informaci\xf3n espec\xedfica de una variante, haz clic en el \xedcono del l\xe1piz.",uniquePriceLockedTooltip:"El precio de esta variante se completa autom\xe1ticamente con el valor del bloque Precio \xfanico. Puedes modificar esta configuraci\xf3n desde Mi Cuenta \u2192 Preferencias \u2192 Par\xe1metros.",uniquePriceConvergenceWarning:"Las variantes de este producto tienen precios distintos. Al guardar, todas quedar\xe1n con los valores del bloque Precio \xfanico.",uniquePriceConfirmTitle:"\xbfActualizar el precio de todas las variantes?",uniquePriceConfirmText:"Este producto tiene variantes con diferentes precios. Al continuar, ",uniquePriceConfirmTextHighlight:"todas las variantes se actualizar\xe1n con el precio definido en Precio \xfanico para todas las variantes: {{price}}.",uniquePriceConfirmTextReplace:" Este cambio reemplazar\xe1 los precios actuales de todas las variantes.",uniquePriceConfirmContinue:"Continuar",uniquePriceMissingTitle:"Completa el precio para continuar",uniquePriceMissingText:"Detectamos que este producto tiene variantes con distintos precios. Completa el precio una sola vez en el bloque Precio \xfanico y se aplicar\xe1 autom\xe1ticamente a todas las variantes.",uniquePriceMissingUnderstood:"Entendido",duplicateCodeError:"SKU duplicado",emptySKU:"Has dejado c\xf3digos SKU incompletos, por favor, revisa el listado y compl\xe9talo para continuar.",only:"\xdanico",withVariants:"Con variantes",tooltipVariant:"Aprende m\xe1s sobre variantes desde Tutoriales recomendados",noOption:"No se ha encontrado una opci\xf3n",selectCat:"Selecciona un rubro",selectSubCat:"Selecciona un sub-rubro",selectItem:"Seleccione un item",initialStockCharge:"Carga inicial de stock",presentations:"Presentaciones",presentationsInfo:"Las Presentaciones que configures se crear\xe1n autom\xe1ticamente en todos los dep\xf3sitos. El stock siempre se administra en unidades base.",presentationsVariantsInfo:"Las Presentaciones pueden aplicarse a todas las variantes o configurarse de forma independiente en cada variante. El stock siempre se administra en unidades base.",addPresentation:"Agregar presentaci\xf3n",noAdditionalPresentations:"Sin presentaciones adicionales.",presentationTypesEmptyTitle:"A\xfan no ten\xe9s tipos de Presentaciones configurados",presentationTypesEmptyDescription:"Configur\xe1 al menos un tipo de Presentaci\xf3n para poder agregarlo a tus productos.",configurePresentations:"Configurar Presentaciones",presentationType:"Tipo de presentaci\xf3n",selectPresentationType:"Seleccionar tipo...",equalsTo:"Equivale a",unitsLabel:"unidades",presentationEquivalenceInvalid:"La equivalencia debe ser un n\xfamero entero mayor a 1.",presentationEquivalenceMax:"La equivalencia no puede superar 999.999.",weight:"Peso",weightPlaceholder:"Ej: 3,5",dimensions:"Dimensiones",dimensionsPlaceholder:"Ej: 30x20x15",adjustmentPercent:"Ajuste (%)",adjustmentPlaceholder:"0",presentationPriceWithIva:"Precio Present. c/IVA",presentationPriceWithoutIva:"Precio Present. s/IVA",presentationPriceComplementWithIva:"Precio Present. c/IVA",presentationPriceComplementWithoutIva:"Precio Present. s/IVA",presentationPriceMaxTooltip:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y decimales seg\xfan configuraci\xf3n base.",presentationCalculatedPriceExceedsMaxAlert:"El precio calculado de una o m\xe1s presentaciones supera el m\xe1ximo permitido. Revis\xe1 la equivalencia o el precio unitario para continuar.",price:"Precio",complete:"completos",presentationsCount:"presentaciones",noVariantsForPresentations:"No hay variantes para configurar presentaciones.",applyPresentationsToAll:"Aplicar a todas las variantes",applyPresentationsToAllConfirmTitle:"Confirmar cambio",applyPresentationsToAllConfirm:"\xbfDeseas aplicar la misma configuraci\xf3n de presentaciones a todas las variantes? Las configuraciones particulares de cada variante ser\xe1n reemplazadas por la configuraci\xf3n general.",applyPresentationsToAllDisableConfirm:"\xbfDeseas configurar las presentaciones de forma independiente por variante? Dejar\xe1s de aplicar la misma configuraci\xf3n a todas las variantes.",presentationDeleteBlockedTitle:"No se pudo eliminar la Presentaci\xf3n.",presentationDeleteConfirmTitle:"\xbfEst\xe1s seguro que deseas eliminar la presentaci\xf3n {{name}}?",presentationDeleteBlockedDescription:"La Presentaci\xf3n no puede eliminarse porque ya ha sido utilizada en uno o m\xe1s comprobantes. Si ya no necesitas utilizarla, puedes inactivarla.",searchVariantSkuPlaceholder:"Buscar por SKU o nombre",noVariantsForSkuSearch:"Sin variantes para el SKU buscado",charactersToSearch:"Escribe dos o m\xe1s caracteres para buscar",noResults:"No hay resultados para mostrar",errorTitle:"Ha ocurrido un error",errorcontent:" Lo sentimos, ha ocurrido un error. No se pudo completar tu solicitud. Por favor, intenta m\xe1s tarde.",errorContent2:"Lo sentimos, ha ocurrido un error. No se pudo completar la acci\xf3n. Por favor intenta de nuevo m\xe1s tarde.",tooldeleteEntities:"No es posible eliminar entidades con comprobantes asociados",entitiesNotDelete:"No es posible eliminar todas la entidades. Debe haber al menos una entidad activa",Advert
1isements:"Anuncios",alertFuntionalities1:"Aqu\xed encontraras inpormaci\xf3n actualizada sobre las \xfaltimas funcionalidades que hemos agregado, para que puedas aprovechar al m\xe1ximo nuestra plataforma ",alertFuntionalities2:"En contabilium queremos escucharte. Ay\xfadanos a mejorar la plataforma dej\xe1ndonos tus sugerencias o votando por las que consideres importantes. Solo presiona la flecha hacia arriba junto al n\xfamero de la sugerencias",alertFuntionalities3:"Aqu\xed encontraras un listado de las mejoras y nuevas funcionalidades que pronto estar\xe1n disponibles en nuestra plataforma. \xa1Mantente al d\xeda con lo que viene! ",headingsError:"Si no cuenta con rubros, deber\xe1 crear uno",attributeWarning:"Est\xe1s por modificar un atributo",attributeChangeWarning:"Al proceder se modificar\xe1 en cada producto o servicios d\xf3nde se encuentre configurado.",modifyAttribute:"Modificar atributo",attributeConfig:"Configuraci\xf3n de atributo",attributeName:"Nombre del atributo",writeName:"Escribe un nombre",attributeDescription:"Descripci\xf3n del atributo",writeDescription:"Escribe una descripci\xf3n",variant:"Variante",addNewVariant:"A\xf1adir nueva variante",close:"Cerrar",eliminateAttribute:"No puedes eliminar el atributo",eliminateWarning:"Para proceder deber\xe1s eliminar los productos o servicios que est\xe9n asociados a \xe9ste atributo.",IVAPer:"IVA %",finalPriceWoIVA:"PRECIO SIN IVA",yes:"Si",no:"No",store:"Bodega",tooltipIVA2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo pod\xe9s cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVA5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo pod\xe9s cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVA10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo pod\xe9s cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVA1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo pod\xe9s cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVAStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo pod\xe9s cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVACl2:"Est\xe1s usando el precio con IVA incluido y redondeo de 2. Lo puedes cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVACl5:"Est\xe1s usando el precio con IVA incluido y redondeo de 5. Lo puedes cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVACl10:"Est\xe1s usando el precio con IVA incluido y redondeo de 10. Lo puedes cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVACl1:"Est\xe1s usando el precio con IVA incluido y redondeo de 1. Lo puedes cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVACl500:"Est\xe1s usando el precio con IVA incluido y redondeo de 500. Lo puedes cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVACl1000:"Est\xe1s usando el precio con IVA incluido y redondeo de 1000. Lo puedes cambiar desde Mi cuenta > Datos de mi empresa > Config. base",tooltipIVAClStandar:"Est\xe1s usando el precio con IVA incluido y redondeo est\xe1ndar. Lo puedes cambiar desde Mi cuenta > Datos de mi empresa > Config. base",mainData:"Datos principales",search:"Buscar",searchPlaceHolder:"Escribe para buscar",addNewAttribute:"A\xf1adir nuevo atributo",attributesVariants:"Variantes del atributo",deleteAttribute:"Eliminar atributo",attributesAndVariants:"Nombre y variantes del atributo",typeSelectorDescriptionProduct:"Un producto \xfanico es para aquellos comercios que solo tienen un tipo de producto, mientras que cargar un producto con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",newFunctionality:"\xa1Nueva funcionalidad!",variantName:"Nombre variante",attributesConfig:"Configuraci\xf3n de atributos",variantsConfig:"Configuraci\xf3n de variantes",attribute:"Atributo",variantsSummary:"Al presionar las variantes, estas se deseleccionar\xe1n.",variantsSummaryEdition:"Solo se pueden activar y agregar nuevas variantes",addExitAttribute:"Agregar atributo existente",depositName:"Nombre del dep\xf3sito",depositInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de los dep\xf3sitos.",storeName:"Nombre de la bodega",storeInfo:"Al hacer clic en el \xedcono del l\xe1piz, se accede a la configuraci\xf3n y opciones de las bodegas.",addVariant:"Agregar variante",apply:"Aplicar",applyChanges:"Aplicar cambios",insertName:"Ingresar nombre",typeSelectorDescriptionService:"Un servicio \xfanico es para aquellos comercios que solo tienen un tipo de servicio, mientras que cargar un servicio con variantes es para aquellos que tienen m\xfaltiples opciones de productos que los clientes pueden elegir, por ejemplo, talle o color.",variantStatusTooptip:"Si el estado es inactivo todas las variantes quedar\xe1n inactivas",stockInfo:"*Al ingresar stock desde esta pantalla no se generan de forma autom\xe1tica los asientos contables por ajuste de mercader\xeda.",productSearchLabel:"Buscar nombre, descripci\xf3n o SKU",viewFilters:"Ver filtros",filtersApplied:"filtros aplicad
1os",allProducts:"Todos los productos",allHeadings:"Todos los rubros",allSubHeadings:"Todos los sub-rubro",allProviders:"Todos los proveedores",productType:"Tipo de producto",filters:"Filtros",filter:"Filtrar",labelPrinting:"Impresi\xf3n de etiquetas",selectPrintingItems:"Seleccionar los \xedtems a imprimir",labelPrintingConfig:"Configuraci\xf3n de etiquetas",printers:"Impresora",selectPrinter:"Seleccione impresora",selectOption:"Seleccione una opci\xf3n",selectFieldsToShow:"Seleccione los campos de la etiqueta",barcodeFormat:"Formato del c\xf3digo de barras",labelQuantity:"Cantidad de etiquetas por producto",labelSize:"Tama\xf1o de etiqueta",fieldsToShow:"Campos a mostrar",print:"Imprimir",preview:"Vista previa",successDownload:"Se descarg\xf3 el archivo para imprimir correctamente",errorDownload:"No se pudo descargar el archivo para imprimir correctamente",noResult:"No se encontraron resultados",emptyStateSearchProductsText:"Intenta cambiar los filtros, buscar otro art\xedculo, descripci\xf3n o SKU",view:"Ver",all:"Todos",grouperSkuCodeP:"Al cargar un producto con variantes se debe crear un c\xf3digo SKU agrupador",grouperSkuCodeS:"Al cargar un servicio con variantes se debe crear un c\xf3digo SKU agrupador",labelBarCodeLengthMax:"Se ha excedido la longitud m\xe1xima permitida para el c\xf3digo de barras.",labelBarCodeLabelLengthDistinct:"Los formatos de c\xf3digo de barra de tus productos elegidos no son compatibles con el formato de c\xf3digo de barra seleccionado.",defaultError:"Ha ocurrido un error, por favor, vuelve a intentarlo.",columnMatchingTitle:"Asignar los campos importados a los productos",columnMatchingInfo:"Selecciona las columnas de tu archivo y asegurate de hacerlas coincidir con los campos requeridos para la importaci\xf3n.",columnName:"Nombre de la columna",assignField:"Asignar al campo",firstRowPreview:"Vista previa 1ra fila",bulkImportTitle:"Importaci\xf3n masiva de informaci\xf3n",bulkImportDate:"Fecha de importaci\xf3n",bulkImportStatus:"Estado de importaci\xf3n",bulkImportHistory:"Historial de importaciones",downloadBaseFile:"Descargar planilla base",select:"Seleccionar",uploadFile:"Subir archivo xlsx o csv",dragAndDropFileTitle:"o arrastrar el archivo aqu\xed.",validUploadFilesText:"Recuerda que solo se pueden subir archivos ",columnOrder:"Asignaci\xf3n de columnas",downloadFile:"Descarga de planilla ",downloadFileButton:"Descargar planilla",downloadFileInfo:"Descarg\xe1 la planilla y utiliz\xe1 el archivo modelo o hac\xe9 click en siguiente y sub\xed tu propia planilla. Aseg\xfarate de completar todos los campos obligatorios.",uploadFileHelp:"Para guardar el archivo haz click en \u201cArchivo\u201d -> \u201cGuardar Como\u201d y guarda tu excel en formato \u201c.xlsx\u201d. Si tu computadora es de la marca Apple, podr\xedas necesitar esta informaci\xf3n.",bulkImportConfirmation:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n?",bulkImportConfirmationWithTable:"\xbfEst\xe1 seguro que desea realizar la importaci\xf3n? De no ser as\xed, sugerimos que revises el listado que figura en la previsualizaci\xf3n.",bulkImportProcessedText:"Ten presente que este proceso se ejecuta en segundo plano. Cuando finalice, se te enviar\xe1 una notificaci\xf3n con la confirmaci\xf3n.",bulkImportDataSizeText:"Dependiendo de la cantidad de datos a importar el proceso puede demorar algunos minutos.",bulkImportProductErrorText:"Los productos marcados con errores en la tabla o que posean datos incorrectos al momento de la importaci\xf3n, no ser\xe1n importados.",buklImportCheckText:"He verificado que los datos a subir son correctos",bulkImportErrorModalTitle:"Ha ocurrido un error en la importaci\xf3n",bulkImportErrorModal:"Por favor, verific\xe1 que los campos o el archivo importado posean el formato correcto.",import:"Importar",importSuccess:"\xa1Importaci\xf3n iniciada con \xe9xito!",importNewsNotification:"Mantente atento al historial de importaciones para ver en que estado se encuentra tu importaci\xf3n.",templateGuide:"Indicaciones para completar la planilla",columnTemplateGuide:"Indicaciones para reacomodar las columnas",firstTutorialText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",secondTutorialText:"Debes completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evit\xe1 el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",thirdTutorialText:"Para determinar el tipo de concepto (ya sea producto o servicio), utiliza \u201cP\u201d para producto y \u201cS\u201d para servicio. Esto ayuda a clasificar adecuadamente los elementos en la planilla.",fourthTutorialText:"El estado de un producto se define como activo (A) o inactivo (I). Pod\xe9s crear nuevos productos con estados activos o inactivos, o modificar el estado de productos existentes seg\xfan sea necesario.",fifthTutorialText:"En el caso de usuarios con bi-moneda, la moneda debe ser especificada como Gs o USD. No es posible editar la moneda de un producto previamente cargado en el sistema.",sixthTutorialText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",seventhTutorialText:"Si un producto ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",firstColumnTutorialText:"Representa el t\xedtulo del campo requerido para la importaci\xf3n de datos.",secondColumnTutorialText:"Columna en donde se mostrar\xe1n los t\xedtulos del archivo importado.",thirdColumnTutorialText:"Se debe seleccionar un elemento. Los datos importados de este elemento se asignar\xe1n al campo requerido. Si un t\xedtulo ya se encuentra seleccionado, no puede repetirse en otro campo requerido.",fourthColumnTutorialText:"Vista previa del primer dato del archivo importado que se asignar\xe1 al campo requerido.",firstRow:"1\xb0 Fila",fatherSKU:"SKU padre",unitP:"P. unitario",barCode:"C\xf3d. barra",urlImg:"URL imagen",originSupplier:"C\xf3d. proveedor",purchaseAcc:"Cta. compra",saleAcc:"Cta. venta",merchAcc:"Cta. mercader\xeda",rgAchived:"Alcanzado RG",attribute1:"Atributo1",attribute2:"Atributo2",variantAttribute1:"Var. atributo1",variantAttribute2:"Var. atributo2",internalCost3:"Costo interno",variantSKU:"SKU variante",variantObservation:"Observ. variante",existingProduct:"Producto existente",tableNewProduct:"Producto nuevo",title1:"Zapatilla run",title2:"Pantal\xf3n run",sku1:"SKU-ABC123",sku2:"\tSKU-DEF456",typeP:"P",typeS:"S",stateA:"A",stateI:"I",urlImg1:"http://imagen.com/imagen01.jpg",urlImg2:"http://imagen.com/imagen02.jpg",category1:"Zapatillas",category2:"Pantalones",subCategory2:"Deportivo",de
1scription1:"Zapatillas deportivas",description2:"Pantalones largos, algod\xf3n",tableSupplier:"CODE123",accCode1:"1.1.2.3",accCode2:"1.2.1.4",observation1:"Lleva cordones",observation2:"Ajustable",bCode1:"12345678",bCode2:"AB67890CD",ivaRate:"Tasa IVA",ivaDetail:"Tipo de IVA",iva1:"5",iva2:"10",ivaDetail1:"Gravado al 5%",ivaDetail2:"Gravado al 10%",currency1:"Gs",currency2:"USD",fileFirstColumnText:"Borr\xe1 o ignor\xe1 esta columna",fileSecondRowText1:"Borr\xe1 o ignor\xe1 esta fila",fileSecondRowText2:"CAMPO OBLIGATORIO - Denominaci\xf3n de tu Producto o servicio",bulkImportProductsAndServices:"Importaci\xf3n masiva de productos y servicios",bulkImportVariantsProductsAndServices:"Importaci\xf3n masiva de productos y servicios con variantes",bulkImportVariantsProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n para importar masivamente productos y/o servicios con variantes.",bulkImportVariantsImportedConcepts:"Productos y servicios importados",variantsDownloadFileInfo:"Descarga la planilla y utiliza el archivo modelo o haz click en siguiente y sube tu propia planilla. Aseg\xfarate de completar todos los campos obligatorios.",variantsTemplateGuide:"Indicaciones para completar la planilla",variantAttribute1Header:"Atributo 1",variantVariant1Header:"Variante de atributo 1",variantIvaTypeHeader:"Tipo IVA",errorVariantMax:"Superaste el m\xe1ximo de 100 variantes para este SKU agrupador. Las variantes excedentes no ser\xe1n importadas.",errorInvalidVariantType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cV\u201d para variantes de producto y \u201cG\u201d para variantes de servicio.",errorVariantTypeNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Tipo. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantCurrencyDistinct:"Todas las variantes de un mismo SKU agrupador deben tener la misma moneda.",errorVariantCurrencyNotModifiable:"El SKU agrupador ya existe y no es posible modificar su Moneda. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorVariantAttributeRepeated:"Esta combinaci\xf3n de variantes de atributo ya fue utilizada dentro del mismo SKU agrupador.",errorVariantSkuDuplicated:"El SKU de variante ingresado ya pertenece a otro concepto. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSkuEquals:"El SKU de la variante no puede ser igual al SKU agrupador",errorAttributeNotExists:"El atributo ingresado no existe o no coincide con ninguno que tengas registrado.",errorAttributeDisabled:"El atributo ingresado est\xe1 inactivo.",errorAttributeMax:"Se admite un m\xe1ximo de 2 atributos por producto o servicio con variantes.",errorAttributeItemNotExist:"La variante ingresada no existe.",errorAttributeItemDisabled:"La variante ingresada est\xe1 inactiva.",errorAttributeItemUnlinked:"La variante de atributo ingresada no existe o no tiene relaci\xf3n con el atributo seleccionado.",variantGrouperNameHeader:"Nombre agrupador",variantSkuGrouperHeader:"C\xf3d SKU agrupador",variantNameHeader:"Nombre de variante",variantAttribute2Header:"Atributo 2",variantVariant2Header:"Variante de atributo 2",variantSkuHeader:"SKU variante",variantObservationsHeader:"Observaciones de variante",variantsSkuGrouperFilterPlaceholder:"Buscar por C\xf3d SKU agrupador",errorGrouperNotFound:"El SKU Agrupador no existe.",errorTypeNotEditable:"No es posible modificar el tipo de un producto o servicio con variantes existente.",errorCurrencyNotEditable:"No es posible modificar la moneda de un producto o servicio con variantes existente.",errorCurrencyNotShared:"Todas las variantes de un mismo agrupador deben compartir la misma moneda.",errorHeadingNotFound:"El rubro informado no existe.",errorSubHeadingNotFound:"El subrubro informado no existe o no pertenece al rubro seleccionado.",errorProviderNotFound:"El proveedor informado no existe.",errorAttributeNotMatch:"El atributo informado no corresponde al agrupador.",errorNoNewAttributes:"No es posible agregar nuevos atributos a un agrupador existente.",errorMaxAttributes:"El agrupador ya posee el m\xe1ximo de dos atributos configurados.",errorAttributeVariantNotMatch:"La variante del atributo no corresponde al atributo informado.",errorAttributeCombination:"La combinaci\xf3n de atributos ya existe para este agrupador.",errorVariantSkuNotFound:"El SKU Variante no existe.",errorVariantSkuOtherGrouper:"El SKU Variante ya pertenece a otro agrupador.",errorMaxVariants:"No se pueden crear m\xe1s de 100 variantes por atributo.",variantsRowErrorSingular:"err\xf3neo de",variantsRowErrorPlural:"err\xf3neos de",selectAnOption:"Selecciona una opci\xf3n",variantsMaxFileSizeError:"El archivo importado supera el tama\xf1o m\xe1ximo permitido.",variantsColumnCountError:"La cantidad de columnas del archivo no coincide con la estructura esperada.",variantsEmptyFileError:"El archivo no posee ning\xfan registro.",variantsMaxRowsError:"El archivo supera el m\xe1ximo de 2500 filas permitidas.",variantsInvali
1dFileType:"No puedes subir este tipo de archivo. Solo se permiten archivos .csv y .xlsx.",variantsFileReadError:"Hubo un problema al leer el archivo. Verifica que no est\xe9 da\xf1ado e intenta nuevamente.",variantsWizardStepInProgress:"historia 3 en desarrollo",variantIndicationFirstRowText:"Al utilizar la plantilla modelo, es importante no eliminar columnas ni cambiar los nombres que figuran en la primera fila. Esto asegura la consistencia de los datos y facilita su procesamiento.",variantIndicationNameText:"Debes completar el archivo, ya sea el modelo proporcionado o uno propio, utilizando caracteres simples como letras y n\xfameros. Evita el uso de caracteres especiales como comillas, signos de admiraci\xf3n o la barra vertical para mantener la integridad de los datos.",variantIndicationSkuText:"Para crear o actualizar productos o servicios con variantes es obligatorio informar el SKU Agrupador. Todas las variantes que pertenezcan al mismo producto o servicio deber\xe1n repetir el mismo SKU Agrupador. Si el SKU no existe, se crear\xe1 un nuevo concepto; si existe, se actualizar\xe1.",variantIndicationCurrencyText:"En empresas con bi-moneda, todas las variantes de un mismo agrupador deben compartir la misma moneda. No es posible modificar la moneda de conceptos ya existentes.",variantIndicationAttributeText:"Cada agrupador debe contar con al menos un atributo y una variante asociada. Se permite configurar hasta 2 atributos y un m\xe1ximo de 10 variantes por atributo.",variantsSkuMaxLengthError:"El campo SKU variante admite hasta 50 caracteres. Corrige el archivo y vuelve a subirlo.",variantIndicationUnitPriceText:"Los importes deben ser ingresados sin punto para los miles y utilizando coma para delimitar los decimales. Por ejemplo, 3500,50 representa tres mil quinientos pesos con cincuenta centavos.",variantIndicationFirstRowTitle:"1\xb0 Fila",variantIndicationNameTitle:"Nombre agrupador",variantIndicationSkuTitle:"C\xf3d SKU agrupador",variantIndicationCurrencyTitle:"Moneda",variantIndicationAttributeTitle:"Atributo 1 y Variante de atributo 1",variantIndicationUnitPriceTitle:"Precio unitario",variantIndicationIvaRateTitle:"Tasa IVA",variantIndicationIvaRateText:"Para productos sujetos a impuesto al valor agregado (IVA), los Monotributistas solo pueden completar el campo de porcentaje de IVA con \u201c0\u201d (cero). Esto puede ser importante para la correcta facturaci\xf3n y cumplimiento fiscal.",variantIndicationNonRequiredText:"Si un producto o servicio con variantes ya existe en el sistema y tiene informaci\xf3n cargada en campos no obligatorios, al dejar una columna vac\xeda en la importaci\xf3n, la informaci\xf3n previamente cargada en esos campos no obligatorios no se eliminar\xe1. Esto asegura que los datos existentes se mantengan intactos a menos que se modifiquen expl\xedcitamente.",bulkImportProductsAndServicesSubTitle:"Seleccion\xe1 esta opci\xf3n si quer\xe9s cargar productos y/o servicios.",startBulkImport:"Empezar importaci\xf3n",duplicatedField:"Campo duplicado",emptyBulkImportHistoryTitle:"Tu historial de importaciones est\xe1 vac\xedo",errorBulkImportHistoryTitle:"Ocurri\xf3 un error al cargar el historial",emptyBulkImportHistoryText:"Una vez que comiences una importaci\xf3n, podr\xe1s ver el progreso y los detalles aqu\xed.",user:"Usuario",users:"Usuarios",uploadNew:"Cargar nuevo",dropNew:"o arrastrar otro archivo aqu\xed",selectImgByUrl:"Sube una imagen mediante URL: Ingresa la direcci\xf3n web de la imagen que deseas cargar",goToOldConceptsCreation:"Ir a la versi\xf3n anterior",productCheck:"Revisi\xf3n de productos",bulkImportPreviousResults:"Resultados previos a la importaci\xf3n",filterFor:"Filtrar por:",result:"Resultado",errorState:"Error",errorFilter:"Err\xf3neos",correctState:"Correcto",withoutErrorFilter:"Sin errores",bulkImportFileErrorTitle:"El archivo importado presenta errores",bulkImportFileErrorText:"Se han detectado errores en el archivo que dese\xe1s importar. Si contin\xfaas, los elementos con fallas no ser\xe1n importados. Para asegurar una importaci\xf3n completa, correg\xed los errores y volv\xe9 a subir el archivo.",uploadAgain:"Volver a subir",emptyStateChangeFilter:"Intent\xe1 cambiar los filtros.",errorMissing:"Este campo posee un error.",errorMaxLimit30:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 30 caracteres.",errorRequiredField:"Este campo es obligatorio. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorMaxLimit50:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 50 caracteres.",errorMaxLimit128:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 128 caracteres.",errorMaxLimit150:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 150 caracteres.",errorMaxLimit500:"Has superado la cantidad de caracteres permitidos. El m\xe1ximo disponible es de 500 caracteres.",errorMaxLimitPrice:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 9 enteros y 3 decimales (999999999,999).",errorMaxLimitProfitability:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 6 enteros y 3 decimales (999999,999).",errorMaxLimitMinStock:"Has superado la cantidad de caracteres num\xe9ricos permitidos. El m\xe1ximo disponible es 4 enteros (9999).",errorSkuRepeated:"El SKU ingresado ya fue utilizado dentro de esta importaci\xf3n. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorInvalidCurrency:"La opci\xf3n ingresada es inv\xe1lida. El campo Moneda \xfanicamente acepta Gs para guaran\xedes paraguayos o, en caso de poseer bi moneda, USD para d\xf3lares estadounidenses.",errorInvalidType:"La opci\xf3n ingresada es inv\xe1lida. El campo Tipo debe completarse \xfanicamente con \u201cP\u201d o \u201cProducto\u201d para productos y \u201cS\u201d o \u201cServicio\u201d para servicios.",errorInvalidStatus:"La opci\xf3n ingresada es inv\xe1lida. El campo Estado debe completarse \xfanicamente con \u201cA\u201d o \u201cActivo\u201d para activos e \u201cI\u201d o \u201cInactivo\u201d para inactivos.",errorInvalidURL:"El formato URL de la imagen es incorrecto. Por favor, corrobor\xe1 que comience con \u201chttps\u201d y que el tipo de archivo de imagen sea jpg, jpeg, gif, o png.",errorInvalidNumberField:"\xc9ste campo puede completarse \xfanicamente con caracteres num\xe9ricos y utilizando una coma (,) o un punto (.) como separador decimal.",errorInvalidIVA:"La Tasa IVA ingresada es inv\xe1lida. Los valores permitidos son: 0, 5 y 10.",errorInvalidIvaDetail:"El tipo de IVA ingresado no existe o no tiene relaci\xf3n con la Tasa IVA.",errorInvalidMinStock:"\xc9ste campo debe completarse \xfanicamente con caracteres num\xe9ricos. Ten\xe9 en cuenta que el campo Stock m\xednimo no acepta decimales.",errorNegativeNumbers:"\xc9ste campo no puede completarse con n\xfameros negativos. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorDecimals:"El campo Stock m\xednimo no acepta decimales. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorHeading:"El rubro ingresado no existe o no coincide con ning\xfan rubro que tengas registrado. En caso de no corregir \xe9ste campo, el concepto no ser\xe1 importado.",errorSubHeading:"El sub-rubro ingresado no existe o no tiene relaci\xf3n con el rubro seleccionado.",bulkImportFieldValueNotFound:"El valor no existe en ese campo o est\xe1 inactivo. Rev\xedsalo en Mi Cuenta \u2192 Campos de productos.",bulkImportFieldNotAvailable:"El campo no est\xe1 habilitado. Habil\xedtalo en Mi Cuenta \u2192 Campos de productos o deja la celda vac\xeda.",descriptiveFieldsTutorialText:"Marca, L\xednea, Material, Origen, Temporada y Calidad son opcionales. Escribe el nombre del valor como figura en Mi Cuenta \u2192 Campos de productos. El campo tiene que estar habilitado y el valor activo; si no, la fila se marca con error. No se crean valores nuevos.",noFileError:"No se ha adjuntado ning\xfan archivo.",maxProductsFileError:"Has superado el m\xe1ximo de productos por archivo. Por favor, verific\xe1 que tu documento posea menos de 2500 items.",emptyFileError:"El archivo no posee ning\xfan item.",invalidFileError:"El archivo enviado no posee un formato correcto.",fileTooLargeError:"El archivo importado en muy pesado. Por favor, verific\xe1 que tu documento pese menos de 1MB.",columnFileDistinctError:"El n\xfamero de columnas que posee tu archivo es distinto al esperado.",jobError:"Se han detectado errores en el proceso de importaci\xf3n. Por favor, revis\xe1 tu documento y volvelo a intentar.",importRunningError:"No es posible realizar dos importaciones al mismo tiempo. Por favor, esper\xe1 que termine el proceso actual para cargar otro archivo.",currencyNotEditable:"No es posible editar la moneda de un producto previamente cargado en el sistema.",providerNotFound:"El proveedor no existe o no coincide con ningun registro guardado",headingNotFound:"El rubro no existe o no coincide con ningun registro guardado",subHeadingNotFound:"El subrubro no existe o no est\xe1 relacionado con el rubro seleccionado.",typeNotEditable:"No es posible editar el tipo de un producto previamente cargado en el sistema.",budgetsTitle:"Presupuestos realizados",numberClient:"Buscar n\xfamero de presupuesto o cliente",period:"Periodo",addClient:"Ingrese el n\xfamero de presupuesto y/o cliente",newBudget:"Nuevo presupuesto",export:"Exportar",dateValidity:"Fecha de validez",dateFrom:"Fecha desde",dateTo:"Fecha hasta",selectUserAdditional:"Seleccione un usuario adicional",emptyBudgetsListTitle:"Todav\xeda n
1o creaste ningun presupuesto",emptyBudgetsListText:"Una vez que cargues un presupuesto, podr\xe1s ver los detalles aqu\xed.",emptyFiltersBudgetsListTitle:"No se han encontrado resultados",emptyFiltersBudgetsListText:"Lo sentimos, no se han encontrado resultados. Por favor, intente con diferentes criterios de b\xfasqueda.",errorFiltersBudgetsListTitle:"Ha ocurrido un error",errorFiltersBudgetsListText:"Por favor, vuelve a intentarlo",client:"Cliente",document:"Documento",location:"Domicilio",sellerCondition:"Condici\xf3n de Venta",exchangeType:"Tipo de cambio",date:"Fecha",seller:"Vendedor",quantityShort:"Cant.",code:"C\xf3digo",unitPriceShort:"Precio unit.",unitPriceShortWoIVA:"Precio unit. s/IVA",unitPriceShortIVA:"Precio unit. c/IVA",bonusShort:"Bonif. %",iva:"Iva",subtotal:"Subtotal",userCreates:"Usuario Alta",userModifies:"Usuario Modifica",budgets:"Presupuestos",modalBudgetsTitle:"\xbfEst\xe1 seguro que desea eliminar el presupuesto ",delete:"Eliminar",sellers:"Vendedores",createBudgets:"Crear nuevo presupuesto",editBudgets:"Editar presupuesto",principalData:"Datos principales",paymentConditions:"Condiciones de pago",selectSeller:"Selecciona un vendedor",exchangeRate:"Tipo de cambio",itemsToBudget:"Items a presupuestar",supplierClient:"Proveedor/Cliente",unitPriceTable:"Precio unit. sin IVA",bonif:"Bonif %",netTax:"Neto gravado",noNetTax:"NO gravado/Exento",total:"TOTAL",addNewItem:"Agregar nuevo item",actionModalTitle:"Presupuesto emitido correctamente",sendEmail:"Enviar por email",downloadRemittance:"Descargar remito",downloadBudget:"Descargar presupuesto",duplicate:"Duplicar",totalDefault:"TOTAL EN MONEDA PRINCIPAL",errorStep4Budgets:"Lo sentimos! Ingrese al menos un producto o servicio para realizar el presupuesto.",errorStep1Budgets:"Campo requerido. Completalo con un cliente/proveedor existente.",number:"N\xfamero",otherActions:"Otras acciones",createSaleOrder:"Crear orden de venta",createInvoice:"Facturar",voucherPreview:"Visualizaci\xf3n de comprobante",sendEmailVoucher:"Enviar comprobante por email",emailFor:"Para: (separa las direcciones mediante una coma)",emailSubject:"Asunto:",emailMessage:"Mensaje:",send:"Enviar",errorMailSending:"\xa1Lo sentimos! El email no pudo ser enviado, actualice la p\xe1gina e intente nuevamente.",successMailSending:"\xa1Bien hecho! El email ha sido enviado correctamente.",addFreeDescription:"o ingrese una descripci\xf3n libre",dateValidityTo:"Fecha de validez hasta",dateCreated:"Fecha de creaci\xf3n",exchangeRateError:"El tipo de cambio debe ser mayor que 0",edit:"Editar",receiptView:"Visualizaci\xf3n del comprobante",budgetView:"Visualizaci\xf3n de presupuesto",pdfPreview:"Previsualizar en PDF",simple:"Simple",detailed:"Detallado",salesModule:"M\xf3dulo Ventas",purchaseModule:"M\xf3dulo Compras",inverntaryModule:"M\xf3dulo Inventarios",treasuryModule:"M\xf3dulo Tesorer\xeda",accountingModule:"M\xf3dulo Contabilidad",reportsModule:"M\xf3dulo Reportes",restrictedAccessToModule:"\xa1Desbloquea todo el potencial de tu cuenta!",blockedModuleTextPart1:"El acceso a ",blockedModuleTextPart2:" est\xe1 disponible para planes superiores. Actualiz\xe1 tu plan para disfrutar de todas las ventajas:",comparePlans:"Comparar planes",limitations:{skusMaxUsage:"Has superado el m\xe1ximo de productos disponibles en tu plan."},draft:"Borrador",phone:"Tel\xe9fono",invoice:{invoiceMade:"Facturas realizadas",invoiceNew:"Nuevo comprobante",genericError:"Lo sentimos, ha ocurrido un error. Por favor intenta de nuevo m\xe1s tarde.",createNc:"Crear NC",seeInvoice:"Ver factura",modalInvoiceTitle:"\xbfEst\xe1 seguro que desea eliminar el comprobante realizado a ",mode:"Modo:",cell:"Tel:",sum:"Importe",totalInvoice:"Total fact.",no:"Nro",client:"Cliente",legendInvoiceA1:"El credito fiscal discriminado en el presente comprobante solo podra ser computado a efectos del Procedimiento permanente de transicion al Regimen General.",legendInvoiceA2:"Detectamos que ten\xe9s pendiente de presentaci\xf3n el formulario de habilitaci\xf3n de comprobantes o su fecha de presentaci\xf3n es anterior a tu alta en IVA. Ten\xe9s que proceder a anular la operaci\xf3n clase 'A' o 'M' emitida, mediante una Nota de Cr\xe9dito.",downloadInvoice:"Descargar factura",invoiceCancelled:"Comprobante anulado",createNcModal:"Crear nota de cr\xe9dito para el comprobante ",invoiceType:"Tipo de comprobante",pointSale:"Punto de Venta",nc:"Nota cr\xe9dito",saveDraft:"Guardar Borrador",editNc:"Editar nota de cr\xe9dito",emitNc:"Emitir nota de cr\xe9dito electr\xf3nica",appliedIn:"Aplicado en",balance:"Saldo",type:"Tipo",selectInvoiceType:"Seleccione el tipo",selectSalePoint:"Seleccione un punto de venta",salePoint:"Punto de venta",selectInvoiceMode:"Seleccione el modo",supplier:"Proveedor",selectSupplier:"Seleccione un Proveedor",selectClient:"Seleccione un cliente",associatedCollection:"y su cobranza asociada",cause:"Motivo",seeEntry:"Ver asiento",processEntry:"Reprocesar asiento",name:"Nombre",debit:"Debe",credit:"Haber",numberClient:"N\xfamero/Tipo de Factura/Cliente",ncOk:"La nota de cr\xe9dito fue creada correctamente.",counterSale:"Venta de mostrador",massBilling:"Facturaci\xf3n masiva de pendientes",currentSubscriptions:"Ver abonos actuales",createPayment:"Crear abono",billingCredits:"Facturar abonos",massPrinting:"Impresi\xf3n masiva",otherOptions:"Otras opciones",processEntryResponse:"Se ha procesado con \xe9xito 1 de un total de 1",errorEntry:"Error al procesar los asientos",errorEntry2:"Ocurri\xf3 un error al intentar cargar los datos del asiento contable. Por favor, int\xe9ntelo de nuevo m\xe1s tarde.",errorAlert:"Lo sentimos!",okAlert:"Bien hecho!",pointsSale:"Puntos de venta",pag:"hojas",format:"Formato",generate:"Generar",massPrintingInvoice:"Impresi\xf3n masiva de comprobantes",textPointsSale:"Ej: 1,2. Si no ingresa ninguno, se imprimir\xe1n todos.",errorTextModal:"Debe completar todos los campos",tooltipDate:"El rango de fechas no puede ser mayor a 6 meses",invoice:"Facturaci\xf3n",generalInformation:"Ac\xe1 van los datos m\xe1s generales de la factura.",issueInvoice:"Emitir factura electr\xf3nica",periodImputed:"Per\xedodo a imputar",periodImputedText:"Ingrese la fecha de emisi\xf3n de la factura y la fecha de Vencimiento del cobro de la factura.",currencyText:"Ingrese la moneda de la compra y el tipo de cambio.",invoiceItems:"Items a facturar",invoiceItemsText:"Ingrese a continuaci\xf3n los productos o servicios que va a incluir en la factura.",enterSalesOrderNumber:"Ingrese el nro de orden",costCenter:"Centro de costo",costCenterPlaceholder:"Seleccione un centro de costo",account:"Cuenta",emitAutoReceipt:"Emite recibo autom\xe1tico",totalDefault:"TOTAL EN MONEDA SECUNDARIA"},emailWrong:"Una de las direcciones ingresadas es inv\xe1lida.",emailsMaxLimit:"Has alcanzado el m\xe1ximo de 100 direcciones de email.",maxLimitItems:"El archivo seleccionado supera el l\xedmite de {{limit}} \xedtems. Por favor, seleccion\xe1 otro archivo para continuar.",providerCode:"C\xf3digo de proveedor",login:{useEmail:"Us\xe1 tu mail para ingresar",useEmail2:" O complet\xe1 los siguientes datos",account:"\xbfNo ten\xe9s cuenta?",accountNow:"\xbfYa ten\xe9s cuenta?",useEmailChUy:"Usa tu mail para ingresar",accountChUy:"\xbfNo tienes cuenta?",register:"Registrate",emaiCh:"Ingresa un email v\xe1lido",errPass:"Usuario y/o contrase\xf1a incorrecta",blockedUser:"Has superado el n\xfamero m\xe1ximo de intentos posibles. Por su seguridad, su cuenta ha sido bloqueada. Haga click en olvid\xe9 mi contrase\xf1a para poder recuperarla. ",remember:"Recordarme",forgot:"Olvid\xe9 mi contrase\xf1a",into:"Ingresar",recoverText:"Ingres\xe1 el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverTextChUy:"Ingresa el correo electr\xf3nico que est\xe1s utilizando para tu cuenta.",recoverPass:"Recuperar contrase\xf1a",errorMessage:"Por favor, ingrese una direcci\xf3n de correo v\xe1lida",continue:"Continuar",goBack:"Volver al login",recoverTextMail:"Ingres\xe1 al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verific\xe1 la casilla de correo no deseado.",recoverTextMailChUy:"Ingresa al link del mismo para crear una contrase\xf1a nueva. Si no lo recibiste, verifica la casilla de correo no deseado.",sendMailRecover:"Se envi\xf3 un correo a la direcci\xf3n ingresada.",newChancePass:"Crear nueva contrase\xf1a",createNewPass:"Escribe una contrase\xf1a \xfanica y segura que sea f\xe1cil ",createNewPass2:"de recordar para que no la olvides la pr\xf3xima vez.",newPass:"Contrase\xf1a nueva *",characters:"Min. 8 caracteres",oneCapital:"1 letra may\xfascula",oneletter:"1 letra min\xfascula",numberCh:"Min. 1 caracter num\xe9rico",plusCh:"No est\xe1 permitido inclu\xedr el caracter \u201c+\u201d",confirmPass:"Confirma la nueva contrase\xf1a *",matchPass:"Las contrase\xf1as no coinciden",reqField:"Campo obligatorio",chancePass:"Cambiar contrase\xf1a",btnErr:"La contrase\xf1a ha sido utilizada previamente",err:"Mensaje de error",goBackLogin1:"Ya puedes volver al login e ingresar con tu correo electr\xf3nico y tu nueva contrase\xf1a.",goBackLogin2:"Se ha completado el cambio de contrase\xf1a con \xe9xito.",subEmailVerification:"Hemos enviado un c\xf3digo de verificaci\xf3n a la cuenta ",subEmailVerification2:"el cual te solicitamos a continuaci\xf3n",registerG1:"Registro con Google",registerG2:"\xa1Te damos la bienvenida,",registerG3:"Se crear\xe1 una nueva cuenta de Contabilium",registerG4:"para la direcci\xf3n de correo electr\xf3nico",emailVerification:"Verificaci\xf3n de email",loginMfaVerification:"Verifica tu identidad",loginMfaSubVerification:"Enviamos un c\xf3digo a",loginMfaSubVerification2:". Ingresa para continuar.",loginMfaSuccessAuth:"Autenticaci\xf3n de doble factor completada con \xe9xito.",loginMfaSendCodeError:"No pudimos enviar el c\xf3digo. Intent\xe1 nuevamente en unos segundos.",loginMfaSendCodeErrorUnavailable:"No pudimos enviar el c\xf3digo, int\xe9ntelo m\xe1s tarde.",loginMfaEmailVerifiedError:"No se pudo enviar el c\xf3digo de verificaci\xf3n. Contact\xe1 a soporte para habilitar la autenticaci\xf3n de doble factor.",loginMfaInvalidCode:"El c\xf3digo no es v\xe1lido. Revisa tu email e intenta de nuevo.",loginMfaInvalidCodeLastAttempt:"El c\xf3digo no es v\xe1lido. Te queda 1 intento.",loginMfaSoftLockBlocked:"Por seguridad, el acceso est\xe1 bloqueado temporalmente. Intenta de nuevo en {{countdown}}.",loginMfaResendCode:"Reenviar c\xf3digo",loginMfaResendCodeWithTimer:"Reenviar c\xf3digo ({{seconds}}s)",loginMfaResendCodeWithTimerMmSs:"Reenviar c\xf3digo ({{countdown}})",loginMfaResendCodeSuccess:"Te enviamos un nuevo c\xf3digo.",loginMfaResendRateLimitSupport:"Si sigues sin recibir el c\xf3digo, contacta a Soporte.",codeLabel:"\xbfNo recibiste el c\xf3digo?",enterLater:"Lo ingresar\xe9 m\xe1s tarde, d\xe9jame continuar",notReceive:"\xbfNo recibiste el email? Revis\xe1 tu carpeta de spam o ",enterNewEmail:"ingres\xe1 un nuevo email",openGmail:"Abrir Gmail",openOutlook:"Abrir Outlook",notReceive2:" y prob\xe1 nuevamente",wait:"Esper\xe1",confirm:"Confirmar",seconds:"segundos",successAuth:"Se ha verificado tu email con \xe9xito.",enterCbl:"En unos segundos ingresar\xe1s a Contabilium autom\xe1ticamente.",confirmMail:"Cambio de email",enterNewEmailLabel:"Ingres\xe1 un nuevo correo electr\xf3nico para tu cuenta, donde recibir\xe1s el c\xf3digo de verificaci\xf3n.",goBackMail:"
1Volver a verificaci\xf3n de email",resendNow:"Reenviar ahora",errCodeApi:"El c\xf3digo que ingresaste es incorrecto o inv\xe1lido",expiredText:"El link ya no es v\xe1lido, por favor volv\xe9 a recuperar tu contrase\xf1a.",expiredText2:"Record\xe1 que el link tiene validez por 24 horas.",disableAccount:"Tu cuenta se ha deshabilitado temporalmente porque aun no has ingresado el c\xf3digo de verificaci\xf3n que enviamos a",pleaseEnterCode:"Por favor ingresa el c\xf3digo para volver a habilitar tu cuenta"},dashboard:{accounts:"Cuentas a pagar",sales:"Ventas - Comparativo",incomeExpenses:"Ventas vs Compras",dashboard:"Dashboard",seeInvoice:"Ver factura",pay:"Pagar",seeAll:"Ver todas",noBills:"A\xfan no ten\xe9s cuentas a pagar",noBillsChUy:"A\xfan no tienes cuentas a pagar",noSales:"A\xfan no has emitido comprobantes",lastUpdate:"\xdaltima actualizaci\xf3n: 23:30 hs.",recommendedTutorial:"Tutoriales recomendados",tutorial:"Tutoriales",dashboardData:"Los datos que se muestran en esta pantalla se sincronizan cada 5 minutos",noPending:" A\xfan no hay datos para mostrar",noPendingChUy:" A\xfan no hay datos para mostrar",remainingBalance:"Total anual de ventas sin IVA dentro del a\xf1o calendario.",tooltipPendingPay:"Total de saldo pendiente de cobro con IVA incluido.",tooltipBoxes:"Saldo acumulado hist\xf3rico de la caja visualizada.",salesPastMonth:"Ventas mes anterior",salesThisMonth:"Ventas este mes",lastSixMonths:"\xdaltimos 6 meses",noPermits:"No ten\xe9s permisos para visualizar este gr\xe1fico",error:"Se produjo un error.",tryAgain:"Intent\xe1 de nuevo m\xe1s tarde.",lockAnualBilling:"No ten\xe9s permisos para visualizar este dato",lockAnualBillingCh:"No tienes permisos para visualizar este dato",errorAnualBilling:"Intent\xe1 nuevamente m\xe1s tarde.",errorAnualBillingCh:"Intenta nuevamente m\xe1s tarde.",payNow:"Pagar ahora",payLater:"Pagar\xe9 m\xe1s tarde",contactAdm:"Contactarse con administraci\xf3n",cuit:"CUIT",RUC:"RUC",validatedText:"\xa1Validaci\xf3n de correo pendiente! Tu cuenta se deshabilitar\xe1 en las pr\xf3ximas 24 horas.",linkValidatedText:"Act\xedvala desde aqu\xed",expiredPlan:"El plazo para pagar tu plan se encuentra vencido. Podr\xe1s ponerte al d\xeda haciendo",expiredPlanCh:"El plazo para pagar tu plan se encuentra vencido. Ponte al d\xeda haciendo",click:"click aqu\xed.",popupText1:"Tu plan se encuentra impago",popupText2:"Actualmente est\xe1s en el per\xedodo de gracia ya que",popupText3:"tu plan se encuentra vencido hace ",popupText4:"d\xedas.",popupText5:"Te sugerimos realizar el pago lo antes posible",popupText6:"para que puedas seguir utilizando la plataforma.",anualBilling:"Facturado anual",buttonAnualBillingND:"+ Nueva factura",boxes:"Cajas",buttonBoxesND:"+ Nueva Caja",pendingPayment:"Pendiente de cobro",pendingPaymentBtn:"Ver detalle",errorText:"Se produjo un error.",tooltipUnitsSold:"Refleja la cantidad de unidades vendidas durante el mes actual, el mes anterior y el mismo mes del a\xf1o pasado. Solo se incluyen \xedtems con SKU; los combos se contabilizan como una sola unidad.",tooltipGetSales:"Muestra el total de ventas netas (sin IVA) correspondientes al mes en curso, mes anterior y a\xf1o calendario.",tooltipPendingBills:"Muestra el total de saldos pendientes de cobro con IVA incluido y su desglose en vencidas, por vencer y saldos a favor de tus clientes.",tooltipPendingBillsRegion:"Indica el total de saldos pendientes de cobro con IVA incluido, calculados al d\xeda cerrado.",tooltipVatPosition:"Este valor muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un dato estimativo, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes.",tooltipVatPositionCurrent:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes actual. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipVatPositionPrevious:"Muestra la diferencia entre el IVA de tus ventas y el de tus compras del mes anterior. Es un valor estimado, calculado seg\xfan la fecha de facturaci\xf3n de los comprobantes. El IVA compras incluye percepciones y retenciones de IVA.",tooltipValueStock:"Este valor representa el total del stock disponible, valorizado al precio de venta actual.",salesVariationTooltip:"Variaci\xf3n respecto al mes anterior",unitsVariationTooltip:"Variaci\xf3n respecto al mismo mes a\xf1o anterior",thisYear:"Este a\xf1o",lastMonth:"Mes anterior",getSalesTitle:"Ventas del mes sin iva",viewDetail:"Ver detalle",valuedStockLegend:"Valor total al precio de venta",dateDashboard:"Datos actualizados al cierre del d\xeda",currentMonth:"Mes actual",previousMonth:"Mes anterior",vatSales:"IVA ventas",vatPay:"IVA a pagar",vatBuys:"IVA compras",pen
1dingBillsLegend:"Saldo con IVA incluido",minimumStockTitle:"Stock m\xednimo",minimumStockLegend:"Alcanzaron el stock m\xednimo",minimumStockTooltip:"Productos y combos cuyo stock actual est\xe1 por debajo del m\xednimo definido.",minimumStockProducts:"productos",minimumStockCombos:"combos",salesByChannelTitle:"Ventas por canal",salesByChannelTooltip:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",salesByChannelFilter:"Filtrar",salesByChannelViewReport:"Ver ventas por integraci\xf3n",salesByChannelSelectChannels:"Seleccionar canales",salesByChannelMaxSelection:"M\xe1ximo 5 canales",salesByChannelApply:"Aplicar",salesByChannelOthers:"Otros",salesByChannelTotalSales:"Total ventas:",salesByChannelViewDetail:"Ver detalle",noPermissionText:"No ten\xe9s permisos para ver esta informaci\xf3n. Por favor, contact\xe1 a tu administrador.",noPermissionToViewData:"Tu perfil no tiene acceso a esta informaci\xf3n.",contactAdminForAccess:"Contacta a tu administrador para solicitarlo.",customizeDashboardEmptyState:"Personaliz\xe1 tu dashboard para visualizar tu informaci\xf3n.",filtersLimitationText:"la personalizaci\xf3n del dashboard",getSalesLimitationText:"el reporte de cuentas a pagar",boxesLimitationText:"tesorer\xeda",pendingBillsLimitationtext:"el reporte de pendiente de cobro",popUpText:"No pudimos procesar el cobro autom\xe1tico de tu plan",popUpText1:"Actualmente te encontr\xe1s en el",popUpText2:"per\xedodo de gracia",popUpText3:"ya que",popUpText4:"tu plan est\xe1 vencido.",popUpText5:"Intentaremos realizar el cobro autom\xe1ticamente en los pr\xf3ximos d\xedas, pero es importante que regularices tu situaci\xf3n para evitar la interrupci\xf3n del servicio. En tu resumen bancario ver\xe1s el cargo como:",popUpText6:"\xbfNecesit\xe1s ayuda?",popUpText7:"Contactar al soporte",overdueWhy:{reason1:"No hay fondos suficientes en la tarjeta.",reason2:"Tu banco requiere autorizaci\xf3n previa para este tipo de d\xe9bitos.",reason3:"La tarjeta venci\xf3 o fue reemplazada."},completeConfiguration:"Complet\xe1 la configuraci\xf3n inicial",tooltipCustomerRanking:"Presenta los 5 clientes con mayor volumen de compras en el periodo filtrado.",tootilPendingPayments:"Los comprobantes se ordenan autom\xe1ticamente por fecha de vencimiento, del m\xe1s pr\xf3ximo al m\xe1s lejano.",noData:"A\xfan no hay datos para mostrar",newBuy:"Nueva compra",emitReceipt:"Emitir comprobante",createReceipt:"Crea tu primer comprobante",products:"productos",product:"producto",closedWeek:"Rango de fechas",hide:"Ocultar",show:"Mostrar",sameMonth:"Mismo mes a\xf1o ant.",noDataFor:"A\xfan no hay datos para",loadFailed:"Error al cargar",loadBoxes:"Error al cargar cajas",loadSales:"Error al cargar ventas",loadReceivables:"Error al cargar pendiente de cobro",loadSalesVsBuys:"Error al cargar Ventas vs Compras",loadCustomerRanking:"Error al cargar ranking de clientes",loadPayables:"Error al cargar cuentas a pagar",loadUnitsSold:"Error al cargar unidades vendidas",loadVatPosition:"Error al cargar posici\xf3n de IVA",noPermissionMessage:"Este reporte est\xe1 disponible solo para usuarios con planes superiores.",upgradePlan:"Actualizar plan",prev:"Anterior",payLaterOverdue:"Pagar\xe9 m\xe1s tarde",balance:"Saldo",overdue:"Vencidas",dueSoon:"Por vencer",favorableBalance:"Saldo a favor",customize:"Personalizar",all:"Todas",purchases:"Compras",inventories:"Inventarios",reports:"Reportes",availableWidgets:"Indicadores disponibles",noWidgetsAvailable:"No hay ning\xfan indicador disponible",reset:"Restablecer",close:"cerrar",monthlySales:"Ventas del mes",widgetDescription:"Informaci\xf3n relevante del widget.",widgetDescriptionGetSales:"Ventas del mes actual y su comparaci\xf3n con el mes anterior y el a\xf1o.",widgetDescriptionPendingBills:"Total de saldos pendientes de cobro, con IVA incluido.",widgetDescriptionUnitsSold:"Unidades vendidas del mes y variaci\xf3n con per\xedodos anteriores.",widgetDescriptionSalesVsBuys:"Comparaci\xf3n de ventas y compras en el per\xedodo seleccionado.",widgetDescriptionCustomerRanking:"Top 5 de clientes con mayores compras.",widgetDescriptionPendingPayments:"Obligaciones pendientes ordenadas por vencimiento.",widgetDescriptionVatPosition:"Diferencia entre IVA Ventas e IVA Compras, filtrable por mes actual o anterior.",widgetDescriptionMinimumStock:"Productos/Combos por debajo del stock m\xednimo definido.",widgetDescriptionSalesByChannel:"Ventas netas (sin IVA) por canal (App, Integraciones y PDV).",exclusivePlan:"Exclusivo plan Full/Enterprise",added:"A\xf1adido",add:"A\xf1adir",salesCard:"Ventas",quickAccess:{title:"Accesos r\xe1pidos",tooltip:"Accesos directos a tus secciones m\xe1s utilizadas.",newSale:"Nva. venta",newPurchase:"Nva. compra",clients:"Clientes",suppliers:"Proveedores",currentAccount:"Cta. corriente",integrations:"Integraciones",newBudget:"Nvo. presupuesto",cashRegisters:"Cajas",products:"Productos",newSaleSubtitle:"Crear Comprobante",newPurchaseSubt
1itle:"Crear compra",newBudgetSubtitle:"Crear presupuesto",cashRegistersSubtitle:"Ver cajas",productsSubtitle:"Ver productos y servicios",integrationsSubtitle:"Ver integraciones"},tooltipCustomize:"Personaliza tu dashboard.",tooltipCustomizeEditMode:"Est\xe1s en modo edici\xf3n.",tooltipReset:"Restaura la vista predeterminada del dashboard, incluyendo indicadores y filtros aplicados.",tooltipAddToDashboard:"Agregar al dashboard",tooltipRemoveWidget:"Quita este indicador del dashboard. Puedes volver a agregarlo cuando quieras.",planUpgradeTitle:"Tu plan es Standard y guarda la configuraci\xf3n de forma temporal. Personaliza tu dashboard a partir del plan Pro.",planUpgradeSubtitle:"Tu plan guarda la configuraci\xf3n de forma temporal.",updatePlan:"Actualizar plan",dashboardUnavailableText:"Actualizando tu dashboard. Intentalo m\xe1s tarde.",initialSetupHelp:"\xbfNecesit\xe1s ayuda con la configuraci\xf3n inicial?",visitHelpCenter:"Visita nuestro centro de ayuda"},create:"Crear",clientModal:{taxData:"Datos fiscales",otherData:"Otros datos",newClient:"Nuevo cliente",docType:"Tipo doc",organism:"DGI",socialReasonOrName:"Raz\xf3n Social/Nombre",taxCategory:"Categor\xeda Impositiva",legalIdentity:"Personer\xeda",fantasyName:"Nombre Fantas\xeda",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Departamento",selectProvince:"Seleccione un departamento...",city:"Ciudad",selectCity:"Seleccione una ciudad...",floor:"Piso/Depto",postalCode:"C\xf3digo Postal",errors:{userRutAlreadyExists:"Lo sentimos! El RUT ingresado ya se encuentra registrado.",userRucAlreadyExists:"Lo sentimos! El RUC ingresado ya se encuentra registrado.",userCiAlreadyExists:"Lo sentimos! La CI ingresada ya se encuentra registrado.",userCuitAlreadyExists:"Lo sentimos! El CUIT ingresado ya se encuentra registrado.",userDniAlreadyExists:"Lo sentimos! El DNI ingresado ya se encuentra registrado."}},newClientModal:{newClient:"Nuevo cliente",taxDataTitle:"Datos fiscales",otherData:"Otros datos",docType:"Indicanos c\xf3mo identificarlo",organism:"DNIT",socialReasonOrName:"Raz\xf3n social/nombre",taxCategory:"Categor\xeda impositiva",legalIdentity:"Personer\xeda",turn:"Giro",fantasyName:"Nombre fantas\xeda",country:"Pa\xeds",selectCountry:"Seleccione un pa\xeds...",province:"Departamento",selectProvince:"Seleccione un departamento...",city:"Distrito",selectCity:"Seleccione un distrito...",floor:"Piso/depto",postalCode:"C\xf3digo postal"},descriptiveFieldsSelectPlaceholder:"Selecciona un valor",descriptiveFieldsInactiveValue:"(inactivo)",descriptiveFieldsLoading:"Cargando campos descriptivos...",descriptiveFieldsErrorNotAvailable:"Uno de los campos descriptivos ya no est\xe1 disponible. Actualiza la p\xe1gina y vuelve a guardar.",descriptiveFieldsErrorValueInactive:"Uno de los valores elegidos fue inactivado. Actualiza la p\xe1gina y elige otro.",descriptiveFieldsErrorValueInvalid:"Uno de los valores elegidos no es v\xe1lido para ese campo.",descriptiveFieldsErrorDuplicated:"Un campo descriptivo solo puede tener un valor.",account:{accountTitle:"Mi cuenta",company:"Empresa",companyConfig:"Configur\xe1 la informaci\xf3n de tu empresa.",generalData:"Datos generales",users:"Usuarios",costCenter:"Centros de costos",billingAndReceipts:"Facturaci\xf3n y comprobantes",billData:"Configur\xe1 los datos que van en tu factura.",salesCondition:"Condici\xf3n de venta",salesPoints:"Puntos de expedici\xf3n",vouchersTypes:"Tipos de comprobantes",billFormat:"Formato de factura",taxSettings:"Configuraci\xf3n impositiva",taxSettingsConfig:"Configur\xe1 impuestos y retenciones",economicActivities:"Actividades econ\xf3micas",vatSimple:"IVA Simple",advancedParametersConfig:"Configur\xe1 par\xe1metros avanzados.",perceptionAgent:"Agente de percepci\xf3n",retentionAgent:"Agente de retenci\xf3n",iibb:"IIBB",closeDates:"Fechas de cierre",preferences:"Preferencias",generals:"Generales",defaultObservations:"Observaciones predeterminadas",parameters:"Par\xe1metros",PDV:"Punto de venta (PDV)",customerAccess:"Acceso clientes",noticesAndAlerts:"Avisos y alertas",messagesAndNotificationsConfig:"Configur\xe1 mensajes y notificaciones.",sendingVouchers:"Env\xedo de comprobantes",expirationNotices:"Avisos de vencimientos",alerts:"Alertas",ahaMoments:"Aha moments",notifications:"Notificaciones",additionalCompanies:"Empresas adicionales",additionalCompaniesConfig:"Configur\xe1 tus empresas adicionales.",companiesAdministration:"Administrar empresas",API:"API",APICredentials:"Acced\xe9 a las credenciales de API.",credentials:"Credenciales",configuration:"Configuraci\xf3n",backToPrincipalPanel:"Volver al panel principal",continue:"Continuar",currencyAvailable:"Disponible s\xf3lo para planes Full.",howDoesCurrencyWork:"\xbfC\xf3mo funciona la moneda secundaria?",infoCurrencyModalText:'Esta acci\xf3n puede demorar entre 24 y 48 horas. Te enviaremos un mail cuando la moneda "{{currencyName}}" est\xe9 activada.',contactSupport:"Contact\xe1 a soporte para inhabilitarla. Al hacerlo, se inactivar\xe1n los productos en USD y sus publicaciones vinculadas en integraciones.",defaultCurrency:"Moneda principal",secondaryCurrency:"Moneda secundaria",dollarCurrencyWithSymbol:"D\xf3lar (USD)",pesoCurrencyWithSymbol:"Guaran\xed (Gs)",dollarCurrency:"D\xf3lar",pesoCurrency:"Pesos",activate:"Habilitar",active:"Habilitada",infoCurrencyConfirmationModalTitle:'\xbfEst\xe1s seguro/a de que deseas activar la moneda "{{currencyName}}"?',infoCurrencyConfirmationModalText:"Una vez activada, no ser\xe1 posible desactivarla. Esta restricci\xf3n se aplica para mantener la consistencia de la informaci\xf3n.",pendingActivation:"Activaci\xf3n pendiente",infoCurrencyModalTitle:"\xa1Activaci\xf3n iniciada con exito!",currencyErrorModalTitle:"Ha ocurrido un error en la activaci\xf3n de la moneda",currencyErrorModalText:"Lo sentimos, ha ocurrido un error en la activaci\xf3n de la moneda. Por favor intenta de nuevo m\xe1s tarde.",newCompany:"Nueva empresa",actualCompany:"Empresa actual",otherCompanies:"Tus otras empresas",logo:"LOGO",default:"Predeterminada",createdAt:"Creada el ",useThisCompany:"Usar esta empresa",deleteCompany:"Eliminar empresa",additionalCompany:{deleteCompanyDescription:"Antes de dar de baja la cuenta, sugerimos hacer un backup de la informaci\xf3n.",deleteReasonTitle:"Por favor, seleccion\xe1 el motivo de la baja.",deleteReasons:{priceReasonCode:"PRECIO",priceReason:"Baja por precio del producto",integrationReasonCode:"INTEGRACIONES",integrationReason:"Problemas con integraciones o API",closeReasonCode:"CIERRE DE NEGOCIO",closeReason:"Estoy cerrando o cambiando la actividad comercial de la cuenta.",pauseReasonCode:"PAUSA TE
1MPORAL",pauseReason:"Voy a pausar el uso de la cuenta por un tiempo.",badFunctionalityReasonCode:"MAL FUNCIONAMIENTO",badFunctionalityReason:"Reclamo por mal funcionamiento del sistema.",functionalitiesReasonCode:"FUNCIONALIDADES",functionalitiesReason:"No disponen de las funcionalidades que necesito.",paymentMethodsReasonCode:"MEDIOS DE PAGO",paymentMethodsReason:"No tengo los medios de pagos disponibles para el contrato del servicio",otherReasonCode:"OTROS",otherReason:"Otro motivo",otherReasonPlaceholder:"Ingres\xe1 tu motivo",minLengthError:"El motivo debe tener al menos 10 caracteres."},successMessage:"La empresa se ha desactivado con exito",errors:{userIdNotExist:"La empresa no existe",userChildUserAndParentUserEqual:"La empresa y el usuario padre son iguales",userChildUserNotExist:"La empresa no existe",userChildUserDesactivateExist:"La empresa ya fue desactivada previamente",userParentDistinct:"La empresa padre es distinta a la empresa a inactivar"},additionalCompanyEmptyState:"No se han encontrado empresas adicionales.",additionalCompanyEmptyStateText:"Intenta ajustar los filtros para obtener m\xe1s resultados."},cuitCuil:"RUC",socialReason:"Raz\xf3n social",searchARCA:"Buscar en DGI",taxData:"Datos impositivos",fiscalAddress:"Domicilio fiscal",password:"Contrase\xf1a",passwordTooltipText:"Debe contener al menos 8 caracteres, incluyendo un nu\u0301mero, una letra mayu\u0301scula, una letra minu\u0301scula, y un s\xedmbolo",invalidMail:"Formato de correo inv\xe1lido",invalidPassword:"Formato de contrase\xf1a inv\xe1lido",invalidCUIT:"RUC inv\xe1lido",isRequired:"Campo obligatorio",additionalAccountCreated:"La cuenta se ha creado correctamente.",additionalAccountCreationError:"Ha ocurrido un error al crear la cuenta.",emailAlreadyExists:"El E-mail ingresado ya se encuentra registrado.",cuitAlreadyExists:"El RUC ingresado ya se encuentra registrado.",arcaDataError:"No se han encontrado los datos de DGI.",arcaEmptyDataError:"Debe ingresar un CUIT para poder solicitar datos a DGI.",additionalAccountLimitationError:"Has alcanzado el m\xe1ximo de empresas adicionales disponibles en tu plan.",createCompany:"Crear empresa",mySuscription:"Mi suscripci\xf3n",changePassword:"Cambiar contrase\xf1a",priceAndFunctionalities:"Precio y Funcionalidades",logout:"Cerrar sesi\xf3n",manageCAEs:"Administrar CAEs",manageTimbrados:"Administrar timbrados",passwordError:"Contrase\xf1a incorrecta. Vuelve a ingresarla para continuar con la baja",physical:"F\xedsica",passwordWithLeyend:"Contrase\xf1a. Por favor, ingresa la contrase\xf1a con la que inici\xe1s sesi\xf3n.",reportsSending:"Env\xedo de reportes",saveChanges:"Guardar cambios",notificationsInfoText:"Te enviaremos un reporte semanal con informaci\xf3n relevante para tu negocio. Lo recibir\xe1s los lunes.",reportTypeTitle:"Marc\xe1 qu\xe9 tipo de informaci\xf3n quer\xe9s recibir seg\xfan tu actividad:",products:"Productos",productsLegend:"*Marc\xe1 esta opci\xf3n si vend\xe9s productos f\xedsicos. Vas a recibir informaci\xf3n sobre ventas, unidades, evoluci\xf3n, etc.",services:"Servicios (Proximamente)",servicesLegend:"*Marc\xe1 esta opci\xf3n si prest\xe1s servicios. Vas a recibir datos sobre ventas, comprobantes emitidos, evoluci\xf3n, etc.",dataSuccessfullyUpdated:"Bien hecho! Los datos se han actualizado correctamente.",chooseOneReport:"Lo sentimos! Ten\xe9s que elegir al menos una opci\xf3n de reporte.",errorSavingChanges:"Lo sentimos! Ocurri\xf3 un error al guardar los cambios. Intent\xe1 nuevamente.",automaticBilling:{title:"Facturador autom\xe1tico",noIntegrationsFound:"No se han encontrado integraciones",noIntegrationsFoundDescription:"Para configurar el facturador autom\xe1tico, primero debes conectar una integraci\xf3n.",connectIntegration:"Conectar integraci\xf3n",state:"Estado",startDate:"Fecha de inicio",toDate:"Fecha hasta",startDateTooltip:"Seleccion\xe1 la fecha de inicio para la facturaci\xf3n autom\xe1tica.",toDateTooltip:"Seleccion\xe1 la cantidad de d\xedas que se tomar\xe1n para la facturaci\xf3n autom\xe1tica.",integrations:"Seleccion\xe1 integraciones (m\xednimo 1)",toDateCheckbox:"Facturar hasta \xfaltimos 30 minutos",toDateDescription:"Seleccion\xe1 la cantidad de d\xedas hacia atras para la facturaci\xf3n autom\xe1tica. En caso de no seleccionar, se facturar\xe1 hasta 30 minutos despu\xe9s de la \xfaltima orden de venta.",toDateRequired:"Debe seleccionar una opci\xf3n o activar la facturaci\xf3n hasta los \xfaltimos 30 minutos",toDateRequiredDescription:"Debe seleccionar una opci\xf3n o activar la facturaci\xf3n hasta los \xfaltimos 30 minutos",integrationsRequired:"Debe seleccionar al menos una integraci\xf3n",startDateRequired:"Debe seleccionar una fecha de inicio",startDateRequiredDescription:"Debe seleccionar una fecha de inicio",stateRequired:"Debe seleccionar un estado",stateRequiredDescription:"Debe seleccionar un estado",validationError:"Por favor, complete todos los campos requeridos",
1saveError:"Error al guardar la configuraci\xf3n, intente nuevamente."},productFields:{title:"Campos de productos",description:"Configura los valores de los campos descriptivos que aplican a todo tu cat\xe1logo. Solo se mostrar\xe1n al crear o editar productos los campos que est\xe9n activos y tengan al menos un valor activo.",fieldNames:{marca:"Marca",linea:"L\xednea",material:"Material",origen:"Origen",temporada:"Temporada",calidad:"Calidad"},valuesCount:"{{count}} de {{limit}} valores",manageValues:"Administrar valores",statusInactive:"Inactivo",activateBlocked:"Para activar este campo, agrega al menos un valor activo.",deactivateTitle:"\xbfEst\xe1s seguro/a que quieres desactivar este campo?",deactivateText:"El campo dejar\xe1 de mostrarse al crear o editar productos. Los valores configurados y la informaci\xf3n ya registrada no se eliminar\xe1n.",deactivate:"Desactivar",valuesDescription:"Administra los valores disponibles para este campo.",backToFields:"Volver a Campos de productos",emptyTitle:"Este campo no tiene valores configurados.",emptyText:"Agrega los valores que podr\xe1n seleccionarse en los productos.",searchPlaceholder:"Busca un valor",noSearchResults:"No encontramos valores que coincidan con tu b\xfasqueda.",emptyFieldsT
1itle:"Todav\xeda no hay campos disponibles.",emptyFieldsText:"Los campos descriptivos todav\xeda no est\xe1n habilitados. Si el problema persiste, comun\xedcate con soporte.",newValuePlaceholder:"Ingresa un nombre de {{field}}",newValuePlaceholderFallback:"Ingresa un nombre",limitReached:"Alcanzaste el m\xe1ximo de {{limit}} valores para este campo. Elimina uno que no est\xe9 en uso para agregar otro.",nameRequired:"Ingresa un nombre para el valor.",nameTooLong:"El nombre no puede superar los {{max}} caracteres.",nameDuplicated:"Ya existe un valor con ese nombre en este campo.",renameTitle:"Editar valor",renameLabel:"Nombre del valor",deleteTitle:"\xbfQuieres eliminar el valor {{name}}?",deleteText:"Esta acci\xf3n no se puede deshacer.",deleteBlockedReason:"No se puede eliminar porque est\xe1 asignado a productos. Puedes inactivarlo para que no se use en productos nuevos.",lastActiveTitle:"Este es el \xfaltimo valor activo del campo",lastActiveText:"Si contin\xfaas, el campo se desactivar\xe1 y dejar\xe1 de mostrarse al crear o editar productos. Los valores y la informaci\xf3n ya registrada no se eliminar\xe1n.",retry:"Reintentar",errors:{fieldNotFound:"El campo no existe o no est\xe1 disponible.",valueNotFound:"El valor no existe o no pertenece a tu empresa.",noActiveValues:"Para activar el campo tiene que haber al menos un valor activo.",valueInUse:"El valor est\xe1 asignado a productos y no se puede eliminar. Puedes inactivarlo."}}},captchaVerificationButton:"Verificar",captchaVerificationSuccess:"Verificaci\xf3n completada",captchaVerificationFailed:"\xa1Verificaci\xf3n fallida! Por favor intente nuevamente.",actives:"Activas",inactive:"Inactivas",PDVAddinModalTitle:"\xa1Potenci\xe1 tu plan con el Punto de Venta (PDV)!",PDVAddinModalText1:"El Punto de Venta (PDV) es un complemento (addin) disponible para tu cuenta.",PDVAddinModalText2:"Si quer\xe9s contactarlo y aprovechar todas sus funciones, contact\xe1 a nuestro equipo escribiendo a ",supportEmail:"[email protected]",ivaRateTooltip:"Corresponde al nombre, Exportaci\xf3n y asimilares, Gravado a tasa b\xe1sica, Gravado al 10%, Literal E , No facturable negativo, Gravado al 5%.",budgetItemError:"Lo sentimos! Debe guardar el producto o servicio para continuar.",budgetTotalNegativeError:"Lo sentimos! El total del presupuesto debe ser mayor a 0.",totalBudget:"Total Presup.",sendEmailBudget:"Enviar presupuesto por email",ruc:"RUC",blockedModuleText:"Con un plan superior, podr\xe1s acceder a todas las funcionalidades avanzadas, incluyendo ",uploadPlan:"Actualiz\xe1 tu plan y empez\xe1 a aprovechar todas las ventajas.",errorGeneratingRemittance:"Error al generar remito",trainingEvents:{emptyStateTitle:"A\xfan no hay capacitaciones disponibles.",emptyStateDescription:"Cuando se publiquen nuevas capacitaciones, las vas a encontrar en esta secci\xf3n.",modalTitle:"Eventos de Capacitaci\xf3n",registerButton:"Registrarse",watchVideoButton:"Ver video"},referred:"Refiere",referredProgram:"Programa de referidos"}}}});t.a=i.a},20:function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return o}));const i={ARG:{name:"Argentina",value:"ar",id:10},CL:{name:"Chile",value:"cl",id:33},UY:{name:"Uruguay",value:"uy",id:165},PY:{name:"Paraguay",value:"py",id:123}},o={CABA:"Ciudad de Buenos Aires"}},23:function(e,t,a){"use strict";a.d(t,"d",(function(){return u})),a.d(t,"e",(function(){return p})),a.d(t,"a",(function(){return m})),a.d(t,"s",(function(){return h})),a.d(t,"z",(function(){return x})),a.d(t,"B",(function(){return f})),a.d(t,"c",(function(){return A})),a.d(t,"f",(function(){return C})),a.d(t,"b",(function(){return y})),a.d(t,"w",(function(){return w})),a.d(t,"i",(function(){return T})),a.d(t,"D",(function(){return P})),a.d(t,"t",(function(){return R})),a.d(t,"y",(function(){return N})),a.d(t,"r",(function(){return L})),a.d(t,"p",(function(){return k})),a.d(t,"C",(function(){return F})),a.d(t,"v",(function(){return M})),a.d(t,"q",(function(){return V})),a.d(t,"h",(function(){return W})),a.d(t,"l",(function(){return H})),a.d(t,"A",(function(){return U})),a.d(t,"m",(function(){return _})),a.d(t,"u",(function(){return z})),a.d(t,"g",(function(){return q})),a.d(t,"k",(function(){return G})),a.d(t,"x",(function(){return Y})),a.d(t,"E",(function(){return K})),a.d(t,"n",(function(){return X})),a.d(t,"j",(function(){return Z})),a.d(t,"o",(function(){return Q}));var i=a(19),o=a(33),n=a(17);const r="loginMfaShouldSendOtp",s="loginMfaSoftLock_",l="loginMfaSoftLockReason_",c="loginMfaResendCooldown_",d="loginMfaWrongAttempts_",u="send",p="validate",m="Secure-1CBL",g="Secure-1CBL-MFA-Pending",b=()=>new i.a,h=()=>b().get(g),x=(e,t)=>{const a=b();a.remove(m,{path:"/"}),a.set(g,e,{path:"/",expire:t})},f=()=>{b().remove(g,{path:"/"})},v=e=>{const t=Number(e);return Number.isFinite(t)&&t>0?1e3*t:null},j=(e,t)=>(e||t).trim().replace(/^["']|["']$/g,""),A=j("/v3/login/login-mfa","/v3/login/login-mfa"),C=j("/v3/login/login-successauth","/v3/login/login-successauth"),y=j("/v3/dashboard","/v3/dashboard"),O=e=>`${s}${e}`,S=e=>`${l}${e}`,E=e=>`${c}${e}`,I=e=>`${d}${e}`,w=e=>!0===(null===e||void 0===e?void 0:e.mfa_pending),T=e=>!w(e),P=(e,t)=>!0===(null===e||void 0===e?void 0:e.mfa_required)||w(t),R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return P(t,e)?A:J(e)},N=e=>{if(!e||!e.includes("@"))return e||"";const[t,a]=e.split("@");return t?`${t.slice(0,3)}*****@${a}`:`*****@${a}`},L=e=>1===Number(e)?"login.loginMfaInvalidCodeLastAttempt":"login.loginMfaInvalidCode",k=e=>{const t=Math.max(0,Math.ceil(e/1e3)),a=t%60;return`${Math.floor(t/60).toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`},B=e=>{if(!e)return null;const t=sessionStorage.getItem(O(e));if(!t)return null;const a=Number(t);return!a||Number.isNaN(a)||a<=Date.now()?(sessionStorage.removeItem(O(e)),sessionStorage.removeItem(S(e)),null):a},D=e=>{if(!B(e))return null;const t=sessionStorage.getItem(S(e));return t===u||t===p?t:null}
1,F=e=>D(e)===p,M=e=>{const t=B(e);return t?{expiresAt:t,countdown:k(t-Date.now()),reason:D(e)}:{expiresAt:null,countdown:"",reason:null}},V=()=>{try{var e,t;const a=b(),i=a.get(g)||a.get(m);if(!i)return null;const n=Object(o.b)(i);if(!n)return null;const{data:r}=JSON.parse(n);return{jwtCookie:i,jwtData:r,userId:null!==(e=null!==(t=r.userId)&&void 0!==t?t:r.user_id)&&void 0!==e?e:null,email:r.email||""}}catch{return null}},W=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;if(!e)return null;const i=v(t);if(!i)return null;const o=Date.now()+i;return sessionStorage.setItem(O(e),String(o)),sessionStorage.setItem(S(e),a),o},H=e=>{e&&(sessionStorage.removeItem(O(e)),sessionStorage.removeItem(S(e)),sessionStorage.removeItem(I(e)))},U=e=>{if(!e)return 0;const t=(e=>{if(!e)return 0;const t=parseInt(sessionStorage.getItem(I(e)),10);return Number.isNaN(t)?0:t})(e)+1;return sessionStorage.setItem(I(e),String(t)),t},_=e=>{e&&sessionStorage.removeItem(I(e))},z=e=>{const t=(e=>{if(!e)return null;const t=sessionStorage.getItem(E(e));if(!t)return null;const a=Number(t);return!a||Number.isNaN(a)||a<=Date.now()?(sessionStorage.removeItem(E(e)),null):a})(e);return t?{expiresAt:t,remainingSeconds:Math.max(0,Math.ceil((t-Date.now())/1e3))}:{expiresAt:null,remainingSeconds:0}},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(!e)return null;const a=Number(t);if(!Number.isFinite(a)||a<=0)return null;const i=Date.now()+1e3*a;return sessionStorage.setItem(E(e),String(i)),i},G=e=>{e&&sessionStorage.removeItem(E(e))},Y=()=>{sessionStorage.setItem(r,"true")},K=()=>"true"===sessionStorage.getItem(r),X=()=>{const e="true"===sessionStorage.getItem(r);return sessionStorage.removeItem(r),e},Z=()=>{Object.keys(sessionStorage).forEach((e=>{(e.startsWith(s)||e.startsWith(l)||e.startsWith(c)||e.startsWith(d))&&sessionStorage.removeItem(e)})),sessionStorage.removeItem(r)},Q=()=>{const e=h()||localStorage.getItem("jwt"),t=()=>{f(),b().remove(m,{path:"/"}),Z(),localStorage.removeItem("jwt"),localStorage.removeItem("validated"),localStorage.removeItem("Company"),localStorage.removeItem("userAdd"),localStorage.removeItem("parent"),localStorage.removeItem("country_prod"),localStorage.removeItem("sign_up_date"),localStorage.removeItem("promotion_code"),localStorage.removeItem("userID_Product"),localStorage.removeItem("code"),window.location.href="/v3/login/"};e?fetch(Object(n.a)()+"logout",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}).catch((()=>{})).finally(t):t()},J=e=>(null===e||void 0===e||e.country,y)},253:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i,o=a(1);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},n.apply(null,arguments)}function r(e,t){let{title:a,titleId:r,...s}=e;return o.createElement("svg",n({width:20,height:14,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},s),a?o.createElement("title",{id:r},a):null,i||(i=o.createElement("path",{d:"M10 4.5C10.6631 4.5 11.299 4.76339 11.7678 5.23223C12.2366 5.70107 12.5 6.33696 12.5 7C12.5 7.66304 12.2366 8.29893 11.7678 8.76777C11.299 9.23661 10.6631 9.5 10 9.5C9.337 9.5 8.70111 9.23661 8.23227 8.76777C7.76343 8.29893 7.50004 7.66304 7.50004 7C7.50004 6.33696 7.76343 5.70107 8.23227 5.23223C8.70111 4.76339 9.337 4.5 10 4.5ZM10 0.75C14.1667 0.75 17.725 3.34167 19.1667 7C17.725 10.6583 14.1667 13.25 10 13.25C5.83337 13.25 2.27504 10.6583 0.833374 7C2.27504 3.34167 5.83337 0.75 10 0.75ZM2.65004 7C4.02504 9.8 6.86671 11.5833 10 11.5833C13.1334 11.5833 15.975 9.8 17.35 7C15.975 4.2 13.1334 2.41667 10 2.41667C6.86671 2.41667 4.02504 4.2 2.65004 7Z",fill:"#818181"})))}const s=o.forwardRef(r);a.p},254:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i,o=a(1);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},n.apply(null,arguments)}function r(e,t){let{title:a,titleId:r,...s}=e;return o.createElement("svg",n({width:20,height:16,viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},s),a?o.createElement("title",{id:r},a):null,i||(i=o.createElement("path",{d:"M1.66671 1.39167L2.73337 0.333333L16.6667 14.2667L15.6084 15.3333L13.0417 12.7667C12.0834 13.0833 11.0667 13.25 10 13.25C5.83337 13.25 2.27504 10.6583 0.833374 7C1.40837 5.53333 2.32504 4.24167 3.49171 3.21667L1.66671 1.39167ZM10 4.5C10.6631 4.5 11.299 4.76339 11.7678 5.23223C12.2366 5.70107 12.5 6.33696 12.5 7C12.5 7.29167 12.45 7.575 12.3584 7.83333L9.16671 4.64167C9.42504 4.55 9.70837 4.5 10 4.5ZM10 0.75C14.1667 0.75 17.725 3.34167 19.1667 7C18.4834 8.73333 17.325 10.2333 15.8334 11.325L14.65 10.1333C15.7834 9.35 16.7167 8.28333 17.35 7C15.975 4.2 13.1334 2.41667 10 2.41667C9.09171 2.41667 8.20004 2.56667 7.36671 2.83333L6.08337 1.55833C7.28337 1.04167 8.60837 0.75 10 0.75ZM2.65004 7C4.02504 9.8 6.86671 11.5833 10 11.5833C10.575 11.5833 11.1417 11.525 11.6667 11.4083L9.76671 9.5C8.57504 9.375 7.62504 8.425 7.50004 7.23333L4.66671 4.39167C3.84171 5.1 3.15004 5.98333 2.65004 7Z",fill:"#818181"})))}const s=o.forwardRef(r);a.p},255:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i,o=a(1);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},n.apply(null,arguments)}function r(e,t){let{title:a,titleId:r,...s}=e;return o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"body_2",width:20,height:13,ref:t,"aria-labelledby":r},s),a?o.createElement("title",{id:r},a):null,i||(i=o.createElement("g",{transform:"matrix(1.3333334 0 0 1.3333334 0 0)"},o.createElement("image",{x:0,y:0,xlinkHref:"data:image/png;base64,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",width:15,height:10}))))}const s=o.forwardRef(r);a.p},256:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i,o=a(1);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},n.apply(null,arguments)}function r(e,t){let{title:a,titleId:r,...s}=e;return o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"body_1",width:20,height:13,ref:t,"aria-labelledby":r},s),a?o.createElement("title",{id:r},a):null,i||(i=o.createElement("g",{transform:"matrix(1.3333334 0 0 1.3333334 0 0)"},o.createElement("image",{x:0,y:0,xlinkHref:"data:image/png;base64,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",width:15,height:10}))))}const s=o.forwardRef(r);a.p},257:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var i,o=a(1);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},n.apply(null,arguments)}function r(e,t){let{title:a,titleId:r,...s}=e;return o.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"body_1",width:20,height:13,ref:t,"aria-labelledby":r},s),a?o.createElement("title",{id:r},a):null,i||(i=o.createElement("g",{transform:"matrix(1.3333334 0 0 1.3333334 0 0)"},o.createElement("image",{x:0,y:0,xlinkHref:"data:image/png;base64,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",width:15,height:10}))))}const s=o.forwardRef(r);a.p},258:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var i,o,n,r,s=a(1);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},l.apply(null,arguments)}function c(e,t){let{title:a,titleId:c,...d}=e;return s.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:20,height:13,viewBox:"0 0 20 13",ref:t,"aria-labelledby":c},d),a?s.createElement("title",{id:c},a):null,i||(i=s.createElement("rect",{width:20,height:4.33,y:0,fill:"#D52B1E"})),o||(o=s.createElement("rect",{width:20,height:4.33,y:4.33,fill:"#FFFFFF"})),n||(n=s.createElement("rect",{width:20,height:4.34,y:8.66,fill:"#0038A8"})),r||(r=s.createElement("circle",{cx:10,cy:6.5,r:1.5,fill:"#FFD700",stroke:"#000",strokeWidth:.3})))}const d=s.forwardRef(c);a.p},260:function(e,t,a){"use strict";(function(e){var i=a(1),o=a(73),n=a(576),r=a(268),s=a(383),l=a(12),c=a(4),d=a(29),u=a(0);const{localStorage:p}=e.window,m={height:"40px",background:c.a.white,borderRadius:"4px",fontFamily:"Work Sans, sans-serif",fontSize:"14px",padding:"10px 12px",color:c.a.textPrimary},g=Object(s.a)((e=>({input:{...m,border:`1px solid ${c.a.inputBorder}`,"&:hover":{border:`2px solid ${c.a.inputBorderHover}`}},inputError:{...m,border:`1px solid ${c.a.error300}`,"&:hover":{border:`2px solid ${c.a.error400}`}}})));t.a=e=>{let{value:t="",textTooltip:a="",labelText:s="",placeholder:m="",maxLength:b="",errorMsg:h="",textMsg:x="",error:f=!1,required:v=!1,showIconTooltip:j=!1,disabled:A=!1,showError:C=!1,showMsg:y=!1,handleChange:O=(()=>{})}=e;const[S,E]=Object(i.useState)(!1),[I,w]=Object(i.useState)(!1),T=g();return Object(u.jsx)("div",{children:Object(u.jsxs)(o.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:[Object(u.jsxs)("label",{className:"inputlabel",children:[!0===v&&Object(u.jsx)("span",{className:"inputArterisk",children:"* "})," ",s,!0===j&&Object(u.jsx)(d.a,{title:a,"aria-label":"Tooltip",placement:"top",arrow:!0,open:I,style:{marginLeft:"5px"},onOpen:()=>w(!0),onClose:()=>w(!1),children:Object(u.jsx)("button",{className:"tooltipButton",children:Object(u.jsx)(l.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>w(!I)})})})]}),Object(u.jsx)(n.a,{placeholder:m,fullWidth:!0,type:!1===S?"password":"text",id:"password",name:"password",autoComplete:"false",style:{border:"none"},onChange:O,value:t,onBlur:e=>{p.setItem("password",t)},required:!0,InputProps:{className:f?T.inputError:T.input,disableUnderline:!0,endAdornment:Object(u.jsx)(r.a,{position:"end",style:{cursor:"pointer",color:c.a.grey500,marginTop:8},children:!1===S?Object(u.jsx)(l.a,{name:"closeEye",viewBox:"0 0 23 23",onClick:e=>E(!0)}):Object(u.jsx)(l.a,{name:"openEye",viewBox:"0 0 23 23",onClick:e=>E(!1)})})},inputProps:{maxLength:b,disabled:!0===A&&"disabled"}}),!0===C&&Object(u.jsx)("p",{className:"inputErrorMsg",children:h}),!0===y&&Object(u.jsx)("p",{className:"inputTextMsg",children:x})]})})}}).call(this,a(76))},289:function(e,t,a){},29:function(e,t,a){"use strict";a(1);var i=a(8),o=a(568),n=a(100),r=a(0);const s=Object(i.a)((e=>{let{className:t,...a}=e;return Object(r.jsx)(o.a,{...a,arrow:!0,classes:{popper:t}})}))((e=>{let{theme:t}=e;return{[`& .${n.a.arrow}`]:{color:t.palette.common.black},[`& .${n.a.tooltip}`]:{backgroundColor:t.palette.common.black,justifyContent:"center",alignItems:"center",textAlign:"center",fontFamily:"Work Sans, sans-serif!important",fontSize:"12px",color:"#fff",letterSpacing:"normal",fontWeight:"300",lineHeight:"15px"}}}));t.a=s},33:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return o}
1));const i=e=>{const t=()=>{const e=localStorage.getItem("country"),t={Argentina:"https://app.contabilium.com/",Chile:"https://app.contabilium.cl/",Uruguay:"https://app.contabilium.com.uy/",Paraguay:"https://app.contabilium.com.py/"}[e],a={Argentina:"v3/login",Chile:"v3/login",Uruguay:"v3/login",Paraguay:"v3/login"}[e];t&&a?window.open(t+a,"_self"):window.open("/","_self")};if(!e)return t(),null;try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""))}catch(a){return t(),null}},o=e=>{const t=()=>{window.open("/logout.aspx","_self")};if(!e)return t(),null;try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""))}catch(a){return t(),null}}},340:function(e,t,a){},344:function(e,t){},357:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return n}));var i=a(381);const{localStorage:o}=e.window,n={login:(e,t)=>n.loggedIn()?Promise.resolve(!0):fetch("login",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,password:t})}).then((e=>""!==e?e.json():null)).then((e=>{Object(i.a)(e.jwt)})).catch((()=>{o.removeItem("jwt")})),logout:()=>(o.clear(),Promise.resolve(!0)),loggedIn:()=>!!o.jwt,userData:()=>o.jwt?JSON.parse(o.jwt):null}}).call(this,a(76))},358:function(e,t,a){"use strict";(function(e){var i=a(13);const o="bulkimport";t.a={getBulkImportHistory:async e=>{let{page:t}=e;const a={};t&&(a.page=t);const{data:n}=await i.a.get(o,{params:a});return n},sendBulkImportJob:async()=>{const{data:e}=await i.a.post("import");return e},sendBulkImportFile:async t=>{let{csvData:a}=t;const n=new Blob([a],{type:"text/csv"}),r=new File([n],"archivo.csv"),s=new e.FormData;s.append("file",r);return await i.a.post(o,s,{headers:{"Access-Control-Allow-Origin":"*","Content-Type":"multipart/form-data"}})},getBulkImportPreview:async e=>{let{page:t,limit:a,errors:o}=e;const n={};null!==t&&(n.page=t),a&&(n.limit=a),null!==o&&(n.errors=o);const{data:r}=await i.a.get("bulkimport/view",{params:n});return r}}}).call(this,a(76))},359:function(e,t,a){"use strict";(function(e){var i=a(13);const o="variant-bulkimport";t.a={getBulkImportVariantHistory:async function(){let{page:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};e&&(t.page=e);const{data:a}=await i.a.get(o,{params:t});return a},getBulkImportVariantPreview:async function(){let{page:e,limit:t,errors:a,type:n,currency:r,heading:s,subHeading:l,skuGrouper:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const d={};null!==e&&void 0!==e&&(d.page=e),t&&(d.limit=t),null!==a&&void 0!==a&&(d.errors=a),n&&(d.type=n),r&&(d.currency=r),s&&(d.heading=s),l&&(d.subHeading=l),c&&(d.skuGrouper=c);const{data:u}=await i.a.get(`${o}/view`,{params:d});return u},getBulkImportVariantPermission:async()=>{const{data:e}=await i.a.get("bulkimportVariant/validatePermission");return Boolean(null===e||void 0===e?void 0:e.hasPermission)},getBulkImportVariantRunning:async()=>{const{data:e}=await i.a.get(`${o}/running`);return Boolean(e)},sendBulkImportVariantFile:async t=>{let{csvData:a}=t;const n=new Blob([a],{type:"text/csv"}),r=new File([n],"archivo.csv"),s=new e.FormData;s.append("file",r);const{data:l}=await i.a.post(o,s,{headers:{"Access-Control-Allow-Origin":"*","Content-Type":"multipart/form-data"}});return l},sendBulkImportVariantJob:async()=>{const{data:e}=await i.a.post("variant-import");return e}}}).call(this,a(76))},370:function(e,t,a){"use strict";(function(e){var i=a(1),o=a(78),n=a(53),r=a(62),s=a(56),l=a(2);t.a=t=>{const[a,c]=Object(i.useState)(!1),[d,u]=Object(i.useState)({}),[p,m]=Object(i.useState)([]),[g,b]=Object(i.useState)(o.c),[h,x]=Object(i.useState)(null),[f,v]=Object(i.useState)(null),[j,A]=Object(i.useState)(!1),[C,y]=Object(i.useState)(!1);Object(i.useEffect)((()=>{let e=g;Boolean(t)&&"ar"!==t&&(delete e["RG 5329-2023"],b(e)),Boolean(t)&&"ar"===t&&b(e),Boolean(t)&&"ar"===t&&(delete e["Tipo de IVA"],b(e))}),[t]);const O=t=>{if(!t)return void b((e=>{const t={...e};for(const a in t)t[a].fieldName="",t[a].fieldValue="";return t}));const a=new e.FileReader;a.onload=e=>{const a=new Uint8Array(e.target.result);let i,s;if(t.name.endsWith(".csv"))s=new TextDecoder("utf-8").decode(a).toString(),i=r.a(s,{type:"string",raw:!0,cellDates:!1,cellText:!0,cellNumber:!0});else{if(!t.name.endsWith(".xlsx")&&!t.name.endsWith(".xls"))return void console.error("Error: Formato de archivo no compatible.");s=new Uint8Array(a),i=r.a(s,{type:"array",raw:!0,cellDates:!1})}const c=i.SheetNames[0],d=(e=>{var t,a,i,o;const n=r.b.sheet_to_json(e,{header:1,raw:!1}).map((e=>e.map((e=>e.toString())))).filter((e=>""!==e.join("").trim())),s=n[0];s&&(s[0].startsWith("Borr\xe1 o ignor\xe1 esta columna")||s[0].startsWith("Borra o ignora esta columna"))&&n.forEac
1h((e=>e.shift()));const l=n[1];l&&(null!==(t=l[0])&&void 0!==t&&t.startsWith("Borr\xe1 o ignor\xe1 esta fila")||null!==(a=l[0])&&void 0!==a&&a.startsWith("CAMPO OBLIGATORIO - Denominaci\xf3n de tu Producto o servicio")||null!==(i=l[0])&&void 0!==i&&i.startsWith("Borra o ignora esta fila")||null!==(o=l[0])&&void 0!==o&&o.startsWith("CAMPO OBLIGATORIO - Denominaci\xf3n de tu Producto o servicio"))&&n.splice(1,1);const c=n[1];c&&"Zapatillas nb"===c[0]&&n.splice(1,1);const d=n[1];return d&&"servicio123"===d[0]&&n.splice(1,1),r.b.aoa_to_sheet(n)})(i.Sheets[c]),p=(e=>{const t=r.b.sheet_to_json(e,{header:1,encoding:"utf-8",raw:!0}),a=[];for(let o=0;o<(null===(i=t[0])||void 0===i?void 0:i.length);o++){var i;const e={[t[0][o]]:t.slice(1).map((e=>e[o]))};a.push(e)}return a})(d),g=(e=>r.b.sheet_to_json(e,{header:1,encoding:"utf-8",raw:!0}).slice(1).map(((e,t)=>({rowIndex:t+1,rowData:e}))))(d);g.length>o.a?y(l.a.t("maxLimitItems",{limit:o.a})):y(!1),m(p);let h={};b((e=>{h={...e};for(const t in h)h[t].fieldName="",h[t].fieldValue="";return h}));const{object:x,selectFieldValues:f}=Object(n.a)(h,p);b(x),u(f)},a.readAsArrayBuffer(t,{encoding:"utf-8",raw:!0})};return{fileSelectedModified:a,selectedValues:d,columnObjectsInitialState:p,columnTitles:g,errorFile:f,errorLimitRequest:C,sendFile:j,fileSelected:h,setErrorFile:v,setErrorLimitRequest:y,handleFileChange:O,handleFileSelection:e=>{let{error:t,file:a,drop:i}=e;!i&&a&&Object(s.e)(),t?v(t):(x(a),c(!0),b(o.c),m([]),u({}),O(a),y(!1),v(!1))},handleNewColumnTitleSelected:(e,t,a)=>{b(e),c(!1),u(t),m(a)}}}}).call(this,a(76))},371:function(e,t,a){"use strict";(function(e){var i=a(1),o=a(62),n=a(128),r=a(372),s=a(189),l=a(53),c=a(2);t.a=t=>{const[a,d]=Object(i.useState)(!1),[u,p]=Object(i.useState)({}),[m,g]=Object(i.useState)([]),[b,h]=Object(i.useState)((()=>Object(n.a)(t))),[x,f]=Object(i.useState)(null),[v,j]=Object(i.useState)(null),[A,C]=Object(i.useState)(!1),[y,O]=Object(i.useState)(!1),S=Object(i.useRef)(0);Object(i.useEffect)((()=>{h(Object(n.a)(t)),p({}),g([])}),[t]);const E=t=>{if(!t)return void h((e=>{const t={...e};for(const a in t)t[a].fieldName="",t[a].fieldValue="";return t}));const a=S.current,i=new e.FileReader;i.onload=e=>{if(a===S.current)try{const a=new Uint8Array(e.target.result),i=t.name.toLowerCase();let d;const u=Object(s.c)(i,a);if(u)return C(c.a.t(u)),void O(!1);if(i.endsWith(".csv")){let e;try{e=new TextDecoder("utf-8",{fatal:!0}).decode(a)}catch{e=new TextDecoder("windows-1252").decode(a)}const t=Object(s.b)(e);if(t)return C(c.a.t(t)),void O(!1);d=o.a(e,{type:"string",raw:!0,cellDates:!1,cellText:!0,...s.a})}else{if(!i.endsWith(".xlsx")&&!i.endsWith(".xls"))return;d=o.a(a,{type:"array",raw:!0,cellDates:!1,...s.a})}const m=d.SheetNames[0],b=d.Sheets[m],x=Object(s.d)(b);if(x)return C(c.a.t(x)),void O(!1);const{columnObjects:f,rowObjects:v}=Object(r.a)(b);(e=>{const t=Object(n.b)({rowCount:e.length});C(!!t&&c.a.t(t))})(v),g(f);let j={};h((e=>{j={...e};for(const t in j)j[t].fieldName="",j[t].fieldValue="";return j}));const{object:A,selectFieldValues:y}=Object(l.a)(j,f);h(A),p(y),O(!0)}catch{C(c.a.t("variantsFileReadError")),O(!1)}},i.onerror=()=>{a===S.current&&(C(c.a.t("variantsFileReadError")),O(!1))},i.readAsArrayBuffer(t,{encoding:"utf-8",raw:!0})};return{fileSelectedModified:a,selectedValues:u,columnObjectsInitialState:m,columnTitles:b,errorFile:v,errorLimitRequest:A,fileParsed:y,fileSelected:x,setErrorFile:j,setErrorLimitRequest:C,handleFileChange:E,handleFileSelection:e=>{let{error:a,file:i,drop:o}=e;if(S.current+=1,a)return j(a),void(i||(f(null),O(!1),C(!1),g([]),p({}),h(Object(n.a)(t))));f(i),d(!0),h(Object(n.a)(t)),g([]),p({}),j(!1),O(!1),i&&Object(n.c)(i.size)?C(c.a.t("variantsMaxFileSizeError")):(C(!1),E(i))},handleNewColumnTitleSelected:(e,t,a)=>{h(e),d(!1),p(t),g(a)}}}}).call(this,a(76))},372:function(e,t,a){"use strict";a.d(t,"a",(function(){return g}));var i=a(62);const o=new RegExp("["+String.fromCharCode(768)+"-"+String.fromCharCode(879)+"]","g"),n=e=>String(null!==e&&void 0!==e?e:"").normalize("NFD").replace(o,"").trim().toLowerCase(),r=["Borra o ignora esta columna"],s=["Borra esta fila o reemplazala con la informacion correspondiente","CAMPO OBLIGATORIO - Denominacion de tu Producto"],l=["Pantalon basico ejemplo"],c=["Nombre agrupador","Nombre"],d=(e,t)=>{const a=n(e);return t.some((e=>a.startsWith(n(e))))},u=e=>{let t=i.b.sheet_to_json(e,{header:1,raw:!1}).map((e=>e.map((e=>e.toString())))).filter((e=>""!==e.join("").trim()));return t[0]&&d(t[0][0],r)&&t.forEach((e=>e.shift())),t[1]&&d(t[1][0],s)&&t.splice(1,1),t=(e=>{const t=e[0];if(!t)return e;const a=c.map(n),i=t.findIndex((e=>a.includes(n(e))));if(-1===i)return e;const o=l.map(n);return e.filter(((e,t)=>0===t||!o.includes(n(e[i]))))})(t),t=t.filter((e=>""!==e.join("").trim())),i.b.aoa_to_sheet(t)},p=e=>{const t=i.b.sheet_to_json(e,{header:1,encoding:"utf-8",raw:!0}),a=[];for(let i=0;i<(null===(o=t[0])||void 0===o?void 0:o.length);i++){var o;const e=t[0][i],n=t.slice(1).map((e=>e[i]));a.push({[e]:n})}return a},m=e=>i.b.sheet_to_json(e,{header:1,encoding:"utf-8",raw:!0}).slice(1).map(((e,t)=>({rowIndex:t+1,rowData:e}))),g=e=>{const t=u(e);return{columnObjects:p(t),rowObjects:m(t)}}},373:function(e,t,a){"use strict";(function(e){var i=a(1),o=a.n(i),n=a(578),r=a(383),s=a(270),l=a(579),c=a(129),d=a(73),u=a(268),p=a(569),m=a(572),g=a(57),b=a(580),h=a(581),x=a(2),f=a(23),v=a(577),j=a(574),A=a(570),C=a(253),y=a(254),O=a(255),S=a(256),E=a(257),I=a(258),w=a(149),T=a(19),P=(a(20),a(18)),R=a(17),N=a(0);const{localStorage:L}=e.window,k=Object(r.a)((e=>({formButton:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:400,textAlign:"left",border:"1px solid rgba(19, 19, 19, 0.3)",borderRadius:3,height:45,padding:"5px 16px"},loginBtn:{marginTop:e.spacing(1),height:50,width:320,textTransform:"none",border:"2px s
1olid",borderColor:"#00A692",backgroundColor:"#00A692",borderRadius:50,color:"#fff",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal","&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{width:380}},loginBtn2:{marginTop:e.spacing(1),height:50,width:320,textTransform:"none",border:"2px solid",borderColor:"#C6C6C6",backgroundColor:"#C6C6C6",borderRadius:50,color:" #131313",autoComplete:"false",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal","&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{width:380}},input:{height:45},inputError:{height:45,backgroundColor:"#FFD3E1",border:"1px solid rgba(189, 28, 79, 0.5)"},inputError2:{backgroundColor:"#FFD3E1",border:"1px solid rgba(189, 28, 79, 0.5)",borderRadius:"5px",paddingLeft:"14px"},labelAlign:{alignSelf:"center",alignContent:"center",fontFamily:"Work Sans, sans-serif",justifyContent:"flex-end"},checkGrid:{width:"100%"},validationText:{fontFamily:"Work Sans, sans-serif",color:"#ff2569",fontSize:"11px",marginTop:"3px"},passErr:{fontFamily:"Work Sans, sans-serif",color:"#BD1C4F",fontSize:"14px"},MuiOutlinedInputInput:{opacity:"8!important"},password:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",textDecoration:"none","&:hover":{color:"#007868"}},formCheck:{fontFamily:"Work Sans, sans-serif"},buttonText:{fontFamily:"Work Sans, sans-serif",fontSize:"16px"},formTypografy:{color:"#131313",fontSize:"15px",fontWeight:400,textAlign:"left",fontFamily:"Work Sans, sans-serif",height:"fit-content",marginLeft:"2px"},formSelect:{height:45,alignContent:"center"},formFlag:{margin:" 0 5px 0px 16px",display:"flex",alignSelf:"center"},formCountry:{paddingBottom:"0"},inputBase:{"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-root.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiSelect-select:focus":{backgroundColor:"transparent"}}}))),B=[{value:"Argentina",label:Object(N.jsx)(O.a,{code:"AR"})},{value:"Chile",label:Object(N.jsx)(E.a,{code:"CL"})},{value:"Uruguay",label:Object(N.jsx)(S.a,{code:"UY"})},{value:"Paraguay",label:Object(N.jsx)(I.a,{code:"PY"})}];t.a=function(){const[e,t]=o.a.useState(function(e){let t="";switch(e){case"com":case"ar":default:t="Argentina";break;case"cl":t="Chile";break;case"uy":t="Uruguay";break;case"py":t="Paraguay"}return t}(window.location.host.replace(/^.*\./,""))),[a,r]=Object(i.useState)(""),[O,S]=Object(i.useState)(""),[E,I]=Object(i.useState)(!1),[D,F]=(P.a.enterprise.id,P.a.basicNew.id,P.a.basic.id,Object(i.useState)(!0)),[M,V]=Object(i.useState)(!1),[W,H]=Object(i.useState)(!1),[U,_]=Object(i.useState)(!1),[z,q]=Object(i.useState)(!1),[G,Y]=Object(i.useState)(!1),K=k(),X=()=>{L.setItem("country",e)};Object(i.useEffect)((()=>{X()}),[e]);const Z=e=>{let t="";switch(e){case"Argentina":default:t="ar";break;case"Chile":t="cl";break;case"Uruguay":t="uy";break;case"Paraguay":t="py"}return t};Object(i.useEffect)((()=>{/\S+@\S+\.\S+/.test(a)&&F(!0)}),[a]),Object(i.useEffect)((()=>{""!==a&&(q(!1),Y(!1)),""!==O&&(q(!1),Y(!1))}),[a,O]);const Q=async t=>{_(!0);const i=Object(R.a)()+"login";try{if(!a||!O)return _(!1),q(!0),H(!1),Y(!1),void Object(w.a)("Login - Ingresar",{"properties.email":a,"properties.exito":!1,"properties.error":"Username or password is required."});const t=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a,password:O,country:Z(e)})}),r=await t.json();if(!t.ok){const e=(null===r||void 0===r?void 0:r.message)||"Error en la autenticaci\xf3n.";return"User blocked for security purposes."===e?(H(!0),q(!1),_(!1)):"Incorrect email or password."===e?(H(!1),q(!0),_(!1)):(q(!0),_(!1)),void Object(w.a)("Login - Ingresar",{"properties.email":a,"properties.exito":!1,"properties.error":e})}let s=JSON.parse((e=>{let t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))})(r.jwt));L.setItem("jwt",r.jwt),L.setItem("validated",s.data.verified),L.setItem("userID_Product",s.data.userId),L.setItem("Company",s.data.business_name),L.setItem("email",s.data.email),L.setItem("userAdd",s.data.is_additional),L.setItem("parent",s.data.parent_id),L.setItem("country_prod",s.data.country),L.setItem("sign_up_date",s.data.sign_up_date),L.setItem("promotion_code",s.data.promotion_code);const l=new T.a;Object(f.D)(r,s.data)?Object(f.z)(r.jwt,s.data.exp):(Object(f.B)(),l.set(f.a,r.jwt,{path:"/",expire:s.data.exp})),Object(w.c)(s.data.userId);const c={ar:"Argentina",cl:"Chile",uy:"Uruguay",py:"Paraguay"};Object(w.b)({userID:s.data.userId,username:s.data.email,email:s.data.email,plan:s.data.plan_name,Pais:c[s.data.country]||"Argentina",UsuarioAdicional:s.data.is_additional,padre:parseInt(s.data.parent_id)>0?parseInt(s.data.parent_id):0}),Object(w.a)("Login - Ingresar",{"properties.exito":!0}),Object(w.a)("Login_Success",{userID:s.data.userId}),_(!1);(o=Date.now(),n=s.data.verification_exp,o>new Date(1e3*n))&&!s.data.verified?window.open("/v3/login/mailauth","_self"):Object(f.D)(r,s.data)?(Object(f.x)(),window.location.href=f.c):window.location.href="/v3/dashboard"}catch(r){let e=r.message||"Error de conexi\xf3n con el servidor.";console.error("Error:",e),q(!0),_(!1),Object(w.a)("Login - Ingresar",{"properties.email":a,"properties.exito":!1,"properties.error":e})}var o,n};return Object(N.jsxs)(n.a,{component:"form",sx:{"& .MuiGrid-item":{mt:1.5,width:"90vw",maxWidth:"320px","@media (min-width: 780px)":{maxWidth:"380px"}},"& \tfieldset":{height:"45px",marginTop:"5px"}
1,legend:{display:"none"},"& \t.MuiInputBase-input":{fontFamily:"Work Sans, sans-serif",lineHeight:"17.6px",fontSize:"15px"},"& \t.MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",lineHeight:"16.42px",fontSize:"14px"},"& \t.MuiButton-text .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",lineHeight:"18.77px",fontSize:"15px"},"& \t.css-9n8air-MuiButtonBase-root-MuiCheckbox-root.Mui-checked, .css-9n8air-MuiButtonBase-root-MuiCheckbox-root.MuiCheckbox-indeterminate":{color:"#00A692"},"& \t.MuiGrid-root .makeStyles-labelAlign-26 .MuiGrid-container .MuiGrid-item .MuiGrid-grid-xs-6 .MuiGrid-grid-md-5 .MuiGrid-grid-lg-4":{justifyContent:"flex-end"},"& \t.css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input.css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input.css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input":{padding:"0",height:"45px"},"& \tinput":{height:"45px",paddingBottom:0,paddingTop:0},"& input:-webkit-autofill":{transition:"all 5000s ease-in-out 0s"},"& .css-nxo287-MuiInputBase-input-MuiOutlinedInput-input-Mui-focused":{backgroundColor:"yellow"},"& .css-md26zr-MuiInputBase-root-MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& .css-154xyx0-MuiInputBase-root-MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& .css-md26zr-MuiInputBase-root-MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& .css-154xyx0-MuiInputBase-root-MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& .css-kk1bwy-MuiButtonBase-root-MuiMenuItem-root":{paddingTop:"0px",paddingBottom:"0px"},"& .css-9n8air-MuiButtonBase-root-MuiCheckbox-root:hover":{backgroundColor:"rgba(0, 0, 0, 0)"},"& .css-9n8air-MuiButtonBase-root-MuiCheckbox-root.Mui-checked":{backgroundColor:"rgba(0, 0, 0, 0)"},"& .css-154xyx0-MuiInputBase-root-MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(0, 0, 0, 0)"},".css-md26zr-MuiInputBase-root-MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},".css-md26zr-MuiInputBase-root-MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& \t.css-7dqvty-MuiInputBase-input":{paddingTop:0},"& \t.css-6hp17o-MuiList-root-MuiMenu-list":{paddingTop:"80px",paddingBottom:"0!important"},li:{paddingLeft:"0!important",padding:"0!important"},".MuiButtonBase-root":{paddingLeft:"0!important",padding:"0!important"},"&.MuiOutlinedInput-root.Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(19, 19, 19, 0.3)"},"& .Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"}},noValidate:!0,autoComplete:"off",children:[Object(N.jsx)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(N.jsx)(s.a,{id:"outlined-select-country",select:!0,fullWidth:!0,className:K.formButton,value:e,onChange:e=>{const a=e.target.value;t(a);const i=`${{Argentina:"https://app.contabilium.com/",Chile:"https://app.contabilium.cl/",Uruguay:"https://app.contabilium.com.uy/",Paraguay:"https://app.contabilium.com.py/"}[a]}v3/login`;window.open(i,"_self")},sx:{".MuiSelect-select":{padding:"0!important"},li:{paddingLeft:"0!important",padding:"0!important"},".MuiButtonBase-root":{paddingLeft:"0!important",padding:"0!important"},"& .Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"}},onBlur:X,InputProps:{className:K.input},children:B.map((e=>Object(N.jsx)(l.a,{value:e.value,className:K.formCountry,disableRipple:!0,sx:{"& .Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"}},children:Object(N.jsxs)(d.a,{container:!0,xs:12,md:12,lg:12,className:K.formSelect,children:[Object(N.jsx)(d.a,{className:K.formFlag,children:e.label}),Object(N.jsx)(c.a,{className:K.formTypografy,children:e.value})]})},e.value)))})}),Object(N.jsxs)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:[Object(N.jsx)(g.c,{placeholder:"Email",fullWidth:!0,id:"email",name:"name",InputProps:{className:K.input},sx:!1===D?{border:"1px solid #ff2569",borderRadius:1}:{className:K.input2},autoComplete:"false",onChange:e=>{r(e.target.value)},className:K.formButton,onBlur:e=>{r(e.target.value),/\S+@\S+\.\S+/.test(e.target.value)?F(!0):F(!1),L.setItem("email",a)}}),!1===D&&Object(N.jsx)(d.a,{children:Object(N.jsx)(c.a,{className:K.validationText,children:x.a.t("login.emaiCh")})})]}),Object(N.jsx)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(N.jsx)(s.a,{placeholder:"Contrase\xf1a",fullWidth:!0,type:!1===E?"password":"text",id:"password",name:"password",autoComplete:"false",className:K.formButton,onChange:e=>{S(e.target.value)},onBlur:e=>{L.setItem("password",O)},onKeyDown:e=>{"Enter"===e.key&&Q()},required:!0,inputProps:{maxLength:255},InputProps:{className:K.input,endAdornment:Object(N.jsx)(u.a,{position:"end",style:{cursor:"pointer"},children:!1===E?Object(N.jsx)(y.a,{onClick:e=>I(!0)}):Object(N.jsx)(C.a,{onClick:e=>I(!1)})})}})}),!0===z&&Object(N.jsx)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(N.jsx)(s.a,{fullWidth:!0,disabled:!0,id:"msj error",name:"msj error",autoComplete:"false",className:K.formButton,InputProps:{className:K.inputError,endAdornment:Object(N.jsx)(N.Fragment,{children:Object(N.jsx)(u.a,{position:"start",style:{position:"absolute",marginLeft:"10px"},children:Object(N.jsx)(c.a,{className:K.passErr,children:x.a.t("login.errPass")})})})}})}),!0===W&&Object(N.jsx)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(N.jsx)(d.a,{className:K.inputError2,children:Object(N.jsx)(c.a,{className:K.passErr,children:x.a.t("login.blockedUser")})})}),!0===G&&Object(N.jsx)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(N.jsx)(s.a,{fullWidth:!0,disabled:!0,id:"msj error",name:"msj error",autoComplete:"false",className:K.formButton,InputProps:{className:K.inputError,endAdornment:Object(N.jsx)(N.Fragment,{children:Object(N.jsx)(u.a,{position:"start",style:{position:"absolute",marginLeft:"10px"},children:Object(N.jsx)(c.a,{className:K.passErr,children:"Intenta loguearse con usuario de otro pa\xeds"})})})}})}),U&&Object(N.jsx)(A.a,{open:U,children:Object(N.jsx)("div",{style:{padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:Object(N.jsx)(p.a,{size:30,style:{backgroundColor:"transparent"}})})}),Object(N.jsx)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(N.jsxs)(d.a,{container:!0,className:K.checkGrid,justifyContent:"space-between",children:[Object(N.jsx)(d.a,{container:!0,xs:6,md:5,lg:4,justifyContent:"start",children:Object(N.jsx)(h.a,{children:Object(N.jsx)(b.a,{sx:{marginLeft:"0px!important","&.MuiFormControl
1Label-label":{marginLeft:"8px"},color:"#131313",height:"42px"},control:Object(N.jsx)(j.a,{sx:{color:"#131313","&.Mui-checked":{color:"#00A692"},marginLeft:"0px!important",marginRight:"8px"},checked:M,disableRipple:!0}),label:x.a.t("login.remember"),classes:{label:K.formCheck},onClick:e=>{!0===e.target.checked?V(!0):V(!1)},onKeyDown:e=>{"Enter"===e.key&&V(!M)}})})}),Object(N.jsx)(d.a,{container:!0,xs:6,md:5,lg:4,justifyContent:"end",className:K.labelAlign,children:Object(N.jsx)(v.a,{underline:"none",color:"#007868",href:"/v3/login/recoverpass",children:Object(N.jsx)(c.a,{className:K.password,noWrap:!0,children:x.a.t("login.forgot")})})})]})}),Object(N.jsx)(d.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",children:Object(N.jsx)(m.a,{className:K.loginBtn,onClick:Q,disabled:!1,classes:K.buttonText,disableRipple:!0,children:Object(N.jsx)(c.a,{classes:K.buttonText,children:x.a.t("login.into")})})})]})}}).call(this,a(76))},381:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var i=a(32);a.n(i).a;const o="jwt";function n(e){localStorage.setItem(o,e)}},4:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));const i={primary300:"#00C7AF",primary400:"#00A692",primary500:"#007868",primaryLight:"rgba(0, 199, 175, 0.1)",primaryText:"#007868",secondary300:"#6C63FF",secondary400:"#544CC9",secondaryLight:"rgba(108, 99, 255, 0.1)",secondaryLightSolid:"#EEE9FF",tertiary300:"#428bca",tertiary400:"#357ebd",tertiary500:"#3071a9",error300:"#FF2569",error400:"#F32465",error500:"#BD1C4F",errorLight:"rgba(255, 37, 105, 0.1)",warning300:"#FB8500",warning400:"#CF6E00",warning500:"#A15600",warningLight:"rgba(251, 133, 0, 0.1)",textPrimary:"#131313",textSecondary:"#666666",disabled:"#BBBBBB",grey100:"#F6F6F6",grey200:"#ECECEC",grey300:"#DFDFDF",grey400:"#BEBEBE",grey500:"#81818E",grey600:"#5A5A5A",inputBorder:"#c6c6c6",inputBorderHover:"#8c8c8c",white:"#fff",black:"#000"}},441:function(e,t,a){},467:function(e,t,a){},469:function(e,t,a){},477:function(e,t,a){},478:function(e,t,a){},479:function(e,t,a){},480:function(e,t,a){},481:function(e,t,a){},482:function(e,t,a){},483:function(e,t,a){},484:function(e,t,a){},487:function(e,t,a){},503:function(e,t){},504:function(e,t){},505:function(e,t){},506:function(e,t){},507:function(e,t){},53:function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"f",(function(){return n})),a.d(t,"g",(function(){return r})),a.d(t,"e",(function(){return s})),a.d(t,"a",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"b",(function(){return d}));const i=e=>{const t=[],a=JSON.parse(e);for(const i of Object.values(a))t.push(`${i.title},${i.fieldValue}`);return t.join("\n")},o=e=>JSON.stringify(e),n=e=>{const t=e.split("\n");if(t.length<1)return!1;return!(t[0].trim().split(",").length<2)},r=(e,t)=>{for(var a=0;a<e.length;a++)if(e[a].hasOwnProperty(t))return e[a][t];return null},s=e=>e.map((e=>Object.keys(e)[0])),l=(e,t)=>
1{let a={};for(const s of t)for(const t in s){const l=t;for(const c in e){var i,o,n,r;if(e[c].realName.normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase()===l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase()||"IVA"===c&&"Iva"===l||"IVA"===c&&"IVA"===l||(null===(i=e[c])||void 0===i||null===(o=i.secondRealName)||void 0===o?void 0:o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase())===(null===l||void 0===l?void 0:l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase()))a=(null===(n=e[c])||void 0===n||null===(r=n.secondRealName)||void 0===r?void 0:r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase())===(null===l||void 0===l?void 0:l.normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase())?{...a,[c]:e[c].secondRealName}:{...a,[c]:e[c].realName},e[c].fieldValue=s[t]}}return{object:e,selectFieldValues:a}},c=e=>{const t=e=>"string"===typeof e&&(e=(e=e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")).replace(/"/g,'""'),/[!@#$%^&*(),.?":{}|<> \n\r]/.test(e))?`"${e}"`:e,a=Object.keys(e),i=[a.map((a=>t(e[a].realName)))],o=Object.keys(e[a[0]].fieldValue).map((i=>a.map((a=>t(e[a].fieldValue[i])))));return i.concat(o).map((e=>e.join(","))).join("\n")},d=e=>{const t=Object.values(e),a=[],i=[];for(const o of t)a.includes(o)?i.includes(o)||""!==o&&i.push(o):a.push(o);return{hasDuplicates:i.length>0,duplicatedValues:i}}},541:function(e,t,a){},542:function(e,t,a){},543:function(e,t,a){},557:function(e,t,a){var i={"./boxes.svg":[582,4],"./customerRanking.svg":[583,5],"./getSales.svg":[584,6],"./minimumStock.svg":[585,7],"./pendingBills.svg":[586,8],"./pendingBillsRegion.svg":[587,9],"./pendingPayments.svg":[588,10],"./quickAccess.svg":[589,11],"./salesByChannel.svg":[590,12],"./salesVsBuys.svg":[591,13],"./unitsSold.svg":[592,14],"./vatPosition.svg":[593,15]};function o(e){if(!a.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],o=t[0];return a.e(t[1]).then((function(){return a(o)}))}o.keys=function(){return Object.keys(i)},o.id=557,e.exports=o},558:function(e,t,a){"use strict";a.r(t);var i=a(1),o=a.n(i),n=a(39),r=a.n(n),s=(a(441),a(44)),l=a(51),c=a(9),d=a(16),u=a(383),p=a(0);const m=o.a.createContext();function g(e){const[t,a]=o.a.useState(!1),i=o.a.useMemo((()=>({open:t,setOpen:a})),[t]);return Object(p.jsx)(m.Provider,{value:i,...e})}function b(){return o.a.useContext(m)}const h=Object(u.a)((e=>({content:{backgroundColor:"#ebebeb",flexGrow:1,overflow:"hidden",transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),paddingLeft:56,paddingTop:14,minHeight:"100vh","&& .pagefooter-adapted .pagefooter-toolbar-base":{marginLeft:56},[e.breakpoints.down("901")]:{padding:"56px 0 0 0","&& .pagefooter-adapted .pagefooter-toolbar-base":{paddingLeft:0}},[e.breakpoints.down("802")]:{padding:"90px 0 0 0","&& .pagefooter-adapted .pagefooter-toolbar-base":{paddingLeft:0}}},contentShift:{transition:e.transitions.create("padding",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),paddingLeft:240,"&& .pagefooter-adapted .pagefooter-toolbar-base":{marginLeft:240},[e.breakpoints.down("md")]:{paddingLeft:0}},noPadding:{padding:0,[e.breakpoints.down("md")]:{padding:0}}})));var x=e=>{let{children:t,className:a,noPadding:i}=e;const o=h(),{open:n}=b();return Object(p.jsx)("main",{className:Object(d.default)(o.content+" main-content ",{[o.contentShift+" menu-open"]:n,[o.noPadding]:!!i,[a]:!!a}),children:t})},f=a(357),v=(a(289),a(73)),j=(a(467),a.p+"static/media/logo.943ab315.svg"),A=a(34);function C(e){const{inputRef:t,onChange:a,...i}=e,o=Number("999999999999999.999");return Object(p.jsx)(A.a,{...i,getInputRef:t,onValueChange:t=>{a({target:{name:e.name,value:t.value}})},thousandSeparator:".",decimalSeparator:",",decimalScale:3,isAllowed:e=>{let{floatValue:t}=e;return t<=o},isNumericString:!0})}var y=a(578),O=a(759),S=a(269),E=a(576),I=a(734),w=a(733),T=a(8),P=a(705),R=a(758),N=a(712),L=a(19),k=a(757),B=a(268),D=a(310);const F={tachometer:"M 16 6 C 9.382813 6 4 11.382813 4 18 C 4 20.894531 5.035156 23.550781 6.75 25.625 L 7.03125 26 L 24.96875 26 L 25.25 25.625 C 26.964844 23.550781 28 20.894531 28 18 C 28 11.382813 22.617188 6 16 6 Z M 16 8 C 21.535156 8 26 12.464844 26 18 C 26 20.265625 25.207031 22.324219 23.9375 24 L 8.0625 24 C 6.792969 22.324219 6 20.265625 6 18 C 6 12.464844 10.464844 8 16 8 Z M 16 9 C 15.449219 9 15 9.449219 15 10 C 15 10.550781 15.449219 11 16 11 C 16.550781 11 17 10.550781 17 10 C 17 9.449219 16.550781 9 16 9 Z M 12 10.0625 C 11.449219 10.0625 11 10.511719 11 11.0625 C 11 11.613281 11.449219 12.0625 12 12.0625 C 12.550781 12.0625 13 11.613281 13 11.0625 C 13 10.511719 12.550781 10.0625 12 10.0625 Z M 20 10.0625 C 19.449219 10.0625 19 10.511719 19 11.0625 C 19 11.613281 19.449219 12.0625 20 12.0625 C 20.550781 12.0625 21 11.613281 21 11.0625 C 21 10.511719 20.550
1781 10.0625 20 10.0625 Z M 9.0625 13 C 8.511719 13 8.0625 13.449219 8.0625 14 C 8.0625 14.550781 8.511719 15 9.0625 15 C 9.613281 15 10.0625 14.550781 10.0625 14 C 10.0625 13.449219 9.613281 13 9.0625 13 Z M 22.65625 13.03125 L 17 16.28125 C 16.707031 16.109375 16.363281 16 16 16 C 14.894531 16 14 16.894531 14 18 C 14 19.105469 14.894531 20 16 20 C 17.09375 20 17.984375 19.121094 18 18.03125 C 18 18.019531 18 18.011719 18 18 L 23.65625 14.78125 Z M 8 17 C 7.449219 17 7 17.449219 7 18 C 7 18.550781 7.449219 19 8 19 C 8.550781 19 9 18.550781 9 18 C 9 17.449219 8.550781 17 8 17 Z M 24 17 C 23.449219 17 23 17.449219 23 18 C 23 18.550781 23.449219 19 24 19 C 24.550781 19 25 18.550781 25 18 C 25 17.449219 24.550781 17 24 17 Z M 9.0625 21 C 8.511719 21 8.0625 21.449219 8.0625 22 C 8.0625 22.550781 8.511719 23 9.0625 23 C 9.613281 23 10.0625 22.550781 10.0625 22 C 10.0625 21.449219 9.613281 21 9.0625 21 Z M 22.9375 21 C 22.386719 21 21.9375 21.449219 21.9375 22 C 21.9375 22.550781 22.386719 23 22.9375 23 C 23.488281 23 23.9375 22.550781 23.9375 22 C 23.9375 21.449219 23.488281 21 22.9375 21 Z",receipt:"M 7 5.375 L 7 13 L 3 13 L 3 27 L 29 27 L 29 13 L 25 13 L 25 5.375 L 22 6.875 L 20 5.875 L 18 6.875 L 16 5.875 L 14 6.875 L 12 5.875 L 10 6.875 Z M 12 8.125 L 14 9.125 L 16 8.125 
1L 18 9.125 L 20 8.125 L 22 9.125 L 23 8.625 L 23 17 L 9 17 L 9 8.625 L 10 9.125 Z M 5 15 L 7 15 L 7 19 L 25 19 L 25 15 L 27 15 L 27 25 L 5 25 Z M 9 21 L 9 23 L 11 23 L 11 21 Z M 13 21 L 13 23 L 15 23 L 15 21 Z M 17 21 L 17 23 L 19 23 L 19 21 Z M 21 21 L 21 23 L 23 23 L 23 21 Z",tag:"M 16 5 L 15.6875 5.28125 L 4.28125 16.8125 L 3.59375 17.5 L 4.28125 18.21875 L 13.78125 27.71875 L 14.5 28.40625 L 15.1875 27.71875 L 26.71875 16.3125 L 27 16 L 27 5 Z M 16.84375 7 L 25 7 L 25 15.15625 L 14.5 25.59375 L 6.40625 17.5 Z M 22 9 C 21.449219 9 21 9.449219 21 10 C 21 10.550781 21.449219 11 22 11 C 22.550781 11 23 10.550781 23 10 C 23 9.449219 22.550781 9 22 9 Z",university:"M 16 3.875 L 15.5625 4.09375 L 5.5625 9 L 5 9.28125 L 5 11 L 27 11 L 27 9.28125 L 26.4375 9 L 16.4375 4.09375 Z M 16 6.125 L 21.875 9 L 10.125 9 Z M 7 12 L 7 22 L 6 22 L 6 24 L 26 24 L 26 22 L 25 22 L 25 12 L 23 12 L 23 22 L 21 22 L 21 12 L 19 12 L 19 22 L 17 22 L 17 12 L 15 12 L 15 22 L 13 22 L 13 12 L 11 12 L 11 22 L 9 22 L 9 12 Z M 4 25 L 4 27 L 28 27 L 28 25 Z",box:"M 8.5 5 L 8.1875 5.40625 L 5 9.65625 L 5 27 L 27 27 L 27 9.65625 L 23.8125 5.40625 L 23.5 5 Z M 9.5 7 L 15 7 L 15 9 L 8 9 Z M 17 7 L 22.5 7 L 24 9 L 17 9 Z M 7 11 L 25 11 L 25 25 L 7 25 Z M 12.8125 13 C 12.261719 13.050781 11.855469 13.542969 11.90625 14.09375 C 11.957031 14.644531 12.449219 15.050781 13 15 L 19 15 C 19.359375 15.003906 19.695313 14.816406 19.878906 14.503906 C 20.058594 14.191406 20.058594 13.808594 19.878906 13.496094 C 19.695313 13.183594 19.359375 12.996094 19 13 L 13 13 C 12.96875 13 12.9375 13 12.90625 13 C 12.875 13 12.84375 13 12.8125 13 Z",bookOpen:"M 3 6 L 3 25 L 13 25 C 14.101563 25 15 25.898438 15 27 L 17 27 C 17 25.898438 17.898438 25 19 25 L 29 25 L 29 6 L 19 6 C 17.808594 6 16.734375 6.527344 16 7.359375 C 15.265625 6.527344 14.191406 6 13 6 Z M 5 8 L 13 8 C 14.101563 8 15 8.898438 15 10 L 17 10 C 17 8.898438 17.898438 8 19 8 L 27 8 L 27 23 L 19 23 C 17.808594 23 16.734375 23.527344 16 24.359375 C 15.265625 23.527344 14.191406 23 13 23 L 5 23 Z M 15 12 L 15 14 L 17 14 L 17 12 Z M 15 16 L 15 18 L 17 18 L 17 16 Z M 15 20 L 15 22 L 17 22 L 17 20 Z",chartBar:"M 21 4 L 21 28 L 29 28 L 29 4 Z M 23 6 L 27 6 L 27 26 L 23 26 Z M 3 10 L 3 28 L 11 28 L 11 10 Z M 5 12 L 9 12 L 9 26 L 5 26 Z M 12 16 L 12 28 L 20 28 L 20 16 Z M 14 18 L 18 18 L 18 26 L 14 26 Z",exchangeBar:"M 22.1875 2.28125 L 20.78125 3.71875 L 25.0625 8 L 4 8 L 4 10 L 25.0625 10 L 20.78125 14.28125 L 22.1875 15.71875 L 28.90625 9 Z M 9.8125 16.28125 L 3.09375 23 L 9.8125 29.71875 L 11.21875 28.28125 L 6.9375 24 L 28 24 L 28 22 L 6.9375 22 L 11.21875 17.71875 Z",shoppingBar:"M 16 3 C 13.253906 3 11 5.253906 11 8 L 11 9 L 6.0625 9 L 6 9.9375 L 5 27.9375 L 4.9375 29 L 27.0625 29 L 27 27.9375 L 26 9.9375 L 25.9375 9 L 21 9 L 21 8 C 21 5.253906 18.746094 3 16 3 Z M 16 5 C 17.65625 5 19 6.34375 19 8 L 19 9 L 13 9 L 13 8 C 13 6.34375 14.34375 5 16 5 Z M 7.9375 11 L 11 11 L 11 14 L 13 14 L 13 11 L 19 11 L 19 14 L 21 14 L 21 11 L 24.0625 11 L 24.9375 27 L 7.0625 27 Z",laptopCode:"M 5 6 L 5 19.5625 L 2.71875 21.876953 C 2.26575 22.328953 2 22.95275 2 23.59375 C 2 24.91375 3.08625 26 4.40625 26 L 27.59375 26 C 28.91375 26 30 24.91375 30 23.59375 C 30 22.95275 29.73425 22.328 29.28
1125 21.875 L 27 19.5625 L 27 6 L 5 6 z M 7 8 L 25 8 L 25 19 L 7 19 L 7 8 z M 16 9 L 14.5 18 L 16 18 L 17.5 9 L 16 9 z M 12.085938 11 L 10.367188 13.068359 L 10 13.5 L 10.367188 13.931641 L 12.085938 16 L 13.171875 15.136719 L 11.810547 13.5 L 13.171875 11.863281 L 12.085938 11 z M 19.914062 11 L 18.828125 11.863281 L 20.189453 13.5 L 18.828125 15.136719 L 19.914062 16 L 21.632812 13.931641 L 22 13.5 L 21.632812 13.068359 L 19.914062 11 z M 6.4375 21 L 25.5625 21 L 27.875 23.28125 C 27.953 23.35925 28 23.48375 28 23.59375 C 28 23.83575 27.83575 24 27.59375 24 L 4.40625 24 C 4.16425 24 4 23.83575 4 23.59375 C 4 23.48475 4.047 23.36025 4.125 23.28125 L 6.4375 21 z",questionCircle:"M 16 4 C 9.382813 4 4 9.382813 4 16 C 4 22.617188 9.382813 28 16 28 C 22.617188 28 28 22.617188 28 16 C 28 9.382813 22.617188 4 16 4 Z M 16 6 C 21.535156 6 26 10.464844 26 16 C 26 21.535156 21.535156 26 16 26 C 10.464844 26 6 21.535156 6 16 C 6 10.464844 10.464844 6 16 6 Z M 16 10 C 13.800781 10 12 11.800781 12 14 L 14 14 C 14 12.882813 14.882813 12 16 12 C 17.117188 12 18 12.882813 18 14 C 18 14.765625 17.507813 15.445313 16.78125 15.6875 L 16.375 15.8125 C 15.558594 16.082031 15 16.863281 15 17.71875 L 15 19 L 17 19 L 17 17.71875 L 17.40625 17.59375 C 18.945313 17.082031 20 15.621094 20 14 C 20 11.800781 18.199219 10 16 10 Z M 15 20 L 15 22 L 17 22 L 17 20 Z",angleLeft:"M 19.03125 4.28125 L 8.03125 15.28125 L 7.34375 16 L 8.03125 16.71875 L 19.03125 27.71875 L 20.46875 26.28125 L 10.1875 16 L 20.46875 5.71875 Z",angleRight:"M 12.96875 4.28125 L 11.53125 5.71875 L 21.8125 16 L 11.53125 26.28125 L 12.96875 27.71875 L 23.96875 16.71875 L 24.65625 16 L 23.96875 15.28125 Z",logoHorizontal:"M42.72 6C45.8025 6 47.3905 7.7024 47.3905 7.7024L46.7366 8.64818C46.7366 8.64818 45.2421 7.13493 42.72 7.13493C39.6374 7.13493 37.489 9.49938 37.489 12.715C37.489 15.8361 39.6374 18.4843 42.8134 18.4843C45.4289 18.4843 47.0169 16.6873 47.0169 16.6873L47.7642 17.6331C47.7642 17.6331 45.9894 19.7138 42.72 19.7138C38.8902 19.7138 36.0878 16.6873 36.0878 12.8096C36.0878 8.93191 38.9836 6 42.72 6Z",menu:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",dollarSign:"M 15 3 L 15 5.09375 C 12.164063 5.570313 10 8.050781 10 11 C 10 12.777344 10.832031 14.148438 11.9375 15.03125 C 13.042969 15.914063 14.375 16.40625 15.625 16.90625 C 16.875 17.40625 18.042969 17.914063 18.8125 18.53125 C 19.582031 19.148438 20 19.773438 20 21 C 20 23.15625 18.207031 25 16 25 C 13.78125 25 12 23.21875 12 21 L 12 20 L 10 20 L 10 21 C 10 23.964844 12.164063 26.429688 15 26.90625 L 15 29 L 17 29 L 17 26.90625 C 19.84375 26.425781 22 23.925781 22 21 C 22 19.21875 21.167969 17.855469 20.0625 16.96875 C 18.957031 16.082031 17.625 15.5625 16.375 15.0625 C 15.125 14.5625 13.957031 14.082031 13.1875 13.46875 C 12.417969 12.855469 12 12.21875 12 11 C 12 8.808594 13.785156 7 16 7 C 18.21875 7 20 8.78125 20 11 L 20 12 L 22 12 L 22 11 C 22 8.035156 19.835938 5.570313 17 5.09375 L 17 3 Z",check:"M 28.28125 6.28125 L 11 23.5625 L 3.71875 16.28125 L 2.28125 17.71875 L 10.28125 25.71875 L 11 26.40625 L 11.71875 25.71875 L 29.71875 7.71875 Z",infoCircle:"M 16 3 C 8.832031 3 3 8.832031 3 16 C 3 23.167969 8.832031 29 16 29 C 23.167969 29 29 23.167969 29 16 C 29 8.832031 23.167969 3 16 3 Z M 16 5 C 22.085938 5 27 9.914063 27 16 C 27 22.085938 22.085938 27 16 27 C 9.914063 27 5 22.085938 5 16 C 5 9.914063 9.914063 5 16 5 Z M 15 10 L 15 12 L 17 12 L 17 10 Z M 15 14 L 15 22 L 17 22 L 17 14 Z",close:"M 7.21875 5.78125 L 5.78125 7.21875 L 14.5625 16 L 5.78125 24.78125 
1L 7.21875 26.21875 L 16 17.4375 L 24.78125 26.21875 L 26.21875 24.78125 L 17.4375 16 L 26.21875 7.21875 L 24.78125 5.78125 L 16 14.5625 Z",greenArrow:"M7.35938 0.333344L6.64062 1.05209L10.0312 4.44272H0V5.44272H10.0312L6.64062 8.83334L7.35938 9.55209L11.6094 5.30209L11.9531 4.94272L11.6094 4.58334L7.35938 0.333344Z",helpIcon:"M6.83325 0.333313C3.24927 0.333313 0.333252 3.24933 0.333252 6.83331C0.333252 10.4173 3.24927 13.3333 6.83325 13.3333C10.4172 13.3333 13.3333 10.4173 13.3333 6.83331C13.3333 3.24933 10.4172 0.333313 6.83325 0.333313ZM6.83325 1.33331C9.87622 1.33331 12.3333 3.79034 12.3333 6.83331C12.3333 9.87628 9.87622 12.3333 6.83325 12.3333C3.79028 12.3333 1.33325 9.87628 1.33325 6.83331C1.33325 3.79034 3.79028 1.33331 6.83325 1.33331ZM6.33325 3.83331V4.83331H7.33325V3.83331H6.33325ZM6.33325 5.83331V9.83331H7.33325V5.83331H6.33325Z",training:"M72.0821 11.7629L41.5805 0.683893C40.2128 0.136781 38.5714 0 37.614 0C36.5198 0 35.0152 0.136781 33.6474 0.683893L3.1459 11.7629C0.273556 12.8571 0 14.772 0 15.5927C0 16.4134 0.273556 18.3283 3.1459 19.4225L4.51368 19.8328V31.1854C4.51368 32.8268 5.74468 34.0578 7.38602 34.0578C9.02736 34.0578 10.2584 32.8268 10.2584 31.1854V21.8845L15.5927 23.7994V36.6565C15.5927 42.2644 28.7234 45 37.614 45C46.5046 45 59.6353 42.4012 59.6353 36.6565V23.9362L72.0821 19.4225C74.9544 18.465 75.228 16.4134 75.228 15.5927C75.228 14.772 74.9544 12.8571 72.0821 11.7629ZM54.0274 35.9726C52.386 37.0669 46.231 39.2553 37.7508 39.2553C29.2705 39.2553 22.9787 37.0669 21.4742 35.9726V25.9878L33.7842 30.5015C35.152 31.0486 36.7933 31.1854 37.7508 31.1854C38.7082 31.1854 40.3495 31.0486 41.7173 30.5015L54.0274 25.9878V35.9726ZM39.6657 25.0304C38.7082 25.4407 36.6565 25.4407 35.6991 25.0304L9.57447 15.5927L35.5623 6.15502C36.5198 5.74468 38.5714 5.74468 39.5289 6.15502L65.6535 15.5927L39.6657 25.0304Z"};var M=e=>{let{name:t,onClick:a,viewBox:i="0 0 32 32",...o}=e;return Object(p.jsx)(D.a,{onClick:a,...o,viewBox:i,children:Object(p.jsx)("path",{d:F[t]})})},V=a(47),W=a.n(V),H=a(33);const U="2",_="PosWeb",z="collections",q="budgets",G="pass",Y="skus",K="clients",X="salesOrders",Z="remittances",Q="subscriptions";var J=(e,t,a)=>{const i={href:!0===a[_]?"cl"===t?"https://pos.contabilium.cl":"uy"===t?"https://pos.contabilium.com.uy":"https://pos.contabilium.com":"",id:"liVentasPOS",dataForm:"comprobantes",text:"Ventas por POS",target:"_blank",rel:"noreferrer",amplitudeData:"Ventas - Ventas por POS",rolNumber:35,limitationPermission:a[_]},o={href:"/comprobantes.aspx",id:"liVentasComprobantes",dataForm:"comprobantes",text:"Facturaci\xf3n",amplitudeData:"Ventas - Facturacion",rolNumber:35,limitationPermission:a.invoice.max>0},n={href:"/modulos/ventas/integraciones.aspx",id:"liMercadoLibreA",dataForm:"integraciones",text:"Integraciones (Ventas Online)",amplitudeData:"Ventas - Integraciones",rolNumber:104,limitationPermission:a.integrations.max>0},r={href:!0===a[z]?"/cobranzas.aspx":"",id:"liVentasCobranzas",dataForm:"cobranzas",text:"Cobranzas",modalText:"management",amplitudeData:"Ventas - Cobranzas",rolNumber:30,limitationPermission:a[z]},s={href:!0===a[q]?"/v3/budgets":"",id:"liVentasPresupuestos",dataForm:"presupuestos",text:"cl"===t?"Cotizaciones":"Presupuestos",modalText:"management",amplitudeData:"Ventas - Presupuestos",rolNumber:54,limitationPermission:a[q]},l={href:!0===a[G]?"/Abonos.aspx":"",id:"liVentasAbonos",dataForm:"Abonos",text:"Abonos",modalText:"management",amplitudeData:"Ventas - Abonos",rolNumber:27,limitationPermission:a[G]},c={href:"/conceptos.aspx",id:"liVentasProductosyServicios",dataForm:"conceptos",text:"Productos y servicios",amplitudeData:"Menu - Productos y Servicios",rolNumber:38,limitationPermission:a[Y].max>1},d={href:"/v3/attributes/creation",id:"liAtributosDeProductos",dataForm:"atributos",text:"Atributos de productos",amplitudeData:"Atributos de productos",rolNumber:38,limitationPermission:a[Y].max>1},u={href:!0===a[K]?"/personas.aspx?tipo=c":"",id:"liVentasClientes",dataForm:"personas",text:"Clientes",amplitudeData:"Ventas - Clientes",rolNumber:52,limitationPermission:a[K]},p={href:!0===a[X]?"/modulos/ventas/ordenesVenta.aspx":"",id:"liVentaOrdenes",dataForm:"ordenesVenta",text:"\xd3rdenes de venta",modalText:"management",amplitudeData:"Ventas - Ordenes de Ventas",rolNumber:132,limitationPermission:a[X]},m={href:!0===a[Z]?"/modulos/ventas/remitos.aspx#/remitos":"",id:"liVentaRemitos",dataForm:"remitos",text:"cl"===t?"Gu\xeda de despachos":"Remitos personalizados",modalText:"management",amplitudeData:"Ventas - Remitos Personalizados",rolNumber:148,limitationPermission:a[Z]},g={href:!0===a[Q]?"/modulos/suscripciones/suscripciones.aspx":"",id:"liVentasSuscripciones",dataForm:"Suscripciones",text:"Suscripciones",modalText:"management",rolNumber:142,limitationPermission:a[Q]},b={href:"/modulos/promociones/promociones.aspx",id:"liPromociones",dataForm:"Promociones",text:"Promociones",modalText:"management",limitationPermission:!0,rolNumber:38};return{title:"Ventas",dataToggle:"dropdown",dataLink:"ventas",icon:"la la-receipt",text:"Ventas",className:"dropdown",dataRef:"ventas",id:"liVentas",dropdown:!0,items:["py"!==t&&ei(e[U],i,35),ei(e[U],o,35),ei(e[U],n,104),ei(e[U],r,30),ei(e[U],s,54),ei(e[U],l,27),ei(e[U],c,38),ei(e[U],d,38),ei(e[U],u,52),ei(e[U],p,132),ei(e[U],m,148),ei(e[U],g,142),ei(e[U],b,38)]}};const $="1",ee="purchaseOrders",te="vouchers",ae="payments",ie="suppliers";var oe=(e,t,a)=>{const i={href:!0===a[ee]?"/modulos/compras/ordenesCompras.aspx?tipo=p":"",id:"liComprasOrdenes",dataForm:"ordenesCompras",text:"\xd3rdenes de compra",modalText:"management",rolNumber:118,limitationPermission:a[ee]},o={href:!0===a[te]?"/modulos/compras/compras.aspx":"",id:"liComprasComprobantes",dataForm:"compras",text:"Comprobantes",rolNumber:33,limitationPermission:a[te]},n={href:!0===a[ae]?"/modulos/compras/pagos.aspx":"",id:"liComprasPagos",dataForm:"pagos",text:"Pagos",modalText:"management",rolNumber:50,limitationPermission:a[ae]},r={href:!0===a[ie]?"/personas.aspx?tipo=p":"",id:"liComprasProveedores",dataForm:"personas",text:"Proveedores",rolNumber:52,limitationPermission:a[ie]};return{title:"Compras",dataToggle:"dropdown",dataLink:"compras",icon:"la la-tag",text:"Compras",className:"dropdown",dataRef:"compras",dropdown:!0,id:"liCompras",items:[ei(e[$],i,118),ei(e[$],o,33),ei(e[$],n,50),ei(e[$],r,52)]}};const ne="3",re="entities",se="boxes",le="checks",ce="bankTransactions",de
1="fundTransfers";var ue=(e,t,a)=>{const i={href:!0===a[re]?"/modulos/tesoreria/bancos.aspx":"",id:"liTesoreriaBancos",dataForm:"bancos",text:"Entidades",modalText:"management",rolNumber:3,limitationPermission:a[re]},o={href:!0===a[se]?"/modulos/tesoreria/caja.aspx":"",id:"liTesoreriaCaja",dataForm:"caja",text:"Cajas",modalText:"management",rolNumber:61,limitationPermission:a[se]},n={href:!0===a[le]?"/modulos/tesoreria/cheques.aspx":"",id:"liTesoreriaCheques",dataForm:"cheques",text:"Cheques",modalText:"management",rolNumber:4,limitationPermission:a[le]},r={href:!0===a[ce]?"/modulos/reportes/DetalleBancario.aspx":"",id:"liTesoreriaDetalleBancario",dataForm:"DetalleBancario",text:"Movimientos bancarios",modalText:"management",rolNumber:91,limitationPermission:a[ce]},s={href:!0===a[de]?"/modulos/tesoreria/MovimientoDeFondos.aspx":"",id:"liTesoreriaMovimientosFondos",dataForm:"MovimientoDeFondos",text:"Movimiento de fondos",modalText:"management",rolNumber:89,limitationPermission:a[de]};return{title:"Tesorer\xeda",dataToggle:"dropdown",dataLink:"tesoreria",icon:"la la-university",text:"Tesorer\xeda",dataRef:"tesoreria",className:"dropdown",dropdown:!0,id:"litesoreria",items:[ei(e[ne],i,3),ei(e[ne],o,61),ei(e[ne],n,4),ei(e[ne],r,91),ei(e[ne],s,89)]}};const pe="7",me="plansOfAccounts",ge="generalJournal",be="copyGeneralJournal",he="ledger",xe="balanceSheet",fe="manualEntries",ve="incomeStatement",je="massAccountModification",Ae="reprocessEntries";var Ce=(e,t,a)=>{const i={href:!0===a[me]?"/modulos/contabilidad/plandecuentas.aspx":"",id:"liContabilidadPlanDeCuentas",dataForm:"plandecuentas",text:"Plan de cuentas",amplitudeData:"Contabilidad - Plan de Cuentas",rolNumber:78,limitationPermission:a[me]},o={href:!0===a[ge]?"/modulos/reportes/LibroDiario.aspx":"",id:"liContabilidadLibroDiario",dataForm:"LibroDiario",text:"Libro diario",amplitudeData:"Contabilidad - Libro Diario",rolNumber:79,limitationPermission:a[ge]},n={href:!0===a[be]?"/modulos/reportes/LibroDiarioCopiativo.aspx":"",id:"liContabilidadLibroDiarioCopiativo",dataForm:"LibroDiarioCopiativo",text:"Libro diario copiativo",amplitudeData:"Contabilidad - Libro Diario Copiativo",rolNumber:136,limitationPermission:a[be]},r={href:!0===a[he]?"/modulos/reportes/LibroMayor.aspx":"",id:"liContabilidadLibroMayor",dataForm:"LibroMayor",text:"Libro mayor",amplitudeData:"Contabilidad - Libro Mayor",rolNumber:80,limitationPermission:a[he]},s={href:!0===a[xe]?"/modulos/reportes/BalanceGeneral.aspx":"",id:"liContabilidadBalanceGeneral",dataForm:"BalanceGeneral",text:"Balance general",amplitudeData:"Contabilidad - Balance General",rolNumber:83,limitationPermission:a[xe]},l={href:!0===a[fe]?"/modulos/contabilidad/asientosManuales.aspx":"",id:"liContabilidadAsientosManuales",dataForm:"asientosManuales",text:"Asientos manuales",modalText:"management",amplitudeData:"Contabilidad - Asientos Manuales",rolNumber:81,limitationPermission:a[fe]},c={href:!0===a[ve]?"/modulos/reportes/EstadoResultado.aspx":"",id:"liContabilidadEstadoResultado",dataForm:"EstadoResultado",text:"Estado de resultado",amplitudeData:"Contabilidad - Estado de Resultado",rolNumber:87,limitationPermission:a[ve]},d={href:!0===a[je]?"/modulos/contabilidad/modificarCuentas.aspx":"",id:"liContabilidadModificarCuentas",dataForm:"modificarCuentas",text:"Modificar cuentas masivamente",modalText:"management",amplitudeData:"Contabilidad - Mod Cuentas Masivamente",rolNumber:147,limitationPermission:a[je]},u={href:!0===a[Ae]?"/modulos/contabilidad/asientosPendientes.aspx":"",id:"liContabilidadAsientosPendientes",dataForm:"asientosPendientes",text:"Reprocesar asientos",modalText:"management",amplitudeData:"Contabilidad - Reprocesar Asientos",rolNumber:95,limitationPermission:a[Ae]};return{title:"Contabilidad",dataToggle:"dropdown",dataLink:"contabilidad",icon:"la la-book-open",text:"Contabilidad",dataRef:"contabilidad",className:"dropdown",dropdown:!0,id:"liContabilidad",items:[ei(e[pe],i,78),ei(e[pe],o,79),ei(e[pe],n,136),ei(e[pe],r,80),ei(e[pe],s,83),ei(e[pe],l,81),ei(e[pe],c,87),ei(e[pe],d,147),ei(e[pe],u,95)]}};const ye="deposits",Oe="stockModification",Se="depositsTransfers",Ee="products",Ie="bulkStockUpdate";var we=(e,t,a,i)=>{var o;const n={href:!0===i[ye]?"/modulos/inventarios/inventarios.aspx":"",id:"liDepositos",dataForm:"inventarios",text:"cl"===t?"Bodegas":"Dep\xf3sitos",modalText:"management",amplitudeData:"Inventarios - Depositos",rolNumber:112,limitationPermission:i[ye]},r={href:!0===i[Oe]?"/modulos/inventarios/modificacionStock.aspx":"",id:"liModificacionStock",dataForm:"modificacionStock",text:"Modificaci\xf3n de stock",amplitudeData:"Inventarios - Modificacion  Stock",rolNumber:115,limitationPermission:i[Oe]},s={href:!0===i[Se]?"/modulos/inventarios/movimientosDeStock.aspx":"",id:"liMovimientosDepositos",dataForm:"movimientosDeStock",text:"cl"===t?"Movimientos entre Bodegas":"Movimientos entre dep\xf3sitos",modalText:"management",amplitudeData:"Inventarios - Movim Entre Depositos",rolNumber:114,limitationPermission:i[Se]},l={href:!0===i.bulkImport[Ee]?"/v3/bulkImport":"",id:"liImportacionMasivaProductos",dataForm:"importar",text:"Importaci\xf3n masiva de productos",modalText:"bulkImport",amplitudeData:"Inventarios - Impor Masiva Productos",rolNumber:46,limitationPermission:i.bulkImport[Ee]}
1,c={href:!0===i[Ie]?"/importar.aspx?tipo=Stock":"",id:"liActualizacionMasivaStock",dataForm:"importar",text:"Actualizaci\xf3n masiva de stock",modalText:"bulkImport",amplitudeData:"Inventarios - Actualizacion Masiva Stock",rolNumber:46,limitationPermission:i[Ie]};let d=[];d=null!==(o=e[5])&&void 0!==o&&o.includes(46)?[n,r,s,l,c]:[ei(e[8],n,112),ei(e[8],r,115),ei(e[8],s,114),ei(e[5],l,46),ei(e[5],c,46)];return{title:"Inventarios",dataToggle:"dropdown",dataLink:"inventarios",icon:"la la-box",text:"Inventarios",dataRef:"inventarios",className:"dropdown",dropdown:!0,id:"liInventarios",items:d}};const Te="4",Pe=[24,12,107,155,97,141],Re=[17,15,153,19,88,10,124,146,150,151],Ne=[23,152,111,131,108,140,21,154,96],Le=[8,129,82,130,13,18,20,120,127,156,98,63,128,106],ke="comparative",Be="expensesByCc",De="monthlyExpensesByCc",Fe="incomeVsExpendituresByCc",Me="annualLiquidity",Ve="liquidityBalances",We="vatSales",He="vatPurchases",Ue="vatPosition",_e="withholdings",ze="perceptions",qe="digitalVatBookCiti",Ge="collectionAgents",Ye="cmSifereWeb",Ke="salesByDestination",Xe="purchasesByDestination",Ze="stock",Qe="minimumStock",Je="productProfitability",$e="profitabilityBySale",et="inputsAndOutputs",tt="reservationDetails",at="ranking",it="purchaseHistory",ot="purchasesByCustomer",nt="stockByDispatch",rt="currentAccount",st="customerBalances",lt="pendingCollections",ct="supplierBalances",dt="accountsPayable",ut="paymentsToSuppliers",pt="customerRanking",mt="salesByIntegration",gt="salesByPointsOfSale",bt="salesBySalesCondition",ht="salesByCustomer",xt="trackingHours",ft="commissionsBySeller",vt="monthlySales";var jt=(e,t,a)=>{const i={href:!0===a.reports[ke]?"/modulos/reportes/ventas-vs-compras.aspx":"",id:"liReportesVentasVsCompras",dataForm:"ventas-vs-compras",text:"Comparativo",amplitudeData:"Reportes - Comparativo",rolNumber:24,limitationPermission:a.reports[ke]},o={href:!0===a.reports[Be]?"/modulos/reportes/compras-por-categoria.aspx":"",id:"liReportesComprasPorCategoria",dataForm:"compras-por-categoria",text:"Egresos por CC",modalText:"reports",amplitudeData:"Reportes - Egresos por CC",rolNumber:12,limitationPermission:a.reports[Be]},n={href:!0===a.reports[De]?"/modulos/reportes/compras-por-categoria-mensual.aspx":"",id:"liReportesComprasPorCategoriaMensual",dataForm:"compras-por-categoria-mensual",text:"Egresos mensuales por CC",modalText:"reports",amplitudeData:"Reportes - Egresos Mensuales por CC",rolNumber:107,limitationPermission:a.reports[De]},r={href:!0===a.reports[Fe]?"/modulos/reportes/IngresosEgresosCategorias.aspx":"",id:"liReportesIngresosEgresosCategorias",dataForm:"ingresosEgresosCategorias",text:"Ingresos vs Egresos por CC",modalText:"reports",amplitudeData:"Reportes - Ingresos vs Egresos por CC",rolNumber:155,limitationPermission:a.reports[Fe]}
1,s={href:!0===a.reports[Me]?"/modulos/reportes/utilidad.aspx":"",id:"liReportesLiquidezAnual",dataForm:"utilidad",text:"Liquidez anual",modalText:"reports",amplitudeData:"Reportes - Liquidez Anual",rolNumber:97,limitationPermission:a.reports[Me]},l={href:!0===a.reports[Ve]?"/modulos/reportes/flujoIngresosEgresos.aspx":"",id:"liReportesFlujoIngresosEgresos",dataForm:"flujoIngresosEgresos",text:"Saldos de liquidez",modalText:"reports",amplitudeData:"Reportes - Saldos de Liquidez",rolNumber:141,limitationPermission:a.reports[Ve]},c={href:"",title:" Financieros y Econ\xf3micos",dataToggle:"dropdown",text:" Financieros y Econ\xf3micos",className:"cbl-dropdown-subcategory",dataRef:"financieros-y-economicos",subItems:[ei(e[Te],i,24),ei(e[Te],o,12),ei(e[Te],n,107),ei(e[Te],r,155),ei(e[Te],s,97),ei(e[Te],l,141)]},d={href:!1===a.reports[We]?"":"cl"===t?"/modulos/reportes/iva-ventas-CL.aspx":"uy"===t?"/modulos/reportes/iva-ventas-uy.aspx":"py"===t?"/modulos/reportes/iva-ventas-py.aspx":"/modulos/reportes/iva-ventas.aspx",id:"liIva1",dataForm:"iva-ventas",text:"IVA Ventas",amplitudeData:"Reportes - IVA Ventas",rolNumber:17,limitationPermission:a.reports[We]},u={href:!1===a.reports[He]?"":"cl"===t?"/modulos/reportes/iva-compras-CL.aspx":"uy"===t?"/modulos/reportes/iva-compras-uy.aspx":"py"===t?"/modulos/reportes/iva-compras-py.aspx":"/modulos/reportes/iva-compras.aspx",id:"liIva2",dataForm:"iva-compras",text:"IVA Compras",amplitudeData:"Reportes - IVA Compras",rolNumber:15,limitationPermission:a.reports[He]},p={href:!0===a.reports[Ue]?"/modulos/reportes/IvaPosicion.aspx":"",id:"liReportesIvaPosicion",dataForm:"ivaposicion",text:"Posici\xf3n IVA",amplitudeData:"Reportes - Posicion IVA",rolNumber:153,limitationPermission:a.reports[Ue]},m={href:!0===a.reports[_e]?"/modulos/reportes/retenciones.aspx":"",id:"liReportesRetenciones",dataForm:"retenciones",text:"Retenciones",modalText:"reports",amplitudeData:"Reportes - Retenciones",rolNumber:19,limitationPermission:a.reports[_e]},g={href:"/modulos/reportes/retencionesarba.aspx",id:"liReportesRetencionesARBA",dataForm:"Retencionesarba",text:"Retenciones ARBA 22/25",amplitudeData:"Reportes - Retenciones ARBA 22/25",rolNumber:19,limitationPermission:!0},b={href:!0===a.reports[ze]?"/modulos/reportes/percepciones.aspx":"",id:"liReportesPercepciones",dataForm:"percepciones",text:"Percepciones",amplitudeData:"Reportes - Percepciones",rolNumber:88,limitationPermission:a.reports[ze]},h={href:!0===a.reports[qe]?"/modulos/reportes/citiVentas.aspx":"",id:"liReportesCitiVentas",dataForm:"citiVentas",text:"Libro IVA Digital / CITI",amplitudeData:"Reportes - Libro IVA Digital - CITI",rolNumber:10,limitationPermission:a.reports[qe]},x={href:!0===a.reports[Ge]?"/modulos/reportes/SicoreRetEmitidas.aspx":"",id:"liReportesSicore",dataForm:"SicoreRetEmitidas",text:"Agentes de recaudaci\xf3n",amplitudeData:"Reportes - Agentes de Recaudacion",rolNumber:124,limitationPermission:a.reports[Ge]},f={href:!0===a.reports[Ye]?"/modulos/reportes/CM-SifereWeb.aspx":"",id:"liReportesSifere",dataForm:"CM-SifereWeb",text:"CM - SifereWeb",amplitudeData:"Reportes - CM - SifereWeb",rolNumber:146,limitationPermission:a.reports[Ye]},v={href:!0===a.reports[Ke]?"/modulos/reportes/ventasPorProvincias.aspx":"",id:"liReportesVentasPorProvincias",dataForm:"ventasPorProvincias",text:"Ventas por destino",amplitudeData:"Reportes - Ventas por Destino",rolNumber:150,limitationPermission:a.reports[Ke]},j={href:!0===a.reports[Xe]?"/modulos/reportes/comprasPorProvincias.aspx":"",id:"liReportesComprasPorProvincias",dataForm:"comprasPorProvincias",text:"Compras por destino",amplitudeData:"Reportes - Compras por Destino",rolNumber:151,limitationPermission:a.reports[Xe]},A={href:"",title:"Impositivos",dataToggle:"dropdown",text:"Impositivos",dataRef:"impositivos",className:"cbl-dropdown-subcategory",subItems:[ei(e[Te],d,17),ei(e[Te],u,15),"uy"===t&&{href:"/modulos/reportes/formulariosAppBeta-UY.aspx",id:"liIva2",text:"Form. aplicativo Padi",limitationPermission:!0},ei(e[Te],p,153),"ar"===t&&ei(e[Te],m,19),"ar"===t&&ei(e[Te],g,19),"ar"===t&&ei(e[Te],b,88),"ar"===t&&ei(e[Te],h,10),"ar"===t&&{href:"/modulos/reportes/ivaSimple.aspx",id:"li
1IvaSimple",dataForm:"iva-simple",text:"IVA Simple",amplitudeData:"Reportes - IVA Simple",limitationPermission:!0},"ar"===t&&ei(e[Te],x,124),"ar"===t&&ei(e[Te],f,146),ei(e[Te],v,150),ei(e[Te],j,151)]},C={href:!0===a.reports[Ze]?"/modulos/reportes/stock.aspx":"",id:"liReportesStock",dataForm:"stock",text:"Stock",amplitudeData:"Reportes - Stock",rolNumber:23,limitationPermission:a.reports[Ze]},y={href:!0===a.reports[Qe]?"/modulos/reportes/stockMinimo.aspx":"",id:"liReportesStockMinimo",dataForm:"stockMinimo",text:"Stock M\xednimo",modalText:"reports",amplitudeData:"Reportes - Stock Minimo",rolNumber:152,limitationPermission:a.reports[Qe]},O={href:!0===a.reports[Je]?"/modulos/reportes/rentabilidad-de-productos.aspx":"",id:"liReportesRentabilidad",dataForm:"rentabilidad-de-productos",text:"Rentabilidad de productos",modalText:"reports",amplitudeData:"Reportes - Rentabilidad x Productos",rolNumber:111,limitationPermission:a.reports[Je]},S={href:!0===a.reports[$e]?"/modulos/reportes/rentabilidad-de-productos-det.aspx":"",id:"liReportesRentabilidadDet",dataForm:"rentabilidad-de-productos-det",text:"Rentabilidad por venta",modalText:"reports",amplitudeData:"Reportes - Rentabilidad x Venta",rolNumber:131,limitationPermission:a.reports[$e]},E={href:!0===a.reports[et]?"/modulos/reportes/historicoStock.aspx":"",id:"liReportesHistoricoStock",dataForm:"historicoStock",text:"Entradas y salidas",amplitudeData:"Reportes - Entradas y Salidas",rolNumber:108,limitationPermission:a.reports[et]},I={href:!0===a.reports[tt]?"/modulos/reportes/reservasDetalle.aspx":"",id:"liReportesReservasDetalle",dataForm:"reservasDetalle",text:"Detalle de reservas",modalText:"reports",amplitudeData:"Reportes - Detalle de Reservas",rolNumber:140,limitationPermission:a.reports[tt]},w={href:!0===a.reports[at]?"/modulos/reportes/rnk-conceptos.aspx":"",id:"liReportesRankingPorProducto",dataForm:"rnk-conceptos",text:"Ranking",amplitudeData:"Reportes - Ranking",rolNumber:21,limitationPermission:a.reports[at]},T={href:!0===a.reports[it]?"/modulos/reportes/historicoCompras.aspx":"",id:"liReportesHistoricoCompras",dataForm:"historicoCompras",text:"Historial de compras",modalText:"reports",amplitudeData:"Reportes - Historial de Compras",rolNumber:154,limitationPermission:a.reports[it]},P={href:!0===a.reports[ot]?"/modulos/reportes/productosPorCliente.aspx":"",id:"liReportesProductosPorCliente",dataForm:"productosPorCliente",text:"Ventas por cliente",modalText:"reports",amplitudeData:"Reportes - Ventas x Clientes",rolNumber:96,limitationPermission:a.reports[ot]},R={href:!0===a.reports[nt]?"/modulos/reportes/stockPorDespachoDeImportacion.aspx":"",id:"liReportesStockPorDespachoImportacion",dataForm:"stockPorDespachoDeImportacion",text:"Stock por despacho",modalText:"reports",amplitudeData:"Reportes - Stock x Despacho",limitationPermission:a.reports[nt]},N={href:"",title:"Productos",dataToggle:"dropdown",text:"Productos",dataRef:"productos",className:"cbl-dropdown-subcategory",subItems:[ei(e[Te],C,23),ei(e[Te],y,152),ei(e[Te],O,111),ei(e[Te],S,131),ei(e[Te],E,108),ei(e[Te],I,140),ei(e[Te],w,21),ei(e[Te],T,154),ei(e[Te],P,96),"ar"===t&&R]},L={href:!0===a.reports[rt]?"/modulos/reportes/cc.aspx":"",id:"liReportesCuentaCorriente",dataForm:"cc",text:"cl"===t?"Cuenta cr\xe9dito":"Cuenta corriente",modalText:"reports",amplitudeData:"Reportes - Cuenta Corriente",rolNumber:8,limitationPermission:a.reports[rt]},k={href:!0===a.reports[st]?"/modulos/reportes/saldosClientes.aspx":"",id:"liReportesSaldosClientes",dataForm:"saldosClientes",text:"Saldos de clientes",modalText:"reports",amplitudeData:"Reportes - Saldos de Clientes",rolNumber:129,limitationPermission:a.reports[st]},B={href:!0===a.reports[lt]?"/modulos/reportes/cobranzasPendientes.aspx":"",id:"liReportesCobranzasPendientes",dataForm:"cobranzasPendientes",text:"Cobranzas pendientes",modalText:"reports",amplitudeData:"Reportes - Cobranzas Pendientes",rolNumber:82,limitationPermission:a.reports[lt]},D={href:!0===a.reports[ct]?"/modulos/reportes/saldosProveedores.aspx":"",id:"liReportesSaldosProveedores",dataForm:"saldosProveedores",text:"Saldos de proveedores",modalText:"reports",amplitudeData:"Reportes - Saldos de Proveedores",rolNumber:130,limitationPermission:a.reports[ct]},F={href:!0===a.reports[dt]?"/modulos/reportes/cuentasPagar.aspx":"",id:"liReportesCuentasAPagar",dataForm:"cuentasPagar",text:"Cuentas a pagar",modalText:"reports",amplitudeData:"Reportes - Cuentas a Pagar",rolNumber:13,limitationPermission:a.reports[dt]},M={href:!0===a.reports[ut]?"/modulos/reportes/pagoprov.aspx":"",id:"liReportesPagoAProveedores",dataForm:"pagoprov",text:"Pagos a proveedores",modalText:"reports",amplitudeData:"Reportes - Pagos a Proveedores",rolNumber:18,limitationPermission:a.reports[ut]},V={href:!0===a.reports[pt]?"/modulos/reportes/rnk-clientes.aspx":"",id:"liReportesRankingPorCliente",dataForm:"rnk-clientes",text:"Ranking de clientes",amplitudeData:"Reportes - Ranking de Clientes",rolNumber:20,limitationPermission:a.reports[pt]},W={href:!0===a.reports[mt]?"/modulos/reportes/ventas-por-integracion-mensual.aspx":"",id:"liReporteIntegraciones",dataForm:"ventas-por-integracion-mensual",text:"Ventas por integraci\xf3n",modalText:"reports",amplitudeData:"Reportes - Ventas x Integracion",rolNumber:120,limitationPermission:a.reports[mt]},H={href:!0===a.reports[gt]?"/modulos/reportes/ventas-por-pdv-mensual.aspx":"",id:"liReportePuntosDeVentas",dataForm:"ventas-por-pdv-mensual",text:"cl"===t||"uy"===t||"py"===t?"Ventas por Sucursal":"Ventas por puntos de venta",modalText:"reports",amplitudeData:"Reportes - Ventas x Puntos de Venta",rolNumber:127,limitationPermission:a.reports[gt]},U={href:!0===a.reports[bt]?"/modulos/reportes/ventasPorCondicion.aspx":"",id:"liReporteCondicion",dataForm:"ventasporCondicion",text:"Ventas por condici\xf3n de venta",modalText:"reports",amplitudeData:"Reportes - Ventas x Condicion de Venta",rolNumber:156,limitationPermission:a.reports[bt]},_={href:!0===a.reports[ht]?"/modulos/reportes/comprasPorCliente.aspx":"",id:"liReportesComprasPorCliente",dataForm:"comprasPorCliente",text:"Compras por cliente",modalText:"reports",amplitudeData:"Reportes - Compras x Clientes",rolNumber:98,limitationPermission:a.reports[ht]},z={href:!0===a.reports[xt]?"/modulos/reportes/trackingHora.aspx":"",id:"liReportesTrackingHoras",dataForm:"trackingHora",text:"Tracking horas",modalText:"reports",amplitudeData:"Reportes - Tracking Horas",rolNumber:63,limitationPermission:a.reports[xt]},q={href:!0===a.reports[ft]?"/modulos/reportes/comisiones.aspx":"",id:"liReporteComisiones",dataForm:"comisiones",text:"Comisiones por vendedor",modalText:"reports",amplitudeData:"Reportes - Comisiones x Vendedor",rolNumber:128,limitationPermission:a.reports[ft]},G={href:!0===a.reports[vt]?"/modulos/reportes/ventasDelMes.aspx":"",id:"liReportesVentasDelMes",dataForm:"ventasDelMes",text:"Ventas mensuales",amplitudeData:"Reportes - Ventas Mensuales",rolNumber:106,limitationPermission:a.reports[vt]},Y={href:"",title:"Gesti\xf3n",dataToggle:"dropdown",text:"Gesti\xf3n",dataRef:"gestion",className:"cbl-dropdown-subcategory",subItems:[ei(e[Te],L,8),ei(e[Te],k,129),ei(e[Te],B,82),ei(e[Te],D,130),ei(e[Te],F,13),ei(e[Te],M,18),ei(e[Te],V,20),ei(e[Te],W,120),ei(e[Te],H,127),ei(e[Te],U,156),ei(e[Te],_,98),!["py","uy","cl"].includes(t)&&ei(e[Te],z,63),ei(e[Te],q,128),ei(e[Te],G,106),"ar"===t&&{href:"/modulos/reportes/turnos-pdv.aspx",id:"liReportesTurnosPdv",dataForm:"turnos-pdv",text:"Turnos PDV",amplitudeData:"Reportes - Turnos PDV",limitationPermission:!0}]};return{title:"Reportes",dataToggle:"dropdown",dataLink:"reportes",icon:"la la-chart-bar",text:"Reportes",dataRef:"reportes",className:"dropdown",style:{},ulStyle:{display:"flex"},dropdown:!0,id:"liReportes",items:[ti(e[Te],c,Pe),ti(e[Te],A,Re),ti(e[Te],N,Ne),ti(e[Te],Y,Le)]}};const At="Importaci\xf3n variantes - Ingresar desde Herramientas",Ct="fileExplorer",yt="clients",Ot="providers",St="products",Et="liHerramientasImportarProductosVariantes",It="combos",wt="services",Tt="simpleSalesInvoices",Pt="itemsSalesInvoices",Rt="purchaseInvoices",Nt="purchaseInvoices",Lt="chartOfAccounts",kt="accountingEntries",Bt="bankTransactions",Dt="trackingHours",Ft="alertConfig";var Mt=(e,t,a,i)=>{const o={href:!0===i[Ct]?"/file-explorer.aspx":"",id:"liHerramientasExploradorArchivos",dataForm:"file-explorer",text:"Explorador de archivos",modalText:"management",amplitudeData:"Herramientas - Explorador de Archivos",roleNumber:43,limitationPermission:i[Ct]},n={href:!0===i.reports[Dt]?"/modulos/ventas/trackingHoras.aspx":"",id:"liHerramientasTrackingHoras",dataForm:"trackingHoras",text:"Tracking de horas",modalText:"management",amplitudeData:"Herramientas - Tracking de Horas",roleNumber:25,limitationPermission:i.reports[Dt]}
1,r={href:!0===i[Ft]?"/alertas.aspx":"",id:"liHerramientasAlertas",dataForm:"alertas",text:"Configurar alertas",modalText:"management",amplitudeData:"Herramientas - Configurar Alertas",limitationPermission:i[Ft]},s={href:!0===i.bulkImport[yt]?"/importar.aspx?tipo=Clientes":"",id:"liHerramientasImportarClientes",dataForm:"importar",text:"Clientes",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - Clientes",limitationPermission:i.bulkImport[yt]},l={href:!0===i.bulkImport[Ot]?"/importar.aspx?tipo=Proveedores":"",id:"liHerramientasImportarProveedores",dataForm:"importar",text:"Proveedores",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - Proveedores",limitationPermission:i.bulkImport[Ot]},c={href:!0===i.bulkImport[St]?"/v3/bulkImport":"",id:"liHerramientasImportarProductos",dataForm:"importar",text:"Productos",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - Productos",limitationPermission:i.bulkImport[St]},d={href:!0===i.bulkImport[St]?"/v3/bulkImportVariant":"",id:Et,dataForm:"importar",text:"Productos con variantes",modalText:"bulkImport",amplitudeData:At,limitationPermission:i.bulkImport[St]},u={href:!0===i.bulkImport[It]?"/importar.aspx?tipo=Combos":"",id:"liHerramientasImportarCombos",dataForm:"importar",text:"Combos",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - Combos",limitationPermission:i.bulkImport[It]},p={href:!0===i.bulkImport[wt]?"importar.aspx?tipo=Servicios":"",id:"liHerramientasImportarServicios",dataForm:"importar",text:"Servicios",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - Servicios",limitationPermission:i.bulkImport[wt]},m={href:!0===i.bulkImport[Tt]?"/importar.aspx?tipo=Facturas":"",id:"liHerramientasImportarFacturas",dataForm:"importar",text:"Facturas de venta simple",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - FactVentaSimple",limitationPermission:i.bulkImport[Tt]},g={href:!0===i.bulkImport[Pt]?"/importar.aspx?tipo=FacturasDetalle":"",id:"liHerramientasImportarFacturasDetalle",dataForm:"importar",text:"Facturas de venta con items",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - FactVentaItems",limitationPermission:i.bulkImport[Pt]},b={href:!0===i.bulkImport[Rt]?"/importar.aspx?tipo=FacturasCompras":"",id:"liHerramientasImportarFacturasCompras",dataForm:"importar",text:"Facturas de compras",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - FactCompras",limitationPermission:i.bulkImport[Rt]},h={href:!0===i.bulkImport[Nt]?"/importar.aspx?tipo=ComprasDetalle":"",id:"liHerramientasImportarFacturasCompras",dataForm:"importar",text:"Facturas de compra con items",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - FactCompras",limitationPermission:i.bulkImport[Nt]},x={href:!0===i.bulkImport[Lt]?"/importar.aspx?tipo=PlanDeCuentas":"",id:"liImportarPlanDeCuentas",dataForm:"importar",text:"Plan de cuentas",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - PlanDeCuentas",limitationPermission:i.bulkImport[Lt]},f=i.bulkImport[kt],v={dataForm:"importacion-masiva",text:"Importaci\xf3n masiva",href:"",title:" Importaci\xf3n masiva",dataToggle:"dropdown",className:"cbl-dropdown-subcategory",dataRef:"importacion-masiva",roleNumber:46,subItems:[s,l,c,d,{href:"/importar.aspx?tipo=Rubros",id:"liHerramientasImportarRubros",dataForm:"importar",text:"Rubros",amplitudeData:"Herramientas - ImpMasiva - Rubros",limitationPermission:!0,modalText:null},u,p,m,g,b,h,x,{href:i.bulkImport[kt]?"/importar.aspx?tipo=AsientosContables":"",id:"liHerramientasImportarAsientosContables",dataForm:"importar",text:"Asientos Contables",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - AsientosContables",limitationPermission:f},{href:!0===i.bulkImport[Bt]?"/importar.aspx?tipo=MovimientosBancarios":"",id:"liHerramientasImportarMovBancarios",dataForm:"importar",text:"Movimientos bancarios",modalText:"bulkImport",amplitudeData:"Herramientas - ImpMasiva - MovBancarios",limitationPermission:i.bulkImport[Bt]}]};return{title:"Herramientas",dataToggle:"dropdown",dataLink:"herramientas",icon:"la la-wrench",text:"Herramientas",dataRef:"herramientas",className:"dropdown",dropdown:!0,hideOnDesktop:!0,id:"liHerramientas",items:[ei(e[5],o,43),ei(e[5],v,46),ei(e[5],n,25),r]}};const Vt={1:[1,29,32,33,34,40,47,48,49,50,51,52,53,56,57,58,59,60,62,64,67,68,71,73,74,94,101,102,109,118,119,121,158],2:[158,163,148,149,122,125,126,132,133,134,135,142,143,144,116,
1109,103,104,105,101,74,75,73,71,69,70,64,62,45,60,59,58,57,56,53,54,55,52,49,48,47,40,35,36,37,38,39,32,27,28,30,31,29,1],3:[1,29,32,2,3,4,5,6,7,40,47,48,49,56,57,58,59,60,61,62,64,71,73,74,101,89,90,91,93,109,117,158],4:[158,164,140,141,150,151,152,153,154,155,156,161,120,111,109,106,107,108,146,127,128,129,130,131,88,124,82,101,96,97,98,74,73,71,64,62,63,60,59,58,57,56,49,48,47,40,8,9,10,12,13,14,15,17,18,19,20,21,22,23,24,32,29,1],5:[1,29,32,25,26,40,43,44,47,48,49,56,57,58,59,60,46,62,64,71,73,74,101,109,158],6:[101],7:[101,95,83,86,87,78,79,80,81,166,157,147,136,138,139],8:[123,112,113,114,115]},Wt={roles:{1:[1,29,32,33,34,40,47,48,49,50,51,52,53,56,57,58,59,60,62,64,67,68,71,73,74,94,101,102,109,118,119,121,158,277],2:[280,158,163,148,149,122,125,126,132,133,134,135,142,143,144,116,109,103,104,105,101,74,75,73,71,69,70,64,62,45,60,59,58,57,56,53,54,55,52,49,48,47,40,35,36,37,38,39,32,27,28,30,31,29,1],3:[1,29,32,2,3,4,5,6,7,40,47,48,49,56,57,58,59,60,61,62,64,71,73,74,101,89,90,91,93,109,117,158],4:[158,164,140,141,150,151,152,153,154,155,156,161,279,120,111,109,106,107,108,146,127,128,129,130,131,88,124,82,101,96,97,98,74,73,71,64,62,63,60,59,58,57,56,49,48,47,40,8,9,10,12,13,14,15,17,18,19,20,21,22,23,24,32,29,1],5:[1,29,32,25,26,40,43,44,47,48,49,56,57,58,59,60,46,62,64,71,73,74,101,109,158],6:[101],7:[101,95,83,86,87,78,79,80,81,166,157,147,136,138,139],8:[123,112,113,114,115]},permissions:[1,2,3,5,6,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]};var Ht=a(13);var Ut={getUserLabelPrintingConfig:async()=>{const{data:e}=await Ht.a.get("labels/config");return e},createLabelsPdf:async e=>{const{barcodeFormat:t,labelQuantity:a,labelSize:i,printer:o,dataField:n}=e,r={};t&&(r.barcodeFormat=t),n&&(r.dataField=n),a&&(r.labelQuantity=a),i&&(r.labelSize=i),o&&(r.printer=o);const{data:s}=await Ht.a.post("labels",r,{responseType:"arraybuffer"});return s}};var _t={getHeadings:async()=>{const{data:e}=await Ht.a.get("headings");return e},getSubHeadings:async e=>{const{data:t}=await Ht.a.get(`headings/subheadings/${e}`);return t},browseConcepts:async e=>{let{status:t,variants:a,distinct:i,paginate:o,search:n,page:r,heading:s,provider:l,subHeading:c,limit:d}=e;const u={};t&&(u.status=t),o&&(u.paginate=o),n&&(u.search=n),r&&(u.page=r),s&&(u.heading=s),l&&(u.provider=l),c&&(u.subHeading=c),d&&(u.limit=d),a&&(u.variants=a),i&&(u.distinct=i);return await Ht.a.get("concepts/filter",{params:u})}},zt=a(358),qt=a(359);const Gt="budgets";var Yt={getBudget:async e=>{let{status:t,paginate:a,search:i,page:o,fromDate:n,toDate:r,userRegister:s,limit:l,dateValidity:c,condition:d,period:u,sellerId:p}=e;const m={};t&&(m.status=t),a&&(m.paginate=a),i&&(m.search=i),o&&(m.page=o),d&&(m.condition=d),n&&(m.fromDate=n),r&&(m.toDate=r),s&&(m.userRegister=s),p&&(m.sellerId=p),l&&(m.limit=l),c&&(m.dateValidity=c),void 0!==u&&null!==u&&!isNaN(u)&&u>=0&&(m.period=u);const{data:g}=await Ht.a.get(Gt,{params:m});return g},getBudgetById:async e=>{let{id:t}=e;const{data:a}=await Ht.a.get(`${Gt}/${t}`);return a},sendBudgetApi:async e=>{const{data:t}=await Ht.a.post(Gt,e);return t},deleteBudgetApi:async e=>{const{data:t}=await Ht.a.delete(`${Gt}/${e}`);return t},exportBudgets:async e=>{let{status:t,paginate:a,search:i,page:o,fromDate:n,toDate:r,userRegister:s,limit:l,dateValidity:c,condition:d,period:u,sellerId:p,type:m}=e;const g={};t&&(g.status=t),a&&(g.paginate=a),i&&(g.search=i),o&&(g.page=o),d&&(g.condition=d),n&&(g.fromDate=n),r&&(g.toDate=r),s&&(g.userRegister=s),p&&(g.sellerId=p),l&&(g.limit=l),c&&(g.dateValidity=c),m&&(g.type=m),void 0!==u&&null!==u&&!isNaN(u)&&u>=0&&(g.period=u);const b=`${Gt}/export`,{data:h}=await Ht.a.post(b,g,{params:{...g},responseType:"arraybuffer"});return h},updateBudgetApi:async e=>{let{id:t,payload:a}=e;const{data:i}=await Ht.a.put(`${Gt}/${t}`,a);return i},exportBudgetPdf:async e=>{let{id:t,pdfPreviewData:a,type:i}=e,o="",n={};Boolean(t)?o=`exportpdf/${t}`:(n={...a},o="exportpdf"),i&&(o=`exportpdf/${t}?type=${i}`);const{data:r}=await Ht.a.post(o,n,{responseType:"arraybuffer"});return r},postBudgetsNumber:async()=>{const{data:e}=await Ht.a.post("budgets/lastNumber");return e},generateRemittanceFromBudget:async e=>{let{idPresupuesto:t}=e;return await fetch(`/api/remitos/GenerarRemitoDesdePresupuesto?idPresupuesto=${t}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}})}};const Kt="users/additionals";var Xt={getUsersAdditional:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new URLSearchParams(e).toString();const{data:t}=await Ht.a.get(Kt);return t}};var Zt={getSalesConditions:async()=>{const{data:e}=await Ht.a.get("sale-condition");return e}};var Qt={getUsersConfig:async()=>{const{data:e}=await Ht.a.get("users/config");return e},getUserObservations:async()=>{const{data:e}=await Ht.a.get("/users/observations");return e},getUserPermissions:async()=>{const{data:e}=await Ht.a.get("permissions");return e}};var Jt={getChangeType:async()=>{const{data:e}=await Ht.a.get("dashboard/get_change_type");return e}};var $t={zendeskLogin:async()=>{const{data:e}=await Ht.a.get("zendesk/key");return e}},ea=a(32),ta=a.n(ea),aa=a(17);const ia=(new L.a).get("Secure-1CBL"),oa="receipt",na=Object(aa.a)()+"receipt";var ra={getInvoiceApi:async e=>{let{paginate:t,page:a,limit:i,condition:o,period:n,fromDate:r,toDate:s,providerId:l,clientId:c,mode:d,sellerId:u,salePointId:p,type:m}=e;const g={};t&&(g.paginate=t),a&&(g.page=a),o&&(g.condition=o),r&&(g.fromDate=r),s&&(g.toDate=s),u&&(g.sellerId=u),l&&(g.providerId=l),c&&(g.clientId=c),d&&(g.mode=d),p&&(g.salePointId=p),m&&(g.type=m),i&&(g.limit=i),void 0!==n&&null!==n&&!isNaN(n)&&n>=0&&(g.period=n);const{data:b}=await Ht.a.get(oa,{params:g});return b},getInvoiceById:async e=>{let{id:t}=e;const{data:a}=await Ht.a.get(`${oa}/${t}`);return a},deleteInvoiceApi:async e=>{const t=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/comprobantes.aspx/delete",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ia}`}});try{const{data:a}=await t.post("",{id:e});return a}catch(a){throw a.response?console.error("error",a):console.error("Error sin respuesta del servidor:",a),a}},saveNCInvoiceApi:async(e,t)=>{const a=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/comprobantes.aspx/guardarNC",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ia}`}});try{const{data:i}=await a.post("",{idComprobante:e,observaciones:t});return i}catch(i){throw i.response?console.error("error",i):console.error("Error sin respuesta del servidor:",i),i}},exportInvoice:async e=>{let{paginate:t,page:a,limit:i,condition:o,period:n,fromDate:r,toDate:s,providerId:l,clientId:c,mode:d,sellerId:u,salePointId:p,type:m,exportType:g}=e;const b={};t&&(b.paginate=t),a&&(b.page=a),o&&(b.condition=o),r&&(b.fromDate=r),s&&(b.toDate=s),u&&(b.sellerId=u),l&&(b.providerId=l),c&&(b.clientId=c),d&&(b.mode=d),p&&(b.salePointId=p),m&&(b.type=m),g&&(b.exportType=g),i&&(b.limit=i),void 0!==n&&null!==n&&!isNaN(n)&&n>=0&&(b.period=n);const h=`${oa}/export`,{data:x}=await Ht.a.post(h,b,{params:{...b},responseType:"arraybuffer"});return x},getInvoiceForNc:async e=>{const t=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/comprobantes.aspx/ObtenerComprobanteParaNC",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ia}`}});try{const a=await t.post("",{id:e});return{data:a.data,status:a.status}}catch(i){var a;null===(a=i.response)||void 0===a||a.status;throw i}},saveProcessEntryApi:async(e,t)=>{const a=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/modulos/contabilidad/asientosPendientes.aspx/reprocesarPorID",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ia}`}});try{const{data:i}=await a.post("",{tipo:e,id:t});return i}catch(i){throw i.response?console.error("error",i):console.error("Error sin respuesta del servidor:",i),i}},getProcessEntryApi:async(e,t)=>{const a=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/modulos/reportes/LibroMayor.aspx/ObtenerAsiento",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ia}`}});try{const{data:i}=await a.post("",{tipo:e,id:t});return i}catch(i){throw i.response?console.error("error",i):console.error("Error sin respuesta del servidor:",i),i}},getBookResultsApi:async e=>{const t=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/modulos/reportes/LibroMayor.aspx/getResultsLibroMayorAsientoDetalle",headers:{"Content-Type":"application/json; charset=utf-8",Authorization:`Bearer ${ia}`}});try{const a=JSON.stringify({idAsiento:e}),{data:i}=await t.post("",a);return i}catch(a){throw a.response?console.error("error",a):console.error("Error sin respuesta del servidor:",a),a}},generateCaeNCApi:async(e,t,a)=>{const i=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/comprobantes.aspx/generarCAENC",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ia}`}});try{const{data:o}=await i.post("",{idComprobante:e,idNotaCredito:t,motivoNC:a});return o}catch(o){throw o.response?console.error("error",o):console.error("Error sin respuesta del servidor:",o),o}},getPdfByReceiptId:async e=>{const t=`${na}/${e}/export-pdf`;try{const{data:e}=await Ht.a.post(t,{},{responseType:"arraybuffer"});return e}catch(a){throw console.error("Error al obtener el PDF:",a),a}},massPrintingApi:async e=>{const t=ta.a.create({baseURL:"https://emisioncomprobante.contabilium.com/comprobantes.aspx/imprimirMasivamente",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ia}`}});try{var a;const i=await t.post("",e),o=null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.d;if(!o)throw new Error("No se pudo obtener la ruta del archivo.");const n=o.split("/").pop();return{fileBlob:(await ta.a.get(o,{responseType:"blob"})).data,fileName:n}}catch(i){throw i.response?console.error("Error en la solicitud:",i.response.data):console.error("Error sin respuesta del servidor:",i.message),i}},getNextReceiptNumber:async e=>{let{salePointId:t,type:a}=e;const i={};t&&(i.salePointId=t),a&&(i.type=a);const{data:o}=await Ht.a.get("receipt/next-number",{params:i});return o}};var sa={getInventories:async()=>{const{data:e}=await Ht.a.get("inventaries");return e},getStockInventory:async e=>{let{inventoryId:t,conceptId:a}=e;const{data:i}=await Ht.a.get(`/stock/${t}/${a}`);return i}};var la={getPermissions:async()=>{const{data:e}=await Ht.a.get("permissions");return e}};var ca={getSalePoint:async()=>{const{data:e}=await Ht.a.get("sale-point");return e}};const da="limitations",ua="users";var pa={getUserLimitations:async e=>{let{limits:t}=e;const a={};null!==t&&(a.limits=t);const{data:i}=await Ht.a.get(`${ua}/${da}`,{params:a});return i},addUserLimitation:async e=>{let{type:t}=e;const a={};null!==t&&(a.type=t);const{data:i}=await Ht.a.get(`${ua}/${da}/addUsage`,{params:a});return i},discountUserLimitation:async e=>{let{type:t}=e;const a={};null!==t&&(a.type=t);const{data:i}=await Ht.a.get(`${ua}/${da}/subUsage`,{params:a});return i}};var ma={postSendMail:async e=>{let{mailData:t}=e;const a={};t.name&&(a.name=t.name),t.to&&(a.to=t.to),t.subject&&(a.subject=t.subject),t.message&&(a.message=t.message),t.id&&(a.id=t.id);const{data:i}
1=await Ht.a.post("/budgets/sendmail",a);return i}};const ga="sale-orders";var ba={getSaleOrders:async function(){let{paginate:e,page:t,limit:a,search:i,status:o,shippingType:n,shippingStatus:r,period:s,orderBy:l,order:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const d={};void 0!==e&&(d.paginate=e),t&&(d.page=t),a&&(d.limit=a),i&&(d.search=i),o&&(d.status=o),n&&(d.shippingType=n),r&&(d.shippingStatus=r),s&&(d.period=s),l&&(d.orderBy=l),c&&(d.order=c);const{data:u}=await Ht.a.get(ga,{params:d});return u},getSaleOrdersByCustomer:async e=>{if(!e)throw new Error("customerId es requerido para obtener las \xf3rdenes de venta.");const t=`sale-orders/customers/${e}`,{data:a}=await Ht.a.get(t);return a}};var ha={getPlanSale:async()=>{const{data:e}=await Ht.a.get("plans/sale");return e}};var xa={createPerson:async e=>{const{data:t}=await Ht.a.post("people",e);return t}};var fa={getCostCenter:async()=>{const{data:e}=await Ht.a.get("category");return e}};var va={getCountries:async e=>{let{id:t,name:a}=e;const i={};t&&(i.id=t),a&&(i.name=a);const{data:o}=await Ht.a.get("countries",{params:i});return o},getProvincesById:async e=>{const{data:t}=await Ht.a.get(`provinces/${e}`);return t},getCitiesById:async e=>{const{data:t}=await Ht.a.get(`cities/${e}`);return t}};var ja={createNewClient:async e=>{let{razonSocial:t,condicionIva:a,personeria:i,nombreFantasia:o,tipoDocumento:n,nroDocumento:r,telefono:s,idPais:l,idProvincia:c,idCiudad:d,domicilio:u,pisoDepto:p,codigoPostal:m,tipo:g,codigo:b,email:h,idUsuarioAdicional:x}=e;const f=(new L.a).get("Secure-1CBL");if(!f)throw new Error("Token no disponible para autenticaci\xf3n.");const v=ta.a.create({baseURL:"https://app.contabilium.com/common.aspx/CrearPersona",headers:{"Content-Type":"application/json",Authorization:`Bearer ${f}`}});try{const{data:e}=await v.post("",{razonSocial:t,condicionIva:a,personeria:i,nombreFantasia:o,tipoDocumento:n,nroDocumento:r,telefono:s,idPais:l,idProvincia:c,idCiudad:d,domicilio:u,pisoDepto:p,codigoPostal:m,tipo:g,codigo:b,email:h,idUsuarioAdicional:x});if(!e)throw new Error("Respuesta vac\xeda del servidor.");return e}catch(A){if(A.response){var j;const e=(null===(j=A.response.data)||void 0===j?void 0:j.Message)||"Error del servidor";throw console.error("Error del servidor:",e),new Error(e)}throw A.request?console.error("Error en la solicitud:",A.request):console.error("Error general:",A.message),A}},getAfipData:async e=>{let{nroDocumento:t}=e;const a=(new L.a).get("Secure-1CBL");if(!a)throw new Error("Token no disponible para autenticaci\xf3n.");try{const e=await ta.a.post("https://app.contabilium.com/common.aspx/ObtenerDatosAfipPersona",{nroDocumento:t},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}});if(null===e||void 0===e||!e.data)throw new Error("Respuesta vac\xeda del servidor.");return e.data}catch(i){throw console.error("Error en petici\xf3n AFIP:",i),i}},getRegioData:async e=>{let{nroDocumento:t,country:a}=e;const i=(new L.a).get("Secure-1CBL");if(!i)throw new Error("Token no disponible para autenticaci\xf3n.");let o;switch((a||"").toLowerCase()){case"cl":o="https://app.contabilium.cl/common.aspx/ObtenerDatosDeEmisorReceptorNoArgentinos";break;case"uy":o="https://app.contabilium.com.uy/common.aspx/ObtenerDatosDeEmisorReceptorNoArgentinos";break;case"py":o="https://app.contabilium.com.py/common.aspx/ObtenerDatosDeEmisorReceptorNoArgentinos";break;default:throw new Error(`Country error : ${a}`)}try{const e=await ta.a.post(o,{nroDocumento:t},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`}});if(null===e||void 0===e||!e.data)throw new Error("Error");return e.data}catch(n){throw console.error("Error:",n),n}}};const Aa="/rates";var Ca={getIvaRates:async()=>{const{data:e}=await Ht.a.get(Aa);return e},getIvaRatesId:async e=>{const t=`${Aa}/${e}`,{data:a}=await Ht.a.get(t);return a}};const ya=new Map,Oa=e=>ya.get(e),Sa=(e,t)=>{ya.set(e,{promise:t})},Ea=e=>{ya.delete(e)},Ia=(e,t)=>`${e}:${t}`,wa=Object(aa.a)()+"currencies";var Ta={getUserCurrency:async()=>{const e=Ia("get",wa);let t=Oa(e);if(t)try{return await t.promise}catch(i){throw i}const a=(async()=>{try{const{data:t}=await Ht.a.get("currencies");return t}catch(i){throw i}finally{setTimeout((()=>{Ea(e)}),100)}})();if(t=Oa(e),t)try{return await t.promise}catch(i){throw i}Sa(e,a);try{return await a}catch(i){throw i}},postMultiCurrencyActivation:async()=>{const{data:e}=await Ht.a.post("/currency/bicurrencyActivation");return e},getMultiCurrencyStatus:async()=>{const{data:e}=await Ht.a.get("/currency/bicurrencyActivationStatus");return e}};const Pa="company/list";var Ra={changeCompany:async(e,t,a)=>{const i={};e&&(i.userId=e.userId),t&&(i.limit=t),a&&(i.page=a);const{data:o}=await Ht.a.post("company/changecompany",i);return o},postCreateAdditionalCompany:async e=>{let{bussinesName:t,cuit:a,taxCategory:i,personality:o,email:n,password:r,stateId:s,cityId:l,address:c,floor:d}=e;const u={};t&&(u.bussinesName=t),a&&(u.cuit=a),i&&(u.taxCategory=i),o&&(u.personality=o),n&&(u.email=n),r&&(u.password=r),s&&(u.stateId=s),l&&(u.cityId=l),c&&(u.address=c),d&&(u.floor=d);const{data:p}=await Ht.a.post("users/addChildUsers",u);return p},getUsersCompanies:async()=>{const{data:e}=await Ht.a.get(Pa);return e},getAdditionalCompanies:async e=>{let{limit:t,status:a,loggedCompanyView:i,page:o}=e;const n={};null!==a&&(n.status=a),t&&(n.limit=t),null!==i&&(n.loggedCompanyView=i),o&&(n.page=o);const{data:r}=await Ht.a.get(Pa,{params:n});return r},inactivateCompany:async e=>{let{userId:t,category:a,reason:i,password:o}=e;const n={};a&&(n.category=a),i&&(n.reason=i),o&&(n.password=o);const{data:r}=await Ht.a.put("users/inactivateChildUser/"+t,n);return r},getAdditionalCompanyAddin:async()=>{const{data:e}=await Ht.a.get("users/hasAddins");return e}};var Na={getAddinsById:async e=>{let{id:t}=e;const{data:a}=await Ht.a.get(`users/showAddin/${t}`);return a}};var La={validateJwt:async(e,t)=>{const{status:a}=await Ht.a.post("login/validate_jwt",{country:t},{headers:{Authorization:`Bearer ${e}`}});return{status:a}}};var ka={getBoxes:async()=>{const{data:e}=await Ht.a.get("dashboard/get_saving_banks");return e}};const Ba={getBoxes:async()=>{const{data:e}=await Ht.a.get("dashboard/get_saving_banks");return e},getSalesVsBuys:async function(){let{period:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
1const t=e?{period:e}:{},{data:a}=await Ht.a.get("dashboard/salesVsBuys",{params:t});return a},getSales:async()=>{const{data:e}=await Ht.a.get("dashboard/sales");return e},getPendingBills:async()=>{const{data:e}=await Ht.a.get("dashboard/pendingBills");return e},getCustomersRanking:async function(){let{period:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e?{period:e}:{},{data:a}=await Ht.a.get("dashboard/customersRanking",{params:t});return a},getPendingPayments:async()=>{const{data:e}=await Ht.a.get("dashboard/pendingPayments");return e},getVatPosition:async function(){let{currentMonth:e=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{data:t}=await Ht.a.get("dashboard/vatPosition",{params:{currentMonth:e}});return t},getUnitsSold:async()=>{const{data:e}=await Ht.a.get("dashboard/unitsSold");return e},getMinimumStock:async()=>{const{data:e}=await Ht.a.get("dashboard/minimumStock");return e},getSalesByChannel:async function(){let{period:e,channelsId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a={};e&&(a.period=e),t&&(a.channelsId=t);const{data:i}=await Ht.a.get("dashboard/salesByChannel",{params:a});return i},getAccountSetupProgress:async()=>{const{data:e}=await Ht.a.get("dashboard/accountSetupProgress",{headers:{Accept:"application/json"}});return e},getPendingPaymentModal:async()=>{const{data:e}=await Ht.a.get("dashboard/getPendingPaymentModal");return e},getLastUpdate:async()=>{const{data:e}=await Ht.a.get("dashboard/lastUpdate");return e},getSalesChannelFilter:async()=>{const{data:e}=await Ht.a.get("dashboard/salesChannelFilter");return e},getConfiguration:async()=>{const{data:e}=await Ht.a.get("dashboard/configuration");return e},saveConfiguration:async e=>{const{data:t}=await Ht.a.post("dashboard/configuration",e);return t},resetConfiguration:async()=>{const{data:e}=await Ht.a.post("dashboard/configuration?resetDashboard=1",{});return e}};var Da=Ba;const Fa="myAccount/reports";var Ma={getReports:async()=>{const{data:e}=await Ht.a.get(Fa);return e},postReports:async(e,t)=>{const a={};a.products=null!==e&&void 0!==e&&e,a.services=null!==t&&void 0!==t&&t;const{data:i}=await Ht.a.post(Fa,a);return i}};var Va={getAutomaticInvoiceConfig:async()=>{const{data:e}=await Ht.a.get("automaticInvoiceConfig");return e},postAutomaticInvoiceConfig:async e=>{const{data:t}=await Ht.a.post("automaticInvoiceConfig",e);return t},putAutomaticInvoiceConfig:async e=>{const{data:t}=await Ht.a.put("automaticInvoiceConfig",e);return t}};var Wa={getTrainings:async()=>{const{data:e}=await Ht.a.get("/trainings");return e},getNextTrainings:async()=>{const{data:e}=await Ht.a.get("/trainings/next");return e}};const Ha="fields";var Ua={getProductFields:async()=>{const{data:e}=await Ht.a.get(Ha);return e},getActiveProductFields:async()=>{const{data:e}=await Ht.a.get(`${Ha}/active`);return e},getProductFieldValues:async e=>{let{fieldId:t}=e;const{data:a}=await Ht.a.get(`${Ha}/${t}/values`);return a},updateProductFieldStatus:async e=>{let{fieldId:t,active:a}=e;const{data:i}=await Ht.a.put(`${Ha}/${t}/status`,{active:a});return i},createProductFieldValue:async e=>{let{fieldId:t,name:a}=e;const{data:i}=await Ht.a.post(`${Ha}/${t}/values`,{name:a});return i},updateProductFieldValue:async e=>{let{fieldId:t,valueId:a,name:i}=e;const{data:o}=await Ht.a.put(`${Ha}/${t}/values/${a}`,{name:i});return o},updateProductFieldValueStatus:async e=>{let{fieldId:t,valueId:a,active:i,confirmFieldDisable:o}=e;const n={active:i};o&&(n.confirmFieldDisable=!0);const{data:r}=await Ht.a.put(`${Ha}/${t}/values/${a}/status`,n);return r},deleteProductFieldValue:async e=>{let{fieldId:t,valueId:a,confirmFieldDisable:i}=e;const o={};i&&(o.confirmFieldDisable=1);const{data:n}=await Ht.a.delete(`${Ha}/${t}/values/${a}`,{params:o});return n}};const _a=()=>"presentations?active=true",za=()=>`${Object(aa.a)()}presentations?active=true`,qa=async e=>{const{data:t}=await Ht.a.delete(`concept-presentations/${e}`);return t};var Ga={getActivePresentationsPath:_a,getActivePresentationsUrl:za,getActivePresentations:async()=>{const{data:e}=await Ht.a.get("presentations?active=true");return e},deleteConceptPresentation:qa},Ya={labelPrinting:Ut,concepts:_t,bulkImport:zt.a,bulkImportVariant:qt.a,budgets:Yt,usersAdditional:Xt,salesConditions:Zt,usersConfig:Qt,changeType:Jt,zendesk:$t,mail:ma,rates:Ca,invoice:ra,inventories:sa,permissions:la,salePoint:ca,limitations:pa,saleOrders:ba,planSale:ha,people:xa,costCenter:fa,locations:va,clients:ja,multiCurrency:Ta,companies:Ra,addins:Na,validateJwt:La,boxes:ka,dashboard:Da,reports:Ma,automaticInvoice:Va,trainingEvents:Wa,productFields:Ua,presentations:Ga};const Ka=o.a.createContext();function Xa(e){let{children:t}=e;const[a,o]=Object(i.useState)(!1),[n,r]=Object(i.useState)(!1),[s,l]=Object(i.useState)(!1),[c,d]=Object(i.useState)(!1),[u,m]=Object(i.useState)(!1),[g,b]=Object(i.useState)(!1),[h,x]=Object(i.useState)(!1),[f,v]=Object(i.useState)(!1),[j,A]=Object(i.useState)(Vt),[C,y]=Object(i.useState)([]);Object(i.useEffect)((()=>{O()}),[]);const O=async()=>{try{const{roles:e,permissions:t}=await Ya.usersConfig.getUserPermissions();A(e),v(t),y(e);const a={1:()=>r(!0),2:()=>o(!0),3:()=>l(!0),4:()=>b(!0),7:()=>m(!0),8:()=>d(!0),5:()=>x(!0)};Object.keys(e).forEach((e=>{a[e]&&a[e]()}))}catch(e){console.error("Error handling permissions:",e)}};return Object(p.jsx)(Ka.Provider,{value:{rolSales:a,rolShopping:n,rolTreasury:s,rolInventories:c,rolAccounting:u,rolReports:g,rolTool:h,permissions:f,permissionsRoles:j,menuRoles:C},children:t})}var Za=a(18);const Qa=o.a.createContext(),Ja=e=>{let{children:t}=e;const[a,o]=Object(i.useState)("jwt"),[n,r]=Object(i.useState)(""),[s,l]=Object(i.useState)(null),[c,d]=Object(i.useState)("");Za.a.enterprise.id,Za.a.basicNew.id,Za.a.basic.id;return Object(i.useEffect)((()=>{const e=(new L.a).get("Secure-1CBL");o(e);try{const t=JSON.parse(Object(H.a)(e));l(t.data)}catch(t){console.error("Error decoding JWT:",t),l(null)}}),[]),Object(i.useEffect)((()=>{const e={ar:{baseUrl:"https://app.contabilium.com/",dashboardUrl:"https://app.contabilium.com/v3/dashboardv3/dashboard"},cl:{baseUrl:"https://app.contabilium.cl/",dashboardUrl:"https://app.contabilium.cl/v3/dashboard"},uy:{baseUrl:"https://app.contabilium.com.uy/",dashboardUrl:"https://app.contabilium.com.uy/v3/dashboard"},py:{baseUrl:"https://app.contabilium.com.py/",dashboardUrl:"https://app.contabilium.com.py/v3/dashboard"}}[null===s||void 0===s?void 0:s.country];e&&(d(e.baseUrl),r(e.dashboardUrl))}),[s]),Object(p.jsx)(Qa.Provider,{value:{jwt:a,userData:s,homeUrl:n,baseUrl:c},children:t})};function $a(){return o.a.useContext(Qa)}const ei=(e,t,a)=>(null===e||void 0===e?void 0:e.some((e=>e===a)))?t:null,ti=(e,t,a)=>e.some((e=>a.includes(e)))?t:null,ai=[];var ii=e=>{let{limitations:t}=e;const{userData:a}=Object(i.useContext)(Qa),o=a,[n,r]=Object(i.useState)(!1),[s,l]=Object(i.useState)(!1),[c,d]=Object(i.useState)(!1),[u,p]=Object(i.useState)(!1),[m,g]=Object(i.useState)(!1),[b,h]=Object(i.useState)(!1),[x,f]=Object(i.useState)(!1),[v,j]=Object(i.useState)(!1),A=null===o||void 0===o?void 0:o.country,C=null===o||void 0===o?void 0:o.plan_name,y=null===o||void 0===o?void 0:o.user_t
1ype,O="61278".split(",").map((e=>String(e).trim())).filter(Boolean),S=null!=(null===o||void 0===o?void 0:o.userId)&&O.includes(String(o.userId)),{menuRoles:E}=Object(i.useContext)(Ka),I="A"===y?Wt.roles:E;return Object(i.useEffect)((()=>{if(t&&ai.length<=0&&I){var e;if(I.hasOwnProperty("2")){const e=J(I,A,t);e.items=e.items.filter((e=>"liVentasPOS"!==(null===e||void 0===e?void 0:e.id))),null==(null===o||void 0===o?void 0:o.userId)||S||(e.items=e.items.filter((e=>"liPromociones"!==(null===e||void 0===e?void 0:e.id)))),ai.push(e),l(!0)}if(I.hasOwnProperty("1")){const e=oe(I,A,t);ai.push(e),d(!0)}if(I.hasOwnProperty("3")){const e=ue(I,A,t);ai.push(e),p(!0)}if(I.hasOwnProperty("8")||null!==(e=I[5])&&void 0!==e&&e.includes(46)){const e=we(I,A,C,t);ai.push(e),g(!0)}if(I.hasOwnProperty("7")){const e=Ce(I,A,t);ai.push(e),h(!0)}if(I.hasOwnProperty("4")){const e=jt(I,A,t);ai.push(e),f(!0)}if(I.hasOwnProperty("5")){const e=Mt(I,A,C,t);ai.push(e),j(!0)}}}),[t,I,null===o||void 0===o?void 0:o.userId]),Object(i.useEffect)((()=>{r(!0)}),[o,C]),Object(i.useEffect)((()=>{if(!S){const e=ai.find((e=>"liVentas"===(null===e||void 0===e?void 0:e.id)));e&&(e.items=e.items.filter((e=>"liPromociones"!==(null===e||void 0===e?void 0:e.id))))}}),[S,ai,o,t]),{menuItems:ai,rolDash:n,rolSales:s,rolShopping:c,rolTreasury:u,rolInventories:m,rolAccounting:b,rolReports:x,rolTool:v}},oi=(a(469),a(756)),ni=a(12);const ri=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["button",...t].filter(Boolean).join(" ")};var si=e=>{let{children:t,type:a,onClick:i,disabled:o,loading:n,loadingBlack:r,showIcon:s,iconType:l,medium:c,large:d,centered:u=!1,iconViewBox:m,containerClass:g="",iconStyle:b,containerStyle:h={},id:x,testId:f}=e;return Object(p.jsxs)("button",{id:x,"data-testid":f,style:h,onClick:i,className:`${ri(a)} ${c?"buttonmedium":""} ${d?"buttonLarge":""} ${u?"buttonCentered":""} ${g}`,disabled:!0===o||!0===n||!0===r&&"disabled",children:[!0===n&&Object(p.jsx)(oi.a,{className:"buttonIconLoading"}),!0===s&&Object(p.jsx)(ni.a,{style:b,className:!b&&"buttonIcon",name:l,viewBox:m}),!0===r&&Object(p.jsx)(oi.a,{className:"buttonIconBlackLoading"}),t]})},li=a.p+"static/media/limitation-icon.e6ec0fb9.svg",ci=a(575),di=a(729),ui=a(4);const pi={dollarHeader:"M 2 3 L 2 21 L 6 21 L 6 26.09375 L 7.625 24.78125 
1L 12.34375 21 L 22 21 L 22 3 L 2 3 z M 4 5 L 20 5 L 20 19 L 11.65625 19 L 11.375 19.21875 L 8 21.90625 L 8 19 L 4 19 L 4 5 z M 11 7 L 11 8.0390625 C 9.879 8.2270625 9 9.203 9 10.375 C 9 11.129 9.422375 11.827875 10.109375 12.171875 L 13 13.617188 C 12.996 13.840187 12.840187 14 12.617188 14 L 11.382812 14 C 11.159812 14 11 13.840188 11 13.617188 L 11 13 L 9 13 L 9 13.617188 C 9 14.789188 9.875 15.772937 11 15.960938 L 11 17 L 13 17 L 13 15.960938 C 14.125 15.772937 15 14.789188 15 13.617188 C 15 12.863188 14.569531 12.168125 13.894531 11.828125 L 11 10.378906 C 11.008 10.386906 11 10.379 11 10.375 C 11 10.152 11.155812 10 11.382812 10 L 12.617188 10 C 12.840188 10 13 10.159813 13 10.382812 L 13 11 L 15 11 L 15 10.382812 C 15 9.2108125 14.125 8.2270625 13 8.0390625 L 13 7 L 11 7 z M 24 9 L 24 11 L 28 11 L 28 23 L 24 23 L 24 25.90625 L 20.34375 23 L 12.84375 23 L 10.34375 25 L 19.65625 25 L 26 30.09375 L 26 25 L 30 25 L 30 9 L 24 9 z",toolHeader:"M 21 4 C 17.144531 4 14 7.144531 14 11 C 14 11.714844 14.214844 12.363281 14.414063 13.015625 L 4.945313 22.484375 C 3.6875 23.738281 3.6875 25.800781 4.945313 27.058594 C 6.199219 28.3125 8.261719 28.3125 9.515625 27.058594 L 18.984375 17.589844 C 19.632813 17.789063 20.285156 18 21 18 C 30.855469 18 28 14.855469 28 11 C 28 9.972656 27.773438 9 27.375 8.125 L 26.78125 6.804688 L 25.761719 7.828125 L 22.585938 11 L 21 11 L 21 9.414063 L 25.195313 5.21875 L 23.875 4.625 C 23 4.226563 22.027344 4 21 4 Z M 21 6 C 21.171875 6 21.316406 6.085938 21.484375 6.101563 L 19 8.585938 L 19 13 L 23.414063 13 L 25.894531 10.515625 C 25.914063 10.683594 26 10.828125 26 11 C 26 13.773438 23.773438 16 21 16 C 20.300781 16 19.636719 15.855469 19.03125 15.597656 L 18.410156 15.332031 L 8.101563 25.640625 C 7.621094 26.125 6.839844 26.125 6.359375 25.640625 C 5.875 25.160156 5.875 30.378906 6.359375 23.894531 L 16.667969 13.589844 L 16.402344 12.964844 C 16.144531 12.359375 16 11.699219 16 11 C 16 8.226563 18.226563 6 21 6 Z",add:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",addCircle:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",favorite:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",favoriteBorder:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l
1-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",notifications:"M 16 3 C 14.894531 3 14 3.894531 14 5 C 14 5.085938 14.019531 5.167969 14.03125 5.25 C 10.574219 6.132813 8 9.273438 8 13 L 8 22 C 8 22.566406 7.566406 23 7 23 L 6 23 L 6 25 L 13.1875 25 C 13.074219 25.316406 13 25.648438 13 26 C 13 27.644531 14.355469 29 16 29 C 17.644531 29 19 27.644531 19 26 C 19 25.648438 18.925781 25.316406 18.8125 25 L 26 25 L 26 23 L 25 23 C 24.433594 23 24 22.566406 24 22 L 24 13.28125 C 24 9.523438 21.488281 6.171875 17.96875 5.25 C 17.980469 5.167969 18 5.085938 18 5 C 18 3.894531 17.105469 3 16 3 Z M 15.5625 7 C 15.707031 6.988281 15.851563 7 16 7 C 16.0625 7 16.125 7 16.1875 7 C 19.453125 7.097656 22 9.960938 22 13.28125 L 22 22 C 22 22.351563 22.074219 22.683594 22.1875 23 L 9.8125 23 C 9.925781 22.683594 10 22.351563 10 22 L 10 13 C 10 9.824219 12.445313 7.226563 15.5625 7 Z M 16 25 C 16.5625 25 17 25.4375 17 26 C 17 26.5625 16.5625 27 16 27 C 15.4375 27 15 26.5625 15 26 C 15 25.4375 15.4375 25 16 25 Z",search:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",menu:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",user:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z",caretUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",caretDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",caretLeft:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",caretRight:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",settings:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z",check:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",close:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z",dashboard:"M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4zM3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707zM2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10zm9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5zm.754-4.246a.389.389 0 0 0-.527-.02L7.547 9.31a.91.91 0 1 0 1.302 1.258l3.434-4.297a.389.389 0 0 0-.029-.518z",shoppingCart:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z",shoppingBag:"M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm7 17H5V8h14v12zm-7-8c-1.66 0-3-1.34-3-3H7c0 2.76 2.24 5 5 5s5-2.24 5-5h-2c0 1.66-1.34 3-3 3z",shoppingBasket:"M22 9h-4.79l-4.38-6.56c-.19-.28-.51-.42-.83-.42s-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.
118.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1zM12 4.8L14.8 9H9.2L12 4.8zM18.5 19l-12.99.01L3.31 11H20.7l-2.2 8zM12 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",bank:"M6.5 10h-2v7h2v-7zm6 0h-2v7h2v-7zm8.5 9H2v2h19v-2zm-2.5-9h-2v7h2v-7zm-7-6.74L16.71 6H6.29l5.21-2.74m0-2.26L2 6v2h19V6l-9.5-5z",report:"M7.5 21H2V9h5.5v12zm7.25-18h-5.5v18h5.5V3zM22 11h-5.5v10H22V11z",feature:"M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-2-2zm-8.03 7L11 6l-.97 3H7l2.47 1.76-.94 2.91 2.47-1.8 2.47 1.8-.94-2.91L15 9h-3.03z",helpCircle:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",file:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z",arrowLeft:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",arrowDown:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",arrowRight:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z",arrowUp:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",lightbulb:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7zm2 14h-4v-1h4v1zm-4 2v-1h4v1h-4zm5.31-5.26c-.09.08-.16.18-.24.26H8.92c-.08-.09-.15-.19-.24-.27-1.32-1.18-1.91-2.94-1.59-4.7.36-1.94 1.96-3.55 3.89-3.93.34-.07.68-.1 1.02-.1 2.76 0 5 2.24 5 5 0 1.43-.61 2.79-1.69 3.74z",help:"M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 16h-4.83l-.59.59L12 20.17l-1.59-1.59-.58-.58H5V4h14v14zm-8-3h2v2h-2zm1-8c1.1 0 2 .9 2 2 0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4S8 6.79 8 9h2c0-1.1.9-2 2-2z",download:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zm-5.55-8h-2.9v3H8l4 4 4-4h-2.55z",print:"M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4h-2z",send:"M4.01 6.03l7.51 3.22-7.52-1 .01-2.22m7.5 8.72L4 17.97v-2.22l7.51-1M2.01 3L2 10l15 2-15 2 .01 7L23 12 2.01 3z",note:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z",notes:"M3,6V22H21V24H3A2,2 0 0,1 1,22V6H3M16,9H21.5L16,3.5V9M7,2H17L23,8V18A2,2 0 0,1 21,20H7C5.89,20 5,19.1 5,18V4A2,2 0 0,1 7,2M7,4V18H21V11H14V4H7Z",calendar:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zM5 7V5h14v2H5zm2 4h10v2H7zm0 4h7v2H7z",view:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z",moreHoriz:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",moreVert:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",info:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",delete:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4h-3.5z",lock:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z",currency:"M7,15H9C9,16.08 10.37,17 12,17C13.63,17 15,16.08 15,15C15,13.9 13.96,13.5 11.76,
112.97C9.64,12.44 7,11.78 7,9C7,7.21 8.47,5.69 10.5,5.18V3H13.5V5.18C15.53,5.69 17,7.21 17,9H15C15,7.92 13.63,7 12,7C10.37,7 9,7.92 9,9C9,10.1 10.04,10.5 12.24,11.03C14.36,11.56 17,12.22 17,15C17,16.79 15.53,18.31 13.5,18.82V21H10.5V18.82C8.47,18.31 7,16.79 7,15Z",noteText:"M15 3H5A2 2 0 0 0 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V9L15 3M19 19H5V5H14V10H19M17 14H7V12H17M14 17H7V15H14",bankTransfer:"M15,14V11H18V9L22,12.5L18,16V14H15M14,7.7V9H2V7.7L8,4L14,7.7M7,10H9V15H7V10M3,10H5V15H3V10M13,10V12.5L11,14.3V10H13M9.1,16L8.5,16.5L10.2,18H2V16H9.1M17,15V18H14V20L10,16.5L14,13V15H17Z",bankTransferIn:"M2,15V12H5V10L9,13.5L5,17V15H2M22,8.7V10H10V8.7L16,5L22,8.7M10,17H22V19H10V17M15,11H17V16H15V11M11,11H13V16H11V11M19,11H21V16H19V11Z",bankTransferOut:"M15,15V12H18V10L22,13.5L18,17V15H15M14,8.7V10H2V8.7L8,5L14,8.7M2,17H14V19H2V17M7,11H9V16H7V11M3,11H5V16H3V11M11,11H13V16H11V11Z",cashRefund:"M12.3 8.93L9.88 6.5H15.5V10H17V5H9.88L12.3 2.57L11.24 1.5L7 5.75L11.24 10L12.3 8.93M12 14A3 3 0 1 0 15 17A3 3 0 0 0 12 14M3 11V23H21V11M19 19A2 2 0 0 0 17 21H7A2 2 0 0 0 5 19V15A2 2 0 0 0 7 13H17A2 2 0 0 0 19 15Z",upload:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z",learn:"M12 3L1 9L5 11.
118V17.18L12 21L19 17.18V11.18L21 10.09V17H23V9L12 3M18.82 9L12 12.72L5.18 9L12 5.28L18.82 9M17 16L12 18.72L7 16V12.27L12 15L17 12.27V16Z",video:"M9 7v8l7-4zm12-4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z",warning:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z",papers:"M4 7V19H19V21H4C2 21 2 19 2 19V7H4M21.3 3H7.7C6.76 3 6 3.7 6 4.55V15.45C6 16.31 6.76 17 7.7 17H21.3C22.24 17 23 16.31 23 15.45V4.55C23 3.7 22.24 3 21.3 3M8 5H13V11H8V5M21 15H8V13H21V15M21 11H15V9H21V11M21 7H15V5H21V7Z",cashMultiple:"M5,6H23V18H5V6M14,9A3,3 0 0,1 17,12A3,3 0 0,1 14,15A3,3 0 0,1 11,12A3,3 0 0,1 14,9M9,8A2,2 0 0,1 7,10V14A2,2 0 0,1 9,16H19A2,2 0 0,1 21,14V10A2,2 0 0,1 19,8H9M1,10H3V20H19V22H1V10Z",transfer:"M3,8H5V16H3V8M7,8H9V16H7V8M11,8H13V16H11V8M15,19.25V4.75L22.25,12L15,19.25Z",pigBank:"M22 14H20C20 11.6 18.2 9.6 15.5 8.6C15 9.4 14.1 10 13 10C11.7 10 10.7 9.2 10.2 8.2C10 8.2 9.8 8.3 9.5 8.3L7 7V9.3C5.5 10.2 4.4 11.5 4.1 13H2V17H5.1C5.6 17.6 6.2 18.2 7 18.7V22H9V19.6C9.9 19.9 10.9 20 12 20S14.1 19.8 15 19.6V22H17V18.7C18.1 18 19 17.1 19.5 16H22V14M12 18C8.7 18 6 16.2 6 14C6 12.5 7.4 11.1 9.4 10.4C10.3 11.4 11.6 12 13 12C14.1 12 15.1 11.7 16 11C17.3 11.8 18 12.9 18 14C18 16.2 15.3 18 12 18M13 3C13.6 3 14 3.4 14 4S13.6 5 13 5 12 4.6 12 4 12.4 3 13 3M13 1C11.3 1 10 2.3 10 4S11.3 7 13 7 16 5.7 16 4 14.7 1 13 1M10 13C10 13.6 9.6 14 9 14S8 13.6 8 13 8.4 12 9 12 10 12.4 10 13",warehouse:"M6 19H8V21H6V19M12 3L2 8V21H4V13H20V21H22V8L12 3M8 11H4V9H8V11M14 11H10V9H14V11M20 11H16V9H20V11M6 15H8V17H6V15M10 15H12V17H10V15M10 19H12V21H10V19M14 19H16V21H14V19Z",package:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L10.11,5.22L16,8.61L17.96,7.5L12,4.15M6.04,7.5L12,10.85L13.96,9.75L8.08,6.35L6.04,7.5M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z",dolly:"M11.97,19.88C10.93,20.26 9.78,19.72 9.4,18.69C9,17.65 9.55,16.5 10.59,16.13C11.63,15.75 12.78,16.28 13.16,17.31C13.54,18.35 13,19.5 11.97,19.88M9.9,14.25C7.83,15 6.76,17.3 7.5,19.38C8.28,21.45 10.58,22.5 12.66,21.75C14.73,21 15.79,18.7 15.04,16.63C14.28,14.55 11.97,13.5 9.9,14.25M15.94,4.58L9.37,7L10.75,10.74L17.32,8.33M20.32,13.62L15.54,15.37C15.71,15.66 15.85,15.96 15.97,16.28C16.09,16.6 16.17,16.93 16.22,17.25L21,15.5M19.54,8.58L11.09,11.68L11.58,13C12.83,13.09 14,13.64 14.89,14.55L20.92,12.34M2,2V4H5.09L8.66,13.75C8.94,13.57 9.24,13.43 9.56,13.31C9.88,13.19 10.21,13.11 10.53,13.06L6.5,2",files:"M16 0H8C6.9 0 6 .9 6 2V18C6 19.1 6.9 20 8 20H20C21.1 20 22 19.1 22 18V6L16 0M20 18H8V2H15V7H20V18M4 4V22H20V24H4C2.9 24 2 23.1 2 22V4H4M10 10V12H18V10H10M10 14V16H15V14H10Z",payment:"M18,11H6A2,2 0 0,0 4,13V21A2,2 0 0,0 6,23H18A2,2 0 0,0 20,21V13A2,2 0 0,0 18,11M18,21H6V17H18V21M18,15H6V13H18V15M17,5V10H15.5V6.5H9.88L12.3,8.93L11.24,10L7,5.75L11.24,1.5L12.3,2.57L9.88,5H17Z",userCard:"M22,3H2C0.91,3.04 0.04,3.91 0,5V19C0.04,20.09 0.91,20.96 2,21H22C23.09,20.96 23.96,20.09 24,19V5C23.96,3.91 23.09,3.04 22,3M22,19H2V5H22V19M14,17V15.75C14,14.09 10.66,13.25 9,13.25C7.34,13.25 4,14.09 4,15.75V17H14M9,7A2.5,2.5 0 0,0 6.5,9.5A2.5,2.5 0 0,0 9,12A2.5,2.5 0 0,0 11.5,9.5A2.5,2.5 0 0,0 9,7M14,7V8H20V7H14M14,9V10H20V9H14M14,11V12H18V11H14",edit:"M14.06,9L15,9.94L5.92,19H5V18.08L14.06,9M17.66,3C17.41,3 17.15,3.1 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18.17,3.09 17.92,3 17.66,3M14.06,6.19L3,17.25V21H6.75L17.81,9.94L14.06,6.19Z",email:"M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z",phone:"M20,15.5C18.8,15.5 17.5,15.3 16.4,14.9C16.3,14.9 16.2,14.9 16.1,14.9C15.8,14.9 15.6,15 15.4,15.2L13.2,17.4C10.4,15.9 8,13.6 6.6,10.8L8.8,8.6C9.1,8.3 9.2,7.9 9,7.6C8.7,6.5 8.5,5.2 8.5,4C8.5,3.5 8,3 7.5,3H4C3.5,3 3,3.5 3,4C3,13.4 10.6,21 20,21C20.5,21 21,20.5 21,20V16.5C21,16 20.5,15.5 20,15.5M5,5H6.5C6.6,5.9 6.8,6.8 7,7.6L5.8,8.8C5.4,7.6 5.1,6.3 5,5M19,19C17.7,18.9 16.4,18.6 15.2,18.2L16.4,17C17.2,17.2 18.1,17.4 19,17.4V19Z",circleUser:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7.07,18.28C7.5,17.38 10.12,16.5 12,16.5C13.88,16.5 16.5,17.38 16.93,18.28C15.57,19.36 13.86,20 12,20C10.14,20 8.43,19.36 7.07,18.28M18.36,16.83C16.93,15.09 13.46,14.5 12,14.5C10.54,14.5 7.07,15.09 5.64,16.83C4.62,15.5 4,13.82 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,13.82 19.38,15.5 18.36,16.83M12,6C10.06,6 8.5,7.56 8.5,9.5C8.5,11.44 10.06,13 12,13C13.94,13 15.5,11.44 15.5,9.5C15.5,7.56 13.94,6 12,6M12,11A1.5,1.5 0 0,1 10.5,9.5A1.5,1.5 0 0,1 12,8A1.5,1.5 0 0,1 13.5,9.5A1.5,1.5 0 0,1 12,11Z",save:"M17 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V7L17 3M19 19H5V5H16.17L19 7.83V19M12 12C10.34 12 9 13.34 9 15S10.34 18 12 18 15 16.66 15 15 13.66 12 12 12M6 6H15V10H6V6Z",inbox:"M19 3H5A2 2 0 0 0 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5A2 2 
10 0 0 19 3M5 19V17H8.13A4.13 4.13 0 0 0 9.4 19M19 19H14.6A4.13 4.13 0 0 0 15.87 17H19M19 15H14V16A2 2 0 0 1 10 16V15H5V5H19Z",exchange:"M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z",circleCheck:"M6.83325 0.333374C3.23364 0.333374 0.333252 3.23376 0.333252 6.83337C0.333252 10.433 3.23364 13.3334 6.83325 13.3334C10.4329 13.3334 13.3333 10.433 13.3333 6.83337C13.3333 6.13416 13.2395 5.43689 12.9895 4.7865L12.177 5.58337C12.2766 5.98376 12.3333 6.38416 12.3333 6.83337C12.3333 9.88416 9.88403 12.3334 6.83325 12.3334C3.78247 12.3334 1.33325 9.88416 1.33325 6.83337C1.33325 3.78259 3.78247 1.33337 6.83325 1.33337C8.33325 1.33337 9.68091 1.93103 10.6301 2.88025L11.3333 2.17712C10.1829 1.02673 8.58325 0.333374 6.83325 0.333374ZM12.4739 2.474L6.83325 8.11462L4.69263 5.974L3.97388 6.69275L6.47388 9.19275L6.83325 9.5365L7.19263 9.19275L13.1926 3.19275L12.4739 2.474Z",circleError:"M7 0.5C3.41602 0.5 0.5 3.41602 0.5 7C0.5 10.584 3.41602 13.5 7 13.5C10.584 13.5 13.5 10.584 13.5 7C13.5 3.41602 10.584 0.5 7 0.5ZM7 1.5C10.043 1.5 12.5 3.95703 12.5 7C12.5 10.043 10.043 12.5 7 12.5C3.95703 12.5 1.5 10.043 1.5 7C1.5 3.95703 3.95703 1.5 7 1.5ZM5.10938 4.39062L4.39062 5.10938L6.28125 7L4.39062 8.89062L5.10938 9.60938L7 7.71875L8.89062 9.60938L9.60938 8.89062L7.71875 7L9.60938 5.10938L8.89062 4.39062L7 6.28125L5.10938 4.39062Z",circleWarning:"M6 0C2.69141 0 0 2.69141 0 6C0 9.30859 2.69141 12 6 12C9.30859 12 12 9.30859 12 6C12 2.69141 9.30859 0 6 0ZM6 1C8.76758 1 11 3.23242 11 6C11 8.76758 8.76758 11 6 11C3.23242 11 1 8.76758 1 6C1 3.23242 3.23242 1 6 1ZM5.5 3V7H6.5V3H5.5ZM5.5 8V9H6.5V8H5.5Z",circleInfo:"M6.8335 0.333374C3.24951 0.333374 0.333496 3.24939 0.333496 6.83337C0.333496 10.4174 3.24951 13.3334 6.8335 13.3334C10.4175 13.3334 13.3335 10.4174 13.3335 6.83337C13.3335 3.24939 10.4175 0.333374 6.8335 0.333374ZM6.8335 1.33337C9.87646 1.33337 12.3335 3.79041 12.3335 6.83337C12.3335 9.87634 9.87646 12.3334 6.8335 12.3334C3.79053 12.3334 1.3335 9.87634 1.3335 6.83337C1.3335 3.79041 3.79053 1.33337 6.8335 1.33337ZM6.3335 3.83337V4.83337H7.3335V3.83337H6.3335ZM6.3335 5.83337V9.83337H7.3335V5.83337H6.3335Z",infoCircle:"M 16 3 C 8.832031 3 3 8.832031 3 16 C 3 23.167969 8.832031 29 16 29 C 23.167969 29 29 23.167969 29 16 C 29 8.832031 23.167969 3 16 3 Z M 16 5 C 22.085938 5 27 9.914063 27 16 C 27 22.085938 22.085938 27 16 27 C 9.914063 27 5 22.085938 5 16 C 5 9.914063 9.914063 5 16 5 Z M 15 10 L 15 12 L 17 12 L 17 10 Z M 15 14 L 15 22 L 17 22 L 17 14 Z",image:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM11.14 8.86L8.14 12.73L6 10.14L3 14H15L11.14 8.86Z",uploadImg:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM11.14 8.86L8.14 12.73L6 10.14L3 14H15L11.14 8.86Z",cancel:"M6.3 12.75L9 10.05L11.7 12.75L12.75 11.7L10.05 9L12.75 6.3L11.7 5.25L9 7.95L6.3 5.25L5.25 6.3L7.95 9L5.25 11.7L6.3 12.75ZM9 16.5C7.9625 16.5 6.9875 16.3031 6.075 15.9094C5.1625 15.5156 4.36875 14.9813 3.69375 14.3063C3.01875 13.6313 2.48438 12.8375 2.09063 11.925C1.69688 11.0125 1.5 10.0375 1.5 9C1.5 7.9625 1.69688 6.9875 2.09063 6.075C2.48438 5.1625 3.01875 4.36875 3.69375 3.69375C4.36875 3.01875 5.1625 2.48438 6.075 2.09063C6.9875 1.69688 7.9625 1.5 9 1.5C10.0375 1.5 11.0125 1.69688 11.925 2.09063C12.8375 2.48438 13.6313 3.01875 14.3063 3.69375C14.9813 4.36875 15.5156 5.1625 15.9094 6.075C16.3031 6.9875 16.5 7.9625 16.5 9C16.5 10.0375 16.3031 11.0125 15.9094 11.925C15.5156 12.8375 14.9813 13.6313 14.3063 14.3063C13.6313 14.9813 12.8375 15.5156 11.925 15.9094C11.0125 16.3031 10.0375 16.5 9 16.5Z"};var mi=e=>{let{name:t,onClick:a,...i}=e;return Object(p.jsx)(D.a,{onClick:a,...i,children:Object(p.jsx)("path",{d:pi[t]})})};const gi={skus:{name:"productos",iconListInfo:[{title:"Facturaci\xf3n online",description:"Emitir facturas y presupuestos de manera individual o masiva.",icon:"la la-receipt",color:"#00C7AF"},{title:"Control de stock",description:"Unificar precios y stock con listas y dep\xf3sitos diferenciados.",icon:"la la-box",color:"#FF2569"},{title:"Compras",description:"Registrar y controlar comprobantes de compras.",icon:"la la-tag",color:"#544CC9"},{title:"Tesorer\xeda",description:"Llevar el control administrativo de cajas y entidades.",icon:"la la-university",color:"#FB8500"}]},cuits:{name:"cuits",iconListInfo:[{title:"Facturaci\xf3n online",description:"Emitir facturas y presupuestos de manera individual o masiva.",icon:"la la-receipt",color:"#00C7AF"},{title:"Control de stock",description:"Unificar precios y stock con listas y dep\xf3sitos diferenciados.",icon:"la la-box",color:"#FF2569"},{title:"Compras",description:"Registrar y controlar comprobantes de compras.",icon:"la la-tag",color:"#544CC9"},{title:"Tesorer\xeda",description:"Llevar el control administrativo de cajas y entidades.",icon:"la la-university",color:"#FB8500"}]}}
1,bi={display:"flex",flexDirection:"column",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",borderRadius:"5px","@media (max-width: 665px)":{width:"90%"}},hi=Object(u.a)((e=>({limitationModal:{maxWidth:800,width:"100%",borderRadius:15},limitationModalContainer:{display:"flex",padding:20,gap:25},leftContainer:{maxWidth:253,backgroundColor:"#00C7AF1A",borderRadius:15,padding:20,display:"flex",flexDirection:"column",justifyContent:"center",gap:10,minHeight:"55vh"},buttons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:10,marginTop:30},iconList:{display:"flex",flexWrap:"wrap",gap:20,margin:"35px 0px"},iconBox:{display:"flex",flexDirection:"column",alignItems:"flex-start",maxWidth:"47%"},iconBoxIcon:{width:55,height:55,borderTopLeftRadius:10,borderTopRightRadius:10,borderBottomLeftRadius:10,display:"flex",justifyContent:"center",alignItems:"center",marginBottom:10},iconBoxTitle:{fontSize:16,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:600},iconBoxDescription:{fontSize:14,color:ui.a.textSecondary,fontFamily:"Work Sans",fontWeight:400,marginBottom:0},infoContainer:{display:"flex",flexDirection:"column",justifyContent:"center"},subTitle:{fontSize:18,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:600,lineHeight:1.6,marginBottom:10,marginTop:25},img:{maxWidth:"90%",minWidth:191,minHeight:185},title:{fontSize:16,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:600,marginBottom:0,lineHeight:1.6},description:{fontSize:14,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:400,marginBottom:0,lineHeight:1.6},buttonIcon:{marginLeft:5}})));var xi=e=>{var t;let{limitationQuantity:a="",limitationKey:i="",userPlan:o="",isOpen:n=!1,handleClose:r=(()=>null),primaryButtonClick:s=(()=>null),secondaryButtonClick:l=(()=>null)}=e;const c=hi(),d=e=>{let{title:t="",description:a="",icon:i="",color:o=""}=e;return Object(p.jsxs)("div",{className:c.iconBox,children:[Object(p.jsx)("div",{style:{backgroundColor:o},className:c.iconBoxIcon,children:Object(p.jsx)("i",{style:{fontSize:28,color:"#fff"},className:i})}),Object(p.jsx)("h5",{className:c.iconBoxTitle,children:t}),Object(p.jsx)("p",{className:c.iconBoxDescription,children:a})]})},u=gi[i];return Object(p.jsx)(p.Fragment,{children:n&&Object(p.jsx)(ci.a,{open:n,onClose:r,children:Object(p.jsx)(di.a,{className:c.limitationModal,sx:bi,children:Object(p.jsxs)("div",{className:c.limitationModalContainer,children:[Object(p.jsxs)("div",{className:c.leftContainer,children:[Object(p.jsx)(di.a,{className:c.img,component:"img",src:li}),Object(p.jsxs)("h4",{className:c.title,children:["L\xedmite de ",Object(p.jsx)("span",{children:null===u||void 0===u?void 0:u.name})]}),Object(p.jsxs)("p",{className:c.description,children:["Has alcanzado el l\xedmite de ",Object(p.jsx)("b",{children:null===u||void 0===u?void 0:u.name})," disponibles para tu plan ",o,". Para continuar utilizando este servicio sin restricciones,  \xa1Actualiz\xe1 tu plan y acced\xe9 a todas las funcionalidades avanzadas!"]})]}),Object(p.jsxs)("div",{className:c.infoContainer,children:[Object(p.jsx)("h3",{className:c.subTitle,children:"Al actualizar tu plan, vas a poder:"}),Object(p.jsx)("div",{className:c.iconList,children:null===(t=gi[i])||void 0===t?void 0:t.iconListInfo.map(((e,t)=>Object(p.jsx)(d,{title:e.title,description:e.description,icon:e.icon,color:e.color},t)))}),Object(p.jsxs)("div",{className:c.buttons,children:[Object(p.jsx)(si,{containerStyle:{width:"auto"},type:"cuaternary",onClick:l,children:"Cerrar"}),Object(p.jsxs)(si,{containerStyle:{width:"auto",minWidth:170,height:40},type:"primary",onClick:s,children:["Actualizar Plan",Object(p.jsx)(mi,{className:c.buttonIcon,name:"arrowRight",viewBox:"2 -2 29 29"})]})]})]})]})})})})};const fi=o.a.createContext();function vi(){const[e,t]=Object(i.useState)("");return Object(i.useEffect)((()=>{const e=(new L.a).get("Secure-1CBL");let a=JSON.parse(Object(H.b)(e));t(a)}),[]),Object(p.jsx)(fi.Provider,{value:e.data})}const ji={invoice:{max:2147483647,count:0,available:2147483647},integrations:{max:2147483647,count:0,available:2147483647},publications:{max:2147483647,count:0,available:2147483647},skus:{max:2147483647,count:0,available:2147483647},cuits:{max:2147483647,count:1,available:2147483646},salesPoints:{max:2147483647,count:1,available:2147483646},additionalUsers:{max:2147483647,count:0,available:2147483647},additionalCUIT:!0,priceLists:!0,clients:!0,salesOrders:!0,collections:!0,budgets:!0,subscriptions:!0,remittances:!0,autoBilling:!0,biCurrency:!0,purchaseOrders:!0,vouchers:!0,suppliers:!0,payments:!0,entities:!0,boxes:!0,checks:!0,bankTransactions:!0,fundTransfers:!0,deposits:!0,stockModification:!0,depositsTransfers:!0,bulkImport:{clients:!0,providers:!0,products:!0,combos:!0,services:!0,simpleSalesInvoices:!0,itemsSalesInvoices:!0,purchaseInvoices:!0,chartOfAccounts:!0,accountingEntries:!0,bankTransactions:!0,priceLists:"true"},bulkStockUpdate:!0,customPermissions:!0,customEmails:!0,dispatch:!0,reports:{expensesByCc:!0,comparative:!0,monthlyExpensesByCc:!0,incomeVsExpendituresByCc:!0,annualLiquidity:!0,liquidityBalances:!0,vatSales:!0,vatPurchases:!0,vatPosition:!0,withholdings:!0,perceptions:!0,digitalVatBookCiti:!0,accountsPayable:!0,cmSifereWeb:!0,collectionAgents:!0,commissionsBySeller:!0,comparativeExpensesByCc:!0,currentAccount:!0,customerBalances:!0,customerRanking:!0,inputsAndOutputs:!0,minimumStock:!0,monthlySales:!0,paymentsToSuppliers:!0,pendingCollections:!0,productProfitability:!0,profitabilityBySale:!0,purchaseHistory:!0,purchasesByCustomer:!0,purchasesByDestination:!0,ranking:!0,reservationDetail
1s:!0,salesByCustomer:!0,salesByDestination:!0,salesByIntegration:!0,salesByPointsOfSale:!0,salesBySalesCondition:!0,stock:!0,stockByDispatch:!0,supplierBalances:!0,trackingHours:!0},productLabels:!0,balanceSheet:!0,copyGeneralJournal:!0,generalJournal:!0,incomeStatement:!0,ledger:!0,manualEntries:!0,massAccountModification:!0,plansOfAccounts:!0,reprocessEntries:!0,pass:!0,alertConfig:!0,fileExplorer:!0,PosOff:!0,PosWeb:!0},Ai=["Prueba","Freemium","BasicNew","StandardNew","ProNew","FullNew","Enterprise"],Ci=Object(i.createContext)(),yi={limitations:null};function Oi(e,t){return"SET_LIMITATIONS"===t.type?{limitations:t.payload}:e}const Si=e=>{var t;let{children:a}=e;const[o,n]=Object(i.useReducer)(Oi,yi),r=(new L.a).get("Secure-1CBL");let s=JSON.parse(Object(H.b)(r));const l=s.data.plan_name,c=(null===s||void 0===s||null===(t=s.data)||void 0===t||t.country,(e=>{switch(e){case"Basic":case"Standard":case"Pro":return{...ji,bulkImport:{...ji.bulkImport,accountingEntries:!1}};default:return ji}})(l)),d=Object(i.useCallback)((async()=>{try{const e=await Ya.limitations.getUserLimitations({limits:null});n({type:"SET_LIMITATIONS",payload:e})}catch(e){return console.error("Failed to fetch limitations:",e),!0}}),[]);Object(i.useEffect)((()=>{Ai.some((e=>e===l))?d():n({type:"SET_LIMITATIONS",payload:c})}),[d]);const u=Object(i.useMemo)((()=>({limitations:o.limitations,fetchLimitations:d})),[o.limitations]);return Object(p.jsx)(Ci.Provider,{value:u,children:a})};var Ei=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n=>{var r;const s=Object(l.g)(),[c,d]=Object(i.useState)(!1),[u,m]=Object(i.useState)(null),g=vi(),b=null===g||void 0===g||null===(r=g.props)||void 0===r?void 0:r.value,{limitations:h}=Object(i.useContext)(Ci),x="Freemium"===(null===b||void 0===b?void 0:b.plan_name)?"Free":null===b||void 0===b?void 0:b.plan_name.replace("New",""),f=e=>{let{data:i}=e;return"boolean"===typeof i[t]?i[t]:a||"object"!==typeof i[t]||null===i[t]?!a||"object"!==typeof i[t]||!0===i[t][a]:i[t].available>0};Object(i.useEffect)((()=>{h&&!1===f({data:h})&&o&&s.goBack()}),[h]);return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(e,{onRestrictedAction:async()=>!1!==await(async()=>{if("ar"!==b.country||!Ai.includes(null===b||void 0===b?void 0:b.plan_name))return!0;try{const e=await Ya.limitations.getUserLimitations({limits:t});return m(e[t]),f({data:e})}catch(e){return!0}})()||(d(!0),!1),limitations:h,...n}),Object(p.jsx)(xi,{isOpen:c,limitationQuantity:null===u||void 0===u?void 0:u.max,limitationKey:t,userPlan:x,primaryButtonClick:()=>{window.open("/modulos/seguridad/elegir-plan.aspx","_self")},secondaryButtonClick:()=>d(!1)})]})}},Ii=a.p+"static/media/lock.99def9be.svg",wi=a(704),Ti=a(2),Pi=a(140),Ri=a.n(Pi);const Ni={display:"flex",flexDirection:"column",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",borderRadius:"5px","@media (max-width: 665px)":{width:"90%"}},Li=Object(u.a)((e=>({blockedModuleModal:{maxWidth:654,maxHeight:593,width:"100%",borderRadius:15,"@media (max-width: 628px)":{width:"90%",height:"90%",maxHeight:563,minHeight:563,textAlign:"center"}},blockedModuleModalContainer:{padding:"15px",gap:25},closeIconContainer:{display:"flex",flexWrap:"nowrap",justifyContent:"flex-end"},modalInfoContainer:{display:"flex",flexDirection:"column",alignItems:"center"},scrollBar:{"@media (max-width: 628px)":{maxHeight:420,overflowY:"scroll"}},container:{display:"flex",flexDirection:"column",alignItems:"center"},padlockContainer:{width:"102px",height:"102px !important",borderRadius:50,backgroundColor:"#EDEDED",display:"flex",justifyContent:"center",alignItems:"center"},img:{width:"38px",height:"55,31px"},title:{fontSize:21,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:500,lineHeight:"26px",textAlign:"center",margin:"20px 25px 15px 25px"},text:{fontSize:14,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:400,textAlign:"center",padding:"0px 15px",marginBottom:"4px"},subTitle:{fontSize:14,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:500,lineHeight:"23px"},colorSubTitle:{fontSize:14,color:ui.a.primary400,fontFamily:"Work Sans",fontWeight:700,lineHeight:"23px"},iconList:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",padding:"25px 50px 0px 50px","@media (max-width: 628px)":{justifyContent:"center",padding:"10px 0px",gap:25}}
1,iconBox:{display:"flex",flexDirection:"column",alignItems:"center",width:"143px",paddingBottom:"15px"},iconBoxIcon:{width:44,height:44,borderTopLeftRadius:10,borderTopRightRadius:10,borderBottomLeftRadius:10,display:"flex",justifyContent:"center",alignItems:"center",marginBottom:10},iconBoxTitle:{fontSize:14,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:500},buttonIcon:{marginLeft:5,paddingBottom:2}})));var ki=e=>{let{limitationKey:t="",isOpen:a=!1,handleClose:i=(()=>null),primaryButtonClick:o=(()=>null)}=e;const n=Li(),r=e=>{let{title:t="",icon:a="",color:i=""}=e;return Object(p.jsxs)("div",{className:n.iconBox,children:[Object(p.jsx)("div",{style:{backgroundColor:i},className:n.iconBoxIcon,children:Object(p.jsx)("i",{style:{fontSize:28,color:"#fff"},className:a})}),Object(p.jsx)("h5",{className:n.iconBoxTitle,children:t})]})},s={iconListInfo:[{title:Ti.a.t("salesModule"),icon:"la la-receipt",color:ui.a.primary300},{title:Ti.a.t("purchaseModule"),icon:"la la-tag",color:ui.a.secondary400},{title:Ti.a.t("inverntaryModule"),icon:"la la-box",color:ui.a.error300},{title:Ti.a.t("treasuryModule"),icon:"la la-university",color:ui.a.warning300},{title:Ti.a.t("accountingModule"),icon:"la la-book-open",color:ui.a.tertiary300},{title:Ti.a.t("reportsModule"),icon:"la la-chart-bar",color:ui.a.grey500}]};return a?Object(p.jsx)(p.Fragment,{children:a&&Object(p.jsx)(ci.a,{open:a,onClose:e=>{e.stopPropagation(),i(e)},disableEnforceFocus:!0,disableAutoFocus:!0,children:Object(p.jsx)(di.a,{className:n.blockedModuleModal,sx:Ni,onClick:e=>e.stopPropagation(),children:Object(p.jsxs)("div",{className:n.blockedModuleModalContainer,children:[Object(p.jsx)("div",{className:n.closeIconContainer,children:Object(p.jsx)(wi.a,{onClick:e=>{e.stopPropagation(),i(e)},disableRipple:!0,style:{backgroundColor:"transparent"},children:Object(p.jsx)(Ri.a,{sx:{stroke:"#ffffff",strokeWidth:.5,fontSize:"27px"}})})}),Object(p.jsxs)("div",{className:n.modalInfoContainer,children:[Object(p.jsx)("div",{className:n.scrollBar,children:Object(p.jsxs)("div",{className:n.container,children:[Object(p.jsx)("div",{className:n.padlockContainer,children:Object(p.jsx)(di.a,{className:n.img,component:"img",src:Ii})}),Object(p.jsx)("h3",{className:n.title,children:Ti.a.t("restrictedAccessToModule")}),Object(p.jsxs)("p",{className:n.text,children:[Ti.a.t("blockedModuleText"),t,"."]}),Object(p.jsx)("p",{className:n.text,children:Ti.a.t("uploadPlan")}),Object(p.jsx)("div",{className:n.iconList,children:s.iconListInfo.map(((e,t)=>Object(p.jsx)(r,{title:e.title,icon:e.icon,color:e.color},t)))})]})}),Object(p.jsx)("div",{style:{margin:"12px 0px",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsxs)(si,{containerStyle:{width:"auto",minWidth:170,height:40,padding:"0px 30px"},type:"primary",onClick:o,children:[Ti.a.t("comparePlans"),Object(p.jsx)(mi,{className:n.buttonIcon,name:"arrowRight",viewBox:"2 -4 29 29"})]})})]})]})})})}):null};const Bi=(new L.a).get("Secure-1CBL");var Di=e=>{const{url:t,method:a,condition:o}=e,[n,r]=Object(i.useState)(null),[s,l]=Object(i.useState)(null),[c,d]=Object(i.useState)(!1),u=Ia(a,t),p=Object(i.useCallback)((async()=>{let e=Oa(u);if(e)try{d(!0);const t=await e.promise;return r(t),void d(!1)}catch(o){return l(o),void d(!1)}const i=(async()=>{try{d(!0);const e=await ta()({method:a,url:t,headers:{Authorization:`Bearer ${Bi}`}});return r(e.data),e.data}catch(o){throw l(o),o}finally{d(!1),setTimeout((()=>{Ea(u)}),100)}})();if(e=Oa(u),e)try{d(!0);const t=await e.promise;return r(t),void d(!1)}catch(o){return l(o),void d(!1)}Sa(u,i);try{await i}catch(o){}}),[t,a,u]);return Object(i.useEffect)((()=>{!0===o&&p()}),[o,p]),{responseData:n,errorResponse:s,isLoading:c}};const Fi=Object(i.createContext)(null);function Mi(e){let{children:t}=e;const{responseData:a,errorResponse:o,isLoading:n,refetch:r}=Di({url:Object(aa.a)()+"currencies",method:"get",condition:!0}),s=Object(i.useMemo)((()=>Array.isArray(a)&&a.find((e=>!0===e.default))||null),[a]),l=Object(i.useCallback)((()=>{"function"===typeof r&&r()}),[r]),c={dataCurrency:a,defaultCurrency:s,errorCurrency:o,loadingCurrency:n,refresh:l};return Object(p.jsx)(Fi.Provider,{value:c,children:t})}function Vi(){const e=Object(i.useContext)(Fi);if(!e)throw new Error("error");return e}const Wi=Object(i.createContext)(),Hi=e=>{let{children:t}=e;const[a,o]=Object(i.useState)({enabled:!1,loading:!0});return Object(i.useEffect)((()=>{let e=!1;return(async()=>{try{const t=await Ya.bulkImportVariant.getBulkImportVariantPermission();e||o({enabled:t,loading:!1})}catch(t){e||o({enabled:!1,loading:!1})}})(),()=>{e=!0}}),[]),Object(p.jsx)(Wi.Provider,{value:a,children:t})},Ui=()=>{const e=Object(i.useContext)(Wi);return e||{enabled:!1,loading:!1}},_i=Object(i.createContext)(),zi=e=>{let{children:t}=e;const[a,o]=Object(i.useState)(!1);return Object(p.jsx)(_i.Provider,{value:{isEditMode:a,setIsEditMode:o},children:t})},qi=()=>{const e=Object(i.useContext)(_i);return e||{isEditMode:!1,setIsEditMode:()=>{}}},Gi=o.a.createContext();function Yi(){const{responseData:e,errorResponse:t,isLoading:a}=Di({url:Object(aa.a)()+"users/config",method:"get",condition:!0});return Object(p.jsx)(Gi.Provider,{value:{dataUser:e,errorUser:t,loadingUser:a}})}const Ki={EMPUY:{name:"Empresa",value:"EMPUY"},PEQUY:{name:"Peque\xf1a empresa",value:"PEQUY"},CF:{name:"Consumidor Final",value:"CF"},EXT:{name:"Exterior",value:"EXT"},EMPCL:{name:"Empresa",value:"EMPCL"},RI:{name:"Responsable Inscripto",value:"RI"},MO:{name:"Monotributista",value:"MO"},EX:{name:"Exento",value:"EX"},NA:{name:"IVA No Alcanzado",value:"NA"}},Xi=[Ki.MO,Ki.EX,Ki.PEQUY];var Zi;function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Qi.apply(null,arguments)}function Ji(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",Qi({width:306,height:283,viewBox:"0 0 306 283",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,Zi||(Zi=i.createElement("path",{d:"M180.657 82.3469C195.185 72.998 212.767 69.66 229.694 73.0139L230.5 73.1789L230.513 73.1808C247.87 76.9169 263.022 87.4168 272.617 102.356L273.061 103.054C282.259 117.763 285.325 135.505 281.579 152.465L281.58 152.466C278.289 167.445 269.434 181.50
15 257.163 190.875C258.417 191.503 259.752 192.177 261.082 192.928L261.67 193.265L261.672 193.266C281.775 205.012 296.514 224.126 302.76 246.558H302.761C303.591 249.504 304.255 252.494 304.75 255.512L304.951 256.808L304.954 256.822L304.956 256.837C305.101 257.891 305.236 259.401 305.371 260.582C305.522 261.907 305.685 262.972 305.881 263.646L306 264.057V282.057L303.15 282.2C298.257 282.446 291.927 282.27 287.173 282.266V282.265L144.443 282.261C140.373 282.261 134.11 282.055 130.568 282.329L127.201 282.59L127.34 279.216C127.417 277.327 127.41 275.356 127.399 273.3C127.389 271.269 127.374 269.15 127.445 267.076V267.064C127.742 259.344 129.027 251.694 131.268 244.301L131.271 244.292C137.379 224.367 150.244 207.195 167.652 195.734L167.656 195.732C170.323 193.981 173.083 192.373 175.922 190.918L175.929 190.915C176.008 190.875 176.087 190.836 176.166 190.796C170.177 186.201 165.009 180.606 160.896 174.247L160.451 173.551C151.212 158.888 148.074 141.178 151.73 124.215V124.214C155.455 106.985 165.853 91.9313 180.65 82.3508L180.657 82.3469ZM2.99023 172.222C8.85971 172.203 14.7292 172.214 20.5986 172.257L23.5732 172.279L23.5771 175.253C23.5979 190.989 23.3856 207.096 23.5654 222.765C37.659 222.926 51.5069 222.649 65.7686 222.784C69.3828 222.819 73.7109 222.719 77.9111 222.709C75.9478 220.736 73.9764 218.771 71.9961 216.816L69.9619 214.807L71.8701 212.678C75.1127 209.06 79.1507 205.373 82.2803 202.132C82.9314 201.457 83.7295 200.667 84.4971 199.999L86.5215 198.238L88.4961 200.055C90.9528 202.315 93.3878 204.767 95.6738 207.11L97.2295 208.695C100.87 212.389 104.583 216.04 108.312 219.721C112.566 223.919 116.836 228.153 120.987 232.479L122.943 234.518L121.025 236.592C118.345 239.491 115.064 242.641 112.368 245.335L91.9668 265.731V265.732C90.8982 266.8 89.5868 268.042 88.873 268.901L86.9111 271.26L84.5967 269.246C82.6151 267.522 79.775 264.508 78.0518 262.792C76.451 261.199 73.4707 258.369 71.8398 256.51L69.9766 254.386L71.9854 252.399C73.8691 250.535 75.9219 248.516 77.9277 246.509L13.5176 246.514L13.5186 246.515C12.3299 246.517 10.3405 246.565 8.13867 246.582C6.12081 246.598 3.84067 246.591 2.61621 246.433L0 246.095V172.232L2.99023 172.222ZM215.126 204.805C186.471 205.922 162.726 223.325 153.93 250.906H153.929C153.114 253.461 152.563 255.921 152.081 258.532L277.293 258.547C278.217 258.546 279.748 258.519 281.29 258.519C280.945 256.573 280.559 254.795 279.953 252.639V252.638C275.955 238.472 267.331 226.052 255.454 217.355L255.452 217.353C243.427 208.53 230.046 204.56 215.126 204.805ZM259.388 134.829C257.527 111.252 236.912 93.642 213.334 95.4894C189.737 97.3385 172.111 117.972 173.972 141.569L174.073 142.67C176.48 165.71 196.847 182.749 220.072 180.904C243.649 179.032 261.248 158.407 259.388 134.829ZM65.5244 0.0773321C79.3998 -0.681192 92.9988 4.16505 103.268 13.5275H103.267C113.339 22.6994 119.381 35.4785 120.076 49.0832L120.105 49.7336C120.64 63.3691 115.74 76.6702 106.469 86.7062C105.477 87.7913 104.424 88.7587 103.48 89.6086C118.05 98.3208 128.92 112.16 133.896 128.493L134.107 129.197C136.245 136.474 136.95 143.567 136.835 151.012C136.807 152.829 136.878 155.273 136.734 157.394L136.546 160.191L133.742 160.192L8.22461 160.2L8.22559 160.201C6.86523 160.203 4.40318 160.267 2.7832 160.15L0 159.947V142.14L0.228516 141.589C0.354595 141.284 0.490666 140.649 0.629883 139.6C0.742162 138.753 0.871967 137.469 1.04395 136.563C1.49969 134.163 1.98174 131.558 2.76855 128.992H2.76953C7.13628 114.316 16.2658 101.511 28.7188 92.5998L28.7217 92.5988C30.3252 91.4536 31.7963 90.522 33.2842 89.6389C31.9922 88.4368 30.7053 87.1642 29.4824 85.7541C21.6157 76.6825 17.4395 66.1706 16.7607 54.2775L16.7598 54.2658V54.2531C16.1153 41.0094 20.5808 28.032 29.2197 17.9943L29.6348 17.5178C38.7785 7.13352 51.7059 0.850672 65.5205 0.0773321H65.5244ZM67.9951 103.583C55.4711 103.846 44.7331 108.369 36.04 117.368C30.2486 123.364 27.448 128.991 25.25 136.52C39.7229 136.67 54.4742 136.517 68.9912 136.514L99.459 136.511L101.338 136.504C104.544 136.484 108.201 136.424 111.602 136.456C111.281 135.215 110.942 134.041 110.361 132.496L110 131.579C106.164 122.161 99.2635 114.299 90.4004 109.275L90.3916 109.27C83.4269 105.29 76.0746 103.558 67.9951 103.583ZM68.1885 23.6476C52.6611 23.7711 40.1767 36.464 40.3096 51.9914C40.4429 67.519 53.1435 79.9968 68.6709 79.8537C84.1844 79.7108 96.6475 67.0234 96.5146 51.5099C96.3816 35.9961 83.7023 23.5246 68.1885 23.6476Z",fill:"white"})))}const $i=i.forwardRef(Ji);a.p;const eo=Object(u.a)((e=>({modalHeader:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",padding:"10px 50px 10px 15px"},modalAlert:{display:"inline-flex",backgroundColor:"rgba(251, 133, 0, 0.1)",color:"#A15600",fontFamily:"Work Sans, sans-serif",fontSize:"12px",border:"1px solid #FB8500",borderRadius:"4px",padding:"5px 10px 10px 5px",marginBottom:"20px",textAlign:"justify"},typographyModal:{alignSelf:"center",marginLeft:5},applyButton:{textTransform:"capitalize !important",backgroundColor:"#2c9a8f !important",border:"2px s
1olid #2c9a8f !important",borderRadius:"50px !important",color:"#FFF !important",padding:"6px 15px !important"},cancelButton:{textTransform:"capitalize !important",backgroundColor:"#FFF !important",border:"white !important",color:"#666666 !important",borderRadius:"50px !important",padding:"6px 15px !important","&:hover":{border:"1px solid #ebebeb !important",backgroundColor:"#ebebeb !important",borderRadius:"50px !important"}},form:{padding:15,width:"100%!important","&& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",fontSize:"16px"},"& .MuiInputBase-input":{fontFamily:"Work Sans, sans-serif",lineHeight:1.4,fontSize:"15px"},"@media (max-width:767px)":{width:"90%"}},".css-ix1f03-MuiTypography-root":{fontFamily:"Work Sans, sans-serif",fontSize:"12px"},"& .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",fontSize:"16px"},"& \tinput":{height:"10px",paddingBottom:0,paddingTop:0},"& .MuiInputBase-root":{fontFamily:"Work Sans, sans-serif",lineHeight:1.4,fontSize:"15px"},"& \t.MuiInputBase-input":{fontFamily:"Work Sans, sans-serif",lineHeight:1.4,fontSize:"15px"},"& \t.MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",lineHeight:1.4,fontSize:"14px"},icon:{color:"#8C8C8C","&:hover":{color:"#666666"}},label:{marginBottom:"10px !important"},buttons:{"& .css-1e6y48t-MuiButtonBase-root-MuiButton-root":{fontFamily:"Work Sans, sans-serif",fontSize:"15px"}},gridModal:{justifyContent:"space-between"},closeModal:{justifyContent:"flex-end!important"},containerInt:{"@media (max-width:767px)":{marginTop:"20px"}}}))),to=Object(T.a)(k.a)((e=>{let{theme:t}=e;return{"& .MuiSwitch-switchBase.Mui-checked":{color:"#00A692","&:hover":{backgroundColor:Object(P.a)("#00A692",t.palette.action.hoverOpacity)}},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#00A692"}}}));var ao=Ei((e=>{var t,a,n;let{limitations:r,onOpenTrainingEvents:l}=e;const d=(new L.a).get("Secure-1CBL");let u=JSON.parse(Object(H.b)(d));const{open:m,setOpen:g}=b(),{isEditMode:h}=qi(),[x,f]=o.a.useState(!1),[A,T]=o.a.useState(""),[P,k]=o.a.useState(0),[D,F]=o.a.useState(),[V,U]=o.a.useState(!1),[_,z]=o.a.useState(""),[q,G]=o.a.useState(!1),[Y,K]=o.a.useState(!0),[X,Z]=o.a.useState("-280px"),[Q,J]=o.a.useState(""),[$,ee]=o.a.useState("28/04/2022  03:22:12 (default)"),[te,ae]=o.a.useState(""),[ie,oe]=Object(i.useState)(!1),[ne,re]=Object(i.useState)(""),se=Object(i.useRef)(),[le,ce]=Object(i.useState)("200px"),[de,ue]=Object(i.useState)(!1);Object(i.useEffect)((()=>{var e;ce(null===se||void 0===se||null===(e=se.current)||void 0===e?void 0:e.clientHeight)}),[de]);u.data.user_type;const pe=()=>f(!1),me=eo(),{menuItems:ge,rolDash:be,rolSales:he,rolShopping:xe,rolTreasury:fe,rolInventories:ve,rolAccounting:je,rolReports:Ae,rolTool:Ce}=ii({limitations:r}),ye=Yi(),Oe=(null===ye||void 0===ye||null===(t=ye.props)||void 0===t||null===(a=t.value)||void 0===a||null===(n=a.dataUser)||void 0===n?void 0:n.ivaCondition)===Ki.RI.value,{dataCurrency:Se}=Vi(),{enabled:Ee}=Ui(),Ie=(Za.a.enterprise.id,Za.a.basicNew.id,Za.a.basic.id,()=>{g(!0),Pe(!0),localStorage.setItem("sidebar-open",!0)}),we=()=>{g(!1),Pe(!1),localStorage.setItem("sidebar-open",!1)},Te=()=>{f(!0),Object(c.b)("ExChance",{planName:u.data.plan_name,country:u.data.country,exChance:!0})},Pe=e=>{Object(c.b)("Expandir/Colapsar",{userId:u.data.userId,expanded:e,planName:u.data.plan_name})};Object(i.useEffect)((()=>{if(null!==Se){const e=Se.filter((e=>!0===e.enabled));(null===e||void 0===e?void 0:e.length)>1&&K(!0)}else K(!1)}),[Se]),Object(i.useEffect)((e=>{null!==localStorage.getItem("sidebar-open")?(W()(void 0).children("i").removeClass("la-bars").addClass("la-times"),Ie(),localStorage.setItem("sidebar-open",!0)):(W()(void 0).children("i").removeClass("la-times").addClass("la-bars"),we(),localStorage.removeItem("sidebar-open")),z(d);const t=u.data.country;""!==d||("ar"===t&&window.open("v3/login","_self"),"cl"===t&&window.open("v3/login","_self"),"uy"===t&&window.open("v3/login","_self"),"py"===t&&window.open("v3/login","_self")),ae(u.data.country),F(u.data.userId),Ne(d),W()("iframe").remove()}),[]),Object(i.useEffect)((e=>{let t=u.data.country;"ar"===t&&J("https://app.contabilium.com/v3/dashboard"),"cl"===t&&J("https://app.contabilium.cl/v3/dashboard"),"uy"===t&&J("https://app.contabilium.com.uy/v3/dashboard"),"py"===t&&J("https://app.contabilium.com.py/v3/dashboard")}),[_,Q]);const Re=()=>{Object(c.b)("Addins",{addins:!0})},Ne=e=>{fetch(Object(aa.a)()+"dashboard/get_change_type",{method:"get",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}).then((e=>{if(""!==e)return e.json()})).then((e=>{T(e.change_type),ee(e.last_process_date)})).catch((e=>{}))},Le=e=>{fetch(Object(aa.a)()+"dashboard/changeType",{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({changeType:P,updateIntegrations:q})}).then((e=>{T(e.changeType),!0===q?ke():window.location.reload()})).catch((e=>{}))},ke=()=>{fetch((()=>{let e=localStorage.getItem("country");return"Argentina"===e?"https://app.contabilium.com/":"Chile"===e?"https://app.contabilium.cl/":"Uruguay"===e?"https://app.contabilium.com.uy/":"Paraguay"===e?"https://app.contabilium.com.py/":void 0})()+"/common.aspx/sincronizarTodasIntegraciones",{method:"post",headers:{"Content-Type":"application/json"}}).then((e=>(U(!1),window.location.reload(),e))).catch((e=>{U(!0)}))};Object(i.useEffect)((()=>{const e=[be,he,xe,fe,ve,je].filter((e=>!e)).length;Z(Ae&&6===e?"-500px":Ae&&4===e?"-450px":Ae&&3===e?"-350px":Ae&&2===e?"-320px":"-280px")}),[Ae,be,he,xe,fe,ve,je]);const Be=()=>{ue(!0)},De=()=>{ue(!1)},Fe=(e,t,a,i,o)=>{const n=Me(i,a);e.stopPropagation();const r=!!t||!("iva-simple"===o&&Oe)&&t;"iva-simple"!==o||Oe||t?"Importaci\xf3n masiva"===a||" Financieros y Econ\xf3micos"===a||"Impositivos"===a||"Productos"===a&&"importar"!==o||"Gesti\xf3n"===a?oe(!1):ie||(i&&re(n),r||(e.preventDefault(),i&&oe(!0))):e.preventDefault()},Me=(e,t)=>
1(e={reports:"el reporte de ",management:"la gesti\xf3n de ",bulkImport:"la gesti\xf3n masiva de "}[e]||"el ","Ventas por POS"===t&&(e="el acceso al "),"Facturas de venta simple"===t&&(e=""),"Asientos Contables"===t&&(e=""),(e+(t={"Ventas por POS":"punto de venta web","Explorador de archivos":"archivos","Importaci\xf3n masiva de productos":"productos","Actualizaci\xf3n masiva de stock":"stock","Reprocesar asientos":"asientos","Egresos por CC":"cc","Configurar alertas":"avisos y alertas","Tracking horas":"tracking de horas",Rubros:"rubros","Facturas de venta simple":"incluyendo la gesti\xf3n masiva de facturas de venta simple","Asientos Contables":"incluyendo la gesti\xf3n masiva de asientos contables"}[t]||t)).toLowerCase()),Ve={isOpen:ie,handleClose:e=>{return(t=e)&&(t.preventDefault(),t.stopPropagation()),void oe(!1);var t},limitationKey:ne,primaryButtonClick:()=>window.open("/modulos/seguridad/elegir-plan.aspx","_self")};return Object(p.jsxs)("div",{className:"cbl-menu-nav "+(h?"cbl-menu-nav-disabled":""),style:h?{pointerEvents:"none",opacity:.5}:{},children:[Object(p.jsxs)("div",{className:"cbl-sidebar-wrapper",children:[Object(p.jsxs)("div",{className:"cbl-menu-wrapper-desktop",children:[Object(p.jsxs)("div",{className:"cbl-sidebar-top-content",children:[Object(p.jsxs)("button",{className:"cbl-logo-button-toggle",style:{padding:"0px 14px 0px 14px"},onClick:e=>function(e){e.persist(),W()((function(){W()("body").hasClass("sidebar-open")?(W()(this).children("i").removeClass("la-times").addClass("la-bars"),we(),localStorage.removeItem("sidebar-open")):(W()(this).children("i").removeClass("la-bars").addClass("la-times"),Ie(),localStorage.setItem("sidebar-open",!0)),W()("body").toggleClass("sidebar-open").removeClass("usermenu-open"),e.stopPropagation()}))}(e),children:[Object(p.jsx)("div",{className:"cbl-isologo-wrapper",children:Object(p.jsx)("img",{id:"sidebar-logo",src:j,alt:"Logo",height:35,width:170})}),Object(p.jsx)("span",{id:"sidebar-toggle-arrow",className:"cbl-arrow-circle",children:Object(p.jsx)("i",{className:"la la-angle-right"})})]}),Object(p.jsxs)("ul",{className:"cbl-sidebar-list",children:[be&&Object(p.jsx)("li",{children:Object(p.jsx)("a",{href:Q,"data-toggle":"tooltip","data-placement":"right",title:"DASHBOARD",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-dashboard"}),Object(p.jsx)("span",{className:"cbl-menu-label",children:"Dashboard"})]})})}),ge.map((e=>{const{url:t,ulStyle:a,dataToggle:i,dataPlacement:o,title:n,icon:r,text:s,hideOnDesktop:l,items:d,className:u,style:m,id:g}=e;return l?null:Object(p.jsxs)("li",{onMouseOver:Be,onMouseLeave:De,className:u,id:g,children:[Object(p.jsx)("a",{href:t,"data-toggle":i,"data-placement":o,title:n,children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:r}),Object(p.jsx)("span",{className:"cbl-menu-label",children:s})]})}
1),d&&Object(p.jsxs)("div",{ref:"Reportes"===s?se:null,style:{top:"Reportes"===s&&ge.length>2?-le/2.25:0,...m},className:"cbl-sidebar-dropdown dropdown-menu",children:[Object(p.jsx)("h6",{children:n}),Object(p.jsx)("ul",{style:a,children:null===d||void 0===d?void 0:d.map((e=>{if(e){const{href:t="",id:a="",dataForm:i,subItems:o,text:n,amplitudeData:r,target:s,rel:l,limitationPermission:d,modalText:u}=e;return"26"!==D&&"Suscripciones"===n?null:o?Object(p.jsx)("div",{children:Object(p.jsxs)("div",{children:[Object(p.jsx)("h6",{className:"cbl-dropdown-subcategory",children:n}),Object(p.jsx)("ul",{children:null===o||void 0===o?void 0:o.map((e=>e?Object(p.jsx)("li",{onClick:()=>Object(c.b)(r),style:{minWidth:200,display:"iva-simple"===(null===e||void 0===e?void 0:e.dataForm)&&Oe||"iva-simple"!==(null===e||void 0===e?void 0:e.dataForm)?"block":"none"},children:Object(p.jsxs)("a",{href:"iva-simple"!==(null===e||void 0===e?void 0:e.dataForm)||Oe?null===e||void 0===e?void 0:e.href:"#",id:null===e||void 0===e?void 0:e.id,"data-formulario":null===e||void 0===e?void 0:e.dataForm,style:{color:(!e.limitationPermission||"iva-simple"===(null===e||void 0===e?void 0:e.dataForm)&&!Oe)&&ui.a.disabled,cursor:"iva-simple"!==(null===e||void 0===e?void 0:e.dataForm)||Oe?void 0:"default",pointerEvents:"iva-simple"!==(null===e||void 0===e?void 0:e.dataForm)||Oe?"auto":"none"},onClick:t=>{"iva-simple"!==(null===e||void 0===e?void 0:e.dataForm)||Oe?Fe(t,e.limitationPermission,e.text,e.modalText,e.dataForm):t.preventDefault()},"aria-disabled":"iva-simple"===(null===e||void 0===e?void 0:e.dataForm)&&!Oe,children:[null===e||void 0===e?void 0:e.text,(null===e||void 0===e?void 0:e.badgeText)&&"iva-simple"===(null===e||void 0===e?void 0:e.dataForm)&&Oe&&Object(p.jsx)("span",{className:"cbl-icon-badge cbl-bg-secondary",style:{marginLeft:8},children:e.badgeText})]})},null===e||void 0===e?void 0:e.text):null))})]})}):Object(p.jsx)("li",{onClick:()=>Object(c.b)(r),children:Object(p.jsx)("a",{href:t||"",id:a,"data-formulario":i,target:s||null,rel:l,style:{color:(!d||"IVA Simple"===n&&(()=>{try{var e,t,a;const i=Yi();return"RI"===(null===i||void 0===i||null===(e=i.props)||void 0===e||null===(t=e.value)||void 0===t||null===(a=t.dataUser)||void 0===a?void 0:a.ivaCondition)}catch(i){return!1}})())&&ui.a.disabled},onClick:e=>Fe(e,d,n,u,i),children:Object(p.jsx)("span",{children:n})})})}return null}))})]})]})}))]})]}),Object(p.jsx)("div",{className:"cbl-sidebar-bottom-content",children:Object(p.jsxs)("ul",{className:"cbl-sidebar-list cbl-secondary-list cbl-sidebar-listbottom",children:[!0===Y&&Object(p.jsx)("li",{onClick:Te,children:Object(p.jsx)(s.b,{to:"#",role:"button",id:"sidebar-exchange-rate-button",className:"cbl-exchange-button","data-toggle":"tooltip","data-placement":"right",title:"Tipo de cambio",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-exchange"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Tipo de cambio"})]})})}),Object(p.jsx)("li",{onClick:()=>Object(c.b)("Header - Referidos"),children:Object(p.jsx)("a",{id:"sidebar-referral-program-link",href:"/modulos/seguridad/referidos.aspx","data-toggle":"tooltip","data-placement":"right",title:Ti.a.t("referredProgram"),style:{padding:"0 15px 0 21px"},children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",style:{alignItems:"center"},children:[Object(p.jsx)($i,{style:{width:"22px",height:"22px",minWidth:"22px",minHeight:"22px"}}),Object(p.jsxs)("span",{className:"cbl-menu-label",children:[" ",Ti.a.t("referredProgram")]})]})})}),"cl"===te&&Object(p.jsx)("li",{onClick:Re,children:Object(p.jsx)("a",{href:"/shopping-cl.aspx","data-toggle":"tooltip","data-placement":"right",title:"Potenci\xe1 tu plan",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-shopping-bag"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Potenci\xe1 tu plan"})]})})}),"uy"===te&&Object(p.jsx)("li",{onClick:Re,children:Object(p.jsx)("a",{href:"/shopping-uy.aspx","data-toggle":"tooltip","data-
1placement":"right",title:"Potenci\xe1 tu plan",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-shopping-bag"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Potenci\xe1 tu plan"})]})})}),"py"===te&&Object(p.jsx)("li",{onClick:Re,children:Object(p.jsx)("a",{href:"/shopping-py.aspx","data-toggle":"tooltip","data-placement":"right",title:"Potenci\xe1 tu plan",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-shopping-bag"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Potenci\xe1 tu plan"})]})})}),Object(p.jsx)("li",{children:Object(p.jsx)("a",{id:"sidebar-trainings-button",href:"#","data-toggle":"tooltip","data-placement":"right",title:"Capacitaciones",onClick:e=>{e.preventDefault(),Object(c.b)("Capacitaciones, Sidebar"),l&&l()},children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)(M,{name:"training",viewBox:"0 0 76 45",style:{display:"table",margin:"auto 0",fontSize:"22px",width:"22px",height:"13px"}})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Capacitaciones"})]})})}),"cl"===te&&Object(p.jsx)("li",{children:Object(p.jsx)("a",{id:"sidebar-help-center-link",href:"https://ayuda.contabilium.cl/hc/es",target:"_blank","data-toggle":"tooltip","data-placement":"right",title:"Centro de ayuda",rel:"noreferrer",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-question-circle"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Centro de ayuda"})]})})}),"ar"===te&&Object(p.jsx)("li",{children:Object(p.jsx)("a",{id:"sidebar-help-center-link",href:"https://ayuda.contabilium.com/hc/es",target:"_blank","data-toggle":"tooltip","data-placement":"right",title:"Centro de ayuda",rel:"noreferrer",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-question-circle"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Centro de ayuda"})]})})}),"uy"===te&&Object(p.jsx)("li",{children:Object(p.jsx)("a",{id:"sidebar-help-center-link",href:"https://ayuda.contabilium.com.uy/hc/es",target:"_blank","data-toggle":"tooltip","data-placement":"right",title:"Centro de ayuda",rel:"noreferrer",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-question-circle"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Centro de ayuda"})]})})}),"py"===te&&Object(p.jsx)("li",{children:Object(p.jsx)("a",{id:"sidebar-help-center-link",href:"https://ayuda.contabilium.com.py/hc/es-419",target:"_blank","data-toggle":"tooltip","data-placement":"right",title:"Centro de ayuda",rel:"noreferrer",children:Object(p.jsxs)("div",{className:"cbl-icon-wrapper",children:[Object(p.jsx)("i",{className:"la la-question-circle"})," ",Object(p.jsx)("span",{className:"cbl-menu-label",children:"Centro de ayuda"})]})})})]})})]}),Object(p.jsxs)("div",{className:"cbl-menu-wrapper-mobile content-menu",children:[Object(p.jsxs)("div",{className:"dropdown-menu-wrapper current","data-ref":"main",children:[Object(p.jsxs)("ul",{className:"cbl-menu-primary cbl-main-category",children:[be&&Object(p.jsx)("li",{children:Object(p.jsxs)("a",{href:Q,children:[Object(p.jsx)("i",{className:"la la-dashboard"}),"Dashboard"]})}),ge.map((e=>{const{url:t,text:a,icon:i,dataLink:o,id:n}=e;return Object(p.jsx)("li",{onClick:e=>{W()("[data-link]").click((function(){var e=W()(this).closest(".content-menu"),t=W()(this).data("link");"back"===W()(this).data("action")?(W()(e).find("[data-ref="+t+"]").addClass("current").removeClass("hide-lt hide-rt"),W()(this).closest(".dropdown-menu-wrapper").addClass("hide-rt").removeClass("current")):(W()(e).find("[data-ref="+t+"]").addClass("current").removeClass("hide-lt hide-rt"),W()(this).closest(".dropdown-menu-wrapper").addClass("hide-lt").removeClass("current"))}))},id:n,children:Object(p.jsxs)("a",{style:{cursor:"pointer",textTransform:"Herramientas"!==a?"uppercase":"capitalize",marginTop:"Herramientas"!==a?0:10,marginBottom:"Herramientas"!==a?0:-10},href:t||null,"data-link":o,children:[Object(p.jsx)("i",{className:i}),a]})},a)}))]}),Object(p.jsxs)("ul",{className:"cbl-main-category",children:["cl"===te&&Object(p.jsx)("li",{children:Object(p.jsxs)("a",{href:"/shopping-cl.aspx",children:[Object(p.jsx)("i",{className:"la la-shopping-bag",onClick:Re}),"Potenci\xe1 tu plan"]})}),"uy"===te&&Object(p.jsx)("li",{children:Object(p.jsxs)("a",{href:"/shopping-uy.aspx",children:[Object(p.jsx)("i",{className:"la la-shopping-bag",onClick:Re}),"Potenci\xe1 tu plan"]})}),"py"===te&&Object(p.jsx)("li",{children:Object(p.jsxs)("a",{href:"/shopping-py.aspx",children:[Object(p.jsx)("i",{className:"la la-shopping-bag",onClick:Re}),"Potenci\xe1 tu plan"]})}
1),!0===Y&&Object(p.jsx)("li",{onClick:Te,children:Object(p.jsxs)("a",{id:"sidebar-exchange-rate-button-mobile",href:"#",className:"cbl-exchange-button",children:[Object(p.jsx)("i",{className:"la la-exchange"}),"Tipo de cambio"]})})]}),Object(p.jsxs)("ul",{className:"cbl-main-category",children:[Object(p.jsx)("li",{onClick:()=>Object(c.b)("Header - Referidos"),children:Object(p.jsxs)("a",{id:"sidebar-referral-program-link-mobile",href:"/modulos/seguridad/referidos.aspx",style:{paddingLeft:"0px"},children:[Object(p.jsx)($i,{style:{width:"18px",height:"18px",marginRight:"10px"}})," ",Ti.a.t("referredProgram")]})}),Object(p.jsx)("li",{children:Object(p.jsxs)("a",{id:"sidebar-trainings-button-mobile",href:"#",onClick:e=>{e.preventDefault(),Object(c.b)("Capacitaciones, Sidebar"),l&&l()},children:[Object(p.jsx)(M,{name:"training",viewBox:"0 0 76 45",style:{position:"absolute",top:"50%",left:"0",transform:"translateY(-50%)",fontSize:"18px",width:"18px",height:"11px"}}),"Capacitaciones"]})}),"cl"===te&&Object(p.jsx)("li",{children:Object(p.jsxs)("a",{id:"sidebar-help-center-link-mobile",href:"https://ayuda.contabilium.cl/hc/es",target:"_blank",rel:"noreferrer",children:[Object(p.jsx)("i",{className:"la la-question-circle"}),"Centro de ayuda"]})}),"ar"===te&&Object(p.jsx)("li",{onClick:()=>Object(c.b)("Header - Referidos"),children:Object(p.jsxs)("a",{id:"sidebar-help-center-link-mobile",href:"https://ayuda.contabilium.com/hc/es",target:"_blank",rel:"noreferrer",children:[Object(p.jsx)("i",{className:"la la-question-circle"}),"Centro de ayuda"]})}),"uy"===te&&Object(p.jsx)("li",{children:Object(p.jsxs)("a",{id:"sidebar-help-center-link-mobile",href:"https://ayuda.contabilium.com.uy/hc/es",target:"_blank",rel:"noreferrer",children:[Object(p.jsx)("i",{className:"la la-question-circle"}),"Centro de ayuda"]})}),"py"===te&&Object(p.jsx)("li",{children:Object(p.jsxs)("a",{id:"sidebar-help-center-link-mobile",href:"https://ayuda.contabilium.com.py/hc/es-419",target:"_blank",rel:"noreferrer",children:[Object(p.jsx)("i",{className:"la la-question-circle"}),"Centro de ayuda"]})})]})]}),ge.map(((e,t)=>{const{dataRef:a,items:i}=e;return Object(p.jsx)("div",{className:"dropdown-menu-wrapper hide-rt","data-ref":a,children:Object(p.jsxs)("ul",{children:[Object(p.jsx)("li",{children:Object(p.jsx)("a",{href:"#","data-link":"main","data-action":"back",children:"Volver"})}),i.map((e=>{if(e){const{href:t="",dataForm:a,text:i,subItems:o,amplitudeData:n,limitationPermission:r,modalText:s}=e;return"26"!==D&&"Suscripciones"===i?null:Object(p.jsx)("li",{onClick:n?()=>Object(c.b)(n):()=>null,style:{display:"iva-simple"===a&&Oe||"iva-simple"!==a?"block":"none"},children:Object(p.jsxs)("a",{style:{cursor:"iva-simple"!==a||Oe?"pointer":"default",color:o||r?"#fff":ui.a.disabled,pointerEvents:"iva-simple"!==a||Oe?"auto":"none"},href:"iva-simple"!==a||Oe?t||null:"#","data-link":null===e||void 0===e?void 0:e.dataRef,"data-formulario":a,onClick:e=>{"iva-simple"!==a||Oe?Fe(e,r,i,s,a):e.preventDefault()},"aria-disabled":"iva-simple"===a&&!Oe,children:[Object(p.jsx)("span",{children:i}),(null===e||void 0===e?void 0:e.badgeText)&&Object(p.jsx)("span",{className:"cbl-icon-badge cbl-bg-secondary",style:{marginLeft:8},children:e.badgeText})]})},i)}}))]})},t)})),ge.map(((e,t)=>{if("Reportes"===e.title||"Herramientas"===e.title)return e.items.map((a=>{var i;return Object(p.jsx)("div",{className:"dropdown-menu-wrapper hide-rt","data-ref":null===a||void 0===a?void 0:a.dataRef,children:Object(p.jsxs)("ul",{children:[Object(p.jsx)("li",{children:Object(p.jsx)("a",{href:"#","data-link":null===e||void 0===e?void 0:e.dataRef,"data-action":"back",children:"Volver"})}),null===a||void 0===a||null===(i=a.subItems)||void 0===i?void 0:i.map((e=>{if((null===e||void 0===e?void 0:e.id)===Et&&!Ee)return null;if(e){const{href:t="",dataForm:a,text:i,amplitudeData:o}=e;return Object(p.jsx)("li",{onClick:o?()=>Object(c.b)(o):()=>null,style:{display:"iva-simple"===a&&Oe||"iva-simple"!==a?"block":"none"},children:Object(p.jsx)("a",{href:"iva-simple"!==a||Oe?t||"":"#","data-formulario":a,style:{cursor:"iva-simple"!==a||Oe?"pointer":"default",color:(!e.limitationPermission||"iva-simple"===a&&!Oe)&&ui.a.disabled,pointerEvents:"iva-simple"!==a||Oe?"auto":"none"},onClick:t=>{"iva-simple"!==a||Oe?Fe(t,e.limitationPermission,e.text,e.modalText,e.dataForm):t.preventDefault()},"aria-disabled":"iva-simple"===a&&!Oe,children:Object(p.jsx)("span",{children:i})})},i)}}))]})},t)}))}))]})]}),Object(p.jsx)(w.a,{open:x,onClose:pe,className:me.form,sx:{zIndex:"10000000"},children:Object(p.jsx)(y.a,{sx:{position:"fixed",top:"30%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"600px",bgcolor:"background.paper",border:"1px solid #e5e5e5",borderRadius:"5px",zIndex:1050,overflowX:"hidden",overflowY:"auto",fontFamily:"Work Sans, sans-serif","@media (max-width:767px)":{width:"90%",top:"50%"}},children:Object(p.jsxs)(R.a,{variant:"standard",className:me.form,children:[Object(p.jsxs)(v.a,{container:!0,children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:me.gridModal,children:[Object(p.jsx)(S.a,{className:me.modalHeader,children:"Actualizar tipo de cambio"}
1),Object(p.jsx)(O.a,{onClick:pe,disableRipple:!0,className:me.closeModal,startIcon:Object(p.jsx)(M,{name:"close",className:me.icon})})]}),Object(p.jsx)(v.a,{container:!0,xs:12,md:12,justifyContent:"center",className:me.form,children:Object(p.jsx)(v.a,{item:!0,className:me.modalAlert,sx:{mt:2},children:Object(p.jsx)(v.a,{item:!0,className:me.typographyModal,children:Object(p.jsxs)(S.a,{children:["Este proceso se realizar\xe1 en segundo plano y puede demorar unos minutos, cuando finalice le enviaremos un mail."," ",Object(p.jsxs)("strong",{children:["La \xfaltima vez que realiz\xf3 este proceso fue: ",$," ","p. m."]})]})})})})]}),Object(p.jsx)(R.a,{variant:"standard",children:Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,justifyContent:"center",className:me.form,children:[Object(p.jsxs)(v.a,{item:!0,xs:12,md:6,lg:6,justifyContent:"center",children:[Object(p.jsx)(S.a,{className:me.label,children:"Tipo de cambio global"}),Object(p.jsx)(E.a,{required:!0,type:"text",name:"tipocambio",defaultValue:A,variant:"outlined",onChange:e=>{k(e.target.value)},InputProps:{inputComponent:C,startAdornment:Object(p.jsx)(B.a,{position:"start",children:Object(p.jsx)(M,{name:"dollarSign"})})},sx:{mt:4,mb:4}})]}),Object(p.jsxs)(v.a,{item:!0,xs:12,md:6,lg:6,justifyContent:"center",className:me.containerInt,children:[Object(p.jsxs)(S.a,{className:me.label,children:["Actualizar integraciones ",Object(p.jsx)(M,{name:"infoCircle"})]}),Object(p.jsx)(to,{checked:q,onChange:e=>{G(!q)}})]})]})}),Object(p.jsx)(N.a,{}),Object(p.jsxs)(v.a,{container:!0,justifyContent:"flex-end",className:me.form,children:[V&&Object(p.jsx)(I.a,{severity:"error",children:"Error en la actualizacion de integraciones!"})," ",Object(p.jsxs)(v.a,{className:me.buttons,children:[Object(p.jsx)(O.a,{className:me.cancelButton,onClick:pe,startIcon:Object(p.jsx)(M,{name:"close"}),disableRipple:!0,children:"Cancelar"}),Object(p.jsx)(O.a,{className:me.applyButton,onClick:()=>{Le(_),pe()},startIcon:Object(p.jsx)(M,{name:"check"}),disableRipple:!0,children:"Aplicar"})]})]})]})})}),Object(p.jsx)(ki,{...Ve})]})}),"",!1),io=a(762),oo=a(763),no=a(739),ro=a(714),so=a(713),lo=a(749);var co=e=>window.open(e,"_self");var uo=()=>{const e=(new L.a).get("Secure-1CBL");const t=JSON.parse(Object(H.b)(e)).data.country;let a="";return"ar"===t?a="https://app.contabilium.com/":"cl"===t?a="https://app.contabilium.cl/":"uy"===t?a="https://app.contabilium.com.uy/":"py"===t&&(a="https://app.contabilium.com.py/"),a};const po=Object(u.a)((e=>({button:{backgroundColor:"#3c52b2",color:"#fff","&:hover":{backgroundColor:"#fff",color:"#3c52b2"}},popover:{"&.MuiPopover-root":{}},popoverText:{borderRadius:"10px 0 10px 10px",fontWeight:"600px!important","& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"},"& .MuiTypography-root .MuiTypography-body1 ":{fontWeight:"600px"}},customBadge:{backgroundColor:"#FF2569",color:"white",fontSize:"12px!important",fontFamily:"Work Sans, sans-serif!important"},span:{"& .MuiBadge-badge":{fontFamily:"Work Sans, sans-serif"}},scroll:{"& ::-webkit-scrollbar":{width:5},"& ::-webkit-scrollbar-thumb":{backgroundColor:"#ddd",borderRadius:10,cursor:"pointer"},"& ::-webkit-scrollbar-track":{background:"#fff"}},caption:{fontFamily:"Work Sans,sans-serif",fontSize:"12px",color:"#666",display:"block",overflowX:"hidden",textOverflow:"ellipsis"},title:{fontFamily:"Work Sans,sans-serif",fontSize:"13px",color:"#131313",display:"block",overflowX:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"1.6",width:"100%",fontWeight:"400"},li:{display:"inline-block"}})));function mo(){const[e,t]=o.a.useState(null),[a,n]=o.a.useState([]),[r,s]=o.a.useState(0),[l,d]=o.a.useState(0),[u,m]=o.a.useState({}),[g,b]=o.a.useState(""),h=po();Object(i.useEffect)((()=>{const e=(new L.a).get("Secure-1CBL");var t;t=e,fetch(Object(aa.a)()+"dashboard/get_notifications",{method:"get",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}}).then((e=>{if(""!==e)return e.json()})).then((e=>{const t=e;"{}"===JSON.stringify(t.getNotifications.planAlert)?d(t.getNotifications.generatedAlerts.length):d(t.getNotifications.generatedAlerts.length+1);let a=e.getNotifications.generatedAlerts;return m(t.getNotifications.planAlert),n(a),s(e.getNotifications.planAlert),b(t.getNotifications.planAlert.plan),e})).catch((e=>{console.log(e)}))}),[]);const x=Boolean(e),f=x?"simple-popover":void 0;return Object(p.jsxs)("div",{children:[Object(p.jsx)(O.a,{id:"navbar-notifications-button","aria-describedby":f,onClick:e=>{t(e.currentTarget);const a=(new L.a).get("Secure-1CBL");let i=JSON.parse(Object(H.b)(a));Object(c.b)("Header - Notificaciones",{userId:i.data.userId,planName:i.data.plan_name,country:i.data.country,notifications:!0})},disableRipple:!0,sx:{backgroundColor:"#fff",padding:"0",width:"45px",height:"45px",borderRadius:"50%",minWidth:"auto","&:hover":{backgroundColor:"#f1f1f1!important"}},children:Object(p.jsxs)(lo.a,{badgeContent:l,anchorOrigin:{vertical:"top",horizontal:"right"},classes:{badge:h.customBadge},children:[" ",Object(p.jsx)(mi,{viewBox:"0 0 35 35",style:{color:"#454545",width:"26.5px",height:"26.5px",cursor:"pointer"},name:"notifications"})]})}),Object(p.jsxs)(io.b,{id:f,open:x,anchorEl:e,onClose:()=>{t(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:h.popover,sx:{"& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",color:"#131313",fontSize:"13px"}
1,"& .MuiPaper-elevation8":{borderRadius:"10px 0 10px 10px",border:"solid 1px #C6C6C6",boxShadow:"0px 1px 5px 0px rgb(0 0 0 / 25%)",width:"350px",transition:"none!important"}},children:[Object(p.jsxs)(S.a,{sx:{p:"15px 15px 0 15px",fontFamily:"Work Sans, sans-serif"},style:{fontWeight:"600"},className:h.popoverText,children:["NOTIFICACIONES (",l,")"]}),Object(p.jsx)(v.a,{style:{padding:"0 15px 15px 15px"},className:h.scroll,children:Object(p.jsxs)(oo.a,{style:{overflowY:" auto",overflowX:"hidden",maxHeight:"200px"},sx:{"& .MuiListItem-root":{borderRadius:"5px",paddingLeft:"5px"},"& .MuiListSubheader-root":{lineHeight:"14px",paddingLeft:"0",paddingRight:"0",fontSize:"12px"},"& .MuiListItem-root ":{cursor:"pointer","&:hover":{backgroundColor:"#f4f4f4"}},"& .MuiListItemText-root":{marginTop:"0",marginBottom:"0"},"& .MuiTypography-root .MuiTypography-body2":{fontFamily:"Work Sans, sans-serif",color:"#666",fontSize:"12px"},"& .css-fvc8ir-MuiBadge-badge":{fontFamily:"Work Sans, sans-serif!important"}},children:[a.map(((e,t)=>Object(p.jsx)(no.a,{className:h.li,sx:{display:"inline-block"},children:Object(p.jsxs)(so.a,{onClick:()=>{co(Object({NODE_ENV:"production",PUBLIC_URL:"/v3",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BASE:"https://vir-internalapi.contabilium.com/api/",REACT_APP_BASE_CL:"https://vir-internalapi.contabilium.cl/api/",REACT_APP_BASE_UY:"https://vir-internalapi.contabilium.com.uy/api/",REACT_APP_BASE_PY:"https://vir-internalapi.contabilium.com.py/api/",REACT_APP_BASE_HOST:"https://app.contabilium.com/",REACT_APP_BASE_HOST_CL:"https://app.contabilium.cl/",REACT_APP_BASE_HOST_UY:"https://app.contabilium.com.uy/",REACT_APP_BASE_HOST_PY:"https://app.contabilium.com.py/",REACT_APP_BASE_AR_HOME:"https://app.contabilium.com/v3/dashboard",REACT_APP_VALIDATE:"https://app.contabilium.com/v3/login/mailauth",REACT_APP_PLAN_EXPIRED_ADMIN:"modulos/seguridad/elegir-plan.aspx",REACT_APP_PLAN_EXPIRED:"modulos/seguridad/pago-pendiente-hijo.aspx",REACT_APP_BANNER:"message/banner",REACT_APP_AMPLITUDE:"3fd99627cc179983dc296b7c86c0c182",REACT_APP_DASHBOARD:"v3/dashboard",REACT_APP_NOTIFICATIONS:"dashboard/get_notifications",REACT_APP_READ_NOTIFICACION:"dashboard/readnotification",REACT_APP_COMPANIESLIST:"company/list",REACT_APP_CHANCE_COMPANY:"company/changecompany",REACT_APP_CREATE_COMPANY:"users/addChildUsers",REACT_APP_INACTIVATE_COMPANY:"users/inactivateChildUser",REACT_APP_BANK:"banks",REACT_APP_PERMISION:"permissions",REACT_APP_GET_CHANGE_TYPE:"dashboard/get_change_type",REACT_APP_PUT_CHANGE_TYPE:"dashboard/changeType",REACT_APP_SALE_CHANGE_TYPE:"dashboard/get_change_type",REACT_APP_SALE_CONDITIONS:"sale-condition",REACT_APP_BASE_URL_AR:"v3/login",REACT_APP_BASE_URL_CL:"v3/login",REACT_APP_BASE_URL_UY:"v3/login",REACT_APP_BASE_URL_PY:"v3/login",REACT_APP_BASE_URL_AR_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_CL_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_UY_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_PY_LOG_OUT:"v3/login?logOut=true",REACT_APP_VALIDATE_JWT:"login/validate_jwt",REACT_APP_PLANS_PURCHASE:"plans/purchase",REACT_APP_PLANS_SALE:"plans/sale",REACT_APP_PLANS_MERCHANDISE:"plans/merchandise",REACT_APP_CHOSE_PLAN:"modulos/seguridad/elegir-plan.aspx",REACT_APP_PLANS_INVENTARIES:"inventaries",REACT_APP_PEOPLE:"people",REACT_APP_PEOPLE_BTN:"personase.aspx?tipo=c?",REACT_APP_TREASURY_BANK:"/v3/treasury/banks",REACT_APP_TREASURY:"/v3/treasury",REACT_APP_EDIT_ENTITY:"/v3/treasury/banks?id=",REACT_APP_ENTITY_SAVE:"treasury/financialinstitutions",REACT_APP_ENTITY_GET_ENTITY:"treasury/financialinstitutions/",REACT_APP_ACCOUNT_PLAN:"treasury/accountsplan",REACT_APP_CURRENCIES:"currencies",REACT_APP_CURRENCY:"currencies",REACT_APP_MULTI_CURRENCY_ACTIVATION:"/currency/bicurrencyActivation",REACT_APP_MULTI_CURRENCY_ACTIVATION_STATUS:"/currency/bicurrencyActivationStatus",REACT_APP_FUNCTIONALITIES:"/v3/functionalities",REACT_APP_USER_CONFIGURATION:"users/config",REACT_APP_EMBED:"https://embed-148202430.sleekplan.app",REACT_APP_EMBED_NOVEDADES:"https://embed-148202430.sleekplan.app/#/changelog?sso=",REACT_APP_EMBED_SUGERENCIAS:"https://embed-148202430.sleekplan.app/#/feedback?sso=",REACT_APP_EMBED_MEJORAS:"https://embed-148202430.sleekplan.app/#/roadmap?sso=",REACT_APP_SLEEK_PLAN_SSO:"sleekplan/sso",REACT_APP_HEADINGS_BTN:"rubros.aspx",REACT_APP_TUTORIAL_AR:"https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_UY:"https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_CL:"https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_PY:"https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_VARIA
1NTS_AR:"https://ayuda.contabilium.com/hc/es/articles/53049668996115-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_CL:"https://ayuda.contabilium.cl/hc/es/articles/53049812639507-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_UY:"https://ayuda.contabilium.com.uy/hc/es/articles/53049919361171-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_PY:"https://ayuda.contabilium.com.py/hc/es-419/articles/53049831908499-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_LABEL_PRINTING:"/v3/labelPrinting",REACT_APP_LABELS:"labels",REACT_APP_SHOW_LABEL_PRINTING:"true",REACT_APP_ADD_NEW:"/v3/attributes/addNew",REACT_APP_ATTIBUTES:"/v3/attributes",REACT_APP_ATTRIBUTES:"/v3/attributes/creation",REACT_APP_EDITION_ATTRIBUTES:"/v3/attributes/edition",REACT_APP_SHOW_ATRIBUTES:"true",REACT_APP_SHOW_FUNCTIONALITIES:"true",REACT_APP_SHOW_EDITION_ATTRIBUTES:"true",REACT_APP_SHOW_CREATE_ATTRIBUTES:"true",REACT_APP_USE_PRODUCT_PRESENTATIONS:"false",REACT_APP_PRESENTATIONS:"presentations",REACT_APP_CONCEPT_PRESENTATIONS:"concept-presentations",REACT_APP_ADD_PRODUCT:"products",REACT_APP_ADD_SERVICES:"services",REACT_APP_ADD_COMBO:"combos",REACT_APP_ADD_ATTRIBUTES:"attributes",REACT_APP_STEP_VALIDATOR:"step",REACT_APP_ADD_VARIANT:"variants",REACT_APP_CONCEPTS_FILTER:"concepts/filter",REACT_APP_CONCEPTS_ID:"concepts",REACT_APP_HEADINGS:"headings",REACT_APP_SUBHEADINGS:"/subheadings",REACT_APP_STOCK_INVENTORY:"/stock",REACT_APP_USER_ADDITIONAL:"users/additionals",REACT_APP_BUDGETS:"/v3/budgets",REACT_APP_BUDGETS_EDITION:"/v3/budgets/edition/",REACT_APP_BUDGETS_CREATION:"/v3/budgets/addNew",REACT_APP_USER_OBSERVATIONS_CONFIG:"/users/observations",REACT_APP_BUDGETS_NUMBER:"budgets/lastNumber",REACT_APP_BUDGETS_WITHOUTIVA:"true",REACT_APP_SHOW_BUDGETS:"true",REACT_APP_SHOW_CREATE_BUDGETS:"true",REACT_APP_GET_BUDGETS:"budgets",REACT_APP_BULK_IMPORT:"/v3/bulkImport",REACT_APP_BULK_START:"/v3/bulkImport/start",REACT_APP_BULK_IMPORT_VARIANT:"/v3/bulkImportVariant",REACT_APP_BULK_IMPORT_VARIANT_START:"/v3/bulkImportVariant/start",REACT_APP_USERS:"users",REACT_APP_LIMITATION:"limitations",REACT_APP_ADD_USAGE_LIMITATION:"addUsage",REACT_APP_SUB_USAGE_LIMITATION:"subUsage",REACT_APP_LIMITED_PLANS_START_DATE:"2025-03-05",REACT_APP_SEND_BUDGETS_MAIL:"/budgets/sendmail",REACT_APP_IVA_RATES:"/rates",REACT_APP_INVOICE_ROUTE:"/v3/invoice",REACT_APP_INVOICE_CREATION_ROUTE:"/v3/invoice/addNew",REACT_APP_INVOICE:"receipt",REACT_APP_SHOW_INVOICE:"false",REACT_APP_INVOICE_NET:"comprobantes.aspx",REACT_APP_CREATE_INVOICE_NET:"comprobantese.aspx",REACT_APP_INVOICE_DELETE:"/delete",REACT_APP_INVOICE_NC:"/guardarNC",REACT_APP_ADD_NC:"/ObtenerComprobanteParaNC",REACT_APP_EXPORT_PDF:"export-pdf",REACT_APP_INVOICE_NEXT_NUMBER:"next-number",REACT_APP_GET_COUNTRIES:"countries",REACT_APP_GET_PROVINCES:"provinces",REACT_APP_GET_CITIES:"cities",REACT_APP_SALE_POINT:"sale-point",REACT_APP_SALE_ORDERS:"sale-orders",REACT_APP_SALE_ORDERS_COSTUMERS:"customers",REACT_APP_COST_CENTER:"category",REACT_APP_PROVINCES:"provinces",REACT_APP_ACCOUNT_LOGIN:"login",REACT_APP_CHANGE_RECOVER:"/v3/login/recoverpass",REACT_APP_CHANGERECOVER:"password/recovery",REACT_APP_SEND_EMAIL:"/v3/login/recovermailsend",REACT_APP_LANDING_AR:"https://home.contabilium.com/comunicacion-clientes-ar",REACT_APP_LANDING_CL:"https://home.contabilium.com/comunicacion-clientes-cl",REACT_APP_LANDING_UY:"https://home.contabilium.com/comunicacion-clientes-uy",REACT_APP_LANDING_PY:"https://home.contabilium.com/comunicacion-clientes-cl",REACT_APP_MAIL_AUTH:"/v3/login/mailauth",REACT_APP_LOGIN_MFA_AUTH:"/v3/login/login-mfa",REACT_APP_LOGIN_MFA_SUCCESS_AUTH:"/v3/login/login-successauth",REACT_APP_LINK:"/v3/login/link",REACT_APP_LOGOUT:"logout",REACT_APP_CHANGE_PASSWORD:"/v3/login/changepass",REACT_APP_COMPLETE_PASS:"/v3/login/completepass",REACT_APP_LOGIN:"/v3/login/",REACT_APP_LANDING_REGISTER_AR:"https://contabilium.com/registrate-gratis?from=ar&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_CL:"https://contabilium.com/registrate-gratis?from=cl&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_UY:"https://contabilium.com/registrate-gratis?from=uy&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_PY:"https://contabilium.com/registrate-gratis?from=py&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_BASE_URL_IMAGES:"https://app.contabilium.com/v3/login/images/",REACT_APP_CHANGEPASSWORD:"password/recovery/change",REACT_APP_SUCCESS_AUTH:"/v3/login/successauth",REACT_APP_CONFIRM_EMAIL:"/v3/login/confirmemail",REACT_APP_RESEND_CODE:"register/send_activation_code",REACT_APP_SEND_OTP_CODE:"login/send_otp_code",REACT_APP_VALIDATE_OTP_CODE:"login/validate_otp",REACT_APP_REFRESH_JWT:"login/refresh_jwt",REACT_APP_CODE:"login/validate_code",REACT_APP_API_CHANGE_EMAIL:"profile/modify_email",REACT_APP_CHECK_LINK:"/v3/login/checklink",REACT_APP_EXPIRE_PASSWORD:"/v3/login/expiredpass",REACT_APP_VALIDATE_LINK:"password/recovery/check_secret",REACT_APP_DASHBOARD_V3:"/v3/dashboard",REACT_APP_V2_VALIDATE_USER_LOGIN_AR:"https://app.contabilium.com/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_CL:"https://app.contabilium.cl/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_UY:"https://app.contabilium.com.uy/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_PY:"https://app.contabilium.com.py/v3/login/mailauth",REACT_APP_V1_AR:"https://app.contabilium.com/",REACT_APP_V1_CL:"https://app.contabilium.cl/",REACT_APP_V1_UY:"https://app.contabilium.com.uy/",REACT_APP_V1_PY:"https://app.contabilium.com.py/",REACT_APP_ACCOUNT_PAY:"dashboard/get_pending_bills",REACT_APP_PENDING_PAYMENT:"dashboard/get_pending_payment",REACT_APP_SAVING_BANKS:"dashboard/get_saving_banks",REACT_APP_COMPARATIVE_SALES:"dashboard/comparativesales",REACT_APP_ANNUAL_SALES:"dashboard/annualsales",REACT_APP_SALES_BUYS:"dashboard/salesvsbuys",REACT_APP_EXPIRED_PLAN:"dashboard/expiredplannotifications",REACT_APP_SHOW_DASHBOARD_AR_V3:"false",REACT_APP_DAYS_EXPIRED_FREETRIAL:"0",REACT_APP_DAYS_EXPIRED_AR:"30",REACT_APP_DAYS_EXPIRED_CL_UY:"7",REACT_APP_COMMON_NET:"common.aspx",REACT_APP_CREATE_CLIENTS_NET:"/CrearPersona",REACT_APP_GET_AFIP_DATA_NET:"/ObtenerDatosAfipPersona",REACT_APP_GET_REGIO_DATA_NET:"/ObtenerDatosDeEmisorReceptorNoArgentinos",REACT_APP_ACCOUNT:"/v3/account",REACT_APP_SHOW_ACCOUNT:"true",REACT_APP_SHOW_PRODUCT_FIELDS:"true",REACT_APP_ACCOUNT_CURRENCY:"/currency",REACT_APP_ACCOUNT_ADDITIONAL_COMPANY:"/additionalCompany",REACT_APP_ACCOUNT_ADDITIONAL_COMPANY_ADDIN:"users/hasAddins",REACT_APP_ACCOUNT_NOTIFICATIONS:"/notifications",REACT_APP_ACCOUNT_PRODUCT_FIELDS:"/productFields",REACT_APP_REPORTS:"/reports",REACT_APP_GET_ADDINS:"users/showAddin",REACT_APP_USER_PROMOTIONS:"61278",REACT_APP_FLAGSMITH_KEY:"",REACT_APP_FLAGSMITH_URL:"https://edge.api.flagsmith.com/api/v1"}).REACT_APP_V1+"modulos/compras/pagose.aspx?ID="+e.idGeneratedAlert)},underline:"none",children:[Object(p.jsx)(ro.a,{secondary:Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(S.a,{sx:{display:"inline",color:"#666"},component:"span"}),Object(p.jsx)("span",{className:h.title,children:e.message})]})}),Object(p.jsx)("span",{className:h.caption,value:e.id,onClick:()=>{((e,t)=>
1{const a=(new L.a).get("Secure-1CBL");fetch(Object(aa.a)()+"dashboard/readnotification",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({IdAlert:e})}).then((e=>{co(Object({NODE_ENV:"production",PUBLIC_URL:"/v3",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BASE:"https://vir-internalapi.contabilium.com/api/",REACT_APP_BASE_CL:"https://vir-internalapi.contabilium.cl/api/",REACT_APP_BASE_UY:"https://vir-internalapi.contabilium.com.uy/api/",REACT_APP_BASE_PY:"https://vir-internalapi.contabilium.com.py/api/",REACT_APP_BASE_HOST:"https://app.contabilium.com/",REACT_APP_BASE_HOST_CL:"https://app.contabilium.cl/",REACT_APP_BASE_HOST_UY:"https://app.contabilium.com.uy/",REACT_APP_BASE_HOST_PY:"https://app.contabilium.com.py/",REACT_APP_BASE_AR_HOME:"https://app.contabilium.com/v3/dashboard",REACT_APP_VALIDATE:"https://app.contabilium.com/v3/login/mailauth",REACT_APP_PLAN_EXPIRED_ADMIN:"modulos/seguridad/elegir-plan.aspx",REACT_APP_PLAN_EXPIRED:"modulos/seguridad/pago-pendiente-hijo.aspx",REACT_APP_BANNER:"message/banner",REACT_APP_AMPLITUDE:"3fd99627cc179983dc296b7c86c0c182",REACT_APP_DASHBOARD:"v3/dashboard",REACT_APP_NOTIFICATIONS:"dashboard/get_notifications",REACT_APP_READ_NOTIFICACION:"dashboard/readnotification",REACT_APP_COMPANIESLIST:"company/list",REACT_APP_CHANCE_COMPANY:"company/changecompany",REACT_APP_CREATE_COMPANY:"users/addChildUsers",REACT_APP_INACTIVATE_COMPANY:"users/inactivateChildUser",REACT_APP_BANK:"banks",REACT_APP_PERMISION:"permissions",REACT_APP_GET_CHANGE_TYPE:"dashboard/get_change_type",REACT_APP_PUT_CHANGE_TYPE:"dashboard/changeType",REACT_APP_SALE_CHANGE_TYPE:"dashboard/get_change_type",REACT_APP_SALE_CONDITIONS:"sale-condition",REACT_APP_BASE_URL_AR:"v3/login",REACT_APP_BASE_URL_CL:"v3/login",REACT_APP_BASE_URL_UY:"v3/login",REACT_APP_BASE_URL_PY:"v3/login",REACT_APP_BASE_URL_AR_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_CL_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_UY_LOG_OUT:"v3/login?logOut=true",REACT_APP_BASE_URL_PY_LOG_OUT:"v3/login?logOut=true",REACT_APP_VALIDATE_JWT:"login/validate_jwt",REACT_APP_PLANS_PURCHASE:"plans/purchase",REACT_APP_PLANS_SALE:"plans/sale",REACT_APP_PLANS_MERCHANDISE:"plans/merchandise",REACT_APP_CHOSE_PLAN:"modulos/seguridad/elegir-plan.aspx",REACT_APP_PLANS_INVENTARIES:"inventaries",REACT_APP_PEOPLE:"people",REACT_APP_PEOPLE_BTN:"personase.aspx?tipo=c?",REACT_APP_TREASURY_BANK:"/v3/treasury/banks",REACT_APP_TREASURY:"/v3/treasury",REACT_APP_EDIT_ENTITY:"/v3/treasury/banks?id=",REACT_APP_ENTITY_SAVE:"treasury/financialinstitutions",REACT_APP_ENTITY_GET_ENTITY:"treasury/financialinstitutions/",REACT_APP_ACCOUNT_PLAN:"treasury/accountsplan",REACT_APP_CURRENCIES:"currencies",REACT_APP_CURRENCY:"currencies",REACT_APP_MULTI_CURRENCY_ACTIVATION:"/currency/bicurrencyActivation",REACT_APP_MULTI_CURRENCY_ACTIVATION_STATUS:"/currency/bicurrencyActivationStatus",REACT_APP_FUNCTIONALITIES:"/v3/functionalities",REACT_APP_USER_CONFIGURATION:"users/config",REACT_APP_EMBED:"https://embed-148202430.sleekplan.app",REACT_APP_EMBED_NOVEDADES:"https://embed-148202430.sleekplan.app/#/changelog?sso=",REACT_APP_EMBED_SUGERENCIAS:"https://embed-148202430.sleekplan.app/#/feedback?sso=",REACT_APP_EMBED_MEJORAS:"https://embed-148202430.sleekplan.app/#/roadmap?sso=",REACT_APP_SLEEK_PLAN_SSO:"sleekplan/sso",REACT_APP_HEADINGS_BTN:"rubros.aspx",REACT_APP_TUTORIAL_AR:"https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_UY:"https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_CL:"https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_PY:"https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium",REACT_APP_TUTORIAL_VARIANTS_AR:"https://ayuda.contabilium.com/hc/es/articles/53049668996115-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_CL:"https://ayuda.contabilium.cl/hc/es/articles/53049812639507-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIA
1NTS_UY:"https://ayuda.contabilium.com.uy/hc/es/articles/53049919361171-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_TUTORIAL_VARIANTS_PY:"https://ayuda.contabilium.com.py/hc/es-419/articles/53049831908499-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",REACT_APP_LABEL_PRINTING:"/v3/labelPrinting",REACT_APP_LABELS:"labels",REACT_APP_SHOW_LABEL_PRINTING:"true",REACT_APP_ADD_NEW:"/v3/attributes/addNew",REACT_APP_ATTIBUTES:"/v3/attributes",REACT_APP_ATTRIBUTES:"/v3/attributes/creation",REACT_APP_EDITION_ATTRIBUTES:"/v3/attributes/edition",REACT_APP_SHOW_ATRIBUTES:"true",REACT_APP_SHOW_FUNCTIONALITIES:"true",REACT_APP_SHOW_EDITION_ATTRIBUTES:"true",REACT_APP_SHOW_CREATE_ATTRIBUTES:"true",REACT_APP_USE_PRODUCT_PRESENTATIONS:"false",REACT_APP_PRESENTATIONS:"presentations",REACT_APP_CONCEPT_PRESENTATIONS:"concept-presentations",REACT_APP_ADD_PRODUCT:"products",REACT_APP_ADD_SERVICES:"services",REACT_APP_ADD_COMBO:"combos",REACT_APP_ADD_ATTRIBUTES:"attributes",REACT_APP_STEP_VALIDATOR:"step",REACT_APP_ADD_VARIANT:"variants",REACT_APP_CONCEPTS_FILTER:"concepts/filter",REACT_APP_CONCEPTS_ID:"concepts",REACT_APP_HEADINGS:"headings",REACT_APP_SUBHEADINGS:"/subheadings",REACT_APP_STOCK_INVENTORY:"/stock",REACT_APP_USER_ADDITIONAL:"users/additionals",REACT_APP_BUDGETS:"/v3/budgets",REACT_APP_BUDGETS_EDITION:"/v3/budgets/edition/",REACT_APP_BUDGETS_CREATION:"/v3/budgets/addNew",REACT_APP_USER_OBSERVATIONS_CONFIG:"/users/observations",REACT_APP_BUDGETS_NUMBER:"budgets/lastNumber",REACT_APP_BUDGETS_WITHOUTIVA:"true",REACT_APP_SHOW_BUDGETS:"true",REACT_APP_SHOW_CREATE_BUDGETS:"true",REACT_APP_GET_BUDGETS:"budgets",REACT_APP_BULK_IMPORT:"/v3/bulkImport",REACT_APP_BULK_START:"/v3/bulkImport/start",REACT_APP_BULK_IMPORT_VARIANT:"/v3/bulkImportVariant",REACT_APP_BULK_IMPORT_VARIANT_START:"/v3/bulkImportVariant/start",REACT_APP_USERS:"users",REACT_APP_LIMITATION:"limitations",REACT_APP_ADD_USAGE_LIMITATION:"addUsage",REACT_APP_SUB_USAGE_LIMITATION:"subUsage",REACT_APP_LIMITED_PLANS_START_DATE:"2025-03-05",REACT_APP_SEND_BUDGETS_MAIL:"/budgets/sendmail",REACT_APP_IVA_RATES:"/rates",REACT_APP_INVOICE_ROUTE:"/v3/invoice",REACT_APP_INVOICE_CREATION_ROUTE:"/v3/invoice/addNew",REACT_APP_INVOICE:"receipt",REACT_APP_SHOW_INVOICE:"false",REACT_APP_INVOICE_NET:"comprobantes.aspx",REACT_APP_CREATE_INVOICE_NET:"comprobantese.aspx",REACT_APP_INVOICE_DELETE:"/delete",REACT_APP_INVOICE_NC:"/guardarNC",REACT_APP_ADD_NC:"/ObtenerComprobanteParaNC",REACT_APP_EXPORT_PDF:"export-pdf",REACT_APP_INVOICE_NEXT_NUMBER:"next-number",REACT_APP_GET_COUNTRIES:"countries",REACT_APP_GET_PROVINCES:"provinces",REACT_APP_GET_CITIES:"cities",REACT_APP_SALE_POINT:"sale-point",REACT_APP_SALE_ORDERS:"sale-orders",REACT_APP_SALE_ORDERS_COSTUMERS:"customers",REACT_APP_COST_CENTER:"category",REACT_APP_PROVINCES:"provinces",REACT_APP_ACCOUNT_LOGIN:"login",REACT_APP_CHANGE_RECOVER:"/v3/login/recoverpass",REACT_APP_CHANGERECOVER:"password/recovery",REACT_APP_SEND_EMAIL:"/v3/login/recovermailsend",REACT_APP_LANDING_AR:"https://home.contabilium.com/comunicacion-clientes-ar",REACT_APP_LANDING_CL:"https://home.contabilium.com/comunicacion-clientes-cl",REACT_APP_LANDING_UY:"https://home.contabilium.com/comunicacion-clientes-uy",REACT_APP_LANDING_PY:"https://home.contabilium.com/comunicacion-clientes-cl",REACT_APP_MAIL_AUTH:"/v3/login/mailauth",REACT_APP_LOGIN_MFA_AUTH:"/v3/login/login-mfa",REACT_APP_LOGIN_MFA_SUCCESS_AUTH:"/v3/login/login-successauth",REACT_APP_LINK:"/v3/login/link",REACT_APP_LOGOUT:"logout",REACT_APP_CHANGE_PASSWORD:"/v3/login/changepass",REACT_APP_COMPLETE_PASS:"/v3/login/completepass",REACT_APP_LOGIN:"/v3/login/",REACT_APP_LANDING_REGISTER_AR:"https://contabilium.com/registrate-gratis?from=ar&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_CL:"https://contabilium.com/registrate-gratis?from=cl&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_UY:"https://contabilium.com/registrate-gratis?from=uy&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_LANDING_REGISTER_PY:"https://contabilium.com/registrate-gratis?from=py&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita",REACT_APP_BASE_URL_IMAGES:"https://app.contabilium.com/v3/login/images/",REACT_APP_CHANGEPASSWORD:"password/recovery/change",REACT_APP_SUCCESS_AUTH:"/v3/login/successauth",REACT_APP_CONFIRM_EMAIL:"/v3/login/confirmemail",REACT_APP_RESEND_CODE:"register/send_activation_code",REACT_APP_SEND_OTP_CODE:"login/send_otp_code",REACT_APP_VALIDATE_OTP_CODE:"login/validate_otp",REACT_APP_REFRESH_JWT:"login/refresh_jwt",REACT_APP_CODE:"login/validate_code",REACT_APP_API_CHANGE_EMAIL:"profile/modify_email",REACT_APP_CHECK_LINK:"/v3/login/checklink",REACT_APP_EXPIRE_PASSWORD:"/v3/login/expiredpass",REACT_APP_VALIDATE_LINK:"password/recovery/check_secret",REACT_APP_DASHBOARD_V3:"/v3/dashboard",REACT_APP_V2_VALIDATE_USER_LOGIN_AR:"https://app.contabilium.com/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_CL:"https://app.contabilium.cl/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_UY:"https://app.contabilium.com.uy/v3/login/mailauth",REACT_APP_V2_VALIDATE_USER_LOGIN_PY:"https://app.contabilium.com.py/v3/login/mailauth",REACT_APP_V1_AR:"https://app.contabilium.com/",REACT_APP_V1_CL:"https://app.contabilium.cl/",REACT_APP_V1_UY:"https://app.contabilium.com.uy/",REACT_APP_V1_PY:"https://app.contabilium.com.py/",REACT_APP_ACCOUNT_PAY:"dashboard/get_pending_bills",REACT_APP_PENDING_PAYMENT:"dashboard/get_pending_payment",REACT_APP_SAVING_BANKS:"dashboard/get_saving_banks",REACT_APP_COMPARATIVE_SALES:"dashboard/comparativesales",REACT_APP_ANNUAL_SALES:"dashboard/annualsales",REACT_APP_SALES_BUYS:"dashboard/salesvsbuys",REACT_APP_EXPIRED_PLAN:"dashboard/expiredplannotifications",REACT_APP_SHOW_DASHBOARD_AR_V3:"false",REACT_APP_DAYS_EXPIRED_FREETRIAL:"0",REACT_APP_DAYS_EXPIRED_AR:"30",REACT_APP_DAYS_EXPIRED_CL_UY:"7",REACT_APP_COMMON_NET:"common.aspx",REACT_APP_CREATE_CLIENTS_NET:"/CrearPersona",REACT_APP_GET_AFIP_DATA_NET:"/ObtenerDatosAfipPersona",REACT_APP_GET_REGIO_DATA_NET:"/ObtenerDatosDeEmisorReceptorNoArgentinos",REACT_APP_ACCOUNT:"/v3/account",REACT_APP_SHOW_ACCOUNT:"true",REACT_APP_SHOW_PRODUCT_FIELDS:"true",REACT_APP_ACCOUNT_CURRENCY:"/currency",REACT_APP_ACCOUNT_ADDITIONAL_COMPANY:"/additionalCompany",REACT_APP_ACCOUNT_ADDITIONAL_COMPANY_ADDIN:"users/hasAddins",REACT_APP_ACCOUNT_NOTIFICATIONS:"/notifications",REACT_APP_ACCOUNT_PRODUCT_FIELDS:"/productFields",REACT_APP_REPORTS:"/reports",REACT_APP_GET_ADDINS:"users/showAddin",REACT_APP_USER_PROMOTIONS:"61278",REACT_APP_FLAGSMITH_KEY:"",REACT_APP_FLAGSMITH_URL:"https://edge.api.flagsmith.com/api/v1"}).REACT_APP_V1+"/modulos/compras/pagose.aspx?ID="+t)}
1)).catch((e=>{console.log(e)}))})(e.id,e.idGeneratedAlert)},children:"Has click para ocultar las alertas."})]})},t))),0!==Object.keys(u).length&&Object(p.jsx)(no.a,{onClick:()=>{co((()=>{const e=uo();return(e.endsWith("/")?e.slice(0,-1):e)+"/modulos/seguridad/elegir-plan.aspx"})())},sx:{cursor:"pointer"},children:Object(p.jsx)(so.a,{to:"#",underline:"none",children:Object(p.jsx)(ro.a,{primary:`Pagar plan ${g}`,secondary:Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(S.a,{sx:{display:"inline",color:"#666"},component:"span"}),Object(p.jsx)("span",{className:"title",children:r.message})]})})})}),0===a.length&&0===Object.keys(u).length&&Object(p.jsx)(no.a,{children:Object(p.jsx)(so.a,{to:"#",underline:"none",children:Object(p.jsx)(ro.a,{primary:"",secondary:Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(S.a,{sx:{display:"inline",color:"#666"},component:"span"}),Object(p.jsx)("span",{className:"title",children:"No hay mensajes nuevos"})]})})})})]})})]})]})}const go=Object(u.a)((e=>({button:{backgroundColor:"#3c52b2",color:"#fff","&:hover":{backgroundColor:"#fff",color:" #f1f1f1"}},popover:{"&.MuiPopover-root":{}},popoverText:{borderRadius:"10px 0 10px 10px",fontWeight:"600px!important","& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"},"& .MuiTypography-root .MuiTypography-body1 ":{fontWeight:"600px"},"& .MuiTypography-body1:hover":{color:"#3c52b2"}},toolHover:{"& li":{"&:hover":{"& .MuiTypography-body1":{color:`${ui.a.disabled} !important`}}}},customBadge:{backgroundColor:"#FF2569",color:"white",fontSize:"12px!important",fontFamily:"Work Sans, sans-serif!important"},span:{"& .MuiBadge-badge":{fontFamily:"Work Sans, sans-serif"}},icon:{content:"",width:"8px",height:"8px",transform:"rotate(-225deg)",borderBottom:"solid 2px #8f8f8f",borderRight:"solid 2px #8f8f8f",position:"absolute",fontSize:"12px",color:"#777",top:"20px",marginLeft:"15px"},icon2:{content:"",width:"8px",height:"8px",transform:"rotate(-45deg)",borderBottom:"solid 2px #8f8f8f",borderRight:"solid 2px #8f8f8f",position:"absolute",fontSize:"12px",color:"#777",top:"50%",marginLeft:"15px",right:"5px",marginTop:"-3px"},select1:{width:260,transition:"all ease .4s"}})));function bo(e){let{country:t="ar",plan:a="",filesExplorer:o="",alertConfig:n="",trackingHours:r="",bulkImportClients:s="",bulkImportSuppliers:l="",bulkImportProducts:d="",bulkImportProductsVariants:u="",showVariantsImport:m=!1,bulkImportCombos:g="",bulkImportServices:b="",bulkImportSimpleInvoices:h="",bulkImportSimpleInvoicesItems:x="",bulkImportVouchers:f="",bulkImportDetailVouchers:j="",bulkImportAccountPlan:A="",bulkImportAccountingEntries:C="",bulkImportBankMovements:y="",bulkImportPriceRules:E="",bulkImportBudgets:I="",hasPermission:w=!0,handleModalClick:T=(()=>{})}=e;const[P,R]=i.useState(null),[N,k]=i.useState(!0),[B,D]=i.useState(!1),F=("ar"===t&&"Prueba"===a&&w[d],go()),M=Boolean(P),V=M?"simple-popover":void 0,W=()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));Object(c.b)("Herramientas",{userId:t.data.userId,tools:!0,planName:t.data.plan_name})};return Object(p.jsxs)(v.a,{children:[Object(p.jsx)(O.a,{id:"navbar-tools-button","aria-describedby":V,onClick:e=>{R(e.currentTarget),W()},disableRipple:!0,sx:{backgroundColor:"#fff",padding:"0",width:"45px",height:"45px",borderRadius:"50%",minWidth:"auto","&:hover":{backgroundColor:"#f1f1f1!important"}},children:Object(p.jsx)(mi,{viewBox:"0 0 35 35",style:{color:"#454545",width:"26.5px",height:"26.5px",cursor:"pointer"},name:"toolHeader"})}),Object(p.jsxs)(io.b,{id:V,open:M,anchorEl:P,onClose:()=>{R(null)},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:F.popover,sx:{"& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",fontSize:"13px",cursor:"pointer"},"& .MuiPaper-elevation8":{borderRadius:"10px 0 10px 10px",border:"solid 1px #C6C6C6",boxShadow:"0px 1px 5px 0px rgb(0 0 0 / 25%)",transition:"none!important"}},children:[!0===N&&Object(p.jsxs)(v.a,{className:F.select1,children:[Object(p.jsxs)(S.a,{sx:{p:"15px 15px 0 15px",fontFamily:"Work Sans, sans-serif"},style:{fontWeight:"600"},className:F.popoverText,children:[Ti.a.t("tools")," ",Object(p.jsx)("div",{classes:F.icon})]}),Object(p.jsx)(v.a,{style:{padding:"0 15px 10px 15px"},children:Object(p.jsxs)(oo.a,{style:{},sx:{"& .MuiListItem-root":{maxHeight:"47px",paddingLeft:"0",paddingBottom:"1px",paddingTop:"1px"},"& .MuiListSubheader-root":{lineHeight:"14px",paddingLeft:"0",paddingRight:"0",fontSize:"12px"},"& .MuiListItem-root ":{cursor:"pointer"},"& .MuiListItemText-root":{marginTop:"4px",marginBottom:"4px"},"& .MuiTypography-root .MuiTypography-body2":{fontFamily:"Work Sans, sans-serif",color:"#666",fontSize:"12px"},"& .css-fvc8ir-MuiBadge-badge":{fontFamily:"Work Sans, sans-serif!important"},"& .MuiTypography-body1":{"&:hover":{color:"#00A692"}},"& li":{"&:hover":{"& .MuiTypography-body1":{color:"#00A692"}}}},children:[Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - Explorador de Archivos"),T(e,o)},className:w[d]?null:F.toolHover,href:w[o]?"/file-explorer.aspx":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[o]?ui.a.textPrimary:ui.a.disabled},primary:o})})}),Object(p.jsx)(no.a,{onClick:()=>{k(!1),D(!0)},children:Object(p.jsxs)(so.a,{href:"#",underline:"none",children:[Object(p.jsx)(ro.a,{primary:"Importacion masiva",style:{color:ui.a.textPrimary}}),Object(p.jsx)("div",{className:F.icon2})]})}),!["cl","uy","py"].includes(t)&&Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - Tracking de Horas"),T(e,r)},className:w[d]?null:F.toolHover,href:w[r]?"/modulos/ventas/trackingHoras.aspx":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[r]?ui.a.textPrimary:ui.a.disabled},primary:r})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - Configurar Alertas"),T(e,n)},className:w[d]?null:F.toolHover,href:w[n]?"/alertas.aspx":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[n]?ui.a.textPrimary:ui.a.disabled},primary:n})})})]})})]}),!0===B&&Object(p.jsxs)(v.a,{className:F.select1,children:[Object(p.jsxs)(v.a,{onClick:()=>{k(!0),D(!1)},children:[Object(p.jsx)("div",{className:F.icon}),Object(p.jsx)(S.a,{sx:{p:"15px 15px 0 30px",fontFamily:"Work Sans, sans-serif","&:hover":{color:"#00A692"}},style:{fontWeight:"600"},className:F.popoverText,children:"Volver"})]}),Object(p.jsx)(v.a,{style:{padding:"0 15px 10px 15px"},children:Object(p.jsxs)(oo.a,{style:{},sx:{"& .MuiListItem-root":{maxHeight:"47px",paddingLeft:"0",paddingBottom:"1px",paddingTop:"1px"},"& .MuiListSubheader-root":{lineHeight:"14px",paddingLeft:"0",paddingRight:"0",fontSize:"12px"},"& .MuiListItem-root ":{cursor:"pointer"},"& .MuiListItemText-root":{marginTop:"4px",marginBottom:"4px"},"& .MuiTypography-root .MuiTypography-body2":{fontFamily:"Work Sans, sans-serif",color:"#666",fontSize:"12px"},"& .css-fvc8ir-MuiBadge-badge":{fontFamily:"Work Sans, sans-serif!important"},"& .MuiTypography-body1":{"&:hover":{color:"#00A692"}}," .MuiTypography-root MuiTypography-body1":{"&:hover":{color:"#00A692"}},"& li":{"&:hover":{"& .MuiTypography-body1":{color:"#00A692"}}}},children:[Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - Clientes"),T(e,s)},className:w[s]?null:F.toolHover,href:w[s]?"/importar.aspx?tipo=Clientes":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[s]?ui.a.textPrimary:ui.a.disabled},primary:s})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - Proveedores"),T(e,l)},className:w[l]?null:F.toolHover,href:w[l]?"/importar.aspx?tipo=Proveedores":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[l]?ui.a.textPrimary:ui.a.disabled},primary:l})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - Productos"),T(e,d)},href:w[d]?"/v3/bulkImport":"",className:w[d]?null:F.toolHover,underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[d]?ui.a.textPrimary:ui.a.disabled},primary:d})})}),m&&Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)(At),T(e,u)},href:w[u]?"/v3/bulkImportVariant":"",className:w[u]?null:F.toolHover,underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[u]?ui.a.textPrimary:ui.a.disabled},primary:u})})}),I&&Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - Rubros"),T(e,I)},className:w[I]?null:F.toolHover,href:w[I]?"/importar.aspx?tipo=Rubros":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[I]?ui.a.textPrimary:ui.a.disabled},primary:I})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - Combos"),T(e,g)},className:w[g]?null:F.toolHover,href:w[g]?"/importar.aspx?tipo=Combos":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[g]?ui.a.textPrimary:ui.a.disabled},primary:g})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - Servicios"),T(e,b)},className:w[b]?null:F.toolHover,href:w[b]?"/importar.aspx?tipo=Servicios":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[b]?ui.a.textPrimary:ui.a.disabled},primary:b})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - FactVentaSimple"),T(e,h)},className:w[h]?null:F.toolHover,href:w[h]?"/importar.aspx?tipo=Facturas":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[h]?ui.a.textPrimary:ui.a.disabled},primary:h})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - FactVentaItems"),T(e,x)},className:w[x]?null:F.toolHover,href:w[x]?"/importar.aspx?tipo=FacturasDetalle":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[x]?ui.a.textPrimary:ui.a.disabled},primary:x})})}),"ar"===t&&Object(p.jsx)(no.a,{children:Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - FactCompras"),T(e,f)},className:w[f]?null:F.toolHover,href:w[f]?"/importar.aspx?tipo=FacturasCompras":"",underline:"none",children:Object(p.jsx)(ro.a,{style:{color:w[f]?ui.a.textPrimary:ui.a.disabled},primary:f})})}),("cl"===t||"uy"===t||"py"===t)&&Object(p.jsx)(no.a,{children:Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - FactCompras"),T(e,f)},className:w[f]?null:F.toolHover,href:w[f]?"/importar.aspx?tipo=ComprasDetalle":"",underline:"none",children:Object(p.jsx)(ro.a,{style:{color:w[f]?ui.a.textPrimary:ui.a.disabled},primary:f})})}),"ar"===t&&Object(p.jsx)(no.a,{children:Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - FactComprasDetalle"),T(e,j)},className:w[j]?null:F.toolHover,href:w[j]?"/importar.aspx?tipo=ComprasDetalle":"",underline:"none",children:Object(p.jsx)(ro.a,{style:{color:w[j]?ui.a.textPrimary:ui.a.disabled},primary:j})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - PlanDeCuentas"),T(e,A)},className:w[A]?null:F.toolHover,href:w[A]?"/importar.aspx?tipo=PlanDeCuentas":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[A]?ui.a.textPrimary:ui.a.disabled},primary:A})})}),C&&Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - AsientosContables"),T(e,C)},className:w[C]?null:F.toolHover,href:w[C]?"/importar.aspx?tipo=AsientosContables":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[C]?ui.a.textPrimary:ui.a.disabled},primary:C})})}),Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - MovBancarios"),T(e,y)},className:w[y]?null:F.toolHover,href:w[y]?"/importar.aspx?tipo=MovimientosBancarios":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[y]?ui.a.textPrimary:ui.a.disabled},primary:y})})}),"ar"===t&&Object(p.jsx)(so.a,{onClick:e=>{Object(c.b)("Herramientas - ImpMasiva - Reglas de precios"),T(e,E)},className:w[E]?null:F.toolHover,href:w[E]?"/importar.aspx?tipo=ReglasPrecios":"",underline:"none",children:Object(p.jsx)(no.a,{children:Object(p.jsx)(ro.a,{style:{color:w[E]?ui.a.textPrimary:ui.a.disabled},primary:E})})})]})})]})]})]})}const ho=Object(u.a)((e=>({button:{backgroundColor:"#fff",padding:"0",width:"45px",height:"45px",borderRadius:"50%",minWidth:"auto",position:"relative","&:hover":{backgroundColor:"#f1f1f1!important"}},customBadge:{position:"absolute",top:"0",right:"-20px",backgroundColor:"#6C63FF",color:"white",fontSize:"11px",fontFamily:"Work Sans, sans-serif",fontWeight:"400",borderRadius:"12px",padding:"1.5px 6px",minWidth:"20px",height:"auto",minHeight:"15px",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,lineHeight:"1.2",whiteSpace:"nowrap","&::after":{content:'""',position:"absolute",bottom:"-4px",left:"6px",width:"8px",height:"8px",backgroundColor:"#6C63FF",clipPath:"pol
1ygon(0 0, 0 100%, 100% 0)"}}})));function xo(e){let{count:t=null,onClick:a=null}=e;const i=ho(),o=null!==t&&void 0!==t&&""!==t&&("string"===typeof t?""!==t.trim():t>0);return Object(p.jsxs)("div",{style:{position:"relative",display:"inline-block"},children:[Object(p.jsx)(O.a,{id:"navbar-trainings-button",onClick:e=>{e.preventDefault(),a&&a()},disableRipple:!0,className:i.button,sx:{backgroundColor:"#fff",padding:"0",width:"45px",height:"45px",borderRadius:"50%",minWidth:"auto","&:hover":{backgroundColor:"#f1f1f1!important"}},children:Object(p.jsx)(M,{name:"training",viewBox:"0 0 76 45",style:{color:"#454545",width:"25px",height:"25px",cursor:"pointer"}})}),o&&Object(p.jsx)("span",{className:i.customBadge,children:t})]})}var fo,vo,jo,Ao,Co,yo,Oo,So,Eo,Io,wo,To,Po;function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},Ro.apply(null,arguments)}function No(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",Ro({width:161,height:30,viewBox:"0 0 161 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,fo||(fo=i.createElement("path",{d:"M44.6097 7.01691C47.7866 7.01691 49.4231 8.84741 49.4231 8.84741L48.7493 9.86436C48.7493 9.86436 47.209 8.23724 44.6097 8.23724C41.4328 8.23724 39.2187 10.7796 39.2187 14.2372C39.2187 17.5932 41.4328 20.4406 44.706 20.4406C47.4015 20.4406 49.0381 18.5084 49.0381 18.5084L49.8082 19.5253C49.8082 19.5253 47.9791 21.7626 44.6097 21.7626C40.6627 21.7626 37.7746 18.5084 37.7746 14.3389C37.7746 10.1694 40.759 7.01691 44.6097 7.01691Z",fill:"#131313"})),vo||(vo=i.createElement("path",{d:"M58.0879 7.0169C61.9386 7.0169 64.923 10.1694 64.923 14.2372C64.923 18.4067 61.8424 21.6609 58.0879 21.6609C54.2372 21.6609 51.2528 18.4067 51.2528 14.2372C51.2528 10.2711 54.3334 7.0169 58.0879 7.0169ZM58.0879 20.4406C61.0722 20.4406 63.5752 17.7965 63.5752 14.2372C63.5752 10.8813 61.1685 8.23723 58.0879 8.23723C55.0073 8.23723 52.6006 10.7796 52.6006 14.2372C52.6006 17.7965 55.1036 20.4406 58.0879 20.4406Z",fill:"#131313"})),jo||(jo=i.createElement("path",{d:"M67.6184 7.32185H68.8698L75.7049 17.4913C76.1863 18.2032 76.8601 19.4235 76.8601 19.4235C76.8601 19.4235 76.7639 18.2032 76.7639 17.4913V7.32185H78.1116V21.5591H76.8601L69.9288 11.2879C69.4475 10.5761 68.7736 9.35575 68.7736 9.35575C68.7736 9.35575 68.8698 10.5761 68.8698 11.2879V21.5591H67.5221L67.6184 7.32185Z",fill:"#131313"})),Ao||(Ao=i.createElement("path",{d:"M84.6579 8.54219H79.8444V7.32185H90.819V8.54219H86.0056V21.5591H84.6579V8.54219Z",fill:"#131313"})),Co||(Co=i.createElement("path",{d:"M103.045 7.32185H107.666C109.784 7.32185 111.325 8.64388 111.325 10.8812C111.325 12.4066 110.651 13.4235 109.592 13.932C110.939 14.3388 111.806 15.7625 111.806 17.4913C111.806 20.0337 109.977 21.4574 107.763 21.4574H103.045V7.32185V7.32185ZM107.666 13.4235C109.014 13.4235 109.977 12.4066 109.977 10.8812C109.977 9.45744 109.11 8.4405 107.666 8.4405H104.393V13.4235H107.666ZM107.859 20.2371C109.495 20.2371 110.458 19.1184 110.458 17.4913C110.458 15.7625 109.399 14.6439 107.763 14.6439H104.297V20.2371H107.859Z",fill:"#131313"})),yo||(yo=i.createElement("path",{d:"M114.694 7.32185H116.041V21.5591H114.694V7.32185Z",fill:"#131313"})),Oo||(Oo=i.createElement("path",{d:"M119.507 7.32185H120.855V20.3388H127.112V21.5591H119.507V7.32185Z",fill:"#131313"})),So||(So=i.createElement("path",{d:"M129.133 7.32185H130.481V21.5591H129.133V7.32185Z",fill:"#131313"})),Eo||(Eo=i.createElement("path",{d:"M133.755 7.32185H135.103V16.5761C135.103 19.0167 136.643 20.5422 138.953 20.5422C141.264 20.5422 142.804 19.0167 142.804 16.5761V7.32185H144.152V16.5761C144.152 19.7286 142.034 21.7625 139.05 21.7625C135.969 21.7625 133.851 19.7286 133.851 16.5761L133.755 7.32185Z",fill:"#131313"})),Io||(Io=i.createElement("path",{d:"M148.099 7.32185H149.446L153.008 15.6608C153.297 16.3727 153.682 17.3896 153.682 17.3896C153.682 17.3896 154.067 16.3727 154.356 15.6608L157.918 7.32185H159.266L160.325 21.5591H158.977L158.207 11.593C158.111 10.7795 158.207 9.55914 158.207 9.55914C158.207 9.55914 157.822 10.7795 157.533 11.593L154.356 18.915H153.105L149.928 11.593C149.639 10.8812 149.158 9.55914 149.158 9.55914C149.158 9.55914 149.158 10.7795 149.158 11.593L148.387 21.5591H147.04L148.099 7.32185Z",fill:"#131313"})),wo||(wo=i.createElement("path",{d:"M96.3062 7.32185H94.8622L89.9525 21.5591H91.3965L92.3592 18.61V18.5083L92.8406 16.9828L93.2256 15.7625L95.0548 10.5761C95.2473 9.86422 95.5361 8.74558 95.5361 8.74558C95.5361 8.74558 95.8249 9.96591 96.0174 10.5
1761L97.1727 14.0337V14.1354L97.7503 15.7625L98.713 18.5083L99.7719 21.4574H101.216L96.3062 7.32185Z",fill:"#131313"})),To||(To=i.createElement("path",{d:"M2.92537 23.6948C1.77015 22.983 1 21.6609 1 20.1355V15.0508V13.6271L2.15522 14.4406L14.2851 21.8643L26.4149 14.4406C26.5112 14.4406 26.6074 14.4406 26.6074 14.4406C27.0888 14.4406 27.5701 14.8474 27.5701 15.4576V20.3389C27.5701 21.6609 26.8963 22.8813 25.8373 23.5931L16.2104 29.3897C15.6328 29.7965 14.9589 29.9999 14.1888 29.9999C13.5149 29.9999 12.841 29.7965 12.2634 29.4914L2.92537 23.6948Z",fill:"#FF2569"})),Po||(Po=i.createElement("path",{d:"M2.93268 14.9491L8.13118 11.7966L14.1961 8.13557L20.0685 11.6949C20.261 11.7966 20.5498 11.8983 20.8386 11.8983C21.0312 11.8983 21.2237 11.8983 21.4163 11.7966L26.8073 8.84743C27.1924 8.74574 27.4812 8.33896 27.4812 7.93218C27.4812 7.5254 27.1924 7.22032 26.9036 7.01693L16.1215 0.508473C15.5439 0.203389 14.87 0 14.1961 0C13.5222 0 12.8483 0.203389 12.2707 0.508473L2.93268 6.20337C1.77746 6.91524 1.00731 8.23727 1.00731 9.76269V18.5084C0.911038 16.983 1.77746 15.661 2.93268 14.9491Z",fill:"#00C7AF"})))}const Lo=i.forwardRef(No);a.p;var ko=a(265),Bo=a.n(ko);a(475);const Do="react-select2-wrapper";class Fo extends i.Component{constructor(e){super(e),this.el=null,this.forceUpdateValue=!1,this.initialRender=!0}componentDidMount(){this.initSelect2(this.props),this.updateValue()}componentWillReceiveProps(e){this.initialRender=!1,this.updSelect2(e)}componentDidUpdate(){this.updateValue()}componentWillUnmount(){this.destroySelect2()}initSelect2(e){const{options:t}=e;this.el=W()(r.a.findDOMNode(this)),this.forceUpdateValue&&this.updateSelect2Value(null),this.el.select2(this.prepareOptions(t)),this.attachEventHandlers(e)}updSelect2(e){const t=this.props;if(!Bo()(t.data,e.data))return this.forceUpdateValue=!0,this.destroySelect2(!1),void this.initSelect2(e);const{options:a}=e;Bo()(t.options,a)||this.el.select2(this.prepareOptions(a));e.events.some((a=>t[a[1]]!==e[a[1]]))&&(this.detachEventHandlers(),this.attachEventHandlers(e))}updateSelect2Value(e){this.el.off(`change.${Do}`).val(e).trigger("change");const t=this.props.onChange;t&&this.el.on(`change.${Do}`,t)}updateValue(){const{value:e,defaultValue:t,multiple:a}=this.props,i=this.prepareValue(e,t),o=a?this.el.val()||[]:this.el.val();this.fuzzyValuesEqual(o,i)&&!this.forceUpdateValue||(this.updateSelect2Value(i),this.initialRender||this.el.trigger("change"),this.forceUpdateValue=!1)}fuzzyValuesEqual(e,t){return null===e&&""===t||Bo()(e,t)}destroySelect2(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&this.detachEventHandlers(),this.el.select2("destroy"),this.el=null}attachEventHandlers(e){e.events.forEach((t=>{"undefined"!==typeof e[t[1]]&&this.el.on(t[0],e[t[1]])}))}detachEventHandlers(){this.props.events.forEach((e=>{"undefined"!==typeof this.props[e[1]]&&this.el.off(e[0])}))}prepareValue(e,t){return!("undefined"!==typeof e&&null!==e)&&"undefined"!==typeof t?t:e}prepareOptions(e){const t=e;return"string"===typeof t.dropdownParent&&(t.dropdownParent=W()(t.dropdownParent)),t}isObject(e){const t=typeof e;return"function"===t||e&&"object"===t||!1}makeOption(e){if(this.isObject(e)){const{id:t,text:a,...i}=e;return Object(p.jsx)("option",{value:t,...i,children:a},`option-${t}`)}return Object(p.jsx)("option",{value:e,children:e},`option-${e}`)}render(){const{data:e,value:t,...a}=this.props;return delete a.options,delete a.events,delete a.onOpen,delete a.onClose,delete a.onSelect,delete a.onChange,delete a.onUnselect,Object(p.jsx)("select",{...a,children:e.map(((e,t)=>{if(this.isObject(e)&&this.isObject(e.children)){const{children:a,text:i,...o}=e;return Object(p.jsx)("optgroup",{label:i,...o,children:a.map((e=>this.makeOption(e)))},`optgroup-${t}`)}return this.makeOption(e)}))})}}Fo.defaultProps={data:[],events:[[`change.${Do}`,"onChange"],[`select2:open.${Do}`,"onOpen"],[`select2:close.${Do}`,"onClose"],[`select2:select.${Do}`,"onSelect"],[`select2:unselect.${Do}`,"onUnselect"]],options:{},multiple:!1};const Mo=Object(u.a)((e=>({button:{backgroundColor:"#3c52b2",color:"#fff","&:hover":{backgroundColor:"#fff",color:"#3c52b2"}},popover:{"&.MuiPopover-root":{}},popoverText:{borderRadius:"10px 0 10px 10px",fontWeight:"600px!important","& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"},"& .MuiTypography-root .MuiTypography-body1 ":{fontWeight:"600px"},"& .MuiTypography-body1:hover":{color:"#3c52b2"}},customBadge:{backgroundColor:"#FF2569",color:"white",fontSize:"12px!important",fontFamily:"Work Sans, sans-serif!important"},span:{"& .MuiBadge-badge":{fontFamily:"Work Sans, sans-serif"}},icon:{content:"",width:"8px",height:"8px",transform:"rotate(-225deg)",borderBottom:"solid 2px #8f8f8f",borderRight:"solid 2px #8f8f8f",position:"absolute",fontSize:"12px",color:"#777",to
1p:"20px",marginLeft:"15px"},icon2:{content:"",width:"8px",height:"8px",transform:"rotate(-45deg)",borderBottom:"solid 2px #8f8f8f",borderRight:"solid 2px #8f8f8f",position:"absolute",fontSize:"12px",color:"#777",top:"50%",marginLeft:"15px",right:"5px",marginTop:"-3px"},select1:{width:260,transition:"all ease .4s"},companySearchContainer:{padding:"4px"},companySearch:{width:"100%",border:"1px solid #aaa"},companyContainer:{cursor:"pointer",maxWidth:"250px","&:hover":{backgroundColor:"#f1f1f1"},"@media (max-width: 1024px)":{maxWidth:"300px"}},companySelect:{"&:hover":{backgroundColor:"#f1f1f1",color:"#00A692"}},"&.MuiOutlinedInput-root":{"& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"}},"& .Mui-selected":{display:"none!important"},modalHeader:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",padding:"10px 35px 35px 35px"},modalAlert:{display:"inline-flex",backgroundColor:"rgba(251, 133, 0, 0.1)",color:"#A15600",fontFamily:"Work Sans, sans-serif",fontSize:"12px",border:"1px solid #FB8500",borderRadius:"4px",padding:"5px 10px 10px 5px",marginBottom:"20px",textAlign:"justify"},typographyModal:{alignSelf:"center",marginLeft:5},applyButton:{textTransform:"capitalize !important",backgroundColor:"#00A692 !important",border:"2px solid #2c9a8f !important",borderRadius:"50px !important",color:"#FFF !important",marginLeft:"5px !important",fontFamily:"Work Sans, sans-serif","&:hover":{backgroundColor:"#007868 !important",border:"2px solid #007868 !important"}},cancelButton:{textTransform:"capitalize !important",backgroundColor:"#FFF !important",border:"1px solid #8b8b8b !important",color:"#131313 !important",borderRadius:"50px !important",fontSize:"14px",padding:"6px 15px",fontFamily:"Work Sans, sans-serif","&:hover":{border:"1px solid #8b8b8b !important",backgroundColor:"#ebebeb !important",borderRadius:"50px !important"}},form:{padding:15,"&& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",fontSize:"16px",textAlign:"center"},"& .MuiInputBase-input":{fontFamily:"Work Sans, sans-serif"}},".css-ix1f03-MuiTypography-root":{fontFamily:"Work Sans, sans-serif",fontSize:"12px"},"& .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",fontSize:"16px"},"& \tinput":{height:"10px",paddingBottom:0,paddingTop:0},"& .MuiInputBase-root":{fontFamily:"Work Sans, sans-serif",lineHeight:1.4,fontSize:"15px"},"& \t.MuiInputBase-input":{fontFamily:"Work Sans, sans-serif",lineHeight:1.4,fontSize:"15px"},"& \t.MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",lineHeight:1.4,fontSize:"14px"},label:{marginBottom:"10px !important"},buttons:{"& .css-1e6y48t-MuiButtonBase-root-MuiButton-root":{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:"400 !important",padding:"6px 15px"}},gridModal:{justifyContent:"space-between"},iconx:{color:"#8C8C8C","&:hover":{color:"#666666"}},iconContainer:{width:"100%",display:"flex",justifyContent:"flex-end"},divider:{color:" #e5e5e5",backgroundColor:" #e5e5e5",opacity:"1"},fieldset:{border:"none"}}))),Vo=e=>{let{handleAccept:t,handleClose:a,isOpen:i,indexNameCompany:o}=e;const n=Mo();return Object(p.jsx)(w.a,{open:i,onClose:a,className:n.form,children:Object(p.jsx)(y.a,{sx:{position:"fixed",top:"120px",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"480px",bgcolor:"background.paper",border:"1px solid #e5e5e5",borderRadius:"5px",zIndex:1050,overflowX:"hidden",overflowY:"auto",fontFamily:"Work Sans, sans-serif"},children:Object(p.jsxs)(R.a,{variant:"standard",className:n.form,children:[Object(p.jsxs)(v.a,{container:!0,children:[Object(p.jsx)(v.a,{className:n.iconContainer,children:Object(p.jsx)(O.a,{onClick:a,disableRipple:!0,sx:{display:"flex",justifyContent:"flex-end"},children:Object(p.jsx)(mi,{name:"close",className:n.iconx})})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:n.gridModal,children:Object(p.jsxs)(S.a,{className:n.modalHeader,children:["\xbfEst\xe1 seguro que desea iniciar sesi\xf3n con la empresa"," ",o,"?"]})})]}),Object(p.jsx)(N.a,{className:n.divider}),Object(p.jsx)(v.a,{container:!0,justifyContent:"center",className:n.form,children:Object(p.jsxs)(v.a,{className:n.buttons,children:[Object(p.jsx)(O.a,{className:n.cancelButton,onClick:()=>{a()},disableRipple:!0,children:Object(p.jsx)("span",{style:{fontFamily:"Work Sans, sans-serif"},children:"Cancelar"})}),Object(p.jsx)(O.a,{className:n.applyButton,onClick:()=>{t()},disableRipple:!0,children:Object(p.jsx)("span",{style:{fontFamily:"Work Sans, sans-serif"},children:"Aceptar"})})]})})]})})})};function Wo(e){var t;const a=e.data,n=e.id||"company-selector-dropdown",[r,s]=o.a.useState(""),[l,d]=Object(i.useState)(""),[u,m]=Object(i.useState)(""),g=vi().props.value;Za.a.enterprise.id,Za.a.basicNew.id,Za.a.basic.id;Object(i.useEffect)((()=>
1{if(g){const e=g.country;"ar"===e?m("https://app.contabilium.com/"):"cl"===e?m("https://app.contabilium.cl/"):"uy"===e?m("https://app.contabilium.com.uy/"):"py"===e&&m("https://app.contabilium.com.py/")}}),[g]);const b=parseInt(null===g||void 0===g?void 0:g.userId);var h=a.filter((e=>(null===e||void 0===e?void 0:e.userId)!==b)).map((e=>{var t;return{id:null===e||void 0===e?void 0:e.userId,text:(null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.toUpperCase())+" - #"+e.userId}}));const[x,f]=o.a.useState(!1);return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(R.a,{sx:{width:"100%",heigh:"100%",legend:{display:"none"},borderRight:"1px solid #dddddd",borderLeft:"1px solid #dddddd","& .Mui-selected":{display:"none!important"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"},marginTop:"0px","& .MuiOutlinedInput-notchedOutline":{border:"none"}},children:[Object(p.jsx)(v.a,{children:Object(p.jsxs)(S.a,{style:{fontSize:"12px",fontFamily:"Work Sans, sans-serif",marginLeft:"12px",marginTop:"9px",position:"absolute"},children:[" ","Empresa actual:"]})}),Object(p.jsx)(Fo,{id:n,multiple:!1,defaultValue:1,data:h,onSelect:e=>{let t=e.target.value;s(e.target.value);for(var i=0;i<=a.length;i++)if(a[i].userId===parseInt(t)){const e=`${a[i].name} - #${a[i].userId}`;d(e);break}f(!0)},options:{placeholder:(null===(t=localStorage.getItem("Company"))||void 0===t?void 0:t.toLocaleUpperCase())||"",language:{noResults:function(){return"No se encontr\xf3 ning\xfan resultado"},searching:function(){return"Buscando.."}}}})]}),Object(p.jsx)(Vo,{handleAccept:()=>{f(!1);const e=new L.a,t=e.get("Secure-1CBL");fetch(Object(aa.a)()+"company/changecompany",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({userId:parseInt(r)})}).then((e=>e.json())).then((t=>{e.remove("Secure-1CBL"),e.set("Secure-1CBL",t.jwt,{path:"/"});let a=JSON.parse(Object(H.b)(t.jwt));localStorage.setItem("validated",a.data.verified),localStorage.setItem("Company",a.data.business_name),localStorage.setItem("email",a.data.email),localStorage.setItem("userAdd",a.data.is_additional),localStorage.setItem("parent",a.data.parent_id),localStorage.setItem("country_prod",a.data.country),localStorage.setItem("sign_up_date",a.data.sign_up_date),localStorage.setItem("userID_Product",a.data.userId),localStorage.setItem("promotion_code",a.data.promotion_code),localStorage.setItem("PF",!1),Object(c.d)(a.data.userId),Object(c.c)({userID:a.data.userId,username:a.data.email,email:a.data.email,plan:a.data.plan_name,Pais:"ar"===a.data.country?"Argentina":"cl"===a.data.country?"Chile":"py"===a.data.country?"Paraguay":"Uruguay",UsuarioAdicional:a.data.is_additional,padre:parseInt(a.data.parent_id)>0?parseInt(a.data.parent_id):0});t.jwt;"ar"===(null===g||void 0===g?void 0:g.country)?window.open("https://app.contabilium.com/v3/dashboard","_self"):window.open(u+"v3/dashboard","_self")})).catch((e=>{console.log(e)}))},handleClose:()=>f(!1),isOpen:x,indexNameCompany:l})]})}function Ho(e){let t=Ti.a.t("cuit");switch(e){case"com":case"ar":default:t=Ti.a.t("cuit");break;case"cl":case"uy":t=Ti.a.t("rut");break;case"py":t=Ti.a.t("ruc")}return t}var Uo,_o="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAGQAZADASIAAhEBAxEB/8QAHQABAAMBAQADAQAAAAAAAAAAAAYHCAUEAQIDCf/EAD4QAQABAgQBBwkGBAcBAAAAAAABAgMEBQYRBxIhMUFRYYEXIlVicZGTodITFCNCUsEVMoKxM0NEcpKy8Bb/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAgEDBAX/xAAbEQEBAQEBAQEBAAAAAAAAAAAAARECElFBMf/aAAwDAQACEQMRAD8A/oaA9b54AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVUUxNVUxERG8zPUjuacQtG5RVVRi89w9Vynpos73at+zzd9gSIQC7xt0bbnai1mN3vosU/vVBa426NuTtXazG1312Kf2qlmtyp+I7lfELRub1U0YTPsPTcq6KL29qrfs87bdIoqiqIqpmJiY3iY62sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEJ1pxSyfS9VeAwdMY/MaeabVNW1FqfXq7e6Of2OFxQ4mXMvru6b07f5OIjzcViaJ57fqUT+rtnq6OnopuZmqZqqmZmZ3mZ62WqnP13NQ631Lqaur+J5jX9jPRh7XmWo/pjp8d5cIErAAHd09rbUmma6ZyvMq4sxPPh7nn2p/pno8NpcIBoLRfFLJ9UVUYDGUxgMxq5ot1Vb0XZ9Srt9Wefs3TZkiJmmYqpmYmJ3iY6lycL+JlzMLlvTeor/KxE+bhcTXPPc9Suf1dk9fR09NSovPxaYDUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH8TdYzpTIppwlzbMMdvaw/bRH5rnhvG3fMJgzhxJ1BVqHVmLvUXOVh8LV92sdnJpnaZ8at58YZW8zUXqqqrqmuuqaqqp3mZneZl8Al0AAAAAAHzTVVRVFdFU01UzvExO0xL4AaJ4Zax/wDq8iinF3N8wwO1rEb9NcflueO0798T3Jezhw21BVp7VmEvV3OTh8VV92vx1cmqdonwq2nwlo9Uc+pgA1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADm6mzGco09mOZUztVh8Ncro/3cmeT89mWpmZneZ3mWi+Kl2bWhMzmnprpt0e+5Szmmr5AGKAAAAAAAAfMTMTvE7TDUumsxnN9P5dmVU71YjDW66/93JjlfPdllo3hXdm9oTK5q6aKblHuuVNiekrAUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABF+J2HnEaFzWmI56LdNz/jXTM/KGb2rc2wFGaZXjMtubcnFWK7M79XKpmN/myrfs3MPeuYe9TNNy1VNFdM9UxO0wmr5fQBigAAAAAAABpDhjh5w+hcqpmOeu3Vc/5V1THylnOxZuYm9bw9mmarl2qKKKY65mdohqrKcBRleV4TLbe3JwtiizG3XyaYj9mxPT1AKQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKC4v6bqybU1WZ2be2FzTe9ExHNF388e/ar+pfriaw0xhtW5Heyq/MUXJ/EsXZj/Dux0T7OmJ7pllbLlZiHpzLLsZlOOv5bmFmbWIw9c0XKJ6p/eOuJ64eZLoAAAAAAA9OW5djM2x1jLcvszdxGIrii3RHXP7R1zPVAJlwg03VnOpqczvW98Lle16ZmOabs/wAke/er+lfri6P0xhtJZHZyqxMV3I/Ev3Yj/EuT0z7OiI7oh2lRzt0AawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABDuIPD3Cawwv3rDTRYzSzTtauzHm3I/RX3dk9Sg80yrMMlxtzLs0wteHxFqfOorj5xPXHfHM1a5OotLZJqnC/dc4wcXOT/Jdp825bn1aur2dDLFTrGXRY+ouCue5fVVfyG/RmNjpi3VMUXY8J5qvCfBA8flOZ5VdmzmWX4jC1xO2123NP8AdK5deQAAevAZTmea3Is5bl+IxVczttatzV/ZPNOcFc9zCqm/n1+jLrE8826Ziu9PhHNT4z4BuIHleVZhnWNt5dleFrxGIuz5tFEfOZ6o755l+cPuHuE0fhvvWKmi/ml6na7dj+W3H6KO7tnrdvTulck0thfuuT4OLfK/xLtXnXLk+tV1+zo7nWVIi9aANSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPrdtWr9E271qi5RPTTVTExPhL7AOTf0lpbFTyr+nctrntn
1DUb/ANixpLS2FnlWNO5bRPbGGo3/ALOsA+tq1asURbs2qLdEdFNNMREeEPsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODnOu9J5DvRmGc2Iux/lWp+0r91O+3jsDvCr8y47ZVamqnKskxOImOiq9ci3HujlSj2L45anvbxhMvy/Dx301Vz852+TNb5q8Rn6vjHrmqd6cbhqO6nDU/uUcY9c0zvVjcNX3VYan9jW+a0CKOwnHLU9rmxeX5fiI7qKqJ+U7fJIMt475XdmmnNskxOHnrqs3IuR7p5Mms81aI4GTa70nn3Joy/ObH2tX+Vdn7Ov3Vbb+G7vtYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8uaZrl+S4K5mOZ4qjD4e1G9VdU+6I7Z7oB6kJ1ZxX0/pyqvCYOf4ljaeabdqrzKJ9avo8I3n2K71vxXzTUNVzL8nquYHLt5p5p2u3o9aY6I9WPGZQFNq5z9SjUXEfVWpJqt4jHzhsNV/p8NvRRt3z01eMouDFAAAAAACT6d4jaq03NNGHx9WJw1P8Ap8TvXRt3T00+EowA0FpPivp/UdVGExk/w3G1c0W7tXmVz6tfR4TtPtTZkdPtEcVs009Vby/OKrmOy7fbnne7Zj1Znpj1Z8Nm6m8/F9Dy5XmuX51greY5XiqMRh7sebXTPvieye6XqUgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+WLxeGwGFu43GXqbVixRNdyuqeammOmQeXPM8y7TuW3c1zS/Fuzajo/NXV1U0x1zP/ALmZ41nrXNNY4+b+Kqm1hbcz93w1M+bbjtntqnrn9n6681ri9Y5rN3eq3gLEzThbM9Ufqn1p+XQjCbXSTABjQAAAAAAAAAAAEi0brXNNHZhGIwtU3cLcmPvGGqnzbkdsdlUdU/s0PkWeZdqLLbWa5Xfi5Zux0fmoq66ao6pj/wBzMrJPoPWuL0dmsXd6rmAvzFOKsx1x+qPWj59DZWWa0iPywmLw2PwtrG4O9TdsX6Irt10zzVUz0S/VTmAAAAAAAAAAAAAAAAAAAAAAAAAAAAKb4z6ynE4iNJZfd/CsTFeMqpn+avppo9kdM9+3YsvWGobel9PYvN69puW6eRZpn812rmpj38890SzJfv3sTfuYnEXKrl27XNdddU7zVVM7zM+LLVcz9fmAlYAAAAAAAAAAAAAAAC1ODGs5w2InSWYXfwr0zXg6qp/lr6aqPZPTHfv2rkZLsX72Gv28Th7lVu7ariuiumdppqid4mPFpvR+obWqNPYTN6NouXKeTepj8t2nmqj388d0wqI6n67IDUgAAAAAAAAAAAAAAAAAAAAAAAAFVUUxNVUxERG8zPUCl+OOfziMzwmnbNf4eEo+3vR23Ko82PCn/sq909S5rVnef4/Nap3jE3666e6jfamPCmIhzEOsmQAAAAAAAAAAAAAAAAAAWhwOz+cPmeL07eq/DxdH29mOy5THnR40/wDVV7p6azWrI8/wGa0ztGGv0V1d9G+1UeNMzBCzY1KFNUVRFVMxMTG8THWLcgAAAAAAAAAAAAAAAAAAAAAAABxda4+cs0nm2MpnaqjC100z2VVRyY+cw7SF8YMRVY0Ni6KZ2+2u2rc+zlxP7MbP6z2Al0AAAAAAAAAAAAAAAAAAAAae0Xj5zPSeU42qd6q8LRTVPbVTHJn5xLtIXwfxFV/Q2Eoqnf7G7dtx7OXM/uminOgDWAAAAAAAAAAAAAAAAAAAAAACM8QtMY/VuQRlOXX7Fq79vRdmq9NUU8mInsiZ354SYBR3kL1V6Tyr4lz6DyF6q9J5V8S59C8RmN9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VR3kL1V6Tyr4lz6DyF6q9J5V8S59C8Qw9VGeHumMfpLIJynMb9i7d+3ruxVZmqaeTMR2xE780pMDWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/9k=";function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},zo.apply(null,arguments)}function qo(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",zo({xmlns:"http://www.w3.org/2000/svg",width:"52.000000pt",height:"41.000000pt",viewBox:"0 0 52.000000 41.000000",preserveAspectRatio:"xMidYMid meet",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,Uo||(Uo=i.createElement("g",{transform:"translate(0.000000,41.000000) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none"},i.createElement("path",{d:"M415 356 c-16 -13 -27 -28 -23 -32 9 -9 78 37 72 48 -8 13 -17 10 -49 -16z"}),i.createElement("path",{d:"M215 290 c-40 -24 -62 -30 -108 -30 -83 0 -97 -10 -97 -70 0 -52 15 -70 59 -70 18 0 21 -6 21 -50 0 -27 5 -50 10 -50 6 0 10 23 10 50 0 47 1 50 26 50 15 0 49 -14 76 -31 28 -16 52 -28 54 -26 3 2 3 61 2 130 l-3 126 -50 -29z m35 -101 l0 -91 -44 26 c-36 21 -58 26 -110 26 l-66 0 0 40 0 40 68 0 c53 1 75 6 107 25 22 14 41 25 43 25 1 0 2 -41 2 -91z"}),i.createElement("path",{d:"M320 183 c0 -48 3 -63 10 -53 13 20 13 107 0 115 -6 4 -10 -19 -10 -62z"}),i.createElement("path",{d:"M430 190 c0 -5 18 -10 40 -10 22 0 40 5 40 10 0 6 -18 10 -40 10 -22 0 -40 -4 -40 -10z"}),i.createElement("path",{d:"M390 51 c0 -15 59 -53 71 -45 7 4 1 15 -17 30 -30 24 -54 31 -54 15z"}))))}const Go=i.forwardRef(qo);a.p;function Yo(){return(new L.a).get("Secure-1CBL")}Yo();const Ko=(e,t)=>{switch(t){case"ar":return"https://app.contabilium.com/files/usuarios/"+e;case"cl":return"https://app.contabilium.cl/files/usuarios/"+e;case"uy":return"https://app.contabilium.com.uy/files/usuarios/"+e}},Xo=e=>{const t=String(e).replace(/\D/g,"");return 11!==t.length?e:`${t.substring(0,2)}-${t.substring(2,10)}-${t.substring(10)}`};var Zo=()=>Object(p.jsx)("div",{style:{cursor:"pointer"},children:Object(p.jsx)(O.a,{id:"navbar-announcements-button",disableRipple:!0,onClick:()=>{(()=>{const e=Yo();let t=JSON.parse(Object(H.b)(e));Object(c.b)("Header - Anuncios",{userId:t.data.userId,referred:!0,planName:t.data.plan_name})})(),window.open("/v3/functionalities","_self")},sx:{backgroundColor:"#fff",padding:"0",width:"45px",height:"45px",borderRadius:"50%",minWidth:"auto","&:hover":{backgroundColor:"#f1f1f1 !important"}},children:Object(p.jsx)(Go,{style:{marginTop:"0px",width:"26.5px",height:"26.5px",cursor:"pointer",marginBottom:"3px"}})})});const Qo=Object(i.createContext)(),Jo={companiesList:[],companiesListLoading:null,companiesListError:null};function $o(e,t){switch(t.type){case"SET_COMPANIES_LIST":return{companiesList:t.payload,companiesListLoading:!1,companiesListError:!1};case"SET_COMPANIES_LIST_LOADING":return{companiesList:[],companiesListLoading:!0,companiesListError:!1};case"SET_COMPANIES_LIST_ERROR":return{companiesList:[],companiesListError:!0,
1companiesListLoading:!1};default:return e}}const en=e=>{let{children:t}=e;const[a,o]=Object(i.useReducer)($o,Jo),n=Object(i.useCallback)((async()=>{o({type:"SET_COMPANIES_LIST_LOADING"});try{const e=await Ya.companies.getUsersCompanies({limits:null});o({type:"SET_COMPANIES_LIST",payload:e})}catch(e){return o({type:"SET_COMPANIES_LIST_ERROR"}),!0}}),[]),r=Object(i.useCallback)((async e=>{try{const t=await Ya.companies.changeCompany({userId:e});return(e=>{const t=new L.a;t.remove("Secure-1CBL"),t.set("Secure-1CBL",e,{path:"/"})})(t.jwt),(e=>{const{data:t}=JSON.parse(Object(H.b)(e));localStorage.setItem("validated",t.verified),localStorage.setItem("Company",t.business_name),localStorage.setItem("email",t.email),localStorage.setItem("userAdd",t.is_additional),localStorage.setItem("parent",t.parent_id),localStorage.setItem("country_prod",t.country),localStorage.setItem("sign_up_date",t.sign_up_date),localStorage.setItem("userID_Product",t.userId),localStorage.setItem("promotion_code",t.promotion_code)})(t.jwt),t.jwt}catch(t){return t}}),[]),s=Object(i.useMemo)((()=>({companies:a.companiesList,companiesLoading:a.companiesListLoading,companiesError:a.companiesListError,fetchCompaniesList:n,handleChangeCompany:r})),[a]);return Object(i.useEffect)((()=>{n()}),[]),Object(p.jsx)(Qo.Provider,{value:s,children:t})},tn={administrator:{name:"Administrador",value:"A"},restricted:{name:"Restringido",value:"B"},customized:{name:"Personalizado",value:"C"}};var an;function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},on.apply(null,arguments)}function nn(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",on({width:303,height:280,viewBox:"0 0 303 280",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,an||(an=i.createElement("path",{d:"M179.97 82.1074C194.171 72.9692 211.357 69.7068 227.903 72.9854L228.69 73.1465L228.696 73.1475C245.664 76.7994 260.476 87.0628 269.855 101.666C279.183 116.174 282.335 133.805 278.615 150.646C275.226 166.071 265.791 180.502 252.804 189.61C253.473 189.956 254.162 190.302 254.87 190.656C256.162 191.303 257.511 191.98 258.844 192.732L259.414 193.06L259.415 193.061C279.184 204.611 293.679 223.409 299.818 245.469H299.817C300.632 248.359 301.284 251.293 301.77 254.255L301.968 255.526L301.969 255.534L301.97 255.541C302.112 256.579 302.238 258.003 302.381 259.252C302.531 260.573 302.705 261.754 302.94 262.564L303 262.77V279.131L301.575 279.202C296.732 279.445 290.496 279.27 285.674 279.266V279.265L142.943 279.261C138.977 279.261 132.57 279.054 128.952 279.334L127.27 279.464L127.338 277.777C127.417 275.848 127.41 273.843 127.399 271.792C127.389 269.753 127.375 267.666 127.444 265.628V265.621C127.737 258.03 129 250.507 131.203 243.236L131.205 243.231C137.212 223.64 149.861 206.755 166.978 195.486L166.979 
1195.485C169.601 193.764 172.315 192.184 175.106 190.753L175.109 190.751C175.921 190.338 176.743 189.955 177.527 189.585C177.539 189.579 177.551 189.573 177.562 189.567C170.863 184.821 165.122 178.837 160.654 171.931V171.93C151.289 157.468 148.066 139.873 151.696 123.031V123.03C155.337 106.189 165.502 91.4752 179.966 82.1104L179.97 82.1074ZM1.49512 172.222C7.35938 172.203 13.2237 172.214 19.0879 172.257L20.5752 172.268L20.5771 173.755C20.5985 189.946 20.3736 206.606 20.585 222.745C35.1433 222.943 49.6202 222.646 64.2539 222.784H64.2549C69.0424 222.83 74.8348 222.647 80.0312 222.729C77.2217 219.884 74.3943 217.057 71.5498 214.248L70.5332 213.243L71.4873 212.18C74.7294 208.563 78.6066 205.043 81.8594 201.674L82.3584 201.164C82.8758 200.644 83.441 200.101 83.9814 199.631L84.9932 198.751L85.9805 199.659C88.4062 201.891 90.8184 204.318 93.1006 206.657L94.6602 208.247C98.311 211.951 102.033 215.61 105.759 219.288C110.013 223.487 114.27 227.707 118.405 232.017L119.383 233.036L118.424 234.073C115.77 236.944 112.537 240.048 109.809 242.775L89.4062 263.17C88.3971 264.179 86.9914 265.512 86.2188 266.441L85.2383 267.621L84.0811 266.614C82.6321 265.354 80.7246 263.396 79.1055 261.743L77.6104 260.229C75.9548 258.582 73.0542 255.829 71.4678 254.021L70.5361 252.959L71.54 251.965C74.2164 249.318 77.26 246.334 80.0225 243.51C78.9448 243.516 77.8914 243.508 76.9873 243.509H76.9854L12.0146 243.514L12.0156 243.515C10.8392 243.517 8.77443 243.565 6.62695 243.582C4.57123 243.598 2.40758 243.587 1.30762 243.445L0 243.276V172.227L1.49512 172.222ZM213.587 201.805C184.314 202.938 159.996 220.741 151 248.95C149.975 252.163 149.356 255.221 148.79 258.532L275.794 258.547C277.169 258.546 279.601 258.492 281.566 258.536C281.127 255.807 280.7 253.592 279.896 250.732V250.731C275.808 236.243 266.989 223.539 254.841 214.644H254.84C242.53 205.612 228.818 201.552 213.587 201.805ZM259.384 133.211C257.458 108.808 236.12 90.582 211.717 92.4941C187.294 94.4079 169.051 115.764 170.977 140.187L171.081 141.326C173.572 165.173 194.652 182.809 218.691 180.899C243.093 178.961 261.309 157.614 259.384 133.211ZM64.1055 0.0751953C77.5789 -0.661442 90.7843 4.04388 100.756 13.1348C110.537 22.0407 116.403 34.4505 117.078 47.6611L117.106 48.292C117.625 61.5334 112.867 74.4497 103.861 84.1943C102.84 85.3115 101.744 86.307 100.738 87.21C100.284 87.618 99.8525 88.0041 99.4473 88.3779C114.584 96.817 125.896 110.803 130.962 127.432L131.168 128.119C133.254 135.221 133.949 142.159 133.835 149.488C133.805 151.418 133.879 153.717 133.738 155.792L133.644 157.191H132.241L6.72266 157.2L6.72363 157.201C5.28412 157.203 2.93823 157.266 1.3916 157.153L0 157.053V140.938L0.114258 140.662C0.32502 140.153 0.478667 139.334 0.616211 138.297C0.740316 137.361 0.855549 136.195 1.01758 135.342L1.36816 133.512C1.72902 131.667 2.1345 129.786 2.70312 127.932C6.97349 113.57 15.9065 101.039 28.0918 92.3193H28.0928C30.2713 90.7635 32.1963 89.6113 34.3057 88.4082C32.5254 86.8109 30.7602 85.1682 29.1152 83.2715C21.4701 74.4554 17.418 64.2609 16.7578 52.6924V52.6797C16.1222 39.6158 20.6066 26.8184 29.2588 17.0098C38.137 6.92642 50.6896 0.826228 64.1035 0.0751953H64.1055ZM66.4648 100.583C53.5593 100.854 42.4394 105.532 33.4609 114.826C26.9695 121.546 24.1071 127.852 21.7773 136.497C36.8892 136.684 52.3431 136.516 67.4912 136.514L97.959 136.511C102.209 136.511 107.501 136.386 112.036 136.487C111.513 134.411 111.15 132.815 110.263 130.459V130.46C106.384 120.311 99.0919 111.828 89.6396 106.47L89.6357 106.467C82.4117 102.339 74.7879 100.553 66.4648 100.583ZM66.6768 20.6475C50.3205 20.7774 37.1694 34.1486 37.3096 50.5049C37.45 66.8612 50.8284 80.0042 67.1846 79.8535L67.9482 79.8369C83.9333 79.2848 96.6525 66.0833 96.5146 49.9971C96.3744 33.6553 83.0185 20.5178 66.6768 20.6475Z",fill:"#454545"})))}const rn=i.forwardRef(nn);a.p;var sn=a(382),ln=a(579),cn=a(129);const dn=Object(u.a)((e=>({CblUserInfo:{display:"inline-flex",flexDirection:" column",margin:"auto 0",minWidth:"100px",color:"#131313",fontFamily:"Work Sans, sans-serif"},CblUserInfo2:{display:"inline-flex",flexDirection:" column",margin:"auto 0",color:"#131313",fontFamily:"Work Sans, sans-serif",borderRadius:"10px 0 10px 10px",border:"solid 1px #C6C6C6",boxShadow:"0px 1px 5px 0px rgb(0 0 0 / 25%)"},CblUserName:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#131313",textTransform:"uppercase",marginTop:"5px"},CblCuit:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#666"},CblEmpresa:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",cursor:"pointer",textDecoration:"none"},CblEmpresaDisabled:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:ui.a.disabled},CblUserAvatar:{width:"46px",height:"46px",minWidth:"46px",minHeight:"46px",borderRadius:"50px",overflow:"hidden",margin:"auto 0 auto 10px"},CblArrowCircle:{position:"absolute",top:"50%",right:"0",marginTop:" -8px",marginRight:"2px",width:"16px",height:"16px",backgroundColor:"#fff",fontSize:"11px",color:"#131313",textAlign:"center",borderRadius:"50px"},CblUserName2:{cursor:"default!important",padding:"3px 16px !important",backgroundColor:"#ffffff!important","&:hover":{backgroundColor:"#ffffff!important"}},menuItem:{cursor:"pointer",color:"#131313",textDecoration:"none",listStyle:"none",padding:"0px",display:"flex",alignItems:"center","&:hover":{color:"#008d7c"},"&:hover $CblEmpresa":{textDecoration:"underline"}},changePasswordStyle:{cursor:"pointer",color:"#008d7c",textDecoration:"none","&:hover":{textDecoration:"underline",color:"#008d7c"}},newAccountMenuListStyle:{cursor:"pointer",color:"#131313",textDecoration:"none",listStyle:"none",padding:"0px",margin:"20px 0px"},newAccountMenuItemStyle:{cursor:"pointer",color:"#131313",textDecoration:"none",fontSize:"13px","&:hover":{color:"#008d7c"}}})));var un=e=>{let{actualUserType:t="",additionalAccount:a=!1}=e;const n=dn(),[r,s]=Object(i.useState)(null),[l,d]=Object(i.useState)(""),[u,m]=Object(i.useState)(""),[g,b]=Object(i.useState)(""),[h,x]=Object(i.useState)(""),[f,v]=Object(i.useState)(""),[j,A]=Object(i.useState)(""),[C,y]=Object(i.useState)(""),[S,E]=Object(i.useState)(""),[I,w]=o.a.useState(Ti.a.t("
1cuit")),T=Boolean(r),P=()=>{s(null)};return Object(i.useEffect)((()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));localStorage.setItem("Company",t.data.business_name);let a=localStorage.getItem("ext");A(t.data.user_type),d(t.data.business_name),m(t.data.email),b(t.data.cuit),x(t.data.plan_name),v((()=>{var e,t,a;const i=(new L.a).get("Secure-1CBL");let o=JSON.parse(Object(H.b)(i));return"ar"===(null===o||void 0===o||null===(e=o.data)||void 0===e?void 0:e.country)?"https://app.contabilium.com/files/usuarios/":"cl"===(null===o||void 0===o||null===(t=o.data)||void 0===t?void 0:t.country)?"https://app.contabilium.cl/files/usuarios/":"uy"===(null===o||void 0===o||null===(a=o.data)||void 0===a?void 0:a.country)?"https://app.contabilium.com.uy/files/usuarios/":void 0})()+t.data.logo),E(t.data.country),w(Ho(a)),y(t.data.userId),localStorage.setItem("userId",t.data.userId)}),[I,f]),Object(i.useEffect)((()=>{"Freemium"===h&&x("Free")}),[h]),Object(p.jsxs)("div",{className:"dropdown",children:[Object(p.jsxs)(O.a,{id:"user-profile-menu-button","aria-controls":T?"user-profile-menu":void 0,"aria-haspopup":"true","aria-expanded":T?"true":void 0,title:"Mi cuenta",className:"cbl-user-button",onClick:e=>{s(e.currentTarget),Object(c.b)("My_Account",{my_account:!0})},onClose:P,disableRipple:!0,style:{textTransform:"none"},sx:{"&:hover":{backgroundColor:"transparent !important"}},children:[Object(p.jsxs)("div",{className:n.CblUserInfo,style:{lineHeight:"1.6"},children:[Object(p.jsxs)("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"150px",fontWeight:400,letterSpacing:0},children:["\xa1Hola, ",Object(p.jsx)("span",{style:{fontWeight:550},children:l}),"!"]}),Object(p.jsxs)("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"150px",color:"#666",fontSize:"12px",display:"inline-block",marginTop:"0px",fontWeight:400,letterSpacing:0},children:["#",C," - Plan ",h.replace("New","")]})]}),Object(p.jsx)("div",{className:n.CblUserAvatar,children:Object(p.jsx)("img",{src:f,alt:"Mi Cuenta",width:"100%",onError:e=>((e,t)=>{e.target.src=t})(e,_o)})}),Object(p.jsx)("span",{className:n.CblArrowCircle,children:Object(p.jsx)("span",{className:"la la-angle-down"})})]}),Object(p.jsxs)(sn.a,{disableRipple:!0,id:"user-profile-menu",anchorEl:r,open:T,onClose:P,MenuListProps:{"aria-labelledby":"user-profile-menu-button"},className:n.CblUserInfo2,sx:{"& .MuiPaper-elevation8":{borderRadius:"10px 0 10px 10px",border:"solid 1px #C6C6C6",boxShadow:"0px 1px 5px 0px rgb(0 0 0 / 25%)",width:"230px",transition:"none!important"},"& .MuiButtonBase-root":{"&:hover":{backgroundColor:"#ffffff !important"}},"& .MuiDivider-root":{backgroundColor:"grey!important",height:"1px!important"}},children:[Object(p.jsx)(ln.a,{disableRipple:!0,className:n.CblUserName2,children:Object(p.jsx)("b",{className:n.CblUserName,style:{cursor:"text",userSelect:"text",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l})}),Object(p.jsx)(ln.a,{disableRipple:!0,className:n.CblUserName2,children:Object(p.jsxs)(cn.a,{className:n.CblCuit,style:{cursor:"text",userSelect:"text"},children:[I," ",g]})}),Object(p.jsx)(ln.a,{disableRipple:!0,className:n.CblUserName2,children:Object(p.jsxs)(cn.a,{className:n.CblCuit,style:{cursor:"text",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",userSelect:"text"},children:[" ","Perfil: ",t]})}),Object(p.jsx)(ln.a,{disableRipple:!0,className:n.CblUserName2,children:Object(p.jsxs)(cn.a,{className:n.CblCuit,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"text",userSelect:"text",textTransform:"lowercase"},children:[u," "]})}),Object(p.jsx)(ln.a,{disableRipple:!0,className:n.menuItem,onClick:()=>{Object(c.b)("Mi Cuenta - Cambiar Contrase\xf1a"),co("/modulos/seguridad/cambiar-pwd.aspx")},style:{height:"22px !important",padding:"0px 16px 8px 16px"},children:Object(p.jsx)(cn.a,{className:n.CblEmpresa,children:Ti.a.t("account.changePassword")})}),Object(p.jsx)(N.a,{variant:"middle",sx:{},"MuiDivider-root":!0}),Object(p.jsxs)("div",{style:{margin:"10px 0"},children:["A"===j&&Object(p.jsx)(ln.a,{disableRipple:!0,onClick:()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));Object(c.b)("Account_Menu_Datos_Empresa",{userId:t.data.userId,planName:t.data.plan_name,country:t.data.country,account_menu_datos_empresa:!0}),Object(c.b)("Mi Cuenta - Datos de la Empresa"),co("/v3/account")},style:{padding:a?"5px 16px":"2px 16px"},children:Object(p.jsxs)("div",{className:n.menuItem,style:{display:"flex",alignItems:"center"},children:[Object(p.jsx)("i",{className:"la la-cog",style:{marginRight:"5px",fontSize:"16px"}}),Object(p.jsxs)(cn.a,{className:n.CblEmpresa,disableRipple:!0,children:[" ",Ti.a.t("account.configuration")," "]})]})}),"A"!==j||a?"":Object(p.jsx)(ln.a,{disableRipple:!0,onClick:()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));Object(c.b)("Account_Menu_Pagar_Plan",{userId:t.data.userId,planName:t.data.plan_name,country:t.data.country,account_menu_pagar_plan:!0}),Object(c.b)("Mi Cuenta - Pagar mi Plan"),co("/modulos/suscripcion/historial.aspx")},style:{padding:"5px 16px"},children:Object(p.jsxs)("div",{className:n.menuItem,style:{display:"flex",alignItems:"center"},children:[Object(p.jsx)("i",{className:"la la-credit-card",style:{marginRight:"5px",fontSize:"16px"}}),Object(p.jsx)(cn.a,{className:n.CblEmpresa,children:Ti.a.t("account.mySuscription")})]})}),Object(p.jsx)(ln.a,{disableRipple:!0,style:{padding:"2px 16px"},children:Object(p.jsxs)("a",{href:`https://contabilium.com/${S}/planes`,rel:"noopener noreferrer",target:"_blank",className:n.menuItem,style:{display:"flex",alignItems:"center"},children:[Object(p.jsx)("i",{className:"la la-external-link-alt",style:{marginRight:"5px",fontSize:"18px"}}),Object(p.jsx)(cn.a,{className:n.CblEmpresa,children:Ti.a.t("account.priceAndFunctionalities")})]})}),Object(p.jsx)(ln.a,{onClick:()=>{localStorage.setItem("PF",!1),window.open("/logout.aspx","_self")},disableRipple:!0,style:{padding:"5px 16px"},children:Object(p.jsxs)("div",{className:n.menuItem,style:{display:"flex",alignItems:"center"},children:[Object(p.jsx)("i",{className:"la la-sign-out-alt",style:{marginRight:"5px",fontSize:"18px"}}),Object(p.jsx)(cn.a,{className:n.CblEmpresa,children:Ti.a.t("account.logout")})]})})]})]})]})};const pn=Object(u.a)((e=>({changePasswordStyle:{cursor:"pointer",color:"#008d7c",textDecoration:"none","&:hover":{textDecoration:"underline",color:"#008d7c"}},newAccountMenuListStyle:{cursor:"pointer",color:"#131313",textDecoration:"none",listStyle:"none",padding:"0px",margin:"20px 0px"},newAccountMenuItemStyle:{cursor:"pointer",color:"#131313",textDecoration:"none",fontSize:"13px","&:hover":{color:"#008d7c"}}})));var mn=Ei((e=>{var t,a;let{showTool:n,limitations:r,onOpenTrainingEvents:l}=e;const[d,u]=Object(i.useState)(""),[m,g]=Object(i.useState)(""),[b,h]=Object(i.useState)(""),[x,f]=Object(i.useState)(""),[v,j]=Object(i.useState)(""),[A,C]=Object(i.useState)(""),[y,O]=Object(i.useState)(""),[S,E]=Object(i.useState)(""),[I,w]=Object(i.useState)(""),[T,P]=o.a.useState(window.innerWidth),[R,N]=Object(i.useState)(!1),[k,B]=Object(i.useState)(""),[D,F]=Object(i.useState)(!0),[M,V]=o.a.useState(localStorage.getItem("Company")),U=pn(),{userData:_}=Object(i.useContext)(Qa),{companies:z}=Object(i.useContext)(Qo),{enabled:q}=Ui(),G=null===_||void 0===_?void 0:_.user_type,Y=null===_||void 0===_?void 0:_.parent_id,[K,X]=o.a.useState(Ti.a.t("
1cuit")),Z=0===(null===r||void 0===r||null===(t=r.additionalUsers)||void 0===t?void 0:t.available),Q=!1===(null===r||void 0===r?void 0:r.fileExplorer),J=!1===(null===r||void 0===r?void 0:r.alertConfig),$=!1===(null===r||void 0===r||null===(a=r.reports)||void 0===a?void 0:a.trackingHours),ee=!1===(null===r||void 0===r?void 0:r.bulkImport.clients),te=!1===(null===r||void 0===r?void 0:r.bulkImport.providers),ae=!1===(null===r||void 0===r?void 0:r.bulkImport.products),ie=!1===(null===r||void 0===r?void 0:r.bulkImport.combos),oe=!1===(null===r||void 0===r?void 0:r.bulkImport.services),ne=!1===(null===r||void 0===r?void 0:r.bulkImport.simpleSalesInvoices),re=!1===(null===r||void 0===r?void 0:r.bulkImport.itemsSalesInvoices),se=!1===(null===r||void 0===r?void 0:r.bulkImport.purchaseInvoices),le=!1===(null===r||void 0===r?void 0:r.bulkImport.purchaseInvoices),ce=!1===(null===r||void 0===r?void 0:r.bulkImport.chartOfAccounts),de=!1===(null===r||void 0===r?void 0:r.bulkImport.accountingEntries),ue=!1===(null===r||void 0===r?void 0:r.bulkImport.bankTransactions),pe={additionalUsers:"Administrar usuarios",filesExplorer:"Explorador de archivos",alertConfig:"Configurar alertas",trackingHours:"Tracking horas",bulkImport:{clients:"Clientes",suppliers:"Proveedores",products:"Productos",productsVariants:"Productos con variantes",combo:"Combos",services:"Servicios",simpleInvoices:"Facturas de venta simple",simpleInvoicesItems:"Facturas de venta con items",vouchers:"cl"===A||"uy"===A||"py"===A?"Facturas de compras con items":"Facturas de compras",detailVouchers:"ar"===A?"Facturas de compra detalle":"",accountPlan:"Plan de cuentas",accountingEntries:"Asientos Contables",bankMovements:"Movimientos bancarios",priceRules:"Reglas de precios",budgets:"Rubros"}},me={[pe.additionalUsers]:!Z,[pe.filesExplorer]:!Q,[pe.alertConfig]:!J,[pe.trackingHours]:!$,[pe.bulkImport.clients]:!ee,[pe.bulkImport.suppliers]:!te,[pe.bulkImport.products]:!ae,[pe.bulkImport.productsVariants]:!ae,[pe.bulkImport.combo]:!ie,[pe.bulkImport.services]:!oe,[pe.bulkImport.simpleInvoices]:!ne,[pe.bulkImport.simpleInvoicesItems]:!re,[pe.bulkImport.vouchers]:!se,[pe.bulkImport.detailVouchers]:!le,[pe.bulkImport.accountPlan]:!ce,[pe.bulkImport.accountingEntries]:!de,[pe.bulkImport.bankMovements]:!ue,[pe.bulkImport.priceRules]:!0,[pe.bulkImport.budgets]:!0};Object(i.useEffect)((()=>{const e={};Object.entries(me).forEach((t=>{let[a,i]=t;const o=null===i||void 0===i||i;e[a]=o})),F(e)}),[r]),Object(i.useEffect)((()=>{E(function(e){const t=Object.values(tn).find((t=>t.value===e));return t?t.name:"Desconocido"}(G))}),[G]);Object(i.useEffect)((()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e)),a=localStorage.getItem("ext");localStorage.setItem("Company",t.data.business_name),u(t.data.business_name),g(t.data.email),h(t.data.cuit),f(t.data.plan_name),j(ge()+t.data.logo),C(t.data.country),w(t.data.is_additional),O(t.data.userId),localStorage.setItem("userId",t.data.userId);const i=localStorage.getItem("Company");V(i),X(Ho(a)),window.addEventListener("resize",(function(){P(window.innerWidth)}))}),[]),Object(i.useEffect)((()=>{"Freemium"===x&&f("Free")}),[x]);const ge=()=>{var e,t,a,i;const o=(new L.a).get("Secure-1CBL");let n=JSON.parse(Object(H.b)(o));return"ar"===(null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.country)?"https://app.contabilium.com/files/usuarios/":"cl"===(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.country)?"https://app.contabilium.cl/files/usuarios/":"uy"===(null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.country)?"https://app.contabilium.com.uy/files/usuarios/":"py"===(null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.country)?"https://app.contabilium.com.py/files/usuarios/":void 0},be=z.length>1,he=(e,t)=>{const a=xe(t);e.stopPropagation(),B(a),D[t]||(e.preventDefault(),N(!0))},xe=e=>{const{modalText:t="la gesti\xf3n masiva de ",sectionText:a=e}={"Administrar usuarios":{modalText:"",sectionText:"la gesti\xf3n de usuarios"},"Explorador de archivos":{modalText:"la gesti\xf3n de ",sectionText:"archivos"},"Tracking horas":{modalText:"la gesti\xf3n de ",sectionText:"Tracking de horas"},"Configurar alertas":{modalText:"la gesti\xf3n de ",sectionText:"avisos y alertas"},"Facturas de venta simple":{modalText:"",sectionText:"incluyendo la gesti\xf3n masiva de facturas de venta simple"},"Asientos Contables":{modalText:"",sectionText:"incluyendo la gesti\xf3n masiva de asientos contables"}}[e]||{};return(t+a).toLowerCase()};const fe={isOpen:R,handleClose:()=>{N(!1)},limitationKey:k,primaryButtonClick:()=>window.open("/modulos/seguridad/elegir-plan.aspx","_self")},ve={additionalAccount:Y,actualUserType:S},je={filesExplorer:pe.filesExplorer,alertConfig:pe.alertConfig,trackingHours:pe.trackingHours,bulkImportClients:pe.bulkImport.clients,bulkImportSuppliers:pe.bulkImport.suppliers,bulkImportProducts:pe.bulkImport.products,bulkImportProductsVariants:pe.bulkImport.productsVariants,bulkImportCombos:pe.bulkImport.combo,bulkImportServices:pe.bulkImport.services,bulkImportSimpleInvoices:pe.bulkImport.simpleInvoices,bulkImportSimpleInvoicesItems:pe.bulkImport.simpleInvoicesItems,bulkImportVouchers:pe.bulkImport.vouchers,bulkImportDetailVouchers:pe.bulkImport.detailVouchers,bulkImportAccountPlan:pe.bulkImport.accountPlan,bulkImportAccountingEntries:pe.bulkImport.accountingEntries,bulkImportBankMovements:pe.bulkImport.bankMovements,bulkImportPriceRules:pe.bulkImport.priceRules,bulkImportBudgets:pe.bulkImport.budgets,country:A,plan:x,hasPermission:D,blockedModuleModalProps:fe,handleModalClick:he};return Object(p.jsx)("div",{className:"cbl-top-two-banner-visible",children:Object(p.jsxs)("header",{className:"cbl-top-nav",children:[Object(p.jsxs)("div",{className:"cbl-top-nav-wrapper",children:[Object(p.jsx)(s.b,{to:"#",className:"cbl-logo",children:Object(p.jsx)(Lo,{})}),Object(p.jsx)("ul",{className:"cbl-mobile-buttons",children:Object(p.jsx)("li",{children:Object(p.jsx)("button",{id:"sidebar-mobile-toggle",className:"button-sidebar-toggle",onClick:e=>function(e){let t=W()(".button-sidebar-toggle").find(".la");t.hasClass("la-bars")?(t.removeClass("la-bars").addClass("la-times"),localStorage.removeItem("sidebar-open")):t.hasClass("la-times")&&(t.removeClass("la-times").addClass("la-bars"),localStorage.setItem("sidebar-open",!0)),W()("body").toggleClass("sidebar-open").removeClass("usermenu-open")}(),children:Object(p.jsx)("i",{className:"la la-bars"})})})}),Object(p.jsxs)("div",{className:"cbl-search-wrapper",children:[Object(p.jsx)("i",{className:"la la-search"}),Object(p.jsx)("input",{"aria-hidden":"true",className:"cbl-search-input",maxLength:"100",id:"search",type:"text",placeholder:"Buscar en Contabilium",onFocus:()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));Object(c.b)("Buscador",{userId:t.data.userId,searched:!0,planName:t.data.plan_name})}})]}),Object(p.jsxs)("div",{className:"cbl-right-wrapper",children:[be&&Object(p.jsx)("div",{className:" cbl-company-input-wrapper cbl-company-input-wrapper2",children:Object(p.jsx)(Wo,{id:"company-selector-dropdown",data:z,currentCompany:M})}),Object(p.jsxs)("ul",{className:"cbl-top-icon-list cbl-top-icon-list2",children:[Object(p.jsxs)("li",{className:"dropdown",children:[" ",Object(p.jsx)(Zo,{})]}),Object(p.jsx)("li",{className:"dropdown",children:!0===n&&Object(p.jsx)(bo,{country:A,...je,showVariantsImport:q})}),Object(p.jsx)("li",{children:Object(p.jsx)(xo,{onClick:()=>{Object(c.b)("Capacitaciones, Navbar"),null===l||void 0===l||l()}})}),Object(p.jsx)("li",{children:Object(p.jsx)(mo,{})}),Object(p.jsxs)("li",{onClick:()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));
1Object(c.b)("Header - Referidos",{userId:t.data.userId,referred:!0,planName:t.data.plan_name})},style:{marginRight:"25px"},children:[Object(p.jsx)("a",{id:"navbar-referral-program-link",href:"/modulos/seguridad/referidos.aspx",children:Object(p.jsx)(rn,{style:{width:"22px",height:"22px"}})}),Object(p.jsx)("span",{className:"cbl-icon-badge cbl-bg-secondary",style:{marginLeft:"-21px",width:"auto"},children:Ti.a.t("referred")})]})]}),T<800&&Object(p.jsx)("ul",{className:"cbl-mobile-buttons",children:Object(p.jsx)("li",{children:Object(p.jsx)("button",{id:"navbar-mobile-user-menu-button",className:"button-usermenu-toggle",onClick:e=>(e=>{let t=W()(".button-usermenu-toggle").find(".la");t.hasClass("la-user-circle")?t.removeClass("la-user-circle").addClass("la-times"):t.removeClass("la-times").addClass("la-user-circle"),W()("body").toggleClass("usermenu-open").removeClass("sidebar-open")})(),children:Object(p.jsx)("i",{className:"la la-user-circle"})})})}),T>=800&&Object(p.jsx)("div",{className:"dropdown",children:Object(p.jsx)(un,{...ve})}),Object(p.jsx)("div",{className:"cbl-usermenu-mobile",children:Object(p.jsxs)("div",{className:"cbl-usermenu-wrapper",children:[Object(p.jsx)("div",{className:"cbl-user-avatar",children:Object(p.jsx)("img",{src:v,alt:"Mi Cuenta",width:"100%",onError:e=>((e,t)=>{e.target.src=t})(e,_o)})}),Object(p.jsxs)("div",{className:"cbl-user-info",children:[Object(p.jsx)("h6",{className:"cbl-user-name",children:d}),Object(p.jsxs)("span",{className:"caption",children:[K," ",b]}),Object(p.jsxs)("span",{className:"caption",children:["Nro Cliente: #",y," - Plan ",x.replace("New","")]}),Object(p.jsxs)("span",{className:"caption",children:["Perfil: ",S]}),Object(p.jsxs)("span",{className:"caption",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"text",userSelect:"text",textTransform:"lowercase"},children:[m," "]}),Object(p.jsx)("span",{className:"caption",onClick:()=>co("/modulos/seguridad/cambiar-pwd.aspx"),children:Object(p.jsx)(s.b,{to:"#",className:U.changePasswordStyle,children:Ti.a.t("account.changePassword")})})]}),be&&Object(p.jsxs)("div",{className:"cbl-company-input-wrapper-mobile",children:[Object(p.jsxs)("div",{className:"caption",style:{fontSize:"12px",margin:"5px auto"},children:[Ti.a.t("account.actualCompany"),":"," ",Object(p.jsx)("span",{style:{textTransform:"uppercase"},children:M})]}),Object(p.jsx)(Wo,{id:"company-selector-dropdown-mobile",data:z,currentCompany:M})]}),Object(p.jsxs)("ul",{className:U.newAccountMenuListStyle,children:[S===tn.administrator.name&&Object(p.jsx)("li",{onClick:()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));Object(c.b)("Account_Menu_Datos_Empresa",{userId:t.data.userId,planName:t.data.plan_name,country:t.data.country,account_menu_datos_empresa:!0}),co("/v3/account")},children:Object(p.jsxs)(s.b,{to:"#",className:U.newAccountMenuItemStyle,style:{display:"flex",alignItems:"center",marginBottom:"12px"},children:[Object(p.jsx)("i",{className:"la la-cog",style:{marginRight:"10px",fontSize:"20px"}}),Ti.a.t("account.configuration")]})}),S===tn.administrator.name&&!Y&&Object(p.jsx)("li",{onClick:()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.b)(e));Object(c.b)("Account_Menu_Pagar_Plan",{userId:t.data.userId,planName:t.data.plan_name,country:t.data.country,account_menu_pagar_plan:!0}),co("/modulos/suscripcion/historial.aspx")},children:Object(p.jsxs)(s.b,{to:"#",className:U.newAccountMenuItemStyle,style:{display:"flex",alignItems:"center",marginBottom:"12px"},children:[Object(p.jsx)("i",{className:"la la-credit-card",style:{marginRight:"10px",fontSize:"20px"}}),Ti.a.t("account.mySuscription")]})}),Object(p.jsx)("li",{children:Object(p.jsxs)("a",{href:`https://contabilium.com/${A}/planes`,rel:"noopener noreferrer",target:"_blank",className:U.newAccountMenuItemStyle,style:{display:"flex",alignItems:"center",marginBottom:"12px"},children:[Object(p.jsx)("i",{className:"la la-external-link-alt",style:{marginRight:"10px",fontSize:"20px"}}),Ti.a.t("account.priceAndFunctionalities")]})}),Object(p.jsx)("li",{onClick:()=>{localStorage.setItem("PF",!1),window.open("/logout.aspx","_self")},children:Object(p.jsxs)(s.b,{to:"#",className:U.newAccountMenuItemStyle,style:{display:"flex",alignItems:"center",marginBottom:"12px"},children:[Object(p.jsx)("i",{className:"la la-sign-out-alt",style:{marginRight:"10px",fontSize:"20px"}}),Ti.a.t("account.logout")]})})]})]})})]})]}),Object(p.jsx)(ki,{...fe})]})})}),"",!1),gn=a(715),bn=a(735),hn=a(37),xn=a.n(hn);a(476);const fn=Object(u.a)((e=>({card:{display:"flex",alignItems:"center",padding:"12px 14px",marginBottom:"12px",minHeight:"106px",backgroundColor:ui.a.white,borderRadius:"8px",border:`1px solid ${ui.a.grey200}
1`,cursor:"pointer",transition:"all 0.3s ease","&:hover":{borderColor:"transparent",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",transform:"translateY(-2px)"},"@media (max-width: 480px)":{flexDirection:"column",height:"auto",minHeight:"auto",padding:"16px",gap:"12px",alignItems:"stretch"}},contentRow:{display:"flex",alignItems:"center",flex:1,height:"100%","@media (max-width: 480px)":{width:"100%"}},dateContainer:{minWidth:"60px",minHeight:"80px",width:"72px",borderRadius:"8px",display:"flex",height:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center",marginRight:"10px",backgroundColor:e=>e.highlight?ui.a.primaryLight:ui.a.secondaryLightSolid,color:e=>e.highlight?ui.a.primary400:ui.a.secondary400,"@media (max-width: 480px)":{marginRight:"10px",minWidth:"60px",width:"60px",height:"80px"}},dayNumber:{fontSize:"28px",fontWeight:800,lineHeight:"1",marginBottom:"2px"},monthText:{fontSize:"12px",textTransform:"lowercase",fontWeight:"normal"},eventInfo:{flex:1,display:"flex",flexDirection:"column",gap:"5px",minWidth:0,overflow:"hidden"},timeRow:{display:"flex",alignItems:"center",gap:"6px",color:ui.a.textSecondary,fontSize:"14px"},titleRow:{display:"flex",alignItems:"center",gap:"6px"},title:{fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"500",color:ui.a.textPrimary,margin:0,display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",lineHeight:"1.4"},buttonsContainer:{display:"flex",flexDirection:"column",gap:"8px",marginLeft:"16px","@media (max-width: 480px)":{flexDirection:"column",marginLeft:0,width:"100%"}}})));var vn=e=>{let{event:t}=e;const a=fn({highlight:t.highlight}),i=xn()(t.startDate),o=i.format("D"),n=i.locale("es").format("MMMM"),r=i.locale("es").format("dddd"),s=`${i.format("HH:mm")} hs`;return Object(p.jsxs)("div",{className:a.card,children:[Object(p.jsxs)("div",{className:a.contentRow,children:[Object(p.jsxs)("div",{className:a.dateContainer,children:[Object(p.jsx)("div",{className:a.dayNumber,children:o}),Object(p.jsx)("div",{className:a.monthText,children:n})]}),Object(p.jsxs)("div",{className:a.eventInfo,children:[Object(p.jsxs)("div",{className:a.timeRow,children:[Object(p.jsx)(ni.a,{name:"clock",viewBox:"0 0 23 23",style:{width:"16px",height:"16px",color:"#8b9093"}}),Object(p.jsxs)("span",{children:[r.charAt(0).toUpperCase()+r.slice(1)," ",s]})]}),Object(p.jsxs)("div",{className:a.titleRow,children:[Object(p.jsx)(ni.a,{name:"play",viewBox:"0 0 24 24",style:{width:"16px",height:"16px",color:"#666666"}}),Object(p.jsx)("p",{className:a.title,children:t.title})]})]})]}),Object(p.jsxs)("div",{className:a.buttonsContainer,children:[Object(p.jsx)(si,{type:"primary",onClick:e=>{e.preventDefault(),t.registrationUrl&&window.open(t.registrationUrl,"_blank","noopener,noreferrer")},children:Ti.a.t("trainingEvents.registerButton")}),t.videoUrl&&Object(p.jsx)(si,{type:"secondary",onClick:e=>{e.preventDefault(),t.videoUrl&&window.open(t.videoUrl,"_blank","noopener,noreferrer")},children:Ti.a.t("trainingEvents.watchVideoButton")})]})]})},jn=a(380);var An=Object(jn.a)({typography:{fontFamily:"Work Sans, sans-serif",h1:{fontSize:"16px",fontWeight:500}}});a(477);const Cn=Object(u.a)((e=>({containerVertical:{flexDirection:"column",justifyContent:"center",alignItems:"center",width:"500px",gap:20,"@media (max-width: 960px)":{width:"400px"}},containerVerticalCustom:{flexDirection:"column",justifyContent:"center",alignItems:"center",gap:20},containerImgVertical:{display:"flex",justifyContent:"center",alignItems:"center"},imgVertical:{width:"100%",maxWidth:"200px",height:"auto"},infoContainerVertical:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center"},textVertical:{fontSize:"14px",color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:400,marginBottom:15,textAlign:"center"},titleVertical:{fontSize:"16px",color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:500,marginBottom:5,textAlign:"center"}})));var yn=function(e){let{img:t="",altImg:a="",title:i="",text:o="",containerStyle:n={}}=e;const r=Cn(),s=n&&n.width;return Object(p.jsxs)(v.a,{style:n,container:!0,columns:{sm:12},display:"flex",className:s?r.containerVerticalCustom:r.containerVertical,children:[Object(p.jsx)(v.a,{className:r.containerImgVertical,children:Object(p.jsx)(y.a,{className:r.imgVertical,component:"img",alt:a,src:t})}),Object(p.jsxs)(v.a,{item:!0,xs:12,className:r.infoContainerVertical,children:[Boolean(i)&&Object(p.jsx)(cn.a,{variant:"h6",className:r.titleVertical,children:i}),Boolean(o)&&Object(p.jsx)(cn.a,{className:r.textVertical,children:o})]})]})},On=a.p+"static/media/ilustracion_empty_state.8de8cbdf.svg";const Sn="SET_TRAININGS_LOADING",En="SET_TRAININGS_SUCCESS",In="SET_TRAININGS_ERROR",wn="SET_NEXT_TRAINING_LOADING",Tn="SET_NEXT_TRAINING_SUCCESS",Pn="SET_NEXT_TRAINING_ERROR",Rn={trainings:null,loadingTrainings:!1,errorTrainings:null,nextTraining:null,loadingNextTraining:!1,errorNextTraining:null},Nn=(e,t)=>{switch(t.type){case Sn:return{...e,loadingTrainings:!0,errorTrainings:null};case En:return{...e,trainings:t.payload,loadingTrainings:!1,errorTrainings:null};case In:return{...e,loadingTrainings:!1,errorTrainings:t.payload};case wn:return{...e,loadingNextTraining:!0,errorNextTraining:null};case Tn:return{...e,nextTraining:t.payload,loadingNextTraining:!1,errorNextTraining:null};case Pn:return{...e,loadingNextTraining:!1,errorNextTraining:t.payload};default:return e}};var Ln=()=>{const[e,t]=Object(i.useReducer)(Nn,Rn);return{trainings:e.trainings,loadingTrainings:e.loadingTrainings,errorTrainings:e.errorTrainings,nextTraining:e.nextTraining,loadingNextTraining:e.loadingNextTraining,errorNextTraining:e.errorNextTraining,fetchTrainings:async()=>{t({type:Sn});try{const e=await Ya.trainingEvents.getTrainings();t({type:En,payload:e})}catch(e){t({type:In,payload:e.message})}},fetchNextTraining:async()=>{t({type:wn});try{const e=await Ya.trainingEvents.getNextTrainings();t({type:Tn,payload:e})}catch(e){t({type:Pn,payload:e.message})}}}};const kn=Object(u.a)((e=>({modalBox:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:ui.a.white,border:`1px solid ${ui.a.grey200}`,borderRadius:"8px",width:"65%",maxWidth:"500px",height:"auto",maxHeight:"80vh",display:"flex",flexDirection:"column",outline:"none","@media (min-width: 1024px)":{maxWidth:"700px"},"@media (max-width: 480px)":{width:"100%",height:"100%",maxWidth:"100%",top:0,left:0,transform:"none",borderRadius:0,border:"none"}},header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"23px 23px 30px 20px",flexShrink:0},titleContainer:{display:"flex",alignItems:"center",gap:"12px"},title:{fontFamily:"Work Sans, sans-serif",fontSize:"18px",fontWeight:500,color:ui.a.textPrimary,margin:"0 0 0 10px"},closeButton:{padding:"0 !important",minWidth:"auto",backgroundColor:"transparent !important",boxShadow:"none !important",display:"flex !important",justifyContent:"flex-end !important","&:hover":{backgroundColor:"transparent !important",boxShadow:"none !important"},"&:focus":{backgroundColor:"transparent !important",boxShadow:"none !important",outline:"none !important"},"&:active":{backgroundColor:"transparent !important",boxShadow:"none !important"},"&:focus-visible":{outline:"none !important",boxShadow:"none !important"}},fixedSection:{flexShrink:0},scrollableWrapper:{flex:1,display:"flex",flexDirection:"column",padding:"7px 0px",minHeight:0,overflow:"hidden"},scrollableContent:{flex:1,overflowY:"auto",padding:"20px",minHeight:0,display:"flex",flexDirection:"column",scrollbarWidth:"thin",scrollbarColor:`${ui.a.grey300} transparent`,"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:ui.a.grey300,borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:ui.a.grey400}},scrollableContentEmpty:{justifyContent:"center",alignItems:"center",overflowY:"hidden"},eventsList:{display:"flex",flexDirection:"column"},footer:{height:"20px",flexShrink:0,backgroundColor:ui.a.white},emptyStateContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},loadingContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}})));var Bn=e=>{let{open:t,onClose:a}=e;const o=kn(),{trainings:n,loadingTrainings:r,errorTrainings:s,fetchTrainings:l}=Ln();Object(i.useEffect)((()=>{t&&l()}),[t]);const c=Object(i.useMemo)((()=>n&&0!==n.length?n.map(((e,t)=>{var a,i;return{id:null===e||void 0===e?void 0:e.trainingId,title:null===e||void 0===e?void 0:e.title,de
1scription:null===e||void 0===e?void 0:e.description,startDate:null===e||void 0===e||null===(a=e.startDate)||void 0===a?void 0:a.replace(" ","T"),endDate:null===e||void 0===e||null===(i=e.endDate)||void 0===i?void 0:i.replace(" ","T"),registrationUrl:null===e||void 0===e?void 0:e.registrationLink,videoUrl:null===e||void 0===e?void 0:e.videoLink,highlight:t<2}})):[]),[n]),d=r,u=(!c||0===c.length)&&!r;return Object(p.jsx)(bn.a,{theme:An,children:Object(p.jsx)(w.a,{open:t,onClose:a,children:Object(p.jsxs)(y.a,{className:o.modalBox,children:[Object(p.jsxs)("div",{className:o.fixedSection,children:[Object(p.jsxs)("div",{className:o.header,children:[Object(p.jsxs)("div",{className:o.titleContainer,children:[Object(p.jsx)(M,{name:"training",viewBox:"0 0 76 45",style:{color:"#454545",width:"25px",height:"25px"}}),Object(p.jsx)(S.a,{variant:"h1",className:o.title,children:Ti.a.t("trainingEvents.modalTitle")})]}),Object(p.jsx)(O.a,{onClick:a,className:o.closeButton,disableRipple:!0,disableElevation:!0,children:Object(p.jsx)(M,{name:"close",className:"modalIcon",style:{width:"20px",height:"20px",color:"#8c8c8c"}})})]}),Object(p.jsx)(gn.a,{light:!0})]}),Object(p.jsx)("div",{className:o.scrollableWrapper,children:Object(p.jsx)("div",{className:`${o.scrollableContent} ${u||d?o.scrollableContentEmpty:""}`,children:d?Object(p.jsx)("div",{className:o.loadingContainer,children:Object(p.jsx)(oi.a,{})}):u?Object(p.jsx)("div",{className:o.emptyStateContainer,children:Object(p.jsx)(yn,{img:On,altImg:"Sin capacitaciones",title:Ti.a.t("trainingEvents.emptyStateTitle"),text:Ti.a.t("trainingEvents.emptyStateDescription"),containerStyle:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",maxWidth:"100%"}})}):Object(p.jsx)("div",{className:o.eventsList,children:c.map((e=>Object(p.jsx)(vn,{event:e},e.id)))})})}),Object(p.jsx)("div",{className:o.footer})]})})})};var Dn=()=>{const{rolTool:e}=Object(i.useContext)(Ka),{userData:t,baseUrl:a,jwt:o}=Object(i.useContext)(Qa),[n,r]=Object(i.useState)(!1);Object(i.useEffect)((()=>{if(t){const e=t.plan_days_expired,i=t.parent_id,o=t.last_payment_status,n=t.automatic_debit;null!==e&&(!0===n&&"Aceptado"!==o&&"Pendiente"!==o&&"Rechazado"!==o&&(null===i&&(window.location.href=a+"modulos/seguridad/elegir-plan.aspx"),null!==i&&(window.location.href=a+"modulos/seguridad/pago-pendiente-hijo.aspx")),!1===n&&(null===i&&(window.location.href=a+"modulos/seguridad/elegir-plan.aspx"),null!==i&&(window.location.href=a+"modulos/seguridad/pago-pendiente-hijo.aspx")))}}),[a,t]),Object(i.useEffect)((()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.a)(e));localStorage.setItem("country_prod",t.data.country);let a=localStorage.getItem("country_prod");fetch(Object(aa.a)()+"login/validate_jwt",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({country:a})}).then((e=>{401===e.status&&window.open("/logout.aspx","_self")})).catch((e=>{}))}),[]);const s=()=>{r(!0)};return Object(p.jsxs)("div",{className:"cbl-top-banner-visible",children:[Object(p.jsx)(mn,{showTool:e,onOpenTrainingEvents:s}),Object(p.jsx)(ao,{onOpenTrainingEvents:s}),Object(p.jsx)(Bn,{open:n,onClose:()=>{r(!1)}})]})};const Fn=Object(u.a)((e=>({priority1:{textAlign:"center",minHeight:"24px",height:"fit-content",fontSize:"13px",lineHeight:"1.4",padding:"3px",background:"#ffd3e1",color:"#C9004A",fontFamily:"Work Sans, sans-serif"},priority2:{textAlign:"center",minHeight:"24px",height:"fit-content",fontSize:"13px",lineHeight:"1.4",padding:"3px",background:"#fee7cc",color:"#944E00",fontFamily:"Work Sans, sans-serif"},priority3:{fontFamily:"Work Sans, sans-serif",background:"#6c63ff",textAlign:"center",color:"#fff",height:"fit-content",lineHeight:"1.4",fontSize:"13px",padding:"3px"},linkBanner:{textDecoration:"underline",fontWeight:600},priority2span:{fontWeight:600},containerAlerts:{width:"100%"},linkAlertsPlan:{cursor:"pointer",fontWeight:600,color:"#C9004A","&:hover":{color:"#C9004A"}}})));var Mn=()=>{const[e,t]=Object(i.useState)(!0),[a,n]=o.a.useState({}),[r,s]=o.a.useState(""),l=Fn();Object(i.useEffect)((()=>{const e=(new L.a).get("Secure-1CBL");let a=JSON.parse(Object(H.b)(e));t(a.data.verified),c(e)}),[]);const c=e=>{fetch(Object(aa.a)()+"message/banner",{method:"get",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}).then((e=>{if(""!==e)return e.json()})).then((e=>{const t=e;return n(t),s(t.messages),t})).catch((e=>{}))};return Object(p.jsxs)("div",{className:l.containerAlerts,children:[!1===e&&Object(p.jsxs)("div",{className:l.priority3,children:[Ti.a.t("validatedText"),Object(p.jsx)("a",{href:"/v3/login/mailauth",style:{color:"#fff"},children:Ti.a.t("linkValidatedText")})]}),!0===e&&0!==Object.keys(a).length&&Object(p.jsxs)("div",{className:l[`priority${a.priority}`],children:[" ",r[0]]})]})};const Vn=Object(u.a)((e=>({cblTopNavWrapper:{display:"flex",flexDirection:"row",margin:"auto 0",padding:"0 20px 0 85px",height:" 60px",position:"relative",transition:"all ease .4s"},containerHeader:{position:"sticky",top:"0.05px",zIndex:"100","@media (max-width: 800px)":{position:"fixed"}}})));var Wn=()=>{const e=Vn();return Object(p.jsxs)(v.a,{container:!0,className:e.containerHeader,children:[Object(p.jsx)(Mn,{}
1),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.cblTopNavWrapper,children:Object(p.jsx)(Dn,{})})]})},Hn=a(765),Un=a(716),_n=a(736),zn=a(580);const qn=Object(u.a)((e=>({radioButton:{color:"#666666",fontFamily:"Work Sans, sans-serif"},card:{width:"939px",height:"100px","@media (max-width: 1060px)":{width:"800px"},"@media (max-width: 900px)":{width:"650px"},"@media (max-width: 685px)":{width:"500px"},"@media (max-width: 479px)":{width:"100%"}},containerCard:{display:"flex",justifyContent:"center",marginBottom:"20px",cursor:"pointer"},containerInfCard:{alignItems:"center",height:"100%",padding:"10px 10px 10px 20px"},containerRadioButton:{display:"flex",justifyContent:"flex-end"},titleCard:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"20px",marginBottom:"10px"},textCard:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"18px"},containerInfTextCard:{"@media (max-width: 900px)":{paddingLeft:"10px"},"@media (max-width: 675px)":{paddingLeft:"20px"},"@media (max-width: 480px)":{paddingLeft:"30px"}}})));var Gn=e=>{let{title:t,text:a,value:i,altImg:o,img:n,checked:r,handleCardSelection:s,limitedCombo:l}=e;const c=qn(),d=r?{borderWidth:2,borderColor:"#00A692",borderStyle:"solid"}:null,u=l?{opacity:.3,border:"0px solid transparent",cursor:"default"}:{};return Object(p.jsx)(v.a,{onClick:()=>{l||s(i,l)},className:c.containerCard,children:Object(p.jsx)(Un.a,{style:l?{...u}:{...d},className:c.card,children:Object(p.jsxs)(v.a,{container:!0,className:c.containerInfCard,children:[Object(p.jsx)(v.a,{item:!0,xs:2,sm:1,children:Object(p.jsx)(y.a,{component:"img",alt:o,src:n})}),Object(p.jsxs)(v.a,{item:!0,xs:8,sm:9,className:c.containerInfTextCard,children:[Object(p.jsx)(cn.a,{variant:"h5",component:"h2",className:c.titleCard,children:t}),Object(p.jsx)(cn.a,{variant:"h5",component:"p",className:c.textCard,children:a})]}),Object(p.jsx)(v.a,{item:!0,xs:2,sm:2,className:c.containerRadioButton,children:Object(p.jsx)(zn.a,{value:i,control:Object(p.jsx)(_n.a,{disableRipple:!0,checked:r,sx:{color:"#666666","&.Mui-checked":{color:"#00A692!important"},"& .MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"},"& .MuiSvgIcon-root":{width:"18px!important",height:"18px!important"}},className:c.radioButton})})})]})})})};function Yn(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}var Kn=()=>{const e=(new L.a).get("Secure-1CBL");if(!e){const e=window.location.href,t=e.indexOf("/v3"),a=e.substring(0,t);window.location.href=a+"/v3/login"}return JSON.parse(Object(H.b)(e))};const Xn=Object(u.a)((e=>({grid:{padding:"10px 0 30px 0","@media (max-width: 479px)":{padding:"10px 0 15px 0"}},link:{display:"flex",flexDirection:"row",alignItems:"center",color:"#007868",fontSize:"14px",lineHeight:"16px",fontFamily:"Work Sans, sans-serif",fontWeight:400,"&:hover":{textDecoration:"none",color:"#007868"}},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"26px",lineHeight:"26px",marginLeft:"0px","@media (max-width: 479px)":{fontSize:"18px"}},info:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",marginLeft:5},arrow:{alignSelf:"center",marginTop:5,marginLeft:5},gridLink:{justifyContent:"flex-end"},infoIcon:{marginLeft:5},IconArrow:{fontSize:"20px",display:"flex",alignItems:"center",padding:"5px 0 0 5px"},buttonActions:{display:"flex",gap:15,alignItems:"center",justifyContent:"flex-end","@media (max-width: 600)":{gap:20}},buttonActionsMobile:{display:"flex",gap:10,alignItems:"center",width:"100%",justifyContent:"center",marginBottom:15},vSeparator:{width:1,height:28,backgroundColor:ui.a.grey400}})));var Zn=e=>{let{title:t="",isEdition:a=!1,isVariant:o=!1,conceptId:n=0,filters:r=""}=e;const s=Xn(),{width:l}=function(){const[e,t]=Object(i.useState)(Yn());return Object(i.useEffect)((()=>{function e(){t(Yn())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}(),[d,u]=Object(i.useState)(""),m=Kn(),g=m.data.country;Object(i.useEffect)((()=>{"ar"===g&&u("https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium"),"cl"===g&&u("https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium"),"uy"===g&&u("https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium"),"py"===g&&u("https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium")}),[g]);const b=()=>{Object(c.b)('Click en "Tutoriales recomendados"',{userId:m.data.userId,referred:!0,planName:m.data.plan_name})},h=()=>{const e=a?"PyS - Anterior Edici\xf3n Producto":"PyS - Anterior Carga Producto";Object(c.b)(e)};let x="";return x=a?`/conceptose.aspx?ID=${n}&filters=${r}`:"/conceptose.aspx",Object(p.jsx)(v.a,{container:!0,className:s.grid,xs:12,md:12,xl:12,children:Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},className:s.container,justifyContent:"space-between",children:[l<675&&Object(p.jsxs)(v.a,{className:s.buttonActionsMobile,children:[Object(p.jsxs)(so.a,{onClick:b,href:d,className:s.link,target:"_blank",children:[Object(p.jsx)(M,{name:"questionCircle"}),Object(p.jsx)(cn.a,{className:s.info,children:Ti.a.t("tutorial")}),Object(p.jsx)(ni.a,{className:s.IconArrow,name:"greenArrow"})]}),!o&&Object(p.jsx)("div",{className:s.vSeparator}),!o&&Object(p.jsxs)(so.a,{onClick:h,href:x,className:s.link,target:"_blank",children:[Object(p.jsx)(cn.a,{className:s.info,children:Ti.a.t("goToOldConceptsCreation")}),Object(p.jsx)(ni.a,{className:s.IconArrow,name:"greenArrow"})]})]}),Object(p.jsx)(cn.a,{className:s.title,children:t}),l>=675&&Object(p.jsxs)(v.a,{className:s.buttonActions,children:[Object(p.jsxs)(so.a,{onClick:b,href:d,className:s.link,target:"_blank",children:[Object(p.jsx)(M,{name:"questionCircle"}),Object(p.jsx)(cn.a,{className:s.info,children:Ti.a.t("recommendedTutorial")}),Object(p.jsx)(ni.a,{className:s.IconArrow,name:"greenArrow"})]}),!o&&Object(p.jsx)("div",{className:s.vSeparator}),!o&&Object(p.jsxs)(so.a,{onClick:h,href:x,className:s.link,children:[Object(p.jsx)(cn.a,{className:s.info,children:Ti.a.t("goToOldConceptsCreation")}),Object(p.jsx)(ni.a,{className:s.IconArrow,name:"greenArrow"})]})]})]})})};const Qn="LOAD_START",Jn="LOAD_SUCCESS",$n="LOAD_ERROR",er={activeFields:[],loading:!1,error:!1,loaded:!1},tr=(e,t)=>{switch(t.type){case Qn:return{...e,loading:!0,error:!1};case Jn:return{activeFields:t.payload,loading:!1,error:!1,loaded:!0};case $n:return{activeFields:[],loading:!1,error:!0,loaded:!0};default:return e}};var ar=()=>{const[e,t]=Object(i.useReducer)(tr,er),a=Object(i.useRef)(!1),o=Object(i.useRef)(!0);Object(i.useEffect)((()=>()=>{o.current=!1}),[]);return{...e,load:Object(i.useCallback)((async()=>
1{if(!a.current){a.current=!0,t({type:Qn});try{const e=await Ya.productFields.getActiveProductFields();if(!o.current)return;t({type:Jn,payload:Array.isArray(e)?e:[]})}catch(e){if(!o.current)return;t({type:$n})}}}),[])}};const ir=Object(i.createContext)();function or(e){const[t,a]=Object(i.useState)({option:"",name:"",status:"",description:"",headingId:"",subHeadingId:"",code:"",barcode:"",stock:"",minStock:"",currencyId:"",internalCost:"",profitability:"",unitPrice:"",iva:"",oemCode:"",personId:"",purchasePlanId:"",salePlanId:"",merchandisePlanId:"",visible:"",RG5329:"",observations:"",comboItems:"",autoPrice:"",headingValue:"",personValue:"",purchaseValue:"",merchandisePlanValue:"",salePlanValue:"",internalCostValue:"",profitabilityValue:"",unitPriceValue:"",ivaDataValue:"",ivaRateId:"",finalPrice:"",dataItems:"",currencySelected:"",lastCurrencySelected:"",attributesList:"",fields:[],modifiedVariants:[],unitPriceForAll:!1,ivaForAll:!1,presentations:[],presentationsByVariant:{},presentationsApplyToAll:!0,presentationsHideApplyToAll:!1}),[o,n]=Object(i.useState)(""),[r,s]=Object(i.useState)([]);const l={datosFormulario:t,actualizarDatosFormulario:function(e){a((t=>({...t,...e})))},reiniciarDatosFormulario:function(){a({option:"",name:"",status:"",description:"",headingId:"",subHeadingId:"",code:"",barcode:"",stock:"",minStock:"",currencyId:"",internalCost:"",profitability:"",unitPrice:"",iva:"",oemCode:"",personId:"",purchasePlanId:"",salePlanId:"",merchandisePlanId:"",visible:"",RG5329:"",observations:"",comboItems:"",autoPrice:"",headingValue:"",personValue:"",purchaseValue:"",merchandisePlanValue:"",salePlanValue:"",internalCostValue:"",profitabilityValue:"",unitPriceValue:"",ivaDataValue:"",ivaRateId:"",finalPrice:"",dataItems:"",currencySelected:"",lastCurrencySelected:"",isComboError:!1,attributesList:"",fields:[],modifiedVariants:[],unitPriceForAll:!1,ivaForAll:!1,presentations:[],presentationsByVariant:{},presentationsApplyToAll:!0,presentationsHideApplyToAll:!1})},currencyData:o,setCurrencyData:n,tableData:r,setTableData:s,descriptiveFields:ar()};return Object(p.jsx)(ir.Provider,{value:l,children:e.children})}const nr=()=>Object(i.useContext)(ir);var rr=ir;const sr=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},radioButton:{color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end"}})));var lr=e=>{let{nextStep:t,userPlan:a,availableConcepts:o,userCountry:n}=e;const{datosFormulario:r,actualizarDatosFormulario:s}=Object(i.useContext)(rr),[l,c]=Object(i.useState)("P"),[d,u]=Object(i.useState)(!1),m=sr();Object(i.useEffect)((()=>{0===o&&b()}),[o]),Object(i.useEffect)((()=>{!Boolean(a)||"Freemium"!==a&&"Prueba"!==a||"ar"!==n||u(!0)}),[a,n]);const g=(e,t)=>{t||c(e)},b=()=>{window.open("/conceptos.aspx","_self")};return Object(p.jsx)("div",{children:Object(p.jsx)(v.a,{className:m.root,children:Object(p.jsxs)(R.a,{children:[Object(p.jsx)(Zn,{title:Ti.a.t("addNew")}),Object(p.jsxs)(Hn.a,{defaultValue:"P",children:[Object(p.jsx)(Gn,{altImg:"Producto",img:"data:image/jpeg;base64,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",text:Ti.a.t("createNproduct"),title:"Producto",type:"CardsNewProductsPrimary",value:"P",checked:"P"===l,handleCardSelection:g}),Object(p.jsx)(Gn,{altImg:"Servicio",img:"data:image/jpeg;base64,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",text:Ti.a.t("createNService"),title:"Servicio",type:"CardsNewProductsPrimary",value:"S",checked:"S"===l,handleCardSelection:g}),Object(p.jsx)(Gn,{altImg:"Combo",img:"data:image/jpeg;base64,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",text:Ti.a.t("createNCombo"),title:"Combo",type:"CardsNewProductsPrimary",value:"C",limitedCombo:d,checked:d?null===l:"C"===l,handleCardSelection:g})]}),Object(p.jsxs)(v.a,{container:!0,className:m.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{onClick:b,type:"secondary",children:Ti.a.t("cancel")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{onClick:()=>{"C"===l&&d||(s({...r,option:l}),t())},type:"primary",children:Ti.a.t("accept")})})]})]})})})},cr=(a(478),a(29));const dr={helpIcon:"M6.83325 0.333313C3.24927 0.333313 0.333252 3.24933 0.333252 6.83331C0.333252 10.4173 3.24927 13.3333 6.83325 13.3333C10.4172 13.3333 13.3333 10.4173 13.3333 6.83331C13.3333 3.24933 10.4172 0.333313 6.83325 0.333313ZM6.83325 1.33331C9.87622 1.33331 12.3333 3.79034 12.3333 6.83331C12.3333 9.87628 9.87622 12.3333 6.83325 12.3333C3.79028 12.3333 1.33325 9.87628 1.33325 6.83331C1.33325 3.79034 3.79028 1.33331 6.83325 1.33331ZM6.33325 3.83331V4.83331H7.33325V3.83331H6.33325ZM6.33325 5.83331V9.83331H7.33325V5.83331H6.33325Z",currency:"M5.79982 7.9C3.52982 7.31 2.79982 6.7 2.79982 5.75C2.79982 4.66 3.80982 3.9 5.49982 3.9C7.27982 3.9 7.93982 4.75 7.99982 6H10.2098C10.1398 4.28 9.08982 2.7 6.99982 2.19V0H3.99982V2.16C2.05982 2.58 0.499824 3.84 0.499824 5.77C0.499824 8.08 2.40982 9.23 5.19982 9.9C7.69982 10.5 8.19982 11.38 8.19982 12.31C8.19982 13 7.70982 14.1 5.49982 14.1C3.43982 14.1 2.62982 13.18 2.51982 12H0.319824C0.439824 14.19 2.07982 15.42 3.99982 
115.83V18H6.99982V15.85C8.94982 15.48 10.4998 14.35 10.4998 12.3C10.4998 9.46 8.06982 8.49 5.79982 7.9Z",percentage:"M4.1665 0C2.2365 0 0.666504 1.57 0.666504 3.5C0.666504 5.43 2.2365 7 4.1665 7C6.0965 7 7.6665 5.43 7.6665 3.5C7.6665 1.57 6.0965 0 4.1665 0ZM4.1665 5C3.3365 5 2.6665 4.33 2.6665 3.5C2.6665 2.67 3.3365 2 4.1665 2C4.9965 2 5.6665 2.67 5.6665 3.5C5.6665 4.33 4.9965 5 4.1665 5ZM13.1665 9C11.2365 9 9.6665 10.57 9.6665 12.5C9.6665 14.43 11.2365 16 13.1665 16C15.0965 16 16.6665 14.43 16.6665 12.5C16.6665 10.57 15.0965 9 13.1665 9ZM13.1665 14C12.3365 14 11.6665 13.33 11.6665 12.5C11.6665 11.67 12.3365 11 13.1665 11C13.9965 11 14.6665 11.67 14.6665 12.5C14.6665 13.33 13.9965 14 13.1665 14ZM2.0765 16L0.666504 14.59L15.2565 0L16.6665 1.41L2.0765 16Z",clearIcon:"M6.4 15L10 11.4L13.6 15L15 13.6L11.4 10L15 6.4L13.6 5L10 8.6L6.4 5L5 6.4L8.6 10L5 13.6L6.4 15ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20Z"};var ur=e=>{let{name:t,onClick:a,...i}=e;return Object(p.jsx)(D.a,{onClick:a,...i,viewBox:"0 0 18 18",width:"13px",height:"13px",children:Object(p.jsx)("path",{d:dr[t]})})};const pr=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["input",...t].filter(Boolean).join(" ")};var mr=e=>{let{children:t,types:a="",required:o=!1,placeholder:n="",onFocus:r=(()=>null),onBlur:s=(()=>null),showError:l=!1,errorMsg:c="",loading:d=!1,clearBtn:u=!1,onChange:m=(()=>null),disabled:g=!1,showIconTooltip:b=!1,iconType:h="",showIcon:x=!1,icon:f="",value:v="",textTooltip:j="",showMsg:A=!1,showLabel:C=!1,textMsg:y="",type:O="",maxLength:S=50,autoComplete:E="",onInput:I=(()=>null),disabledMinHeight:w=!1,onKeyDown:T=(()=>null),containerStyle:P={},handleClearBtnClick:R=(()=>null),testId:N}=e;const[L,k]=Object(i.useState)(!1),[B,D]=Object(i.useState)(!1),F=e=>{m(e),u&&(e.clear&&R(),D(""!==e.target.value))};return Object(p.jsxs)("div",{className:`${w?"":"inputMinHeight"} inputContainer ${P}`,children:[!1===C&&Object(p.jsxs)("label",{className:"inputlabel",children:[!0===o&&Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ",t," ",!0===b&&Object(p.jsx)(cr.a,{title:j,"aria-label":"Tooltip",placement:"top",arrow:!0,open:L,onOpen:()=>k(!0),onClose:()=>k(!1),children:Object(p.jsx)("button",{className:"tooltipButton",children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:h,onClick:()=>k(!L)})})})]}),Object(p.jsx)("input",{"data-testid":N,maxLength:S,className:`${pr(a)} ${u?"clearBtnPadding":""}`,type:O,placeholder:!0===d?"       Cargando...":n,onFocus:r,onChange:F,onInput:I,onBlur:s,disabled:!0===g||!0===d&&"disabled",value:v,onKeyDown:T,autoComplete:E}),!0===d&&Object(p.jsx)(oi.a,{className:"inputIcon"}),!0===x&&Object(p.jsx)(ur,{className:"inputIconInside",name:f}),!0===l&&Object(p.jsx)("p",{className:"inputErrorMsg","data-testid":N?`${N}-error`:void 0,children:c}),!0===A&&Object(p.jsx)("p",{className:"inputTextMsg",children:y}),u&&B&&(null===v||void 0===v?void 0:v.length)>0&&Object(p.jsx)(ur,{className:"inputIconInsideEnd",name:"clearIcon",onClick:()=>F({target:{value:""},clear:!0})})]})},gr=a(717),br=a(766),hr=a(750);var xr=Object(jn.a)({palette:{primary:{main:"#00C7AF"},danger:{main:"#FF2569"},warning:{main:"#FB8500"},info:{main:"#6C63FF"}},typography:{fontFamily:"Work Sans, sans-serif "}});a(479);var fr=e=>{let{checked:t,onChange:a,onClick:i,label:o,labelPlacement:n,children:r,showError:s,errorMsg:l,icon:c,iconName:d,helper:u,helperText:m,disabled:g,color:b,testId:h,ariaLabel:x}=e;return Object(p.jsxs)(bn.a,{theme:xr,children:[Object(p.jsx)(zn.a,{label:!0===o?r:null,labelPlacement:n,disabled:g,className:"label",sx:{"& .MuiFormControl
1Label-label":{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"14px"}},control:Object(p.jsx)(gr.a,{defaultChecked:void 0===t||void 0,checked:t,onChange:a,color:b,inputProps:{"data-testid":h,"aria-label":x}})}),!0===s&&Object(p.jsx)("p",{className:"errorMsg",children:l}),!0===c&&Object(p.jsx)(mi,{name:d,onClick:i,className:"icon",viewBox:"0 0 35 35"}),Object(p.jsx)(hr.a,{container:!0,item:!0,children:!0===u&&Object(p.jsx)(br.a,{children:m,sx:{fontSize:"11px"}})})]})},vr=a(270),jr=a(718),Ar=a(744),Cr=(a(340),a(244)),yr=a.n(Cr),Or=a(245),Sr=a.n(Or),Er="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAg1JREFUWIXdmM1RwzAQhT9+DrkRKiAdwJEbLoEOcAnpIOmA0EE6IFQQOgAqMFRgUwEcYoNwJO2u5ECGN7OT8UR++yRLqydBPlbAhxCrVPLDAQSeKdqcp5IfpL7o4GOXuXJH8MLQdpKSIFegJamlM18ICRwr37cI1LZV5V4DFVBG2hRtG2kFdyHxlW3etSSuDBB3PStaEq0wn9Ci5RoDM6Duten+9yI0KhVwnyGsH/ceYW4uL6YDCsiNeV/cJDJ6fxE1MD5yBC4Qvv0vYwSMuurejd7e4bj93freCWiAB+C1fb4ArtDX1ChKwitKE4uIkHkGb+0SpS6SWPF1B8DK+0hg97H02DI1FgbeqUR2jTyadfBtP8bI08jdZURITjnFJS+tnDG7dSIke04Q+Cr8v7XQhrD8O0VM4LvwruYs0odkWhstUYE8oWvsRXiQRXIrkLhxaxA3M/DOfAQT4MlA0sWNQtxNAm+FU6in5G113h6zmQKWL7I1jTo3sybfajVstqeX9vmMTcHPMgt7b7c6w9oAp8DlH2rxYek+aPbK34wKmLiFugHuBut7Pu4IbI0hF1Oju2rTxiqSK7oeCo+wOd+rMff01z+4lx4+0QSv2ZQM6api6KuPqs0rQlu7LAd9rfv+kTvkZrSuQvJ3LrT+8UfuXD9oMa2Wznzh318BA7wp2qQcD4BhBGqSazrhxSfhygfvEEfL2gAAAABJRU5ErkJggg==",Ir=a(389);const wr=e=>t=>Object(p.jsx)(Ir.a,{...t,style:{zIndex:e?1e4:90,...t.style}}),Tr=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["searchSelect",...t].filter(Boolean).join(" ")};function Pr(e){let{label:t,required:a,type:o,placeholder:n,disabled:r,showIconTooltip:s,iconType:l,showIcon:c,icon:d,showError:u,errorMsg:m,loading:g,data:b,small:h,large:x,onChange:f,onBlur:v,defaultValue:j,value:A,iconConfiguration:C,hrefIcon:y,onSelectInputChange:O,twoOptions:E,disabledMinHeight:I=!1,smallTopHeight:w=!1,disabledMarginBottom:T=!1,smallField:P=!1,isUsedInModal:R=!1,legendText:N="",sx:L={},onClick:k=(()=>{}),textTooltip:B="",optionsLimit:D}=e;const[F,M]=Object(i.useState)(!1),V=Object(i.useMemo)((()=>(e=>Number.isInteger(e)&&e>0?Object(jr.a)({limit:e}):void 0)(D)),[D]);return Object(p.jsxs)("div",{className:(I?"":"searchSelectContainerMinHeight")+" searchSelectContainer",children:[Boolean(t)&&Object(p.jsxs)("label",{className:(T?"":"searchSelectlabelNormal")+" searchSelectlabel",children:[!0===a&&Object(p.jsx)("span",{className:"searchSelectArterisk",children:"* "}),t,!0===s&&Object(p.jsx)(cr.a,{title:B,"aria-label":"Tooltip",placement:"top",arrow:!0,open:F,onOpen:()=>M(!0),onClose:()=>M(!1),children:Object(p.jsx)("button",{className:"searchSelectButton",children:Object(p.jsx)(ni.a,{className:"searchSelectHelpIcon",name:l,onClick:()=>M(!F)})})})]}),Object(p.jsxs)("div",{className:C?"iconConfigurationDiv":"",children:[Object(p.jsx)(Ar.a,{PopperComponent:wr(R),className:` ${r?"selectDisabled":Tr(o)}`,ListboxProps:{},onChange:f,onBlur:v,value:A,getOptionLabel:e=>E?`${e.code} - ${e.name}`:e.name||e.value,defaultValue:j,id:"custom-autocomplete",options:b,...V?{filterOptions:V}:{},disabled:!0===r||!0===g&&"disabled",noOptionsText:Object(p.jsx)(S.a,{className:"selectSearchNoOption",children:Ti.a.t("noOption")}),sx:{legend:{display:"none"},"& fieldset":{display:"none"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{border:0},...L},renderInput:e=>Object(p.jsx)(vr.a,{onChange:O,sx:{label:{top:"-6px"},"&  .MuiInputLabel-root.Mui-focused":{display:"none"},...!0===g&&{"&  .MuiInputLabel-root":{marginLeft:"30px"}},...!0===h&&{"&  .MuiInputBase-root":{height:"30px"},"& .MuiAutocomplete-hasPopupIcon.css-1t1szha-MuiAutocomplete-root .MuiOutlinedInput-root":{height:"30px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-10px"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"1px"}},...!0===x&&!1===h&&{"&  .MuiInputBase-root":{height:"45px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-5px"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"10px"}},...!1===x&&!1===h&&{"&  .MuiInputBase-root":{height:"40px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-5px!important"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"5px"}},"&  .MuiInputBase-root":{height:"40px"},"& .MuiInputBase-input":{position:"absolute"},"&  .MuiInputLabel-root":{fontFamily:"Work Sans",fontSize:"14px"}
1,"& .MuiAutocomplete-inputRoot .MuiAutocomplete-input":{minWidth:"65% !important",fontFamily:"Work Sans",fontSize:"14px"},"& .css-1sumxir-MuiFormLabel-root-MuiInputLabel-root":{color:"white"},...!0===c&&{"&  .MuiAutocomplete-inputRoot .MuiAutocomplete-input":{paddingLeft:"40px",minWidth:P?"48% !important":"62% !important"}},"& .MuiAutocomplete-clearIndicator":{display:"none"},"& MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined .css-1sumxir-MuiFormLabel-root-MuiInputLabel-root":{display:"none !important"},"& .MuiButtonBase-root .MuiIconButton-root .MuiIconButton-sizeMedium .MuiAutocomplete-clearIndicator .css-edpqz1":{display:"none !important"},"& .MuiFormLabel-root .MuiInputLabel-root .MuiInputLabel-formControl .MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined .MuiFormLabel-colorPrimary .MuiFormLabel-filled .MuiInputLabel-root .MuiInputLabel-formControl .MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined .css-u9osun":{color:"white !important"},"& .MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined ":{color:"white !important"},"& .css-u9osun":{color:"white !important"},"& .css-edpqz1":{display:"none !important"},"& .MuiAutocomplete-endAdornment css-2iz2x6":{display:"none !important"},"& .css-1jy569b-MuiFormLabel-root-MuiInputLabel-root":{color:"white !important"},"& .MuiInputLabel-animated MuiInputLabel-shrink .MuiInputLabel-outlined .css-1ald77x":{color:"white !important"},...L},...e,label:!0===g?" ":n,InputLabelProps:{shrink:!1}}),renderOption:(e,t,a)=>{let{inputValue:i}=a;const o=E?`${t.code} - ${t.name}`:t.name||t.value,n=Sr()(o,i,{insideWords:!0}),r=yr()(o,n);return Object(p.jsx)("li",{...e,children:Object(p.jsx)("div",{children:r.map(((e,t)=>Object(p.jsx)("span",{className:"selectSearchPopper ",children:e.text},t)))})})}}),!0===C&&Object(p.jsxs)("a",{onClick:k,href:y,children:[" ",Object(p.jsxs)("button",{className:"iconConfigurationBtn",children:[Object(p.jsx)("img",{className:"iconConfigurationImg",alt:"",src:Er})," "]})," "]})]}),!0===g&&Object(p.jsxs)("div",{className:"searchSelectContainerIcon",children:[" ",Object(p.jsx)(oi.a,{className:"searchSelectIcon"}),Object(p.jsx)(S.a,{className:"searchSelectLoadingTyp",children:"Cargando..."})]}),!0===u&&Object(p.jsx)("p",{className:"searchSelectErrorMsg",children:m}),Boolean(N)&&Object(p.jsx)("p",{className:"searchSelectLegendText",children:N}),!0===c&&Object(p.jsx)(ur,{className:(w?"":"searchSelectIconInsideTop")+" searchSelectIconInside",name:d})]})}a(480),a(481);const Rr=e=>/^\S/.test(e)?e:e.trim();var Nr=e=>{let{onImageChange:t=(()=>{}),initialValue:a="",imageErrorState:o=""}=e;const[n,r]=Object(i.useState)(""),[s,l]=Object(i.useState)("");Object(i.useEffect)((()=>{a&&r(a)}),[]),Object(i.useEffect)((()=>{Boolean(o)&&(l(o),t({url:n,error:o}))}),[o]);return Object(p.jsxs)("div",{className:"urlInput",children:[Object(p.jsx)(mr,{placeholder:"URL de la imagen",types:""+(s?"inputError":"inputPrimary"),showError:!0,errorMsg:s,onChange:e=>{const a=Rr(e.target.value);if(r(a),a.length>150)return t({url:a,error:"La URL de la imagen supera los caracteres m\xe1ximos permitidos"}),void l("La URL de la imagen supera los caracteres m\xe1ximos permitidos");/\.(jpeg|jpg|gif|png)$/.test(a)&&a.startsWith("https://")?(t({url:a,error:!1}),l("")):(t({url:a,error:"La URL no es una imagen v\xe1lida"}),l("La URL no es una imagen v\xe1lida")),""===a&&(t({url:null,error:!1}),l(!1))},maxLength:"151",value:n,disabledMinHeight:!0}),Object(p.jsxs)("p",{className:"urlInputCounter",children:[n.length," / 150"]})]})};var Lr=e=>{let{title:t="",helper:a="",helper2:o="",iconName:n="",format:r="",image:s="",imageError:l=!1,handleImageChange:c=(()=>null),uploadImageByUrl:d=!1}=e;const[u,m]=Object(i.useState)(!1);Object(i.useEffect)((()=>{m(!1)}),[s]);return Object(p.jsxs)("div",{className:"component",children:[Object(p.jsx)("div",{style:{borderColor:l||u?ui.a.error400:"#c6c6c6"},className:"previewContainer",children:Object(p.jsx)("div",{className:"preview",children:!s||u||l?Object(p.jsxs)("div",{id:"legend",children:[Object(p.jsx)(mi,{name:n,className:"upLoadIcon"}),Object(p.jsx)("p",{className:"text",children:d?"Previsualizar imagen":"A\xf1adir imagen"})]}):Object(p.jsx)("img",{onError:()=>{m("La URL no es una imagen v\xe1lida")},src:s,id:"preview-selected-image",alt:"Previsualizaci\xf3n"})})}),Object(p.jsxs)("div",{className:"upload",children:[Object(p.jsx)("p",{className:"title",children:t}),Object(p.jsxs)("p",{className:"helper",children:[a," ",Object(p.jsx)("strong",{children:r})," ",o]}),!d&&Object(p.jsxs)("label",{className:"customFileUpload",children:[Object(p.jsx)("input",{id:"idInput",type:"file",className:"input",accept:".jpg, .png, .gif",onChange:e=>{const t=e.target.files;if(t.length>0){const e=URL.createObjectURL(t[0]),a=document.querySelector("#preview-selected-image"),i=document.querySelector("#legend");a.src=e,a.style.display="block",i.style.display="none"}}}),"Seleccionar archivo"]}),d&&Object(p.jsx)(Nr,{onImageChange:c,initialValue:s,imageErrorState:u})]})]})},kr=a(769),Br=a(768),Dr=a(737),Fr=a(743),Mr=a(721),Vr=a(365);const Wr=Object(T.a)(Mr.a)((e=>{let{theme:t}=e;return{[`&.${Vr.a.alternativeLabel}`]:{top:20,"@media (max-width: 600px)":{top:12}},[`&.${Vr.a.active}`]:{[`& .${Vr.a.line}`]:{backgroundColor:"#00a692"}},[`&.${Vr.a.completed}`]:{[`& .${Vr.a.line}`]:{backgroundColor:"#00a692"}},[`& .${Vr.a.line}`]:{height:2,border:0,backgroundColor:"dark"===t.palette.mode?t.palette.grey[800]:"#eaeaf0"},"@media (max-width: 600px)":{left:"calc(-50% + 10px)",right:"calc(50% + 10px)"}}})),Hr=Object(T.a)("div")((e=>{let{theme:t,ownerState:a}=e;return{backgroundColor:"dark"===t.palette.mode?t.palette.grey[700]:"#ccc",zIndex:1,color:"#fff",width:40,height:40,display:"flex",borderRadius:"50%",justifyContent:"center",alignItems:"center",...a.active&&{backgroundColor:"#00a692"},...a.completed&&{backgroundColor:"#00a692"},fontSize:14,"@media (max-width: 600px)":{width:25,height:25,fontSize:13}}})),Ur=Object(T.a)((e=>Object(p.jsx)(Br.a,{...e})))((e=>{let{theme:t}=e;return{flexDirection:"column",justifyContent:"center",alignItems:"center",display:"flex","@media (max-width: 600px)":{paddingLeft:0,paddingRight:0}}})),_r=Object(T.a)((e=>Object(p.jsx)(Dr.a,{StepIconComponent:zr,...e})))((e=>{let{theme:t}=e;return{}}));function zr(e){const{active:t,completed:a,className:i,icon:o}=e,n=qr();return Object(p.jsxs)(Hr,{ownerState:{completed:a,active:t},className:i,children:[a&&Object(p.jsx)(ni.a,{name:"check",className:n.checkIcon,viewBox:""}),a?null:o]})}const qr=Object(u.a)((e=>({stepperContainer:{position:"relative",justifyContent:"space-between",marginBottom:25,"@media (max-width: 600px)":{width:"108% !important",left:"-4% !important"}},label:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#666",fontWeight:400,textAlign:"center",marginTop:10,maxWidth:90,lineHeight:1.4,"@media (max-width: 600px)":{fontSize:12,maxWidth:100}},checkIcon:{transform:"scale(0.9)","@media (max-width: 600px)":{transform:"scale(0.8)"}},showOnSm:{"@media (max-width: 600px)":{display:"block"}},hideOnSm:{"@media (max-width: 600px)":{display:"none"}}})));var Gr=e=>{let{steps:t,activeStep:a=0}=e;const i=qr(),o=(e=>{switch(e){case 4:return{width:"115%",left:"-7.5%"};case 3:return{width:"132%",left:"-16%"};case 5:return{width:"108%",left:"-4%"};default:return{width:"100%",left:"0%"}}})(t.length);return Object(p.jsx)(y.a,{sx:{width:"100%"},children:Object(p.jsx)(Fr.a,{sx:{width:"100%"},spacing:4,children:Object(p.jsx)(kr.a,{style:o,className:i.stepperContainer,alternativeLabel:!0,activeStep:a,connector:Object(p.jsx)(Wr,{}),children:t.map(((e,t)=>Object(p.jsxs)(Ur,{children:[Object(p.jsx)(_r,{}),Object(p.jsx)(cn.a,{style:{color:t===a?"#00a692":"#666666"},className:[i.label,t===a?i.showOnSm:i.hideOnSm],variant:"h6",children:e})]},e)))})})})};const Yr=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}})),Kr={cursor:"pointer",color:"#666666","&.Mui-checked":{color:"#00A692!important"}
1,"& .MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"},"& .MuiSvgIcon-root":{width:"18px!important",height:"18px!important"}},Xr=Object(u.a)((e=>({container:{backgroundColor:"#F6F6F6",borderRadius:"20px",padding:"16px",marginTop:"20px",marginBottom:"20px"},inputArterisk:{color:"#f32465"},containerTitle:{minHeight:"30px",display:"flex",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"15px",fontFamily:"Work Sans, sans-serif",color:"#131313",fontWeight:"500",lineHeight:"18px",alignSelf:"center"},functionality:{backgroundColor:"#00C7AF10",color:"#007868",borderRadius:"50px",padding:"6px 10px 6px 12px","@media (max-width: 390px)":{textAlign:"center",width:"120px"}},funcText:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",fontWeight:"400",lineHeight:"18px"},containerDescription:{marginTop:"15px",marginBottom:"5px"},description:{fontSize:"14px",fontFamily:"Work Sans, sans-serif",color:"#666666",fontWeight:"400",lineHeight:"18px"},radioButton:{color:"#666666",fontFamily:"Work Sans, sans-serif"},radioText:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:"400",lineHeight:"16.42px",height:"18px",marginBottom:"10px",cursor:"pointer"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},margins:{marginTop:15,"@media (max-width: 600px)":{marginTop:20}}})));var Zr=e=>{let{handleTypeSelectorChange:t=(()=>null),type:a="Unique",option:i="",showCodeInput:o=!1,code:n="",validatedCode:r=!0,placeholder:s,userPlan:l="",availableConcepts:c=null,userCountry:d="",handleInputCodeChange:u=(()=>null),handleValidationCode:m=(()=>null)}=e;const g=Xr(),b=["Freemium","Prueba","BasicNew","StandardNew","ProNew","FullNew","Enterprise"].includes(l)&&"ar"===d&&c<=1;return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{className:g.container,xs:12,children:[Object(p.jsxs)(v.a,{className:g.containerTitle,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsxs)(cn.a,{className:g.title,children:[Object(p.jsx)("span",{className:g.inputArterisk,children:"* "})," ","P"===i?Ti.a.t("typeProduct"):Ti.a.t("typeService")]})}),Object(p.jsx)(v.a,{item:!0,className:g.functionality,children:Object(p.jsx)(cn.a,{className:g.funcText,children:Ti.a.t("newFunctionality")})})]}),Object(p.jsx)(v.a,{item:!0,className:g.containerDescription,children:Object(p.jsx)(cn.a,{className:g.description,children:"P"===i?Ti.a.t("typeSelectorDescriptionProduct"):Ti.a.t("typeSelectorDescriptionService")})}),Object(p.jsxs)(v.a,{className:g.margins,children:[Object(p.jsxs)(v.a,{onClick:()=>t("Unique"),item:!0,className:g.radioText,children:[Object(p.jsx)(_n.a,{onChange:t,checked:"Unique"===a,value:"Unique",disableRipple:!0,sx:Kr,className:g.radioButton}),Ti.a.t("only")]}),Object(p.jsxs)(v.a,{onClick:()=>!b&&t("Variants"),item:!0,className:g.radioText,style:{color:b?"#BBBBBB":"#131313"},children:[Object(p.jsx)(_n.a,{onChange:t,disabled:b,checked:b?null===a:"Variants"===a,value:"Variants",disableRipple:!0,sx:Kr,className:g.radioButton}),Ti.a.t("withVariants")]})]}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:4,children:o&&Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:g.margins,children:Object(p.jsxs)(Yr,{children:[Object(p.jsx)(mr,{placeholder:s,required:!0,disabledMinHeight:!0,types:""+(r?"inputPrimary":"inputError"),errorMsg:`${r?"":Ti.a.t("requiredField")}`,showError:!0,onChange:u,onBlur:m,maxLength:"50",value:n,children:s}),Object(p.jsx)("p",{className:g.footerForm,children:"P"===i?Ti.a.t("grouperSkuCodeP"):Ti.a.t("grouperSkuCodeS")})]})})})]})})},Qr=a(761);a(482);const Jr=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["alert2",...t].filter(Boolean).join(" ")};var $r=e=>{let{children:t,type:a,icon:i,iconName:o,onClick:n,iconStyle:r,viewBox:s,style:l,testId:c}=e;return Object(p.jsx)(v.a,{container:!0,item:!0,direction:"row",className:Jr(a),style:l,"data-testid":c,children:Object(p.jsxs)(v.a,{className:"containerAlert2",children:[Object(p.jsxs)(v.a,{className:"containerAlertText2",children:[Object(p.jsx)(ni.a,{name:o,className:"iconMessage2",style:r,viewBox:s}),Object(p.jsxs)(cn.a,{className:"messageAlert2",children:[" ",t]})]}),i&&Object(p.jsx)(Qr.a,{onClick:n,edge:"end",color:"inherit",disableRipple:!0,"data-testid":c?`${c}-close-button`:void 0,children:Object(p.jsx)(mi,{name:"close",className:"iconAlert2"})})]})})};const es=(new L.a).get("Secure-1CBL"),ts=10;var as=e=>{let{searchText:t="",open:a=!1,state:o="",page:n=1,searchPage:r=1,makeRequest:s=!0}=e;const[l,c]=Object(i.useState)([]),[d,u]=Object(i.useState)([]),[p,m]=Object(i.useState)(!1),[g,b]=Object(i.useState)(!1),[h,x]=Object(i.useState)(!1),[f,v]=Object(i.useState)(!1),[j,A]=Object(i.useState)(!1),[C,y]=Object(i.useState)(!1),[O,S]=Object(i.useState)(!1),[E,I]=Object(i.useState)(null),[w,T]=Object(i.useState)(!1),P=`${Object(aa.a)()}attributes`,R={"Content-Type":"application/json",Authorization:es},N=()=>{b(!1),v(!1),A(!1),v(!1),y(!1)},L=()=>{A(!0),N(),x(!1),B()},k=async()=>{N(),m(!0);const e=null!==o.active?`&active=${o.active}`:"";try{const a=(await ta.a.get(`${P}/?search=${t}${e}&paginate=1&limit=10&page=${r}`,{headers:R})).data;c(a.data),T(a.meta.last_page),S(0===a.data.length),m(!1)}catch(a){b(!0),console.log({error:a}),m(!1)}},B=async()=>{N(),m(!0);try{const e=(await ta.a.get(`${P}?paginate=1&limit=10&page=${n}`,{headers:R})).data;c(e.data),T(e.meta.last_page),m(!1)}catch(e){b(!0),console.log({error:e}),m(!1)}},D=async e=>{let{id:t}=e;try{const e=(await ta.a.get(`${P}/${t}`,{headers:R})).data;I(e)}catch(a){console.log({error:a})}};Object(i.useEffect)((()=>{a&&v(!1)}),[a]),Object(i.useEffect)((()=>{s&&B()}),[n]),Object(i.useEffect)((()=>{r>1&&k()}),[r]),Object(i.useEffect)((()=>{}),[j]);return{dataAttributes:l,errorAttributes:g,loadingAttributes:p,loadingCreation:h,errorCreation:f,noSearchResults:O,lastPage:w,successDelete:C,successCreation:j,attributeCreated:E,dataAttribute:d,createOrUpdateAttribute:async e=>{let{attribute:t,id:a}=e;N(),x(!0);const i=a?`${P}/${a}`:P,o=t;try{const e=a?await ta.a.put(i,o,{headers:R}):await ta.a.post(i,o,{headers:R});if(L(),e.data&&!a){const t=e.data;D({id:t})}else e.data&&a&&D({id:a})}catch(r){var n;v(null===r||void 0===r||null===(n=r.response)||void 0===n?void 0:n.data),console.log(r),x(!1)}},deleteAttribute:async e=>{let{id:t}=e;N(),x(!0);const a=`${P}/${t}`;try{await ta.a.delete(a,{headers:R}),y(!0),L()}catch(o){var i;v(null===o||void 0===o||null===(i=o.response)||void 0===i?void 0:i.data),console.log({error:o}),x(!1),y(!1)}},searchAttributes:k,fetchAttributes:B,setAttributeCreated:I,fetchAttribute:D,setErrorCreation:v,resetAttributeCreated:()=>{I(null)}}};const is={INTERNAL_CODE_ERROR:"Algo sali\xf3 mal, por favor int\xe9ntelo nuevamente",PRODUCT_NOT_FOUND:"El producto no se encuentra",JSON_NOT_VALID:"Algo sali\xf3 mal, por favor int\xe9ntelo nuevamente",SKU_DUPLICATED:"El SKU ya existe en otro concepto",CURRENT_RESERVATIONS_COMBO:"No se puede cambiar la cantidad de los elementos si el combo tiene reservas",PARENT_CONCEPT_ITEM:"El concepto existe en el combo",PRODUCT_ON_COMBO:"El producto estaba en otro combo, no se puede transformar en combo",DIFF_CURRENCY_COMBO:"La moneda de los elementos en el combo era diferente, debes usar la misma moneda para todos los elementos en el combo",TRANSACTION_RUNNING:"Estamos procesando su solicitud, por favor int\xe9ntelo nuevamente en unos segundos",TOO_MANY_TRANSACTIONS:"Estamos procesando su solicitud, por favor int\xe9ntelo nuevamente en unos segundos",PARAMETER_VALUE_NOT_ALLOWED:"El valor del par\xe1metro no est\xe1 permitido para ser utilizado en este par\xe1metro",INT_PARAMETER_INVALID:"El par\xe1metro debe ser un n\xfamero",PARAMETER_OUT_RANGE:"El par\xe1metro est\xe1 fuera del rango aceptado",HEADING_NOT_FOUND:"El encabezado no existe o el usuario no tiene este encabezado",CURRENCY_NOT_FOUND:"La moneda no existe o el usuario no tiene esta moneda",SUBHEADING_NOT_FOUND:"El subencabezado no existe o el usuario no tiene este subencabezado",CONCEPT_MISSING_ERROR:"El campo no ha sido completado en la carga",CONCEPT_IN_ERROR:"El campo no tiene un valor aceptado",CONCEPT_REGEX_ERROR:"El patr\xf3n aceptado para este campo no es v\xe1lido",CONCEPT_REQUIRED_ERROR:"El campo es obligatorio",CONCEPT_ARRAY_ERROR:"Algo sali\xf3 mal, por favor int\xe9ntelo nuevamente",CONCEPT_DECIMAL_ERROR:"El campo debe ser un decimal",COMBO_ITEM_NOT_EXIST:"Debe existir un elemento para poder agregar al combo",CONCEPT_INTEGER_ERROR:"El elemento debe ser un n\xfamero",CONCEPT_ALPHABETIC_NUMERIC_ERROR:"El elemento debe ser un n\xfamero o cadena",CONCEPT_DISTINC_
1ERROR:"El elemento debe ser diferente de otro elemento en la misma lista",CONCEPT_WITHOUT_SPACES:"No debe haber espacios",CONCEPT_MAX_DECIMALS:"El valor del campo necesita un n\xfamero entero y decimal correcto",DUPLICATED_PRODUCTS:"Lo siento! El producto ya se encuentra dentro del combo",MULTIPLE_PRODUCTS_CURRENCY_ERROR:"Lo siento! Solo se puede armar un combo con productos en la misma moneda",MULTIPLE_CURRENCYS_ERROR:"La moneda seleccionada no coincide con los productos agregados al combo",_REQUIRED_ERROR:"Campo requerido",_STRING_ERROR:"Error de string",DEFAULT_ERROR:"Ha ocurrido un error int\xe9ntelo mas tarde",MAX_UNIT_PRICE_COMBO_ERROR:"La suma total del precio unitario de todos los items supera los 10000000000, elimine items para poder crear el combo.",MIN_COMBO_ITEM_QUANTITY:"Lo siento! La cantidad por \xedtem debe ser mayor a 0,001.",MAX_UNIT_PRICE_COMBO_ERROR_ON_CREATION:"Lo siento! No se pueden crear combos cuya suma total del precio unitario de los items supere los 10000000000.",MAX_VARINATS_ITEM_QUANTITY:"Solo puedes a\xf1adir un m\xe1ximo de 10 variantes.",MAX_DUPLICATED_VARIA
1NTS:"Lo siento! No se pueden crear variantes con el mismo nombre.",ATTRIBUTE_EXISTS:"El nombre de atributo ya existe.",MIN_COMBO_ITEMS:"Los combos deben contener como m\xednimo 2 productos y/o servicios y como m\xe1ximo 110",MAX_COMBO_ITEMS_QUANTITY_ERROR:"La suma total de la cantidad de todos los items supera los 999.999,99, disminuya la cantidad por item para poder crear el combo.",MAX_DUPLICATED_ATTRIBUTES:"Lo siento! No puede haber atributos duplicados.",SKU_DUPLICATED_VARIANT:"El SKU ya existe en otro variante",MIN_ATTRIBUTES_ITEMS:"Para continuar debes agregar m\xednimo 1 atributo y como m\xe1ximo 2",ATTRIBUTE_IN_USE:"Lo siento! No se pueden modificar ni eliminar atributos/variantes asociados a un producto/servicio. S\xf3lo es posible agregar nuevas variantes.",IMAGE_URL_ERROR:"La URL no es una imagen v\xe1lida",CONCEPT_FIELD_NOT_AVAILABLE:Ti.a.t("descriptiveFieldsErrorNotAvailable"),CONCEPT_FIELD_VALUE_INACTIVE:Ti.a.t("descriptiveFieldsErrorValueInactive"),CONCEPT_FIELD_VALUE_INVALID:Ti.a.t("descriptiveFieldsErrorValueInvalid"),CONCEPT_FIELD_DUPLICATED:Ti.a.t("descriptiveFieldsErrorDuplicated")};var os=function(e){let{errors:t=null,oneErrorAlert:a=!1,onCloseAlert:o=(()=>null),containerStyle:n={}}=e,r=[];const[s,l]=Object(i.useState)([]);return null!==t&&void 0!==t&&t.error?r=t.error:null!==t&&Object.keys(t).forEach((e=>{r=r.concat(t[e])})),Object(i.useEffect)((()=>{(()=>{for(let e of r)if(!is.hasOwnProperty(e.code))return void l(!0);l(!1)})()}),[t]),Object(p.jsxs)(v.a,{style:{width:"100%"}
1,children:[s&&!a&&Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>o(),children:is.DEFAULT_ERROR}),!s&&r.length>0&&!a&&Object(p.jsx)(v.a,{style:{marginBottom:"10px"},children:r.map(((e,t)=>Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>o(),children:is[e.code]||is.DEFAULT_ERROR},t)))}),a&&Object(p.jsx)(v.a,{style:n,children:Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>o(),children:a})})]})};const ns=Object(u.a)((e=>({container:{flexGrow:1,backgroundColor:"#ebebeb",paddingLeft:50,paddingTop:20,paddingRight:50,paddingBottom:50,fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",alignContent:"flex-start",width:"100%","@media (min-width: 600px)":{paddingLeft:0,paddingRight:0},"@media (max-width: 600px)":{paddingLeft:0,paddingRight:0,paddingTop:0,alignContent:"center"}},cardContainer:{width:"80%","@media (max-width: 600px)":{width:"calc(100% - 20px) !important"},"@media (max-width: 1100px)":{width:"calc(100% - 70px)"}},card:{padding:40,borderRadius:5,boxShadow:"0px 1px 1px 0px rgba(0, 0, 0, 0.10)",width:"100%",backgroundColor:"#FFFFFF",marginTop:20,"@media (max-width: 600px)":{width:"100%",padding:20},"@media (max-width: 1100px)":{paddingLeft:20,paddingTop:20,paddingRight:20,paddingBottom:20}},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},errorContainer:{marginTop:10,marginBottom:30}})));var rs=e=>{let{children:t=(()=>null),title:a="",handleSecondaryButtonClick:i=(()=>null),handlePrimaryButtonClick:o=(()=>null),secondarybuttonText:n="",primarybuttonText:r="",showButtons:s=!1,errors:l=[],showErrorAlert:c=!1,primaryLoading:d=!1,handleCloseAlert:u=(()=>null),secondaryButtonDisabled:m=!1,primaryButtonDisabled:g=!1}=e;const b=ns();return Object(p.jsx)(v.a,{container:!0,className:b.container,children:Object(p.jsxs)(v.a,{className:b.cardContainer,children:[Object(p.jsx)(Zn,{isVariant:!0,title:a}),c&&Object(p.jsx)("div",{className:b.errorContainer,children:Object(p.jsx)(os,{errors:l,onCloseAlert:u})}),Object(p.jsx)(v.a,{className:b.card,children:t}),s&&Object(p.jsxs)(v.a,{container:!0,className:b.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{disabled:m||d,type:"secondary",onClick:i,children:n})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{disabled:g,loading:d,type:"primary",onClick:o,children:r})})]})]})})};const ss=(new L.a).get("Secure-1CBL"),ls=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"20px",backgroundColor:"#FFFFFF",padding:"30px 40px","@media (max-width: 600px)":{padding:"20px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",height:"92px",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px",resize:" none",fontSize:"14px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},tooltipButton:{backgroundColor:"#fff",border:"none",padding:0,marginBottom:"4px"},tooltipButtonIVA:{backgroundColor:"#fff",border:"none",padding:0,marginLeft:"5px"}}))),cs=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var ds=function(e){var t;let{nextStep:a,lastStep:o,title:n,inputTitle:r,dataHeadings:s,urlBase:l,steps:d,stepActive:u,ivaCondition:m,variantSelector:g=!1,handleTypeSelectorChange:b,conceptType:h,jwtContext:x,dataCurrencies:f,multiCurrency:j,dataDefault:A,showCurrency:C,option:y,dataDefaultIva:O,validateStep:S=(()=>null),isVisibleErrorAlert:E=!1,stepErrors:I=[],handleCloseAlert:w=(()=>null),isLoadingStepValidation:T=!1,showCodeInput:P=!1,userPlan:R="",availableConcepts:N=null,userCountry:L=""}=e;const{datosFormulario:k,actualizarDatosFormulario:B,reiniciarDatosFormulario:D}=Object(i.useContext)(rr),[F,M]=Object(i.useState)(k.name||""),[V,W]=Object(i.useState)(k.status||"A"),[H,U]=Object(i.useState)(!0),[_,z]=Object(i.useState)(k.headingId||null),[q,G]=Object(i.useState)(k.headingValue||null),[Y,K]=Object(i.useState)(k.subHeadingId||null),[X,Z]=Object(i.useState)(k.subHeadingValue||null),[Q,J]=Object(i.useState)(k.description||""),[$,ee]=Object(i.useState)(!0),[te,ae]=Object(i.useState)(!0),[ie,oe]=Object(i.useState)([]),[,ne]=Object(i.useState)(null),[re,se]=Object(i.useState)(!0),[le,ce]=Object(i.useState)(!0),[de,ue]=Object(i.useState)(k.currencySelected||null),[,pe]=Object(i.useState)(""),[me,ge]=Object(i.useState)(k.currencyId||0),[be,he]=Object(i.useState)(!0),[xe,fe]=Object(i.useState)(k.code||""),[ve,
1je]=Object(i.useState)(!1),[Ae,Ce]=Object(i.useState)(!1),[ye,Oe]=Object(i.useState)(k.image||""),Se=ls();Object(i.useEffect)((()=>{xe!==k.code&&B({...k,variant:[],modifiedVariants:[]})}),[F,xe]),Object(i.useEffect)((()=>{null===de&&pe(A),null!==de&&pe(de),null===A||de||ge(A.id)}),[de,A]),Object(i.useEffect)((()=>{if(q&&_||ce(!0),_||null!==q&&void 0!==q&&q.id){(async()=>{try{const e=`${Object(aa.a)()}headings/subheadings/${_||(null===q||void 0===q?void 0:q.id)}`,t=await ta.a.get(e,{headers:{Authorization:`Bearer ${ss}`}});oe(t.data),0===t.data.length&&(Z(null),oe([]))}catch(e){ne(e)}})()}}),[_,X,q]),Object(i.useEffect)((()=>{"A"===k.status&&U(!0),"I"===k.status&&U(!1),ie.length>0?ce(!1):ce(!0)}),[k.status,ie]);const Ee={showCodeInput:P,code:xe,validatedCode:be,availableConcepts:N,userPlan:R,userCountry:L,placeholder:Ti.a.t("condSKU2"),handleInputCodeChange:function(e){const t=Rr(e.target.value);fe(t)},handleValidationCode:function(){""!==xe&&he(!0)}};return Object(p.jsx)(rs,{title:n,handleSecondaryButtonClick:function(){D(),Object(c.b)((e=>"P"===e?"Prod Step 1 - Volver":"S"===e?"Servicios Unico Step 1 - Volver":void 0)(y)),window.open("/v3/attributes/addNew","_self")},handlePrimaryButtonClick:function(){if(""!==F&&""!==F.trim()||ee(!1),("Variant"===h&&""===xe||""===xe.trim())&&he(!1),0!==_&&null!==q||ae(!1),0===s.dataHeadings.length&&se(!1),""!==F&&0!==_&&null!==q&&("Variants"!==h||""!==xe)&&!Boolean(Ae)){const e={name:F,status:V,description:Q,headingId:_,subHeadingId:Y,currencyId:me,iva:O.value,ivaRateId:O.id,code:xe};B({...k,name:F,status:V,description:Q,headingId:_,subHeadingId:Y,headingValue:q,subHeadingValue:X,currencySelected:de||A,currencyId:me,code:xe,image:ye,iva:O.value,ivaRateId:O.id}),"P"===y&&Object(c.b)("Prod Step 1 - Siguiente",{moneda:(null===de||void 0===de?void 0:de.name)||(null===A||void 0===A?void 0:A.name),estado:"A"===V?"si":"no","tipo producto":"Variants"===h?"con variantes":"unico"}),"S"===y&&Object(c.b)("Servicios Step 1 - Siguiente",{moneda:(null===de||void 0===de?void 0:de.name)||(null===A||void 0===A?void 0:A.name),estado:"A"===V?"si":"no","tipo servicio":"Variants"===h?"con variantes":"unico"}),S({data:e,step:1})}},secondarybuttonText:Ti.a.t("back"),primarybuttonText:Ti.a.t("next"),showButtons:!0,showErrorAlert:E,errors:I,handleCloseAlert:w,primaryLoading:T,children:Object(p.jsxs)(v.a,{children:[Object(p.jsx)(Gr,{activeStep:u,steps:d}),g&&Object(p.jsx)(Zr,{handleTypeSelectorChange:b,type:h,option:y,...Ee}),Object(p.jsxs)(v.a,{style:{marginTop:20},id:"skuContainer",container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(cs,{children:Object(p.jsx)(mr,{placeholder:r,types:""+($?"inputPrimary":"inputError"),errorMsg:`${$?"":Ti.a.t("requiredField")}`,showError:!0,required:!0,onChange:function(e){const t=Rr(e.target.value);M(t)},onBlur:function(){""!==F&&ee(!0)},maxLength:"500",value:F,children:Ti.a.t("title")})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(cs,{children:Object(p.jsx)(Pr,{label:Ti.a.t("category"),required:!0,type:""+(te?"searchSelectConfiguration":"searchSelectConfigurationError"),errorMsg:`${te?"":Ti.a.t("requiredField")}  ${re?"":Ti.a.t("headingsError")}`,showError:!0,placeholder:q?" ":Ti.a.t("selectCat"),data:s.dataHeadings,onChange:function(e,t){Z(null),K(null),null!==t?z(t.id):(K(null),Z(null)),G(t)},onBlur:function(){0!==_&&ae(!0)},iconConfiguration:!0,hrefIcon:l+"rubros.aspx",onClick:async()=>{"P"===k.option&&Object(c.b)("Prod Step 1 - Nvo Rubro")},disabled:0===(null===(t=s.dataHeadings)||void 0===t?void 0:t.length)&&!0,value:q,onSelectInputChange:e=>{""===e.target.value?(z(null),G(null),oe([])):ae(!0)}})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(cs,{children:Object(p.jsx)(Pr,{label:Ti.a.t("subcategory"),disabled:le,type:""+(null===_||0===ie.length?"searchSelect":"searchSelectPrimary"),placeholder:X?" ":Ti.a.t("selectSubCat"),data:ie,onChange:function(e,t){null!==t&&K(t.id),Z(t)},onSelectInputChange:(e,t)=>
1{""===e.target.value&&(Z(null),K(null))},value:X})})})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:4,children:[!0===j&&!0===C&&Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(cs,{children:Object(p.jsx)(Pr,{label:Ti.a.t("currency"),required:!0,type:"searchSelectPrimary",data:f,onChange:function(e,t){ue(t),null!==t&&ge(t.id)},defaultValue:de?f.find((e=>e.id===me)):A})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsxs)(cs,{children:[Object(p.jsxs)(v.a,{style:{alignItems:"center"},container:!0,rowspacing:3,children:[Object(p.jsxs)(cn.a,{className:Se.label,children:[Object(p.jsx)("span",{className:Se.inputArterisk,children:"* "})," ",Ti.a.t("state")]}),"Variants"===h&&Object(p.jsx)(cr.a,{title:Ti.a.t("variantStatusTooptip"),"aria-label":"Tooltip",placement:"top",arrow:!0,open:ve,onOpen:()=>je(!0),onClose:()=>je(!1),children:Object(p.jsx)("button",{className:Se.tooltipButtonIVA,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>je(!ve)})})})]}),Object(p.jsx)(v.a,{children:Object(p.jsx)(fr,{label:!0,onChange:function(e){U(!H),!1===e.target.checked&&W("I"),!0===e.target.checked&&W("A")},checked:H,children:Ti.a.t("active")})})]})})]}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsxs)(cs,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:Se.label,style:{marginBottom:"5px"},children:Ti.a.t("description")})}),Object(p.jsx)(v.a,{children:Object(p.jsx)("textarea",{className:Se.textArea,onChange:function(e){const t=e.target.value;J(""!==t?t:null)},maxLength:500,value:Q})})]})})}),"Variants"!==h&&Object(p.jsx)(v.a,{container:!0,rowSpacing:3,columnSpacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(cs,{children:Object(p.jsx)(Lr,{helper2:Ti.a.t("selectImgByUrl"),iconName:"uploadImg",title:Ti.a.t("img"),uploadImageByUrl:!0,imageError:Ae,handleImageChange:e=>{let{url:t,error:a}=e;Oe(t),Ce(a)},image:ye})})})}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(cs,{children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:Se.footerForm,style:{marginBottom:"5px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:Se.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})})]})})};a(483);const us=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["radioButton",...t].filter(Boolean).join(" ")};var ps=e=>{let{type:t,disabled:a,showIconTooltip:o,iconType:n,label:r,defaultValue:s,required:l,RadioButtonLabel1:c,RadioButtonLabel2:d,textTooltip:u,onChange:m}=e;const[g,b]=Object(i.useState)(!1);return Object(p.jsx)("div",{children:Object(p.jsxs)(R.a,{children:[Object(p.jsxs)("label",{className:"radioButtonLabel",children:[!0===l&&Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ",r," ",!0===o&&Object(p.jsx)(cr.a,{title:u,"aria-label":"Tooltip",placement:"top",arrow:!0,open:g,onOpen:()=>b(!0),onClose:()=>b(!1),children:Object(p.jsx)("button",{className:"tooltipRadioButton",children:Object(p.jsx)(ni.a,{className:"radioButtonHelpIcon",name:n,onClick:()=>b(!g)})})})]}),Object(p.jsxs)(Hn.a,{onChange:m,"aria-labelledby":"demo-radio-buttons-group-label",defaultValue:s,name:"radio-buttons-group",style:{display:"flex",flexDirection:"row"},sx:{"& .MuiFormGroup-root css-1b51at8-MuiFormGroup-roo":{display:"flex",flexDirection:"row!important"}},children:[Object(p.jsx)(zn.a,{value:c,sx:{"& .MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"}},control:Object(p.jsx)(_n.a,{disableRipple:!0,sx:{color:"#666666","&.Mui-checked":{color:"#00A692!important"},"& .MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"},"& .MuiSvgIcon-root":{width:"18px",height:"18px"}},className:`${us(t)} ${a?"disabled":"radioButton"}`}),label:c,disabled:!0===a&&"disabled"}),Object(p.jsx)(zn.a,{value:d,sx:{"& .MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",fontSize:"13px"}},control:Object(p.jsx)(_n.a,{disableRipple:!0,sx:{color:"#666666","&.Mui-checked":{color:"#00A692!important"},"& .MuiSvgIcon-root":{width:"18px",height:"18px"}},className:`${us(t)} ${a?"disabled":"radioButton"}`}),label:d,disabled:!0===a&&"disabled"})]})]})})};const ms=2,gs=e=>null==e||""===e?ms:e;function bs(e){return(null===e||void 0===e?void 0:e.length)>0&&"string"!==typeof e?NaN:"string"===typeof e?parseFloat(null===e||void 0===e?void 0:e.replace(/[.,]/g,(e=>","===e?".":""))):void 0}function hs(e,t){if(isNaN(e)||isNaN(t))return NaN;return e+e*t/100}function xs(e,t){if(isNaN(e)||isNaN(t))return NaN;return e/(1+t/100)}function fs(e,t,a,i){const o=e*(1+t/100),n=o.toFixed(i),r=(o*(1+a/100)).toFixed(i);return{finalPriceWithoutIVA:parseFloat(n),finalPriceWithIVA:parseFloat(r)}}function vs(e,t){if(0===e)return"0"!==t&&t?`0,${"0".repeat(t)}`:"0";{var a;const i={minimumFractionDigits:t,maximumFractionDigits:t};
1let o=(null===e||void 0===e?void 0:e.toLocaleString("es-ES",i))||null;return o=null===(a=o)||void 0===a?void 0:a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),o}}function js(e,t){if(0===e)return"0"!==t&&t?`0,${"0".repeat(t)}`:"0";{const a={minimumFractionDigits:t,maximumFractionDigits:t};return(null===e||void 0===e?void 0:e.toLocaleString("es-ES",a))||null}}function As(e,t){if("string"===typeof e&&(e=parseFloat(e.replace(/\./g,"").replace(",","."))),"number"!==typeof e||isNaN(e))return"";Number.isInteger(e);const a={minimumFractionDigits:t,maximumFractionDigits:t};return e.toLocaleString("es-ES",a)}function Cs(e,t){if("string"===typeof e&&(e=parseFloat(e.replace(/\./g,"").replace(",","."))),isNaN(e)||null===e)return"";Number.isInteger(e);const a={minimumFractionDigits:t,maximumFractionDigits:t};return e.toLocaleString("es-AR",a)}function ys(e){return"string"!==typeof e?NaN:parseFloat(e.replace(/\./g,"").replace(",","."))}function Os(e,t){let a=e;if("string"===typeof e&&(a=parseFloat(e)),0===a)return"0"!==t&&t?`0,${"0".repeat(t)}`:"0";{var i;const e={minimumFractionDigits:t,maximumFractionDigits:t};return(null===(i=a)||void 0===i?void 0:i.toLocaleString("es-ES",e))||null}}function Ss(e){let t=0,a=0;return e.length>0&&e.forEach((e=>{var i,o,n;const r="string"===typeof e.quantity?null===(i=e.quantity)||void 0===i?void 0:i.replace(".","").replace(",","."):e.quantity,s="string"===typeof e.quantity?parseFloat(r)||0:e.quantity,l="string"===typeof e.internalCost?parseFloat(null===(o=e.internalCost)||void 0===o?void 0:o.replace(/\./g,"").replace(",",".")):e.internalCost,c="string"===typeof e.unitPrice?parseFloat(null===(n=e.unitPrice)||void 0===n?void 0:n.replace(/\./g,"").replace(",",".")):e.unitPrice;t+=s*l,a+=s*c})),{internalCostTotal:t,unitPriceTotal:a}}function Es(e,t){if(0===t)return e;const a=e/t;return Math.round(a)*t}const Is=(e,t)=>vs(bs(e),t),ws=(e,t)=>bs(vs(e,t)),Ts=e=>{let{unitPrice:t,iva:a,useFinalPriceWithIva:i,userDecimal:o,preferenceRounding:n,roundMultiple:r}=e,s=t;"string"===typeof t&&(s=bs(t));const l=a;if("0"===i){let e=hs(s,a);return r&&(e=Es(e,n)),e=vs(e,o),e}if("1"===i){let e=xs(s,l);return e=vs(e,o),e}return 0},Ps=e=>{let{useFinalPriceWithIva:t,variant:a,userDecimal:i,addEdit:o}=e,n=a;return n=n.map((e=>{let a={...e};return a.unitPriceValue=vs("1"===t?e.finalPrice||0:e.unitPrice||0,i),"1"===t&&(a.unitPrice=e.finalPrice||0,a.finalPrice=e.unitPrice||0),o&&(a.edit=!1),a})),n};function Rs(e){if(!e)return 0;const t=e.replace(/\./g,"").replace(",",".");return parseFloat(t)}const Ns=e=>{const t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),t.join(",")},Ls=e=>{if(null===e||void 0===e||""===e)return 0;"string"!==typeof e&&(e=e.toString());const t=e.replace(/\./g,"").replace(",","."),a=parseFloat(t);return isNaN(a)?0:a},ks=e=>"1"===e||1===e||!0===e,Bs=e=>{let{useFinalPriceWithIva:t,internalCost:a=null,profitability:i=null,unitPrice:o=null,iva:n=null,userDecimal:r=ms,preferenceRounding:s=0}=e;const l=1===parseFloat(t),c=n||0;if(null!==a&&0!==a&&null!==i&&i>0){const e=fs(a,i,c,r),t=Es(e.finalPriceWithIVA,s);return l?{unitPrice:t,finalPrice:e.finalPriceWithoutIVA,finalPriceWithoutRounding:ws(e.finalPriceWithIVA,r),isAutoCalculated:!0}:{unitPrice:e.finalPriceWithoutIVA,finalPrice:t,finalPriceWithoutRounding:null,isAutoCalculated:!0}}const d=o||0;return{unitPrice:d,finalPrice:l?xs(d,c):hs(d,c),finalPriceWithoutRounding:null,isAutoCalculated:!1}},Ds=e=>{let{variants:t,uniquePriceData:a,userDecimal:i,isEdition:o=!1}=e;const n=vs(a.finalPrice||0,i),r=vs(a.unitPrice||0,i);return t.map((e=>{const t=o&&"edit"in e?{edit:!0}:null;return{...e,unitPrice:a.unitPrice,unitPriceValue:r,finalPrice:n,finalPriceWithoutRounding:a.finalPriceWithoutRounding,internalCost:a.internalCost,internalCostNumber:a.internalCost,internalCostValue:a.internalCostValue,profitability:a.profitability,profitabilityNumber:a.profitability,profitabilityValue:a.profitabilityValue,iva:a.iva,ivaRateId:a.ivaRateId,ivaDataValue:a.ivaDataValue,...t}}))},Fs=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e9},Ms=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e6},Vs={ar:"$",cl:"CLP",uy:"UYU",py:"Gs"},Ws=e=>Vs[e]||Vs.ar,Hs=e=>!(!e||e.length<=1)&&e.some((t=>t.unitPrice!==e[0].unitPrice||t.ivaRateId!==e[0].ivaRateId)),Us=(e,t)=>{const a="1"===t&&Number(e.profitability)>0&&e.finalPriceWithoutRounding?Number(e.finalPriceWithoutRounding)||0:Number(e.unitPrice)||0;return{internalCost:Number(e.internalCost)||0,profitability:Number(e.profitability)||0,unitPrice:a}},_s=e=>Boolean(e.internalCostValue||e.profitabilityValue||e.unitPriceValue||e.ivaDataValue),zs=e=>{var t;let{datosFormulario:a,isEdition:i,userOptions:o,userDecimal:n}=e;if(_s(a))return{internalCostValue:a.internalCostValue||"",profitabilityValue:a.profitabilityValue||"",unitPriceValue:a.unitPriceValue||"",ivaDataValue:a.ivaDataValue||null};const r=null===a||void 0===a||null===(t=a.variant)||void 0===t?void 0:t[0];if(i&&r){if(Hs(a.variant))return{};const e=(null===o||void 0===o?void 0:o.length)>0&&(o.find((e=>e.id===r.ivaRateId))||o.find((e=>e.value===r.iva)))||null;return{internalCostValue:r.internalCost?vs(Number(r.internalCost),n):"",profitabilityValue:r.profitability?vs(Number(r.profitability),n):"",unitPriceValue:r.unitPriceValue||(r.unitPrice?vs(Number(r.unitPrice),n):""),ivaDataValue:e||null}}return{}},qs=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313",paddingBottom:"25px"},containerForm:{padding:"30px 30px 0px 30px",marginTop:"30px",backgroundColor:"#FFFFFF"},mainContainer:{padding:"0px 10px","@media (max-width: 600px)":{padding:"0px"}},dataContainer:{padding:"0px 10px","@media (max-width: 600px)":{padding:"0px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerStock:{display:"flex",alignItems:"center",height:"18px",marginBottom:"5px"},tooltipButton:{backgroundColor:"#fff",border:"none",padding:0,marginBottom:"4px"},tooltipButtonIVA:{backgroundColor:"#fff",border:"none",padding:0,marginLeft:"5px"}}))),Gs=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1),marginBottom:10}}}));var Ys=function(e){var t,a;let{nextStep:o,lastStep:n,title:r,showstockSelect:s,jwtContext:l,showAutomaticPrice:d,dataCurrencies:u,multiCurrency:m,dataDefault:g,dataDefaultIva:b,userOptions:h,useFinalPriceWithIva:x,userDecimal:f,showCurrency:j,stockRounding:C,preferenceRounding:y,ivaCondition:O,showCodeb:S,steps:E,activeStep:I}=e;const{datosFormulario:w,actualizarDatosFormulario:T}=Object(i.useContext)(rr),{currencyData:P}=nr(),{tableData:R}=nr(),[L,k]=Object(i.useState)(w.code||""),[B,D]=Object(i.useState)(w.barcode||""),[F,M]=Object(i.useState)(w.minStockValue||""),[V,W]=Object(i.useState)(w.minStock||0),[H,U]=Object(i.useState)(w.internalCostValue||""),[_,z]=Object(i.useState)(null),[q,G]=Object(i.useState)(w.profitabilityValue||""),[Y,K]=Object(i.useState)(null),[,X]=Object(i.useState)(!0),[Z,Q]=Object(i.useState)(w.unitPriceValue||""),[J,$]=Object(i.useState)((null===w||void 0===w||null===(t=w.ivaDataValue)||void 0===t?void 0:t.value)>=0?null===w||void 0===w||null===(a=w.ivaDataValue)||void 0===a?void 0:a.value:b.value),[ee,te]=Object(i.useState)(null),[ae,ie]=Object(i.useState)(w.ivaDataValue||null),[oe,ne]=Object(i.useState)(""!==w.ivaRateId?w.ivaRateId:b.id||null),[re,se]=Object(i.useState)(w.finalPrice||0),[le,ce]=Object(i.useState)(!0),[de,ue]=Object(i.useState)(!0),[pe,me]=Object(i.useState)(w.currencyId||0),[ge,be]=Object(i.useState)("No"),[he,xe]=Object(i.useState)(!1),[fe,ve]=Object(i.useState)(w.unitPrice||0),[je,Ae]=Object(i.useState)(0),[Ce,ye]=Object(i.useState)(0),[Oe,Se]=Object(i.useState)(w.currencySelected||0),[Ee,Ie]=Object(i.useState)(""),[we,Te]=Object(i.useState)(!1),[Pe,Re]=Object(i.useState)(!1),[Ne,Le]=Object(i.useState)(0),[ke,Be]=Object(i.useState)(0),[De,Fe]=Object(i.useState)(0),[Me,Ve]=Object(i.useState)(null),[We,He]=Object(i.useState)(w.finalPriceWithoutRounding||0),Ue=qs(),[_e,ze]=Object(i.useState)("");function qe(){0===fe&&ve(bs(Z));const e=vs(0,f),t=J||ee,a=""!==q&&"0"!==q;if(0===parseFloat(x))if("Si"===ge)if(null===J){const e=hs(ke||De,b.value);se(vs(e,f))}else{const e=Es(hs(ke||De,t),y);se(vs(e,f))}else{if(!a&&""!==Z&&null===J){const e=hs(fe,b.value);se(vs(e,f))}if(!a&&""!==Z&&null!==J){if(""!==H&&0===Me){const e=fs(Ce,0,t,f),a=bs(vs(e.finalPriceWithoutIVA,f));ve(a);const i=Es(e.finalPriceWithIVA,y);return Q(vs(e.finalPriceWithoutIVA,f)),se(vs(i,f)),void Ve(null)}if(isNaN(fe))return void se(e);const a=hs(fe,t);se(vs(a,f))}if(""===Z&&a&&je>=0&&""===H&&(Q(e),se(e)),""!==Z&&a&&je>=0&&""===H){if(isNaN(fe))return Q(e),void se(e);const a=fs(fe,je,t,f),i=Es(a.finalPriceWithIVA,y);Q(vs(a.finalPriceWithoutIVA,f)),se(vs(i,f))}if(a||""!==Z||se(e),a&&0!==je&&""!==H&&null===J){const e=fs(Ce,je,b.value,f);Q(vs(e.finalPriceWithoutIVA,f)),se(vs(e.finalPriceWithIVA,f))}
1if(a&&0!==je&&""!==H&&null!==J){const e=fs(Ce,je,t,f),a=bs(vs(e.finalPriceWithoutIVA,f));ve(a);const i=Es(e.finalPriceWithIVA,y);Q(vs(e.finalPriceWithoutIVA,f)),se(vs(i,f))}}if(1===parseFloat(x))if("Si"===ge){if(null===J){const e=hs(ke,b.value);Q(vs(e,f))}if(null!==J){const e=hs(ke,t),a=Es(e,y);He(ws(e,f)),Q(vs(a,f))}}else{if(!a&&""!==Z&&null===t){const e=xs(fe,b.value);se(vs(e,f))}if(!a&&""!==Z&&null!==t){if(""!==H&&0===Me){Q(vs(Ce,f)),ve(Ce);const e=xs(fe,t);return se(vs(e,f)),void Ve(null)}if(isNaN(fe))return void se(e);const a=xs(fe,t);se(vs(a,f))}if(a&&je>=0&&""===H&&(Fe(e),se(e)),a&&je>=0&&""===H&&""!==Z){const e=Es(fe,y);He(ws(fe,f));const a=fs(fe,je,t,f);Q(vs(e,f));const i=vs(a.finalPriceWithoutIVA,f);se(i)}if(""===q&&""===De&&se(e),a&&0!==je&&""!==H&&null===t){const e=fs(Ce,je,b.value,f);Q(vs(e.finalPriceWithIVA,f)),se(vs(e.finalPriceWithoutIVA,f))}if(a&&0!==je&&""!==H&&null!==t){const e=fs(Ce,je,t,f),a=Es(e.finalPriceWithIVA,y);He(ws(e.finalPriceWithIVA,f)),Q(vs(a,f)),se(vs(e.finalPriceWithoutIVA,f))}}}Object(i.useEffect)((()=>{W(bs(F||"0"))}),[F]),Object(i.useEffect)((()=>{!0===he&&be("Si"),!1===he&&be("No")}),[he]),Object(i.useEffect)((()=>{"Si"===(null===w||void 0===w?void 0:w.automaticPrice)&&be("Si"),"No"===(null===w||void 0===w?void 0:w.automaticPrice)&&be("No")}),[]),Object(i.useEffect)((()=>{if("Si"===ge){xe(!0);const{internalCostTotal:e,unitPriceTotal:t}=Ss(R);G(""),U(vs(e,f)),Le(e),Be(t),ye(e),1===parseFloat(x)&&(se(vs(t,f)),qe()),0===parseFloat(x)&&(ve(t),Q(vs(t,f)),qe())}else if(xe(!1),isNaN(fe)){const e=Z.toString().replace(/\./g,"").replace(/,/g,"."),t=parseFloat(e);ve(t)}const e=q.toString().replace(/\./g,"").replace(/,/g,"."),t=parseFloat(e),a=H.toString().replace(/\./g,"").replace(/,/g,"."),i=parseFloat(a);Ae(t),ye(i);const o={ar:{currencyPrice:"$",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}},cl:{currencyPrice:"CLP",tooltipMap:{2:"tooltipIVACl2",5:"tooltipIVACl5",10:"tooltipIVACl10",1:"tooltipIVACl1",500:"tooltipIVACl500",1e3:"tooltipIVACl1000",default:"tooltipIVAClStandar"}},uy:{currencyPrice:"UYU",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}},py:{currencyPrice:"GS",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}}},n=o[l.country]||o.default,{currencyPrice:r,tooltipMap:s}=n;Ie(r);const c=s[y]||s.default;ze(Ti.a.t(c)),null===g||Oe||(Se(g.symbol),me(g.id)),!1!==j||null===g||Oe||(Se(P.symbol),me(g.id)),Fe(""!==Z?bs(Z):null),K(""!==q?bs(q):null),z(""!==H?bs(H):null)}),[g,H,l.country,q,Z,P,ge,Z,F]),Object(i.useEffect)((()=>{qe()}),[J,Z,q,H,je]);const Ge=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e9};Object(i.useEffect)((()=>{"NaN"===Z&&Q("")}),[Z]),Object(i.useEffect)((()=>{"NaN"===re&&se("0")}),[re]);const Ye="Si"===ge||""!==q&&"0"!==q||_>0&&Y>0;return Object(p.jsx)(v.a,{className:Ue.root,children:Object(p.jsxs)(v.a,{className:Ue.container,children:[Object(p.jsx)(Zn,{title:r}),Object(p.jsxs)(v.a,{className:Ue.container2,children:[Object(p.jsx)(v.a,{className:Ue.containerForm,children:Object(p.jsxs)(v.a,{className:Ue.subtitlesContainer,children:[Object(p.jsxs)(v.a,{className:Ue.mainContainer,children:[Object(p.jsx)(Gr,{activeStep:I,steps:E}),Object(p.jsxs)(v.a,{style:{marginTop:20},container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(Gs,{children:Object(p.jsx)(mr,{placeholder:Ti.a.t("
1condSKU2"),required:!0,types:""+(le?"inputPrimary":"inputError"),errorMsg:`${le?"":Ti.a.t("requiredField")}`,showError:!0,onChange:function(e){const t=Rr(e.target.value);k(t)},onBlur:function(){""!==L&&ce(!0)},maxLength:"50",value:L,children:Ti.a.t("condSKU")})})}),Object(p.jsx)(v.a,{xs:12,md:6,children:Object(p.jsx)(Gs,{children:!1!==S&&Object(p.jsx)(mr,{types:"inputPrimary",onChange:function(e){const t=e.target.value;D(""!==t?t:null)},maxLength:"128",value:B,children:Ti.a.t("barcode")})})})]}),!0===s&&Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{xs:12,md:6,children:Object(p.jsx)(Gs,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("div",{className:Ue.containerStock,children:[Object(p.jsxs)("label",{className:"inputlabel",style:{marginRight:"5px"},children:[" ",Ti.a.t("alertStock")]}),Object(p.jsx)(cr.a,{title:Ti.a.t("tooltipMinStock"),"aria-label":"Tooltip",placement:"top",arrow:!0,open:we,onOpen:()=>Te(!0),onClose:()=>Te(!1),children:Object(p.jsx)("button",{className:Ue.tooltipButton,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>Te(!we)})})})]}),Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:"input inputPrimary",onChange:function(e){M(e.target.value)},allowNegative:!1,decimalScale:0,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=1e4},value:F}),Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#131313"},children:Ti.a.t("alertMinStock")})]})})})})," "]}),Object(p.jsx)(N.a,{style:{marginTop:"20px",marginBottom:"15px",opacity:1}}),Object(p.jsx)(cn.a,{className:Ue.titleStep,children:Ti.a.t("priceDetail")}),Object(p.jsxs)(v.a,{className:Ue.dataContainer,children:[!0===d&&Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,style:{marginBottom:"10px"},children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(Gs,{children:Object(p.jsxs)(v.a,{children:[Object(p.jsx)(ps,{RadioButtonLabel1:Ti.a.t("yes"),RadioButtonLabel2:Ti.a.t("no"),defaultValue:(null===w||void 0===w?void 0:w.automaticPrice)||Ti.a.t("no"),label:Ti.a.t("automaticPrice"),required:!0,type:"RadioButtonPrimary",onChange:function(e){e&&be(e.target.value),"No"===e.target.value&&(Q(""),se(vs(0,f)),U(""),U(""))}}),Object(p.jsx)("p",{className:"inputTextMsg",children:Ti.a.t("automaticPriceExp")})]})})})}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Gs,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("internalCost2")}),Object(p.jsx)(A.a,{disabled:"Si"===ge&&!0,thousandSeparator:".",decimalSeparator:",",onChange:function(e){""===e.target.value&&(G(""),K(0)),U(e.target.value),ye(bs(e.target.value))},allowNegative:!1,decimalScale:f,isAllowed:Ge,onBlur:()=>{H>0&&U(Is(H,f))},value:void 0!==H&&null!==H?H:"Si"===ge?Ne:void 0,className:"input  "+("Si"===ge?"inputDisabled":"inputIcons")}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"})]})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(Gs,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("costEffec")}),Object(p.jsx)(A.a,{disabled:"Si"===ge||0===_||!H,thousandSeparator:".",decimalSeparator:",",maxLength:"11",className:"input  "+("Si"!==ge&&0!==_&&H?"inputIcons":"inputDisabled"),onChange:function(e){G(e.target.value),K(bs(e.target.value)),""===e.target.value&&Ve(0)},onBlur:function(e){q>0&&G(Is(q,f)),""===e.target.value||null===e.target.value||0===e.target.value?X(!0):X(!1)},allowNegative:!1,decimalScale:f,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e6},value:void 0!==q&&null!==q&&q}),Object(p.jsx)(ur,{className:"inputIconInside",name:"percentage"})]})})})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Gs,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ","1"===x?Ti.a.t("unitPrice2"):Ti.a.t("unitPrice"),"1"===x&&Object(p.jsx)(cr.a,{title:_e,"aria-label":"Tooltip",placement:"top",arrow:!0,open:Pe,onOpen:()=>Re(!0),onClose:()=>Re(!1),children:Object(p.jsx)("button",{className:Ue.tooltipButtonIVA,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>Re(!Pe)})})})]}
1),Object(p.jsx)(A.a,{disabled:Ye,thousandSeparator:".",decimalSeparator:",",className:`input  \n                          ${!1===de&&""===Z&&"inputIconsError"} \n                          ${Ye?"inputDisabled":"inputIcons"}`,onChange:function(e){Q(e.target.value),ve(bs(e.target.value))},onBlur:function(){Q(Is(Z,f)),""!==Z&&ue(!0),qe()},allowNegative:!1,decimalScale:f,isAllowed:Ge,value:Z}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"}),de||""!==Z?Object(p.jsx)("p",{className:"inputTextMsg"}):Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#f32465"},children:Ti.a.t("requiredField")})]})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(Gs,{children:Object(p.jsx)(Pr,{icon:"percentage",label:Ti.a.t("IVAPer"),disabled:"MO"===O,required:!0,showIcon:!0,value:void 0!==ae&&null!==ae?ae:b,type:"searchSelectPrimary",data:h,onChange:function(e,t){var a,i,o;if(null===t)return $(null===(a=h[0])||void 0===a?void 0:a.value),ie(h[0]),te(null===(i=h[0])||void 0===i?void 0:i.value),void ne(null===(o=h[0])||void 0===o?void 0:o.id);$(null===t||void 0===t?void 0:t.value),ne(null===t||void 0===t?void 0:t.id),ie(t),qe(),null!==t&&(te(t.value),ne(null===t||void 0===t?void 0:t.id),qe())},onBlur:qe,onSelectInputChange:e=>{var t,a,i;if(""===e.target.value)return $(null===(t=h[0])||void 0===t?void 0:t.value),ie(h[0]),te(null===(a=h[0])||void 0===a?void 0:a.value),void ne(null===(i=h[0])||void 0===i?void 0:i.id);if(h.some((t=>t.name===e.target.value))){const t=h.find((t=>t.name===e.target.value));null!==t&&($(null===t||void 0===t?void 0:t.value),ie(t),te(null===t||void 0===t?void 0:t.value),ne(null===t||void 0===t?void 0:t.id))}},defaultValue:void 0!==ae&&null!==ae?ae:b})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsxs)(Gs,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{style:{marginBottom:"3px"},className:Ue.label,children:"1"===x?Ti.a.t("finalPriceWoIVA"):Ti.a.t("finalPrice")})}),Object(p.jsxs)(v.a,{className:Ue.containerText1,children:[Object(p.jsxs)(cn.a,{className:Ue.text1,children:[!0===m&&((null===Oe||void 0===Oe?void 0:Oe.symbol)||Oe),!1===m&&Ee]}),Object(p.jsx)(cn.a,{style:{marginLeft:"3px"},className:Ue.text1,children:re})]})]})})]}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(Gs,{children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:Ue.footerForm,style:{marginBottom:"35px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:Ue.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})})]})]})}),Object(p.jsxs)(v.a,{container:!0,className:Ue.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",onClick:n,children:Ti.a.t("back")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{type:"primary",onClick:function(){""===L&&ce(!1),""===Z&&ue(!1),"P"===w.option&&Object(c.b)("Prod Unico step 2 - siguiente"),"S"===w.option&&Object(c.b)("Servicio Unico Step 2 - Siguiente"),!0===j&&""!==L&&""!==Z&&
1(T({...w,code:L,barcode:B,minStock:V,internalCost:_,profitability:Y,unitPrice:De,currencyId:pe,iva:J,ivaRateId:oe,autoPrice:he,internalCostValue:H,profitabilityValue:q,unitPriceValue:Z,ivaDataValue:ae,finalPrice:re,minStockValue:F,automaticPrice:ge,currencySelected:Oe,finalPriceWithoutRounding:We}),o()),!1===j&&""!==L&&""!==Z&&(T({...w,code:L,barcode:B,minStock:V,internalCost:_,profitability:Y,unitPrice:De,iva:J,ivaRateId:oe,autoPrice:he,internalCostValue:H,profitabilityValue:q,unitPriceValue:Z,ivaDataValue:ae,finalPrice:re,minStockValue:F,automaticPrice:ge,currencySelected:Oe,finalPriceWithoutRounding:We}),o())},children:Ti.a.t("next")})})]})]})]})})},Ks=a(770),Xs=a(771),Zs=a(772),Qs=a(773),Js=a(774),$s=a(775),el=a(752),tl=a(746);var al=o.a.createContext();function il(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t,a]=e;return!(null===a||Array.isArray(a)&&0===a.length)})))}function ol(e,t){for(const a of t)delete e[a]}const nl=(e,t)=>{const a={};for(let o=0;o<e.length;o++){var i;const n=null===(i=t(e[o]))||void 0===i?void 0:i.toLowerCase().replace(/\s+/g,"");if(a[n]&&n)return!0;a[n]=!0}return!1},rl=e=>"string"!==typeof e||0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),sl=(e,t,a)=>{const i=e.filter((e=>""!==e[a])),o=t.filter((e=>""!==e[a]));if(i.length!==o.length)return!1;for(let n=0;n<i.length;n++)if(i[n][a]!==o[n][a])return!1;return!0};const ll=e=>t=>Object(p.jsx)(Ir.a,{...t,style:{zIndex:e?1e4:90,...t.style}}),cl=(new L.a).get("Secure-1CBL"),dl=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["searchSelect",...t].filter(Boolean).join(" ")};
1function ul(e){let{label:t,type:a,placeholderLabel:o,showIcon:n,small:r,large:s,onChange:l,onBlur:c,url:d,option2:u,option1:m,selectTwoOptions:g,filter:b,clearSearchRef:h,initValue:x,optionName:f,error:v,errorMsg:j,handleInputChangeEvent:A=(()=>null),clearSearchText:C=!1,index:y,disabled:O=!1,style:S={},showSelectInfo:E,required:I=!1,isUsedInModal:w=!1,onClick:T=(()=>{}),hrefIcon:P,iconConfiguration:R=!1,iconDisabled:N=!1,values:L,disableClearable:k=!1,onInputChange:B,renderOptionSuffix:D,formatOptionLabel:F,selectFirstOnEnter:M=!1}=e;const[V,W]=Object(i.useState)(!1),[H,U]=Object(i.useState)([]),[_,z]=Object(i.useState)(!1),[q,G]=Object(i.useState)(""),[Y,K]=Object(i.useState)(null),[,X]=Object(i.useState)(null);Object(i.useEffect)((()=>{(null===x||void 0===x?void 0:x.length)>0&&G(x)}),[x]),Object(i.useEffect)((()=>{(C===y||C||""===x)&&G("")}),[C,y]),Object(i.useEffect)((()=>{(null===x||void 0===x?void 0:x.length)>0?G(x):L&&G(L)}),[x,L]);const Z=()=>{G(""),K(null),U([]),l(null)};Object(i.useEffect)((()=>{h&&"function"===typeof h&&h(Z)}),[h]),Object(i.useEffect)((()=>{if(!0===E){let e=!0;return(async()=>{if((null===q||void 0===q?void 0:q.length)>=2){z(!0);try{const t=await ta.a.get(b?`${d}?search=${encodeURIComponent(q)}&${b}`:`${d}?search=${encodeURIComponent(q)}`,{headers:{Authorization:cl}});e&&(U(t.data),z(!1))}catch(v){X("error."),z(!1)}}else if(0===(null===q||void 0===q?void 0:q.length)){U([]),z(!0);try{const t=await ta.a.get(b?`${d}?${b}`:d,{headers:{Authorization:cl}});e&&(U(t.data),z(!1))}catch(v){X("error."),z(!1)}}else 0===(null===q||void 0===q?void 0:q.length)&&H.length>0&&(K(null),U([]),l(null))})(),()=>{e=!1}}{let e=!0;return(async()=>{if((null===q||void 0===q?void 0:q.length)>=2){z(!0);try{const t=await ta.a.get(b?`${d}?search=${encodeURIComponent(q)}&${b}`:`${d}?search=${encodeURIComponent(q)}`,{headers:{Authorization:cl}});e&&(U(t.data),z(!1))}catch(v){X("error."),z(!1)}}else 0===(null===q||void 0===q?void 0:q.length)&&H.length>0&&(K(null),U([]),l(null))})(),()=>{e=!1}}}),[q]);const Q=(e,t)=>{t?(G(f?rl(t.name):t[m]),K(f?rl(t.name):t),l(t)):(G(""),K(null),l(null),U([]))},J=e=>{if(M&&"Enter"===e.key&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey&&(null===q||void 0===q?void 0:q.length)>=2&&H.length>0&&!_){e.preventDefault();const t=H[0];t&&(Q(0,t),W(!1))}},$=g?e=>`${e[u]||""} - ${e[m]||""}`:e=>`${e[m]||""}`,ee=e=>F?F(e):$(e);return Object(p.jsxs)("div",{className:"searchSelectContainer",children:[Object(p.jsxs)("label",{className:"searchSelectlabel",children:[!0===I&&Object(p.jsx)("span",{className:"inputArterisk",children:"* "}),t]}),Object(p.jsx)(Ar.a,{PopperComponent:ll(w),className:dl(a),value:Y||L,onBlur:c,open:V,onOpen:()=>{W(!0)},onClose:()=>{W(!1)},disabled:O,showSelectInfo:E,inputValue:q,onInputChange:e=>{if(e&&e.target){const t=e.target.value;G(t),A(e),B&&B(t),""===t&&(K(null),l(null),U([]),z(!1))}},options:H,loading:_,getOptionLabel:e=>f&&!F?e.name:ee(e),renderOption:(e,t)=>{const a=f&&!F?t.name:ee(t),i="function"===typeof D?D(t):null;return Object(p.jsx)("li",{...e,children:Object(p.jsxs)("span",{className:"customOption",children:[a,null!=i&&!1!==i&&Object(p.jsxs)(p.Fragment,{children:[" ",i]})]})})},style:{borderColor:v?"#f32465":"#C6C6C6",backgroundColor:O&&"#EBEBEB",border:O&&"1px solid #c6c6c6"},onChange:Q,sx:{legend:{display:"none"},"& fieldset":{display:"none"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{border:0}},renderInput:e=>Object(p.jsxs)("div",{style:{display:"flex"},children:[Object(p.jsx)(vr.a,{sx:{label:{top:"-6px",fontFamily:"Work Sans, sans-serif !important"},"&  .MuiInputLabel-root.Mui-focused":{display:"none"},...!0===_&&{"&  .MuiInputLabel-root":{marginLeft:"30px"}},...!0===r&&{"&  .MuiInputBase-root":{height:"30px"},"& .MuiAutocomplete-hasPopupIcon.css-1t1szha-MuiAutocomplete-root .MuiOutlinedInput-root":{height:"30px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-10px"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"1px"}},...!0===s&&!1===r&&{"&  .MuiInputBase-root":{height:"45px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-5px"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"10px"}},...!1===s&&!1===r&&{"&  .MuiInputBase-root":{height:"40px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-5px!important"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"5px"}},"&  .MuiInputBase-root":{height:"40px"},"& .MuiInputBase-input":{position:"absolute"},"&  .MuiInputLabel-root":{fontFamily:"Work Sans",fontSize:"14px"}
1,"& .MuiAutocomplete-inputRoot .MuiAutocomplete-input":{minWidth:"80% !important",fontFamily:"Work Sans",fontSize:"14px"},...!0===n&&{"&  .MuiAutocomplete-inputRoot .MuiAutocomplete-input":{paddingLeft:"42px"}},"& .MuiAutocomplete-endAdornment css-2iz2x6":{display:"none !important"}},...e,label:q?" ":o,variant:"outlined",InputLabelProps:{shrink:!1},onKeyDown:J,InputProps:{...e.InputProps}}),!0===R&&Object(p.jsxs)("a",{onClick:e=>{N?e.preventDefault():T(e)},href:P,style:N?{pointerEvents:"none",opacity:.5,cursor:"not-allowed"}:void 0,children:[" ",Object(p.jsxs)("button",{className:"iconConfigurationBtn",disabled:N,style:{position:"relative",top:"-1px",left:"1px",borderTopColor:v?"#f32465":"#C6C6C6",borderBottomColor:v?"#f32465":"#C6C6C6",borderRightColor:v?"#f32465":"#C6C6C6",cursor:N?"not-allowed":void 0},children:[Object(p.jsx)("img",{className:"iconConfigurationImg",alt:"",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB5SURBVHgB7ZVhCoAgDIWndqCO0GXE357EA3iYOkIn2lpQEUTiyn61DwTF93gMNgagtMR7369H4ukkYmttQkTD16HaAx+jAT8IMOfH1uOpoN9nYC5oYs75+L/MgWHunERUrXlECGHkKieJR7tIA94j2gfOucj7AJSmLDL6Gg3v/BYYAAAAAElFTkSuQmCC"})," "]})," "]})]}),noOptionsText:(null===q||void 0===q?void 0:q.length)<2&&!E?Object(p.jsxs)("span",{className:"customOption",children:[" ",Ti.a.t("charactersToSearch")]}):Object(p.jsx)("span",{className:"customOption",children:Ti.a.t("noResults")}),disableClearable:!!k||null!==Y,filterOptions:(e,t)=>e}),v&&Object(p.jsx)("p",{className:"inputErrorMsg",children:j})]})}const pl="MULTIPLE_PRODUCTS_CURRENCY_ERROR",ml="MULTIPLE_CURRENCYS_ERROR",gl="MAX_UNIT_PRICE_COMBO_ERROR",bl="MAX_COMBO_ITEMS_QUANTITY_ERROR",hl="MIN_COMBO_ITEMS",xl=1e10,fl=999999.99,vl="DUPLICATED_PRODUCTS",jl="MIN_COMBO_ITEM_QUANTITY",Al=10,Cl=e=>{if("string"===typeof e){e=e.replace(/\./g,"").replace(",",".");const t=parseFloat(e);return isNaN(t)?0:t}return e},yl=e=>{let t=0,a=!1,i=!1,o=!1,n=!1,r=!1,s=!1;return Array.isArray(e)&&e.length>0&&(t=e.reduce(((e,t)=>e+("string"===typeof t.quantity?Cl(t.quantity):t.quantity||0)),0),a=e.length>=2,i=e.some((e=>("string"===typeof e.quantity?Cl(e.quantity):e.quantity||0)>=2)),o=t<=fl,n=e.length<=110&&(a||i),r=e.reduce(((e,t)=>{var a,i;const o="string"===typeof t.quantity?null===(a=t.quantity)||void 0===a?void 0:a.replace(".","").replace(",","."):t.quantity||0,n="string"===typeof t.quantity?parseFloat(o)||0:t.quantity||0;return e+("string"===typeof t.unitPrice?parseFloat(null===(i=t.unitPrice)||void 0===i?void 0:i.replace(/\./g,"").replace(",",".")):t.unitPrice)*n}),0),s=r<=xl),{isConditionMet:n,isConditionPrice:s,isTotalItemsConditionMet:o}},Ol=(e,t)=>(e-1)*Al+t,Sl=Object(u.a)((e=>({containerBtn:{display:"flex",justifyContent:"flex-start",marginTop:"1px",marginBottom:"1px","@media (max-width: 600px)":{marginTop:"1px"}},iconClear:{width:"15px"},containerAddTable:{"@media (min-width: 1310px)":{height:"100px"}},pagination:{display:"flex",justifyContent:"center"},additionalPadding:{"@media (max-width: 600px)":{paddingBottom:"15px"}}}))),El=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var Il=function(e){let{currency:t,jwtContext:a,stockRounding:o,showTableComboError:n,currencyId:r}=e;const{datosFormulario:s,actualizarDatosFormulario:l}=Object(i.useContext)(rr),[c,d]=Object(i.useState)(s.dataItems||[]),[u,m]=Object(i.useState)(""),[g,b]=Object(i.useState)(""),[h,x]=Object(i.useState)(!0),[f,j]=Object(i.useState)(!0),[C,y]=Object(i.useState)(""),{dataItems:O,setDataItems:S}=Object(i.useContext)(al),[E,I]=Object(i.useState)(null),[w,T]=Object(i.useState)(!1),[P,R]=Object(i.useState)(1),[N,L]=Object(i.useState)(s.lastCurrencySelected||!1),[k,B]=Object(i.useState)(1),{unitPriceTotal:D}=Ss(c);Object(i.useEffect)((()=>{D>=xl?n(gl):D<xl&&r===N&&n()}),[D]),Object(i.useEffect)((()=>{z(),r===N?(n(),z()):N&&r!==N&&(null===c||void 0===c?void 0:c.length)>0&&n(pl)}),[t]),Object(i.useEffect)((()=>{0===c.length&&r!==N&&(n(),L(r))}),[c,t]);const{valCant:F}=Object(i.useContext)(al),M=Sl(),V=Object(i.useRef)(null),W=(k-1)*Al,H=W+Al,U=Math.max(1,Math.ceil(c.length/Al));k<1?B(1):k>U&&B(U);const _=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=fl},z=()=>{m(""),b(null),y(""),I(""),V.current&&V.current()};Object(i.useEffect)((()=>{!1===F&&x(!1),c.length>=200&&T(!0)}),[c.length,F,c]);const q=c.slice(W,H);return Object(i.useEffect)((()=>{let e;setTimeout((()=>{e=O.length>0&&(null===O||void 0===O?void 0:O.some((e=>Number(e.quantity)<=.001))),e&&n(jl)}),500)}),[O]),Object(p.jsxs)("div",{children:[Object(p.jsxs)("div",{children:[Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,className:M.containerAddTable,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:2,className:M.additionalPadding,children:Object(p.jsx)(El,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ",Ti.a.t("amount")]}),Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:""+(h?"input inputPrimary":"input inputError"),onValueChange:e=>{const{floatValue:t}=e;m(t)},onBlur:function(){""!==u&&x(!0)}
1,allowNegative:!1,decimalScale:o,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=fl},value:u}),h?Object(p.jsx)("p",{className:"inputTextMsg"}):Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#f32465"},children:Ti.a.t("requiredField")})]})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:5,className:M.additionalPadding,children:Object(p.jsxs)(El,{children:[Object(p.jsx)(ul,{label:Ti.a.t("selectItem"),filter:""+(a?`distinct=type:c&limit=5&currency=${r}&status=A`:"distinct=type:c&limit=5&status=A"),type:"searchSelectPrimary",error:!f,onBlur:function(){""!==g&&j(!0)},url:Object(aa.a)()+"concepts/filter",option2:"code",option1:"name",placeholderLabel:Ti.a.t("charactersToSearch"),onChange:e=>{b(null),y(null),null!==e?(b(e.name),y(e.description)):(b(null),y("")),I(e)},selectTwoOptions:!0,clearSearchRef:e=>{V.current=e}}),!f&&Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#f32465"},children:Ti.a.t("requiredField")})]})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:5,children:Object(p.jsx)(El,{children:Object(p.jsx)(mr,{disabled:!0,types:"inputDisabled2",value:C,children:Ti.a.t("description")})})})]}),Object(p.jsxs)(v.a,{container:!0,className:M.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"primary",variant:"contained",onClick:()=>{if(null===E||!E)return x(!1),void j(!1);const e="number"===typeof u?u:parseFloat(String(u).replaceAll(".","").replace(",","."));if(isNaN(e)||e<=.001)return x(!1),void n(jl);const t=c.some((e=>(null===e||void 0===e?void 0:e.code)===(null===E||void 0===E?void 0:E.code))),a=[...c,{...E,quantity:e}],{isTotalItemsConditionMet:i}=yl(a);if(i){if(t&&(null===c||void 0===c?void 0:c.length)>0)n(vl);else if(N&&N!==r)n(pl);else if(n(),L(r),l({...s,lastCurrencySelected:N}),!isNaN(e)&&e>.001&&c.length<=110){const t=E;if(t){const a={numero:c.length+1,quantity:e,code:t.code,internalCost:t.internalCost.toLocaleString("es-ES"),unitPrice:t.unitPrice.toLocaleString("es-ES"),name:g,id:t.id},i=[...c,a],{unitPriceTotal:o}=Ss(i);if(o>xl)return void n(gl);d([...c,a]),S([...O,a]),R(P+1),m(""),b(""),y(""),I(null),V.current&&V.current()}}}else n(bl)},disabled:w,children:Ti.a.t("add")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{type:"secondary",variant:"contained",onClick:z,children:Ti.a.t("cancel")})})]})]}),Object(p.jsx)(Ks.a,{style:{marginTop:"40px",marginBottom:"50px"},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{children:"#"}),Object(p.jsx)(Js.a,{children:Ti.a.t("amount")}),Object(p.jsx)(Js.a,{style:{width:"20%"},children:Ti.a.t("SKU")}),Object(p.jsx)(Js.a,{style:{width:"25%"},children:Ti.a.t("item")}),Object(p.jsx)(Js.a,{children:Ti.a.t("internalCost")}),Object(p.jsx)(Js.a,{children:Ti.a.t("unitPrice")}),Object(p.jsx)(Js.a,{})]})}),Object(p.jsx)($s.a,{children:q.map(((e,t)=>Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{children:Ol(k,t+1)}),Object(p.jsx)(Js.a,{children:Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:"input",style:{maxWidth:"100px"},value:e.quantity,isAllowed:_,onValueChange:e=>{const{floatValue:a}=e;(e=>{let{floatValue:t,index:a}=e;const i=Ol(k,a);let o=[...O];o[i].quantity=t,S(o)})({floatValue:a,index:t})},allowNegative:!1,decimalScale:o})}),Object(p.jsx)(Js.a,{children:e.code}),Object(p.jsx)(Js.a,{children:e.name}),Object(p.jsx)(Js.a,{style:{textAlign:"end"},children:e.internalCost}),Object(p.jsx)(Js.a,{style:{textAlign:"end"},children:e.unitPrice}),Object(p.jsx)(Js.a,{children:Object(p.jsx)(Qr.a,{disableRipple:!0,onClick:()=>(e=>{const t=(k-1)*Al+e;if(t>=0&&t<c.length){const e=[...c];e.splice(t,1),d(e);const a=[...O];a.splice(t,1),S(a),0===e.length&&B(k-1>0?k-1:1),k>1&&c.length<=Al&&B(k-1)}})(t),children:Object(p.jsx)(ni.a,{className:M.iconClear,name:"clear"})})})]},t)))})]})}),c.length>Al&&Object(p.jsx)(el.a,{count:Math.ceil(c.length/Al),page:k,onChange:(e,t)=>
1{B(t)},className:M.pagination,renderItem:e=>Object(p.jsx)(tl.a,{...e,disableRipple:!0})})]})};const wl=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"10px",backgroundColor:"#FFFFFF",padding:"30px 40px","@media (max-width: 600px)":{padding:"20px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerAlert:{marginTop:15,marginBottom:25}}))),Tl=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var Pl=function(e){let{nextStep:t,lastStep:a,title:o,jwtContext:n,dataCurrencies:r,multiCurrency:s,dataDefault:l,stockRounding:c,steps:d,activeStep:u}=e;const{datosFormulario:m,actualizarDatosFormulario:g}=Object(i.useContext)(rr),{setCurrencyData:b}=nr(),{setTableData:h}=nr(),[x,f]=Object(i.useState)(m.dataItems||""),[j,A]=Object(i.useState)(!0),[C,y]=Object(i.useState)(m.currencySelected||null),[O,S]=Object(i.useState)(""),[E,I]=Object(i.useState)(m.currencyId||0),[w,T]=Object(i.useState)([]),[P,R]=Object(i.useState)([]),[N,L]=Object(i.useState)(!1),[k,B]=Object(i.useState)(!1),[D,F]=Object(i.useState)(!0),[M,V]=Object(i.useState)(!0),W=wl();Object(i.useEffect)((()=>{const{isConditionMet:e,isConditionPrice:t,isTotalItemsConditionMet:a}=yl(x);B(e),F(t),V(a)}),[x]),Object(i.useEffect)((()=>{if(null===C&&S(l),null!==C&&S(C),null===l||C||I(l.id),Array.isArray(x)&&x.length>0){const e=x.map((e=>{let{quantity:t,id:a}=e;return{quantity:isNaN(t)?parseFloat(null===t||void 0===t?void 0:t.replace(/\./g,"").replace(",","."))||0:t,item:a}}));T(e)}}),[C,l,x]);const H=e=>{e?(L(!0),R([{code:e}]),window.scrollTo({top:0,left:0,behavior:"smooth"})):(L(!1),R([]))};return Object(p.jsx)(al.Provider,{value:{dataItems:x,setDataItems:f,valCant:j,setValeCant:A},children:Object(p.jsx)(v.a,{className:W.root,children:Object(p.jsxs)(v.a,{className:W.container,children:[Object(p.jsx)(Zn,{title:o}),Object(p.jsxs)(v.a,{className:W.container2,children:[N&&Object(p.jsx)(v.a,{className:W.containerAlert,children:Object(p.jsx)(os,{errors:P,onCloseAlert:function(){L(!1)}})}),Object(p.jsxs)(v.a,{className:W.containerForm,children:[Object(p.jsx)(Gr,{activeStep:u,steps:d}),Object(p.jsx)("div",{style:{height:20}}),!0===s&&Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Tl,{children:Object(p.jsx)(Pr,{label:Ti.a.t("currency"),required:!0,type:"searchSelectPrimary",data:r,onChange:function(e,t){y(t),null!==t&&I(t.id)},defaultValue:void 0!==C&&null!==C&&"object"===typeof C?C:l})})}),Object(p.jsx)(Il,{currency:O,jwtContext:s,stockRounding:c,showTableComboError:H,currencyId:E}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(Tl,{children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:W.footerForm,style:{marginBottom:"5px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:W.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})})]}),Object(p.jsxs)(v.a,{container:!0,className:W.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",onClick:a,children:Ti.a.t("back")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{type:"primary",onClick:function(){var e,a;(null===(e=P[0])||void 0===e?void 0:e.code)!==pl&&(null===(a=P[0])||void 0===a?void 0:a.code)!==ml?(!M&&x.length>0?H(bl):!D&&x.length>0?H(gl):!1===k&&H(hl),""===x||0===x.length?A(!1):k&&D&&M&&(g({...m,comboItems:w,dataItems:x,currencySelected:C,currencyId:E}),b(O),h(x),t(),A(!0))):H(ml)},children:Ti.a.t("next")})})]})]})]})})})};const Rl=Object(u.a)((e=>({container:{display:"flex",alignItems:"center",width:"100%",background:"#F6F6F6",borderRadius:"20px",padding:16,margin:"10px 0px 0px 0px","@media (max-width: 845px)":{flexDirection:"column"}},text:{fontSize:"14px",color:"#5A5A5A",fontFamily:"Work Sans",fontWeight:400,width:"90%","@media (max-width: 845px)":{textAlign:"center"}},icon:{margin:"2px 20px 10px 20px",width:"15px"}})));var Nl=function(e){let{text:t="",containerStyle:a={}}=e;const i=Rl();return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{style:a,container:!0,xs:12,className:i.container,containerDirection:"row",children:[Object(p.jsx)(ni.a,{name:"lampIcon",style:{color:"#666666",width:15,height:20,overflow:"visible"},className:i.icon}),Boolean(t)&&Object(p.jsx)(cn.a,{className:i.text,children:t})]})})};var Ll=e=>{let t,a,i,o,n,r,s,{userCountry:l}=e;
1if("cl"===l)t={text:"Los atributos son caracter\xedsticas que ayudan a distinguir un producto o servicio. Por ejemplo, puedes usar el atributo 'Color' y ofrecer variantes como 'Rojo', 'Blanco' y 'Negro'. Puedes crear 2 atributos y combinarlos con hasta 10 variantes cada uno."},a={text:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Si quieres que todas las variantes tengan la misma informaci\xf3n, completa el precio en la primera variante y haz clic en 'Aplicar a todos'. Adem\xe1s, puedes editar haciendo clic en el icono del l\xe1piz."},i={text:"La informaci\xf3n que agregues en esta pantalla se aplicar\xe1 autom\xe1ticamente a todas las variantes."},o={text:"Para agregar stock por bodega, haz clic en el icono del l\xe1piz."},n={text:"Al ingresar el stock desde esta pantalla, no se generar\xe1n autom\xe1ticamente los asientos contables por ajuste de mercader\xeda."},r={text:"Pueden agregarse hasta 10 variantes. Si dejaste algunas inactivas al crear el producto o servicio, puedes activarlas.  Pero, si seleccionas una variante y guardas, no podr\xe1s volver a deseleccionarla. Si quieres desactivar alguna variante, podr\xe1s hacerlo en el pr\xf3ximo paso."},s={text:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Si agregaste nuevas variantes, las mismas se listar\xe1n primero. Si quieres que todas las variantes tengan la misma informaci\xf3n, completa el precio en la primera variante y haz clic en 'Aplicar a todos'. Adem\xe1s, puedes editar haciendo clic en el icono del l\xe1piz."};else t={text:"Los atributos son caracter\xedsticas que ayudan a distinguir un producto o servicio. Por ejemplo, pod\xe9s usar el atributo 'Color' y ofrecer variantes como 'Rojo', 'Blanco' y 'Negro'. Pod\xe9s crear 2 atributos y combinarlos con hasta 10 variantes cada uno."},a={text:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Si quer\xe9s que todas las variantes tengan la misma informaci\xf3n, complet\xe1 el precio en la primera variante y hac\xe9 clic en 'Aplicar a todos'. Adem\xe1s, pod\xe9s editar haciendo clic en el icono del l\xe1piz."},i={text:"La informaci\xf3n que agregues en esta pantalla se aplicar\xe1 autom\xe1ticamente a todas las variantes."},o={text:"Para agregar stock por dep\xf3sito, hac\xe9 clic en el icono del l\xe1piz."},n={text:"Al ingresar el stock desde esta pantalla, no se generar\xe1n autom\xe1ticamente los asientos contables por ajuste de mercader\xeda."},r={text:"Pueden agregarse hasta 10 variantes. Si dejaste algunas inactivas al crear el producto o servicio, pod\xe9s activarlas.  Pero, si seleccion\xe1s una variante y guard\xe1s, no podr\xe1s volver a deseleccionarla. Si quer\xe9s desactivar alguna variante, podr\xe1s hacerlo en el pr\xf3ximo paso."},s={text:"Estas son todas las combinaciones posibles generadas autom\xe1ticamente. Si agregaste nuevas variantes, las mismas se listar\xe1n primero. Si quer\xe9s que todas las variantes tengan la misma informaci\xf3n, complet\xe1 el precio en la primera variante y hac\xe9 clic en 'Aplicar a todos'. Adem\xe1s, pod\xe9s editar haciendo clic en el icono del l\xe1piz."};return{infoCardAttributes:t,infoCardVariants:a,infoCard:i,infoCardDeposits:o,infoCardStock:n,infoCardAttributesEdition:r,infoCardVariantsEdition:s}};var kl=e=>{let{iconName:t="",type:a="",children:o="",style:n={},iconStyle:r={},icon:s=!1,showCustomAlert:l=!1}=e;const[c,d]=Object(i.useState)(!1);Object(i.useEffect)((()=>{l&&d(!0)}),[l]);const u={icon:s,iconName:t,type:a,style:n,iconStyle:r,children:o,onClick:()=>{d(!1)}};return Object(p.jsx)(p.Fragment,{children:c&&Object(p.jsx)($r,{...u})})};const Bl=2e3,Dl=50,Fl=["marca","linea","material","origen","temporada","calidad"],Ml="required",Vl="tooLong",Wl="duplicated",Hl="DEFAULT_ERROR",Ul=e=>String(null!==e&&void 0!==e?e:"").replace(/\s+/g," ").trim(),_l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Ul(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},zl=e=>e.toLocaleLowerCase("es")!==e.toLocaleUpperCase("es"),ql=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=Ul(e),a=t.split("").findIndex(zl);
1return-1===a?t:t.slice(0,a)+t.charAt(a).toLocaleUpperCase("es")+t.slice(a+1).toLocaleLowerCase("es")},Gl=e=>Fl.includes(e)?`account.productFields.fieldNames.${e}`:null,Yl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e||{}).map((e=>{let[t,a]=e;return{key:t,id:a.id,name:a.name,active:Boolean(a.active),values:Number(a.values)||0,activeValues:Number(a.activeValues)||0}}))},Kl=new Intl.Collator(void 0,{sensitivity:"base"}),Xl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...e].sort(((e,t)=>Kl.compare(String(e.name),String(t.name))))},Zl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const i=_l(e);return!!i&&t.some((e=>e.id!==a&&_l(e.name)===i))},Ql=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const i=String(null!==e&&void 0!==e?e:"").trim();return i?i.length>Dl?Vl:Zl(i,t,a)?Wl:null:Ml},Jl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((e=>null===e||void 0===e?void 0:e.active)).length},$l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Boolean(null===e||void 0===e?void 0:e.active)&&Boolean(null===t||void 0===t?void 0:t.active)&&1===Jl(a)},ec=e=>{var t,a;const i=null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.data;if(!i||"object"!==typeof i)return Hl;if(Array.isArray(i.error)&&null!==(a=i.error[0])&&void 0!==a&&a.code)return i.error[0].code;if("string"===typeof i.code&&i.code)return i.code;const o=Object.values(i).find((e=>{var t;return Array.isArray(e)&&(null===(t=e[0])||void 0===t?void 0:t.code)}));return o?o[0].code:Hl},tc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")},ac=e=>Gl(tc(null===e||void 0===e?void 0:e.name)),ic=e=>Array.isArray(e)?e.filter((e=>e&&null!==e.fieldId&&void 0!==e.fieldId)).map((e=>{return{fieldId:Number(e.fieldId),valueId:(t=e.valueId,null===t||void 0===t||""===t?null:Number(t)),valueName:void 0===e.valueName?null:e.valueName,valueActive:void 0===e.valueActive||null===e.valueActive||Boolean(e.valueActive)};var t})):[],oc=(e,t)=>ic(e).find((e=>e.fieldId===Number(t)))||null,nc=(e,t,a)=>{const i=Number(t);return[...ic(e).filter((e=>e.fieldId!==i)),{fieldId:i,valueId:a?Number(a.id):null,valueName:a?a.name:null,valueActive:!0}]},rc=(e,t)=>{var a;const i=null!==(a=null===t||void 0===t?void 0:t.valueId)&&void 0!==a?a:null;return null===i?null:e.find((e=>e.id===i))||null},sc=e=>Boolean(e&&e.loaded&&!e.error&&Array.isArray(e.activeFields)&&e.activeFields.length>0),lc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const a=(t||[]).filter((e=>null!==e.valueId&&void 0!==e.valueId)).map((e=>Number(e.fieldId)));return e.filter((e=>a.includes(Number(e.id)))).map((e=>e.name)).join(" / ")},cc=(e,t,a)=>(sc(a)?e.fields=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.map((e=>{const a=oc(t,e.id);return{fieldId:Number(e.id),valueId:a?a.valueId:null}}))}(a.activeFields,t):delete e.fields,e),dc={width:"100%",marginTop:"20px",marginBottom:"4px"},uc={fontFamily:"Work Sans, sans-serif",fontSize:13,color:ui.a.textSecondary,marginTop:"4px",marginBottom:"6px"},pc={display:"flex",alignItems:"center",gap:"10px",padding:"10px 8px 4px"},mc={padding:"8px","@media (max-width: 600px)":{padding:"1px"},"@media (min-width: 900px) and (max-width: 959.95px)":{flexBasis:"100%",maxWidth:"100%"}},gc={"& .MuiAutocomplete-clearIndicator":{display:"inline-flex"}};var bc=e=>{let{testIdPrefix:t}=e;const{datosFormulario:a,actualizarDatosFormulario:o,descriptiveFields:n}=Object(i.useContext)(rr),r=null===n||void 0===n?void 0:n.activeFields,s=null===a||void 0===a?void 0:a.fields,l=Ti.a.t("descriptiveFieldsInactiveValue"),c=Object(i.useMemo)((()=>(r||[]).map((e=>{const t=oc(s,e.id),a=function(e,t){var a;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const o=Xl((null===e||void 0===e?void 0:e.values)||[]).map((e=>({id:Number(e.id),name:e.name}))),n=null!==(a=null===t||void 0===t?void 0:t.valueId)&&void 0!==a?a:null;if(null!==n&&!1===t.valueActive&&!o.some((e=>
1e.id===n))){const e=[t.valueName,i].filter(Boolean).join(" ");o.unshift({id:n,name:e,inactive:!0})}return o}(e,t,l);return{field:e,slug:tc(e.name),labelKey:ac(e),options:a,selected:rc(a,t)}}))),[r,s,l]);if(!n)return null;if(n.loading)return Object(p.jsx)(y.a,{sx:dc,"data-testid":t,children:Object(p.jsxs)(y.a,{sx:pc,"data-testid":`${t}-loading`,children:[Object(p.jsx)(oi.a,{size:20}),Object(p.jsx)(S.a,{sx:uc,children:Ti.a.t("descriptiveFieldsLoading")})]})});if(!sc(n))return null;const d=e=>(t,a)=>{o({fields:nc(s,e.id,a)})};return Object(p.jsx)(y.a,{sx:dc,"data-testid":t,children:Object(p.jsx)(hr.a,{container:!0,children:c.map((e=>{let{field:a,slug:i,labelKey:o,options:n,selected:r}=e;return Object(p.jsx)(hr.a,{item:!0,xs:12,md:4,sx:mc,children:Object(p.jsx)(y.a,{"data-testid":`${t}-${i}-select`,children:Object(p.jsx)(Pr,{label:o?Ti.a.t(o):a.name,type:"searchSelectPrimary",placeholder:r?" ":Ti.a.t("descriptiveFieldsSelectPlaceholder"),data:n,value:r,onChange:d(a),sx:gc,optionsLimit:100})})},a.id)}))})})};const hc=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"10px",backgroundColor:"#FFFFFF",padding:"30px 40px","@media (max-width: 600px)":{padding:"20px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",height:"92px",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px",resize:" none",fontSize:"14px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerAlert:{marginBottom:"10px"},searchSelectPadding:{"@media (max-width: 960px)":{paddingBottom:"25px !important"},"@media (max-width: 600px)":{paddingBottom:"15px !important"}}}))),xc=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}})),fc={P:'Click en "Crear un nuevo producto"',S:'Click en "Crear un nuevo servicio"',C:'Click en "Crear un nuevo combo de 2 o m\xe1s productos/servicios"'};var vc=function(e){let{lastStep:t,title:a,jwtContext:o,sendForm:n,nextStep:r,button:s,send:l,sale:d,purchase:u,merchandise:m,showInventaries:g,postServicesError:b,postProductsError:h,postComboError:x,saveLoading:f,steps:j,activeStep:A,conceptType:C}=e;const{datosFormulario:y,actualizarDatosFormulario:O}=Object(i.useContext)(rr),[S,E]=Object(i.useState)({oemCode:y.oemCode||"",purchasePlanId:y.purchasePlanId||null,purchaseValue:y.purchaseValue||null,salePlanId:y.salePlanId||null,salePlanValue:y.salePlanValue||null,merchandisePlanId:y.merchandisePlanId||null,merchandisePlanValue:y.merchandisePlanValue||null,visible:y.visible||!0,visibleValue:y.visibleValue||"Si",RG5329:y.RG5329||!1,RG5329Value:y.RG5329Value||"No",observations:y.observations||"",personId:y.personId||null,personValue:y.personValue||null,providerCode:y.providerCode||null}),{oemCode:I,salePlanId:w,merchandisePlanId:T,visible:P,RG5329:R,observations:N,personId:L,purchaseValue:k,merchandisePlanValue:B,RG5329Value:D,visibleValue:F,personValue:M,salePlanValue:V,purchasePlanId:W,providerCode:H}=S,[U,_]=Object(i.useState)(!1),[,z]=Object(i.useState)(h),[,q]=Object(i.useState)(b),[,G]=Object(i.useState)(x),[Y,K]=Object(i.useState)(""),X=Kn(),Z=null===o||void 0===o?void 0:o.country,Q=null===o||void 0===o?void 0:o.plan_name,J=hc();Object(i.useEffect)((()=>{let e=Z;"ar"===e&&K(e),"cl"===e&&K(e),"uy"===e&&K(e),"py"===e&&K(e)}),[Z]);const $=()=>{const e=null===y||void 0===y?void 0:y.option;Object(c.b)(fc[e],{userId:X.data.userId,referred:!0,planName:X.data.plan_name})};Object(i.useEffect)((()=>{null!==h&&_(!0),null!==b&&_(!0),null!==x&&_(!0)}),[h,b,x]),Object(i.useEffect)((()=>{O({...y,...S})}),[R,T,N,I,L,W,w,P,U,H]);const ee=e=>{E({...S,providerCode:e.target.value})},te=e=>{E({...S,personValue:e,personId:(null===e||void 0===e?void 0:e.personId)||null})};function ae(){_(!1),z(null),q(null),G(null)}const{infoCard:ie}=Ll({userCountry:Z}),oe={iconName:"helpIcon",type:"alertWarning",style:{marginTop:"0px",marginBottom:"20px"}
1,children:Ti.a.t("conceptsLimitWarning"),showCustomAlert:("Freemium"===Q||"Prueba"===Q)&&"ar"===Z},ne="cl"===Z||"uy"===Z||"py"===Z||"ar"===Z;return Object(p.jsx)(v.a,{className:J.root,children:Object(p.jsxs)(v.a,{className:J.container,children:[Object(p.jsx)(Zn,{title:a}),Object(p.jsxs)(v.a,{className:J.container2,children:[!0===U&&Object(p.jsx)(v.a,{className:J.containerAlert,children:null!==x&&void 0!==x&&!0!==g&&Object(p.jsx)(os,{errors:x,onCloseAlert:ae})}),!0===U&&Object(p.jsx)(v.a,{className:J.containerAlert,children:null!==h&&void 0!==h&&!0!==g&&Object(p.jsx)(os,{errors:h,onCloseAlert:ae})}),!0===U&&Object(p.jsx)(v.a,{className:J.containerAlert,children:null!==b&&void 0!==b&&Object(p.jsx)(os,{errors:b,onCloseAlert:ae})}),Object(p.jsxs)(v.a,{className:J.containerForm,children:[Object(p.jsx)(Gr,{activeStep:A,steps:j}),"Unique"!==C&&Object(p.jsx)(v.a,{item:!0,style:{marginBottom:20,marginTop:20},children:Object(p.jsx)(Nl,{...ie})}),"Unique"!==C&&"S"===y.option&&Object(p.jsx)(kl,{...oe}),Object(p.jsx)(bc,{testIdPrefix:"attributes-creation-descriptive-fields"}),"Unique"===C&&Object(p.jsxs)(v.a,{style:{marginTop:20},container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:ne?4:6,children:Object(p.jsx)(xc,{children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:function(e){E({...S,oemCode:e.target.value})},maxLength:"50",value:I,children:Ti.a.t("CodOEM")})})}),Object(p.jsx)(v.a,{xs:12,md:ne?4:6,children:Object(p.jsx)(xc,{className:J.searchSelectPadding,children:Object(p.jsx)(ul,{label:Ti.a.t("supplierOr"),type:"searchSelectPrimary",filter:"limit=5",initValue:null===M||void 0===M?void 0:M.socialReason,url:Object(aa.a)()+"people",option2:"identificacionNumber",option1:"socialReason",placeholderL
1abel:Ti.a.t("selectSupplierOr"),onChange:te,selectTwoOptions:!0})})}),ne&&Object(p.jsx)(v.a,{item:!0,xs:12,md:ne?4:6,children:Object(p.jsx)(xc,{children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:ee,maxLength:"50",value:H,children:Ti.a.t("providerCode")})})})]}),"Unique"!==C&&Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{xs:12,md:ne?6:12,children:Object(p.jsx)(xc,{className:J.searchSelectPadding,children:Object(p.jsx)(ul,{label:Ti.a.t("supplierOr"),type:"searchSelectPrimary",filter:"limit=5",initValue:null===M||void 0===M?void 0:M.socialReason,url:Object(aa.a)()+"people",option2:"identificacionNumber",option1:"socialReason",placeholderLabel:Ti.a.t("selectSupplierOr"),onChange:te,selectTwoOptions:!0})})}),ne&&Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(xc,{children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:ee,maxLength:"50",value:H,children:Ti.a.t("providerCode")})})})]}),!0===o.account_plan&&Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(xc,{children:Object(p.jsx)(Pr,{label:Ti.a.t("purchaseAccount"),type:"searchSelectPrimary",purchaseValue:!0,placeholder:k?" ":Ti.a.t("selectAccount"),data:u.dataPurchase,onChange:function(e,t){E({...S,purchaseValue:t,purchasePlanId:(null===t||void 0===t?void 0:t.id)||null})},value:k,twoOptions:!0})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(xc,{children:Object(p.jsx)(Pr,{label:Ti.a.t("accountSale"),type:"searchSelectPrimary",placeholder:V?" ":Ti.a.t("selectAccount"),data:d.dataSale,onChange:function(e,t){E({...S,salePlanValue:t,salePlanId:(null===t||void 0===t?void 0:t.id)||null})},value:V,twoOptions:!0})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(xc,{children:Object(p.jsx)(Pr,{label:Ti.a.t("merchAccount"),type:"searchSelectPrimary",merchandisePlanValue:!0,placeholder:B?" ":Ti.a.t("selectAccount"),data:m.dataMerchandise,onChange:function(e,t){E({...S,merchandisePlanValue:t,merchandisePlanId:(null===t||void 0===t?void 0:t.id)||null})},value:B,twoOptions:!0})})})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:["Unique"===C&&Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(xc,{children:Object(p.jsx)(v.a,{children:Object(p.jsx)(ps,{RadioButtonLabel1:"Si",RadioButtonLabel2:"No",defaultValue:F,iconType:"helpIcon",label:Ti.a.t("visibleSalesMod"),type:"RadioButtonPrimary",onChange:function(e){const t="Si"===e.target.value;E({...S,visibleValue:e.target.value,visible:t})}})})})}),"ar"===Y&&Object(p.jsx)(v.a,{xs:12,md:6,children:Object(p.jsx)(xc,{children:Object(p.jsx)(v.a,{children:Object(p.jsx)(ps,{RadioButtonLabel1:"Si",RadioButtonLabel2:"No",defaultValue:D,iconType:"helpIcon",label:Ti.a.t("achievedRG"),type:"RadioButtonPrimary",onChange:function(e){const t="Si"===e.target.value;E({...S,RG5329Value:e.target.value,RG5329:t})}})})})})]}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsxs)(xc,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:J.label,style:{marginBottom:"5px"},children:Ti.a.t("observations")})}),Object(p.jsx)(v.a,{children:Object(p.jsx)("textarea",{className:J.textArea,onChange:function(e){const t=e.target.value;E({...S,observations:""!==t?t:null})},maxLength:"500",value:N})})]})})})]}),Object(p.jsxs)(v.a,{container:!0,className:J.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",onClick:function(){G(null),ae(),t()},children:Ti.a.t("back")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{loading:f,type:"primary",onClick:async()=>{if(!1===g){O({...y,...S});try{await n(),z(null),q(null),G(null),$()}catch(e){console.error(e)}null===b&&null===h&&null===x||_(!0)}else if(O({...y,...S}),!0===l&&("Unique"===C&&Object(c.b)("Prod Unico step 3 - Siguiente",{"visible mod ventas":y.visible?"si":"no","Alcanzado RG":y.RG5329?"si":"no"}),"Variants"===C&&Object(c.b)("Prod con Variante Step 4 - Siguiente",{"Alcanzado RG":y.RG5329?"si":"no"}),r()),!1===l){try{await n(),z(null),q(null),G(null),$()}catch(e){console.error(e)}null===b&&null===h&&null===x||_(!0)}},children:g?s:Ti.a.t("save")})})]})]})]})})};const jc=Object(jn.a)({components:{MuiPaginationItem:{styleOverrides:{page:{"&.Mu
1i-selected":{backgroundColor:"#00A692",cursor:"default",color:"#fff",borderRadius:"100px !important","&:hover":{backgroundColor:"#00A692"}}}}}}});var Ac=e=>{let{actualPage:t,totalPages:a,onPageChange:i,disabled:o,size:n}=e;return Object(p.jsx)(y.a,{sx:{marginTop:"40px",marginBottom:"20px",display:"flex",justifyContent:"center"},children:Object(p.jsx)(el.a,{count:a,page:t,onChange:(e,t)=>{i(t)},disabled:o,size:n})})};const Cc=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"20px",backgroundColor:"#FFFFFF",padding:"30px 40px 35px 40px","@media (max-width: 600px)":{padding:"20px"}},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},containerAlert:{marginBottom:"10px"},columnStock:{display:"flex !important",justifyContent:"flex-end !important"},columnTitle:{fontFamily:"Work Sans",fontStyle:"normal",fontWeight:"500",fontSize:"14px"},columnbutton:{fontFamily:"Work Sans",fontStyle:"normal",fontWeight:"400",fontSize:"12px",color:"#007868",cursor:"pointer","&:hover":{color:"#007868"}},columnOne:{fontFamily:"Work Sans!important",fontStyle:"normal!important",fontWeight:"400!important",fontSize:"14px!important",color:"#131313!important"},columnStockContainer:{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",minHeight:"45px"}}))),yc={P:'Click en "Crear un nuevo producto"',S:'Click en "Crear un nuevo servicio"',C:'Click en "Crear un nuevo combo de 2 o m\xe1s productos/servicios"'};var Oc=function(e){let{lastStep:t,title:a,sendForm:o,nextStep:n,primaryButtonText:r,dataInventaries:s,stockRounding:l,postProductsError:d,jwtContext:u,saveLoading:m,steps:g,activeStep:b}=e;const[h,x]=Object(i.useState)(1),f=s.dataInventaries,j=Math.ceil(f.length/5),C=f.slice(5*(h-1),5*h),{datosFormulario:y,actualizarDatosFormulario:O}=Object(i.useContext)(rr),[S,E]=Object(i.useState)(void 0!==y.stockValues&&null!==y.stockValues?y.stockValues.map((e=>({stock:0,id:e.id}))):void 0!==s.dataInventaries&&null!==s.dataInventaries?s.dataInventaries.map((e=>({stock:0,id:e.id}))):[]),[I,w]=Object(i.useState)(!1),[T,P]=Object(i.useState)([]),[,R]=Object(i.useState)(!1),[N,L]=Object(i.useState)(d),[k,B]=Object(i.useState)(Ti.a.t("deposit")),D=Kn(),F=Cc();Object(i.useEffect)((()=>{O({...y,stock:T,stockValues:S})}),[T,I,S]),Object(i.useEffect)((()=>{null!==d&&w(!0)}),[d]);const M=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e6};return Object(i.useEffect)((()=>{(()=>{if(S&&S.length>0){const e=S.map((e=>({stock:"string"===typeof e.stock?Number(e.stock.replace(/\./g,"").replace(",",".")):e.stock,inventary:e.id})));P(e)}})()}),[S]),Object(i.useEffect)((()=>{let e="deposit";"cl"===u.country&&(e="store"),B(Ti.a.t(e))}),[u.country]),Object(p.jsx)(v.a,{className:F.root,children:Object(p.jsxs)(v.a,{className:F.container,children:[Object(p.jsx)(Zn,{title:a}),Object(p.jsxs)(v.a,{className:F.container2,children:[!0===I&&Object(p.jsx)(v.a,{className:F.containerAlert,children:null!==d&&void 0!==d&&Object(p.jsx)(os,{errors:d,onCloseAlert:function(){w(!1),L(null)}})}),Object(p.jsxs)(v.a,{className:F.containerForm,children:[Object(p.jsx)(Gr,{activeStep:b,steps:g}),s.dataInventaries.length>=1?Object(p.jsxs)(Ks.a,{style:{marginTop:20},sx:{"& .css-1ygcj2i-MuiTableCell-root":{borderBottom:"none"},"& .css-1ex1afd-MuiTableCell-root":{borderBottom:"none"},thead:{borderBottom:"1px solid rgba(224, 224, 224, 1)"},tr:{borderBottom:"1px solid rgba(224, 224, 224, 1)"}},children:[Object(p.jsxs)(Xs.a,{children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsxs)(Js.a,{children:[" ",Object(p.jsx)(cn.a,{className:F.columnTitle,children:k})]}),Object(p.jsx)(Js.a,{className:F.columnStock,children:Object(p.jsxs)(v.a,{className:F.columnStockContainer,children:[Object(p.jsx)(cn.a,{className:F.columnTitle,children:Ti.a.t("initialStock")}),Object(p.jsx)(cn.a,{className:F.columnbutton,onClick:()=>{const e=S[0].stock,t=S.map((t=>({...t,stock:e})));E(t),Object(c.b)("Prod Unico step 4 - Aplicar a todos")},children:Ti.a.t("appAll")})]})})]})}),Object(p.jsx)($s.a,{children:C.map(((e,t)=>Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:F.columnOne,children:e.name}),Object(p.jsx)(Js.a,{className:F.columnStock,children:Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:"input inputPrimary inputTable",allowNegative:!1,decimalScale:l,value:S.find((t=>t.id===e.id)).stock,onChange:t=>((e,t)=>{const a=S.map((a=>a.id===t?{...a,stock:e.target.value}:a));E(a)})(t,e.id),isAllowed:M})})]},t)))})]}),f.length>5&&Object(p.jsx)(Ac,{actualPage:h,totalPages:j,onPageChange:e=>{x(e)},size:"large"})]}):Object(p.jsx)("p",{children:"Este usuario no tiene depositos"})]}),Object(p.jsxs)(v.a,{container:!0,className:F.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",onClick:t,children:Ti.a.t("back")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{loading:m&&!n,type:"primary",onClick:async()=>
1{if(O({...y,stock:T,stockValues:S}),R(!0),"function"!==typeof n){try{await o(),L(null),(()=>{const e=null===y||void 0===y?void 0:y.option;Object(c.b)(yc[e],{userId:D.data.userId,referred:!0,planName:D.data.plan_name})})()}catch(e){console.error(e)}null!==N&&w(!0)}else n()},children:r||Ti.a.t("save")})})]})]})]})})};const Sc=[Ti.a.t("mainInformation"),Ti.a.t("detail"),Ti.a.t("AdditionalInfo"),Ti.a.t("initialStockCharge")],Ec=[Ti.a.t("mainInformation"),Ti.a.t("attributesConfig"),Ti.a.t("variantsConfig"),Ti.a.t("AdditionalInfo"),Ti.a.t("initialStockCharge")],Ic=[Ti.a.t("mainInformation"),Ti.a.t("attributesConfig"),Ti.a.t("variantsConfig"),Ti.a.t("AdditionalInfo")],wc=[Ti.a.t("mainInformation"),Ti.a.t("detail"),Ti.a.t("AdditionalInfo")],Tc=[Ti.a.t("mainInformation"),Ti.a.t("comboItems"),Ti.a.t("detail"),Ti.a.t("AdditionalInfo")];a(484);const Pc=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["chip",...t].filter(Boolean).join(" ")};var Rc=e=>{let{children:t,classNameDiv:a,icon:i,onClick:o,deleteIcon:n,iconStyle:r,containerStyle:s,handleOnClick:l,disabled:c,id:d,testId:u}=e;return Object(p.jsxs)("div",{id:d,"data-testid":u,disabled:c,onClick:l,style:s,className:Pc(a),children:[Object(p.jsx)("label",{style:s,className:"chipLabel",children:t}),!0===i&&Object(p.jsx)(mi,{viewBox:"",style:r,name:n,onClick:l,className:"icon"})]})};const Nc=Object(u.a)((e=>({container:{paddingTop:25,paddingBottom:25,alignItems:"flex-start"},border:{borderWidth:0,borderTopWidth:1,borderTopColor:"#EBEBEB",borderStyle:"solid"},rightContent:{display:"flex",flexDirection:"row",minHeight:135},variantsBoxContainer:{display:"flex",flexDirection:"column",minHeight:135,width:"100%"},variantsBox:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",gap:6,borderRadius:4,borderWidth:1,borderColor:"#C6C6C6",padding:10,borderStyle:"solid",maxHeight:90,maxWidth:"100% ",height:"100%",overflowY:"scroll",overflowX:"hidden","@media (max-width: 600px)":{width:"100%",maxWidth:"100% !important"},"&::-webkit-scrollbar":{width:16,padding:4},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:100,borderWidth:5,borderColor:"#fff",borderStyle:"solid"}},label:{fontFamily:"Work Sans, sans-serif",fontSize:14,marginBottom:2},sumary:{fontFamily:"Work Sans, sans-serif",fontSize:12,marginTop:2,fontStyle:"italic",color:"#666666"},deleteIcon:{marginTop:20,marginLeft:15,cursor:"pointer"},icon:{width:"30px !important",height:"30px !important",color:"#666666"},titleContainer:{alignSelf:"center"},titleName:{fontFamily:"Work Sans, sans-serif",fontWeight:500,lineHeight:"18px",paddingLeft:"10px","@media (max-width: 960px)":{paddingLeft:"0px"}},textUnderBox:{display:"flex",justifyContent:"space-between"},addBtn:{alignSelf:"end",fontFamily:"Work Sans, sans-serif",fontSize:13,fontWeight:500,color:"#00A692",cursor:"pointer",textAlign:"end"}})));var Lc=e=>{let{handleSelectVariantChange:t=(()=>null),handleDeleteVariant:a=(()=>null),handleDeleteAttribute:i=(()=>null),handleInputChangeEvent:o=(()=>null),handleOpenAddVariantModal:n=(()=>null),handleOnBlur:r=(()=>null),index:s=0,items:l=[],name:c="",isVarianEmpty:d=0,showDeleteIcon:u,isValidSave:m=!0,disabled:g=!1,attribute:b,isEdition:h}=e;const x=Nc(),f=`${Object(aa.a)()}attributes`,j=s;return h?Object(p.jsx)("div",{children:Object(p.jsxs)(v.a,{container:!0,spacing:2,className:[x.container,s>0&&x.border],children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:3,className:x.titleContainer,children:Object(p.jsx)(cn.a,{className:x.titleName,children:rl(c)})}),Object(p.jsxs)(v.a,{item:!0,xs:12,md:9,className:x.rightContent,children:[Object(p.jsxs)("div",{className:x.variantsBoxContainer,children:[Object(p.jsx)(cn.a,{className:x.label,children:Ti.a.t("attributesVariants")}),Object(p.jsx)("div",{className:x.variantsBox,children:l.length>0&&(null===l||void 0===l?void 0:l.map(((e,t)=>{const i=t;if(e&&null!==(null===e||void 0===e?void 0:e.item)){const{name:o,active:n,inUse:r}=e;return Object(p.jsx)(Rc,{classNameDiv:"1"===n||1===r?"success":"outlined",containerStyle:{cursor:"pointer"},handleOnClick:()=>a({variantIndex:i,attributeIndex:j}),children:rl(o)},t+"list")}return null})))}),Object(p.jsxs)("div",{className:x.textUnderBox,children:[Object(p.jsx)(cn.a,{className:x.sumary,children:Ti.a.t("variantsSummaryEdition")}),l.length<ts&&Object(p.jsx)(cn.a,{className:x.addBtn,onClick:()=>n({attribute:b,attributeIndex:j}),children:Ti.a.t("addVariant")})]})]}),u&&Object(p.jsx)("div",{onClick:()=>i(s),className:x.deleteIcon,children:Object(p.jsx)(mi,{viewBox:"",width:30,height:30,name:"close",className:x.icon})})]})]})}):Object(p.jsxs)(v.a,{container:!0,spacing:2,className:[x.container,s>0&&x.border],children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(ul,{initValue:rl(c),filter:"active=true",type:"searchSelectPrimary",label:Ti.a.t("attribute"),url:f,showSelectInfo:!0,placeholderL
1abel:Ti.a.t("charactersToSearch"),onChange:e=>t({value:e,index:s}),handleInputChangeEvent:e=>o({event:e,index:s}),optionName:!0,error:d===s||!m&&""===c,errorMsg:Ti.a.t("requiredField"),clearSearchText:l.length<=0,onBlur:e=>r({event:e,index:s}),index:s,disabled:g})}),Object(p.jsxs)(v.a,{item:!0,xs:12,md:6,className:x.rightContent,children:[Object(p.jsxs)("div",{className:x.variantsBoxContainer,children:[Object(p.jsx)(cn.a,{className:x.label,children:Ti.a.t("attributesVariants")}),Object(p.jsx)("div",{className:x.variantsBox,children:null===l||void 0===l?void 0:l.map(((e,t)=>{const{name:i,active:o}=e,n=t;return null!==e.item?Object(p.jsx)(Rc,{disabled:g,classNameDiv:"1"===o?"success":"outlined",containerStyle:{cursor:"pointer"},handleOnClick:()=>a({variantIndex:n,attributeIndex:j}),children:rl(i)},t+"list"):null}))}),Object(p.jsx)(cn.a,{className:x.sumary,children:Ti.a.t("variantsSummary")})]}),u&&Object(p.jsx)("div",{disabled:g,onClick:()=>i(s),className:x.deleteIcon,children:Object(p.jsx)(mi,{viewBox:"",width:30,height:30,name:"close",className:x.icon})})]})]})},kc=a.p+"static/media/errorIllustrate.b10a70b4.svg";var Bc=e=>{let t,a,{userCountry:i,noSearchResults:o,isButtonHidden:n}=e;if("cl"===i)t={img:On,title:o?"No se han encontrado resultados":"Todav\xeda no agregaste ning\xfan atributo",text:o?"Lo sentimos, no se encontraron resultados para su b\xfasqueda. Por favor, intente con diferentes criterios de b\xfasqueda.":"",textButton:o||n?null:"A\xf1adir nuevo atributo"},a={img:kc,title:"Ha ocurrido un error",text:"Lo sentimos, ha ocurrido un error. No se ha podido cargar el listado. Por favor intenta de nuevo m\xe1s tarde."};else t={img:On,title:o?"No se han encontrado resultados":"Todav\xeda no agregaste ning\xfan atributo",text:o?"Lo sentimos, no se encontraron resultados para su b\xfasqueda. Por favor, intent\xe1 con diferentes criterios de b\xfasqueda.":"",textButton:o||n?null:"A\xf1adir nuevo atributo"},a={img:kc,title:"Ha ocurrido un error",text:"Lo sentimos, ha ocurrido un error. No se ha podido cargar el listado. Por favor intent\xe1 de nuevo m\xe1s tarde."};return[t,a]};const Dc=Object(u.a)((e=>({container:{display:"flex",justifyContent:"center",alignItems:"center","@media (max-width: 600px)":{flexDirection:"column",justifyContent:"center"}},text:{fontSize:"14px",color:"#131313",fontFamily:"Work Sans",fontWeight:400,marginBottom:15,textAlign:"left","@media (max-width: 600px)":{textAlign:"center"}},title:{fontSize:"16px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,marginBottom:5,"@media (max-width: 600px)":{textAlign:"center"}},infoContainer:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start","@media (max-width: 600px)":{flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:15}},containerImg:{width:170,minHeight:165,marginRight:20},img:{width:"100%"},containerVertical:{flexDirection:"column",justifyContent:"center",alignItems:"center",width:"500px",gap:20,"@media (max-width: 960px)":{width:"400px"}},textVertical:{fontSize:"14px",color:"#131313",fontFamily:"Work Sans",fontWeight:400,marginBottom:15,textAlign:"center"},titleVertical:{fontSize:"16px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,marginBottom:5,textAlign:"center"}})));var Fc=function(e){let{img:t="",altImg:a="",title:i="",text:o="",textButton:n="",handleClick:r=(()=>null),testId:s="",containerStyle:l={},isVertical:c=!1}=e;const d=Dc();return c?Object(p.jsxs)(v.a,{style:l,"data-testid":s,container:!0,columns:{sm:12},display:"flex",className:d.containerVertical,children:[Object(p.jsx)(v.a,{className:d.containerImgVertical,children:Object(p.jsx)(y.a,{className:d.imgVertical,component:"img",alt:a,src:t})}),Object(p.jsxs)(v.a,{item:!0,xs:12,md:8,className:d.infoContainerVertical,children:[Boolean(i)&&Object(p.jsx)(cn.a,{variant:"h6",className:d.titleVertical,children:i}),Boolean(o)&&Object(p.jsx)(cn.a,{className:d.textVertical,children:o}),Boolean(n)&&Boolean(r)&&Object(p.jsx)(v.a,{children:Object(p.jsx)(si,{onClick:r,type:"secondary",children:n})})]})]}):Object(p.jsxs)(v.a,{style:l,"data-testid":s,container:!0,columns:{sm:12},display:"flex",className:d.container,children:[Object(p.jsx)(v.a,{className:d.containerImg,children:Object(p.jsx)(y.a,{className:d.imgV,component:"img",alt:a,src:t})}),Object(p.jsxs)(v.a,{item:!0,xs:12,md:8,className:d.infoContainer,children:[Boolean(i)&&Object(p.jsx)(cn.a,{variant:"h6",className:d.title,children:i}),Boolean(o)&&Object(p.jsx)(cn.a,{className:d.text,children:o}),Boolean(n)&&Boolean(r)&&Object(p.jsx)(v.a,{children:Object(p.jsx)(si,{onClick:r,type:"secondary",children:n})})]})]})};const Mc=Object(u.a)((e=>({containerBtn:{justifyContent:"flex-end"}})));var Vc=e=>{let{handleSelectVariantChange:t=(()=>null),handleDeleteVariant:a=(()=>null),handleDeleteAttribute:i=(()=>null),handleInputChangeEvent:o=(()=>null),handleOnBlur:n=(()=>null),handleOpenConfirmEditionModal:r=(()=>null),handleOpenAddVariantModal:s=(()=>null),disabled:l=!1,attributes:c=[],isVarianEmpty:d=0,userCountry:u="",attributesList:m=[],isValidSave:g=!0,clearSearchText:b,hideDeleteButton:h=!1,isEdition:x=!1,isModalOpen:f=!1,disabledApplyChanges:j=!0,isLoadingStepValidation:A=!1}=e;const[C,y]=Bc({userCountry:u,noSearchResults:null,isButtonHidden:!0}),O=Mc();return Object(p.jsxs)(v.a,{style:{marginTop:20},children:[((null===c||void 0===c?void 0:c.length)>0||x)&&m.map(((e,r)=>Object(p.jsx)(Lc,{handleSelectVariantChange:t,handleDeleteVariant:a,handleDeleteAttribute:i,handleInputChangeEvent:o,handleOpenAddVariantModal:s,clearSearchText:b,attributesList:m,isVarianEmpty:d,isModalOpen:f,handleOnBlur:n,...e,attribute:e,index:r,isEdition:x,isValidSave:g,disabled:l,showDeleteIcon:((null===m||void 0===m?void 0:m.length)>1||(null===m||void 0===m?void 0:m.length)>1&&0===r)&&!h},r))),0===(null===m||void 0===m?void 0:m.length)&&!x&&Object(p.jsx)(Fc,{containerStyle:{paddingTop:"5%",paddingBottom:"5%",maxWidth:"80%",margin:"0 auto"},testId:"empty-state",textButton:null,...C}),x&&Object(p.jsx)(v.a,{container:!0,className:O.containerBtn,children:Object(p.jsx)("div",{children:Object(p.jsx)(si,{loading:A,disabled:j,type:"primary",onClick:r,children:Ti.a.t("applyChanges")}
1)})})]})};const Wc=Object(u.a)((e=>({container:{borderWidth:0,borderBottomWidth:1,borderBottomColor:"#EBEBEB",borderStyle:"solid",paddingBottom:50,marginBottom:25,marginTop:30,"@media (max-width: 600px)":{paddingBottom:"20px",justifyContent:"center",alignItems:"center"}},addNewButton:{"@media (max-width: 460px)":{width:"100%"},"& button":{display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center"}},addExitButton:{marginLeft:10,"@media (max-width: 460px)":{marginLeft:"0px",width:"100%",paddingTop:"10px",textAlign:"center"},"& button":{display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center"}},tootip:{maxWidth:300}})));var Hc=e=>{let{handleAddNewAttributeClick:t=(()=>null),handleAddExistAttributeClick:a=(()=>null),disabledAddNew:o=!1,disabledAddExist:n=!1,type:r="P"}=e;const[s,l]=Object(i.useState)(!1),c=Wc();return Object(p.jsxs)(v.a,{container:!0,xs:12,className:c.container,children:[Object(p.jsx)(v.a,{className:c.addNewButton,item:!0,children:Object(p.jsx)(cr.a,{title:`Cada ${"P"===r?"Producto":"Servicio"} admite solo 2 atributos`,className:c.tootip,"aria-label":"Tooltip",placement:"bottom",arrow:!0,open:o&&s,onOpen:()=>l(!0),onClose:()=>l(!1),children:Object(p.jsx)("button",{disabled:o,onClick:()=>t(),className:"buttonmedium tertiary button",children:Ti.a.t("addNewAttribute")})})}),Object(p.jsx)(v.a,{className:c.addExitButton,item:!0,children:Object(p.jsx)(si,{disabled:n,style:{justifyContent:"center"},medium:!0,onClick:()=>a(),type:"secondary",children:Ti.a.t("addExitAttribute")})})]})};const Uc=Object(u.a)((e=>({containerInput:{paddingRight:"10px","@media (max-width: 560px)":{paddingRight:0}}})));var _c=e=>{var t;let{index:a=0,variant:i={},validatedVariant:o=!1,page:n=0,handleInputVariant:r=(()=>null),handleInputDescription:s=(()=>null),variants:l=[],realIndex:c=0,validatedLastItemName:d=!0}=e;const u=Uc(),m=!o&&0===a&&1===n||l.length-1===c&&!d&&""===(null===(t=l[l.length-1].name)||void 0===t?void 0:t.trim());return Object(p.jsxs)(v.a,{container:!0,children:[Object(p.jsx)(v.a,{item:!0,xs:5,sm:4,style:{paddingRight:"10px",paddingLeft:"10px"},children:Object(p.jsx)(mr,{placeholder:Ti.a.t("name"),disabledMinHeight:!0,types:""+(m?"inputError":"inputPrimary"),errorMsg:`${m?Ti.a.t("requiredField"):""}`,showError:!0,onChange:e=>r(e,a),value:rl(l[c].name||""),maxLength:"50"})}),Object(p.jsx)(v.a,{item:!0,xs:7,sm:8,className:u.containerInput,children:Object(p.jsx)(mr,{disabledMinHeight:!0,onChange:e=>s(e,a),value:rl(l[c].description||""),maxLength:"2400"})})]})};const zc=Object(u.a)((e=>({divStyle:{opacity:1},clearIcn:{width:"15px",height:"18px"},pagination:{display:"flex",justifyContent:"center"},itemContainer:{minWidth:"450px"}})));var qc=e=>{let{variant:t={},index:a=0,page:i=1,hideDeleteVariant:o=!1,validatedVariant:n=!1,handleInputVariant:r=(()=>null),handleInputDescription:s=(()=>null),removeRow:l=(()=>null),variants:c=[],realIndex:d=0,validatedLastItemName:u=!0}=e;const m=zc();return Object(p.jsx)("div",{display:"flex",children:Object(p.jsxs)(v.a,{container:!0,className:m.itemContainer,children:[Object(p.jsx)(v.a,{item:!0,xs:12,children:Object(p.jsx)(N.a,{className:m.divStyle,style:{marginTop:"10px",marginBottom:"5px"}})}),Object(p.jsx)(v.a,{item:!0,xs:11,children:Object(p.jsx)(_c,{index:a,variant:t,validatedVariant:n,page:i,handleInputVariant:r,handleInputDescription:s,variants:c,realIndex:d,validatedLastItemName:u})}),!o&&Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(wi.a,{disableRipple:!0,style:{backgroundColor:"transparent",padding:"0 10px",display:"flex",alignItems:"center",height:"45px"},onClick:()=>l(a),children:Object(p.jsx)(ni.a,{name:"clear",viewBox:"",className:m.clearIcn})})})]})},a)};const Gc={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:380,minHeight:340,bgcolor:"background.paper",borderRadius:3,py:4,px:2},Yc=Object(u.a)((e=>({text:{fontSize:"14px",color:"#131313",fontFamily:"Work Sans",fontWeight:400,textAlign:"center"},title:{fontSize:"17px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textAlign:"center"},containerImg:{display:"flex",justifyContent:"center",marginBottom:20,minHeight:110},containerBtn:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:25,paddingBottom:15,width:"100%"},itemBtn:{width:"auto"},container:{display:"flex",justifyContent:"center"},gridText:{marginTop:15}})));var Kc=e=>{let{children:t,title:a="",img:i="",altImg:o="",showBtn:n=!1,open:r=!1,disabled:s,handleClose:l=(()=>null),handleAcceptClick:c=(()=>null),isLoadingButton:d=!1,buttonText:u="",closeButtonType:m,nextButtonType:g,nextButtonIcon:b="",nextButtonIconStyle:h={},closeButtonIcon:x="",closeButtonText:f="",closeButtonStyle:j={},buttonIconStyle:A={},modalContainerStyle:C={},id:O,testId:S}=e;const E=Yc(),I=e=>S?`${S}-${e}
1`:void 0;return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(w.a,{open:r,onClose:l,children:Object(p.jsxs)(y.a,{style:C,sx:Gc,"data-testid":S,children:[Object(p.jsxs)(v.a,{container:!0,display:"flex",justifyContent:"center",children:[Boolean(i)&&Object(p.jsx)(v.a,{item:!0,xs:12,className:E.containerImg,children:Object(p.jsx)(y.a,{component:"img",alt:o,src:i})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{variant:"h6",className:E.title,children:a})}),t&&Object(p.jsx)(v.a,{item:!0,className:E.gridText,children:Object(p.jsx)(cn.a,{className:E.text,children:t})})]}),2===n&&Object(p.jsxs)(v.a,{container:!0,className:E.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,className:E.itemBtn,children:Object(p.jsx)(si,{type:m||"secondary",open:r,onClick:l,showIcon:""!==x,iconType:x,iconViewBox:"0 0 20 20",iconStyle:A,containerStyle:j,testId:I("cancel-button"),children:f||Ti.a.t("cancel")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:10},children:Object(p.jsx)(si,{disabled:s,loading:d,onClick:()=>c(O),testId:I("confirm-button"),type:g||"primary",showIcon:""!==b,iconType:b,iconViewBox:"0 0 20 20",iconStyle:h,children:u})})]}),1===n&&Object(p.jsx)(v.a,{container:!0,className:E.containerBtn,children:Object(p.jsx)(v.a,{item:!0,className:E.itemBtn,children:Object(p.jsx)(si,{type:m||"primary",open:r,onClick:l,showIcon:""!==x,iconType:x,iconViewBox:"0 0 20 20",iconStyle:A,containerStyle:j,testId:I("close-button"),children:f||Ti.a.t("close")})})})]})})})},Xc=a.p+"static/media/errorModal.27ab7872.svg",Zc=a.p+"static/media/warningModal.cfea1b82.svg";var Qc=e=>{let{isVisibleConfirmEditionModal:t=!1,isVisibleConfirmDeleteModal:a=!1,loadingCreation:i=!1,isVisibleErrorModal:o=!1,handleCloseModifyAttributeModal:n=(()=>null),handleModifyAttribute:r=(()=>null),handleCloseErrorModal:s=(()=>null)}=e;const l={title:"Ha ocurrido un error",children:"Lo sentimos, ha ocurrido un error. No se pudo completar la acci\xf3n. Por favor intenta de nuevo m\xe1s tarde.",img:Xc},c=t?{title:"Est\xe1s por modificar un atributo",children:"Al proceder se modificar\xe1 en cada producto o servicios d\xf3nde se encuentre configurado.",img:Zc,buttonText:"Modificar atributo"}:{title:"Est\xe1s por eliminar un atributo",children:"Al proceder se modificar\xe1 en cada producto o servicios d\xf3nde se encuentre configurado.",img:Zc,buttonText:"Eliminar atributo"};return t||a?Object(p.jsx)(Kc,{handleClose:n,handleAcceptClick:r,showBtn:2,open:t||a,...c,isLoadingButton:i}):o?Object(p.jsx)(Kc,{open:o,handleClose:s,showBtn:1,closeButtonIcon:"",...l}):null};const Jc=Object(u.a)((e=>({containerTitle:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"10px",paddingBottom:"6px",paddingLeft:"24px",paddingRight:"14px"},title:{fontSize:"17px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},containerInfo:{paddingLeft:"40px",paddingRight:"40px",flex:1,"@media (max-width: 560px)":{paddingRight:"10px",paddingLeft:"16px"}},containerBtn:{display:"flex",justifyContent:"flex-end",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"24px",paddingRight:"24px",width:"100%"},divStyle:{opacity:1},inputArterisk:{color:"#f32465",fontWeight:"400"},label:{fontWeight:"500",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},stateColor:{color:"#007868"},labelTextV:{fontWeight:"600",fontSize:"14px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif",paddingLeft:"10px"},labelTextD:{fontWeight:"600",fontSize:"14px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText:{paddingTop:"24px",paddingBottom:"10px"},containerInput:{paddingRight:"10px","@media (max-width: 560px)":{paddingRight:0}}})));var $c=e=>{let{active:t=!1,description:a="",name:i="",hideStatus:o=!1,validatedName:n=!1,handleInputName:r=(()=>null),handleIAttributeDescriptionChange:s=(()=>null),handleInputStatusChange:l=(()=>null)}=e;const c=Jc();return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{item:!0,xs:12,style:{paddingTop:"30px"},children:Object(p.jsx)(mr,{placeholder:Ti.a.t("writeName"),required:!0,types:""+(n?"inputPrimary":"inputError"),errorMsg:`${n?"":Ti.a.t("requiredField")}`,showError:!0,onChange:r,value:rl(i),maxLength:"50",children:Object(p.jsx)("span",{className:c.label,children:Ti.a.t("attributeName")}
1)})}),Object(p.jsx)(v.a,{item:!0,xs:12,style:{paddingTop:"5px"},children:Object(p.jsx)(mr,{placeholder:Ti.a.t("writeDescription"),onChange:s,value:rl(a),maxLength:"2400",children:Object(p.jsx)("span",{className:c.label,children:Ti.a.t("attributeDescription")})})}),!o&&Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:c.label,children:[Object(p.jsx)("span",{className:c.inputArterisk,children:"* "})," ",Ti.a.t("state")]})}),!o&&Object(p.jsx)(v.a,{children:Object(p.jsx)(fr,{label:!0,onChange:l,checked:t,children:Object(p.jsx)("span",{className:c.stateColor,children:Ti.a.t("active")})})}),Object(p.jsxs)(v.a,{container:!0,className:c.containerText,children:[Object(p.jsx)(v.a,{item:!0,xs:5,sm:4,children:Object(p.jsxs)(cn.a,{className:c.labelTextV,children:[Object(p.jsx)("span",{className:c.inputArterisk,children:"*"})," ",Ti.a.t("variant")]})}),Object(p.jsx)(v.a,{item:!0,xs:7,sm:8,children:Object(p.jsx)(cn.a,{className:c.labelTextD,children:Ti.a.t("description")})})]})]})},ed=a(90),td=a.n(ed);const ad=[{code:"MAX_VARINATS_ITEM_QUANTITY"}
1],id=[{code:"MAX_DUPLICATED_VARIANTS"}],od=[{name:"",description:""}],nd={name:"",description:"",active:!0},rd=(e,t)=>10*(e-1)+t,sd={display:"flex",flexDirection:"column",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"640px",height:"570px",maxHeight:"85vh",bgcolor:"background.paper",borderRadius:1.5,"@media (max-width: 665px)":{width:"95%",height:"95%"}},ld=Object(u.a)((e=>({containerTitle:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"10px",paddingBottom:"6px",paddingLeft:"24px",paddingRight:"14px"},title:{fontSize:"17px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},containerInfo:{paddingLeft:"40px",paddingRight:"40px",flex:1,"@media (max-width: 560px)":{paddingRight:"10px",paddingLeft:"16px"}},containerBtn:{display:"flex",justifyContent:"flex-end",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"24px",paddingRight:"24px",width:"100%"},divStyle:{opacity:1},closeIcn:{fontSize:"21px"},addIcn:{fontSize:"14px"},addBtn:{fontFamily:"Work Sans",fontStyle:"normal",fontWeight:"400",fontSize:"14px",color:"#007868",cursor:"pointer",display:"inline-block"},deleteIcn:{width:"10px",paddingBottom:"6px",marginRight:"5px"},deleteBtn:{fontFamily:"Work Sans",fontStyle:"normal",fontWeight:"400",fontSize:"14px",color:"#F32465",cursor:"pointer",display:"inline-block",marginTop:"15px"},scrollBar:{overflowX:"hidden",overflowY:"scroll",marginRight:"8px",marginTop:"0px",paddingBottom:"60px",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"0.4em",height:"0.4em"},"&::-webkit-scrollbar-track":{background:"#fff",height:"400px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:"#aaa"}},errorContainer:{paddingTop:10,paddingLeft:30,paddingRight:30},variantsContainer:{"@media (max-width: 665px)":{overflowX:"scroll"}}})));var cd=e=>{let{openModal:t=!1,isAttributeEdition:a=null,loadingCreation:o=!1,errorCreation:n=!1,successDelete:r=!1,successCreation:s=!1,hideStatus:l=!1,createOrUpdateAttribute:c=(()=>null),handleClose:d=(()=>null),deleteAttribute:u=(()=>null)}=e;const m=ld(),[g,b]=Object(i.useState)(1),[h,x]=Object(i.useState)(nd),{name:f,description:j,active:A}=h,[C,O]=Object(i.useState)(od),[S,E]=Object(i.useState)(!0),[I,T]=Object(i.useState)(!0),[P,R]=Object(i.useState)(!1),[L,k]=Object(i.useState)(!1),[B,D]=Object(i.useState)(!1),[F,M]=Object(i.useState)(!1),[V,W]=Object(i.useState)(!1),[H,U]=Object(i.useState)(!1),[_,z]=Object(i.useState)(!0),q=td.a.cloneDeep(null===a||void 0===a?void 0:a.items),G=td.a.cloneDeep({active:null===a||void 0===a?void 0:a.active,description:null===a||void 0===a?void 0:a.description,name:null===a||void 0===a?void 0:a.name});Object(i.useEffect)((()=>{if(a){const{active:e,description:t,name:i}=a,o={active:e,description:t,name:i},n=h,r=a.items,s=C,l=Object.keys(o).some((e=>o[e]!==n[e])),c=sl(r,s,"name"),d=sl(r,s,"description");U(l||!c||!d)}}),[h,C]),Object(i.useEffect)((()=>{if(!t){O([{name:"",description:""}]),x(nd),E(!0),T(!0)}}),[t]),Object(i.useEffect)((()=>{if(n){var e;const t=!n||!n.error||"ATTRIBUTE_EXISTS"!==(null===n||void 0===n||null===(e=n.error[0])||void 0===e?void 0:e.code);W(t),D(!1),M(!1),null!==a&&(x(td.a.cloneDeep({active:null===a||void 0===a?void 0:a.active,description:null===a||void 0===a?void 0:a.description,name:null===a||void 0===a?void 0:a.name})),O(td.a.cloneDeep(null===a||void 0===a?void 0:a.items)))}}),[n]),Object(i.useEffect)((()=>{s&&(D(!1),d({save:!0}),Z())}),[s]),Object(i.useEffect)((()=>{r&&(M(!1),d({save:!0}),Z())}),[r]),Object(i.useEffect)((()=>{if(null!==a)O(q),x(G);else{O([{name:"",description:""}]),x(nd),E(!0),T(!0)}}),[]),Object(i.useEffect)((()=>{null!==n?(k(!1),R(!0)):(k(!1),R(!1))}),[n]);const Y=()=>{Q(),d({save:!1})},K=()=>{var e;const t=C.length>0&&""!==(null===(e=C[C.length-1].name)||void 0===e?void 0:e.trim());if(z(t),C.length<ts&&t){const e={name:"",description:""};O([...C,e]);const t=((e,t)=>{const a=Math.floor(e/t)+1;return a<5?a:5})(C.length,10);b(t||1),z(!0)}else C.length>=ts&&(k(ad),R(!0))};Object(i.useEffect)((()=>
1{if(C.length>ts?(k(ad),R(!0)):!n&&C.length<=ts&&(k(!1),R(!1)),C.length>0&&J({filteredVariants:C}),0===C.length){O([{name:"",description:""}])}}),[C]);const X=e=>{b(e)},Z=()=>{x(nd),O(od),E(!0),T(!0)},Q=()=>{O([od]),Z()},J=e=>{let{filteredVariants:t}=e;const a=nl(t,(e=>e.name));return a&&(k(id),R(!0)),a},$=()=>{const e=C.filter((e=>e.name)),t={name:f,description:j,active:A?1:0,items:e},i=JSON.stringify(t,null,2);c(a?{attribute:i,id:a.id}:{attribute:i})};const ee={validatedVariant:I,removeRow:e=>{const t=rd(g,e),a=C.filter(((e,a)=>a!==t));O(a),a.length<10*(g-1)+1&&b(g-1)},handleInputVariant:(e,t)=>{const a=rd(g,t);0===a&&e.target.value.length>0&&T(!0);let i=[...C];const o=Rr(e.target.value);i[a].name=o,O(i)},handleInputDescription:(e,t)=>{const a=rd(g,t);let i=[...C];i[a].description=e.target.value,O(i)},page:g,validatedLastItemName:_},te=()=>{R(!1)},ae=()=>{M(!0)},ie={name:f,active:A,description:j,validatedName:S,hideStatus:l,handleInputName:function(e){const t=Rr(e.target.value);x({...h,name:t||null}),e.target.value.length>0&&E(!0)},handleIAttributeDescriptionChange:function(e){x({...h,description:e.target.value||null})},handleInputStatusChange:function(e){x({...h,active:e.target.checked})}},oe={isVisibleConfirmEditionModal:B,isVisibleConfirmDeleteModal:F,loadingCreation:o,isVisibleErrorModal:V,handleCloseErrorModal:()=>{W(!1)},handleCloseModifyAttributeModal:()=>{D(!1),M(!1)},handleModifyAttribute:()=>{F?u({id:a.id}):$()}},ne=C.slice(10*(g-1),10*g);return B||F?Object(p.jsx)(Qc,{...oe}):B?void 0:Object(p.jsx)(w.a,{open:t,onClose:d,children:Object(p.jsxs)(y.a,{sx:sd,children:[Object(p.jsxs)(v.a,{container:!0,className:m.containerTitle,children:[Object(p.jsx)(cn.a,{variant:"h6",className:m.title,children:Ti.a.t("attributeConfig")}),Object(p.jsx)(wi.a,{onClick:d,disableRipple:!0,style:{backgroundColor:"transparent"},children:Object(p.jsx)(ni.a,{name:"close",className:m.closeIcn})})]}),Object(p.jsx)(N.a,{className:m.divStyle}),P&&Object(p.jsx)("div",{className:m.errorContainer,children:Object(p.jsx)(os,{errors:n||L,onCloseAlert:te})}),Object(p.jsxs)(v.a,{className:[m.containerInfo,m.scrollBar],children:[Object(p.jsx)($c,{...ie}),Object(p.jsx)("div",{className:m.variantsContainer,children:ne.map(((e,t)=>{const a=rd(g,t);return Object(i.createElement)(qc,{...ee,variant:e,index:t,key:t+"variant",variants:C,realIndex:a,hideDeleteVariant:C.length<=1&&0===a})}))}),Object(p.jsx)(N.a,{className:m.divStyle,style:{marginTop:"10px"}}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsxs)(cn.a,{className:m.addBtn,style:{paddingTop:"10px",paddingBottom:"12px"},onClick:K,children:[Object(p.jsx)(ni.a,{name:"plus",className:m.addIcn})," "," ",Ti.a.t("addNewVariant")]})}),Boolean(a)&&Object(p.jsx)(v.a,{item:!0,children:Object(p.jsxs)(cn.a,{className:m.deleteBtn,style:{paddingTop:"10px",paddingBottom:"12px"},onClick:ae,children:[Object(p.jsx)(ni.a,{name:"clear",className:m.deleteIcn})," "," ",Ti.a.t("deleteAttribute")]})}),C.length>10&&Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:g,totalPages:Math.ceil(C.length/10),onPageChange:X})})]}),Object(p.jsx)(N.a,{className:m.divStyle}),Object(p.jsxs)(v.a,{container:!0,className:m.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",open:t,onClick:Y,children:Ti.a.t("cancel")})}),Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{type:"primary",open:t,loading:o,onClick:()=>(()=>{E((null===f||void 0===f?void 0:f.length)>0),T(C.some((e=>""!==e.name)));const e=C.filter((e=>e.name)),t=J({filteredVariants:e}),i=f&&f.length>0&&C.some((e=>""!==e.name))&&C.length>0&&!t;i&&Boolean(a)?H?D(!0):d({save:!1}):i&&Boolean(!a)&&$()})(),children:Ti.a.t("save")})})]})]})})},dd=a.p+"static/media/xIconModal.9e54fb1d.svg";
1const ud=[{code:"MAX_DUPLICATED_VARIANTS"}],pd={display:"flex",flexDirection:"column",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"601px",minHeight:"274px",bgcolor:"background.paper",borderRadius:"5px","@media (max-width: 665px)":{width:"90%"}},md=Object(u.a)((e=>({containerTitle:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"10px",paddingBottom:"6px",paddingLeft:"24px",paddingRight:"14px"},title:{fontSize:"16px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},divStyle:{opacity:1},closeIcn:{fontSize:"24px"},containerInfo:{paddingLeft:"40px",paddingRight:"40px",flex:1,"@media (max-width: 560px)":{paddingRight:"10px",paddingLeft:"16px"}},input:{alignSelf:"center"},containerBtn:{display:"flex",justifyContent:"flex-end",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"24px",paddingRight:"24px",width:"100%"},errorContainer:{width:"100%",paddingTop:10}})));var gd=e=>{let{isOpen:t,onClose:a,attributeToEdit:o,errorCreation:n=!1,loadingCreation:r,attributeCreated:s,createOrUpdateAttribute:l=(()=>null)}=e;const[c,d]=Object(i.useState)(!0),[u,m]=Object(i.useState)(!1),[g,b]=Object(i.useState)(!1),[h,x]=Object(i.useState)(""),f=md();Object(i.useEffect)((()=>{if(null!==s&&!n&&!r){const{id:e,description:t,name:a,active:i}=o.attribute,n={id:e,description:t,name:a,active:"1",items:[...o.attribute.items,{name:h,active:"1"}]};x(""),j(n,o.attributeIndex)}}),[s,n,r]);const j=(e,t)=>{a(e,t),A(),b(!1),m(!1)};const A=()=>{d(!0),x("")};Object(i.useEffect)((()=>{m(!!n)}),[n]);return Object(p.jsx)(p.Fragment,{children:t&&Object(p.jsx)(ci.a,{open:t,onClose:j,children:Object(p.jsxs)(di.a,{sx:pd,children:[Object(p.jsxs)(v.a,{container:!0,className:f.containerTitle,children:[Object(p.jsx)(cn.a,{variant:"h6",className:f.title,children:Ti.a.t("addVariant")}),Object(p.jsx)(wi.a,{onClick:j,disableRipple:!0,style:{backgroundColor:"transparent"},children:Object(p.jsx)(mi,{name:"close",className:f.closeIcn})})]}),Object(p.jsx)(N.a,{className:f.divStyle}),Object(p.jsxs)(v.a,{container:!0,className:f.containerInfo,children:[u&&Object(p.jsx)("div",{className:f.errorContainer,children:Object(p.jsx)(os,{errors:n||g,onCloseAlert:()=>{m(!1)}})}),Object(p.jsx)(v.a,{item:!0,xs:12,className:f.input,children:Object(p.jsx)(mr,{placeholder:Ti.a.t("insertName"),required:!0,types:""+(c?"inputPrimary":"inputError"),errorMsg:`${c?"":Ti.a.t("requiredField")}`,showError:!0,maxLength:50,value:h,onChange:e=>{const t=e.target.value.trim().toLowerCase();[...o.attribute.items].some((e=>{var a;return(null===e||void 0===e||null===(a=e.name)||void 0===a?void 0:a.toLowerCase())===t}))?(b(ud),m(!0)):(b([]),m(!1)),x(e.target.value)},children:Ti.a.t("variant")})})]}),Object(p.jsx)(N.a,{className:f.divStyle}),Object(p.jsxs)(v.a,{container:!0,className:f.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)("button",{className:"buttonmedium secondary button",open:t,onClick:j,children:Ti.a.t("close")})}),Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{disabled:r,loading:r,type:"primary",onClick:function(){if(""===h.trim())d(!1);else{const e=h.trim().toLowerCase(),t=[...o.attribute.items.map((e=>({name:e.name,id:e.id,active:"1",description:e.description}))),{name:h,active:"1"}],a=[...o.attribute.items].some((t=>t.name.toLowerCase()===e)),{id:i,description:n,name:r,active:s}=o.attribute,c={id:i,description:n,name:r,active:"1",items:t};a?(b(ud),m(!0)):(d(!0),l({attribute:c,id:i}))}},children:Ti.a.t("save")})})]})]})})})};const bd={code:"MAX_DUPLICATED_ATTRIBUTES"},hd={code:"MIN_ATTRIBUTES_ITEMS"},xd=[{code:"DEFAULT_ERROR"}],fd={name:"",description:"",items:[]};var vd=e=>{let{steps:t=[],type:a="",title:o="",isEdition:n=!1,isLoadingStepValidation:r=!1,stepErrors:s=[],keepSamePriceForVariants:l=!1,useFinalPriceWithIva:d="",validateStep:u=(()=>null),lastStep:m=(()=>null),validateStepEdition:g=(()=>null)}=e;const{datosFormulario:b,actualizarDatosFormulario:h}=Object(i.useContext)(rr),{userData:x}=Object(i.useContext)(Qa),[f,v]=Object(i.useState)(b.attributesList||[]),[j,A]=Object(i.useState)(!1),[C,y]=Object(i.useState)(!0),[O,S]=Object(i.useState)(!1),[E,I]=Object(i.useState)(!1),[w,T]=Object(i.useState)(!1),[P,R]=Object(i.useState)(!0),[N,L]=Object(i.useState)(!1),[k,B]=Object(i.useState)(!1),[D,F]=Object(i.useState)([]),[M,V]=Object(i.useState)(null),[W,H]=Object(i.useState)(),[U,_]=Object(i.useState)(!1),[z,q]=Object(i.useState)(b.isApplyChangesDisabled),{dataAttributes:G,loadingAttributes:Y,errorAttributes:K,loadingCreation:X,errorCreation:Z,successCreation:Q,attributeCreated:J,createOrUpdateAttribute:$,setAttributeCreated:ee,resetAttributeCreated:te}=as({searchText:null,searchAttribute:null,open:O,state:null,page:null,searchPage:null,makeRequest:!n}),ae=null===x||void 0===x?void 0:x.country,ie=()=>{h({...b,variant:[],modifiedVariants:[]})};Object(i.useEffect)((()=>{s.length>0&&(F([xd]),L(!0))}),[s]);Object(i.useEffect)((()=>{f.length<=0&&n&&(v(b.attributesList),h({...b,editionAttributesList:b.attributesList}))}),[n]),Object(i.useEffect)((()=>{(Q||Z)&&("P"===b.option&&Object(c.b)("Prod con Variante Step 2 - Guardar Nvo Atributo",{exito:null!==Q}),"S"===b.option&&Object(c.b)("Serv con Variante Step 2 - Nvo Atributo",{exito:null!==Q}))}
1),[Q,Z]),Object(i.useEffect)((()=>{if(!n){const e=null===f||void 0===f?void 0:f.findIndex((e=>null===e||""===e.name));if(null!==J&&f.length<2&&-1===e)v([{...J},...f]),ee(null);else if(null!==J&&f.length<2&&-1!==e){let t=[...f];t[e]=J,v(t),ee(null)}}}),[J]),Object(i.useEffect)((()=>{if(n&&null!==J&&null!==W&&W>=0){var e,t,a,i,o;let n=[...f];const r=(null===(e=n[W])||void 0===e?void 0:e.items[(null===(t=n[W])||void 0===t||null===(a=t.items)||void 0===a?void 0:a.length)-1||0])||[],s=J.items.find((e=>{var t,a;return(null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.toLowerCase())===(null===r||void 0===r||null===(a=r.name)||void 0===a?void 0:a.toLowerCase())}));n[W].items[(null===(i=n[W])||void 0===i||null===(o=i.items)||void 0===o?void 0:o.length)-1]=s,v(n),te(),H(null),q(!1),h({...b,isApplyChangesDisabled:!1,attributesList:n})}}),[J,W]),Object(i.useEffect)((()=>{var e;n||h({...b,attributesList:f});const t=2===f.length;y(t),A(t),!1!==w&&""!==(null===(e=f[w])||void 0===e?void 0:e.name)&&T(!1),D.length>0&&"MIN_ATTRIBUTES_ITEMS"===D[0].code&&f.length>0&&(L(!1),F([])),ne()}),[f]),Object(i.useEffect)((()=>{const e=2===f.length;y(G.length<=0||e)}),[G]);const oe=e=>{e&&(F([bd]),L(!0),window.scrollTo({top:0,left:0,behavior:"smooth"}))},ne=()=>{const e=nl(f,(e=>null===e||void 0===e?void 0:e.name));return oe(e),e},re=()=>{I(!1)},se=()=>{_(!1)},le=()=>l?Us(b,d):{},ce=()=>{let e,t=[];return f.forEach((e=>{const a=e.id;e.items.forEach((e=>{if("1"===e.active||1===e.inUse){let i;i=n?{id:a,item:e.id,inUse:1===e.inUse}:{id:a,item:e.id},t.push(i)}}))})),e=n?{id:b.id,code:b.code,attribute:t,type:a,iva:b.iva,ivaRateId:b.ivaRateId,status:b.status,...le()}:{code:b.code,attribute:t,type:a,iva:b.iva,ivaRateId:b.ivaRateId,status:b.status,...le()},e},de=()=>{F([]);const e=f.some((e=>null===e||""===e.name)),t=ne();if(e||t)R(!e);else if(!e&&0===D.length&&f.length>0){const e=ce();h({...b,attribute:e.attribute}),"P"===b.option&&Object(c.b)("Prod con Variante Step 2 - Siguiente"),"S"===b.option&&Object(c.b)("Serv con Variante Step 2 - Siguiente"),u({data:e,step:2})}else 0===f.length&&(L(!0),window.scrollTo({top:0,left:0,behavior:"smooth"}),F([hd]))},ue=()=>{L(!1)},pe={handleAddNewAttributeClick:()=>{S(!0),"P"===b.option&&Object(c.b)("Prod con Variante Step 2 - Nvo Atributo"),"S"===b.option&&Object(c.b)("Serv con Variante Step 2 - Nvo Atributo")},handleAddExistAttributeClick:()=>{if(!r){const e=0,t=f.some((e=>null===e||""===e.name)),a=null===f||void 0===f?void 0:f.findIndex((e=>null===e||""===e.name));0===f.length||f.length<2&&!t?(v([{...fd},...f]),B(e)):T(a),n||ie()}"P"===b.option&&Object(c.b)("Prod con Variante Step 2 - Atributo Existente"),"S"===b.option&&Object(c.b)("Serv con Variante Step 2 - Atributo Existente")},disabledAddNew:j,disabledAddExist:C,type:a},me={openModal:O,isAttributeEdition:null,loadingCreation:X,errorCreation:Z,createOrUpdateAttribute:$,handleClose:()=>{S(!1)},successCreation:Q},ge={attributes:G,attributesList:f,loadingAttributes:Y,errorAttributes:K,userCountry:ae,isVarianEmpty:w,isValidSave:P,hideDeleteButton:n,isLoadingStepValidation:r,disabled:r,disabledApplyChanges:z,handleSelectVariantChange:e=>{let{value:t,index:a}=e;if(!r){const e=!t||!t.id,i=!e&&f.some(((e,i)=>a!==i&&(null===e||void 0===e?void 0:e.id)===(null===t||void 0===t?void 0:t.id)));oe(i&&!e),L(i&&!e),i?B(a):(R(!0),B(!1),v((e=>[...e.slice(0,a),t,...e.slice(a+1)]))),n||ie()}},handleDeleteVariant:e=>{let{variantIndex:t,attributeIndex:a}=e;if(!r){const e="1"===f[a].items[t].active,i=1===f[a].items[t].inUse,o=f[a].items.filter((e=>"1"===e.active||1===e.inUse));n||ie(),1===o.length&&(e||i)?I(!0):n?((e,t,a,i)=>{i?I(!0):(v((i=>{const o=[...i];return o[t].items[e].active=a?"0":"1",o})),q(!1),h({...b,isApplyChangesDisabled:!1}))})(t,a,e,i):v((i=>{const o=[...i];return o[a].items[t].active=e?"0":"1",o}))}},handleDeleteAttribute:e=>{r||(n||ie(),v((t=>[...t.slice(0,e),...t.slice(e+1)])))},handleInputChangeEvent:e=>{var t;let{event:a,index:i}=e;const o=(null===(t=f[i])||void 0===t?void 0:t.name)||"",r=a.target.value;if((null===o||void 0===o?void 0:o.length)>(null===r||void 0===r?void 0:r.length)){const e=[...f];e[i]=fd,v(e)}n||ie()},handleOpenConfirmEditionModal:()=>{_(!0)},handleOpenAddVariantModal:e=>{let{attribute:t,attributeIndex:a}=e;r||(V({attribute:t,attributeIndex:a}),S(!0))},clearSearchText:k,handleOnBlur:e=>{var t;let{event:a,index:i}=e;""===(null===(t=f[i])||void 0===t?void 0:t.name)&&B(i)}},be={isOpen:O,onClose:(e,t)=>{if(null!==e){const a=[...f],i=a.findIndex((t=>t.id===e.id));a[i]=e,v(a),V(null),H(t)}S(!1)},attributeToEdit:M,loadingCreation:X,errorCreation:Z,attributeCreated:J,createOrUpdateAttribute:$},he={title:"No se puede quitar la \xfaltima variante",children:"Verifique que el atributo cuente con al menos una variante.",img:dd,buttonText:"Modificar atributo",showBtn:1,open:E,closeButtonType:"secondary",closeButtonIcon:"arrowLeft",closeButtonText:Ti.a.t("back")},xe={title:"No se pueden modificar las variantes existentes",children:"Solo se pueden modificar las variantes nuevas.",img:dd,showBtn:1,open:E,closeButtonType:"secondary",closeButtonIcon:"arrowLeft",closeButtonText:Ti.a.t("
1close"),handleClose:re},fe={title:"\xbfEst\xe1s seguro de aplicar los cambios?",children:"Al aplicar los cambios de atributos y variantes estos no se podr\xe1n deshacer y cualquier modificaci\xf3n realizada recientemente en las variantes se perder\xe1.",img:Zc,buttonText:Ti.a.t("accept"),showBtn:2,open:U,closeButtonType:"secondary",handleAcceptClick:()=>{const e=ce();h({...b,attribute:e.attribute,generateNewVariants:!0}),g({data:e,step:2}),se()},handleClose:se},{infoCardAttributes:ve,infoCardAttributesEdition:je}=Ll({userCountry:ae});return n?Object(p.jsxs)(p.Fragment,{children:[N&&Object(p.jsx)(os,{errors:D,onCloseAlert:ue}),Object(p.jsx)(Nl,{...je}),Object(p.jsx)(Vc,{isEdition:!0,...ge}),Object(p.jsx)(Kc,{handleClose:se,...fe}),Object(p.jsx)(Kc,{...xe}),Boolean(O)&&Object(p.jsx)(gd,{...be})]}):Object(p.jsxs)(rs,{title:o,handleSecondaryButtonClick:m,handlePrimaryButtonClick:de,secondarybuttonText:Ti.a.t("back"),primarybuttonText:Ti.a.t("next"),showButtons:!0,showErrorAlert:N||s.length>0,errors:D||s,handleCloseAlert:ue,primaryLoading:r,children:[Object(p.jsx)(Gr,{steps:t,activeStep:1}),Object(p.jsx)(Nl,{containerStyle:{marginTop:20},...ve}),Object(p.jsx)(Hc,{...pe}),Object(p.jsx)(Vc,{isEdition:!1,...ge}),Boolean(O)&&Object(p.jsx)(cd,{hideStatus:!0,...me}),Object(p.jsx)(Kc,{handleClose:re,...he})]})};var jd=function(e){let{locked:t=!1,children:a}=e;return t?Object(p.jsx)(cr.a,{title:Ti.a.t("uniquePriceLockedTooltip"),"aria-label":"Tooltip",placement:"top",arrow:!0,children:a}):a};var Ad=function(e){let{style:t}=e;return Object(p.jsx)("svg",{"data-testid":"lock-icon",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",style:{position:"absolute",right:"12px",to
1p:"50%",transform:"translateY(-50%)",pointerEvents:"none",...t},children:Object(p.jsx)("path",{d:"M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5Zm-3 5a3 3 0 1 1 6 0v3H9V7Zm3 7a1.5 1.5 0 0 1 .75 2.8V18a.75.75 0 0 1-1.5 0v-1.2A1.5 1.5 0 0 1 12 14Z",fill:ui.a.grey500})})};const Cd=Object(u.a)((e=>({cells:{borderBottom:"1px solid white !important",padding:"10px !important"},textCell:{fontSize:"14px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:"#777777"},inputContainer:{display:"flex",alignItems:"center"},price:{fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313",fontFamily:"Work Sans, sans-serif"}})));var yd=e=>{let{index:t=0,page:a=1,ivaCondition:o="",dataDefaultIva:n={},userDecimal:r=0,userOptions:s={},variant:l={},jwtContext:c={},multiCurrency:d=!1,currencySelected:u="",isEdition:m=!1,disabled:g=!1,keepSamePriceForVariants:b=!1,isDuplicatedCodeError:h=!1,errorDuplicateIndex:x=0,fixIndexPerPage:f=(()=>{}),handleInputCodeChange:v=(()=>null),handleInputPrice:j=(()=>null),handleEditVariant:C=(()=>null),onSelectIvaInputChange:y=(()=>null),handleInputIVAChange:O=(()=>null)}=e;const{name:S,code:E,finalPrice:I,unitPriceValue:w,ivaDataValue:T,iva:P,ivaRateId:R,unitPrice:N,profitability:L,profitabilityValue:k,internalCost:B}=l,[D,F]=Object(i.useState)(!1),[M,V]=Object(i.useState)(E),[W,H]=Object(i.useState)(E),U=Object(i.useRef)(E);Object(i.useEffect)((()=>{E!==U.current&&(V(E),H(E),U.current=E)}),[E]);const _=Cd(),z={ar:{currencyPrice:"$"},cl:{currencyPrice:"CLP"},uy:{currencyPrice:"UYU"},py:{currencyPrice:"Gs"}},q=z[c.country]||z.default,{currencyPrice:G}=q,Y=R&&""!==R&&(null===s||void 0===s?void 0:s.find((e=>e.id===R))),K=m?Y:void 0!==T&&null!==T?T:n,X=L>0,Z=!0===d?(null===u||void 0===u?void 0:u.symbol)||u:G,Q=m?vs(I,r)||vs(0,r):I||vs(0,r),J=K&&K.name||n&&n.name||"",{types:$,errorMsg:ee}=((e,t)=>{const i=(e=>f(a,e))(e);return{types:""+(""===t||h&&x.includes(i)?"inputError":"inputPrimary"),errorMsg:h&&x.includes(i)?Ti.a.t("duplicateCodeError"):`${""!==t?"":Ti.a.t("requiredField")}`}})(t,E);return Object(p.jsxs)(Qs.a,{className:_.rows,children:[Object(p.jsx)(Js.a,{className:_.cells,children:Object(p.jsx)(cn.a,{className:_.textCell,children:S})}),Object(p.jsx)(Js.a,{className:_.cells,children:Object(p.jsx)("div",{className:"inputContainer",children:Object(p.jsx)(cr.a,{title:E,"aria-label":"Tooltip",placement:"top",arrow:!0,open:D,onOpen:()=>F(!0),onClose:()=>F(!1),children:Object(p.jsx)(mr,{showLabel:!0,placeholder:Ti.a.t("
1condSKU2"),types:$,errorMsg:ee,showError:!0,disabledMinHeight:!0,onChange:e=>{const a=e.target.value;V(a),H(a),v(e,a,t),F(!1)},onKeyDown:e=>{const{key:t,target:a}=e,{value:i,selectionStart:o}=a;" "===t&&(0===o||o===i.length&&i.endsWith(" "))&&e.preventDefault()},maxLength:"50",value:W})})})}),Object(p.jsx)(Js.a,{className:_.cells,children:Object(p.jsx)(jd,{locked:b,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)(A.a,{disabled:X||g||b,placeholder:vs(0,r),thousandSeparator:".",decimalSeparator:",",className:"input "+(X||b?"inputPrimaryTwoDisabled":"inputPrimaryTwo"),style:{width:"100%",...b&&{pointerEvents:"none",paddingRight:"32px"}},value:m?vs(w||N,r):w,onChange:e=>j({e:e,index:t,variant:l}),allowNegative:!1,decimalScale:r,onBlur:()=>j({index:t,onBlur:!0,variant:l}),isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e9}}),Object(p.jsx)(ur,{className:"inputIconInsideTop",name:"currency"}),b&&Object(p.jsx)(Ad,{})]})})}),Object(p.jsx)(Js.a,{className:_.cells,children:b?Object(p.jsx)(jd,{locked:!0,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("input",{"data-testid":"locked-iva-box",className:"input inputPrimaryTwoDisabled",style:{width:"100%",paddingLeft:"14px",paddingRight:"32px",pointerEvents:"none"},value:J,disabled:!0,readOnly:!0}),Object(p.jsx)(Ad,{})]})}):Object(p.jsx)("div",{className:_.inputContainer,children:Object(p.jsx)(Pr,{disabledMinHeight:!0,disabledMarginBottom:!0,smallField:!0,smallTopHeight:!0,icon:"percentage",disabled:"MO"===o||g,showIcon:!0,value:K||n,type:"searchSelectPrimary",data:s,onChange:(e,a)=>O({event:e,value:a,index:t,variant:l}),onSelectInputChange:e=>y(e),defaultValue:K})})}),Object(p.jsx)(Js.a,{className:_.cells,children:Object(p.jsxs)("div",{className:_.inputContainer,children:[Object(p.jsx)(cn.a,{className:_.price,children:Z}),Object(p.jsx)(cn.a,{style:{marginLeft:"3px"},className:_.price,children:Q})]})}),Object(p.jsx)(Js.a,{className:`${_.finalCell} ${_.cells}`,children:Object(p.jsx)(Qr.a,{disabled:g,onClick:()=>C({variant:l,index:t}),disableRipple:!0,children:Object(p.jsx)(ni.a,{width:"0px",height:"0px",viewBox:"",className:_.editIcon,name:"edit"})})})]})},Od=a(569);const Sd=Object(u.a)((e=>({firstColumn:{display:"none !important"},titles:{fontSize:"14px",fontWeight:"500",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",paddingBottom:"13px !important"},titlesUnitPrice:{fontSize:"14px",fontWeight:"500",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",paddingRight:"35px","@media (max-width: 1482px)":{paddingRight:"10px"}},addAll:{fontFamily:"Work Sans",fontStyle:"normal",fontWeight:"400",fontSize:"12px",color:"#007868",cursor:"pointer",lineHeight:"16px",marginTop:"5px"}})));var Ed=e=>{let{userDecimal:t=0,userOptions:a={},dataDefaultIva:i={},dataDefault:o={},variants:n=[],page:r=1,jwtContext:s={},currencySelected:l="",currencyPrice:c={},multiCurrency:d=!1,useFinalPriceWithIva:u,keepSamePriceForVariants:m=!1,lastPage:g=1,loadingVariants:b=!1,modifiedVariants:h=[],ivaCondition:x="",isEdition:f=!1,disabled:j=!1,isDuplicatedCodeError:A=!1,errorDuplicateIndex:C=0,REQUIRED_FIELD:y="",setRequiredField:O=!1,requiredFieldAlert:S=!1,fixIndexPerPage:E=(()=>{}),handlePageChange:I=(()=>null),handleInputPrice:w=(()=>null),handleInputIva:T=(()=>null),handleInputCodeChange:P=(()=>null),onSelectIvaInputChange:R=(()=>null),handleInputIVAChange:N=(()=>null),handleEditVariant:L=(()=>null),handleAddAllSamePriceClick:k=(()=>null),handleAddAllSameIvaClick:B=(()=>null),handleCloseRequiredAlert:D=(()=>{})}=e;const F=Sd();return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{children:[Object(p.jsxs)(Ks.a,{style:{marginTop:"20px",marginBottom:"30px"},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}}
1,children:[S&&Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>D(),children:y}),Object(p.jsxs)(Xs.a,{style:{minWidth:"800px",overflowX:"scroll"},children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:F.firstColumn}),Object(p.jsx)(Js.a,{className:F.titles,style:{width:"20%",minWidth:"200px"},children:Ti.a.t("variantName")}),Object(p.jsx)(Js.a,{className:F.titles,style:{width:"20%",minWidth:"200px"},children:Ti.a.t("SKU")}),Object(p.jsx)(Js.a,{className:F.titles,style:{width:"13%",minWidth:"150px"},children:Object(p.jsxs)("div",{className:F.titlesUnitPrice,children:["1"===u?Ti.a.t("unitPrice2"):Ti.a.t("unitPrice"),!m&&1===r&&Object(p.jsx)(cn.a,{onClick:()=>k(),className:F.addAll,children:Ti.a.t("appAll")})]})}),Object(p.jsx)(Js.a,{className:F.titles,style:{width:"13%",minWidth:"150px"},children:Object(p.jsxs)("div",{className:F.titlesIVA,children:[Ti.a.t("IVAPer")," "," ",!m&&1===r&&Object(p.jsx)(cn.a,{className:F.addAll,onClick:()=>B(),children:Ti.a.t("appAll")})]})}),Object(p.jsx)(Js.a,{className:F.titles,style:{width:"13%",minWidth:"150px"},children:"1"===u?Ti.a.t("finalPriceWoIVA"):Ti.a.t("finalPrice")}),Object(p.jsx)(Js.a,{className:F.titles,style:{width:"5%",minWidth:"50px"}})]})}),Object(p.jsx)($s.a,{children:!b&&n.map(((e,n)=>Object(p.jsx)(yd,{index:n,page:r,jwtContext:s,unitPrice:e.unitPrice,handleInputCodeChange:P,isDuplicatedCodeError:A,errorDuplicateIndex:C,handleInputPrice:w,handleInputIva:T,variant:e,dataDefaultIva:i,onSelectIvaInputChange:R,handleInputIVAChange:N,dataDefault:o,userDecimal:t,userOptions:a,handleEditVariant:L,handleAddAllSamePriceClick:k,handleAddAllSameIvaClick:B,currencySelected:l,currencyPrice:c,multiCurrency:d,modifiedVariants:h,ivaCondition:x,isEdition:f,disabled:j,useFinalPriceWithIva:u,keepSamePriceForVariants:m,fixIndexPerPage:E,setRequiredField:O},e.id)))})]})]}),b&&Object(p.jsx)("div",{"data-testid":"loading-indicator",style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:Object(p.jsx)(Od.a,{style:{color:"#00A692"}})}),g>1&&Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:r,totalPages:g,onPageChange:e=>I(e)})})]})})};const Id={ar:{currencyPrice:"$",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}},cl:{currencyPrice:"CLP",tooltipMap:{2:"tooltipIVACl2",5:"tooltipIVACl5",10:"tooltipIVACl10",1:"tooltipIVACl1",500:"tooltipIVACl500",1e3:"tooltipIVACl1000",default:"tooltipIVAClStandar"}},uy:{currencyPrice:"UYU",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}},py:{currencyPrice:"UYU",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}}};const wd=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313",paddingBottom:"25px"},containerForm:{padding:"30px 30px 0px 30px",marginTop:"30px",backgroundColor:"#FFFFFF"},mainContainer:{padding:"0px 10px","@media (max-width: 600px)":{padding:"0px"}},dataContainer:{padding:"0px 10px",fontFamily:"Work Sans, sans-serif","@media (max-width: 600px)":{padding:"0px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerStock:{display:"flex",alignItems:"center",height:"18px",marginBottom:"5px"},tooltipButton:{backgroundColor:"#fff",border:"none",padding:0,marginBottom:"4px"},tooltipButtonIVA:{backgroundColor:"#fff",border:"none",padding:0,marginLeft:"5px"}}))),Td=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),marginBottom:10,"@media (max-width: 600px)":{padding:t.spacing(.1),marginBottom:10}}}));var Pd=function(e){let{jwtContext:t={},dataDefault:a={},dataDefaultIva:o={},userOptions:n={},multiCurrency:r=!1,useFinalPriceWithIva:s=0,userDecimal:l=1,showCurrency:c=!0,showstockSelect:d=!0,preferenceRounding:u=0,ivaCondition:m=0,editionData:g={},validatedFields:b=!1,isEdition:h=!1,priceFieldsLocked:x=!1,currencySelected:f,setTotalPriceData:j=(()=>null)}=e;const[C,y]=Object(i.useState)((null===g||void 0===g?void 0:g.internalCostValue)||""),[O,S]=Object(i.useState)((null===g||void 0===g?void 0:g.minStock)||""),[E,I]=Object(i.useState)((null===g||void 0===g?void 0:g.minStock)||""),[w,T]=Object(i.useState)((null===g||void 0===g?void 0:g.internalCost)||null),[P,R]=Object(i.useState)((null===g||void 0===g?void 0:g.profitabilityValue)||""),[N,L]=Object(i.useState)((null===g||void 0===g?void 0:g.profitability)||null),[,k]=Object(i.useState)(!0),[B,D]=Object(i.useState)(null===g||void 0===g?void 0:g.unitPriceValue),[F,M]=Object(i.useState)(null===g||void 0===g?void 0:g.iva),[V,W]=Object(i.useState)((null===g||void 0===g?void 0:g.ivaRateId)||null),[H,U]=Object(i.useState)(null),[_,z]=Object(i.useState)((null===g||void 0===g?void 0:g.ivaDataValue)||null),[q,G]=Object(i.useState)((null===g||void 0===g?void 0:g.finalPrice)||0),[Y,K]=Object(i.useState)(!0),[,X]=Object(i.useState)((null===g||void 0===g?void 0:g.currencyId)||0),[Z,Q]=Object(i.useState)("No"),[J,$]=Object(i.useState)(!1),[ee,te]=Object(i.useState)((null===g||void 0===g?void 0:g.unitPrice)||0),[ae,ie]=Object(i.useState)(0),[oe,ne]=Object(i.useState)(0),[re,se]=Object(i.useState)(""),[le,ce]=Object(i.useState)(!1),[de,ue]=Object(i.useState)(!1),[pe,me]=Object(i.useState)(0),[ge,be]=Object(i.useState)(0),[he,xe]=Object(i.useState)((null===g||void 0===g?void 0:g.unitPrice)||0),[fe,ve]=Object(i.useState)(null),[je,Ae]=Object(i.useState)((null===g||void 0===g?void 0:g.finalPriceWithoutRounding)||0),Ce=wd(),[ye,Oe]=Object(i.useState)("");function Se(){if(x)return;0===ee&&te(bs(B));const e=vs(0,l),t=void 0!==F&&null!==F?F:void 0!==H&&null!==H?H:_&&void 0!==_.value&&null!==_.value?_.value:0,a=""!==P&&"0"!==P;if(!(h&&!B||h&&g.profitability&&!g.profitabilityValue)){if(0===parseFloat(s))if("Si"===Z)if(null===F){const e=hs(ge||he,o.value);G(vs(e,l))}else{const e=Es(hs(ge||he,t),u);G(vs(e,l))}else{if(!a&&""!==B&&null===F){const e=hs(ee,o.value);G(vs(e,l))}if(!a&&""!==B&&null!==F){if(""!==C&&0===fe){const e=fs(oe,0,t,l),a=bs(vs(e.finalPriceWithoutIVA,l));te(a);const i=Es(e.finalPriceWithIVA,u);return D(vs(e.finalPriceWithoutIVA,l)),G(vs(i,l)),void ve(null)}if(isNaN(ee))return void G(e);const a=hs(ee,t);G(vs(a,l))}if(""===B&&a&&ae>=0&&""===C&&(D(e),G(e)),""!==B&&a&&ae>=0&&""===C){if(isNaN(ee))return D(e),void G(e);const a=fs(ee,ae,t,l),i=Es(a.finalPriceWithIVA,u);D(vs(a.finalPriceWithoutIVA,l)),G(vs(i,l))}if(a||""!==B||G(e),a&&0!==ae&&""!==C&&null===F){const e=fs(oe,ae,o.value,l);D(vs(e.finalPriceWithoutIVA,l)),G(vs(e.finalPriceWithIVA,l))}if(a&&0!==ae&&""!==C&&null!==F){const e=fs(oe,ae,t,l),a=bs(vs(e.finalPriceWithoutIVA,l));te(a);const i=Es(e.finalPriceWithIVA,u);D(vs(e.finalPriceWithoutIVA,l)),G(vs(i,l))}}if(1===parseFloat(s))if("Si"===Z){if(null===F){const e=hs(ge,o.value);D(vs(e,l))}if(null!==F){const e=hs(ge,t),a=Es(e,u);Ae(ws(e,l)),D(vs(a,l))}}else{if(!a&&""!==B&&null===t){const e=xs(ee,o.value);G(vs(e,l))}if(!a&&""!==B&&null!==t){if(""!==C&&0===fe){D(vs(oe,l)),te(oe);const e=xs(ee,t);return G(vs(e,l)),void ve(null)}if(isNaN(ee))return void G(e);const a=xs(ee,t);G(vs(a,l))}if(a&&ae>=0&&""===C&&(xe(e),G(e)),a&&ae>=0&&""===C&&""!==B){const e=Es(ee,u);Ae(ws(ee,l));const a=fs(ee,ae,t,l);D(vs(e,l));const i=vs(a.finalPriceWithoutIVA,l);G(i)}if(""===P&&""===he&&G(e),a&&0!==ae&&""!==C&&null===t){const e=fs(oe,ae,o.value,l);D(vs(e.finalPriceWithIVA,l)),G(vs(e.finalPriceWithoutIVA,l))}if(a&&0!==ae&&""!==C&&null!==t){const e=fs(oe,ae,t,l),a=Es(e.finalPriceWithIVA,u);Ae(ws(e.finalPriceWithIVA,l)),D(vs(a,l)),G(vs(e.finalPriceWithoutIVA,l))}}}}Object(i.useEffect)((()=>{null===he&&xe(0),M(null===g||void 0===g?void 0:g.iva)}),[]),Object(i.useEffect)((()=>{h&&(D(vs(g.unitPrice,l)),te(g.unitPrice),I(g.minStock),W(g.ivaRateId),h&&g.internalCost&&!g.internalCostValue&&y(vs(g.internalCost,l)),h&&g.profitability&&!g.profitabilityValue&&(R(vs(g.profitability,l)),Se()),Se())}),[h,g.ivaRateId]),Object(i.useEffect)((()=>{ee&&"undefined"!==ee&&"NaN"!==ee||te(0)}
1),[ee]),Object(i.useEffect)((()=>{if(x)return void j({props:{minStock:O,minStockValue:E}});j({props:{unitPrice:he||0,unitPriceNumber:ee,unitPriceValue:B||0,internalCost:w,internalCostNumber:oe,internalCostTotal:pe,internalCostValue:C,finalPrice:q,profitability:N,profitabilityNumber:ae,profitabilityValue:P,finalPriceWithoutRounding:je,autoPrice:J,iva:F,ivaRateId:V,ivaValue:H,ivaDataValue:_,automaticPrice:Z,customProfitability:fe,minStock:O,minStockValue:E}})}),[he,ee,B,w,oe,pe,C,q,N,ae,P,je,J,F,V,H,_,Z,fe,je,O]),Object(i.useEffect)((()=>{"Si"===(null===g||void 0===g?void 0:g.automaticPrice)&&Q("Si"),"No"===(null===g||void 0===g?void 0:g.automaticPrice)&&Q("No")}),[]),Object(i.useEffect)((()=>{if("Si"===Z)$(!0),R(""),y(vs(pe,l)),me(pe),be(ge),ne(pe),1===parseFloat(s)&&(G(vs(ge,l)),Se()),0===parseFloat(s)&&(te(ge),D(vs(ge,l)),Se());else if($(!1),isNaN(ee)&&B){const e=B.toString().replace(/\./g,"").replace(/,/g,"."),t=parseFloat(e);te(t)}const e=P.toString().replace(/\./g,"").replace(/,/g,"."),i=parseFloat(e),o=C.toString().replace(/\./g,"").replace(/,/g,"."),n=parseFloat(o);ie(i),ne(n);const r=Id[t.country]||Id.default,{currencyPrice:d,tooltipMap:p}=r;se(d);const m=p[u]||p.default;Oe(Ti.a.t(m)),null===a||f||X(a.id),!1!==c||null===a||f||X(a.id),xe(""!==B?bs(B):null),L(""!==P?bs(P):null),T(""!==C?bs(C):null)}),[a,C,t.country,P,B,Z,B]),Object(i.useEffect)((()=>{Se()}),[F,B,P,C,ae]);const Ee=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e9};Object(i.useEffect)((()=>{x||C!==vs(0,l)&&"0"!==C||(R(""),L(null))}),[C]),Object(i.useEffect)((()=>{"NaN"!==B||h||D("")}),[B]),Object(i.useEffect)((()=>{0===he&&0===w&&G(vs(0,l))}),[he,w]),Object(i.useEffect)((()=>{"NaN"===q&&G("0")}),[q]);const Ie="Si"===Z||""!==P&&"0"!==P||w>0&&N>0,we=x?{pointerEvents:"none"}:void 0,Te=V&&""!==V&&(null===n||void 0===n?void 0:n.find((e=>e.id===V))),Pe=h?Te:void 0!==_&&null!==_?_:o,Re=Object(p.jsx)(Pr,{icon:"percentage",label:Ti.a.t("IVAPer"),disabled:"MO"===m||x,required:!0,showIcon:!0,value:Pe||o,type:"searchSelectPrimary",data:n,onChange:function(e,t){var a,i,o;if(null===t)return M(null===(a=n[0])||void 0===a?void 0:a.value),z(n[0]),U(null===(i=n[0])||void 0===i?void 0:i.value),void W(null===(o=n[0])||void 0===o?void 0:o.id);M(null===t||void 0===t?void 0:t.value),z(t),W(null===t||void 0===t?void 0:t.id),Se(),null!==t&&(U(t.value),W(null===t||void 0===t?void 0:t.id),Se())},onBlur:Se,onSelectInputChange:e=>{var t,a,i;if(""===e.target.value)return M(null===(t=n[0])||void 0===t?void 0:t.value),z(n[0]),U(null===(a=n[0])||void 0===a?void 0:a.value),void W(null===(i=n[0])||void 0===i?void 0:i.id);if(n.some((t=>t.name===e.target.value))){const t=n.find((t=>t.name===e.target.value));null!==t&&(M(null===t||void 0===t?void 0:t.value),z(t),U(null===t||void 0===t?void 0:t.value),W(null===t||void 0===t?void 0:t.id))}},defaultValue:Pe,isUsedInModal:!0});return Object(p.jsxs)(v.a,{className:Ce.dataContainer,children:[Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:!0===d&&Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(Td,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("div",{className:Ce.containerStock,children:[Object(p.jsxs)("label",{className:"inputlabel",style:{marginRight:"5px"},children:[" ",Ti.a.t("alertStock")]}),Object(p.jsx)(cr.a,{title:Ti.a.t("tooltipMinStock"),"aria-label":"Tooltip",placement:"top",arrow:!0,open:le,onOpen:()=>ce(!0),onClose:()=>ce(!1),children:Object(p.jsx)("button",{className:Ce.tooltipButton,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>ce(!le)})})})]}),Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:"input inputPrimary",onChange:e=>{const t=e.target.value;I(t),S(bs(t||"0"))},allowNegative:!1,decimalScale:0,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=1e4},value:void 0!==E&&null!==E&&E}),Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#131313"},children:Ti.a.t("alertMinStock")})]})})})}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Td,{children:Object(p.jsx)(jd,{locked:x,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("internalCost2")}),Object(p.jsx)(A.a,{disabled:"Si"===Z||x,style:we,thousandSeparator:".",decimalSeparator:",",onChange:function(e){""===e.target.value&&(R(""),L(0)),y(e.target.value),ne(bs(e.target.value))},allowNegative:!1,decimalScale:l,isAllowed:Ee,onBlur:()=>{C>0&&y(Is(C,l))},value:void 0!==C&&null!==C?C:"Si"===Z?pe:void 0,className:"input  "+("Si"===Z||x?"inputDisabled":"inputIcons")}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"})]})})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(Td,{children:Object(p.jsx)(jd,{locked:x,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("
1costEffec")}),Object(p.jsx)(A.a,{disabled:"Si"===Z||0===w||!C||x,style:we,thousandSeparator:".",decimalSeparator:",",maxLength:"11",className:"input  "+("Si"===Z||0===w||!C||x?"inputDisabled":"inputIcons"),onChange:function(e){R(e.target.value),L(bs(e.target.value)),""===e.target.value&&ve(0)},onBlur:function(e){P>0&&R(Is(P,l)),""===e.target.value||null===e.target.value||0===e.target.value?k(!0):k(!1)},allowNegative:!1,decimalScale:l,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e6},value:void 0!==P&&null!==P&&P}),Object(p.jsx)(ur,{className:"inputIconInside",name:"percentage"})]})})})})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Td,{children:Object(p.jsx)(jd,{locked:x,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ","1"===s?Ti.a.t("unitPrice2"):Ti.a.t("unitPrice"),"1"===s&&!x&&Object(p.jsx)(cr.a,{title:ye,"aria-label":"Tooltip",placement:"top",arrow:!0,open:de,onOpen:()=>ue(!0),onClose:()=>ue(!1),children:Object(p.jsx)("button",{className:Ce.tooltipButtonIVA,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>ue(!de)})})})]}),Object(p.jsx)(A.a,{disabled:Ie||x,style:we,thousandSeparator:".",decimalSeparator:",",className:`input  \n                          ${(!b||!1===Y)&&""===B&&"inputIconsError"} \n                          ${Ie||x?"inputDisabled":"inputIcons"}`,onChange:function(e){let t=e.target.value;D(t),te(bs(t))},onBlur:function(){D(Is(B,l)),""!==B&&K(!0),Se()},allowNegative:!1,decimalScale:l,isAllowed:Ee,value:B,placeholder:vs(0,l)}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"}),b||!1===Y||""!==B?Object(p.jsx)("p",{className:"inputTextMsg"}):Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#f32465"},children:Ti.a.t("requiredField")})]})})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(Td,{children:x?Object(p.jsx)(jd,{locked:!0,children:Object(p.jsx)("div",{children:Object(p.jsx)("div",{style:{pointerEvents:"none"},children:Re})})}):Re})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsxs)(Td,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{style:{marginBottom:"3px"},className:Ce.label,children:"1"===s?Ti.a.t("finalPriceWoIVA"):Ti.a.t("finalPrice")})}),Object(p.jsxs)(v.a,{className:Ce.containerText1,children:[Object(p.jsxs)(cn.a,{className:Ce.text1,children:[!0===r&&((null===f||void 0===f?void 0:f.symbol)||f),!1===r&&re]}),Object(p.jsx)(cn.a,{style:{marginLeft:"3px"},className:Ce.text1,children:q})]})]})})]})]})};const Rd=Object(u.a)((e=>({dataContainer:{padding:"0px 10px",fontFamily:"Work Sans, sans-serif","@media (max-width: 600px)":{padding:"0px"}},inputContainer:{padding:e.spacing(1),marginBottom:5,"@media (max-width: 600px)":{padding:e.spacing(.1),marginBottom:10}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"}})));var Nd=e=>{let{name:t="",description:a="",status:i="",inputTitle:o="",code:n="",barcode:r="",oemCode:s="",providerCode:l="",userCountry:c="",showCodeb:d=!0,showDescription:u=!0,parentState:m=!1,handleInputChange:g=(()=>null),handleInputStatusChange:b=(()=>null)}=e;const h=Rd();return Object(p.jsxs)(v.a,{className:h.dataContainer,children:[Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{className:h.inputContainer,item:!0,xs:12,md:5,children:Object(p.jsx)(mr,{placeholder:o,types:""+(""!==t?"inputPrimary":"inputError"),errorMsg:`${""!==t?"":Ti.a.t("requiredField")}`,showError:!0,required:!0,onChange:e=>g(e,"name"),maxLength:"500",value:t,children:Ti.a.t("title")})}),Object(p.jsx)(v.a,{className:h.inputContainer,item:!0,xs:12,md:5,children:!1!==u&&Object(p.jsx)(mr,{types:"inputPrimary",onChange:e=>g(e,"description"),maxLength:"500",value:a,children:Ti.a.t("description")})}),Object(p.jsxs)(v.a,{className:h.inputContainer,xs:12,md:2,children:[Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:h.label,children:[Object(p.jsx)("span",{className:h.inputArterisk,children:"* "})," ",Ti.a.t("state")]})}),Object(p.jsx)(v.a,{children:Object(p.jsx)(fr,{disabled:"I"===m,label:!0,onChange:b,checked:"I"!==m&&"A"===i,children:Ti.a.t("active")})})]})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{className:h.inputContainer,item:!0,xs:12,md:6,children:Object(p.jsx)(mr,{placeholder:Ti.a.t("
1condSKU2"),required:!0,types:""+(""!==n?"inputPrimary":"inputError"),errorMsg:`${""!==n?"":Ti.a.t("requiredField")}`,showError:!0,onChange:e=>g(e,"code"),maxLength:"50",value:n,children:Ti.a.t("condSKU")})}),Object(p.jsx)(v.a,{className:h.inputContainer,xs:12,md:6,children:!1!==d&&Object(p.jsx)(mr,{types:"inputPrimary",onChange:e=>g(e,"barcode"),maxLength:"128",value:r,children:Ti.a.t("barcode")})}),Object(p.jsx)(v.a,{className:h.inputContainer,item:!0,xs:12,md:6,children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:e=>g(e,"oemCode"),maxLength:"50",value:s,children:Ti.a.t("CodOEM")})}),Object(p.jsx)(v.a,{className:h.inputContainer,item:!0,xs:12,md:6,children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:e=>g(e,"providerCode"),maxLength:"50",value:l,children:Ti.a.t("providerCode")})})]})]})};const Ld=[{code:"SKU_DUPLICATED_VARIANT"}],kd=e=>""===e,Bd={name:"",description:"",code:"",barcode:"",currencyId:"",minStock:"",minStockValue:"",internalCost:"",profitability:"",unitPrice:"0",oemCode:"",providerCode:"",profitabilityValue:"",unitPriceValue:"",ivaDataValue:"",ivaRateId:"",finalPrice:"",status:"",observations:"",visible:"Si"},Dd=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),marginBottom:10,"@media (max-width: 600px)":{padding:t.spacing(.1),marginBottom:10}}})),Fd={display:"flex",flexDirection:"column",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",maxWidth:"939px",height:"666px",maxHeight:"90vh",bgcolor:"background.paper",borderRadius:1.5,"@media (max-width: 665px)":{width:"95%",height:"95%"}},Md=Object(u.a)((e=>({containerTitle:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"10px",paddingBottom:"6px",paddingLeft:"24px",paddingRight:"14px"},title:{fontSize:"17px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},containerInfo:{paddingTop:20,paddingLeft:"40px",paddingRight:"40px",flex:1,"@media (max-width: 560px)":{paddingRight:"10px",paddingLeft:"16px"}},containerBtn:{display:"flex",justifyContent:"flex-end",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"24px",paddingRight:"24px",width:"100%"},divStyle:{opacity:1},closeIcn:{fontSize:"21px"},addIcn:{fontSize:"14px"},addBtn:{fontFamily:"Work Sans",fontStyle:"normal",fontWeight:"400",fontSize:"14px",color:"#007868",cursor:"pointer",display:"inline-block"},deleteIcn:{width:"10px",paddingBottom:"6px",marginRight:"5px"},deleteBtn:{fontFamily:"Work Sans",fontStyle:"normal",fontWeight:"400",fontSize:"14px",color:"#F32465",cursor:"pointer",display:"inline-block",marginTop:"15px"},scrollBar:{overflowX:"hidden",overflowY:"scroll",marginRight:"8px",marginTop:"0px",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"0.4em",height:"0.4em"},"&::-webkit-scrollbar-track":{background:"#fff",height:"400px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:"#aaa"}},errorContainer:{paddingTop:10,paddingLeft:30,paddingRight:30},variantsContainer:{"@media (max-width: 665px)":{overflowX:"scroll"}},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",height:"92px",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px",resize:" none",fontSize:"14px",fontFamily:"Work Sans, sans-serif"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},inputArterisk:{color:"#f32465"},padding:{paddingLeft:"10px","@media (max-width: 560px)":{paddingLeft:"0px"}}})));var Vd=e=>{let{openModal:t=!1,ivaCondition:a="",useFinalPriceWithIva:o=1,keepSamePriceForVariants:n=!1,dataDefault:r={},dataDefaultIva:s={},preferenceRounding:l=0,userDecimal:c=0,userOptions:d={},jwtContext:u={},multiCurrency:m=!1,variantToEdit:g={},variantToEditIndex:b=0,isEdition:h=!1,type:x="",variantId:f=null,saveLoading:j,postProductsError:A,postServicesError:C,sendForm:O=(()=>null),handleCloseModal:S=(()=>null),changeModifiedVariants:E=(()=>null)}=e;const I=Md(),[T,P]=Object(i.useState)(Bd),[R,L]=Object(i.useState)(!0),[k,B]=Object(i.useState)(!1),[D,F]=Object(i.useState)(!1),{datosFormulario:M,actualizarDatosFormulario:V}=Object(i.useContext)(rr),W=u.country;Object(i.useEffect)((()=>{var e,t;((null===A||void 0===A||null===(e=A.error)||void 0===e?void 0:e.length)>0||(null===C||void 0===C||null===(t=C.error)||void 0===t?void 0:t.length)>0)&&B(!0)}),[A,C]),Object(i.useEffect)((()=>{g&&P(g)}),[g]);const H=(e,t)=>{if("code"===t&&e.target.value!==M.variant[b].code){const t=M.variant.some((t=>(null===t||void 0===t?void 0:t.code.toLowerCase().trim())===e.target.value.toLowerCase().trim()))||(null===M||void 0===M?void 0:M.code.toLowerCase().trim())===e.target.value.toLowerCase().trim(),a=M.modifiedVariants.some((t=>(null===t||void 0===t?void 0:t.code.toLowerCase().trim())===e.target.value.toLowerCase().trim()));F(t||a),B(t||a)}const a=Rr(e.target.value);P({...T,[t]:a})};Object(i.useEffect)((()=>{P(g?{...g,visible:!1!==g.visible}:Bd)}),[g]);const U={userCountry:W,handleInputChange:H,handleInputStatusChange:function(e){!1===e.target.checked&&P({...T,status:"I"}),!0===e.target.checked&&P({...T,status:"A"})},validatedFields:R,isVisibleErrorAlert:k};return Object(p.jsx)(w.a,{onClose:()=>S(),open:t,children:Object(p.jsxs)(y.a,{sx:Fd,children:[Object(p.jsxs)(v.a,{container:!0,className:I.containerTitle,children:[Object(p.jsx)(cn.a,{variant:"h6",className:I.title,children:Ti.a.t("variantsConfig")}),Object(p.jsx)(wi.a,{onClick:()=>S(),disableRipple:!0,style:{backgroundColor:"transparent"},children:Object(p.jsx)(ni.a,{name:"close",className:I.closeIcn})})]}),Object(p.jsx)(N.a,{className:I.divStyle}),k&&Object(p.jsx)("div",{className:I.errorContainer,children:Object(p.jsx)(os,{errors:Ld||(null===A||void 0===A?void 0:A.error)||(null===C||void 0===C?void 0:C.error),onCloseAlert:()=>{B(!1)}})}),Object(p.jsxs)(v.a,{className:[I.containerInfo,I.scrollBar],children:[Object(p.jsx)(Nd,{...U,...T,parentState:M.status}),Object(p.jsx)(Pd,{datosFormulario:M,jwtContext:u,dataDefault:r,dataDefaultIva:s,userOptions:d,useFinalPriceWithIva:o,priceFieldsLocked:n,userDecimal:c,multiCurrency:m,showstockSelect:"P"===x,showCurrency:!0,preferenceRounding:l,setTotalPriceData:e=>{let{props:t}=e;P({...T,...t,...void 0!==t.unitPriceValue&&{unitPriceValue:0===t.unitPriceValue?"":t.unitPriceValue}})},ivaCondition:a,validatedFields:R,editionData:T,isEdition:h,currencySelected:M.currencySelected},n?`locked-${T.id||"new"}`:void 0),Object(p.jsx)(v.a,{item:!0,xs:12,md:12,className:I.padding,children:Object(p.jsxs)(Dd,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:I.label,style:{marginBottom:"5px"},children:Ti.a.t("observations")})}),Object(p.jsx)(v.a,{children:Object(p.jsx)("textarea",{className:I.textArea,onChange:e=>H(e,"observations"),maxLength:500,value:T.observations})})]})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(Dd,{children:Object(p.jsx)(v.a,{className:I.padding,children:Object(p.jsx)(ps,{RadioButtonLabel1:"Si",RadioButtonLabel2:"No",defaultValue:T.visible?"Si":"No",iconType:"helpIcon",label:Ti.a.t("visibleSalesMod"),type:"RadioButtonPrimary",onChange:function(e){const t="Si"===e.target.value;P({...T,visible:t})}})})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(Dd,{children:Object(p.jsx)(v.a,{className:I.padding,children:Object(p.jsxs)(cn.a,{className:I.footerForm,style:{marginBottom:"35px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:I.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})]}),Object(p.jsx)(N.a,{className:I.divStyle}),Object(p.jsxs)(v.a,{container:!0,className:I.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",open:t,onClick:()=>
1S(),children:Ti.a.t("cancel")})}),Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{type:"primary",open:t,onClick:()=>{const e=kd(T.name)||kd(T.code);if(L(!e),D&&B(!0),!e&&!D){let e=[...M.variant];const t=h&&"edit"in g?{edit:!0}:null;e[b]={...T,...t};const a=E({variant:T});V({...M,modifiedVariants:a,variant:e,unitPriceForAll:g.unitPrice===T.unitPrice&&M.unitPriceForAll,ivaForAll:g.iva===T.iva&&M.ivaForAll}),null!==f?setTimeout((()=>{O(e)}),500):S()}},loading:j,children:null===f?Ti.a.t("save"):Ti.a.t("apply")})})]})]})})};const Wd={container:{backgroundColor:ui.a.secondaryLightSolid,borderRadius:"8px",padding:"15px 12px 5px 12px",marginTop:"20px"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:"600",fontSize:"14px",lineHeight:"18px",color:ui.a.secondary400,display:"flex",alignItems:"center",padding:"0px 8px"},tooltipButton:{backgroundColor:"transparent",border:"none",padding:0,marginLeft:"5px"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:ui.a.textPrimary,fontFamily:"Work Sans, sans-serif"},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:ui.a.textPrimary,fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"}},Hd=Object(T.a)(hr.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1),marginBottom:10}}})),Ud=e=>{if(void 0===e||null===e||""===e)return null;const t=bs(e);return isNaN(t)?null:t};var _d=function(e){let{useFinalPriceWithIva:t=0,userDecimal:a=1,preferenceRounding:o=0,ivaCondition:n="",userOptions:r=[],dataDefaultIva:s={},multiCurrency:l=!1,currencySelected:c=null,jwtContext:d={},initialValues:u={},onUniquePriceChange:m=(()=>null)}=e;const[g,b]=Object(i.useState)(u.internalCostValue||""),[h,x]=Object(i.useState)(u.profitabilityValue||""),[f,v]=Object(i.useState)(u.unitPriceValue||""),[j,C]=Object(i.useState)(u.ivaDataValue||null),[O,E]=Object(i.useState)(!1),I=e=>void 0!==e&&null!==e?e:s&&void 0!==s.value?s:r[0],[w,T]=Object(i.useState)((()=>{const e=I(u.ivaDataValue||null);return vs(Bs({useFinalPriceWithIva:t,internalCost:Ud(u.internalCostValue),profitability:Ud(u.profitabilityValue),unitPrice:Ud(u.unitPriceValue),iva:e&&void 0!==e.value?e.value:null,userDecimal:a,preferenceRounding:o}).finalPrice,a)})),P=Object(i.useRef)(m);Object(i.useEffect)((()=>{P.current=m}),[m]);const R=Object(i.useRef)(null),N=Object(i.useRef)(null),L=()=>{if(R.current&&(clearTimeout(R.current),R.current=null),null!==N.current){const e=N.current;N.current=null,P.current(e)}},k=e=>{N.current=e,R.current&&clearTimeout(R.current),R.current=setTimeout(L,300)};Object(i.useEffect)((()=>()=>{R.current&&clearTimeout(R.current)}),[]);const B=function(){let{costValue:e=g,profitValue:i=h,priceValue:n=f,ivaOption:r=j}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=I(r),l=s&&void 0!==s.value?s.value:null,c=Ud(e),d=Ud(i),u=Bs({useFinalPriceWithIva:t,internalCost:c,profitability:d,unitPrice:Ud(n),iva:l,userDecimal:a,preferenceRounding:o}),p=u.isAutoCalculated?vs(u.unitPrice,a):n;v(p),T(vs(u.finalPrice,a)),k({internalCost:c,profitability:d,unitPrice:u.unitPrice,iva:l,ivaRateId:s&&void 0!==s.id?s.id:null,ivaDataValue:s,finalPrice:u.finalPrice,finalPriceWithoutRounding:u.finalPriceWithoutRounding,internalCostValue:e,profitabilityValue:i,unitPriceValue:p})},D=""!==h&&"0"!==h,F=Ud(g),M=null===F||0===F,V="MO"===n,W=Ws(d.country),H=void 0!==j&&null!==j?j:s;return Object(p.jsxs)(y.a,{sx:Wd.container,children:[Object(p.jsxs)(S.a,{sx:Wd.title,children:[Ti.a.t("uniquePriceBlockTitle"),Object(p.jsx)(cr.a,{title:Ti.a.t("uniquePriceBlockTooltip"),"aria-label":"Tooltip",placement:"top",arrow:!0,open:O,onOpen:()=>E(!0),onClose:()=>E(!1),children:Object(p.jsx)("button",{type:"button",style:Wd.tooltipButton,onClick:()=>E(!O),children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon"})})})]}),Object(p.jsxs)(hr.a,{container:!0,children:[Object(p.jsx)(hr.a,{item:!0,xs:12,md:3,children:Object(p.jsx)(Hd,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("internalCost2")}),Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",onChange:e=>{const t=e.target.value;b(t);const a=Ud(t);let i=h;null!==a&&0!==a||(i="",x("")),B({costValue:t,profitValue:i})},onBlur:()=>{const e=Ud(g);
1if(null!==e&&0!==e){const e=Is(g,a);b(e),B({costValue:e})}L()},allowNegative:!1,decimalScale:a,isAllowed:Fs,value:g,className:"input inputIcons"}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"})]})})}),Object(p.jsx)(hr.a,{item:!0,xs:12,md:2,children:Object(p.jsx)(Hd,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("costEffec")}),Object(p.jsx)(A.a,{disabled:M,thousandSeparator:".",decimalSeparator:",",maxLength:"11",onChange:e=>{const t=e.target.value;x(t);let i=f;const o=Ud(t),n=Ud(g);null!==o&&0!==o||null===n||0===n||(i=vs(n,a),v(i)),B({profitValue:t,priceValue:i})},onBlur:()=>{const e=Ud(h);if(null!==e&&0!==e){const e=Is(h,a);x(e),B({profitValue:e})}L()},allowNegative:!1,decimalScale:a,isAllowed:Ms,value:h,className:"input "+(M?"inputDisabled":"inputIcons")}),Object(p.jsx)(ur,{className:"inputIconInside",name:"percentage"})]})})}),Object(p.jsx)(hr.a,{item:!0,xs:12,md:3,children:Object(p.jsx)(Hd,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "}),"1"===t?Ti.a.t("unitPrice2"):Ti.a.t("unitPrice")]}),Object(p.jsx)(A.a,{disabled:D,thousandSeparator:".",decimalSeparator:",",onChange:e=>{const t=e.target.value;v(t),B({priceValue:t})},onBlur:()=>{const e=Ud(f);if(!D&&null!==e){const e=Is(f,a);v(e),B({priceValue:e})}L()},allowNegative:!1,decimalScale:a,isAllowed:Fs,value:f,className:"input "+(D?"inputDisabled":"inputIcons")}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"})]})})}),Object(p.jsx)(hr.a,{item:!0,xs:12,md:2,children:Object(p.jsx)(Hd,{children:Object(p.jsx)(Pr,{icon:"percentage",label:Ti.a.t("IVAPer"),disabled:V,required:!0,showIcon:!0,value:H,type:"searchSelectPrimary",data:r,onChange:(e,t)=>
1{const a=void 0!==t&&null!==t?t:r[0];C(a),B({ivaOption:a}),L()},onSelectInputChange:e=>{let{target:t}=e;const a=""===t.value?r[0]:r.find((e=>e.name===t.value));(""===t.value||a)&&(C(a),B({ivaOption:a}),L())},defaultValue:H})})}),Object(p.jsx)(hr.a,{item:!0,xs:12,md:2,children:Object(p.jsxs)(Hd,{children:[Object(p.jsx)(hr.a,{children:Object(p.jsx)(S.a,{style:{marginBottom:"3px"},sx:Wd.label,children:"1"===t?Ti.a.t("finalPriceWoIVA"):Ti.a.t("finalPrice")})}),Object(p.jsx)(hr.a,{sx:Wd.containerText1,children:Object(p.jsxs)(S.a,{sx:Wd.text1,children:[!0===l&&((null===c||void 0===c?void 0:c.symbol)||c),!0!==l&&W," ",w]})})]})})]})]})};const zd=(new L.a).get("Secure-1CBL");var qd=e=>{let{page:t=1,getAllVariants:a=!1,makeRequest:o=!1}=e;const[n,r]=Object(i.useState)([]),[s,l]=Object(i.useState)(!1),[c,d]=Object(i.useState)(!1),[u,p]=Object(i.useState)(!1),[m,g]=Object(i.useState)(!1),[b,h]=Object(i.useState)(!1),x=`${Object(aa.a)()}`,f={"Content-Type":"application/json",Authorization:zd},v=async()=>{p(!1),l(!0);const e=a?"":`/10?paginate=1&limit=10&page=${t}`;try{const t=await ta.a.get(`${x}step${e}`,{headers:f}),i=t.data.data;h(t.data.last_page),r(a?t.data:i)}catch(i){p(!0),console.log({error:i})}l(!1)};return Object(i.useEffect)((()=>{o&&v()}),[o]),{dataVariants:n,loadingVariants:s,errorVariants:u,lastPage:b,successCreation:m,loadingValidation:c,setErrorVariants:p,setSuccessCreation:g,fetchVariants:v,setDataVariants:r,sendValidationVariantData:async e=>{let{body:t}=e;const a=`${Object(aa.a)()}step`,i=JSON.stringify(t);d(!0);try{await ta.a.put(a,i,{headers:f});g(!0)}catch(o){p(o.response.data.error),console.log({error:o})}d(!1)}}};const Gd=(e,t)=>10*(e-1)+t,Yd=e=>{let{id:t,name:a,status:i,code:o,barcode:n,internalCost:r,profitability:s,unitPrice:l,iva:c,ivaRateId:d,minStock:u,stock:p}=e;return{id:t,name:a,status:i,code:o,barcode:n,internalCost:r,profitability:s,unitPrice:l,iva:c,ivaRateId:d,minStock:u,stock:p}};var Kd=e=>{var t,a,o;let{steps:n=[],title:r="",ivaCondition:s={},useFinalPriceWithIva:l=0,keepSamePriceForVariants:d=!1,dataDefault:u={},dataDefaultIva:m={},preferenceRounding:g=0,variantId:b=null,userDecimal:h=1,userOptions:x={},urlBase:f="",jwtContext:v={},multiCurrency:j=!1,isEdition:A=!1,type:C="",filters:y="",saveLoading:O=!1,postProductsError:S=null,postServicesError:E=null,nextStep:I=(()=>null),lastStep:w=(()=>null),sendForm:T=(()=>null)}=e;const{datosFormulario:P,actualizarDatosFormulario:R}=Object(i.useContext)(rr),[N,L]=Object(i.useState)({}),[k,B]=Object(i.useState)(0),[D,F]=Object(i.useState)(!1),[M,V]=Object(i.useState)(1),[W,H]=Object(i.useState)(!1),[U,_]=Object(i.useState)([]),[z,q]=Object(i.useState)([]),[G,Y]=Object(i.useState)(!1),[K,X]=Object(i.useState)([]),[Z,Q]=Object(i.useState)(!1),[J,$]=Object(i.useState)(!1),ee=Ti.a.t("emptySKU"),te=null===v||void 0===v?void 0:v.country,ae=null===v||void 0===v?void 0:v.plan_name,ie=(null===P||void 0===P||null===(t=P.variant)||void 0===t?void 0:t.length)<=0||!(null!==P&&void 0!==P&&P.variant)||A&&P.generateNewVariants,{dataVariants:oe,loadingVariants:ne,errorVariants:re,successCreation:se,loadingValidation:le,setErrorVariants:ce,setSuccessCreation:de,sendValidationVariantData:ue}=qd({page:M,getAllVariants:!0,makeRequest:ie}),pe=Math.ceil((null===U||void 0===U?void 0:U.length)/10),me=Object(i.useRef)({}),ge=K.map((e=>{var t,a;return(null===(t=U[e])||void 0===t||null===(a=t.code)||void 0===a?void 0:a.trim().toLowerCase())||""})).join("|");Object(i.useEffect)((()=>{const e=null===U||void 0===U?void 0:U.slice(10*(M-1),10*M);q(e)}),[M,U]),Object(i.useEffect)((()=>{fe(),ve(),je(),Ae()}),[b,A,se,oe,P]),Object(i.useEffect)((()=>{D?ce(!1):re&&(window.scrollTo({top:0,left:0,behavior:"smooth"}),H(!0),V(1))}),[re,D]),Object(i.useEffect)((()=>{Z||$(!1)}),[Z]),Object(i.useEffect)((()=>{U&&null!==U&&void 0!==U&&U.some((e=>""===e.ivaRateId||null===e.ivaRateId))&&xe()}),[U,x]),Object(i.useEffect)((()=>{const e=be(U);X(e),Y(e.length>0)}),[U]),Object(i.useEffect)((()=>{he()}),[ge]);const be=e=>{const t={};let a=[];return e.forEach(((e,a)=>{var i;const o=null===e||void 0===e||null===(i=e.code)||void 0===i?void 0:i.toLowerCase().trim();
1o&&(t[o]?t[o].push(a):t[o]=[a])})),Object.values(t).forEach((e=>{e.length>1&&a.push(...e)})),[...new Set(a)]},he=()=>{if(0===K.length)return void ce(!1);let e=!1;const t={};if(K.forEach((a=>{var i,o;const n=(null===(i=U[a])||void 0===i||null===(o=i.code)||void 0===o?void 0:o.trim().toLowerCase())||"",r=me.current[a];t[a]=n,n!==r&&(e=!0)})),!e)return;me.current=t;const a=be(U);X(a),Y(a.length>0)},xe=()=>{if(A&&null!==P&&void 0!==P&&P.variant&&Array.isArray(null===P||void 0===P?void 0:P.variant)){const e=null===P||void 0===P?void 0:P.variant.map((e=>{if((null===e||void 0===e||!e.ivaRateId)&&x){const t=x.find((t=>t.value===e.iva));if(t)return{...e,ivaRateId:t.id}}return e}));R({...P,variant:e})}},fe=()=>{if(A&&null!==b){const e=P.variant.find((e=>e.id===b))||null,t=P.variant.findIndex((e=>e.id===b));B(t),L(e),null!==e&&null!==t&&F(!0)}},ve=()=>{se&&(I(),de(!1))},je=()=>{A||!(P.modifiedVariants.length<=0)&&P.modifiedVariants||Ce()},Ae=()=>{var e;A&&(null===P||void 0===P||null===(e=P.variant)||void 0===e?void 0:e.length)>0&&!P.generateNewVariants&&_(P.variant),Se()},Ce=()=>{let e=[];e[0]=oe[0]||(null===P||void 0===P?void 0:P.variant[0]),R({...P,modifiedVariants:e})},ye=()=>d&&_s(P),Oe=()=>({internalCost:P.internalCost,internalCostValue:P.internalCostValue,profitability:P.profitability,profitabilityValue:P.profitabilityValue,unitPrice:P.unitPrice,finalPrice:P.finalPrice,finalPriceWithoutRounding:P.finalPriceWithoutRounding,iva:P.iva,ivaRateId:P.ivaRateId,ivaDataValue:P.ivaDataValue}),Se=()=>{var e;if((null===P||void 0===P||null===(e=P.variant)||void 0===e?void 0:e.length)<=0||null===P||void 0===P||!P.variant){let e=[],t=oe;ye()&&oe.length>0?(t=Ds({variants:oe,uniquePriceData:Oe(),userDecimal:h,isEdition:A}),e=t.map(Yd)):(P.modifiedVariants.length<=0||!P.modifiedVariants)&&(e[0]=t[0]),_(t),R({...P,variant:t,modifiedVariants:e,type:C})}else _(P.variant);P.generateNewVariants&&oe.length>0&&Ee()},Ee=()=>{let e=Ps({useFinalPriceWithIva:l,variant:oe,userDecimal:h,addEdit:!1});const t=ye();t?e=Ds({variants:e,uniquePriceData:Oe(),userDecimal:h,isEdition:A}):d&&(e=e.map((e=>({...e,finalPrice:Ts({unitPrice:e.unitPriceValue||vs(e.unitPrice||0,h),iva:e.iva,useFinalPriceWithIva:l,userDecimal:h,preferenceRounding:g,roundMultiple:e.profitability>0})})))),_(e),R({...P,variant:e,...t&&{modifiedVariants:e.map(Yd)},generateNewVariants:!1,isApplyChangesDisabled:!0})},Ie=e=>{let{variant:t,index:a}=e;const i=Gd(M,a);B(i),L(t),F(!0),"P"===P.option&&Object(c.b)("Prod con Variante Step 3 - Editar"),"S"===P.option&&Object(c.b)("Serv con Variante Step 3 - Editar")},we=e=>{var t,a,i,o;let{variant:n}=e,r=P.modifiedVariants||[];const s=(null===(t=r)||void 0===t?void 0:t.length)>0&&(null===(a=r)||void 0===a?void 0:a.find((e=>(null===e||void 0===e?void 0:e.id)===(null===n||void 0===n?void 0:n.id))))||null,l=(null===(i=r)||void 0===i?void 0:i.length)>0&&null!==s?null===(o=r)||void 0===o?void 0:o.findIndex((e=>e===s)):0;return null!==s?r[l]=Yd(n):r=[...r,Yd(n)],r},Te=(e,t)=>{const a=[...U],i=A?a[0].unitPriceValue?a[0].unitPriceValue:vs(a[0].unitPrice,h):a[0].unitPriceValue,{unitPrice:o,iva:n,ivaRateId:r,ivaDataValue:s,profitability:c,profitabilityNumber:d,profitabilityValue:u,internalCost:p,internalCostNumber:m,internalCostValue:b,finalPriceWithoutRounding:x}=a[0],f={profitability:c,profitabilityNumber:d,profitabilityValue:u,internalCost:p,internalCostNumber:m,internalCostValue:b};let v;return"prices"===t&&(v=a.map((e=>{const t=A&&"edit"in e?{edit:!0}:null;return c>0&&"1"===l?{...e,finalPrice:a[0].finalPrice,iva:a[0].iva,ivaRateId:a[0].ivaRateId,ivaDataValue:a[0].ivaDataValue||null,unitPrice:o,unitPriceValue:i,finalPriceWithoutRounding:x,...f,...t}:{...e,finalPrice:Ts({unitPrice:i&&"NaN"!==i?i:"0,00",iva:e.iva,useFinalPriceWithIva:l,userDecimal:h,preferenceRounding:g,roundMultiple:!1}),unitPrice:o||0,ivaRateId:e.ivaRateId,unitPriceValue:i&&""!==i?i:"",...f,...t}}))),"iva"===t&&(v=a.map((e=>{let t;const a=c>0&&"1"===l;t=Ts(a?{unitPrice:e.finalPrice&&"NaN"!==e.finalPrice?e.finalPrice:"0,00",iva:n,useFinalPriceWithIva:"0",userDecimal:h,preferenceRounding:g,roundMultiple:c>0}:{unitPrice:e.unitPriceValue&&"NaN"!==e.unitPriceValue?e.unitPriceValue:"0,00",iva:n,useFinalPriceWithIva:l,userDecimal:h,preferenceRounding:g,roundMultiple:c>0});const i=A&&"edit"in e?{edit:!0}:null;
1return{...e,finalPrice:a?e.finalPrice:t,iva:n,ivaRateId:r,unitPrice:a?bs(t):e.unitPrice,unitPriceValue:a?t:e.unitPriceValue,ivaDataValue:s,profitability:e.unitPriceValue?c:null,profitabilityNumber:e.unitPriceValue?d:null,profitabilityValue:e.unitPriceValue?u:"",internalCost:e.unitPriceValue?p:null,internalCostNumber:e.unitPriceValue?m:null,internalCostValue:e.unitPriceValue?b:"",finalPriceWithoutRounding:e.finalPriceWithoutRounding?x:null,...i}}))),v},Pe=e=>{let t,a,{e:i,index:o,onBlur:n=!1}=e,r=[...U];const s=Gd(M,o);if(n&&!r[s].unitPriceValue)return;n||(t=i.target.value);const c=r[s].iva,d=Is(n?r[s].unitPriceValue:t,h),u=Is("0",h);var p;(a=Ts({unitPrice:n?r[s].unitPriceValue:t,iva:c,useFinalPriceWithIva:l,userDecimal:h,preferenceRounding:g,roundMultiple:!1}),r[s].finalPrice="NaN"===a?Is("0",h):a,r[s].unitPriceValue=n?d:t,n)?r[s].unitPrice=""===r[s].unitPriceValue||"NaN"===r[s].unitPriceValue?bs(u):bs(r[s].unitPriceValue):r[s].unitPrice=""===(null===i||void 0===i||null===(p=i.target)||void 0===p?void 0:p.value)?bs(u):bs(i.target.value);r[s].profitability=null,r[s].profitabilityNumber=null,r[s].profitabilityValue="",r[s].internalCost=null,r[s].internalCostNumber=null,r[s].internalCostValue="",A&&"edit"in r[s]&&(r[s].edit=!0),_(r);const m=we({variant:r[s]});R({...P,modifiedVariants:m,variant:r,unitPriceForAll:0===s&&1===M&&P.unitPriceForAll})},Re=e=>{let{event:t,value:a,index:i}=e,o=[...U];const n=Gd(M,i);let r,s;const c=o[n].profitability>0&&"1"===l;if(c?(r=Ts({unitPrice:o[n].finalPrice||"0,00",iva:null===a||void 0===a?void 0:a.value,useFinalPriceWithIva:"0",userDecimal:h,preferenceRounding:g,roundMultiple:o[n].profitability>0}),s=(e=>{let{unitPrice:t,iva:a,useFinalPriceWithIva:i,userDecimal:o}=e;const n=bs(t),r=a;if("0"===i){let e=hs(n,a);return e=vs(e,o),e=bs(e),e}if("1"===i){let e=xs(n,r);return e=vs(e,o),e=bs(e),e}return 0})({unitPrice:o[n].finalPrice||"0,00",iva:null===a||void 0===a?void 0:a.value,useFinalPriceWithIva:"0",userDecimal:h})):r=Ts({unitPrice:o[n].unitPriceValue||"0,00",iva:null===a||void 0===a?void 0:a.value,useFinalPriceWithIva:l,userDecimal:h,preferenceRounding:g,roundMultiple:o[n].profitability>0}),null===a)return o[n].iva=null===a||void 0===a?void 0:a.value,void(o[n].ivaDataValue=a);o[n].unitPrice=c?bs(r):o[n].unitPrice,o[n].unitPriceValue=c?r:o[n].unitPriceValue,o[n].ivaDataValue=a,o[n].iva=null===a||void 0===a?void 0:a.value,o[n].ivaRateId=(null===a||void 0===a?void 0:a.id)||null,o[n].finalPrice=c?o[n].finalPrice:r,o[n].finalPriceWithoutRounding=s,A&&"edit"in o[n]&&(o[n].edit=!0),_(o);const d=we({variant:o[n]});R({...P,modifiedVariants:d,variant:o,ivaForAll:0===n&&1===M&&P.ivaForAll})},Ne=()=>{P.variants;const e=Te(0,"prices");_(e),"S"===P.option&&Object(c.b)("Serv con Variante Step 3 - Precio Aplicar Todos"),R({...P,unitPriceForAll:!0,variant:e})},Le=()=>{P.variants;const e=Te(0,"iva");_(e),"S"===P.option&&Object(c.b)("Serv con Variante Step 3 - IVA Aplicar Todos"),R({...P,ivaForAll:!0,variant:e})},ke=e=>{V(e)},Be=()=>{w()},De=()=>{Z&&($(!0),re||setTimeout((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),0));const{unitPriceForAll:e,ivaForAll:t,modifiedVariants:a}=P,i={unitPriceForAll:e,ivaForAll:t,variant:a,type:C,step:3};"P"===P.option&&Object(c.b)("Prod con Variante Step 3 - Siguiente"),"S"===P.option&&Object(c.b)("Serv con Variante Step 3 - Siguiente"),ue({body:i})},Fe=(e,t,a)=>{var i;const o=e.target.value,n=[...U],r=Gd(M,a);n[r]={...n[r],code:o};const s=null===(i=P.variant[r])||void 0===i?void 0:i.code.trim();let l=[];const c=()=>{l=[];let e={};n.forEach(((t,a)=>{const i=null===t||void 0===t?void 0:t.code.toLowerCase().trim();i&&(e[i]?e[i].push(a):e[i]=[a])})),Object.values(e).forEach((e=>{e.length>1&&l.push(...e)})),l=[...new Set(l)]};o.trim()!==s&&c(),c();const d=l.length>0;Y(d);n.some((e=>!e.code.trim()))?(Q(!0),$(!0)):(Q(!1),$(!1)),A&&"edit"in n[r]&&(n[r].edit=!0),_(n);const u=we({variant:n[r]});R({...P,modifiedVariants:u,variant:n}),X(l),ce(!1)},Me=()=>{H(!1)},Ve=()=>{$(!1)},We={useFinalPriceWithIva:l,userDecimal:h,preferenceRounding:g,ivaCondition:s,userOptions:x,dataDefaultIva:m,multiCurrency:j,currencySelected:P.currencySelected,jwtContext:v,initialValues:d?zs({datosFormulario:P,isEdition:A,userOptions:x,userDecimal:h}):{},onUniquePriceChange:e=>{const t=Ds({variants:U,uniquePriceData:e,userDecimal:h,isEdition:A});_(t),R({...e,variant:t,modifiedVariants:t.map(Yd)})}},He=d&&U.length>0&&(null===x||void 0===x?void 0:x.length)>0&&Object(p.jsx)(_d,{...We}),Ue={openModal:D,ivaCondition:s,useFinalPriceWithIva:l,keepSamePriceForVariants:d,dataDefault:u,dataDefaultIva:m,preferenceRounding:g,userDecimal:h,userOptions:x,urlBase:f,jwtContext:v,multiCurrency:j,variantToEditIndex:k,variantToEdit:N,isEdition:A,page:M,type:C,variantId:b,saveLoading:O,postProductsError:S,postServicesError:E,handleCloseModal:()=>{null!==b?window.open(`/conceptos.aspx?filters=${y}`,"_self"):F(!1)},changeModifiedVariants:we,sendForm:T},_e={REQUIRED_FIELD:ee,requiredFieldAlert:J,userDecimal:h,ivaCondition:s,dataDefaultIva:m,dataDefault:u,userOptions:x,lastPage:pe,variants:z,page:M,jwtContext:v,multiCurrency:j,currencySelected:P.currencySelected,currencyPrice:P.currencyId,useFinalPriceWithIva:l,keepSamePriceForVariants:d,loadingVariants:ne&&(null===P||void 0===P||null===(a=P.variant)||void 0===a?void 0:a.length)<=0,disabled:le,
1isDuplicatedCodeError:G,errorDuplicateIndex:K,setRequiredField:Q,fixIndexPerPage:Gd,handleInputPrice:Pe,handleInputIVAChange:Re,handleEditVariant:Ie,handleAddAllSamePriceClick:Ne,handleAddAllSameIvaClick:Le,handlePageChange:ke,handleInputCodeChange:Fe,handleCloseRequiredAlert:Ve},ze={REQUIRED_FIELD:ee,requiredFieldAlert:J,userDecimal:h,ivaCondition:s,dataDefaultIva:m,dataDefault:u,userOptions:x,lastPage:pe,variants:z,page:M,jwtContext:v,multiCurrency:j,currencySelected:P.currencySelected,currencyPrice:P.currencyId,useFinalPriceWithIva:l,keepSamePriceForVariants:d,loadingVariants:ne&&(null===P||void 0===P||null===(o=P.variant)||void 0===o?void 0:o.length)<=0,isDuplicatedCodeError:G,errorDuplicateIndex:K,setRequiredField:Q,fixIndexPerPage:Gd,handleInputPrice:Pe,handleInputIVAChange:Re,handleEditVariant:Ie,handleAddAllSamePriceClick:Ne,handleAddAllSameIvaClick:Le,handlePageChange:ke,handleInputCodeChange:Fe,handleCloseRequiredAlert:Ve},qe={iconName:"helpIcon",type:"alertWarning",style:{marginTop:"10px"},children:Ti.a.t("conceptsLimitWarning"),showCustomAlert:("Freemium"===ae||"Prueba"===ae||"Enterprise"===ae||"FullNew"===ae||"ProNew"===ae||"StandardNew"===ae||"BasicNew"===ae)&&"ar"===te},{infoCardVariants:Ge,infoCardVariantsEdition:Ye}=Ll({userCountry:te}),Ke={text:Ti.a.t("uniquePriceInfoCardVariants")},Xe=A&&d&&Hs(U),Ze={iconName:"helpIcon",type:"alertWarning",style:{marginTop:"10px"},children:Ti.a.t("uniquePriceConvergenceWarning"),showCustomAlert:!0};return A?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Nl,{...d?Ke:Ye}),Object(p.jsx)(kl,{...qe}),Xe&&Object(p.jsx)(kl,{...Ze}),He,P.variant&&Object(p.jsx)(Ed,{isEdition:!0,...ze}),D&&Object(p.jsx)(Vd,{...Ue})]}):Object(p.jsxs)(rs,{title:r,handleSecondaryButtonClick:Be,handlePrimaryButtonClick:De,secondarybuttonText:Ti.a.t("back"),primarybuttonText:Ti.a.t("next"),showButtons:!0,showErrorAlert:W,errors:re,handleCloseAlert:Me,primaryLoading:le,secondaryButtonDisabled:le,primaryButtonDisabled:le,children:[Object(p.jsx)(Gr,{steps:n,activeStep:2}),Object(p.jsx)(Nl,{containerStyle:{marginTop:20},...d?Ke:Ge}),Object(p.jsx)(kl,{...qe}),He,Object(p.jsx)(Ed,{..._e}),u&&D&&Object(p.jsx)(Vd,{...Ue})]})};const Xd=Object(u.a)((e=>({firstColumn:{display:"none !important"},cells:{borderBottom:"1px solid white !important",padding:"10px !important"},titles:{fontSize:"14px",fontWeight:"500",lineHeight:"18px",paddingBottom:"5px !important"},textCell:{fontSize:"14px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:"#777777",paddingLeft:"20px"},textContainer:{margin:"30px 0px 35px 0px"},textInfo:{fontSize:"13px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:"#777777",margin:"0px 0px 10px 0px"}})));var Zd=e=>{let{data:t=[],storeTitle:a="",paginatedData:i=[],actualPage:o=1,totalPages:n=2,handlePageChange:r=(()=>null),handleOpenModal:s=(()=>null)}=e;const l=Xd();return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{children:[Object(p.jsx)(v.a,{className:l.textContainer}),t.length>=1?Object(p.jsxs)(Ks.a,{style:{marginTop:"20px",marginBottom:"30px"},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:[Object(p.jsxs)(Xs.a,{style:{minWidth:"300px",overflowX:"scroll"},children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:l.firstColumn}),Object(p.jsx)(Js.a,{className:l.titles,style:{width:"90%",minWidth:"200px"},children:a}),Object(p.jsx)(Js.a,{style:{width:"10%",minWidth:"50px"}})]})}),Object(p.jsx)($s.a,{children:i.map(((e,t)=>Object(p.jsxs)(Qs.a,{className:l.rows,children:[Object(p.jsx)(Js.a,{className:l.cells,children:Object(p.jsx)(cn.a,{className:l.textCell,children:null===e||void 0===e?void 0:e.name})}),Object(p.jsx)(Js.a,{className:l.cells,children:Object(p.jsx)(Qr.a,{onClick:()=>s(e),disableRipple:!0,children:Object(p.jsx)(ni.a,{width:"0px",height:"0px",viewBox:"",name:"edit"})})})]},t)))})]}),t.length>10&&Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:o,totalPages:n,onPageChange:r,size:"large"})})]}):""]})})};const Qd={display:"flex",flexDirection:"column",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"939px",maxWidth:"95%",maxHeight:"95%",bgcolor:"background.paper",borderRadius:1.5,"@media (max-width: 900px)":{width:"80%",height:"95%",maxHeight:"666px"},"@media (max-width: 600px)":{width:"95%",height:"95%"}},Jd=Object(u.a)((e=>({containerTitle:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"10px",paddingBottom:"6px",paddingLeft:"24px",paddingRight:"14px"},title:{fontSize:"16px",color:"#131313",fontFamily:"Work Sans, sans-serif",fontWeight:500,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},variantStockContainer:{padding:"35px 35px 0px 35px",flex:1,"@media (max-width: 900px)":{paddingTop:"20px"},"@media (max-width: 560px)":{paddingRight:"10px",paddingLeft:"10px"}},tableContainer:{border:"1px solid #DFDFDF",borderRadius:"5px",padding:"35px 40px 20px 40px","@media (max-width: 900px)":{padding:"5px 15px"}},tableTitle:{fontSize:"14px",fontWeight:"500",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:"#131313",paddingBottom:"8px !important"},tableTitleStock:{fontSize:"14px",fontWeight:"500",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",textAlign:"center"},tableButton:{fontSize:"12px",fontWeight:"400",lineHeight:"16px",fontFamily:"Work Sans, sans-serif",curs
1or:"pointer",color:"#007868",textAlign:"center",paddingTop:"10px"},textCell:{fontSize:"14px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},containerBtn:{display:"flex",justifyContent:"flex-end",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"24px",paddingRight:"24px",width:"100%"},divStyle:{opacity:1},closeIcn:{fontSize:"21px"},pagination:{display:"flex",justifyContent:"center",width:"100%"},cells:{maxWidth:"200px",padding:"8px 16px !important"},stockCell:{textAlign:"center !important",maxWidth:"200px",padding:"8px 16px !important"},scrollBar:{overflowX:"hidden",overflowY:"scroll",marginRight:"8px",scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"0.4em",height:"0.4em"},"&::-webkit-scrollbar-track":{background:"#fff",height:"400px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:"#aaa"}},infoCard:{padding:"0px 0px 30px 0px"}})));var $d=e=>{let{open:t=!1,handleClose:a=(()=>null),deposit:o={},jwtContext:n={},variants:r=[],stockRounding:s=0}=e;const{datosFormulario:l,actualizarDatosFormulario:c}=Object(i.useContext)(rr),d=o?o.name:"",[u,m]=Object(i.useState)(1),[g,b]=Object(i.useState)([]),[h,x]=Object(i.useState)([]),f=td.a.cloneDeep(r),j=Math.ceil(g.length/5),C=Jd();Object(i.useEffect)((()=>{b(f)}),[]),Object(i.useEffect)((()=>{const e=g.slice(5*(u-1),5*u);x(e)}),[u,g]);const O=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e6},S=()=>{b([]),x([]),m(1),a()},E=null===n||void 0===n?void 0:n.country,{infoCardStock:I}=Ll({userCountry:E});return Object(p.jsx)("div",{children:Object(p.jsx)(w.a,{open:t,onClose:S,children:Object(p.jsxs)(y.a,{sx:Qd,children:[Object(p.jsxs)(v.a,{container:!0,className:C.containerTitle,children:[Object(p.jsxs)(cn.a,{variant:"h6",className:C.title,children:["Configuraci\xf3n de ",d]}),Object(p.jsx)(wi.a,{onClick:S,disableRipple:!0,style:{backgroundColor:"transparent"},children:Object(p.jsx)(ni.a,{name:"close",className:C.closeIcn})})]}),Object(p.jsx)(N.a,{className:C.divStyle}),Object(p.jsxs)(v.a,{container:!0,xs:12,className:[C.variantStockContainer,C.scrollBar],children:[!0===n.account_plan&&Object(p.jsx)(v.a,{item:!0,className:C.infoCard,children:Object(p.jsx)(Nl,{...I})}),Object(p.jsx)(Ks.a,{className:C.tableContainer,style:{minHeight:"250px",height:"100%",marginBottom:10},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{style:{minWidth:"550px"},children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:C.tableTitle,style:{width:"20%",minWidth:"200px"},children:Ti.a.t("SKU")}),Object(p.jsx)(Js.a,{className:C.tableTitle,style:{minWidth:"200px"},children:Ti.a.t("variantName")}),Object(p.jsxs)(Js.a,{className:C.tableTitle,style:{width:"10%",minWidth:"150px"},children:[Object(p.jsx)(cn.a,{className:C.tableTitleStock,children:Ti.a.t("initialStock")}),1===u&&Object(p.jsx)(cn.a,{className:C.tableButton,onClick:()=>{var e,t,a,i;let n=g,r=n[0];const s=(null===r||void 0===r||null===(e=r.stock)||void 0===e?void 0:e.length)>0&&(null===r||void 0===r||null===(t=r.stock)||void 0===t?void 0:t.find((e=>(null===e||void 0===e?void 0:e.inventary)===(null===o||void 0===o?void 0:o.id))))||null,l=(null===r||void 0===r||null===(a=r.stock)||void 0===a?void 0:a.length)>0&&null!==s?null===r||void 0===r||null===(i=r.stock)||void 0===i?void 0:i.findIndex((e=>e===s)):0,c=((e,t,a)=>(e.forEach((e=>{e.stock.forEach((e=>{e.inventary===t&&(e.stock=a)}))})),e))(n,null===o||void 0===o?void 0:o.id,r.stock[l].stock);b(c);const d=c.slice(5*(u-1),5*u);x(d)},children:Ti.a.t("appAll")})]})]})}),Object(p.jsx)($s.a,{children:h.map(((e,t)=>{var a,i,n,r,l,c;const d=(null===e||void 0===e||null===(a=e.stock)||void 0===a?void 0:a.length)>0&&(null===e||void 0===e||null===(i=e.stock)||void 0===i?void 0:i.find((e=>(null===e||void 0===e?void 0:e.inventary)===(null===o||void 0===o?void 0:o.id))))||null,m=(null===(n=g[0])||void 0===n||null===(r=n.stock)||void 0===r?void 0:r.length)>0&&(null===(l=g[0])||void 0===l||null===(c=l.stock)||void 0===c?void 0:c.find((e=>(null===e||void 0===e?void 0:e.inventary)===(null===o||void 0===o?void 0:o.id)&&!0===(null===e||void 0===e?void 0:e.applyToAll))))||null;return Object(p.jsxs)(Qs.a,{className:C.rows,children:[Object(p.jsx)(Js.a,{className:C.cells,children:Object(p.jsx)(cn.a,{className:C.textCell,children:e.code})}),Object(p.jsx)(Js.a,{className:C.cells,children:Object(p.jsx)(cn.a,{className:C.textCell,children:e.name})}),Object(p.jsx)(Js.a,{className:C.stockCell,children:Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:"input inputPrimary inputTable",allowNegative:!1,decimalScale:s,onChange:e=>((e,t)=>{var a,i,n,r,s,l;const c=((e,t)=>5*(e-1)+t)(u,t);let d=g,p=d[c];const m=(null===p||void 0===p||null===(a=p.stock)||void 0===a?void 0:a.length)>0&&(null===p||void 0===p||null===(i=p.stock)||void 0===i?void 0:i.find((e=>(null===e||void 0===e?void 0:e.inventary)===(null===o||void 0===o?void 0:o.id))))||null,h=(null===p||void 0===p||null===(n=p.stock)||void 0===n?void 0:n.length)>0&&null!==m?null===p||void 0===p||null===(r=p.stock)||void 0===r?void 0:r.findIndex((e=>e===m)):0,x=e.target.value;let f;if(f=""===x?0:Number(x.replace(/\./g,"").replace(",",".")),(null===p||void 0===p||null===(s=p.stock)||void 0===s?void 0:s.length)>0&&null!==m)p.stock[h]={inventary:o.id,stock:f};else if(null===m&&(null===p||void 0===p||null===(l=p.stock)||void 0===l?void 0:l.length)>0){var v;p.stock[(null===p||void 0===p||null===(v=p.stock)||void 0===v?void 0:v.length)+1]={inventary:o.id,stock:f}}else null!==m||null!==p&&void 0!==p&&p.stock||(p.stock=[{inventary:o.id,stock:f}]);d[c]={...p},b(d)})(e,t),value:null===m||void 0===m||!m.applyToAll||null!==d&&void 0!==d&&d.stock?(null===d||void 0===d?void 0:d.stock)||"0":m.stock,isAllowed:O})})]},t)}))})]})})]}),Object(p.jsx)(v.a,{children:r.length>5&&Object(p.jsx)(Ac,{className:C.pagination,actualPage:u,totalPages:j,onPageChange:e=>{m(e)}})}),Object(p.jsx)(N.a,{className:C.divStyle}),Object(p.jsxs)(v.a,{container:!0,className:C.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",open:t,onClick:a,children:Ti.a.t("
1close")})}),Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{type:"primary",open:t,onClick:()=>{c({...l,variant:g});g.filter((e=>void 0!==e.stock&&void 0!==e.id)).map((e=>({id:e.id,stock:e.stock})));m(1),a()},children:Ti.a.t("apply")})})]})]})})})};var eu=e=>{let{steps:t=[],title:a="",dataDefault:o={},userDecimal:n=1,userOptions:r={},dataInventaries:s={},stockRounding:l=0,saveLoading:c=!1,jwtContext:d={},lastStep:u=(()=>null),sendForm:m=(()=>null),nextStep:g=null,primaryButtonText:b="",activeStep:h=4,postProductsError:x=!1}=e;const{datosFormulario:f}=Object(i.useContext)(rr),v=(null===s||void 0===s?void 0:s.dataInventaries)||[],j=d&&d.country?d.country:"",A=null===d||void 0===d?void 0:d.plan_name,[C,y]=Object(i.useState)(Ti.a.t("depositName")),[O,S]=Object(i.useState)(1),[E,I]=Object(i.useState)(!1),[w,T]=Object(i.useState)(null),[P,R]=Object(i.useState)(!1),N=Math.ceil(v.length/10);Object(i.useEffect)((()=>{null!==x&&R(!0)}),[x]);const L=v.slice(10*(O-1),10*O);Object(i.useEffect)((()=>{let e="depositName";"cl"===j&&(e="storeName"),y(Ti.a.t(e))}),[j]);const{infoCardDeposits:k}=Ll({userCountry:j}),B={userDecimal:n,dataDefault:o,userOptions:r,jwtContext:d,stockRounding:l,data:v,storeTitle:C,paginatedData:L,actualPage:O,totalPages:N,handlePageChange:e=>{S(e)},handleOpenModal:e=>{I(!0),T(e)}},D={open:E,selectedDeposit:w,jwtContext:d,handleClose:()=>{I(!1),T(null)},variants:f.variant,deposit:w,stockRounding:l},F={iconName:"helpIcon",type:"alertWarning",style:{marginTop:"20px"},children:Ti.a.t("conceptsLimitWarning"),showCustomAlert:("Freemium"===A||"Prueba"===A||"Enterprise"===A||"FullNew"===A||"ProNew"===A||"StandardNew"===A||"BasicNew"===A)&&"ar"===j};return Object(p.jsxs)(rs,{handleSecondaryButtonClick:()=>{u()},handlePrimaryButtonClick:async()=>{"function"!==typeof g?m():g()},secondarybuttonText:Ti.a.t("back"),primarybuttonText:b||Ti.a.t("save"),showButtons:!0,title:a,showErrorAlert:P,errors:x,handleCloseAlert:()=>{R(!1)},primaryLoading:c&&!g,children:[Object(p.jsx)(Gr,{steps:t,activeStep:h}),Object(p.jsx)(Nl,{...k}),Object(p.jsx)(kl,{...F}),Object(p.jsx)(Zd,{...B}),E&&Object(p.jsx)($d,{...D})]})};const tu=-99,au=100,iu=128,ou=["presentationId","equivalentQuantity","presentationName"],nu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[<>]/g,"").replace(/[\u0000-\u001F\u007F]/g,"").slice(0,iu)},ru=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).slice(0,50)},su=e=>{const t=Number(e);return Number.isFinite(t)?Math.min(au,Math.max(tu,t)):0},lu=e=>{if(""===e||null===e||void 0===e)return null;if("number"===typeof e)return Number.isFinite(e)?e:null;const t=String(e).trim();if(!t)return null;const a=t.includes(",")?Number(t.replace(/\./g,"").replace(",",".")):Number(t);return Number.isFinite(a)?a:null},cu=e=>{let{equivalence:t=1,unitPriceBase:a=0,adjustmentPercent:i=0,hasAutoPrice:o=!1,manualPriceBase:n=0}=e;const r=Number(t)||0,s=Number(a)||0,l=""!==n&&null!==n&&void 0!==n&&Number.isFinite(Number(n)),c=o?s*r:l?Number(n):0,d=c*(1+(0===c?0:su(i))/100);return{priceBase:o||l?c:"",price:Number.isFinite(d)&&(o||l)?Math.max(0,d):""}},du=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter((e=>!e.isBase))},uu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return du(e).length},pu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return uu(e)>0||Object.values(t||{}).some((e=>uu(e)>0))},mu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{includeIds:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return du(e).map((e=>{const a=""!==e.priceBase&&null!==e.priceBase&&void 0!==e.priceBase&&Number.isFinite(Number(e.priceBase)),i=(""!==e.price&&null!==e.price&&void 0!==e.price&&Number.isFinite(Number(e.price)),Number(a?e.priceBase:e.price)),o=lu(e.weight),n=Number(e.equivalence),r={presentationId:Number(e.presentationTypeId),equivalentQuantity:Number.isInteger(n)?n:0,barCode:nu(e.barcode||""),unitPrice:Number.isFinite(i)?i:0,adjustment:Number(e.adjustmentPercent)||0,weight:o,dimensions:ru(e.dimensions||""),active:Boolean(e.active)};if(t){const t=bu(e);null!=t&&(r.id=t)}return r}))},gu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e||"object"!==typeof e)return null;const t=e.conceptPresentationId;if(null==t||""===t)return null;const a=Number(t);return Number.isFinite(a)?a:null},bu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e||"object"!==typeof e)return null;const t=gu(e);if(null!=t)return t;if(null!=e.apiId&&""!==e.apiId){const t=Number(e.apiId);return Number.isFinite(t)?t:null}if("string"===typeof e.id){const t=e.id.match(/^presentation-api-(\d+)$/);if(t)return Number(t[1])}return null},hu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{useFinalPriceWithIva:t="0"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e))return[];const a="1"===String(t);return e.map(((e,t)=>{var i;
1const o=a?e.finalPrice:e.unitPrice,n=Number(o),r=Number.isFinite(n),s=Number(e.adjustment)||0,l=gu(e),{priceBase:c,price:d}=cu({hasAutoPrice:!1,manualPriceBase:r?n:"",adjustmentPercent:s});return{id:null!=l?`presentation-api-${l}`:`presentation-${Date.now()}-${t}-${Math.random().toString(36).slice(2,7)}`,apiId:l,conceptPresentationId:l,presentationTypeId:void 0!==e.presentationId&&null!==e.presentationId?e.presentationId:"",presentationName:e.presentationName||"",equivalence:void 0!==e.equivalentQuantity&&null!==e.equivalentQuantity?Number(e.equivalentQuantity):"",barcode:e.barCode||e.barcode||"",weight:null!==(i=e.weight)&&void 0!==i?i:"",dimensions:e.dimensions||"",adjustmentPercent:s,priceBase:c,price:d,active:void 0===e.active||null===e.active||Boolean(e.active),isBase:!1,usedInVouchers:Boolean(e.usedInVouchers),code:e.code||""}}))},xu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{conceptType:a="Unique",getVariantKeyFn:i=null,includePresentationIds:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return e;delete e.presentationsByVariant,delete e.presentationsApplyToAll,delete e.presentationsHideApplyToAll,delete e.presentationsValidationErrors,delete e.presentationsValidationErrorsByVariant;const n="P"===t.option||"P"===t.type||"V"===t.type;if(!n)return delete e.presentations,e;const r=void 0===t.presentationsApplyToAll||Boolean(t.presentationsApplyToAll);if("Unique"===a){const a=mu(t.presentations,{includeIds:o});return a.length>0?e.presentations=a:delete e.presentations,e}if(delete e.presentations,!Array.isArray(e.variant))return e;const s=r?mu(t.presentations,{includeIds:o}):null,l=t.presentationsByVariant||{};return e.variant=e.variant.map((e=>{const t=r?s:"function"===typeof i?mu(l[i(e)]||[],{includeIds:o}):[],a={...e};return ou.forEach((e=>{delete a[e]})),t&&t.length>0?a.presentations=t.map((e=>({...e}))):delete a.presentations,a})),e},fu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(Array.isArray(e)?e:[]).map((e=>({id:null!=(null===e||void 0===e?void 0:e.id)&&""!==(null===e||void 0===e?void 0:e.id)?Number(e.id):null,presentationId:Number(null===e||void 0===e?void 0:e.presentationId),equivalentQuantity:Number(null===e||void 0===e?void 0:e.equivalentQuantity)||0,unitPrice:Number(null===e||void 0===e?void 0:e.unitPrice)||0,adjustment:Number(null===e||void 0===e?void 0:e.adjustment)||0,barCode:(null===e||void 0===e?void 0:e.barCode)||"",weight:""===(null===e||void 0===e?void 0:e.weight)||null==(null===e||void 0===e?void 0:e.weight)||Number.isNaN(Number(e.weight))?null:Number(e.weight),dimensions:(null===e||void 0===e?void 0:e.dimensions)||"",active:Boolean(null===e||void 0===e?void 0:e.active)}))).sort(((e,t)=>{const a=null==e.id||Number.isNaN(e.id)?Number.MAX_SAFE_INTEGER:e.id,i=null==t.id||Number.isNaN(t.id)?Number.MAX_SAFE_INTEGER:t.id;return a!==i?a-i:(e.presentationId||0)-(t.presentationId||0)}))},vu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],{useFinalPriceWithIva:a="0"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=mu(hu(e||[],{useFinalPriceWithIva:a}),{includeIds:!0});return JSON.stringify(fu(i))!==JSON.stringify(fu(t||[]))};const ju=e=>void 0!==(null===e||void 0===e?void 0:e.code)&&null!==(null===e||void 0===e?void 0:e.code)&&""!==(null===e||void 0===e?void 0:e.code)?String(e.code):void 0!==(null===e||void 0===e?void 0:e.name)&&null!==(null===e||void 0===e?void 0:e.name)&&""!==(null===e||void 0===e?void 0:e.name)?String(e.name):void 0!==(null===e||void 0===e?void 0:e.id)&&null!==(null===e||void 0===e?void 0:e.id)&&""!==(null===e||void 0===e?void 0:e.id)?String(e.id):"variant";const Au=e=>{var t,a;const i=null!==(t=null!==(a=null===e||void 0===e?void 0:e.equivalence)&&void 0!==a?a:null===e||void 0===e?void 0:e.presentationEquivalence)&&void 0!==t?t:null===e||void 0===e?void 0:e.equivalentQuantity;if(null===i||void 0===i||""===i)return null;const o=Number(i);return Number.isFinite(o)&&o>0?o:null},Cu=(e,t)=>{if(!e)return"";const a=Au({equivalence:t});return null===a?String(e):`${e} X ${a}`},yu=e=>[null===e||void 0===e?void 0:e.code,null===e||void 0===e?void 0:e.name,Cu(null===e||void 0===e?void 0:e.presentationName,Au(e))].filter(
1Boolean).join(" - "),Ou=e=>{var t,a,i;return{conceptPresentationId:null!==(t=null!==(a=null===e||void 0===e?void 0:e.presentationId)&&void 0!==a?a:null===e||void 0===e?void 0:e.conceptPresentationId)&&void 0!==t?t:null,presentationName:null!==(i=null===e||void 0===e?void 0:e.presentationName)&&void 0!==i?i:null,equivalence:Au(e)}},Su=(e,t)=>{var a;return!(null!==e&&void 0!==e&&e.conceptPresentationId)||Number.isInteger(null!==(a=null===t||void 0===t?void 0:t.floatValue)&&void 0!==a?a:0)},Eu="SET_IVA_RATES",Iu="SET_IVA_RATES_LOADING",wu="SET_IVA_RATES_ERROR",Tu="SET_IVA_RATES_BY_ID",Pu="SET_IVA_RATES_BY_ID_LOADING",Ru="SET_IVA_RATES_BY_ID_ERROR",Nu={ivaRatesData:[],ivaRatesIdData:{},ivaRatesLoading:!1,ivaRatesIdLoading:!1,ivaRatesError:null,ivaRatesIdError:null},Lu=(e,t)=>{switch(t.type){case Eu:return{...e,ivaRatesData:t.payload,ivaRatesLoading:!1,ivaRatesError:null};case Iu:return{...e,ivaRatesLoading:!0,ivaRatesError:null};case wu:return{...e,ivaRatesLoading:!1,ivaRatesError:t.payload};case Tu:return{...e,ivaRatesIdData:t.payload,ivaRatesIdLoading:!1,ivaRatesIdError:null};case Pu:return{...e,ivaRatesIdLoading:!0,ivaRatesIdError:null};case Ru:return{...e,ivaRatesIdLoading:!1,ivaRatesIdError:t.payload};default:return e}};var ku=()=>{const[e,t]=Object(i.useReducer)(Lu,Nu);return{ivaRates:e.ivaRatesData,ivaRatesLoading:e.ivaRatesLoading,ivaRatesError:e.ivaRatesError,ivaRatesById:e.ivaRatesIdData,ivaRatesByIdLoading:e.ivaRatesIdLoading,ivaRatesByIdError:e.ivaRatesIdError,fetchIvaRates:async()=>{t({type:Iu});try{const e=await Ya.rates.getIvaRates();t({type:Eu,payload:e})}catch(e){t({type:wu,payload:e.message})}},fetchIvaRatesId:async e=>{let{id:a}=e;t({type:Pu});try{const e=await Ya.rates.getIvaRatesId(a);t({type:Tu,payload:e})}catch(i){t({type:Ru,payload:i.message})}}}};const Bu="GET_USER_CURRENCY_LOADING",Du="GET_USER_CURRENCY_SUCCESS",Fu="GET_USER_CURRENCY_ERROR",Mu="SET_MULTI_CURRENCY_ACTIVATION_LOADING",Vu="SET_MULTI_CURRENCY_ACTIVATION_SUCCESS",Wu="SET_MULTI_CURRENCY_ACTIVATION_ERROR",Hu="GET_MULTI_CURRENCY_STATUS_LOADING",Uu="GET_MULTI_CURRENCY_STATUS_SUCCESS",_u="GET_MULTI_CURRENCY_STATUS_ERROR",zu={userCurrency:null,userCurrencyLoading:!1,userCurrencyError:!1,userMultiCurrencyActivation:null,userMultiCurrencyActivationLoading:!1,userMultiCurrencyActivationError:!1,userMultiCurrencyStatus:null,userMultiCurrencyStatusLoading:!1,userMultiCurrencyStatusError:!1},qu=(e,t)=>{switch(t.type){case Bu:return{...e,userCurrencyLoading:!0,userCurrencyError:!1};case Du:return{...e,userCurrency:t.payload,userCurrencyLoading:!1};case Fu:return{...e,userCurrencyLoading:!1,userCurrencyError:t.payload};case Mu:return{...e,userMultiCurrencyActivationLoading:!0,userMultiCurrencyActivationError:!1};case Vu:return{...e,userMultiCurrencyActivation:t.payload,userMultiCurrencyActivationLoading:!1};case Wu:return{...e,userMultiCurrencyActivationLoading:!1,userMultiCurrencyActivationError:t.payload};case Hu:return{...e,userMultiCurrencyStatusLoading:!0,userMultiCurrencyStatusError:!1};case Uu:return{...e,userMultiCurrencyStatus:t.payload,userMultiCurrencyStatusLoading:!1};case _u:return{...e,userMultiCurrencyStatusLoading:!1,userMultiCurrencyStatusError:t.payload};default:return e}};var Gu=()=>{const[e,t]=Object(i.useReducer)(qu,zu),a=Object(i.useCallback)((async()=>{t({type:Bu});try{const e=await Ya.multiCurrency.getUserCurrency();return t({type:Du,payload:e}),e}catch(e){return t({type:Fu,payload:e.message}),null}}),[]),o=Object(i.useCallback)((async()=>{t({type:Mu});try{const e=await Ya.multiCurrency.postMultiCurrencyActivation();return t({type:Vu,payload:e}),e}catch(e){return t({type:Wu,payload:e.message}),null}}),[]),n=Object(i.useCallback)((async()=>{t({type:Hu});try{const e=await Ya.multiCurrency.getMultiCurrencyStatus();return t({type:Uu,payload:e}),e}catch(n){var e,a,i,o;const r=null===n||void 0===n||null===(e=n.response)||void 0===e||null===(a=e.data)||void 0===a||null===(i=a.error)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.code;return t({type:_u,payload:r}),r}}),[]);return{userCurrency:e.userCurrency,userCurrencyLoading:e.userCurrencyLoading,userCurrencyError:e.userCurrencyError,userMultiCurrencyActivation:e.userMultiCurrencyActivation,userMultiCurrencyActivationLoading:e.userMultiCurrencyActivationLoading,userMultiCurrencyActivationError:e.userMultiCurrencyActivationError,userMultiCurrencyStatus:e.userMultiCurrencyStatus,userMultiCurrencyStatusLoading:e.userMultiCurrencyStatusLoading,userMultiCurrencyStatusError:e.userMultiCurrencyStatusError,fetchUserCurrency:a,postUserMultiCurrencyActivation:o,fetchUserMultiCurrencyStatus:n}};const Yu=[{code:"DEFAULT_ERROR"}];function Ku(e){var t;let{handleCheckTriesLeft:a,limitations:o}=e;const{userData:n,jwt:r}=Object(i.useContext)(Qa),{permissionsRoles:s,rolSales:l,rolInventories:d}=Object(i.useContext)(Ka),u=null===n||void 0===n?void 0:n.account_plan,m=null===n||void 0===n?void 0:n.user_type,g=n,b={"Content-Type":"application/json",Authorization:r},[h,x]=Object(i.useState)(1),{datosFormulario:f,descriptiveFields:v}=Object(i.useContext)(rr),{load:j}=v,[A,C]=Object(i.useState)(""),[y,O]=Object(i.useState)(""),[S,E]=Object(i.useState)(null),[I,w]=Object(i.useState)(!1),[T,P]=Object(i.useState)(0),[R,N]=Object(i.useState)(0),[L,k]=Object(i.useState)(),[B,D]=Object(i.useState)(null),[F,M]=Object(i.useState)(null),[V,W]=Object(i.useState)(!1),[H,U]=Object(i.useState)(!1),[_,z]=Object(i.useState)(!1),[q,G]=Object(i.useState)(""),[Y,K]=Object(i.useState)(null),[X,Z]=Object(i.useState)(""),[Q,J]=Object(i.useState)(null),[$,ee]=Object(i.useState)(""),[te,ae]=Object(i.useState)(null),[ie,oe]=Object(i.useState)(""),[ne,re]=Object(i.useState)("Unique"),[se,le]=Object(i.useState)(!1),[ce,de]=Object(i.useState)([]),[ue,pe]=Object(i.useState)(!1),[me,ge]=Object(i.useState)(!1),be=Yi().props.value.dataUser,he=(null!=be&&be.useProductPresentations,Sc),xe=Ec,fe=s,ve=l,je=d,[Ae,Ce]=Object(i.useState)(!1),{ivaRatesLoading:ye,ivaRatesError:Oe,ivaRates:Se,fetchIvaRates:Ee}=ku();Object(i.useEffect)((()=>{Ee()}),[]),Object(i.useEffect)((()=>{j()}),[j]);const Ie=null===g||void 0===g?void 0:g.country,we=null===g||void 0===g?void 0:g.plan_name,Te=null===o||void 0===o||null===(t=o.skus)||void 0===t?void 0:t.available;function Pe(){x((e=>e+1))}function Re(){x((e=>e-1)),Object(c.b)(function(e){var t,a;return(null===(t={2:{P:{Unique:"Prod Unico step 2 - Volver",Variants:"Prod con Variante Step 2 - Volver"},S:{Unique:"Servicio Unico Step 2 - Volver",Variants:"Serv con Variante Step 2 - Volver"}},3:{P:{Unique:"Prod Unico step 3 - Volver",Variants:"Prod con Variante Step 3 - Volver"},S:{Unique:"Servicio Unico Step 3 - Volver",Variants:"Serv con Variante Step 3 - Volver"}},4:{P:{Unique:"Prod Unico step 4- Volver",Variants:"Prod con Variante Step 4 - Volver"},S:{Variants:"Serv con Variante Step 4 - Volver"}},5:{P:{Variants:"Prod con Variante Step 5 - Volver"}}}[e])||void 0===t||null===(a=t[f.option])||void 0===a?void 0:a[ne])||""}(h-1))}Object(i.useEffect)((()=>{K(null),J(null),ae(null)}),[h]),Object(i.useEffect)((()=>{C(f.option);const e=fe.hasOwnProperty("2"),t=fe.hasOwnProperty("8");if(e){const e=fe[2].includes(38);W(e)}if(t){const e=fe[8].includes(115);U(e)}"A"===m&&z(!0),"B"===m&&!0===ve&&!0===je&&z(!0),"C"===m&&!0===ve&&!0===je&&!0===V&&!0===H&&z(!0)}),[f.option,H,V,je,ve,fe]);const Ne=async()=>
1{if(Ce(!0),"A"===f.status){if(!await a())return void Ce(!1)}const e=["option","headingValue","personValue","purchaseValue","merchandisePlanValue","salePlanValue","internalCostValue","profitabilityValue","unitPriceValue","ivaDataValue","finalPrice","dataItems","currencySelected","stockValues","minStockValue","automaticPrice","lastCurrencySelected","RG5329Value","visibleValue","finalPriceWithoutRounding","attributesList","modifiedVariants","unitPriceForAll","ivaForAll","variants","initialRender","unitPriceNumber","internalCostNumber","internalCostTotal","ivaValue","profitabilityNumber","customProfitability","presentationsHideApplyToAll"];"cl"!==Ie&&"uy"!==Ie&&"py"!==Ie||e.push("RG5329");let t=(i=f,Object.fromEntries(Object.entries(i).filter((e=>{let[t,a]=e;return!(null===a||Array.isArray(a)&&0===a.length)}))));var i;"1"===S&&f.profitability>0&&(t.unitPrice=f.finalPriceWithoutRounding),function(e,t){for(const a of t)delete e[a]}(t,e),cc(t,f.fields,v);const o=lc(v.activeFields,t.fields),n=()=>{o&&Object(c.b)("Campos de productos - Crear producto",{campos_utilizados:o})};if("Variants"===ne&&I){const e=Us(f,S);t.internalCost=e.internalCost,t.profitability=e.profitability,t.unitPrice=e.unitPrice}if("Variants"!==ne&&xu(t,f,{conceptType:ne,getVariantKeyFn:ju}),"P"===f.option&&"Unique"===ne){delete t.comboItems,delete t.autoPrice,!1===_&&delete t.stock;const e=JSON.stringify(t),a=Object(aa.a)()+"products",i=e;ta.a.post(a,i,{headers:b}).then((e=>{n(),G(e),Object(c.b)("Prod Unico Step 4 - Guardar",{exito:!0}),window.open("/conceptos.aspx","_self")})).catch((e=>{K(e.response.data||Yu),console.log(e),Object(c.b)("Prod Unico Step 4 - Guardar",{exito:!1}),Ce(!1),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}if("S"===f.option&&"Unique"===ne){delete t.stock,delete t.comboItems,delete t.autoPrice;const e=JSON.stringify(t),a=Object(aa.a)()+"services",i=e;ta.a.post(a,i,{headers:b}).then((e=>{n(),Z(e),Object(c.b)("Servicio Unico Step 3 - Guardar",{"visibel mod venta":f.visible?"si":"no","alcanzado rg":f.RG5329?"si":"no",exito:!0}),window.open("/conceptos.aspx","_self")})).catch((e=>{J(e.response.data.error||Yu),console.log(e),Object(c.b)("Servicio Unico Step 3 - Guardar",{"visibel mod venta":f.visible?"si":"no","alcanzado rg":f.RG5329?"si":"no",exito:!1}),Ce(!1),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}if("C"===f.option&&"Unique"===ne){delete t.stock;const e=JSON.stringify(t),a=Object(aa.a)()+"combos",i=e;ta.a.post(a,i,{headers:b}).then((e=>{n(),ee(e),window.open("/conceptos.aspx","_self")})).catch((e=>{ae(e.response.data.error||Yu),Ce(!1),console.log(e),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}if("P"===f.option&&"Variants"===ne){delete t.comboItems,delete t.autoPrice,delete t.image,!1===_&&delete t.stock;let a=t.variant;const i=[...e,"autoPrice"];a=a.map((e=>{let t={...e};return"1"===S&&e.profitability>0&&(t.unitPrice=e.finalPriceWithoutRounding),i.forEach((e=>delete t[e])),t})),t.variant=a,xu(t,f,{conceptType:ne,getVariantKeyFn:ju});const o=JSON.stringify(t),r=Object(aa.a)()+"variants",s=o;K(null),ta.a.post(r,s,{headers:b}).then((e=>{n(),G(e),Object(c.b)("Prod con Variante Step 5 - Guardar",{exito:!0}),window.open("/conceptos.aspx","_self")})).catch((e=>{K(e.response.data||Yu),console.log(e),Object(c.b)("Prod con Variante Step 5 - Guardar",{exito:!1}),Ce(!1),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}if("S"===f.option&&"Variants"===ne){delete t.stock,delete t.comboItems,delete t.autoPrice,delete t.image;let a=t.variant;const i=[...e,"stock","minStock","autoPrice"];a=a.map((e=>{let t={...e};return"1"===S&&e.profitability>0&&(t.unitPrice=e.finalPriceWithoutRounding),i.forEach((e=>delete t[e])),t})),t.variant=a;const o=JSON.stringify(t),r=Object(aa.a)()+"variants",s=o;J(null),ta.a.post(r,s,{headers:b}).then((e=>{n(),Z(e),Object(c.b)("Serv con Variante Step 4 - Guardar",{"alcanzado rg":f.RG5329?"si":"no",exito:!0}),window.open("/conceptos.aspx","_self")})).catch((e=>{J(e.response.data||Yu),console.log(e),Object(c.b)("Serv con Variante Step 4 - Guardar",{"alcanzado rg":f.RG5329?"si":"no",exito:!1}),Ce(!1),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}},{responseData:Le,errorResponse:ke,isLoading:Be}=Di({url:Object(aa.a)()+"headings",method:"get",condition:!0}),[De,Fe]=Object(i.useState)(null),{responseData:Me,errorResponse:Ve,isLoading:We}=Di({url:Object(aa.a)()+"currencies",method:"get",condition:!0});Object(i.useEffect)((()=>
1{if(null!==Me){const e=Me.filter((e=>!0===e.enabled));(null===e||void 0===e?void 0:e.length)>1&&ge(!0)}else ge(!1)}),[Me]);const{responseData:He,errorResponse:Ue,isLoading:_e}=Di({url:Object(aa.a)()+"plans/purchase",method:"get",condition:u}),{responseData:ze,errorResponse:qe,isLoading:Ge}=Di({url:Object(aa.a)()+"plans/sale",method:"get",condition:u}),{responseData:Ye,errorResponse:Ke,isLoading:Xe}=Di({url:Object(aa.a)()+"plans/merchandise",method:"get",condition:u}),{responseData:Ze,errorResponse:Qe,isLoading:Je}=Di({url:Object(aa.a)()+"inventaries",method:"get",condition:_});Object(i.useEffect)((()=>{if(Se&&!ye&&!Oe){const e=$e(Se);M(e)}}),[Se]),Object(i.useEffect)((()=>{if(null!==Me||null!==Ve||Ve>=400){const e=null===Me||void 0===Me?void 0:Me.find((e=>e.default));Fe(e)}if(g){const e=g.country;if(null!==F){const e=null===F||void 0===F?void 0:F.find((e=>e.default));D(e)}"ar"===e?oe("https://app.contabilium.com/"):"cl"===e?oe("https://app.contabilium.cl/"):"uy"===e?oe("https://app.contabilium.com.uy/"):"py"===e&&oe("https://app.contabilium.com.py/"),null!==be&&(O(be.ivaCondition),E(be.useFinalPriceWithIva),w(ks(be.keepSamePriceForVariants)),P(be.amountRounding),N(Number(be.stockRounding)),k(Number(be.preferenceRounding)))}}),[y,g,be,F,Me,Ve,We]);const $e=e=>e.map((e=>({name:null!==e.rateDetail&&"ar"!==(null===g||void 0===g?void 0:g.country)?`${e.rateDetail.replace(".",",")} - ${e.iva.toString().replace(".",",")}`:`${e.iva.toString().replace(".",",")}`,value:e.iva,id:e.ivaRateId,default:e.default})));function et(e){let t;"string"!==typeof e?(t=e.target.value,re(t)):(t=e,re(t))}const tt=e=>{let{data:t,step:a}=e;if("Variants"===ne){(async e=>{let{body:t}=e;const a=`${Object(aa.a)()}step`,i=JSON.stringify(t);pe(!0);try{await ta.a.post(a,i,{headers:b}),de([]),Pe()}catch(r){var o,n;window.scrollTo({top:0,left:0,behavior:"smooth"}),le(!0),de((null===r||void 0===r||null===(o=r.response)||void 0===o||null===(n=o.data)||void 0===n?void 0:n.error)||Yu),console.log({error:r})}pe(!1)})({body:{...t,step:a}})}else Pe()},at={isVisibleErrorAlert:se,isLoadingStepValidation:ue,stepErrors:ce,handleCloseAlert:()=>{le(!1),de([])}};return Object(p.jsx)("div",{children:function(){switch(h){case 1:return Object(p.jsx)(lr,{nextStep:Pe,userPlan:we,userCountry:Ie,availableConcepts:Te});default:break;case 2:switch(A){case"P":return Object(p.jsx)(ds,{nextStep:Pe,lastStep:Re,option:"P",title:Ti.a.t("addNewProduct"),inputTitle:Ti.a.t("addProductName"),labelRadioButton:Ti.a.t("typeProduct"),dataHeadings:{dataHeadings:Le,errorHeadings:ke,loadingHeadings:Be},urlBase:ie,steps:"Unique"===ne?he:xe,activeStep:0,variantSelector:!0,handleTypeSelectorChange:et,conceptType:ne,jwtContext:g,dataCurrencies:Me,dataDefault:De,dataDefaultIva:B,showCurrency:!0,multiCurrency:me,showCodeInput:"Variants"===ne,validateStep:tt,...at,ivaCondition:y,userPlan:we,availableConcepts:Te,userCountry:Ie});case"S":return Object(p.jsx)(ds,{nextStep:Pe,lastStep:Re,option:"S",title:Ti.a.t("addNewService"),inputTitle:Ti.a.t("addServiceName"),labelRadioButton:Ti.a.t("typeService"),dataHeadings:{dataHeadings:Le,errorHeadings:ke,loadingHeadings:Be},urlBase:ie,steps:"Unique"===ne?wc:Ic,activeStep:0,variantSelector:!0,handleTypeSelectorChange:et,conceptType:ne,jwtContext:g,dataCurrencies:Me,dataDefault:De,showCurrency:!0,multiCurrency:me,validateStep:tt,showCodeInput:"Variants"===ne,dataDefaultIva:B,...at,userPlan:we,availableConcepts:Te,userCountry:Ie});case"C":return Object(p.jsx)(ds,{nextStep:Pe,lastStep:Re,option:"C",title:Ti.a.t("addNewCombo"),inputTitle:Ti.a.t("addComboName"),labelRadioButton:Ti.a.t("typeCombo"),dataHeadings:{dataHeadings:Le,errorHeadings:ke,loadingHeadings:Be},urlBase:ie,steps:Tc,jwtContext:g,dataDefault:De,dataDefaultIva:B,activeStep:0,dataCurrencies:Me,multiCurrency:me,showCurrency:!1,conceptType:ne,validateStep:tt})}break;case 3:switch(A){case"P":return"Unique"===ne?Object(p.jsx)(Ys,{nextStep:Pe,lastStep:Re,title:Ti.a.t("addNewProduct"),showstockSelect:!0,jwtContext:g,showAutomaticPrice:!1,dataCurrencies:Me,multiCurrency:me,dataDefault:De,userOptions:F,dataDefaultIva:B,useFinalPriceWithIva:S,userDecimal:T,showCurrency:!0,stockRounding:R,combo:!1,preferenceRounding:L,ivaCondition:y,showCodeb:!0,steps:he,activeStep:1}):Object(p.jsx)(vd,{type:"P",title:Ti.a.t("addNewProduct"),steps:xe,nextStep:Pe,lastStep:Re,isEdition:!1,keepSamePriceForVariants:I,useFinalPriceWithIva:S,validateStep:tt,...at,stepErrors:ce});case"S":return"Unique"===ne?Object(p.jsx)(Ys,{nextStep:Pe,lastStep:Re,title:Ti.a.t("addNewService"),showstockSelect:!1,jwtContext:g,showAutomaticPrice:!1,dataCurrencies:Me,multiCurrency:me,dataDefault:De,userOptions:F,dataDefaultIva:B,useFinalPriceWithIva:S,userDecimal:T,showCurrency:!0,stockRounding:R,combo:!1,preferenceRounding:L,ivaCondition:y,showCodeb:!1,steps:wc,activeStep:1}):Object(p.jsx)(vd,{type:"S",title:Ti.a.t("addNewService"),steps:Ic,nextStep:Pe,lastStep:Re,isEdition:!1,keepSamePriceForVariants:I,useFinalPriceWithIva:S,validateStep:tt,...at});case"C":return Object(p.jsx)(Pl,{nextStep:Pe,lastStep:Re,title:Ti.a.t("addNewCombo"),showstockSelect:!0,jwtContext:g,dataCurrencies:Me,multiCurrency:me,dataDefault:De,stockRounding:R,steps:Tc,activeStep:1})}break;case 4:switch(A){case"P":return"Unique"===ne?Object(p.jsx)(vc,{nextStep:Pe,lastStep:Re,title:Ti.a.t("addNewProduct"),sendForm:Ne,showstockSelect:!0,jwtContext:g,button:"Siguiente",send:_,conceptType:ne,sale:{dataSale:ze,errorSale:qe,loadingSale:Ge},purchase:{dataPurchase:He,errorPurchase:Ue,loadingPurchase:_e},merchandise:{dataMerchandise:Ye,errorMerchandise:Ke,loadingMerchandise:Xe},showInventaries:_,postProductsError:Y,postServicesError:Q,postProductsResponse:q,postServicesResponse:X,postComboResponse:$,postComboError:te,steps:he,activeStep:2}):Object(p.jsx)(Kd,{type:"P",title:Ti.a.t("addNewProduct"),steps:xe,ivaCondition:y,useFinalPriceWithIva:S,keepSamePriceForVariants:I,dataDefault:De,dataDefaultIva:B,preferenceRounding:L,userDecimal:T,userOptions:F,conceptType:ne,urlBase:F,multiCurrency:me,jwtContext:g,isEdition:!1,nextStep:Pe,lastStep:Re,validateStep:tt});case"S":return"Unique"===ne?Object(p.jsx)(vc,{nextStep:Pe,lastStep:Re,sendForm:Ne,title:Ti.a.t("addNewService"),showstockSelect:!1,jwtContext:g,button:"Guardar",send:!1,sale:{dataSale:ze,errorSale:qe,loadingSale:Ge},purchase:{dataPurchase:He,errorPurchase:Ue,loadingPurchase:_e},merchandise:{dataMerchandise:Ye,errorMerchandise:Ke,loadingMerchandise:Xe},postServicesError:Q,postProductsError:Y,postProductsResponse:q,postServicesResponse:X,postComboResponse:$,postComboError:te,saveLoading:Ae,steps:wc,activeStep:2,conceptType:ne}):Object(p.jsx)(Kd,{type:"S",title:Ti.a.t("addNewService"),steps:Ic,ivaCondition:y,useFinalPriceWithIva:S,keepSamePriceForVariants:I,dataDefault:De,dataDefaultIva:B,preferenceRounding:L,userDecimal:T,userOptions:F,multiCurrency:me,urlBase:F,jwtContext:g,isEdition:!1,nextStep:Pe,lastStep:Re,validateStep:tt});case"C":return Object(p.jsx)(Ys,{nextStep:Pe,lastStep:Re,title:Ti.a.t("addNewCombo"),showstockSelect:!0,jwtContext:g,showAutomaticPrice:!0,dataCurrencies:Me,multiCurrency:me,dataDefault:De,userOptions:F,dataDefaultIva:B,useFinalPriceWithIva:S,userDecimal:T,showCurrency:!1,stockRounding:R,combo:!0,preferenceRounding:L,ivaCondition:y,showCodeb:!0,steps:Tc,activeStep:2})}break;case 5:switch(A){case"P":return"Unique"===ne?Object(p.jsx)(Oc,{nextStep:void 0,primaryButtonText:Ti.a.t("save"),lastStep:Re,sendForm:Ne,title:Ti.a.t("addNewProduct"),showstockSelect:!0,jwtContext:g,dataInventaries:{dataInventaries:Ze,errorInventaries:Qe,loadingInventaries:Je},stockRounding:R,postServicesError:Q,postProductsError:Y,postProductsResponse:q,saveLoading:Ae,steps:he,activeStep:3}):Object(p.jsx)(vc,{nextStep:Pe,lastStep:Re,title:Ti.a.t("addNewProduct"),sendForm:Ne,showstockSelect:!0,jwtContext:g,button:"Siguiente",send:_,sale:{dataSale:ze,errorSale:qe,loadingSale:Ge},purchase:{dataPurchase:He,errorPurchase:Ue,loadingPurchase:_e},merchandise:{dataMerchandise:Ye,errorMerchandise:Ke,loadingMerchandise:Xe},showInventaries:_,postProductsError:Y,postServicesError:Q,postProductsResponse:q,postServicesResponse:X,postComboResponse:$,postComboError:te,steps:xe,activeStep:3,conceptType:ne});case"S":if("Variants"===ne)return Object(p.jsx)(vc,{nextStep:Pe,lastStep:Re,sendForm:Ne,title:Ti.a.t("addNewService"),showstockSelect:!1,jwtContext:g,button:"Guardar",send:!1,sale:{dataSale:ze,errorSale:qe,loadingSale:Ge},purchase:{dataPurchase:He,errorPurchase:Ue,loadingPurchase:_e},merchandise:{dataMerchandise:Ye,errorMerchandise:Ke,loadingMerchandise:Xe},postServicesError:Q,postProductsError:Y,postProductsResponse:q,postServicesResponse:X,postComboResponse:$,postComboError:te,saveLoading:Ae,steps:Ic,activeStep:3});break;case"C":return Object(p.jsx)(vc,{nextStep:Pe,lastStep:Re,sendForm:Ne,title:Ti.a.t("addNewCombo"),showstockSelect:!1,jwtContext:g,button:Ti.a.t("save"),send:!1,sale:{dataSale:ze,errorSale:qe,loadingSale:Ge},purchase:{dataPurchase:He,errorPurchase:Ue,loadingPurchase:_e},merchandise:{dataMerchandise:Ye,errorMerchandise:Ke,loadingMerchandise:Xe},postServicesError:Q,postProductsError:Y,postProductsResponse:q,postServicesResponse:X,postComboResponse:$,postComboError:te,steps:Tc,activeStep:3,saveLoading:Ae,conceptType:"Unique"})}break;case 6:if("P"!==A)return Object(p.jsx)(lr,{nextStep:Pe});if("Variants"===ne)return Object(p.jsx)(eu,{type:"P",title:Ti.a.t("addNewProduct"),steps:xe,activeStep:4,dataInventaries:{dataInventaries:Ze,errorInventaries:Qe,loadingInventaries:Je},dataDefault:De,preferenceRounding:L,stockRounding:R,userDecimal:T,userOptions:F,urlBase:F,jwtContext:g,isEdition:!1,lastStep:Re,sendForm:Ne,nextStep:void 0,primaryButtonText:Ti.a.t("save"),postProductsError:Y,saveLoading:Ae});case 7:A}}()})}var Xu=Ei((function(e){let{onRestrictedAction:t,limitations:a}=e;return Object(p.jsx)(or,{children:Object(p.jsx)(Ku,{handleCheckTriesLeft:t,limitations:a})})}),"skus",!1),Zu=a(366),Qu=a.n(Zu);const Ju=Object(u.a)((e=>({grid:{padding:"10px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontSize:"26px",marginLeft:"10px",fontWeight:"500"},titleIcon:{alignItems:"center"}})));var $u=()=>{const e=Ju();return Object(p.jsx)(v.a,{container:!0,className:e.grid,xs:12,md:12,lg:12,xl:12,children:Object(p.jsx)(v.a,{container:!0,item:!0,style:{marginLeft:0},className:e.container,justifyContent:"space-between",children:Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.titleIcon,children:[Object(p.jsx)(Qu.a,{}
1),Object(p.jsx)(cn.a,{className:e.title,children:Ti.a.t("Advertisements")})]})})})},ep=a(5),tp=a.n(ep),ap=a(722),ip=a(732),op=a(755),np=a(776);var rp=Object(jn.a)({palette:{primary:{main:"#00A692"},secondary:{main:"#131313"}},typography:{fontFamily:"Work Sans, sans-serif ",fontSize:13,fontWeight:400}});const sp=Object(u.a)((e=>({gridContainer:{flexGrow:1,backgroundColor:"#fff",padding:e.spacing(2),borderRadius:"5px",fontFamily:"Work Sans, sans-serif",marginBottom:"20px"},tab:{textTransform:"capitalize !important",fontSize:"13px"}})));np.a.propTypes={tabs:tp.a.array};var lp=e=>{const{tabs:t,activeTab:a=1,changeTab:o,cleanChangeTab:n=(()=>null)}=e,r=sp(),[s,l]=Object(i.useState)(a);Object(i.useEffect)((()=>{o&&l(o)}),[o]);return Object(p.jsx)(bn.a,{theme:rp,children:Object(p.jsx)(v.a,{className:r.gridContainer,sx:{width:"1290px",height:"1170px"},children:Object(p.jsx)(v.a,{container:!0,spacing:2,children:Object(p.jsx)(y.a,{sx:{width:"100%",typography:"body1"},children:Object(p.jsxs)(ap.a,{value:s,children:[Object(p.jsx)(y.a,{sx:{borderBottom:1,borderColor:"divider"},children:Object(p.jsx)(ip.a,{onChange:(e,t)=>
1{l(t),n&&n()},"aria-label":"lab API tabs example",indicatorColor:"primary",textcolor:"secondary",variant:"fullWidth",children:t&&t.map((e=>Object(p.jsx)(np.a,{label:e.label,value:e.value,className:r.tab,disabled:e.disabled,disableRipple:!0,idtab:e.id,onClick:()=>(e=>{const t=Yo();let a=JSON.parse(Object(H.b)(t));Object(c.b)("Sleekplan tab - "+e,{userId:a.data.userId,referred:!0,planName:a.data.plan_name})})(e.name)},e.id)))})}),t&&t.map((e=>Object(p.jsx)(op.a,{value:e.value,textcolor:"secondary",children:e.content})))]})})})})})};function cp(){const e=dp(),[t,a]=Object(i.useState)([]);Object(i.useEffect)((()=>{(async()=>{try{const e=(new L.a).get("Secure-1CBL"),t=Object(aa.a)()+"sleekplan/sso",a=await fetch(t,{method:"GET",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json;charset=UTF-8"}}),i=(await a.json()).token;o(i)}catch(e){console.error("error:",e)}})()}),[]);let o=Object(i.useCallback)((async t=>{try{a([{id:1,label:"NOVEDADES",value:1,name:"Novedades",content:Object(p.jsx)("embed",{src:"https://embed-148202430.sleekplan.app/#/changelog/",className:e.tabs}),disabled:!1},{id:2,label:"SUGERENCIAS",name:"Sugerencias",value:2,content:Object(p.jsx)("embed",{src:`https://embed-148202430.sleekplan.app?sso=${t}#/feedback`,className:e.tabs}),disabled:!1},{id:3,label:"PR\xd3XIMAS MEJORAS",name:"Pr\xf3ximos proyectos",value:3,content:Object(p.jsx)("embed",{src:`https://embed-148202430.sleekplan.app?sso=${t}#/roadmap`,className:e.tabs}),disabled:!1}])}catch(i){}}),[]);return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(v.a,{className:e.gridContainer,children:Object(p.jsx)(lp,{tabs:t})})})}const dp=Object(u.a)((e=>({gridContainer:{flexGrow:1,backgroundColor:"#fff",borderRadius:"5px",fontFamily:"Work Sans, sans-serif",marginBottom:"20px","@media (max-width: 600px)":{padding:0}},paper:{padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary,overflowY:"hidden"},accountPayPaper:{padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary,overflowY:"hidden","@media (max-width: 600px)":{padding:0}},container:{width:"840px",height:"340px",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:"22px",margin:"20px 19px 18px 20px",padding:0,borderRadius:"5px",backgroundColor:"#fff"},title:{fontFamily:"Work Sans, sans-serif",fontSize:"21px",fontWeight:"500",marginBottom:"10px"},subTitle:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:"400",marginBottom:"10px"},tabs:{width:"100%",height:"70vh",padding:0}}))),up=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",fontFamily:"Work Sans, sans-serif",display:"flex",flexDirection:"column",alignItems:"center","@media (min-width: 600px)":{margin:"0 20px"}},root2:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container:{width:"100%"},paper:{padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary,overflowY:"hidden"},accountPayPaper:{padding:e.spacing(1),textAlign:"center",color:e.palette.text.secondary,overflowY:"hidden","@media (max-width: 600px)":{padding:0}}})));function pp(){const e=up();return Object(p.jsx)(v.a,{className:e.container,children:Object(p.jsx)(v.a,{className:e.root,children:Object(p.jsxs)(v.a,{className:e.root2,children:[Object(p.jsx)($u,{}),Object(p.jsx)(cp,{})]})})})}var mp=a(367);const gp=(new L.a).get("Secure-1CBL"),bp=Object(u.a)((e=>({root:{flexGrow:1,fontFamily:"Work Sans, sans-serif",width:"100%"},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"20px",backgroundColor:"#FFFFFF",padding:"30px 40px","@media (max-width: 600px)":{padding:"20px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",height:"92px",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px",resize:" none",fontSize:"14px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},tooltipButton:{backgroundColor:"#fff",border:"none",padding:0,marginBottom:"4px"},tooltipButtonIVA:{backgroundColor:"#fff",border:"none",padding:0,marginLeft:"5px"}}))),hp=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var xp=e=>{var t;let{inputTitle:a,dataHeadings:o,urlBase:n,data:r,jwtContext:s,dataCurrencies:l,multiCurrency:c,showCurrency:d,dataDefault:u,showSKU:m}=e;const{datosFormulario:g,actualizarDatosFormulario:b}=Object(i.useContext)(rr),[h,x]=Object(i.useState)(g.name.trim()),[f,j]=Object(i.useState)(g.status||"A"),[A,C]=Object(i.useState)(!0),[y,O]=Object(i.useState)(g.headingId||null),[S,E]=Object(i.useState)(g.headingValue||null),[I,w]=Object(i.useState)(g.subHeadingId||null),[T,P]=Object(i.useState)(g.subHeadingValue||null),[R,N]=Object(i.useState)(g.description||""),[L,k]=Object(i.useState)(!0),[B,D]=Object(i.useState)(!0),[F,M]=Object(i.useState)([]),[,V]=Object(i.useState)(null),[W]=Object(i.useState)(!0),[H,U]=Object(i.useState)(!0),[_,z]=Object(i.useState)(null),[q,G]=Object(i.useState)(g.currencySelected||null),[,Y]=Object(i.useState)(""),[K,X]=Object(i.useState)(g.currencyId||0),[Z,Q]=Object(i.useState)(g.currencySelected||0),[J,$]=Object(i.useState)(!0),[ee,te]=Object(i.useState)(g.code.trim()||""),[ae,ie]=Object(i.useState)(!1),[oe,ne]=Object(i.useState)(!1),[re,se]=Object(i.useState)(!1),[le,ce]=Object(i.useState)(g.image||""),de=null===s||void 0===s?void 0:s.country,ue=null===s||void 0===s?void 0:s.plan_name,pe="C"===g.type,me=Object(i.useRef)(null),ge=bp();Object(i.useEffect)((()=>{"Prueba"!==ue&&"Freemium"!==ue||"ar"!==de||!pe?(ne(!1),j(g.status),C(!0)):(ne(!0),C(!1),j("I"))}),[]),Object(i.useEffect)((()=>{const e=F||[];
1if((null===e||void 0===e?void 0:e.length)>0&&I&&!T){const t=e.find((e=>e.id===I));z(t)}}),[F,I,T]),Object(i.useEffect)((()=>{if(y&&y!==me.current){(async()=>{try{const e=`${Object(aa.a)()}headings/subheadings/${y||(null===S||void 0===S?void 0:S.id)}`,t=await ta.a.get(e,{headers:{Authorization:`Bearer ${gp}`}});M(t.data),0===t.data.length&&(P(null),M([]))}catch(e){V(e)}})(),me.current=y}}),[y,T,S]),Object(i.useEffect)((()=>{"A"===g.status&&C(!0),"I"===g.status&&C(!1),F.length>0?U(!1):U(!0)}),[g.status,F]),Object(i.useEffect)((()=>{const e=o.dataHeadings.find((e=>e.id===g.headingId));E(e)}),[o.dataHeadings,g.headingId]);Object(i.useEffect)((()=>{k(""!==h),S&&y?D(!0):(D(!1),U(!0)),b({...g,name:h,status:f,description:R,headingId:y,subHeadingId:I,headingValue:S,subHeadingValue:T,currencySelected:q,currencyId:K})}),[h,f,R,y,I,S,T,q,K]);Object(i.useEffect)((()=>{null===q&&Y(u),null!==q&&Y(q),null===u||q||X(u.id)}),[q,u]),Object(i.useEffect)((()=>{if(null!==r&&void 0!==r&&r.currencyId){const e=l.find((e=>e.id===r.currencyId));Q(e)}}),[r]),Object(i.useEffect)((()=>{G(null===Z||void 0===Z?void 0:Z.symbol)}),[Z]),Object(i.useEffect)((()=>{$(""!==ee)}),[ee]);const{infoCard:be}=Ll({userCountry:de});return Object(p.jsxs)(v.a,{className:ge.root,children:[m&&Object(p.jsx)(v.a,{item:!0,style:{marginBottom:20},children:Object(p.jsx)(Nl,{...be})}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(hp,{children:Object(p.jsx)(mr,{placeholder:a,types:""+(L?"inputPrimary":"inputError"),errorMsg:`${L?"":Ti.a.t("requiredField")}`,showError:!0,required:!0,onChange:function(e){const t=Rr(e.target.value);x(t),b({...g,name:t})},onBlur:function(){""!==h&&k(!0)},maxLength:"500",value:h,children:Ti.a.t("title")})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(hp,{children:Object(p.jsx)(Pr,{label:Ti.a.t("category"),required:!0,type:""+(B&&y?"searchSelectConfiguration":"searchSelectConfigurationError"),errorMsg:`${B&&y?"":Ti.a.t("requiredField")}  ${W?"":Ti.a.t("headingsError")}`,showError:!0,placeholder:S?" ":Ti.a.t("selectCat"),data:o.dataHeadings,onChange:function(e,t){P(null),w(null),z(null),null!==t?O(t.id):(w(null),P(null)),E(t)},onBlur:function(){0!==y&&D(!0)},iconConfiguration:!0,hrefIcon:n+"rubros.aspx",disabled:0===(null===(t=o.dataHeadings)||void 0===t?void 0:t.length)&&!0,value:S,onSelectInputChange:e=>{""===e.target.value?(M([]),D(!1),O(null),E(null)):D(!0)}})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(hp,{children:Object(p.jsx)(Pr,{label:Ti.a.t("subcategory"),disabled:H,type:""+(null===y||0===F.length?"searchSelect":"searchSelectPrimary"),data:F,onChange:function(e,t){null!==t&&w(t.id),P(t)},onSelectInputChange:(e,t)=>
1{""===e.target.value&&(z(null),P(null),w(null))},placeholder:T||_?" ":Ti.a.t("selectSubCat"),value:T||_})})})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:4,children:[!0===c&&!0===d&&(null===Z||void 0===Z?void 0:Z.symbol)&&Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(hp,{children:Object(p.jsx)(Pr,{label:Ti.a.t("currency"),required:!0,type:"searchSelectPrimary",data:l,onChange:function(e,t){G(t),null!==t&&X(t.id)},defaultValue:Z,disabled:!0})})}),m&&Object(p.jsx)(v.a,{item:!0,xs:12,md:8,children:Object(p.jsx)(hp,{children:Object(p.jsx)(mr,{placeholder:Ti.a.t("condSKU2"),required:!0,types:""+(J?"inputPrimary":"inputError"),errorMsg:`${J?"":Ti.a.t("requiredField")}`,showError:!0,onChange:function(e){const t=Rr(e.target.value);te(t),b({...g,code:t})},onBlur:function(){""!==ee&&$(!0),b({...g,code:ee})},maxLength:"50",value:ee,children:Ti.a.t("condSKU")})})})]}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:4,children:Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsxs)(hp,{children:[Object(p.jsxs)(v.a,{style:{alignItems:"center"},container:!0,rowspacing:3,children:[Object(p.jsxs)(cn.a,{className:ge.label,children:[Object(p.jsx)("span",{className:ge.inputArterisk,children:"* "})," ",Ti.a.t("state")]}),("G"===g.type||"V"===g.type)&&Object(p.jsx)(cr.a,{title:Ti.a.t("variantStatusTooptip"),"aria-label":"Tooltip",placement:"top",arrow:!0,open:ae,onOpen:()=>ie(!0),onClose:()=>ie(!1),children:Object(p.jsx)("button",{className:ge.tooltipButtonIVA,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>ie(!ae)})})})]}),Object(p.jsx)(v.a,{children:Object(p.jsx)(fr,{label:!0,onChange:function(e){C(!A),!1===e.target.checked&&j("I"),!0===e.target.checked&&j("A")},checked:A,disabled:oe,children:Ti.a.t("active")})})]})})}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsxs)(hp,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:ge.label,style:{marginBottom:"5px"},children:Ti.a.t("description")})}),Object(p.jsx)(v.a,{children:Object(p.jsx)("textarea",{className:ge.textArea,onChange:function(e){const t=e.target.value;N(""!==t?t:null)},maxLength:"500",value:R})})]})})}),!m&&Object(p.jsx)(v.a,{container:!0,rowSpacing:3,columnSpacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(hp,{children:Object(p.jsx)(Lr,{helper2:Ti.a.t("selectImgByUrl"),iconName:"uploadImg",title:Ti.a.t("img"),uploadImageByUrl:!0,imageError:re,handleImageChange:e=>{let{url:t,error:a}=e;ce(t),se(a),b({...g,image:t,imageUrlError:a})},image:le})})})}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(hp,{children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:ge.footerForm,style:{marginBottom:"5px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:ge.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})})]})};const fp=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"10px",backgroundColor:"#FFFFFF",padding:"30px 40px","@media (max-width: 600px)":{padding:"20px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerStock:{display:"flex",alignItems:"center",height:"18px",marginBottom:"5px"},tooltipButton:{backgroundColor:"#fff",border:"none",padding:0,marginBottom:"4px"},tooltipButtonIVA:{backgroundColor:"#fff",border:"none",padding:0,marginLeft:"5px"},additionalPadding:{"@media (max-width: 600px)":{paddingTop:"10px"}}}))),vp=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var jp=function(e){let{dataConcepts:t,showstockSelect:a,jwtContext:o,showAutomaticPrice:n,dataCurrencies:r,dataDefault:s,dataDefaultIva:l,userOptions:c,useFinalPriceWithIva:d,userDecimal:u,showCurrency:m,multiCurrency:g,preferenceRounding:b,ivaCondition:h,ivaRateId:x,setIvaRateId:f,showCodeb:j,setInitialRenderFalse:C,initialRender:y,showSKU:O}=e;const{datosFormulario:S,actualizarDatosFormulario:E}=Object(i.useContext)(rr),{currencyData:I}=nr(),{tableData:w}
1=nr(),[T,P]=Object(i.useState)(S.code.trim()||""),[R,N]=Object(i.useState)(S.barcode||""),[L,k]=Object(i.useState)(((null===S||void 0===S?void 0:S.minStock)||"").toString().replace(".",",")),[B,D]=Object(i.useState)(S.minStock||0),[F,M]=Object(i.useState)(vs(null===S||void 0===S?void 0:S.internalCost,u)||""),[V,W]=Object(i.useState)(null),[H,U]=Object(i.useState)(vs(null===S||void 0===S?void 0:S.profitability,u)||""),[_,z]=Object(i.useState)(null),[,q]=Object(i.useState)(!0),[G,Y]=Object(i.useState)(""),[K,X]=Object(i.useState)((null===S||void 0===S?void 0:S.iva)||0),[Z,Q]=Object(i.useState)(null),[J,$]=Object(i.useState)(S.ivaDataValue||null),[ee,te]=Object(i.useState)(""),[ae,ie]=Object(i.useState)(!0),[oe,ne]=Object(i.useState)(!0),[,re]=Object(i.useState)(S.currencyId||0),[se,le]=Object(i.useState)(S.autoPrice?"Si":"No"),[ce,de]=Object(i.useState)(S.autoPrice),[ue,pe]=Object(i.useState)(0),[me,ge]=Object(i.useState)(0),[be,he]=Object(i.useState)(0),[xe,fe]=Object(i.useState)(S.currencySelected||0),[ve,je]=Object(i.useState)(""),[Ae,Ce]=Object(i.useState)(!1),[ye,Oe]=Object(i.useState)(0),[Se,Ee]=Object(i.useState)(0),[Ie,we]=Object(i.useState)(0),[Te,Pe]=Object(i.useState)(S.currencySelected||0),[Re,Ne]=Object(i.useState)(!0),[Le,ke]=Object(i.useState)(null),[Be,De]=Object(i.useState)(S.finalPriceWithoutRounding||0),[Fe,Me]=Object(i.useState)(!1),[Ve,We]=Object(i.useState)(""),[He]=Object(i.useState)(S.dataItems),[Ue,_e]=Object(i.useState)(""),ze=fp();Object(i.useEffect)((()=>{r&&_e(r.find((e=>e.id===t.currencyId)))}),[]);const qe=e=>{let{internalCostTotal:t,unitPriceTotal:a}=e;M(vs(t,u)),Oe(t),Ee(a),U("");const i=Es(hs(a,K),b);"1"===d?(Y(vs(i,u)),te(vs(a,u))):(te(vs(i,u)),Y(vs(a,u)))};function Ge(){(0===ue||isNaN(ue)||""===G)&&pe(bs(G));const e=vs(0,u),t=K||Z;if(Re)return;const a=""!==H&&"0"!==H&&"0"!==H[0];if(0===parseFloat(d))if("Si"===se)if(null===K){const e=hs(Se||Ie,l.value);te(vs(e,u))}else{const e=Es(hs(Se||Ie,t),b);te(vs(e,u))}else{if(!a&&""!==G&&null===K){const e=hs(ue,l.value);te(vs(e,u))}if(!a&&""!==G&&null!==K){if(""!==F&&0===Le){const e=fs(be,0,t,u),a=bs(vs(e.finalPriceWithoutIVA,u));pe(a);const i=Es(e.finalPriceWithIVA,b);return Y(vs(e.finalPriceWithoutIVA,u)),te(vs(i,u)),void ke(null)}if(isNaN(ue))return void te(e);const a=hs(ue,t);te(vs(a,u))}if(""===G&&a&&me>=0&&""===F&&(Y(e),te(e)),""!==G&&a&&me>=0&&""===F){if(isNaN(ue))return Y(e),void te(e);const a=fs(ue,me,t,u),i=Es(a.finalPriceWithIVA,b);Y(vs(a.finalPriceWithoutIVA,u)),te(vs(i,u))}if(a||""!==G||te(e),a&&0!==me&&""!==F&&null===K){const e=fs(be,me,l.value,u);Y(vs(e.finalPriceWithoutIVA,u)),te(vs(e.finalPriceWithIVA,u))}if(a&&0!==me&&""!==F&&null!==K){const e=fs(be,me,t,u),a=bs(vs(e.finalPriceWithoutIVA,u));pe(a);const i=Es(e.finalPriceWithIVA,b);Y(vs(e.finalPriceWithoutIVA,u)),te(vs(i,u))}}if(1===parseFloat(d))if("Si"===se){if(null===K){const e=hs(Se,l.value);Y(vs(e,u))}if(null!==K){const e=hs(Se,t),a=Es(e,b);De(ws(e,u)),Y(vs(a,u)),te(vs(Se,u))}}else{if(!a&&""!==G&&null===K){const e=xs(ue,l.value);te(vs(e,u))}if(!a&&""!==G&&null!==K){if(""!==F&&0===Le){Y(vs(be,u)),pe(be);const e=xs(ue,t);return te(vs(e,u)),void ke(null)}if(isNaN(ue))return void te(e);const a=xs(ue,t);te(vs(a,u))}if(a&&me>=0&&""===F&&(we(e),te(e)),a&&me>=0&&""===F&&""!==G){const e=Es(ue,b);De(ws(ue,u));const a=fs(ue,me,t,u);Y(vs(e,u));const i=vs(a.finalPriceWithoutIVA,u);te(i)}if(""===H&&""===Ie&&te(e),a&&0!==me&&""!==F&&null===K){const e=fs(be,me,l.value,u);Y(vs(e.finalPriceWithIVA,u)),te(vs(e.finalPriceWithoutIVA,u))}if(a&&0!==me&&""!==F&&null!==K){const e=fs(be,me,t,u),a=Es(e.finalPriceWithIVA,b);De(ws(e.finalPriceWithIVA,u)),Y(vs(a,u)),te(vs(e.finalPriceWithoutIVA,u))}}E({...S,unitPrice:Ie,unitPriceNumber:ue,unitPriceTotal:Se,internalCost:V,internalCostNumber:be,internalCostTotal:ye,profitability:_,profitabilityNumber:me,finalPrice:ee,minStock:B,iva:K,ivaDataValue:J,finalPriceWithoutRounding:Be})}Object(i.useEffect)((()=>{if(y&&S){const e=vs(null===S||void 0===S?void 0:S.finalPrice,u),t=vs(null===S||void 0===S?void 0:S.unitPrice,u);Y(t),te(e),pe(Is(t,u))}C(!1)}),[S]),Object(i.useEffect)((()=>{y||(Y(vs(null===S||void 0===S?void 0:S.unitPrice,u)),te(vs(null===S||void 0===S?void 0:S.finalPrice,u)),pe(vs(null===S||void 0===S?void 0:S.unitPrice,u)))}),[]),Object(i.useEffect)((()=>{D(bs(L||"0"))}),[L]),Object(i.useEffect)((()=>
1{E({...S,unitPrice:Ie,internalCost:V,finalPrice:ee,profitability:_,ivaRateId:x,finalPriceWithoutRounding:Be,minStockValue:L||"0",minStock:bs(L)||0,autoPrice:ce})}),[Ie,V,ee,_,Be,L,ce,x]),Object(i.useEffect)((()=>{ie(""!==T),ne(!!G)}),[T,G]),Object(i.useEffect)((()=>{if(!J||null===J){if(null!==t&&void 0!==t&&t.currencyId){const e=r.find((e=>e.id===t.currencyId));Pe(e)}null!==(null===S||void 0===S?void 0:S.ivaRateId)&&Ye()}}),[t,J,null===S||void 0===S?void 0:S.ivaRateId]),Object(i.useEffect)((()=>{fe(null===Te||void 0===Te?void 0:Te.symbol)}),[Te]),Object(i.useEffect)((()=>{setTimeout((()=>{Ne(!1)}),500)}),[]),Object(i.useEffect)((()=>{if("Si"===se&&He.length>0){const{internalCostTotal:e,unitPriceTotal:t}=Ss(He);qe({internalCostTotal:e,unitPriceTotal:t})}}),[]),Object(i.useEffect)((()=>{"NaN"===G&&Y("")}),[G]),Object(i.useEffect)((()=>{"NaN"===ee&&te("0")}),[ee]),Object(i.useEffect)((()=>{Ge()}),[K,G,H,F,me,Se,se]),Object(i.useEffect)((()=>{if("Si"===se){if(de(!0),w.length>0||He.length>0){const{internalCostTotal:e,unitPriceTotal:t}=Ss(w.length>0?w:He);qe({internalCostTotal:e,unitPriceTotal:t})}}else"No"===se&&de(!1);const e=H.toString().replace(/\./g,"").replace(/,/g,"."),t=parseFloat(e),a=F.toString().replace(/\./g,"").replace(/,/g,"."),i=parseFloat(a);ge(t),he(i);const n={ar:{currencyPrice:"$",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}},cl:{currencyPrice:"CLP",tooltipMap:{2:"tooltipIVACl2",5:"tooltipIVACl5",10:"tooltipIVACl10",1:"tooltipIVACl1",500:"tooltipIVACl500",1e3:"tooltipIVACl1000",default:"tooltipIVAClStandar"}},uy:{currencyPrice:"UYU",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}},py:{currencyPrice:"GS",tooltipMap:{2:"tooltipIVA2",5:"tooltipIVA5",10:"tooltipIVA10",1:"tooltipIVA1",default:"tooltipIVAStandar"}}},r=n[o.country]||n.default,{currencyPrice:l,tooltipMap:c}=r;je(l);const d=c[b]||c.default;We(Ti.a.t(d)),null===s||xe||S.currencySelected||(fe(null===s||void 0===s?void 0:s.symbol),re(null===s||void 0===s?void 0:s.id)),!1!==m||null===s||xe||(fe(null===I||void 0===I?void 0:I.symbol),re(null===s||void 0===s?void 0:s.id)),we(""!==G?bs(G):null),z(""!==H?bs(H):null),W(""!==F?bs(F):null)}),[s,F,o.country,H,G,I,se,G,L,S]);const Ye=()=>{if(null!==S&&void 0!==S&&S.ivaRateId&&c&&c.length>0){const e=c.find((e=>e.id===(null===S||void 0===S?void 0:S.ivaRateId)));e&&J!==e&&$(e)}},Ke=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e9},Xe="Si"===se||_>0||V>0&&_>0;return Object(p.jsxs)(v.a,{children:[Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[O&&Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(vp,{children:Object(p.jsx)(mr,{placeholder:Ti.a.t("
1condSKU2"),required:!0,types:""+(ae?"inputPrimary":"inputError"),errorMsg:`${ae?"":Ti.a.t("requiredField")}`,showError:!0,onChange:function(e){const t=Rr(e.target.value);P(t),E({...S,code:t})},onBlur:function(){""!==T&&ie(!0),E({...S,code:T})},maxLength:"50",value:T,children:Ti.a.t("condSKU")})})}),Object(p.jsx)(v.a,{xs:12,md:6,children:Object(p.jsx)(vp,{children:!1!==j&&Object(p.jsx)(mr,{types:"inputPrimary",onChange:function(e){const t=e.target.value;N(""!==t?t:null)},onBlur:()=>{E({...S,barcode:R})},maxLength:"128",value:R,children:Ti.a.t("barcode")})})})]}),!0===a&&Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{xs:12,md:6,children:Object(p.jsx)(vp,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("div",{className:ze.containerStock,children:[Object(p.jsxs)("label",{className:"inputlabel",style:{marginRight:"5px"},children:[" ",Ti.a.t("alertStock")]}),Object(p.jsx)(cr.a,{title:Ti.a.t("tooltipMinStock"),"aria-label":"Tooltip",placement:"top",arrow:!0,open:Ae,onOpen:()=>Ce(!0),onClose:()=>Ce(!1),children:Object(p.jsx)("button",{className:ze.tooltipButton,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>Ce(!Ae)})})})]}),Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:"input inputPrimary",onChange:function(e){k(e.target.value)},allowNegative:!1,decimalScale:0,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=1e4},value:L}),Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#131313"},children:Ti.a.t("alertMinStock")})]})})})})," ",!0===n&&se.length>0&&Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,style:{marginBottom:"10px"},children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,className:ze.additionalPadding,children:Object(p.jsx)(vp,{children:Object(p.jsxs)(v.a,{children:[Object(p.jsx)(ps,{RadioButtonLabel1:Ti.a.t("yes"),RadioButtonLabel2:Ti.a.t("no"),defaultValue:se,label:Ti.a.t("automaticPrice"),required:!0,type:"RadioButtonPrimary",onChange:function(e){e&&le(e.target.value),"No"===e.target.value&&(Y(""),te(vs(0,u)),M(""),M("")),E({...S,autoPrice:"No"!==e.target.value})}}),Object(p.jsx)("p",{className:"inputTextMsg",children:Ti.a.t("automaticPriceExp")})]})})})}),!0===g&&!0===m&&(null===Te||void 0===Te?void 0:Te.symbol)&&Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:ze.additionalPadding,children:Object(p.jsx)(vp,{children:Object(p.jsx)(Pr,{label:Ti.a.t("currency"),required:!0,type:"searchSelectPrimary",data:r,onChange:function(e,t){fe(null===t||void 0===t?void 0:t.symbol),null!==t&&re(null===t||void 0===t?void 0:t.id),E({...S,currencySelected:t||null,currencyId:null===t||void 0===t?void 0:t.id})},defaultValue:Te,disabled:!0})})})}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:ze.additionalPadding,children:Object(p.jsx)(vp,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("internalCost2")}),Object(p.jsx)(A.a,{disabled:"Si"===se&&!0,thousandSeparator:".",decimalSeparator:",",onChange:function(e){M(e.target.value),he(bs(e.target.value)),""===e.target.value&&U("")},allowNegative:!1,decimalScale:u,isAllowed:Ke,onBlur:()=>{F>0&&M(Is(F,u)),E({...S,internalCostValue:F})},value:void 0!==F&&null!==F?F:"Si"===se?ye:void 0,className:"input  "+("Si"===se?"inputDisabled":"inputIcons")}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"})]})})}),Object(p.jsx)(v.a,{xs:12,md:4,className:ze.additionalPadding,children:Object(p.jsx)(vp,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("costEffec")}),Object(p.jsx)(A.a,{disabled:"Si"===se||0===V||!F,thousandSeparator:".",decimalSeparator:",",maxLength:"11",className:"input  "+("Si"!==se&&0!==V&&F?"inputIcons":"inputDisabled"),onChange:function(e){U(e.target.value),z(bs(e.target.value)),""===e.target.value&&ke(0)},onBlur:function(e){H>0&&U(Is(H,u)),""===e.target.value||null===e.target.value||0===e.target.value?q(!0):q(!1),E({...S,profitabilityValue:H})}
1,allowNegative:!1,decimalScale:u,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e6},value:void 0!==H&&null!==H&&H}),Object(p.jsx)(ur,{className:"inputIconInside",name:"percentage"})]})})})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:ze.additionalPadding,children:Object(p.jsx)(vp,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ","1"===d?Ti.a.t("unitPrice2"):Ti.a.t("unitPrice"),"1"===d&&Object(p.jsx)(cr.a,{title:Ve,"aria-label":"Tooltip",placement:"top",arrow:!0,open:Fe,onOpen:()=>Me(!0),onClose:()=>Me(!1),children:Object(p.jsx)("button",{className:ze.tooltipButtonIVA,children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:"helpIcon",onClick:()=>Me(!Fe)})})})]}),Object(p.jsx)(A.a,{disabled:Xe,thousandSeparator:".",decimalSeparator:",",className:`input  \n                  ${(!1===oe||""===G)&&"inputIconsError"} \n                  ${Xe?"inputDisabled":"inputIcons"}`,onChange:function(e){Y(e.target.value),pe(bs(e.target.value))},onBlur:function(){Y(Is(G,u)),E({...S,unitPriceValue:G}),Ge()},allowNegative:!1,decimalScale:u,isAllowed:Ke,value:G}),Object(p.jsx)(ur,{className:"inputIconInside",name:"currency"}),oe||G?Object(p.jsx)("p",{className:"inputTextMsg"}):Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#f32465"},children:Ti.a.t("requiredField")})]})})}),J&&Object(p.jsx)(v.a,{xs:12,md:4,className:ze.additionalPadding,children:Object(p.jsx)(vp,{children:Object(p.jsx)(Pr,{icon:"percentage",label:Ti.a.t("IVAPer"),disabled:"MO"===h,required:!0,showIcon:!0,value:void 0!==J&&null!==J?J:l,type:"searchSelectPrimary",data:c,onChange:function(e,t){var a,i,o;if(null===t)return X(null===(a=c[0])||void 0===a?void 0:a.value),$(c[0]),Q(null===(i=c[0])||void 0===i?void 0:i.value),void f(null===(o=c[0])||void 0===o?void 0:o.id);X(null===t||void 0===t?void 0:t.value),f(null===t||void 0===t?void 0:t.id),$(t),Ge(),null!==t&&(Q(t.value),f(null===t||void 0===t?void 0:t.id),Ge())},onSelectInputChange:e=>{var t,a,i;if(""===e.target.value)return X(null===(t=c[0])||void 0===t?void 0:t.value),$(c[0]),Q(null===(a=c[0])||void 0===a?void 0:a.value),void f(null===(i=c[0])||void 0===i?void 0:i.id);if(c.some((t=>t.name===e.target.value))){const t=c.find((t=>t.name===e.target.value));null!==t&&(X(null===t||void 0===t?void 0:t.value),$(t),Q(null===t||void 0===t?void 0:t.value),f(null===t||void 0===t?void 0:t.id))}},onBlur:Ge,defaultValue:void 0!==J&&null!==J&&""!==J?J:l})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsxs)(vp,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{style:{marginBottom:"3px"},className:ze.label,children:"1"===d?Ti.a.t("finalPriceWoIVA"):Ti.a.t("finalPrice")})}),Object(p.jsxs)(v.a,{className:ze.containerText1,children:[Object(p.jsxs)(cn.a,{className:ze.text1,children:[!0===g&&Ue.symbol,!1===g&&ve]}),Object(p.jsx)(cn.a,{style:{marginLeft:"3px"},className:ze.text1,children:ee})]})]})})]}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(vp,{children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:ze.footerForm,style:{marginBottom:"5px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:ze.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})})]})};const Ap=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{backgroundColor:"#FFFFFF"},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",height:"92px",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px",resize:" none",fontSize:"14px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerAlert:{marginBottom:"10px"},searchSelectPadding:{"@media (max-width: 960px)":{paddingBottom:"25px !important"},"@media (max-width: 600px)":{paddingBottom:"15px !important"}}}))),Cp=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var yp=function(e){let{jwtContext:t,sale:a,purchase:o,merchandise:n,postServicesError:r,postProductsError:s,postComboError:l,conceptType:c}=e;const{datosFormulario:d,actualizarDatosFormulario:u}=Object(i.useContext)(rr),[m,g]=Object(i.useState)({oemCode:d.oemCode||"",purchasePlanId:d.purchasePlanId||null,purchaseValue:null,salePlanId:d.salePlanId||null,salePlanValue:null,merchandisePlanId:d.merchandisePlanId||null,merchandisePlanValue:null,visible:d.visible||null,visibleValue:d.visible?"Si":"No",RG5329:d.RG5329||null,RG5329V
1alue:d.RG5329?"Si":"No",observations:d.observations||"",personId:d.personId||null,personValue:d.personValue||null,providerCode:d.providerCode||null}),{oemCode:b,salePlanId:h,merchandisePlanId:x,visible:f,RG5329:j,observations:A,personId:C,purchaseValue:y,merchandisePlanValue:O,RG5329Value:S,visibleValue:E,salePlanValue:I,purchasePlanId:w,providerCode:T}=m,[P,R]=Object(i.useState)(!1),[N,L]=Object(i.useState)(null),[k,B]=Object(i.useState)(null),[D,F]=Object(i.useState)(null),M=Ap(),[V,W]=Object(i.useState)(""),H=Kn();Object(i.useEffect)((()=>{let e=H.data.country;"ar"===e&&W(e),"cl"===e&&W(e),"uy"===e&&W(e),"py"===e&&W(e)}),[H]);const{responseData:U}=Di({url:`${Object(aa.a)()+"people"}?id=${m.personId}`,method:"get",condition:!0});Object(i.useEffect)((()=>{const e=(null===a||void 0===a?void 0:a.dataSale)||[],t=null===d||void 0===d?void 0:d.salePlanId;if((null===e||void 0===e?void 0:e.length)>=1&&null!==d&&void 0!==d&&d.salePlanId){const a=e.find((e=>e.id===t));B(a)}}),[]),Object(i.useEffect)((()=>{const e=(null===n||void 0===n?void 0:n.dataMerchandise)||[],t=null===d||void 0===d?void 0:d.merchandisePlanId;if((null===e||void 0===e?void 0:e.length)>=1&&null!==d&&void 0!==d&&d.merchandisePlanId){const a=e.find((e=>e.id===t));L(a)}}),[]),Object(i.useEffect)((()=>{const e=(null===a||void 0===a?void 0:a.dataSale)||[],t=null===d||void 0===d?void 0:d.salePlanId;if((null===e||void 0===e?void 0:e.length)>=0&&null!==d&&void 0!==d&&d.salePlanId){const a=e.find((e=>e.id===t));B(a)}}),[]),Object(i.useEffect)((()=>{const e=(null===o||void 0===o?void 0:o.dataPurchase)||[],t=null===d||void 0===d?void 0:d.purchasePlanId;if((null===e||void 0===e?void 0:e.length)>=1&&null!==d&&void 0!==d&&d.purchasePlanId){const a=e.find((e=>e.id===t));F(a)}}),[]),Object(i.useEffect)((()=>{g({...m,oemCode:d.oemCode||"",purchasePlanId:d.purchasePlanId,salePlanId:d.salePlanId,merchandisePlanId:d.merchandisePlanId,visible:d.visible,visibleValue:d.visible?"Si":"No",RG5329:d.RG5329,RG5329Value:d.RG5329?"Si":"No",observations:d.observations||"",personId:d.personId||null,personValue:d.personValue||null,providerCode:d.providerCode||null})}),[]),Object(i.useEffect)((()=>{null!==s&&R(!0),null!==r&&R(!0),null!==l&&R(!0)}),[s,r,l]),Object(i.useEffect)((()=>{u({...d,...m})}),[j,x,A,b,C,w,h,f,P,T]);const _=(e,t)=>{"merchandise"===t&&""===e.target.value?(L(null),g({...m,merchandisePlanValue:null,merchandisePlanId:null})):"sale"===t&&""===e.target.value?(B(null),g({...m,salePlanValue:null,salePlanId:null})):"purchase"===t&&""===e.target.value&&(F(null),g({...m,purchaseValue:null,purchasePlanId:null}))},z=null===t||void 0===t?void 0:t.country,{infoCard:q}=Ll({userCountry:z}),G="cl"===z||"uy"===z||"py"===z||"ar"===z;return Object(p.jsx)(v.a,{className:M.container2,children:Object(p.jsxs)(v.a,{className:M.containerForm,children:["Unique"!==c&&Object(p.jsx)(v.a,{item:!0,style:{marginBottom:20},children:Object(p.jsx)(Nl,{...q})}),Object(p.jsx)(bc,{testIdPrefix:"attributes-edition-descriptive-fields"}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:["Unique"===c&&Object(p.jsx)(v.a,{item:!0,xs:12,md:G?4:6,children:Object(p.jsx)(Cp,{children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:function(e){g({...m,oemCode:e.target.value})},maxLength:"50",value:b,children:Ti.a.t("CodOEM")})})}),Object(p.jsx)(v.a,{xs:12,md:"Unique"===c?G?4:6:G?6:12,children:Object(p.jsx)(Cp,{className:M.searchSelectPadding,children:Object(p.jsx)(ul,{label:Ti.a.t("supplierOr"),type:"searchSelectPrimary",filter:"limit=5",initValue:(null===U||void 0===U?void 0:U.length)>0&&U[0].socialReason,url:Object(aa.a)()+"people",option2:"identificacionNumber",option1:"socialReason",placeholderL
1abel:Ti.a.t("selectSupplierOr"),onChange:e=>{g({...m,personValue:e,personId:(null===e||void 0===e?void 0:e.personId)||null})},selectTwoOptions:!0})})}),G&&Object(p.jsx)(v.a,{item:!0,xs:12,md:"Unique"===c?G?4:6:G?6:12,children:Object(p.jsx)(Cp,{children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:e=>{g({...m,providerCode:e.target.value})},maxLength:"50",value:T,children:Ti.a.t("providerCode")})})})]}),!0===t.account_plan&&Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Cp,{children:Object(p.jsx)(Pr,{label:Ti.a.t("purchaseAccount"),type:"searchSelectPrimary",purchaseValue:!0,placeholder:y||D?" ":Ti.a.t("selectAccount"),data:o.dataPurchase,onChange:function(e,t){g({...m,purchaseValue:t,purchasePlanId:(null===t||void 0===t?void 0:t.id)||null})},onSelectInputChange:(e,t)=>_(e,"purchase"),value:y||D,twoOptions:!0})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(Cp,{children:Object(p.jsx)(Pr,{label:Ti.a.t("accountSale"),type:"searchSelectPrimary",salePlanValue:!0,placeholder:I||k?" ":Ti.a.t("selectAccount"),data:a.dataSale,onChange:function(e,t){g({...m,salePlanValue:t,salePlanId:(null===t||void 0===t?void 0:t.id)||null})},onSelectInputChange:(e,t)=>
1_(e,"sale"),value:I||k,twoOptions:!0})})}),Object(p.jsx)(v.a,{xs:12,md:4,children:Object(p.jsx)(Cp,{children:Object(p.jsx)(Pr,{label:Ti.a.t("merchAccount"),type:"searchSelectPrimary",merchandisePlanValue:!0,placeholder:O||N?" ":Ti.a.t("selectAccount"),data:n.dataMerchandise,onChange:function(e,t){g({...m,merchandisePlanValue:t,merchandisePlanId:(null===t||void 0===t?void 0:t.id)||null})},onSelectInputChange:(e,t)=>_(e,"merchandise"),value:O||N,twoOptions:!0})})})]}),Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:["Unique"===c&&Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(Cp,{children:Object(p.jsx)(v.a,{children:Object(p.jsx)(ps,{RadioButtonLabel1:"Si",RadioButtonLabel2:"No",defaultValue:E,iconType:"helpIcon",label:Ti.a.t("visibleSalesMod"),type:"RadioButtonPrimary",onChange:function(e){const t="Si"===e.target.value;g({...m,visibleValue:e.target.value,visible:t})}})})})}),"ar"===V&&Object(p.jsx)(v.a,{xs:12,md:6,children:Object(p.jsx)(Cp,{children:Object(p.jsx)(v.a,{children:Object(p.jsx)(ps,{RadioButtonLabel1:"Si",RadioButtonLabel2:"No",defaultValue:S,iconType:"helpIcon",label:Ti.a.t("achievedRG"),type:"RadioButtonPrimary",onChange:function(e){const t="Si"===e.target.value;g({...m,RG5329Value:e.target.value,RG5329:t})}})})})})]}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsxs)(Cp,{children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:M.label,style:{marginBottom:"5px"},children:Ti.a.t("observations")})}),Object(p.jsx)(v.a,{children:Object(p.jsx)("textarea",{className:M.textArea,onChange:function(e){const t=e.target.value;g({...m,observations:""!==t?t:null})},maxLength:"500",value:A})})]})})})]})})};const Op=(e,t)=>(e-1)*Al+t,Sp=Object(u.a)((e=>({containerBtn:{display:"flex",justifyContent:"flex-start",marginTop:"1px",marginBottom:"1px","@media (max-width: 600px)":{marginTop:"1px"}},iconClear:{width:"15px"},containerAddTable:{"@media (min-width: 1310px)":{height:"100px"}},pagination:{display:"flex",justifyContent:"center"},additionalPadding:{"@media (max-width: 600px)":{paddingBottom:"10px"}}}))),Ep=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var Ip=function(e){let{currency:t,jwtContext:a,stockRounding:o,showTableComboError:n,comboItems:r,currencySelected:s,userDecimal:l}=e;const{datosFormulario:c,actualizarDatosFormulario:d}=Object(i.useContext)(rr),[u,m]=Object(i.useState)(r||[]),[g,b]=Object(i.useState)(""),[h,x]=Object(i.useState)(""),[f,j]=Object(i.useState)(!0),[C,y]=Object(i.useState)(""),{dataItems:O,setDataItems:S}=Object(i.useContext)(al),[E,I]=Object(i.useState)(null),[w,T]=Object(i.useState)(!1),[P,R]=Object(i.useState)(1),[N,L]=Object(i.useState)((null===s||void 0===s?void 0:s.id)||!1),{unitPriceTotal:k}=Ss(u);Object(i.useEffect)((()=>{r.length>0&&m(r)}),[r]),Object(i.useEffect)((()=>{k>=xl?n(gl):n()}),[k]),Object(i.useEffect)((()=>{(null===t||void 0===t?void 0:t.id)===N&&k<xl?(n(),V()):N&&(null===t||void 0===t?void 0:t.id)!==N&&(null===u||void 0===u?void 0:u.length)>0&&n(pl)}),[t]),Object(i.useEffect)((()=>{0===u.length&&(null===t||void 0===t?void 0:t.id)!==N&&k<xl&&(n(),L(null===t||void 0===t?void 0:t.id))}),[u]);const{valCant:B}=Object(i.useContext)(al),D=Sp(),F=Object(i.useRef)(null),M=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=fl},V=()=>{n(),b(""),x(null),y(""),I(""),F.current&&F.current()};Object(i.useEffect)((()=>{!1===B&&j(!1),u.length>=200&&T(!0)}),[u.length,B,u]);const W=u.slice(10*(P-1),10*P);return Object(i.useEffect)((()=>{let e;setTimeout((()=>{e=O.length>0&&(null===O||void 0===O?void 0:O.some((e=>Number(e.quantity)<=.001))),e&&n(jl)}),500)}),[O]),Object(i.useEffect)((()=>{0===W.length&&R(1===P?1:P-1),0===W.length&&(c.comboItems.length>0||c.dataItems.length>0)&&d({...c,comboItems:[],dataItems:[]})}),[W]),Object(p.jsxs)("div",{children:[Object(p.jsxs)("div",{children:[Object(p.jsxs)(v.a,{container:!0,rowspacing:3,columnspacing:3,className:D.containerAddTable,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:2,className:D.additionalPadding,children:Object(p.jsx)(Ep,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ",Ti.a.t("amount")]}),Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:""+(f?"input inputPrimary":"input inputError"),onValueChange:e=>{const{floatValue:t}=e;b(t)},onBlur:function(){""!==g&&j(!0)}
1,allowNegative:!1,decimalScale:o,isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=fl},value:g}),f?Object(p.jsx)("p",{className:"inputTextMsg"}):Object(p.jsx)("p",{className:"inputTextMsg",style:{color:"#f32465"},children:Ti.a.t("requiredField")})]})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:5,className:D.additionalPadding,children:Object(p.jsxs)(Ep,{children:[Object(p.jsx)(ul,{label:Ti.a.t("selectItem"),filter:""+(a?`distinct=type:c&limit=5&currency=${null===t||void 0===t?void 0:t.id}`:"distinct=type:c&limit=5"),type:"searchSelectPrimary",url:Object(aa.a)()+"concepts/filter",option2:"code",option1:"name",placeholderLabel:Ti.a.t("charactersToSearch"),onChange:e=>{x(null),y(null),null!==e?(x(e.name),y(e.description)):(x(null),y("")),I(e)},selectTwoOptions:!0,clearSearchRef:e=>{F.current=e}}),Object(p.jsx)(Ep,{})]})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:5,children:Object(p.jsx)(Ep,{children:Object(p.jsx)(mr,{disabled:!0,types:"inputDisabled2",value:C,children:Ti.a.t("description")})})})]}),Object(p.jsxs)(v.a,{container:!0,className:D.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"primary",variant:"contained",onClick:()=>{if(null===E||!E)return void j(!1);if(g<=.001)return j(!1),void n(jl);const e=u.some((e=>((null===e||void 0===e?void 0:e.code)||(null===e||void 0===e?void 0:e.sku))===(null===E||void 0===E?void 0:E.code))),a=[...u,{...E,quantity:g}],{isTotalItemsConditionMet:i,isConditionPrice:o}=yl(a);if(o)if(i){if(""!==E&&e&&(null===u||void 0===u?void 0:u.length)>0)n(vl);else if(""!==E&&N&&N!==(null===t||void 0===t?void 0:t.id))n(pl);else if(n(),L(null===t||void 0===t?void 0:t.id),d({...c,lastCurrencySelected:N}),g>.001){const e=E;if(e){const t={numero:u.length+1,quantity:g,code:e.code,internalCost:e.internalCost.toLocaleString("es-ES"),unitPrice:e.unitPrice.toLocaleString("es-ES"),name:h,id:e.id};m([...u,t]),S([...O,t]),b(""),x(""),y(""),I(null),F.current&&F.current()}}}else n(bl);else n(gl)},disabled:w,children:Ti.a.t("add")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{type:"secondary",variant:"contained",onClick:V,children:Ti.a.t("cancel")})})]})]}),Object(p.jsx)(Ks.a,{style:{marginTop:"40px",marginBottom:"50px"},sx:{th:{fontFamily:"Work Sans, sans-serif",fontSize:"0.875rem"},td:{fontFamily:"Work Sans, sans-serif",fontSize:"0.875rem"}},children:Object(p.jsxs)(Xs.a,{children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{children:"#"}),Object(p.jsx)(Js.a,{children:Ti.a.t("amount")}),Object(p.jsx)(Js.a,{style:{width:"20%"},children:Ti.a.t("SKU")}),Object(p.jsx)(Js.a,{style:{width:"25%"},children:Ti.a.t("item")}),Object(p.jsx)(Js.a,{children:Ti.a.t("internalCost")}),Object(p.jsx)(Js.a,{children:Ti.a.t("unitPrice")}),Object(p.jsx)(Js.a,{})]})}),Object(p.jsx)($s.a,{children:W.map(((e,t)=>Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{children:Op(P,t+1)}),Object(p.jsx)(Js.a,{children:Object(p.jsx)(A.a,{thousandSeparator:".",decimalSeparator:",",className:"input",style:{maxWidth:"100px"},value:e.quantity,isAllowed:M,onValueChange:e=>{const{floatValue:a}=e;(e=>{let{floatValue:t,index:a}=e;const i=Op(P,a);let o=[...O];o[i].quantity=t,S(o)})({floatValue:a,index:t})},allowNegative:!1,decimalScale:o})}),Object(p.jsx)(Js.a,{children:e.code||e.sku}),Object(p.jsx)(Js.a,{children:e.name}),Object(p.jsx)(Js.a,{style:{textAlign:"end"},children:Os(e.internalCost,l)}),Object(p.jsx)(Js.a,{style:{textAlign:"end"},children:Os(e.unitPrice,l)}),Object(p.jsx)(Js.a,{children:Object(p.jsx)(Qr.a,{disableRipple:!0,onClick:()=>(e=>{const t=Op(P,e);if(t>=0&&t<u.length){const e=[...u];e.splice(t,1),m(e);const a=[...O];a.splice(t,1),S(a),0===e.length&&R(P-1>0?P-1:1),P>1&&u.length<=Al&&R(P-1)}})(t),children:Object(p.jsx)(ni.a,{className:D.iconClear,name:"clear"})})})]},t)))})]})}),u.length>10&&Object(p.jsx)(el.a,{count:Math.ceil(u.length/10),page:P,onChange:(e,t)=>
1{R(t)},className:D.pagination,renderItem:e=>Object(p.jsx)(tl.a,{...e,disableRipple:!0})})]})};const wp=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"10px",backgroundColor:"#FFFFFF","@media (max-width: 600px)":{padding:"0px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerAlert:{marginTop:15,marginBottom:25}}))),Tp=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var Pp=function(e){let{jwtContext:t,dataCurrencies:a,multiCurrency:o,dataDefault:n,stockRounding:r,dataConcepts:s,userDecimal:l}=e;const{datosFormulario:c,actualizarDatosFormulario:d}=Object(i.useContext)(rr),{setCurrencyData:u}=nr(),{setTableData:m}=nr(),[g,b]=Object(i.useState)(""),[h,x]=Object(i.useState)(!0),[f,j]=Object(i.useState)(a.find((e=>e.id===s.currencyId))||null),[A,C]=Object(i.useState)(),[y,O]=Object(i.useState)(c.currencyId),[S,E]=Object(i.useState)([]),[I,w]=Object(i.useState)(c.comboErrors||[]),[T,P]=Object(i.useState)(!1),[R,N]=Object(i.useState)(!1),[L,k]=Object(i.useState)(!0);Object(i.useEffect)((()=>{let e=[];""===c.dataItems?(s.comboItems.map(((t,a)=>e[a]={code:t.sku,id:parseInt(t.item),internalCost:t.internalCost,quantity:t.quantity,name:t.name,numero:a+1,unitPrice:t.unitPrice})),b(e)):b(c.dataItems),O(s.currencyId)}),[]),Object(i.useEffect)((()=>{var e;(null===(e=I[0])||void 0===e?void 0:e.code)!==pl||D(ml)}),[I]),Object(i.useEffect)((()=>{const{isConditionMet:e,isConditionPrice:t,isTotalItemsConditionMet:a}=yl(g);N(e),k(t),!a&&e?D(bl):!1===t&&g.length>0?D(gl):!1===e&&g.length>0&&t&&I.length>0&&I[0].code!==gl&&D(hl)}),[g,c]),Object(i.useEffect)((()=>{""!==g&&0!==g.length||0!==s.comboItems.length?(d({...c,comboItems:S,dataItems:g}),u(A),m(g),x(!0)):x(!1)}),[g,L,R]);const B=wp();Object(i.useEffect)((()=>{if(null===f&&C(n),null!==f&&C(f),null!==n&&O(n.id),Array.isArray(g)&&g.length>0){const e=g.map((e=>{let{quantity:t,id:a,item:i}=e;return{quantity:isNaN(t)?parseFloat(null===t||void 0===t?void 0:t.replace(/\./g,"").replace(",","."))||0:t,item:a||i}}));E(e),d({...c,comboItems:e,dataItems:g})}}),[f,n,g]);const D=e=>{e?(P(!0),w([{code:e}]),window.scrollTo({top:0,left:0,behavior:"smooth"})):(P(!1),w([]))};return Object(p.jsxs)(al.Provider,{value:{dataItems:g,setDataItems:b,valCant:h,setValeCant:x},children:[T&&Object(p.jsx)(v.a,{className:B.containerAlert,children:Object(p.jsx)(os,{errors:I,onCloseAlert:function(){P(!1)}})}),Object(p.jsxs)(v.a,{className:B.containerForm,children:[!0===o&&Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Tp,{children:Object(p.jsx)(Pr,{disabled:!0,label:Ti.a.t("currency"),required:!0,type:"searchSelectPrimary",data:a,onChange:function(e,t){j(t),null!==t&&O(t.id),d({...c,currencySelected:f,currencyId:y})},defaultValue:f||n})})}),Object(p.jsx)(Ip,{currency:A,jwtContext:o,stockRounding:r,showTableComboError:D,comboItems:g,currencySelected:f,userDecimal:l}),Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(Tp,{children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:B.footerForm,style:{marginBottom:"5px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:B.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})})]})]})};const Rp=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"0px",backgroundColor:"#FFFFFF","@media (max-width: 600px)":{padding:"20px"}},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}}})));var Np=e=>{let{jwtContext:t,dataCurrency:a,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,useProductPresentations:s=!1,keepSamePriceForVariants:l,userDecimal:c,stockRounding:d,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showInventaries:x,dataHeadings:f,errorHeadings:j,loadingHeadings:A,dataPurchase:C,errorPurchase:y,loadingPurchase:O,dataSale:S,errorSale:E,loadingSale:I,dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P,postProductsResponse:R,postProductsError:N,postServicesResponse:L,postServicesError:k,multiCurrency:B,postComboResponse:D,postComboError:F,urlBase:M,setInitialRenderFalse:V,initialRender:W,activeTab:H,variantId:U,sendForm:_,filters:z,validateStepEdition:q,changeTab:G,cleanChangeTab:Y,saveLoading:K,isLoadingStepValidation:X}=e;const Z=Rp(),Q=[{label:Ti.a.t("mainInformation"),content:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,dataDefault:i,jwtContext:t,dataCurrencies:a,multiCurrency:B,option:"P",showCurrency:!1,showSKU:!1,conceptType:"Unique"}),value:1},{label:Ti.a.t("priceDetail"),content:Object(p.jsx)(jp,{showstockSelect:!0,showAutomaticPrice:!1,showCurrency:!0,showSKU:!0,combo:!1,jwtContext:t,dataCurrencies:a,multiCurrency:B,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,userDecimal:c,stockRounding:d,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showCodeb:!0,setInitialRenderFalse:V,initialRender:W}),value:2},{label:Ti.a.t("AdditionalInfo"),content:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!0,jwtContext:t,send:x,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},showInventaries:x,postProductsError:N,postServicesError:k,postProductsResponse:R,postServicesResponse:L,postComboResponse:D,postComboError:F,conceptType:"Unique"}),value:3}];const J=[{label:Ti.a.t("mainInformation"),content:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,option:"P",dataCurrencies:a,multiCurrency:B,jwtContext:t,dataDefault:i,showCurrency:!0,showSKU:!0,conceptType:"Variants"}),value:1},{label:Ti.a.t("attributes"),content:Object(p.jsx)(vd,{type:"P",isEdition:!0,keepSamePriceForVariants:l,useFinalPriceWithIva:r,validateStepEdition:q,isLoadingStepValidation:X}),value:2},{label:Ti.a.t("priceDetail"),content:Object(p.jsx)(Kd,{type:"P",ivaCondition:m,useFinalPriceWithIva:r,keepSamePriceForVariants:l,dataDefault:i,dataDefaultIva:n,preferenceRounding:u,userDecimal:c,userOptions:o,conceptType:"Variants",urlBase:o,jwtContext:t,data:h,multiCurrency:B,isEdition:!0,variantId:U,sendForm:_,filters:z,saveLoading:K,postProductsError:N,postServicesError:k}),value:3},{label:Ti.a.t("AdditionalInfo"),content:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!0,jwtContext:t,send:x,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},showInventaries:x,postProductsError:N,postServicesError:k,postProductsResponse:R,postServicesResponse:L,postComboResponse:D,postComboError:F,conceptType:"Variants"}),value:4}];const $=[{label:Ti.a.t("mainInformation"),content:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,option:"S",dataCurrencies:a,multiCurrency:B,jwtContext:t,dataDefault:i,showCurrency:!0,showSKU:!0,conceptType:"Variants"}),value:1},{label:Ti.a.t("attributes"),content:Object(p.jsx)(vd,{type:"S",isEdition:!0,keepSamePriceForVariants:l,useFinalPriceWithIva:r,validateStepEdition:q,isLoadingStepValidation:X}),value:2},{label:Ti.a.t("priceDetail"),content:Object(p.jsx)(Kd,{type:"S",ivaCondition:m,useFinalPriceWithIva:r,keepSamePriceForVariants:l,dataDefault:i,dataDefaultIva:n,preferenceRounding:u,userDecimal:c,multiCurrency:B,userOptions:o,conceptType:"Variants",urlBase:o,jwtContext:t,isEdition:!0,variantId:U,sendForm:_,filters:z,saveLoading:K,postProductsError:N,postServicesError:k}),value:3},{label:Ti.a.t("AdditionalInfo"),content:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!0,jwtContext:t,send:x,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},showInventaries:x,postProductsError:N,postServicesError:k,postProductsResponse:R,postServicesResponse:L,postComboResponse:D,postComboError:F,conceptType:"Variants"}),value:4}],ee=[{label:Ti.a.t("mainInformation"),content:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,dataDefault:i,jwtContext:t,dataCurrencies:a,multiCurrency:B,option:"S",showCurrency:!1,showSKU:!1,conceptType:"Unique"}),value:1},{label:Ti.a.t("priceDetail"),content:Object(p.jsx)(jp,{showstockSelect:!1,showAutomaticPrice:!1,showCurrency:!0,showSKU:!0,combo:!1,jwtContext:t,dataCurrencies:a,multiCurrency:B,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,userDecimal:c,stockRounding:d,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showCodeb:!1,setInitialRenderFalse:V,initialRender:W}),value:2},{label:Ti.a.t("AdditionalInfo"),content:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!0,jwtContext:t,send:x,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},showInventaries:x,postProductsError:N,postServicesError:k,postProductsResponse:R,postServicesResponse:L,postComboResponse:D,postComboError:F,conceptType:"Unique"}),value:3}],te=[{label:Ti.a.t("mainInformation"),content:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,option:"C",jwtContext:t,dataDefault:i,dataCurrencies:a,multiCurrency:B,showCurrency:!1,showSKU:!1,conceptType:"Unique"}),value:1}
1,{label:Ti.a.t("comboItems"),content:Object(p.jsx)(Pp,{showstockSelect:!0,jwtContext:t,dataCurrencies:a,multiCurrency:B,dataDefault:i,stockRounding:d,dataConcepts:h,userDecimal:c}),value:2},{label:Ti.a.t("priceDetail"),content:Object(p.jsx)(jp,{showstockSelect:!0,showAutomaticPrice:!0,showCurrency:!1,combo:!1,jwtContext:t,dataCurrencies:a,multiCurrency:B,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,userDecimal:c,stockRounding:d,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showCodeb:!0,showSKU:!0,setInitialRenderFalse:V,initialRender:W}),value:3},{label:Ti.a.t("AdditionalInfo"),content:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!1,jwtContext:t,send:!1,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},postServicesError:k,postProductsError:N,postProductsResponse:R,postServicesResponse:L,postComboResponse:D,postComboError:F,conceptType:"Unique"}),value:4}];return Object(p.jsx)(v.a,{className:Z.root,children:Object(p.jsx)(v.a,{className:Z.container,children:Object(p.jsx)(v.a,{className:Z.container2,children:Object(p.jsx)(v.a,{className:Z.containerForm,children:null!==h&&Object(p.jsxs)(p.Fragment,{children:["P"===h.type&&Object(p.jsx)(lp,{tabs:Q,cleanChangeTab:Y,changeTab:G,activeTab:H}),"C"===h.type&&Object(p.jsx)(lp,{tabs:te}),"S"===h.type&&Object(p.jsx)(lp,{tabs:ee}),"V"===h.type&&Object(p.jsx)(lp,{cleanChangeTab:Y,changeTab:G,activeTab:H,tabs:J}),"G"===h.type&&Object(p.jsx)(lp,{cleanChangeTab:Y,changeTab:G,activeTab:H,tabs:$})]})})})})})},Lp=a(747),kp=a(777),Bp=a(778);const Dp="#00A692",Fp="#131313",Mp="#666666",Vp="#666666",Wp=Object(T.a)((e=>Object(p.jsx)(Lp.a,{disableGutters:!0,elevation:0,square:!0,...e})))((e=>{let{theme:t}=e;return{borderBottomWidth:1,borderColor:"#DDDDDD",borderBottomStyle:"solid","&:not(:last-child)":{},"&:first-child":{borderTopLeftRadius:5,borderTopRightRadius:5},"&:last-child":{borderBottomLeftRadius:5,borderBottomRightRadius:5,borderBottomWidth:0},"&:before":{display:"none"},"& .Mui-expanded":{borderBottomWidth:2,borderColor:Dp,borderBottomStyle:"solid"}}})),Hp=Object(T.a)((e=>Object(p.jsx)(kp.a,{expandIcon:Object(p.jsx)("div",{children:Object(p.jsx)("i",{className:"la la-angle-up"})}),...e})))((e=>{let{theme:t}=e;return{"& .MuiTypography-body1":{fontFamily:"Work Sans, sans-serif",fontSize:"13px",lineHeight:"18px",color:Mp},"& .Mui-expanded .MuiTypography-body1":{color:Fp},"& .la":{color:Vp,fontSize:"18px"},backgroundColor:"dark"===t.palette.mode?"rgba(255, 255, 255, .05)":"#fff",flexDirection:"row","& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(360deg)"},"& .MuiAccordionSummary-expandIconWrapper":{transform:"rotate(180deg)"},"& .MuiAccordionSummary-content":{marginLeft:5,alignItems:"center",marginTop:22.5,marginBottom:22.5},"& .Mui-expanded":{borderBottomWidth:" 0 !important"}}})),Up=Object(T.a)(Bp.a)((e=>{let{theme:t}=e;return{padding:20,borderTop:"1px solid rgba(0, 0, 0, .125)"}}));var _p=e=>{let{titleIcon:t="",accordionList:a=[],activeAccordion:o="",changeAccordion:n="",customTitleStyle:r={},customTitleContainerStyle:s={},collapseBodyStyle:l={},accordionContainerStyle:c={},noStyledAccordion:d=!1,persistentExpansion:u=!1,cleanChangeAccordion:m=(()=>null),handleAccordionChange:g=(()=>null),onExpandedClick:b=(()=>{})}=e;const[h,x]=Object(i.useState)((()=>{var e;return u?o?[o]:[]:o||(null===(e=a[0])||void 0===e?void 0:e.title)||""}));return Object(i.useEffect)((()=>{u?o&&Array.isArray(h)&&!h.includes(o)&&x((e=>[...e,o])):n&&x(n)}),[o,n,u]),Object(p.jsx)("div",{style:{width:"100%"},className:d?"accordion-container":"accordion-container MuiPaper-elevation2",children:null===a||void 0===a?void 0:a.map((e=>{const{title:a,children:i,onClick:o}=e,n=u?h.includes(a):h===a;return Object(p.jsxs)(Wp,{style:c,expanded:n,onChange:()=>(e=>{const t=e.title,a=u?null===h||void 0===h?void 0:h.includes(t):h===t;if(!a&&"function"===typeof b&&b(t),u)x((e=>a?e.filter((e=>e!==t)):[...e,t]));else{const e=a?"":t;x(e),g({expanded:e,panel:t}),m&&m()}})(e),children:[Object(p.jsxs)(Hp,{style:s,expandIcon:Object(p.jsx)("div",{children:Object(p.jsx)("i",{className:"la la-angle-up"})}),children:[Boolean(t)&&Object(p.jsx)(ni.a,{name:t,style:{color:"#666666",width:15,height:20,overflow:"visible",marginRight:15,marginTop:-5}}),Object(p.jsx)(cn.a,{sx:{width:"33%",flexShrink:0},style:r,children:a})]}),Object(p.jsx)(Up,{style:l,children:i})]},a)}))})};const zp=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"20px",backgroundColor:"#FFFFFF","@media (max-width: 600px)":{padding:"20px"}}})));var qp=e=>{let{jwtContext:t,dataCurrency:a,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,useProductPresentations:s=!1,keepSamePriceForVariants:l,userDecimal:c,stockRounding:d,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showInventaries:x,dataHeadings:f,errorHeadings:j,loadingHeadings:A,dataPurchase:C,errorPurchase:y,loadingPurchase:O,dataSale:S,errorSale:E,loadingSale:I,dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P,postProductsResponse:R,postProductsError:N,postServicesResponse:L,postServicesError:k,postComboResponse:B,postComboError:D,multiCurrency:F,urlBase:M,setInitialRenderFalse:V,initialRender:W,activeAccordion:H,variantId:U,sendForm:_,filters:z,validateStepEdition:q,changeAccordion:G,cleanChangeAccordion:Y,saveLoading:K,isLoadingStepValidation:X}=e;const Z=zp(),Q=[{title:Ti.a.t("mainInformation"),children:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,dataDefault:i,jwtContext:t,dataCurrencies:a,multiCurrency:F,option:"P",showCurrency:!1,showSKU:!1,conceptType:"Unique"}),value:1},{title:Ti.a.t("priceDetail"),children:Object(p.jsx)(jp,{showstockSelect:!0,showAutomaticPrice:!1,showCurrency:!0,showSKU:!0,combo:!1,jwtContext:t,dataCurrencies:a,multiCurrency:F,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,userDecimal:c,stockRounding:d,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showCodeb:!0,setInitialRenderFalse:V,initialRender:W}),value:2},{title:Ti.a.t("AdditionalInfo"),children:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!0,jwtContext:t,send:x,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},showInventaries:x,postProductsError:N,postServicesError:k,postProductsResponse:R,postServicesResponse:L,postComboResponse:B,postComboError:D,conceptType:"Unique"}),value:3}];const J=[{title:Ti.a.t("mainInformation"),children:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,option:"P",dataCurrencies:a,multiCurrency:F,jwtContext:t,dataDefault:i,showCurrency:!0,showSKU:!0,conceptType:"Variants"}),value:1},{title:Ti.a.t("attributes"),children:Object(p.jsx)(vd,{type:"P",isEdition:!0,keepSamePriceForVariants:l,useFinalPriceWithIva:r,validateStepEdition:q,isLoadingStepValidation:X}),value:2},{title:Ti.a.t("priceDetail"),children:Object(p.jsx)(Kd,{type:"P",ivaCondition:m,useFinalPriceWithIva:r,keepSamePriceForVariants:l,dataDefault:i,dataDefaultIva:n,preferenceRounding:u,userDecimal:c,userOptions:o,conceptType:"Variants",urlBase:o,jwtContext:t,multiCurrency:F,data:h,isEdition:!0,variantId:U,sendForm:_,filters:z,saveLoading:K}),value:3},{title:Ti.a.t("AdditionalInfo"),children:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!0,jwtContext:t,send:x,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},showInventaries:x,postProductsError:N,postServicesError:k,postProductsResponse:R,postServicesResponse:L,postComboResponse:B,postComboError:D,conceptType:"Variants"}),value:4}];const $=[{title:Ti.a.t("mainInformation"),children:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,dataDefault:i,jwtContext:t,dataCurrencies:a,multiCurrency:F,option:"S",showCurrency:!1,showSKU:!1,conceptType:"Unique"}),value:1},{title:Ti.a.t("priceDetail"),children:Object(p.jsx)(jp,{showstockSelect:!1,showSKU:!0,jwtContext:t,showAutomaticPrice:!1,dataCurrencies:a,multiCurrency:F,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,userDecimal:c,showCurrency:!0,stockRounding:d,combo:!1,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showCodeb:!1,setInitialRenderFalse:V,initialRender:W}),value:2},{title:Ti.a.t("AdditionalInfo"),children:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!1,jwtContext:t,send:!1,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},postServicesError:k,postProductsError:N,postProductsResponse:R,postServicesResponse:L,postComboResponse:B,postComboError:D,conceptType:"Unique"}),value:3}],ee=[{title:Ti.a.t("mainInformation"),children:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,option:"S",dataCurrencies:a,multiCurrency:F,jwtContext:t,dataDefault:i,showCurrency:!0,showSKU:!0,conceptType:"Variants"}),value:1},{title:Ti.a.t("attributeConfig"),children:Object(p.jsx)(vd,{type:"S",isEdition:!0,keepSamePriceForVariants:l,useFinalPriceWithIva:r,validateStepEdition:q,isLoadingStepValidation:X}),value:2},{title:Ti.a.t("variantsConfig"),children:Object(p.jsx)(Kd,{type:"S",ivaCondition:m,useFinalPriceWithIva:r,keepSamePriceForVariants:l,dataDefault:i,dataDefaultIva:n,preferenceRounding:u,userDecimal:c,userOptions:o,multiCurrency:F,conceptType:"Variants",urlBase:o,jwtContext:t,isEdition:!0,variantId:U,sendForm:_,filters:z,saveLoading:K}),value:3},{title:Ti.a.t("AdditionalInfo"),children:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!0,jwtContext:t,send:x,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},showInventaries:x,postProductsError:N,postServicesError:k,postProductsResponse:R,postServicesResponse:L,postComboResponse:B,postComboError:D,conceptType:"Variants"}),value:4}],te=[{title:Ti.a.t("mainInformation"),children:Object(p.jsx)(xp,{dataHeadings:{dataHeadings:f,errorHeadings:j,loadingHeadings:A},urlBase:M,data:h,option:"C",jwtContext:t,dataDefault:i,dataCurrencies:a,multiCurrency:F,showCurrency:!1,showSKU:!1,conceptType:"Unique"}),value:1}
1,{title:Ti.a.t("comboItems"),children:Object(p.jsx)(Pp,{showstockSelect:!0,jwtContext:t,dataCurrencies:a,multiCurrency:F,dataDefault:i,stockRounding:d,dataConcepts:h,userDecimal:c}),value:2},{title:Ti.a.t("priceDetail"),children:Object(p.jsx)(jp,{showstockSelect:!0,showAutomaticPrice:!0,showCurrency:!1,combo:!1,jwtContext:t,dataCurrencies:a,multiCurrency:F,dataDefault:i,userOptions:o,dataDefaultIva:n,useFinalPriceWithIva:r,userDecimal:c,stockRounding:d,preferenceRounding:u,ivaCondition:m,ivaRateId:g,setIvaRateId:b,dataConcepts:h,showCodeb:!0,showSKU:!0,setInitialRenderFalse:V,initialRender:W}),value:3},{title:Ti.a.t("AdditionalInfo"),children:Object(p.jsx)(yp,{dataConcepts:h,showstockSelect:!1,jwtContext:t,send:!1,sale:{dataSale:S,errorSale:E,loadingSale:I},purchase:{dataPurchase:C,errorPurchase:y,loadingPurchase:O},merchandise:{dataMerchandise:w,errorMerchandise:T,loadingMerchandise:P},postServicesError:k,postProductsError:N,postProductsResponse:R,postServicesResponse:L,postComboResponse:B,postComboError:D,conceptType:"Unique"}),value:4}];return Object(p.jsx)(v.a,{className:Z.root,children:Object(p.jsx)(v.a,{className:Z.container,children:Object(p.jsx)(v.a,{className:Z.container2,children:null!==h&&Object(p.jsxs)(p.Fragment,{children:["P"===h.type&&Object(p.jsx)(_p,{accordionList:Q,changeAccordion:G,cleanChangeAccordion:Y,activeAccordion:H}),"V"===h.type&&Object(p.jsx)(_p,{changeAccordion:G,cleanChangeAccordion:Y,accordionList:J,activeAccordion:H}),"C"===h.type&&Object(p.jsx)(_p,{accordionList:te}),"S"===h.type&&Object(p.jsx)(_p,{accordionList:$}),"G"===h.type&&Object(p.jsx)(_p,{changeAccordion:G,cleanChangeAccordion:Y,accordionList:ee})]})})})})};const Gp={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:380,height:489,bgcolor:"background.paper",borderRadius:1.5,"@media (max-width: 424px)":{width:330}},Yp=Object(u.a)((e=>({containerTitle:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:10,paddingBottom:6,paddingLeft:24,paddingRight:14},title:{fontSize:"17px",color:"#131313",fontFamily:"Work Sans",fontWeight:500},containerInfo:{height:353,paddingLeft:39,paddingRight:39},containerImg:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:22,marginBottom:5},text:{fontSize:"14px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textAlign:"center",lineHeight:1.2},containerBtn:{display:"flex",justifyContent:"flex-end",paddingTop:15,paddingBottom:15,paddingLeft:24,paddingRight:24,width:"100%"},divStyle:{opacity:1}})));var Kp=e=>{let{children:t,title:a,img:i,altImg:o,open:n,handleClose:r}=e;const s=Yp();return Object(p.jsx)("div",{children:Object(p.jsx)(w.a,{open:n,onClose:r,children:Object(p.jsxs)(y.a,{sx:Gp,children:[Object(p.jsxs)(v.a,{container:!0,className:s.containerTitle,children:[Object(p.jsx)(cn.a,{variant:"h6",className:s.title,children:a}),Object(p.jsx)(wi.a,{onClick:r,disableRipple:!0,children:Object(p.jsx)(Ri.a,{size:"large",sx:{stroke:"#ffffff",strokeWidth:.5,fontSize:"27px"}})})]}),Object(p.jsx)(N.a,{className:s.divStyle}),Object(p.jsxs)(v.a,{container:!0,className:s.containerInfo,children:[Object(p.jsx)(v.a,{item:!0,xs:12,className:s.containerImg,children:Object(p.jsx)(y.a,{component:"img",alt:o,src:i,height:"198px"})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:s.text,children:t})})]}),Object(p.jsx)(N.a,{className:s.divStyle}),Object(p.jsx)(v.a,{container:!0,className:s.containerBtn,children:Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"primary",open:n,onClick:r,children:Ti.a.t("accept")})})})]})})})};var Xp=()=>{const e=(new L.a).get("Secure-1CBL");let t=JSON.parse(Object(H.a)(e));const a=t.data.user_type,[o,n]=Object(i.useState)(!0),{permissionsRoles:r,rolSales:s}=Object(i.useContext)(Ka),l=r[2],c=null===l||void 0===l?void 0:l.includes(38),d=null===l||void 0===l?void 0:l.includes(39);return Object(i.useEffect)((()=>{null!==s&&("Basic"!==t.data.plan_name?n("A"===a||!("B"!==a||!s)||!!("C"===a&&s&&c&&d)):n(!1))}),[r,s,t.data.plan_name]),[o]};const Zp=[{code:"DEFAULT_ERROR"}],Qp=[{code:"MAX_UNIT_PRICE_COMBO_ERROR_ON_CREATION"}],Jp=[{code:"MIN_COMBO_ITEMS"}],$p=[{code:"MAX_COMBO_ITEMS_QUANTITY_ERROR"}],em=[{code:"IMAGE_URL_ERROR"}],tm=["option","headingValue","personValue","purchaseValue","merchandisePlanValue","salePlanValue","internalCostValue","profitabilityValue","unitPriceValue","ivaDataValue","dataItems","currencySelected","stockValues","minStockValue","automaticPrice","lastCurrencySelected","createdAt","withDispatched","updatedAt","updatedAtPrice","RG5329V
1alue","visibleValue","userId","parentConceptId","profitabilityNumber","internalCostNumber","internalCostTotal","unitPriceNumber","unitPriceTotal","finalPrice","subHeadingValue","showDetailed","finalPriceWithoutRounding","comboItems","customProfitability","modifiedVariants","generateNewVariants","attributesList","isApplyChangesDisabled","presentationsHideApplyToAll","presentationsValidationErrors","presentationsValidationErrorsByVariant","presentationsPriceMaxAlertTrigger"],am=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",paddingLeft:50,paddingTop:10,paddingRight:50,paddingBottom:50,fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",alignContent:"flex-start",width:"100%",minHeight:"100vh","@media (min-width: 600px)":{paddingLeft:0,paddingRight:0},"@media (max-width: 600px)":{paddingLeft:0,paddingRight:0,paddingTop:0},"@media (max-width: 800px)":{}},root2:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},containerBtn:{display:"flex",justifyContent:"flex-end",marginBottom:"80px",backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",width:"80%","@media (min-width: 600px)":{margin:"0 20px"},"@media (max-width: 600px)":{marginTop:"30px",width:"100%",padding:0}},loadingContainer:{height:"calc(100vh - 150px)",display:"flex",justifyContent:"center",alignItems:"center"},containerAlert:{display:"flex",justifyContent:"flex-end",marginBottom:"80px",backgroundColor:"#ebebeb",fontFamily:"Work Sans, sans-serif",width:"80%",flexDirection:"column","@media (min-width: 600px)":{margin:"0 20px"},"@media (max-width: 600px)":{marginTop:"0px",marginBottom:"0px",width:"100%",padding:"0 10px"}}}))),im=e=>{let{handleCheckTriesLeft:t}=e;const{datosFormulario:a,actualizarDatosFormulario:o,descriptiveFields:n}=Object(i.useContext)(rr),{load:r}=n,[s,d]=Object(i.useState)("C"),[u,m]=Object(i.useState)(""),[g,b]=Object(i.useState)(null),[h,x]=Object(i.useState)(null),[f,j]=Object(i.useState)(!1),[A,C]=Object(i.useState)(!1),[y,O]=Object(i.useState)(!1),[S,E]=Object(i.useState)(0),[I,w]=Object(i.useState)(0),[T,P]=Object(i.useState)(),[R,N]=Object(i.useState)(null),[L,k]=Object(i.useState)(null),[B,D]=Object(i.useState)(!1),[F,M]=Object(i.useState)(!1),[V,W]=Object(i.useState)(!1),[H,U]=Object(i.useState)(""),[_,z]=Object(i.useState)(null),[q,G]=Object(i.useState)(""),[Y,K]=Object(i.useState)(null),[X,Z]=Object(i.useState)(""),[Q,J]=Object(i.useState)(null),[$,ee]=Object(i.useState)(""),[te,ae]=Object(i.useState)(!1),[ie,oe]=Object(i.useState)(""),[ne,re]=Object(i.useState)(!1),[se,le]=Object(i.useState)(!0),[ce]=Object(i.useState)("Unique"),{permissionsRoles:de,rolSales:ue,rolInventories:pe}=Object(i.useContext)(Ka),{userData:me,jwt:ge}=Object(i.useContext)(Qa),be=de,he=ue,xe=pe,[fe,ve]=Object(i.useState)(!1),[je,Ae]=Object(i.useState)(null),[Ce,ye]=Object(i.useState)(null),[Oe,Se]=Object(i.useState)(!1),[Ee,Ie]=Object(i.useState)(!1),we=me,Te=Yi().props.value.dataUser,Pe=null!=Te&&Te.useProductPresentations,Re=null===me||void 0===me?void 0:me.account_plan,Ne=null===me||void 0===me?void 0:me.user_type,Le={"Content-Type":"application/json",Authorization:ge},ke=am(),[Be]=Xp(),{ivaRatesLoading:De,ivaRatesError:Fe,ivaRates:Me,fetchIvaRates:Ve}=ku(),We=me;Object(i.useEffect)((()=>{if(we){const e=we.country;"ar"===e?ee("https://app.contabilium.com/v3/dashboard"):"cl"===e?ee("https://app.contabilium.cl/v3/dashboard"):"uy"===e?ee("https://app.contabilium.com.uy/v3/dashboard"):"py"===e&&ee("https://app.contabilium.com.py/v3/dashboard")}}),[we]),Object(i.useEffect)((()=>{Be||window.open($,"_self")}),[Be]),Object(i.useEffect)((()=>{var e;const t=a.dataItems,{isConditionMet:i,isConditionPrice:o,isTotalItemsConditionMet:n}=yl(t);i&&o&&n||Q&&"DEFAULT_ERROR"===(null===(e=Q[0])||void 0===e?void 0:e.code)?Ot():ae(!0)}),[a]),Object(i.useEffect)((()=>{d(a.option);const e=be.hasOwnProperty("2"),t=be.hasOwnProperty("8");if(e){const e=be[2].includes(38);D(e)}if(t){const e=be[8].includes(115);M(e)}"A"===Ne&&W(!0),"B"===Ne&&!0===he&&!0===xe&&W(!0),"C"===Ne&&!0===he&&!0===xe&&!0===B&&!0===F&&W(!0)}),[a.option,F,B,xe,he,be]);const{id:He}=Object(l.i)(),Ue=Object(l.h)(),_e=new URLSearchParams(Ue.search),ze=_e.get("cId")?parseInt(_e.get("cId")):null,qe=_e.get("vId")?parseInt(_e.get("vId")):null,Ge=_e.get("type")||null,Ye=_e.get("filters")||null,{responseData:Ke,errorResponse:Xe,isLoading:Ze}=Di({url:null===Ge?Object(aa.a)()+"concepts/"+He:Object(aa.a)()+"variants/"+ze,method:"get",condition:!0}),{responseData:Qe,errorResponse:Je,isLoading:$e}=Di({url:Object(aa.a)()+"headings",method:"get",condition:!0}),[et,tt]=Object(i.useState)(null),{responseData:at,errorResponse:it,isLoading:ot}=Di({url:Object(aa.a)()+"currencies",method:"get",condition:!0});Object(i.useEffect)((()=>
1{if(null!==at){const e=at.filter((e=>!0===e.enabled));(null===e||void 0===e?void 0:e.length)>1&&Ie(!0)}else Ie(!1)}),[at]);const{responseData:nt,errorResponse:rt,isLoading:st}=Di({url:Object(aa.a)()+"plans/purchase",method:"get",condition:Re}),{responseData:lt,errorResponse:ct,isLoading:dt}=Di({url:Object(aa.a)()+"plans/sale",method:"get",condition:Re}),{responseData:ut,errorResponse:pt,isLoading:mt}=Di({url:Object(aa.a)()+"plans/merchandise",method:"get",condition:Re});Object(i.useEffect)((()=>{if(null!==Ke){let e,t,a={};null!==at&&(a=at.find((e=>e.id===Ke.currencyId))),Ke.variant&&(e=Ps({useFinalPriceWithIva:h,variant:Ke.variant,userDecimal:S,addEdit:!0})),Ke.attribute&&(t=(e=>{let{attributes:t}=e,a=[];return t.forEach((e=>{const t=e.id;e.items.forEach((e=>{if("1"===e.active||1===e.inUse){const i={id:t,item:e.id};a.push(i)}}))})),a})({attributes:Ke.attribute}));let i=Ke.image;const n=(e=>{try{return new URL(e),!0}catch(t){return!1}})(i);i&&""!==i&&!n&&(i=$+"files/explorer/"+We.userId+"/Productos-Servicios/"+i);const r="V"===Ke.type||"G"===Ke.type,s=e||Ke.variant||[],l=r?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{useFinalPriceWithIva:t="0",getVariantKeyFn:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={};return Array.isArray(e)&&"function"===typeof a?(e.forEach((e=>{if(!e||"object"!==typeof e)return;const o=a(e);o&&(i[o]=hu(e.presentations||[],{useFinalPriceWithIva:t}))})),i):i}(s,{useFinalPriceWithIva:h,getVariantKeyFn:ju}):{},c=!!r&&pu([],l);o({...Ke,dataItems:(null===Ke||void 0===Ke?void 0:Ke.comboItems)||[],attribute:t,attributesList:Ke.attribute,finalPriceWithoutRounding:"1"===h?Ke.unitPrice:Ke.finalPrice,currencySelected:a,variant:e,image:i,unitPrice:"1"===h?Ke.finalPrice:Ke.unitPrice,finalPrice:"1"===h?Ke.unitPrice:Ke.finalPrice,presentations:r?[]:hu(Ke.presentations||[],{useFinalPriceWithIva:h}),presentationsByVariant:l,presentationsHideApplyToAll:c,presentationsApplyToAll:!r||!c})}Xe?ve(!0):"V"!==(null===Ke||void 0===Ke?void 0:Ke.type)&&"G"!==(null===Ke||void 0===Ke?void 0:Ke.type)||null===He||null!==Ge||ve(!0)}),[Ke,Xe,at,h]),Object(i.useEffect)((()=>{Ve()}),[]),Object(i.useEffect)((()=>{r()}),[r]),Object(i.useEffect)((()=>{if(Me.length>0&&!De&&!Fe){const e=bt(Me);k(e)}}),[Me]),Object(i.useEffect)((()=>{null===(null===a||void 0===a?void 0:a.ivaRateId)||""===(null===a||void 0===a?void 0:a.ivaRateId)?gt():b(null===a||void 0===a?void 0:a.ivaRateId)}),[null===a||void 0===a?void 0:a.ivaRateId,L]),Object(i.useEffect)((()=>{if(null!==Ke&&(null!==at||null!==it||it>=400)){const e=at.find((e=>e.default));tt(e)}if(we){const e=we.country;if(null!==L){const e=null===L||void 0===L?void 0:L.find((e=>e.default));N(e)}"ar"===e?ee("https://app.contabilium.com/"):"cl"===e?ee("https://app.contabilium.cl/"):"uy"===e?ee("https://app.contabilium.com.uy/"):"py"===e&&ee("https://app.contabilium.com.py/"),null!==Te&&(m(Te.ivaCondition),x(Te.useFinalPriceWithIva),j(ks(Te.keepSamePriceForVariants)),E(Te.amountRounding),w(Number(Te.stockRounding)),P(Number(Te.preferenceRounding)))}}),[u,we,Te,L,Ke,at,it,ot]);const gt=()=>{if(null!==a&&void 0!==a&&a.ivaRateId)b(null===a||void 0===a?void 0:a.ivaRateId);else if(L&&L.length>0){const e=L.find((e=>e.value===(null===a||void 0===a?void 0:a.iva)));e&&g!==e.id&&(b(e.id),o({...a,ivaRateId:e.id}))}},bt=e=>e.map((e=>({name:null!==e.rateDetail&&"ar"!==(null===we||void 0===we?void 0:we.country)?`${e.rateDetail.replace(".",",")} - ${e.iva.toString().replace(".",",")}`:`${e.iva.toString().replace(".",",")}`,value:e.iva,id:e.ivaRateId,default:e.default}))),ht=()=>{const{isConditionMet:e,isConditionPrice:t,isTotalItemsConditionMet:i}=yl(a.dataItems);return t?e?!!i||(J($p),re(!1),window.scrollTo({top:0,left:0,behavior:"smooth"}),!1):(J(Jp),re(!1),window.scrollTo({top:0,left:0,behavior:"smooth"}),!1):(J(Qp),re(!1),window.scrollTo({top:0,left:0,behavior:"smooth"}),!1)};function xt(e){return e=(e=(e=e.replace(/\s/g,"")).replace(/,/g,".")).replace(/\./g,""),parseFloat(e)}const ft=e=>{const t=(null===Ke||void 0===Ke?void 0:Ke.variant)||[];for(const a of t){const t=null===e||void 0===e?void 0:e.find((e=>e.id===a.id));if("I"===(null===a||void 0===a?void 0:a.status)&&"A"===(null===t||void 0===t?void 0:t.status))return!0}return!1},vt=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;re(!0);const i=ft(e);if("I"===Ke.status&&"A"===a.status||i){const e=await t();if(re(!1),!e)return}const o=e=>{let{isVariants:t,presentationsTab:a}=e;return!1},r=we.country;"cl"!==r&&"uy"!==r&&"py"!==r||tm.push("RG5329");let s=il(a),l=il(Ke);if("1"===h&&a.profitability>0&&(s.unitPrice=a.finalPriceWithoutRounding),("V"===Ke.type||"G"===Ke.type)&&f){const e=Us(a,h);s.internalCost=e.internalCost,s.profitability=e.profitability,s.unitPrice=e.unitPrice}if(s.currencyId=Ke.currencyId,l.currencyId=Ke.currencyId,Boolean(a.imageUrlError))return z(em),re(!1),void window.scrollTo({top:0,left:0,behavior:"smooth"});delete s.imageUrlError,ol(s,[...tm,"id","type","stock"]),ol(l,[...tm,"id","type","stock"]),cc(s,a.fields,n);const d=lc(n.activeFields,s.fields),u=()=>{d&&Object(c.b)("Campos de productos - Editar producto",{campos_utilizados:d})};if(Object(c.b)("PyS - Guardar Editar Producto",{estado:a.status,"modulo venta":a.visible?"si":"no",rg:a.RG5329?"si":"no"}),"P"===Ke.type){if(o({isVariants:!1,presentationsTab:4}))return;delete s.comboItems,delete s.autoPrice,delete s.conceptStock,delete s.variant,delete s.attribute,!1===V&&delete s.stock,xu(s,{...a,option:"P",type:"P"},{conceptType:"Unique",includePresentationIds:!0}
1);const e=JSON.stringify(s),t=`${Object(aa.a)()}products/${He}`,i=e;ta.a.put(t,i,{headers:Le}).then((e=>{u(),U(e),window.open(`/conceptos.aspx?filters=${Ye}`,"_self")})).catch((e=>{z(e.response.data||Zp),re(!1),console.log(e),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}if("S"===Ke.type){delete s.stock,delete s.comboItems,delete s.autoPrice,delete s.minStock,delete s.conceptStock,delete s.variant,delete s.attribute;const e=JSON.stringify(s),t=`${Object(aa.a)()}services/${He}`,a=e;ta.a.put(t,a,{headers:Le}).then((e=>{u(),G(e),window.open(`/conceptos.aspx?filters=${Ye}`,"_self")})).catch((e=>{K(e.response.data||Zp),re(!1),console.log(e),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}if("C"===Ke.type){if(ht()){delete s.stock,delete s.isComboError,delete s.variant,delete s.attribute,s.comboItems=a.comboItems.map((e=>({...e,quantity:"string"===typeof e.quantity?xt(e.quantity):e.quantity})));const e=JSON.stringify(s),t=`${Object(aa.a)()}combos/${He}`,i=e;ta.a.put(t,i,{headers:Le}).then((e=>{u(),Z(e),window.open(`/conceptos.aspx?filters=${Ye}`,"_self")})).catch((e=>{J(e.response.data||Zp),re(!1),ae(!0),console.log(e),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}}if("V"===Ke.type||"G"===Ke.type){if("V"===Ke.type&&o({isVariants:!0,presentationsTab:5}))return;delete s.comboItems,delete s.imageUrlError,delete s.image,delete s.autoPrice,!1===V&&delete s.stock;let t=null===e?s.variant:e,i=[...tm,"autoPrice","attributes","attributesList","conceptStock","ivaValue"];t=t.map((e=>{let t={...e};return t.headingId===a.headingId&&t.headingId===a.headingId&&t.subHeadingId===a.subHeadingId&&t.salePlanId===a.salePlanId&&t.purchasePlanId===a.purchasePlanId&&t.personId===a.personId&&t.RG5329===a.RG5329&&t.merchandisePlanId===a.merchandisePlanId&&t.providerCode===a.providerCode||!("edit"in e)||(t.edit=!0),"edit"in e||"G"===Ke.type?i=[...i,"stock"]:t.stock=(null===e||void 0===e?void 0:e.conceptStock)||(null===e||void 0===e?void 0:e.stock),"1"===h&&e.profitability>0&&e.finalPriceWithoutRounding&&(t.unitPrice=e.finalPriceWithoutRounding),i.forEach((e=>delete t[e])),t})),s.variant=t,s.type=Ke.type,xu(s,{...a,option:"G"===Ke.type?"S":"P",type:Ke.type},{conceptType:"Variants",getVariantKeyFn:ju,includePresentationIds:!0});const n={};(Ke.variant||[]).forEach((e=>{const t=ju(e);t&&(n[t]=e.presentations||[])})),s.variant=(s.variant||[]).map((e=>{const t=ju(e),a=n[t]||[],i=e.presentations||[];return vu(a,i,{useFinalPriceWithIva:h})?{...e,edit:!0}:e}));const r=JSON.stringify(s),l=Object(aa.a)()+"variants/"+ze,c=r;z(null),ta.a.put(l,c,{headers:Le}).then((e=>{u(),U(e),Ke.type,window.open(`/conceptos.aspx?filters=${Ye}`,"_self")})).catch((e=>{z(e.response.data||Zp),re(!1),console.log(e),window.scrollTo({top:0,left:0,behavior:"smooth"})}))}a.isComboError&&(J(Zp),re(!1))},jt=()=>{Ae(null),ye(null)};const At="V"===(null===Ke||void 0===Ke?void 0:Ke.type)||"G"===(null===Ke||void 0===Ke?void 0:Ke.type),Ct={dataCurrency:at,dataDefault:et,userOptions:L,dataDefaultIva:R,useFinalPriceWithIva:h,useProductPresentations:Pe,keepSamePriceForVariants:f,userDecimal:S,stockRounding:I,preferenceRounding:T,ivaCondition:u,multiCurrency:Ee,ivaRateId:g,setIvaRateId:b,jwtContext:we,dataConcepts:Ke,option:s,dataHeadings:Qe,errorHeadings:Je,loadingHeadings:$e,dataPurchase:nt,errorPurchase:rt,loadingPurchase:st,dataSale:lt,errorSale:ct,loadingSale:dt,dataMerchandise:ut,errorMerchandise:pt,loadingMerchandise:mt,postProductsResponse:H,postProductsError:_,postServicesResponse:q,postServicesError:Y,postComboResponse:X,postComboError:Q,urlBase:$,initialRender:se,conceptType:ce,activeTab:At?3:1,activeAccordion:At?Ti.a.t("priceDetail"):Ti.a.t("mainInformation"),variantId:qe,filters:Ye,saveLoading:ne,sendForm:vt,validateStepEdition:e=>{let{data:t,step:a}=e;(async e=>{let{body:t}=e;const a=`${Object(aa.a)()}step`,i=JSON.stringify(t);Se(!0);try{await ta.a.post(a,i,{headers:Le}),z(null),ye(Ti.a.t("priceDetail")),Ae(3)}catch(r){var o,n;window.scrollTo({top:0,left:0,behavior:"smooth"}),ae(!0),z((null===r||void 0===r||null===(o=r.response)||void 0===o||null===(n=o.data)||void 0===n?void 0:n.error)||Zp),console.log({error:r})}Se(!1)})({body:{...t,step:a}})},changeTab:je,cleanChangeTab:jt,changeAccordion:Ce,cleanChangeAccordion:jt,isLoadingStepValidation:Oe},yt=Object(mp.useMediaQuery)({minWidth:480});function Ot(){ae(!1),z(null),K(null)}Object(i.useEffect)((()=>
1{Ke&&Ke.type?"P"===Ke.type||"V"===Ke.type?oe("Editar producto"):"S"===Ke.type||"G"===Ke.type?oe("Editar servicio"):"C"===Ke.type&&(oe("Editar combo"),ve(!0)):oe("")}),[Ke]),Object(i.useEffect)((()=>{null!==_&&ae(!0),null!==Y&&ae(!0),null!==Q&&ae(!0)}),[_,Y,Q]);const St=null!==Xe&&!1===Ze&&null===Ke,Et=null===Xe&&!0===Ze&&null===Ke,It=null!==Ke&&null===Xe&&!1===Ze,wt=e=>{le(!1)},Tt=`${Ee&&a.currencySelected?a.currencySelected.symbol||a.currencySelected:Ws(null===we||void 0===we?void 0:we.country)}${vs(Number(a.unitPrice)||0,S)}`,Pt=Ke&&!Ze&&at&&u&&Qe;return Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,xl:12,className:ke.root,children:[Et&&Object(p.jsx)(di.a,{className:ke.loadingContainer,children:Object(p.jsx)(Od.a,{style:{color:xr.palette.primary.main}})}),(St||("V"===(null===Ke||void 0===Ke?void 0:Ke.type)||"G"===(null===Ke||void 0===Ke?void 0:Ke.type))&&null!==He&&null===Ge)&&Object(p.jsx)(Kp,{open:fe,handleClose:()=>{window.open(`/conceptos.aspx?filters=${Ye}`,"_self")},title:Ti.a.t("errorTitle"),img:kc,altImg:Ti.a.t("Error image"),children:Ti.a.t("errorContent2")}),It&&!(("V"===(null===Ke||void 0===Ke?void 0:Ke.type)||"G"===(null===Ke||void 0===Ke?void 0:Ke.type))&&null!==He&&null===Ge)&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{className:ke.root2,children:Object(p.jsxs)(v.a,{className:ke.containerAlert,children:[Object(p.jsx)(Zn,{filters:Ye,isVariant:Boolean(ze),isEdition:!0,title:ie,conceptId:He}),!0===te&&Object(p.jsxs)(p.Fragment,{children:[" ",null!==_&&void 0!==_&&Object(p.jsx)(os,{errors:_,onCloseAlert:Ot}),null!==Y&&void 0!==Y&&Object(p.jsx)(os,{errors:Y,onCloseAlert:Ot}),null!==Q&&void 0!==Q&&Object(p.jsx)(os,{errors:Q,onCloseAlert:Ot})," "]})]})}),Pt&&yt?Object(p.jsx)(Np,{setInitialRenderFalse:wt,...Ct}):Pt?Object(p.jsx)(qp,{setInitialRenderFalse:wt,...Ct}):null,Object(p.jsx)(v.a,{className:ke.root2,children:Object(p.jsxs)(v.a,{container:!0,className:ke.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{disabled:Oe||ne,type:"secondary",onClick:function(){window.open(`/conceptos.aspx?filters=${Ye}`,"_self")},children:Ti.a.t("cancel")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsxs)(si,{disabled:Oe||ne,loading:ne,type:"primary",onClick:()=>{if(At&&f){if((e=>{if(!e||!_s(e))return Hs(null===e||void 0===e?void 0:e.variant);const{unitPriceValue:t}=e;return void 0===t||null===t||""===String(t).trim()})(a))return void O(!0);if(Hs(null===a||void 0===a?void 0:a.variant))return void C(!0)}vt(null)},children:[Ti.a.t("save")," "]})})]})}),Object(p.jsxs)(Kc,{title:Ti.a.t("uniquePriceConfirmTitle"),img:Zc,buttonText:Ti.a.t("uniquePriceConfirmContinue"),showBtn:2,open:A,closeButtonType:"secondary",handleAcceptClick:()=>{C(!1),vt(null)},handleClose:()=>C(!1),children:[Ti.a.t("uniquePriceConfirmText"),Object(p.jsx)("strong",{children:Ti.a.t("uniquePriceConfirmTextHighlight",{price:Tt})}),Ti.a.t("uniquePriceConfirmTextReplace")]}),Object(p.jsx)(Kc,{title:Ti.a.t("uniquePriceMissingTitle"),img:Xc,showBtn:1,open:y,closeButtonText:Ti.a.t("uniquePriceMissingUnderstood"),handleClose:()=>O(!1),children:Ti.a.t("uniquePriceMissingText")})]})]})};var om=Ei((function(e){let{onRestrictedAction:t}=e;return Object(p.jsx)(or,{children:Object(p.jsx)("div",{children:Object(p.jsx)(im,{handleCheckTriesLeft:t})})})}),"skus",!1);var nm=e=>{let{text:t,search:a}=e;if(!a)return Object(p.jsx)("span",{style:{color:"#000000de",fontFamily:"Work Sans, sans-serif",fontSize:14},children:t});const i=t.toLowerCase().indexOf(a.toLowerCase());if(-1===i)return Object(p.jsx)("span",{style:{color:"#000000de",fontFamily:"Work Sans, sans-serif",fontSize:14},children:t});const o=t.substring(0,i),n=t.substring(i,i+a.length),r=t.substring(i+a.length);return Object(p.jsxs)("span",{style:{color:"#000000de",fontFamily:"Work Sans, sans-serif",fontSize:14},children:[o,Object(p.jsx)("span",{style:{color:"#00A692",fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:500},children:n}),r]})};const rm=Object(u.a)((e=>({variantsCell:{width:"60%",maxWidth:"60%","@media (max-width: 600px)":{width:"100%",maxWidth:"100%",gridColumnStart:1,gridColumnEnd:4,gridRowEnd:1,gridRowStart:1,padding:"0px 0px 20px 0px !important"}},nameCell:{width:"30%","@media (max-width: 600px)":{borderWidth:"0px !important",width:"100%",paddingLeft:"0px !important",gridColumnStart:1,gridColumnEnd:2,gridRowEnd:1,display:"flex !important",flexDirection:"column",justifyContent:"center"}},stateCell:{"@media (max-width: 600px)":{borderWidth:"0px !important",width:60,gridColumnStart:2,gridColumnEnd:3,gridRowEnd:1,display:"flex !important",alignItems:"center"}},editCell:{width:25,"@media (max-width: 600px)":{borderWidth:"0px !important",width:"100%",gridColumnStart:3,gridColumnEnd:4,gridRowEnd:1,display:"flex !important",alignItems:"center"}},editIcon:{width:"23px",height:"23px"},name:{fontFamily:"Work Sans, sans-serif",fontSize:14},description:{fontFamily:"Work Sans, sans-serif",fontSize:12,color:"#666666",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%",maxWidth:200}
1,variantsBox:{display:"flex",flexWrap:"wrap",gap:6,borderRadius:4,borderWidth:1,borderColor:"#C6C6C6",padding:10,borderStyle:"solid",maxHeight:145,maxWidth:"32vw",height:"100%",overflowY:"scroll",overflowX:"hidden","@media (max-width: 600px)":{width:"100%",maxWidth:"100% !important"},"&::-webkit-scrollbar":{width:16,padding:4},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:100,borderWidth:5,borderColor:"#fff",borderStyle:"solid"}},tableRow:{"@media (max-width: 600px)":{display:"grid !important",gridTemplateColumns:" 1fr 60px 50px",gridTemplateRows:" 1fr",width:"100%"}}})));var sm=e=>{let{attribute:t={},searchText:a="",searchAttribute:i=!1,loadingAttributes:o=!1,handleEditAttribute:n=(()=>null)}=e;const r=rm(),{name:s,active:l,items:c,description:d}=t;return Object(p.jsxs)(Qs.a,{className:r.tableRow,children:[Object(p.jsxs)(Js.a,{className:r.nameCell,children:[Boolean(s)&&Object(p.jsx)(nm,{text:rl(s),search:i&&!o?a:""}),Boolean(d)&&Object(p.jsx)(cn.a,{className:r.description,children:d})]}),Object(p.jsx)(Js.a,{className:r.variantsCell,children:Object(p.jsx)("div",{className:r.variantsBox,children:null===c||void 0===c?void 0:c.map(((e,t)=>{const{name:a}=e;return null!==e.item?Object(p.jsx)(Rc,{classNameDiv:"outlined-secondary",children:rl(a)},t+"list"):null}))})}),Object(p.jsx)(Js.a,{className:r.stateCell,children:Object(p.jsx)(Rc,{classNameDiv:l?"success":"default",children:l?"Activo":"Inactivo"})}),Object(p.jsx)(Js.a,{className:r.editCell,children:Object(p.jsx)(Qr.a,{onClick:()=>n(t),disableRipple:!0,children:Object(p.jsx)(ni.a,{width:"0px",height:"0px",viewBox:"",className:r.editIcon,name:"edit"})})})]})};const lm=Object(u.a)((e=>({showSm:{display:"none !important","@media (max-width: 600px)":{display:"flex !important",padding:"20px 0px 20px 0px !important"}},hiddenSm:{"@media (max-width: 600px)":{display:"none !important"}}})));var cm=e=>{let{attributes:t=[],loadingAttributes:a=!1,errorAttributes:i=!1,noSearchResults:o=!1,lastPage:n=!1,page:r=1,searchText:s="",userCountry:l="",searchAttribute:c=!1,searchPage:d=1,handleEditAttribute:u=(()=>null),handleAddAttributeClick:m=(()=>null),handlePageChange:g=(()=>null)}=e;const b=lm(),[h,x]=Bc({userCountry:l,noSearchResults:o,isButtonHidden:!1});return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{children:[Object(p.jsx)(Ks.a,{style:{marginTop:"20px",marginBottom:"30px"},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{style:{overflowX:"scroll"},children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:b.showSm,children:Ti.a.t("attributesAndVariants")}),Object(p.jsx)(Js.a,{className:b.hiddenSm,children:Ti.a.t("attributeName")}),Object(p.jsx)(Js.a,{className:b.hiddenSm,children:Ti.a.t("attributesVariants")}),Object(p.jsx)(Js.a,{className:b.hiddenSm,style:{width:"20%"}}),Object(p.jsx)(Js.a,{className:b.hiddenSm,style:{width:"25%"}})]})}),Object(p.jsx)($s.a,{children:!a&&(null===t||void 0===t?void 0:t.map(((e,t)=>Object(p.jsx)(sm,{handleEditAttribute:u,attribute:e,searchText:s,searchAttribute:c,loadingAttributes:a},e.id))))})]})}),!0===a&&Object(p.jsx)("div",{"data-testid":"loading-indicator",style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:Object(p.jsx)(Od.a,{style:{color:"#00A692"}})}),!i&&!a&&0===(null===t||void 0===t?void 0:t.length)&&Object(p.jsx)(Fc,{testId:"empty-state",handleClick:m,...h}),i&&!a&&0===(null===t||void 0===t?void 0:t.length)&&Object(p.jsx)(Fc,{testId:"error-state",...x}),n>1&&Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:c?d:r,totalPages:n,onPageChange:g})})]})})};const dm=[{name:"Todos",active:null},{name:"Activo",active:!0},{name:"Inactivo",active:!1}],um=Object(u.a)((e=>({container:{gap:10,"@media (max-width: 800px)":{justifyContent:"space-between"}},searchContainer:{flex:1},selectContainer:{minWidth:170,"@media (max-width: 800px)":{width:"100%"}},searchButton:{marginTop:22,"@media (max-width: 800px)":{marginTop:5}},addNewButton:{marginLeft:"5%",marginTop:22,minWidth:220,"@media (max-width: 800px)":{marginLeft:10,marginTop:5}}})));var pm=e=>{let{handleChangeState:t=(()=>null),handleInputTitleChange:a=(()=>null),handleSearchClick:o=(()=>null),onSelectInputChange:n=(()=>null),handleKeysPress:r=(()=>null),searchText:s="",state:l="",loadingAttributes:c}=e;const d=um(),u=Object(i.useCallback)((e=>a(e)),[a]);return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{item:!0,className:d.searchContainer,children:Object(p.jsx)(mr,{placeholder:Ti.a.t("searchPlaceHolder"),types:"inputPrimary",onChange:u,maxLength:"500",value:s,cleanButtonText:"Limpiar",onKeyDown:r,children:Ti.a.t("search")})}),Object(p.jsx)(v.a,{item:!0,className:d.selectContainer,children:Object(p.jsx)(Pr,{label:Ti.a.t("state"),type:"searchSelectPrimary",data:dm,onChange:(e,a)=>t(e,a),value:""===l?dm[0]:l,onSelectInputChange:n})}),Object(p.jsx)(v.a,{className:d.searchButton,item:!0,children:Object(p.jsxs)(si,{disabled:c,medium:!0,onClick:o,type:"primary",children:[Object(p.jsx)("i",{"data-testid":"search-button",style:{marginRight:5},className:"la la-search"}),Ti.a.t("search")]})})]})};const mm=Object(u.a)((e=>({container:{gap:10,"@media (max-width: 800px)":{justifyContent:"space-between"}},addNewButton:{marginLeft:"5%",marginTop:22,minWidth:200,"@media (max-width: 800px)":{marginLeft:10,marginTop:5}}})));var gm=e=>{let{searchProps:t={}}=e;const a=mm();return Object(p.jsxs)(v.a,{container:!0,className:a.container,children:[Object(p.jsx)(pm,{...t}),Object(p.jsx)(v.a,{className:a.addNewButton,item:!0,children:Object(p.jsxs)(si,{style:{justifyContent:"center"},medium:!0,onClick:()=>t.handleAddAttributeClick(),type:"tertiary",children:[Object(p.jsx)("i",{style:{marginRight:5},className:"la la-plus"}),Ti.a.t("addNewAttribute")]})})]})};var bm=()=>{const[e,t]=Object(i.useState)({name:"Todos",active:null}),[a,o]=Object(i.useState)(null),[n,r]=Object(i.useState)(""),[s,l]=Object(i.useState)(!1),[c,d]=Object(i.useState)(1),[u,m]=Object(i.useState)(1),[g,b]=Object(i.useState)(!1),{userData:h}=Object(i.useContext)(Qa),x=null===h||void 0===h?void 0:h.country,{dataAttributes:f,errorAttributes:v,loadingAttributes:j,loadingCreation:A,errorCreation:C,noSearchResults:y,lastPage:O,successDelete:S,successCreation:E,createOrUpdateAttribute:I,deleteAttribute:w,searchAttributes:T,fetchAttributes:P,setErrorCreation:R}=as({searchText:n,searchAttribute:s,openModal:g,state:e,page:c,searchPage:u,makeRequest:!0});Object(i.useEffect)((()=>{E&&(r(""),t({name:"Todos",active:null}))}),[E]);const N=()=>{b(!0),r(""),o(null)},L={state:e,searchText:n,loadingAttributes:j,handleChangeState:(e,a)=>{t(a)},handleInputTitleChange:e=>{""===e.target.value&&(l(!1),P()),r(e.target.value)},handleSearchClick:()=>{l(!1),m(1),setTimeout((()=>{l(!0),T()}),200)},handleAddAttributeClick:N,onSelectInputChange:e=>{t({name:"Todos",active:null})},handleKeysPress:e=>{m(1),"Enter"===e.key?(T(),l(!0)):"Backspace"===e.key&&l(!1)}},k={attributes:f,loadingAttributes:j,errorAttributes:v,noSearchResults:y,lastPage:O,page:c,searchText:n,searchAttribute:s,handleAddAttributeClick:N,handleEditAttribute:e=>{o({id:e.id,name:e.name,description:e.description,items:e.items,active:e.active}),b(!0)},handlePageChange:e=>{s?m(e):d(e),setTimeout((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),800)},userCountry:x,searchPage:u},B={openModal:g,isAttributeEdition:a,loadingCreation:A,errorCreation:C,createOrUpdateAttribute:I,handleClose:e=>{let{save:t}=e;b(!1),o(null),R(null)},deleteAttribute:w,successDelete:S,successCreation:E};return Object(p.jsxs)(rs,{title:"Atributos",children:[Object(p.jsx)(gm,{searchProps:L}),Object(p.jsx)(cm,{...k}),Boolean(g)&&Object(p.jsx)(cd,{...B})]})};const hm=Object(u.a)((e=>({container:{flexGrow:1,backgroundColor:"#ebebeb",paddingLeft:50,paddingTop:20,paddingRight:50,paddingBottom:50,fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",alignContent:"flex-start",width:"100%","@media (min-width: 600px)":{paddingLeft:0,paddingRight:0},"@media (max-width: 600px)":{paddingLeft:0,paddingRight:0,paddingTop:0,alignContent:"center"}},cardContainer:{width:"90%","@media (max-width: 600px)":{width:"calc(100% - 20px) !important"},"@media (max-width: 1100px)":{width:"calc(100% - 70px)"}}
1,card:{padding:40,borderRadius:5,boxShadow:"0px 1px 1px 0px rgba(0, 0, 0, 0.10)",width:"100%",backgroundColor:"#FFFFFF",marginTop:10,"@media (max-width: 600px)":{width:"100%",padding:20},"@media (max-width: 1100px)":{paddingLeft:20,paddingTop:20,paddingRight:20,paddingBottom:20}},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px",flexWrap:"wrap"}},errorContainer:{marginTop:10,marginBottom:30}})));var xm=e=>{let{children:t={},showButtons:a=!0,errors:i=[],showErrorAlert:o=!1,primaryButtonText:n="",secondaryButtonText:r="",primaryLoading:s=!1,primaryDisabled:l=!1,secondaryDisabled:c=!1,secondaryLoading:d=!1,renderTitleComponent:u=(()=>null),primaryButtonClick:m=(()=>null),secondaryButtonClick:g=(()=>null),handleCloseAlert:b=(()=>null),renderTertiaryButton:h=(()=>null),renderLeftButton:x=(()=>null)}=e;const f=hm();return Object(p.jsx)(v.a,{container:!0,className:f.container,children:Object(p.jsxs)(v.a,{className:f.cardContainer,children:[u(),o&&Object(p.jsx)("div",{className:f.errorContainer,children:Object(p.jsx)(os,{errors:i,onCloseAlert:b})}),Object(p.jsx)(v.a,{container:!0,className:f.card,children:t}),a&&Object(p.jsxs)(v.a,{container:!0,className:f.containerBtn,children:[x(),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",disabled:c,loading:d,onClick:g,children:r})}),h(),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{type:"primary",disabled:l,loading:s,onClick:m,children:n})})]})]})})};const fm=Object(u.a)((e=>({grid:{padding:"10px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"26px",lineHeight:"26px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"18px"}},subTitle:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"20px",marginTop:"40px","@media (max-width: 479px)":{fontSize:"12px",marginTop:"10px"}},icon:{color:ui.a.textSecondary,marginRight:"10px",alignItems:"center"},link:{display:"flex",flexDirection:"row",alignItems:"center",color:ui.a.primary400,fontSize:"14px",lineHeight:"16px",fontFamily:"Work Sans, sans-serif",fontWeight:400,marginRight:10,"&:hover":{textDecoration:"none",color:ui.a.primary400},"@media (max-width: 755px)":{marginTop:0}},info:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",marginLeft:5},arrow:{alignSelf:"center",marginTop:5,marginLeft:5},gridLink:{justifyContent:"flex-end"},infoIcon:{marginLeft:5},IconArrow:{fontSize:"36px",display:"flex",alignItems:"center",padding:"5px 0 0 5px"},container:{display:"flex"},container2:{display:"flex","@media (max-width: 800px)":{marginTop:"15px",width:"100%"}},btn:{margin:"0 0px","@media (max-width: 600px)":{width:"100%",marginLeft:"0px"}},filterButtonPlus:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:100,padding:10},plusIcon:{marginTop:"13px",marginRight:"-5px"}})));var vm=e=>{let{title:t="",style:a={},button:o=!1,budgetUrl:n,showGoToOld:r=!0,sendAmplitudeNewBudgetButton:s=(()=>{})}=e;const l=fm(),[c,d]=Object(i.useState)(""),u=Kn();return Object(i.useEffect)((()=>{let e=u.data.country;"ar"===e&&d("https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium"),"cl"===e&&d("https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium"),"uy"===e&&d("https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium"),"py"===e&&d("https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium")}),[u]),Object(p.jsx)(v.a,{style:a,container:!0,className:l.grid,xs:12,md:12,xl:12,children:Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},justifyContent:"space-between",alignItems:"center",children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:l.title,children:t})}),Object(p.jsx)(v.a,{className:l.container2,children:!0===o&&Object(p.jsx)(v.a,{item:!0,className:l.btn,children:Object(p.jsx)("a",{style:{textDecoration:"none"},href:n,onClick:()=>s(),children:Object(p.jsxs)(si,{medium:!0,containerClass:l.filterButtonPlus,type:"tertiary",children:[Object(p.jsx)(ni.a,{width:"10px",height:"10px",viewBox:"",className:l.plusIcon,name:"plus"}),Ti.a.t("newBudget")]})})})})]})})};const jm=[{id:1,name:"Todos los estados",title:"",default:!0},{id:2,name:"Borrador",title:"B"},{id:3,name:"Enviado",title:"E"},{id:4,name:"Aprobado",title:"A"}
1,{id:5,name:"Rechazado",title:"R"},{id:6,name:"Facturado",title:"F"}],Am=[{id:1,name:"\xdaltimos 60 d\xedas",period:60},{id:2,name:"\xdaltimos 30 d\xedas",period:30,default:!0},{id:3,name:"\xdaltimos 15 d\xedas",period:15},{id:4,name:"\xdaltimos 7 d\xedas",period:7},{id:5,name:"Ayer",period:1},{id:6,name:"Hoy",period:0},{id:7,name:"Otro periodo",period:-1}],Cm=[{id:1,name:"Borrador",title:"B"},{id:2,name:"Enviado",title:"E"},{id:3,name:"Aprobado",title:"A"},{id:4,name:"Rechazado",title:"R"},{id:5,name:"Facturado",title:"F"}],ym={display:"flex",flexDirection:"column",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",borderRadius:"5px","@media (max-width: 665px)":{width:"90%"}},Om=Object(u.a)((e=>({primaryHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"10px",paddingBottom:"6px",paddingLeft:"24px",paddingRight:"14px"},secondaryHeader:{display:"flex",backgroundColor:"#00A692",justifyContent:"space-between",alignItems:"center",paddingLeft:"24px",borderTopLeftRadius:5,borderTopRightRadius:5,paddingRight:"14px"},white:{color:"#fff !important"},title:{fontSize:"16px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},divStyle:{opacity:1},closeIcn:{fontSize:"24px",color:"#666666"},containerForms:{padding:"20px",paddingLeft:"20px",paddingRight:"20px",paddingBottom:"30px","@media (max-width: 560px)":{paddingRight:"10px",paddingLeft:"16px"}},input:{alignSelf:"center"},containerBtn:{display:"flex",justifyContent:"flex-end",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"24px",paddingRight:"24px",width:"100%"},errorContainer:{width:"100%",paddingTop:10},customSpacing:{margin:-8,[e.breakpoints.down("sm")]:{margin:0}},customPadding:{[e.breakpoints.down("sm")]:{padding:"0px !important"}}})));var Sm=e=>{let{title:t="",children:a={},showButtons:i=!0,primaryButtonText:o="",secondaryButtonText:n="",isOpen:r=!1,primaryHeader:s=!0,headerStyle:l={},modalStyle:c=[""],innerContentStyle:d={},showSecondaryButtonIcon:u=!1,primaryButtonDisabled:m=!1,primaryButtonLoading:g=!1,secondaryButtonLoading:b=!1,secondaryButtonDisabled:h=!1,disableEnforceFocus:x=!1,disableAutoFocus:f=!1,handleClose:j=(()=>null),primaryButtonClick:A=(()=>null),secondaryButtonClick:C=(()=>null),testId:y}=e;const O=Om(),S=e=>y?`${y}-${e}`:void 0;return Object(p.jsx)(p.Fragment,{children:r&&Object(p.jsx)(ci.a,{disableEnforceFocus:x,disableAutoFocus:f,open:r,onClose:j,children:Object(p.jsxs)(di.a,{className:c,sx:ym,"data-testid":y,children:[Object(p.jsxs)(v.a,{container:!0,className:s?O.primaryHeader:O.secondaryHeader,children:[Object(p.jsx)(cn.a,{variant:"h6",className:[O.title,s?"":O.white],style:l,children:t}),Object(p.jsx)(wi.a,{onClick:j,disableRipple:!0,"data-testid":S("close-button"),style:{backgroundColor:"transparent"},children:Object(p.jsx)(mi,{name:"close",className:[O.closeIcn,s?"":O.white]})})]}),s&&Object(p.jsx)(N.a,{className:O.divStyle}),Object(p.jsx)(v.a,{columnspacing:3,container:!0,className:[O.containerForms,d],children:a}),Object(p.jsx)(N.a,{className:O.divStyle}),i&&Object(p.jsxs)(v.a,{container:!0,className:O.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{showIcon:u,loading:b,disabled:h||b,iconViewBox:"0 0 22 22",iconType:"arrowLeft",type:"secondary",testId:S("cancel-button"),onClick:C,children:n})}),Boolean(o)&&Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{loading:g,disabled:m||g,type:"primary",testId:S("confirm-button"),onClick:A,children:o})})]})]})})})},Em=a(779),Im=a(767),wm=a(740),Tm=a(574);const Pm={disablePortal:!0,disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{style:{maxHeight:224,width:250,boxShadow:"0 2px 2px rgba(0, 0, 0, 0.2)",zIndex:1e4}}},Rm=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["searchSelect",...t].filter(Boolean).join(" ")},Nm=Object(u.a)((e=>({container:{marginBottom:15,position:"relative"},item:{display:"flex",alignItems:"center"},text:{fontWeight:"400",fontSize:"14px",lineHeight:"20px",color:"#131313",fontFamily:"Work Sans, sans-serif"},placeholder:{fontWeight:"400",fontSize:"14px",lineHeight:"20px",position:"absolute",margin:0,marginTop:10,marginLeft:12,fontFamily:"Work Sans, sans-serif",overflow:"hidden",
1whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"85%",cursor:"default"}})));var Lm=e=>{let{data:t=[],initialValue:a=[],placeholder:o="",label:n="",required:r=!1,onChange:s=(()=>null),type:l="",disabled:c=!1}=e;const d=Nm(),[u,m]=i.useState([]);Object(i.useEffect)((()=>{null!==a&&a.length>0&&m(a),!1!==a&&null!==a&&0!==a.length||m([])}),[]);return Object(p.jsxs)("div",{className:d.container,children:[Boolean(n)&&Object(p.jsxs)("label",{className:"searchSelectlabel",children:[!0===r&&Object(p.jsx)("span",{className:"searchSelectArterisk",children:"* "}),n]}),0===u.length&&Object(p.jsx)("p",{style:{zIndex:c?1:0,color:c?"#929292":"#666666"},className:d.placeholder,children:o}),Object(p.jsx)(wm.a,{disabled:c,multiple:!0,value:u,onChange:e=>{const{target:{value:t}}=e;s(0===t.length?null:t),m("string"===typeof t?t.split(","):t)},input:Object(p.jsx)(Im.a,{style:{backgroundColor:"transparent"},className:` ${c?"selectDisabled":Rm(l)}`,label:"Tag"}),renderValue:e=>e.join(", "),MenuProps:Pm,sx:{width:"100%",height:40,marginRight:0,border:"1px solid #c6c6c6",fontFamily:"Work Sans, sans-serif",fontWeight:"400",fontSize:"14px","& fieldset":{display:"none"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{border:0}},children:t.map((e=>Object(p.jsx)(Em.a,{style:{padding:0,backgroundColor:"transparent",shadow:"none"},value:e.name,children:Object(p.jsxs)("div",{className:d.item,children:[Object(p.jsx)(Tm.a,{checked:u.indexOf(e.name)>-1,sx:{"&.Mui-checked":{color:"#00A692"}}}),Object(p.jsx)(cn.a,{className:d.text,children:e.name})]})},e.name)))})]})},km=a(379);a(485),a(486),a(487);var Bm=e=>{let{children:t="",required:a=!1,showIconTooltip:o=!1,iconType:n="",textTooltip:r="",disabled:s=!1,disabledMinHeight:l=!1,containerStyle:c={},onDateChange:d=(()=>{}),clearIcon:u=!1,defaultValue:m="",maxDate:g=null,minDate:b=null,showError:h=!1,errorMsg:x="",showMsg:f=!1,textMsg:v=""}=e;const[j,A]=Object(i.useState)(!1),C=!!m;return Object(p.jsxs)("div",{onClick:e=>e.stopPropagation(),className:`${l?"":"inputMinHeight"} customDatePicker inputContainer ${c} ${h?"dateInputError":""} ${s?"disabledDatePicker":""}`,children:[Object(p.jsxs)("label",{className:"inputlabel",children:[!0===a&&Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ",t," ",!0===o&&Object(p.jsx)(cr.a,{title:r,"aria-label":"Tooltip",placement:"top",disabled:s,arrow:!0,open:j,onOpen:()=>A(!0),onClose:()=>A(!1),children:Object(p.jsx)("button",{className:"tooltipButton",children:Object(p.jsx)(ni.a,{className:"inputHelpIcon",name:n,onClick:()=>A(!j)})})})]}),Object(p.jsx)(km.a,{locale:"es-ES",calendarIcon:Object(p.jsx)(ni.a,{width:"18px",height:"18px",viewBox:"0 0 18 18",name:"calendar",style:{color:"#8b9093",width:"18px",height:"18px",cursor:"pointer"}}),style:{borderColor:"red"},clearIcon:u&&C?Object(p.jsx)(ni.a,{width:"18px",height:"18px",viewBox:"0 0 20 20",name:"clearIcon2",style:{color:"#8b9093",width:"18px",height:"18px",cursor:"pointer",marginBottom:"2px"},onClick:()=>{d("")}}):null,onChange:d,value:m,maxDate:g,minDate:b,format:"dd/MM/yyyy"}),!0===h&&Object(p.jsx)("p",{className:"inputErrorMsg",children:x}),!0===f&&Object(p.jsx)("p",{className:"inputTextMsg",children:v})]})};const Dm=(e,t)=>{switch(t.type){case"SET_FILTERS":return{...e,filters:t.payload};case"SET_SELECTED_OPTIONS":case"RESET_FILTERS":return{...e,selectedOptions:t.payload};case"SET_SELECTED_OPTIONS_FROM_STORAGE":return{...e,selectedOptions:{...e.selectedOptions,...t.payload}};case"UPDATE_SELECTED_OPTION":return{...e,selectedOptions:{...e.selectedOptions,[t.propertyName]:t.value}};case"SET_SEARCH_TEXT":return{...e,searchText:t.payload};case"REMOVE_SELECTED_OPTION":return{...e,selectedOptions:t.selectedOptionsCopy};default:return e}};var Fm=(e,t)=>{const[a,o]=Object(i.useReducer)(Dm,{filters:e,searchText:"",selectedOptions:t});Object(i.useEffect)((()=>{o({type:"SET_SELECTED_OPTIONS",payload:t})}),[]);const n=Object(i.useCallback)((e=>{o({type:"SET_SELECTED_OPTIONS_FROM_STORAGE",payload:e})}),[o]);return{filters:a.filters,selectedOptions:a.selectedOptions,searchText:a.searchText,handleSelectInputChange:e=>{let{value:t,propertyName:a}=e;o({type:"UPDATE_SELECTED_OPTION",value:t,propertyName:a})},handleInputSearchChange:e=>{o({type:"SET_SEARCH_TEXT",payload:e.target.value})},dispatch:o,resetFilters:()=>{o({type:"RESET_FILTERS",payload:t})},updateFiltersFromStorage:n}};var Mm=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const{internalUrls:r=[],externalUrls:s=[]}=a,c=Object(l.h)(),d=Object(i.useRef)(null);Object(i.useEffect)((()=>
1{if(!n)return;const a=e=>{try{const t=new URL(e,window.location.origin).pathname,a=r.some((e=>t.includes(e))),i=s.some((e=>t.includes(e)));return a||i}catch(t){return!1}},i=d.current||document.referrer;c.pathname.includes(o)&&i&&!a(i)&&(sessionStorage.removeItem(t),sessionStorage.removeItem(`${t}_valid`)),d.current=c.pathname;const l=i=>{const o=i.target.closest("a");if(!o||!o.href)return;const n=o.href;a(n)&&(sessionStorage.setItem(t,JSON.stringify(e)),sessionStorage.setItem(`${t}_valid`,"true"))};return document.body.addEventListener("click",l),()=>{document.body.removeEventListener("click",l)}}),[e,t,r,s,c.pathname,o,n])};const Vm=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}})),Wm=Object(u.a)((e=>({modalStyle:{minHeight:"274px",fontFamily:"Work Sans, sans-serif",[e.breakpoints.down("xs")]:{maxWidth:"90%"}},container:{gap:10,"@media (max-width: 800px)":{justifyContent:"space-between"}},searchContainer:{flex:1,display:"flex",[e.breakpoints.down("sm")]:{flexWrap:"wrap"}},searchInput:{minWidth:280,[e.breakpoints.down("sm")]:{minWidth:"auto",flex:1,width:"60%"}},selectContainer:{minWidth:170,"@media (max-width: 800px)":{width:"100%"}},searchButtonContainer:{marginTop:23,marginLeft:5},searchButton:{borderRadius:"10px 50px 50px 10px",height:40},filterButtonContainer:{marginTop:23,marginLeft:20,"@media (max-width: 800px)":{marginTop:0,marginLeft:0,width:"100%"}},filterButton:{display:"flex",alignItems:"center",justifyContent:"center",height:40},sliderIcon:{width:"23px",height:"23px",marginTop:"5px"},clearIcon:{width:"23px",height:"23px",marginTop:"3px",marginLeft:"5px",color:"#818181",zIndex:10},chip:{height:30,maxWidth:120},rightContainer:{flex:1,display:"flex",justifyContent:"flex-end",alignItems:"center","@media (max-width: 800px)":{width:"100%",flexDirection:"column",marginTop:10,gap:10,marginBottom:15}},tooltipButton:{backgroundColor:"#fff",border:"none",display:"inline-block",padding:0,margin:0}})));var Hm=e=>{let{filtersConfig:t=[],loading:a=!1,mainInputSearchLabelText:o="",mainInputPlaceholderText:n="",initialSelectedOptions:r={},modalTitle:s="Filters",primaryButtonText:l="Apply",secondaryButtonText:c="Cancel",modalStyle:d={},children:u=null,handleFilterChange:m=(()=>{}),handleFilterApply:g=(()=>null),handleCloseModal:b=(()=>null),options:h,uniqueKey:x,DEFAULT_FILTERS:f,currentRoute:j,saveFiltersToSession:A=!1}=e;const C=Wm(),[y,O]=Object(i.useState)(!1),[S,E]=Object(i.useState)(r),[I,w]=Object(i.useState)(t),[T,P]=Object(i.useState)(!1),{selectedOptions:R={},searchText:N,handleSelectInputChange:L,handleInputSearchChange:k,updateFiltersFromStorage:B,dispatch:D}=Fm(I,r);Mm(S,x,h,j,A),Object(i.useEffect)((()=>{const e=sessionStorage.getItem(x);if(e){const t=JSON.parse(e);td.a.isEqual(t,f)||(E(t),B(t))}}),[]);const F=()=>{O(!1),E(R);const e={...R,searchText:N};g(e)},M=()=>{b(),O(!1)};Object(i.useEffect)((()=>{w(t)}),[t]),Object(i.useEffect)((()=>{td.a.isEqual(V.current,R)||(m(R),V.current=R)}),[R,m]);const V=Object(i.useRef)(R),W=Object(i.useCallback)((e=>k(e)),[k]),H=e=>{var t;if(!e)return null;const a=e.customStyle||{};switch(e.type){case"select":return Object(p.jsx)(Pr,{loading:e.loading,label:e.label,data:e.options,onChange:(t,a)=>L({value:a,propertyName:e.propertyName}),value:R[e.propertyName]||e.value,placeholder:e.placeholder,disabled:e.disabled,isUsedInModal:!0},e.propertyName);case"multipleSelect":return Object(p.jsx)(Lm,{label:e.label,data:e.options,onChange:t=>L({value:t,propertyName:e.propertyName}),initialValue:R[e.propertyName],placeholder:e.placeholder},e.propertyName);case"selectSearchApi":return Object(p.jsx)("div",{style:a,children:Object(p.jsx)(ul,{label:e.label,filter:e.filter,initValue:null===(t=R[e.propertyName])||void 0===t?void 0:t[e.option1],url:e.url,option1:e.option1,option2:e.option2,placeholderL
1abel:e.placeholder,onChange:t=>L({value:t,propertyName:e.propertyName}),isUsedInModal:!0},e.propertyName)});case"datePicker":return Object(p.jsx)(Bm,{onDateChange:t=>((e,t)=>{const a=xn()(e).utc().toISOString();L({value:a,propertyName:t})})(t,e.propertyName),clearIcon:!0,maxDate:e.maxDate,minDate:e.minDate,defaultValue:R[e.propertyName],children:e.label});case"input":return Object(p.jsx)(mr,{placeholder:e.placeholder,onChange:t=>L({event:t,propertyName:e.propertyName}),maxLength:"500",value:R[e.propertyName],children:e.label},e.propertyName);default:return null}};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(v.a,{item:!0,className:C.searchContainer,children:[Object(p.jsx)(mr,{placeholder:n,types:"inputPrimary",onChange:W,maxLength:"500",value:N,cleanButtonText:"Limpiar",onKeyDown:e=>{if("Enter"===e.key)F();else if("Escape"===e.key){const e={...R,searchText:""};g(e),D({type:"SET_SEARCH_TEXT",payload:""})}},handleClearBtnClick:()=>(()=>{const e={...R,searchText:null};g(e),D({type:"SET_SEARCH_TEXT",payload:""})})(),containerStyle:C.searchInput,clearBtn:!0,children:o}),Object(p.jsx)(v.a,{className:C.searchButtonContainer,item:!0,children:Object(p.jsx)(si,{containerClass:C.searchButton,disabled:a,medium:!0,onClick:()=>{F()},type:"primary",children:Ti.a.t("search")})}),Object(p.jsx)(v.a,{className:C.filterButtonContainer,item:!0,children:Object(p.jsxs)(si,{containerClass:C.filterButton,disabled:a,medium:!0,onClick:()=>{O(!0)},type:"secondary",children:[Object(p.jsx)(ni.a,{width:"20px",height:"20px",viewBox:"",className:C.sliderIcon,name:"sliders"}),Ti.a.t("viewFilters")]})}),Object(p.jsx)(v.a,{className:C.rightContainer,item:!0,children:u})]}),Object(p.jsx)(v.a,{container:!0,children:Object.entries(S).map((e=>{let[a,i]=e;const o=null===t||void 0===t?void 0:t.find((e=>(null===e||void 0===e?void 0:e.propertyName)===a));if("searchText"===a||""===i||Boolean(!i))return null;let n=(null===i||void 0===i?void 0:i.name)||(null===i||void 0===i?void 0:i.label);return"string"!==typeof i||isNaN(Date.parse(i))||(n=xn()(i).format("DD/MM/YYYY")),"object"===typeof i&&null!==i&&void 0!==i&&i.socialReason&&(n=i.socialReason),"object"!==typeof i||n||(n=i.value),Object.values(S).some((e=>"Otro periodo"===(null===e||void 0===e?void 0:e.name)))||"dateFrom"!==a&&"dateTo"!==a?Object(p.jsx)(cr.a,{title:(null===o||void 0===o?void 0:o.label)||"","aria-label":"Tooltip",placement:"top",arrow:!0,open:T===a,onOpen:()=>P(a),onClose:()=>P(null),children:Object(p.jsx)("button",{className:C.tooltipButton,children:Object(p.jsx)(Rc,{classNameDiv:"outlined",icon:!(null!==i&&void 0!==i&&i.default),handleOnClick:()=>{null!==i&&void 0!==i&&i.default||(e=>{let{propertyName:t}=e;const a={...R};delete a[t],O(!1),E(a),g(a),D({type:"REMOVE_SELECTED_OPTION",selectedOptionsCopy:a})})({propertyName:a})},deleteIcon:"cancel",containerStyle:{height:"30px",cursor:null!==i&&void 0!==i&&i.default?"auto":"pointer",margin:"0 5px 5px 0"},children:n})})},a):null}))}),Object(p.jsx)(Sm,{isOpen:y,handleClose:M,primaryHeader:!1,primaryButtonClick:F,secondaryButtonClick:M,title:s,primaryButtonText:l,secondaryButtonText:c,modalStyle:[C.modalStyle,d],disableEnforceFocus:!0,disableAutoFocus:!0,children:Object(p.jsx)(v.a,{onClick:e=>e.stopPropagation(),container:!0,children:t.map((e=>Object(p.jsx)(v.a,{item:!0,xs:e.sizeXs,md:e.sizeMd,children:Object(p.jsx)(Vm,{children:H(e)})},e.propertyName)))})})]})},Um=a(753),_m=a(368),zm=a.n(_m),qm=a(724),Gm=a(387),Ym=a(748),Km=a(764),Xm=a(723);const Zm=e=>{switch(e){case"primary":default:return{backgroundColor:ui.a.secondary300,color:ui.a.white,borderRight:`1px solid ${ui.a.secondary400} !important`,"&:hover":{backgroundColor:ui.a.secondary300}};case"secondary":return{backgroundColor:ui.a.white,color:ui.a.grey600,border:`1px solid ${ui.a.grey400} !important`,"&:hover":{backgroundColor:ui.a.white}}}},Qm=e=>{switch(e){case"primary":default:return{backgroundColor:ui.a.secondary300,color:ui.a.white,"&:hover":{backgroundColor:ui.a.secondary400}};case"secondary":return{backgroundColor:ui.a.white,color:ui.a.grey600,borderTop:`1px solid ${ui.a.grey400} !important`,borderBottom:`1px solid ${ui.a.grey400} !important`,borderRight:`1px solid ${ui.a.grey400} !important`,"&:hover":{backgroundColor:ui.a.grey200}}}};O.a.propTypes={buttonText:ep.PropTypes.string,type:ep.PropTypes.oneOf(["primary","secondary","tertiary","cuaternary"]),selected:ep.PropTypes.bool,disabled:ep.PropTypes.bool,disabledOption:ep.PropTypes.bool,loading:ep.PropTypes.bool,loadingBlack:ep.PropTypes.bool,showIcon:ep.PropTypes.bool,responsiveButton:ep.PropTypes.bool,onOptionSelect:ep.PropTypes.func,options:ep.PropTypes.array,iconType:ep.PropTypes.object,iconStyle:ep.PropTypes.object,iconViewBox:ep.PropTypes.object,containerStyle:ep.PropTypes.object};var Jm=function(e){let{buttonText:t="",selected:a=!1,disabled:n=!1,disabledOption:r=!1,loading:s=!1,loadingBlack:l=!1,showIcon:c=!1,type:d="primary",responsiveButton:u=!1,onOptionSelect:m=null,options:g=[],iconType:b={},iconStyle:h={},iconViewBox:x={},containerStyle:f={},menuListStyle:v={},popperStyles:j={}}=e;const[A,C]=Object(i.useState)(!1),y=o.a.useRef(null),S=Object(Xm.a)("(max-width: 800px)"),E=e=>{y.current&&y.current.contains(e.target)||C(!1)},I={...S&&{width:"80vw"}},w={...f,...S&&{width:"100%",padding:"5px 0px"}};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(Um.a,{variant:"contained",ref:y,"aria-label":"Button group with a nested menu",style:w,sx:{boxShadow:"none",fontFamily:"Work Sans, sans-serif",fontWeight:400},children:[Object(p.jsxs)(O.a,{disableRipple:!0,disabled:!0===n||!0===s||!0===l,style:u?I:null,sx:{...Zm(d),borderRadius:"50px 0px 0px 50px",textTransform:"none",fontFamily:"Work Sans, sans-serif",fontWeight:400,letterSpacing:0,cursor:"default !important"},children:[!0===s&&Object(p.jsx)(Od.a,{className:"buttonIconLoading"}),!0===l&&Object(p.jsx)(Od.a,{className:"buttonIconBlackLoading"}),!0===c&&Object(p.jsx)(ni.a,{style:h,className:!h&&"buttonIcon",name:b,viewBox:x}),t]}),Object(p.jsx)(O.a,{disableRipple:!0,disabled:!0===n||!0===s||!0===l,sx:{...Qm(d),borderRadius:"0px 50px 50px 0px",padding:0,justifyContent:"flex-start",width:"30px",minWidth:"30px !important"},size:"small","aria-controls":A?"split-button-menu":void 0,"aria-expanded":A?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:()=>{C((e=>!e))},children:Object(p.jsx)(zm.a,{sx:{padding:0}})})]}),Object(p.jsx)(Ir.a,{sx:{...j,zIndex:1,fontFamily:"Work Sans, sans-serif",fontWeight:400},open:A,anchorEl:y.current,role:void 0,transition:!0,disablePortal:!0,children:e=>{let{TransitionProps:t,placement:i}=e;return Object(p.jsx)(Gm.a,{...t,style:{transformOrigin:"bottom"===i?"center top":"center bottom"},children:Object(p.jsx)(Ym.a,{children:Object(p.jsx)(qm.a,{onClickAway:E,children:Object(p.jsx)(Km.a,{id:"split-button-menu",autoFocusItem:!0,sx:v,children:g.map(((e,t)=>Object(p.jsx)(ln.a,{sx:{fontFamily:"Work Sans, sans-serif",fontWeight:400,letterSpacing:0,fontSize:"14px",color:e.disabled?ui.a.grey400:ui.a.black,borderRadius:"2px",transition:"background-color 0.3s ease",backgroundColor:e.disabled?ui.a.grey200:"transparent","&:hover":e.disabled?{backgroundColor:ui.a.grey200}:{backgroundColor:ui.a.primary400,color:ui.a.white},cursor:e.disabled?"not-allowed":"pointer"},disabled:r,selected:a,onClick:a=>!e.disabled&&((e,t)=>{const a=g[t];m&&m(a),C(!1)})(0,t),children:e.label||e},e.label||e)))})})})})}})]})};Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));const $m={state:{id:1,name:"Todos los estados",title:"",default:!0},period:{id:2,name:"\xdaltimos 30 d\xedas",period:30,default:!0}},eg=Object(u.a)((e=>
1({filterButton:{display:"flex",alignItems:"center",justifyContent:"center",padding:10},filterButtonPlus:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:100,padding:10},sliderIcon:{width:"23px",height:"23px",marginTop:"8px"},button:{display:"flex",alignItems:"center",justifyContent:"center!important"},plusIcon:{marginTop:"13px",marginRight:"-5px"},glassIcon:{width:15,height:15,marginRight:5},containerBtn:{marginTop:"10px","@media (max-width: 600px)":{display:"flex",flexDirection:"column"}},btn1:{marginLeft:"3px","@media (max-width: 600px)":{marginBottom:"5px"}},modalStyle:{width:750,minHeight:"274px",fontFamily:"Work Sans, sans-serif",[e.breakpoints.down("xs")]:{maxWidth:"90%"}}})));var tg=e=>{var t,a;let{urlBase:o="",user:n={},userType:r="",jwtEmail:s="",usersAdditional:l=[],loadingBudgets:c=!1,loadingExportBudgets:d=!1,noItemsToExport:u=!1,loadingUsersAdditional:m=!1,fetchUserGetBudgetConfig:g=(()=>{}),handleFiltersChange:b=(()=>{}),setIsFirstRender:h=(()=>{}),handleSearchPaginate:x=(()=>{}),handleExportBudgets:f=(()=>{}),sendAmplitudeUseBudgetFilterButton:j=(()=>{}),sendAmplitudeCancelBudgetFilterButton:A=(()=>{}),hasOnePermission:C}=e;const[y,O]=Object(i.useState)([]),[S,E]=Object(i.useState)(null),[I,w]=Object(i.useState)($m),[T,P]=Object(i.useState)([]),R=eg();Object(i.useEffect)((()=>{if(l){const e=e=>e&&"object"===typeof e&&!Array.isArray(e),t=t=>Array.isArray(t)&&t.every((t=>e(t)));let a;e(l)?(a={...l,name:l.email},delete a.email):t(l)&&(a=l.map((e=>({...e,name:e.email}))),a.forEach((e=>delete e.email)));let i=a;e(i)&&(i=[i]),O(i)}}),[l,s,r]),Object(i.useEffect)((()=>{w(T)}),[T]);Object(i.useEffect)((()=>{if(o){const e=o.replace(/\/?$/,"");E(`${e}/v3/budgets/edition/`)}}),[o]);const N=[{type:"select",value:jm[0],propertyName:"state",label:Ti.a.t("state"),options:jm,placeholder:"",sizeMd:6,sizeXs:12},{type:"select",propertyName:"seller",label:Ti.a.t("seller"),loading:m,options:y,placeholder:null!==T&&void 0!==T&&null!==(t=T.seller)&&void 0!==t&&t.name?" ":Ti.a.t("selectUserAdditional"),sizeMd:6,sizeXs:12},{type:"select",value:Am[1],propertyName:"period",label:Ti.a.t("period"),options:Am,placeholder:"",sizeMd:6,sizeXs:12},{type:"datePicker",propertyName:"dateValidity",clearIcon:!0,label:Ti.a.t("dateValidityTo"),placeholder:"",sizeMd:6,sizeXs:12},..."Otro periodo"===(null===T||void 0===T||null===(a=T.period)||void 0===a?void 0:a.name)?[{type:"datePicker",clearIcon:!0,propertyName:"dateFrom",label:Ti.a.t("dateFrom"),placeholder:"",maxDate:null!==T&&void 0!==T&&T.dateTo?new Date(Math.min(new Date(null===T||void 0===T?void 0:T.dateTo),new Date)):new Date,sizeMd:6,sizeXs:12},{type:"datePicker",clearIcon:!0,propertyName:"dateTo",label:Ti.a.t("dateTo"),placeholder:"",minDate:null!==T&&void 0!==T&&T.dateFrom?new Date(new Date(null===T||void 0===T?void 0:T.dateFrom).setDate(new Date(null===T||void 0===T?void 0:T.dateFrom).getDate())):null,sizeMd:6,sizeXs:12}]:[]],L={options:[Ti.a.t("simple"),Ti.a.t("detailed")],buttonText:Ti.a.t("export"),showIcon:!0,iconType:"export",iconStyle:{paddingTop:"5px"},iconViewBox:"-5 0 25 25",responsiveButton:!0,type:"secondary",disabled:c||d||u,loadingBlack:d,onOptionSelect:e=>f({type:e===Ti.a.t("detailed")?"detailed":null})};return Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(Hm,{filtersConfig:N,initialSelectedOptions:I,modalTitle:Ti.a.t("filters"),primaryButtonText:Ti.a.t("filter"),secondaryButtonText:Ti.a.t("back"),modalStyle:R.modalStyle,mainInputSearchLabelText:Ti.a.t("numberClient"),mainInputPlaceholderText:Ti.a.t("search"),handleFilterApply:e=>{var t;let a=e;-1!==(null===e||void 0===e||null===(t=e.period)||void 0===t?void 0:t.period)&&(delete a.dateFrom,delete a.dateTo),null!==e&&void 0!==e&&e.state||(
1a.state=$m.state),null!==e&&void 0!==e&&e.period||(a.period=$m.period),w(a),(e=>{var t,a,i,o,n;h(!0),x();let r={status:null===e||void 0===e||null===(t=e.state)||void 0===t?void 0:t.title,page:1,sellerId:null===e||void 0===e||null===(a=e.seller)||void 0===a?void 0:a.idUserAdditional,condition:null===e||void 0===e?void 0:e.searchText,period:null===e||void 0===e||null===(i=e.period)||void 0===i?void 0:i.period};Boolean(null===e||void 0===e?void 0:e.dateValidity)&&(r.dateValidity=xn()(e.dateValidity).format("DD/MM/YYYY")),-1===(null===e||void 0===e||null===(o=e.period)||void 0===o?void 0:o.period)?(e.dateTo?r.toDate=xn()(e.dateTo).format("DD/MM/YYYY"):r.toDate="31/12/9999",r.fromDate=null!==e&&void 0!==e&&e.dateFrom?xn()(e.dateFrom).format("DD/MM/YYYY"):xn()("01/01/1900").format("DD/MM/YYYY")):-1===(null===e||void 0===e||null===(n=e.period)||void 0===n?void 0:n.period)&&Boolean(!e.dateFrom)&&(delete r.fromDate,delete r.toDate),console.log(r),g({filters:r}),b(r)})(a),j()},handleFilterChange:e=>{P(e)},handleCloseModal:()=>{A()},children:Object(p.jsx)(v.a,{item:!0,className:R.btn,children:C&&Object(p.jsx)(Jm,{...L})})})})},ag=a(728);const ig=Object(i.createContext)();function og(e){let{children:t}=e;const{responseData:a,errorResponse:i,isLoading:o}=Di({url:Object(aa.a)()+"currencies",method:"get",condition:!0});return Object(p.jsx)(ig.Provider,{value:{dataCurrency:a,errorCurrency:i,loadingCurrency:o},children:t})}const ng="SET_DELETE_BUDGET_LOADING",rg="SET_DELETE_BUDGET_SUCCESS",sg="SET_DELETE_BUDGET_ERROR",lg={loadingDeleteBudget:!1,errorDeleteBudget:null,successDeleteBudget:!1};var cg=()=>{const[e,t]=Object(i.useReducer)(((e,t)=>{switch(t.type){case ng:return{...e,loadingDeleteBudget:!0,errorDeleteBudget:null,successDeleteBudget:!1};case rg:return{...e,loadingDeleteBudget:!1,errorDeleteBudget:null,successDeleteBudget:!0};case sg:return{...e,loadingDeleteBudget:!1,errorDeleteBudget:t.payload,successDeleteBudget:!1};default:return e}}),lg);return{...e,deleteBudget:async e=>{t({type:ng});try{await Ya.budgets.deleteBudgetApi(e),t({type:rg})}catch(a){t({type:sg,payload:a.message})}}}},dg=a(731);const ug=Object(u.a)({root2:{display:"flex",justifyContent:"flex-end",padding:0,borderBottom:0,overflow:"hidden",marginBottom:0},toolbar:{height:"34px",paddingLeft:0,paddingRight:0},caption:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"14px",color:ui.a.grey600},actions:{color:ui.a.grey500},showArrowButtons:{width:35,height:35,color:ui.a.grey500},hideArrowButtons:{display:"none"}});var pg=e=>{let{totalCount:t=0,currentPage:a=0,limit:i=10,handleTopPageChange:o=(()=>{}),rowsPerPageOptions:n=[],shouldShowPagination:r=!0,colSpan:s=0}=e;const l=ug();return Object(p.jsx)(dg.a,{colSpan:s,count:t,page:a,rowsPerPage:i,rowsPerPageOptions:n,onPageChange:o,labelDisplayedRows:e=>{let{from:t,to:a,count:o}=e;return`Mostrando ${t<=0?0:t-i}-${t>o?o:t<=0?0:t-1} de ${-1!==o?o:`m\xe1s de ${a>o?o:a}`}`},nextIconButtonProps:{disableFocusRipple:!0,disableRipple:!0,disabled:a===Math.ceil(t/i),classes:{root:r?l.showArrowButtons:l.hideArrowButtons}},backIconButtonProps:{disableFocusRipple:!0,disableRipple:!0,disabled:1===a,classes:{root:r?l.showArrowButtons:l.hideArrowButtons}},classes:{root:l.root2,toolbar:l.toolbar,spacer:l.spacer,caption:l.caption,selectRoot:l.selectRoot,select:l.select,actions:l.actions},...!r&&{actions:null}})};const mg={F:"Facturado",A:"Aprobado",E:"Enviado",B:"Borrador",R:"Rechazado"},gg={img:On,title:Ti.a.t("emptyFiltersBudgetsListTitle"),text:Ti.a.t("emptyFiltersBudgetsListText")},bg={img:On,title:Ti.a.t("errorFiltersBudgetsListTitle"),text:Ti.a.t("errorFiltersBudgetsListText")},hg={img:Zc,buttonText:Ti.a.t("delete")},xg=Object(jn.a)({typography:{fontFamily:"Work Sans, sans-serif"}}),fg=Object(u.a)({root:e=>({"& .MuiDataGrid-root":{fontFamily:"Work Sans, sans-serif",fontSize:"13px",border:"none"},"& .MuiDataGrid-cell":{borderBottom:"1px solid #BEBEBE",display:"flex"},"& .MuiDataGrid-columnHeaders":{},"& .MuiDataGrid-columnHeader":{fontWeight:"bold",outline:"none !important"},"& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within":{outline:"none !important"},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"bold",overflow:"visible"},"& .MuiDataGrid-columnHeaderTitleContainer":{padding:0},"& .MuiDataGrid-footerContainer":{display:"none"},"& .MuiDataGrid-row:hover":{cursor:"default"},"& .MuiDataGrid-columnSeparator":{visibility:"hidden !important",display:"none !important"},"& .MuiDataGrid-cell:focus-within":{outline:"rgb(255 255 255 / 0%) solid 1px"},"& .MuiDataGrid-cell:focus":{outline:"rgb(255 255 255 / 0%) solid 1px"},"& .MuiDataGrid-row":{cursor:"default"},"& .MuiDataGrid-virtualScroller":e.hasNoRows?{minHeight:"250px","@media (max-width: 600px)":{minHeight:"400px"}}:{}}),iconColumn:{display:"flex",justifyContent:"flex-end!important",gap:"8px",color:"#8b9093"},hoverIcon:{color:"#8b9093","&:hover":{color:"#00A692 !important"}}
1,hoverRedIcon:{color:"#8b9093",cursor:"pointer","&:hover":{color:"#F32465 !important"}},tableErrors:{color:"#8b9093"},textOverflow:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},topAlignCell:{display:"flex",alignItems:"flex-start",height:"100%",paddingTop:"8px"}});var vg=e=>{let{userCountry:t="",budgetConfig:a={},filters:o={},loading:n=!1,error:r=!1,isFirstRender:s=!0,totalCount:l=0,BUDGET_LIMIT_SEARCH:c=10,currentPage:d=1,urlBase:u="",amountRounding:m=0,handlePageChange:g=(()=>{}),handleTopPageChange:b=(()=>{}),setIsFirstRender:h=(()=>{}),onBudgetClick:x=(()=>{}),fetchUserGetBudgetConfig:f=(()=>{}),setCurrentPage:j=(()=>{})}=e;const[A,C]=Object(i.useState)(!1),y=fg({hasNoRows:A}),[O,S]=Object(i.useState)(1),{dataCurrency:E,errorCurrency:I,loadingCurrency:w}=Object(i.useContext)(ig),{deleteBudget:T}=cg(),[P,R]=Object(i.useState)(null),[N,L]=Object(i.useState)(!1),[k,B]=Object(i.useState)(null),[D,F]=Object(i.useState)(hg.title),[M,V]=Object(i.useState)({}),W=(e,t)=>{V({[e]:t})},H=()=>{V({})},U=()=>{L(!1)};Object(i.useEffect)((()=>{S(Math.ceil(l/c))}),[l,c]);Object(i.useEffect)((()=>{C(0===z.length)}),[a]);const _=[{field:"number",headerName:"Nro",flex:1,minWidth:100,disableColumnMenu:!0,sortable:!1,renderCell:e=>{const t=xn()(e.row.createdAt).format("DD/MM/YYYY");return Object(p.jsxs)("div",{onClick:()=>x(e.row.budgetId),style:{cursor:"pointer"},children:[Object(p.jsx)("div",{className:"hover-style",style:{color:ui.a.primary400},children:e.row.number}),Object(p.jsx)("div",{style:{color:ui.a.textSecondary},children:t})]})}},{field:"dateValidity",headerName:"Fecha de validez",flex:1,minWidth:130,disableColumnMenu:!0,sortable:!1,renderCell:e=>{const t=xn()(e.row.dateValidity).format("DD/MM/YYYY");return Object(p.jsx)("div",{className:y.topAlignCell,children:Object(p.jsx)("div",{children:t})})}},{field:"client",headerName:"Proveedor/Cliente",flex:1.5,minWidth:180,disableColumnMenu:!0,sortable:!1,renderCell:e=>{const{socialReason:a,identificacionNumber:i,identificacionType:o}=e.row.person;return Object(p.jsxs)("div",{style:{width:"100%"},children:[Object(p.jsx)("div",{className:y.textOverflow,children:a}),Object(p.jsxs)("div",{style:{color:ui.a.textSecondary},children:[o||("ar"===t?"CUIT":"RUT")," ",i]})]})}},{field:"seller",headerName:"Vendedor",flex:2,minWidth:160,disableColumnMenu:!0,sortable:!1,renderCell:e=>{var t,a;const i=(null===e||void 0===e||null===(t=e.row)||void 0===t||null===(a=t.seller)||void 0===a?void 0:a.email)||"";return Object(p.jsx)("div",{style:{width:"100%"},className:y.topAlignCell,children:Object(p.jsx)("div",{className:y.textOverflow,children:i})})}},{field:"status",headerName:"Estado",flex:1,minWidth:100,disableColumnMenu:!0,sortable:!1,valueGetter:e=>e.row.status,renderCell:e=>{const t=e.value;return Object(p.jsx)(Rc,{disabled:!0,classNameDiv:(()=>{switch(t){case"A":case"F":default:return"success";case"B":case"E":return"outlined";case"R":return"warning"}})(),containerStyle:{minHeight:23},children:mg[t]||t})}},{field:"currencyId",headerName:"Moneda",flex:.3,minWidth:70,disableColumnMenu:!0,sortable:!1,renderCell:e=>{const t=(e=>{if(!E)return"";const t=E.find((t=>t.id===e));return t?t.symbol:""})(e.row.currencyId);return Object(p.jsx)("div",{style:{textAlign:"left"},className:y.topAlignCell,children:t})}},{field:"saleConditionId",headerName:Ti.a.t("totalBudget"),disableColumnMenu:!0,sortable:!1,minWidth:140,renderHeader:()=>Object(p.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",width:180,textAlign:"right"},children:Ti.a.t("totalBudget")}),renderCell:e=>Object(p.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",textAlign:"right",width:180},className:y.topAlignCell,children:vs(e.row.totalNetAmount,ms)})},{field:"actions",headerName:"",flex:.7,minWidth:100,disableColumnMenu:!0,sortable:!1,renderCell:e=>Object(p.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",color:"#8b9093"},children:[Object(p.jsx)(cr.a,{title:Ti.a.t("edit"),"aria-label":"Edit Tooltip",placement:"top",arrow:!0,open:1===M[e.row.budgetId],onOpen:()=>W(e.row.budgetId,1),onClose:H,children:Object(p.jsx)("a",{href:P+`${e.row.budgetId}
1`,children:Object(p.jsx)(ni.a,{width:"5px",height:"5px",viewBox:"",name:"pencil",className:y.hoverIcon})})}),Object(p.jsx)(cr.a,{title:Ti.a.t("duplicate"),"aria-label":"Duplicate Tooltip",placement:"top",arrow:!0,open:2===M[e.row.budgetId],onOpen:()=>W(e.row.budgetId,2),onClose:H,children:Object(p.jsx)("a",{href:`/v3/budgets/addNew/${e.row.budgetId}?duplicate=true`,children:Object(p.jsx)(ni.a,{width:"15px",height:"15px",viewBox:"",name:"double",className:y.hoverIcon})})}),Object(p.jsx)(cr.a,{title:Ti.a.t("delete"),"aria-label":"Delete Tooltip",placement:"top",arrow:!0,open:3===M[e.row.budgetId],onOpen:()=>W(e.row.budgetId,3),onClose:H,children:Object(p.jsx)("div",{onMouseEnter:()=>W(e.row.budgetId,3),onMouseLeave:H,children:Object(p.jsx)(ni.a,{width:"15px",height:"15px",viewBox:"",name:"delete",className:y.hoverRedIcon,onClick:()=>{return t=e.row.budgetId,a=e.row.number,B(t),F(`${Ti.a.t("modalBudgetsTitle")} #${a}?`),void L(!0);var t,a}})})})]})}],z=Array.isArray(a)?a.map((e=>({id:e.budgetId,...e}))):[];Object(i.useEffect)((()=>{z.length||h(!1)}),[]),Object(i.useEffect)((()=>{if(u){const e=u.replace(/\/?$/,"");R(`${e}/v3/budgets/edition/`)}}),[u]);let q=null;n||w?q=Object(p.jsx)(Od.a,{style:{color:"#00A692"}}):r||I?q=Object(p.jsx)("p",{className:y.tableErrors,children:Object(p.jsx)(Fc,{containerStyle:{maxWidth:700,margin:"30px auto 50px auto"},testId:"empty-state",...bg})}):z.length||(q=Object(p.jsx)(Fc,{containerStyle:{maxWidth:700,margin:"30px auto 50px auto"},testId:"empty-state",...gg}));const G=l>c;return Object(p.jsx)(v.a,{container:!0,children:Object(p.jsx)(bn.a,{theme:xg,children:Object(p.jsxs)("div",{style:{width:"100%"},className:y.root,children:[Object(p.jsx)(pg,{shouldShowPagination:G,totalCount:l,currentPage:d,limit:c,handleTopPageChange:b}),Object(p.jsx)(ag.a,{rows:z,loading:n,columns:_.map((e=>({...e,cellClassName:e=>"actions"===e.field?y.iconColumn:""}))),pageSize:z.length||5,rowsPerPageOptions:[],pagination:!1,disableSelectionOnClick:!0,autoHeight:!0,components:{NoRowsOverlay:()=>Object(p.jsx)("div",{style:{padding:"10px",textAlign:"center"},children:q}),NoResultsOverlay:()=>Object(p.jsx)("div",{style:{padding:"10px",textAlign:"center"},children:q})}}),O>1&&Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{totalPages:O,actualPage:d,page:d,onPageChange:g,theme:jc})}),Object(p.jsx)(Kc,{open:N,handleClose:U,handleAcceptClick:async()=>{await T(k),U(),f({filters:o}),j(1)},title:D,img:hg.img,buttonText:hg.buttonText,showBtn:2,modalContainerStyle:{minHeight:100,paddingBottom:20}})]})})})};const jg=Object(i.createContext)(),Ag=e=>{let{children:t}=e;const[a,o]=Object(i.useState)("limit=10&paginate=1&period=30"),[n,r]=Object(i.useState)(1);return Object(p.jsx)(jg.Provider,{value:{url:a,setUrl:o,currentPage:n,setCurrentPage:r},children:t})},Cg="SET_USERS_ADDITIONAL_LOADING",yg="SET_USERS_ADDITIONAL_SUCCESS",Og="SET_USERS_ADDITIONAL_ERROR",Sg={usersAdditional:null,loading:!1,error:null},Eg=(e,t)=>{switch(t.type){case Cg:return{...e,loading:!0,error:null};case yg:return{...e,usersAdditional:t.payload,loading:!1,error:null};case Og:return{...e,loading:!1,error:t.payload};default:return e}};var Ig=()=>{const[e,t]=Object(i.useReducer)(Eg,Sg);return{usersAdditional:e.usersAdditional,loadingUsersAdditional:e.loading,errorUsersAdditional:e.error,fetchUsersAdditionalConfig:async()=>{t({type:Cg});try{const e=await Ya.usersAdditional.getUsersAdditional();t({type:yg,payload:e})}catch(e){t({type:Og,payload:e.message})}}}};const wg="SET_BUDGET_CONFIG_LOADING",Tg="SET_BUDGET_CONFIG_SUCCESS",Pg="SET_BUDGET_CONFIG_ERROR",Rg="SET_TOTAL_COUNT",Ng="SET_BUDGET",Lg="SET_BUDGET_LOADING",kg="SET_BUDGET_ERROR",Bg="SET_BUDGET_EXPORT_LOADING",Dg="SET_BUDGET_EXPORT_SUCCESS",Fg="SET_BUDGET_EXPORT_ERROR",Mg={budgetConfig:null,loading:!1,error:null,totalCount:0,budget:null,loadingBudget:!1,errorBudget:null,loadingExportBudgets:!1,errorExportBudgets:null},Vg=(e,t)=>{switch(t.type){case wg:return{...e,loading:!0,error:null};case Tg:return{...e,budgetConfig:t.payload,loading:!1,error:null};case Pg:return{...e,loading:!1,error:t.payload};case Rg:return{...e,totalCount:t.payload};case Ng:return{...e,loadingBudget:!1,errorBudget:!1,budget:t.payload};case Lg:return{...e,loadingBudget:!0,errorBudget:!1};case kg:return{...e,loadingBudget:!1,errorBudget:!0};case Bg:return{...e,loadingExportBudgets:!0,errorExportBudgets:!1};case Dg:return{...e,loadingExportBudgets:!1,errorExportBudgets:!1};case Fg:return{...e,loadingExportBudgets:!1,errorExportBudgets:!0};default:return e}};var Wg=()=>{const[e,t]=Object(i.useReducer)(Vg,Mg);return{budgetConfig:e.budgetConfig,loading:e.loading,error:e.error,totalCount:e.totalCount,budget:e.budget,loadingBudget:e.loadingBudget,loadingExportBudgets:e.loadingExportBudgets,errorBudget:e.errorBudget,BUDGET_LIMIT_SEARCH:50,fetchUserGetBudgetConfig:async e=>{let{filters:a}=e;const{status:i,search:o,page:n,fromDate:r,toDate:s,userRegister:l,dateValidity:c,condition:d,period:u,sellerId:p}=a;t({type:wg});try{const e=await Ya.budgets.getBudget({status:i,paginate:1,search:o,page:n,fromDate:r,toDate:s,userRegister:l,limit:50,dateValidity:c,condition:d,period:u,sellerId:p});t({type:Tg,payload:e.data}),t({type:Rg,payload:e.meta.total})}catch(m){t({type:Pg,payload:m.message})}},fetchGetBudgetById:async e=>{let{id:a}=e;t({type:Lg});try{const e=await Ya.budgets.getBudgetById({id:a});t({type:Ng,payload:e})}catch(i){t({type:kg})}},exportBudgets:async e=>{let{status:a,userData:i,search:o,page:n,fromDate:r,toDate:s,userRegister:l,dateValidity:c,condition:d,period:u,sellerId:p,type:m}=e;const g={status:a,search:o,fromDate:r,toDate:s,userRegister:l,dateValidity:c,condition:d,period:u,sellerId:p,type:m};t({type:Bg});try{const e="cl"===(null===i||void 0===i?void 0:i.country)?"cotizaciones":"presupuestos",a=await Ya.budgets.exportBudgets(g),o=new Blob([a],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=document.createElement("a");n.href=URL.createObjectURL(o),n.download=e+".xlsx",document.body.appendChild(n),n.click(),t({type:Dg}),setTimeout((()=>{document.body.removeChild(n),URL.revokeObjectURL(n.href)}),500)}catch(b){t({type:Fg}),console.log({error:b})}}}};var Hg=()=>{const[e,t]=Object(i.useState)(null),{responseData:a,errorResponse:o,isLoading:n}=Di({url:Object(aa.a)()+"currencies",method:"get",condition:!0});return Object(i.useEffect)((()=>
1{if(null!==a||null!==o||o>=400){const e=null===a||void 0===a?void 0:a.find((e=>e.default));t(e)}}),[a]),{defaultCurrency:e,dataCurrency:a}};const Ug={DEFAULT_ERROR:Ti.a.t("errorContent2"),USER_ID_NOT_EXIST:Ti.a.t("account.additionalCompany.errors.deleteReasonTitle"),USER_CHILDUSERANDPARENTUSER_EQUAL:Ti.a.t("account.additionalCompany.errors.userChildUserAndParentUserEqual"),USER_CHILDUSER_NOT_EXIST:Ti.a.t("account.additionalCompany.errors.userChildUserNotExist"),USER_CHILDUSER_INACTIVATE_EXIST:Ti.a.t("account.additionalCompany.errors.userChildUserDesactivateExist"),USER_PARENT_DISTINCT:Ti.a.t("account.additionalCompany.errors.userParentDistinct"),USER_NEW_COMPANY_CREATED_ERROR:Ti.a.t("account.additionalAccountCreationError"),USER_EMAIL_EXIST:Ti.a.t("account.emailAlreadyExists"),USER_CUIT_EXIST:Ti.a.t("account.cuitAlreadyExists"),LIMITATIONS_CUIT_MAX_USAGE:Ti.a.t("account.additionalAccountLimitationError"),USER_COMPANY_LIMIT:Ti.a.t("account.additionalAccountLimitationError"),CUIT_INVALID:Ti.a.t("account.arcaEmptyDataError"),CUIT_NOT_FOUND:Ti.a.t("account.arcaDataError"),INVALID_PASSWORD:Ti.a.t("account.passwordError"),USER_MIN_ERROR:Ti.a.t("account.passwordError"),USER_RUT_ALREADY_EXISTS:Ti.a.t("clientModal.errors.userRutAlreadyExists"),USER_RUC_ALREADY_EXISTS:Ti.a.t("clientModal.errors.userRucAlreadyExists"),USER_CI_ALREADY_EXISTS:Ti.a.t("clientModal.errors.userCiAlreadyExists"),USER_CUIT_ALREADY_EXISTS:Ti.a.t("clientModal.errors.userCuitAlreadyExists"),USER_DNI_ALREADY_EXISTS:Ti.a.t("clientModal.errors.userDniAlreadyExists"),FIELD_NOT_FOUND:Ti.a.t("account.productFields.errors.fieldNotFound"),FIELD_VALUE_NOT_FOUND:Ti.a.t("account.productFields.errors.valueNotFound"),FIELD_VALUE_EXISTS:Ti.a.t("account.productFields.nameDuplicated"),FIELD_VALUES_LIMIT_REACHED:Ti.a.t("account.productFields.limitReached",{limit:Bl}),FIELD_NO_ACTIVE_VALUES:Ti.a.t("account.productFields.errors.noActiveValues"),FIELD_VALUE_IN_USE:Ti.a.t("account.productFields.errors.valueInUse"),FIELD_WOULD_BE_DISABLED:Ti.a.t("account.productFields.lastActiveTitle"),VALUE_REQUIRED_ERROR:Ti.a.t("account.productFields.nameRequired"),VALUE_STRING_ERROR:Ti.a.t("account.productFields.nameRequired"),VALUE_MAX_ERROR:Ti.a.t("account.productFields.nameTooLong",{max:Dl}),VALUE_BOOLEAN_ERROR:Ti.a.t("errorContent2"),STATUS_REQUIRED_ERROR:Ti.a.t("errorContent2"),STATUS_BOOLEAN_ERROR:Ti.a.t("errorContent2")};var _g=function(e){let{errors:t=null,showOneAlert:a=!1,onCloseAlert:o=(()=>null),containerStyle:n={},oneErrorAlertText:r="",testId:s}=e,l=[];const[c,d]=Object(i.useState)([]),u=e=>s?`${s}-${e}`:void 0;return null!==t&&void 0!==t&&t.error?l=t.error:null!==t&&Object.keys(t).forEach((e=>{l=l.concat(t[e])})),Object(i.useEffect)((()=>{(()=>{for(let e of l)if(!Ug.hasOwnProperty(null===e||void 0===e?void 0:e.code))return void d(!0);d(!1)})()}),[t]),Object(p.jsxs)(v.a,{style:{width:"100%"},"data-testid":s,children:[c&&!a&&Object(p.jsx)($r,{icon:!0,iconName:"
1circleCheck",type:"alertError2",onClick:()=>o(),testId:u("default"),children:Ug.DEFAULT_ERROR}),!c&&l.length>0&&!a&&Object(p.jsx)(v.a,{style:{marginBottom:"10px"},children:l.map(((e,t)=>{return Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>o(),testId:u((a=(null===e||void 0===e?void 0:e.code)||"default",String(a).toLowerCase().replace(/[^a-z0-9]+/g,"-"))),children:Ug[e.code]||Ug.DEFAULT_ERROR},t);var a}))}),a&&Object(p.jsx)(v.a,{style:n,children:Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>o(),testId:u("single"),children:r||Ug.DEFAULT_ERROR})})]})};const zg={display:"flex",flexDirection:"column",position:"fixed",top:0,left:0,width:"100%",height:"100%",bgcolor:"background.paper",borderRadius:"5px"},qg=Object(u.a)((e=>({modalStyle:{alignItems:"center",display:"flex",justifyContent:"space-between"},primaryHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 24px 6px"},primaryHeader2:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 0px 6px",width:"100%",maxWidth:900},secondaryHeader:{display:"flex",backgroundColor:"#00A692",justifyContent:"space-between",alignItems:"center",padding:"10px 24px",borderTopLeftRadius:5,borderTopRightRadius:5},white:{color:"#fff !important"},title:{fontSize:"16px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1},divStyle:{opacity:1},closeIcn:{fontSize:"24px",color:"#666666"},containerForms:{flex:1,backgroundColor:e.palette.background.paper,position:"relative !important",top:"30px",width:"100%",maxWidth:900,height:"90%",padding:"20px 35px",maxHeight:"75vh",overflowY:"auto"},containerArray:{height:"100%",width:"100%",backgroundColor:"#F1F4F6",display:"flex",flexDirection:"column",alignItems:"center",overflowY:"auto"},containerArrayBody:{backgroundColor:e.palette.background.paper,position:"relative !important",width:"100%",maxWidth:900,padding:"20px 35px",margin:"25px 0px 20px 0px"},titleArrayChildren:{fontSize:"18px",marginBottom:"15px",fontFamily:"Work Sans, sans-serif",paddingLeft:"10px"},containerBtn:{display:"flex",justifyContent:"flex-end",alignItems:"center",height:"64px",backgroundColor:e.palette.background.paper,position:"sticky",bottom:0,zIndex:1e3,width:"100%",maxWidth:900},containerBody:{backgroundColor:"#F1F4F6",width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},containerAlertBody:{position:"relative !important",width:"100%",maxWidth:900,margin:"25px 0px 0px 0px","@media (max-width: 600px)":{padding:"0px 10px 0px 10px"}}})));var Gg=e=>{let{children:t={},showButtons:a=!0,primaryButtonText:i="",secondaryButtonText:o="",tertiaryButtonText:n="",quaternaryButtonText:r="",isOpen:s=!1,primaryHeader:l=!0,headerStyle:c={},innerContainerStyle:d=!1,showSecondaryButtonIcon:u=!1,primaryButtonDisabled:m=!1,primaryButtonLoading:g=!1,secondaryButtonLoading:b=!1,quaternaryButtonLoading:h=!1,secondaryButtonDisabled:x=!1,handleClose:f=(()=>null),primaryButtonClick:j=(()=>null),secondaryButtonClick:A=(()=>null),tertiaryButtonClick:C=(()=>null),quaternaryButtonClick:y=(()=>null),titleChange:O=!1,titleModal:S,loading:E=!1,showAlertOk:I=!1,tertiaryButtonLoading:w=!1,scrollToTopOnQuaternaryClick:T=!1,hasChildrenArray:P=!1,childrenArrayTitles:R=[],containerRef:L=null,showAlert:k=!1,handleCloseAlert:B=(()=>{}),errorMessage:D=null}=e;const F=qg();return Object(p.jsx)(p.Fragment,{children:s&&Object(p.jsx)(ci.a,{open:s,onClose:f,children:Object(p.jsxs)(di.a,{className:F.modalStyle,sx:zg,children:[Object(p.jsxs)(v.a,{container:!0,className:F.primaryHeader2,children:[Object(p.jsx)(cn.a,{variant:"h6",className:[F.title,l?"":F.white].join(" "),style:c,children:O?S:Ti.a.t("voucherPreview")}),Object(p.jsx)(wi.a,{onClick:f,disableRipple:!0,style:{backgroundColor:"transparent"},children:Object(p.jsx)(mi,{name:"close",className:[F.closeIcn,l?"":F.white].join(" ")})})]}),l&&Object(p.jsx)(N.a,{className:F.divStyle}),P&&Array.isArray(t)?Object(p.jsxs)(v.a,{ref:L,className:F.containerArray,children:[k&&Object(p.jsx)(v.a,{item:!0,xs:12,className:F.containerAlertBody,children:Object(p.jsx)(_g,{onCloseAlert:B,errors:D})}),t.map(((e,t)=>Object(p.jsxs)(v.a,{className:F.containerArrayBody,children:[Object(p.jsx)(v.a,{className:F.titleArrayChildren,children:R[t]}),Object(p.jsx)(v.a,{container:!0,item:!0,className:d||"",children:e})]},t)))]}):Object(p.jsx)(v.a,{className:F.containerBody,children:Object(p.jsx)(v.a,{container:!0,ref:L,className:d||F.containerForms,children:t})}),a&&Object(p.jsx)(v.a,{container:!0,className:F.containerBtn,children:!E&&Object(p.jsxs)(p.Fragment,{children:["           ",Boolean(o)&&Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{showIcon:u,loading:b,disabled:x||b,iconViewBox:"0 0 22 22",iconType:"arrowLeft",type:"secondary",onClick:A,children:o})}),Boolean(n)&&Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{showIcon:u,loading:b||w,disabled:x||b,iconViewBox:"0 0 22 22",iconType:"arrowLeft",type:"secondary",onClick:C,children:n})}),Boolean(i)&&Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{loading:g,disabled:m||g||I,type:"primary",onClick:j,children:i})}),Boolean(r)&&Object(p.jsx)(v.a,{item:!0,style:{paddingLeft:"10px"},children:Object(p.jsx)(si,{loading:h,disabled:m||g||I,type:"tertiary",onClick:()=>{T&&null!==L&&void 0!==L&&L.current&&L.current.scrollTo({top:0,behavior:"smooth"}),y()},children:r})})]})})]})})})},Yg=a(741);const Kg=e=>{const t=new Date(e);return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`},Xg=e=>{let{children:t,title:a="",openModal:i=!1,budget:o={},loadingBudget:n=!1,stockRounding:r=0,amountRounding:s,showUnitPriceWithIva:l=!1,handleCloseModal:c=(()=>{}),handleEditModal:d=(()=>{})}=e;const u=Zg(),m=gs(s),{number:g,items:b,netoGravado:h,noGravado:x,observations:f,iva:v,total:j,currencyCode:A}=o||{};return Object(p.jsxs)(Gg,{handleClose:c,secondaryButtonClick:c,primaryButtonClick:()=>d({id:o.budgetId}),isOpen:i,title:n?"":g,headerStyle:{fontSize:"24px"},modalStyle:[u.modalStyle],innerContentStyle:[u.container],secondaryButtonText:Ti.a.t("
1cancel"),primaryButtonText:Ti.a.t("edit"),titleChange:!0,titleModal:a,children:[n&&Object(p.jsx)(hr.a,{container:!0,style:{width:"100%",minHeight:"50vh"},alignItems:"center",justifyContent:"center",children:Object(p.jsx)(Od.a,{style:{color:ui.a.primary400}})}),!n&&Object(p.jsxs)(hr.a,{style:{width:"100%"},children:[t,Object(p.jsx)(Ks.a,{style:{border:`1px solid ${ui.a.grey300}`,borderRadius:"5px",marginTop:20,marginBottom:20},sx:{th:{fontSize:13,fontFamily:"Work Sans, sans-serif",fontWeight:"500",padding:"10px 15px",lineHeight:1.3},td:{fontSize:13,fontFamily:"Work Sans, sans-serif",padding:"10px 15px",lineHeight:1.3}},children:Object(p.jsxs)(Xs.a,{style:{minWidth:800,overflowX:"scroll"},children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{style:{width:"50px"},className:u.thRight,children:Ti.a.t("quantityShort")}),Object(p.jsx)(Js.a,{className:u.thLeft,children:Ti.a.t("description")}),!l&&Object(p.jsx)(Js.a,{style:{width:"150px"},className:u.thRight,children:Ti.a.t("unitPriceShortWoIVA")}),l&&Object(p.jsx)(Js.a,{style:{width:"150px"},className:u.thRight,children:Ti.a.t("unitPriceShortIVA")}),Object(p.jsx)(Js.a,{style:{width:"100px"},className:u.thRight,children:Ti.a.t("bonusShort")}),Object(p.jsx)(Js.a,{className:u.thRight,children:Ti.a.t("iva")}),Object(p.jsx)(Js.a,{style:{width:"150px"},className:u.thRight,children:Ti.a.t("subtotal")})]})}),Object(p.jsx)($s.a,{children:(null===b||void 0===b?void 0:b.length)>0&&b.map(((e,t)=>{var a,i;const o=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=e+e*(t/100);return a>0&&(i-=i*(a/100)),i}((null===e||void 0===e?void 0:e.unitPrice)*(null===e||void 0===e?void 0:e.total),null===e||void 0===e?void 0:e.iva,null===e||void 0===e?void 0:e.bonus),n=hs(null===e||void 0===e?void 0:e.unitPrice,null===e||void 0===e?void 0:e.iva);return Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:u.thRight,children:Os(null===e||void 0===e?void 0:e.total,parseFloat(r))}),Object(p.jsxs)(Js.a,{className:u.thLeft,children:[Object(p.jsxs)("div",{children:[null===e||void 0===e?void 0:e.description,Boolean(null===e||void 0===e?void 0:e.presentationName)&&` - ${Cu(e.presentationName,Au(e))}`]}),Object(p.jsxs)("div",{style:{fontSize:"12px",color:ui.a.grey500},children:["SKU ",null===e||void 0===e||null===(a=e.concept)||void 0===a?void 0:a.code]})]}),!l&&Object(p.jsxs)(Js.a,{className:u.thRight,children:[A," ",vs(null===e||void 0===e?void 0:e.unitPrice,m)]}),l&&Object(p.jsxs)(Js.a,{className:u.thRight,children:[A," ",vs(n,m)]}),Object(p.jsx)(Js.a,{className:u.thRight,children:vs(null===e||void 0===e?void 0:e.bonus,ms)}),Object(p.jsx)(Js.a,{className:u.thRight,children:null===e||void 0===e||null===(i=e.iva)||void 0===i?void 0:i.toString().replace(".",",")}),Object(p.jsxs)(Js.a,{className:u.thRight,children:[A," ",vs(o,ms)]})]},t)}))})]})}),Object(p.jsxs)(hr.a,{container:!0,className:u.flexFooter,children:[Object(p.jsx)(Yg.a,{mdDown:!0,children:Object(p.jsxs)(hr.a,{item:!0,className:u.gridItem,children:[Object(p.jsx)("p",{className:u.textTitle,children:Ti.a.t("observations")}),Object(p.jsx)("p",{className:u.greyText,children:Boolean(f)?f:"Este comprobante no tiene observaciones."})]})}),Object(p.jsxs)(hr.a,{container:!0,item:!0,className:u.priceBox,children:[Object(p.jsxs)(hr.a,{container:!0,item:!0,className:u.grid,children:[Object(p.jsx)("p",{className:u.gridText,children:"Neto gravado"}),Object(p.jsxs)("p",{className:u.gridText,children:[A," ",vs(h,ms)]})]}),Object(p.jsxs)(hr.a,{container:!0,item:!0,className:u.grid,children:[Object(p.jsx)("p",{className:u.gridText,children:"NO gravado/exento"}),Object(p.jsxs)("p",{className:u.gridText,children:[A," ",vs(x,ms)]})]}),Object(p.jsxs)(hr.a,{container:!0,item:!0,className:u.grid,children:[Object(p.jsx)("p",{className:u.gridText,children:"IVA"}),Object(p.jsxs)("p",{className:u.gridText,children:[A," ",vs(v,ms)]})]}),Object(p.jsxs)(hr.a,{container:!0,item:!0,className:u.lastGrid,style:{marginTop:5},children:[Object(p.jsx)("p",{style:{fontWeight:600,fontSize:"18px"},className:u.gridText,children:"TOTAL"}),Object(p.jsxs)("p",{style:{fontWeight:600,fontSize:"18px"},className:u.gridText,children:[A," ",vs(j,ms)]})]})]}),Object(p.jsx)(Yg.a,{mdUp:!0,children:Object(p.jsxs)(hr.a,{item:!0,className:u.gridItem,children:[Object(p.jsx)("p",{className:u.textTitle,children:Ti.a.t("observations")}),Object(p.jsx)("p",{className:u.greyText,children:f})]})})]})]})]})},Zg=Object(u.a)((e=>({container:{maxHeight:"67vh",overflowY:"scroll",width:"100%",padding:"20px 35px"},modalStyle:{width:"100%",height:"100%",display:"flex",flexDirection:"column","@media (max-width: 479px)":{width:"90% !important"}},grid:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"35px",padding:"0px 25px",marginBottom:-1},lastGrid:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"50px",padding:"10px 25px",marginTop:"10px",border:`1px solid ${ui.a.grey300}`},flexFooter:{display:"flex",flexWrap:"nowrap",marginTop:30,justifyContent:"space-between","@media (max-width: 600px)":{flexWrap:"wrap",flexDirection:"column"}},priceBox:{maxWidth:375,border:`1px solid ${ui.a.grey300}`,borderRadius:"5px",paddingTop:"10px","@media (max-width: 900px)":{maxWidth:"100%"}},textTitle:{fontSize:"16px",color:ui.a.primary300,fontWeight:600,paddingTop:15,marginBottom:5},text:{fontFamily:"Work Sans, sans-serif !important",fontWeight:500,marginBottom:"5px",fontSize:"13px",lineHeight:"20px"},greyText:{fontFamily:"Work Sans, sans-serif !important",fontWeight:400,marginBottom:"5px",fontSize:"13px",lineHeight:"20px",color:ui.a.grey600},gridItem:{maxWidth:"425px",maxHeight:"170px","& p":{wordWrap:"break-word",whiteSpace:"pre-wrap"},"@media (max-width: 900px)":{maxWidth:"100%"}},gridText:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"14px",lineHeight:"20px",margin:0,"@media (max-width: 479px)":{fontSize:"12px",marginTop:"10px"}},bottomInfo:{marginTop:20},thRight:{textAlign:"right !important"}})));const Qg=Object(u.a)((e=>({textTitle:{fontSize:"16px",color:ui.a.primary300,fontWeight:600,paddingTop:15},greyText:{fontFamily:"Work Sans, sans-serif !important",fontWeight:400,marginBottom:"8px",fontSize:"13px",diplay:"flex",flexDirection:"row",lineHeight:"16px",color:ui.a.grey600},boldText:{fontFamily:"Work Sans, sans-serif !important",fontWeight:600,marginBottom:"5px",fontSize:"16px",lineHeight:"20px"},text:{fontFamily:"Work Sans, sans-serif !important",fontWeight:500,marginBottom:"5px",fontSize:"13px",lineHeight:"20px"},seller:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"14px",lineHeight:"20px",marginTop:"55px",marginBottom:"5px","@media (max-width: 479px)":{marginTop:"5px"}},padding:{paddingTop:"0px","@media (max-width: 600px)":{paddingTop:"5px"}},container1:{display:"flex",justifyContent:"space-between",marginTop:"10px",flexDirection:"row","@media (max-width: 680px)":{display:"inline"}},number:{fontFamily:"Work Sans",fontSize:"28px",fontWeight:"500",lineHeight:"32.84px",textAlign:"left"},containerDates:{"@media (max-width: 680px)":{margin:"20px 0"}}})));var Jg=e=>{let{budget:t={},defaultCurrency:a={},amountRounding:i=0,formatDate:o=(()=>{}),inventoriesText:n=!1,phoneText:r=!1}=e;const s=Qg(),{number:l,person:c,saleCondition:d,seller:u,observations:m,createdAt:g,dateValidity:b,exchangeRate:h,currencyId:x,userModifies:f,userRegister:v,userConfigIvaCondition:j,inventories:A}=t||{},{socialReason:C,identificacionNumber:y,identificacionType:O,province:S,city:E,phone:I}=c||{};return Object(p.jsxs)(hr.a,{children:[Object(p.jsxs)(hr.a,{className:s.container1,children:[Object(p.jsx)(hr.a,{className:s.number,children:l}),Object(p.jsxs)(hr.a,{className:s.containerDates,children:[Object(p.jsxs)("p",{className:s.greyText,children:[Object(p.jsx)(ni.a,{width:"18px",height:"18px",viewBox:"0 0 18 18",name:"calendar",style:{color:ui.a.grey500,width:"18px",height:"18px"}}),"  ",Ti.a.t("dateCreated"),": ",Object(p.jsxs)("b",{children:[" ",o(g)]})]}),Object(p.jsxs)("p",{className:s.greyText,children:[Object(p.jsx)(ni.a,{width:"18px",height:"18px",viewBox:"0 0 18 18",name:"",style:{color:ui.a.grey500,width:"18px",height:"18px"}}),"  ",Ti.a.t("dateValidity"),": ",Object(p.jsx)("b",{children:o(b)})]})]})]}),Object(p.jsxs)(hr.a,{className:s.container1,children:[Object(p.jsxs)(hr.a,{children:[Object(p.jsx)("p",{style:{marginBottom:16},className:s.boldText,children:Object(p.jsx)("div",{children:C})}),Object(p.jsxs)("p",{className:s.greyText,children:[Ti.a.t("document"),":",Object(p.jsxs)("b",{children:[" ",O," ",y]})]}),Object(p.jsxs)("p",{className:s.greyText,children:[Ti.a.t("location"),":",Object(p.jsxs)("b",{children:[null!==S&&void 0!==S&&S.province&&"SIN IDENTIFICAR"!==(null===S||void 0===S?void 0:S.province)?` ${null===S||void 0===S?void 0:S.province}, `:" ",null!==E&&void 0!==E&&E.city&&"SIN IDENTIFICAR"!==(null===E||void 0===E?void 0:E.
1city)?`${E.city}, `:"",null!==c&&void 0!==c&&c.address&&"SIN IDENTIFICAR"!==(null===c||void 0===c?void 0:c.address)?`${c.address}`:""]})]}),r&&Object(p.jsxs)("p",{className:s.greyText,children:[Ti.a.t("phone"),":",Object(p.jsxs)("b",{children:[" ",I]})]}),Object(p.jsxs)("p",{className:s.greyText,children:[Ti.a.t("sellerCondition"),":",Object(p.jsxs)("b",{children:[" ",null===d||void 0===d?void 0:d.name]})]}),Object(p.jsxs)("p",{className:s.greyText,children:[Ti.a.t("seller"),":",Object(p.jsxs)("b",{children:[" ",null===u||void 0===u?void 0:u.email]})]}),x!==(null===a||void 0===a?void 0:a.id)&&Object(p.jsxs)("p",{className:s.greyText,children:[Ti.a.t("exchangeType"),": ",Object(p.jsx)("b",{children:vs(h,i)})]})]}),Object(p.jsx)(hr.a,{style:{marginTop:30},item:!0,xs:12,sm:6,children:Object(p.jsxs)(hr.a,{container:!0,item:!0,className:s.bottomInfo,children:[Object(p.jsx)(hr.a,{item:!0,xs:12,sm:12,children:Object(p.jsxs)("p",{className:`${s.greyText} ${s.padding}`,children:[Ti.a.t("userCreates"),": ",Object(p.jsx)("b",{children:v})]})}),Object(p.jsx)(hr.a,{item:!0,xs:12,sm:12,children:Object(p.jsxs)("p",{className:`${s.greyText} ${s.padding}`,children:[Ti.a.t("userModifies"),": ",Object(p.jsx)("b",{children:f})]})}),n&&Object(p.jsx)(hr.a,{item:!0,xs:12,sm:12,children:Object(p.jsxs)("p",{className:`${s.greyText} ${s.padding}`,children:[Ti.a.t("deposit"),": ",Object(p.jsx)("b",{children:A})]})})]})})]})]})};const $g=()=>{Object(c.b)("Presupuesto - Nvo Presupuesto - Volver a la versi\xf3n anterior")},eb=()=>{Object(c.b)("Presupuesto - Nvo Nuevo Presupuesto")},tb=()=>{Object(c.b)("Presupuestos - Nvo Ver Filtros - filtrar")},ab=()=>{Object(c.b)("Presupuestos - Nvo Ver Filtros - cancelar")},ib={3195:"pesos",82809:"d\xf3lares",1324:"pesos",4691:"d\xf3lares",5:"pesos",6:"d\xf3lares"},ob={B:"borrador",E:"enviado",A:"aprobado",R:"rechazado",F:"facturado"},nb={period:30,status:null,page:1,fromDate:null,toDate:null,userRegister:null,dateValidity:null,condition:null};var rb=()=>{var e,t,a;const{userData:o,baseUrl:n}=Object(i.useContext)(Qa),r=o,s=Yi().props.value.dataUser,{defaultCurrency:l,dataCurrency:d}=Hg(),{amountRounding:u}=s||{},{stockRounding:m}=s||{},[g,b]=Object(i.useState)(nb),{url:h,setUrl:x,currentPage:f,setCurrentPage:v}=Object(i.useContext)(jg),{usersAdditional:j,loadingUsersAdditional:A,errorUsersAdditional:C,fetchUsersAdditionalConfig:y}=Ig(),{budgetConfig:O,loading:S,error:E,budget:I,loadingBudget:w,loadingExportBudgets:T,errorBudget:P,totalCount:R,BUDGET_LIMIT_SEARCH:N,fetchUserGetBudgetConfig:L,fetchGetBudgetById:k,exportBudgets:B}=Wg(),[D,F]=Object(i.useState)(!0),[M,V]=Object(i.useState)(!1),[W,H]=Object(i.useState)(null),[U,_]=Object(i.useState)(!1),z=null===r||void 0===r?void 0:r.user_type,q=null===r||void 0===r?void 0:r.country,{permissions:G}=Object(i.useContext)(Ka),Y=(null===s||void 0===s?void 0:s.ivaCondition)===(null===Ki||void 0===Ki||null===(e=Ki.MO)||void 0===e?void 0:e.value)||(null===s||void 0===s?void 0:s.ivaCondition)===(null===Ki||void 0===Ki||null===(t=Ki.EX)||void 0===t?void 0:t.value)||(null===s||void 0===s?void 0:s.ivaCondition)===(null===Ki||void 0===Ki||null===(a=Ki.PEQUY)||void 0===a?void 0:a.value),K=()=>{V(!1)};Object(i.useEffect)((()=>{const e=()=>{M&&(K(),window.history.go(1))};return M&&window.history.pushState({modalOpen:!0},""),window.addEventListener("popstate",e),()=>{M&&window.history.replaceState(null,"",window.location.href),window.removeEventListener("popstate",e)}}),[M,K]),Object(i.useEffect)((()=>{y(),L({filters:g})}),[]),Object(i.useEffect)((()=>{const e=Array.isArray(G)&&G.includes(1);_(e)}),[G]),Object(i.useEffect)((()=>{if(n){const e=n.replace(/\/?$/,"");H(`${e}/v3/budgets/edition/`)}}),[n]);const X={showButtons:!1,renderTitleComponent:()=>Object(p.jsx)("div",{children:Object(p.jsx)(vm,{title:Ti.a.t("budgetsTitle"),sendAmplitudeNewBudgetButton:eb,button:!0,budgetUrl:"/v3/budgets/addNew"})})},Z={url:h,setUrl:x,currentPage:f,usersAdditional:j,loadingUsersAdditional:A,loadingBudgets:S,loadingExportBudgets:T,noItemsToExport:0===R,jwtEmail:null===o||void 0===o?void 0:o.email,isFirstRender:D,urlBase:n,user:r,userType:z,errorUsersAdditional:C,setIsFirstRender:F,handleSearchPaginate:()=>{v(1)},handleExportBudgets:e=>{let{type:t}=e;const a={...g,type:t,userData:o};B(a),(e=>{let t="";"detailed"===e?t="detallado":""!==e&&null!==e||(t="simple"),Object(c.b)("Presupuestos - 
1Nvo Exportar",{tipo:t})})(t)},sendAmplitudeUseBudgetFilterButton:tb,sendAmplitudeCancelBudgetFilterButton:ab,fetchUserGetBudgetConfig:L,handleFiltersChange:e=>{b(e)},hasOnePermission:U},Q={userCountry:q,budgetConfig:O,loading:S,error:E,totalCount:R,BUDGET_LIMIT_SEARCH:N,url:h,currentPage:f,handlePageChange:e=>{const t={...g,page:e};L({filters:t}),v(e)},handleTopPageChange:(e,t)=>{const a={...g,page:t};L({filters:a}),v(t)},isFirstRender:D,setIsFirstRender:F,urlBase:n,onBudgetClick:e=>{k({id:e}),V(!0)},fetchUserGetBudgetConfig:L,filters:g,setCurrentPage:v,amountRounding:u},J={budget:I,loadingBudget:w,errorBudget:P,openModal:M,defaultCurrency:l,dataCurrency:d,amountRounding:u,showUnitPriceWithIva:Y,handleCloseModal:K,handleEditModal:e=>{let{id:t}=e;const a=`${W}${t}`;window.location.href=a},fetchUserGetBudgetConfig:L,filters:g,stockRounding:m,title:Ti.a.t("budgetView")},$={budget:I,defaultCurrency:l,amountRounding:u,formatDate:Kg,userConfigIvaCondition:s};return Object(p.jsxs)(Ag,{children:[Object(p.jsxs)(xm,{...X,children:[Object(p.jsx)(tg,{...Z}),Object(p.jsx)(og,{children:Object(p.jsx)(vg,{...Q})})]}),Object(p.jsx)(Xg,{...J,children:Object(p.jsx)(Jg,{...$})})]})};const sb="SET_BUDGET_POST_LOADING",lb="SET_BUDGET_POST_SUCCESS",cb="SET_BUDGET_POST_ERROR",db={responsePostBudget:null,loadingPostBudget:!1,errorPostBudget:null},ub=(e,t)=>{switch(t.type){case sb:return{...e,loadingPostBudget:!0,errorPostBudget:null};case lb:return{...e,responsePostBudget:t.payload,loadingPostBudget:!1,errorPostBudget:null};case cb:return{...e,loadingPostBudget:!1,errorPostBudget:t.payload};default:return e}};var pb=()=>{const[e,t]=Object(i.useReducer)(ub,db);return{responsePostBudget:e.responsePostBudget,loadingPostBudget:e.loadingPostBudget,errorPostBudget:e.errorPostBudget,postBudget:async e=>{t({type:sb});try{const a=await Ya.budgets.sendBudgetApi(e);return t({type:lb,payload:a}),a}catch(a){t({type:cb,payload:a.message})}},putBudget:async(e,a)=>{t({type:sb});try{const i=await Ya.budgets.updateBudgetApi({id:e,payload:a});t({type:lb,payload:i})}catch(i){t({type:cb,payload:i.message})}}}};const mb="SET_SALES_CONDITIONS_LOADING",gb="SET_SALES_CONDITIONS_SUCCESS",bb="SET_SALES_CONDITIONS_ERROR",hb={salesConditionsConfig:[],loading:!1,error:null},xb=(e,t)=>{switch(t.type){case mb:return{...e,loading:!0,error:null};case gb:return{...e,salesConditionsConfig:t.payload,loading:!1,error:null};case bb:return{...e,loading:!1,error:t.payload};default:return e}};var fb=()=>{const[e,t]=Object(i.useReducer)(xb,hb);return{salesConditionsConfig:e.salesConditionsConfig,salesConditionsLoading:e.loading,salesConditionsError:e.error,fetchUserGetSalesConditionsConfig:async()=>{t({type:mb});try{const e=await Ya.salesConditions.getSalesConditions();t({type:gb,payload:e})}catch(e){t({type:bb,payload:e.message})}}}};const vb="SET_USERS_LOADING",jb="SET_USERS_SUCCESS",Ab="SET_USERS_ERROR",Cb="SET_USER_OBSERVATIONS_LOADING",yb="SET_USER_OBSERVATIONS_SUCCESS",Ob={usersConfig:null,usersLoading:!1,usersError:null,userObservations:null,userObservationsLoading:!1},Sb=(e,t)=>{switch(t.type){case vb:return{...e,loading:!0,error:null};case jb:return{...e,usersConfig:t.payload,loading:!1,error:null};case Ab:return{...e,loading:!1,error:t.payload};case Cb:return{...e,userObservationsLoading:!0};case yb:return{...e,userObservations:t.payload,userObservationsLoading:!1};default:return e}};var Eb=()=>{const[e,t]=Object(i.useReducer)(Sb,Ob),a=Object(i.useCallback)((async()=>{t({type:vb});try{const e=await Ya.usersConfig.getUsersConfig();t({type:jb,payload:e})}catch(e){t({type:Ab,payload:e.message})}}),[]);return{usersConfig:e.usersConfig,usersLoading:e.loading,usersError:e.error,userObservations:e.userObservations,userObservationsLoading:e.userObservationsLoading,fetchUsersConfigReducer:async()=>{t({type:vb});try{const e=await Ya.usersConfig.getUsersConfig();t({type:jb,payload:e})}catch(e){t({type:Ab,payload:e.message})}},fetchUserObservations:async()=>{t({type:Cb});try{const e=await Ya.usersConfig.getUserObservations();t({type:yb,payload:e})}catch(e){t({type:yb,payload:e.message})}},fetchUsersConfigurationReducer:a}};const Ib="SET_CHANGE_TYPE_LOADING",wb="SET_CHANGE_TYPE_SUCCESS",Tb="SET_CHANGE_TYPE_ER
1ROR",Pb={changeTypeConfig:null,changeTypeLoading:!1,changeTypeError:null},Rb=(e,t)=>{switch(t.type){case Ib:return{...e,loading:!0,error:null};case wb:return{...e,changeTypeConfig:t.payload,loading:!1,error:null};case Tb:return{...e,loading:!1,error:t.payload};default:return e}};var Nb=()=>{const[e,t]=Object(i.useReducer)(Rb,Pb);return{changeTypeConfig:e.changeTypeConfig,changeTypeLoading:e.loading,changeTypeError:e.error,fetchChangeTypeReducer:async()=>{t({type:Ib});try{const e=await Ya.changeType.getChangeType();t({type:wb,payload:e})}catch(e){t({type:Tb,payload:e.message})}}}};const Lb="SET_BUDGETS_NUMBER_POST_LOADING",kb="SET_BUDGETS_NUMBER_POST_SUCCESS",Bb="SET_BUDGETS_NUMBER_POST_ERROR",Db={responsePostBudgetsNumber:null,loadingPostBudgetsNumber:!1,errorPostBudgetsNumber:null},Fb=(e,t)=>{switch(t.type){case Lb:return{...e,loadingPostBudgetsNumber:!0,errorPostBudgetsNumber:null};case kb:return{...e,responsePostBudgetsNumber:t.payload,loadingPostBudgetsNumber:!1,errorPostBudgetsNumber:null};case Bb:return{...e,loadingPostBudgetsNumber:!1,errorPostBudgetsNumber:t.payload};default:return e}};var Mb=()=>{const[e,t]=Object(i.useReducer)(Fb,Db);return{responsePostBudgetsNumber:e.responsePostBudgetsNumber,loadingPostBudgetsNumber:e.loadingPostBudgetsNumber,errorPostBudgetsNumber:e.errorPostBudgetsNumber,postBudgetsNumber:async()=>{t({type:Lb});try{const e=await Ya.budgets.postBudgetsNumber();return t({type:kb,payload:e}),e}catch(e){t({type:Bb,payload:e.message})}}}};const Vb=Object(u.a)((e=>({titleContainer:{marginBottom:15},number:{fontSize:"12.83px",fontWeight:700,lineHeight:"16.5px",textAlign:"center",color:ui.a.primary400,display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},numberContainer:{width:"33px",height:"33px",border:"1.8px solid #00A692",borderRadius:"50%",marginRight:"15px",display:"flex",alignItems:"center",justifyContent:"center"},textContainer:{display:"flex",alignItems:"center"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"20px",display:"flex",flexDirection:"row"},line:{flexGrow:1,height:"1px",backgroundColor:"#E0E0E0",marginLeft:"10px"},text:{fontFamily:"Work Sans",fontSize:"16px"}})));var Wb=e=>{let{number:t,text:a}=e;const i=Vb();return Object(p.jsxs)(v.a,{container:!0,alignItems:"center",className:i.titleContainer,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)("div",{className:i.numberContainer,children:Object(p.jsx)(cn.a,{className:i.number,variant:"h6",children:t})})}),Object(p.jsx)(v.a,{item:!0,className:i.textContainer,children:Object(p.jsx)(cn.a,{className:i.title,variant:"h6",children:a})}),Object(p.jsx)(v.a,{item:!0,className:i.line})]})};const Hb=Object(u.a)((e=>({stepContainer:{width:"100%",margin:"20px 0"}}))),Ub=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var _b=e=>{let{data:t={},urlBase:a="",budgetNumber:i="",person:o={},error:n={state:!1,text:""},setPersonId:r=(()=>{}),onChange:s=(()=>{}),setStepOneError:l=(()=>{}),setPerson:c=(()=>{}),setAdditionalUserId:d,newBudgetNumber:u,loadingPostBudgetsNumber:m,errorPostBudgetsNumber:g,personValue:b,setPersonValue:h,isBudgetNumberLoading:x,onClickNewClient:f,disableNewClientButton:j=!1}=e;const A=Hb();return Object(p.jsxs)(v.a,{id:"stepOne",className:A.stepContainer,children:[Object(p.jsx)(Wb,{number:1,text:Ti.a.t("principalData")}),Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(Ub,{children:Object(p.jsx)(ul,{label:Ti.a.t("supplierClient"),required:!0,type:"searchSelectConfigurationApi",filter:"limit=5",url:Object(aa.a)()+"people",option2:"identificacionNumber",option1:"socialReason",placeholderL
1abel:Ti.a.t("selectSupplierOr"),onChange:e=>(e=>{let a="";null!==e&&void 0!==e&&e.identificacionNumber&&null!==e&&void 0!==e&&e.socialReason?a=`${e.identificacionNumber} - ${e.socialReason}`:null!==e&&void 0!==e&&e.identificacionNumber?a=e.identificacionNumber:null!==e&&void 0!==e&&e.socialReason&&(a=e.socialReason),null!==e?(r(e.personId),d(e.aditionalUserId),c(e),h(a),s({...t,personId:null===e||void 0===e?void 0:e.personId},l({state:!1,text:""}))):(r(""),c(""),h(""),s({...t,personId:""}))})(e),selectTwoOptions:!0,iconConfiguration:!0,onClick:f,iconDisabled:j,error:!0===n.state,errorMsg:n.text,disableClearable:!0,initValue:b,values:b})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(Ub,{children:Object(p.jsx)(mr,{showError:!!g,required:!0,maxLength:"500",value:i,disabled:!0,types:"inputDisabled2",loading:m||x,children:Ti.a.t("number")})})})]})]})};const zb="B",qb="C",Gb=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var Yb=e=>{let{data:t,salesConditionsConfig:a,salesConditionsLoading:o,usersAdditional:n,loadingUsersAdditional:r,onChange:s,dateValidity:l,setDateValidity:c,date:d,setDate:u,states:m,setStates:g,statesApi:b,setStatesApi:h,usersId:x,setUsersId:f,setPaymentConditionsId:j,setPaymentConditions:A,paymentConditions:C,setUsers:y=(()=>{}),users:O={},isEdition:S=!1,stepTwoError:E={},additionalUserId:I,userData:w}=e;const[T,P]=Object(i.useState)([]),R=(null===w||void 0===w?void 0:w.user_type)===qb,N=(null===w||void 0===w?void 0:w.user_type)===zb,[L,k]=Object(i.useState)(!1);Object(i.useEffect)((()=>{Boolean(x)&&k(!0)}),[S]);const B=()=>{const e={...n,name:null===n||void 0===n?void 0:n.email,id:null===n||void 0===n?void 0:n.idUserAdditional};y(e),f(null===e||void 0===e?void 0:e.id)},D=()=>{const e=T.find((e=>e.id===(null===w||void 0===w?void 0:w.additional_id)));e&&(y(e),f(null===w||void 0===w?void 0:w.additional_id))};Object(i.useEffect)((()=>{S?S&&R&&!x?B():S&&N&&!x&&T.length>0&&D():R&&n?B():T.length>0&&N&&D()}),[w,S,n,T,I]),Object(i.useEffect)((()=>{if(!o&&!S&&a.length>0){const e=a.find((e=>"1"===(null===e||void 0===e?void 0:e.default)));A(e)}}),[a,o]),Object(i.useEffect)((()=>{if(n){const e=e=>e&&"object"===typeof e&&!Array.isArray(e),t=t=>Array.isArray(t)&&t.every((t=>e(t)));let a;e(n)?a={...n,name:n.email,id:n.idUserAdditional}:t(n)&&(a=n.map((e=>({...e,name:e.email,id:e.idUserAdditional}))));let i=e(a)?[a]:a;if(x&&i){i.some((e=>e.id===x))||i.push({name:(null===O||void 0===O?void 0:O.email)||"",email:(null===O||void 0===O?void 0:O.email)||"",id:x,idUserAdditional:x})}i&&(i.sort(((e,t)=>e.name.localeCompare(t.name))),P(i))}}),[n]),Object(i.useEffect)((()=>{if(null!==I||R||N||S){if(n&&n.length>0){const e=T.find((e=>e.id===I));e&&(y(e),f(I))}}else y(null)}),[I,S]),Object(i.useEffect)((()=>{if(null!==I&&n&&n.length>0){const e=T.find((e=>e.id===I));e&&y(e)}}),[I]),Object(i.useEffect)((()=>{if(S&&n&&n.length>0&&x){const e=n.find((e=>e.idUserAdditional===x));if(e){const t={...e,name:e.email};delete t.email,y(t)}}}),[S,n,x,y]);const F=e=>{if(!e)return null;return new Date(e).toLocaleDateString("es-ES",{day:"2-digit",month:"2-digit",year:"numeric"})};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Wb,{number:2,text:Ti.a.t("generalData")}),Object(p.jsxs)(v.a,{id:"stepTwo",container:!0,xs:12,md:12,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Gb,{children:Object(p.jsx)(Pr,{label:Ti.a.t("state"),type:"searchSelectConfiguration",data:Cm,onChange:function(e,a){null!==a&&(g(a),h(null===a||void 0===a?void 0:a.title),s({...t,status:a.title}))},onSelectInputChange:function(e){const{value:t}=e.target;""===t&&(g(m),h(b))},value:m,required:!0})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Gb,{children:Object(p.jsx)(Pr,{label:Ti.a.t("paymentConditions"),data:a,onChange:function(e,a){A(a),null!==a&&(j(Number(a.saleConditionId)),s({...t,saleConditionId:a.id}))},value:C,loading:!S&&o,defaultValue:C,onSelectInputChange:e=>{const{value:t}=e.target;""===t&&A(C)},required:!0,type:C||o?"searchSelectConfiguration":"searchSelectConfigurationError",errorMsg:C||o?"":Ti.a.t("requiredField"),showError:!0})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Gb,{children:Object(p.jsx)(Pr,{sx:{".MuiAutocomplete-inputRoot .MuiAutocomplete-input"
1:{minWidth:"85% !important"}},label:Ti.a.t("sellers"),placeholder:O?" ":Ti.a.t("selectSeller"),type:"searchSelectConfiguration",data:T,onChange:function(e,a){null!==a?(y(a),f(a.idUserAdditional),s({...t,sellerId:a.idUserAdditional||null})):(y(null),f(null))},value:O,defaultValue:O,loading:!S&&r,disabled:0===T.length||R||N||S&&L})})})]}),Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Gb,{children:Object(p.jsx)(Bm,{required:!0,onDateChange:e=>{if(u(e),"Invalid date"===e)u(null),s({...t,createdAt:null});else{const a=F(e);s({...t,createdAt:a||null})}},clearIcon:!0,maxDate:l?new Date(l):null,defaultValue:d,showError:E.state&&Boolean(!d),errorMsg:Ti.a.t("requiredField"),children:Ti.a.t("date")})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Gb,{children:Object(p.jsx)(Bm,{required:!0,onDateChange:e=>{if(c(e),"Invalid date"===e)c(null),s({...t,dateValidity:null});else{const a=F(e);s({...t,dateValidity:a||null})}},clearIcon:!0,minDate:d?new Date(d):null,defaultValue:l,showError:E.state&&Boolean(!l),errorMsg:Ti.a.t("requiredField"),children:Ti.a.t("dateValidity")})})})]})]})};const Kb=Object(u.a)((e=>({stepContainer:{width:"100%",margin:"20px 0"}}))),Xb=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var Zb=e=>{let{data:t,dataCurrency:a,currencyDefault:o,userDecimal:n=0,onChange:r,setCurrencyIdValue:s,changeType:l=null,setChangeType:c,currencySelected:d,setCurrencySelected:u,setHasCurrencyDefault:m,currencyId:g,setCurrencyId:b,changeTypeValue:h=null,setChangeTypeValue:x,isEdition:f=!1,stepThreeError:j={},onBlur:C,setHasCurrencyDefaultDebounce:y,setEditionInitialRender:O=(()=>{})}=e;const S=Kb(),[E,I]=Object(i.useState)(!1);function w(e,a){u(a),null!==a&&(f&&e&&O(!1),b(null===a||void 0===a?void 0:a.id),s(null===a||void 0===a?void 0:a.id),m(null===a||void 0===a?void 0:a.default),y(null===a||void 0===a?void 0:a.default),r({...t,currencyId:null===a||void 0===a?void 0:a.id}))}Object(i.useEffect)((()=>{null===d&&u(o)}),[d]),Object(i.useEffect)((()=>{if(null!==g&&f){const e=a.find((e=>e.id===g));u(e),w(null,e)}}),[g,f,a]),Object(i.useEffect)((()=>{if(null!==l&&null!==n){const e=As(l,n);x(e),I(!E)}}),[l,n]);return Object(p.jsxs)(v.a,{id:"stepThree",className:S.stepContainer,children:[Object(p.jsx)(Wb,{number:3,text:Ti.a.t("currency")}),Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Xb,{children:Object(p.jsx)(Pr,{label:Ti.a.t("currency"),required:!0,type:"searchSelectPrimary",data:a,onChange:w,defaultValue:d?a.find((e=>e.id===g)):o,value:d})})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,children:Object(p.jsx)(Xb,{children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "}),Ti.a.t("exchangeRate")]}),Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)(A.a,{placeholder:As(0,n),thousandSeparator:".",decimalSeparator:",",style:{width:"100%"},value:null!==h&&h,allowNegative:!1,decimalScale:"0"===n?0:n,onKeyDown:e=>{const t=e.key;/[0-9.,]/.test(t)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter"].includes(t)||e.preventDefault()},onChange:e=>{const{value:t}=e.target;""===t?(c(""),x("")):(c(t),x(t))},onBlur:()=>{f&&O(!1);const e=As(l,n);if(""===e)c(""),x(""),r({...t,changeType:""});else{const a=parseFloat(e.replace(/\./g,"").replace(",","."));c(a),x(e),r({...t,changeType:e}),C()}},isAllowed:e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<1e6},className:"input "+(!j.state||l&&0!==l?"inputPrimaryFour":"inputError")}),j.state&&(0===l||""===l)&&Object(p.jsx)("p",{className:"inputTextMsg",style:{color:ui.a.error400},children:Ti.a.t("exchangeRateError")})]})]})})})]})]})};const Qb=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return["searchSelect",...t].filter(Boolean).join(" ")};function Jb(e){let{label:t,required:a,type:o,placeholder:n,disabled:r,showIconTooltip:s,iconType:l,showIcon:c,icon:d,showError:u,errorMsg:m,loading:g,data:b,small:h,large:x,onChange:f,onBlur:v,defaultValue:j,value:A,iconConfiguration:C,hrefIcon:y,onSelectInputChange:O,twoOptions:E,disabledMinHeight:I=!1,smallTopHeight:w=!1,disabledMarginBottom:T=!1,smallField:P=!1,legendText:R="",disabledClass:N=!1,onClick:L=(()=>{})}=e;const[k,B]=Object(i.useState)(!1);return Object(p.jsxs)("div",{className:(I?"":"searchSelectContainerMinHeight")+" searchSelectContainer",children:[Boolean(t)&&Object(p.jsxs)("label",{className:(T?"":"searchSelectlabelNormal")+" searchSelectlabel",children:[!0===a&&Object(p.jsx)("span",{className:"searchSelectArterisk",children:"* "}),t,!0===s&&Object(p.jsx)(cr.a,{title:"tooltip","aria-label":"Tooltip",placement:"top",arrow:!0,open:k,onOpen:()=>B(!0),onClose:()=>B(!1),children:Object(p.jsx)("button",{className:"searchSelectButton",children:Object(p.jsx)(ni.a,{className:"searchSelectHelpIcon",name:l,onClick:()=>B(!k)})})})]}),Object(p.jsxs)("div",{className:C?"iconConfigurationDiv":"",children:[Object(p.jsx)(Ar.a,{className:` ${N?"selectDisabled3":r?"selectDisabled2":Qb(o)}`,ListboxProps:{},onChange:(e,t)=>
1{f(t)},onBlur:v,value:A,getOptionLabel:e=>E?`${e.code} - ${e.name}`:e.name||e.value,defaultValue:j,id:"custom-autocomplete",options:b,disabled:!0===r||!0===g&&"disabled",noOptionsText:Object(p.jsx)(S.a,{className:"selectSearchNoOption",children:Ti.a.t("noOption")}),sx:{legend:{display:"none"},"& fieldset":{display:"none"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{border:0}},renderInput:e=>Object(p.jsx)(vr.a,{onChange:O,sx:{label:{top:"-6px"},"&  .MuiInputLabel-root.Mui-focused":{display:"none"},...!0===g&&{"&  .MuiInputLabel-root":{marginLeft:"30px"}},...!0===h&&{"&  .MuiInputBase-root":{height:"30px"},"& .MuiAutocomplete-hasPopupIcon.css-1t1szha-MuiAutocomplete-root .MuiOutlinedInput-root":{height:"30px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-10px"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"1px"}},...!0===x&&!1===h&&{"&  .MuiInputBase-root":{height:"45px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-5px"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"10px"}},...!1===x&&!1===h&&{"&  .MuiInputBase-root":{height:"40px"},"& .css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root":{top:"-5px!important"},"& .css-1q60rmi-MuiAutocomplete-endAdornment":{top:"5px"}},"&  .MuiInputBase-root":{height:"40px"},"& .MuiInputBase-input":{position:"absolute"},"&  .MuiInputLabel-root":{fontFamily:"Work Sans",fontSize:"14px"},"& .MuiAutocomplete-inputRoot .MuiAutocomplete-input":{minWidth:"65% !important",fontFamily:"Work Sans",fontSize:"14px"},"& .css-1sumxir-MuiFormLabel-root-MuiInputLabel-root":{color:"white"},...!0===c&&{"&  .MuiAutocomplete-inputRoot .MuiAutocomplete-input":{paddingLeft:"40px",minWidth:P?"48% !important":"62% !important"}},"& .MuiAutocomplete-clearIndicator":{display:"none"},"& MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined .css-1sumxir-MuiFormLabel-root-MuiInputLabel-root":{display:"none !important"},"& .MuiButtonBase-root .MuiIconButton-root .MuiIconButton-sizeMedium .MuiAutocomplete-clearIndicator .css-edpqz1":{display:"none !important"},"& .MuiFormLabel-root .MuiInputLabel-root .MuiInputLabel-formControl .MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined .MuiFormLabel-colorPrimary .MuiFormLabel-filled .MuiInputLabel-root .MuiInputLabel-formControl .MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined .css-u9osun":{color:"white !important"},"& .MuiInputLabel-animated .MuiInputLabel-shrink .MuiInputLabel-outlined ":{color:"white !important"},"& .css-u9osun":{color:"white !important"},"& .css-edpqz1":{display:"none !important"},"& .MuiAutocomplete-endAdornment css-2iz2x6":{display:"none !important"},"& .css-1jy569b-MuiFormLabel-root-MuiInputLabel-root":{color:"white !important"},"& .MuiInputLabel-animated MuiInputLabel-shrink .MuiInputLabel-outlined .css-1ald77x":{color:"white !important"}},...e,label:!0===g?" ":n,InputLabelProps:{shrink:!1}}),renderOption:(e,t,a)=>{let{inputValue:i}=a;const o=E?`${t.code} - ${t.name}`:t.name||t.value,n=Sr()(o,i,{insideWords:!0}),r=yr()(o,n);return Object(p.jsx)("li",{...e,children:Object(p.jsx)("div",{children:r.map(((e,t)=>Object(p.jsx)("span",{className:"selectSearchPopper ",children:e.text},t)))})})}}),!0===C&&Object(p.jsxs)("a",{onClick:L,href:y,children:[" ",Object(p.jsxs)("button",{className:"iconConfigurationBtn",children:[Object(p.jsx)("img",{className:"iconConfigurationImg",alt:"",src:Er})," "]})," "]})]}),!0===g&&Object(p.jsxs)("div",{className:"searchSelectContainerIcon",children:[" ",Object(p.jsx)(oi.a,{className:"searchSelectIcon"}),Object(p.jsx)(S.a,{className:"searchSelectLoadingTyp",children:"Cargando..."})]}),!0===u&&Object(p.jsx)("p",{className:"searchSelectErrorMsg",children:m}),Boolean(R)&&Object(p.jsx)("p",{className:"searchSelectLegendText",children:R}),!0===c&&Object(p.jsx)(ur,{className:(w?"":"searchSelectIconInsideTop")+" searchSelectIconInside",name:d})]})}const $b=Object(u.a)((e=>({table:{width:"100%",borderCollapse:"collapse",display:"flex",flexDirection:"column",border:"1px solid #DFDFDF",borderRadius:6,paddingTop:10},table2:{width:"100%",borderCollapse:"collapse",marginTop:"10px",display:"flex",flexDirection:"column"},row:{display:"flex",width:"100%",padding:"0px 8px"},bottomRow:{display:"flex",width:"100%",padding:"0px 0px"},totalRow:{display:"flex",width:"100%",padding:"5px 8px",borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#DFDFDF",marginTop:10},cell:{padding:"8px",fontSize:"13px",flex:1,borderRight:"none"},cellNoLeftBorder:{borderLeft:"none",padding:"8px",fontSize:"13px",flex:1,textAlign:"end"},firstColumn:{padding:"8px",fontSize:"14px",flex:1,borderRight:"none"},wrapText:{whiteSpace:"normal"}})));var eh=e=>{let{netoGravado:t,noGravado:a,iva:i,total:o,symbol:n,totalDefaultCurrency:r,currencyDefaultSymbol:s,hasCurrencyDefault:l,changeTypeNumber:c,invoiceTable:d=!1,budgetTable:u=!0,total2:m}=e;const g=$b(),b=l?s:n,h=!isNaN(c)&&0!==c&&void 0!==c&&!l,x="U$S"===n?Ti.a.t("totalDefault"):Ti.a.t("invoice.totalDefault");return Object(p.jsxs)("div",{children:[Object(p.jsxs)("div",{className:g.table,children:[Object(p.jsxs)("div",{className:g.row,children:[Object(p.jsxs)("div",{className:g.firstColumn,children:[Ti.a.t("netTax"),":"]}),Object(p.jsxs)("div",{className:g.cellNoLeftBorder,children:[b," ",Cs(t,ms)]})]}),Object(p.jsxs)("div",{className:g.row,children:[Object(p.jsxs)("div",{className:g.firstColumn,children:[Ti.a.t("noNetTax"),":"]}),Object(p.jsxs)("div",{className:g.cellNoLeftBorder,children:[b," ",Cs(a,ms)]})]}),Object(p.jsxs)("div",{className:g.row,children:[Object(p.jsxs)("div",{className:g.firstColumn,children:[Ti.a.t("IVA"),":"]}),Object(p.jsxs)("div",{className:g.cellNoLeftBorder,children:[b," ",Cs(i,ms)]})]}),Object(p.jsxs)("div",{className:g.totalRow,children:[Object(p.jsxs)("div",{className:g.firstColumn,style:{fontWeight:600,fontSize:15},children:[Ti.a.t("total"),":"]}),Object(p.jsxs)("div",{className:g.cellNoLeftBorder,style:{fontWeight:600,fontSize:15},children:[b," ",Cs(o,ms)]})]})]}),h&&u&&Object(p.jsx)("div",{className:g.table2,children:Object(p.jsxs)("div",{className:g.bottomRow,children:[Object(p.jsxs)("div",{className:`${g.cell} ${g.wrapText}`,style:{fontWeight:600},children:[Ti.a.t("totalDefault"),":"]}),Object(p.jsxs)("div",{className:g.cellNoLeftBorder,style:{fontWeight:600},children:[s," ",Cs(r,ms)]})]})}),d&&Object(p.jsx)("div",{className:g.table2,children:Object(p.jsxs)("div",{className:g.bottomRow,children:[Object(p.jsxs)("div",{className:`${g.cell} ${g.wrapText}`,style:{fontWeight:600},children:[x,":"]}),Object(p.jsxs)("div",{className:g.cellNoLeftBorder,style:{fontWeight:600},children:[s," ",Cs(m,ms)]})]})})]})};const th=(e,t)=>void 0!==e.iva&&null!==e.iva?e.iva:t,ah=(e,t)=>e.find((e=>e.iva===t)),ih=(e,t)=>null!==e.ivaRateId&&void 0!==e.ivaRateId?e.ivaRateId:t?t.ivaRateId:null,oh=(e,t)=>{const a=e.find((e=>e.ivaRateId===t));return a?a.rateDetail:null},nh=(e,t,a,i,o,n,r)=>e.map((e=>((e,t,a,i,o,n,r)=>{var s,l;const c=gs(r),d=void 0!==(null===e||void 0===e?void 0:e.finalPrice)&&null!==(null===e||void 0===e?void 0:e.finalPrice)?e.finalPrice
1:Number(hs(e.unitPrice,e.iva).toFixed(Number(c))),u=th(e,t),p=ah(a,u),m=ih(e,p),g=oh(a,m);return{bonus:e.bonus>0?vs(e.bonus,ms):"",concept:e.concept,code:null===e||void 0===e||null===(s=e.concept)||void 0===s?void 0:s.code,total:js(e.total,4),conceptDescription:null===e||void 0===e?void 0:e.description,conceptId:e.conceptId,currencyId:e.currencyId,unitPrice:vs(e.unitPrice,c),unitPriceOriginal:e.unitPrice,unitPriceWithIva:vs(d,c),finalPriceOriginal:d,unitPriceDolar:vs(e.unitPrice,c),description:null===e||void 0===e?void 0:e.description,iva:u,ivaObj:{value:u,name:"ar"===i||o===Ki.PEQUY.value&&3!==m||n?String(u).replace(".",","):`${String(u).replace(".",",")} - ${g}`,id:m,default:p?p.default:null},ivaRateId:m,valueCodeName:yu({code:null===(l=e.concept)||void 0===l?void 0:l.code,presentationName:e.presentationName,equivalence:Au(e)}),...Ou(e)}})(e,t,a,i,o,n,r))),rh=e=>{if(!e)return null;return new Date(e).toLocaleDateString("es-ES",{day:"2-digit",month:"2-digit",year:"numeric"})},sh=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.map(((e,a)=>{var i;const o=t[a]||{};return{quantity:e.total,description:null===e||void 0===e?void 0:e.concept,unitPrice:e.unitPrice,bonus:e.bonus,code:e.code,iva:e.iva,conceptId:e.conceptId,presentationName:e.presentationName||o.presentationName||null,equivalenceQuantity:null!==(i=Au(o))&&void 0!==i?i:Au(e)}}))},lh=e=>null===e||void 0===e?NaN:Number(e.replace(/,/g,".")),ch=e=>{if(null===e||void 0===e||""===e)return 0;const t=parseFloat(String(e).replace(/\./g,"").replace(",","."));return Number.isFinite(t)?t:0},dh=e=>"number"===typeof e?e:Ls(e),uh=(e,t)=>{const a=Number(e)||0;return a-a*(Number(t)||0)/100},ph=e=>{const t="string"===typeof e.concept?e.concept.trim():"",a="string"===typeof e.conceptDescription?e.conceptDescription.trim():"",i="string"===typeof e.description?e.description.trim():"";return t||a||i},mh=(e,t)=>{const a=parseFloat(null===e||void 0===e?void 0:e.iva)||0,i="U$S"===t;if(void 0!==(null===e||void 0===e?void 0:e.finalPrice)&&null!==(null===e||void 0===e?void 0:e.finalPrice))return dh(e.finalPrice);const o=dh(i?null===e||void 0===e?void 0:e.unitPriceDolarWithIva:null===e||void 0===e?void 0:e.unitPriceWithIva);if(0!==o)return o;return dh(i?null===e||void 0===e?void 0:e.unitPriceDolar:null===e||void 0===e?void 0:e.unitPrice)*(1+a/100)},gh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce(((e,a)=>{const i=dh(null===a||void 0===a?void 0:a.total),o=dh(null===a||void 0===a?void 0:a.bonus),n=mh(a,t);return e+i*uh(n,o)}),0)},bh=(e,t,a)=>null!==e&&void 0!==e&&e.length&&t?e.map((e=>{const i=t.find((t=>t.id===e.currencyId)),o=i&&"U$S"===i.symbol;return((e,t)=>{let{isUSD:a,changeTypeNumber:i}=t;const o=Number(i)||0,n=ch(e.unitPrice),r=ch(e.unitPriceDolar);let s=0;a?s=0!==n&&o>0?n/o:r:0!==n?s=n:0!==r&&o>0&&(s=r*o);const l=ch(e.unitPriceWithIva),c=ch(e.unitPriceDolarWithIva),d=parseFloat(e.iva)||0;let u=0;return u=a?0!==l&&o>0?l/o:0!==c?c:s*(1+d/100):0!==l?l:0!==c&&o>0?c*o:s*(1+d/100),{code:e.code,total:null!==e&&void 0!==e&&e.total?parseFloat(String(e.total).replace(/\./g,"").replace(",",".")):0,concept:ph(e),unitPrice:s,finalPrice:u,iva:d,ivaRateId:parseFloat(e.ivaRateId),bonus:""===e.bonus?0:parseFloat(String(e.bonus).trim().replace(/\./g,"").replace(",","."))||0,conceptId:e.conceptId||null,conceptPresentationId:e.conceptPresentationId||null,presentationName:e.presentationName||null}})(e,{isUSD:o,changeTypeNumber:a})})):[],hh=ms,xh=(e,t)=>As(e,gs(t)),fh=["unitPrice","unitPriceDolar","unitPriceWithIva","unitPriceDolarWithIva"],vh=e=>-1!==fh.indexOf(e),jh=(e,t)=>Number.isFinite(e)&&0!==e?As(e,t):"",Ah=(e,t,a,i)=>"unitPrice"===e?{unitPriceDolar:jh(t/a,i)}:"unitPriceDolar"===e?{unitPrice:jh(t*a,i)}:"unitPriceWithIva"===e?{unitPriceDolarWithIva:jh(t/a,i)}:"unitPriceDolarWithIva"===e?{unitPriceWithIva:jh(t*a,i)}:null,Ch=e=>{const[t,a]=e.toString().split(".");return t.length+(a?a.length:0)<=18},yh=(e,t)=>e*(1+t/100),Oh=(e,t)=>e/(1+t/100),Sh=(e,t)=>e-e*t/100,Eh=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a?"U$S"===t?Ls(null===e||void 0===e?void 0:e.unitPriceDolarWithIva)||0:Ls(null===e||void 0===e?void 0:e.unitPriceWithIva)||0:"U$S"===t?Ls(null===e||void 0===e?void 0:e.unitPriceDolar)||0:Ls(null===e||void 0===e?void 0:e.unitPrice)||0},Ih=(e,t,a,i,o)=>{const n=Number(e)||0,r=((e,t,a,i)=>{const o=Number(e)||0,n=Number(t)||0,r=Number(a)||0,s=i?Oh(o,r):o,l=Sh(s,n);return l+l*r/100})(t,a,i,o);return n*r},wh=(e,t,a)=>(e||[]).reduce(((e,i)=>{const o=Ls(null===i||void 0===i?void 0:i.total)||0,n=Ls(null===i||void 0===i?void 0:i.bonus)||0,r=parseFloat(null===i||void 0===i?void 0:i.iva)||0;let s=Eh(i,a,!1),l=Eh(i,a,!0);
1t?(0===l&&0!==s&&(l=yh(s,r)),s=Oh(l,r)):0===s&&0!==l&&(s=Oh(l,r));const c=o*Sh(s,n),d=t&&0!==l?l:yh(s,r),u=o*Sh(d,n),p=u-c;return e.total+=u,e.iva+=p,0!==r?e.netoGravado+=c:e.noGravado+=u,e}),{total:0,iva:0,netoGravado:0,noGravado:0}),Th=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=Ls(null===e||void 0===e?void 0:e.total)||0,o=Ls(null===e||void 0===e?void 0:e.bonus)||0,n=parseFloat(null===e||void 0===e?void 0:e.iva)||0,r=1===Number(a),s=Eh(e,t,!0);if(r&&0!==s){return As(i*Sh(s,o),hh)}let l=Eh(e,t,r);if(0===l){const a=Eh(e,t,!r);l=r?yh(a,n):Oh(a,n)}const c=Ih(i,l,o,n,r);return As(c,hh)},Ph=function(e,t,a,i,o,n,r){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=1===Number(s),c=wh(e,l,r),d="U$S"!==r,u=Number(a)||0,p=Number(c.total.toFixed(hh));let m=0;if(d)u>0&&(m=p/u);else{const t=wh(e,l,"");m=Number(t.total.toFixed(hh))}o((e=>({...e,total:Ns(c.total.toFixed(hh)),totalDefaultCurrency:Ns(m.toFixed(hh)),iva:Ns(c.iva.toFixed(hh)),netoGravado:Ns(c.netoGravado.toFixed(hh)),noGravado:Ns(c.noGravado.toFixed(hh))})));const g=c.total.toFixed(hh),b=Ch(g);n(!b)},Rh=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,n=arguments.length>5?arguments[5]:void 0,r=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,d=arguments.length>10?arguments[10]:void 0,u=arguments.length>11?arguments[11]:void 0;const p=Number(l)||0;let m=i||o;m=Array.isArray(m)?m:[];const g=m.map(((i,o)=>{if(null!==a&&o!==a)return i;if(1===Number(c)){const e=parseFloat(i.iva);let a=Ls(i.unitPriceWithIva)||0,o=Ls(i.unitPriceDolarWithIva)||0,n=Ls(i.unitPrice)||0,r=Ls(i.unitPriceDolar)||0;0===a&&0!==n&&(a=yh(n,e)),0===o&&0!==r&&(o=yh(r,e)),0===a&&0!==o&&p>0&&(a=o*p),0===o&&0!==a&&p>0&&(o=a/p);const s=Number.isFinite(e)?e:0;"U$S"===u?(0!==r?o=yh(r,s):0!==o&&(r=Oh(o,s),o=yh(r,s)),"number"===typeof i.conceptId&&0!==i.conceptId&&p>0&&(0===n&&(n=r*p),a=yh(n,s))):(0!==n?a=yh(n,s):0!==a&&(n=Oh(a,s),a=yh(n,s)),"number"===typeof i.conceptId&&0!==i.conceptId&&p>0&&(r=n/p,o=yh(r,s))),i.unitPriceWithIva=xh(a,t),i.unitPriceDolarWithIva=xh(o,t)}else if(""!==c&&0===Number(c)){const e=parseFloat(i.iva);let a=Ls(i.unitPrice)||0,o=Ls(i.unitPriceDolar)||0;0===a&&0!==o&&p>0&&(a=o*p),0===o&&0!==a&&p>0&&(o=a/p),i.unitPriceWithIva=xh(yh(a,e),t),i.unitPriceDolarWithIva=xh(yh(o,e),t)}const n=Th(i,u,c);return{...i,subTotal:n,isSaved:e}}));n(g),Ph(g,t,l,s,r,d,u,c)},Nh=function(e,t,a){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(e.filter((e=>e.isSaved)).length>=2){let n;const r=e[0][a],s=i?e[0][i]:null,l=o?e[0][o]:null;n=e.map((e=>({...e,[a]:r,...i&&{[i]:s},...o&&{[o]:l}}))),t(!0,null,n)}},Lh=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=fl},kh=e=>{const{floatValue:t,formattedValue:a}=e;return""===a||t<=100},Bh=e=>{const{formattedValue:t,floatValue:a}=e;if(""===t)return!0;if("-"===t)return!0;const i=t.replace(/\./g,"").replace(",",".");return/^-?\d{0,9}(\.\d{0,3})?$/.test(i)},Dh=Object(u.a)((e=>({stepContainer:{width:"100%",margin:"20px 0"},addNewContainer:{display:"flex",justifyContent:"center",marginTop:"10px"},addNew:{fontWeight:400,fontSize:"14px",color:"#00A692",cursor:"pointer"},th:{padding:"9px",fontFamily:"Work Sans",fontSize:"14px",fontWeight:500,lineHeight:"18px"},tr:{padding:"9px"},td:{fontFamily:"Work Sans!important"},button:{margin:e.spacing(1)},formRow:{display:"flex",alignItems:"center",gap:e.spacing(2)},input:{width:"150px"},containerBtn:{display:"flex",flexDirection:"row",flexWrap:"nowrap!important",alignItems:"center",justifyContent:"flex-end","@media (max-width: 600px)":{marginTop:"30px"}},btn:{display:"flex!important",justifyContent:"center!important"},tableCell:{padding:"15px 8px !important"},action:{color:"#007868",cursor:"pointer",fontSize:"12px",fontStyle:"normal",marginTop:"5px",fontFamily:"Work Sans",fontWeight:400,lineHeight:"16px"},customPaddingCell:{padding:"16px 8px !important"}})));var Fh=e=>{let{cellComponents:t=[],rows:a=[],columnHeaders:o=[],ivaCondition:n=1,unitPriceIncludesIva:r=!0,withBudgetIva:s=!1,ivaDefault:l=0,ivaRatesLoading:c=!1,userDecimal:d=ms,stockRounding:u=0,currencySymbol:m="",nameIconPrice:g="",isEdition:b=!0,hasCurrencyDefault:h=!1,finalPriceWithIva:x=!1,fixedDiscount:f=0,userOptions:v=[],dataDefaultIvaValue:j={},dataDefaultIva:C={},currentEditableItem:y={},setRows:O=(()=>{}),setEditionInitialRender:S=(()=>{}),handleInputChange:E=(()=>{}),handleSearchSelectChange:I=(()=>{}),setCurrentEditableItem:w=(()=>{}),totalDefault:T,changeTypeNumber:P,setInvoiceData:R,setValidationDigits:N,isCalculating:L,isAllowedNumberFormatUnitPrice:k,planSaleUser:B=!1,accountPlan:D,setStock:F,showStock:M=!1,stock:V,sellWithOutStock:W,checkStepFourItems:H=(()=>{})}=e;const U=Dh(),[_,z]=Object(i.useState)(b?null:0),[q,G]=Object(i.useState)(!0),[Y,K]=Object(i.useState)(!1),X=Object(i.useRef)(),[Z,Q]=Object(i.useState)(null),J=a.some((e=>!0===e.selectedConcept||""!==e.description)),$={id:Math.random(),total:T,concept:"",description:"",unitPrice:"",unitPriceOriginal:null,unitPriceDolar:"",unitPriceWithIva:"",unitPriceDolarWithIva:"",bonus:f,iva:l,ivaRateId:null===C||void 0===C?void 0:C.id,subTotal:"0.00",conceptDescription:"",isSaved:!1,ivaObj:C,currencyId:0,selectedConcept:!1,isDolar:!1,finalPriceOriginal:null,planSale:"",...Ou(null)};Object(i.useEffect)((()=>{X.current=h}));const ee=X.current;Object(i.useEffect)((()=>{ee!==h&&!Y&&a.length>1&&ae()}),[h,a.length]);const te=()=>{let e=[...a];e[_]={...y},S(!1),Rh(!0,d,null,e,a,O,R,h,P,x,N,m),z(null),K(!1),Q(null),w($),M&&F(null),H({itemsToValidate:e})},ae=()=>{if(Y){const e=a.slice(0,-1);O(e),K(!1)}else Z&&O((e=>e.map(((e,t)=>t===_?Z:e))));M&&F(null),z(null),w($),Q(null)},ie=()=>({id:Math.random(),total:"1,00",concept:"",description:"",unitPrice:"",unitPriceOriginal:null,unitPriceDolar:"",unitPriceWithIva:"",unitPriceDolarWithIva:"",bonus:f,iva:l,ivaRateId:null,subTotal:"0.00",conceptDescription:"",conceptId:0,ivaObj:C,subTotalCurrencyDefault:"0.00",subTotalIvaConfig:"0.00",isSaved:!1,currencyId:0,selectedConcept:!1,isDolar:!1,finalPriceOriginal:null,planSale:"",...Ou(null)});Object(i.useEffect)((()=>
1{if(null!==_&&y){const{total:e,unitPrice:t,concept:a,conceptDescription:i,description:o,unitPriceWithIva:n,unitPriceDolarWithIva:r,unitPriceDolar:s,planSale:l}=y,c=lh(e),d=lh(t),u=lh(n),p=lh(r),m=lh(s),g=""===e||0===c,b=(""===t||0===d)&&(""===n||0===u)&&(""===r||0===p)&&(""===s||0===m),h=(!a||""===a)&&""===o&&""===i,x=B&&D&&(!y.planSale||""===y.planSale),f=!(!M||1===W)&&0===(null===V||void 0===V?void 0:V.stock);G(g||b||h||x||f)}else G(!0)}),[y,V]);return Object(p.jsxs)(hr.a,{className:U.stepContainer,children:[Object(p.jsx)(Ym.a,{style:{width:"100%",overflowX:"auto",marginTop:"20px",boxShadow:"none"},sx:{"&  .MuiTableCell-root":{fontFamily:"Work Sans!important",padding:"16px 8px"}},children:Object(p.jsx)(Ks.a,{children:Object(p.jsxs)(Xs.a,{children:[Object(p.jsx)(Zs.a,{children:Object(p.jsx)(Qs.a,{children:J&&o.map(((e,t)=>Object(p.jsxs)(Js.a,{className:U.tableCell,style:e.style,children:[e.text,Boolean(null===e||void 0===e?void 0:e.action)&&Object(p.jsx)("div",{style:{color:e.disabled?ui.a.grey500:ui.a.primary400,cursor:e.disabled?"default":"pointer"},disabled:e.disabled,onClick:null===e||void 0===e?void 0:e.onClick,className:U.action,children:e.action})]},t)))})}),Object(p.jsx)($s.a,{children:a.map(((e,i)=>{var r,l,b,f,y,S;return Object(p.jsxs)(Qs.a,{children:[_!==i&&Object(p.jsx)(Js.a,{children:i+1}),_===i?Object(p.jsx)(Js.a,{colSpan:o.length,className:U.customPaddingCell,children:Object(p.jsxs)(hr.a,{container:!0,spacing:1,children:[t.total(e,i),t.concept(e,i),t.description(e,i),t.unitPrice(e,i),t.bonus(e,i),t.iva(e,i),B&&D&&t.planSale(e,i),B&&D&&t.costCenter(e,i),Object(p.jsx)(hr.a,{item:!0,xs:12,md:B?6:12,style:{display:"flex",justifyContent:"flex-end",marginTop:-10},children:Object(p.jsxs)(hr.a,{className:U.containerBtn,children:[Object(p.jsx)(hr.a,{item:!0,style:{width:"auto",minWidth:140},children:Object(p.jsx)(si,{type:"secondary",onClick:ae,disabled:0===_&&!0!==(null===(r=a[0])||void 0===r?void 0:r.isSaved)||!J,children:Ti.a.t("cancel")})}),Object(p.jsx)(hr.a,{item:!0,style:{marginLeft:"5px",width:"auto",minWidth:140},children:Object(p.jsx)(si,{type:"primary",onClick:te,disabled:q,children:Ti.a.t("save")})})]})})]})}):Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Js.a,{className:U.tableCell,children:Object(p.jsx)(A.a,{style:{width:"115%"},className:"input inputPrimary",name:"total",value:e.total,isAllowed:t=>Lh(t)&&Su(e,t),thousandSeparator:".",decimalSeparator:",",onChange:e=>{E(i,{name:"total",value:e.target.value,performCalculations:!0})},onBlur:e=>{const{value:t}=e.target,a=As(parseFloat(t.replace(/\./g,"").replace(",",".")),u);E(i,{name:"total",value:a,performCalculations:!0})},allowNegative:!1,decimalScale:"0"===u?0:u},`total-input-${i}`)}),Object(p.jsxs)(Js.a,{className:U.tableCell,style:{minWidth:"180px",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-all"},children:[e.description,Boolean(e.presentationName)&&" - "+Cu(e.presentationName,Au(e)),(e.conceptId||0!==e.conceptId)&&Object(p.jsxs)("div",{style:{fontSize:"12px",color:ui.a.grey500},children:["SKU ",e.code]})]}),Object(p.jsx)(Js.a,{className:U.tableCell,style:{textAlign:"end"},children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)(A.a,{placeholder:As(0,d),name:"U$S"===m?"unitPriceDolar":"unitPrice",thousandSeparator:".",decimalSeparator:",",className:"inputPrimaryThree",style:{width:"100%"},value:"U$S"===m?null!==(l=e.unitPriceDolar)&&void 0!==l?l:"":null!==(b=e.unitPrice)&&void 0!==b?b:"",allowNegative:!0,decimalScale:"0"===d?0:d,isAllowed:k,onChange:e=>{const{name:t,value:a}=e.target;E(i,{name:t,value:a,performCalculations:!0})},onBlur:e=>((e,t,i,o,n)=>{const{value:r}=e.target,s=As(parseFloat(r.replace(/\./g,"").replace(",",".")),o),l=Rs(r);if(n(t,{name:i,value:s,performCalculations:!0}),"number"===typeof a[t].conceptId&&0!==a[t].conceptId){const e=Ah(i,l,P,o);e&&O((a=>a.map(((a,i)=>i===t?{...a,...e}:a))))}})(e,i,e.target.name,d,E)},`unitPrice-input-${i}`),Object(p.jsx)(ur,{className:"inputIconInsideTop",name:g})]})}),Object(p.jsx)(Js.a,{className:U.tableCell,style:{textAlign:"end"},children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)(A.a,{name:"bonus",placeholder:"",thousandSeparator:".",decimalSeparator:",",className:"inputPrimaryThree",value:As(e.bonus,ms),allowNegative:!1,style:{width:"100%"},decimalScale:ms,onChange:e=>E(i,{name:"bonus",value:e.target.value,performCalculations:!0}),onBlur:e=>{const{value:t}=e.target,a=As(parseFloat(t.replace(/\./g,"").replace(",",".")),ms);E(i,{name:"bonus",value:a,performCalculations:!0})},isAllowed:kh},`bonus-input-${i}`),Object(p.jsx)(ur,{className:"inputIconInsideTop",name:"percentage"})]})}),Object(p.jsx)(Js.a,{className:U.tableCell,style:{textAlign:"end",minWidth:"180px"},children:Object(p.jsx)(Jb,{icon:"percentage",disabled:n===Ki.MO.value||n===Ki.PEQUY.value||s,disabledClass:n===Ki.MO.value||n===Ki.PEQUY.value||s,showIcon:!0,type:"searchSelectPrimary",data:v,value:e.ivaObj,defaultValue:j,loading:null===C||c,onChange:e=>I({newValue:e,index:i,performCalculations:!0}),disabledMinHeight:!0,smallTopHeight:!0},`iva-select-${i}`)}),B&&D&&Object(p.jsxs)(p.Fragment,{children:["      ",Object(p.jsxs)(Js.a,{className:U.tableCell,style:{textAlign:"end"},children:[null===e||void 0===e||null===(f=e.planSale)||void 0===f?void 0:f.code," - ",null===e||void 0===e||null===(y=e.planSale)||void 0===y?void 0:y.name]}),Object(p.jsx)(Js.a,{className:U.tableCell,style:{textAlign:"end"},children:null===e||void 0===e||null===(S=e.costCenter)||void 0===S?void 0:S.name})]}),Object(p.jsx)(Js.a,{className:U.tableCell,style:{textAlign:"end"},children:Cs(e.subTotal,ms)}),Object(p.jsx)(Js.a,{className:U.tableCell,children:Object(p.jsxs)(hr.a,{style:{display:"flex"},children:[Object(p.jsx)(Qr.a,{onClick:()=>{return Q({...a[e=i]}),w({...a[e]}),void z(e);var e},disabled:null!==_,children:Object(p.jsx)(ni.a,{width:"5px",height:"5
1px",viewBox:"",name:"edit",className:"hoverIcon",style:{color:null!==_?"#ccc":"#8b9093"},disableRipple:!0})}),a.filter((e=>e.isSaved)).length>=2&&Object(p.jsx)(Qr.a,{onClick:()=>(e=>{const t=a.filter(((t,a)=>a!==e));Rh(null,d,null,t,a,O,R,h,P,x,N,m);const i=a[a.length-1];if(i&&!i.isSaved&&t.length>0){const e=t.length-1;Q({...t[e]}),w({...t[e]}),z(e)}else z(null);O(t)})(i),children:Object(p.jsx)(ni.a,{width:"5px",height:"5px",viewBox:"",name:"delete",className:"hoverIcon",style:{color:"#8b9093"},disableRipple:!0})})]})})]})]},e.id)}))})]})})}),Object(p.jsx)(hr.a,{container:!0,justifyContent:"center",className:U.addNewContainer,children:Object(p.jsxs)("p",{className:U.addNew,onClick:L||null!==_||a.length>=1e3?null:()=>{if(a.length<1e3&&null===_){const e=ie();O([...a,e]),z(a.length),K(!0)}},style:{cursor:L||null!==_||a.length>=1e3?"not-allowed":"pointer",color:L||null!==_||a.length>=1e3?"gray":"#00A692",pointerEvents:L?"none":"auto"},children:["+ ",Ti.a.t("addNewItem")]})})]})},Mh=a(369),Vh=a.n(Mh);const Wh=Object(u.a)((e=>({stepContainer:{width:"100%",margin:"0px 0 20px 0"},th:{padding:"9px",fontFamily:"Work Sans",fontSize:"14px",fontWeight:500,lineHeight:"18px"},tr:{padding:"9px"},td:{padding:"9px!important"},textArea:{width:"90%",height:"115px",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px",resize:"none",fontSize:"14px","@media (max-width: 960px)":{width:"100%"}},label:{fontFamily:"Work Sans",fontSize:"13px",fontWeight:"400",textAlign:"left"},alert:{marginTop:"10px",width:"100%"},tableTotalsContainer:{marginTop:"20px","@media (max-width: 960px)":{display:"flex",flexDirection:"column-reverse"}},bonusContainer:{display:"flex",flexDirection:"column"},inputlabel:{marginBottom:"0!important"}})));var Hh=e=>{let{hasMultiCurrency:t,userCountry:a,stockRounding:o,jwtContext:n,userDecimal:r=0,unitPriceIncludesIva:s,ivaCondition:l,dataDefaultIva:c,userOptions:d,ivaDefault:u,withBudgetIva:m,ivaRatesLoading:g,setValidationDigits:b,currencySymbol:h,hasCurrencyDefault:x,currencyDefaultSymbol:f,observation:j,setObservation:C,initialRows:y,fixedDiscount:O,error:S,finalPriceWithIva:E,isEdition:I,initialInvoiceData:w,editionInitialRender:T,setEditionInitialRender:P,setInvoiceData:R,invoiceData:N,currencyDefaultId:L,changeTypeNumber:k,totalDefault:B,finalPriceWithIvaDebounce:D,userDecimalDebounce:F,dataCurrency:M,changeTypeNumberDebounce:V,shouldCalculate:W,resetShouldCalculate:H,editionData:U,currencySymbolDebounce:_,hasCurrencyDefaultDebounce:z,dataReady:q,rows:G,setRows:Y,personId:K,checkStepFourItems:X=(()=>{})}=e;const Z=Wh(),[Q,J]=Object(i.useState)(!0),[$,ee]=Object(i.useState)(!1),[te,ae]=Object(i.useState)(!1),[ie,oe]=Object(i.useState)(null),[ne,re]=Object(i.useState)("currency"),[se,le]=Object(i.useState)(!1),[ce,de]=Object(i.useState)(!1),[ue,pe]=Object(i.useState)({id:Math.random(),total:B,concept:"",description:"",unitPrice:"",unitPriceOriginal:null,unitPriceDolar:"",unitPriceWithIva:"",unitPriceDolarWithIva:"",bonus:null,iva:null,ivaRateId:null,subTotal:"0.00",conceptDescription:"",isSaved:!1,ivaObj:null,currencyId:0,selectedConcept:!1,isDolar:!1,conceptId:0,finalPriceOriginal:null,...Ou(null)});Object(i.useEffect)((()=>{null!==u&&void 0!==u&&pe((e=>({...e,iva:u,ivaObj:c,ivaRateId:null===c||void 0===c?void 0:c.id})))}),[u,c]),Object(i.useEffect)((()=>{pe(null!==O&&void 0!==O?e=>({...e,bonus:As(O)}):e=>({...e,bonus:null}))}),[O]),Object(i.useEffect)((()=>{null!==ue.iva&&void 0!==ue.iva||null!==ue.ivaRateId&&void 0!==ue.ivaRateId||pe((e=>({...e,iva:u,ivaObj:c,ivaRateId:null===c||void 0===c?void 0:c.id})))}),[ue.iva,ue.ivaRateId]),Object(i.useEffect)((()=>{null!==B&&void 0!==B&&pe((e=>({...e,total:B})))}),[B]);const me=Object(i.useRef)(),ge=Object(i.useRef)(),be=Object(i.useRef)(),he=Object(i.useRef)(),xe=Object(i.useRef)(),fe=Object(i.useRef)(u),ve=Object(i.useRef)(c),je=Object(i.useRef)(!1);Object(i.useEffect)((()=>{me.current=D}),[D]),Object(i.useEffect)((()=>{ge.current=F}),[F]),Object(i.useEffect)((()=>{be.current=V}),[V]),Object(i.useEffect)((()=>{he.current=_}),[_]),Object(i.useEffect)((()=>{xe.current=z}),[z]),Object(i.useEffect)((()=>{fe.current=u,ve.current=c}),[u,c]);const Ae=Object(i.useCallback)(Vh()(((e,t,a)=>{de(!0),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,n=arguments.length>6?arguments[6]:void 0,r=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=arguments.length>10?arguments[10]:void 0,d=arguments.length>11?arguments[11]:void 0,u=arguments.length>12&&void 0!==arguments[12]?arguments[12]:0,p=arguments.length>13&&void 0!==arguments[13]?arguments[13]:[];const m=Number(n)||0;let g=a||p;const b=g.map(((a,n)=>{if(null!==t&&n!==t)return a;const s=parseFloat(a.iva),l=isNaN(s)?u:s;if(1===Number(i)){let e=Ls(a.unitPriceWithIva)||0,t=Ls(a.unitPriceDolarWithIva)||0,i=Ls(a.unitPrice)||0,n=Ls(a.unitPriceDolar)||0;0===e&&0!==i&&(e=yh(i,l)),0===t&&0!==n&&(t=yh(n,l)),0===e&&0!==t&&m>0&&(e=t*m),0===t&&0!==e&&m>0&&(t=e/m);const s=l;"U$S"===r?(0!==n?t=yh(n,s):0!==t&&(n=Oh(t,s),t=yh(n,s)),"number"===typeof a.conceptId&&0!==a.conceptId&&m>0&&(0===i&&(i=n*m),e=yh(i,s))):(0!==i?e=yh(i,s):0!==e&&(i=Oh(e,s),e=yh(i,s)),"number"===typeof a.conceptId&&0!==a.conceptId&&m>0&&(n=i/m,t=yh(n,s))),a.unitPriceWithIva=xh(e,o),a.unitPriceDolarWithIva=xh(t,o)}if(""!==i&&0===Number(i)){let e=Ls(a.unitPrice)||0,t=Ls(a.unitPriceDolar)||0;0===e&&0!==t&&m>0&&(e=t*m),0===t&&0!==e&&m>0&&(t=e/m),a.unitPriceWithIva=xh(yh(e,l),o),a.unitPriceDolarWithIva=xh(yh(t,l),o)}const c=Th(a,r,i);return{...a,subTotal:c,isSaved:e}}));l(b);const h=r;Ph(b,o,n,s,c,d,h,i)}(e,t,a,me.current,ge.current,!0,be.current,he.current,xe.current,Y,R,b,fe.current,G),de(!1)}),500),[]);Object(i.useEffect)((()=>
1{if(q&&y.length>0&&!0===U&&""!==E){const e=gs(r),t=y.map((t=>{const a=null===M||void 0===M?void 0:M.find((e=>e.id===t.currencyId)),i=a&&"U$S"===a.symbol,n=As(t.total,o);if(null!==t.conceptId&&!0===U){if("U$S"!==h){const a=parseFloat(t.unitPrice.replace(/\./g,"").replace(",","."))/k;t.unitPriceDolar=As(a,e);const i=parseFloat(t.unitPriceWithIva.replace(/\./g,"").replace(",","."))/k;t.unitPriceDolarWithIva=As(i,e)}else if("U$S"===h){t.unitPriceDolar=t.unitPrice,t.unitPriceDolarWithIva=t.unitPriceWithIva;const a=parseFloat(t.unitPrice.replace(/\./g,"").replace(",","."))*k;t.unitPrice=As(a,e);const i=parseFloat(t.unitPriceWithIva.replace(/\./g,"").replace(",","."))*k;t.unitPriceWithIva=As(i,e)}}else if(null===t.conceptId){const a=parseFloat(t.unitPrice.replace(/\./g,"").replace(",",".")),i=parseFloat(t.unitPriceWithIva.replace(/\./g,"").replace(",","."));t.unitPriceDolar=As(a,e),t.unitPriceDolarWithIva=As(i,e)}const r=Th(t,h,E);return{...t,subTotal:r,isSaved:!0,isDolar:i,total:n}}));Rh(!0,r,null,t,t,Y,R,x,k,E,b,h),R((e=>({...e,...w,symbol:h})))}}),[y,w,I,U,M,q,E,r]),Object(i.useEffect)((()=>{je.current||null!==h&&(je.current=!0)}),[h,y.length,U,T,M]),Object(i.useEffect)((()=>{R((e=>({...e,symbol:h}))),T||Rh(!0,r,null,null,G,Y,R,x,k,E,b,h)}),[h]),Object(i.useEffect)((()=>{T||Rh(!0,r,null,null,G,Y,R,x,k,E,b,h)}),[k]),Object(i.useEffect)((()=>{null!==c&&0===y.length&&(Y([{id:Math.random(),total:B,concept:"",conceptDescription:"",description:"",unitPrice:"",unitPriceOriginal:null,unitPriceDolar:"",unitPriceDolarWithIva:"",unitPriceWithIva:"",bonus:O,iva:u,ivaRateId:null===c||void 0===c?void 0:c.id,subTotal:"0.00",conceptId:0,ivaObj:c,subTotalCurrencyDefault:"0.00",subTotalIvaConfig:"0.00",isSaved:!1,currencyId:0,selectedConcept:!1,isDolar:!1,finalPriceOriginal:null,...Ou(null)}]),J(!1))}),[c,u,y]),Object(i.useEffect)((()=>{G.length>0&&!T&&G.length>=1e3&&ee(!0)}),[G]),Object(i.useEffect)((()=>{null!==c&&(J(!1),oe(c))}),[c]),Object(i.useEffect)((()=>{se&&!T&&(Rh(!0,r,null,null,G,Y,R,x,k,E,b,h),le(!1))}),[se]),Object(i.useEffect)((()=>{W&&(e=>{let{rows:t,setRows:a,changeTypeNumber:i,userDecimal:o,hasCurrencyDefault:n,setInvoiceData:r,setValidationDigits:s,resetShouldCalculate:l,currencySymbol:c,finalPriceWithIva:d=0}=e;const u=t.map((e=>{if("number"===typeof e.conceptId&&0!==e.conceptId){let t={...e};if(e.isDolar){const e=Ls(t.unitPriceDolarWithIva)*i,a=Ls(t.unitPriceDolar)*i;t.unitPriceWithIva=xh(e,o),t.unitPrice=xh(a,o)}else if(!1===e.isDolar){const e=Ls(t.unitPrice)/i,a=Ls(t.unitPriceWithIva)/i;t.unitPriceDolar=xh(e,o),t.unitPriceDolarWithIva=xh(a,o)}const a=Th(t,c,d);return t.subTotal=a,t}return e}));a(u),Ph(u,o,i,n,r,s,c,d),l()})({rows:G,setRows:Y,changeTypeNumber:k,userDecimal:r,hasCurrencyDefault:x,setInvoiceData:R,setValidationDigits:b,resetShouldCalculate:H,currencySymbol:h,finalPriceWithIva:E})}),[W]),Object(i.useEffect)((()=>{ae(!0===S.state)}),[S]);const Ce=(e,t)=>{const{name:a,value:i,performCalculations:o}=t,n=vh(a)&&(e=>0===Ls(e))(i);if(o){de(!0);let t=[...G];if(n)t[e]={...t[e],unitPrice:"",unitPriceDolar:"",unitPriceWithIva:"",unitPriceDolarWithIva:""};else if(t[e][a]=i,1===Number(E)){const o=parseFloat(t[e].iva)||0,n=parseFloat(String(i).replace(/\./g,"").replace(",","."))||0;"unitPrice"===a?t[e].unitPriceWithIva=As(n*(1+o/100),r):"unitPriceDolar"===a&&(t[e].unitPriceDolarWithIva=As(n*(1+o/100),r))}Y((t=>t.map(((t,o)=>o!==e?t:n?{...t,unitPrice:"",unitPriceDolar:"",unitPriceWithIva:"",unitPriceDolarWithIva:""}:{...t,..."unitPrice"===a&&{unitPrice:i},..."unitPriceDolar"===a&&{unitPriceDolar:i},..."unitPriceWithIva"===a&&{unitPriceWithIva:i},..."unitPriceDolarWithIva"===a&&{unitPriceDolarWithIva:i}})))),Ae(!0,null,t)}else{const e="number"!==typeof ue.conceptId||isNaN(ue.conceptId)||0===ue.conceptId;pe({...ue,[a]:i,...n?{unitPrice:"",unitPriceDolar:"",unitPriceWithIva:"",unitPriceDolarWithIva:""}:{...("unitPrice"===a||"unitPriceDolar"===a)&&(e?{unitPriceDolar:i,unitPrice:i}:"U$S"===h?{unitPriceDolar:i}:{unitPrice:i}),...1===Number(E)&&"unitPrice"===a&&{unitPriceWithIva:As((parseFloat(String(i).replace(/\./g,"").replace(",","."))||0)*(1+(parseFloat(ue.iva)||0)/100),r)},...1===Number(E)&&"unitPriceDolar"===a&&{unitPriceDolarWithIva:As((parseFloat(String(i).replace(/\./g,"").replace(",","."))||0)*(1+(parseFloat(ue.iva)||0)/100),r)},...("unitPriceWithIva"===a||"unitPriceDolarWithIva"===a)&&(e?{unitPriceDolarWithIva:i,unitPriceWithIva:i,unitPriceDolar:"",unitPrice:""}:"U$S"===h?{unitPriceDolarWithIva:i}:{unitPriceWithIva:i})},..."description"===a&&{description:i,conceptDescription:i},...vh(a)||"description"===a?{selectedConcept:!1}:{}})}},ye=e=>{""===e&&pe({...ue,concept:"",conceptDescription:"",conceptId:"",valueCodeName:"",code:"",unitPrice:"",unitPriceWithIva:"",unitPriceDolar:"",unitPriceDolarWithIva:"",description:"",bonus:O,iva:fe.current||0,ivaObj:ve.current||{value:0,name:"0",id:0,default:!1},...Ou(null)})},Oe=e=>
1{let{newValue:t,index:a,performCalculations:i}=e;if(t){const e=t;if(i){Y((i=>i.map(((i,o)=>o===a?{...i,iva:null===t||void 0===t?void 0:t.value,ivaObj:e,ivaRateId:null===t||void 0===t?void 0:t.id}:i))));let i=G;i[a]={...i[a],iva:null===t||void 0===t?void 0:t.value,ivaObj:e,ivaRateId:null===t||void 0===t?void 0:t.id},Rh(!0,r,a,i,G,Y,R,x,k,E,b,h)}else{const a=parseFloat(null===t||void 0===t?void 0:t.value),i=Number.isFinite(a)?a:0,o={iva:null===t||void 0===t?void 0:t.value,ivaObj:e,ivaRateId:null===t||void 0===t?void 0:t.id};if(1===Number(E))if("U$S"===h){const e=Ls(ue.unitPriceDolar)||0;0!==e&&(o.unitPriceDolarWithIva=As(e*(1+i/100),r))}else{const e=Ls(ue.unitPrice)||0;0!==e&&(o.unitPriceWithIva=As(e*(1+i/100),r))}pe({...ue,...o})}}};const Se=[{text:"#",style:{textAlign:"start",width:"5%"}},{text:Ti.a.t("amount"),style:{textAlign:"start",width:"5%"}},{text:Ti.a.t("description"),style:{textAlign:"start",width:"20%"}},{text:Ti.a.t("unitPrice"),style:{textAlign:"start",width:"20%"}},{text:Ti.a.t("bonif"),style:{textAlign:"start",width:"10%"},action:"Aplicar a todos",onClick:()=>Nh(G,Ae,"bonus"),disabled:Array.isArray(G)&&G.filter((e=>e.isSaved)).length<2},{text:Ti.a.t("IVAPer"),style:{textAlign:"start",width:"20%"},action:"Aplicar a todos",onClick:()=>Nh(G,Ae,"iva","ivaObj","ivaRateId"),disabled:Array.isArray(G)&&G.filter((e=>e.isSaved)).length<2},{text:Ti.a.t("subtotal"),style:{textAlign:"end",width:"15%"}},{text:"",style:{textAlign:"start",width:"10%"}}],Ee={total:(e,t)=>Object(p.jsx)(v.a,{item:!0,xs:12,md:1,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "})," ",Ti.a.t("amount")]}),Object(p.jsx)(A.a,{className:"input inputPrimary",name:"total",value:ue.total,isAllowed:e=>Lh(e)&&Su(ue,e),thousandSeparator:".",decimalSeparator:",",onChange:e=>Ce(t,{name:"total",value:e.target.value,performCalculations:!1}),allowNegative:!0,decimalScale:"0"===o?0:o,onBlur:e=>{const{value:a}=e.target,i=As(parseFloat(a.replace(/\./g,"").replace(",",".")),o);Ce(t,{name:"total",value:i,performCalculations:!1})}},`total-input-${t}`)]})},`total-${t}`),concept:(e,t)=>Object(p.jsx)(v.a,{item:!0,xs:12,md:3,children:Object(p.jsx)(ul,{filter:""+(n?`limit=10&status=A&salesVisible=1&personId=${K}&embed=stock`:"limit=10&status=A&salesVisible=1&embed=stock"),type:"searchSelectPrimary",style:{width:"200px"},url:Object(aa.a)()+"concepts/filter",option2:"code",option1:"name",placeholderL
1abel:Ti.a.t("charactersToSearch"),onChange:e=>((e,t)=>{var i,o,n;const s=yu(t),c=null===d||void 0===d?void 0:d.find((e=>0===e.value)),u=((e,t,a,i)=>{const o=null===t||void 0===t?void 0:t.value,n=t?t.id:null,r=(t&&t.name,t?t.default:null),s=i.find((t=>null!==(null===e||void 0===e?void 0:e.ivaRateId)?t.id===(null===e||void 0===e?void 0:e.ivaRateId):t.value===(null===e||void 0===e?void 0:e.iva))),l=s?s.id:null,c=s?s.name:null,d=s?s.default:null;return{value:a?o:null===e||void 0===e?void 0:e.iva,name:a?o:c,id:a?n:l,default:a?r:d}})(t,c,m,d),p=M.find((e=>e.id===(null===t||void 0===t?void 0:t.currencyId))),g=p&&"U$S"===p.symbol;pe({...ue,concept:t,conceptDescription:(null===t||void 0===t?void 0:t.name)||"",conceptId:(null===t||void 0===t?void 0:t.id)||"",code:(null===t||void 0===t?void 0:t.code)||"",valueCodeName:s,unitPrice:t&&L===t.currencyId?As(1!==Number(E)||m?t.unitPrice:t.finalPrice/(1+u.value/100),r):t&&k?As(1!==Number(E)||m?t.unitPrice*k:t.finalPrice/(1+u.value/100)*k,r):"",unitPriceOriginal:null!==(i=null===t||void 0===t?void 0:t.unitPrice)&&void 0!==i?i:null,unitPriceWithIva:t&&L===t.currencyId?As(m?t.unitPrice:t.finalPrice,r):t&&k?As((m?t.unitPrice:t.finalPrice)*k,r):"",unitPriceDolar:t&&L!==t.currencyId?As(1!==Number(E)||m?t.unitPrice:t.finalPrice/(1+u.value/100),r):t&&k?As(1!==Number(E)||m?t.unitPrice/k:t.finalPrice/(1+u.value/100)/k,r):"",unitPriceDolarWithIva:t&&L!==t.currencyId?As(m?t.unitPrice:t.finalPrice,r):t&&k?As((m?t.unitPrice:t.finalPrice)/k,r):"",finalPriceOriginal:m?null!==(o=null===t||void 0===t?void 0:t.unitPrice)&&void 0!==o?o:null:null!==(n=null===t||void 0===t?void 0:t.finalPrice)&&void 0!==n?n:null,bonus:As(O,ms),description:(null===t||void 0===t?void 0:t.name)||"",iva:u.value,ivaObj:{value:u.value,name:"ar"===a||l===Ki.PEQUY.value&&3!==u.id||m?String(u.value).replace(".",","):u.name,id:u.id,default:u.default},ivaRateId:u.id,currencyId:null===t||void 0===t?void 0:t.currencyId,selectedConcept:!0,isDolar:g,...Ou(t)})})(ue.id,e),selectTwoOptions:!0,label:Ti.a.t("selectItem"),required:!0,values:ue.valueCodeName||"",disableClearable:!0,onInputChange:ye,formatOptionLabel:yu,renderOptionSuffix:e=>{var t,a;const i=null!==(t=null===e||void 0===e||null===(a=e.stock)||void 0===a?void 0:a.availableStock)&&void 0!==t?t:null;if(null===i)return null;const n=i<=0?ui.a.error400:ui.a.primary400,r=As(i,o);return Object(p.jsxs)("span",{style:{color:n},children:["Stock: ",r]})},selectFirstOnEnter:!0},`concept-select-${t}`)},`concept-${t}`),description:(e,t)=>Object(p.jsx)(v.a,{item:!0,xs:12,md:3,children:Object(p.jsx)("div",{className:"inputContainer",children:Object(p.jsx)(mr,{style:{width:"98%"},type:"text",name:"description",types:"inputPrimaryTable",disabledMinHeight:!0,maxLength:"500",value:ue.description,onChange:e=>Ce(t,{name:"description",value:e.target.value,performCalculations:!1}),children:Ti.a.t("addFreeDescription")},`description-input-${t}`)})},`description-${t}`),unitPrice:(e,t)=>{var a,i;return Object(p.jsx)(v.a,{item:!0,xs:12,md:2,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsxs)("label",{className:"inputlabel",children:[Object(p.jsx)("span",{className:"inputArterisk",children:"* "}),Ti.a.t("unitPrice3")]}),Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)(A.a,{placeholder:As(0,r),name:"U$S"===h?"unitPriceDolar":"unitPrice",thousandSeparator:".",decimalSeparator:",",className:"inputPrimaryThree",style:{width:"100%"},value:"U$S"===h?null!==(a=ue.unitPriceDolar)&&void 0!==a?a:"":null!==(i=ue.unitPrice)&&void 0!==i?i:"",allowNegative:!0,decimalScale:"0"===r?0:r,isAllowed:Bh,onChange:e=>{const{name:a,value:i}=e.target;Ce(t,{name:a,value:i,performCalculations:!1})},onBlur:e=>((e,t,a,i,o)=>{const{value:n}=e.target,r=As(parseFloat(n.replace(/\./g,"").replace(",",".")),i),s=Rs(n);if(o(t,{name:a,value:r,performCalculations:!1}),"number"===typeof ue.conceptId&&0!==ue.conceptId){const e=Ah(a,s,k,i);e&&pe((t=>({...t,...e})))}})(e,t,e.target.name,r,Ce)},`unitPrice-input-${t}`),Object(p.jsx)(ur,{className:"inputIconInsideTop",name:ne})]})]})},`unitPrice-${t}`)},bonus:(e,t)=>Object(p.jsx)(v.a,{item:!0,xs:12,md:1,children:Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)("label",{className:"inputlabel",children:Ti.a.t("bonif")}),Object(p.jsxs)("div",{className:"inputContainer",children:[Object(p.jsx)(A.a,{name:"bonus",placeholder:"",thousandSeparator:".",decimalSeparator:",",className:"inputPrimaryFive",value:null!==ue.bonus?As(ue.bonus,ms):"",allowNegative:!1,decimalScale:ms,onChange:e=>Ce(t,{name:"bonus",value:e.target.value,performCalculations:!1}),isAllowed:kh,onBlur:e=>{const{value:a}
1=e.target,i=As(parseFloat(a.replace(/\./g,"").replace(",",".")),ms);Ce(t,{name:"bonus",value:i,performCalculations:!1})}},`bonus-input-${t}`),Object(p.jsx)(ur,{className:"inputIconInsideTop",name:"percentage"})]})]})},`bonus-${t}`),iva:(e,t)=>Object(p.jsx)(v.a,{item:!0,xs:12,md:2,children:Object(p.jsx)(Jb,{icon:"percentage",disabled:l===Ki.MO.value||l===Ki.PEQUY.value||m,disabledClass:l===Ki.MO.value||l===Ki.PEQUY.value||m,showIcon:!0,type:"searchSelectPrimary",data:d,value:ue.ivaObj,defaultValue:ie,loading:null===c||g,onChange:e=>Oe({newValue:e,index:t,performCalculations:!1}),label:Ti.a.t("IVAPer")},`iva-select-${t}`)},`iva-${t}`)},Ie={cellComponents:Ee,rows:G,setRows:Y,hasCurrencyDefault:x,columnHeaders:Se,ivaDefault:u,withBudgetIva:m,ivaRatesLoading:g,fixedDiscount:O,userDecimal:r,isEdition:I,setEditionInitialRender:P,calculateSubTotal:Th,dataDefaultIva:c,isAllowed:Lh,handleInputChange:Ce,stockRounding:o,finalPriceWithIva:E,currencySymbol:h,nameIconPrice:ne,isAllowedNumberFormatBonus:kh,ivaCondition:l,unitPriceIncludesIva:s,userOptions:d,dataDefaultIvaValue:ie,handleSearchSelectChange:Oe,currentEditableItem:ue,setCurrentEditableItem:pe,debouncedHandleChange:Ae,totalDefault:B,changeTypeNumber:k,setInvoiceData:R,invoiceData:N,setValidationDigits:b,isCalculating:ce,setIsCalculating:de,isAllowedNumberFormatUnitPrice:Bh,checkStepFourItems:X},we={netoGravado:N.netoGravado,noGravado:N.noGravado,iva:N.iva,total:N.total,symbol:N.symbol,totalDefaultCurrency:N.totalDefaultCurrency,currencyDefaultSymbol:f,hasCurrencyDefault:x,userDecimal:r,changeTypeNumber:k};return Object(p.jsxs)(v.a,{id:"stepFour",className:Z.stepContainer,children:[Object(p.jsx)(Wb,{number:t?4:3,text:Ti.a.t("itemsToBudget")}
1),te&&Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>{ae(!1)},children:S.text}),Q?Object(p.jsx)(v.a,{container:!0,justify:"center",alignItems:"center",children:Object(p.jsx)(Od.a,{})}):Object(p.jsx)("div",{children:Object(p.jsx)(Fh,{...Ie})}),Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,className:Z.tableTotalsContainer,children:[Object(p.jsxs)(v.a,{item:!0,xs:12,md:6,children:[Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:Z.label,style:{marginBottom:"5px"},children:Ti.a.t("observations")})}),Object(p.jsx)(v.a,{children:Object(p.jsx)("textarea",{className:Z.textArea,onChange:function(e){const t=e.target.value;C(t)},maxLength:"500",value:j})})]}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,children:Object(p.jsx)(eh,{...we})})]})]})};const Uh=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",padding:e.spacing(1),fontFamily:"Work Sans, sans-serif",display:"flex",justifyContent:"center",width:"100%","@media (min-width: 600px)":{margin:"0 20px"}},container:{width:"80%","@media (max-width: 600px)":{width:"95%"}},container2:{marginTop:"20px"},titleStep:{fontFamily:"Work Sans, sans-serif",fontWeight:"500",fontSize:"16px",lineHeight:"20px",color:"#131313"},containerForm:{marginTop:"10px",backgroundColor:"#FFFFFF",padding:"30px 40px","@media (max-width: 600px)":{padding:"20px"}},inputArterisk:{color:"#f32465"},label:{fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:"#131313",fontFamily:"Work Sans, sans-serif"},textArea:{width:"100%",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px"},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},containerBtn:{display:"flex",justifyContent:"flex-end",marginTop:"46px",marginBottom:"80px","@media (max-width: 600px)":{marginTop:"30px"}},text1:{fontWeight:"500",fontSize:"18px",lineHeight:"22px",color:"#131313",fontFamily:"Work Sans, sans-serif"},containerText1:{height:"42px",display:"flex",alignItems:"center"},containerAlert:{marginTop:15,marginBottom:25}}))),_h=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var zh=function(){const e=Uh();return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(_h,{children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:e.footerForm,style:{marginBottom:"5px"},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:e.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})})})})})};const qh=Object(u.a)((e=>({box:{width:170,height:150,padding:10,cursor:"pointer",border:`1px solid ${ui.a.grey200}`,borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center","@media (max-width: 600px)":{width:"100%"}},boxInfo:{width:170,height:150,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:hover $boxText, &:hover $icon":{color:ui.a.primary400}},boxText:{fontFamily:"Work Sans, sans-serif !important",color:ui.a.grey500,paddingTop:"10px",lineHeight:"20px"},icon:{color:ui.a.primary300}})));var Gh=e=>{let{icon:t,title:a,onClick:i,loading:o=!1}=e;const n=qh();return Object(p.jsx)(hr.a,{item:!0,className:n.box,style:{margin:10},children:Object(p.jsxs)("div",{className:n.boxInfo,onClick:i,children:[o&&Object(p.jsx)(Od.a,{}),!o&&Object(p.jsxs)(hr.a,{children:[Object(p.jsx)(ni.a,{className:n.icon,viewBox:"0 0 23 23",name:t,style:{width:40,height:40}}),Object(p.jsx)("div",{className:n.boxText,children:a})]})]})})};const Yh=Object(u.a)((e=>({container:{maxHeight:"67vh",height:"470px",width:"100%",padding:"20px 15px","@media (max-width: 770px)":{height:"85%"}},modalStyle:{width:"100%",maxWidth:"650px",maxHeight:"95vh",height:"510px",fontSize:"16px","@media (max-width: 770px)":{width:"90% !important",height:"80%"}}
1,containerWithError:{height:"575px",maxHeight:"67vh",width:"100%",padding:"20px 15px","@media (max-width: 770px)":{height:"80%"}},modalWithError:{width:"100%",maxWidth:"650px",maxHeight:"95vh",height:"575px",fontSize:"16px","@media (max-width: 770px)":{width:"90% !important",height:"87%"}},boxesContainer:{display:"flex",flexWrap:"wrap",maxHeight:"50vh",justifyContent:"center","@media (max-width: 600px)":{justifyContent:"center",overflowY:"scroll",width:"100%",flexDirection:"column"}},containerAlert:{marginBottom:"10px",width:"100%"}})));var Kh=e=>{let{openModal:t=!1,showAlertSuccess:a=!1,showAlertError:i=!1,actionItems:o=[],actions:n={},children:r={},actionItemsStyle:s={},title:l="",alertMessage:c="",loadingDownload:d=!1,handleCloseModal:u=(()=>{}),handleCloseAlert:m=(()=>{})}=e;const g=Yh(),b=()=>{u(),a&&m()};return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(Sm,{handleClose:b,isOpen:t,secondaryButtonClick:b,title:l,modalStyle:a||i?g.modalWithError:g.modalStyle,innerContentStyle:a||i?g.containerWithError:g.container,secondaryButtonText:Ti.a.t("close"),children:[a&&Object(p.jsx)(hr.a,{className:g.containerAlert,children:Object(p.jsx)($r,{icon:!0,iconName:"greenArrow",iconStyle:{marginTop:"5px"},type:"alertSuccess",onClick:()=>m(),children:c})}),i&&Object(p.jsx)(hr.a,{className:g.containerAlert,children:Object(p.jsx)($r,{icon:"error",iconName:"circleCheck",type:"alertError2",onClick:()=>m(),children:c})}),Object(p.jsxs)(hr.a,{justify:"center",container:!0,className:g.boxesContainer,style:s,children:[o.map(((e,t)=>Object(p.jsx)(Gh,{icon:e.icon,title:e.title,loading:d===(null===e||void 0===e?void 0:e.icon),onClick:n[e.action]},t))),r]})]})})};var Xh=e=>{let{mailData:t}=e;const[a,o]=Object(i.useState)(!1),[n,r]=Object(i.useState)(!1),[s,l]=Object(i.useState)(!1);return{successfulSend:s,mailLoading:a,mailError:n,sendMail:async()=>{o(!0),r(!1),l(!1);try{const e=await Ya.mail.postSendMail({mailData:t});null!==e&&void 0!==e&&e.send?l(!0):r(new Error("Send failed"))}catch(e){r(e),o(!1)}o(!1)}}};const Zh={ERROR_SENDING:Ti.a.t("errorMailSending"),ERROR_MAX_EMAILS:Ti.a.t("emailsMaxLimit")},Qh=Object(u.a)((e=>({overlay:{position:"fixed",bottom:67,left:0,width:"100%",maxHeight:"85%",backgroundColor:ui.a.white,zIndex:9999,overflow:"hidden",height:"0px"},slideUp:{animation:"$slideUp 0.8s ease-in-out forwards"},slideDown:{animation:"$slideDown 0.8s ease-in-out forwards"},"@keyframes slideUp":{"0%":{transform:"translateY(0%)"},"100%":{transform:"translateY(0)",height:"74%"}},"@keyframes slideDown":{"0%":{transform:"translateY(0)",height:"74%"},"100%":{transform:"translateY(0%)"}},fieldContainer:{width:"100%"},containerInfo:{margin:"10px 20px"},textArea:{width:"100%",height:"92px",border:`1px solid ${ui.a.grey400}`,borderRadius:"4px",padding:"5px",resize:" none",fontSize:"14px",fontFamily:"Work Sans, sans-serif !important"},textAreaError:{width:"100%",height:"92px",border:`1px solid ${ui.a.error400}`,borderRadius:"4px",padding:"5px",resize:" none",fontSize:"14px",fontFamily:"Work Sans, sans-serif !important"},label:{height:"25px",fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:ui.a.textPrimary,fontFamily:"Work Sans, sans-serif"},inputAsterisk:{color:ui.a.error400},requiredError:{fontSize:"11px",height:"8px",marginBottom:"0px",fontFamily:"Work Sans, sans-serif !important",color:ui.a.error400,"@media (max-width: 770px)":{marginBottom:"10px"}},containerBtn:{marginTop:"10px",overflow:"hidden","@media (max-width: 770px)":{marginTop:"0px"}},containerAlert:{margin:"0px 20px","@media (max-width: 600px)":{marginRight:"20px"}}})));var Jh=e=>{let{showAlertError:t=!1,id:a=null,person:o={},setOpenSendMail:n=(()=>{}),setShowAlertSuccess:r=(()=>{}),setShowAlertError:s=(()=>{})}=e;const l=Qh(),[c,d]=Object(i.useState)(""),[u,m]=Object(i.useState)(""),[g,b]=Object(i.useState)(""),[h,x]=Object(i.useState)(!1),[f,j]=Object(i.useState)(!1),[A,C]=Object(i.useState)(!1),[y,O]=Object(i.useState)(!1),[S,E]=Object(i.useState)(!1),[I,w]=Object(i.useState)(!1),T={name:o.socialReason,to:c,subject:u,message:g,id:a},{successfulSend:P,mailLoading:R,mailError:N,sendMail:L}=Xh({mailData:T});Object(i.useEffect)((()=>{o.email&&d(o.email)}),[]),Object(i.useEffect)((()=>{P?(r(!0),k()):r(!1)}),[P]),Object(i.useEffect)((()=>{s(!!N)}),[N]),Object(i.useEffect)((()=>{x(!1),""===c&&j(!1)}),[c]),Object(i.useEffect)((()=>{O(!1)}),[u]),Object(i.useEffect)((()=>{E(!1)}),[g]);const k=()=>{w(!0),x(!1),O(!1),E(!1),j(!1),F(),setTimeout((()=>{n(!1),w(!1)}),800)},B=e=>{const t=e.split(",").map((e=>e.trim())),a=/^[^\s@<>()\[\]\\,;:"'\.]+(\.[^\s@<>()\[\]\\,;:"'\.]+)*[^\s@<>()\[\]\\,;:"'\.]+@(?!(?:[-_]\.)|(?:\.[-_])|(?:[-_][^a-zA-Z0-9])|(?:[^a-zA-Z0-9][-_.])|(?:[-_]$)|(?:^[-_]))[a-zA-Z0-9]+(?:[-_a-zA-Z0-9]*[a-zA-Z0-9])*(?:\.[a-zA-Z]+(?:[-_a-zA-Z0-9]*[a-zA-Z0-9])*)*\.[a-zA-Z]+$/,i=t.every((e=>a.test(e)));j(!i)},D=e=>{const t=e.split(",").map((e=>e.trim()));t.length>100?(C(!0),s(!0)):(C(!1),s(!1))};function F(){s(!1)}return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,className:`${l.overlay} ${I?l.slideDown:l.slideUp}`,children:[t&&N&&Object(p.jsx)(v.a,{className:l.containerAlert,children:Object(p.jsx)($r,{icon:!0,iconName:"
1circleCheck",type:"alertError2",onClick:()=>F(),children:Zh.ERROR_SENDING})}),t&&A&&Object(p.jsx)(v.a,{className:l.containerAlert,children:Object(p.jsx)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>F(),children:Zh.ERROR_MAX_EMAILS})}),Object(p.jsxs)(v.a,{container:!0,className:l.containerInfo,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:12,className:l.fieldContainer,children:Object(p.jsx)(mr,{types:h||f?"inputError":"inputPrimary",errorMsg:h?Ti.a.t("requiredField"):f?Ti.a.t("emailWrong"):"",showError:!0,required:!0,onChange:e=>{c||j(!1);const t=e.target.value;d(t),B(t),D(t)},maxLength:"9999",value:c,children:Ti.a.t("emailFor")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:12,className:l.fieldContainer,children:Object(p.jsx)(mr,{types:y?"inputError":"inputPrimary",errorMsg:y?Ti.a.t("requiredField"):"",showError:!0,required:!0,onChange:e=>{const t=e.target.value;m(t)},maxLength:"150",value:u,children:Ti.a.t("emailSubject")})}),Object(p.jsxs)(v.a,{item:!0,container:!0,xs:12,md:12,className:l.fieldContainer,style:{marginBottom:"10px"},children:[Object(p.jsx)(v.a,{children:Object(p.jsxs)(cn.a,{className:l.label,children:[Object(p.jsx)("span",{className:l.inputAsterisk,children:"* "})," ",Ti.a.t("emailMessage")]})}),Object(p.jsx)("textarea",{className:S?l.textAreaError:l.textArea,onChange:e=>{const t=e.target.value;b(t)},maxLength:500,value:g}),S&&Object(p.jsx)("p",{className:l.requiredError,children:Ti.a.t("requiredField")})]}),Object(p.jsxs)(v.a,{container:!0,className:`${l.containerBtn} `,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"secondary",disabled:R,onClick:k,children:Ti.a.t("cancel")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:"10px"},children:Object(p.jsx)(si,{type:"primary",disabled:R||A||f||h||y||S,loading:R,onClick:()=>{const e=""===c,t=""===u,a=""===g;x(e),O(t),E(a),e||t||a||f||A||L()},children:R?Ti.a.t("process"):Ti.a.t("send")})})]})]})]})})};var $h=e=>{let{openModal:t=!1,person:a={},actionItems:o=[],budgetId:n="",budgetNumber:r="",fetchPdf:s=(()=>{}),generateRemittanceFromBudget:c=(()=>{}),handleCloseModal:d=(()=>{}),setOpenActionsModal:u=(()=>{})}=e;const[m,g]=Object(i.useState)(!1),[b,h]=Object(i.useState)(!1),[x,f]=Object(i.useState)(!1),[v,j]=Object(i.useState)(!1),A=Object(l.g)(),C=async e=>{let{type:t,isPrint:i}=e;j(i?"print":"file"),await s({id:n,budgetNumber:r,person:a,type:t,isPrint:i}),j(!1)};const y={handleOpenSendEmail:()=>g(!0),handlePdfBudgetRemittance:async()=>{j("download"),f(!1);try{await(async e=>{const t=await c(e);t&&""!==t&&null!==t?window.location.href=t:f(!0)})(n)}catch{f(!0)}finally{j(!1)}},handlePdfBudgetFile:()=>C({type:null,isPrint:!1}),handlePrint:()=>C({type:null,isPrint:!0}),handleDuplicate:()=>{const e=A.location.pathname,a=e.includes("?duplicate=true");let i=n;if(a){const t=e.split("/");i=(parseInt(t[t.length-1])||0)+1}t&&(u(!1),h(!1),f(!1)),A.push(`/v3/budgets/addNew/${i}?duplicate=true`)}},O={person:a,id:n,showAlertError:x,setOpenSendMail:g,setShowAlertSuccess:h,setShowAlertError:f},S={actions:y,openModal:t,actionItems:o,showAlertSuccess:b,showAlertError:x,actionItemsStyle:{margin:"0px 20px"},loadingDownload:v,handleCloseModal:d,handleCloseAlert:function(){h(!1),f(!1)},title:m?Ti.a.t("sendEmailBudget"):Ti.a.t("actionModalTitle"),alertMessage:x?Ti.a.t("errorGeneratingRemittance"):Ti.a.t("successMailSending"),children:m&&Object(p.jsx)(Jh,{...O})};return Object(p.jsx)("div",{children:Object(p.jsx)(Kh,{...S})})},ex=a(50),tx=a(251),ax=(a(345),a(346),a(252));a(541);const ix=e=>Object(p.jsxs)(p.Fragment,{children:[e.canvasLayer.children,Object(p.jsx)("div",{style:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center",left:0,position:"absolute",top:0,width:"100%"},children:Object(p.jsx)("div",{style:{opacity:.2,fontWeight:"bold",textTransform:"uppercase",transform:"rotate(-45deg)",userSelect:"none",fontSize:"100px",width:"600px",height:"400px",display:"flex",justifyContent:"center",alignItems:"center"},children:Ti.a.t("draft")})}),e.annotationLayer.children,e.textLayer.children]}),ox=()=>Object(p.jsx)("div",{style:{minHeight:400,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsx)(Od.a,{size:40})}),nx=e=>{let{openModal:t=!1,pdfPreviewData:a={},handleCloseModal:o=(()=>{})}=e;const n=rx(),[r,s]=Object(i.useState)(""),l=Object(tx.defaultLayoutPlugin)({renderSidebar:()=>null});Object(i.useEffect)((()=>{Boolean(r)||(async()=>{try{const e=await Ya.budgets.exportBudgetPdf({id:null,pdfPreviewData:a}),t=new Blob([e],{type:"application/pdf"}),i=URL.createObjectURL(t);s(i)}catch(e){console.error("Error fetching PDF:",e)}})()}),[r]);return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(ex.Worker,{workerUrl:"https://unpkg.com/[email protected]/build/pdf.worker.min.js",children:Object(p.jsxs)(Gg,{handleClose:o,secondaryButtonClick:()=>{o(),s("")},isOpen:t,titleModal:Ti.a.t("budgetView"),titleChange:!0,primaryHeader:!0,modalStyle:n.modalStyle,innerContainerStyle:n.container,secondaryButtonText:Ti.a.t("
1close"),children:[Boolean(r)&&Object(p.jsx)(ex.Viewer,{pageLayout:{transformSize:e=>{let{size:t}=e;return{height:t.height+30,width:t.width+30}}},fileUrl:r,plugins:[l],localization:ax,renderPage:ix,renderLoader:ox}),!Boolean(r)&&ox()]})})})},rx=Object(u.a)((e=>({container:{width:"100%",maxWidth:900,height:"calc(100vh - 140px)",marginTop:10,borderRadius:5,backgroundColor:"#FFFFFF",boxShadow:"0px 1px 1px 0px rgba(0, 0, 0, 0.10)"},modalStyle:{width:"100%",height:"100%",maxWidth:"850px",maxHeight:"85vh",fontSize:"30px","@media (max-width: 479px)":{width:"90% !important"}},loaderContainer:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0},pdfIframe:{border:"none",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"absolute",top:"20px",left:"20px"}})));var sx=e=>{let{userData:t}=e;const a="cl"===(null===t||void 0===t?void 0:t.country)?"C":"P";return{fetchPdf:async e=>{let{id:t,budgetNumber:i,person:o,type:n,isPrint:r}=e;try{const e=await Ya.budgets.exportBudgetPdf({id:t,type:n}),s=new Blob([e],{type:"application/pdf"});r?(e=>{let{url:t}=e;const a=document.createElement("iframe");a.style.display="none",a.src=t,document.body.appendChild(a),a.onload=()=>{a.contentWindow.print()}})({url:URL.createObjectURL(s)}):(e=>{let{pdfData:t,id:i,budgetNumber:o,person:n,type:r}=e;const s=n.socialReason.trim().toUpperCase().replace(/\s+/g,"_"),l=document.createElement("a"),c=new Blob([t],{type:"application/pdf"});l.href=window.URL.createObjectURL(c),l.download="remittance"===r?`remito-${i}.pdf`:`${s}_${a}-${o}.pdf`,document.body.appendChild(l),l.click(),setTimeout((()=>{document.body.removeChild(l),window.URL.revokeObjectURL(l.href)}),500)})({pdfData:e,id:t,budgetNumber:i,person:o,type:n})}catch(s){console.error("Error fetching PDF:",s)}},generateRemittanceFromBudget:async e=>{try{const t=await Ya.budgets.generateRemittanceFromBudget({idPresupuesto:e}),a=await t.json();return`/pdfGenerator.ashx?file=${encodeURIComponent(a)}&tipoDeArchivo=remito`}catch(t){return null}}}};const lx=Object(u.a)((e=>({greyText:{fontFamily:"Work Sans, sans-serif !important",fontWeight:400,marginBottom:"8px",fontSize:"13px",diplay:"flex",flexDirection:"row",lineHeight:"16px",color:ui.a.grey600}}))),cx=Object(T.a)(v.a)((e=>{let{theme:t}=e;return{padding:t.spacing(1),"@media (max-width: 600px)":{padding:t.spacing(.1)}}}));var dx=e=>{let{userModifies:t,userRegister:a}=e;const i=lx();return Object(p.jsx)(v.a,{container:!0,rowspacing:3,columnspacing:3,children:Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsxs)(cx,{children:[Object(p.jsx)(v.a,{item:!0,xs:12,sm:12,children:Object(p.jsxs)("p",{className:`${i.greyText} ${i.padding}`,children:[Ti.a.t("userCreates"),": ",Object(p.jsx)("b",{children:a})]})}),Object(p.jsx)(v.a,{item:!0,xs:12,sm:12,children:Object(p.jsxs)("p",{className:`${i.greyText} ${i.padding}`,children:[Ti.a.t("userModifies"),": ",Object(p.jsx)("b",{children:t})]})})]})})})};const ux="handlePdfBudgetRemittance";var px=[{icon:"send",title:Ti.a.t("sendEmail"),action:"handleOpenSendEmail"},{icon:"download",title:Ti.a.t("downloadRemittance"),action:ux},{icon:"file",title:Ti.a.t("downloadBudget"),action:"handlePdfBudgetFile"},{icon:"print",title:Ti.a.t("print"),action:"handlePrint"},{icon:"double",title:Ti.a.t("duplicate"),action:"handleDuplicate"}],mx=a(20);const gx=Object(u.a)((e=>({grid:{padding:"10px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"26px",lineHeight:"26px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"18px"}},icon:{color:ui.a.textSecondary,marginRight:"10px",alignItems:"center"},link:{display:"flex",flexDirection:"row",alignItems:"center",color:ui.a.primary400,fontSize:"14px",lineHeight:"16px",fontFamily:"Work Sans, sans-serif",fontWeight:400,marginRight:10,"&:hover":{textDecoration:"none",color:ui.a.primary400},"@media (max-width: 755px)":{marginTop:0}},info:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",marginLeft:5},IconArrow:{fontSize:"36px",display:"flex",alignItems:"center",padding:"5px 0 0 5px"},container:{display:"flex"},container2:{display:"flex","@media (max-width: 800px)":{marginTop:"15p
1x",width:"100%"}},btn:{margin:"0 0px","@media (max-width: 600px)":{width:"100%",marginLeft:"0px"}},filterButtonPlus:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:100,padding:10},plusIcon:{marginTop:"13px",marginRight:"-5px"}})));var bx=e=>{var t,a;let{title:o="",style:n={},button:r=!1,buttonText:s,buttonUrl:l="",showGoToOld:c=!0,showGoToOldClUy:d=!0,goToOldText:u=Ti.a.t("goToOldConceptsCreation"),showTutorial:m=!1,tutorialLinkText:g=Ti.a.t("recommendedTutorial"),countryLinks:b="/",countryGoToOldLinks:h="/",handleGoToOldLinkClick:x=(()=>{})}=e;const f=gx(),[j,A]=Object(i.useState)(""),[C,y]=Object(i.useState)("/"),O=Kn();return Object(i.useEffect)((()=>{var e;const t=null===O||void 0===O||null===(e=O.data)||void 0===e?void 0:e.country;t&&("ar"===t&&(A("https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium"),y("https://app.contabilium.com/"+h)),"cl"===t&&(A("https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium"),y("https://app.contabilium.cl/"+h)),"uy"===t&&(A("https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium"),y("https://app.contabilium.com.uy/"+h)),"py"===t&&(A("https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium"),y("https://app.contabilium.com.py/"+h)))}),[O,b,h]),Object(p.jsx)(v.a,{style:n,container:!0,className:f.grid,xs:12,md:12,xl:12,children:Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},justifyContent:"space-between",alignItems:"center",children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:f.title,children:o})}),Object(p.jsxs)(v.a,{className:f.container2,children:[("ar"===(null===O||void 0===O||null===(t=O.data)||void 0===t?void 0:t.country)&&c||"ar"!==(null===O||void 0===O||null===(a=O.data)||void 0===a?void 0:a.country)&&d)&&Object(p.jsxs)(so.a,{onClick:x,href:C,className:f.link,children:[Object(p.jsx)(cn.a,{className:f.info,children:u}),Object(p.jsx)(ni.a,{viewBox:"5 -6 15 29",className:f.IconArrow,name:"greenArrow"})]}),r&&Object(p.jsx)(v.a,{item:!0,className:f.btn,children:Object(p.jsx)("a",{style:{textDecoration:"none"},href:l,children:Object(p.jsxs)(si,{medium:!0,containerClass:f.filterButtonPlus,type:"tertiary",children:[Object(p.jsx)(ni.a,{width:"10px",height:"10px",viewBox:"",className:f.plusIcon,name:"plus"}),s]})})}),m&&j&&Object(p.jsxs)(so.a,{href:j,className:f.link,target:"_blank",children:[Object(p.jsx)(cn.a,{className:f.info,children:g}),Object(p.jsx)(ni.a,{viewBox:"5 -6 15 29",className:f.IconArrow,name:"greenArrow"})]})]})]})})};const hx=(e,t,a,i)=>{a("ar"===e?t.filter((e=>{var a;return e.name!==(null===(a=t[2])||void 0===a?void 0:a.name)})):t),i({type:"SET_SELECTED_OPTION",payload:{field:"documentType",selectedOption:null}})},xx=(e,t,a,i,o,n)=>{var r,s;const l=null===e||void 0===e||null===(r=e.taxCategory)||void 0===r?void 0:r.value,c=null===e||void 0===e||null===(s=e.legalIdentity)||void 0===s?void 0:s.value;switch(l){case a[0].value:case a[4].value:Ax(t.filter((e=>e.name===t[2].name)),t[2].name,o,n);break;case a[1].value:Ax(t.filter((e=>e.name!==t[2].name)),t[0].value,o,n);break;default:Ax(t.filter((e=>e.name!==t[2].name)),null,o,n)}l===a[0].value&&c===i[1].value&&(n({type:"SET_SELECTED_OPTION",payload:{field:"documentType",selectedOption:{name:t[2].name,label:t[2].label,value:t[2].value}}}),Ax(t.filter((e=>e.name===t[2].name)),t[2].name,o,n)),c===i[1].value&&[a[2].value,a[3].value].includes(l)&&Ax(t.filter((e=>e.name===t[1].name)),null,o,n)},fx=(e,t,a,i,o)=>{var n;switch(null===e||void 0===e||null===(n=e.taxCategory)||void 0===n?void 0:n.value){case a[0].value:Ax(t.filter((e=>e.value===t[0].value)),t[0].value,i,o);break;case a[1].value:Ax(t.filter((e=>e.value===t[2].value)),t[2].value,i,o);break;case a[2].value:Ax(t.filter((e=>[t[1].value,t[3].value].includes(e.value))),null,i,o);break;default:Ax(t,null,i,o)}},vx=(e,t,a,i,o)=>{var n;switch(null===e||void 0===e||null===(n=e.taxCategory)||void 0===n?void 0:n.value){case a[0].value:Ax(t.filter((e=>e.value===t[0].value)),t[0].value,i,o);break;case a[2].value:Ax(t.filter((e=>e.value===t[2].value)),t[2].value,i,o);break;case a[3].value:Ax(t.filter((e=>e.value!==t[2].value)),null,i,o);break;default:Ax(t,null,i,o)}},jx=(e,t,a,i,o)=>{var n;switch(null===e||void 0===e||null===(n=e.taxCategory)||void 0===n?void 0:n.value){case a[0].value:Ax(t.filter((e=>e.value===t[0].value)),t[0].value,i,o);break;case a[1].value:Ax(t.filter((e=>e.value===t[2].value)),t[2].value,i,o);break;case a[2].value:Ax(t.filter((e=>e.value!==t[2].value)),null,i,o);break;default:Ax(t,null,i,o)}},Ax=(e,t,a,i)=>{a(e);i({type:"SET_SELECTED_OPTION",payload:{field:"documentType",selectedOption:e.find((e=>e.value===t))||null}})},Cx=Object(u.a)((e=>({container:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"},items:{padding:"0px 10px"},button:{display:"flex",alignItems:"center",justifyContent:"center","@media (max-width: 960px)":{marginBottom:"15px"}}})));var yx=e=>{var t,a,o,n;let{userCountry:r=null,client:s={},emptyFieldErrors:l={},docTypeOptions:c=[],taxCategoryOptions:d=[],legalIdentityOptions:u=[],dispatch:m=(()=>{}),handleFieldValue:g=(()=>{}),handleSelectedOption:b=(()=>{}),handleOrganismSearchClick:h=(()=>{}
1),documentRequirementsError:x=!1,handleRequirementsCheck:f=(()=>{}),loadingAfipData:j=!1}=e;const A=Cx(),[C,y]=Object(i.useState)(!1),[O,S]=Object(i.useState)(r===mx.a.ARG.value?c.filter((e=>{var t;return e.name!==(null===(t=c[2])||void 0===t?void 0:t.name)})):c);return Object(i.useEffect)((()=>{var e,t;r===mx.a.UY.value&&(null===s||void 0===s||null===(e=s.taxCategory)||void 0===e?void 0:e.value)!==d[2].value||r!==mx.a.UY.value&&(null===s||void 0===s||null===(t=s.taxCategory)||void 0===t?void 0:t.value)!==d[1].value?y(!0):y(!1)}),[null===s||void 0===s||null===(t=s.taxCategory)||void 0===t?void 0:t.value]),Object(i.useEffect)((()=>{var e;if("MO"===(null===s||void 0===s||null===(e=s.taxCategory)||void 0===e?void 0:e.value)&&r===mx.a.ARG.value){const e=c.find((e=>"CUIT/CUIL"===e.name));S(e?[e]:[])}else((e,t,a,i,o,n,r)=>{var s;if(null===e||void 0===e||null===(s=e.taxCategory)||void 0===s||!s.name)return void hx(o,t,n,r);({ar:()=>xx(e,t,a,i,n,r),cl:()=>fx(e,t,a,n,r),uy:()=>vx(e,t,a,n,r),py:()=>jx(e,t,a,n,r)}[o]||(()=>Ax(t,null,n,r)))()})(s,c,d,u,r,S,m)}),[null===s||void 0===s||null===(a=s.taxCategory)||void 0===a?void 0:a.value,null===s||void 0===s||null===(o=s.legalIdentity)||void 0===o?void 0:o.value,c,r]),Object(p.jsx)("div",{children:Object(p.jsxs)(v.a,{container:!0,className:A.container,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:A.items,children:Object(p.jsx)(Pr,{required:C,label:Ti.a.t("newClientModal.docType"),type:l.documentType?"searchSelectError":"searchSelectPrimary",errorMsg:l.documentType?Ti.a.t("requiredField"):"",showError:!0,data:O,value:null===s||void 0===s?void 0:s.documentType,onChange:(e,t)=>
1{b("documentType")(e,t)},isUsedInModal:!0})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:A.items,children:Object(p.jsx)(mr,{types:l.documentNumber||x?"inputError":"inputPrimary",errorMsg:l.documentNumber?Ti.a.t("requiredField"):x?Ti.a.t("account.invalidCUIT"):"",showError:!0,required:C,onPaste:r===mx.a.CL.value&&"RUT"===(null===s||void 0===s||null===(n=s.documentType)||void 0===n?void 0:n.value)?e=>{var t,a;const i=((null===(t=e.clipboardData)||void 0===t||null===(a=t.getData)||void 0===a?void 0:a.call(t,"text/plain"))||"").replace(/[^0-9kK]/g,"").toUpperCase();i&&(e.preventDefault(),g("documentNumber")({target:{value:i}}),f("documentNumber",i))}:void 0,onChange:e=>{var t;let a=e.target.value;const i=null===s||void 0===s||null===(t=s.documentType)||void 0===t?void 0:t.value;"DNI"===i?a=a.replace(/\D/g,""):"CUIT"===i||"RUT"===i||"RUC"===i?(a=r===mx.a.CL.value?a.replace(/[^0-9kK]/g,"").toUpperCase():a.replace(/\D/g,""),f("documentNumber",a)):a=a.replace(/\D/g,""),g("documentNumber")({target:{value:a}})},maxLength:r===mx.a.ARG.value?"13":r===mx.a.CL.value?"10":r===mx.a.PY.value?"9":"12",value:s.documentNumber,inputMode:r===mx.a.ARG.value?"numeric":void 0,pattern:r===mx.a.ARG.value?"[0-9]*":void 0,children:Ti.a.t("number")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:2,className:`${A.items} ${A.button}`,children:Object(p.jsxs)(si,{type:"tertiary",loading:j,disabled:j,onClick:()=>h(s.documentNumber),children:[Object(p.jsx)(mi,{name:"search",viewBox:"0 -4 30 30"}),Ti.a.t("newClientModal.organism")]})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:A.items,children:Object(p.jsx)(mr,{types:l.socialReason?"inputError":"inputPrimary",errorMsg:l.socialReason?Ti.a.t("requiredField"):"",showError:!0,required:!0,onChange:e=>{/^[a-zA-Z0-9.;_ ]*$/.test(e.target.value)&&g("socialReason")(e)},maxLength:"130",value:s.socialReason||"",children:Ti.a.t("newClientModal.socialReasonOrName")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:A.items,children:Object(p.jsx)(Pr,{required:!0,label:Ti.a.t("newClientModal.taxCategory"),type:l.taxCategory?"searchSelectError":"searchSelectPrimary",errorMsg:l.taxCategory?Ti.a.t("requiredField"):"",showError:!0,data:d,placeholder:s.taxCategory?"":Ti.a.t("selectOption"),value:null===s||void 0===s?void 0:s.taxCategory,onChange:(e,t)=>
1{b("taxCategory")(e,t)},isUsedInModal:!0})}),C&&Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:A.items,children:Object(p.jsx)(Pr,{required:!0,label:Ti.a.t("newClientModal.legalIdentity"),type:l.legalIdentity?"searchSelectError":"searchSelectPrimary",errorMsg:l.legalIdentity?Ti.a.t("requiredField"):"",showError:!0,data:u,value:null===s||void 0===s?void 0:s.legalIdentity,defaultValue:null===s||void 0===s?void 0:s.legalIdentity,onChange:(e,t)=>{b("legalIdentity")(e,t)},isUsedInModal:!0})}),r===mx.a.CL.value&&Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:A.items,children:Object(p.jsx)(mr,{showError:!0,onChange:g("turn"),maxLength:"130",value:s.turn,children:Ti.a.t("newClientModal.turn")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:A.items,children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:g("fantasyName"),maxLength:"130",value:s.fantasyName,children:Ti.a.t("newClientModal.fantasyName")})})]})})};const Ox=Object(u.a)((e=>({container:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"},items:{padding:"0px 10px","@media (max-width: 960px)":{marginTop:"0px !important"}}})));var Sx=e=>{var t;let{client:a={},countries:i=[],provinces:o=[],cities:n=[],loadingCountries:r=!1,loadingProvinces:s=!1,loadingCities:l=!1,handleFieldValue:c=(()=>{}),handleSelectedOption:d=(()=>{}),emptyFieldErrors:u={}}=e;const m=Ox();return Object(p.jsx)("div",{children:Object(p.jsxs)(v.a,{container:!0,className:m.container,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:m.items,children:Object(p.jsx)(Pr,{label:Ti.a.t("newClientModal.country"),t
1ype:u.idCountry?"searchSelectError":"searchSelectPrimary",required:!0,data:i,value:null===a||void 0===a?void 0:a.idCountry,loading:r,placeholder:null!==a&&void 0!==a&&a.idCountry?"":Ti.a.t("newClientModal.selectCountry"),onChange:(e,t)=>{d("idCountry")(e,t)},isUsedInModal:!0,showError:u.idCountry,errorMsg:u.idCountry?Ti.a.t("requiredField"):""})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:m.items,children:Object(p.jsx)(Pr,{label:Ti.a.t("newClientModal.province"),type:u.idProvince?"searchSelectError":"searchSelectPrimary",required:!0,placeholder:null!==a&&void 0!==a&&null!==(t=a.idProvince)&&void 0!==t&&t.name?"":Ti.a.t("newClientModal.selectProvince"),data:o,value:null===a||void 0===a?void 0:a.idProvince,loading:s,defaultValue:null===a||void 0===a?void 0:a.idProvince,onChange:(e,t)=>{d("idProvince")(e,t)},disabled:!(null!==a&&void 0!==a&&a.idCountry),isUsedInModal:!0,showError:u.idProvince,errorMsg:u.idProvince?Ti.a.t("requiredField"):""})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:m.items,children:Object(p.jsx)(Pr,{label:Ti.a.t("newClientModal.city"),type:"searchSelectPrimary",placeholder:null!==a&&void 0!==a&&a.idCity?"":Ti.a.t("newClientModal.selectCity"),data:n,value:null===a||void 0===a?void 0:a.idCity,loading:l,onChange:(e,t)=>
1{d("idCity")(e,t)},disabled:!(null!==a&&void 0!==a&&a.idProvince),isUsedInModal:!0})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:m.items,style:{marginTop:"20px"},children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:c("address"),maxLength:"100",value:a.address,children:Ti.a.t("location")})}),Object(p.jsx)(v.a,{item:!0,xs:6,md:2,className:m.items,style:{marginTop:"20px"},children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:c("floor"),maxLength:"10",value:a.floor,children:Ti.a.t("newClientModal.floor")})}),Object(p.jsx)(v.a,{item:!0,xs:6,md:2,className:m.items,style:{marginTop:"20px"},children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:c("postalCode"),maxLength:"10",value:a.postalCode,children:Ti.a.t("newClientModal.postalCode")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:m.items,style:{marginTop:"20px"},children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:e=>{const t=e.target.value.replace(/\D/g,"");c("phone")({target:{value:t}})},maxLength:"50",value:a.phone,inputMode:"numeric",pattern:"[0-9]*",children:Ti.a.t("phone")})})]})})};const Ex=Object(u.a)((e=>({container:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"},items:{padding:"0px 10px"}})));var Ix=e=>{let{client:t={},handleFieldValue:a=(()=>{})}=e;const i=Ex();return Object(p.jsx)("div",{children:Object(p.jsxs)(v.a,{container:!0,className:i.container,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:i.items,children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:a("code"),maxLength:"10",value:t.code,children:Ti.a.t("code")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:8,className:i.items,children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:a("email"),maxLength:"130",value:t.email,children:Ti.a.t("email")})})]})})};const wx={A:[{name:"DNI",label:"DNI",value:"DNI"},{name:"CUIT/CUIL",label:"CUIT/CUIL",value:"CUIT"},{name:"CUIT",label:"CUIT",value:"CUIT"}],C:[{name:"Registro \xfanico tributario",label:"Registro \xfanico tributario",value:"RUT"},{name:"Pasaporte",label:"Pasaporte",value:"PAS"},{name:"C\xe9dula de identidad",label:"C\xe9dula de identidad",value:"CI"},{name:"Nro Id Externo",label:"Nro Id Externo",value:"EXT"}],U:[{name:"Registro \xfanico tributario",label:"Registro \xfanico tributario",value:"RUT"},{name:"Pasaporte",label:"Pasaporte",value:"PAS"},{name:"C\xe9dula de identidad",label:"C\xe9dula de identidad",value:"CI"},{name:"Documento Nacional de identidad",label:"Documento Nacional de identidad",value:"DNI"},{name:"N\xfamero de identificaci\xf3n extranjera",label:"N\xfamero de identificaci\xf3n extranjera",value:"NIFE"}],P:[{name:"Registro \xdanico del Contribuyente",label:"Registro \xdanico del Contribuyente",value:"RUC"},{name:"Pasaporte",label:"Pasaporte",value:"PAS"},{name:"C\xe9dula de identidad",label:"C\xe9dula de identidad",value:"CI"},{name:"C\xe9dula Extranjera",label:"C\xe9dula Extranjera",value:"CE"}]},Tx={A:[{name:"Responsable Inscripto",label:"Responsable Inscripto",value:"RI"},{name:"Consumidor Final",label:"Consumidor Final",value:"CF"},{name:"Monotributista",label:"Monotributista",value:"MO"},{name:"Exento",label:"Exento",value:"EX"},{name:"IVA no alcanzado",label:"IVA no alcanzado",value:"NA"}],C:[{name:"Empresa",label:"Empresa",value:"EMPCL"},{name:"Consumidor Final",label:"Consumidor Final",value:"CF"},{name:"Exterior",label:"Exterior",value:"EXT"}],U:[{name:"Empresa",label:"Empresa",value:"EMPUY"},{name:"Peque\xf1a empresa",label:"Peque\xf1a empresa",value:"PEQUY"},{name:"Consumidor Final",label:"Consumidor Final",value:"CF"},{name:"Exterior",label:"Exterior",value:"EXT"}],P:[{name:"Empresa",label:"Empresa",value:"EMPUY"},{name:"Consumidor Final",label:"Consumidor Final",value:"CF"},{name:"Exterior",label:"Exterior",value:"EXT"}]},Px=[{name:Ti.a.t("account.physical"),label:Ti.a.t("account.physical"),value:"F"},{name:"Jur\xeddica",label:"Jur\xeddica",value:"J"}],Rx="SET_FIELD_VALUE",Nx="SET_SELECTED_OPTION",Lx="REMOVE_SELECTED_OPTION",kx="REMOVE_ALL_VALUES",Bx={socialReason:"",taxCategory:null,legalIdentity:{name:Px[0].name,label:Px[0].label,value:Px[0].value}
1,fantasyName:"",documentType:null,documentNumber:"",phone:"",idCountry:null,idProvince:null,idCity:null,address:"",floor:"",postalCode:"",type:"C",code:"",email:"",idAdditionalUser:0,turn:""},Dx=(e,t)=>{switch(t.type){case Rx:return{...e,[t.payload.field]:t.payload.value};case Nx:return{...e,[t.payload.field]:t.payload.selectedOption};case Lx:return"idCountry"===t.payload.field?{...e,idCountry:null,idProvince:null,idCity:null}:"idProvince"===t.payload.field?{...e,idProvince:null,idCity:null}:{...e,[t.payload.field]:null};case kx:return Bx;default:return e}};var Fx=()=>{const[e,t]=Object(i.useReducer)(Dx,Bx);return{client:e,dispatch:t,handleFieldValue:e=>a=>{const i=a.target.value;t({type:Rx,payload:{field:e,value:i}})},handleSelectedOption:e=>(a,i)=>{i?(t({type:Nx,payload:{field:e,selectedOption:i}}),"idCountry"===e&&(t({type:Nx,payload:{field:"idProvince",selectedOption:null}}),t({type:Nx,payload:{field:"idCity",selectedOption:null}})),"idProvince"===e&&t({type:Nx,payload:{field:"idCity",selectedOption:null}})):t("legalIdentity"===e?{type:Nx,payload:{field:"legalIdentity",selectedOption:{name:Px[0].name,label:Px[0].label,value:Px[0].value}}}:{type:Lx,payload:{field:e}})},removeAllValues:()=>{t({type:kx})}}};const Mx="GET_COUNTRIES_SUCCESS",Vx="GET_COUNTRIES_LOADING",Wx="GET_COUNTRIES_ERROR",Hx="GET_PROVINCES_SUCCESS",Ux="GET_PROVINCES_LOADING",_x="GET_PROVINCES_ERROR",zx="GET_CITIES_SUCCESS",qx="GET_CITIES_LOADING",Gx="GET_CITIES_ERROR",Yx={countries:null,provinces:null,cities:null,loadingCountries:!1,loadingProvinces:!1,loadingCities:!1,errorCountries:null,errorProvinces:null,errorCities:null},Kx=(e,t)=>{switch(t.type){case Vx:return{...e,loadingCountries:!0,errorCountries:null};case Mx:return{...e,loadingCountries:!1,countries:t.payload};case Wx:return{...e,loadingCountries:!1,errorCountries:t.payload};case Ux:return{...e,loadingCountries:!1,loadingProvinces:!0,errorProvinces:null};case Hx:return{...e,loadingProvinces:!1,provinces:t.payload};case _x:return{...e,loadingProvinces:!1,errorProvinces:t.payload};case qx:return{...e,loadingProvinces:!1,loadingCities:!0,errorCities:null};case zx:return{...e,loadingCities:!1,cities:t.payload};case Gx:return{...e,loadingCities:!1,errorCities:t.payload};default:return e}};var Xx=()=>{const[e,t]=Object(i.useReducer)(Kx,Yx);return{...e,handleGetCountries:async()=>{t({type:Vx});try{const e=(await Ya.locations.getCountries({})).filter((e=>e.name&&""!==e.name.trim()));t({type:Mx,payload:e})}catch(e){console.error("Error en la petici\xf3n:",e),t({type:Wx,payload:e})}},handleGetProvinces:async e=>{t({type:Ux});try{const a=(await Ya.locations.getProvincesById(e)).filter((e=>e.name&&""!==e.name.trim()));t({type:Hx,payload:a})}catch(a){console.error("Error en la petici\xf3n:",a),t({type:_x,payload:a})}},handleGetCities:async e=>{t({type:qx});try{const a=(await Ya.locations.getCitiesById(e)).filter((e=>e.name&&""!==e.name.trim()));t({type:zx,payload:a})}catch(a){console.error("Error en la petici\xf3n:",a),t({type:Gx,payload:a})}}}};const Zx="SET_CREATE_CLIENT_LOADING",Qx="SET_CREATE_CLIENT_SUCCESS",Jx="SET_CREATE_CLIENT_ERROR",$x={loadingCreateClient:!1,errorCreateClient:null,successCreateClient:!1,clientId:null};var ef=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{userCountry:t}=e,a=(e,t)=>{switch(t.type){case Zx:return{...e,loadingCreateClient:!0,errorCreateClient:null,successCreateClient:!1};case Qx:return{...e,loadingCreateClient:!1,errorCreateClient:null,successCreateClient:!0,clientId:t.payload};case Jx:return{...e,loadingCreateClient:!1,errorCreateClient:t.payload,successCreateClient:!1};default:return e}},[o,n]=Object(i.useReducer)(a,$x),r=e=>{let{razonSocial:a,condicionIva:i,personeria:o,nombreFantasia:n,tipoDocumento:r,nroDocumento:s,telefono:l,idPais:c,idProvincia:d,idCiudad:u,domicilio:p,pisoDepto:m,codigoPostal:g,tipo:b,codigo:h,email:x}=e;return{socialReason:a,documentNumber:"cl"===(t||"").toLowerCase()?null!=s&&""!==s?String(s).trim():null:s?Number(s):null,ivaCondition:i,personality:o,email:x||null,type:b||"C",provinceId:d?Number(d):null,countryId:c?Number(c):null,cityId:u?Number(u):null,address:p||null,floor:m||null,postalCode:g||null,phone:l||null,documentType:r||null,fantasyName:n||null,code:h||null,observations:null,priceListId:null,tags:null}},s=async e=>{n({type:Zx});try{var t;const a=r(e),i=await Ya.people.createPerson(a),o=null!==(t=null===i||void 0===i?void 0:i.id)&&void 0!==t?t:i;return n({type:Qx,payload:o}),i}catch(d){var a,i,o,s,l,c;const e=null===d||void 0===d||null===(a=d.response)||void 0===a?void 0:a.data,t=null===e||void 0===e?void 0:e.error,r="string"===typeof t?t:null!==(i=null!==(o=null===t||void 0===t||null===(s=t[0])||void 0===s?void 0:s.code)&&void 0!==o?o:null===e||void 0===e||null===(l=e.errors)||void 0===l||null===(c=l[0])||void 0===c?void 0:c.code)&&void 0!==i?i:null===d||void 0===d?void 0:d.code,u=Array.isArray(t)&&t.every((e=>null!=(null===e||void 0===e?void 0:e.code)))?{error:t}:"string"===typeof r?{error:[{code:r}]}:{error:[{code:"DEFAULT_ERROR"}]};throw n({type:Jx,payload:u}),d}};return{...o,handleCreateNewClientPost:s}};const tf=e=>{let t=0,a=2;for(let o=e.length-1;o>=0;o--)t+=parseInt(e.charAt(o),10)*a,a=7===a?2:a+1;const i=11-t%11;return 11===i?"0":10===i?"K":String(i)},af=(e,t)=>
1{if(!t||"undefined"===typeof t||""===t)return!0;switch((e=>{if(!e)return"";const t=e.toString().trim().toUpperCase();return["AR","ARG","ARGENTINA"].includes(t)?"AR":["CL","CHL","CHILE"].includes(t)?"CL":["UY","URY","URUGUAY"].includes(t)?"UY":["PY","PRY","PARAGUAY"].includes(t)?"PY":t})(e)){case"CL":return(e=>{if(null==e)return!0;let t=e.toString().replace(/\./g,"").replace(/-/g,"").toUpperCase();if(0===t.length)return!0;if(t.length<2)return!1;const a=t.slice(0,-1),i=t.slice(-1);return!!/^\d+$/.test(a)&&tf(a).toString().toUpperCase()===i.toString().toUpperCase()})(t);case"UY":return(e=>{if(null==e)return!0;let t=(e=>(e||"").toString().replace(/\D/g,""))(e);if(0===t.length)return!0;if(t.length>12)return!1;t=t.padStart(12,"0");const a=t.slice(0,11).split("").map(Number),i=parseInt(t.charAt(11),10),o=[4,3,2,9,8,7,6,5,4,3,2];let n=0;for(let s=0;s<11;s++)n+=a[s]*o[s];let r=11-n%11;return 11===r&&(r=0),10!==r&&i===r})(t);case"PY":return(e=>{if(null==e)return!0;const t=(e||"").toString().replace(/\D/g,"");return 0===t.length||!(t.length<8||t.length>9)&&/^\d+$/.test(t)})(t);default:return(e=>{if(!e)return!0;const t=e.toString().replace(/[-_]/g,"");if(0===t.length)return!0;if(11!==t.length)return!1;const a=[5,4,3,2,7,6,5,4,3,2];let i=0;for(let n=0;n<a.length;n++)i+=parseInt(t.charAt(n),10)*a[n];const o=i%11;return(0===o?0:1===o?9:11-o)===parseInt(t.charAt(10),10)})(t)}},of="GET_AFIP_DATA_SUCCESS",nf="GET_AFIP_DATA_LOADING",rf="GET_AFIP_DATA_ERROR",sf="GET_SII_DATA_SUCCESS",lf="GET_SII_DATA_LOADING",cf="GET_SII_DATA_ERROR",df="GET_DGI_DATA_SUCCESS",uf="GET_DGI_DATA_LOADING",pf="GET_DGI_DATA_ERROR",mf={afipData:{},loadingAfipData:!1,errorAfipData:null,siiData:{},loadingSiiData:!1,errorSiiData:null,dgiData:{},loadingDgiData:!1,errorDgiData:null};var gf=()=>{const[e,t]=Object(i.useReducer)(((e,t)=>{switch(t.type){case nf:return{...e,loadingAfipData:!0,errorAfipData:null};case of:return{...e,loadingAfipData:!1,afipData:t.payload};case rf:return{...e,loadingAfipData:!1,errorAfipData:t.payload};case lf:return{...e,loadingSiiData:!0,errorSiiData:null};case sf:return{...e,loadingSiiData:!1,siiData:t.payload};case cf:return{...e,loadingSiiData:!1,errorSiiData:t.payload};case uf:return{...e,loadingDgiData:!0,errorDgiData:null};case df:return{...e,loadingDgiData:!1,dgiData:t.payload};case pf:return{...e,loadingDgiData:!1,errorDgiData:t.payload};default:return e}}),mf);return{...e,handleGetAfipData:async e=>{let{nroDocumento:a}=e;t({type:nf});try{const e=await Ya.clients.getAfipData({nroDocumento:a});return t({type:of,payload:e}),e}catch(i){const e=i.message||"Ha ocurrido un error";throw t({type:rf,payload:e}),new Error(e)}},handleGetRegioData:async e=>{let{nroDocumento:a,country:i}=e;const o="cl"===i,n="uy"===i,r="py"===i;o&&t({type:lf}),(n||r)&&t({type:uf});try{const e=await Ya.clients.getRegioData({nroDocumento:a,country:i});return o&&t({type:sf,payload:e}),(n||r)&&t({type:df,payload:e}),e}catch(s){const e=(null===s||void 0===s?void 0:s.message)||"Ha ocurrido un error";throw o&&t({type:cf,payload:e}),(n||r)&&t({type:pf,payload:e}),new Error(e)}}}};var bf=e=>{let{client:t={},userCountry:a=null,docTypeOptions:o=[],taxCategoryOptions:n=[],legalIdentityOptions:r=[],provinces:s=[],cities:l=[],dispatch:c=(()=>{}),setErrorMessage:d=(()=>{})}=e;const{userData:u}=Object(i.useContext)(Qa),p=(null===u||void 0===u?void 0:u.country)||null,m=a||p,{afipData:g,loadingAfipData:b,errorAfipData:h,handleGetAfipData:x,loadingSiiData:f,loadingDgiData:v,handleGetRegioData:j}=gf(),[A,C]=Object(i.useState)(null),[y,O]=Object(i.useState)(null),[S,E]=Object(i.useState)(null),I=b||f||v;Object(i.useEffect)((()=>{null!==A&&(w(),T())}),[A]),Object(i.useEffect)((()=>{if(y&&(null===l||void 0===l?void 0:l.length)>0&&A){const e=l.find((e=>{var t;return(e.id===(null===A||void 0===A?void 0:A.cityId)||e.name.toLowerCase()===(null===A||void 0===A||null===(t=A.cityName)||void 0===t?void 0:t.toLowerCase()))&&e.provinceId===y}));e&&c({type:"SET_SELECTED_OPTION",payload:{field:"idCity",selectedOption:{id:e.id,name:e.name,provinceId:y}}})}}),[y,l,A]);const w=()=>{if(!A)return;const e={socialReason:A.socialReason,fantasyName:A.socialReason,address:A.address,postalCode:A.postalCode,floor:A.floor};A.turn&&(e.turn=A.turn),A.email&&(e.email=A.email),Object.entries(e).forEach((e=>
1{let[t,a]=e;null!==a&&void 0!==a&&c({type:"SET_FIELD_VALUE",payload:{field:t,value:a}})}))},T=()=>{var e,t;if(!A)return;[{field:"documentType",options:o,value:null===A||void 0===A?void 0:A.documentType},{field:"taxCategory",options:n,value:null===A||void 0===A?void 0:A.taxCategory},{field:"legalIdentity",options:r,value:null===A||void 0===A?void 0:A.legalIdentity}].forEach((e=>{let{field:t,options:a,value:i}=e;const o=((e,t)=>e.find((e=>e.value===t))||null)(a,i);o&&c({type:"SET_SELECTED_OPTION",payload:{field:t,selectedOption:o}})}));const a=Object.values(mx.a).find((e=>e.value===m)),i=null!==(e=null===a||void 0===a?void 0:a.id)&&void 0!==e?e:mx.a.ARG.id,l=null!==(t=null===a||void 0===a?void 0:a.name)&&void 0!==t?t:mx.a.ARG.name;if(c({type:"SET_SELECTED_OPTION",payload:{field:"idCountry",selectedOption:{id:i,name:l}}}),null!==A&&void 0!==A&&A.stateId||null!==A&&void 0!==A&&A.provinceName){const e=s.find((e=>{var t;return e.id===(null===A||void 0===A?void 0:A.stateId)||e.name.toLowerCase()===(null===A||void 0===A||null===(t=A.provinceName)||void 0===t?void 0:t.toLowerCase())}));e&&(c({type:"SET_SELECTED_OPTION",payload:{field:"idProvince",selectedOption:{id:e.id,name:e.name,countryId:e.countryId||10}}}),O(e.id))}};return{afipData:g,afipMatchedData:A,loadingAfipData:I,errorAfipData:h,afipButtonErrors:S,handleOrganismSearchClick:async e=>{var a;if(E(null),d({show:!1,text:null}),!e){const e=m===mx.a.ARG.value,t=[mx.a.CL.value,mx.a.UY.value,mx.a.PY.value].includes(m);return E(e?[{code:"CUIT_INVALID"}]:t?[{code:"RUT_INVALID",msg:"Debe ingresar un RUT v\xe1lido"}]:[{code:"DOC_INVALID",msg:"Documento inv\xe1lido"}]),d({show:!0,text:"Debe ingresar un documento v\xe1lido"}),void C(null)}if(m===mx.a.ARG.value&&"CUIT"===(null===t||void 0===t||null===(a=t.documentType)||void 0===a?void 0:a.value)){if(!af(m,e))return d({show:!0,text:"Debe ingresar un CUIT v\xe1lido"}),E([{code:"CUIT_INVALID"}]),void C(null)}try{if(m===mx.a.ARG.value){const t=(e=>{if(null===e||void 0===e||!e.d)return null;const t=e.d;return t.RazonSocial?{provinceName:t.ProvinciaNombre,cityName:t.CiudadNombre,address:t.Domicilio,postalCode:t.CodigoPostal,socialReason:t.RazonSocial,legalIdentity:t.Personeria,cityId:t.CiudadId,stateId:t.ProvinciaId,floor:t.PisoDto,documentType:t.TipoDoc,taxCategory:t.CategoriaImpositiva,monotributeCategory:t.CategoriaMonotributo,documentNumber:t.NroDoc,activities:t.Actividades}:null})(await x({nroDocumento:e}));return t?(d({show:!1,text:null}),E(null),void C(t)):(d({show:!1,text:null}),E(null),void C(null))}if([mx.a.CL.value,mx.a.UY.value,mx.a.PY.value].includes(m)){const t=await j({nroDocumento:e,country:m}),a=m===mx.a.CL.value?(e=>{const t=null===e||void 0===e?void 0:e.d;return t?{provinceName:t.Provincia,cityName:t.Ciudad,address:t.Domicilio,postalCode:null,socialReason:t.RazonSocial,floor:null,documentType:"RUT",taxCategory:t.CategoriaImpositiva,legalIdentity:"J",documentNumber:null,email:t.Email,turn:t.Giro,cityId:t.IDCiudad,stateId:t.IDProvincia}:null})(t):(e=>{const t=null===e||void 0===e?void 0:e.d;return t?{provinceName:t.Provincia,cityName:t.Ciudad,address:t.Domicilio,postalCode:null,socialReason:t.RazonSocial,floor:null,documentType:"RUT",taxCategory:t.CategoriaImpositiva,legalIdentity:"J",documentNumber:null,email:t.Email,cityId:t.IDCiudad,stateId:t.IDProvincia}:null})(t);return a?(d({show:!1,text:null}),E(null),void C(a)):(d({show:!1,text:null}),E(null),void C(null))}}catch(i){d({show:!0,text:"No se han encontrado los datos"}),E([{code:"CUIT_NOT_FOUND"}]),C(null)}}}};const hf=Object(u.a)((e=>({container:{maxHeight:"75vh",minHeight:"210px",width:"100%",padding:"10px","@media (max-width: 770px)":{maxHeight:"95%"}},modalStyle:{width:"90%",maxWidth:"890px",maxHeight:"95vh",minHeight:"210px","@media (max-width: 770px)":{maxWidth:"90% !important",maxHeight:"95%"}}})));var xf=e=>{var t,a;let{userData:o=null,openModal:n=!1,setIsClientReady:r=(()=>{}),handleClose:s=(()=>{})}=e;const[l,c]=Object(i.useState)({socialReason:!1,taxCategory:!1,documentType:!1,documentNumber:!1,legalIdentity:!1,idCountry:!1,idProvince:!1}),d=hf(),u=(null===o||void 0===o?void 0:o.country)||null,[m,g]=Object(i.useState)({show:!1,text:null}),[b,h]=Object(i.useState)(!1),[x,f]=Object(i.useState)(!1),[v,j]=Object(i.useState)(!1),[A,C]=Object(i.useState)(null),y="ar"===u?wx.A:"cl"===u?wx.C:"py"===u?wx.P:wx.U,O="ar"===u?Tx.A:"cl"===u?Tx.C:"py"===u?Tx.P:Tx.U,S=Px,{client:E,dispatch:I,handleFieldValue:w,handleSelectedOption:T,removeAllValues:P}=Fx(),{countries:R,provinces:N,cities:L,loadingCountries:k,loadingProvinces:B,loadingCities:D,handleGetCountries:F,handleGetProvinces:M,handleGetCities:V}
1=Xx(),{loadingCreateClient:W,errorCreateClient:H,clientId:U,handleCreateNewClientPost:_}=ef({userCountry:u}),{loadingAfipData:z,errorAfipData:q,afipButtonErrors:G,handleOrganismSearchClick:Y}=bf({client:E,userCountry:u,docTypeOptions:y,taxCategoryOptions:O,legalIdentityOptions:S,provinces:N,cities:L,dispatch:I,setErrorMessage:g});Object(i.useEffect)((()=>{n||P()}),[n]),Object(i.useEffect)((()=>{F()}),[]),Object(i.useEffect)((()=>{var e;null!==E&&void 0!==E&&E.idCountry&&M(null===E||void 0===E||null===(e=E.idCountry)||void 0===e?void 0:e.id)}),[null===E||void 0===E?void 0:E.idCountry]),Object(i.useEffect)((()=>{var e;null!==E&&void 0!==E&&E.idProvince&&V(null===E||void 0===E||null===(e=E.idProvince)||void 0===e?void 0:e.id)}),[null===E||void 0===E?void 0:E.idProvince]),Object(i.useEffect)((()=>{if(u&&null===(null===E||void 0===E?void 0:E.idCountry)&&null===(null===E||void 0===E?void 0:E.idProvince)&&null===(null===E||void 0===E?void 0:E.idCity)){const e={ar:{id:10,name:mx.a.ARG.name},cl:{id:33,name:mx.a.CL.name},uy:{id:165,name:mx.a.UY.name},py:{id:123,name:mx.a.PY.name}},t={ar:{id:2,name:mx.b.CABA,countryId:10}},a=e[u]||null,i=t[u]||null;a&&I({type:"SET_SELECTED_OPTION",payload:{field:"idCountry",selectedOption:a}}),i&&I({type:"SET_SELECTED_OPTION",payload:{field:"idProvince",selectedOption:i}})}}),[u,n]),Object(i.useEffect)((()=>{R&&N&&L&&E&&r(!0)}),[R,N,L,E]),Object(i.useEffect)((()=>{H&&f(!0)}),[H]),Object(i.useEffect)((()=>{G&&(Array.isArray(G)?G.length>0:null!==G.code)?j(!0):j(!1)}),[G]),Object(i.useEffect)((()=>{c((e=>{var t,a,i,o,n;const r=u===mx.a.UY.value?(null===E||void 0===E||null===(t=E.taxCategory)||void 0===t?void 0:t.value)===O[2].value:(null===E||void 0===E||null===(a=E.taxCategory)||void 0===a?void 0:a.value)===O[1].value,s={socialReason:!(null!==E&&void 0!==E&&E.socialReason),taxCategory:!(null!==E&&void 0!==E&&null!==(i=E.taxCategory)&&void 0!==i&&i.value),documentType:!r&&!(null!==E&&void 0!==E&&null!==(o=E.documentType)&&void 0!==o&&o.value),documentNumber:!r&&!(null!==E&&void 0!==E&&E.documentNumber),legalIdentity:!r&&!(null!==E&&void 0!==E&&null!==(n=E.legalIdentity)&&void 0!==n&&n.value),idCountry:!(null!==E&&void 0!==E&&E.idCountry),idProvince:!(null!==E&&void 0!==E&&E.idProvince)};return Object.keys(e).reduce(((t,a)=>(t[a]=!(!e[a]||!s[a]),t)),{})}))}),[E,u,O]),Object(i.useEffect)((()=>{var e,t;if(u===mx.a.ARG.value&&"MO"===(null===E||void 0===E||null===(e=E.taxCategory)||void 0===e?void 0:e.value)&&"CUIT"!==(null===E||void 0===E||null===(t=E.documentType)||void 0===t?void 0:t.value)){const e=y.find((e=>"CUIT"===e.value));e&&I({type:"SET_SELECTED_OPTION",payload:{field:"documentType",selectedOption:e}})}}),[null===E||void 0===E||null===(t=E.taxCategory)||void 0===t?void 0:t.value,u,y]),Object(i.useEffect)((()=>{var e;if(["CUIT","RUT","RUC"].includes(null===E||void 0===E||null===(e=E.documentType)||void 0===e?void 0:e.value)&&null!==E&&void 0!==E&&E.documentNumber){const e=af(u,E.documentNumber);h(!e)}else h(!1)}),[null===E||void 0===E||null===(a=E.documentType)||void 0===a?void 0:a.value,null===E||void 0===E?void 0:E.documentNumber,u]);const K=Object(i.useMemo)((()=>{var e,t,a,i,o,n,r,s,l;return{razonSocial:E.socialReason,condicionIva:(null===E||void 0===E||null===(e=E.taxCategory)||void 0===e?void 0:e.value)||null,personeria:(null===E||void 0===E||null===(t=E.legalIdentity)||void 0===t?void 0:t.value)||null,nombreFantasia:E.fantasyName,tipoDocumento:(null===E||void 0===E||null===(a=E.documentType)||void 0===a?void 0:a.value)||null,nroDocumento:E.documentNumber,telefono:E.phone,idPais:null!==E&&void 0!==E&&null!==(i=E.idCountry)&&void 0!==i&&i.id?String(null===E||void 0===E||null===(o=E.idCountry)||void 0===o?void 0:o.id):null,idProvincia:null!==E&&void 0!==E&&null!==(n=E.idProvince)&&void 0!==n&&n.id?String(null===E||void 0===E||null===(r=E.idProvince)||void 0===r?void 0:r.id):null,idCiudad:null!==E&&void 0!==E&&null!==(s=E.idCity)&&void 0!==s&&s.id?String(null===E||void 0===E||null===(l=E.idCity)||void 0===l?void 0:l.id):0,domicilio:E.address,pisoDepto:E.floor,codigoPostal:E.postalCode,tipo:E.type,codigo:E.code,email:E.email,idUsuarioAdicional:E.idAdditionalUser,giro:E.turn}}),[E]),X=async e=>{f(!1);try{return await _(e)}catch(t){return f(!0),null}},Z=e=>{const t=u===mx.a.UY.value?e.condicionIva===O[2].value:e.condicionIva===O[1].value,a={socialReason:!e.razonSocial,taxCategory:!e.condicionIva,documentType:!t&&!e.tipoDocumento,documentNumber:!t&&!e.nroDocumento,legalIdentity:!t&&!e.personeria,idCountry:!e.idPais,idProvince:!e.idProvincia};c(a);const i=Object.values(a).some(Boolean);(a.idCountry||a.idProvince)&&!a.socialReason&&!a.taxCategory&&!a.documentType&&!a.documentNumber&&!a.legalIdentity&&C(Ti.a.t("location"));let o=!1;if(!t&&"CUIT"===e.tipoDocumento&&e.nroDocumento){af(u,e.nroDocumento)||(o=!0,h(!0))}return i||o};Object(i.useEffect)((()=>
1{if(A){const e=setTimeout((()=>C(null)),0);return()=>clearTimeout(e)}}),[A]);const Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;s(e),g({show:!1,text:null}),f(!1),j(!1),C(null),h(!1),P(),c({socialReason:!1,taxCategory:!1,documentType:!1,documentNumber:!1,legalIdentity:!1,idCountry:!1,idProvince:!1})},J={isOpen:n,title:Ti.a.t("newClientModal.newClient"),modalStyle:d.modalStyle,innerContentStyle:d.container,primaryButtonText:Ti.a.t("create"),secondaryButtonText:Ti.a.t("cancel"),handleClose:Q,primaryButtonLoading:W,primaryButtonClick:()=>(async()=>{const e={...K};if(u!==mx.a.CL.value&&delete e.giro,!Z(e)){(u===mx.a.UY.value?e.condicionIva===O[2].value:e.condicionIva===O[1].value)&&I({type:"SET_SELECTED_OPTION",payload:{field:"legalIdentity",selectedOption:{name:S[0].name,label:S[0].label,value:S[0].value}}}),g({show:!1,text:null});const t=await X({...e});t&&Q(t)}})(),secondaryButtonClick:Q,secondaryButtonDisabled:W},$={userCountry:u,client:E,docTypeOptions:y,taxCategoryOptions:O,legalIdentityOptions:S,emptyFieldErrors:l,dispatch:I,handleFieldValue:w,handleSelectedOption:T,handleOrganismSearchClick:Y,documentRequirementsError:b,handleRequirementsCheck:(e,t)=>{var a;const i=["CUIT","RUT","RUC"].includes(null===E||void 0===E||null===(a=E.documentType)||void 0===a?void 0:a.value);if("documentNumber"===e&&i){const e=af(u,t);h(!e)}},loadingAfipData:z},ee={client:E,countries:R,provinces:N,cities:L,loadingCountries:k,loadingProvinces:B,loadingCities:D,handleFieldValue:w,handleSelectedOption:T,emptyFieldErrors:l},te={client:E,handleFieldValue:w},ae=[{title:Ti.a.t("newClientModal.taxDataTitle"),children:Object(p.jsx)(yx,{...$}),value:1},{title:Ti.a.t("location"),children:Object(p.jsx)(Sx,{...ee}),value:2},{title:Ti.a.t("newClientModal.otherData"),children:Object(p.jsx)(Ix,{...te}),value:3}],ie={color:ui.a.textSecondary,fontSize:14,fontFamily:"Work Sans, sans-serif"};return Object(p.jsx)("div",{children:Object(p.jsxs)(Sm,{...J,children:[x&&Object(p.jsx)("div",{style:{width:"100%",marginBottom:"10px"},children:Object(p.jsx)(_g,{errors:H,onCloseAlert:()=>f(!1)})}),v&&Object(p.jsx)("div",{style:{width:"100%",marginBottom:"10px"},children:Object(p.jsx)(_g,{errors:G,onCloseAlert:()=>j(!1)})}),Object(p.jsx)(_p,{accordionList:ae,customTitleStyle:ie,collapseBodyStyle:{padding:"20px 5px",maxHeight:"270px",overflowY:"auto"},changeAccordion:A})]})})};const ff=xn()().add(1,"month").toDate(),vf=xn()().toDate(),jf=rh(ff),Af=rh(vf);var Cf=()=>{const{userData:e,baseUrl:t}=Object(i.useContext)(Qa),a=e,{id:o}=Object(l.i)(),n=Object(l.h)(),{usersAdditional:r,loadingUsersAdditional:s,fetchUsersAdditionalConfig:d}=Ig(),{responsePostBudget:u,loadingPostBudget:m,errorPostBudget:g,postBudget:b,putBudget:h}=pb(),{responsePostBudgetsNumber:x,loadingPostBudgetsNumber:f,errorPostBudgetsNumber:v,postBudgetsNumber:j}=Mb(),{ivaRatesLoading:A,ivaRatesError:C,ivaRates:y,fetchIvaRates:O}=ku(),{salesConditionsConfig:S,salesConditionsLoading:E,fetchUserGetSalesConditionsConfig:I}=fb(),{usersConfig:w,usersLoading:T,userObservations:P,fetchUserObservations:R,fetchUsersConfigReducer:N}=Eb(),{changeTypeConfig:L,fetchChangeTypeReducer:k}=Nb(),{dataCurrency:B}=Object(i.useContext)(ig),{fetchPdf:D,generateRemittanceFromBudget:F}=sx({userData:e}),[M,V]=Object(i.useState)(""),[W,H]=Object(i.useState)(!1),[U,_]=Object(i.useState)(0),[z,q]=Object(i.useState)(0),[G,Y]=Object(i.useState)(""),[K,X]=Object(i.useState)(""),[Z,Q]=Object(i.useState)(0),[J,$]=Object(i.useState)(""),[ee,te]=Object(i.useState)(""),[ae,ie]=Object(i.useState)(""),[oe,ne]=Object(i.useState)(!1),[re,se]=Object(i.useState)(null),[le,ce]=Object(i.useState)(!1),[de,ue]=Object(i.useState)(0),[pe,me]=Object(i.useState)(0),[ge,be]=Object(i.useState)(null),[he,xe]=Object(i.useState)(null),[fe,ve]=Object(i.useState)(null),[je,Ae]=Object(i.useState)(""),[Ce,ye]=Object(i.useState)(!1),[Oe,Se]=Object(i.useState)(null),[Ee,Ie]=Object(i.useState)(null),[we,Te]=Object(i.useState)(null),[Pe,Re]=Object(i.useState)(null),[Ne,Le]=Object(i.useState)(null),[ke,Be]=Object(i.useState)(null),[De,Fe]=Object(i.useState)(!0),[Me,Ve]=Object(i.useState)(!0),[We,He]=Object(i.useState)(null),[Ue,_e]=Object(i.useState)("1,00"),[ze,qe]=Object(i.useState)(ff),[Ge,Ye]=Object(i.useState)(vf),[Ke,Xe]=Object(i.useState)({id:1,name:"Borrador",title:"B"}),[Ze,Qe]=Object(i.useState)("B"),[Je,$e]=Object(i.useState)(null),[et,tt]=Object(i.useState)(null),[at,it]=Object(i.useState)(null),[ot,nt]=Object(i.useState)(null),[rt,st]=Object(i.useState)(""),[lt,ct]=Object(i.useState)(""),[dt,ut]=Object(i.useState)([]),[pt,mt]=Object(i.useState)(!1),[gt,bt]=Object(i.useState)(0),[ht,xt]=Object(i.useState)({state:!1,text:""}),[ft,vt]=Object(i.useState)({state:!1,text:""}),[jt,At]=Object(i.useState)({state:!1,text:""}),[Ct,yt]=Object(i.useState)({state:!1,text:""}),[Ot,St]=Object(i.useState)(null),[Et,It]=Object(i.useState)({personId:"",name:null,createdAt:xn()().format("DD/MM/YYYY"),dateValidity:xn()().add(1,"months").format("DD/MM/YYYY"),status:"B",type:"",observations:"",saleConditionId:lt,currencyId:z,exchangeRate:"0",sellerId:null,items:[]}),[wt,Tt]=Object(i.useState)(!1),[Pt,Rt]=Object(i.useState)([]),[Nt,Lt]=Object(i.useState)({}),[kt,Bt]=Object(i.useState)(!1),[Dt,Ft]=Object(i.useState)(Boolean(o)),[Mt,Vt]=Object(i.useState)(!1),[Wt,Ht]=Object(i.useState)(null),[Ut,_t]=Object(i.useState)(""),[zt,qt]=Object(i.useState)(!1),[Gt,Yt]=Object(i.useState)(null),[Kt,Xt]=Object(i.useState)(null),[Zt,Qt]=Object(i.useState)({netoGravado:"0,00",noGravado:"0,00",iva:"0,00",total:"0,00",symbol:"",totalDefaultCurrency:0}),[Jt,$t]=Object(i.useState)(!1),[ea,ta]=Object(i.useState)(0),[aa,ia]=Object(i.useState)(null),[oa,na]=Object(i.useState)(null),[ra,sa]=Object(i.useState)(!1),[la,ca]=Object(i.useState)(!1),[da,ua]=Object(i.useState)(!1),[pa,ma]=Object(i.useState)(!1),[ga,ba
1]=Object(i.useState)(!1),[ha,xa]=Object(i.useState)(!1),[fa,va]=Object(i.useState)([]),ja=null===a||void 0===a?void 0:a.country,Aa=null!==W&&void 0!==W&&W.fixedDiscountPercentage?As(W.fixedDiscountPercentage,ms):null,Ca=Object(i.useMemo)((()=>s||E||T||A||f||null===L||null===x),[s,E,T,A,f,L,x]);Object(i.useEffect)((()=>{d(),I(),N(),k(),R(),j()}),[]),Object(i.useEffect)((()=>{if(null!==w&&void 0!==w){Q(w.stockRounding),ie(w.ivaCondition);const e=gs(w.amountRounding);se(e),ne(!0===w.withBudgetIva||"true"===w.withBudgetIva),ce(!0),ue(e);const t=null!==w.useFinalPriceWithIva&&void 0!==w.useFinalPriceWithIva&&""!==w.useFinalPriceWithIva,a=Number(w.useFinalPriceWithIva),i=t?1===a?1:0:Oa?1:0;$(i),te(i)}}),[w]);const ya=async e=>{Tt(!0);try{var t,a;const i=await Ya.budgets.getBudgetById({id:e});i&&ca(!0),St(e);const o=Cm.find((e=>e.title===i.status)),n=nh(i.items,je,y,ja,ae,oe,re),r=(e=>e.map((e=>{var t,a;return{bonus:e.bonus,concept:(null===(t=e.concept)||void 0===t?void 0:t.code)||e.concept,total:e.total,description:null===e||void 0===e?void 0:e.description,conceptId:e.conceptId,unitPrice:e.unitPrice,iva:e.iva,ivaRateId:e.ivaRateId,currencyId:e.currencyId,valueCodeName:null===(a=e.concept)||void 0===a?void 0:a.code}})))(i.items),s=(e=>{const t=new Date(e.dateValidity),a=new Date(e.date);return{personId:e.personId,name:e.name,createdAt:xn()(a).format("DD/MM/YYYY"),dateValidity:xn()(t).format("DD/MM/YYYY"),status:e.status,observations:e.observations,type:e.type,saleConditionId:e.saleConditionId,currencyId:e.currencyId,exchangeRate:parseFloat(String(e.exchangeRate).replace(/\./g,"").replace(",",".")),sellerId:e.sellerId,items:e.items}})(i),l=(e=>({netoGravado:vs(e.netoGravado,ms),noGravado:vs(e.noGravado,ms),iva:vs(e.iva,ms),total:vs(e.total,ms),symbol:e.currencyCode,totalDefaultCurrency:0}))(i),c=(e=>({socialReason:e.socialReason,provinceId:0,address:e.address,fixedDiscountPercentage:e.fixedDiscountPercentage,CityId:"0",phone:"",ivaCondition:"MO",identificacionType:e.identificacionType,identificacionNumber:e.identificacionNumber}))(i.person);X(i.number),V(i.personId),qe(i.dateValidity),Ye(i.createdAt),$e(i.observations),Qe(i.status),st(i.saleConditionId),nt(i.saleCondition),it(i.sellerId?{name:null===(t=i.seller)||void 0===t?void 0:t.email,email:null===(a=i.seller)||void 0===a?void 0:a.email}:null),tt(i.sellerId),Le(i.exchangeRate),_t(`${i.person.identificacionNumber} - ${i.person.socialReason}`),ta(i.exchangeRate),me(i.exchangeRate),H(c),Re(i.currencyCode),bt(i.currencyId),Fe(!i.receiptInSecondaryCurrency),Ve(!i.receiptInSecondaryCurrency),Xe(o),Lt(l),Rt(n),ut(r),Yt(i.userModifies),Xt(i.userRegister),It(s),ua(!0),Tt(!1)}catch(i){console.log({error:i}),Bt(!0),ba(!0)}Tt(!1)};Object(i.useEffect)((()=>{O()}),[]),Object(i.useEffect)((()=>{const e="true"===new URLSearchParams(n.search).get("duplicate");ma(e)}),[n.search]),Object(i.useEffect)((()=>{o&&!T&&y.length>0&&le&&ya(o)}),[o,T,y.length,le]),Object(i.useEffect)((()=>{g&&(Bt(g),$t(!1))}),[g]),Object(i.useEffect)((()=>{Boolean(null===P||void 0===P?void 0:P.budgetObservation)&&!o&&$e(null===P||void 0===P?void 0:P.budgetObservation.slice(0,500))}),[P]),Object(i.useEffect)((()=>{if(null!==L&&null!==re&&!o){const e=null===L||void 0===L?void 0:L.change_type,t=(e=>{if(null===e||void 0===e||""===e)return"";const t=parseFloat(String(e).replace(",",".")).toFixed(2).toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),t.join(",")})(e),a=As(e,re);Le(t),Be(a)}}),[L,o,re]),Object(i.useEffect)((()=>{null!==L&&la&&Be(vs(ea,re))}),[L,o,re]),Object(i.useEffect)((()=>{if(null!==L&&!0!==la){const e=ys(ke);ta(e),me(e)}}),[L,Ne,ke]),Object(i.useEffect)((()=>{if(null!==L){const e=ys(ke);ta(e)}}),[L,Ne,ke]),Object(i.useEffect)((()=>{if(S.length>0){const e=S.find((e=>"1"===e.default));e&&st(Number(e.saleConditionId))}}),[S]),Object(i.useEffect)((()=>{null!==x&&Y(x.number)}),[x]),Object(i.useEffect)((()=>{null!==x&&pa&&o&&Y(x.number),null!==x&&!pa&&o&&Y(K)}),[x,pa,T,da]),Object(i.useEffect)((()=>{void 0!==a&&(o||Xt(null===a||void 0===a?void 0:a.email))}),[a]),Object(i.useEffect)((()=>
1{if(y&&!A&&!C){const e=((e,t,a,i)=>e.map((e=>{var o,n,r;return{name:null===e.rateDetail&&("ar"===t||a===Ki.PEQUY.value&&3!==(null===e||void 0===e?void 0:e.ivaRateId))||i?`${null===e||void 0===e||null===(o=e.iva)||void 0===o?void 0:o.toString().replace(".",",")}`:`${null===e||void 0===e||null===(n=e.iva)||void 0===n?void 0:n.toString().replace(".",",")} - ${null===e||void 0===e||null===(r=e.rateDetail)||void 0===r?void 0:r.replace(".",",")}`,value:null===e||void 0===e?void 0:e.iva,id:null===e||void 0===e?void 0:e.ivaRateId,default:null===e||void 0===e?void 0:e.default}})))(y,ja,ae,oe);xe(e)}}),[y,ja]),Object(i.useEffect)((()=>{if(null!==B){const e=B.filter((e=>!0===e.enabled));e.length>1&&mt(!0)}}),[B]),Object(i.useEffect)((()=>{if(B&&B.length>0){const e=B.find((e=>!0===e.default));_(e),Fe(e.default),Ve(e.default),He(e.symbol),q(e.id),bt(e.id)}}),[B,o]),Object(i.useEffect)((()=>{null!==u&&console.log("responsePostBudget updated: ",u)}),[u]);const Oa=Xi.some((e=>e.value===(null===w||void 0===w?void 0:w.ivaCondition)));Object(i.useEffect)((()=>{null!==w&&void 0!==w&&_e(1..toFixed(Z).replace(".",","))}),[Z]),Object(i.useEffect)((()=>{if((null===he||void 0===he?void 0:he.length)>0&&null!==he)if(!1===oe){const e=null===he||void 0===he?void 0:he.find((e=>e.default));ve(e);const t=null===fe||void 0===fe?void 0:fe.value;Ae(t)}else if(oe&&"cl"===ja){const e=null===he||void 0===he?void 0:he.find((e=>0===e.value));ve(e);const t=null===fe||void 0===fe?void 0:fe.value;Ae(t)}}),[he,fe,je,oe,ja]),Object(i.useEffect)((()=>{null===Oe&&Ie(z),null!==Oe&&Ie(Oe)}),[Oe,z]),Object(i.useEffect)((()=>{null!==we&&(Re(null===we||void 0===we?void 0:we.symbol),be(null===we||void 0===we?void 0:we.symbol))}),[we]);const Sa=()=>bh(fa,B,ea),Ea=e=>{const t=Sa();It((a=>{const i={...a,personId:M,name:"",createdAt:Ge?xn()(Ge).format("DD/MM/YYYY"):Af,dateValidity:ze?xn()(ze).format("DD/MM/YYYY"):jf,status:Ze,observations:Je,type:3,saleConditionId:rt,currencyId:gt,exchangeRate:ea,sellerId:et?parseInt(et,10):null,items:t};return e(i),i}))},Ia=async e=>{try{if(o&&!pa)await h(o,e),$t(!0);else{const t=await b(e);(e=>{let{state:t,currency:a,success:i}=e;const o=ib[a]||"moneda iv\xe1lida",n=ob[t]||"estado inv\xe1lido";Object(c.b)("Presupuestos - Nvo Presupuesto - Aceptar",{estado:n,moneda:o,"\xe9xito":i})})({state:null===e||void 0===e?void 0:e.status,currency:null===e||void 0===e?void 0:e.currencyId,success:!0}),St(t.id),!1===t?($t(!1),Bt(!0)):$t(!0)}}catch(t){console.error("Error saving data:",t),$t(!1)}},wa={title:Ti.a.t(o&&!pa?"editBudgets":"createBudgets"),showGoToOld:!0,showGoToOldClUy:!0,goToOldText:Ti.a.t("goToOldConceptsCreation"),showTutorial:!1,showGoToOldLink:"/",handleGoToOldLinkClick:$g,countryGoToOldLinks:!o||pa?"presupuestose.aspx"+(pa?`?ID=${o}&Duplicar=1`:""):`presupuestose.aspx?ID=${o}`},Ta=e=>{It(e)},Pa=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;const a=document.getElementById(e);if(a){const e=a.getBoundingClientRect().top+window.pageYOffset-t;window.scrollTo({top:e,behavior:"smooth"})}},Ra=e=>{let{itemsToValidate:t=dt,validateBudgetTotal:a=!1}=e,i=!1,o=!1;const n=a&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return gh(e,t)<=0}(t,Pe);if(t.forEach((e=>{const a=""===ph(e).trim(),n=dh(null===e||void 0===e?void 0:e.unitPrice);1===(null===t||void 0===t?void 0:t.length)&&(0===e.total||""===e.total||isNaN(n)||0===n||Boolean(e.concept)&&a)?i=!0:(null===t||void 0===t?void 0:t.length)>1&&!Boolean(e.concept)&&a&&!e.conceptId&&(i=!1,o=!0)})),i||o||n){const e=i?Ti.a.t("errorStep4Budgets"):o?Ti.a.t("budgetItemError"):Ti.a.t("budgetTotalNegativeError");yt({state:!0,text:e}),M&&Pa("stepFour")}else yt({state:!1,text:""});return{itemsInValid:i,emptyRowItem:o,budgetTotalInvalid:n}},Na=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dt;xt({state:!1,text:""}),yt({state:!1,text:""});const{itemsInValid:t,emptyRowItem:a,budgetTotalInvalid:i}=Ra({itemsToValidate:e,validateBudgetTotal:!0});let o=!1;return t&&(yt({state:!0,text:Ti.a.t("errorStep4Budgets")}),M&&Pa("stepFour")),a&&(yt({state:!0,text:Ti.a.t("budgetItemError")}),M&&Pa("stepFour")),i&&(yt({state:!0,text:Ti.a.t("budgetTotalNegativeError")}),M&&Pa("stepFour")),M||(xt({state:!0,text:Ti.a.t("errorStep1Budgets")}),Pa("stepOne")),ze&&"Invalid date"!==ze&&Ge&&"Invalid date"!==Ge||(vt({state:!0}),Pa("stepTwo"),o=!0),rt||(vt({state:!0,text:Ti.a.t("requiredField")}),Pa("stepOne")),(!Boolean(ke)||Ne<=0)&&(Pa("stepThree"),At({state:!0,text:""})),!Ce&&M&&rt&&e.length>0&&!t&&!o&&Ne&&!a&&!i},La=async e=>{const t=Sa();Na(t)&&Ea((async t=>{try{let a,i=o;o&&!pa?a=await h(o,t):(a=await b(t),i=a.id),"Crear orden de venta"===e?window.location.href=`/modulos/ventas/ordenesVentase.aspx?IDPresupuesto=${i}`:"Facturar"===e&&(window.location.href=`/comprobantese.aspx?IDPresupuesto=${i}`)}catch(a){console.log({error:a})}}))},ka=()=>{const e=Sa();Na(e)&&Ea((e=>{Vt(!0);const t=(e=>{let{person:t,items:a,rows:i=[],currencySymbol:o,currencyId:n,exchangeRate:r,iva:s,invoiceData:l,dateValidity:c,seller:d,saleCondition:u,budgetNumber:p,date:m,observation:g}=e;
1return{header:{person:{businessName:t.socialReason,provinceId:t.provinceId,address:t.address,cityId:t.CityId,phone:t.phone,ivaCondition:t.ivaCondition,documentType:"00","documentN\xba":"00",seller:d,salesCondition:u},budget:{"N\xba":p,dischargeDate:xn()(m).format("DD/MM/YYYY"),validityDate:xn()(c).format("DD/MM/YYYY")}},budgets:sh(a,i),footer:{currencySymbol:o||"$",netAmount:bs(l.netoGravado),nonTaxed:bs(l.noGravado),ivaAmount:bs(l.iva),total:bs(l.total),observations:g,exchangeRate:bs(r),currencyId:n}}})({person:W,items:e.items,rows:fa,currencySymbol:Pe||We,currencyId:gt,exchangeRate:ke,iva:21,invoiceData:Zt,dateValidity:ze,date:Ge,seller:(null===at||void 0===at?void 0:at.email)||(null===at||void 0===at?void 0:at.name),saleCondition:ot.name,observation:Je,budgetNumber:G});Ht(t)}))},Ba={secondaryButtonText:Ti.a.t("back"),primaryButtonText:Ti.a.t("save"),renderTitleComponent:()=>Object(p.jsx)(bx,{...wa}),showButtons:!0,primaryDisabled:!!o&&!da,primaryLoading:m,primaryButtonClick:()=>{const e=Sa();Na(e)&&Ea((e=>{Ia(e)}))},secondaryButtonClick:()=>{window.history.go(-1)},renderTertiaryButton:"A"===(null===Et||void 0===Et?void 0:Et.status)?()=>Object(p.jsx)(Jm,{primary:!0,buttonText:Ti.a.t("otherActions"),containerStyle:{marginLeft:"10px"},options:[Ti.a.t("createSaleOrder"),Ti.a.t("createInvoice")],onOptionSelect:La}):()=>null,renderLeftButton:()=>Object(p.jsx)("div",{style:{flex:1,display:"flex",justifyContent:"flex-start"},children:Object(p.jsx)(si,{containerStyle:{width:"auto"},type:"secondary",iconType:"file",iconViewBox:"0 0 22 22",showIcon:!0,disabled:!!o&&!da,onClick:()=>ka(),children:Ti.a.t("pdfPreview")})})},Da={data:Et,onChange:Ta,urlBase:t,budgetNumber:G,personId:M,person:W,setPersonId:V,setPerson:H,setStepOneError:xt,error:ht,setAdditionalUserId:ia,newBudgetNumber:oa,loadingPostBudgetsNumber:f,errorPostBudgetsNumber:v,personValue:Ut,setPersonValue:_t,isBudgetNumberLoading:ha,onClickNewClient:e=>{null!==e&&void 0!==e&&e.preventDefault&&e.preventDefault(),qt(!0)},disableNewClientButton:Ca},Fa={data:Et,onChange:Ta,salesConditionsConfig:S,salesConditionsLoading:E,usersAdditional:r,loadingUsersAdditional:s,oneMonthLater:ff,dateValidity:ze,setDateValidity:qe,date:Ge,setDate:Ye,states:Ke,setStates:Xe,statesApi:Ze,setStatesApi:Qe,usersId:et,setUsersId:tt,paymentConditionsId:rt,setPaymentConditionsId:st,setPaymentConditions:nt,setUsers:it,stepTwoError:ft,users:at,paymentConditions:ot,isEdition:Boolean(o),additionalUserId:aa,setAdditionalUserId:ia,saleConditionId:lt,setSaleConditionId:ct,userData:e},Ma={data:Et,dataCurrency:B,changeTypeConfig:L,currencyDefault:U,userDecimal:re,onChange:Ta,setCurrencyIdValue:Se,changeType:Ne,setChangeType:Le,currencySelected:we,setCurrencySelected:Te,setHasCurrencyDefault:Fe,currencyId:gt,setCurrencyId:bt,changeTypeValue:ke,setChangeTypeValue:Be,isEdition:Boolean(o),stepThreeError:jt,onBlur:()=>sa(!0),editionData:la,setHasCurrencyDefaultDebounce:Ve,setEditionInitialRender:Ft},Va={data:Et,hasMultiCurrency:pt,userCountry:ja,stockRounding:Z,jwtContext:a,userDecimal:re,userDecimalDebounce:de,unitPriceIncludesIva:Oa,ivaCondition:ae,dataDefaultIva:fe,userOptions:he,ivaDefault:je,withBudgetIva:oe,ivaRatesLoading:A,fixedDiscount:Aa,validationDigits:Ce,setValidationDigits:ye,changeType:Ne,currencySymbol:Pe,hasCurrencyDefault:De,currencyDefaultSymbol:We,observation:Je,setObservation:$e,items:dt,setItems:ut,error:Ct,setStepFourError:yt,finalPriceWithIva:J,setFinalPriceWithIva:$,finalPriceWithIvaDebounce:ee,initialRows:Pt,setInitialRows:Rt,isEdition:Boolean(o),initialInvoiceData:Nt,editionInitialRender:Dt,setEditionInitialRender:Ft,invoiceData:Zt,setInvoiceData:Qt,currencyDefaultId:z,changeTypeNumber:ea,totalDefault:Ue,currencyId:gt,currencySelected:we,setCurrencySelected:Te,dataCurrency:B,changeTypeNumberDebounce:pe,setChangeTypeNumberDebounce:me,shouldCalculate:ra,resetShouldCalculate:()=>sa(!1),editionData:la,loadingEdition:wt,userDecimalState:le,currencySymbolDebounce:ge,hasCurrencyDefaultDebounce:Me,setHasCurrencyDefaultDebounce:Ve,dataReady:da,rows:fa,setRows:va,changeTypeValue:ke,setChangeTypeValue:Be,changeTypeConfig:L,checkStepFourItems:Ra,personId:M},Wa={handleClose:()=>(ga&&(window.open("/v3/budgets","_self"),ba(!1)),void Bt(!1)),showBtn:1,open:kt,title:Ti.a.t("errorTitle"),img:kc,children:Ti.a.t("errorcontent"),closeButtonText:Ti.a.t("
1close"),closeButtonType:"secondary",modalContainerStyle:{minHeight:100,paddingBottom:20}},Ha={openModal:Mt,pdfPreviewData:Wt,id:o,handleCloseModal:()=>Vt(!1)},Ua=Object(i.useMemo)((()=>((null===a||void 0===a?void 0:a.country)||"").toLowerCase()===mx.a.ARG.value?px:px.filter((e=>e.action!==ux))),[null===a||void 0===a?void 0:a.country]),_a={budgetNumber:G,budgetId:Ot,person:W,openModal:Jt,actionItems:Ua,fetchPdf:D,generateRemittanceFromBudget:F,setOpenActionsModal:$t,handleCloseModal:()=>{$t(!1),window.open("/v3/budgets","_self")}},za={userModifies:Gt,userRegister:Kt};return Object(p.jsxs)(xm,{...Ba,children:[!da&&o?Object(p.jsx)("div",{style:{minHeight:400,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsx)(Od.a,{})}):Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(_b,{...Da}),Object(p.jsx)(Yb,{...Fa}),pt&&Object(p.jsx)(Zb,{...Ma}),(0!==(null===B||void 0===B?void 0:B.length)||void 0!==(null===B||void 0===B?void 0:B.length))&&Object(p.jsx)(Hh,{...Va}),Object(p.jsx)(dx,{...za}),Object(p.jsx)(zh,{})]}),Object(p.jsx)(Kc,{...Wa}),Mt&&Object(p.jsx)(nx,{...Ha}),Object(p.jsx)($h,{..._a}),Object(p.jsx)(xf,{userData:e,openModal:zt,handleClose:e=>{if(e){var t,a,i;const o=null!==(t=e.personId)&&void 0!==t?t:e.id,n=null!==(a=e.identificacionNumber)&&void 0!==a?a:e.nroDocumento,r=null!==(i=e.socialReason)&&void 0!==i?i:e.razonSocial,s=n&&r?`${n} - ${r}`:n||r||"",l={...e,personId:null!==o&&void 0!==o?o:e.personId,identificacionNumber:null!==n&&void 0!==n?n:e.identificacionNumber,socialReason:null!==r&&void 0!==r?r:e.socialReason};V(o),H(l),_t(s),Ta({...Et,personId:o})}qt(!1)}})]})};const yf=Object(u.a)((e=>({grid:{padding:"10px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"26px",lineHeight:"26px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},subTitle:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"20px",marginTop:"40px","@media (max-width: 479px)":{fontSize:"12px",marginTop:"10px"}},icon:{color:ui.a.grey300,marginRight:"10px",alignItems:"center"},link:{display:"flex",flexDirection:"row",alignItems:"center",color:ui.a.primary400,fontSize:"14px",lineHeight:"16px",fontFamily:"Work Sans, sans-serif",fontWeight:400,"&:hover":{textDecoration:"none",color:ui.a.primary400},"@media (max-width: 755px)":{marginTop:15}},info:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",marginLeft:5},arrow:{alignSelf:"center",marginTop:5,marginLeft:5},gridLink:{justifyContent:"flex-end"},infoIcon:{marginLeft:5},IconArrow:{fontSize:"20px",display:"flex",alignItems:"center",padding:"5px 0 0 5px"},linksContainer:{display:"flex",gap:15,alignItems:"center",justifyContent:"flex-end"},vSeparator:{width:1,height:28,backgroundColor:ui.a.grey400}})));var Of=e=>{let{title:t="",style:a={},showPreviousVersionLink:o=!0,tutorialLinksByCountry:n=null}=e;const r=yf(),[s,l]=Object(i.useState)(""),c=Kn();Object(i.useEffect)((()=>{const e=c.data.country,t=n&&n[e]||{ar:"https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium",cl:"https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium",uy:"https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium",py:"https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium"}[e];t&&l(t)}),[c,n]);return Object(p.jsx)(v.a,{style:a,container:!0,className:r.grid,xs:12,md:12,xl:12,children:Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},justifyContent:"space-between",children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:r.title,children:t})}),Object(p.jsxs)(v.a,{className:r.linksContainer,children:[Object(p.jsxs)(so.a,{onClick:()=>{window.open(s,"_blank")},href:s,className:r.link,target:"_blank",children:[Object(p.jsx)(M,{name:"questionCircle"}),Object(p.jsx)(cn.a,{className:r.info,children:Ti.a.t("recommendedTutorial")}),Object(p.jsx)(ni.a,{className:r.IconArrow,name:"greenArrow"})]}),o&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)("div",{className:r.vSeparator}),Object(p.jsxs)(so.a,{href:"/importar.aspx?tipo=Productos",className:r.link,children:[Object(p.jsx)(cn.a,{className:r.info,children:Ti.a.t("goToOldConceptsCreation")}),Object(p.jsx)(ni.a,{className:r.IconArrow,name:"greenArrow"})]})]})]})]})})};const Sf=Object(u.a)((e=>
1({card:{padding:"25px 25px",borderRadius:5,boxShadow:"0px 1px 1px 0px rgba(0, 0, 0, 0.10)",width:"100%",backgroundColor:ui.a.white,marginTop:10,display:"flex",alignItems:"center",justifyContent:"space-between","@media (max-width: 600px)":{width:"100%",padding:20,flexDirection:"column"},"@media (max-width: 1100px)":{paddingLeft:20,paddingTop:20,paddingRight:20,paddingBottom:20},"@media (max-width: 450px)":{flexDirection:"column"}},leftContent:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:20,flex:1,"@media (max-width: 600px)":{flexDirection:"column"}},infoContent:{display:"flex",alignItems:"flex-start",flexDirection:"column",justifyContent:"center",gap:10,"@media (max-width: 600px)":{alignItems:"center"}},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"18px",display:"flex",flexDirection:"row","@media (max-width: 600px)":{textAlign:"center"}},subTitle:{lineHeight:1.4,fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"14px",flexDirection:"row",color:ui.a.textSecondary,"@media (max-width: 600px)":{textAlign:"center"}},img:{maxWidth:90,width:"100%"},secondaryButton:{width:"auto","@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},primaryButton:{marginLeft:10,"@media (max-width: 600px)":{marginLeft:0,marginTop:10,width:"100%"}},primaryButtonStyle:{"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}}})));var Ef=e=>{let{title:t="",buttonText:a="",primaryButtonIcon:i="",primaryButtonIconStyle:o={},img:n=On,style:r={},subTitle:s="",secondaryButtonText:l="",handleButtonClick:c=(()=>{}),handleSecondaryButtonClick:d=(()=>{})}=e;const u=Sf();return Object(p.jsxs)(v.a,{style:r,container:!0,className:u.card,children:[Object(p.jsxs)(v.a,{className:u.leftContent,item:!0,children:[Object(p.jsx)(di.a,{className:u.img,component:"img",src:n}),Object(p.jsxs)(v.a,{className:u.infoContent,children:[Object(p.jsx)(cn.a,{className:u.title,children:t}),Boolean(s)&&Object(p.jsx)(cn.a,{className:u.subTitle,children:s}),Boolean(l)&&Object(p.jsx)(si,{containerClass:u.secondaryButton,medium:!0,type:"secondary",onClick:d,children:l})]})]}),Object(p.jsx)(v.a,{item:!0,class:u.primaryButton,children:Object(p.jsx)(si,{showIcon:""!==i,iconType:i,iconViewBox:"0 0 20 20",iconStyle:o,medium:!0,centered:!0,type:"primary",onClick:c,children:a})})]})};const If={img:On,title:Ti.a.t("emptyBulkImportHistoryTitle"),text:Ti.a.t("emptyBulkImportHistoryText")},wf=Object(u.a)((e=>({card:{padding:20,borderRadius:5,boxShadow:"0px 1px 1px 0px rgba(0, 0, 0, 0.10)",width:"100%",backgroundColor:"#FFFFFF",marginTop:10,display:"flex",alignItems:"center",justifyContent:"space-between","@media (max-width: 600px)":{width:"100%",padding:20},"@media (max-width: 1100px)":{paddingLeft:20,paddingTop:20,paddingRight:20,paddingBottom:20}},leftContent:{display:"flex",alignItems:"center",gap:20},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"16px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},img:{maxWidth:50,width:"100%","@media (max-width: 479px)":{maxWidth:60}},loading:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300}})));var Tf=e=>{let{data:t=[],page:a=1,viewTotalPages:i=0,handlePageChange:o=(()=>{}),errorData:n=!1,loadingData:r=!1,handleInfoClick:s=(()=>{}),errorState:l=null}=e;const c=wf();return Object(p.jsxs)(Ym.a,{sx:{width:"100%",mb:2,boxShadow:"none"},children:[Object(p.jsx)(cn.a,{className:c.title,children:Ti.a.t("bulkImportHistory")}),Object(p.jsx)(Ks.a,{style:{borderRadius:"5px",marginTop:20},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:c.table,children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:c.showSm,children:Ti.a.t("bulkImportDate")}),Object(p.jsx)(Js.a,{className:c.showSm,children:"Productos importados"}),Object(p.jsx)(Js.a,{className:c.hiddenSm,children:Ti.a.t("user")}),Object(p.jsx)(Js.a,{className:c.hiddenSm,children:Ti.a.t("bulkImportStatus")})]})}),Object(p.jsxs)($s.a,{children:[r&&!n&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{style:{border:"none"},colSpan:4,children:Object(p.jsx)("div",{className:c.loading,children:Object(p.jsx)(Od.a,{style:{color:ui.a.primary400}})})})}),!r&&t.length>0&&t.map(((e,t)=>{var a,i,o,n,r,l,d,u;const m=null===e||void 0===e||null===(a=e.log)||void 0===a?void 0:a.findIndex((e=>{var t;return!(null!==(t=e[0])&&void 0!==t&&t.sku)}));return Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:c.showSm,children:null===e||void 0===e?void 0:e.created_at}),Object(p.jsxs)(Js.a,{className:c.showSm,children:[null!==(i=null===e||void 0===e||null===(o=e.countImports)||void 0===o?void 0:o.success)&&void 0!==i?i:"-","/",null!==(n=null===e||void 0===e||null===(r=e.countImports)||void 0===r?void 0:r.of)&&void 0!==n?n:"-",(null===e||void 0===e||null===(l=e.countImports)||void 0===l?void 0:l.success)<(null===e||void 0===e||null===(d=e.countImports)||void 0===d?void 0:d.of)&&0!==m&&Object(p.jsx)(ni.a,{onClick:()=>s(e),name:"helpIcon",style:{cursor:"pointer",color:ui.a.error400,width:22,height:22,overflow:"visible",marginLeft:10}})]}),Object(p.jsx)(Js.a,{className:c.showSm,children:null!==(u=null===e||void 0===e?void 0:e.email)&&void 0!==u?u:"-"}),Object(p.jsx)(Js.a,{className:c.hiddenSm,children:Object(p.jsx)(Rc,{disabled:!0,classNameDiv:"complete"===e.status?"success":"error"===e.status?"danger":"warning",containerStyle:{minHeight:23},children:"complete"===e.status?"Completada":"error"===e.status?"Erronea":"En progreso"},t+"list")})]})}))]})]})}),i>1&&Object(p.jsx)("div",{style:{marginBottom:"30px"},children:Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:a,totalPages:i,onPageChange:e=>o(e)})})}),!n&&!r&&0===(null===t||void 0===t?void 0:t.length)&&Object(p.jsx)(Fc,{containerStyle:{maxWidth:800,margin:"60px auto 50px auto"},testId:"empty-state",...If}),n&&!r&&l&&Object(p.jsx)(Fc,{containerStyle:{maxWidth:800,margin:"60px auto 50px auto"},testId:"error-state",...l})]})},Pf=a.p+"static/media/import-products.bc7e91a8.svg",Rf=a(56);const Nf=Object(u.a)((e=>({modalStyle:{minWidth:800,"@media (max-width: 801px)":{minWidth:"90%"}},innerContentStyle:{padding:20,maxHeight:"80vh",overflowY:"auto"},leftContent:{display:"flex",alignItems:"center",gap:20},table:{width:"100%","@media (max-width: 479px)":{minWidth:600}},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"16px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},text:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"14px",lineHeight:"18px",display:"flex",margin:"5px 0px",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},mainError:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"14px",lineHeight:"18px",width:"100%",textAlign:"center",margin:"25px 0px 35px 0px"},showSm:{padding:"10px !important"}})));var Lf=e=>{var t,a,i,o;let{row:n,handleCloseModal:r,openModal:s}=e;const l=Nf(),c={HEADING_NOT_FOUND:{text:Ti.a.t("headingNotFound"),field:"Rubro"},SUBHEADING_NOT_FOUND:{text:Ti.a.t("subHeadingNotFound"),field:"Subrubro"},TYPE_NOT_MATCH:{text:Ti.a.t("typeNotEditable"),field:"Tipo"},CURRENCY_NOT_FOUND:{text:Ti.a.t("errorInvalidCurrency"),field:"Moneda"}
1,CURRENCY_NOT_MATCH:{text:Ti.a.t("currencyNotEditable"),field:"Moneda"},CURRENCY_NOT_ACTIVATE:{text:Ti.a.t("errorInvalidCurrency"),field:"Moneda"},PROVIDER_NOT_FOUND:{text:Ti.a.t("providerNotFound"),field:"Proveedor"},LIMITATIONS_MAX_USAGE:{text:Ti.a.t("limitations.skusMaxUsage"),field:"Li\u0301mite alcanzado"}},d=e=>{var t;return Object(p.jsxs)("p",{className:l.text,children:["\u2022 ",(null===(t=c[e])||void 0===t?void 0:t.text)||Ti.a.t("bulkImportErrorModal")]})},u=e=>{var t;return Object(p.jsxs)("p",{className:l.text,children:["\u2022 ",(null===(t=c[e])||void 0===t?void 0:t.field)||Ti.a.t("bulkImportErrorModal")]})},m=null===n||void 0===n||null===(t=n.log)||void 0===t?void 0:t.findIndex((e=>{var t;return!(null!==(t=e[0])&&void 0!==t&&t.sku)}));return Object(p.jsxs)(Sm,{isOpen:s,handleClose:r,primaryHeader:!0,secondaryButtonClick:r,title:"Registro de productos erroneos",modalStyle:l.modalStyle,showButtons:!1,innerContentStyle:l.innerContentStyle,children:[Object(p.jsx)(Ks.a,{style:{borderRadius:"5px",width:"100%",marginBottom:20},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:l.table,children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{style:{width:220},className:l.showSm,children:"SKU"}),Object(p.jsx)(Js.a,{style:{width:120},className:l.showSm,children:"Campos"}),Object(p.jsx)(Js.a,{className:l.showSm,children:"Tipo de error"})]})}),Object(p.jsxs)($s.a,{children:[0===m&&Object(p.jsx)(Qs.a,{children:Object(p.jsx)(Js.a,{colSpan:3,className:l.showSm,children:Ti.a.t("jobError")})}),0!==m&&(null===n||void 0===n||null===(a=n.log)||void 0===a?void 0:a.map(((e,t)=>{var a,i,o,n,r,s,c,m,g,b,h,x;return null!==(a=e[1])&&void 0!==a&&a.id?null:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:l.showSm,children:null===(i=e[0])||void 0===i?void 0:i.sku}),Object(p.jsx)(Js.a,{className:l.showSm,children:(null===(o=e[1])||void 0===o||null===(n=o.code_error)||void 0===n?void 0:n.length)>0?null===(r=e[1])||void 0===r||null===(s=r.code_error)||void 0===s?void 0:s.map((e=>u(e))):u(null===(c=e[1])||void 0===c?void 0:c.code_error)}),Object(p.jsx)(Js.a,{className:l.showSm,children:(null===(m=e[1])||void 0===m||null===(g=m.code_error)||void 0===g?void 0:g.length)>0?null===(b=e[1])||void 0===b||null===(h=b.code_error)||void 0===h?void 0:h.map((e=>d(e))):d(null===(x=e[1])||void 0===x?void 0:x.code_error)})]})})))]})]})}),(e=>{var t;return(null===(t=c[e])||void 0===t?void 0:t.text)!==e})(null===n||void 0===n||null===(i=n.log)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.code)&&Object(p.jsx)("p",{className:l.mainError,children:Ti.a.t("jobError")})]})};var kf=Ei((()=>{const[e,t]=Object(i.useState)({historyList:[],historyListLoading:!1,historyListError:!1,page:1,totalPages:1}),[a,o]=Object(i.useState)(!1),[n,r]=Object(i.useState)({}),{historyList:s,historyListLoading:l,historyListError:c,totalPages:d,page:u}=e,m=async a=>{t({...e,historyListLoading:!0});try{const i=await Ya.bulkImport.getBulkImportHistory({page:a});t({...e,historyListError:!1,historyList:null===i||void 0===i?void 0:i.data,historyListLoading:!1,page:a,totalPages:null===i||void 0===i?void 0:i.last_page})}catch(i){t({...e,historyListError:!0})}};Object(i.useEffect)((()=>{m(u)}),[]);const g={title:Ti.a.t("bulkImportProductsAndServices"),subTitle:Ti.a.t("bulkImportProductsAndServicesSubTitle"),buttonText:Ti.a.t("startBulkImport"),img:Pf,handleButtonClick:async()=>{window.open("/v3/bulkImport/start","_self"),Object(Rf.f)()}},b={showButtons:!1,renderTitleComponent:()=>Object(p.jsxs)("div",{children:[Object(p.jsx)(Of,{title:Ti.a.t("bulkImportTitle")}),Object(p.jsx)(Ef,{...g,style:{marginBottom:25,marginTop:15}})]})},h={data:s,page:u,viewTotalPages:d,handlePageChange:t=>{t!==e.page&&m(t)},errorData:c,loadingData:l,handleInfoClick:e=>{r(e),o(!0)}},x={openModal:a,row:n,handleCloseModal:()=>o(!1)};return Object(p.jsxs)(xm,{...b,children:[Object(p.jsx)(Tf,{...h}),a&&Object(p.jsx)(Lf,{...x})]})}),"bulkImport","products",!0),Bf=a.p+"static/media/column-order-tutorial.504592d6.svg",Df=a(78);const Ff=e=>{let{userCountry:t}=e;const[a,o]=Object(i.useState)([]),[n,r]=Object(i.useState)([]),[s,l]=Object(i.useState)([]),c=Vf(),d={One:{number:"1",text:Ti.a.t("firstTutorialText")},Two:{number:"2",text:Ti.a.t("secondTutorialText")},Three:{number:"3",text:Ti.a.t("thirdTutorialText")},Four:{number:"4",text:Ti.a.t("fourthTutorialText")},Five:{number:"5",text:Ti.a.t("fifthTutorialText")},Six:{number:"6",text:Ti.a.t("descriptiveFieldsTutorialText")},Seven:{number:"7",text:Ti.a.t("sixthTutorialText")},Eight:{number:"8",text:Ti.a.t("seventhTutorialText")},Nine:{number:"9",text:Ti.a.t("eighthTutorialText")}},u={One:{number:"1",text:Ti.a.t("firstTutorialText")},Two:{number:"2",text:Ti.a.t("secondTutorialText")},Three:{number:"3",text:Ti.a.t("thirdTutorialText")},Four:{number:"4",text:Ti.a.t("fourthTutorialText")},Five:{number:"5",text:Ti.a.t("fifthTutorialText")},Six:{number:"6",text:Ti.a.t("descriptiveFieldsTutorialText")},Seven:{number:"7",text:Ti.a.t("sixthTutorialText")},Eight:{number:"8",text:Ti.a.t("seventhTutorialText")}},m=e=>Df.b.map(((t,a)=>0===a?{[t.labelKey]:{number:e}}:t.labelKey)),g=["Adidas","Running","","","",""],b=["","","","","Verano",""],h=[{firstRow:{number:"1"}},{name:{asterisk:"*"}},{SKU:{asterisk:"*"}},{type:{asterisk:"*"}},{state:{asterisk:"*"}},{currency:{asterisk:"*"}},"urlImg",{category:{asterisk:"*"}}
1,"subcategory","description","originSupplier","purchaseAcc","saleAcc","merchAcc",...m("6"),"observations",{unitP:{asterisk:"*"}},{ivaRate:{number:"8",asterisk:"*"}},"internalCost3","costEffec","barCode","stockMin","CodOEM","rgAchived",""],x=[{firstRow:{number:"1"}},{name:{asterisk:"*"}},{SKU:{asterisk:"*"}},{type:{asterisk:"*"}},{state:{asterisk:"*"}},{currency:{asterisk:"*"}},"urlImg",{category:{asterisk:"*"}},"subcategory","description","originSupplier","purchaseAcc","saleAcc","merchAcc",...m("6"),"observations",{unitP:{asterisk:"*"}},"ivaDetail","ivaRate","internalCost3","costEffec","barCode","stockMin","CodOEM",""],f=[["existingProduct",{title1:{number:"2"}},"sku1","typeP",{stateA:{number:"4"}},{currency1:{number:"5"}},"urlImg1","category1","","description1","tableSupplier","accCode1","accCode1","accCode1",...g,"observation1","10500","iva1","9000","0","bCode1","3","","no",{"":{number:"9"}}],["tableNewProduct","title2","sku2",{typeS:{number:"3"}},"stateI","currency2","urlImg2","category2","","description2","tableSupplier","accCode2","accCode2","accCode2",...b,"observation2",{"3500.50":{number:"7"}},"iva2","2110.70","20","bCode2","2","","no",""]],j=[["existingProduct",{title1:{number:"2"}},"sku1","typeP",{stateA:{number:"4"}},{currency1:{number:"5"}},"urlImg1","category1","","description1","tableSupplier","accCode1","accCode1","accCode1",...g,"observation1","10500","ivaDetail1","iva1","9000","0","bCode1","3","",{"":{number:"8"}}],["tableNewProduct","title2","sku2",{typeS:{number:"3"}},"stateI","currency2","urlImg2","category2","","description2","tableSupplier","accCode2","accCode2","accCode2",...b,"observation2",{"3500.50":{number:"7"}},"ivaDetail2","iva2","2110.70","20","bCode2","2","",""]];return Object(i.useEffect)((()=>{let e=u,a=x,i=j;"ar"===t.userCountry&&(e=d,a=h,i=f),o(a),r(i),l(e)}),[t]),Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Ks.a,{style:{borderRadius:"5px",border:`1px solid ${ui.a.grey400}`,marginTop:15,marginBottom:35},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:c.table,children:[Object(p.jsx)(Zs.a,{children:Object(p.jsx)(Qs.a,{style:{width:"100%"},children:a.map(((e,t)=>{var i,o;return Object(p.jsx)(Js.a,{className:t===a.length-1?c.lastTableHeadCell:c.headTableCell,style:{color:ui.a.textPrimary},children:Object(p.jsx)("div",{style:{display:"flex",justifyContent:"space-between"},children:"object"===typeof e&&e.hasOwnProperty(Object.keys(e)[0])&&e[Object.keys(e)[0]].hasOwnProperty("number")?Object(p.jsxs)(v.a,{className:c.headContainer,container:!0,children:[Object(p.jsxs)(v.a,{className:c.headingContainer,item:!0,children:[Ti.a.t(Object.keys(e)[0]),"object"===typeof e&&(null===(i=e[Object.keys(e)[0]])||void 0===i?void 0:i.asterisk)&&Object(p.jsx)(v.a,{className:c.asterisk,children:e[Object.keys(e)[0]].asterisk})]}),Object(p.jsx)(v.a,{className:c.tableNumberCircle,children:Object(p.jsx)(S.a,{className:c.textNumber,children:e[Object.keys(e)[0]].number})})]}):"object"===typeof e&&e.hasOwnProperty(Object.keys(e)[0])&&e[Object.keys(e)[0]].hasOwnProperty("asterisk")?Object(p.jsxs)(v.a,{className:c.headingContainer,children:[Ti.a.t(Object.keys(e)[0]),"object"===typeof e&&(null===(o=e[Object.keys(e)[0]])||void 0===o?void 0:o.asterisk)&&Object(p.jsx)(v.a,{className:c.asterisk,children:e[Object.keys(e)[0]].asterisk})]}):Object(p.jsx)(v.a,{children:Ti.a.t(e)})})},t)}))})}),Object(p.jsx)($s.a,{children:n.map(((e,t)=>Object(p.jsx)(Qs.a,{style:{width:"100%"},children:e.map(((t,a)=>Object(p.jsx)(Js.a,{className:a===e.length-1?c.lastTableCell:c.tableCell,style:{color:ui.a.textSecondary},children:"object"===typeof t?Object(p.jsxs)(v.a,{className:c.headContainer,container:!0,children:[Object(p.jsx)(v.a,{item:!0,children:Ti.a.t(Object.keys(t)[0])}),Object(p.jsx)(v.a,{className:c.tableNumberCircle,children:Object(p.jsx)(S.a,{className:c.textNumber,children:t[Object.keys(t)[0]].number})})]}):Ti.a.t(t)},a)))},t)))})]})}),Object(p.jsxs)("div",{className:c.container,children:[Object(p.jsx)("div",{className:c.column,children:Object.keys(s).map(((e,t)=>t<4?Object(p.jsxs)(v.a,{container:!0,className:c.containerBox,style:{flexDirection:"row"},children:[Object(p.jsx)(v.a,{item:!0,className:c.numberCircle,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:Object(p.jsx)(S.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"12px"},children:s[e].number})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(S.a,{className:c.text,style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px"},children:s[e].text})})]},e):null))}),Object(p.jsx)("div",{className:c.column,children:Object.keys(s).map(((e,t)=>t>=4?Object(p.jsxs)(v.a,{container:!0,className:c.containerBox,style:{flexDirection:"row"},children:[Object(p.jsx)(v.a,{item:!0,className:c.numberCircle,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:Object(p.jsx)(S.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"12px"},children:s[e].number})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(S.a,{className:c.text,style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px"},children:s[e].text})})]},e):null))})]})]})},Mf=()=>{const e=Vf(),t={One:{number:"1",text:Ti.a.t("firstColumnTutorialText")},Two:{number:"2",text:Ti.a.t("secondColumnTutorialText")},Three:{number:"3",text:Ti.a.t("thirdColumnTutorialText")},Four:{number:"4",text:Ti.a.t("fourthColumnTutorialText")}};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{className:e.imageContainer,children:Object(p.jsx)(di.a,{className:e.tutorialImg,component:"img",src:Bf})}),Object.keys(t).map((a=>Object(p.jsxs)(v.a,{container:!0,className:e.containerBox,children:[Object(p.jsx)(v.a,{item:!0,className:e.numberCircle,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:Object(p.jsx)(S.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"12px"},children:t[a].number})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(S.a,{className:e.text,style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px"},children:t[a].text})})]},a)))]})},Vf=Object(u.a)((e=>({container:{display:"flex",flexWrap:"wrap",justifyContent:"space-between","@media (max-width: 768px)":{flexDirection:"column"}},column:{width:"49%",boxSizing:"border-box","@media (max-width: 768px)":{width:"100%"}},containerBox:{borderWidth:1,borderColor:ui.a.grey200,borderStyle:"solid",borderRadius:6,padding:10,marginBottom:15,display:"flex",flexWrap:"nowrap",alignItems:"center"},table:{minWidth:"1150px",overflowX:"scroll"},headTableCell:{borderRight:`1px solid ${ui.a.grey400}`,backgroundColor:ui.a.grey100,width:"160px",minWidth:"160px",fontSize:"12px",padding:"10px 16px !important"},lastTableHeadCell:{width:"60px",backgroundColor:ui.a.grey100,minWidth:"60px",fontSize:"12px",padding:"10px 10px !important"},tableCell:{borderRight:`1px solid ${ui.a.grey400}`,width:"160px",minWidth:"160px",fontSize:"12px",padding:"10px 16px !important"},lastTableCell:{width:"60px",minWidth:"60px",fontSize:"12px",padding:"10px 10px !important"},tableNumberCircle:{borderRadius:"50%",backgroundColor:ui.a.secondary300,height:28,width:28,minWidth:28,color:ui.a.textPrimary,textAlign:"center",marginLeft:6,display:"flex",alignItems:"center",justifyContent:"center"},textNumber:{fontFamily:"Work Sans, sans-serif !important",fontSize:"12px !important",fontWeight:"500 !important",color:"white",lineHeight:"1 !important"},numberCircle:{borderRadius:"50%",backgroundColor:ui.a.secondaryLight,height:28,width:28,minWidth:28,color:ui.a.secondary300,textAlign:"center",marginRight:10},text:{color:ui.a.textSecondary,lineHeight:18},headContainer:{alignItems:"center"},imageContainer:{display:"flex",justifyContent:"center",marginBottom:35,"@media (max-width: 1200px)":{justifyContent:"start",overflowX:"scroll",padding:10,marginBottom:25}},tutorialImg:{width:1050,margin:"10px auto 5px auto",padding:20,borderRadius:6,boxShadow:"1px 1px 6px 2px rgba(0, 0, 0, 0.10)"},headingContainer:{display:"flex"},asterisk:{color:ui.a.error400,fontSize:"13px",marginLeft:5,fontWeight:600}})));const Wf=Object(u.a)((e=>({container:{width:"100%"}})));var Hf=function(e){const t=Wf(),a=[{title:Ti.a.t("templateGuide"),children:Object(p.jsx)(Ff,{userCountry:e}),value:1}],i={borderWidth:1,borderColor:ui.a.grey300,borderStyle:"solid",borderRadius:5,marginTop:25},o={color:ui.a.textPrimary,fontWeight:600,fontSize:16,padding:"0px !important"};return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(v.a,{className:t.container,children:Object(p.jsx)(_p,{accordionList:a,customTitleContainerStyle:i,collapseBodyStyle:{border:"none"},customTitleStyle:o,handleAccordionChange:e=>{let{expanded:t,panel:a}=e;t!==a&&Object(Rf.g)()}})})})},Uf=(a(542),a.p+"static/media/xlsx.5dd8a9af.svg"),_f=a.p+"static/media/csv.6fe69663.svg",zf=a.p+"static/media/upload-file.d238724c.svg";var qf=e=>{var t;let{handleFileSelection:a=(()=>{}),handleDropFile:o=(()=>null),filesAccepted:n=".csv,.xlsx",validExtensions:r=["csv","xlsx"],style:s={},fileSelected:l=null,errorFile:c=null,customError:d=!1,invalidExtensionMessage:u=""}=e;const[m,g]=Object(i.useState)(!1),[b,h]=Object(i.useState)(l),[x,f]=Object(i.useState)(c),[v,j]=Object(i.useState)("");Object(i.useEffect)((()=>{d&&b&&l&&c||f(!1)}),[d,b,l,c]),Object(i.useEffect)((()=>
1{if(b){if(b&&d){const e=d;a({error:e,file:b}),f(e)}}else f(!1),a({error:!1,file:!1})}),[d,b]);const A=(e,t)=>{if(0===e.length)return j(""),void f("No se seleccion\xf3 ning\xfan archivo");const i=e[0],n=i.name.toLowerCase();if(t&&o(),!(e=>{const t=r.map((e=>"."+e.toLowerCase())),a=e.toLowerCase().slice(e.lastIndexOf("."));return t.includes(a)})(n)){h(!1);const e="El archivo seleccionado no es de los tipos aceptados: "+r.join(", ");return a({error:e,file:null,drop:t}),f(e),void(u&&j(u))}f(!1),j(""),a({error:!1,file:i,drop:t}),h(e[0])};return Object(p.jsxs)("div",{className:"uploadFileDragAndDrop",style:s,children:[Object(p.jsx)("label",{htmlFor:"fileElem",className:`drop-area ${m?"highlight":""} ${!Boolean(x)&&!Boolean(v)||b?"":"error"}`,onDragOver:e=>{e.preventDefault(),g(!0)},onDragLeave:()=>{g(!1)},onDrop:e=>{e.preventDefault(),g(!1);const t=Array.from(e.dataTransfer.files);A(t,!0)},children:Object(p.jsxs)("form",{className:"my-form",children:[!b&&Object(p.jsx)(y.a,{component:"img",className:"uploadFileImg",src:zf}),b&&Object(p.jsxs)("div",{className:"uploadFilePreviewContainer",children:[Object(p.jsxs)("div",{className:"imageContainer",children:[Object(p.jsx)(y.a,{component:"img",className:"fileType",src:null!==b&&void 0!==b&&null!==(t=b.name)&&void 0!==t&&t.toLowerCase().endsWith(".xlsx")?Uf:_f}),Object(p.jsx)(wi.a,{className:"clearFileButton",onClick:()=>(h(!1),f(!1),j(""),void a({error:!1,file:!1})),disableRipple:!0,children:Object(p.jsx)(Ri.a,{size:"large",sx:{stroke:"#ffffff",strokeWidth:.5,fontSize:"22px"}})})]}),Object(p.jsx)("p",{className:"previewNameFile",children:b.name})]}),b&&Object(p.jsx)("div",{className:"separator"}),b&&Object(p.jsxs)("p",{className:"fileText",children:[Object(p.jsx)("strong",{children:Ti.a.t("uploadNew")})," ",Ti.a.t("dropNew")]}),!b&&Object(p.jsxs)("p",{className:"fileText",children:[Object(p.jsx)("strong",{children:Ti.a.t("select")})," ",Ti.a.t("dragAndDropFileTitle")]}),Object(p.jsxs)("p",{className:"helper-text",children:[Ti.a.t("validUploadFilesText")," ",r.join(", ")]}),Object(p.jsx)("input",{type:"file",id:"fileElem",multiple:!0,accept:n,onChange:e=>A(e.target.files,!1),style:{display:"none"}})]})}),Boolean(v)&&!b?Object(p.jsx)("p",{className:"errorMessage",style:{color:ui.a.error400},children:v}):Boolean(x)&&(!b||b&&d)&&Object(p.jsxs)("p",{className:"errorMessage",style:{color:ui.a.error400},children:[x," "]})]})};var Gf=e=>{let{userCountry:t="",userPlan:a="",fileSelected:i,errorFile:o,customError:n,handleFileSelection:r,handleSelectFile:s,handleDropFile:l,invalidExtensionMessage:c=""}=e;const d={iconName:"helpIcon",type:"alertWarning",style:{margin:"15px 0px"},children:Ti.a.t("bulkImportLimitWarning"),showCustomAlert:("Freemium"===a||"Prueba"===a)&&"ar"===t};return Object(p.jsxs)("div",{style:{padding:"1% 2%",width:"100%"},children:[Object(p.jsx)(Nl,{text:Ti.a.t("uploadFileHelp")}),Object(p.jsx)(kl,{...d}),Object(p.jsx)(qf,{handleDropFile:l,handleSelectFile:s,handleFileSelection:r,fileSelected:i,errorFile:o,customError:n,invalidExtensionMessage:c,style:{marginTop:30}})]})},Yf=a(53);const Kf=Object(u.a)((e=>({title:{fontWeight:500,fontSize:"16px",lineHeight:"20px",color:ui.a.textPrimary,fontFamily:"Work Sans, sans-serif"},info:{fontSize:"14px",color:ui.a.textSecondary,lineHeight:"18px",fontFamily:"Work Sans, sans-serif",fontWeight:400,paddingTop:10},containerWidth:{whiteSpace:"nowrap",maxWidth:"100%",minWidth:"750px"},tableContainer:{borderBottom:`1px solid ${ui.a.grey300}`,marginTop:45,marginBottom:15},tableTitle:{fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ui.a.textPrimary,fontFamily:"Work Sans, sans-serif",paddingBottom:15},columnText:{fontWeight:400,fontSize:"14px",lineHeight:"18px",color:ui.a.textSecondary,fontFamily:"Work Sans, sans-serif",alignContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},searchSelect:{paddingRight:"100px","@media (max-width: 900px)":{paddingRight:"20px"}},inputAsterisk:{color:ui.a.error400,fontSize:13},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:ui.a.textSecondary,fontFamily:"Work Sans, sans-serif"},responsiveMargin:{marginTop:20,"@media (max-width: 768px)":{marginTop:20,marginBottom:10}}})));var Xf=e=>{let{columnTitlesInitialState:t={},sendFile:a=!1,userCountry:o="",selectedValuesInitialState:n={},columnObjectsInitialState:r=[],handleNewColumnTitleSelected:s=(()=>{}),handleApiPost:l=(()=>{}),setSendFile:c=(()=>{})}=e;const[d,u]=Object(i.useState)(t),[m,g]=Object(i.useState)(r),[b,h]=Object(i.useState)(n),[x,f]=Object(i.useState)(!1),[j,A]=Object(i.useState)([]),[C,y]=Object(i.useState)(!0),[O,E]=Object(i.useState)([]),[I,w]=Object(i.useState)(!1),T=Kf(),P=Object(Yf.e)(m);Object(i.useEffect)((()=>{O.length<=0&&E(P.map((e=>({label:e,value:e}))))}),[m]),Object(i.useEffect)((()=>{s(d,b,m)}),[d]),Object(i.useEffect)((()=>
1{if(a){R(),d["C\xf3digo Proveedor"].realName="c\xf3digo proveedor"}}),[a]),Object(i.useEffect)((()=>{if(x){const{hasDuplicates:e,duplicatedValues:t}=Object(Yf.b)(b);A(t)}}),[b]);const R=()=>{let e=d;e["C\xf3digo Proveedor"].realName="proveedor origen";const t=Object(Yf.c)(e),a=Object(Yf.d)(t),i=Object(Yf.f)(a);let o=!0;for(const s in d)if("Si"===d[s].required&&!b[s]){o=!1;break}const{hasDuplicates:n,duplicatedValues:r}=Object(Yf.b)(b);if(n?(window.scrollTo({top:0,left:0,behavior:"smooth"}),o=!1,f(!0),A(r),c(!1)):(f(!1),A([])),!o)return y(!1),c(!1),void window.scrollTo({top:0,left:0,behavior:"smooth"});y(!0),i&&l()},N=[{title:Ti.a.t("columnTemplateGuide"),children:Object(p.jsx)(Mf,{}),value:2}],L={borderWidth:0,borderColor:ui.a.grey300,backgroundColor:ui.a.grey100,display:"flex",alignItems:"center",borderStyle:"solid",borderRadius:20,marginTop:20,marginBottom:10,padding:"0px 30px"},k={color:ui.a.grey600,fontWeight:500,fontSize:15},B=O.filter((e=>!["Stock Reservado","Stock Disponible","Visible En Ventas","Atributo 1","Variante De Atributo 1","Atributo 2","Variante De Atributo 2"].some((t=>e.label.includes(t)))));return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,direction:"column",children:[Object(p.jsx)(v.a,{item:!0,className:T.responsiveMargin,children:Object(p.jsx)(S.a,{className:T.title,style:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px"},children:Ti.a.t("columnMatchingTitle")})}),Object(p.jsx)(_p,{customTitleContainerStyle:L,collapseBodyStyle:{border:"none"},accordionList:N,activeAccordion:2,customTitleStyle:k,handleAccordionChange:e=>{let{expanded:t,panel:a}=e;t===a&&Object(Rf.j)()},titleIcon:"lampIcon"}),Object(p.jsxs)(S.a,{className:T.footerForm,style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,marginTop:10},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:T.inputAsterisk,children:"* "})," ",Ti.a.t("required")]}),Object(p.jsx)("div",{style:{maxWidth:"100%",overflowX:"auto"},children:Object(p.jsxs)("div",{className:T.containerWidth,style:{whiteSpace:"nowrap",minWidth:"750px"},children:[Object(p.jsxs)(v.a,{container:!0,xs:12,className:T.tableContainer,children:[Object(p.jsx)(v.a,{item:!0,xs:4,sm:3,children:Object(p.jsx)(S.a,{className:T.tableTitle,style:{fontFamily:"Work Sans, sans-serif",fontWeight:600,fontSize:"14px"},children:Ti.a.t("columnName")})}),Object(p.jsx)(v.a,{item:!0,xs:4,sm:6,children:Object(p.jsx)(S.a,{className:T.tableTitle,style:{fontFamily:"Work Sans, sans-serif",fontWeight:600,fontSize:"14px"},children:Ti.a.t("assignField")})}),Object(p.jsx)(v.a,{item:!0,xs:4,sm:3,children:Object(p.jsx)(S.a,{className:T.tableTitle,style:{fontFamily:"Work Sans, sans-serif",fontWeight:600,fontSize:"14px"},children:Ti.a.t("firstRowPreview")})})]}),Object.values(d).map(((e,t)=>Object(p.jsxs)(v.a,{container:!0,xs:12,rowspacing:3,columnspacing:4,alignItems:"center",style:{marginTop:20,marginBottom:20},"data-testid":`bulk-import-column-order-row-${Object(Df.d)(e.realName)}`,children:[Object(p.jsx)(v.a,{item:!0,xs:4,sm:3,children:Object(p.jsxs)(S.a,{className:T.columnText,style:{fontFamily:"Work Sans, sans-serif",ontWeight:400,fontSize:"14px"},children:[e.title,e.required&&Object(p.jsx)("span",{className:T.inputAsterisk,children:" * "}),e.tooltip&&Object(p.jsx)(cr.a,{title:Ti.a.t("ivaRateTooltip"),"aria-label":"Tooltip",placement:"top",arrow:!0,open:I,onOpen:()=>w(!0),onClose:()=>w(!1),children:Object(p.jsx)("button",{className:"searchSelectButton",children:Object(p.jsx)(ni.a,{className:"searchSelectHelpIcon",name:"helpIcon",onClick:()=>w(!I)})})})]})}),Object(p.jsx)(v.a,{item:!0,xs:4,sm:6,className:T.searchSelect,children:Object(p.jsx)(Pr,{placeholder:b[e.title]?" ":"Selecciona una opci\xf3n",disabledMinHeight:!0,defaultValue:b[e.title]?{value:b[e.title]}:null,type:j.includes(b[e.title])||!C&&"Si"===d[e.title].required&&!b[e.title]?"searchSelectConfigurationError":"searchSelectConfiguration",errorMsg:`${C||"Si"!==d[e.title].required||b[e.title]?j.includes(b[e.title])?Ti.a.t("duplicatedField"):"":Ti.a.t("requiredField")}`,showError:!0,data:P?B:[],onChange:(t,a)=>((e,t)=>{if(!t||null===t.value)return A(j.filter((e=>e!==t))),h((t=>({...t,[e]:""}))),void u((t=>
1({...t,[e]:{...t[e],title:e,fieldName:"",fieldValue:""}})));const a=Object(Yf.g)(m,t);h((a=>({...a,[e]:t}))),u((i=>({...i,[e]:{...i[e],title:e,fieldName:t,fieldValue:a}})))})(e.title,null===a||void 0===a?void 0:a.value)})}),Object(p.jsx)(v.a,{item:!0,xs:4,sm:3,children:Object(p.jsx)(S.a,{className:T.columnText,style:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"14px"},children:e.fieldValue&&e.fieldValue[0]?e.fieldValue[0]:""},t)})]},t)))]})})]})})},Zf=a.p+"static/media/check-circle-v2.2409b205.svg";const Qf=e=>{let{isChecked:t,handleCheckboxChange:a}=e;return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,style:{padding:"0px 20px 0px 20px"},children:[Object(p.jsxs)(v.a,{container:!0,item:!0,style:{textAlign:"left"},children:[Object(p.jsxs)(v.a,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:20,marginTop:15},children:[Object(p.jsx)(ni.a,{name:"clock",width:"0px",height:"0px",viewBox:"",style:{color:"#00A692",marginRight:15}}),Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:"#131313"},children:Ti.a.t("bulkImportDataSizeText")})]}),Object(p.jsxs)(v.a,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(p.jsx)(ni.a,{name:"error",width:"0px",height:"0px",viewBox:"",style:{color:"#F32465",marginRight:15}}),Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:"#131313"},children:Ti.a.t("bulkImportProductErrorText")})]})]}),Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",children:Object(p.jsxs)(v.a,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:15,marginBottom:10},children:[Object(p.jsx)(Tm.a,{checked:t,onChange:a,sx:{"&.Mui-checked":{color:"#00A692"}}}),Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",fontWeight:400,color:"#666666"},children:Ti.a.t("buklImportCheckText")})]})})]})})};var Jf=e=>{let{errorCode:t=null,successRequest:a=!1,errorRequest:o,isChecked:n=!1,buttonDisabled:r=!0,openModal:s=!1,loading:l=!1,handleCloseSuccessModal:c=(()=>{}),handleSendRequest:d=(()=>{}),handleCheckboxChange:u=(()=>{}),handleCloseModal:m=(()=>{}),handleCloseWithAmplitude:g=(()=>null)}=e;const[b,h]=Object(i.useState)(""),x={BULK_IMPORT_CSV_NOT_EXIST:Ti.a.t("noFileError"),BULK_IMPORT_MAX_ERROR:Ti.a.t("maxProductsFileError"),BULK_IMPORT_EMPTY_CSV:Ti.a.t("emptyFileError"),BULK_IMPORT_INVALID_FILE:Ti.a.t("invalidFileError"),BULK_IMPORT_TOO_LARGE:Ti.a.t("fileTooLargeError"),BULK_IMPORT_CSV_DISTINC:Ti.a.t("columnFileDistinctError"),BULK_IMPORT_WHIT_ERRORS:Ti.a.t("jobError"),BULK_IMPORT_RUNNING:Ti.a.t("importRunningError")};Object(i.useEffect)((()=>{if(o){const e=x[t]||Ti.a.t("bulkImportErrorModal");h(e)}else h("")}),[t,o]);const f={title:Ti.a.t("bulkImportConfirmationWithTable"),img:Zc,closeButtonType:"secondary",closeButtonText:Ti.a.t("cancel"),closeButtonIcon:"arrowLeft",buttonIconStyle:{width:19,height:15,marginRight:5},buttonText:Ti.a.t("import"),disabled:r,isLoadingButton:l,nextButtonType:"primary",handleClose:g,handleAcceptClick:d,nextButtonIcon:"upload",nextButtonIconStyle:{width:22,height:20,marginTop:2},modalContainerStyle:{maxWidth:520,width:"95%",height:"auto",paddingBottom:20},children:Object(p.jsx)(Qf,{isChecked:n,handleCheckboxChange:u})},v={title:Ti.a.t("importSuccess"),img:Zf,children:Ti.a.t("importNewsNotification"),closeButtonText:Ti.a.t("accept"),closeButtonIcon:"check",handleClose:c,handleAcceptClick:c,modalContainerStyle:{minHeight:100,paddingBottom:20},buttonIconStyle:{width:19,height:15,marginRight:5}},j={title:Ti.a.t("bulkImportErrorModalTitle"),img:kc,children:b||Ti.a.t("bulkImportErrorModal"),closeButtonText:Ti.a.t("close"),closeButtonType:"secondary",handleClose:m,modalContainerStyle:{minHeight:100,paddingBottom:20}},A={handleClose:m,showBtn:a||o?1:2,open:s,...a?{...v}:o?{...j}:{...f}};return Object(p.jsx)("div",{children:Object(p.jsx)(Kc,{...A})})},$f=a.p+"static/media/planilla_campos_descriptivos_AR.98e415a2.xlsx",ev=a.p+"static/media/planilla_campos_descriptivos_CL.e1a7c015.xlsx",tv=a.p+"static/media/planilla_campos_descriptivos_UY.4ddaa9b0.xlsx",av=a.p+"static/media/planilla_campos_descriptivos_PY.e8119557.xlsx",iv=a(370),ov=a.p+"static/media/download-file.f1ed0ca2.svg";const nv="SET_BULK_IMPORT_PREVIEW_LOADING",rv="SET_BULK_IMPORT_PREVIEW_SUCCESS",sv="SET_BULK_IMPORT_PREVIEW_ERROR",lv="RESET_BULK_IMPORT_PREVIEW",cv="SET_BULK_IMPORT_STATS",dv="SET_PAGE_CHANGE",uv={previewList:[],previewListLoading:!1,previewListError:!1,page:1,totalPages:1,previewListTotalItems:0,fileStats:{totalItems:0,totalErrorItems:0}},pv=(e,t)=>{switch(t.type){case nv:return{...e,previewListLoading:!0,previewListError:null};case rv:return{...e,previewList:t.payload.data,previewListLoading:!1,previewListError:null,page:t.payload.page,totalPages:t.payload.lastPage,previewListTotalItems:t.payload.total};case sv:return{...e,previewListLoading:!1,previewListError:t.payload};case cv:return{...e,fileStats:{totalItems:t.payload.totalItems,totalErrorItems:t.payload.totalErrorItems}};case dv:return{...e,page:t.payload};case lv:return uv;default:return e}};var mv=()=>{const[e,t]=Object(i.useReducer)(pv,uv);return{previewData:e,getFilePreview:async(e,a)=>{t({type:nv});try{const i=await Ya.bulkImport.getBulkImportPreview({page:e,limit:10,errors:a.errors});t({type:rv,payload:{data:i.data,total:i.total,lastPage:i.last_page,page:e}})}catch(i){t({type:sv})}},getFileStats:async()=>{try{const{total:e,wrong:a}=await Ya.bulkImport.getBulkImportPreview({page:0});t({type:cv,payload:{totalItems:e,totalErrorItems:a}})}catch(e){console.log({error:e})}},handleSetPageChange:e=>{t({type:dv,payload:e})},handleResetPreview:()=>{t({type:lv})}}};const gv=Object(u.a)((e=>({grid:{padding:"25px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"20px",display:"flex",flexDirection:"row",color:ui.a.textPrimary},toolText:{fontSize:"13px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:ui.a.textSecondary},toolContainer:{marginTop:"10px",marginBottom:"8px",display:"flex",flexWrap:"wrap",justifyContent:"space-between"},search:{display:"flex",flexWrap:"noWrap",alignItems:"center",justifyContent:"flex-end"},searchText:{fontSize:"13px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary,width:"80px",paddingRight:"10px"},searchBox:{width:"250px"}})));var bv=e=>{let{page:t=0,totalItems:a=0,selectedOption:i="",totalErrorItems:o=0,previewListTotalItems:n=0,handlePageChange:r=(()=>{}),setSelectedOption:s=(()=>{})}=e;const l=gv(),c=1===o?" err\xf3neo de ":" err\xf3neos de ",d=[{value:Ti.a.t("all"),errors:null},{value:Ti.a.t("withoutErrorFilter"),errors:0},{value:Ti.a.t("errorFilter"),errors:1}],u=n>10;return Object(p.jsxs)(v.a,{container:!0,className:l.grid,xs:12,md:12,xl:12,children:[Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},justifyContent:"space-between",children:[Object(p.jsxs)(v.a,{item:!0,md:5,sm:7,xs:12,children:[Object(p.jsx)(cn.a,{className:l.title,children:Ti.a.t("bulkImportPreviousResults")}),Object(p.jsxs)(v.a,{container:!0,className:l.toolContainer,xs:12,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsxs)(cn.a,{sx:{flex:"1 1 100%"},className:l.toolText,children:[o," ",c," ",a]})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{sx:{flex:"1 1 100%"},className:l.toolText})})]})]}),Object(p.jsxs)(v.a,{item:!0,container:!0,md:4,sm:5,xs:12,className:l.search,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:l.searchText,children:Ti.a.t("filterFor")})}),Object(p.jsx)(v.a,{item:!0,className:l.searchBox,children:Object(p.jsx)(Pr,{disabledMinHeight:!0,data:d,onChange:(e,t)=>
1{s(t)},value:d.find((e=>e.value===i.value)),placeholder:i.value?" ":Ti.a.t("all")})})]})]}),Object(p.jsx)(v.a,{container:!0,item:!0,style:{display:"flex",justifyContent:"flex-end"},children:Object(p.jsx)(pg,{shouldShowPagination:u,totalCount:n,currentPage:t,limit:10,handleTopPageChange:(e,t)=>{r(t)}})})]})};const hv=Object(u.a)((e=>({titles:{fontSize:"14px",fontWeight:"600",lineHeight:"14.11px",fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary},firstTitle:{textAlign:"center"}})));var xv=e=>{const{headCells:t}=e,a=hv();return Object(p.jsx)(Zs.a,{children:Object(p.jsx)(Qs.a,{className:a.tableHead,children:t.map(((e,t)=>Object(p.jsx)(Js.a,{style:{minWidth:e.minWidth,textAlign:0===t?"center":"left"},className:a.titles,children:e.label},e.id)))})})};var fv=e=>{let{field:t,value:a,tooltip:i,showTooltip:o,toggleTooltip:n,isError:r,classes:s,testId:l}=e;return Object(p.jsx)(Js.a,{align:"left","data-testid":l,children:Object(p.jsxs)("div",{className:`${s.cells} ${r(t)?s.errorText:""}`,children:[r(t)&&Object(p.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",alignItems:"center"},children:[Object(p.jsx)("div",{className:s.elipsisText,children:a}),Object(p.jsx)(cr.a,{title:i[t],"aria-label":"Tooltip",placement:"top",arrow:!0,open:!!o[t],onOpen:()=>n(t),onClose:()=>n(t),children:Object(p.jsx)("button",{type:"button",className:s.tooltipButton,onClick:()=>n(t),"data-testid":l?`${l}-error-button`:void 0,children:Object(p.jsx)(M,{className:s.icon,name:"infoCircle"})})})]}),!r(t)&&Object(p.jsx)("div",{className:s.elipsisText,children:a})]})})};const vv=Df.b.reduce(((e,t)=>({...e,[t.previewKey]:{CONCEPT_FIELD_VALUE_NOT_FOUND:Ti.a.t("bulkImportFieldValueNotFound"),CONCEPT_FIELD_NOT_AVAILABLE:Ti.a.t("bulkImportFieldNotAvailable")}})),{}),jv={name:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},code:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit50"),SKU_REPEATED:Ti.a.t("errorSkuRepeated")},type:{IN_ERROR:Ti.a.t("errorInvalidType"),IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},status:{IN_ERROR:Ti.a.t("errorInvalidStatus"),IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},currency:{IN_ERROR:Ti.a.t("errorInvalidCurrency"),IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},image:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150"),IMAGE_URL_ERROR:Ti.a.t("errorInvalidURL")},heading:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),HEADING_ERROR:Ti.a.t("errorHeading")},subHeading:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),SUB_HEADING_ERROR:Ti.a.t("errorSubHeading")},description:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},providerCode:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},purchasePlan:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},salePlan:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},merchandisePlan:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},observations:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},unitPrice:{STRING_ERROR:Ti.a.t("errorInvalidNumberField"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_DIGITS_ERROR:Ti.a.t("errorMaxLimitPrice")},ivaDetail:{IVADETAIL_NOT_EXIST_ERROR:Ti.a.t("errorInvalidIvaDetail"),IVADETAIL_NOT_MATCH_ERROR:Ti.a.t("errorInvalidIvaDetail"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit30")},iva:{IN_ERROR:Ti.a.t("errorInvalidIVA"),IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},internalCost:{STRING_ERROR:Ti.a.t("errorInvalidNumberField"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),MAX_DIGITS_ERROR:Ti.a.t("errorMaxLimitPrice")},profitability:{STRING_ERROR:Ti.a.t("errorInvalidNumberField"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),MAX_DIGITS_ERROR:Ti.a.t("errorMaxLimitProfitability")},Barcode:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128")},minStock:{STRING_ERROR:Ti.a.t("errorInvalidMinStock"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),INT_ERROR:Ti.a.t("errorDecimals"),MAX_ERROR:Ti.a.t("errorMaxLimitMinStock")},oemCode:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit50")},RG5329:{RG5329_ERROR:Ti.a.t("errorInvalidRG5329"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},...vv},Av=Object(u.a)((e=>({cells:{fontSize:"13px",fontWeight:"400",fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary,lineHeight:"18px",maxHeight:"2.8em",maxWidth:"150px"},elipsisText:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingTop:"3px"},error:{background:ui.a.errorLight,color:ui.a.error400,borderRadius:50,padding:"2px 12px",marginTop:"3px",fontSize:"12px",display:"inline-block"},success:{background:ui.a.primaryLight,color:ui.a.primary500,borderRadius:50,padding:"3px",fontSize:"12px"},errorText:{color:ui.a.error400},icon:{color:ui.a.error400,alignItems:"center",fontSize:"18px"},tooltipButton:{backgroundColor:ui.a.white,border:"none",display:"inline-block"}})));var Cv=e=>{let{row:t={},errors:a={},userCountry:o}=e;
1const{userId:n,name:r,code:s,type:l,status:c,currency:d,image:u,heading:m,subHeading:g,description:b,providerCode:h,purchasePlan:x,salePlan:f,merchandisePlan:v,observations:j,unitPrice:A,ivaDetail:C,iva:y,internalCost:O,profitability:S,Barcode:E,minStock:I,oemCode:w,RG5329:T}=t,P=Av(),R=e=>null===a||void 0===a?void 0:a.hasOwnProperty(e),[N,L]=Object(i.useState)({}),[k,B]=Object(i.useState)({});Object(i.useEffect)((()=>{const e={};Object.keys(a).forEach((t=>{e[t]=D(t)})),L(e)}),[a]);const D=e=>{var t;const i=a[e];if(!i)return"";const o=i.code||"default";return(null===(t=jv[e])||void 0===t?void 0:t[o])||Ti.a.t("errorMissing")},F=e=>{B((t=>({...t,[e]:!t[e]})))};return Object(p.jsxs)(Qs.a,{sx:{cursor:"default"},children:[Object(p.jsx)(Js.a,{align:"center",children:Object(p.jsx)("div",{className:P.cells,children:Object(p.jsx)("div",{className:Object.keys(a).length>0?P.error:P.success,children:Object.keys(a).length>0?Ti.a.t("errorState"):Ti.a.t("correctState")})})}),Object(p.jsx)(fv,{field:"name",value:r,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"code",value:s,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"type",value:l,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"status",value:c,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"currency",value:d,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"image",value:u,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"heading",value:m,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"subHeading",value:g,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"description",value:b,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"providerCode",value:h,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"purchasePlan",value:x,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"salePlan",value:f,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"merchandisePlan",value:v,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Df.b.map((e=>Object(p.jsx)(fv,{field:e.previewKey,value:t[e.previewKey],tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P,testId:`bulk-import-preview-row-${s}-${e.previewKey}`},e.previewKey))),Object(p.jsx)(fv,{field:"observations",value:j,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"unitPrice",value:A,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),"ar"!==o&&Object(p.jsx)(fv,{field:"ivaDetail",value:C,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"iva",value:y,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"internalCost",value:O,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"profitability",value:S,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"Barcode",value:E,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"minStock",value:I,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),Object(p.jsx)(fv,{field:"oemCode",value:w,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P}),"ar"===o&&Object(p.jsx)(fv,{field:"RG5329",value:T,tooltip:N,showTooltip:k,toggleTooltip:F,isError:R,classes:P})]})};const yv=[{id:"Result",label:Ti.a.t("result"),minWidth:"100px"},{id:"name",label:Ti.a.t("name"),minWidth:"180px"},{id:"code",label:Ti.a.t("SKU"),minWidth:"180px"},{id:"type",label:Ti.a.t("type"),minWidth:"100px"},{id:"state",label:Ti.a.t("state"),minWidth:"100px"},{id:"currency",label:Ti.a.t("currency"),minWidth:"100px"},{id:"imgUrl",label:Ti.a.t("urlImg"),minWidth:"150px"},{id:"heading",label:Ti.a.t("category"),minWidth:"150px"},{id:"subHeading",label:Ti.a.t("subcategory"),minWidth:"150px"},{id:"description",label:Ti.a.t("description"),minWidth:"180px"},{id:"supplierCode",label:Ti.a.t("originSupplier"),minWidth:"150px"},{id:"purchaseAccount",label:Ti.a.t("purchaseAcc"),minWidth:"150px"},{id:"saleAccount",label:Ti.a.t("saleAcc"),minWidth:"150px"},{id:"merchAccount",label:Ti.a.t("merchAcc"),minWidth:"150px"},...Df.b.map((e=>({id:e.previewKey,label:Ti.a.t(e.labelKey),minWidth:"150px"}))),{id:"observations",label:Ti.a.t("observations"),minWidth:"180px"},{id:"unitPrice",label:Ti.a.t("unitP"),minWidth:"150px"},{id:"ivaDetail",label:Ti.a.t("ivaDetail"),minWidth:"120px"},{id:"iva",label:Ti.a.t("ivaRate"),minWidth:"100px"},{id:"internalCost",label:Ti.a.t("internalCost3"),minWidth:"150px"}
1,{id:"profitability",label:Ti.a.t("costEffec"),minWidth:"100px"},{id:"barcode",label:Ti.a.t("barCode"),minWidth:"180px"},{id:"minStock",label:Ti.a.t("stockMin"),minWidth:"150px"},{id:"oemCode",label:Ti.a.t("CodOEM"),minWidth:"150px"},{id:"RG5329",label:Ti.a.t("rgAchived"),minWidth:"150px"}],Ov=Object(u.a)((e=>({table:{minWidth:"750px",overflowX:"scroll"},loading:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,width:"calc(100vw - 300px)","@media (max-width: 900px)":{width:"calc(100vw - 150px)"},"@media (max-width: 500px)":{width:"calc(100vw - 50px)"}},empty:{display:"flex",justifyContent:"center",alignItems:"center",width:"calc(100vw - 300px)","@media (max-width: 900px)":{width:"calc(100vw - 150px)"},"@media (max-width: 500px)":{width:"calc(100vw - 50px)"}}})));var Sv=e=>{let{page:t=1,totalPages:a=1,userCountry:o,emptyStateProps:n,listLoading:r=!1,filteredProducts:s=[],handlePageChange:l=(()=>null)}=e;const c=Ov(),[d,u]=Object(i.useState)([...yv]);return Object(i.useEffect)((()=>{u("cl"===o||"uy"===o||"py"===o?yv.filter((e=>"RG5329"!==e.id)):"ar"===o?yv.filter((e=>"ivaDetail"!==e.id)):[...yv])}),[o]),Object(p.jsxs)(y.a,{sx:{width:"100%",marginTop:"5px"},children:[Object(p.jsx)(Ym.a,{sx:{width:"100%",mb:2,boxShadow:"none"},children:Object(p.jsx)(Ks.a,{style:{borderRadius:"5px"},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:c.table,children:[Object(p.jsx)(xv,{rowCount:s.length,headCells:d,importList:s}),Object(p.jsxs)($s.a,{children:[r&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{colSpan:yv.length+1,children:Object(p.jsx)("div",{className:c.loading,children:Object(p.jsx)(Od.a,{style:{color:ui.a.primary400}})})})}),0===s.length&&!r&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{colSpan:yv.length+1,children:Object(p.jsx)("div",{className:c.empty,children:Object(p.jsx)(Fc,{isVertical:!0,containerStyle:{minHeight:500},...n})})})}),!r&&(null===s||void 0===s?void 0:s.map(((e,t)=>Object(p.jsx)(Cv,{row:e,errors:e.errors?e.errors:"",userCountry:o},t))))]})]})})}),a>1&&Object(p.jsx)("div",{style:{marginBottom:"30px"},children:Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:t,totalPages:a,onPageChange:e=>l(e)})})})]})},Ev=a.p+"static/media/error-upload-file.08f289b9.svg",Iv=a.p+"static/media/search-circle.52ca63f9.svg";var wv=e=>{let{userCountry:t,previewData:a={},data:i=[],page:o=1,totalPages:n=0,loadingData:r=!1,selectedOption:s="",totalItems:l=0,totalErrorItems:c=0,handlePageChange:d=(()=>{}),setSelectedOption:u=(()=>{}),setCurrentStep:m=(()=>{}),handleResetPreview:g=(()=>{})}=e;const b={page:o,totalItems:l,totalErrorItems:c,selectedOption:s,previewListTotalItems:a.previewListTotalItems,setSelectedOption:u,handlePageChange:d},h={page:o,totalPages:n,userCountry:t,emptyStateProps:{title:Ti.a.t("noResult"),text:Ti.a.t("emptyStateChangeFilter"),img:Iv,containerStyle:{minHeight:400}},filteredProducts:i,listLoading:r,handlePageChange:d},x={title:Ti.a.t("bulkImportFileErrorTitle"),subTitle:Ti.a.t("bulkImportFileErrorText"),buttonText:Ti.a.t("uploadAgain"),style:{marginBottom:25,marginTop:15,border:`1px solid ${ui.a.grey400}`,borderRadius:20,padding:15},img:Ev,primaryButtonIcon:"upload",primaryButtonIconStyle:{width:22,height:20,marginTop:2},handleButtonClick:()=>{m(1),g()}};return Object(p.jsxs)(p.Fragment,{children:[c>0&&Object(p.jsx)(Ef,{...x}),Object(p.jsx)(bv,{...b}),Object(p.jsx)(Sv,{...h})]})};const Tv=[Ti.a.t("downloadBaseFile"),Ti.a.t("uploadFile"),Ti.a.t("columnOrder"),Ti.a.t("productCheck")];var Pv=Ei((()=>{const{userData:e}=Object(i.useContext)(Qa),t=null===e||void 0===e?void 0:e.country,a=null===e||void 0===e?void 0:e.plan_name,[o,n]=Object(i.useState)(0),[r,s]=Object(i.useState)(!1),[l,c]=Object(i.useState)(!1),[d,u]=Object(i.useState)(!1),[m,g]=Object(i.useState)(Ti.a.t("all")),[b,h]=Object(i.useState)(!1),[x,f]=Object(i.useState)(!0),[v,j]=Object(i.useState)(!1),[A,C]=Object(i.useState)(!1),[y,O]=Object(i.useState)(null),{fileSelectedModified:S,selectedValues:E,columnObjectsInitialState:I,columnTitles:w,fileSelected:T,errorFile:P,errorLimitRequest:R,setErrorFile:N,handleFileSelection:L,handleNewColumnTitleSelected:k}=Object(iv.a)(t),{previewData:B,getFilePreview:D,getFileStats:F,handleSetPageChange:M,handleResetPreview:V}=mv(),{previewList:W,previewListLoading:H,totalPages:U,page:_}=B,{totalItems:z,totalErrorItems:q}=null===B||void 0===B?void 0:B.fileStats;Object(i.useEffect)((()=>{3===o&&D(1,m)}),[m,o]);const G=()=>{j(!v),f(!0),s(!1),u(!1),O(null),h(!1),C(!1)};Object(i.useEffect)((()=>{3===o&&(D(_,m),F(),Q(1),window.scrollTo({top:0,left:0,behavior:"smooth"}))}),[o]);const Y=async()=>{C(!0);try{await Ya.bulkImport.sendBulkImportJob(),c(!0),Object(Rf.d)()}catch(e){return void K(e)}s(!1),C(!1)},K=e=>{if(u(!0),j(!0),console.error("Error al enviar archivo CSV:",e),e.response&&e.response.data&&e.response.data.error){var t;const a=null===(t=e.response.data.error[0])||void 0===t?void 0:t.code;O(a)}C(!1),window.scrollTo({top:0,left:0,behavior:"smooth"})},X=()=>{switch(o<Tv.length-2&&n(o+1),o){case 1:Object(Rf.m)();break;case 2:Object(Rf.k)(),s(!0),Q(1),g(Ti.a.t("all"));break;case 3:j(!0)}}
1,Z=e=>{0===o&&e(),X()},Q=e=>{e!==_&&(M(e),D(e,m),F(),window.scrollTo({top:0,left:0,behavior:"smooth"}))},J={secondaryButtonText:Ti.a.t("back"),primaryButtonText:Ti.a.t("next"),primaryDisabled:1===o&&(!T||!1!==R)||3===o&&z===q||A,renderTitleComponent:()=>Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Of,{style:{marginBottom:20},title:Ti.a.t("bulkImportTitle")}),0===o&&Object(p.jsx)(Ef,{...ie,style:{marginBottom:30}})]}),primaryButtonClick:()=>0===o?Z(Rf.h):X(),secondaryButtonClick:()=>{switch(o>0&&n(o-1),o){case 0:window.open("/v3/bulkImport","_self");break;case 1:Object(Rf.n)(),r||N(!1);break;case 2:Object(Rf.l)();break;case 3:V()}},primaryLoading:A},$={userCountry:t},ee={userCountry:t,userPlan:a,fileSelected:T,errorFile:P,customError:R,handleFileSelection:L,handleDropFile:()=>{Object(Rf.b)()}},te={sendFile:r,userCountry:t,fileSelectedModified:S,columnObjectsInitialState:I,columnTitlesInitialState:w,selectedFile:T,selectedValuesInitialState:E,handleNewColumnTitleSelected:k,handleApiPost:async()=>{C(!0);const e=Object(Yf.h)(w);try{await Ya.bulkImport.sendBulkImportFile({csvData:e})}catch(t){return void K(t)}n(3),Q(1),s(!1),C(!1)},setSendFile:s},ae={errorCode:y,successRequest:l,errorRequest:d,isChecked:b,buttonDisabled:x,loading:A,openModal:v,handleCheckboxChange:e=>{h(e.target.checked),f(!e.target.checked)},handleCloseModal:G,handleCloseWithAmplitude:()=>{G(),Object(Rf.c)()},handleSendRequest:()=>{b&&Y()},handleCloseSuccessModal:()=>{window.open("/v3/bulkImport","_self")}},ie={title:Ti.a.t("downloadFile"),subTitle:Ti.a.t("downloadFileInfo"),buttonText:Ti.a.t("next"),secondaryButtonText:Ti.a.t("downloadFileButton"),img:ov,handleButtonClick:()=>Z(Rf.i),handleSecondaryButtonClick:()=>{const e=document.createElement("a"),a="ar"===t?$f:"cl"===t?ev:"uy"===t?tv:"py"===t?av:$f;e.href=a,e.setAttribute("download","planilla_base.xlsx"),e.download="planilla_base.xlsx",document.body.appendChild(e),e.click(),document.body.removeChild(e),Object(Rf.a)()}},oe={userCountry:t,previewData:B,data:W,page:_,totalPages:U,loadingData:H,totalItems:z,totalErrorItems:q,selectedOption:m,setSelectedOption:g,handleResetPreview:V,handlePageChange:Q,setCurrentStep:n};return Object(p.jsxs)(xm,{...J,children:[Object(p.jsx)(Gr,{activeStep:o,steps:Tv}),0===o&&Object(p.jsx)(Hf,{...$}),1===o&&Object(p.jsx)(Gf,{...ee}),2===o&&Object(p.jsx)(Xf,{...te}),3===o&&Object(p.jsx)(wv,{...oe}),Object(p.jsx)(Jf,{...ae})]})}),"bulkImport","products",!0);const Rv=Object(u.a)((()=>({grid:{padding:"10px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"26px",lineHeight:"26px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},link:{display:"flex",flexDirection:"row",alignItems:"center",color:ui.a.primary400,fontSize:"14px",lineHeight:"16px",fontFamily:"Work Sans, sans-serif",fontWeight:400,"&:hover":{textDecoration:"none",color:ui.a.primary400},"@media (max-width: 755px)":{marginTop:15}},info:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",marginLeft:5},iconArrow:{fontSize:"20px",display:"flex",alignItems:"center",padding:"5px 0 0 5px"},linksContainer:{display:"flex",gap:15,alignItems:"center",justifyContent:"flex-end"}})));var Nv=e=>{var t,a;let{title:i="",style:o={},tutorialLinksByCountry:n={}}=e;const r=Rv(),s=n[null===(t=Kn())||void 0===t||null===(a=t.data)||void 0===a?void 0:a.country];return Object(p.jsx)(v.a,{item:!0,style:o,container:!0,className:r.grid,xs:12,md:12,xl:12,children:Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},justifyContent:"space-between",children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:r.title,children:i})}),s&&Object(p.jsx)(v.a,{className:r.linksContainer,children:Object(p.jsxs)(so.a,{href:s,className:r.link,target:"_blank",rel:"noopener noreferrer",children:[Object(p.jsx)(M,{name:"questionCircle"}),Object(p.jsx)(cn.a,{className:r.info,children:Ti.a.t("recommendedTutorial")}),Object(p.jsx)(ni.a,{className:r.iconArrow,name:"greenArrow"})]})})]})})};const Lv=Object(u.a)((()=>({card:{padding:"25px 25px",borderRadius:5,boxShadow:"0px 1px 1px 0px rgba(0, 0, 0, 0.10)",width:"100%",backgroundColor:ui.a.white,marginTop:10,display:"flex",alignItems:"center",justifyContent:"space-between","@media (max-width: 600px)":{width:"100%",padding:20,flexDirection:"column"},"@media (max-width: 1100px)":{paddingLeft:20,paddingTop:20,paddingRight:20,paddingBottom:20},"@media (max-width: 450px)":{flexDirection:"column"}},leftContent:{display:"flex",alignItems:"center",justifyContent:"flex-start",ga
1p:20,flex:1,"@media (max-width: 600px)":{flexDirection:"column"}},infoContent:{display:"flex",alignItems:"flex-start",flexDirection:"column",justifyContent:"center",gap:10,"@media (max-width: 600px)":{alignItems:"center"}},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"18px",display:"flex",flexDirection:"row","@media (max-width: 600px)":{textAlign:"center"}},subTitle:{lineHeight:1.4,fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"14px",flexDirection:"row",color:ui.a.textSecondary,"@media (max-width: 600px)":{textAlign:"center"}},img:{maxWidth:90,width:"100%"},secondaryButton:{width:"auto","@media (max-width: 600px)":{width:"100%",justifyContent:"center"}},primaryButton:{marginLeft:10,"@media (max-width: 600px)":{marginLeft:0,marginTop:10,width:"100%"}},primaryButtonStyle:{"@media (max-width: 600px)":{width:"100%",justifyContent:"center"}}})));var kv=e=>{let{title:t="",buttonText:a="",primaryButtonIcon:i="",primaryButtonIconStyle:o={},img:n=On,style:r={},subTitle:s="",secondaryButtonText:l="",disabled:c=!1,handleButtonClick:d=(()=>{}),handleSecondaryButtonClick:u=(()=>{})}=e;const m=Lv();return Object(p.jsxs)(v.a,{style:r,container:!0,className:m.card,children:[Object(p.jsxs)(v.a,{className:m.leftContent,item:!0,children:[Object(p.jsx)(di.a,{className:m.img,component:"img",src:n}),Object(p.jsxs)(v.a,{className:m.infoContent,children:[Object(p.jsx)(cn.a,{className:m.title,children:t}),Boolean(s)&&Object(p.jsx)(cn.a,{className:m.subTitle,children:s}),Boolean(l)&&Object(p.jsx)(si,{containerClass:m.secondaryButton,medium:!0,type:"secondary",onClick:u,children:l})]})]}),Object(p.jsx)(v.a,{item:!0,className:m.primaryButton,children:Object(p.jsx)(si,{showIcon:""!==i,iconType:i,iconViewBox:"0 0 20 20",iconStyle:o,medium:!0,centered:!0,type:"primary",disabled:c,onClick:d,children:a})})]})};const Bv=(e,t)=>Boolean(e)&&Object.prototype.hasOwnProperty.call(e,t),Dv=["SKU Agrupador","skuGrouper","skuAgrupador","sku_agrupador"],Fv=e=>"number"===typeof e&&Number.isFinite(e)?String(e):"string"===typeof e&&""!==e.trim()?e.trim():null,Mv=e=>Dv.reduce(((t,a)=>t||Fv(null===e||void 0===e?void 0:e[a])),null),Vv=e=>Boolean(e)&&"object"===typeof e&&!Array.isArray(e),Wv=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const i=t.find((e=>Array.isArray(null===e||void 0===e?void 0:e.childConcepts)));return i?i.childConcepts:[]},Hv=e=>{if(!Array.isArray(e))return[];const t=[],a=(e,a)=>{e.forEach((e=>{Vv(e)&&t.push({source:e,result:e,parent:a})}))};return e.forEach((e=>{if(Array.isArray(e)){const i=e[0],o=e[1];return t.push({source:i,result:o}),void a(Wv(o,i),i)}Vv(e)&&(t.push({source:e,result:e}),a(Wv(e),e))})),t},Uv=function(){let{source:e,parent:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=Fv(null===e||void 0===e?void 0:e.sku),i=Mv(e)||Mv(t);return a||i?{sku:a,grouperSku:i}:null},_v=e=>Hv(e).reduce(((e,t,a)=>{const i=Uv(t);if(!i||!Bv(t.result,"code_error"))return e;const o=(e=>{const t=(Array.isArray(e)?e:[e]).filter((e=>"string"===typeof e&&""!==e.trim())).map((e=>e.trim()));return[...new Set(t)]})(t.result.code_error);return e.push({...i,errorCodes:o.length>0?o:[null],index:a}),e}),[]),zv=e=>{if(!Uv(e))return!1;const{result:t}=e;return!Bv(t,"code_error")&&Bv(t,"id")&&null!==t.id&&void 0!==t.id},qv={img:On,title:Ti.a.t("emptyBulkImportHistoryTitle"),text:Ti.a.t("emptyBulkImportHistoryText")},Gv=Object(u.a)((()=>({table:{width:"100%"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"16px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},loading:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300},showSm:{},hiddenSm:{}})));var Yv=e=>{let{data:t=[],page:a=1,viewTotalPages:i=0,handlePageChange:o=(()=>{}),errorData:n=!1,loadingData:r=!1,handleInfoClick:s=(()=>{}),errorState:l=null}=e;const c=Gv();return Object(p.jsxs)(Ym.a,{sx:{width:"100%",mb:2,boxShadow:"none"},children:[Object(p.jsx)(cn.a,{className:c.title,children:Ti.a.t("bulkImportHistory")}),Object(p.jsx)(Ks.a,{style:{borderRadius:"5px",marginTop:20},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:c.table,children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:c.showSm,children:Ti.a.t("bulkImportDate")}),Object(p.jsx)(Js.a,{className:c.showSm,children:Ti.a.t("bulkImportVariantsImportedConcepts")}),Object(p.jsx)(Js.a,{className:c.hiddenSm,children:Ti.a.t("user")}),Object(p.jsx)(Js.a,{className:c.hiddenSm,children:Ti.a.t("bulkImportStatus")})]})}),Object(p.jsxs)($s.a,{children:[r&&!n&&Object(p.jsx)(Qs.a,{children:Object(p.jsx)(Js.a,{style:{border:"none"},colSpan:4,children:Object(p.jsx)("div",{className:c.loading,children:Object(p.jsx)(Od.a,{style:{color:ui.a.primary400}})})})}),!r&&t.map(((e,t)=>{var a,i,o;const n=(e=>"complete"===e?{className:"success",text:Ti.a.t("bulkImportVariantsStatusComplete")}:"error"===e?{className:"danger",text:Ti.a.t("bulkImportVariantsStatusError")}:{className:"warning",text:Ti.a.t("bulkImportVariantsStatusInProgress")}
1)(null===e||void 0===e?void 0:e.status),r=(e=>{var t,a,i,o;const n=Hv(null===e||void 0===e?void 0:e.log).filter(zv).length,r=n+_v(null===e||void 0===e?void 0:e.log).length;return{success:null!==(t=null===e||void 0===e||null===(a=e.countImports)||void 0===a?void 0:a.success)&&void 0!==t?t:r?n:null,of:null!==(i=null===e||void 0===e||null===(o=e.countImports)||void 0===o?void 0:o.of)&&void 0!==i?i:r||null}})(e);return Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:c.showSm,children:null===e||void 0===e?void 0:e.created_at}),Object(p.jsxs)(Js.a,{className:c.showSm,children:[null!==(a=r.success)&&void 0!==a?a:"-","/",null!==(i=r.of)&&void 0!==i?i:"-",(l=null===e||void 0===e?void 0:e.log,_v(l).length>0&&Object(p.jsx)(ni.a,{onClick:()=>s(e),name:"helpIcon",style:{cursor:"pointer",color:ui.a.error400,width:22,height:22,overflow:"visible",marginLeft:10}}))]}),Object(p.jsx)(Js.a,{className:c.hiddenSm,children:null!==(o=null===e||void 0===e?void 0:e.email)&&void 0!==o?o:"-"}),Object(p.jsx)(Js.a,{className:c.hiddenSm,children:Object(p.jsx)(Rc,{disabled:!0,classNameDiv:n.className,containerStyle:{minHeight:23},children:n.text})})]},`${(null===e||void 0===e?void 0:e.created_at)||"history"}-${(null===e||void 0===e?void 0:e.email)||t}`);var l}))]})]})}),i>1&&Object(p.jsx)("div",{style:{marginBottom:"30px"},children:Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:a,totalPages:i,onPageChange:o})})}),!n&&!r&&0===t.length&&Object(p.jsx)(Fc,{containerStyle:{maxWidth:800,margin:"60px auto 50px auto"},testId:"empty-state",...qv}),n&&!r&&l&&Object(p.jsx)(Fc,{containerStyle:{maxWidth:800,margin:"60px auto 50px auto"},testId:"error-state",...l})]})};const Kv="-",Xv=(e,t)=>e&&e!==t?e:Kv,Zv=Object(u.a)((()=>({modalStyle:{width:1100,maxWidth:"calc(100vw - 48px)","@media (max-width: 801px)":{width:"90%"}},innerContentStyle:{padding:20,maxHeight:"80vh",overflowY:"auto"},leftContent:{display:"flex",alignItems:"center",gap:20},table:{width:"100%","@media (max-width: 479px)":{minWidth:700}},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"16px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},text:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"14px",lineHeight:"18px",display:"flex",margin:"5px 0px",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},showSm:{padding:"10px !important"}})));var Qv=e=>{let{row:t,handleCloseModal:a,openModal:i}=e;const o=Zv(),n={HEADING_NOT_FOUND:{text:Ti.a.t("errorHeadingNotFound"),field:Ti.a.t("bulkImportVariantsHeadingField")},SUBHEADING_NOT_FOUND:{text:Ti.a.t("errorSubHeadingNotFound"),field:Ti.a.t("bulkImportVariantsSubheadingField")},TYPE_NOT_MATCH:{text:Ti.a.t("errorTypeNotEditable"),field:Ti.a.t("bulkImportVariantsTypeField")},CURRENCY_NOT_FOUND:{text:Ti.a.t("errorInvalidCurrency"),field:Ti.a.t("bulkImportVariantsCurrencyField")},CURRENCY_NOT_MATCH:{text:Ti.a.t("errorCurrencyNotEditable"),field:Ti.a.t("bulkImportVariantsCurrencyField")},CURRENCY_NOT_ACTIVATE:{text:Ti.a.t("errorInvalidCurrency"),field:Ti.a.t("bulkImportVariantsCurrencyField")},PROVIDER_NOT_FOUND:{text:Ti.a.t("errorProviderNotFound"),field:Ti.a.t("bulkImportVariantsProviderField")},LIMITATIONS_MAX_USAGE:{text:Ti.a.t("limitations.skusMaxUsage"),field:Ti.a.t("bulkImportVariantsLimitReachedField")},SKU_DUPLICATED:{text:Ti.a.t("bulkImportVariantsSkuDuplicatedError"),field:Ti.a.t("bulkImportVariantsSkuColumn")},CONCEPT_NOT_PARENT:{text:Ti.a.t("bulkImportVariantsConceptNotParentError"),field:Ti.a.t("variantSkuGrouperHeader")},IS_REQUIRED:{text:Ti.a.t("errorRequiredField")},IMAGE_URL_ERROR:{text:Ti.a.t("errorInvalidURL"),field:Ti.a.t("urlImg")},HEADING_ERROR:{text:Ti.a.t("errorHeading"),field:Ti.a.t("bulkImportVariantsHeadingField")},SUB_HEADING_ERROR:{text:Ti.a.t("errorSubHeading"),field:Ti.a.t("bulkImportVariantsSubheadingField")},ATTRIBUTE_NOT_EXISTS:{text:Ti.a.t("errorAttributeNotExists"),field:Ti.a.t("attributes")},ATTRIBUTE_DISABLED:{text:Ti.a.t("errorAttributeDisabled"),field:Ti.a.t("attributes")},ATTRIBUTE_MAX:{text:Ti.a.t("errorAttributeMax"),field:Ti.a.t("attributes")},ATTRIBUTE_ITEM_NOT_EXIST:{text:Ti.a.t("errorAttributeItemNotExist"),field:Ti.a.t("attributes")},ATTRIBUTE_ITEM_DISABLED:{text:Ti.a.t("errorAttributeItemDisabled"),field:Ti.a.t("attributes")},ATTRIBUTE_ITEM_UNLINKED:{text:Ti.a.t("errorAttributeItemUnlinked"),field:Ti.a.t("attributes")}},r=_v(null===t||void 0===t?void 0:t.log),s=(l=null===t||void 0===t?void 0:t.log,Array.isArray(l)&&l.some((e=>!Array.isArray(e)&&"string"===typeof(null===e||void 0===e?void 0:e.code)&&""!==e.code.trim())));var l;return Object(p.jsx)(Sm,{isOpen:i,handleClose:a,primaryHeader:!0,secondaryButtonClick:a,title:Ti.a.t("bulkImportVariantsErrorDetailTitle"),modalStyle:o.modalStyle,showButtons:!1,innerContentStyle:o.innerContentStyle,children:Object(p.jsx)(Ks.a,{style:{borderRadius:"5px",width:"100%",marginBottom:20},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:o.table,children:[Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{style:{width:190},className:o.showSm,children:Ti.a.t("bulkImportVariantsGrouperSkuColumn")}),Object(p.jsx)(Js.a,{style:{width:190},className:o.showSm,children:Ti.a.t("bulkImportVariantsSkuColumn")}),Object(p.jsx)(Js.a,{style:{width:150},className:o.showSm,children:Ti.a.t("bulkImportVariantsFieldsColumn")}),Object(p.jsx)(Js.a,{className:o.showSm,children:Ti.a.t("bulkImportVariantsErrorTypeColumn")})]})}),Object(p.jsxs)($s.a,{children:[s&&Object(p.jsx)(Qs.a,{children:Object(p.jsx)(Js.a,{colSpan:4,className:o.showSm,children:Ti.a.t("jobError")})}),r.map((e=>{let{sku:t,grouperSku:a,errorCodes:i,index:r}=e;return Object(p.jsxs)(Qs.a,{children:[Object(p.jsx)(Js.a,{className:o.showSm,children:a||Kv}),Object(p.jsx)(Js.a,{className:o.showSm,children:Xv(t,a)}),Object(p.jsx)(Js.a,{className:o.showSm,children:i.map(((e,t)=>((e,t)=>{var a;return Object(p.jsxs)("p",{className:o.text,children:["\u2022 ",(null===(a=n[e])||void 0===a?void 0:a.field)||Kv]},t)}
1)(e,`field-${e||"generic"}-${t}`)))}),Object(p.jsx)(Js.a,{className:o.showSm,children:i.map(((e,t)=>((e,t)=>{var a;return Object(p.jsxs)("p",{className:o.text,children:["\u2022 ",(null===(a=n[e])||void 0===a?void 0:a.text)||Ti.a.t("bulkImportErrorModal")]},t)})(e,`message-${e||"generic"}-${t}`)))})]},`${a||Kv}-${t||Kv}-${r}`)}))]})]})})})};const Jv={ar:"https://ayuda.contabilium.com/hc/es/articles/53049668996115-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",cl:"https://ayuda.contabilium.cl/hc/es/articles/53049812639507-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",uy:"https://ayuda.contabilium.com.uy/hc/es/articles/53049919361171-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes",py:"https://ayuda.contabilium.com.py/hc/es-419/articles/53049831908499-Importaci%C3%B3n-masiva-de-productos-y-servicios-con-variantes"},$v="checking",ej="idle",tj="running",aj="error";var ij=Ei((()=>{const[e,t]=Object(i.useState)({historyList:[],historyListLoading:!0,historyListError:!1,page:1,totalPages:1}),[a,o]=Object(i.useState)(!1),[n,r]=Object(i.useState)({}),[s,l]=Object(i.useState)($v),d=Object(i.useRef)(!0),u=Object(i.useRef)(0);Object(i.useEffect)((()=>(d.current=!0,()=>{d.current=!1})),[]);const{historyList:m,historyListLoading:g,historyListError:b,totalPages:h,page:x}=e,f=async e=>{const a=++u.current;t((e=>({...e,historyListLoading:!0,historyListError:!1})));try{var i,o;const n=await Ya.bulkImportVariant.getBulkImportVariantHistory({page:e});if(!d.current||a!==u.current)return;const r=Array.isArray(n)?n:null!==(i=null===n||void 0===n?void 0:n.data)&&void 0!==i?i:[];t({historyList:r,historyListLoading:!1,historyListError:!1,page:e,totalPages:null!==(o=null===n||void 0===n?void 0:n.last_page)&&void 0!==o?o:1})}catch(n){if(!d.current||a!==u.current)return;t((e=>({...e,historyListLoading:!1,historyListError:!0})))}};Object(i.useEffect)((()=>{f(1);let e=!1;return(async()=>{try{const t=await Ya.bulkImportVariant.getBulkImportVariantRunning();e||l(t?tj:ej)}catch(t){e||l(aj)}})(),()=>{e=!0}}),[]),Object(i.useEffect)((()=>{if(!(s===tj||s===aj))return;let e,t=!1;const a=async()=>{try{const i=await Ya.bulkImportVariant.getBulkImportVariantRunning();if(t)return;l(i?tj:ej),i||f(1)}catch(i){t||l(aj)}finally{t||(e=setTimeout(a,5e3))}};return e=setTimeout(a,5e3),()=>{t=!0,clearTimeout(e)}}),[s]);const v=s===tj,j=s===aj,A={title:Ti.a.t("bulkImportVariantsProductsAndServices"),subTitle:j?Ti.a.t("bulkImportVariantsRunningStatusError"):v?Ti.a.t("importRunningError"):Ti.a.t("bulkImportVariantsProductsAndServicesSubTitle"),buttonText:Ti.a.t("startBulkImport"),img:Pf,disabled:s!==ej,handleButtonClick:()=>{s===ej&&(Object(c.b)("Importaci\xf3n variantes - Empezar importaci\xf3n"),window.open("/v3/bulkImportVariant/start","_self"))}},C={showButtons:!1,renderTitleComponent:()=>Object(p.jsxs)("div",{children:[Object(p.jsx)(Nv,{title:Ti.a.t("bulkImportTitle"),tutorialLinksByCountry:Jv}),Object(p.jsx)(kv,{...A,style:{marginBottom:25,marginTop:15}})]})},y={img:Ev,title:Ti.a.t("errorBulkImportHistoryTitle"),text:Ti.a.t("tryAgain")},O={data:m,page:x,viewTotalPages:h,handlePageChange:e=>{e!==x&&f(e)},loadingData:g,errorData:b,handleInfoClick:e=>{r(e),o(!0)},errorState:y},S={openModal:a,row:n,handleCloseModal:()=>o(!1)};return Object(p.jsxs)(xm,{...C,children:[Object(p.jsx)(Yv,{...O}),a&&Object(p.jsx)(Qv,{...S})]})}),"bulkImport","products",!0),oj=a(128);const nj={ar:"ARS",cl:"CLP",py:"Gs",uy:"UYU"},rj={ar:"21",cl:"19",py:"5",uy:"10"},sj={cl:"Gravado a tasa b\xe1sica",py:"Gravado al 5%",uy:"Gravado a tasa m\xednima"},lj={cl:"Exento",py:"0",uy:"Exento de IVA"},cj={Nombre:"Pantal\xf3n b\xe1sico","C\xf3d SKU agrupador":"panta-2",Tipo:"V",Estado:"A","URL imagen":"https://imagen.com/imagen.jpg",Rubro:"Indumentaria hombre",Subrubro:"Adulto","Descripci\xf3n":"Pantal\xf3n b\xe1sico","C\xf3digo proveedor":"233232","Cuentas compra":"1.2.4","Cuentas venta":"4.1.1","Cuenta mercader\xeda":"1.1.5.1","Alcanzado RG":"No",Observaciones:"b\xe1sico","Nombre de variante":"Pantal\xf3n gabardina XL azul hombre","Atributo 1":"Color","Variante de atributo 1":"Azul","Atributo 2":"Talle","Variante de atributo 2":"XL","Precio unitario":"1000","Costo interno":"800",Rentabilidad:"20","C\xf3digo de barra":"34934204991","Stock m\xednimo":"3","SKU variante":"PANRJGABXL","C\xf3d oem":"OEM-4451"},dj={Nombre:"Pantal\xf3n run","C\xf3d SKU agrupador":"SKU-DEF456",Tipo:"G",Estado:"I","URL imagen":"https://imagen.com/imagen2.jpg",Rubro:"Indumentaria mujer",Subrubro:"Adulto","Descripci\xf3n":"Pantal\xf3n run","C\xf3digo proveedor":"8765","Cuentas compra":"1.2.4","Cuentas venta":"4.1.1","Cuenta mercader\xeda":"1.1.5.1","Alcanzado RG":"Si",Observaciones:"nuevo","Nombre de variante":"Pantal\xf3n run talle M","Atributo 1":"Talle","Variante de atributo 1":"M","Atributo 2":"Color","Variante de atributo 2":"Negro","Precio unitario":"8900","Costo interno":"5000",Rentabilidad:"20","C\xf3digo de barra":"34934204992","Stock m\xednimo":"2","SKU variante":"PANRUNM","C\xf3d oem":"OEM-4452"},uj=Object(T.a)(Ks.a)({borderRadius:5,border:`1px solid ${ui.a.grey400}`,marginTop:15,marginBottom:35}),pj=Object(T.a)(Xs.a)({minWidth:2400}),mj=Object(T.a)(Js.a)({backgroundColor:ui.a.grey100,borderRight:`1px solid ${ui.a.grey400}`,minWidth:150,fontSize:12,fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary,padding:"10px 16px"}),gj=Object(T.a)(Js.a)({borderRight:`1px solid ${ui.a.grey400}`,minWidth:150,fontSize:12,fontFamily:"Work Sans, sans-serif",color:ui.a.textSecondary,padding:"10px 16px"}),bj=Object(T.a)("div")({display:"flex",alignItems:"center",justifyContent:"space-between",gap:6}),hj=Object(T.a)("span")({borderRadius:"50%",backgroundColor:ui.a.secondary300,minWidth:24,width:24,height:24,display:"inline-flex",alignItems:"center",justifyContent:"center",color:ui.a.white,fontFamily:"Work Sans, sans-serif",fontSize:12,fontWeight:500,marginLeft:6}),xj=Object(T.a)("span")({color:ui.a.error400,fontSize:13,fontWeight:600,marginLeft:3}),fj=Object(T.a)("div")({display:"flex",flexWrap:"wrap",justifyContent:"space-between","@media (max-width: 768px)":{flexDirection:"column"}}),vj=Object(T.a)("div")({width:"49%",boxSizing:"border-box","@media (max-width: 768px)":{width:"100%"}}),jj=Object(T.a)(hr.a)({borderWidth:1,borderColor:ui.a.grey200,borderStyle:"solid",borderRadius:6,padding:10,marginBottom:15,display:"flex",flexWrap:"nowrap",alignItems:"flex-start",flexDirection:"row"}),Aj=Object(T.a)(hr.a)({borderRadius:"50%",backgroundColor:ui.a.secondaryLight,height:28,width:28,minWidth:28,color:ui.a.secondary300,textAlign:"center",marginRight:10,display:"flex",alignItems:"center",justifyContent:"center"}),Cj=Object(T.a)(S.a)({fontFamily:"Work Sans, sans-serif !important",fontSize:"12px !important"}),yj=Object(T.a)(hr.a)({flex:1,display:"flex",flexDirection:"column",gap:4}),Oj=Object(T.a)(S.a)({fontFamily:"Work Sans, sans-serif !important",fontSize:"14px !important",fontWeight:"600 !important",color:ui.a.textPrimary}),Sj=Object(T.a)(S.a)({fontFamily:"Work Sans, sans-serif !important",fontSize:"14px !important",color:ui.a.textSecondary,lineHeight:1.4});var Ej=e=>{let{userCountry:t}=e;const{columns:a,rows:o}=Object(i.useMemo)((()=>(e=>{const t=!["cl","uy","py"].includes(e),a=Object.entries(Object(oj.a)(e)).map((e=>
1{let[t,a]=e;return{key:t,name:a.templateName||a.realName,required:"Si"===a.required}})),i=t?8:7,o={Nombre:2,"C\xf3d SKU agrupador":3,Moneda:4,"Atributo 1":5,"Precio unitario":6},n=a.length-1;return{columns:[{header:Ti.a.t("variantIndicationFirstRowTitle"),number:1},...a.map(((e,a)=>({header:a===n?"":e.name,required:e.required,number:t&&"Tasa IVA"===e.key?7:void 0})))],rows:[[{value:Ti.a.t("existingProduct")},...a.map((t=>{return{value:(a=t.key,i=e,"Moneda"===a?nj[i]||nj.ar:"Tasa IVA"===a?rj[i]||rj.ar:"Tipo IVA"===a?sj[i]||"":cj[a]||""),number:o[t.key]};var a,i}))],[{value:Ti.a.t("tableNewProduct")},...a.map(((t,a)=>{return{value:a===n?"":(o=t.key,r=e,"Moneda"===o?"USD":"Tasa IVA"===o?"0":"Tipo IVA"===o?lj[r]||"":dj[o]||""),number:a===n?i:void 0};var o,r}))]]}})(t)),[t]),n=Object(i.useMemo)((()=>{const e=[{title:Ti.a.t("variantIndicationFirstRowTitle"),text:Ti.a.t("variantIndicationFirstRowText")},{title:Ti.a.t("variantIndicationNameTitle"),text:Ti.a.t("variantIndicationNameText")},{title:Ti.a.t("variantIndicationSkuTitle"),text:Ti.a.t("variantIndicationSkuText")},{title:Ti.a.t("variantIndicationCurrencyTitle"),text:Ti.a.t("variantIndicationCurrencyText")},{title:Ti.a.t("variantIndicationAttributeTitle"),text:Ti.a.t("variantIndicationAttributeText")},{title:Ti.a.t("variantIndicationUnitPriceTitle"),text:Ti.a.t("variantIndicationUnitPriceText")}];return"ar"===t&&e.push({title:Ti.a.t("variantIndicationIvaRateTitle"),text:Ti.a.t("variantIndicationIvaRateText")}),e.push({title:"",text:Ti.a.t("variantIndicationNonRequiredText")}),e}),[t]),r=Math.ceil(n.length/2),s=n.slice(0,r),l=n.slice(r),c=(e,t,a)=>Object(p.jsxs)(jj,{container:!0,children:[Object(p.jsx)(Aj,{item:!0,children:Object(p.jsx)(Cj,{children:a+t+1})}),Object(p.jsxs)(yj,{item:!0,children:[Boolean(e.title)&&Object(p.jsx)(Oj,{children:e.title}),Object(p.jsx)(Sj,{children:e.text})]})]},`indication-${a+t}`),d=e=>null!==e&&void 0!==e?Object(p.jsx)(hj,{children:e}):null;return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(uj,{children:Object(p.jsxs)(pj,{children:[Object(p.jsx)(Zs.a,{children:Object(p.jsx)(Qs.a,{children:a.map(((e,t)=>Object(p.jsx)(mj,{children:Object(p.jsxs)(bj,{children:[Object(p.jsxs)("span",{children:[e.header,e.required&&Object(p.jsx)(xj,{children:"*"})]}),d(e.number)]})},`head-${t}`)))})}),Object(p.jsx)($s.a,{children:o.map(((e,t)=>Object(p.jsx)(Qs.a,{children:e.map(((e,a)=>Object(p.jsx)(gj,{children:Object(p.jsxs)(bj,{children:[Object(p.jsx)("span",{children:e.value}),d(e.number)]})},`cell-${t}-${a}`)))},`row-${t}`)))})]})}),Object(p.jsxs)(fj,{children:[Object(p.jsx)(vj,{children:s.map(((e,t)=>c(e,t,0)))}),Object(p.jsx)(vj,{children:l.map(((e,t)=>c(e,t,r)))})]})]})};const Ij=Object(T.a)(hr.a)({width:"100%"});var wj=e=>{let{userCountry:t}=e;const a=[{title:Ti.a.t("variantsTemplateGuide"),children:Object(p.jsx)(Ej,{userCountry:t}),value:1}],i={borderWidth:1,borderColor:ui.a.grey300,borderStyle:"solid",borderRadius:5,marginTop:25},o={color:ui.a.textPrimary,fontWeight:600,fontSize:16,padding:"0px !important"};return Object(p.jsx)(Ij,{children:Object(p.jsx)(_p,{accordionList:a,customTitleContainerStyle:i,collapseBodyStyle:{border:"none"},customTitleStyle:o})})},Tj=a.p+"static/media/Planilla_base_variantes_AR.ed38ab87.xlsx",Pj=a.p+"static/media/Planilla_base_variantes_Cl.44f45824.xlsx",Rj=a.p+"static/media/Planilla_base_variantes_uy.95e9db12.xlsx",Nj=a.p+"static/media/Planilla_base_variantes_PY.f062323a.xlsx",Lj=a(371);const kj=Ya.bulkImportVariant.getBulkImportVariantPreview,Bj="SET_PREVIEW_LOADING",Dj="SET_PREVIEW_SUCCESS",Fj="SET_PREVIEW_ERROR",Mj="RESET_PREVIEW",Vj="SET_STATS_LOADING",Wj="SET_STATS",Hj="SET_STATS_ERROR",Uj="SET_PAGE_CHANGE",_j={previewList:[],previewListLoading:!0,previewListError:!1,page:1,totalPages:1,previewListTotalItems:0,fileStatsLoading:!1,fileStatsError:!1,fileStats:{totalItems:0,totalErrorItems:0}},zj=(e,t)=>{switch(t.type){case Bj:return{...e,previewListLoading:!0,previewListError:null};case Dj:return{...e,previewList:t.payload.data,previewListLoading:!1,previewListError:null,page:t.payload.page,totalPages:t.payload.lastPage,previewListTotalItems:t.payload.total};case Fj:return{...e,previewListLoading:!1,previewListError:!0};case Vj:return{...e,fileStatsLoading:!0,fileStatsError:!1,fileStats:{totalItems:0,totalErrorItems:0}};case Wj:return{...e,fileStatsLoading:!1,fileStatsError:!1,fileStats:{totalItems:t.payload.totalItems,totalErrorItems:t.payload.totalErrorItems}};case Hj:return{...e,fileStatsLoading:!1,fileStatsError:!0};case Uj:return{...e,page:t.payload};case Mj:return _j;default:return e}};var qj=()=>{const[e,t]=Object(i.useReducer)(zj,_j),a=Object(i.useRef)(0),o=Object(i.useRef)(0),n=Object(i.useRef)(!0);Object(i.useEffect)((()=>()=>{n.current=!1,a.current+=1,o.current+=1}),[]);return{previewData:e,getFilePreview:async function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=++a.current;if(n.current){t({type:Bj});try{const s=i||{},l=await kj({page:e,limit:10,errors:s.errors,skuGrouper:o});if(!n.current||r!==a.current)return;t({type:Dj,payload:{data:l.data,total:l.total,lastPage:l.last_page,page:e}})}catch(s){if(!n.current||r!==a.current)return;t({type:Fj})}}},getFileStats:async()=>{const e=++o.current;if(n.current){t({type:Vj});try{const{total:a,wrong:i}=await kj({page:0});if(!n.current||e!==o.current)return;t({type:Wj,payload:{totalItems:a,totalErrorItems:i}})}catch(a){if(!n.current||e!==o.current)return;t({type:Hj})}}},handleSetPageChange:e=>{t({type:Uj,payload:e})},handleResetPreview:()=>{a.current+=1,o.current+=1,t({type:Mj})}}};var Gj=()=>{const[e,t]=Object(i.useState)(!1),[a,o]=Object(i.useState)(!1),[n,r]=Object(i.useState)(!0),[s,l]=Object(i.useState)(!1),[c,d]=Object(i.useState)(!1),[u,p]=Object(i.useState)(!1),[m,g]=Object(i.useState)(null),b=Object(i.useRef)(!1),h=e=>{var t,a,i,o,n,r;return(null===e||void 0===e||null===(t=e.response)||void 0===t||null===(a=t.data)||void 0===a||null===(i=a.error)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.code)||(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.code)||null};return{openModal:e,isChecked:a,buttonDisabled:n,loading:s,successRequest:c,errorRequest:u,errorCode:m,openConfirmModal:()=>{d(!1),p(!1),g(null),t(!0)},closeModal:()=>{t(!1),o(!1),r(!0),d(!1),p(!1),g(null),l(!1)},handleCheckboxChange:e=>{o(e.target.checked),r(!e.target.checked)},submitImport:async e=>{if(a&&!b.current){b.current=!0,l(!0);try{await e(),d(!0)}catch(t){p(!0),g(h(t))}finally{b.current=!1,l(!1)}}},showRequestError:e=>{p(!0),g(h(e)),t(!0)}}};const Yj=Object(T.a)(S.a)({fontWeight:500,fontSize:"16px",lineHeight:"20px",color:ui.a.textPrimary,fontFamily:"Work Sans, sans-serif"}),Kj=Object(T.a)(hr.a)({marginTop:20,"@media (max-width: 768px)":{marginTop:20,marginBottom:10}}),Xj=Object(T.a)(S.a)({fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:ui.a.textSecondary,fontFamily:"Work Sans, sans-serif"}),Zj=Object(T.a)("span")({color:ui.a.error400,fontSize:13}),Qj=Object(T.a)("div")({maxWidth:"100%",overflowX:"auto"}),Jj=Object(T.a)("div")({whiteSpace:"nowrap",maxWidth:"100%",minWidth:"750px"}),$j=Object(T.a)(hr.a)({borderBottom:`1px solid ${ui.a.grey300}`,marginTop:45,marginBottom:15}),eA=Object(T.a)(S.a)({fontWeight:600,fontSize:"14px",lineHeight:"20px",color:ui.a.textPrimary,fontFamily:"Work Sans, sans-serif",paddingBottom:15}),tA=Object(T.a)(S.a)({fontWeight:400,fontSize:"14px",lineHeight:"18px",color:ui.a.textSecondary,fontFamily:"Work Sans, sans-serif",alignContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),aA=Object(T.a)(hr.a)({paddingRight:"100px","@media (max-width: 900px)":{paddingRight:"20px"}});var iA=e=>{let{columnTitlesInitialState:t={},sendFile:a=!1,selectedValuesInitialState:o={},columnObjectsInitialState:n=[],handleNewColumnTitleSelected:r=(()=>{}),handleApiPost:s=(()=>{}),setSendFile:l=(()=>{})}=e;const[c,d]=Object(i.useState)(t),[u]=Object(i.useState)(n),[m,g]=Object(i.useState)(o),[b,h]=Object(i.useState)(!1),[x,f]=Object(i.useState)([]),[v,j]=Object(i.useState)(!0),[A,C]=Object(i.useState)([]),y=Object(Yf.e)(u);Object(i.useEffect)((()=>{A.length<=0&&C(y.map((e=>({label:e,value:e}))))}),[u]),Object(i.useEffect)((()=>{r(c,m,u)}),[c]),Object(i.useEffect)((()=>{a&&O()}),[a]),Object(i.useEffect)((()=>
1{if(b){const{duplicatedValues:e}=Object(Yf.b)(m);f(e)}}),[m]);const O=()=>{let e=!0;for(const i in c)if("Si"===c[i].required&&!m[i]){e=!1;break}const{hasDuplicates:t,duplicatedValues:a}=Object(Yf.b)(m);if(t?(window.scrollTo({top:0,left:0,behavior:"smooth"}),e=!1,h(!0),f(a),l(!1)):(h(!1),f([])),!e)return j(!1),l(!1),void window.scrollTo({top:0,left:0,behavior:"smooth"});j(!0),s()},S=[{title:Ti.a.t("columnTemplateGuide"),children:Object(p.jsx)(Mf,{}),value:2}],E={borderWidth:0,borderColor:ui.a.grey300,backgroundColor:ui.a.grey100,display:"flex",alignItems:"center",borderStyle:"solid",borderRadius:20,marginTop:20,marginBottom:10,padding:"0px 30px"},I={color:ui.a.grey600,fontWeight:500,fontSize:15};return Object(p.jsxs)(hr.a,{container:!0,direction:"column",children:[Object(p.jsx)(Kj,{item:!0,children:Object(p.jsx)(Yj,{children:Ti.a.t("columnMatchingTitle")})}),Object(p.jsx)(_p,{customTitleContainerStyle:E,collapseBodyStyle:{border:"none"},accordionList:S,activeAccordion:2,customTitleStyle:I,titleIcon:"lampIcon"}),Object(p.jsxs)(Xj,{children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)(Zj,{children:"* "})," ",Ti.a.t("required")]}),Object(p.jsx)(Qj,{children:Object(p.jsxs)(Jj,{children:[Object(p.jsxs)($j,{container:!0,item:!0,xs:12,children:[Object(p.jsx)(hr.a,{item:!0,xs:4,sm:3,children:Object(p.jsx)(eA,{children:Ti.a.t("columnName")})}),Object(p.jsx)(hr.a,{item:!0,xs:4,sm:6,children:Object(p.jsx)(eA,{children:Ti.a.t("assignField")})}),Object(p.jsx)(hr.a,{item:!0,xs:4,sm:3,children:Object(p.jsx)(eA,{children:Ti.a.t("firstRowPreview")})})]}),Object.values(c).map(((e,t)=>Object(p.jsxs)(hr.a,{container:!0,item:!0,xs:12,alignItems:"center",style:{marginTop:20,marginBottom:20},children:[Object(p.jsx)(hr.a,{item:!0,xs:4,sm:3,children:Object(p.jsxs)(tA,{children:[e.templateName||e.title,e.required&&Object(p.jsx)(Zj,{children:" * "})]})}),Object(p.jsx)(aA,{item:!0,xs:4,sm:6,children:Object(p.jsx)(Pr,{placeholder:m[e.title]?" ":Ti.a.t("selectAnOption"),disabledMinHeight:!0,defaultValue:m[e.title]?{value:m[e.title]}:null,type:x.includes(m[e.title])||!v&&"Si"===c[e.title].required&&!m[e.title]?"searchSelectConfigurationError":"searchSelectConfiguration",errorMsg:`${v||"Si"!==c[e.title].required||m[e.title]?x.includes(m[e.title])?Ti.a.t("duplicatedField"):"":Ti.a.t("requiredField")}`,showError:!0,data:A,onChange:(t,a)=>((e,t)=>{if(!t||null===t.value)return f(x.filter((e=>e!==t))),g((t=>({...t,[e]:""}))),void d((t=>({...t,[e]:{...t[e],title:e,fieldName:"",fieldValue:""}})));const a=Object(Yf.g)(u,t);g((a=>({...a,[e]:t}))),d((i=>({...i,[e]:{...i[e],title:e,fieldName:t,fieldValue:a}})))})(e.title,null===a||void 0===a?void 0:a.value)})}),Object(p.jsx)(hr.a,{item:!0,xs:4,sm:3,children:Object(p.jsx)(tA,{children:e.fieldValue&&e.fieldValue[0]?e.fieldValue[0]:""})})]},t)))]})})]})};const oA=Object(u.a)((()=>({grid:{padding:"25px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"20px",display:"flex",flexDirection:"row",color:ui.a.textPrimary},toolText:{fontSize:"13px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:ui.a.textSecondary},toolContainer:{marginTop:"10px",marginBottom:"8px",display:"flex",flexWrap:"wrap",justifyContent:"space-between"},search:{display:"flex",flexWrap:"noWrap",alignItems:"center",justifyContent:"flex-end",gap:"10px"},skuBox:{width:"220px"},skuInput:{"& .inputIconInsideEnd":{top:"50%",transform:"translateY(-50%)"}},searchText:{fontSize:"13px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary,paddingRight:"10px"},searchBox:{width:"200px"}})));var nA=e=>{let{page:t=0,totalItems:a=0,selectedOption:o="",totalErrorItems:n=0,previewListTotalItems:r=0,skuGrouper:s="",handlePageChange:l=(()=>{}),setSelectedOption:c=(()=>{}),onSkuGrouperSearch:d=(()=>{})}=e;const u=oA(),[m,g]=Object(i.useState)(s),b=1===n?Ti.a.t("variantsRowErrorSingular"):Ti.a.t("variantsRowErrorPlural"),h=[{value:Ti.a.t("all"),errors:null},{value:Ti.a.t("withoutErrorFilter"),errors:0},{value:Ti.a.t("errorFilter"),errors:1}];Object(i.useEffect)((()=>{g(s||"")}),[s]),Object(i.useEffect)((()=>
1{if(m.trim()===(s||"").trim())return;const e=setTimeout((()=>{d(m.trim())}),400);return()=>clearTimeout(e)}),[m,s,d]);const x=r>10;return Object(p.jsxs)(v.a,{item:!0,container:!0,className:u.grid,xs:12,md:12,xl:12,children:[Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},justifyContent:"space-between",children:[Object(p.jsxs)(v.a,{item:!0,md:5,sm:7,xs:12,children:[Object(p.jsx)(cn.a,{className:u.title,children:Ti.a.t("bulkImportPreviousResults")}),Object(p.jsx)(v.a,{item:!0,container:!0,className:u.toolContainer,xs:12,children:Object(p.jsx)(v.a,{item:!0,children:Object(p.jsxs)(cn.a,{sx:{flex:"1 1 100%"},className:u.toolText,children:[n," ",b," ",a]})})})]}),Object(p.jsxs)(v.a,{item:!0,container:!0,md:6,sm:5,xs:12,className:u.search,children:[Object(p.jsx)(v.a,{item:!0,className:u.skuBox,children:Object(p.jsx)(mr,{types:"inputPrimary",disabledMinHeight:!0,clearBtn:!0,containerStyle:u.skuInput,value:m,onChange:e=>g(e.target.value),handleClearBtnClick:()=>g(""),placeholder:Ti.a.t("variantsSkuGrouperFilterPlaceholder")})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:u.searchText,children:Ti.a.t("filterFor")})}),Object(p.jsx)(v.a,{item:!0,className:u.searchBox,children:Object(p.jsx)(Pr,{disabledMinHeight:!0,data:h,onChange:(e,t)=>
1{c(t)},value:h.find((e=>e.value===o.value)),placeholder:o.value?" ":Ti.a.t("all")})})]})]}),Object(p.jsx)(v.a,{container:!0,item:!0,style:{display:"flex",justifyContent:"flex-end"},children:Object(p.jsx)(pg,{shouldShowPagination:x,totalCount:r,currentPage:t,limit:10,handleTopPageChange:(e,t)=>{l(t)}})})]})};const rA={name:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},code:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit50"),VARIANT_MAX:Ti.a.t("errorVariantMax")},type:{IS_REQUIRED:Ti.a.t("errorRequiredField"),IN_ERROR:Ti.a.t("errorInvalidVariantType"),VARIANT_TYPE_NOT_MODIFIABLE:Ti.a.t("errorVariantTypeNotModifiable")},status:{IS_REQUIRED:Ti.a.t("errorRequiredField"),IN_ERROR:Ti.a.t("errorInvalidStatus")},currency:{IS_REQUIRED:Ti.a.t("errorRequiredField"),IN_ERROR:Ti.a.t("errorInvalidCurrency"),VARIANT_CURRENCY_DISTINCT:Ti.a.t("errorVariantCurrencyDistinct"),VARIANT_CURRENCY_NOT_MODIFIABLE:Ti.a.t("errorVariantCurrencyNotModifiable"),CURRENCY_NOT_FOUND:Ti.a.t("errorInvalidCurrency")},image:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150"),IMAGE_URL_ERROR:Ti.a.t("errorInvalidURL")},heading:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),HEADING_ERROR:Ti.a.t("errorHeading")},subHeading:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),SUB_HEADING_ERROR:Ti.a.t("errorSubHeading")},description:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},providerCode:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},purchasePlan:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},salePlan:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},merchandisePlan:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit150")},RG5329:{RG5329_ERROR:Ti.a.t("errorInvalidRG5329")},ivaDetail:{IVADETAIL_NOT_EXIST_ERROR:Ti.a.t("errorInvalidIvaDetail"),IVADETAIL_NOT_MATCH_ERROR:Ti.a.t("errorInvalidIvaDetail"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit30")},observations:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},variantName:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")},attribute1:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),ATTRIBUTE_NOT_EXISTS:Ti.a.t("errorAttributeNotExists")},itemAttribute1:{IS_REQUIRED:Ti.a.t("errorRequiredField"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),ATTRIBUTE_ITEM_UNLINKED:Ti.a.t("errorAttributeItemUnlinked"),VARIANT_ATTRIBUTE_REPEATED:Ti.a.t("errorVariantAttributeRepeated")},attribute2:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),ATTRIBUTE_NOT_EXISTS:Ti.a.t("errorAttributeNotExists")},itemAttribute2:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128"),ATTRIBUTE_ITEM_UNLINKED:Ti.a.t("errorAttributeItemUnlinked")},unitPrice:{IS_REQUIRED:Ti.a.t("errorRequiredField"),STRING_ERROR:Ti.a.t("errorInvalidNumberField"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),MAX_DIGITS_ERROR:Ti.a.t("errorMaxLimitPrice")},iva:{IS_REQUIRED:Ti.a.t("errorRequiredField"),IN_ERROR:Ti.a.t("errorInvalidIVA"),IN_ERROR_MO:Ti.a.t("errorInvalidIvaMonotributo")},internalCost:{STRING_ERROR:Ti.a.t("errorInvalidNumberField"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),MAX_DIGITS_ERROR:Ti.a.t("errorMaxLimitPrice")},profitability:{STRING_ERROR:Ti.a.t("errorInvalidNumberField"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),MAX_DIGITS_ERROR:Ti.a.t("errorMaxLimitProfitability")},Barcode:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit128")},minStock:{STRING_ERROR:Ti.a.t("errorInvalidMinStock"),MIN_ERROR:Ti.a.t("errorNegativeNumbers"),INT_ERROR:Ti.a.t("errorDecimals"),MAX_ERROR:Ti.a.t("errorMaxLimitMinStock")},variantCode:{SKU_REPEATED:Ti.a.t("errorSkuRepeated"),VARIANT_SKU_DUPLICATED:Ti.a.t("errorVariantSkuDuplicated"),MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit50"),VARIANT_SKU_EQUALS_PARENT:Ti.a.t("errorSkuEquals")},oemCode:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit50")},variantObservations:{MAX_LIMIT_ERROR:Ti.a.t("errorMaxLimit500")}},sA=[{id:"name",labelKey:"variantGrouperNameHeader",minWidth:"180px"},{id:"code",labelKey:"variantSkuGrouperHeader",minWidth:"160px"},{id:"variantName",labelKey:"variantNameHeader",minWidth:"180px"},{id:"variantCode",labelKey:"variantSkuHeader",minWidth:"150px"},{id:"type",labelKey:"type",minWidth:"100px"},{id:"status",labelKey:"state",minWidth:"100px"},{id:"currency",labelKey:"currency",minWidth:"100px"},{id:"image",labelKey:"urlImg",minWidth:"150px"},{id:"heading",labelKey:"category",minWidth:"150px"},{id:"subHeading",labelKey:"subcategory",minWidth:"150px"},{id:"description",labelKey:"description",minWidth:"180px"},{id:"purchasePlan",labelKey:"purchaseAcc",minWidth:"150px"},{id:"salePlan",labelKey:"saleAcc",minWidth:"150px"},{id:"merchandisePlan",labelKey:"merchAcc",minWidth:"150px"},{id:"RG5329",labelKey:"rgAchived",minWidth:"150px",country:"ar"},{id:"observations",labelKey:"observations",minWidth:"180px"},{id:"attribute1",labelKey:"variantAttribute1Header",minWidth:"120px"},{id:"itemAttribute1",labelKey:"variantVariant1Header",minWidth:"150px"},{id:"attribute2",labelKey:"variantAttribute2Header",minWidth:"120px"},{id:"itemAttribute2",labelKey:"variantVariant2Header",minWidth:"150px"},{id:"unitPrice",labelKey:"unitP",minWidth:"150px"},{id:"ivaDetail",labelKey:"variantIvaTypeHeader",minWidth:"120px",country:"notAr"},{id:"iva",labelKey:"ivaRate",minWidth:"100px"},{id:"internalCost",labelKey:"internalCost3",minWidth:"150px"},{id:"profitability",labelKey:"costEffec",minWidth:"100px"},{id:"Barcode",labelKey:"barCode",minWidth:"160px"},{id:"minStock",labelKey:"stockMin",minWidth:"150px"},{id:"providerCode",labelKey:"originSupplier",minWidth:"150px"},{id:"oemCode",labelKey:"CodOEM",minWidth:"150px"},{id:"variantObservations",labelKey:"variantObservationsHeader",minWidth:"180px"}],lA=e=>sA.filter((t=>((e,t)=>{const a=["cl","uy","py"].includes(t);return"ar"===e.country?!a:"notAr"!==e.country||a})(t,e))),cA=Object(u.a)((()=>({cells:{fontSize:"13px",fontWeight:"400",fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary,lineHeight:"18px",maxHeight:"2.8em",maxWidth:"150px"},elipsisText:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingTop:"3px"},error:{background:ui.a.errorLight,color:ui.a.error400,borderRadius:50,padding:"2px 12px",marginTop:"3px",fontSize:"12px",display:"inline-block"},success:{background:ui.a.primaryLight,color:ui.a.primary500,borderRadius:50,padding:"3px",fontSize:"12px"},errorText:{color:ui.a.error400},icon:{color:ui.a.error400,alignItems:"center",fontSize:"18px"},tooltipButton:{backgroundColor:ui.a.white,border:"none",display:"inline-block"}})));var dA=e=>{let{row:t={},errors:a={},userCountry:o}=e;const n=cA(),r=lA(o),s=e=>null===a||void 0===a?void 0:a.hasOwnProperty(e),[l,c]=Object(i.useState)({}),d=Object(i.useMemo)((()=>{const e={};
1return Object.keys(a).forEach((t=>{var i;const o=a[t],n=(null===o||void 0===o?void 0:o.code)||"default";e[t]=(null===(i=rA[t])||void 0===i?void 0:i[n])||Ti.a.t("errorMissing")})),e}),[a]),u=e=>{c((t=>({...t,[e]:!t[e]})))},m=Object.keys(a).length>0;return Object(p.jsxs)(Qs.a,{sx:{cursor:"default"},children:[Object(p.jsx)(Js.a,{align:"center",children:Object(p.jsx)("div",{className:n.cells,children:Object(p.jsx)("div",{className:m?n.error:n.success,children:m?Ti.a.t("errorState"):Ti.a.t("correctState")})})}),r.map((e=>Object(p.jsx)(fv,{field:e.id,value:t[e.id],tooltip:d,showTooltip:l,toggleTooltip:u,isError:s,classes:n},e.id)))]})};const uA=Object(u.a)((()=>({table:{minWidth:"750px",overflowX:"scroll"},loading:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,width:"calc(100vw - 300px)","@media (max-width: 900px)":{width:"calc(100vw - 150px)"},"@media (max-width: 500px)":{width:"calc(100vw - 50px)"}},empty:{display:"flex",justifyContent:"center",alignItems:"center",width:"calc(100vw - 300px)","@media (max-width: 900px)":{width:"calc(100vw - 150px)"},"@media (max-width: 500px)":{width:"calc(100vw - 50px)"}}})));var pA=e=>{let{page:t=1,totalPages:a=1,userCountry:i,emptyStateProps:o,errorStateProps:n,errorData:r=!1,listLoading:s=!1,filteredProducts:l=[],handlePageChange:c=(()=>null)}=e;const d=uA(),u=[{id:"Result",label:Ti.a.t("result"),minWidth:"100px"},...lA(i).map((e=>({id:e.id,label:Ti.a.t(e.labelKey),minWidth:e.minWidth})))];return Object(p.jsxs)(y.a,{sx:{width:"100%",marginTop:"5px"},children:[Object(p.jsx)(Ym.a,{sx:{width:"100%",mb:2,boxShadow:"none"},children:Object(p.jsx)(Ks.a,{style:{borderRadius:"5px"},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:d.table,children:[Object(p.jsx)(xv,{rowCount:l.length,headCells:u,importList:l}),Object(p.jsxs)($s.a,{children:[s&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{colSpan:u.length,children:Object(p.jsx)("div",{className:d.loading,children:Object(p.jsx)(Od.a,{style:{color:ui.a.primary400}})})})}),r&&!s&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{colSpan:u.length,children:Object(p.jsx)("div",{className:d.empty,children:Object(p.jsx)(Fc,{isVertical:!0,containerStyle:{minHeight:500},...n})})})}),!r&&0===l.length&&!s&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{colSpan:u.length,children:Object(p.jsx)("div",{className:d.empty,children:Object(p.jsx)(Fc,{isVertical:!0,containerStyle:{minHeight:500},...o})})})}),!r&&!s&&(null===l||void 0===l?void 0:l.map(((e,t)=>Object(p.jsx)(dA,{row:e,errors:e.errors?e.errors:{},userCountry:i},e.variantCode||e.code+"-"+t))))]})]})})}),a>1&&Object(p.jsx)("div",{style:{marginBottom:"30px"},children:Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:t,totalPages:a,onPageChange:e=>c(e)})})})]})};var mA=e=>{let{userCountry:t,previewData:a={},data:i=[],page:o=1,totalPages:n=0,loadingData:r=!1,selectedOption:s="",totalItems:l=0,totalErrorItems:c=0,fileStatsLoading:d=!1,fileStatsError:u=!1,skuGrouper:m="",handlePageChange:g=(()=>{}),setSelectedOption:b=(()=>{}),onSkuGrouperSearch:h=(()=>{}),handleRetryStats:x=(()=>{}),handleUploadAgain:f=(()=>{})}=e;const v={page:o,totalItems:l,totalErrorItems:c,selectedOption:s,skuGrouper:m,previewListTotalItems:a.previewListTotalItems,setSelectedOption:b,onSkuGrouperSearch:h,handlePageChange:g},j={page:o,totalPages:n,userCountry:t,emptyStateProps:{title:Ti.a.t("noResult"),text:Ti.a.t("emptyStateChangeFilter"),img:Iv,containerStyle:{minHeight:400}},errorStateProps:{title:Ti.a.t("bulkImportErrorModalTitle"),text:Ti.a.t("tryAgain"),img:Ev,containerStyle:{minHeight:400}},errorData:a.previewListError,filteredProducts:i,listLoading:r,handlePageChange:g},A={title:Ti.a.t("bulkImportFileErrorTitle"),subTitle:Ti.a.t("bulkImportFileErrorText"),buttonText:Ti.a.t("uploadAgain"),style:{marginBottom:25,marginTop:15,border:`1px solid ${ui.a.grey400}`,borderRadius:20,padding:15},img:Ev,primaryButtonIcon:"upload",primaryButtonIconStyle:{width:22,height:20,marginTop:2},handleButtonClick:f},C={title:Ti.a.t("bulkImportVariantsStatsErrorTitle"),subTitle:Ti.a.t("bulkImportVariantsStatsErrorText"),buttonText:Ti.a.t("bulkImportVariantsRetry"),img:Ev,disabled:d,handleButtonClick:x,style:{marginBottom:25,marginTop:15,border:`1px solid ${ui.a.grey400}`,borderRadius:20,padding:15}};return Object(p.jsxs)(p.Fragment,{children:[u&&Object(p.jsx)(kv,{...C}),c>0&&Object(p.jsx)(kv,{...A}
1),Object(p.jsx)(nA,{...v}),Object(p.jsx)(pA,{...j})]})};const gA=e=>{let{isChecked:t,handleCheckboxChange:a}=e;return Object(p.jsxs)(v.a,{container:!0,style:{padding:"0px 20px 0px 20px"},children:[Object(p.jsxs)(v.a,{container:!0,item:!0,style:{textAlign:"left"},children:[Object(p.jsxs)(v.a,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:20,marginTop:15},children:[Object(p.jsx)(ni.a,{name:"clock",width:"0px",height:"0px",viewBox:"",style:{color:ui.a.primary400,marginRight:15}}),Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:ui.a.textPrimary},children:Ti.a.t("bulkImportDataSizeText")})]}),Object(p.jsxs)(v.a,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[Object(p.jsx)(ni.a,{name:"error",width:"0px",height:"0px",viewBox:"",style:{color:ui.a.error400,marginRight:15}}),Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:ui.a.textPrimary},children:Ti.a.t("bulkImportProductErrorText")})]})]}),Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",children:Object(p.jsxs)(v.a,{item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:15,marginBottom:10},children:[Object(p.jsx)(Tm.a,{checked:t,onChange:a,sx:{"&.Mui-checked":{color:ui.a.primary400}}}),Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",fontWeight:400,color:ui.a.textSecondary},children:Ti.a.t("buklImportCheckText")})]})})]})};var bA=e=>{let{errorCode:t=null,successRequest:a=!1,errorRequest:o,isChecked:n=!1,buttonDisabled:r=!0,openModal:s=!1,loading:l=!1,handleCloseSuccessModal:c=(()=>{}),handleSendRequest:d=(()=>{}),handleCheckboxChange:u=(()=>{}),handleCloseModal:m=(()=>{}),handleCloseWithAmplitude:g=(()=>null)}=e;const[b,h]=Object(i.useState)(""),x={BULK_IMPORT_CSV_NOT_EXIST:Ti.a.t("noFileError"),BULK_IMPORT_MAX_ERROR:Ti.a.t("maxProductsFileError"),BULK_IMPORT_EMPTY_CSV:Ti.a.t("emptyFileError"),BULK_IMPORT_INVALID_FILE:Ti.a.t("invalidFileError"),BULK_IMPORT_TOO_LARGE:Ti.a.t("fileTooLargeError"),BULK_IMPORT_CSV_DISTINC:Ti.a.t("columnFileDistinctError"),BULK_IMPORT_WHIT_ERRORS:Ti.a.t("jobError"),BULK_IMPORT_RUNNING:Ti.a.t("importRunningError"),VARIANT_SKU_MAX_LENGTH:Ti.a.t("variantsSkuMaxLengthError")};Object(i.useEffect)((()=>{h(o?x[t]||Ti.a.t("bulkImportErrorModal"):"")}
1),[t,o]);const f={title:Ti.a.t("bulkImportConfirmationWithTable"),img:Zc,closeButtonType:"secondary",closeButtonText:Ti.a.t("cancel"),closeButtonIcon:"arrowLeft",buttonIconStyle:{width:19,height:15,marginRight:5},buttonText:Ti.a.t("import"),disabled:r,isLoadingButton:l,nextButtonType:"primary",handleClose:g,handleAcceptClick:d,nextButtonIcon:"upload",nextButtonIconStyle:{width:22,height:20,marginTop:2},modalContainerStyle:{maxWidth:520,width:"95%",height:"auto",paddingBottom:20},children:Object(p.jsx)(gA,{isChecked:n,handleCheckboxChange:u})},v={title:Ti.a.t("importSuccess"),img:Zf,children:Ti.a.t("importNewsNotification"),closeButtonText:Ti.a.t("accept"),closeButtonIcon:"check",handleClose:c,handleAcceptClick:c,modalContainerStyle:{minHeight:100,paddingBottom:20},buttonIconStyle:{width:19,height:15,marginRight:5}},j={title:Ti.a.t("bulkImportErrorModalTitle"),img:kc,children:b||Ti.a.t("bulkImportErrorModal"),closeButtonText:Ti.a.t("close"),closeButtonType:"secondary",handleClose:m,modalContainerStyle:{minHeight:100,paddingBottom:20}},A={handleClose:m,showBtn:a||o?1:2,open:s,...a?v:o?j:f};return Object(p.jsx)("div",{children:Object(p.jsx)(Kc,{...A})})};const hA=[Ti.a.t("downloadBaseFile"),Ti.a.t("uploadFile"),Ti.a.t("columnOrder"),Ti.a.t("productCheck")];var xA=Ei((()=>{const{userData:e}=Object(i.useContext)(Qa),t=null===e||void 0===e?void 0:e.country,a=null===e||void 0===e?void 0:e.plan_name,[o,n]=Object(i.useState)(0),[r,s]=Object(i.useState)(!1),[l,d]=Object(i.useState)(!1),[u,m]=Object(i.useState)({value:Ti.a.t("all"),errors:null}),[g,b]=Object(i.useState)(""),{openModal:h,isChecked:x,buttonDisabled:f,loading:v,successRequest:j,errorRequest:A,errorCode:C,openConfirmModal:y,closeModal:O,handleCheckboxChange:S,submitImport:E,showRequestError:I}=Gj(),{fileSelected:w,fileParsed:T,errorFile:P,errorLimitRequest:R,columnTitles:N,selectedValues:L,columnObjectsInitialState:k,handleFileSelection:B,handleNewColumnTitleSelected:D}=Object(Lj.a)(t),{previewData:F,getFilePreview:M,getFileStats:V,handleSetPageChange:W,handleResetPreview:H}=qj();Object(i.useEffect)((()=>{3===o&&V()}),[o]),Object(i.useEffect)((()=>{3===o&&M(1,u,g)}),[o,u,g]);const U=()=>(1===o&&Object(c.b)("Importaci\xf3n variantes - Subir plantilla"),2===o?(Object(c.b)("Importaci\xf3n variantes - Asignar columnas"),void s(!0)):3===o?(Object(c.b)("Importaci\xf3n variantes - Importar"),void y()):void(o<hA.length-1&&n(o+1))),{totalItems:_,totalErrorItems:z}=F.fileStats,q=_>0&&_-z>0,G={title:Ti.a.t("downloadFile"),subTitle:Ti.a.t("variantsDownloadFileInfo"),buttonText:Ti.a.t("next"),secondaryButtonText:Ti.a.t("downloadFileButton"),img:ov,handleButtonClick:U,handleSecondaryButtonClick:()=>{const e="planilla_base_variantes.xlsx",a=document.createElement("a");a.href="cl"===t?Pj:"uy"===t?Rj:"py"===t?Nj:Tj,a.setAttribute("download",e),a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),Object(c.b)("Importaci\xf3n variantes - Descargar plantilla")}},Y={userCountry:t,userPlan:a,fileSelected:w,errorFile:P,customError:R,handleFileSelection:B,handleDropFile:()=>{},invalidExtensionMessage:Ti.a.t("variantsInvalidFileType")},K={columnTitlesInitialState:N,sendFile:r,selectedValuesInitialState:L,columnObjectsInitialState:k,handleNewColumnTitleSelected:D,handleApiPost:async()=>{s(!1),d(!0);const e=Object(Yf.h)(N);try{await Ya.bulkImportVariant.sendBulkImportVariantFile({csvData:e})}catch(t){return I(t),void d(!1)}d(!1),m({value:Ti.a.t("all"),errors:null}),b(""),n(3)},setSendFile:s},X={userCountry:t,previewData:F,data:F.previewList,page:F.page,totalPages:F.totalPages,loadingData:F.previewListLoading,selectedOption:u,totalItems:_,totalErrorItems:z,fileStatsLoading:F.fileStatsLoading,fileStatsError:F.fileStatsError,skuGrouper:g,handlePageChange:e=>{W(e),M(e,u,g)},setSelectedOption:m,onSkuGrouperSearch:b,handleRetryStats:V,handleUploadAgain:()=>{Object(c.b)("Importaci\xf3n variantes - Volver a subir"),H(),n(1)}},Z={errorCode:C,successRequest:j,errorRequest:A,isChecked:x,buttonDisabled:f,openModal:h,loading:v,handleCloseSuccessModal:()=>{window.open("/v3/bulkImportVariant","_self")},handleSendRequest:()=>{x&&(Object(c.b)("Importaci\xf3n variantes - Aceptar e importar"),E((()=>Ya.bulkImportVariant.sendBulkImportVariantJob())))},handleCheckboxChange:S,handleCloseModal:O,handleCloseWithAmplitude:()=>{Object(c.b)("Importaci\xf3n variantes - Cancelar importaci\xf3n"),O()}},Q={secondaryButtonText:Ti.a.t("back"),primaryButtonText:3===o?Ti.a.t("import"):Ti.a.t("next"),primaryDisabled:1===o?!w||!T||!1!==R:2===o?l:3===o&&(!q||F.fileStatsLoading||F.fileStatsError||F.previewListLoading||F.previewListError),secondary
1Disabled:l,renderTitleComponent:()=>Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Nv,{style:{marginBottom:20},title:Ti.a.t("bulkImportTitle"),tutorialLinksByCountry:Jv}),0===o&&Object(p.jsx)(kv,{...G,style:{marginBottom:30}})]}),primaryButtonClick:U,secondaryButtonClick:()=>{0!==o?n(o-1):window.open("/v3/bulkImportVariant","_self")}};return Object(p.jsxs)(xm,{...Q,children:[Object(p.jsx)(Gr,{activeStep:o,steps:hA}),0===o&&Object(p.jsx)(wj,{userCountry:t}),1===o&&Object(p.jsx)(Gf,{...Y}),2===o&&Object(p.jsx)(iA,{...K}),3===o&&Object(p.jsx)(mA,{...X}),Object(p.jsx)(bA,{...Z})]})}),"bulkImport","products",!0);Object(u.a)((e=>({button:{display:"flex",alignItems:"center",justifyContent:"center!important"},btn:{display:"flex",marginTop:"9px","@media (max-width: 800px)":{display:"flex",flexDirection:"column"}},modalStyle:{width:750,minHeight:"274px",fontFamily:"Work Sans, sans-serif",[e.breakpoints.down("xs")]:{maxWidth:"90%"}},customClass:{padding:"8px"}})));const fA=Object(jn.a)({typography:{fontFamily:"Work Sans, sans-serif"}}),vA=Object(u.a)({root:e=>({"& .MuiDataGrid-root":{fontFamily:"Work Sans, sans-serif",fontSize:"13px",border:"none"},"& .MuiDataGrid-cell":{borderBottom:"1px solid #BEBEBE",display:"flex"},"& .MuiDataGrid-columnHeaders":{},"& .MuiDataGrid-columnHeader":{fontWeight:"bold",outline:"none !important"},"& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within":{outline:"none !important"},"& .MuiDataGrid-columnHeaderTitle":{fontWeight:"bold",overflow:"visible"},"& .MuiDataGrid-columnHeaderTitleContainer":{padding:0},"& .MuiDataGrid-footerContainer":{display:"none"},"& .MuiDataGrid-row:hover":{cursor:"default"},"& .MuiDataGrid-columnSeparator":{visibility:"hidden !important",display:"none !important"},"& .MuiDataGrid-cell:focus-within":{outline:"none !important"},"& .MuiDataGrid-cell:focus":{outline:"none !important"},"& .MuiDataGrid-row":{cursor:"default"},".MuiDataGrid-root .MuiDataGrid-cell:focus-within":{outline:"none !important"},"& .MuiDataGrid-virtualScroller":e.hasNoRows?{minHeight:"250px","@media (max-width: 600px)":{minHeight:"400px"}}:{}}),iconColumn:{display:"flex",justifyContent:"flex-end!important",gap:"8px",color:"#8b9093"},tableErrors:{color:"#8b9093"},textOverflow:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},customTableLoading:{width:"100%",minHeight:200,display:"flex",justifyContent:"center",alignItems:"center"}});var jA=e=>{let{dataTable:t={},loading:a=!1,error:o=!1,isFirstRender:n=!0,totalCount:r=0,limit:s=10,currentPage:l=1,handlePageChange:c=(()=>{}),handleTopPageChange:d=(()=>{}),columns:u=[],modalPropsTable:m,emptyStateFirstRender:g,emptyState:b,emptyStateError:h,errorCurrency:x,loadingCurrency:f,pageSize:j=5,rowsPerPageOptions:A=[],rowIdProp:C,handleCloseAlertTable:y=(()=>{}),showAlertTable:O=!1,showAlertTextTable:S="",customTable:E=!1,children:I}=e;const[w,T]=Object(i.useState)(!1),P=vA({hasNoRows:w}),[R,N]=Object(i.useState)(1);Object(i.useEffect)((()=>{N(Math.ceil(r/s))}),[r,s]);const L=Array.isArray(t)?t.map((e=>({id:e[C],...e}))):[];Object(i.useEffect)((()=>{T(0===L.length)}),[t]);let k=null;a||f?k=Object(p.jsx)(Od.a,{style:{color:"#00A692"}}):o||x?k=Object(p.jsx)("p",{className:P.tableErrors,children:Object(p.jsx)(Fc,{containerStyle:{maxWidth:700,margin:"30px auto 50px auto"},testId:"empty-state",...h})}):L.length||(k=!1===n?Object(p.jsx)(Fc,{containerStyle:{maxWidth:700,margin:"30px auto 50px auto"},testId:"empty-state",...g}):Object(p.jsx)(Fc,{containerStyle:{maxWidth:700,margin:"30px auto 50px auto"},testId:"empty-state",...b}));const B=r>s;return Object(p.jsx)(v.a,{container:!0,sx:{"& .MuiDataGrid-cell:focus-within":{outline:"none !important"}},children:Object(p.jsx)(bn.a,{theme:fA,children:Object(p.jsxs)("div",{style:{width:"100%"},className:P.root,children:[Object(p.jsx)(pg,{shouldShowPagination:B,totalCount:r,currentPage:l,limit:s,handleTopPageChange:d}
1),O&&Object(p.jsxs)($r,{icon:!0,iconName:"circleCheck",type:"alertError2",onClick:()=>y(),children:[Object(p.jsx)("strong",{children:Ti.a.t("invoice.errorAlert")})," ",S]}),!E&&Object(p.jsx)(ag.a,{rows:L,loading:a,columns:u.map((e=>({...e,cellClassName:e=>"actions"===e.field?P.iconColumn:""}))),pageSize:L.length||j,rowsPerPageOptions:A,pagination:!1,disableSelectionOnClick:!0,autoHeight:!0,components:{NoRowsOverlay:()=>Object(p.jsx)("div",{style:{padding:"10px",textAlign:"center"},children:k}),NoResultsOverlay:()=>Object(p.jsx)("div",{style:{padding:"10px",textAlign:"center"},children:k})}}),E&&!a&&I,E&&(a||o||!(null!==L&&void 0!==L&&L.length))&&Object(p.jsx)("div",{className:P.customTableLoading,children:k}),R>1&&Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{totalPages:R,actualPage:l,page:l,onPageChange:c,theme:jc})}),Object(p.jsx)(Kc,{...m})]})})})};Object(u.a)((e=>({container:{maxHeight:"67vh",overflowY:"scroll",width:"100%",padding:"20px 35px"},modalStyle:{width:"100%",height:"100%",display:"flex",flexDirection:"column","@media (max-width: 479px)":{width:"90% !important"}}})));Object(u.a)({iconContainer:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:"24px",height:"24px"},svgIcon:{width:"100%",height:"100%",transform:"scale(0.9)"}});Object(u.a)((e=>({greyText:{fontFamily:"Work Sans, sans-serif !important",fontWeight:400,marginBottom:"8px",fontSize:"13px",display:"flex",flexDirection:"row",lineHeight:"16px",color:ui.a.grey600},boldText:{fontFamily:"Work Sans, sans-serif !important",fontWeight:600,marginBottom:"5px",fontSize:"16px",lineHeight:"20px"},container1:{display:"flex",justifyContent:"space-between",marginTop:"10px",flexDirection:"row","@media (max-width: 680px)":{display:"inline"}},number:{fontFamily:"Work Sans",fontSize:e=>"NC"===e.modalSource?"20px":"28px",fontWeight:"500",lineHeight:"32.84px",textAlign:"left"},containerDates:{"@media (max-width: 680px)":{margin:"20px 0"}},associatedInvoice:{fontFamily:"Work Sans, sans-serif !important",fontWeight:400,fontSize:"13px",color:ui.a.grey600},selectContainer:{width:170,"@media (max-width: 800px)":{width:"100%"}}})));Object(u.a)((e=>({thRight:{textAlign:"right !important"}})));Object(u.a)((e=>({table:{width:"100%",borderCollapse:"collapse",display:"flex",flexDirection:"column",border:"1px solid #DFDFDF",borderRadius:6,paddingTop:10},table2:{width:"100%",borderCollapse:"collapse",marginTop:"10px",display:"flex",flexDirection:"column"},row:{display:"flex",width:"100%",padding:"0px 8px"},bottomRow:{display:"flex",width:"100%",padding:"0px 0px"},totalRow:{display:"flex",width:"100%",padding:"5px 8px",borderTopWidth:1,borderTopStyle:"solid",borderTopColor:"#DFDFDF",marginTop:10},cell:{padding:"8px",fontSize:"13px",flex:1,borderRight:"none"},cellNoLeftBorder:{borderLeft:"none",padding:"8px",fontSize:"13px",flex:1,textAlign:"end",fontFamily:"Work Sans, sans-serif"},firstColumn:{padding:"8px",fontSize:"14px",flex:1,borderRight:"none",fontFamily:"Work Sans, sans-serif"},wrapText:{whiteSpace:"normal"}})));Object(u.a)((e=>({container:{maxHeight:"67vh",overflowY:"scroll",width:"100%",padding:"20px 35px"},textContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start"},grid:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"35px",padding:"0px 25px",marginBottom:-1},flexFooter:{display:"flex",flexWrap:"nowrap",marginTop:30,justifyContent:"space-between",marginBottom:"20px","@media (max-width: 600px)":{flexWrap:"wrap",flexDirection:"column"}},textTitle:{fontSize:"16px",color:ui.a.primary300,fontWeight:600,paddingTop:15,marginBottom:5},text2:{fontSize:"14px",color:ui.a.primary300,fontWeight:600,paddingTop:15,marginBottom:5},text:{fontFamily:"Work Sans, sans-serif !important",fontWeight:500,marginBottom:"5px",fontSize:"13px",lineHeight:"20px"},greyText:{fontFamily:"Work Sans, sans-serif !important",fontWeight:400,marginBottom:"5px",fontSize:"13px",lineHeight:"20px",color:ui.a.grey600},gridItem:{maxWidth:"425px",maxHeight:"170px",paddingRight:"10px","& p":{wordWrap:"break-word",whiteSpace:"pre-wrap"},"@media (max-width: 900px)":{maxWidth:"100%"}},textArea:{width:"90%",height:"100px",border:"1px solid #C6C6C6",borderRadius:"4px",padding:"5px",resize:"none",fontSize:"14px"}})));a(543);Object(u.a)((e=>({container:{width:"100%",maxWidth:900,height:"calc(100vh - 140px)",marginTop:10,borderRadius:5,backgroundColor:"#FFFFFF",boxShadow:"0px 1px 1px 0px rgba(0, 0, 0, 0.10)"},modalStyle:{width:"100%",height:"100%",maxWidth:"850px",maxHeight:"85vh",fontSize:"30px","@media (max-width: 479px)":{width:"90% !important"}},loaderContainer:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0},pdfIframe:{border:"none",width:"calc(100% - 40px)",height:"calc(100% - 40px)",position:"absolute",top:"20px",left:"20px"}}))),Ti.a.t("delete"),Object(u.a)({hoverIcon:{color:"#8b9093","&:hover":{color:"#00A692 !important"}}
1,hoverRedIcon:{color:"#8b9093",cursor:"pointer","&:hover":{color:"#F32465 !important"}},textOverflow:{whiteSpace:"normal",overflow:"visible",textOverflow:"clip",width:"100%",lineHeight:1.2,"@media (max-width: 768px)":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},topAlignCell:{display:"flex",alignItems:"flex-start",height:"100%",paddingTop:"8px"}});var AA,CA,yA=a(577),OA=a(21);function SA(){return SA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},SA.apply(null,arguments)}function EA(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",SA({width:250,height:46,viewBox:"0 0 265 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,AA||(AA=i.createElement("g",{clipPath:"url(#clip0_106_265)"},i.createElement("path",{d:"M72.4663 10.9739C77.8342 10.9739 80.5181 13.8 80.5181 13.8L79.3458 15.3935C79.3458 15.3935 76.7236 12.9582 72.528 12.9582C67.2527 12.9582 63.5198 16.9268 63.5198 22.098C63.5198 27.3294 67.2835 31.5686 72.6205 31.5686C77.1555 31.5686 79.9011 28.6523 79.9011 28.6523L81.1659 30.1856C81.1659 30.1856 78.1118 33.583 72.5897 33.583C65.957 33.583 61.237 28.532 61.237 22.1582C61.2061 15.8144 66.0495 10.9739 72.4663 10.9739Z",fill:"#131313"}),i.createElement("path",{d:"M94.9867 10.9739C101.342 10.9739 106.401 15.8444 106.401 22.1281C106.401 28.532 101.342 33.5529 94.9867 33.5529C88.6316 33.5529 83.5723 28.532 83.5723 22.1281C83.5723 15.8745 88.6316 10.9739 94.9867 10.9739ZM94.9867 31.5987C100.015 31.5987 104.118 27.5098 104.118 22.1582C104.118 16.9268 100.046 12.9882 94.9867 12.9882C89.9273 12.9882 85.8552 16.9268 85.8552 22.1582C85.8552 27.4797 89.8965 31.5987 94.9867 31.5987Z",fill:"#131313"}),i.createElement("path",{d:"M110.72 11.3647H112.849L124.294 27.0889C125.065 28.1712 126.145 30.0353 126.145 30.0353H126.207C126.207 30.0353 126.022 28.2314 126.022 27.0889V11.3647H128.212V33.1922H126.083L114.638 17.468C113.867 16.3856 112.787 14.5216 112.787 14.5216H112.725C112.725 14.5216 112.91 16.3255 112.91 17.468V33.1922H110.72V11.3647Z",fill:"#131313"}),i.createElement("path",{d:"M139.133 13.2889H131.081V11.3647H149.375V13.2889H141.354V33.1922H139.133V13.2889Z",fill:"#131313"}),i.createElement("path",{d:"M169.767 11.3647H177.417C180.965 11.3647 183.464 13.4392 183.464 16.8667C183.464 19.1216 182.353 20.7752 180.626 21.617V21.6771C182.909 22.3085 184.389 24.4431 184.389 27.0889C184.389 30.9673 181.428 33.2222 177.664 33.2222H169.767V11.3647ZM177.417 20.8353C179.669 20.8353 181.212 19.2719 181.212 17.017C181.212 14.7922 179.793 13.2889 177.387 13.2889H171.957V20.8353H177.417ZM177.695 31.268C180.41 31.268 182.107 29.6144 182.107 26.9987C182.107 24.383 180.286 22.6693 177.664 22.6693H171.957V31.268H177.695Z",fill:"#131313"}),i.createElement("path",{d:"M189.079 11.3647H191.269V33.1922H189.079V11.3647Z",fill:"#131313"}),i.createElement("path",{d:"M197.13 11.3647H199.321V31.268H209.717V33.1922H197.13V11.3647Z",fill:"#131313"}),i.createElement("path",{d:"M213.018 11.3647H215.208V33.1922H213.018V11.3647Z",fill:"#131313"}),i.createElement("path",{d:"M220.792 11.3647H223.013V25.5555C223.013 29.3137 225.512 31.5686 229.368 31.5686C233.225 31.5686 235.754 29.3137 235.754 25.4653V11.3346H237.945V25.5555C237.945 30.3961 234.459 33.5529 229.399 33.5529C224.309 33.5529 220.792 30.4261 220.792 25.5555V11.3647Z",fill:"#131313"}),i.createElement("path",{d:"M244.608 11.3647H246.891L252.753 24.2026C253.277 25.315 253.832 26.8784 253.832 26.8784H253.894C253.894 26.8784 254.511 25.315 255.005 24.2026L260.866 11.3647H263.118L264.908 33.1922H262.717L261.483 17.919C261.391 16.7464 261.422 14.8824 261.422 14.8824H261.36C261.36 14.8824 260.681 16.8065 260.188 17.919L254.943 29.1333H252.876L247.632 17.919C247.107 16.8366 246.428 14.8222 246.428 14.8222H246.367C246.367 14.8222 246.398 16.7464 246.305 17.919L245.071 33.1922H242.881L244.608 11.3647Z",fill:"#131313"}),i.createElement("path",{d:"M158.506 11.3647H156.162L147.925 33.1922H150.239L151.905 28.6824L151.966 28.532L152.799 26.2471L1
153.478 24.383H153.416L156.409 16.4758C156.779 15.4536 157.272 13.6497 157.272 13.6497H157.334C157.334 13.6497 157.797 15.4536 158.198 16.4758L160.172 21.8575L160.203 21.9477L161.098 24.4131L162.671 28.6824L164.368 33.2523H166.682L158.506 11.3647Z",fill:"#131313"}),i.createElement("path",{d:"M3.23902 36.5595C1.32633 35.4771 0.0306396 33.4628 0.0306396 31.1477V23.3909V21.2562L1.94333 22.3386L22.1808 33.7334L42.264 22.3386C42.3875 22.3085 42.5108 22.3085 42.6342 22.3085C43.498 22.3085 44.2076 23 44.2076 23.8418V31.2981C44.1459 33.4026 43.0353 35.2366 41.3694 36.349L25.42 45.2484C24.4637 45.8196 23.3223 46.1203 22.15 46.1203C20.9777 46.1203 19.8979 45.8196 18.9416 45.2785L3.23902 36.5595Z",fill:"#FF2569"}),i.createElement("path",{d:"M3.36197 23.1804L12.0308 18.3098L22.1187 12.6275L31.8981 18.1294C32.2991 18.3399 32.731 18.4601 33.2246 18.4601C33.5331 18.4601 33.8416 18.4 34.1192 18.3098L43.1274 13.8301C43.7444 13.6196 44.2071 13.0484 44.2071 12.3869C44.2071 11.7856 43.7752 11.2745 43.2508 11.034L25.327 0.901975C24.4016 0.390864 23.3218 0.09021 22.1495 0.09021C20.9772 0.09021 19.8975 0.390864 18.972 0.901975L3.33112 9.68106C1.35673 10.7333 0.0610352 12.7778 0.0610352 15.1229V28.6523C0.0610352 26.2771 1.38758 24.2327 3.36197 23.1804Z",fill:"#00C7AF"}))),CA||(CA=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_106_265"},i.createElement("rect",{width:265,height:46,fill:"white"})))))}const IA=i.forwardRef(EA);var wA;a.p;function TA(){return TA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},TA.apply(null,arguments)}function PA(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",TA({width:56,height:1,viewBox:"0 0 72 1",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,wA||(wA=i.createElement("line",{x1:72,y1:.499969,x2:4.37113e-8,y2:.499976,stroke:"black",strokeOpacity:.3})))}const RA=i.forwardRef(PA);a.p;var NA=a(373);class LA extends o.a.Component{constructor(e){super(e),this.linkElement=document.createElement("link"),this.linkElement.rel="canonical",this.linkElement.href=e.href}componentDidMount(){var e;const t=document.head.children[(null===(e=this.props)||void 0===e?void 0:e.position)||0];document.head.insertBefore(this.linkElement,t)}componentWillUnmount(){document.head.removeChild(this.linkElement)}render(){return null}}var kA=LA,BA=a(23);class DA extends i.Component{constructor(e){super(e),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.handleLogout=e=>{const t=(new L.a).get(BA.a)||Object(BA.s)();return t?(this.setState({session:t}),t):null},this.capturedHost=e=>{let t="";switch(e){case"com":case"ar":default:t="Argentina";break;case"cl":t="Chile";break;case"uy":t="Uruguay";break;case"py":t="Paraguay"}return t},this.compareDate=(e,t)=>e>new Date(1e3*t),this.desencripJwt=e=>{let t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},this.validateDateUser=e=>{let t=JSON.parse(this.desencripJwt(e));!0===this.compareDate(Date.now(),t.data.verification_exp)&&!1===t.data.verified?window.open("/v3/login/mailauth","_self"):Object(BA.D)(null,t.data)?(Object(BA.x)(),window.location.href=BA.c):(t.data.country,window.open("/v3/dashboard","_self"))},this.handleCloseSession=e=>{const t=this.handleLogout(),a=new L.a;if(this.useQuery().get("logOut"))t&&fetch(Object(aa.a)()+"logout",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}}).then((e=>{a.remove(BA.a,{path:"/"}),Object(BA.B)(),Object(BA.j)(),localStorage.removeItem("validated"),localStorage.removeItem("Company"),localStorage.removeItem("userAdd"),localStorage.removeItem("parent"),localStorage.removeItem("country_prod"),localStorage.removeItem("sign_up_date"),localStorage.removeItem("promotion_code"),localStorage.removeItem("userID_Product")})).catch((e=>{console.log(e)}));else{const e=a.get(BA.a);if(e)this.validateDateUser(e);else{if(!Object(BA.s)())return null;
1Object(BA.x)(),window.location.href=BA.c}}},this.handleTextMulticountry=e=>{let t=Ti.a.t("login.useEmail");switch(e){case"com":case"ar":default:t=Ti.a.t("login.useEmail");break;case"cl":case"uy":case"py":t=Ti.a.t("login.useEmailChUy")}return t},this.handleTextMulticountry2=e=>{let t=Ti.a.t("login.account");switch(e){case"com":case"ar":default:t=Ti.a.t("login.account");break;case"cl":case"uy":case"py":t=Ti.a.t("login.accountChUy")}return t},this.linkRegister=()=>{const e=localStorage.getItem("country");"Argentina"===e&&window.open("https://contabilium.com/registrate-gratis?from=ar&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita","_self"),"Chile"===e&&window.open("https://contabilium.com/registrate-gratis?from=cl&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita","_self"),"Uruguay"===e&&window.open("https://contabilium.com/registrate-gratis?from=uy&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita","_self"),"Paraguay"===e&&window.open("https://contabilium.com/registrate-gratis?from=py&utm_source=Login&utm_medium=organic&utm_campaign=Lead&utm_content=CTA1-Pruebagratuita","_self")},this.state={windowWidth:window.innerWidth,session:"",hostUrl:"",textMultiCountry:Ti.a.t("login.useEmail"),textMultiCountry2:Ti.a.t("login.account"),pageLogo:"",register:""}}useQuery(){return new URLSearchParams(window.location.search)}componentDidMount(){this.handleCloseSession();const e=window.location.host.replace(/^.*\./,""),t=this.capturedHost(e);"com"!==e&&"ar"!==e||this.setState({pageLogo:"https://home.contabilium.com/comunicacion-clientes-ar"}),"cl"===e&&this.setState({pageLogo:"https://home.contabilium.com/comunicacion-clientes-cl"}),"uy"===e&&this.setState({pageLogo:"https://home.contabilium.com/comunicacion-clientes-uy"}),"py"===e&&this.setState({pageLogo:"https://home.contabilium.com/comunicacion-clientes-cl"}),this.setState({textMultiCountry:this.handleTextMulticountry(e),textMultiCountry2:this.handleTextMulticountry2(e),hostUrl:t}),localStorage.setItem("host",t),localStorage.setItem("ext",e),window.addEventListener("resize",this.handleResize)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsxs)("div",{style:{backgroundColor:"#E5E5E5"},children:[Object(p.jsx)(kA,{position:5,href:({Argentina:"https://app.contabilium.com",Chile:"https://app.contabilium.cl",Uruguay:"https://app.contabilium.uy"}[localStorage.getItem("country")||""]||"https://app.contabilium.com")+"/v3/login"}),Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"xl",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.mainTitle,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(IA,{})}),Object(p.jsx)(v.a,{container:!0,item:!0,sx:{width:"90vw",maxWidth:"380px",margin:"0"},justifyContent:"center",children:Object(p.jsxs)(y.a,{className:e.BaseGridLine,sx:{display:"flex"},children:[Object(p.jsx)(RA,{className:e.line}),Object(p.jsx)(cn.a,{className:e.lineText,children:this.state.textMultiCountry}),Object(p.jsx)(RA,{className:e.line})]})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(NA.a,{urlhost:this.state.hostUrl})}),Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.BaseGrid,justifyContent:"center",children:[Object(p.jsx)(cn.a,{className:e.registerFont,children:this.state.textMultiCountry2}),Object(p.jsx)(yA.a,{underline:"none",color:"#00C7AF",sx:{cursor:"pointer"},onClick:()=>this.linkRegister(),children:Object(p.jsx)(cn.a,{className:e.registerColorFont,children:Ti.a.t("login.register")})})]})]}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("iframe",{id:"inlineFrameExample",title:"Inline Frame Example",className:e.backgroundImg,src:this.state.pageLogo}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})]})}}var FA,MA,VA=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"0%",marginBottom:"30px"},line:{width:41,alignSelf:"center","@media (min-width: 780px)":{width:72}},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313"},registerFont:{marginRight:"5px",fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"1.4",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
1olid",borderColor:"#00C7AF",backgroundColor:"#00C7AF",borderRadius:30,color:"white",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"right",color:"#00C7AF",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:1.4,alignItems:"center",textAlign:"center",color:"#007868",cursor:"pointer","&:hover":{color:"#007868"}},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},BaseGridLine:{justifyContent:"space-between",width:320,marginBottom:"10px","@media (min-width: 780px)":{width:380}},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",borderWidth:"0px"},imgContainer:{position:"fixed",top:0,right:0,height:"100vh"}})),{withTheme:!0})(DA);function WA(){return WA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},WA.apply(null,arguments)}function HA(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",WA({width:45,height:46,viewBox:"0 0 45 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,FA||(FA=i.createElement("path",{d:"M3.23902 36.5595C1.32633 35.4771 0.0306396 33.4628 0.0306396 31.1477V23.3909V21.2562L1.94333 22.3386L22.1808 33.7334L42.264 22.3386C42.3875 22.3085 42.5108 22.3085 42.6342 22.3085C43.498 22.3085 44.2076 23 44.2076 23.8418V31.2981C44.1459 33.4026 43.0353 35.2366 41.3694 36.349L25.42 45.2484C24.4637 45.8196 23.3223 46.1203 22.15 46.1203C20.9777 46.1203 19.8979 45.8196 18.9416 45.2785L3.23902 36.5595Z",fill:"#FF2569"})),MA||(MA=i.createElement("path",{d:"M3.36197 23.1804L12.0308 18.3098L22.1187 12.6275L31.8981 18.1294C32.2991 18.3399 32.731 18.4601 33.2246 18.4601C33.5331 18.4601 33.8416 18.4 34.1192 18.3098L43.1274 13.8301C43.7444 13.6196 44.2071 13.0484 44.2071 12.3869C44.2071 11.7856 43.7752 11.2745 43.2508 11.034L25.327 0.901975C24.4016 0.390864 23.3218 0.09021 22.1495 0.09021C20.9772 0.09021 19.8975 0.390864 18.972 0.901975L3.33112 9.68106C1.35673 10.7333 0.0610352 12.7778 0.0610352 15.1229V28.6523C0.0610352 26.2771 1.38758 24.2327 3.36197 23.1804Z",fill:"#00C7AF"})))}const UA=i.forwardRef(HA);a.p;var _A=a(570),zA=a(572),qA=a(255),GA=a(256),YA=a(257),KA=a(258),XA=a(57);const ZA=Object(u.a)((e=>({formButton:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:400,textAlign:"left",border:"1px solid rgba(19, 19, 19, 0.3)",borderRadius:3,height:45,padding:"5px 16px"},labelText:{marginBotton:"50px",color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"left"},loginBtn:{marginTop:"20px",height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#00c7af",backgroundColor:"#00c7af",borderRadius:50,color:"#fff",autoComplete:"off",font:"normal normal normal 16px/22px WorkSans","&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{width:380}},loginBtn2:{marginTop:"20px",height:50,width:320,textTransform:"none",border:"2px solid",borderColor:"#C6C6C6",backgroundColor:"#C6C6C6",borderRadius:50,color:" #131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontWeight:"normal",fontSize:"16px/22px",letterSpacing:0,"&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{width:380}},validationText:{color:"#ff2569",fontSize:"11px",margin:"5px 0",fontFamily:"Work Sans, sans-serif"},baseGrid:{marginTop:"20px"},selectComponent:{backgroundColor:"red"},formTypografy:{color:"#131313",fontSize:"15px",fontWeight:400,textAlign:"left",fontFamily:"Work Sans, sans-serif",height:"fit-content",marginLeft:"2px",alignSelf:"center"},formSelect:{height:"45px",alignContent:"center"},formFlag:{margin:"0 5px 0px 16px",display:"flex",alignSelf:"center"},formCountry:{paddingBottom:"0"},li:{height:"45px"},input:{height:45,padding:"0 16px 0 0",fontFamily:"Work Sans, sans-serif",fontSize:"15px"}}))),QA=Object(jn.a)({palette:{error:{main:"#ff2569"}}}),JA=[{value:"Argentina",label:Object(p.jsx)(qA.a,{code:"AR"})},{value:"Chile",label:Object(p.jsx)(YA.a,{code:"CL"})},{value:"Uruguay",label:Object(p.jsx)(GA.a,{code:"UY"})},{value:"Paraguay",label:Object(p.jsx)(KA.a,{code:"PY"})}];var $A=function(e){const t=ZA(),[a,n]=Object(i.useState)(""),[r,s]=Object(i.useState)(!1),[l,c]=Object(i.useState)(!1),[d,u]=Object(i.useState)(!1),[m,g]=o.a.useState(function(e){let t="";switch(e){case"com":case"ar":default:t="Argentina";break;case"cl":t="Chile";break;case"uy":t="Uruguay";break;case"py":t="Paraguay"}return t}(window.location.host.replace(/^.*\./,""))),[b,h]=Object(i.useState)(!1),x=/\S+@\S+\.\S+/;Object(i.useEffect)((()=>{a?x.test(a)?(c(!0),h(!1),s(!1)):(h(!0),s(!0),c(!1)):(c(!1),h(!1),s(!1))}),[a,x]);const f=()=>{localStorage.setItem("countryPass",m)};Object(i.useEffect)((()=>{f()}),[m]);const j=e=>{u(!0);const t=(e=>{let t="";switch(e){case"Argentina":default:t="ar";break;case"Chile":t="cl";break;case"Uruguay":t="uy";break;case"Paraguay":t="py"}return t})(localStorage.getItem("countryPass"));fetch(Object(aa.a)()+"password/recovery",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a,country:t})}).then((e=>{u(!1),window.open("/v3/login/recovermailsend","_self")}))};return Object(p.jsx)(bn.a,{theme:QA,children:Object(p.jsxs)(y.a,{component:"form",sx:{"& .MuiGrid-item":{mt:1.5,width:"90vw",maxWidth:"320px",height:"45px","@media (min-width: 780px)":{maxWidth:"380px"}},"& \tfieldset":{height:"45px",marginTop:"5px"}
1,legend:{display:"none"},"& \t.MuiInputBase-input":{fontFamily:"Work Sans, sans-serif",lineHeight:"17.6px",fontSize:"15px"},"& \t.MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",lineHeight:"16.42px",fontSize:"14px"},"& \t.MuiButton-text .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",lineHeight:"18.77px",fontSize:"15px"},"& \tinput":{height:"45px",paddingBottom:0,paddingTop:0},".css-1f3cabt-MuiInputBase-root-MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},".css-1f3cabt-MuiInputBase-root-MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& \t.css-6hp17o-MuiList-root-MuiMenu-list":{paddingTop:"0px",paddingBottom:"0px"},"& .MuiSelect-select:focus":{backgroundColor:"transparent"},"&.MuiOutlinedInput-root.Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(19, 19, 19, 0.3)"},"& .Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"},"& .MuiButtonBase-root-MuiMenuItem-root":{paddingLeft:"0px"}},noValidate:!0,autoComplete:"off",children:[Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(p.jsx)(vr.a,{id:"outlined-select-country",select:!0,fullWidth:!0,className:t.formButton,value:m,onChange:e=>{g(e.target.value);const t="/recoverpass";"Argentina"===e.target.value&&window.open("https://app.contabilium.com/v3/login"+t,"_self"),"Chile"===e.target.value&&window.open("https://app.contabilium.cl/v3/login"+t,"_self"),"Uruguay"===e.target.value&&(window.open("https://app.contabilium.com.uy/v3/login"+t,"_self"),"Paraguay"===e.target.value&&window.open("https://app.contabilium.com.py/v3/login"+t,"_self"))},onBlur:f,InputProps:{className:t.input},sx:{".MuiSelect-select":{padding:"0!important"},li:{paddingLeft:"0!important",padding:"0!important"},".MuiButtonBase-root":{paddingLeft:"0!important",padding:"0!important"},"& .Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"}},children:JA.map((e=>Object(p.jsx)(ln.a,{value:e.value,className:t.formCountry,disableRipple:!0,sx:{"& .Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"}},children:Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,lg:12,className:t.formSelect,children:[Object(p.jsx)(v.a,{className:t.formFlag,children:e.label}),Object(p.jsx)(cn.a,{className:t.formTypografy,children:e.value})]})},e.value)))})}),Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:[Object(p.jsx)(XA.c,{placeholder:"[email protected]",fullWidth:!0,onKeyDown:e=>{"Enter"===e.key&&j()},helperText:b,id:"email",name:"name",InputProps:{classes:{input:t.formButton}},autoComplete:"off",className:t.formButton,onClick:e=>{},onChange:e=>{n(e.target.value),x.test(a)?(h(!1),s(!1)):(h(!0),s(!0))},sx:!0===r?{border:"1px solid #ff2569",height:"45px",borderRadius:1}:{className:t.input2}}),!0===b&&Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:t.validationText,children:Ti.a.t("login.errorMessage")})})]}),Object(p.jsx)(v.a,{container:!0,items:!0,xs:12,md:12,lg:12,children:d&&Object(p.jsx)(_A.a,{open:d,children:Object(p.jsx)("div",{style:{padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:Object(p.jsx)(Od.a,{size:30,style:{backgroundColor:"transparent"}})})})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:t.baseGrid,xs:12,md:12,lg:12,justify:"center",children:!0===l?Object(p.jsx)(zA.a,{className:t.loginBtn,onClick:j,disabled:!1,children:Object(p.jsx)(cn.a,{children:Ti.a.t("login.continue")})}):Object(p.jsx)(zA.a,{className:t.loginBtn2,onClick:j,disabled:!0,children:Object(p.jsx)(cn.a,{children:Ti.a.t("login.continue")})})})]})})},eC=a(374),tC=a.n(eC);const aC=Object(u.a)({registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313",marginLeft:"5px",marginRight:"15px"},registerGrid:{marginTop:2,alignItems:"center","&:hover":{color:"#131313"}},goBackLink:{cursor:"pointer",border:"none",background:"none",padding:0,font:"inherit","&:hover":{color:"#131313",fontWeight:600}},goBackGrid:{alignSelf:"center"}});var iC=e=>{let{text:t,link:a,onClick:i}=e;const o=aC(),n=Ti.a.t(t),r=i?{component:"button",type:"button",onClick:i}:{href:a};return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(v.a,{container:!0,item:!0,className:o.registerGrid,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(yA.a,{...r,underline:"none",color:"inherit",className:o.goBackLink,children:Object(p.jsxs)(v.a,{item:!0,container:!0,xs:12,md:12,lg:12,justifyContent:"center",children:[Object(p.jsx)(tC.a,{sx:{color:"#131313"}})," ",Object(p.jsx)(v.a,{item:!0,className:o.goBackGrid,children:Object(p.jsx)(cn.a,{className:o.registerFont,children:n})})]})})})})},oC=a.p+"static/media/login_bg.d2790ad1.png";class nC extends i.Component{constructor(e){super(e),this.handleTextMultiCountry=e=>{let t=Ti.a.t("login.recoverText");switch(e){case"com":case"ar":default:t=Ti.a.t("login.recoverText");break;case"cl":case"uy":case"py":t=Ti.a.t("login.recoverTextChUy")}return t},this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth,recoverText:Ti.a.t("login.recoverText")}}componentDidMount(){window.addEventListener("resize",this.handleResize);const e=window.location.host.replace(/^.*\./,"");
1this.setState({recoverText:this.handleTextMultiCountry(e)})}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsxs)("div",{style:{backgroundColor:"#E5E5E5"},children:[Object(p.jsx)(kA,{position:5,href:({Argentina:"https://app.contabilium.com",Chile:"https://app.contabilium.cl",Uruguay:"https://app.contabilium.uy",Paraguay:"https://app.contabilium.py"}[localStorage.getItem("country")||""]||"https://app.contabilium.com")+"/login/recoverpass"}),Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.mainTitle,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(UA,{})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.googleLogin,xs:12,md:12,lg:12,justifyContent:"center",maxWidth:"sm",children:Object(p.jsxs)(di.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0"},children:[Object(p.jsx)(cn.a,{className:e.recoverTex,children:Ti.a.t("login.recoverPass")}),Object(p.jsx)(cn.a,{className:e.labelText,children:this.state.recoverText})]})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)($A,{texto:"recoverText"})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.goBack,justifyContent:"center",children:Object(p.jsx)(iC,{text:Ti.a.t("login.goBack"),link:"/v3/login/"})})]}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})]})}}var rC,sC,lC,cC=Object(OA.a)((e=>({root:{justifyContent:"center",flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontWeight:"normal",fontSize:"16px/22px"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},registerGrid:{marginTop:e.spacing(2),alignItems:"center"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#00C7AF",backgroundColor:"#00C7AF",borderRadius:30,color:"white",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontWeight:"normal",fontSize:"16px/22px"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{marginTop:e.spacing(2),color:"#131313",fontFamily:"Work Sans, sans-serif",lineHeight:1.5,fontSize:"31px",fontWeight:600,textAlign:"center"},goBack:{marginTop:"30px"},labelText:{margin:"20px 0 0px 0",color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"left"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(nC);function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},dC.apply(null,arguments)}function uC(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",dC({width:100,height:100,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,rC||(rC=i.createElement("circle",{cx:50,cy:50,r:50,fill:"#6C63FF",fillOpacity:.2})),sC||(sC=i.createElement("g",{clipPath:"url(#clip0_230_37)"},i.createElement("path",{d:"M84.0001 33.6282V66.3718C84.0001 67.0916 83.4165 67.6752 82.6967 67.6752H36.4577C35.7379 67.6752 35.1543 67.0916 35.1543 66.3718V33.6282C35.1543 32.9084 35.7379 32.3248 36.4577 32.3248H82.6967C83.4165 32.3248 84.0001 32.9084 84.0001 33.6282Z",fill:"#B5B1FF"}),i.createElement("path",{d:"M84.0002 33.6315L65.7098 50L84.0002 66.3718C84.0002 67.0916 83.4166 67.6752 82.6968 67.6752H82.5377L64.2489 51.3067L60.2265 54.907C60.0415 55.0726 59.8093 55.1554 59.5772 55.1554C59.345 55.1554 59.1113 55.0726 58.9279 54.907L54.9039 51.3067L36.6152 67.6752H36.4577C35.7379 67.6752 35.1543 67.0916 35.1543 66.3718V66.3686L53.4447 50L35.1543 33.6315V33.6283C35.1543 32.9085 35.7379 32.3249 36.4577 32.3249H36.6135L59.5773 52.8747L82.5393 32.3248H82.6968C83.4166 32.3248 84.0002 32.9084 84.0002 33.6282V33.6315Z",fill:"#6C63FF"}),i.createElement("path",{d:"M29.6346 37.5017H20.1393C19.6462 37.5017 19.2466 37.102 19.2466 36.6089C19.2466 36.1158 19.6462 35.7161 20.1393 35.7161H29.6346C30.1278 35.7161 30.5274 36.1158 30.5274 36.6089C30.5274 37.102 30.1278 37.5017 29.6346 37.5017Z",fill:"#6C63FF"}),i.createElement("path",{d:"M30.4461 54.5447H21.7624C21.2693 54.5447 20.8696 54.1451 20.8696 53.6519C20.8696 53.1588 21.2693 52.7592 21.7624 52.7592H30.4461C30.9392 52.7592 31.3388 53.1588 31.3388 53.6519C31.3388 54.1451 30.9392 54.5447 30.4461 54.5447Z",fill:"#6C63FF"}),i.createElement("path",{d:"M27.1997 47.2406H16.8928C16.3996 47.2406 16 46.8409 16 46.3478C16 45.8547 16.3996 45.455 16.8928 45.455H27.1997C27.6928 45.455 28.0924 45.8547 28.0924 46.3478C28.0924 46.8409 27.6928 47.2406 27.1997 47.2406Z",fill:"#6C63FF"}),i.createElement("path",{d:"M27.1997 64.2834H26.2014C25.7082 64.2834 25.3086 63.8838 25.3086 63.3907C25.3086 62.8976 25.7082 62.4979 26.2014 62.4979H27.1998C27.693 62.4979 28.0926 62.8976 28.0926 63.3907C28.0925 63.8838 27.6928 64.2834 27.1997 64.2834Z",fill:"#6C63FF"}),i.createElement("path",{d:"M22.1432 64.2834H16.8928C16.3996 64.2834 16 63.8838 16 63.3907C16 62.8976 16.3996 62.4979 16.8928 62.4979H22.1432C22.6364 62.4979 23.036 62.8976 23.036 63.3907C23.036 63.8838 22.6364 64.2834 22.1432 64.2834Z",fill:"#6C63FF"}
1))),lC||(lC=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_230_37"},i.createElement("rect",{width:68,height:68,fill:"white",transform:"translate(16 16)"})))))}const pC=i.forwardRef(uC);a.p;const mC=Object(u.a)({grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},BaseGrid:{margin:10},mainTitle:{marginTop:"4%",fontFamily:"Work Sans, sans-serif",fontSize:"21px",fontWeight:600,textAlign:"left",lineHeight:1.5},recoverTex:{marginTop:10,color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:500,lineHeight:1.5,textAlign:"left"},recoverTex2:{marginTop:10,color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"left"},alignGrid:{marginRight:20}});var gC=e=>{const t=mC();return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,item:!0,className:t.grid1,justifyContent:"center",maxWidth:"md",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:t.mainTitle,xs:12,md:12,lg:12,justifyContent:"center",children:e.svg?Object(p.jsx)(e.svg,{}):null}),Object(p.jsx)(di.a,{sx:{width:"90vw",maxWidth:"320px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:Object(p.jsxs)(v.a,{container:!0,item:!0,className:t.googleLogin,xs:12,md:12,lg:12,justifyContent:"center",maxWidth:"sm",children:[Object(p.jsx)(cn.a,{className:t.mainTitle,children:Ti.a.t(`${e.texto}`)}),Object(p.jsxs)(v.a,{container:!0,xs:12,md:12,lg:12,direction:"row",alignItems:"center",children:[e.loader?Object(p.jsx)(v.a,{item:!0,xs:1,className:t.alignGrid,children:Object(p.jsx)(e.loader,{})}):null,Object(p.jsx)(v.a,{item:!0,xs:10,children:Object(p.jsx)(cn.a,{className:t.recoverTex2,children:Ti.a.t(`${e.texto2}`)})})]})]})})]})})};class bC extends i.Component{constructor(e){super(e),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.handleTextMultiCountry=e=>{let t=Ti.a.t("");switch(e){case"com":case"ar":default:t=Ti.a.t("login.recoverTextMail");break;case"cl":case"uy":t=Ti.a.t("login.recoverTextMailChUy")}return t},this.state={textMultiCountry:Ti.a.t("login.recoverTextMail"),windowWidth:window.innerWidth}}componentDidMount(){const e=window.location.host.replace(/^.*\./,"");this.setState({textMultiCountry:this.handleTextMultiCountry(e)}),window.addEventListener("resize",this.handleResize)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",justifyContent:"center",children:Object(p.jsx)(gC,{svg:pC,texto:Ti.a.t("login.sendMailRecover"),texto2:this.state.textMultiCountry})}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var hC,xC=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center",justifyContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
1olid",borderColor:"#00C7AF",backgroundColor:"#00C7AF",borderRadius:30,color:"white",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"21px",fontWeight:400,textAlign:"center"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(bC),fC=a(253),vC=a(568),jC=a(254),AC=a(742);function CC(){return CC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},CC.apply(null,arguments)}function yC(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",CC({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,hC||(hC=i.createElement("path",{d:"M7 0.5C3.41602 0.5 0.5 3.41602 0.5 7C0.5 10.584 3.41602 13.5 7 13.5C10.584 13.5 13.5 10.584 13.5 7C13.5 3.41602 10.584 0.5 7 0.5ZM7 1.5C10.043 1.5 12.5 3.95703 12.5 7C12.5 10.043 10.043 12.5 7 12.5C3.95703 12.5 1.5 10.043 1.5 7C1.5 3.95703 3.95703 1.5 7 1.5ZM5.10938 4.39062L4.39062 5.10938L6.28125 7L4.39062 8.89062L5.10938 9.60938L7 7.71875L8.89062 9.60938L9.60938 8.89062L7.71875 7L9.60938 5.10938L8.89062 4.39062L7 6.28125L5.10938 4.39062Z",fill:"#F32465"})))}const OC=i.forwardRef(yC);var SC;a.p;function EC(){return EC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},EC.apply(null,arguments)}function IC(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",EC({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,SC||(SC=i.createElement("path",{d:"M8 0.5C3.875 0.5 0.5 3.875 0.5 8C0.5 12.125 3.875 15.5 8 15.5C12.125 15.5 15.5 12.125 15.5 8C15.5 3.875 12.125 0.5 8 0.5ZM8 14C4.6925 14 2 11.3075 2 8C2 4.6925 4.6925 2 8 2C11.3075 2 14 4.6925 14 8C14 11.3075 11.3075 14 8 14ZM11.4425 4.685L6.5 9.6275L4.5575 7.
16925L3.5 8.75L6.5 11.75L12.5 5.75L11.4425 4.685Z",fill:"#00A490"})))}const wC=i.forwardRef(IC);a.p;const TC=Object(u.a)((e=>({formButton:{color:"#131313",fontSize:"16px",fontWeight:400,textAlign:"left",border:"1px solid rgba(19, 19, 19, 0.3)",borderRadius:3,height:45,padding:"5px 16px",fontFamily:"Work Sans, sans-serif"},input:{height:45,fontFamily:"Work Sans, sans-serif"},dropdownPhone:{width:"320px !important","@media (min-width: 780px)":{width:"380px"}},registerText:{fontSize:"11px",fontFamily:"Work Sans, sans-serif"},icons:{width:"15px"},validationTextGreen:{color:"#00a490"},validationTextRed:{color:"#ff2569"},validationText:{color:"#ff2569",fontSize:"11px",marginTop:"3px",fontFamily:"Work Sans, sans-serif"},validationText2:{color:"#ff2569",fontSize:"11px",marginTop:"15px",fontFamily:"Work Sans, sans-serif"},errorText:{height:45,border:"1px solid #ff2569",borderRadius:1},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#00A490"},registerIcon:{color:"#00A490"},MuiCollapseRoot:{transitionDuration:"0"},MuiButtonText:{padding:"0"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313"},registerColorFont2:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",textDecoration:"none",marginLeft:5,letterSpacing:"normal"},labelAlign:{alignSelf:"center",alignContent:"center",fontFamily:"Work Sans, sans-serif"},formGroupTerm:{marginRight:0},discountComponent:{marginTop:5},loginBtn:{marginTop:e.spacing(1),height:50,width:320,textTransform:"none",border:"2px solid",borderColor:"#00A692",backgroundColor:"#00A692",borderRadius:50,color:"#fff",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontWeight:"normal",fontSize:"16px/22px","&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{width:380}},loginBtn2:{marginTop:e.spacing(1),height:50,width:320,textTransform:"none",border:"2px solid",borderColor:"#C6C6C6",backgroundColor:"#C6C6C6",borderRadius:50,color:" #131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontWeight:"normal",fontSize:"16px/22px",letterSpacing:0,"&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{width:380}},containerLoginBtn:{marginTop:"20px!important"},marginText:{marginBottom:"5px"},btnText:{fontFamily:"Work Sans, sans-serif"}}))),PC=o.a.forwardRef((function(e,t){return Object(p.jsx)(I.a,{elevation:6,ref:t,variant:"filled",...e,className:"containerLoginBtn"})}));var RC=function(){const[e,t]=o.a.useState(""),[a,n]=Object(i.useState)(!1),[r,s]=Object(i.useState)(!1),[l,c]=Object(i.useState)(!1),[d,u]=Object(i.useState)(!1),[m,g]=Object(i.useState)(!1),[b,h]=Object(i.useState)(!1),[x,f]=Object(i.useState)(!1),[j,A]=Object(i.useState)(!1),[C,O]=Object(i.useState)(!1),[S,E]=Object(i.useState)(!1),[I,w]=Object(i.useState)(!1),[T,P]=Object(i.useState)(!1),[R,N]=Object(i.useState)(!1),[L,k]=Object(i.useState)(!1),[D,F]=o.a.useState(""),[M,V]=Object(i.useState)(!1),[W,H]=Object(i.useState)(!1),[U,_]=Object(i.useState)(!1),[z,q]=Object(i.useState)(!1),[G,Y]=Object(i.useState)(!1),[K,X]=Object(i.useState)(!1),[Z,Q]=Object(i.useState)(!1),[J,$]=Object(i.useState)(!1),[ee,te]=Object(i.useState)(!1),ae=TC(),ie=a=>{t(a.target.value),a.target.value.length>=8?(s(!0),h(!1)):(s(!1),h(!0)),/[A-Z-\xd1]/.test(a.target.value)?(c(!0),f(!1)):(c(!1),f(!0)),/[0-9]/.test(a.target.value)?(u(!0),A(!1)):(u(!1),A(!0)),/[+]/.test(a.target.value)?(g(!0),O(!0),q(!1)):(g(!1),O(!1),q(!0)),/[a-z-\xf1]/.test(a.target.value)?(E(!0),w(!1)):(E(!1),w(!0)),""===e?(P(!0),Y(!1)):(P(!1),Y(!0))};Object(i.useEffect)((()=>{e!==D?(N(!0),H(!1)):(N(!1),H(!0)),V(!0===r&&!0===l&&!0===S&&!0===d&&!1===T&&!0===W&&!0===U&&!0===z&&!0===G)}),[b,x,j,z,I,G,W,r,l,S,d,T,U,e,D]);const oe=e=>{let t="";switch(e){case"Argentina":default:t="ar";break;case"Chile":t="cl";break;case"Uruguay":t="uy";break;case"Paraguay":t="py"}return t},ne=t=>{X(!0),fetch(Object(aa.a)()+"password/recovery/change",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_id:parseInt(localStorage.getItem("user_id")),email:localStorage.getItem("emailPass"),country:oe(localStorage.getItem("countryPass")),password:e,secret:localStorage.getItem("secret")})}).then((e=>""!==e?e.json():null)).then((e=>{e.code&&("secret_invalid"===e.code&&(X(!1),$(!0)),"password_politic"===e.code&&(X(!1),Q(!0))),"password_changed"===e.code&&(X(!1),window.open("/v3/login/completepass","_self"))}))};return Object(p.jsxs)(y.a,{component:"form",sx:{"& .MuiGrid-item":{mt:1.5,width:"90vw",maxWidth:"320px","@media (min-width: 780px)":{maxWidth:"380px"},"& .Mui-focused":{border:"1px solid rgba(19, 19, 19, 0.3)"}}},children:[Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:[Object(p.jsx)(vC.a,{title:Object(p.jsxs)(o.a.Fragment,{children:[Object(p.jsx)(y.a,{className:r?ae.validationTextGreen:ae.validationTextRed,sx:{flexDirection:"row"},children:r?Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",className:ae.marginText,children:[Object(p.jsx)(wC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.characters")})]}):Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",className:ae.marginText,children:[Object(p.jsx)(OC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.characters")})]})}),Object(p.jsx)(y.a,{className:l?ae.validationTextGreen:ae.validationTextRed,sx:{flexDirection:"row"},children:l?Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",className:ae.marginText,children:[Object(p.jsx)(wC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.oneCapital")})]}):Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",className:ae.marginText,children:[Object(p.jsx)(OC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.oneCapital")})]})}),Object(p.jsx)(y.a,{className:S?ae.validationTextGreen:ae.validationTextRed,sx:{flexDirection:"row"},children:S?Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",className:ae.marginText,children:[Object(p.jsx)(wC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.oneletter")})]}):Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",className:ae.marginText,children:[Object(p.jsx)(OC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.oneletter")})]})}),Object(p.jsx)(y.a,{className:d?ae.validationTextGreen:ae.validationTextRed,sx:{flexDirection:"row"},children:d?Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[Object(p.jsx)(wC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.numberCh")})]}):Object(p.jsxs)(v.a,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",children:[Object(p.jsx)(OC,{style:{width:"15px",marginRight:"5px"}}),Object(p.jsx)(cn.a,{className:ae.registerText,children:Ti.a.t("login.numberCh")})]})})]}),placement:"left",arrow:!0,open:ee,PopperProps:{modifiers:[{name:"offset",options:{offset:[-5,5]}}]},componentsProps:{tooltip:{sx:{backgroundColor:"#FFFFFF",color:"#ff2569",borderRadius:"8px",padding:"10px",border:"1px solid #e0e0e0",boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.1)"}},arrow:{sx:{color:"#FFFFFF"}}},children:Object(p.jsx)(XA.c,{placeholder:Ti.a.t("login.newPass"),fullWidth:!0,type:!1===a?"password":"text",id:"password",name:"name",autocomplete:"off","data-tip":!0,"data-for":"registerTip",className:ae.formButton,onChange:ie,onFocus:ie,onMouseEnter:()=>te(!0),onMouseLeave:()=>te(!1),onBlur:ie,inputProps:{maxLength:255,className:ae.input},style:{fontFamily:"Work Sans, sans-serif"},sx:!0===b||!0===x||!0===j||!0===C||!0===I||!0===L?{border:"1px solid #ff2569",borderRadius:1}:{className:ae.input2},endAdornment:Object(p.jsx)(B.a,{position:"end",style:{cursor:"pointer"},children:!1===a?Object(p.jsx)(jC.a,{onClick:e=>n(!0)}):Object(p.jsx)(fC.a,{onClick:e=>n(!1)})})})}),!0===m&&Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:ae.validationText,style:{marginRight:"10px"},children:Ti.a.t("login.plusCh")})})]}),Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:[Object(p.jsx)(XA.c,{placeholder:Ti.a.t("login.confirmPass"),fullWidth:!0,inputProps:{className:ae.input,maxLength:255},type:!1===a?"password":"text",id:"password",name:"name",autocomplete:"off",style:{fontFamily:"Work Sans, sans-serif"},sx:!0===R||!0===L?{border:"1px solid #ff2569",borderRadius:1}:{className:ae.input2},className:ae.formButton,onChange:e=>{F(e.target.value),""===D?(k(!0),_(!1)):(k(!1),_(!0)),localStorage.setItem("password",e.target.value)},onKeyDown:e=>{"Enter"===e.key&&ne()}}),!0===R&&Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:ae.validationText,style:{marginRight:"10px"},children:Ti.a.t("login.matchPass")})}),!0===L&&Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:ae.validationText,children:Ti.a.t("login.reqField")})})]}),Object(p.jsx)(v.a,{container:!0,items:!0,xs:12,md:12,lg:12,children:K&&Object(p.jsx)(_A.a,{open:K,children:Object(p.jsx)("div",{style:{padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:Object(p.jsx)(Od.a,{size:30,style:{backgroundColor:"transparent"}})})})}),Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,className:ae.containerLoginBtn,children:[!0===M?Object(p.jsx)(zA.a,{className:ae.loginBtn,onClick:ne,disabled:!1,children:Object(p.jsx)(cn.a,{className:ae.btnText,children:Ti.a.t("login.chancePass")})}):Object(p.jsx)(zA.a,{className:ae.loginBtn2,onClick:ne,disabled:!0,children:Object(p.jsx)(cn.a,{className:ae.btnText,children:Ti.a.t("login.chancePass")})}),!0===Z&&Object(p.jsxs)(v.a,{children:[" ",Object(p.jsx)(cn.a,{className:ae.validationText2,children:Ti.a.t("login.btnErr")})]})]}),Object(p.jsx)(AC.a,{open:J,autoHideDuration:6e4,children:Object(p.jsx)(PC,{onClose:(e,t)=>{"clickaway"!==t&&$(!1)},severity:"error",sx:{width:"100%",backgroundColor:"#F32465"},children:Ti.a.t("login.err")})})]})};class NC extends i.Component{constructor(e){super(e),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth}}componentDidMount(){window.addEventListener("resize",this.handleResize)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",justifyContent:"center",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.mainTitle,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(UA,{})}),Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",maxWidth:"sm",children:Object(p.jsx)(v.a,{children:Object(p.jsxs)(y.a,{sx:{width:"90vw",maxWidth:"320px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px",justifyContent:"center",margin:"0"}},children:[Object(p.jsx)(cn.a,{className:e.recoverTex,children:Ti.a.t("login.newChancePass")}),Object(p.jsx)(v.a,{className:e.containerLabel,children:Object(p.jsxs)(cn.a,{className:e.labelText,children:[Ti.a.t("login.createNewPass")," ",""," ",Ti.a.t("login.createNewPass2")]})})]})})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(RC,{})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,justifyContent:"center",children:Object(p.jsx)(iC,{text:Ti.a.t("login.goBack"),link:"/v3/login"})})]}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var LC,kC,BC=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10,alignContent:"center"},mainTitle:{marginTop:"4%",marginBottom:"10px"},line:{margin:15},lineText:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
1olid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",font:"normal normal normal 16px/22px WorkSans"},registerFont:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#00C7AF",backgroundColor:"#00C7AF",borderRadius:30,color:"white",autoComplete:"off",font:"normal normal normal 16px/22px WorkSans"},formCheck:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"WorkSans",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"28px",fontWeight:600,textAlign:"center","@media (min-width: 780px)":{fontSize:"32px"}},labelText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"left",marginBottom:"5px",letterSpacing:0},containerLabel:{marginTop:"10px"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(NC);function DC(){return DC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},DC.apply(null,arguments)}function FC(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",DC({width:100,height:100,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,LC||(LC=i.createElement("circle",{cx:50,cy:50,r:50,fill:"#00C7AF",fillOpacity:.2})),kC||(kC=i.createElement("path",{d:"M74.5625 30.5625L40 65.125L25.4375 50.5625L22.5625 53.4375L38.5625 69.4375L40 70.8125L41.4375 69.4375L77.4375 33.4375L74.5625 30.5625Z",fill:"#00C7AF"})))}const MC=i.forwardRef(FC);a.p;class VC extends i.Component{constructor(e){super(e),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth}}escFunction(e){"Enter"===e.key&&window.open("/","_self")}componentDidMount(){window.addEventListener("resize",this.handleResize),document.addEventListener("keydown",this.escFunction,!1)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",justifyContent:"center",children:[Object(p.jsx)(gC,{svg:MC,texto:Ti.a.t("login.goBackLogin2"),texto2:Ti.a.t("login.goBackLogin1")}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,xs:12,md:12,lg:12,justify:"center",children:Object(p.jsx)(zA.a,{href:"/v3/login",className:e.loginBtn,style:{width:t>=600?380:"90%"},children:Object(p.jsx)(cn.a,{className:e.labelText,children:Ti.a.t("login.goBack")})})})]}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var WC,HC,UC,_C,zC,qC=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center",justifyContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
1olid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",backgroundColor:"#FFFFFF",borderRadius:30,color:"#131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"21px",fontWeight:400,textAlign:"center"},labelText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:400,lineHeight:1.5,textAlign:"center"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(VC);function GC(){return GC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},GC.apply(null,arguments)}function YC(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",GC({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,WC||(WC=i.createElement("path",{fill:"#EA4435",d:"M12.435 14.3301L2.91745 8.27332C2.42541 7.94793 2.08085 7.44231 1.95795 6.86535C1.83505 6.28839 1.94365 5.68624 2.26037 5.18857C2.57709 4.6909 3.07659 4.33752 3.65131 4.20452C4.22602 4.07153 4.82998 4.16956 5.33313 4.4775L12.3156 8.92072L18.585 4.5321C19.0741 4.20064 19.674 4.07489 20.255 4.182C20.8361 4.28912 21.3517 4.6205 21.6905 5.10458C22.0293 5.58865 22.1641 6.18657 22.0658 6.76919C21.9674 7.35181 21.6439 7.87236 21.165 8.21842L12.435 14.3301Z"})),HC||(HC=i.createElement("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#00AC47",d:"M20.6251 19.8755H17.6251V6.37555C17.6251 5.77881 17.8622 5.20652 18.2841 4.78456C18.7061 4.3626 19.2784 4.12555 19.8751 4.12555V4.12555C20.4719 4.12555 21.0442 4.3626 21.4661 4.78456C21.8881 5.20652 22.1251 5.77881 22.1251 6.37555V18.3755C22.1251 18.7734 21.9671 19.1549 21.6858 19.4362C21.4045 19.7175 21.0229 19.8755 20.6251 19.8755V19.8755Z"})),UC||(UC=i.createElement("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#FFBA00",d:"M22.0921 6.04921C22.0855 6.00421 22.086 5.95823 22.0766 5.91331C22.0622 5.84446 22.0355 5.78086 22.0149 5.71441C21.995 5.63835 21.971 5.56342 21.9431 5.48993C21.9281 5.45431 21.905 5.42303 21.8879 5.38838C21.8413 5.28841 21.7873 5.19202 21.7264 5.10001C21.6964 5.05643 21.6589 5.01931 21.6257 4.97806C21.5689 4.90309 21.5074 4.83173 21.4416 4.76438C21.3917 4.71586 21.3349 4.67528 21.2807 4.63156C21.223 4.58215 21.163 4.53566 21.1007 4.49228C21.0412 4.45343 20.9761 4.42351 20.9132 4.39036C20.8469 4.35578 20.7819 4.31813 20.7129 4.29053C20.6462 4.26368 20.5751 4.24658 20.5055 4.22611C20.4358 4.20563 20.3665 4.18111 20.2949 4.16783C20.2063 4.15359 20.1169 4.14458 20.0272 4.14083C19.9703 4.13686 19.9139 4.12688 19.8567 4.12733C19.7506 4.13043 19.6449 4.14108 19.5403 4.15921C19.4981 4.16551 19.4555 4.16498 19.4136 4.17368C19.2721 4.21693 19.131 4.26143 18.9902 4.30718C18.9516 4.32368 18.9178 4.34821 18.8804 4.36681C18.4995 4.54453 18.1783 4.82875 17.9555 5.18513C17.7327 5.54151 17.6179 5.95478 17.6249 6.37501V10.6965L21.1649 8.21828C21.5126 7.98498 21.7851 7.65592 21.9496 7.27094C22.1141 6.88595 22.1635 6.46154 22.0919 6.04906L22.0921 6.04921Z"}
1)),_C||(_C=i.createElement("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#4285F4",d:"M4.125 4.125C4.72174 4.125 5.29403 4.36205 5.71599 4.78401C6.13795 5.20597 6.375 5.77826 6.375 6.375V19.875H3.375C2.97718 19.875 2.59564 19.717 2.31434 19.4357C2.03304 19.1544 1.875 18.7728 1.875 18.375V6.375C1.875 5.77826 2.11205 5.20597 2.53401 4.78401C2.95597 4.36205 3.52826 4.125 4.125 4.125V4.125Z"})),zC||(zC=i.createElement("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#C52528",d:"M1.90797 6.04919C1.91457 6.00419 1.91405 5.95821 1.92342 5.91328C1.93782 5.84443 1.9646 5.78083 1.98515 5.71438C2.00507 5.63835 2.02905 5.56345 2.057 5.48998C2.072 5.45436 2.0951 5.42308 2.1122 5.38843C2.15883 5.28842 2.21283 5.192 2.27375 5.09998C2.30375 5.05641 2.34125 5.01928 2.3744 4.97803C2.43126 4.90306 2.49273 4.8317 2.55845 4.76436C2.60832 4.71583 2.66517 4.67526 2.71947 4.63153C2.77709 4.5821 2.83716 4.53562 2.89947 4.49226C2.95895 4.45341 3.02405 4.42348 3.08697 4.39033C3.152 4.35355 3.21884 4.32006 3.28722 4.28998C3.35397 4.26313 3.42507 4.24603 3.49467 4.22556C3.56427 4.20508 3.63365 4.18056 3.7052 4.16728C3.79384 4.15305 3.88325 4.14403 3.97295 4.14028C4.02995 4.13631 4.08627 4.12633 4.14342 4.12678C4.24952 4.12987 4.35527 4.14053 4.45985 4.15866C4.50207 4.16496 4.5446 4.16443 4.5866 4.17313C4.6592 4.19163 4.73079 4.21386 4.8011 4.23973C4.8718 4.25853 4.94151 4.28085 5.00997 4.30663C5.04852 4.32313 5.08235 4.34766 5.11985 4.36626C5.21707 4.41193 5.31086 4.46457 5.4005 4.52376C5.70098 4.73008 5.94672 5.00643 6.11651 5.32896C6.2863 5.65149 6.37503 6.01049 6.37505 6.37498V10.6965L2.83505 8.21841C2.48748 7.98504 2.21496 7.65598 2.05044 7.27102C1.88591 6.88605 1.83643 6.46167 1.90797 6.04919V6.04919Z"})))}const KC=i.forwardRef(YC);var XC,ZC,QC,JC;a.p;function $C(){return $C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},$C.apply(null,arguments)}function ey(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",$C({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,XC||(XC=i.createElement("path",{fill:"#0072C6",d:"M14.613 5.95276V10.0605L16.05 10.9643C16.1019 10.9757 16.1557 10.9757 16.2075 10.9643L22.386 6.79876C22.3815 6.5966 22.3076 6.40215 22.1766 6.24809C22.0456 6.09402 21.8656 5.98974 21.6668 5.95276H14.613Z"})),ZC||(ZC=i.createElement("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#0072C6",d:"M14.6131 11.5927L15.9233 12.4927C15.9847 12.5301 16.0551 12.5498 16.1269 12.5498C16.1988 12.5498 16.2692 12.5301 16.3306 12.4927C16.1056 12.6285 22.3853 8.45923 22.3853 8.45923V16.0087C22.4017 16.1617 22.3844 16.3164 22.3348 16.462C22.2851 16.6076 22.2042 16.7406 22.0978 16.8517C21.9913 16.9628 21.8619 17.0493 21.7185 17.1051C21.5752 17.161 21.4213 17.1848 21.2678 17.175H14.6123V11.5927H14.6131Z"})),QC||(QC=i.createElement("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#0072C6",d:"M7.83004 9.69902C7.61233 9.69797 7.3984 9.75583 7.21091 9.86648C7.02342 9.97713 6.86936 10.1364 6.76504 10.3275C6.48012 10.834 6.34342 11.4105 6.37054 11.991C6.34093 12.5703 6.47782 13.146 6.76504 13.65C6.86892 13.8332 7.01919 13.9859 7.20076 14.0926C7.38232 14.1994 7.58879 14.2564 7.7994 14.2581C8.01001 14.2598 8.21736 14.206 8.40059 14.1022C8.58383 13.9983 8.73651 13.8481 8.84329 13.6665C9.12737 13.1648 9.26143 12.5922 9.22954 12.0165C9.26207 11.4228 9.13244 10.8314 8.85454 10.3058C8.75523 10.1209 8.60731 9.9667 8.42676 9.85977C8.2462 9.75283 8.03987 9.69725 7.83004 9.69902V9.69902Z"})),JC||(JC=i.createElement("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#0072C6",d:"M1.61475 3.86625V19.9365L13.8397 22.5V1.5L1.61475 3.86625ZM9.79575 14.6182C9.56706 14.9406 9.26298 15.2022 8.91002 15.3801C8.55706 15.558 8.16593 15.6469 7.77075 15.639C7.38551 15.6458 7.00431 15.5595 6.65958 15.3874C6.31486 15.2153 6.01679 14.9625 5.79075 14.6505C5.25464 13.902 4.98645 12.9947 5.0295 12.075C4.98389 11.1102 5.25692 10.1572 5.8065 9.363C6.03807 9.03445 6.34692 8.76791 6.70582 8.5869C7.06472 8.40588 7.46264 8.31594 7.8645 8.325C8.24695 8.31733 8.62543 8.40365 8.96673 8.57639C9.3
10804 8.74913 9.60172 9.00302 9.822 9.31575C10.3527 10.0805 10.6164 10.9989 10.572 11.9287C10.6188 12.8865 10.3457 13.8327 9.79575 14.6182Z"})))}const ty=i.forwardRef(ey);a.p;var ay=a(127),iy=a(259);const oy=async e=>{try{return await e.json()}catch{return null}},ny=e=>{var t,a,i,o;if(!e||"object"!==typeof e)return"";const n=null!==(t=null!==(a=e.code)&&void 0!==a?a:null===(i=e.error)||void 0===i?void 0:i.code)&&void 0!==t?t:null===(o=e.data)||void 0===o?void 0:o.code;return String(n||"").toLowerCase()},ry=e=>{var t,a,i;return null!==(t=null!==(a=null===e||void 0===e?void 0:e.remaining_attempts)&&void 0!==a?a:null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.remaining_attempts)&&void 0!==t?t:null},sy=e=>{var t,a,i;const o=Number(null!==(t=null!==(a=null===e||void 0===e?void 0:e.retry_after_seconds)&&void 0!==a?a:null===e||void 0===e?void 0:e.retry_after)&&void 0!==t?t:null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.retry_after);return Number.isFinite(o)&&o>0?o:900},ly=e=>"jwt_invalid"===ny(e),cy=(e,t)=>{if(429===t)return!0;if(!e)return!1;const a=ny(e);if(a.includes("rate")||a.includes("lock")||"too_many_attempts"===a||"max_attempts_exceeded"===a||"rate_limit_exceeded"===a)return!0;return String(e.message||"").toLowerCase().includes("too many attempts")},dy=(e,t)=>{if(ly(e))return{isJwtInvalid:!0};if("email_verified"===ny(e))return{i18nKey:"login.loginMfaEmailVerifiedError"};if("rate_limit_exceeded"===ny(e))return{isRateLimited:!0,isSendRateLimited:!0,lockReason:BA.d,retryAfterSeconds:sy(e)};if(cy(e,t)){const t=sy(e);return{isRateLimited:!0,lockReason:BA.d,retryAfterSeconds:t}}return t>=500||null===e||void 0===e||e.code,{i18nKey:"login.loginMfaSendCodeErrorUnavailable"}},uy=(e,t,a)=>{if(!e)return{i18nKey:t};if(ly(e))return{isJwtInvalid:!0};if("email_verified"===ny(e))return{i18nKey:"login.loginMfaEmailVerifiedError"};if("code_invalid"===ny(e))return{i18nKey:Object(BA.r)(ry(e)),isInvalidCode:!0,remainingAttempts:ry(e)};if(cy(e,a)){const t=sy(e);return{i18nKey:"login.loginMfaSoftLockBlocked",isRateLimited:!0,lockReason:BA.e,retryAfterSeconds:t}}return e.message?{rawMessage:e.message}:{i18nKey:t}},py=(e,t)=>{var a;const i=new Error(e.rawMessage||e.i18nKey||t);return i.i18nKey=e.i18nKey||null,i.rawMessage=e.rawMessage||null,i.isRateLimited=Boolean(e.isRateLimited),i.isSendRateLimited=Boolean(e.isSendRateLimited),i.isJwtInvalid=Boolean(e.isJwtInvalid),i.lockReason=e.lockReason||null,i.retryAfterSeconds=null!==(a=e.retryAfterSeconds)&&void 0!==a?a:null,i},my=async function(e,t){let{useSendOtpErrorHandling:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i="login.loginMfaSendCodeError";let o;try{o=await fetch(Object(aa.a)()+t,{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}})}catch{throw py({i18nKey:"login.loginMfaSendCodeErrorUnavailable"},i)}const n=await oy(o);if(!o.ok){const e=a?dy(n,o.status):uy(n,i,o.status),t=py(e,i);throw t.code=(null===n||void 0===n?void 0:n.code)||null,t}return n},gy=e=>{const t=JSON.parse(Object(H.b)(e));localStorage.setItem("jwt",e),localStorage.setItem("validated",t.data.verified),localStorage.setItem("userID_Product",t.data.userId),localStorage.setItem("Company",t.data.business_name),localStorage.setItem("email",t.data.email),localStorage.setItem("userAdd",t.data.is_additional),localStorage.setItem("parent",t.data.parent_id),localStorage.setItem("country_prod",t.data.country),localStorage.setItem("sign_up_date",t.data.sign_up_date),localStorage.setItem("promotion_code",t.data.promotion_code);const a=new L.a;return Object(BA.B)(),a.set(BA.a,e,{path:"/",expire:t.data.exp}),t.data},by=e=>my(e,"login/send_otp_code",{useSendOtpErrorHandling:!0}),hy=async(e,t)=>{var a,i;const o=await((e,t)=>fetch(Object(aa.a)()+"login/validate_otp",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({code:t})}))(e,t),n=await(async e=>{const t=await oy(e),a=ny(t),i=uy(t,"login.errCodeApi",e.status);return{data:t,responseCode:a,isRateLimited:cy(t,e.status)||"max_attempts_exceeded"===a,isInvalidCode:"code_invalid"===a,errorInfo:i}})(o);if("mfa_complete"===n.responseCode&&null!==(a=n.data)&&void 0!==a&&a.jwt)return gy(n.data.jwt);if(o.ok&&null!==(i=n.data)&&void 0!==i&&i.jwt)return gy(n.data.jwt);throw((e,t)=>{var a;const i=ny(e.data),o=e.errorInfo||uy(e.data,"login.errCodeApi",t),n=new Error(o.rawMessage||o.i18nKey||"login.errCodeApi");return n.i18nKey=o.i18nKey||null,n.rawMessage=o.rawMessage||null,n.isRateLimited=Boolean(o.isRateLimited)||"max_attempts_exceeded"===i||cy(e.data,t),n.isInvalidCode=Boolean(o.isInvalidCode)||"code_invalid"===i,n.isJwtInvalid=Boolean(o.isJwtInvalid)||"jwt_invalid"===i,n.retryAfterSeconds=n.isRateLimited?sy(e.data):null,n.lockReason=n.isRateLimited?o.lockReason||BA.e:null,n.remainingAttempts=ry(e.data),n.code=(null===(a=e.data)||void 0===a?void 0:a.code)||i||null,n})(n,o.status)},xy=Object(u.a)((()=>({registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"11px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline",color:"#00A490"}},labels:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"11px",fontWeight:400,marginRight:"5px"}})));var fy=e=>{let{onResendError:t,onResend:a,onResendSuccess:o}=e;const n=xy(),r=Object(i.useRef)(null),[s,l]=Object(i.useState)("00"),c=async()=>{const e=localStorage.getItem("jwt");try{a?await a(e):await(e=>my(e,"register/send_activation_code"))(e),o&&o()}catch(i){if(t){const e=i.i18nKey?Ti.a.t(i.i18nKey):i.rawMessage||Ti.a.t("login.loginMfaSendCodeError");t(e)}else console.log(i)}},d=e=>{const{total:t,seconds:a}=(e=>{const t=Date.parse(e)-Date.parse(new Date);return{total:t,seconds:Math.floor(t/1e3%60)}})(e);t>=0&&l(a>9?a:"0"+a)},u=e=>{l("60"),r.current&&clearInterval(r.current);const t=setInterval((()=>{d(e)}),1e3);r.current=t},m=()=>{const e=new Date;return e.setSeconds(e.getSeconds()+60),e};Object(i.useEffect)((()=>{u(m())}),[]);return Object(p.jsx)("div",{children:s>"00"?Object(p.jsxs)(v.a,{container:!0,item:!0,direction:"row",spacing:"5px",className:n.labels,children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{maxWidth:"md",className:n.labels,children:Ti.a.t("login.wait")})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{maxWidth:"md",className:n.labels,children:s})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{maxWidth:"md",className:n.labels,children:Ti.a.t("login.seconds")})})]}):Object(p.jsx)(v.a,{container:!0,item:!0,className:n.registerColorFont,children:Object(p.jsx)(cn.a,{className:n.registerColorFont,maxWidth:"md",children:Object(p.jsx)(yA.a,{component:"button",type:"button",underline:"none",onClick:e=>{e.preventDefault(),c(),u(m())},className:n.registerColorFont,children:Ti.a.t("login.resendNow")})})})})};const vy=Object(u.a)((e=>({googleLogin:{marginBottom:10,alignContent:"center"},BaseGrid:{margin:10},labels:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"11px",fontWeight:400,marginRight:"5px",lineHeight:1.5},errorText:{color:"#ff2569",fontFamily:"Work Sans, sans-serif",fontSize:"12px",marginTop:"10px"},validText:{color:"#00c7af",fontFamily:"Work Sans, sans-serif",fontSize:"12px"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
1olid",borderColor:"#00A692",backgroundColor:"#00A692",borderRadius:50,color:"#fff",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal","&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"}},loginBtn2:{marginTop:e.spacing(1),height:50,width:320,textTransform:"none",border:"2px solid",borderColor:"#C6C6C6",backgroundColor:"#C6C6C6",borderRadius:50,color:" #131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal","&:hover":{backgroundColor:"#00A692",borderColor:"#00A692",color:"#fff"},"@media (min-width: 780px)":{width:380}},typography:{fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal"}}))),jy=ay.b.div`
2  display: flex;
3  justify-content: center;
4  
5  --ReactInputVerificationCode-itemWidth: 43px;
6  --ReactInputVerificationCode-itemHeight: 57px;
7  --ReactInputVerificationCode-itemSpacing: 19px; 
8
9  .ReactInputVerificationCode__item {
10    font-family: "Work Sans", sans-serif;
11    font-size: 28px;
12    font-weight: 500;
13    color: #131313;
14
15    backgroundcolor: rgba(53, 67, 98, 1);
16    border: 1px solid
17      ${e=>{let{isInvalid:t}=e;return!0===t?"#ff2569":"rgba(19, 19, 19, 0.3)"}}      ;
18    border-radius: 3px;
19    box-shadow: none;
20  }
21   .ReactInputVerificationCode__item.is-active {
22    box-shadow: none;
23    border: 1px solid
24      ${e=>{let{isInvalid:t}=e;return!0===t?"#ff2569":"#777777"}};
25  } 
26`;function Ay(){const e=vy(),[t,a]=Object(i.useState)(""),[o,n]=Object(i.useState)(!1),[r,s]=Object(i.useState)(!1),[l,c]=Object(i.useState)(!1),[d,u]=Object(i.useState)(!1);Object(i.useEffect)((e=>{if(!0===o){const e=e=>{"Enter"===e.key&&m()};return n(!0),window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}n(!1)}),[o]);const m=e=>{if(!1===d)s(!0);else{c(!0);const e=localStorage.getItem("jwt"),a=Object(aa.a)()+"login/validate_code";fetch(a,{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({code:t})}).then((t=>{400===t.status?(c(!1),s(!0)):fetch(Object(aa.a)()+"login/refresh_jwt",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}).then((e=>{if(""!==e)return e.json()})).then((e=>{let t=JSON.parse((e=>{let t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))})(e.jwt));localStorage.setItem("validated",t.data.verified),localStorage.setItem("userID_Product",t.data.userId),localStorage.setItem("Company",t.data.business_name),localStorage.setItem("email",t.data.email),localStorage.setItem("userAdd",t.data.is_additional),localStorage.setItem("parent",t.data.parent_id),localStorage.setItem("country_prod",t.data.country),localStorage.setItem("sign_up_date",t.data.sign_up_date),localStorage.setItem("promotion_code",t.data.promotion_code);(new L.a).set("Secure-1CBL",e.jwt,{path:"/",expire:t.data.exp}),!1===t.data.verified?window.open("/v3/login/mailauth","_self"):(c(!1),localStorage.removeItem("code"),window.open("/v3/login/successauth","_self"))})).catch((e=>{c(!1),console.log(e)}))})).catch((e=>{c(!1),console.log(e)}))}},{width:g}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",mb:1,sx:{"& \t.MuiButton-text .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",lineHeight:"18.77px",fontSize:"16px"}},children:Object(p.jsxs)(v.a,{className:e.googleLogin,sx:{"& \t.MuiButton-text .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",lineHeight:"18.77px",fontSize:"16px"}},children:[Object(p.jsx)(jy,{isInvalid:r,children:Object(p.jsx)(iy.a,{length:6,placeholder:"",autoFocus:!0,onChange:e=>{a(e),localStorage.setItem("code",e),e.length>5?(u(!0),n(!0)):(u(!1),n(!1))}})}),r?Object(p.jsx)(cn.a,{className:e.errorText,children:Ti.a.t("login.errCodeApi")}):null,l&&Object(p.jsx)(_A.a,{open:l,children:Object(p.jsx)("div",{style:{padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:Object(p.jsx)(Od.a,{size:30,style:{backgroundColor:"transparent"}})})})]})}),Object(p.jsxs)(v.a,{container:!0,item:!0,justifyContent:"center",direction:"row",spacing:"5px",className:e.BaseGrid,children:[Object(p.jsxs)(cn.a,{xs:g>=600?6:12,md:g>=600?6:12,lg:g>=600?6:12,maxWidth:"md",noWrap:!0,className:e.labels,children:[Ti.a.t("login.codeLabel")," "]}),Object(p.jsx)(cn.a,{xs:g>=600?6:12,md:g>=600?6:12,lg:g>=600?6:12,maxWidth:"md",noWrap:!0,children:Object(p.jsx)(fy,{})})]}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,xs:12,md:12,lg:12,justifyContent:"center",children:!1===o?Object(p.jsx)(zA.a,{className:e.loginBtn2,disabled:!0,children:Object(p.jsx)(cn.a,{className:e.typography,children:Ti.a.t("login.confirm")})}):Object(p.jsx)(zA.a,{className:e.loginBtn,disabled:!1,onClick:m,children:Object(p.jsx)(cn.a,{className:e.typography,children:Ti.a.t("login.confirm")})})})]})}class Cy extends i.Component{constructor(e){super(e),this.decryptJwt=e=>{let t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},this.compareDate=(e,t)=>
26e>new Date(1e3*t),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.sendCode=e=>{fetch(Object(aa.a)()+"register/send_activation_code",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}).catch((e=>{console.log(e)}))},this.handleRedirect=()=>{const e=localStorage.getItem("jwt");if(e){JSON.parse(this.decryptJwt(e)).data.country,window.open("/v3/dashboard","_self")}},this.state={windowWidth:window.innerWidth,completed:!1,banner:!1,blocked:!1,email:""}}componentDidMount(){const e=(new L.a).get("Secure-1CBL");localStorage.setItem("jwt",e);let t=JSON.parse(this.decryptJwt(e));this.setState({email:t.data.email});!0===this.compareDate(Date.now(),t.data.verification_exp)&&!1===t.data.verified&&this.setState({blocked:!0}),this.sendCode(e),window.addEventListener("resize",this.handleResize)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",justifyContent:"center",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:[Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",mb:1,children:Object(p.jsx)(v.a,{className:e.googleLogin,children:Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:Object(p.jsx)(cn.a,{className:e.recoverTex,children:Ti.a.t("login.emailVerification")})})})}),Object(p.jsx)(v.a,{container:!0,xs:12,md:12,lg:12,mb:1,justifyContent:"center",direction:"row",className:e.textVerification,children:this.state.blocked?Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:Object(p.jsxs)(cn.a,{className:e.labelText,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:[Ti.a.t("login.disableAccount")," ",Object(p.jsxs)("span",{style:{fontWeight:"bold"},children:[this.state.email,". "]}),Ti.a.t("login.pleaseEnterCode")]})}):Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:Object(p.jsxs)(cn.a,{className:e.labelText,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:[Ti.a.t("login.subEmailVerification")," ",Object(p.jsx)("span",{style:{fontWeight:"bold"},children:this.state.email})," ",Ti.a.t("login.subEmailVerification2")]})})}),Object(p.jsx)(Ay,{}),this.state.blocked?null:Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",children:Object(p.jsxs)(zA.a,{onClick:this.handleRedirect,className:e.button,children:[" ",Ti.a.t("login.enterLater")," "]})}),Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.alignMails,direction:"row",spacing:2,sx:{width:"90vw",maxWidth:"320px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(yA.a,{underline:"none",href:"https://accounts.google.com/signin",target:"_blank",className:e.openMail,children:Object(p.jsxs)(v.a,{container:!0,item:!0,direction:"row",alignItems:"center",justifyContent:"center",children:[Object(p.jsx)(KC,{}),Object(p.jsx)(cn.a,{className:e.mailColor,children:Ti.a.t("login.openGmail")})]})})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(yA.a,{underline:"none",href:"https://login.live.com/",target:"_blank",className:e.openMail,children:Object(p.jsxs)(v.a,{container:!0,item:!0,direction:"row",alignItems:"center",children:[Object(p.jsx)(ty,{}),Object(p.jsx)(cn.a,{className:e.mailColor,children:Ti.a.t("login.openOutlook")})]})})})]}),Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",direction:"row",children:this.state.banner?Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",mb:1,className:e.wrapLabel,children:Object(p.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[Object(p.jsx)(cn.a,{className:e.labelText,maxWidth:"md",children:Ti.a.t("login.incorrectEmail")}),Object(p.jsxs)(zA.a,{href:"/v3/login/confirmemail",className:e.button2,children:[" ",Ti.a.t("login.changeEmail")," "]})]})}):Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:Object(p.jsxs)(cn.a,{className:e.labelText,maxWidth:"md",children:[Ti.a.t("login.notReceive"),Object(p.jsxs)(yA.a,{underline:"none",href:"/v3/login/confirmemail",className:e.button2,children:[" ",Ti.a.t("login.enterNewEmail")]})," ",Ti.a.t("login.notReceive2")]})})})]}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var yy=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10,alignContent:"center"},textVerification:{marginBottom:20,alignContent:"center"},alignMails:{justifyContent:"center",marginTop:e.spacing(1),marginBottom:10,alignContent:"center"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"left",color:"#00A490"},mailColor:{marginLeft:e.spacing(2),fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:600,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"left",color:"#131313"},BaseGrid:{margin:10},topdiv:{position:"absolute",top:20,right:30},recoverTex:{textAlign:"left",color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"32px",fontWeight:600},labelText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"left"},labelText3:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:600,lineHeight:"18px",textAlign:"left"},labels:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px"},button:{margin:"10px",color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"18px",textAlign:"left",textTransform:"none","&:hover":{backgroundColor:"white",color:"#00A490"}},button2:{margin:0,fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:600,lineHeight:1.2,textAlign:"left",textTransform:"none",alignItems:"center",color:"#007868 !important","&:hover":{backgroundColor:"white",textDecoration:"underline"}},wrapLabel:{verticalAlign:"middle",display:"flex"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(Cy);function Oy(){return Object(p.jsx)(Fr.a,{sx:{color:"#00c7af"},spacing:2,direction:"row",children:Object(p.jsx)(oi.a,{color:"inherit",size:"30px"})})}class Sy extends i.Component{constructor(e){super(e),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth}}componentDidMount(){window.open("/v3/dashboard","_self"),window.addEventListener("resize",this.handleResize)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:Object(p.jsx)(gC,{svg:MC,texto:"login.successAuth",texto2:"login.enterCbl",loader:Oy})}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var Ey=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
26olid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",font:"normal normal normal 16px/22px WorkSans"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",backgroundColor:"#FFFFFF",borderRadius:30,color:"#131313",autoComplete:"off",font:"normal normal normal 16px/22px WorkSans"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"21px",fontWeight:400,textAlign:"center"},labelText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"center"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{position:"fixed",top:0,right:0,height:"100vh"}})),{withTheme:!0})(Sy);const Iy=Object(u.a)((()=>({resendButton:{minWidth:0,minHeight:0,height:"auto",padding:0,margin:0,textTransform:"none",fontFamily:"Work Sans, sans-serif",fontSize:"11px",fontWeight:500,lineHeight:"18.77px",color:"#00A490",backgroundColor:"transparent",verticalAlign:"baseline","&:hover":{backgroundColor:"transparent",textDecoration:"underline"},"&.Mui-disabled":{color:"#131313",opacity:.6}}})));var wy=e=>{let{userId:t,resendCooldownSyncToken:a=0,disabled:o=!1,onResendError:n,onRateLimited:r,onResendSuccess:s}=e;const l=Iy(),c=Object(BA.u)(t),[d,u]=Object(i.useState)((()=>c.expiresAt)),[m,g]=Object(i.useState)((()=>c.remainingSeconds));Object(i.useEffect)((()=>{const{expiresAt:e,remainingSeconds:a}=Object(BA.u)(t);u(e),g(a)}),[t,a]),Object(i.useEffect)((()=>{if(!d)return void g(0);const e=()=>{const e=Math.ceil((d-Date.now())/1e3);if(e<=0)return Object(BA.k)(t),u(null),void g(0);g(e)};e();const a=setInterval(e,1e3);return()=>clearInterval(a)}),[d,t]);const b=Object(i.useCallback)((()=>{const e=Object(BA.g)(t);e&&(u(e),g(Math.max(0,Math.ceil((e-Date.now())/1e3))))}),[t]),h=o||m>0,x=m>0?Ti.a.t("login.loginMfaResendCodeWithTimer",{seconds:m}):Ti.a.t("login.loginMfaResendCode");return Object(p.jsx)(zA.a,{className:l.resendButton,disabled:h,onClick:async()=>{if(o||m>0)return;const e=localStorage.getItem("jwt");try{await by(e),s&&s(),b()}catch(t){if(t.isJwtInvalid)return void Object(BA.o)();if(t.isRateLimited&&r)return void r(t.retryAfterSeconds,t.lockReason);if(n){const e=t.i18nKey?Ti.a.t(t.i18nKey):t.rawMessage||Ti.a.t("login.loginMfaSendCodeErrorUnavailable");n(e)}}},disableRipple:!0,disableElevation:!0,size:"small",children:x})};var Ty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const a=Object(BA.v)(e),[o,n]=Object(i.useState)((()=>a.expiresAt)),[r,s]=Object(i.useState)((()=>a.countdown)),[l,c]=Object(i.useState)((()=>a.reason));Object(i.useEffect)((()=>{const{expiresAt:t,countdown:a,reason:i}=Object(BA.v)(e);n(t),s(a),c(i)}),[e,t]),Object(i.useEffect)((()=>{if(!o)return s(""),void c(null);const t=()=>{const t=o-Date.now();if(t<=0)return Object(BA.l)(e),n(null),s(""),void c(null);s(Object(BA.p)(t))};t();const a=setInterval(t,1e3);return()=>clearInterval(a)}),[o,e]);const d=Boolean(o&&Date.now()<o),u=Object(i.useCallback)(((t,a)=>{const i=a||BA.e,o=Object(BA.h)(e,t,i);return o?(n(o),s(Object(BA.p)(o-Date.now())),c(i),o):null}),[e]),p=Object(i.useCallback)((()=>({attempts:Object(BA.A)(e),didLock:!1})),[e]),m=Object(i.useCallback)((()=>{Object(BA.m)(e),Object(BA.l)(e),n(null),s(""),c(null)}),[e]);return{isLocked:d,lockCountdown:r,lockReason:l,triggerSoftLock:u,registerWrongCodeAttempt:p,clearLockState:m}};const Py=Object(u.a)((e=>({googleLogin:{marginBottom:10,alignContent:"center"},BaseGrid:{margin:10}
26,resendRow:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",flexWrap:"wrap",gap:4,width:"90vw",maxWidth:"380px"},labels:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"11px",fontWeight:400,lineHeight:"18.77px"},errorText:{color:"#ff2569",fontFamily:"Work Sans, sans-serif",fontSize:"12px",marginTop:"20px",textAlign:"left",lineHeight:1.5},errorTextBelowCountdown:{marginTop:"10px"},resendLockCountdown:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"11px",fontWeight:500,marginTop:"20px",textAlign:"left",lineHeight:"18.77px",opacity:.6},loginBtn:{marginTop:e.spacing(1),height:50,width:"100%",maxWidth:320,textTransform:"none",border:"2px solid",borderColor:"#00A692",backgroundColor:"#00A692",borderRadius:50,color:"#fff",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal","&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{maxWidth:380}},loginBtn2:{marginTop:e.spacing(1),height:50,width:"100%",maxWidth:320,textTransform:"none",border:"2px solid",borderColor:"#C6C6C6",backgroundColor:"#C6C6C6",borderRadius:50,color:" #131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal","&:hover":{backgroundColor:"#00A692",borderColor:"#00A692",color:"#fff"},"@media (min-width: 780px)":{maxWidth:380}},typography:{fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal"},goBack:{marginTop:"5px"},otpLoadingContainer:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:57,width:"100%"}}))),Ry=ay.b.div`
27  display: flex;
28  justify-content: center;
29  width: 100%;
30  max-width: 90vw;
31  margin: 0 auto;
32  pointer-events: ${e=>{let{isDisabled:t}=e;return t?"none":"auto"}};
33  opacity: ${e=>{let{isDisabled:t}=e;return t?.45:1}};
34
35  --ReactInputVerificationCode-itemWidth: 43px;
36  --ReactInputVerificationCode-itemHeight: 57px;
37  --ReactInputVerificationCode-itemSpacing: 19px;
38
39  @media (max-width: 399px) {
40    --ReactInputVerificationCode-itemWidth: 36px;
41    --ReactInputVerificationCode-itemHeight: 48px;
42    --ReactInputVerificationCode-itemSpacing: 10px;
43
44    .ReactInputVerificationCode__item {
45      font-size: 22px;
46    }
47  }
48
49  @media (max-width: 359px) {
50    --ReactInputVerificationCode-itemWidth: 32px;
51    --ReactInputVerificationCode-itemHeight: 44px;
52    --ReactInputVerificationCode-itemSpacing: 8px;
53
54    .ReactInputVerificationCode__item {
55      font-size: 20px;
56    }
57  }
58
59  .ReactInputVerificationCode__item {
60    font-family: "Work Sans", sans-serif;
61    font-size: 28px;
62    font-weight: 500;
63    color: #131313;
64    backgroundcolor: rgba(53, 67, 98, 1);
65    border: 1px solid
66      ${e=>{let{isInvalid:t,isDisabled:a}=e;return a?"rgba(19, 19, 19, 0.15)":!0===t?"#ff2569":"rgba(19, 19, 19, 0.3)"}};
67    border-radius: 3px;
68    box-shadow: none;
69    background-color: ${e=>{let{isDisabled:t}=e;return t?"#f3f3f3":"#ffffff"}};
70  }
71  .ReactInputVerificationCode__item.is-active {
72    box-shadow: none;
73    border: 1px solid
74      ${e=>{let{isInvalid:t,isDisabled:a}=e;return a?"rgba(19, 19, 19, 0.15)":!0===t?"#ff2569":"#777777"}};
75  }
76`;function Ny(e){let{userId:t,lockSyncToken:a=0,resendCooldownSyncToken:o=0,isInitialSendPending:n=!1,onResendError:r,onRateLimited:s,onResendSuccess:l,onValidateError:c,rateLimitEvent:d=null,onRateLimitEventHandled:u}=e;const m=Py(),[g,b]=Object(i.useState)(""),[h,x]=Object(i.useState)(0),[f,j]=Object(i.useState)(!1),[A,C]=Object(i.useState)(!1),[O,S]=Object(i.useState)("login.loginMfaInvalidCode"),[E,I]=Object(i.useState)(!1),[w,T]=Object(i.useState)(!1),P=Object(i.useRef)(!1),{isLocked:R,lockCountdown:N,lockReason:L,triggerSoftLock:k}=Ty(t,a),B=Object(BA.C)(t),D=R&&L===BA.d,F=Object(i.useCallback)((()=>{b(""),j(!1),T(!1),localStorage.removeItem("code"),x((e=>e+1))}),[]),M=Object(i.useCallback)(((e,t)=>{const a=t||BA.e;k(e,a),C(!1),a===BA.e&&F(),s&&s(e)}),[F,s,k]),V=Object(i.useCallback)((()=>{C(!1),S("login.loginMfaInvalidCode"),F(),null===l||void 0===l||l()}),[F,l]);Object(i.useEffect)((()=>{d&&(M(d.retryAfterSeconds,d.reason||BA.d),null===u||void 0===u||u())}),[M,u,d]);const W=Object(i.useCallback)((()=>{Object(BA.o)()}),[]),H=Object(i.useCallback)((async()=>
76{if(n||B)return;if(!1===w)return null===c||void 0===c||c(),void C(!0);I(!0);const e=localStorage.getItem("jwt");try{await hy(e,g),Object(BA.j)(),I(!1),localStorage.removeItem("code"),window.location.href=BA.b}catch(t){if(I(!1),t.isJwtInvalid)return void Object(BA.o)();if(null===c||void 0===c||c(),t.isRateLimited)return void M(t.retryAfterSeconds,t.lockReason||BA.e);if(t.isInvalidCode){const e=t.i18nKey||Object(BA.r)(t.remainingAttempts);return F(),S(e),void C(!0)}if(t.i18nKey)return F(),S(t.i18nKey),void C(!0);F(),S("login.loginMfaSendCodeErrorUnavailable"),C(!0)}}),[g,F,w,M,n,B,c]);Object(i.useEffect)((()=>{if(!f||B||n)return;const e=e=>{"Enter"===e.key&&H()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[f,H,n,B]),Object(i.useEffect)((()=>{if(!B)return P.current&&(F(),C(!1),S("login.loginMfaInvalidCode")),void(P.current=!1);P.current=!0,C(!1),F()}),[F,B]);const U=n||B,_=U||!1===f,z=A&&!U,q=R&&!n,G=Boolean(t)&&!R;return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",mb:1,sx:{"& \t.MuiButton-text .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",lineHeight:"18.77px",fontSize:"16px"}},children:Object(p.jsxs)(v.a,{className:m.googleLogin,children:[n?Object(p.jsx)("div",{className:m.otpLoadingContainer,children:Object(p.jsx)(Od.a,{size:30})}):Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0 auto"},children:Object(p.jsx)(Ry,{isInvalid:A,isDisabled:B,children:Object(p.jsx)(iy.a,{length:6,placeholder:"",autoFocus:!B,onChange:e=>{B||(b(e),localStorage.setItem("code",e),e.length>0&&C(!1),e.length>5?(T(!0),j(!0)):(T(!1),j(!1)))}},h)})}),z||q?Object(p.jsxs)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0 auto"},children:[z?Object(p.jsx)(cn.a,{className:m.errorText,children:Ti.a.t(O)}):null,q?D||!B?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(cn.a,{className:m.resendLockCountdown,children:Ti.a.t("login.loginMfaResendCodeWithTimerMmSs",{countdown:N})}),Object(p.jsx)(cn.a,{className:`${m.errorText} ${m.errorTextBelowCountdown}`,children:Ti.a.t("login.loginMfaResendRateLimitSupport")})]}):Object(p.jsx)(cn.a,{className:m.errorText,children:Ti.a.t("login.loginMfaSoftLockBlocked",{countdown:N})}):null]}):null]}),E&&Object(p.jsx)(_A.a,{open:E,children:Object(p.jsx)("div",{style:{padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:Object(p.jsx)(Od.a,{size:30,style:{backgroundColor:"transparent"}})})})]})}),G?Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",className:m.BaseGrid,children:Object(p.jsxs)("div",{className:m.resendRow,children:[Object(p.jsx)(cn.a,{component:"span",className:m.labels,children:Ti.a.t("login.codeLabel")}),Object(p.jsx)(wy,{userId:t,resendCooldownSyncToken:o,onResendError:r,onRateLimited:M,onResendSuccess:V})]})}):null,Object(p.jsx)(v.a,{container:!0,item:!0,className:m.BaseGrid,xs:12,md:12,lg:12,justifyContent:"center",sx:{width:"90vw",maxWidth:"380px",margin:"0 auto"},children:_?Object(p.jsx)(zA.a,{className:m.loginBtn2,disabled:!0,children:Object(p.jsx)(cn.a,{className:m.typography,children:Ti.a.t("login.confirm")})}):Object(p.jsx)(zA.a,{className:m.loginBtn,disabled:!1,onClick:H,children:Object(p.jsx)(cn.a,{className:m.typography,children:Ti.a.t("login.confirm")})})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:m.goBack,justifyContent:"center",children:Object(p.jsx)(iC,{text:"back",onClick:W})})]})}var Ly=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10,alignContent:"center"},textVerification:{marginBottom:20,alignContent:"center"},recoverTex:{textAlign:"left",color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"32px",fontWeight:600},labelText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"left"},errorText:{color:"#ff2569",fontFamily:"Work Sans, sans-serif",fontSize:"13px",fontWeight:400,lineHeight:1.5,textAlign:"left",marginBottom:12},successText:{color:"#00A692",fontFamily:"Work Sans, sans-serif",fontSize:"13px",fontWeight:400,lineHeight:1.5,textAlign:"left",marginBottom:12},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh",[e.breakpoints.down("sm")]:{display:"none"}},topdiv:{position:"absolute",top:20,right:30}})),{withTheme:!0})((e=>{var t,a;let{classes:o}=e;const n=Object(BA.q)(),[r,s]=Object(i.useState)(null!==(t=null===n||void 0===n?void 0:n.email)&&void 0!==t?t:""),[l,c]=Object(i.useState)(null!==(a=null===n||void 0===n?void 0:n.userId)&&void 0!==a?a:null),[d,u]=Object(i.useState)(""),[m,g]=Object(i.useState)(""),[b,h]=Object(i.useState)(0),[x,f]=Object(i.useState)(0),[j,A]=Object(i.useState)(null),[C,O]=Object(i.useState)((()=>Object(BA.E)())),[S,E]=Object(i.useState)((()=>window.innerWidth)),I=Object(i.useCallback)((()=>{u(""),g(""),h((e=>e+1))}),[]),w=Object(i.useCallback)((()=>{u(""),g(Ti.a.t("login.loginMfaResendCodeSuccess"))}),[]),T=Object(i.useCallback)((e=>{g(""),u(e)}
76),[]),P=Object(i.useCallback)((()=>{g("")}),[]),R=Object(i.useCallback)((async function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!1;try{if(await by(e),a())return;u(""),t&&(Object(BA.g)(t),f((e=>e+1)))}catch(i){if(a())return;if(i.isJwtInvalid)return void Object(BA.o)();if(i.isRateLimited)return A({retryAfterSeconds:i.retryAfterSeconds,reason:i.lockReason||BA.d}),void I();const e=i.i18nKey?Ti.a.t(i.i18nKey):i.rawMessage||Ti.a.t("login.loginMfaSendCodeErrorUnavailable");u(e)}}),[I]);Object(i.useEffect)((()=>{const e=()=>E(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),Object(i.useEffect)((()=>{var e;let t=!1;const a=Object(BA.q)();if(!a)return void(window.location.href="/v3/login/");const{jwtCookie:i,jwtData:o}=a;if(localStorage.setItem("jwt",i),!Object(BA.w)(o))return void(window.location.href=Object(BA.t)(o));const n=null!==(e=o.userId)&&void 0!==e?e:o.user_id;return s(o.email||""),c(n),Object(BA.n)()&&(O(!0),R(i,n,(()=>t)).finally((()=>{t||O(!1)}))),()=>{t=!0}}),[R]);const N=S,L=Object(BA.y)(r);return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:o.root,component:"main",maxWidth:"sm",justifyContent:"center",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:o.grid1,xs:N>=600?6:12,md:N>=600?6:12,lg:N>=600?6:12,maxWidth:"md",children:[Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",mb:1,children:Object(p.jsx)(v.a,{className:o.googleLogin,children:Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:Object(p.jsx)(cn.a,{className:o.recoverTex,children:Ti.a.t("login.loginMfaVerification")})})})}),Object(p.jsx)(v.a,{container:!0,xs:12,md:12,lg:12,mb:1,justifyContent:"center",direction:"row",className:o.textVerification,children:Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0","@media (min-width: 780px)":{maxWidth:"380px"}},children:Object(p.jsxs)(cn.a,{className:o.labelText,maxWidth:"md",children:[Ti.a.t("login.loginMfaSubVerification")," ",Object(p.jsx)("strong",{children:L}),Ti.a.t("login.loginMfaSubVerification2")]})})}),d?Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",mb:1,children:Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px"},children:Object(p.jsx)(cn.a,{className:o.errorText,children:d})})}):null,m?Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",mb:1,children:Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px"},children:Object(p.jsx)(cn.a,{className:o.successText,children:m})})}):null,Object(p.jsx)(Ny,{userId:l,lockSyncToken:b,resendCooldownSyncToken:x,isInitialSendPending:C,onResendError:T,onRateLimited:I,onResendSuccess:w,onValidateError:P,rateLimitEvent:j,onRateLimitEventHandled:()=>A(null)})]}),N>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:o.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:o.backgroundImg}),Object(p.jsx)("div",{className:o.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}));class ky extends i.Component{constructor(e){super(e),this.handleResize=()=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth}}componentDidMount(){window.open("/v3/dashboard","_self"),window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const{innerWidth:e}=window,{classes:t}=this.props;return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:t.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:t.grid1,xs:e>=600?6:12,md:e>=600?6:12,lg:e>=600?6:12,maxWidth:"md",children:Object(p.jsx)(gC,{svg:MC,texto:"login.loginMfaSuccessAuth",texto2:"login.enterCbl",loader:Oy})}),e>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:t.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:t.backgroundImg}),Object(p.jsx)("div",{className:t.topdiv})]}):null]})})}}var By=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"},topdiv:{position:"absolute",top:20,right:30}})),{withTheme:!0})(ky);const Dy=Object(u.a)((e=>({formButton:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:400,textAlign:"left",border:"1px solid rgba(19, 19, 19, 0.3)",borderRadius:3,height:45,padding:"5px 16px"},labelText:{marginBottom:e.spacing(2),color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"left"},loginBtn:{marginTop:"30px",height:50,width:380,textTransform:"none",border:"2px s
76olid",borderColor:"#00A692",backgroundColor:"#00A692",borderRadius:50,color:"#fff",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal","&:hover":{backgroundColor:"#007868",borderColor:"#007868",color:"#fff"},"@media (min-width: 780px)":{width:380}},loginBtn2:{marginTop:"30px",height:50,width:320,textTransform:"none",border:"2px solid",borderColor:"#C6C6C6",backgroundColor:"#C6C6C6",borderRadius:50,color:" #131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:"normal","&:hover":{backgroundColor:"#00A692",borderColor:"#00A692",color:"#fff"},"@media (min-width: 780px)":{width:380}},typography:{fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},validationText:{color:"#ff2569",fontSize:"11px",margin:"5px 0",fontFamily:"Work Sans, sans-serif"}}))),Fy=Object(jn.a)({palette:{error:{main:"#ff2569"}}});var My=function(e){const t=Dy(),[a,o]=Object(i.useState)(""),[n,r]=Object(i.useState)(!1),[s,l]=Object(i.useState)(!1),[c,d]=Object(i.useState)(!1),[u,m]=Object(i.useState)(!1),g=/\S+@\S+\.\S+/;Object(i.useEffect)((()=>{a&&(g.test(a)?(l(!0),m(!1),r(!1)):(l(!1),m(!0),r(!0)))}),[a,g]);const b=e=>{d(!0);const t=localStorage.getItem("jwt");fetch(Object(aa.a)()+"profile/modify_email",{method:"post",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({email:a})}).then((e=>{400===e.status?d(!1):(d(!1),localStorage.removeItem("email"),localStorage.removeItem("code"),window.open("/v3/login/mailauth","_self"))}))};return Object(i.useEffect)((e=>{if(!0===s){const e=e=>{"Enter"===e.key&&b()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}}),[s]),Object(p.jsx)(bn.a,{theme:Fy,children:Object(p.jsxs)(y.a,{component:"form",sx:{"& .MuiTextField-root":{m:0,width:"90vw",maxWidth:"380px"},".css-1f3cabt-MuiInputBase-root-MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},".css-1f3cabt-MuiInputBase-root-MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& \tfieldset":{height:"45px",marginTop:"5px"}},noValidate:!0,autoComplete:"off",children:[Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:Object(p.jsx)(y.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0"},children:Object(p.jsx)(cn.a,{className:t.labelText,children:Ti.a.t(`${e.texto}`)})})}),Object(p.jsx)(y.a,{component:"form",sx:{"& .MuiGrid-item":{mt:1.5,width:"90vw",maxWidth:"320px","@media (min-width: 780px)":{maxWidth:"380px"}},legend:{display:"none"},"& \t.MuiInputBase-input":{fontFamily:"Work Sans, sans-serif",lineHeight:"17.6px",fontSize:"15px"},"& \t.MuiFormControlLabel-label":{fontFamily:"Work Sans, sans-serif",lineHeight:"16.42px",fontSize:"14px"},"& \t.MuiButton-text .MuiTypography-root":{fontFamily:"Work Sans, sans-serif",lineHeight:"18.77px",fontSize:"15px"},"& \tfieldset":{height:"45px",marginTop:"5px"},"& \tinput":{height:"45px",paddingBottom:0,paddingTop:0},".css-md26zr-MuiInputBase-root-MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},".css-md26zr-MuiInputBase-root-MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline":{border:"1px solid rgba(0, 0, 0, 0.23)"},"& \t.css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input.css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input.css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input":{padding:"0"},"& \t.css-7dqvty-MuiInputBase-input":{paddingTop:0},"& .css-kk1bwy-MuiButtonBase-root-MuiMenuItem-root":{paddingLeft:"0px!important"}},noValidate:!0,autoComplete:"off",children:Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,children:[Object(p.jsx)(XA.c,{placeholder:"[email protected]",fullWidth:!0,helperText:u,id:"email",name:"name",InputProps:{classes:{input:t.formButton}},autocomplete:"off",className:t.formButton,onClick:e=>{},onChange:function(e){o(e.target.value),g.test(a)?(r(!1),m(!1)):(r(!0),m(!0))},sx:!0===n?{border:"1px solid #ff2569",height:"45px",borderRadius:1}:{className:t.input2}}),!0===u&&Object(p.jsx)(v.a,{children:Object(p.jsx)(cn.a,{className:t.validationText,children:Ti.a.t("login.errorMessage")})})]})}),Object(p.jsx)(v.a,{container:!0,items:!0,xs:12,md:12,lg:12,children:c&&Object(p.jsx)(_A.a,{open:c,children:Object(p.jsx)("div",{style:{padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent"},children:Object(p.jsx)(Od.a,{size:30,style:{backgroundColor:"transparent"}})})})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:t.BaseGrid,xs:12,md:12,lg:12,justifyContent:"center",children:!0===s?Object(p.jsx)(zA.a,{className:t.loginBtn,disabled:!1,onClick:b,children:Object(p.jsx)(cn.a,{className:t.typography,children:Ti.a.t("login.continue")})}):Object(p.jsx)(zA.a,{className:t.loginBtn2,disabled:!0,children:Object(p.jsx)(cn.a,{className:t.typography,children:Ti.a.t("login.continue")})})})]})})};class Vy extends i.Component{constructor(e){super(e),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth}}componentDidMount(){window.addEventListener("resize",this.handleResize)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.mainTitle,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(UA,{})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.googleLogin,xs:12,md:12,lg:12,justifyContent:"center",maxWidth:"sm",children:Object(p.jsx)(di.a,{sx:{width:"90vw",maxWidth:"380px",margin:"0"},children:Object(p.jsx)(cn.a,{className:e.recoverTex,align:"left",children:Ti.a.t("login.confirmMail")})})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(My,{texto:"login.enterNewEmailLabel"})}),Object(p.jsx)(iC,{text:"login.goBackMail",link:"/v3/login/mailauth"})]}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var Wy=Object(OA.a)((e=>({root:{justifyContent:"center",flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
76olid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",font:"normal normal normal 16px/22px WorkSans"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},registerGrid:{marginTop:e.spacing(2),alignItems:"center"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#00C7AF",backgroundColor:"#00C7AF",borderRadius:30,color:"white",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{marginTop:e.spacing(2),color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"32px",fontWeight:600,textAlign:"center"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(Vy);class Hy extends i.Component{constructor(e){super(e),this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth}}componentDidMount(){"Argentina"===localStorage.getItem("host")&&(window.location.href="/v3/dashboard"),window.addEventListener("resize",this.handleResize)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",children:Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",mb:1,children:Object(p.jsx)(Oy,{})})}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var Uy,_y,zy=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",backgroundColor:"#FFFFFF",borderRadius:30,color:"#131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"21px",fontWeight:400,textAlign:"center"},labelText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"center"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden",left:"40px"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(Hy);function qy(){return qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},qy.apply(null,arguments)}function Gy(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",qy({width:100,height:100,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,Uy||(Uy=i.createElement("circle",{cx:50,cy:50,r:50,fill:"#FF2569",fillOpacity:.2})),_y||(_y=i.createElement("path",{d:"M32.4375 29.5625L29.5625 32.4375L47.125 50L29.5625 67.5625L32.4375 70.4375L50 52.875L67.5625 70.4375L70.4375 67.5625L52.875 50L70.4375 32.4375L67.5625 29.5625L50 47.125L32.4375 29.5625Z",fill:"#FF2569"})))}const Yy=i.forwardRef(Gy);a.p;class Ky extends i.Component{constructor(e){super(e),this.handleTextMulticountry=e=>{let t=Ti.a.t("login.expiredText2");switch(e){case"com":case"ar":default:t=Ti.a.t("login.expiredText2");break;case"cl":case"uy":case"py":t=Ti.a.t("login.expiredText2ChUy")}return t},this.handleTextMulticountry2=e=>{let t=Ti.a.t("login.expiredText");switch(e){case"com":case"ar":default:t=Ti.a.t("login.expiredText");break;case"cl":case"uy":t=Ti.a.t("login.expiredTextChUy");break;case"py":t=Ti.a.t("login.expiredText2ChUy")}return t},this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={textMultiCountry:Ti.a.t("login.expiredText2"),textMultiCountry2:Ti.a.t("login.expiredText"),windowWidth:window.innerWidth}}escFunction(e){"Enter"===e.key&&window.open("/","_self")}componentDidMount(){const e=window.location.host.replace(/^.*\./,"");this.setState({textMultiCountry:this.handleTextMulticountry(e),textMultiCountry2:this.handleTextMulticountry2(e)}),window.addEventListener("resize",this.handleResize),document.addEventListener("keydown",this.escFunction,!1)}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",justifyContent:"center",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",justifyContent:"center",children:Object(p.jsx)(gC,{svg:Yy,texto:this.state.textMultiCountry2,texto2:this.state.textMultiCountry})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.BaseGrid,xs:12,md:12,lg:12,justify:"center",children:Object(p.jsx)(zA.a,{href:"/v3/login",className:e.loginBtn,style:{width:t>=600?380:"90%"},disableRipple:!0,children:Object(p.jsx)(cn.a,{className:e.textBtn,children:Ti.a.t("login.goBack")})})})]}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var Xy=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
76olid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",font:"normal normal normal 16px/22px",fontFamily:"Work Sans, sans-serif"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",backgroundColor:"#FFFFFF",borderRadius:30,color:"#131313",autoComplete:"off",font:"normal normal normal 16px/22px",fontFamily:"Work Sans, sans-serif","&:hover":{backgroundColor:" #F1F1F1",borderColor:"#131313",color:"#131313"}},formCheck:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"WorkSans",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"WorkSans",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{color:"#131313",fontFamily:"WorkSans",fontSize:"21px",fontWeight:400,textAlign:"center"},labelText:{color:"#131313",fontFamily:"WorkSans",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"center"},textBtn:{fontFamily:"Work Sans, sans-serif"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(Ky);var Zy=e=>Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(di.a,{sx:{"& .MuiGrid-item":{mt:1.5,width:"90vw",maxWidth:"320px","@media (min-width: 780px)":{maxWidth:"380px"}}},children:Object(p.jsx)(v.a,{container:!0,item:!0,alignItems:"center",xs:12,md:12,lg:12,justifyContent:"center",children:Object(p.jsx)(Fr.a,{sx:{color:"#00c7af"},spacing:2,direction:"row",justifyContent:"center",children:Object(p.jsx)(oi.a,{color:"inherit",size:"60px",thickness:4,value:100})})})})});class Qy extends i.Component{constructor(e){super(e),this.handleCountry=e=>{let t="";switch(e){case"Argentina":default:t="ar";break;case"Chile":t="cl";break;case"Uruguay":t="uy";break;case"Paraguay":t="py"}return t},this.handleResize=e=>{this.setState({windowWidth:window.innerWidth})},this.state={windowWidth:window.innerWidth}}useQuery(){return new URLSearchParams(window.location.search)}componentDidMount(){window.addEventListener("resize",this.handleResize);try{const e=this.useQuery().get("user_id"),t=this.useQuery().get("email"),a=this.useQuery().get("secret");localStorage.setItem("user_id",e),localStorage.setItem("emailPass",t),localStorage.setItem("secret",a),fetch(Object(aa.a)()+"password/recovery/check_secret",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_id:e,country:this.handleCountry(localStorage.getItem("countryPass")),secret:a})}).then((async e=>{await e.json();200===e.status?window.open("/v3/login/changepass","_self"):400===e.status?window.open("/v3/login/expiredpass","_self"):console.error("Error")})).catch((e=>{console.error("Error")}))}catch(e){console.error("Error")}}render(){const{classes:e}=this.props,{width:t}=function(){const{innerWidth:e}=window;return{width:e}}();return Object(p.jsx)("div",{style:{backgroundColor:"#E5E5E5"},children:Object(p.jsxs)(v.a,{container:!0,className:e.root,component:"main",maxWidth:"sm",alignContent:"middle",justifyContent:"center",children:[Object(p.jsx)(v.a,{container:!0,item:!0,className:e.grid1,xs:t>=600?6:12,md:t>=600?6:12,lg:t>=600?6:12,maxWidth:"md",justifyContent:"center",children:Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center",mb:1,children:Object(p.jsx)(Zy,{})})}),t>=600?Object(p.jsxs)(v.a,{container:!0,item:!0,xs:6,md:6,lg:6,className:e.imgContainer,children:[Object(p.jsx)("img",{src:oC,alt:"computer_man",className:e.backgroundImg}),Object(p.jsx)("div",{className:e.topdiv})]}):Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:12,lg:12,justifyContent:"center"})]})})}}var Jy=Object(OA.a)((e=>({root:{flexGrow:1,height:"100vh",backgroundColor:"#FFFFFF"},grid1:{backgroundColor:"#FFFFFF",alignContent:"center"},googleLogin:{marginBottom:10},mainTitle:{marginTop:"4%"},line:{margin:15},lineText:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"15px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginTop:5},googleFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",color:"#131313"},googleBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px s
76olid",borderColor:"#131313",borderRadius:15,color:"black",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},registerFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"16.42px",color:"#131313"},loginBtn:{marginTop:e.spacing(1),height:50,width:380,textTransform:"none",border:"2px solid",borderColor:"#131313",backgroundColor:"#FFFFFF",borderRadius:30,color:"#131313",autoComplete:"off",fontFamily:"Work Sans, sans-serif",fontSize:"16px/22px",fontWeight:"normal"},formCheck:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#131313",marginRight:5},password:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490",cursor:"pointer"},registerColorFont:{fontFamily:"Work Sans, sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"14px",lineHeight:"18.77px",alignItems:"center",textAlign:"center",color:"#00A490"},BaseGrid:{margin:10},checkGrid:{alignItems:"center"},topButton:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:60,width:140},topMenuItem:{backgroundColor:"#FFFFFF",alignItems:"center",borderRadius:50,height:50,width:140},topButtonText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"16px",marginTop:15,fontWeight:400,textAlign:"center",width:96},topdiv:{position:"absolute",top:20,right:30},recoverTex:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"21px",fontWeight:400,textAlign:"center"},labelText:{color:"#131313",fontFamily:"Work Sans, sans-serif",fontSize:"15px",fontWeight:400,lineHeight:1.5,textAlign:"center"},backgroundImg:{objectFit:"cover",zIndex:0,width:"100%",height:"100%",overFlowY:"hidden"},imgContainer:{top:0,right:0,height:"100vh"}})),{withTheme:!0})(Qy);const $y=Object(u.a)((e=>({container:{marginBottom:40},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"26px",color:ui.a.textPrimary},companyName:{fontWeight:500,fontSize:"16px",marginRight:e.spacing(1)},companyId:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"16px",color:ui.a.textSecondary},planChip:{display:"flex",alignItems:"center",backgroundColor:ui.a.primaryLight,border:`1px solid ${ui.a.primary400}`,borderRadius:"50px",padding:"0px 10px",marginLeft:e.spacing(1)},planName:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"2px",color:ui.a.primary400}})));var eO=e=>{let{title:t="",companyName:a="",companyId:i="",planName:o=""}=e;const n=$y(),r="Freemium"===o?"Free":o.replace("New","");return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,className:n.container,children:[Object(p.jsx)(v.a,{item:!0,xs:12,children:Object(p.jsx)("div",{className:n.title,children:t})}),Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,children:[Object(p.jsx)("div",{className:n.companyName,children:`${a} -`}),Object(p.jsx)("div",{className:n.companyId,children:`ID: #${i}`}),Object(p.jsx)("div",{className:n.planChip,children:Object(p.jsx)("div",{className:n.planName,children:`Plan ${r}`})})]})]})})},tO=a(386),aO=a(725);const iO=Object(u.a)((e=>({boxContainer:{flex:"1 1 24%",maxWidth:"24%",minWidth:280,backgroundColor:ui.a.white,borderRadius:5,overflow:"hidden",boxSizing:"border-box",transition:"height 0.5s ease","@media (max-width: 1344px)":{maxWidth:"31%",flex:"1 1 31%"},"@media (max-width: 1017px)":{maxWidth:"48%",flex:"1 1 48%"},"@media (max-width: 616px)":{maxWidth:"100%",flex:"1 1 100%"}},boxInfo:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"flex-end",flexWrap:"nowrap",padding:"20px 20px 15px 20px",cursor:"pointer"},iconBox:{display:"flex",flexDirection:"row",alignItems:"flex-start",flexWrap:"nowrap"},boxIcon:{width:40,minWidth:40,height:40,minHeight:40,borderRadius:10,display:"flex",justifyContent:"center",alignItems:"center",marginRight:10},boxTitle:{fontSize:16,color:ui.a.textPrimary,fontFamily:"Work Sans",fontWeight:500},boxDescription:{fontSize:14,color:ui.a.textSecondary,fontFamily:"Work Sans",fontWeight:400,marginTop:5},expand:{transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})},expandOpen:{transform:"rotate(180deg)"},noHover:{"&:hover":{backgroundColor:"transparent"},padding:0},boxItems:{margin:"0px 20px 20px 20px",paddingTop:15,borderTop:`1px solid ${ui.a.grey300}`,color:ui.a.textSecondary,fontFamily:"Work Sans",fontWeight:400,fontSize:14,opacity:0,transform:"translateY(-10px)",animation:"$fadeIn 0.3s ease-out forwards"},"@keyframes fadeIn":{to:{opacity:1,transform:"translateY(0)"}},itemLi:{marginBottom:12,"&::marker":{color:ui.a.textSecondary},"&:hover::marker":{color:ui.a.primaryText}},item:{textDecoration:"none",color:ui.a.textSecondary,"&:hover":{color:ui.a.primaryText}},disabledLink:{color:ui.a.disabled,textDecoration:"none","&::marker":{color:ui.a.disabled},"&:hover::marker":{color:ui.a.disabled},"&:hover":{color:ui.a.disabled}}})));var oO=e=>{let{title:t="",subTitle:a="",icon:o="",backgroundIconColor:n="",iconColor:r="",items:s=[],onSectionClick:l=(()=>{})}=e;const c=iO(),[d,u]=Object(i.useState)(!1),[m,g]=Object(i.useState)("auto"),[b,h]=Object(i.useState)(window.innerWidth),x=e=>{let{title:t="",subTitle:a="",icon:i="",backgroundIconColor:o="",iconColor:n=""}=e;return Object(p.jsxs)(v.a,{container:!0,item:!0,className:c.iconBox,children:[Object(p.jsx)("div",{style:{backgroundColor:o}
76,className:c.boxIcon,children:Object(p.jsx)("i",{style:{fontSize:30,color:n},className:i})}),Object(p.jsxs)("div",{children:[Object(p.jsx)(cn.a,{className:c.boxTitle,children:t}),Object(p.jsx)(cn.a,{className:c.boxDescription,children:a})]})]})};Object(i.useEffect)((()=>{const e=()=>{h(window.innerWidth)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),Object(i.useEffect)((()=>{d||g(b>1900||b<616?110:135)}),[b,d]);const f=()=>{const e=!d;u(e),e?(g("auto"),null===l||void 0===l||l(t)):g(b>1900||b<616?110:135)};return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(tO.a,{className:c.boxContainer,style:{height:m},children:Object(p.jsxs)(v.a,{container:!0,item:!0,children:[Object(p.jsxs)(v.a,{onClick:f,container:!0,item:!0,className:c.boxInfo,children:[Object(p.jsx)(x,{title:t,subTitle:a,icon:o,iconColor:r,backgroundIconColor:n},t),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:20},children:Object(p.jsx)(wi.a,{className:`${c.expand} ${d?c.expandOpen:""} ${c.noHover}`,onClick:f,"aria-expanded":d,"aria-label":"show more",disableRipple:!0,children:Object(p.jsx)("i",{className:"la la-angle-down",style:{fontSize:15}})})})]}),Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,children:Object(p.jsx)(aO.a,{in:d,timeout:400,unmountOnExit:!0,style:{width:"100%"},children:d&&Object(p.jsx)(v.a,{item:!0,className:c.boxItems,children:Object(p.jsx)("ul",{children:s.map(((e,t)=>Object(p.jsx)("li",{className:`${c.itemLi} ${e.isBlocked||e.isPDVBlocked||e.isNotRI?c.disabledLink:""}`,children:Object(p.jsx)("a",{href:e.url,"data-testid":e.testId,className:`${c.item} ${e.isBlocked||e.isPDVBlocked||e.isNotRI?c.disabledLink:""}`,onClick:e.onClick,title:e.isNotRI?"No tienes permisos para acceder a esta seccio\u0301n":"",children:e.title})},t)))})})})})]})})})};const nO=Object(u.a)((e=>({boxContainer:{display:"flex",flexWrap:"wrap",gap:e.spacing(2),justifyContent:"stretch"}})));var rO=e=>{let{additionalAccount:t=!1,mainUser:a=!1,mainUserInAdditionalAccount:i=!1,accountMenuData:o=[],handleSectionClick:n=(()=>{}),handleSectionAmplitudeClick:r=(()=>{})}=e;const s=nO();return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(v.a,{container:!0,className:s.boxContainer,children:o.map(((e,o)=>{if(t&&e.title===Ti.a.t("account.additionalCompanies"))return null;const s=e.subMenu.filter((e=>!((!a||i)&&e.title===Ti.a.t("account.notifications"))&&!e.isRestrictedByUserId)).map((e=>({...e,url:e.isBlocked||e.isPDVBlocked||e.isNotRI?"":e.url,onClick:n(e)})));return Object(p.jsx)(oO,{title:e.title,subTitle:e.subTitle,icon:e.icon,backgroundIconColor:e.backgroundIconColor,iconColor:e.iconColor,items:s,onSectionClick:()=>{var t;null===(t=e.onClick)||void 0===t||t.call(e),r(e.title)}},o)}))})})};const sO={company:()=>Object(c.b)("Empresa"),generalData:()=>Object(c.b)("Empresa - Datos generales"),users:()=>Object(c.b)("Empresa - Usuarios"),costCenter:()=>Object(c.b)("Empresa - Centros de costos"),currency:()=>Object(c.b)("Empresa - Moneda"),billingAndReceipts:()=>Object(c.b)("Facturacion y Comprobantes"),salesCondition:()=>Object(c.b)("Facturacion y Comprobantes - Condici\xf3n de venta"),salesPoints:()=>Object(c.b)("Facturacion y Comprobantes - Puntos de venta"),vouchersTypes:()=>Object(c.b)("Facturacion y Comprobantes - Tipos de comprobante"),billFormat:()=>Object(c.b)("Facturacion y Comprobantes - Formato de factura"),taxSettings:()=>Object(c.b)("Configuracion Impositiva"),perceptionAgent:()=>Object(c.b)("Configuracion Impositiva - Agentes de percepci\xf3n"),retentionAgent:()=>Object(c.b)("Configuracion Impositiva - Agentes de retenci\xf3n"),iibb:()=>Object(c.b)("Configuracion Impositiva - IIBB"),closeDates:()=>Object(c.b)("Configuracion Impositiva - fechas de cierre"),preferences:()=>Object(c.b)("Preferencias"),generals:()=>Object(c.b)("Preferencias - Generales"),defaultObservations:()=>Object(c.b)("Preferencias - Observaciones predeterminadas"),parameters:()=>Object(c.b)("Preferencias - Par\xe1metros"),pdv:()=>Object(c.b)("Preferencias - Punto de venta (PDV)"),customerAccess:()=>Object(c.b)("Preferencias - Acceso clientes"),productFields:()=>Object(c.b)("Preferencias - Campos de productos"),productFieldsEnter:()=>Object(c.b)("Campos de productos - Ingresar"),productFieldStatus:e=>{let{field:t,active:a}=e;return Object(c.b)(a?"Campos de productos - Activar campo":"Campos de productos - Desactivar campo",{campo:t})},productFieldValuesOpen:e=>{let{field:t}=e;return Object(c.b)("Campos de productos - Administrar valores",{campo:t})},productFieldValueCreate:e=>{let{field:t}=e;return Object(c.b)("Campos de productos - Agregar valor",{campo:t})},productFieldValueRename:e=>{let{field:t}=e;return Object(c.b)("Campos de productos - Editar valor",{campo:t})},productFieldValueStatus:e=>{let{field:t,active:a}=e;a||Object(c.b)("Campos de productos - Inactivar valor",{campo:t})},productFieldValueDelete:e=>{let{field:t}=e;return Object(c.b)("Campos de productos - Eliminar valor",{campo:t})},noticesAndAlerts:()=>Object(c.b)("Avisos y Alertas"),sendingVouchers:()=>Object(c.b)("Avisos y Alertas - Envio de comprobantes"),expirationNotices:()=>Object(c.b)("Avisos y Alertas - Envio de vencimientos"),alerts:()=>Object(c.b)("Avisos y Alertas - Alertas"),notifications:()=>Object(c.b)("Avisos y Alertas - Notificaciones"),additionalCompanies:()=>Object(c.b)("Empresas Adicionales"),companiesAdministration:()=>Object(c.b)("Empresas Adicionales - Administrar empresas"),api:()=>Object(c.b)("Api"),credentials:()=>Object(c.b)("Api - Crendeciales"),backToPanel:()=>Object(c.b)("Mi cuenta - Volver al panel principal"),automaticBilling:()=>Object(c.b)("Facturaci\xf3n autom\xe1tica")},lO=(()=>{try{const e="undefined"!==typeof window&&localStorage.getItem("country_prod");return(e||mx.a.ARG.value).toLowerCase()}catch{return mx.a.ARG.value}})(),cO={[mx.a.UY.value]:new Set(["vouchersTypes","billFormat","perceptionAgent","retentionAgent","IIBB","vatSimple","automaticBilling","economicActivities","notifications"]),[mx.a.CL.value]:new Set(["billFormat","perceptionAgent","retentionAgent","IIBB","vatSimple","automaticBilling","economicActivities","notifications"]),[mx.a.PY.value]:new Set(["vouchersTypes","billFormat","perceptionAgent","retentionAgent","IIBB","vatSimple","automaticBilling","economicActivities","notifications"])},dO={productFields:!1},uO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=cO[lO];return e.filter((e=>!dO[e.key]&&!(t&&t.has(e.key))))},pO=[{title:Ti.a.t("account.company"),subTitle:Ti.a.t("account.companyConfig"),icon:"la la-user-circle",iconColor:ui.a.primary400,backgroundIconColor:ui.a.primaryLight,onClick:()=>{sO.company()},subMenu:uO(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(lO===mx.a.CL.value){const t={key:"digitalCertificate",title:Ti.a.t("account.digitalCertificate"),url:"/modulos/miCuenta/certificadoDigital.aspx",limitation:null,onClick:()=>{var e;null===sO||void 0===sO||null===(e=sO.digitalCertificate)||void 0===e||e.call(sO)}},a=e.findIndex((e=>"generalData"===e.key));if(a>=0){const i=[...e];return i.splice(a+1,0,t),i}return[t,...e]}return e}([{key:"generalData",title:Ti.a.t("account.generalData"),url:"/modulos/miCuenta/datosGenerales.aspx",limitation:null,onClick:()=>{sO.generalData()}}
76,{key:"users",title:Ti.a.t("account.users"),url:"/modulos/miCuenta/usuarios.aspx",limitation:[Za.a.prueba.id,lO===mx.a.ARG.value?Za.a.basic.id:null,Za.a.basicNew.id,Za.a.freemium.id],onClick:()=>{sO.users()}},{key:"costCenter",title:Ti.a.t("account.costCenter"),url:"/modulos/miCuenta/centrosCostos.aspx",limitation:[Za.a.prueba.id,Za.a.basic.id,Za.a.basicNew.id,Za.a.freemium.id,Za.a.standard.id,Za.a.standardNew.id],onClick:()=>{sO.costCenter()}},{key:"currency",title:Ti.a.t("currency"),url:"/v3/account/currency",limitation:null,onClick:()=>{sO.currency()}}]))},{title:Ti.a.t("account.billingAndReceipts"),subTitle:Ti.a.t("account.billData"),icon:"la la-receipt",iconColor:ui.a.secondary400,backgroundIconColor:ui.a.secondaryLight,onClick:()=>{sO.billingAndReceipts()},subMenu:uO(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[...e];if(lO===mx.a.UY.value){const e={key:"manageCAEs",title:Ti.a.t("account.manageCAEs"),url:"/modulos/miCuenta/administrarCAEs.aspx",limitation:null,onClick:()=>{var e;null===sO||void 0===sO||null===(e=sO.manageCAEs)||void 0===e||e.call(sO)}},a=t.findIndex((e=>"salesPoints"===e.key));a>=0?t.splice(a+1,0,e):t.unshift(e);const i={key:"voucherTypes",title:Ti.a.t("account.voucherTypes"),url:"/modulos/miCuenta/tiposComprobantes.aspx",limitation:null,onClick:()=>{var e;null===sO||void 0===sO||null===(e=sO.vouchersTypes)||void 0===e||e.call(sO)}},o=t.findIndex((e=>"manageCAEs"===e.key));return o>=0?t.splice(o+1,0,i):t.push(i),t}if(lO===mx.a.CL.value){const e={key:"manageFolios",title:Ti.a.t("account.manageFolios"),url:"/modulos/miCuenta/administrarFolios.aspx",limitation:null,onClick:()=>{var e;null===sO||void 0===sO||null===(e=sO.manageFolios)||void 0===e||e.call(sO)}},a=t.findIndex((e=>"vouchersTypes"===e.key));if(a>=0)t.splice(a,0,e);else{const a=t.findIndex((e=>"salesPoints"===e.key));a>=0?t.splice(a+1,0,e):t.push(e)}return t}return t}([{key:"salesCondition",title:Ti.a.t("account.salesCondition"),url:"/modulos/miCuenta/condicionesVenta.aspx",limitation:[Za.a.freemium.id,Za.a.prueba.id],onClick:()=>{sO.salesCondition()}},{key:"salesPoints",title:Ti.a.t("account.salesPoints"),url:"/modulos/miCuenta/sucursales.aspx",limitation:null,onClick:()=>{sO.salesPoints()}},{key:"vouchersTypes",title:Ti.a.t("account.vouchersTypes"),url:"/modulos/miCuenta/tiposComprobantes.aspx",limitation:null,onClick:()=>{sO.vouchersTypes()}},{key:"billFormat",title:Ti.a.t("account.billFormat"),url:"/modulos/miCuenta/formatosComprobantes.aspx",limitation:[Za.a.freemium.id,Za.a.prueba.id],onClick:()=>{sO.billFormat()}},{key:"automaticBilling",title:Ti.a.t("account.automaticBilling.title"),url:"/v3/account/automaticBilling",limitation:[Za.a.freemium.id,Za.a.prueba.id,Za.a.basic.id,Za.a.basicNew.id,Za.a.standard.id,Za.a.standardNew.id],onClick:()=>{sO.automaticBilling()}}]))},{title:Ti.a.t("account.taxSettings"),subTitle:Ti.a.t("account.taxSettingsConfig"),icon:"la la-file-invoice-dollar",iconColor:ui.a.error400,backgroundIconColor:ui.a.errorLight,onClick:()=>{sO.taxSettings()},subMenu:uO([{key:"economicActivities",title:Ti.a.t("account.economicActivities"),url:"/modulos/miCuenta/actividadesEconomicas.aspx",limitation:null,onClick:()=>{sO.perceptionAgent()}},{key:"perceptionAgent",title:Ti.a.t("account.perceptionAgent"),url:"/modulos/miCuenta/percepciones.aspx",limitation:null,onClick:()=>{sO.perceptionAgent()}},{key:"retentionAgent",title:Ti.a.t("account.retentionAgent"),url:"/modulos/miCuenta/retenciones.aspx",limitation:null,onClick:()=>{sO.retentionAgent()}},{key:"IIBB",title:Ti.a.t("account.iibb"),url:"/modulos/miCuenta/iibb.aspx",limitation:null,onClick:()=>{sO.iibb()}},{key:"closeDates",title:Ti.a.t("account.closeDates"),url:"/modulos/miCuenta/fechasCierre.aspx",limitation:null,onClick:()=>{sO.closeDates()}},{key:"vatSimple",title:Ti.a.t("account.vatSimple"),url:"/modulos/miCuenta/ivaSimple.aspx",limitation:null,onClick:()=>{sO.closeDates()}}])},{title:Ti.a.t("account.preferences"),subTitle:Ti.a.t("account.advancedParametersConfig"),icon:"la la-cog",iconColor:ui.a.warning400,backgroundIconColor:ui.a.warningLight,onClick:()=>{sO.preferences()},subMenu:uO([{key:"generals",title:Ti.a.t("account.generals"),url:"/modulos/miCuenta/preferenciasGenerales.aspx",limitation:null,onClick:()=>{sO.generals()}},{key:"defaultObservations",title:Ti.a.t("account.defaultObservations"),url:"/modulos/miCuenta/seteosPorDefecto.aspx",limitation:null,onClick:()=>{sO.defaultObservations()}},{key:"parameters",title:Ti.a.t("account.parameters"),url:"/modulos/miCuenta/parametros.aspx",limitation:null,onClick:()=>{sO.parameters()}},{key:"productFields",title:Ti.a.t("account.productFields.title"),url:"/v3/account/productFields",limitation:null,testId:"account-product-fields-link",sidebarTestId:"account-product-fields-sidebar-link",onClick:()=>{sO.productFields()}},{key:"PDV",title:Ti.a.t("account.PDV"),url:"/modulos/miCuenta/pdv.aspx",limitation:[Za.a.freemium.id],onClick:()=>{sO.pdv()}},{key:"customerAccess",title:Ti.a.t("account.customerAccess"),url:"/modulos/miCuenta/accesoClientes.aspx",limitation:[Za.a.freemium.id,Za.a.prueba.id,Za.a.basic.id,Za.a.basicNew.id],onClick:()=>{sO.customerAccess()}}])},{title:Ti.a.t("account.noticesAndAlerts"),subTitle:Ti.a.t("account.messagesAndNotificationsConfig"),icon:"la la-bell",iconColor:ui.a.primary400,backgroundIconColor:ui.a.primaryLight,onClick:()=>{sO.noticesAndAlerts()}
76,subMenu:uO([{key:"sendingVouchers",title:Ti.a.t("account.sendingVouchers"),url:"/modulos/miCuenta/envioComprobantes.aspx",limitation:null,onClick:()=>{sO.sendingVouchers()}},{key:"expirationNotices",title:Ti.a.t("account.expirationNotices"),url:"/modulos/miCuenta/avisosVencimiento.aspx",limitation:[Za.a.freemium.id,Za.a.prueba.id],onClick:()=>{sO.expirationNotices()}},{key:"alerts",title:Ti.a.t("account.alerts"),url:"/modulos/miCuenta/alertas.aspx",limitation:null,onClick:()=>{sO.alerts()}},{key:"notifications",title:Ti.a.t("account.notifications"),url:"/v3/account/notifications",limitation:[Za.a.prueba.id,Za.a.freemium.id,Za.a.basic.id,Za.a.basicNew.id,Za.a.standard.id,Za.a.standardNew.id,Za.a.pro.id,Za.a.proNew.id],onClick:()=>{sO.notifications()}}])},{title:Ti.a.t("account.additionalCompanies"),subTitle:Ti.a.t("account.additionalCompaniesConfig"),icon:"la la-users",iconColor:ui.a.secondary400,backgroundIconColor:ui.a.secondaryLight,onClick:()=>{sO.additionalCompanies()},subMenu:uO([{key:"companiesAdministration",title:Ti.a.t("account.companiesAdministration"),url:"/v3/account/additionalCompany",limitation:null,onClick:()=>{sO.companiesAdministration()}}])},{title:Ti.a.t("account.API"),subTitle:Ti.a.t("account.APICredentials"),icon:"la la-laptop-code",iconColor:ui.a.error400,backgroundIconColor:ui.a.errorLight,onClick:()=>{sO.api()},subMenu:uO([{key:"credentials",title:Ti.a.t("account.credentials"),url:"/modulos/miCuenta/api.aspx",limitation:[Za.a.freemium.id,Za.a.prueba.id,Za.a.basic.id,Za.a.basicNew.id,Za.a.standard.id,Za.a.standardNew.id,Za.a.pro.id,Za.a.proNew.id],onClick:()=>{sO.credentials()}}])}],mO=Object(i.createContext)(),gO=e=>{let{children:t}=e;const[a,o]=Object(i.useState)({}),n=Object(i.useRef)(new Set),r=async e=>{let{id:t}=e;const i=a[t];if(null!==i&&void 0!==i&&i.data)return i.data;if(null!==i&&void 0!==i&&i.loading)return null;o((e=>({...e,[t]:{data:null,loading:!0,error:null}})));try{const e=await Ya.addins.getAddinsById({id:t});return o((a=>({...a,[t]:{data:e,loading:!1,error:null}}))),e}catch(c){var n,r,s,l;const e=(null===c||void 0===c||null===(n=c.response)||void 0===n||null===(r=n.data)||void 0===r||null===(s=r.error)||void 0===s||null===(l=s[0])||void 0===l?void 0:l.code)||c;return o((a=>({...a,[t]:{data:null,loading:!1,error:e}}))),null}};return Object(p.jsx)(mO.Provider,{value:{handleGetAddins:r,getAddinDataById:e=>{var t;return(null===(t=a[e])||void 0===t?void 0:t.data)||null},isLoadingById:e=>{var t;return(null===(t=a[e])||void 0===t?void 0:t.loading)||!1},getErrorById:e=>{var t;return(null===(t=a[e])||void 0===t?void 0:t.error)||null},requestInitialAddins:e=>{const t=e.filter((e=>!n.current.has(e)));if(0!==t.length)return t.forEach((e=>n.current.add(e))),Promise.all(t.map((e=>r({id:e}))))}},children:t})};var bO=()=>{var e,t,a,o,n,r;const{userData:s}=Object(i.useContext)(Qa),l=Yi(),[c,d]=Object(i.useState)(""),[u,p]=Object(i.useState)(!1),[m,g]=Object(i.useState)(""),[b,h]=Object(i.useState)(""),[x,f]=Object(i.useState)(!1),[v,j]=Object(i.useState)(!1),{getAddinDataById:A,isLoadingById:C,getErrorById:y,requestInitialAddins:O}=Object(i.useContext)(mO),S=Object(i.useRef)(!1);Object(i.useEffect)((()=>{S.current||(S.current=!0,O([23,19,20]))}),[]);const E=A(23),I=C(23),w=y(23),T=A(19),P=C(19),R=y(19),N=A(20),L=C(20),k=y(20),B=null===l||void 0===l||null===(e=l.props)||void 0===e||null===(t=e.value)||void 0===t||null===(a=t.dataUser)||void 0===a?void 0:a.ivaCondition,D=(null===s||void 0===s?void 0:s.user_type)===tn.administrator.value&&null!==(null===s||void 0===s?void 0:s.additional_id),F=(null===s||void 0===s?void 0:s.user_type)===tn.administrator.value&&null===(null===s||void 0===s?void 0:s.additional_id),M=F&&null!==(null===s||void 0===s?void 0:s.parent_id),V=(null===s||void 0===s?void 0:s.parent_id)&&!M,W=null===s||void 0===s?void 0:s.plan_id,H="Freemium"===(null===s||void 0===s?void 0:s.plan_name)?"Free":null===s||void 0===s?void 0:s.plan_name.replace("New",""),U=null===s||void 0===s?void 0:s.country,_=null===l||void 0===l||null===(o=l.props)||void 0===o||null===(n=o.value)||void 0===n||null===(r=n.dataUser)||void 0===r?void 0:r.hasEInvoice,z=pO.map((e=>{const t=null===e||void 0===e?void 0:e.subMenu.map((e=>{var t,a;const i=(null===e||void 0===e?void 0:e.limitation)&&(null===e||void 0===e||null===(t=e.limitation)||void 0===t?void 0:t.includes(W)),o=Boolean(i)||"automaticBilling"===e.key&&!_,n="PDV"===e.key&&!I&&(!E||w),r=("perceptionAgent"===e.key||"retentionAgent"===e.key)&&B!==Ki.RI.value||("economicActivities"===e.key||"vatSimple"===e.key)&&
76(B!==Ki.RI.value||U!==mx.a.ARG.value),l="notifications"===e.key&&e.allowedUserIds&&!e.allowedUserIds.includes(null===s||void 0===s||null===(a=s.userId)||void 0===a?void 0:a.toString()),c="users"===e.key&&!P&&T&&!R,d="users"===e.key&&!L&&N&&!k,u=!(c||d)&&o;return"automaticBilling"===e.key&&(e.hasEInvoice=_),{...e,isBlocked:"users"===e.key?u:o,isPDVBlocked:n,isNotRI:r,isRestrictedByUserId:l,isLimitedByPlan:Boolean(i)}}));return{...e,subMenu:t}})),q=e=>async t=>{var a,i,o,n,r,s;if(e.isBlocked&&e.key&&e.isLimitedByPlan)return t.preventDefault(),Y(t,e.key),void(null===e||void 0===e||null===(i=e.onClick)||void 0===i||i.call(e));if("automaticBilling"===e.key&&!_&&!e.isLimitedByPlan)return t.preventDefault(),j(!0),f(!0),void(null===e||void 0===e||null===(o=e.onClick)||void 0===o||o.call(e));if(e.isNotRI)return t.preventDefault(),void(null===e||void 0===e||null===(n=e.onClick)||void 0===n||n.call(e));"PDV"!==e.key?null===(a=e.onClick)||void 0===a||a.call(e,t):I||E&&!w?null===(r=e.onClick)||void 0===r||r.call(e,t):(t.preventDefault(),f(!0),null===e||void 0===e||null===(s=e.onClick)||void 0===s||s.call(e))},G=(e,t)=>{null!==e&&void 0!==e&&e.onClick&&"function"===typeof e.onClick&&e.onClick(t)},Y=(e,t)=>{const a=K(t);e.stopPropagation(),e.preventDefault(),d(a),p(!0)},K=e=>{const{modalText:t,sectionText:a}={users:{modalText:"la gesti\xf3n de ",sectionText:"usuarios"},billFormat:{modalText:"",sectionText:"formato de factura"},customerAccess:{modalText:"",sectionText:"acceso clientes"},costCenter:{modalText:"la gesti\xf3n de ",sectionText:"centros de costos"},credentials:{modalText:"",sectionText:"credenciales API"},PDV:{modalText:"",sectionText:"Punto de Venta (PDV)"},salesCondition:{modalText:"",sectionText:"condiciones de venta"},perceptionAgent:{modalText:"la gesti\xf3n de ",sectionText:"percepciones"},retentionAgent:{modalText:"la gesti\xf3n de ",sectionText:"retenciones"},expirationNotices:{modalText:"",sectionText:"avisos de vencimiento"},notifications:{modalText:"la gesti\xf3n de ",sectionText:"notificaciones"},automaticBilling:{modalText:"la gesti\xf3n de ",sectionText:"facturaci\xf3n autom\xe1tica"}}[e]||{activateCurrency:{modalText:"la activaci\xf3n de ",sectionText:"moneda secundaria"}}[e]||{};return`${t}${a}`},X={isOpen:u,handleClose:()=>{p(!1)},limitationKey:c,primaryButtonClick:()=>window.open("/modulos/seguridad/elegir-plan.aspx","_self")},Z={title:v?Ti.a.t("automaticBillingModalTitle"):Ti.a.t("PDVAddinModalTitle"),firstText:v?Ti.a.t("automaticBillingModalText1"):Ti.a.t("PDVAddinModalText1"),secondText:v?Ti.a.t("automaticBillingModalText2"):Ti.a.t("PDVAddinModalText2"),urlText:Ti.a.t("supportEmail"),img:li,open:x,showCloseButton:!0,modalContainerStyle:{padding:"5px 20px",width:510,height:470,minHeight:340},imgStyles:{backgroundColor:ui.a.grey300,borderRadius:"50%"},handleClose:()=>{f(!1),j(!1)}};return{userData:s,additionalUser:D,mainUser:F,additionalAccount:V,mainUserInAdditionalAccount:M,userPlan:W,userPlanName:H,userCountry:U,selectedKey:b,selectedTitle:m,accountMenuDataWithLimitations:z,blockedModuleModalProps:X,blockedPDVModalProps:Z,sectionProps:{additionalAccount:V,selectedTitle:m,selectedKey:b,mainUser:F,mainUserInAdditionalAccount:M,blockedModuleModalProps:X,blockedPDVModalProps:Z,accountMenuData:z,handleSectionClick:q,handleSectionAmplitudeClick:G},handleSectionClick:q,handleSectionAmplitudeClick:G,handleBlockedModuleModal:Y,assignSelectedTitleAndKey:()=>{const e=window.location.pathname;let t=null;z.forEach((a=>{a.subMenu.forEach((a=>{const i="productFields"===a.key&&e.startsWith(`${a.url}/`);(a.url===e||i)&&(t=a)}))})),t&&("notifications"===t.key?g(Ti.a.t("account.reportsSending")):g(t.title),h(t.key))}}};const hO={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:380,minHeight:340,bgcolor:"background.paper",borderRadius:3,py:4,px:2},xO=Object(u.a)((e=>({text:{fontSize:"14px",color:"#131313",fontFamily:"Work Sans",fontWeight:400,textAlign:"center",padding:"0px 10px",whiteSpace:"pre-line"},title:{fontSize:"22px",color:"#131313",fontFamily:"Work Sans",fontWeight:500,textAlign:"center",padding:"0px 25px"},containerImg:{display:"flex",justifyContent:"center",marginBottom:20,minHeight:110},containerBtn:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:25,paddingBottom:15,width:"100%"},itemBtn:{width:"auto"},container:{display:"flex",justifyContent:"center"},gridText:{marginTop:15},closeIconContainer:{display:"flex",flexWrap:"nowrap",justifyContent:"flex-end"},link:{color:ui.a.primary400,cursor:"pointer",textDecoration:"none","&:hover":{textDecoration:"underline",color:ui.a.primary400}}})));var fO=e=>{let{firstText:t="",secondText:a="",urlText:i="",title:o="",img:n="",altImg:r="",showBtn:s=!1,open:l=!1,showCloseButton:c=!1,disabled:d,handleClose:u=(()=>null),handleAcceptClick:m=(()=>null),isLoadingButton:g=!1,buttonText:b="",closeButtonType:h,nextButtonType:x,nextButtonIcon:f="",nextButtonIconStyle:j={},closeButtonIcon:A="",closeButtonText:C="",closeButtonStyle:O={},buttonIconStyle:S={},modalContainerStyle:E={},imgStyles:I={},id:T}=e;const P=xO();return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(w.a,{open:l,onClose:u,children:Object(p.jsxs)(y.a,{style:E,sx:hO,children:[c&&Object(p.jsx)("div",{className:P.closeIconContainer,children:Object(p.jsx)(wi.a,{onClick:e=>{e.stopPropagation(),u(e)},disableRipple:!0,style:{backgroundColor:"transparent"},children:Object(p.jsx)(Ri.a,{sx:{stroke:"#ffffff",strokeWidth:.5,fontSize:"27px"}})})}),Object(p.jsxs)(v.a,{container:!0,display:"flex",justifyContent:"center",children:[Boolean(n)&&Object(p.jsx)(v.a,{item:!0,xs:12,className:P.containerImg,children:Object(p.jsx)("div",{style:I,children:Object(p.jsx)(y.a,{component:"img",alt:r,src:n})})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{variant:"h6",className:P.title,children:o})}
76),t&&Object(p.jsx)(v.a,{item:!0,className:P.gridText,children:Object(p.jsx)(cn.a,{className:P.text,children:t})}),a&&Object(p.jsx)(v.a,{item:!0,className:P.gridText,children:Object(p.jsxs)(cn.a,{className:P.text,children:[a,Object(p.jsx)("a",{href:"mailto:[email protected]",className:P.link,children:Object(p.jsx)("span",{children:i})}),"."]})})]}),2===s&&Object(p.jsxs)(v.a,{container:!0,className:P.containerBtn,children:[Object(p.jsx)(v.a,{item:!0,className:P.itemBtn,children:Object(p.jsx)(si,{type:h||"secondary",open:l,onClick:u,showIcon:""!==A,iconType:A,iconViewBox:"0 0 20 20",iconStyle:S,containerStyle:O,children:C||Ti.a.t("cancel")})}),Object(p.jsx)(v.a,{item:!0,style:{marginLeft:10},children:Object(p.jsx)(si,{disabled:d,loading:g,onClick:()=>m(T),type:x||"primary",showIcon:""!==f,iconType:f,iconViewBox:"0 0 20 20",iconStyle:j,children:b})})]}),1===s&&Object(p.jsx)(v.a,{container:!0,className:P.containerBtn,children:Object(p.jsx)(v.a,{item:!0,className:P.itemBtn,children:Object(p.jsx)(si,{type:h||"primary",open:l,onClick:u,showIcon:""!==A,iconType:A,iconViewBox:"0 0 20 20",iconStyle:S,containerStyle:O,children:C||Ti.a.t("close")})})})]})})})};const vO=Object(u.a)((e=>({container:{padding:"10px 40px 50px 50px","@media (max-width: 750px)":{padding:"0px 20px 50px 20px"}}})));var jO=Ei((()=>{const e=vO(),{userData:t,mainUser:a,mainUserInAdditionalAccount:i,additionalAccount:o,accountMenuDataWithLimitations:n,handleSectionClick:r,handleSectionAmplitudeClick:s,blockedModuleModalProps:l,blockedPDVModalProps:c}=bO(),d={title:Ti.a.t("account.accountTitle"),companyName:null===t||void 0===t?void 0:t.business_name,companyId:null===t||void 0===t?void 0:t.userId,planName:null===t||void 0===t?void 0:t.plan_name},u={accountMenuData:n,additionalAccount:o,mainUser:a,mainUserInAdditionalAccount:i,handleSectionClick:r,handleSectionAmplitudeClick:s};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(v.a,{container:!0,className:e.container,children:[Object(p.jsx)(eO,{...d}),Object(p.jsx)(rO,{...u})]}),Object(p.jsx)(ki,{...l}),Object(p.jsx)(fO,{...c})]})}),null,!1);const AO=Object(u.a)((e=>({itemContainer:{marginBottom:20,borderRadius:5,border:`2px solid ${ui.a.grey200}`,display:"flex",flexWrap:"nowrap","@media (max-width: 520px)":{flexDirection:"column",paddingBottom:20}},active:{backgroundColor:ui.a.grey100,border:`2px solid ${ui.a.grey100}`},circle:{display:"flex",alignItems:"center",justifyContent:"center",width:70,minWidth:70,height:70,minHeight:70,borderRadius:"50%",backgroundColor:ui.a.primaryLight,color:ui.a.primary400,fontSize:20,fontWeight:600,fontFamily:"Work Sans, sans-serif",margin:"15px 10px 15px 20px"},activeCircle:{backgroundColor:ui.a.white},containerTexts:{display:"flex",flexWrap:"nowrap",flexDirection:"column",justifyContent:"center",padding:"10px 0",flexGrow:1,"@media (max-width: 520px)":{flexDirection:"column",alignItems:"center",paddingBottom:10,textAlign:"center"}},containerTitles:{display:"flex",flexWrap:"nowrap",flexDirection:"row","@media (max-width: 520px)":{flexDirection:"column",alignItems:"center",paddingBottom:10,textAlign:"center"}},title:{fontSize:16,fontWeight:500,fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary},text:{fontSize:14,fontWeight:400,fontFamily:"Work Sans, sans-serif",color:ui.a.textSecondary,"@media (max-width: 520px)":{textAlign:"center",padding:"5px 20px"}},linkText:{fontSize:14,fontWeight:400,fontFamily:"Work Sans, sans-serif",color:ui.a.primaryText,textDecoration:"none","@media (max-width: 520px)":{textAlign:"center",padding:"5px 20px"},"&:hover":{color:ui.a.primaryText,textDecoration:"underline"}},containerButton:{marginRight:20,"@media (max-width: 520px)":{marginRight:0,padding:"0px 20px",width:"100%"}},activeButton:{backgroundColor:ui.a.white,color:ui.a.primaryText,border:`2px solid ${ui.a.grey300}`,cursor:"default !important"},activationChip:{display:"flex",alignItems:"center",alignSelf:"center",minHeight:"20px",maxHeight:"20px",minWidth:"150px",backgroundColor:ui.a.warningLight,border:`1px solid ${ui.a.warning400}`,borderRadius:"50px",padding:"0px 10px",marginLeft:e.spacing(1),"@media (max-width: 520px)":{marginTop:10}},pendingText:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"2px",color:ui.a.warning400}})));var CO=e=>{let{symbol:t="",isDefault:a=!1,isActive:i=!1,openCurrencyModal:o=!1,isPending:n=!1,userCountry:r=null,handleBlockedLimitedButtonClick:s=(()=>{})}=e;const l=AO(),c=`${l.itemContainer} ${i&&l.active}`,d=`${l.circle} ${i&&l.activeCircle}
76`,u="U$S"===t?Ti.a.t("currency2"):Ti.a.t("currency1"),m=a?Ti.a.t("account.defaultCurrency"):Ti.a.t("account.secondaryCurrency"),g="U$S"===t?Ti.a.t("account.dollarCurrencyWithSymbol"):Ti.a.t("account.pesoCurrencyWithSymbol"),b=`${i?l.activeButton:"primary"}`,h=i&&"check",x=i?{color:ui.a.primaryText}:{},f=i?Ti.a.t("account.active"):Ti.a.t("account.activate"),j="U$S"===t?Ti.a.t("account.dollarCurrency"):Ti.a.t("account.pesoCurrency");return Object(p.jsxs)(v.a,{container:!0,className:c,alignItems:"center",children:[Object(p.jsx)(v.a,{item:!0,className:d,children:u}),Object(p.jsxs)(v.a,{item:!0,className:l.containerTexts,children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:l.containerTitles,children:[Object(p.jsx)(v.a,{item:!0,className:l.title,children:m}),n&&Object(p.jsx)("div",{className:l.activationChip,children:Object(p.jsx)("div",{className:l.pendingText,children:Ti.a.t("account.pendingActivation")})})]}),!n&&Object(p.jsx)(v.a,{item:!0,className:l.text,children:g}),a||n||i?!a&&n?Object(p.jsx)(v.a,{item:!0,className:l.text,children:Ti.a.t("account.infoCurrencyModalText",{currencyName:j})}):a||n||!i||"U$S"!==t?null:Object(p.jsx)(v.a,{item:!0,className:l.text,style:{paddingRight:20},children:Ti.a.t("account.contactSupport")}):Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(v.a,{item:!0,className:l.text,children:Ti.a.t("account.currencyAvailable")}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)("a",{href:(()=>{switch(r){case mx.a.ARG.value:return"https://ayuda.contabilium.com/hc/es/articles/360019706453-Gesti%C3%B3n-bi-monetaria-Contabilium-en-moneda-d%C3%B3lar";case mx.a.CL.value:return"https://ayuda.contabilium.cl/hc/es/articles/4662186160915-Gesti%C3%B3n-bi-monetaria-Contabilium-en-moneda-d%C3%B3lar";case mx.a.UY.value:return"https://ayuda.contabilium.com.uy/hc/es/articles/4661933573267-Gesti%C3%B3n-bi-monetaria-Contabilium-en-moneda-d%C3%B3lar";case mx.a.PY.value:return"https://ayuda.contabilium.com.py/hc/es-419/articles/43933336891539-Gesti%C3%B3n-bi-monetaria-Contabilium-en-moneda-d%C3%B3lar";default:return"https://ayuda.contabilium.com/hc/es/articles/360019706453-Gesti%C3%B3n-bi-monetaria-Contabilium-en-moneda-d%C3%B3lar"}})(),className:l.linkText,target:"_blank",rel:"noopener noreferrer",children:Ti.a.t("account.howDoesCurrencyWork")})})]})]}),!n&&Object(p.jsx)(v.a,{item:!0,className:l.containerButton,children:Object(p.jsx)(si,{type:b,disabled:o.state||n,showIcon:i,iconType:h,iconViewBox:"0 0 30 28",iconStyle:x,onClick:e=>{i||s(e,"activateCurrency",t)},children:f},"activateCurrency"+t)}),n&&Object(p.jsx)(v.a,{item:!0,className:l.containerButton,children:Object(p.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsx)(Od.a,{size:30})})})]})};var yO=e=>{let{currencyPending:t=!1,openCurrencyModal:a=!1,currencyData:i=[],userCountry:o=null,handleOpenConfirmModal:n=(()=>{}),handleBlockedLimitedButtonClick:r=(()=>{})}=e;const s={currencyPending:t,openCurrencyModal:a,currencyData:i,userCountry:o,handleOpenConfirmModal:n,handleBlockedLimitedButtonClick:r};return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(v.a,{container:!0,item:!0,style:{padding:"15px 30px"},children:i.map((e=>Object(p.jsx)(CO,{...e,...s,isPending:!0===t[e.symbol],isActive:e.isActive},e.symbol)))})})};const OO=Object(u.a)((e=>({boxContainer:{width:"90%",backgroundColor:ui.a.white,borderRadius:5,overflow:"hidden","@media (max-width: 960px)":{width:"100%",maxWidth:"100%"},"@media (max-width: 750px)":{width:"100%",maxWidth:"100%"}},linkContainer:{padding:"25px 20px 10px 20px"},link:{display:"flex",flexDirection:"row",alignItems:"center",color:ui.a.primary400,fontSize:"14px",lineHeight:"16px",fontFamily:"Work Sans, sans-serif",fontWeight:400,"&:hover":{textDecoration:"none",color:ui.a.primary400}},info:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",marginLeft:5},IconArrow:{fontSize:"20px",display:"flex",alignItems:"center"},itemLi:{marginBottom:10,listStyle:"none","&::marker":{color:ui.a.textSecondary}},item:{textDecoration:"none",color:ui.a.textSecondary,"&:hover":{textDecoration:"none",color:ui.a.textSecondary}},disabledLink:{color:ui.a.disabled,textDecoration:"none","&::marker":{color:ui.a.disabled},"&:hover":{color:ui.a.disabled}}})));var SO=e=>{var t;let{selectedKey:a="",additionalAccount:i=!1,mainUser:o=!1,mainUserInAdditionalAccount:n=!1,accountMenuData:r=[],handleSectionClick:s=(()=>{}),handleSectionAmplitudeClick:l=(()=>{})}=e;const c=OO(),d=null===(t=r.find((e=>e.subMenu.some((e=>
76e.key===a)))))||void 0===t?void 0:t.title,u=r.filter((e=>!i||e.title!==Ti.a.t("account.additionalCompanies"))).map((e=>{const t=e.subMenu.filter((e=>!((!o||n)&&e.title===Ti.a.t("account.notifications"))));return{title:e.title,onClick:t=>{l(e,t)},children:Object(p.jsx)("ul",{children:t.map((e=>{const t=e.key===a,i=e.isBlocked||e.isPDVBlocked||e.isNotRI?"":e.url;return Object(p.jsx)("li",{className:`${c.itemLi} ${e.isBlocked||e.isPDVBlocked||e.isNotRI?c.disabledLink:""}`,children:Object(p.jsx)("a",{href:i,"data-testid":e.sidebarTestId,className:`${c.item} ${e.isBlocked||e.isPDVBlocked||e.isNotRI?c.disabledLink:""}`,style:e.isBlocked||e.isPDVBlocked||e.isNotRI?{}:{color:t?ui.a.primaryText:ui.a.textSecondary},title:e.isNotRI?"No tienes permisos para acceder a esta seccio\u0301n":"",onClick:t=>s(e)(t),children:e.title})},e.key)}))})}})).filter(Boolean),m={color:ui.a.textPrimary,fontWeight:500,fontSize:15},g={border:"none",padding:"0px 0px 0px 10px",height:"auto",color:ui.a.textSecondary,fontFamily:"Work Sans, sans-serif",fontSize:14};return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(tO.a,{className:c.boxContainer,children:[Object(p.jsx)("div",{className:c.linkContainer,children:Object(p.jsxs)(so.a,{href:"/v3/account",className:c.link,onClick:()=>sO.backToPanel(),children:[Object(p.jsx)(ni.a,{className:c.IconArrow,name:"arrowLeft",viewBox:"0 0 24 24"}),Object(p.jsx)(cn.a,{className:c.info,children:Ti.a.t("account.backToPrincipalPanel")})]})}),Object(p.jsx)(_p,{noStyledAccordion:!0,accordionContainerStyle:{border:"none",boxShadow:"none"},accordionList:u,customTitleContainerStyle:{height:10,borderWidth:0,padding:"0px 15px"},collapseBodyStyle:g,activeAccordion:d,customTitleStyle:m,persistentExpansion:!0,onExpandedClick:e=>{const t=u.find((t=>t.title===e));var a;null!==t&&void 0!==t&&t.onClick&&(null===(a=t.onClick)||void 0===a||a.call(t))}})]})})};const EO=Object(u.a)((e=>({boxContainer:{width:"100%",backgroundColor:ui.a.white,borderRadius:5,overflow:"hidden","@media (max-width: 750px)":{width:"100%",maxWidth:"100%"}},boxTitle:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:21,color:ui.a.textPrimary},containerTitle:{padding:"30px 30px 5px 30px"},titleAction:{display:"flex",alignItems:"center"},containerButton:{"@media (max-width: 520px)":{padding:"10px 20px",width:"100%"}}})));var IO=e=>{let{children:t,sectionTitle:a="",iconType:i="",viewBox:o="",buttonText:n="",buttonType:r="",mainUser:s=!1,mainUserInAdditionalAccount:l=!1,showIcon:c=!1,showLimitedButton:d=!1,isCompanyReady:u=!1,iconStyle:m={},containerStyleBox:g={},handleNewCompanyLimitationCheck:b=(()=>{}),testId:h="",titleAction:x=null}=e;const f=EO(),j={...g.overflow?{overflow:g.overflow}:{},...g};return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(tO.a,{style:j,className:f.boxContainer,children:[Object(p.jsxs)(v.a,{container:!0,display:"flex",justifyContent:"space-between",className:f.containerTitle,children:[Object(p.jsx)(v.a,{item:!0,className:f.boxTitle,"data-testid":h?`${h}-title`:void 0,children:a}),x&&Object(p.jsx)(v.a,{item:!0,className:f.titleAction,children:x}),d&&s&&!l&&Object(p.jsx)(v.a,{item:!0,className:f.containerButton,children:Object(p.jsx)(si,{type:r,showIcon:c,iconType:i,iconViewBox:o,iconStyle:m,disabled:!u,loading:!u,onClick:b,children:n})})]}),Object(p.jsx)(v.a,{container:!0,children:t})]})})};const wO=Object(u.a)((e=>({sectionContainer:{display:"flex",flexDirection:"row",padding:"20px 40px 0px 30px",marginBottom:40,flexWrap:"wrap",[e.breakpoints.down("sm")]:{padding:"0px 20px 0px 20px",flexDirection:"column"}},accordionItem:{[e.breakpoints.down("sm")]:{order:2,marginTop:20}},boxItem:{[e.breakpoints.down("sm")]:{order:1}}})));var TO=e=>{let{children:t,buttonText:a="",buttonType:o="",iconType:n="",viewBox:r="",iconStyle:s={},showLimitedButton:l=!1,disabled:c=!1,showIcon:d=!1,isCompanyReady:u=!1,showButton:m=!1,loading:g=!1,buttonDisabled:b=!1,containerStyleBox:h={},sectionTitleOverride:x="",testId:f="",titleAction:j=null,handleButtonClick:A=(()=>{}),handleNewCompanyLimitationCheck:C=(()=>{})}=e;const y=wO(),{selectedTitle:O,selectedKey:S,blockedModuleModalProps:E,blockedPDVModalProps:I,mainUser:w,mainUserInAdditionalAccount:T,additionalAccount:P,assignSelectedTitleAndKey:R,accountMenuDataWithLimitations:N,handleSectionClick:L,handleSectionAmplitudeClick:k}=bO();Object(i.useEffect)((()=>{R()}),[]);const B={accountMenuData:N,selectedKey:S,additionalAccount:P,mainUser:w,mainUserInAdditionalAccount:T,handleSectionClick:L,handleSectionAmplitudeClick:k},D={sectionTitle:x||O,showLimitedButton:l,buttonText:a,buttonType:o,disabled:c,mainUser:w,mainUserInAdditionalAccount:T,showIcon:d,iconType:n,viewBox:r,iconStyle:s,isCompanyReady:u,containerStyleBox:h,testId:f,titleAction:j,handleNewCompanyLimitationCheck:C};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(v.a,{container:!0,className:y.sectionContainer,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:3,style:{marginBottom:20},className:y.accordionItem,children:Object(p.jsx)(SO,{...B})}),Object(p.jsxs)(v.a,{item:!0,xs:12,md:9,className:y.boxItem,children:[Object(p.jsx)(IO,{...D,children:t}),m&&Object(p.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:20},children:Object(p.jsx)(si,{type:"primary",showIcon:!g,iconType:"check",iconViewBox:"0 0 24 24",iconStyle:{fontSize:18,marginRight:3},loading:g,containerStyle:{width:"auto",minWidth:"unset",alignSelf:"flex-end"},onClick:A,disabled:b,children:g?"Cargando...":a})})]})]}),Object(p.jsx)(ki,{...E}),Object(p.jsx)(fO,{...I})]})};var PO=e=>{let{confirmCurrencyName:t="",successCurrencyName:a="",openCurrencyModal:i=!1,openCurrencyModalError:o=!1,userMultiCurrencyActivation:n=!1,userMultiCurrencyActivationLoading:r=!1,userMultiCurrencyActivationError:s=!1,openCurrencyModalSuccess:l={state:!1,data:null},handleCloseSuccessModal:c=(()=>{}),handleCloseModal:d=(()=>{}),handleSendCurrencyActivationRequest:u=(()=>{})}=e;const m={title:Ti.a.t("account.infoCurrencyConfirmationModalTitle",{currencyName:t}),img:Zc,closeButtonType:"secondary",closeButtonStyle:{border:"none",color:ui.a.textPrimary,backgroundColor:"transparent"}
76,closeButtonText:Ti.a.t("cancel"),buttonText:Ti.a.t("account.continue"),disabled:r,isLoadingButton:r,nextButtonType:"primary",handleClose:d,handleAcceptClick:u,showBtn:2,open:!!i.state,modalContainerStyle:{minHeight:100,maxWidth:450,width:"95%",paddingBottom:20},children:Ti.a.t("account.infoCurrencyConfirmationModalText")},g={title:Ti.a.t("account.infoCurrencyModalTitle"),img:Zf,children:Ti.a.t("account.infoCurrencyModalText",{currencyName:a}),closeButtonText:Ti.a.t("close"),handleClose:c,showBtn:1,open:!!l.state&&n,closeButtonType:"secondary",modalContainerStyle:{minHeight:100,paddingBottom:20,maxWidth:420,width:"95%"}},b={title:Ti.a.t("account.currencyErrorModalTitle"),img:kc,children:Ti.a.t("tryAgain")||Ti.a.t("account.currencyErrorModalText"),closeButtonText:Ti.a.t("close"),closeButtonType:"secondary",handleClose:d,showBtn:1,open:!!s&&o,modalContainerStyle:{minHeight:100,paddingBottom:20}};return Object(p.jsxs)("div",{children:[Object(p.jsx)(Kc,{...m}),Object(p.jsx)(Kc,{...g}),Object(p.jsx)(Kc,{...b})]})};const RO="BICURRENCY_PENDING_ACTIVATION";var NO=Ei((()=>{const[e,t]=Object(i.useState)([]),[a,o]=Object(i.useState)({state:!1,data:null}),[n,r]=Object(i.useState)({state:!1,data:null}),[s,l]=Object(i.useState)(!1),[c,d]=Object(i.useState)(!1),[u,m]=Object(i.useState)(!1),g=[Za.a.prueba.id,Za.a.freemium.id,Za.a.basic.id,Za.a.basicNew.id,Za.a.standard.id,Za.a.standardNew.id,Za.a.pro.id],{userData:b,userPlan:h,blockedModuleModalProps:x,handleBlockedModuleModal:f}=bO(),{dataCurrency:v,loadingCurrency:j}=Vi(),{userCurrency:A,userMultiCurrencyActivation:C,userMultiCurrencyActivationLoading:y,userMultiCurrencyActivationError:O,userMultiCurrencyStatusLoading:S,userMultiCurrencyStatusError:E,fetchUserCurrency:I,postUserMultiCurrencyActivation:w,fetchUserMultiCurrencyStatus:T}=Gu(),P=v||A;Object(i.useEffect)((()=>{T()}),[T]),Object(i.useEffect)((()=>{j||v||A||I()}),[j,v]),Object(i.useEffect)((()=>{if(P&&P.length>0){const e=P.map((e=>{let{symbol:t,default:a,enabled:i}=e;return{symbol:t,isDefault:a,enabled:i,isActive:i,isPending:!1}})).sort(((e,t)=>(t.isDefault?1:0)-(e.isDefault?1:0)));t(e)}}),[P]),Object(i.useEffect)((()=>{P&&(g.includes(h)&&!P.find((e=>"U$S"===e.symbol))||!P.find((e=>"U$S"===e.symbol)))&&t((e=>[...e,{symbol:"U$S",isDefault:!1,enabled:!1,isActive:!1,isPending:!1}]))}),[h,P]),Object(i.useEffect)((()=>{E!==RO||o((e=>({...e,U$S:!0})))}),[E]),Object(i.useEffect)((()=>{if(!a.U$S)return;const e=setInterval((async()=>{const e=await T();o(e===RO?e=>({...e,U$S:!0}):e=>({...e,U$S:!1}));const a=await I();if(Array.isArray(a)){const e=a.find((e=>"U$S"===e.symbol));e&&t((t=>t.map((t=>"U$S"===t.symbol?{...t,isActive:e.enabled}:t))))}}),2e4);return()=>clearInterval(e)}),[a.U$S,I,T]);const R=Object(i.useCallback)((t=>{if(!t)return"";if("U$S"===t)return Ti.a.t("account.dollarCurrency");const a=e.find((e=>e.symbol===t));return a?a.name:""}),[e]),N=R(n.data),L=R(s.data),k=e=>{r({state:!0,data:e})},B={currencyData:e,currencyPending:a,openCurrencyModal:n,userCountry:(null===b||void 0===b?void 0:b.country)||mx.a.ARG.value,handleOpenConfirmModal:k,handleBlockedLimitedButtonClick:(e,t,a)=>{g.includes(h)?f(e,t):k(a)}},D={currencyData:e,successRequest:u,openCurrencyModal:n,openCurrencyModalSuccess:s,confirmCurrencyName:N,successCurrencyName:L,userMultiCurrencyActivation:C,userMultiCurrencyActivationLoading:y,userMultiCurrencyActivationError:O,openCurrencyModalError:c,handleCloseModal:()=>{r({state:!1,data:null}),d(!1)},handleSendCurrencyActivationRequest:async()=>{const e=n.data;if(!e)return;m(!1);await w(e)&&!O?(m(!0),l({state:!0,data:e})):d(!0),r({state:!1,data:null})},handleCloseSuccessModal:async()=>{m(!1);const e=s.data;l({state:!1,data:null}),o((t=>({...t,[e]:!0})));const t=await T();t&&t!==E||console.error("Error al consultar estado de multimoneda:",E)}};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(TO,{children:P||!S&&!j?Object(p.jsx)(yO,{...B}):Object(p.jsx)("div",{style:{minHeight:400,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsx)(Od.a,{})})}),Object(p.jsx)(ki,{...x}),Object(p.jsx)(PO,{...D})]})}),null,!1);const LO=Object(u.a)((e=>({itemContainer:{display:"flex",flexDirection:"row",marginBottom:20,borderRadius:5,border:`2px solid ${ui.a.grey200}`,width:"100%","@media (max-width: 750px)":{flexDirection:"column",paddingBottom:20,alignItems:"center"}},active:{border:`3px solid ${ui.a.primary400}`},disabledBox:{backgroundColor:ui.a.grey100}
76,noLogoBox:{display:"flex",alignItems:"center",justifyContent:"center",width:90,minWidth:90,height:90,minHeight:90,borderRadius:"5%",backgroundColor:ui.a.primaryLight,color:ui.a.grey500,fontSize:13,fontWeight:400,fontFamily:"Work Sans, sans-serif",margin:"15px 10px 15px 20px"},disabledLogoBox:{display:"flex",alignItems:"center",justifyContent:"center",width:90,minWidth:90,height:90,minHeight:90,borderRadius:"5%",backgroundColor:ui.a.grey200,color:ui.a.grey500,fontSize:13,fontWeight:400,fontFamily:"Work Sans, sans-serif",margin:"15px 10px 15px 20px"},logoBox:{display:"flex",alignItems:"center",justifyContent:"center",width:90,minWidth:90,height:90,minHeight:90,borderRadius:"5%",fontSize:13,fontWeight:400,fontFamily:"Work Sans, sans-serif",margin:"15px 10px 15px 20px"},logo:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"5%"},containerTexts:{display:"flex",flexWrap:"wrap",flexDirection:"column",justifyContent:"center",marginLeft:10,flexGrow:1,width:"20%","@media (max-width: 750px)":{alignItems:"center",textAlign:"center",marginLeft:0,paddingBottom:10,width:"90%"}},containerTitles:{display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center","@media (max-width: 750px)":{flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",paddingBottom:10}},title:{fontSize:16,fontWeight:500,fontFamily:"Work Sans, sans-serif",color:ui.a.textPrimary,textTransform:"uppercase"},text:{fontSize:14,fontWeight:400,display:"flex",flexWrap:"wrap",flexDirection:"column",fontFamily:"Work Sans, sans-serif",color:ui.a.textSecondary,"@media (max-width: 750px)":{textAlign:"center"}},containerButtons:{alignSelf:"center",display:"flex",flexWrap:"nowrap",alignItems:"center","@media (max-width: 750px)":{alignSelf:"center",padding:"0 20px",width:"100%",justifyContent:"center"}},changeCompanyButton:{marginRight:15,"@media (max-width: 750px)":{paddingLeft:25,width:"100%"}},clearButton:{padding:"0px 15px 0px 5px",display:"flex",alignItems:"top",cursor:"pointer","@media (max-width: 750px)":{padding:0}},chip:{display:"flex",alignItems:"center",minHeight:"20px",backgroundColor:ui.a.primaryLight,border:`1px solid ${ui.a.primary400}`,borderRadius:"50px",padding:"0px 10px",marginLeft:e.spacing(1),"@media (max-width: 750px)":{marginTop:10}},chipText:{fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"2px",color:ui.a.primary400},popperText:{padding:"15px 10px",fontFamily:"Work Sans, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"2px",color:ui.a.error400,cursor:"pointer","&:hover":{color:ui.a.error500}},clearIcn:{color:ui.a.error400}})));var kO=e=>{let{userId:t="",name:a="",cuit:i="",address:o="",taxCondition:n="",city:r="",logo:s="",state:l="",status:c=!1,additionalAccount:d=!1,parentId:u=!1,mainUser:m=!1,isActive:g=!1,country:b="ar",handleChangeCompanyClick:h=(()=>{}),handleDeleteCompanyClick:x=(()=>{})}=e;const f=LO(),j=!c,A=`${f.itemContainer} ${g?f.active:j?f.disabledBox:""}`,C=""!==s?Object(p.jsx)("img",{src:Ko(s,b),alt:"logo",className:f.logo}):Object(p.jsx)("div",{className:f.boxIcon,children:Object(p.jsx)("i",{style:{fontSize:55,color:j?ui.a.grey400:"rgb(4 165 145 / 37%)"},className:"la la-user"})});return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,className:A,alignItems:"center",children:[Object(p.jsx)(v.a,{item:!0,className:""===s?j?f.disabledLogoBox:f.noLogoBox:f.logoBox,children:C}),Object(p.jsxs)(v.a,{item:!0,className:f.containerTexts,children:[Object(p.jsxs)(v.a,{container:!0,item:!0,className:f.containerTitles,children:[Object(p.jsx)(v.a,{item:!0,className:f.title,children:a}),!u&&Object(p.jsx)("div",{className:f.chip,children:Object(p.jsx)("div",{className:f.chipText,children:Ti.a.t("account.default")})})]}),Object(p.jsxs)(v.a,{container:!0,item:!0,className:f.text,children:[Object(p.jsxs)("div",{children:[o,", ",r,", ",l]}),Object(p.jsxs)("div",{children:[Xo(i),", ",n]})]})]}),!g&&!j&&Object(p.jsxs)(v.a,{item:!0,className:f.containerButtons,children:[Object(p.jsx)(v.a,{item:!0,className:f.changeCompanyButton,children:Object(p.jsx)(si,{type:"secondary",containerStyle:{borderRadius:100,border:`1px solid ${ui.a.grey500}`,color:ui.a.textSecondary},onClick:()=>h({userId:t,name:a}),children:Ti.a.t("account.useThisCompany")},t)}
76),d&&m&&Boolean(u)&&Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(wi.a,{disableRipple:!0,style:{backgroundColor:"transparent"},className:f.clearButton,onClick:()=>x({userId:t,name:a}),children:Object(p.jsx)(ni.a,{name:"clear",viewBox:"0 0 24 24",className:f.clearIcn})})})]})]})})};const BO=Object(u.a)((()=>({sectionTitle:{fontSize:16,fontWeight:600,margin:"15px 0px",fontFamily:"Work Sans, sans-serif"},listContainer:{position:"relative",width:"100%"},searchBox:{position:"absolute",display:"flex",alignItems:"center",top:50,minWidth:340,"@media (max-width: 600px)":{minWidth:"100%",position:"relative",top:0}},filterForText:{fontSize:14,fontWeight:400,marginRight:10,minWidth:75,fontFamily:"Work Sans, sans-serif"}})));var DO=e=>{let{currentCompany:t=!1,mainUser:a=!1,firstCompanyList:i,additionalCompany:o=[],additionalCompanyListLimit:n=10,country:r="ar",handleChangeCompanyClick:s=(()=>{}),handleDeleteCompanyClick:l=(()=>{}),handleChangeFilterStatus:c=(()=>{}),getAdditionalCompanyList:d=(()=>{})}=e;const u=BO(),{companies:m,statusFilter:g,companyListLoading:b,companyListError:h,currentPage:x,totalCount:f}=o,j=null===i||void 0===i?void 0:i.find((e=>(null===e||void 0===e?void 0:e.userId)===parseInt(t))),A=[{value:Ti.a.t("actives"),code:1},{value:Ti.a.t("inactive"),code:0}],C={img:On,title:Ti.a.t("account.additionalCompany.additionalCompanyEmptyState"),text:Ti.a.t("account.additionalCompany.additionalCompanyEmptyStateText")},y={loading:b,totalCount:f,limit:n,currentPage:x,handlePageChange:e=>{d({limit:n,status:null===g||void 0===g?void 0:g.code,loggedCompanyView:!1,page:e}),setTimeout((()=>{window.scrollTo(0,200)}),500)},handleTopPageChange:(e,t)=>
76{d({limit:n,status:null===g||void 0===g?void 0:g.code,loggedCompanyView:!1,page:t})},error:h,emptyState:C,dataTable:i||[]};return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,item:!0,style:{padding:"0px 30px 15px 30px",width:"100%"},children:[Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(cn.a,{className:u.sectionTitle,children:Ti.a.t("account.actualCompany")}),Object(p.jsx)(kO,{...j,additionalAccount:null!==(null===j||void 0===j?void 0:j.parent_id),activeCompanyId:t,isActive:!0,country:r},null===j||void 0===j?void 0:j.userId)]}),Object(p.jsxs)(v.a,{className:u.listContainer,children:[Object(p.jsx)(cn.a,{className:u.sectionTitle,children:Ti.a.t("account.otherCompanies")}),Object(p.jsxs)(v.a,{className:u.searchBox,children:[Object(p.jsx)(cn.a,{className:u.filterForText,children:Ti.a.t("filterFor")}),Object(p.jsx)(Pr,{disabledMinHeight:!0,data:A,onChange:(e,t)=>{c(t)},value:A.find((e=>e.value===(null===g||void 0===g?void 0:g.value))),placeholder:null!==g&&void 0!==g&&g.value?"":Ti.a.t("actives")})]}),Object(p.jsxs)(jA,{customTable:!0,...y,children:[null===m||void 0===m?void 0:m.map((e=>Object(p.jsx)(kO,{...e,country:r,mainUser:a,additionalAccount:null!==(null===e||void 0===e?void 0:e.parent_id),activeCompanyId:t,handleChangeCompanyClick:s,handleDeleteCompanyClick:l},null===e||void 0===e?void 0:e.userId))),0===(null===m||void 0===m?void 0:m.length)&&Object(p.jsx)(Fc,{containerStyle:{maxWidth:700,margin:"30px auto 50px auto"},testId:"empty-state",...C})]})]})]})})},FO=a(260);const MO=Object(u.a)((e=>({container:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"},items:{padding:"0px 10px"},button:{display:"flex",alignItems:"center",justifyContent:"center","@media (max-width: 960px)":{marginBottom:"15px"}}})));var VO=e=>{let{loadingAfipData:t=!1,passwordRequirementsError:a=!1,documentRequirementsError:i=!1,mailRequirementsError:o=!1,company:n={},emptyFieldErrors:r={},taxCategoryOptions:s=[],legalIdentityOptions:l=[],handleFieldValue:c=(()=>{}),handleSelectedOption:d=(()=>{}),handleOrganismSearchClick:u=(()=>{}),handleRequirementsCheck:m=(()=>{}),showOrganismSearchButton:g=!0,userCountry:b=null}=e;const h=MO();return Object(p.jsx)("div",{children:Object(p.jsxs)(v.a,{container:!0,className:h.container,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:9,className:h.items,children:Object(p.jsx)(mr,{types:r.cuit||i?"inputError":"inputPrimary",errorMsg:r.cuit?Ti.a.t("account.isRequired"):i?Ti.a.t("account.invalidCUIT"):"",showError:!0,required:!0,onChange:e=>{let t=e.target.value;t=b===mx.a.CL.value?t.replace(/[^0-9kK]/g,"").toUpperCase():t.replace(/\D/g,""),c("cuit")({target:{value:t}}),m("cuit",t)},maxLength:"13",value:n.cuit,inputMode:"numeric",pattern:"[0-9]*",children:Ti.a.t("account.cuitCuil")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:3,className:`${h.items} ${h.button}`,children:g&&Object(p.jsxs)(si,{type:"tertiary",loading:t,disabled:t,onClick:()=>u(n.cuit),children:[Object(p.jsx)(mi,{name:"search",viewBox:"0 -4 30 30"}),Ti.a.t("account.searchARCA")]})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:h.items,children:Object(p.jsx)(mr,{types:r.bussinesName?"inputError":"inputPrimary",errorMsg:r.bussinesName?Ti.a.t("account.isRequired"):"",showError:!0,required:!0,onChange:e=>{const t=e.target.value;/^[a-zA-Z0-9.;_ ]*$/.test(t)&&(t.trim().length>0||""===t)&&c("bussinesName")({target:{value:t}})},maxLength:"128",value:n.bussinesName,children:Ti.a.t("account.socialReason")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:h.items,children:Object(p.jsx)(Pr,{required:!0,label:Ti.a.t("clientModal.taxCategory"),type:r.taxCategory?"searchSelectError":"searchSelectPrimary",errorMsg:r.taxCategory?Ti.a.t("account.isRequired"):"",showError:!0,data:s,placeholder:n.taxCategory?"":Ti.a.t("selectOption"),value:null===n||void 0===n?void 0:n.taxCategory,onChange:(e,t)=>
76{d("taxCategory")(e,t)},isUsedInModal:!0})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:h.items,children:Object(p.jsx)(Pr,{required:!0,label:Ti.a.t("clientModal.legalIdentity"),type:r.personality?"searchSelectError":"searchSelectPrimary",errorMsg:r.personality?Ti.a.t("account.isRequired"):"",showError:!0,data:l,value:null===n||void 0===n?void 0:n.personality,defaultValue:null===n||void 0===n?void 0:n.personality,onChange:(e,t)=>{d("personality")(e,t)},isUsedInModal:!0})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:h.items,children:Object(p.jsx)(mr,{autoComplete:"new-email",types:r.email||o?"inputError":"inputPrimary",errorMsg:r.email?Ti.a.t("account.isRequired"):o?Ti.a.t("account.invalidMail"):"",showError:!0,required:!0,onChange:e=>{const t=e.target.value.replace(/\s/g,"");c("email")({target:{value:t}}),m("email",n.email)},maxLength:"128",value:n.email,children:Ti.a.t("email")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:h.items,style:{marginBottom:"25px"},children:Object(p.jsx)(FO.a,{required:!0,autoComplete:"new-password",error:r.password||a,showIconTooltip:!0,value:n.password,showError:!0,errorMsg:r.password?Ti.a.t("account.isRequired"):a?Ti.a.t("account.invalidPassword"):"",textTooltip:Ti.a.t("account.passwordTooltipText"),labelText:Ti.a.t("account.password"),maxLength:"20",handleChange:e=>{const t=e.target.value.replace(/\s/g,"");c("password")({target:{value:t}}),m("password",n.password)}})})]})})};const WO=Object(u.a)((e=>({container:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",marginBottom:"10px"},items:{padding:"0px 10px",marginTop:"0px !important"}})));var HO=e=>{var t;let{loadingProvinces:a=!1,loadingCities:i=!1,company:o={},provinces:n=[],cities:r=[],emptyFieldErrors:s={},handleFieldValue:l=(()=>{}),handleSelectedOption:c=(()=>{})}=e;const d=WO();return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{container:!0,className:d.container,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:d.items,children:Object(p.jsx)(Pr,{required:!0,type:s.stateId?"searchSelectError":"searchSelectPrimary",errorMsg:s.stateId?Ti.a.t("account.isRequired"):"",showError:!0,label:Ti.a.t("clientModal.province"),placeholder:null!==o&&void 0!==o&&null!==(t=o.stateId)&&void 0!==t&&t.name?"":Ti.a.t("clientModal.selectProvince"),data:n,value:null===o||void 0===o?void 0:o.stateId,loading:a,defaultValue:null===o||void 0===o?void 0:o.stateId,onChange:(e,t)=>
76{c("stateId")(e,t)},isUsedInModal:!0})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:6,className:d.items,children:Object(p.jsx)(Pr,{required:!0,type:s.cityId&&null!==o&&void 0!==o&&o.stateId?"searchSelectError":"searchSelectPrimary",errorMsg:s.cityId&&null!==o&&void 0!==o&&o.stateId?Ti.a.t("account.isRequired"):"",showError:!0,label:Ti.a.t("clientModal.city"),placeholder:null!==o&&void 0!==o&&o.cityId?"":Ti.a.t("clientModal.selectCity"),data:r,value:null===o||void 0===o?void 0:o.cityId,loading:i,onChange:(e,t)=>{c("cityId")(e,t)},disabled:!(null!==o&&void 0!==o&&o.stateId),isUsedInModal:!0})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:8,className:d.items,children:Object(p.jsx)(mr,{types:s.address?"inputError":"inputPrimary",errorMsg:s.address?Ti.a.t("account.isRequired"):"",showError:!0,required:!0,onChange:e=>{const t=e.target.value;/^[a-zA-Z0-9.;_ ]*$/.test(t)&&(t.trim().length>0||""===t)&&l("address")({target:{value:t}})},maxLength:"100",value:o.address,children:Ti.a.t("location")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:4,className:d.items,children:Object(p.jsx)(mr,{types:"inputPrimary",onChange:l("floor"),maxLength:"10",value:o.floor,children:Ti.a.t("clientModal.floor")})})]})})};var UO=e=>{let{secondaryButtonText:t="",primaryButtonText:a="",titleModal:i="",errorMessage:o="",containerRef:n=null,titleChange:r=!1,isOpen:s=!1,primaryHeader:l=!0,hasChildrenArray:c=!1,loadingProvinces:d=!1,loadingCities:u=!1,loadingAfipData:m=!1,primaryButtonLoading:g=!1,documentRequirementsError:b=!1,mailRequirementsError:h=!1,passwordRequirementsError:x=!1,showAlert:f=!1,company:v={},headerStyle:j={},emptyFieldErrors:A={},childrenArrayTitles:C=[],provinces:y=[],cities:O=[],taxCategoryOptions:S=[],legalIdentityOptions:E=[],handleClose:I=(()=>{}),handleFieldValue:w=(()=>{}),handleSelectedOption:T=(()=>{}),secondaryButtonClick:P=(()=>{}),primaryButtonClick:R=(()=>{}),handleRequirementsCheck:N=(()=>{}),handleOrganismSearchClick:L=(()=>{}),handleCloseAlert:k=(()=>{})}=e;const{userData:B}=$a(),D=null===B||void 0===B?void 0:B.country,F={handleClose:I,secondaryButtonClick:P,primaryButtonClick:R,isOpen:s,secondaryButtonText:t,primaryButtonText:a,titleChange:r,titleModal:i,primaryHeader:l,hasChildrenArray:c,headerStyle:j,childrenArrayTitles:C,showAlert:f,errorMessage:o,handleCloseAlert:k,containerRef:n,primaryButtonLoading:g},M={key:1,company:v,taxCategoryOptions:S,legalIdentityOptions:E,emptyFieldErrors:A,handleFieldValue:w,handleSelectedOption:T,loadingAfipData:m,handleOrganismSearchClick:L,documentRequirementsError:b,mailRequirementsError:h,passwordRequirementsError:x,handleRequirementsCheck:N,showOrganismSearchButton:"py"!==String(D||"").toLowerCase(),userCountry:D},V={key:2,company:v,provinces:y,cities:O,loadingProvinces:d,loadingCities:u,emptyFieldErrors:A,handleFieldValue:w,handleSelectedOption:T};return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(Gg,{...F,children:[Object(p.jsx)(VO,{...M}),Object(p.jsx)(HO,{...V})]})})};const _O="SET_FIELD_VALUE",zO="SET_SELECTED_OPTION",qO="REMOVE_SELECTED_OPTION",GO="REMOVE_ALL_VALUES",YO={bussinesName:"",taxCategory:null,personality:{name:Px[0].name,label:Px[0].label,value:Px[0].value},cuit:"",stateId:null,cityId:null,address:"",floor:"",email:"",password:""},KO=(e,t)=>{switch(t.type){case _O:return{...e,[t.payload.field]:t.payload.value};case zO:return{...e,[t.payload.field]:t.payload.selectedOption};case qO:return"stateId"===t.payload.field?{...e,stateId:null,cityId:null}:{...e,[t.payload.field]:null};case GO:return YO;default:return e}};var XO=()=>{const[e,t]=Object(i.useReducer)(KO,YO);return{company:e,dispatch:t,handleFieldValue:e=>a=>{const i=a.target.value;t({type:_O,payload:{field:e,value:i}})},handleSelectedOption:e=>(a,i)=>{i?(t({type:zO,payload:{field:e,selectedOption:i}}),"stateId"===e&&t({type:zO,payload:{field:"cityId",selectedOption:null}})):t("personality"===e?{type:zO,payload:{field:"personality",selectedOption:{name:Px[0].name,label:Px[0].label,value:Px[0].value}}}:{type:qO,payload:{field:e}})},removeAllValues:()=>{t({type:GO})}}};const ZO=[{value:"closeReason",name:Ti.a.t("account.additionalCompany.deleteReasons.closeReason"),
76code:Ti.a.t("account.additionalCompany.deleteReasons.closeReasonCode")},{value:"pauseReason",name:Ti.a.t("account.additionalCompany.deleteReasons.pauseReason"),code:Ti.a.t("account.additionalCompany.deleteReasons.pauseReasonCode")},{value:"otherReason",name:Ti.a.t("account.additionalCompany.deleteReasons.otherReason"),code:Ti.a.t("account.additionalCompany.deleteReasons.otherReasonCode")}],QO=Object(u.a)((e=>({container:{maxHeight:"67vh",width:"100%",padding:15,display:"flex",alignItems:"flex-start",overflowY:"auto","@media (max-width: 770px)":{height:"85%",overflowY:"scroll"}},modalStyle:{width:"100%",maxWidth:"610px",maxHeight:"95vh",fontSize:"16px","@media (max-width: 770px)":{width:"90% !important",height:"80%"}},containerWithError:{maxHeight:"67vh",width:"100%",padding:15,"@media (max-width: 770px)":{height:"80%"}},formContainer:{gap:10,maxHeight:350,padding:"5px 10px 0px 10px"},modalWithError:{width:"100%",maxWidth:"600px",maxHeight:"95vh",fontSize:"16px","@media (max-width: 770px)":{width:"90% !important",height:"87%"}},description:{textAlign:"left",fontFamily:"Work Sans, sans-serif",width:"100%",fontSize:14,marginBottom:15}})));var JO=e=>{let{openModal:t=!1,showAlertSuccess:a=!1,showAlertError:o=!1,name:n="",userId:r="",additionalCompany:s={},resetInactivateStates:l=(()=>{}),handleCloseModal:c=(()=>{}),putInactivateCompany:d=(()=>{})}=e;const u=QO(),[m,g]=Object(i.useState)(ZO[0]),[b,h]=Object(i.useState)(""),[x,f]=Object(i.useState)(!1),[v,j]=Object(i.useState)(!1),[A,C]=Object(i.useState)(ZO[0]),[y,O]=Object(i.useState)(!1),[S,E]=Object(i.useState)(""),[I,w]=Object(i.useState)(!1),T=m.code===ZO[2].code,{inactivateLoading:P,inactivateError:R,inactivateSuccess:N}=s;Object(i.useEffect)((()=>{R&&O(!0)}),[P,R]);const L=()=>{c(),l(),g(ZO[0]),C(ZO[0]),f(!1),h(""),j(!1),E(""),w(!1)},k=(e,t)=>{Boolean(t)?(g({name:null===t||void 0===t?void 0:t.name,code:null===t||void 0===t?void 0:t.code}),C({name:null===t||void 0===t?void 0:t.name,code:null===t||void 0===t?void 0:t.code}),t.code!==ZO[2].code&&(h(""),j(!1))):g(A)};return Object(p.jsx)(p.Fragment,{children:Object(p.jsx)(Sm,{handleClose:L,isOpen:t,secondaryButtonClick:L,title:`\xbfEst\xe1s seguro que deseas eliminar la cuenta ${n}?`,modalStyle:a||o||T?u.modalWithError:u.modalStyle,innerContentStyle:a||o?u.containerWithError:u.container,secondaryButtonText:Ti.a.t("close"),primaryButtonText:Ti.a.t("delete"),primaryButtonClick:()=>(()=>{if(!m&&!x.reason)return void f({reason:Boolean(m)});var e;if((e=S)&&!/\s/.test(e)){if(T){const e=b.replace(/\s/g,"");if(!e||e.length<10)return void j(!0)}f(!1),j(!1),d({userId:r,reason:T?b:m.name,category:m.code,password:S}),h(""),g(ZO[0]),w(!1)}else w(!0)})(),primaryButtonLoading:P,primaryButtonDisabled:!m||!S||N,children:Object(p.jsxs)(hr.a,{container:!0,className:u.formContainer,children:[y&&Object(p.jsx)(_g,{errors:R,onCloseAlert:()=>{O(!1)}}),N&&Object(p.jsx)($r,{style:{minHeight:35,marginBottom:10,width:"100%"},viewBox:"4 4 16 18",iconName:"check",type:"alertSuccess",children:Ti.a.t("account.additionalCompany.successMessage")}),Object(p.jsx)("p",{className:u.description,children:Ti.a.t("account.additionalCompany.deleteCompanyDescription")}),Object(p.jsxs)(hr.a,{item:!0,xs:12,style:{marginBottom:T?30:0},children:[Object(p.jsx)(Pr,{label:Ti.a.t("account.additionalCompany.deleteReasonTitle"),type:m?"searchSelectConfiguration":"searchSelectError",errorMsg:m?"":Ti.a.t("account.isRequired"),data:ZO,onChange:k,onSelectInputChange:k,value:m,required:!0,showError:(null===x||void 0===x?void 0:x.reason)||!m,twoOptions:!0,disabled:N,isUsedInModal:!0,sx:{"& .MuiAutocomplete-inputRoot .MuiAutocomplete-input":{minWidth:"90% !important",fontFamily:"Work Sans, sans-serif",fontSize:"14px"}}}),m.code===ZO[2].code&&Object(p.jsx)(mr,{disabledMinHeight:!0,placeholder:Ti.a.t("account.additionalCompany.deleteReasons.otherReasonPlaceholder"),types:v?"inputError":"inputPrimary",errorMsg:v?b.replace(/\s/g,"")?Ti.a.t("account.additionalCompany.deleteReasons.minLengthError"):Ti.a.t("requiredField"):"",showError:v,onChange:e=>{const t=e.target.value.replace(/^\s+/,"");h(t),t.trim()&&j(!1)},maxLength:"250",value:b})]}),Object(p.jsx)("input",{type:"text",style:{display:"none"},autoComplete:"username"}),Object(p.jsx)(hr.a,{item:!0,xs:12,style:{marginBottom:10},children:Object(p.jsx)(FO.a,{required:!0,autoComplete:"current-password",value:S,error:I,showError:I,showIconTooltip:!1,labelText:Ti.a.t("account.passwordWithLeyend"),errorMsg:I?Ti.a.t("account.isRequired"):"",maxLength:"20",handleChange:e=>{const t=e.target.value.replace(/\s/g,"");E(t),I&&w(!1)}})})]})})})};const $O={createAdditionalCompanySuccess:null,createAdditionalCompanyLoading:!1,createAdditionalCompanyError:null,inactivateLoading:!1,inactivateError:null,inactivateSuccess:null,companies:[],companyListLoading:!1,companyListError:null,currentPage:1,totalPages:1,statusFilter:1,totalCount:0,additionalCompanyAddin:null,additionalCompanyAddinLoading:!1,additionalCompanyAddinError:null},eS="POST_CREATE_ADDITIONAL_COMPANY_LOADING",tS="POST_CREATE_ADDITIONAL_COMPANY_SUCCESS",aS="POST_CREATE_ADDITIONAL_COMPANY_ERROR",iS="PUT_INACTIVATE_COMPANY_LOADING",oS="PUT_INACTIVATE_COMPANY_SUCCESS",nS="PUT_INACTIVATE_COMPANY_ERROR",rS="RESET_INACTIVATE_COMPANY",sS="SET_ADDITIONAL_COMPANY_LIST_LOADING",lS="SET_ADDITIONAL_COMPANY_LIST",cS="SET_ADDITIONAL_COMPANY_LIST_ERROR",dS="SET_FILTER_STATUS",uS="GET_ADDITIONAL_COMPANY_ADDIN_LOADING",pS="GET_ADDITIONAL_COMPANY_ADDIN_SUCCESS",mS="GET_ADDITIONAL_COMPANY_ADDIN_ERROR",gS=(e,t)=>{switch(t.type){case eS:return{...e,createAdditionalCompanyLoading:!0,createAdditionalCompanyError:!1};case tS:return{...e,createAdditionalCompanySuccess:t.payload,createAdditionalCompanyLoading:!1};case aS:return{...e,createAdditionalCompanyLoading:!1,createAdditionalCompanyError:t.payload};case iS:return{...e,inactivateLoading:!0,inactivateError:null,inactivateSuccess:null};case oS:return{...e,inactivateLoading:!1,inactivateError:null,inactivateSuccess:!0};case nS:return{...e,inactivateLoading:!1,inactivateError:t.payload,inactivateSuccess:!1};case rS:return{...e,inactivateLoading:!1,inactivateError:null,inactivateSuccess:null};case sS:return{...e,companyListLoading:!0,companyListError:null};case lS:return{...e,companies:t.payload.list,currentPage:t.payload.currentPage,totalPages:t.payload.totalPages,totalCount:t.payload.totalCount,companyListLoading:!1};case cS:return{...e,companyListLoading:!1,companyListError:!0};case dS:return{...e,statusFilter:t.payload};case uS:return{...e,additionalCompanyAddinLoading:!0,additionalCompanyAddinError:null};case pS:return{...e,additionalCompanyAddin:t.payload,additionalCompanyAddinLoading:!1};case mS:return{...e,additionalCompanyAddinLoading:!1,additionalCompanyAddinError:t.payload};default:return e}};var bS=()=>{const[e,t]=Object(i.useReducer)(gS,$O),{userData:a}=Object(i.useContext)(Qa),o=Object(i.useCallback)((async e=>{t({type:eS});try{const a=await Ya.companies.postCreateAdditionalCompany(e);return t({type:tS,payload:a}),a}catch(o){var a,i;throw t({type:aS,payload:(null===o||void 0===o||null===(a=o.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.error)||o.code}),o}}),[]),n=Object(i.useCallback)((async e=>{let{limit:a,status:i,loggedCompanyView:o,page:n}=e;t({type:sS});try{var r;const e=await Ya.companies.getAdditionalCompanies({limit:a,status:i,loggedCompanyView:o,page:n});t({type:lS,payload:{list:e.data,currentPage:e.current_page,totalPages:null!==(r=e.total_pages)&&void 0!==r?r:Math.ceil(e.total/a),totalCount:e.total}})}catch(s){return t({type:cS}),!0}}),[]),r=Object(i.useCallback)((async()=>
76{t({type:uS});try{const e=await Ya.companies.getAdditionalCompanyAddin();t({type:pS,payload:e})}catch(a){var e;t({type:mS,payload:(null===a||void 0===a||null===(e=a.response)||void 0===e?void 0:e.data)||a.code})}}),[]);return Object(i.useEffect)((()=>{a&&n({limit:10,status:e.statusFilter,loggedCompanyView:1!==e.statusFilter,page:1})}),[a]),{additionalCompany:e,createAdditionalCompany:o,putInactivateCompany:async e=>{let{userId:a,reason:i,category:o,password:n}=e;t({type:iS});try{const e=await Ya.companies.inactivateCompany({userId:a,reason:i,category:o,password:n});return t({type:oS}),e}catch(s){var r;t({type:nS,payload:(null===s||void 0===s||null===(r=s.response)||void 0===r?void 0:r.data)||s.code})}},resetInactivateStates:()=>{t({type:rS})},handleChangeFilterStatus:e=>{t({type:dS,payload:e}),n({limit:10,status:null===e||void 0===e?void 0:e.code,loggedCompanyView:!1,page:1})},getAdditionalCompanyList:n,handleGetAdditionalCompanyAddin:r,additionalCompanyListLimit:10}};const hS="GET_AFIP_DATA_SUCCESS",xS="GET_AFIP_DATA_LOADING",fS="GET_AFIP_DATA_ERROR",vS="GET_SII_DATA_SUCCESS",jS="GET_SII_DATA_LOADING",AS="GET_SII_DATA_ERROR",CS="GET_DGI_DATA_SUCCESS",yS="GET_DGI_DATA_LOADING",OS="GET_DGI_DATA_ERROR",SS={afipData:{},loadingAfipData:!1,errorAfipData:null,siiData:{},loadingSiiData:!1,errorSiiData:null,dgiData:{},loadingDgiData:!1,errorDgiData:null};var ES=()=>{const[e,t]=Object(i.useReducer)(((e,t)=>{switch(t.type){case xS:return{...e,loadingAfipData:!0,errorAfipData:null};case hS:return{...e,loadingAfipData:!1,afipData:t.payload};case fS:return{...e,loadingAfipData:!1,errorAfipData:t.payload};case jS:return{...e,loadingSiiData:!0,errorSiiData:null};case vS:return{...e,loadingSiiData:!1,siiData:t.payload};case AS:return{...e,loadingSiiData:!1,errorSiiData:t.payload};case yS:return{...e,loadingDgiData:!0,errorDgiData:null};case CS:return{...e,loadingDgiData:!1,dgiData:t.payload};case OS:return{...e,loadingDgiData:!1,errorDgiData:t.payload};default:return e}}),SS);return{...e,handleGetAfipData:async e=>{let{nroDocumento:a}=e;t({type:xS});try{const e=await Ya.clients.getAfipData({nroDocumento:a});return t({type:hS,payload:e}),e}catch(i){const e=i.message||"Ha ocurrido un error";throw t({type:fS,payload:e}),new Error(e)}},handleGetRegioData:async e=>{let{nroDocumento:a,country:i}=e;const o="cl"===i,n="uy"===i,r="py"===i;o&&t({type:jS}),(n||r)&&t({type:yS});try{const e=await Ya.clients.getRegioData({nroDocumento:a,country:i});return o&&t({type:vS,payload:e}),(n||r)&&t({type:CS,payload:e}),e}catch(s){const e=(null===s||void 0===s?void 0:s.message)||"Ha ocurrido un error";throw o&&t({type:AS,payload:e}),(n||r)&&t({type:OS,payload:e}),new Error(e)}}}};var IS=e=>{let{userCountry:t=null,docTypeOptions:a=[],taxCategoryOptions:o=[],legalIdentityOptions:n=[],provinces:r=[],cities:s=[],dispatch:l=(()=>{}),setShowErrorMessage:c=(()=>{})}=e;const{afipData:d,loadingAfipData:u,errorAfipData:p,handleGetAfipData:m,loadingSiiData:g,loadingDgiData:b,handleGetRegioData:h}=ES(),[x,f]=Object(i.useState)(null),[v,j]=Object(i.useState)(null),[A,C]=Object(i.useState)(null),y=u||g||b;Object(i.useEffect)((()=>{null!==x&&(O(),S())}),[x]),Object(i.useEffect)((()=>{if(v&&(null===s||void 0===s?void 0:s.length)>0&&x){const e=s.find((e=>{var t;return(e.id===(null===x||void 0===x?void 0:x.cityId)||e.name.toLowerCase()===(null===x||void 0===x||null===(t=x.cityName)||void 0===t?void 0:t.toLowerCase()))&&e.provinceId===v}));e&&l({type:"SET_SELECTED_OPTION",payload:{field:"cityId",selectedOption:{id:e.id,name:e.name,provinceId:v}}})}}),[v,s,x]);const O=()=>{if(!x)return;const e={bussinesName:x.bussinesName,fantasyName:x.bussinesName,address:x.address,postalCode:x.postalCode,floor:x.floor};Object.entries(e).forEach((e=>{let[t,a]=e;l({type:"SET_FIELD_VALUE",payload:{field:t,value:a}})}))},S=()=>{var e,i;if(!x)return;[{field:"documentType",options:a,value:null===x||void 0===x?void 0:x.documentType},{field:"taxCategory",options:o,value:null===x||void 0===x?void 0:x.taxCategory},{field:"personality",options:n,value:null===x||void 0===x?void 0:x.personality}].forEach((e=>{let{field:t,options:a,value:i}=e;const o=((e,t)=>e.find((e=>e.value===t))||null)(a,i);l({type:"SET_SELECTED_OPTION",payload:{field:t,selectedOption:o}})}));const s=Object.values(mx.a).find((e=>e.value===t)),c=null!==(e=null===s||void 0===s?void 0:s.id)&&void 0!==e?e:mx.a.ARG.id,d=null!==(i=null===s||void 0===s?void 0:s.name)&&void 0!==i?i:mx.a.ARG.name;if(l({type:"SET_SELECTED_OPTION",payload:{field:"idCountry",selectedOption:{id:c,name:d}}}),null!==x&&void 0!==x&&x.stateId||null!==x&&void 0!==x&&x.provinceName){const e=r.find((e=>{var t;return e.id===(null===x||void 0===x?void 0:x.stateId)||e.name.toLowerCase()===(null===x||void 0===x||null===(t=x.provinceName)||void 0===t?void 0:t.toLowerCase())}));e&&(l({type:"SET_SELECTED_OPTION",payload:{field:"stateId",selectedOption:{id:e.id,name:e.name,countryId:e.countryId||10}}}),j(e.id))}};return{afipData:d,afipMatchedData:x,loadingAfipData:y,errorAfipData:p,afipButtonErrors:A,handleOrganismSearchClick:async e=>{if(!e){const e=t===mx.a.ARG.value,a=[mx.a.CL.value,mx.a.UY.value,mx.a.PY.value].includes(t);return C(e?[{code:"CUIT_INVALID"}]:a?[{code:"RUT_INVALID",msg:"Debe ingresar un RUT v\xe1lido"}]:[{code:"DOC_INVALID",msg:"Documento inv\xe1lido"}]),c(!0),void f(null)}
76try{if(t===mx.a.ARG.value){const t=(e=>{if(null===e||void 0===e||!e.d)return null;const t=e.d;return{provinceName:t.ProvinciaNombre,cityName:t.CiudadNombre,address:t.Domicilio,postalCode:t.CodigoPostal,bussinesName:t.RazonSocial,personality:t.Personeria,cityId:t.CiudadId,stateId:t.ProvinciaId,floor:t.PisoDto,documentType:t.TipoDoc,taxCategory:t.CategoriaImpositiva,monotributeCategory:t.CategoriaMonotributo,documentNumber:t.NroDoc,activities:t.Actividades}})(await m({nroDocumento:e}));return c(!1),C({code:null}),void f(t)}if([mx.a.CL.value,mx.a.UY.value,mx.a.PY.value].includes(t)){const a=await h({nroDocumento:e,country:t}),i=t===mx.a.CL.value?(e=>{const t=null===e||void 0===e?void 0:e.d;return t?{stateId:t.IDProvincia,provinceName:t.Provincia,cityId:t.IDCiudad,cityName:t.Ciudad,address:t.Domicilio,postalCode:null,bussinesName:t.RazonSocial,floor:null,documentType:"RUT",taxCategory:t.CategoriaImpositiva,personality:"J",documentNumber:null,email:t.Email,giro:t.Giro}:null})(a):(e=>{const t=null===e||void 0===e?void 0:e.d;return t?{stateId:t.IDProvincia,provinceName:t.Provincia,cityId:t.IDCiudad,cityName:t.Ciudad,address:t.Domicilio,postalCode:null,bussinesName:t.RazonSocial,floor:null,documentType:"RUT",taxCategory:t.CategoriaImpositiva,personality:"J",documentNumber:null,email:t.Email}:null})(a);return i?(c(!1),C({code:null}),void f(i)):(c(!0),C([{code:"CUIT_NOT_FOUND"}]),void f(null))}}catch(a){c(!0),C([{code:"CUIT_NOT_FOUND"}]),f(null)}}}};const wS=e=>{let t=0,a=2;for(let o=e.length-1;o>=0;o--)t+=parseInt(e.charAt(o),10)*a,a=7===a?2:a+1;const i=11-t%11;return 11===i?"0":10===i?"K":String(i)},TS=(e,t)=>{if(!t||"undefined"===typeof t||""===t)return!0;switch((e=>{if(!e)return"";const t=e.toString().trim().toUpperCase();return["AR","ARG","ARGENTINA"].includes(t)?"AR":["CL","CHL","CHILE"].includes(t)?"CL":["UY","URY","URUGUAY"].includes(t)?"UY":["PY","PRY","PARAGUAY"].includes(t)?"PY":t})(e)){case"CL":return(e=>{if(null==e)return!0;let t=e.toString().replace(/\./g,"").replace(/-/g,"").toUpperCase();if(0===t.length)return!0;if(t.length<2)return!1;const a=t.slice(0,-1),i=t.slice(-1);return!!/^\d+$/.test(a)&&wS(a).toString().toUpperCase()===i.toString().toUpperCase()})(t);case"UY":return(e=>{if(null==e)return!0;let t=(e=>(e||"").toString().replace(/\D/g,""))(e);if(0===t.length)return!0;if(t.length>12)return!1;t=t.padStart(12,"0");const a=t.slice(0,11).split("").map(Number),i=parseInt(t.charAt(11),10),o=[4,3,2,9,8,7,6,5,4,3,2];let n=0;for(let s=0;s<11;s++)n+=a[s]*o[s];let r=11-n%11;return 11===r&&(r=0),10!==r&&i===r})(t);case"PY":return(e=>{if(null==e)return!0;const t=(e||"").toString().replace(/\D/g,"");return 0===t.length||!(t.length<8||t.length>9)&&/^\d+$/.test(t)})(t);default:return(e=>{if(!e)return!0;const t=e.toString().replace(/[-_]/g,"");if(0===t.length)return!0;if(11!==t.length)return!1;const a=[5,4,3,2,7,6,5,4,3,2];let i=0;for(let n=0;n<a.length;n++)i+=parseInt(t.charAt(n),10)*a[n];const o=i%11;return(0===o?0:1===o?9:11-o)===parseInt(t.charAt(10),10)})(t)}},PS=e=>{if(!e)return!0;const t=/[A-Z]/.test(e),a=/[a-z]/.test(e),i=/[0-9]/.test(e),o=/[^A-Za-z0-9]/.test(e),n=e.length>=8;return t&&a&&i&&o&&n},RS=e=>{if(!e)return!0;const t=e.split(",").map((e=>e.trim())),a=/^[^\s@<>()\[\]\\,;:"'\.]+(\.[^\s@<>()\[\]\\,;:"'\.]+)*[^\s@<>()\[\]\\,;:"'\.]+@(?!(?:[-_]\.)|(?:\.[-_])|(?:[-_][^a-zA-Z0-9])|(?:[^a-zA-Z0-9][-_.])|(?:[-_]$)|(?:^[-_]))[a-zA-Z0-9]+(?:[-_a-zA-Z0-9]*[a-zA-Z0-9])*(?:\.[a-zA-Z]+(?:[-_a-zA-Z0-9]*[a-zA-Z0-9])*)*\.[a-zA-Z]+$/;return t.every((e=>a.test(e)))},NS={USER_NEW_COMPANY_CREATED:Ti.a.t("account.additionalAccountCreated")},LS="cuits";var kS=Ei((e=>{let{limitations:t}=e;const[a,o]=Object(i.useState)(!1),[n,r]=Object(i.useState)(!1),[s,l]=Object(i.useState)({bussinesName:!1,taxCategory:!1,cuit:!1,personality:!1,email:!1,password:!1,stateId:!1,cityId:!1,address:!1}),[c,d]=Object(i.useState)(!1),[u,m]=Object(i.useState)(!1),[g,b]=Object(i.useState)(!1),[h,x]=Object(i.useState)(!1),[f,j]=Object(i.useState)(!1),[A,C]=Object(i.useState)(!1),[y,O]=Object(i.useState)(!1),[S,E]=Object(i.useState)({}),[I,w]=Object(i.useState)(!1),{companies:T,companiesLoading:P,handleChangeCompany:R,fetchCompaniesList:N}=Object(i.useContext)(Qo),{fetchLimitations:L}=Object(i.useContext)(Ci),k=Object(i.useRef)(null),{additionalCompany:B,additionalCompanyListLimit:D,createAdditionalCompany:F,putInactivateCompany:M,resetInactivateStates:V,handleChangeFilterStatus:W,getAdditionalCompanyList:H,handleGetAdditionalCompanyAddin:U}=bS(),{createAdditionalCompanySuccess:_,createAdditionalCompanyError:z,createAdditionalCompanyLoading:q,companyListLoading:G,inactivateSuccess:Y,additionalCompanyAddin:K}=B,{company:X,dispatch:Z,handleFieldValue:Q,handleSelectedOption:J,removeAllValues:$}=XO(),{provinces:ee,cities:te,loadingProvinces:ae,loadingCities:ie,handleGetProvinces:oe,handleGetCities:ne}=Xx(),{userData:re,mainUser:se,additionalAccount:le,mainUserInAdditionalAccount:ce,userPlan:de,userPlanName:ue,userCountry:pe}=bO(),me=(()=>{switch(pe){case mx.a.ARG.value:return Tx.A.filter((e=>e.value!==Tx.A[1].value&&e.value!==Tx.A[4].value));case mx.a.CL.value:return Tx.C;case mx.a.UY.value:return Tx.U;case mx.a.PY.value:return Tx.P;default:return[]}})(),ge=Px,{loadingAfipData:be,errorAfipData:he,afipButtonErrors:xe,handleOrganismSearchClick:fe}=(Za.a.enterprise.id,Za.a.basicNew.id,Za.a.basic.id,IS({userCountry:pe,client:X,taxCategoryOptions:me,legalIdentityOptions:ge,provinces:ee,cities:te,dispatch:Z,setShowErrorMessage:d}));Object(i.useEffect)((()=>{U()}),[]),Object(i.useEffect)((()=>{se&&!ce&&_&&(U(),L())}),[se,ce,_]),Object(i.useEffect)((()=>{se&&!ce&&Y&&(U(),L())}),[se,ce,Y]),Object(i.useEffect)((()=>
76{if(le){const e="https://app.contabilium.com/".replace(/\/?$/,"");window.open(`${e}/v3/account`,"_self")}}),[le]),Object(i.useEffect)((()=>{a||$()}),[a]),Object(i.useEffect)((()=>{if(pe){const e=Object.values(mx.a).find((e=>e.value===pe));null!==e&&void 0!==e&&e.id&&oe(e.id)}}),[pe]),Object(i.useEffect)((()=>{var e;null!==X&&void 0!==X&&X.stateId&&ne(null===X||void 0===X||null===(e=X.stateId)||void 0===e?void 0:e.id)}),[null===X||void 0===X?void 0:X.stateId]),Object(i.useEffect)((()=>{ee&&t&&X&&K&&r(!0)}),[ee,X,t,K]),Object(i.useEffect)((()=>{l((e=>{var t,a,i,o;const n={bussinesName:!(null!==X&&void 0!==X&&X.bussinesName),taxCategory:!(null!==X&&void 0!==X&&null!==(t=X.taxCategory)&&void 0!==t&&t.value),cuit:!(null!==X&&void 0!==X&&X.cuit),personality:!(null!==X&&void 0!==X&&null!==(a=X.personality)&&void 0!==a&&a.value),email:!(null!==X&&void 0!==X&&X.email),password:!(null!==X&&void 0!==X&&X.password),stateId:!(null!==X&&void 0!==X&&null!==(i=X.stateId)&&void 0!==i&&i.id),cityId:!(null!==X&&void 0!==X&&null!==(o=X.cityId)&&void 0!==o&&o.id),address:!(null!==X&&void 0!==X&&X.address)};return Object.keys(e).reduce(((t,a)=>(t[a]=!(!e[a]||!n[a]),t)),{})}))}),[X]),Object(i.useEffect)((()=>{b(!PS(null===X||void 0===X?void 0:X.password))}),[null===X||void 0===X?void 0:X.password]),Object(i.useEffect)((()=>{x(!RS(null===X||void 0===X?void 0:X.email))}),[null===X||void 0===X?void 0:X.email]),Object(i.useEffect)((()=>{j(!TS(pe,null===X||void 0===X?void 0:X.cuit))}),[null===X||void 0===X?void 0:X.cuit,pe]),Object(i.useEffect)((()=>{z&&d(!0)}),[z]),Object(i.useEffect)((()=>{var e;(_||u)&&H({limit:D,status:null===(e=B.statusFilter)||void 0===e?void 0:e.code,loggedCompanyView:Boolean(null===re||void 0===re?void 0:re.parent_id)?1:0,page:1})}),[_]),Object(i.useEffect)((()=>{Y&&(V(),Ce())}),[Y]);const ve=async e=>{try{return await F(e)}catch(t){return Oe(),d(!0),null}},je=e=>{const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{bussinesName:!e.bussinesName,taxCategory:!e.taxCategory,cuit:!e.cuit,email:!e.email,password:!e.password,stateId:!e.stateId,cityId:!e.cityId,address:!e.address}}(e);return l(t),Object.values(t).some(Boolean)};const Ae=async()=>{try{await R(null===S||void 0===S?void 0:S.userId),window.open("/v3/dashboard","_self")}catch(e){return e}},Ce=()=>{var e;(w(!1),B.inactivateSuccess)&&(H({limit:D,status:null===(e=B.statusFilter)||void 0===e?void 0:e.code,loggedCompanyView:Boolean(null===re||void 0===re?void 0:re.parent_id)?1:0,page:1}),N())},ye=()=>{o(!1),d(!1),$(),l({bussinesName:!1,taxCategory:!1,cuit:!1,personality:!1,email:!1,password:!1,stateId:!1,cityId:!1,address:!1}),j(!1),x(!1),b(!1)},Oe=()=>{null!==k&&void 0!==k&&k.current&&setTimeout((()=>{var e;null===k||void 0===k||null===(e=k.current)||void 0===e||e.scrollTo({top:0,behavior:"smooth"})}),500)},Se={mainUser:se,firstCompanyList:T,currentCompany:null===re||void 0===re?void 0:re.userId,additionalCompany:B,additionalCompanyListLimit:D,country:pe,handleChangeCompanyClick:e=>{let{userId:t,name:a}=e;E({userId:t,name:a}),C(!0)},handleDeleteCompanyClick:e=>{let{userId:t,name:a}=e;E({userId:t,name:a}),w(!0)},handleChangeFilterStatus:W,getAdditionalCompanyList:H},Ee={isCompanyReady:n,showLimitedButton:!0,buttonText:Ti.a.t("account.newCompany"),buttonType:"primary",mainUser:se,mainUserInAdditionalAccount:ce,showIcon:!0,iconType:"plus",viewBox:"0 0 18 18",iconStyle:{paddingTop:6,paddingLeft:5},handleNewCompanyLimitationCheck:()=>{var e;const a=0!==(null===t||void 0===t||null===(e=t.cuits)||void 0===e?void 0:e.available),i=[Za.a.basic.id,Za.a.standard.id,Za.a.pro.id,Za.a.full.id,Za.a.contable.id].includes(de);i&&!1===(null===K||void 0===K?void 0:K.hasAddin)||!i&&!a&&!1===(null===K||void 0===K?void 0:K.hasAddin)?O(!0):o(!0)},setNewCompanyModalOpen:o},Ie={userCountry:pe,isOpen:a,handleClose:()=>ye(),secondaryButtonClick:()=>ye(),primaryButtonClick:()=>(async e=>{const t=!je(e)&&!g&&!h&&!f;if(t||Oe(),t){const t={bussinesName:e.bussinesName,cuit:parseInt(e.cuit),taxCategory:e.taxCategory.value,personality:e.personality.value,stateId:e.stateId.id,cityId:e.cityId.id,address:e.address,floor:e.floor,email:e.email,password:e.password};Oe(),await ve({...t})&&(ye(),m(!0))}}
76)(X),secondaryButtonText:Ti.a.t("cancel"),primaryButtonText:Ti.a.t("account.createCompany"),titleChange:!0,titleModal:Ti.a.t("account.newCompany"),primaryHeader:!0,hasChildrenArray:!0,headerStyle:{fontSize:"22px",fontWeight:600,fontFamily:"Work Sans, sans-serif"},childrenArrayTitles:[Ti.a.t("account.taxData"),Ti.a.t("account.fiscalAddress")],primaryButtonLoading:q,setNewCompanyModalOpen:o,taxCategoryOptions:me,legalIdentityOptions:ge,company:X,emptyFieldErrors:s,setEmptyFieldErrors:l,handleFieldValue:Q,handleSelectedOption:J,handleOrganismSearchClick:fe,provinces:ee,cities:te,loadingProvinces:ae,loadingCities:ie,loadingAfipData:be,documentRequirementsError:f,mailRequirementsError:h,passwordRequirementsError:g,handleRequirementsCheck:(e,t)=>{const{documentError:a,mailError:i,passwordError:o}=((e,t,a)=>{switch(e){case"cuit":return{documentError:!TS(a,t)};case"email":return{mailError:!RS(t)};case"password":return{passwordError:!PS(t)};default:return{}}})(e,t,pe);"cuit"===e&&j(!!a),"email"===e&&x(!!i),"password"===e&&b(!!o)},showAlert:c,errorMessage:z||he||xe,handleCloseAlert:()=>d(!1),containerRef:k},we={handleAccept:()=>Ae(),handleClose:()=>C(!1),isOpen:A,indexNameCompany:`${null===S||void 0===S?void 0:S.name} - #${null===S||void 0===S?void 0:S.userId}`},Te={...S,handleCloseModal:Ce,putInactivateCompany:M,resetInactivateStates:V,openModal:I,additionalCompany:B};return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(TO,{...Ee,children:[G||P?Object(p.jsx)("div",{style:{minHeight:400,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsx)(Od.a,{})}):Object(p.jsxs)("div",{style:{width:"100%"},children:[u&&Object(p.jsx)(v.a,{item:!0,xs:12,style:{marginTop:10,paddingLeft:20,paddingRight:20}
76,children:Object(p.jsx)($r,{icon:!0,iconName:"check",viewBox:"0 0 22 22",type:"alertSuccess",onClick:()=>m(!1),children:NS.USER_NEW_COMPANY_CREATED})}),c&&Object(p.jsx)(v.a,{item:!0,xs:12,style:{marginTop:10,paddingLeft:20,paddingRight:20},children:Object(p.jsx)(_g,{errors:z,onCloseAlert:()=>d(!1)})}),Object(p.jsx)(DO,{...Se})]}),Object(p.jsx)(Vo,{...we}),Object(p.jsx)(JO,{...Te}),Object(p.jsx)(UO,{...Ie}),Object(p.jsx)(xi,{isOpen:y,limitationKey:LS,userPlan:ue,primaryButtonClick:()=>{window.open("/modulos/seguridad/elegir-plan.aspx","_self")},secondaryButtonClick:()=>O(!1)})]})})}),LS,!1);const BS="SET_LOADING",DS="SET_DATA",FS="SET_SUCCESS",MS="SET_ERROR",VS="SET_BUTTON_LOADING",WS="RESET_ALERTS",HS="SET_VALIDATION_ERROR",US="TOGGLE_STATUS",_S="TOGGLE_PRODUCT",zS="TOGGLE_SERVICE",qS={status:0,products:0,services:0,loading:!0,buttonLoading:!1,alertSuccess:!1,alertError:{state:!1,text:""},apiResponse:{}},GS={INCOMPLETE_ERROR:Ti.a.t("account.chooseOneReport"),SAVING_ERROR:Ti.a.t("account.errorSavingChanges")},YS=(e,t)=>{var a,i,o;switch(t.type){case BS:return{...e,loading:t.payload};case DS:return{...e,status:null!==(a=t.payload.status)&&void 0!==a?a:0,products:null!==(i=t.payload.products)&&void 0!==i?i:0,services:null!==(o=t.payload.services)&&void 0!==o?o:0,apiResponse:t.payload,loading:!1};case FS:return{...e,alertSuccess:!0,alertError:{state:!1,text:""}};case MS:return{...e,alertError:{state:!0,text:t.payload},alertSuccess:!1};case VS:return{...e,buttonLoading:t.payload};case WS:return{...e,alertSuccess:!1,alertError:{state:!1,text:""}};case HS:return{...e,alertError:{state:!0,text:GS.INCOMPLETE_ERROR},alertSuccess:!1};case US:return{...e,status:t.payload,...0===t.payload?{products:0,services:0}:{}};case _S:return{...e,products:!e.products};case zS:return{...e,services:!e.services};default:return e}};var KS=()=>{const[e,t]=Object(i.useReducer)(YS,qS);return{report:e,fetchReports:async()=>{t({type:BS,payload:!0});try{const e=await Ya.reports.getReports();t({type:DS,payload:e})}catch(e){t({type:MS,payload:e.message||"Error al obtener configuraci\xf3n."})}},saveReports:async(e,a)=>{t({type:VS,payload:!0});try{await Ya.reports.postReports(e,a),t({type:FS})}catch(i){t({type:MS,payload:GS.SAVING_ERROR})}t({type:VS,payload:!1})},resetAlerts:()=>t({type:WS}),throwIncompleteError:()=>t({type:HS}),toggleStatus:e=>t({type:US,payload:e}),toggleProduct:()=>t({type:_S}),toggleService:()=>t({type:zS})}};const XS=Object(u.a)((e=>({container:{padding:"15px 30px",fontFamily:"Work Sans, sans-serif",fontSize:14},titleContainer:{fontFamily:"Work Sans, sans-serif",fontSize:14,marginBottom:5},secondaryTitleContainer:{fontFamily:"Work Sans, sans-serif",fontSize:15,marginTop:10,fontWeight:500,marginBottom:10},legend:{fontFamily:"Work Sans, sans-serif",fontSize:12,marginBottom:15},checkboxContainer:{display:"flex",alignItems:"center",marginTop:10,fontFamily:"Work Sans, sans-serif",fontSize:14},checkbox:{display:"flex",alignItems:"center",fontSize:14,height:35,width:60},disabled:{color:ui.a.disabled,cursor:"default"},clickable:{cursor:"pointer"}})));var ZS=()=>{const e=XS(),t={name:"product",value:"1"},a={name:"service",value:"2"};Object(i.useEffect)((()=>{n()}),[]);const{report:o,fetchReports:n,saveReports:r,resetAlerts:s,toggleProduct:l,toggleService:c}=KS(),{products:d,services:u,loading:m,buttonLoading:g,alertSuccess:b,alertError:h,apiResponse:x}=o,f=e=>{e===t.name&&l(),e===a.name&&c()},j=()=>{s()},A={showButton:!0,loading:g,buttonText:Ti.a.t("account.saveChanges"),handleButtonClick:()=>{r(d,u)}};return Object(p.jsx)(TO,{...A,children:m||!x?Object(p.jsx)("div",{style:{minHeight:200,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsx)(Od.a,{})}):Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.container,children:[!0===h.state&&Object(p.jsx)($r,{icon:!0,iconName:"
76circleCheck",type:"alertError4",onClick:()=>j(),style:{marginBottom:20},children:h.text}),b&&Object(p.jsx)($r,{icon:!0,iconName:"check",viewBox:"0 0 20 20",type:"alertSuccess",onClick:()=>j(),style:{marginBottom:20},children:Ti.a.t("account.dataSuccessfullyUpdated")}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.titleContainer,children:Object(p.jsx)(v.a,{item:!0,children:Ti.a.t("account.notificationsInfoText")})}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.secondaryTitleContainer,children:Object(p.jsx)(v.a,{item:!0,children:Ti.a.t("account.reportTypeTitle")})}),Object(p.jsxs)(v.a,{container:!0,item:!0,className:e.checkboxContainer,children:[Object(p.jsx)("div",{className:e.checkbox,children:Object(p.jsx)(fr,{onChange:()=>f(t.name),checked:d})}),Object(p.jsx)("div",{onClick:()=>f(t.name),className:e.clickable,children:Ti.a.t("account.products")}),Object(p.jsx)(v.a,{container:!0,item:!0,className:e.legend,children:Object(p.jsx)(v.a,{item:!0,children:Ti.a.t("account.productsLegend")})})]})]})})};const QS="SET_AUTOMATIC_INVOICE_CONFIG_SUCCESS",JS="SET_AUTOMATIC_INVOICE_CONFIG_LOADING",$S="SET_AUTOMATIC_INVOICE_CONFIG_ERROR",eE="SET_SAVE_AUTOMATIC_INVOICE_CONFIG_SUCCESS",tE="SET_SAVE_AUTOMATIC_INVOICE_CONFIG_LOADING",aE="SET_SAVE_AUTOMATIC_INVOICE_CONFIG_ERROR",iE={automaticInvoiceConfig:null,saveAutomaticInvoiceConfigSuccess:!1,saveAutomaticInvoiceConfigError:null,saveAutomaticInvoiceConfigLoading:!1,loading:!1,error:null},oE=(e,t)=>{switch(t.type){case JS:return{...e,loading:!0,error:null};case QS:return{...e,automaticInvoiceConfig:t.payload,loading:!1,error:null};case $S:return{...e,loading:!1,error:t.payload};case eE:return{...e,saveAutomaticInvoiceConfigSuccess:!0,saveAutomaticInvoiceConfigError:null,saveAutomaticInvoiceConfigLoading:!1};case aE:return{...e,saveAutomaticInvoiceConfigSuccess:!1,saveAutomaticInvoiceConfigError:t.error,saveAutomaticInvoiceConfigLoading:!1};case tE:return{...e,saveAutomaticInvoiceConfigLoading:!0,saveAutomaticInvoiceConfigError:null};default:return e}};var nE=()=>{const[e,t]=Object(i.useReducer)(oE,iE);return{automaticInvoiceConfig:e.automaticInvoiceConfig,loading:e.loading,error:e.error,getAutomaticInvoiceConfig:async()=>{t({type:JS});try{const e=await Ya.automaticInvoice.getAutomaticInvoiceConfig();t({type:QS,payload:e})}catch(e){t({type:$S,payload:e})}},saveAutomaticInvoiceConfig:async function(e){t({type:tE});try{const a=await Ya.automaticInvoice.postAutomaticInvoiceConfig(e);return t({type:eE}),a}catch(o){var a,i;throw t({type:aE,error:(null===(a=o.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.Message)||"Error al guardar la configuraci\xf3n"}),o}},saveAutomaticInvoiceConfigSuccess:e.saveAutomaticInvoiceConfigSuccess,saveAutomaticInvoiceConfigError:e.saveAutomaticInvoiceConfigError,saveAutomaticInvoiceConfigLoading:e.saveAutomaticInvoiceConfigLoading}};const rE=[{name:"Activo",value:"A"},{name:"Pausado",value:"P"}],sE=[{name:"30 minutos",value:""},{name:"1 d\xeda",value:"1"},{name:"2 d\xedas",value:"2"},{name:"3 d\xedas",value:"3"},{name:"4 d\xedas",value:"4"},{name:"5 d\xedas",value:"5"}],lE=Object(u.a)((e=>({container:{padding:"15px 30px",fontFamily:"Work Sans, sans-serif",fontSize:14},titleContainer:{fontFamily:"Work Sans, sans-serif",fontSize:15,marginBottom:15,marginTop:5},secondaryTitleContainer:{fontFamily:"Work Sans, sans-serif",fontSize:15,marginTop:10,fontWeight:500,marginBottom:10},legend:{fontFamily:"Work Sans, sans-serif",fontSize:12,marginBottom:15},checkboxContainer:{display:"flex",alignItems:"center",marginTop:10,fontFamily:"Work Sans, sans-serif",fontSize:14},checkbox:{display:"flex",alignItems:"center",fontSize:14,height:35,width:60},disabled:{color:ui.a.disabled,cursor:"default"},clickable:{cursor:"pointer"},integrationItem:{cursor:"pointer",display:"flex",alignItems:"center",marginBottom:10},integrationName:{fontFamily:"Work Sans, sans-serif",fontSize:14,marginBottom:0,marginLeft:10,cursor:"pointer"},integrationCheckbox:{marginRight:10},datePickerContainer:{width:"100%"},toDateContainer:{display:"flex",alignItems:"center",marginBottom:10},toDateLabel:{fontFamily:"Work Sans, sans-serif",fontSize:13,width:"100%",marginBottom:5},toDateDescription:{fontFamily:"Work Sans, sans-serif",fontSize:14,width:"100%",marginTop:-8,lineHeight:"1.6",marginBottom:15,color:ui.a.textSecondary},toDateArterisk:{color:ui.a.error400},errorMessage:{fontFamily:"Work Sans, sans-serif",fontSize:12,color:ui.a.error400||"#f32465",marginTop:5,marginBottom:10},toDateTable:{width:"100%",marginBottom:15},toDateTableHead:{borderBottom:`1px solid ${ui.a.grey200}`},toDateTableRow:{borderBottom:`1px solid ${ui.a.grey200}`},stateDescription:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:ui.a.textSecondary,marginTop:0,marginBottom:15,width:"100%"}})));var cE=()=>{var e,t,a,o,n,r,s,l,c,d;const u=lE(),[m,g]=Object(i.useState)({state:!1,text:""}),[b,h]=Object(i.useState)(!1),[x,f]=Object(i.useState)(null),[j,A]=Object(i.useState)(!1),[C,y]=Object(i.useState)(!1),O
76=Yi(),S=null===O||void 0===O||null===(e=O.props)||void 0===e||null===(t=e.value)||void 0===t||null===(a=t.dataUser)||void 0===a?void 0:a.hasEInvoice;Object(i.useEffect)((()=>{void 0===S||null===S||S||(window.location.href="/v3/account")}),[S]);const[E,I]=Object(i.useState)({FAEstadoFacturacion:"N",FAFechaInicio:null,FAFechaUltimaOV:null,FADiasHastaOV:"",FAIntegraciones:[]}),{automaticInvoiceConfig:w,loading:T,getAutomaticInvoiceConfig:P,saveAutomaticInvoiceConfig:R,saveAutomaticInvoiceConfigSuccess:N,saveAutomaticInvoiceConfigLoading:L}=nE(),[k,B]=Object(i.useState)({state:!1,startDate:!1,toDate:!1,toDateDateRangeError:!1,integrations:!1});Object(i.useEffect)((()=>{P()}),[]),Object(i.useEffect)((()=>{N&&h(!0)}),[N]),Object(i.useEffect)((()=>{if(w){const e=e=>{if(!e)return null;const[t,a,i]=e.split("-").map(Number);return new Date(t,a-1,i)},t={FAEstadoFacturacion:w.FAEstadoFacturacion||"N",FAFechaInicio:e(w.FAFechaInicio),FAFechaUltimaOV:w.FAFechaUltimaOV||null,FADiasHastaOV:void 0!==w.FADiasHastaOV&&null!==w.FADiasHastaOV?w.FADiasHastaOV:"",FAIntegraciones:(w.FAIntegraciones||[]).map((e=>({IDIntegracion:e.IDIntegracion,Nombre:e.Nombre,Tipo:e.Tipo,Email:e.Email,FAIntegracionActivo:e.FAIntegracionActivo||"0"})))};I(t),f(t.FAFechaInicio)}}),[w]);const D=()=>{const e=new Date;return e.setDate(e.getDate()-60),e},F=()=>new Date,M=e=>{if(!e)return!0;const t=D(),a=F();return e>=t&&e<=a},V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E.FADiasHastaOV;if(!e||""===e||null===e||void 0===e)return null;const t=parseInt(e,10);if(isNaN(t))return null;const a=new Date;return a.setDate(a.getDate()-t),a},W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.FADiasHastaOV;if(!e)return!0;const a=V(t);if(!a)return!0;const i=new Date(e.getFullYear(),e.getMonth(),e.getDate()),o=new Date(a.getFullYear(),a.getMonth(),a.getDate());return i<=o},H=()=>{return e=x,t=E.FAFechaInicio,!(e&&t?e.getTime()===t.getTime():e===t);var e,t},U=()=>{var e;const t=null!==E.FADiasHastaOV&&void 0!==E.FADiasHastaOV&&(""===E.FADiasHastaOV||["1","2","3","4","5"].includes(String(E.FADiasHastaOV))),a={state:!E.FAEstadoFacturacion||"N"===E.FAEstadoFacturacion,startDate:!E.FAFechaInicio,toDate:!t,toDateDateRangeError:!1,integrations:!(null!==(e=E.FAIntegraciones)&&void 0!==e&&e.some((e=>1===(null===e||void 0===e?void 0:e.FAIntegracionActivo)||!0===(null===e||void 0===e?void 0:e.FAIntegracionActivo))))};return H()&&E.FAFechaInicio&&!M(E.FAFechaInicio)&&(a.startDate=!0),E.FAFechaInicio&&!W(E.FAFechaInicio)&&(a.toDateDateRangeError=!0),B(a),h(!1),!Object.values(a).some((e=>!0===e))};Object(i.useEffect)((()=>{m.state&&setTimeout((()=>{window.scrollTo({top:0,behavior:"smooth"})}),100)}),[m.state]);const _=e=>{if(!e)return"";let t=e;if("string"===typeof e)if(e.includes("-")){const[a,i,o]=e.split("-").map(Number);t=new Date(a,i-1,o)}else t=new Date(e);if(!(t instanceof Date)||isNaN(t.getTime()))return"";return`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`},z={containerStyleBox:{overflow:"unset"},showButton:!0,buttonDisabled:(null===E||void 0===E||null===(o=E.FAIntegraciones)||void 0===o?void 0:o.length)<=0,loading:L,buttonText:Ti.a.t("account.saveChanges"),handleButtonClick:()=>{var e;if(!(null===(e=E.FAIntegraciones)||void 0===e?void 0:e.some((e=>1===(null===e||void 0===e?void 0:e.FAIntegracionActivo)||!0===(null===e||void 0===e?void 0:e.FAIntegracionActivo)))))return g({state:!0,text:Ti.a.t("account.automaticBilling.integrationsRequired")}),void U();U()&&(A(!0),y(!1))}};return Object(p.jsxs)(TO,{...z,children:[T?Object(p.jsx)("div",{style:{minHeight:200,width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(p.jsx)(Od.a,{})}):Object(p.jsxs)(v.a,{container:!0,item:!0,className:u.container,children:[!0===m.state&&Object(p.jsx)($r,{icon:!0,iconName:"
76circleCheck",type:"alertError4",onClick:()=>{g({state:!1,text:""})},style:{marginBottom:20},children:m.text}),b&&Object(p.jsx)($r,{icon:!0,iconName:"check",viewBox:"0 0 20 20",type:"alertSuccess",onClick:()=>{h(!1)},style:{marginBottom:20},children:Ti.a.t("account.dataSuccessfullyUpdated")}),(null===E||void 0===E?void 0:E.FAFechaUltimaOV)&&null!==(null===E||void 0===E?void 0:E.FAFechaUltimaOV)&&void 0!==(null===E||void 0===E?void 0:E.FAFechaUltimaOV)&&""!==(null===E||void 0===E?void 0:E.FAFechaUltimaOV)&&Object(p.jsx)("p",{className:u.stateDescription,children:Ti.a.t("account.automaticBilling.stateDescription",{fecha:_(null===E||void 0===E?void 0:E.FAFechaUltimaOV)})}),Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,md:8,children:Object(p.jsx)(Pr,{label:Ti.a.t("account.automaticBilling.state"),type:k.state?"searchSelectError":"searchSelectPrimary",data:rE,required:!0,placeholder:E.FAEstadoFacturacion?"":Ti.a.t("selectOption"),value:rE.find((e=>e.value===E.FAEstadoFacturacion))||null,onChange:(e,t)=>{I((e=>({...e,FAEstadoFacturacion:(null===t||void 0===t?void 0:t.value)||null}))),k.state&&B((e=>({...e,state:!1})))},disabled:(null===(n=E.FAIntegraciones)||void 0===n?void 0:n.length)<=0||L,showError:k.state,errorMsg:Ti.a.t("account.automaticBilling.stateRequired")||"El estado es requerido"})}),Object(p.jsx)("div",{style:{height:10,width:"100%"}}),Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,md:8,children:[Object(p.jsx)("h4",{className:u.titleContainer,children:Ti.a.t("account.automaticBilling.fromDateFieldTitle")}),Object(p.jsx)("p",{className:u.toDateDescription,children:Ti.a.t("account.automaticBilling.fromDateFieldDescription")}),Object(p.jsx)(Bm,{onDateChange:e=>{if(!e)return I((e=>({...e,FAFechaInicio:null}))),void B((e=>({...e,startDate:!0,toDateDateRangeError:!1})));I((t=>({...t,FAFechaInicio:e})));const t=M(e),a=W(e);B((e=>{const i={...e};return i.startDate=!t,i.toDateDateRangeError=!a,i})),m.state&&m.text.includes("60 d\xedas")&&g({state:!1,text:""})},containerStyle:u.datePickerContainer,defaultValue:E.FAFechaInicio||null,clearIcon:!0,showIconTooltip:!0,required:!0,iconType:"helpIcon",textTooltip:Ti.a.t("account.automaticBilling.startDateTooltip"),minDate:null===E.FAFechaInicio?D():null,maxDate:F(),showError:k.startDate,errorMsg:E.FAFechaInicio&&H()&&!M(E.FAFechaInicio)?Ti.a.t("account.automaticBilling.dateOutOfRange")||"La fecha debe estar dentro de los \xfaltimos 60 d\xedas":Ti.a.t("account.automaticBilling.startDateRequired")||"Debe seleccionar una fecha de inicio",disabled:(null===(r=E.FAIntegraciones)||void 0===r?void 0:r.length)<=0||L,showMsg:!0,textMsg:Ti.a.t("account.automaticBilling.dateRangeLegend"),children:Ti.a.t("account.automaticBilling.startDate")})]}),Object(p.jsx)("div",{style:{height:15,width:"100%"}}),Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,className:u.toDateContainer,children:[Object(p.jsx)("h4",{className:u.titleContainer,children:Ti.a.t("account.automaticBilling.toDateTitle")}),Object(p.jsx)("p",{className:u.toDateDescription,children:Ti.a.t("account.automaticBilling.toDateDescription")}),Object(p.jsxs)(v.a,{container:!0,item:!0,xs:12,md:8,children:[Object(p.jsx)(Pr,{disabled:(null===(s=E.FAIntegraciones)||void 0===s?void 0:s.length)<=0||L,type:k.toDate||k.toDateDateRangeError?"searchSelectError":"searchSelectPrimary",data:sE,required:!0,value:sE.find((e=>{const t=E.FADiasHastaOV;return""===t||null===t||void 0===t?""===e.value:e.value===t}))||sE.find((e=>""===e.value))||null,onChange:(e,t)=>
76{var a;const i=null!==(a=null===t||void 0===t?void 0:t.value)&&void 0!==a?a:"";I((e=>{const t={...e,FADiasHastaOV:i};if(e.FAFechaInicio){const t=""===i||null===i||void 0===i?null:parseInt(i,10);if(t&&!isNaN(t)){const a=new Date;a.setDate(a.getDate()-t);const i=new Date(e.FAFechaInicio.getFullYear(),e.FAFechaInicio.getMonth(),e.FAFechaInicio.getDate()),o=new Date(a.getFullYear(),a.getMonth(),a.getDate());B(i>o?e=>({...e,toDateDateRangeError:!0}):e=>({...e,toDateDateRangeError:!1}))}else B((e=>({...e,toDateDateRangeError:!1})))}return t})),k.toDate&&B((e=>({...e,toDate:!1})))},showIconTooltip:!0,iconType:"helpIcon",textTooltip:Ti.a.t("account.automaticBilling.toDateTooltip"),disabledMinHeight:!0,showError:k.toDate,errorMsg:Ti.a.t("account.automaticBilling.toDateRequired")}),k.toDateDateRangeError&&Object(p.jsx)(cn.a,{className:u.errorMessage,children:(()=>{const e=V();E.FADiasHastaOV;return Ti.a.t("account.automaticBilling.startDateExceedsFADiasHastaOV",{fechaAntiguedad:e?_(e):""})})()})]})]}),Object(p.jsx)("div",{style:{height:10,width:"100%"}}),Object(p.jsxs)(v.a,{item:!0,xs:12,className:u.items,children:[Object(p.jsx)("h4",{className:u.titleContainer,children:Ti.a.t("account.automaticBilling.integrations")}),null===E||void 0===E||null===(l=E.FAIntegraciones)||void 0===l?void 0:l.map((e=>{var t;if(!e)return null;const a=null!==(t=e.FAIntegracionActivo)&&void 0!==t&&t;return Object(p.jsxs)(v.a,{onClick:()=>(I((t=>{const i=t.FAIntegraciones.map((t=>t.IDIntegracion===e.IDIntegracion?{...t,FAIntegracionActivo:1===a?0:1}:t));return i.some((e=>1===e.FAIntegracionActivo||!0===e.FAIntegracionActivo))&&m.state&&m.text===Ti.a.t("account.automaticBilling.integrationsRequired")&&g({state:!1,text:""}),{...t,FAIntegraciones:i}})),void(k.integrations&&B((e=>({...e,integrations:!1}))))),item:!0,xs:12,className:u.integrationItem,children:[Object(p.jsx)(Tm.a,{checked:1===a,sx:{"&.Mui-checked":{color:"#00A692"},padding:0}}),Object(p.jsx)("p",{className:u.integrationName,children:[e.Tipo,null!=e.IDIntegracion&&""!==e.IDIntegracion?"#"+e.IDIntegracion:null,e.Email,e.Nombre].filter((e=>null!=e&&""!==e)).join(" - ")})]},e.IDIntegracion)}))]}),(null===E||void 0===E||null===(c=E.FAIntegraciones)||void 0===c?void 0:c.length)<=0&&Object(p.jsx)(Fc,{title:Ti.a.t("account.automaticBilling.noIntegrationsFound"),text:Ti.a.t("account.automaticBilling.noIntegrationsFoundDescription"),img:On,containerStyle:{marginTop:30,marginBottom:30},textButton:Ti.a.t("account.automaticBilling.connectIntegration"),handleClick:()=>window.open("/modulos/ventas/integraciones.aspx","_self")})]}),Object(p.jsx)(Kc,{open:j,title:Ti.a.t("account.automaticBilling.confirmModalTitle"),img:Zc,showBtn:2,closeButtonType:"secondary",closeButtonText:Ti.a.t("cancel"),closeButtonIcon:"arrowLeft",buttonText:Ti.a.t("account.saveChanges"),nextButtonType:"primary",nextButtonIcon:"check",disabled:!C,isLoadingButton:L,handleClose:()=>{A(!1),y(!1)},handleAcceptClick:async()=>{if(C)try{const e={FAEstadoFacturacion:E.FAEstadoFacturacion,FAFechaInicio:E.FAFechaInicio?E.FAFechaInicio.toISOString().split("T")[0]:null,FAFechaUltimaOV:E.FAFechaUltimaOV||"",FADiasHastaOV:""===E.FADiasHastaOV||null===E.FADiasHastaOV||void 0===E.FADiasHastaOV?"":E.FADiasHastaOV,FAIntegraciones:E.FAIntegraciones.map((e=>({IDIntegracion:e.IDIntegracion,Nombre:e.Nombre,Tipo:e.Tipo,FAIntegracionActivo:e.FAIntegracionActivo?1:0})))};await R(e),A(!1),y(!1),h(!0),setTimeout((()=>{window.scrollTo({top:0,behavior:"smooth"})}),100),g({state:!1,text:""})}catch(e){A(!1),g({state:!0,text:Ti.a.t("account.automaticBilling.saveError")||"Error al guardar la configuraci\xf3n"})}},nextButtonIconStyle:{width:19,height:15,marginRight:5},buttonIconStyle:{width:19,height:15,marginRight:5},modalContainerStyle:{maxWidth:600,width:"95%",height:"auto",paddingBottom:20},children:Object(p.jsxs)(v.a,{container:!0,style:{padding:"0px 20px 0px 20px"},children:[Object(p.jsxs)(v.a,{container:!0,item:!0,style:{textAlign:"left",marginBottom:15},children:[Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:"#131313",marginBottom:10},children:Ti.a.t("account.automaticBilling.confirmModalDescription")}),Object(p.jsxs)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:"#131313",marginBottom:5},children:[Object(p.jsxs)("strong",{style:{fontWeight:600},children:[Ti.a.t("account.automaticBilling.fromDateTitle"),":"]})," ",_(E.FAFechaInicio)]}),Object(p.jsx)("div",{style:{height:1,width:"100%",backgroundColor:"#E0E0E0",marginBottom:10}}),Object(p.jsxs)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:"#131313",marginBottom:5},children:[Object(p.jsxs)("strong",{style:{fontWeight:600},children:[Ti.a.t("account.automaticBilling.modalityTitle"),": "]}),null===(d=sE.find((e=>e.value===E.FADiasHastaOV)))||void 0===d?void 0:d.name," de antig\xfcedad"]}),Object(p.jsx)("div",{style:{height:1,width:"100%",backgroundColor:"#E0E0E0",marginBottom:10}}),Object(p.jsxs)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:400,color:"#131313"},children:[Object(p.jsxs)("strong",{style:{fontWeight:600},children:[Ti.a.t("account.automaticBilling.integrationsTitle"),":"]})," ",E.FAIntegraciones.filter((e=>1===e.FAIntegracionActivo||!0===e.FAIntegracionActivo)).map((e=>`${e.Tipo} - ${e.Nombre}
76`)).join(", ")]})]}),Object(p.jsx)(v.a,{container:!0,item:!0,justifyContent:"center",children:Object(p.jsxs)(v.a,{onClick:()=>y(!C),item:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:10,marginBottom:5},children:[Object(p.jsx)(Tm.a,{checked:C,onChange:e=>y(e.target.checked),sx:{"&.Mui-checked":{color:"#00A692"}}}),Object(p.jsx)(cn.a,{style:{fontFamily:"Work Sans, sans-serif",fontSize:"13px",fontWeight:400,color:ui.a.textPrimary,cursor:"pointer"},children:Ti.a.t("account.automaticBilling.confirmModalCheckbox")})]})})]})})]})};const dE="Work Sans, sans-serif",uE="@media (max-width: 600px)",pE={width:"100%",padding:"10px 30px 30px 30px",fontFamily:dE,[uE]:{padding:"10px 15px 20px 15px"}},mE={fontFamily:dE,fontSize:14,color:ui.a.textSecondary,marginBottom:"6px"},gE={fontFamily:dE,fontSize:13,color:ui.a.textSecondary,marginBottom:"20px"},bE={listStyle:"none",padding:0,margin:0,width:"100%"},hE={display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,flexWrap:"wrap",border:`2px solid ${ui.a.grey200}`,borderRadius:"5px",padding:"14px 20px",marginBottom:"12px",[uE]:{flexDirection:"column",alignItems:"flex-start"}},xE={fontFamily:dE,fontSize:16,fontWeight:500,color:ui.a.textPrimary,overflowWrap:"anywhere"},fE={fontFamily:dE,fontSize:13,color:ui.a.textSecondary},vE={fontFamily:dE,fontSize:13,color:ui.a.error400,marginTop:"4px"},jE={display:"flex",alignItems:"center",gap:1,flexWrap:"nowrap",[uE]:{flexWrap:"wrap"}},AE={display:"flex",alignItems:"center"},CE={width:20,height:20,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},yE={display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},OE=e=>({display:"inline-block",width:8,height:8,borderRadius:"50%",flexShrink:0,backgroundColor:e?ui.a.primary300:ui.a.error300}),SE={minHeight:320,width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},EE={display:"inline-flex",alignItems:"center",gap:"4px",color:ui.a.primary400,"&:hover, &:focus, &:active":{color:ui.a.primary400,textDecoration:"none"},fontFamily:dE,fontSize:14,textDecoration:"none"},IE={minHeight:100,maxWidth:450,width:"95%",paddingBottom:20},wE={margin:"0 auto",maxWidth:"100%"},TE={maxWidth:360,marginBottom:"12px",[uE]:{maxWidth:"100%"}},PE={...fE,padding:"8px 0 16px"};var RE=e=>{let{active:t=!1,testId:a}=e;const i=t?Ti.a.t("active"):Ti.a.t("account.productFields.statusInactive");return Object(p.jsx)(y.a,{component:"span",role:"img","aria-label":i,title:i,sx:OE(t),"data-testid":a})};var NE=e=>{let{field:t,statusLoading:a=!1,showActivateBlocked:i=!1,onToggleField:o=(()=>{}),onManageValues:n=(()=>{})}=e;const r=Gl(t.key),s=r?Ti.a.t(r):t.name,l=`account-product-fields-row-${t.key}`;return Object(p.jsxs)(y.a,{component:"li",sx:hE,"data-testid":l,children:[Object(p.jsxs)(y.a,{sx:{flex:1,minWidth:0},children:[Object(p.jsxs)(y.a,{sx:yE,children:[Object(p.jsx)(RE,{active:t.active,testId:`${l}-status-chip`}),Object(p.jsx)(S.a,{sx:xE,"data-testid":`${l}-name-value`,children:s})]}),Object(p.jsx)(S.a,{sx:fE,"data-testid":`${l}-values-count`,children:Ti.a.t("account.productFields.valuesCount",{count:t.values,limit:Bl})}),i&&Object(p.jsx)(S.a,{role:"alert",sx:vE,"data-testid":`${l}-activate-error`,children:Ti.a.t("account.productFields.activateBlocked")})]}),Object(p.jsxs)(y.a,{sx:jE,children:[Object(p.jsx)(y.a,{sx:AE,children:Object(p.jsx)(fr,{checked:t.active,disabled:a,onChange:()=>o(t),testId:`${l}-switch`,ariaLabel:`${Ti.a.t("state")} ${s}`})}),Object(p.jsx)(y.a,{sx:CE,children:a&&Object(p.jsx)(oi.a,{size:20,"data-testid":`${l}-loading`})}),Object(p.jsx)(si,{type:"secondary",onClick:()=>n(t),testId:`${l}-manage-values-button`,children:Ti.a.t("account.productFields.manageValues")})]})]})};var LE=e=>{let{fields:t=[],statusLoadingId:a=null,activateBlockedFieldId:i=null,onToggleField:o=(()=>{}),onManageValues:n=(()=>{})}=e;return Object(p.jsx)(y.a,{component:"ul",sx:bE,"data-testid":"account-product-fields-table",children:t.map((e=>Object(p.jsx)(NE,{field:e,statusLoading:a===e.id,showActivateBlocked:i===e.id,onToggleField:o,onManageValues:n},e.id)))})};var kE=e=>{let{fieldToDeactivate:t=null,loading:a=!1,onCancel:i=(()=>{}),onConfirm:o=(()=>{})}=e;return Object(p.jsx)(Kc,{open:Boolean(t),title:Ti.a.t("account.productFields.deactivateTitle"),img:Zc,showBtn:2,closeButtonType:"secondary",closeButtonText:Ti.a.t("
76cancel"),buttonText:Ti.a.t("account.productFields.deactivate"),nextButtonType:"primary",disabled:a,isLoadingButton:a,handleClose:i,handleAcceptClick:o,modalContainerStyle:IE,testId:"account-product-fields-deactivate-modal",children:Ti.a.t("account.productFields.deactivateText")})};const BE="SET_FIELDS_LOADING",DE="SET_FIELDS_SUCCESS",FE="SET_FIELDS_ERROR",ME="SET_FIELD_STATUS_LOADING",VE="SET_FIELD_STATUS_SUCCESS",WE="SET_FIELD_STATUS_ERROR",HE="REPLACE_FIELD",UE="CLEAR_STATUS_ERROR",_E={fields:[],fieldsLoading:!1,fieldsError:!1,statusLoadingId:null,statusErrorCode:null},zE=(e,t)=>e.map((e=>e.id===t.id?{...e,...t}:e)),qE=(e,t)=>{switch(t.type){case BE:return{...e,fieldsLoading:!0,fieldsError:!1};case DE:return{...e,fields:t.payload,fieldsLoading:!1,fieldsError:!1};case FE:return{...e,fieldsLoading:!1,fieldsError:!0};case ME:return{...e,statusLoadingId:t.payload,statusErrorCode:null};case VE:return{...e,statusLoadingId:null,fields:zE(e.fields,t.payload)};case WE:return{...e,statusLoadingId:null,statusErrorCode:t.payload};case HE:return{...e,fields:zE(e.fields,t.payload)};case UE:return{...e,statusErrorCode:null};default:return e}};var GE=()=>{const[e,t]=Object(i.useReducer)(qE,_E),a=Object(i.useRef)(0),o=Object(i.useRef)(!0);Object(i.useEffect)((()=>()=>{o.current=!1,a.current+=1}),[]);return{...e,fetchFields:Object(i.useCallback)((async()=>{const e=++a.current;t({type:BE});try{const i=await Ya.productFields.getProductFields();if(!o.current||e!==a.current)return;t({type:DE,payload:Yl(i)})}catch(i){if(!o.current||e!==a.current)return;t({type:FE})}}),[]),updateFieldStatus:async e=>{let{fieldId:a,active:i}=e;t({type:ME,payload:a});try{const e=await Ya.productFields.updateProductFieldStatus({fieldId:a,active:i});return o.current?(t({type:VE,payload:e}),{ok:!0,code:null}):{ok:!0,code:null}}catch(n){const e=ec(n);return o.current?(t({type:WE,payload:e}),{ok:!1,code:e}):{ok:!1,code:e}}},replaceFieldState:e=>{e&&t({type:HE,payload:e})},clearStatusError:()=>t({type:UE})}};var YE=Ei((()=>{const e=Object(l.g)(),{fields:t,fieldsLoading:a,fieldsError:o,statusLoadingId:n,statusErrorCode:r,fetchFields:s,updateFieldStatus:c,clearStatusError:d}=GE(),[u,m]=Object(i.useState)(null),[g,b]=Object(i.useState)(null);Object(i.useEffect)((()=>{s(),sO.productFieldsEnter()}),[s]);const h=e=>{b(null),e.active?m(e):(e=>Number(null===e||void 0===e?void 0:e.activeValues)>0)(e)?(async e=>{(await c({fieldId:e.id,active:!0})).ok&&sO.productFieldStatus({field:e.name,active:!0})})(e):b(e.id)},x=t=>{sO.productFieldValuesOpen({field:t.name}),e.push(`/v3/account/productFields/${t.id}`)};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(TO,{testId:"account-product-fields",children:Object(p.jsxs)(y.a,{sx:pE,"data-testid":"account-product-fields-screen",children:[Object(p.jsx)(S.a,{sx:gE,children:Ti.a.t("account.productFields.description")}),r&&Object(p.jsx)(_g,{errors:{error:[{code:r}]},onCloseAlert:d,testId:"account-product-fields-status-alert"}),a?Object(p.jsx)(y.a,{sx:SE,"data-testid":"account-product-fields-loading",children:Object(p.jsx)(oi.a,{})}):o?Object(p.jsxs)(y.a,{sx:{...SE,flexDirection:"column",gap:2},"data-testid":"account-product-fields-error-state",children:[Object(p.jsx)(S.a,{sx:fE,children:Ti.a.t("errorContent2")}),Object(p.jsx)(si,{type:"secondary",onClick:s,testId:"account-product-fields-retry-button",children:Ti.a.t("account.productFields.retry")})]}):0===t.length?Object(p.jsx)(Fc,{img:On,altImg:Ti.a.t("account.productFields.emptyFieldsT
76itle"),title:Ti.a.t("account.productFields.emptyFieldsTitle"),text:Ti.a.t("account.productFields.emptyFieldsText"),testId:"account-product-fields-empty-state",containerStyle:wE,isVertical:!0}):Object(p.jsx)(LE,{fields:t,statusLoadingId:n,activateBlockedFieldId:g,onToggleField:h,onManageValues:x})]})}),Object(p.jsx)(kE,{fieldToDeactivate:u,loading:Boolean(u)&&n===u.id,onCancel:()=>m(null),onConfirm:async()=>{const e=u;if(!e)return;const t=await c({fieldId:e.id,active:!1});m(null),t.ok&&sO.productFieldStatus({field:e.name,active:!1})}})]})}),null,!1);const KE=e=>{switch(e){case Ml:return Ti.a.t("account.productFields.nameRequired");case Vl:return Ti.a.t("account.productFields.nameTooLong",{max:Dl});case Wl:return Ti.a.t("account.productFields.nameDuplicated");default:return""}};var XE=e=>{let{fieldLabel:t="",value:a="",errorCode:i=null,valuesCount:o=0,limitReached:n=!1,loading:r=!1,onChange:s=(()=>{}),onSubmit:l=(()=>{})}=e;const c=n||r,d=t?Ti.a.t("account.productFields.newValuePlaceholder",{field:t.toLocaleLowerCase()}):Ti.a.t("account.productFields.newValuePlaceholderFallback");return Object(p.jsxs)(y.a,{sx:{marginTop:"16px",marginBottom:"20px"},children:[Object(p.jsxs)(y.a,{sx:{display:"flex",gap:2,alignItems:"flex-start",flexWrap:"wrap"},children:[Object(p.jsx)(y.a,{sx:{flex:"1 1 260px",minWidth:0},children:Object(p.jsx)(mr,{types:i?"inputError":"inputPrimary",value:a,onChange:s,onKeyDown:e=>{"Enter"!==e.key||c||(e.preventDefault(),l())},maxLength:String(Dl),placeholder:d,showLabel:!0,showError:Boolean(i),errorMsg:KE(i),disabled:c,testId:"account-product-field-values-name-input"})}),Object(p.jsx)(y.a,{children:Object(p.jsx)(si,{type:"primary",disabled:c,loading:r,onClick:l,testId:"account-product-field-values-add-button",children:Ti.a.t("add")})})]}),n?Object(p.jsx)(S.a,{role:"alert",sx:{...vE,marginTop:i?"8px":0},"data-testid":"account-product-field-values-limit-alert",children:Ti.a.t("account.productFields.limitReached",{limit:Bl})}):Object(p.jsx)(S.a,{sx:{...fE,marginTop:i?"8px":0},"data-testid":"account-product-field-values-count",children:Ti.a.t("account.productFields.valuesCount",{count:o,limit:Bl})})]})};var ZE=e=>{let{value:t="",onChange:a=(()=>{}),onClear:i=(()=>{})}=e;return Object(p.jsx)(y.a,{sx:TE,children:Object(p.jsx)(mr,{types:"inputPrimary",value:t,onChange:a,handleClearBtnClick:i,maxLength:String(Dl),placeholder:Ti.a.t("account.productFields.searchPlaceholder"),disabledMinHeight:!0,clearBtn:!0,testId:"account-product-field-values-search-input",children:Ti.a.t("search")})})};const QE={fontSize:20,color:ui.a.textSecondary};var JE=e=>{let{value:t,saving:a=!1,onToggleStatus:i=(()=>{}),onRename:o=(()=>{}),onDelete:n=(()=>{})}=e;const r=`account-product-field-values-row-${t.id}`,s=Boolean(t.inUse);return Object(p.jsxs)(y.a,{component:"li",sx:hE,"data-testid":r,children:[Object(p.jsx)(y.a,{sx:{flex:1,minWidth:0},children:Object(p.jsxs)(y.a,{sx:yE,children:[Object(p.jsx)(RE,{active:t.active,testId:`${r}-status-chip`}),Object(p.jsx)(S.a,{sx:xE,"data-testid":`${r}-name-value`,children:t.name})]})}),Object(p.jsxs)(y.a,{sx:jE,children:[Object(p.jsx)(y.a,{sx:AE,children:Object(p.jsx)(fr,{checked:t.active,disabled:a,onChange:()=>i(t),testId:`${r}-status-switch`,ariaLabel:`${Ti.a.t("state")} ${t.name}`})}),Object(p.jsx)(Qr.a,{size:"small","aria-label":`${Ti.a.t("edit")} ${t.name}`,disabled:a,onClick:()=>o(t),"data-testid":`${r}-edit-button`,children:Object(p.jsx)(ni.a,{name:"pencil",viewBox:"0 0 24 24",style:QE})}),Object(p.jsx)(cr.a,{title:s?Ti.a.t("account.productFields.deleteBlockedReason"):"",placement:"top",children:Object(p.jsx)("span",{children:Object(p.jsx)(Qr.a,{size:"small","aria-label":`${Ti.a.t("delete")} ${t.name}`,disabled:a||s,onClick:()=>n(t),"data-testid":`${r}-delete-button`,children:Object(p.jsx)(ni.a,{name:"delete",viewBox:"0 0 24 24",style:QE})})})}),Object(p.jsx)(y.a,{sx:CE,children:a&&Object(p.jsx)(oi.a,{size:20,"data-testid":`${r}-loading`})})]})]})};var $E=e=>{let{values:t=[],savingId:a=null,onToggleStatus:i=(()=>{}),onRename:o=(()=>{}),onDelete:n=(()=>{})}=e;return Object(p.jsx)(y.a,{component:"ul",sx:bE,"data-testid":"account-product-field-values-table",children:t.map((e=>Object(p.jsx)(JE,{value:e,saving:a===e.id,onToggleStatus:i,onRename:o,onDelete:n},e.id)))})};const eI={width:"100%","& input":{width:"100%",boxSizing:"border-box"}},tI=e=>{let{value:t=null,saving:a=!1,serverErrorCode:o=null,onClose:n=(()=>{}),onSave:r=(()=>null),onClearServerError:s=(()=>{})}=e;const[l,c]=Object(i.useState)((null===t||void 0===t?void 0:t.name)||""),[d,u]=Object(i.useState)(null),m=async()=>
76{if(a)return;const e=await r(l);e&&u(e)};return Object(p.jsx)(Sm,{isOpen:Boolean(t),title:Ti.a.t("account.productFields.renameTitle"),handleClose:n,secondaryButtonText:Ti.a.t("cancel"),secondaryButtonClick:n,primaryButtonText:Ti.a.t("save"),primaryButtonClick:m,primaryButtonLoading:a,primaryButtonDisabled:a,testId:"account-product-field-values-rename-modal",children:Object(p.jsxs)(y.a,{sx:eI,children:[o&&Object(p.jsx)(_g,{errors:{error:[{code:o}]},onCloseAlert:s,testId:"account-product-field-values-rename-alert"}),Object(p.jsx)(mr,{types:d?"inputError":"inputPrimary",value:l,onChange:e=>{c(e.target.value),d&&u(null)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),m())},maxLength:String(Dl),showError:Boolean(d),errorMsg:KE(d),disabled:a,testId:"account-product-field-values-rename-input",children:Ti.a.t("account.productFields.renameLabel")})]})})};var aI=e=>{var t;let{renameTarget:a=null,deleteTarget:i=null,lastActiveAction:o=null,saving:n=!1,serverErrorCode:r=null,onRenameClose:s=(()=>{}),onRenameSave:l=(()=>null),onClearServerError:c=(()=>{}),onDeleteCancel:d=(()=>{}),onDeleteConfirm:u=(()=>{}),onLastActiveCancel:m=(()=>{}),onLastActiveConfirm:g=(()=>{})}=e;return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(tI,{value:a,saving:n,serverErrorCode:r,onClose:s,onSave:l,onClearServerError:c},null!==(t=null===a||void 0===a?void 0:a.id)&&void 0!==t?t:"closed"),Object(p.jsx)(Kc,{open:Boolean(i),title:Ti.a.t("account.productFields.deleteTitle",{name:(null===i||void 0===i?void 0:i.name)||""}),img:Zc,showBtn:2,closeButtonType:"secondary",closeButtonText:Ti.a.t("cancel"),buttonText:Ti.a.t("delete"),nextButtonType:"primary",disabled:n,isLoadingButton:n,handleClose:d,handleAcceptClick:u,modalContainerStyle:IE,testId:"account-product-field-values-delete-modal",children:Ti.a.t("account.productFields.deleteText")}),Object(p.jsx)(Kc,{open:Boolean(o),title:Ti.a.t("account.productFields.lastActiveTitle"),img:Zc,showBtn:2,closeButtonType:"secondary",closeButtonText:Ti.a.t("cancel"),buttonText:Ti.a.t("account.continue"),nextButtonType:"primary",disabled:n,isLoadingButton:n,handleClose:m,handleAcceptClick:g,modalContainerStyle:IE,testId:"account-product-field-values-last-active-modal",children:Ti.a.t("account.productFields.lastActiveText")})]})};const iI="SET_VALUES_LOADING",oI="SET_VALUES_SUCCESS",nI="SET_VALUES_ERROR",rI="SET_SAVING",sI="SET_SAVE_ERROR",lI="CLEAR_SAVE_ERROR",cI="ADD_VALUE",dI="REPLACE_VALUE",uI="REMOVE_VALUE",pI={values:[],valuesLoading:!1,valuesError:!1,savingId:null,saveErrorCode:null},mI="new",gI=(e,t)=>{switch(t.type){case iI:return{...e,valuesLoading:!0,valuesError:!1};case oI:return{...e,values:Xl(t.payload),valuesLoading:!1,valuesError:!1};case nI:return{...e,valuesLoading:!1,valuesError:!0};case rI:return{...e,savingId:t.payload,saveErrorCode:null};case sI:return{...e,savingId:null,saveErrorCode:t.payload};case lI:return{...e,saveErrorCode:null};case cI:return{...e,savingId:null,values:Xl([...e.values,t.payload])};case dI:return{...e,savingId:null,values:Xl(e.values.map((e=>e.id===t.payload.id?{...e,...t.payload}:e)))};case uI:return{...e,savingId:null,values:e.values.filter((e=>e.id!==t.payload))};default:return e}};var bI=e=>{const[t,a]=Object(i.useReducer)(gI,pI),o=Object(i.useRef)(0),n=Object(i.useRef)(!0);Object(i.useEffect)((()=>()=>{n.current=!1,o.current+=1}),[]);const r=Object(i.useCallback)((async()=>{const t=++o.current;if(!Number.isInteger(e)||e<=0)a({type:nI});else{a({type:iI});try{const i=await Ya.productFields.getProductFieldValues({fieldId:e});if(!n.current||t!==o.current)return;a({type:oI,payload:Array.isArray(i)?i:[]})}catch(i){if(!n.current||t!==o.current)return;a({type:nI})}}}),[e]),s=async e=>{let{savingId:t,request:i,onSuccess:o}=e;a({type:rI,payload:t});try{const e=await i();return n.current?(o(e),{ok:!0,code:null,field:(null===e||void 0===e?void 0:e.field)||null}):{ok:!0,code:null,field:(null===e||void 0===e?void 0:e.field)||null}}catch(r){const e=ec(r);return n.current?(a({type:sI,payload:e}),{ok:!1,code:e,field:null}):{ok:!1,code:e,field:null}}};return{...t,fetchValues:r,createValue:t=>{let{name:i}=t;return s({savingId:mI,request:()=>Ya.productFields.createProductFieldValue({fieldId:e,name:i}),onSuccess:e=>a({type:cI,payload:{...e,inUse:!1}})})},renameValue:t=>{let{valueId:i,name:o}=t;return s({savingId:i,request:()=>Ya.productFields.updateProductFieldValue({fieldId:e,valueId:i,name:o}),onSuccess:e=>a({type:dI,payload:{id:i,name:e.name}})})},setValueStatus:t=>{let{valueId:i,active:o,confirmFieldDisable:n=!1}=t;return s({savingId:i,request:()=>Ya.productFields.updateProductFieldValueStatus({fieldId:e,valueId:i,active:o,confirmFieldDisable:n}),onSuccess:e=>{var t,n;return a({type:dI,payload:{id:i,active:null!==(t=null===e||void 0===e||null===(n=e.value)||void 0===n?void 0:n.active)&&void 0!==t?t:o}})}})},deleteValue:t=>{let{valueId:i,confirmFieldDisable:o=!1}=t;return s({savingId:i,request:()=>Ya.productFields.deleteProductFieldValue({fieldId:e,valueId:i,confirmFieldDisable:o}),onSuccess:()=>a({type:uI,payload:i})})},clearSaveError:()=>a({type:lI})}};const hI="FIELD_WOULD_BE_DISABLED",xI="status",fI="delete",vI=()=>{const{fieldId:e}=Object(l.i)(),t=Number(e),{fields:a,fetchFields:o,replaceFieldState:n}=GE(),{values:r,valuesLoading:c,valuesError:d,savingId:u,saveErrorCode:m,fetchValues:g,createValue:b,renameValue:h,setValueStatus:x,deleteValue:f,clearSaveError:v}=bI(t),[j,A]=Object(i.useState)(""),[C,O]=Object(i.useState)(""),[E,I]=Object(i.useState)(null),[w,T]=Object(i.useState)(null),[P,R]=Object(i.useState)(null),[N,L]=Object(i.useState)(null);Object(i.useEffect)((()=>{o()}),[o]),Object(i.useEffect)((()=>{g()}),[g]);const k=a.find((e=>e.id===t))||null,B=k?Gl(k.key):null,D=k?B?Ti.a.t(B):k.name:"",F=null===k||void 0===k?void 0:k.name,M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>=Bl}(r),V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const a=_l(t);return a?e.filter((e=>_l(e.name).includes(a))):e}(r,C),W=!c&&!d&&r.length>0,H=null!==u&&u!==mI,U=async e=>{let{value:t,active:a,confirmFieldDisable:i}=e;const o=await x({valueId:t.id,active:a,confirmFieldDisable:i});if(o.code===hI)return v(),void L({type:xI,value:t});o.ok&&(n(o.field),sO.productFieldValueStatus({field:F,active:a}))},_=e=>{const t=!e.active;t||!$l(k,e,r)?U({value:e,active:t,confirmFieldDisable:!1}):L({type:xI,value:e})},z=async e=>{let{value:t,confirmFieldDisable:a}=e;const i=await f({valueId:t.id,confirmFieldDisable:a});if(i.code===hI)return v(),void L({type:fI,value:t});i.ok&&(n(i.field),sO.productFieldValueDelete({field:F}))},q=e=>{e.inUse||R(e)},G=e=>{v(),T(e)},Y=Object(p.jsxs)(y.a,{component:s.b,to:"/v3/account/productFields",sx:EE,"data-testid":"account-product-field-values-back-link",children:[Object(p.jsx)(ni.a,{name:"arrowLeft",viewBox:"0 0 24 24",style:{fontSize:20}}),Ti.a.t("account.productFields.backToFields")]});return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(TO,{sectionTitleOverride:D||Ti.a.t("account.productFields.title"),titleAction:Y,testId:"account-product-field-values",children:Object(p.jsxs)(y.a,{sx:pE,"data-testid":"account-product-field-values-screen",children:[Object(p.jsx)(S.a,{sx:mE,children:Ti.a.t("account.productFields.valuesDescription")}),m&&!w&&Object(p.jsx)(_g,{errors:{error:[{code:m}]},onCloseAlert:v,testId:"account-product-field-values-save-alert"}),Object(p.jsx)(XE,{fieldLabel:D,value:j,errorCode:E,valuesCount:r.length,limitReached:M,loading:u===mI,onChange:e=>{A(e.target.value),E&&I(null)},onSubmit:async()=>{const e=Ql(j,r);if(e)return void I(e);(await b({name:ql(j)})).ok&&(A(""),O(""),sO.productFieldValueCreate({field:F}),k&&n({id:k.id,values:k.values+1,activeValues:k.activeValues+1}))}}),W&&Object(p.jsx)(ZE,{value:C,onChange:e=>O(e.target.value),onClear:()=>O("")}),c?Object(p.jsx)(y.a,{sx:SE,"data-testid":"account-product-field-values-loading",children:Object(p.jsx)(oi.a,{})}):d?Object(p.jsxs)(y.a,{sx:{...SE,flexDirection:"column",gap:2},"data-testid":"account-product-field-values-error-state",children:[Object(p.jsx)(S.a,{sx:fE,children:Ti.a.t("errorContent2")}),Object(p.jsx)(si,{type:"secondary",onClick:g,testId:"account-product-field-values-retry-button",children:Ti.a.t("account.productFields.retry")})]}):0===r.length?Object(p.jsx)(Fc,{img:On,altImg:Ti.a.t("account.productFields.emptyTitle"),title:Ti.a.t("account.productFields.emptyTitle"),text:Ti.a.t("account.productFields.emptyText"),testId:"account-product-field-values-empty-state",containerStyle:wE,isVertical:!0}):0===V.length?Object(p.jsx)(S.a,{sx:PE,"data-testid":"account-product-field-values-no-results",children:Ti.a.t("account.productFields.noSearchResults")}):Object(p.jsx)($E,{values:V,savingId:u,onToggleStatus:_,onRename:G,onDelete:q})]})}),Object(p.jsx)(aI,{renameTarget:w,deleteTarget:P,lastActiveAction:N,saving:H,serverErrorCode:w?m:null,onRenameClose:()=>{T(null),v()},onRenameSave:async e=>{const t=w;if(!t)return null;const a=Ql(e,r,t.id);if(a)return a;return(await h({valueId:t.id,name:ql(e)})).ok?(T(null),sO.productFieldValueRename({field:F}),null):null},onClearServerError:v,onDeleteCancel:()=>R(null),onDeleteConfirm:()=>{const e=P;R(null),e&&($l(k,e,r)?L({type:fI,value:e}):z({value:e,confirmFieldDisable:!1}))},onLastActiveCancel:()=>L(null),onLastActiveConfirm:()=>{const e=N;L(null),e&&(e.type!==fI?U({value:e.value,active:!1,confirmFieldDisable:!0}):z({value:e.value,confirmFieldDisable:!0}))}})]})};var jI=Ei((()=>{const{fieldId:e}=Object(l.i)();return Object(p.jsx)(vI,{},e)}),null,!1);const AI={ar:"https://app.contabilium.com/v3/login",cl:"https://app.contabilium.cl/v3/login",uy:"https://app.contabilium.com.uy/v3/login",py:"https://app.contabilium.com.py/v3/login"},CI={ar:"https://app.contabilium.com/",cl:"https://app.contabilium.cl/",uy:"https://app.contabilium.com.uy/",py:"https://app.contabilium.com.py/"};var yI=e=>{let{component:t,auth:a,...o}=e;const n=Object(l.h)(),r=localStorage.getItem("country_prod"),{permissionsRoles:s}=Object(i.useContext)(Ka),{userData:c,jwt:d}=Object(i.useContext)(Qa),u=e=>{const t=CI[e]+"v3/dashboard";window.location.href=t};return Object(i.useEffect)((()=>
76{if(n.pathname===o.path&&(d||r&&(e=>{window.location.href=AI[e]})(r),c&&s)){const e=s,t=c.user_type,a=c.plan_name,i=e.hasOwnProperty("2"),o=e[2],n=null===o||void 0===o?void 0:o.includes(54),l=null===o||void 0===o?void 0:o.includes(55);a===Za.a.freemium.name&&(e=>{const t=CI[e]+"modulos/seguridad/elegir-plan.aspx";window.location.href=t})(r),t===tn.restricted.value&&!1===i&&u(r),t!==tn.customized.value||i&&(n||l)||u(r)}}),[r,c,d,s]),Object(p.jsx)(l.b,{...o,render:e=>Object(p.jsx)(t,{...e})})};const OI={ar:"https://app.contabilium.com/v3/login",cl:"https://app.contabilium.cl/v3/login",uy:"https://app.contabilium.com.uy/v3/login",py:"https://app.contabilium.com.py/v3/login"},SI={ar:"https://app.contabilium.com/",cl:"https://app.contabilium.cl/",uy:"https://app.contabilium.com.uy/",py:"https://app.contabilium.com.py/"};var EI=e=>{let{component:t,auth:a,requireVariantsFlag:o=!1,...n}=e;const{permissionsRoles:r}=Object(i.useContext)(Ka),{userData:s,jwt:c}=Object(i.useContext)(Qa),{enabled:d,loading:u}=Ui(),m=Object(l.h)(),g=localStorage.getItem("country_prod"),b=e=>{const t=SI[e]+"v3/dashboard";window.location.href=t};Object(i.useEffect)((()=>{if(m.pathname===n.path){if(c||g&&(e=>{window.location.href=OI[e]})(g),s&&r){const e=r,t=s.user_type,a=s.plan_name,i=e.hasOwnProperty("2"),o=e.hasOwnProperty("5"),n=e[2],l=e[5],c=null===n||void 0===n?void 0:n.includes(38),d=null===n||void 0===n?void 0:n.includes(39),u=null===l||void 0===l?void 0:l.includes(46);"Basic"===a&&(e=>{const t=SI[e]+"modulos/seguridad/elegir-plan.aspx";window.location.href=t})(g),0!==e.length&&("B"!==t||!1!==i&&o||b(g),"C"!==t||i&&o&&(c||d)&&u||b(g))}!o||u||d||"Basic"===(null===s||void 0===s?void 0:s.plan_name)||b(g)}}),[g,s,c,r,o,d,u]);return Object(p.jsx)(l.b,{...n,render:e=>!o||!u&&d?Object(p.jsx)(t,{...e}):null})};const II={filters:{view:[{name:"Todos"},{name:"Seleccionados"}],type:[{name:"Productos \xfanicos"},{name:"Combos"},{name:"Variantes de productos"}],headingList:[],subHeadingList:[]},selectedOptions:{view:null,type:null,heading:null,subHeading:null,provider:null},searchText:"",searchResults:{list:[],listLoading:!1,listError:!1,totalPages:1},selectedProducts:{}},wI=(e,t)=>{switch(t.type){case TI:return{...e,filters:{...e.filters,headingList:t.payload}};case PI:return{...e,filters:{...e.filters,subHeadingList:t.payload}};case RI:return{...e,searchText:t.payload};case NI:return{...e,selectedOptions:{...e.selectedOptions,[t.payload.filterType]:t.payload.value}};case kI:return{...e,selectedOptions:t.payload.selectedOptions};case LI:return{...e,selectedOptions:{type:null,heading:null,subHeading:null,provider:null}};case BI:return{...e,searchResults:{...e.searchResults,listLoading:!0,listError:!1}};case DI:return{...e,searchResults:{list:t.payload.data,listLoading:!1,listError:!1,totalPages:t.payload.totalPages,totalItems:t.payload.totalItems,totalItemsStored:t.payload.totalItemsStored}};case FI:return{...e,searchResults:{...e.searchResults,listLoading:!1,listError:!0}};case MI:return{...e,selectedProducts:{...e.selectedProducts,[t.payload.id]:t.payload.product}};case HI:return{...e,selectedProducts:t.payload.selectedProducts};case VI:return{...e,selectedProducts:t.payload};case WI:return{...e,selectedProducts:{}}}},TI="SET_HEADINGS",PI="SET_SUBHEADINGS",RI="SET_SEARCH_TEXT",NI="SET_FILTER",LI="RESET_FILTERS",kI="APPLY_FILTERS",BI="SET_RESULTS_LOADING",DI="SET_RESULTS_LOADED",FI="SET_RESULTS_ERROR",MI="SET_SELECTED_PRODUCTS",VI="REMOVE_SELECTED_PRODUCT",WI="RESET_SELECTED_PRODUCTS",HI="SET_SELECTED_ALL_PRODUCTS";var UI=()=>{const[e,t]=Object(i.useReducer)(wI,II),a=Object(i.useCallback)((async e=>{try{const a=await Ya.concepts.getSubHeadings(e);t({type:PI,payload:a})}catch(a){console.log({error:a})}}),[]),{data:o}=(e=>{const[t,a]=Object(i.useState)(!0),[o,n]=Object(i.useState)([]),[r,s]=Object(i.useState)("");return Object(i.useEffect)((()=>{(async()=>{a(!0);try{const t=await e();n(t)}catch(t){s(t),console.log(t)}a(!1)})()}),[]),{loading:t,data:o,error:r}})(Ya.concepts.getHeadings);return Object(i.useEffect)((()=>{(null===o||void 0===o?void 0:o.length)>0&&t({type:TI,payload:o})}),[o]),{searchData:e,dispatch:t,fetchSubHeadings:a,searchProducts:async a=>{let{searchText:i="",page:o,filters:n=""}=a;const{heading:r,provider:s,subHeading:l}=n,{variants:c,distinct:d}=(e=>{if(!e)return"";let t="type:s",a="";return Object.entries(e).map((e=>{let[i,o]=e;if(Array.isArray(o)){const e=o.includes("Combos")&&!o.includes("Variantes de productos")&&!o.includes("Productos \xfanicos"),i=o.includes("Productos \xfanicos")&&!o.includes("Combos")&&!o.includes("Variantes de productos"),n=o.includes("Variantes de productos")&&!o.includes("Combos")&&!o.includes("Productos \xfanicos"),r=o.includes("Combos")&&o.includes("Variantes de productos")&&!o.includes("Productos \xfanicos"),s=!o.includes("Combos")&&o.includes("Variantes de productos")&&o.includes("Productos \xfanicos"),l=o.includes("Combos")&&!o.includes("Variantes de productos")&&o.includes("Productos \xfanicos");o.includes("Combos")&&o.includes("Variantes de productos")&&o.includes("Productos \xfanicos"),e&&(t+=",p"),i&&(t+=",c",a="0"),n&&(a="1"),r&&(t+=",pu"),s&&(t+=",c"),l&&(a="0")}return null})),{variants:a,distinct:t}})(n);t({type:BI});try{const a=await Ya.concepts.browseConcepts({status:"A",variants:c,distinct:d,paginate:1,search:i,page:o,heading:null===r||void 0===r?void 0:r.id,provider:null===s||void 0===s?void 0:s.personId,subHeading:null===l||void 0===l?void 0:l.id,limit:50}),{data:n,meta:u}=a.data;t({type:DI,payload:{data:n,totalPages:u.last_page,totalItems:u.total,totalItemsStored:e.searchResults.totalItemsStored?e.
76searchResults.totalItemsStored:u.total}})}catch(u){t({type:FI})}}}};const _I=Object(u.a)((e=>({modalStyle:{width:"455px",minHeight:"274px",fontFamily:"Work Sans, sans-serif",[e.breakpoints.down("xs")]:{maxWidth:"90%"}},customSpacing:{margin:-8,[e.breakpoints.down("sm")]:{margin:0}},customPadding:{[e.breakpoints.down("sm")]:{padding:"0px !important"}}})));var zI=e=>{var t,a,o,n,r,s;let{isOpen:l=!1,searchData:d={},setPage:u=1,handleSearchWithFilters:m=(()=>null),dispatch:g=(()=>null),handleCloseModal:b=(()=>null),fetchSubHeadings:h=(()=>null)}=e;const{filters:x}=d,[f,j]=Object(i.useState)(d.selectedOptions),A=_I();Object(i.useEffect)((()=>{j(d.selectedOptions)}),[d.selectedOptions]);const C=()=>{b(),j(d.selectedOptions)},y=e=>{let{event:t,value:a,propertyName:i}=e;"view"!==i||"Seleccionados"!==(null===a||void 0===a?void 0:a.name)?"heading"===i&&a?(h(a.id),j({...f,subHeading:null,[i]:a})):"heading"!==i&&j({...f,[i]:a}):j({type:!1,subHeading:null,heading:null,provider:null,[i]:a})},O=e=>{let{event:t,propertyName:a}=e;""===t.target.value&&"heading"!==a&&j({...f,[a]:null}),"heading"===a&&""===t.target.value&&j({...f,subHeading:null,[a]:null})},S="Seleccionados"===(null===f||void 0===f||null===(t=f.view)||void 0===t?void 0:t.name);return Object(p.jsxs)(Sm,{isOpen:l,handleClose:C,primaryHeader:!1,primaryButtonClick:()=>{var e;b(),"Seleccionados"!==(null===f||void 0===f||null===(e=f.view)||void 0===e?void 0:e.name)&&((e=>{let t="";(null===e||void 0===e?void 0:e.length)>0&&null!==e&&void 0!==e&&e.includes("Productos \xfanicos")&&(""!==t&&(t+=", "),t+="productos unicos"),(null===e||void 0===e?void 0:e.length)>0&&null!==e&&void 0!==e&&e.includes("Combos")&&(""!==t&&(t+=", "),t+="combos"),(null===e||void 0===e?void 0:e.length)>0&&null!==e&&void 0!==e&&e.includes("Variantes de productos")&&(""!==t&&(t+=", "),t+="variantes de productos"),Object(c.b)("Etiquetas - Filtrar",{"tipo-producto":t})})(null===f||void 0===f?void 0:f.type),m(f)),u(1),g({type:kI,payload:{selectedOptions:f}})},secondaryButtonClick:C,title:Ti.a.t("filters"),primaryButtonText:Ti.a.t("filter"),secondaryButtonText:Ti.a.t("back"),modalStyle:A.modalStyle,showSecondaryButtonIcon:!0,children:[Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(Pr,{label:Ti.a.t("view"),data:x.view,onChange:(e,t)=>
76y({event:e,value:t,propertyName:"view"}),value:null===f||void 0===f?void 0:f.view,onSelectInputChange:e=>O({event:e,propertyName:"view"}),placeholder:null!==f&&void 0!==f&&f.view?" ":Ti.a.t("all"),isUsedInModal:!0})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsx)(Lm,{label:Ti.a.t("productType"),data:x.type,onChange:e=>y({value:e,propertyName:"type"}),initialValue:null===f||void 0===f?void 0:f.type,placeholder:Ti.a.t("allProducts"),disabled:S})}),Object(p.jsxs)(v.a,{container:!0,spacing:2,className:A.customSpacing,children:[Object(p.jsx)(v.a,{className:A.customPadding,item:!0,xs:12,md:6,children:Object(p.jsx)(Pr,{label:Ti.a.t("category"),placeholder:null!==f&&void 0!==f&&f.heading?" ":Ti.a.t("allHeadings"),data:x.headingList,onChange:(e,t)=>y({event:e,value:t,propertyName:"heading"}),disabled:0===(null===x||void 0===x||null===(a=x.headingList)||void 0===a?void 0:a.length)||S,value:null===f||void 0===f?void 0:f.heading,onSelectInputChange:e=>O({event:e,propertyName:"heading"}),isUsedInModal:!0})}),Object(p.jsx)(v.a,{className:A.customPadding,item:!0,xs:12,md:6,children:Object(p.jsx)(Pr,{label:Ti.a.t("subcategory"),disabled:!(null!==f&&void 0!==f&&f.heading)||0===(null===x||void 0===x||null===(o=x.subHeadingList)||void 0===o?void 0:o.length)||S,type:""+(null===(null===f||void 0===f?void 0:f.heading)||0===(null===x||void 0===x||null===(n=x.subHeadingList)||void 0===n?void 0:n.length)?"searchSelect":"searchSelectPrimary"),placeholder:null!==f&&void 0!==f&&f.subHeading?" ":Ti.a.t("allSubHeadings"),data:null===x||void 0===x?void 0:x.subHeadingList,onChange:(e,t)=>
76y({event:e,value:t,propertyName:"subHeading"}),onSelectInputChange:e=>O({event:e,propertyName:"subHeading"}),value:null===f||void 0===f?void 0:f.subHeading,isUsedInModal:!0})})]}),Object(p.jsx)(v.a,{xs:12,children:Object(p.jsx)(ul,{label:Ti.a.t("supplier"),type:"searchSelectPrimary",filter:"limit=5",initValue:null===f||void 0===f||null===(r=f.provider)||void 0===r?void 0:r.socialReason,url:Object(aa.a)()+"people",option2:"identificacionNumber",option1:"socialReason",placeholderLabel:Ti.a.t("allProviders"),onChange:e=>y({value:e,propertyName:"provider"}),selectTwoOptions:!0,disabled:S,clearSearchText:"Seleccionados"===(null===f||void 0===f||null===(s=f.view)||void 0===s?void 0:s.name),isUsedInModal:!0})})]})};const qI=Object(u.a)((e=>({container:{gap:10,"@media (max-width: 800px)":{justifyContent:"space-between"}},searchContainer:{flex:1,display:"flex",[e.breakpoints.down("sm")]:{flexWrap:"wrap"}},searchInput:{minWidth:265,[e.breakpoints.down("sm")]:{minWidth:"auto",flex:1}},selectContainer:{minWidth:170,"@media (max-width: 800px)":{width:"100%"}},searchButtonContainer:{marginTop:23,marginLeft:5},searchButton:{borderRadius:"10px 50px 50px 10px",height:40},filterButtonContainer:{marginTop:23,marginLeft:20,"@media (max-width: 800px)":{marginTop:0,marginLeft:0,width:"100%"}},filterButton:{display:"flex",alignItems:"center",justifyContent:"center",height:40},sliderIcon:{width:"23px",height:"23px",marginTop:"5px"},clearIcon:{width:"23px",height:"23px",marginTop:"3px",marginLeft:"5px",color:"#818181",zIndex:10}})));var GI=e=>{let{searchData:t={},loadingProducts:a=!1,handleKeysPress:o=(()=>null),handleSearchClick:n=(()=>null),handleClearBtnClick:r=(()=>null),handleInputSearchChange:s=(()=>null),handleToggleFilterModal:l=(()=>null)}=e;const{selectedOptions:c,searchText:d}=t,u=qI(),m=Object(i.useCallback)((e=>s(e)),[s]),g=Object.keys(c).filter((e=>c[e])).map((e=>c[e]));return Object(p.jsx)(p.Fragment,{children:Object(p.jsxs)(v.a,{item:!0,className:u.searchContainer,children:[Object(p.jsx)(mr,{placeholder:Ti.a.t("search"),types:"inputPrimary",onChange:m,maxLength:"500",value:d,cleanButtonText:"Limpiar",onKeyDown:o,containerStyle:u.searchInput,clearBtn:!0,children:Ti.a.t("productSearchLabel")}),Object(p.jsx)(v.a,{className:u.searchButtonContainer,item:!0,children:Object(p.jsx)(si,{containerClass:u.searchButton,disabled:a,medium:!0,onClick:n,type:"primary",children:Ti.a.t("search")})}),Object(p.jsx)(v.a,{className:u.filterButtonContainer,item:!0,children:Object(p.jsxs)(si,{containerClass:u.filterButton,disabled:a,medium:!0,onClick:l,type:"secondary",children:[Object(p.jsx)(ni.a,{width:"20px",height:"20px",viewBox:"",className:u.sliderIcon,name:"sliders"}),`${g.length<=0?Ti.a.t("viewFilters"):`${g.length} filtro${1!==g.length?"s":""} aplicado${1!==g.length?"s":""}`}`,g.length>0&&Object(p.jsx)(ni.a,{viewBox:"",className:u.clearIcon,name:"clearIcon",onClick:e=>r(e)&&c})]})})]})})};const YI=Object(u.a)((e=>({grid:{padding:"10px 0 15px 0"},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"26px",lineHeight:"26px",display:"flex",flexDirection:"row","@media (max-width: 479px)":{fontSize:"16px"}},subTitle:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"20px",marginTop:"40px","@media (max-width: 479px)":{fontSize:"12px",marginTop:"10px"}},icon:{color:"#666666",marginRight:"10px",alignItems:"center"}})));var KI=e=>{let{title:t="",subTitle:a=""}=e;const o=YI(),[n,r]=Object(i.useState)(""),s=Kn();Object(i.useEffect)((()=>{let e=s.data.country;"ar"===e&&r("https://ayuda.contabilium.com/hc/es/sections/360008980154--Primeros-pasos-en-Contabilium"),"cl"===e&&r("https://ayuda.contabilium.cl/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium"),"uy"===e&&r("https://ayuda.contabilium.com.uy/hc/es/sections/1500001915021--Primeros-pasos-en-Contabilium"),"py"===e&&r("https://ayuda.contabilium.com.py/hc/es/sections/4407872035475--Primeros-pasos-en-Contabilium")}),[s]);return Object(p.jsxs)(v.a,{container:!0,className:o.grid,xs:12,md:12,xl:12,children:[Object(p.jsxs)(v.a,{container:!0,item:!0,style:{marginLeft:0},justifyContent:"space-between",children:[Object(p.jsx)(v.a,{item:!0,children:Object(p.jsxs)(cn.a,{className:o.title,children:[Object(p.jsx)(M,{className:o.icon,name:"tag"}),t]})}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(si,{type:"tertiary",onClick:()=>{window.open(n,"_blank")},children:Ti.a.t("tutorial")})})]}),Object(p.jsx)(v.a,{item:!0,children:Object(p.jsx)(cn.a,{className:o.subTitle,children:a})})]})};const XI={printers:[{name:"Impresora de etiquetas",value:"Etiquetas",amplitudeText:"impresora de etiquetas"},{name:"Impresora simple",value:"A4"},{name:"CSV para impresora",value:"CSV"}],formats:[{name:"Code 128 auto",value:"C128",legend:"M\xe1ximo 48 caracteres.",amplitudeText:"code 128 auto"},{name:"EAN-8",value:"EAN8",amplitudeText:"EAN-8",legend:"Incluye 7 d\xedgitos y 1 de control.",errorMessage:"El formato de c\xf3digo de barra EAN-8 debe tener 7 d\xedgitos y 1 de control (0), ejemplo: 12345670"},{name:"EAN-13",value:"EAN13",amplitudeText:"EAN-13",legend:"Incluye 12 d\xedgitos y 1 de control.",errorMessage:"El formato de c\xf3digo de barra EAN-13 debe tener 12 d\xedgitos y 1 de control (1), ejemplo: 1234567891231"},{name:"UPC-A",value:"UPCA",amplitudeText:"UPC-A",legend:"Incluye 11 d\xedgitos y 1 de control.",errorMessage:"El formato de c\xf3digo de barra UPC-A debe tener 11 d\xedgitos y 1 de control (8), ejemplo: 123456789128"}],quantity:[{value:"1",name:1},{value:"2",name:2},{value:"3",name:3}
76,{value:"4",name:4},{value:"5",name:5},{value:"6",name:6},{value:"7",name:7},{value:"8",name:8},{value:"9",name:9},{value:"10",name:10},{value:"11",name:11},{value:"12",name:12},{value:"13",name:13},{value:"14",name:14},{value:"15",name:15},{value:"16",name:16},{value:"17",name:17},{value:"18",name:18},{value:"19",name:19},{value:"20",name:20}],sizes:[{name:"57x32 mm",value:{width:57,height:32}},{name:"40x25 mm",value:{width:40,height:25}},{name:"31x22 mm",value:{width:31,height:22}}],fields:[{name:"Nombre del producto"},{name:"C\xf3digo de barra"},{name:"SKU"},{name:"Precio"}],fieldsCSVSelected:[{name:"Nombre del producto"},{name:"SKU"},{name:"Precio"}]},ZI={userLabelPrintingConfig:{printer:null,barcodeFormat:null,labelQuantity:{value:"1",name:1},labelSize:{name:"57x32 mm",value:{width:57,height:32}},fields:null},userLabelPrintingConfigLoading:!1,labelFileCreation:{creationLoading:!1,creationSuccess:!1,creationError:!1,creationErrorCode:null}},QI=(e,t)=>{switch(t.type){case JI:return{...e,userLabelPrintingConfig:{...e.userLabelPrintingConfig,[t.payload.type]:t.payload.value}};case $I:return{...e,userLabelPrintingConfig:t.payload.userLabelPrintingConfig};case ew:return{...e,labelFileCreation:{creationLoading:!0,creationSuccess:!1,creationError:!1,creationErrorCode:null}};case tw:return{...e,labelFileCreation:{creationLoading:!1,creationSuccess:!0,creationError:!1,creationErrorCode:null}};case aw:return{...e,labelFileCreation:{creationLoading:!1,creationSuccess:!1,creationError:!0,creationErrorCode:t.payload.creationErrorCode}};case iw:return{...e,labelFileCreation:{creationLoading:!1,creationSuccess:!1,creationError:!1,creationErrorCode:null}};case ow:return{...e,userLabelPrintingConfigLoading:t.payload};default:return e}},JI="SET_LABEL_CONFIG",$I="SAVE_LABEL_CONFIG",ew="SET_LABEL_FILE_CREATION_LOADING",tw="SET_LABEL_FILE_CREATION_SUCCESS",aw="SET_LABEL_FILE_CREATION_ERROR",iw="RESET_LABEL_FILE_CREATION",ow="SAVE_LABEL_CONFIG_LOADING",nw=1e3,rw={name:"Nombre del producto",barcode:"C\xf3digo de barra",price:"Precio",code:"SKU"},sw=(e,t,a,i,o)=>{let n={name:null,barcode:null,price:null,code:null,currencySymbol:"$"};if(t.includes("Nombre del producto")&&(n.name=e.name.toUpperCase()),t.includes("SKU")&&(n.code=e.code.toUpperCase()),t.includes("C\xf3digo de barra")&&(n.barcode=e.barcode),t.includes("Precio")){const t=bs(vs(e.finalPrice,a));n.price=t}if(t.includes("Precio")){const t=i.find((t=>(null===t||void 0===t?void 0:t.id)===(null===e||void 0===e?void 0:e.currencyId)));n.currencySymbol=null===t||void 0===t?void 0:t.symbol}return n},lw=e=>{const t={fields:null,printer:XI.printers.find((t=>t.value===(null===e||void 0===e?void 0:e.printer)))||null,barcodeFormat:XI.formats.find((t=>t.value===(null===e||void 0===e?void 0:e.barcodeFormat)))||null,labelQuantity:XI.quantity.find((t=>t.name===(null===e||void 0===e?void 0:e.labelQuantity)))||null,labelSize:XI.sizes.find((t=>t.name.replace(" mm","")===(null===e||void 0===e?void 0:e.labelSize)))||null};return t.fields=null!==e&&void 0!==e&&e.dataField?e.dataField.filter((e=>rw[e])).map((e=>rw[e])):[],t};var cw=(e,t)=>{const[a,o]=Object(i.useReducer)(QI,ZI),{responseData:n,errorResponse:r,isLoading:s}=Di({url:Object(aa.a)()+"labels/config",method:"get",condition:!0});Object(i.useEffect)((()=>{o({type:ow,payload:s})}),[s]),Object(i.useEffect)((()=>{if(n)try{const e=lw(n);o({type:$I,payload:{userLabelPrintingConfig:e}})}catch(e){console.log({error:e})}}),[n]),Object(i.useEffect)((()=>{r&&console.log({error:r})}),[r]);return{labelConfigData:a,dispatchLabelConfig:o,fetchUserLabelPrintingConfig:async()=>{o({type:ow,payload:!0});try{const e=await Ya.labelPrinting.getUserLabelPrintingConfig(),t=lw(e);o({type:$I,payload:{userLabelPrintingConfig:t}})}catch(e){console.log({error:e})}o({type:ow,payload:!1})},sendDataToCreatePrintFile:async(a,i)=>{const n=td.a.cloneDeep(a);o({type:ew});const{barcodeFormat:r,labelQuantity:s,labelSize:l,printer:d,fields:u}=i;for(const o in n)Object.hasOwnProperty.call(a,o)&&(n[o]=sw(n[o],u,null===e||void 0===e?void 0:e.amountRounding,t,d.value));const p={barcodeFormat:null===r||void 0===r?void 0:r.value,labelQuantity:(null===s||void 0===s?void 0:s.name)||1,labelSize:"CSV"!==(null===d||void 0===d?void 0:d.value)?null===l||void 0===l?void 0:l.value:null,printer:null===d||void 0===d?void 0:d.value,dataField:{...n}};try{const e=await Ya.labelPrinting.createLabelsPdf(p);(e=>{let{printer:t,barcodeFormat:a,size:i,fields:o}=e,n="";null!==o&&void 0!==o&&o.includes("Nombre del producto")&&(""!==n&&(n+=", "),n+="nombre de producto"),null!==o&&void 0!==o&&o.includes("C\xf3digo de barra")&&(""!==n&&(n+=", "),n+="codigo de barra"),null!==o&&void 0!==o&&o.includes("SKU")&&(""!==n&&(n+=", "),n+="sku"),null!==o&&void 0!==o&&o.includes("Precio")&&(""!==n&&(n+=", "),n+="precio"),Object(c.b)("Etiquetas - Imprimir",{impresora:t,formato:a,"tama\xf1o":i,"campos a mostrar":n})})({printer:null===d||void 0===d?void 0:d.amplitudeText,barcodeFormat:null===r||void 0===r?void 0:r.amplitudeText,size:null===l||void 0===l?void 0:l.name.slice(0,5),fields:u}),localStorage.removeItem("labelItems");const t=document.createElement("a");if("CSV"!==d.value){const a=new Blob([e],{type:"application/pdf"});t.href=window.URL.createObjectURL(a),t.download="etiquetas.pdf",document.body.appendChild(t),t.click()}else{const a=new Blob([e],{type:"application/csv"});t.href=window.URL.createObjectURL(a),t.download="etiquetas.csv",document.body.appendChild(t),t.click()}setTimeout((()=>{document.body.removeChild(t),window.URL.revokeObjectURL(t.href),o({type:tw})}),500)}catch(g){var m;let e=(new TextDecoder).decode(null===g||void 0===g||null===(m=g.response)||void 0===m?void 0:m.data);console.log({error:g});let t=null;if(e&&(t=JSON.parse(e)),t&&t.error&&t.error.length>0){const{code:e,message:a}=t.error[0];o({type:aw,payload:{creationErrorCode:{code:e,message:a}}})}else o({type:aw,payload:{creationErrorCode:{code:"ERROR_DEFAULT",message:"Ha ocurrido un error"}}})}}}},dw=a.p+"static/media/UPC.4d98976c.svg",uw=a.p+"static/media/EAN-8.8cc200a0.svg",pw=a.p+"static/media/EAN-13.d2c8ff5f.svg",mw=a.p+"static/media/Code-128.4df4f7f6.svg";const gw=Object(u.a)((e=>({container:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",borderRadius:6,textAlign:"center",boxShadow:"0px 2px 4px 0px rgba(0, 0, 0, 0.20)"},barcode:{width:"100%",flex:1,objectFit:"cover",height:"3em"},infoContainer:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"100%",gap:"0.5em"},title:{fontSize:"0.7em",textTransform:"uppercase",lineHeight:1,color:"#131313",fontFamily:"Work Sans",fontWeight:500,whiteSpace:"nowrap",overflow:"hidden",
76width:"100%"},code:{fontSize:"0.6em",lineHeight:"0.8em",color:"#666666",fontFamily:"Work Sans",fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",width:"100%"},price:{fontSize:"0.8em",lineHeight:"0.8em",color:"#131313",fontFamily:"Work Sans",fontWeight:600,width:"100%",whiteSpace:"nowrap",overflow:"hidden"},barcodeText:{fontSize:"0.7em",lineHeight:"0.8em",color:"#131313",fontFamily:"Work Sans",marginTop:"0.3em",fontWeight:400,width:"100%",whiteSpace:"nowrap",overflow:"hidden"},barcodeContainer:{width:"100%",height:"4.5em",display:"flex",overflow:"hidden",flexDirection:"column"}})));var bw=e=>{let t,a,i,{fields:o=[],barcodeFormat:n={},priceSymbol:r="",labelSize:s="",hasItemWithBarcode:l=!0}=e;switch(null===s||void 0===s?void 0:s.name){case"57x32 mm":a={width:215,height:120,fontSize:13,marginTop:10,transform:"scale(1.2)",padding:"10px 15px"};break;case"40x25 mm":a={width:150,height:95,fontSize:10,marginTop:20,transform:"scale(1.5)",padding:"8px 12px"};break;case"31x22 mm":a={width:117,height:83,fontSize:8,marginTop:25,transform:"scale(1.6)",padding:"6px 10px"};break;default:a={width:215,height:120,fontSize:13,marginTop:10,transform:"scale(1.2)",padding:"6px 10px"}}const c=gw();switch(null===n||void 0===n?void 0:n.value){case"UPC":t=dw,i="123456789128";break;case"EAN8":t=uw,i="12345670";break;case"EAN13":t=pw,i="1234567891231";break;default:t=mw,i="ABC123456789"}const d=null===o||void 0===o?void 0:o.some((e=>"Nombre del producto"===e)),u=null===o||void 0===o?void 0:o.some((e=>"SKU"===e)),m=null===o||void 0===o?void 0:o.some((e=>"Precio"===e)),g=null===o||void 0===o?void 0:o.some((e=>"C\xf3digo de barra"===e)),b=d||u||m;return Object(p.jsxs)("div",{style:a,className:c.container,children:[b&&Object(p.jsxs)("div",{className:c.infoContainer,children:[d&&Object(p.jsx)(cn.a,{className:c.title,children:"Lorem ipsum dolor sit amet consectetuer"}),u&&Object(p.jsx)(cn.a,{className:c.code,children:"LOREM-IPSUM-DOLOR-SIT-AMET-CONSECTETUER"}),m&&Object(p.jsxs)(cn.a,{className:c.price,children:[r," ","0000,00"]})]}),g&&l&&Object(p.jsxs)("div",{className:c.barcodeContainer,children:[Object(p.jsx)(y.a,{component:"img",style:{marginTop:b?"0.5em":0},className:c.barcode,src:t}),g&&l&&Object(p.jsx)(cn.a,{className:c.barcodeText,children:i})]})]})};const hw={printer:null,fields:null,barcodeFormat:null,labelSize:null},xw=Object(u.a)((e=>({modalStyle:{maxWidth:640,width:"100%",maxHeight:"95vh",fontFamily:"Work Sans, sans-serif",[e.breakpoints.down("xs")]:{maxWidth:"90%"}},innerContentStyle:{padding:40,overflowY:"scroll",scrollbarWidth:"thin",[e.breakpoints.down("sm")]:{padding:30},"&::-webkit-scrollbar":{width:"0.4em"},"&::-webkit-scrollbar-track":{background:"#fff",height:"400px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:"8px"},"&::-webkit-scrollbar-thumb:hover":{background:"#aaa"}},customPadding:{marginBottom:"-15px",[e.breakpoints.down("sm")]:{padding:"0px !important",marginBottom:"0px !important"}},previewTitle:{fontSize:"14px",color:"#666666",fontFamily:"Work Sans",fontWeight:400,marginBottom:8},previewContainer:{width:"100%",display:"flex",alignItems:"center",flexDirection:"column",gap:4,marginTop:15},footerForm:{fontWeight:"400",fontSize:"12px",lineHeight:"18px",color:"#666666",fontFamily:"Work Sans, sans-serif"},inputArterisk:{color:"#f32465"}})));var fw=e=>{var t,a,o,n,r;let{creationLoading:s=!1,isOpen:l=!1,hasItemWithBarcode:c=!1,labelConfigData:d={},selectedProducts:u={},defaultCurrency:m={},selectedTotal:g=0,dispatchLabelConfig:b=(()=>null),sendDataToCreatePrintFile:h=(()=>null),handleCloseEditionModal:x=(()=>null),cleanupLabelItemsFromLocalStorage:f=(()=>null)}=e;const j=xw(),[A,C]=Object(i.useState)(d.userLabelPrintingConfig),[y,O]=Object(i.useState)(hw),[S,E]=Object(i.useState)(!1),{printers:I,formats:w,fields:T,fieldsCSVSelected:P,quantity:R,sizes:N}=XI,L="CSV para impresora"===(null===A||void 0===A||null===(t=A.printer)||void 0===t?void 0:t.name),k=null===A||void 0===A||null===(a=A.labelQuantity)||void 0===a?void 0:a.name;Object(i.useEffect)((()=>{C(d.userLabelPrintingConfig)}),[d.userLabelPrintingConfig]),Object(i.useEffect)((()=>{E(k*g>
76nw),L||A.labelSize||C({...A,labelSize:{name:"57x32 mm",value:{width:57,height:32}}})}),[A]);const B=()=>{O(hw),x(),C(d.userLabelPrintingConfig)},D=e=>{let{event:t,value:a,propertyName:i}=e;"CSV para impresora"===(null===a||void 0===a?void 0:a.name)&&"printer"===i?C({...A,[i]:a,barcodeFormat:null}):C({...A,[i]:a}),O({...y,[i]:!1})},F=e=>{let{event:t,propertyName:a}=e;""===t.target.value&&C({...A,[a]:null}),""!==t.target.value||"labelQuantity"!==a&&"labelSize"!==a||C({...A,[a]:A[a]})};return Object(p.jsxs)(Sm,{isOpen:l,handleClose:B,primaryHeader:!0,primaryButtonClick:()=>{const e=(()=>{var e;const t={};return t.fields=!A.fields,t.printer=!A.printer,t.labelSize=!L&&!A.labelSize,t.barcodeFormat=!L&&(null===A||void 0===A||null===(e=A.fields)||void 0===e?void 0:e.some((e=>"C\xf3digo de barra"===e)))&&!A.barcodeFormat,O(t),t})();E(k*g>nw),e.barcodeFormat||e.printer||e.fields||k*g>nw||(f(),h(u,A),b({type:$I,payload:{userLabelPrintingConfig:A}}))},secondaryButtonClick:B,title:Ti.a.t("labelPrintingConfig"),primaryButtonText:Ti.a.t("print"),secondaryButtonText:Ti.a.t("cancel"),modalStyle:j.modalStyle,innerContentStyle:j.innerContentStyle,showSecondaryButtonIcon:!1,primaryButtonLoading:s,secondaryButtonDisabled:s,children:[S&&Object(p.jsx)(os,{containerStyle:{marginBottom:20,marginTop:-15},onCloseAlert:()=>E(!1),oneErrorAlert:"El l\xedmite son 1000 etiquetas, seleccione menos productos o menos cantidad de etiquetas por producto"}),Object(p.jsxs)(v.a,{container:!0,spacing:2,className:j.customSpacing,children:[Object(p.jsx)(v.a,{className:j.customPadding,item:!0,xs:12,md:6,children:Object(p.jsx)(Pr,{required:!0,type:""+(y.printer?"searchSelectConfigurationError":"searchSelectConfiguration"),label:Ti.a.t("printers"),placeholder:null!==A&&void 0!==A&&A.printer?" ":Ti.a.t("selectPrinter"),data:I,onChange:(e,t)=>
76D({event:e,value:t,propertyName:"printer"}),value:null===A||void 0===A?void 0:A.printer,onSelectInputChange:e=>F({event:e,propertyName:"printer"}),isUsedInModal:!0})}),Object(p.jsx)(v.a,{className:j.customPadding,item:!0,xs:12,md:6,children:Object(p.jsx)(Pr,{type:""+(y.barcodeFormat?"searchSelectConfigurationError":"searchSelectConfiguration"),required:null===A||void 0===A||null===(o=A.fields)||void 0===o?void 0:o.some((e=>"C\xf3digo de barra"===e&&!L)),label:Ti.a.t("barcodeFormat"),placeholder:null!==A&&void 0!==A&&A.barcodeFormat&&!L&&c?" ":Ti.a.t("selectOption"),data:w,onChange:(e,t)=>D({event:e,value:t,propertyName:"barcodeFormat"}),value:L||!c?null:null===A||void 0===A?void 0:A.barcodeFormat,onSelectInputChange:e=>F({event:e,propertyName:"barcodeFormat"}),disabled:L||!c,legendText:c?(null===A||void 0===A?void 0:A.barcodeFormat)&&(null===A||void 0===A?void 0:A.barcodeFormat.legend):"",isUsedInModal:!0})}),Object(p.jsx)(v.a,{className:j.customPadding,item:!0,xs:12,md:6,children:Object(p.jsx)(Pr,{label:Ti.a.t("labelQuantity"),data:R,onChange:(e,t)=>
76D({event:e,value:t,propertyName:"labelQuantity"}),value:null===A||void 0===A?void 0:A.labelQuantity,onSelectInputChange:e=>F({event:e,propertyName:"labelQuantity"}),isUsedInModal:!0})}),Object(p.jsx)(v.a,{className:j.customPadding,item:!0,xs:12,md:6,children:Object(p.jsx)(Pr,{type:""+(y.labelSize?"searchSelectConfigurationError":"searchSelectConfiguration"),label:Ti.a.t("labelSize"),data:N,onChange:(e,t)=>D({event:e,value:t,propertyName:"labelSize"}),value:L?null:null===A||void 0===A?void 0:A.labelSize,onSelectInputChange:e=>F({event:e,propertyName:"labelSize"}),disabled:L,placeholder:(!(null!==A&&void 0!==A&&A.labelSize)||L)&&Ti.a.t("selectOption"),isUsedInModal:!0})}),Object(p.jsx)(v.a,{className:j.customPadding,item:!0,xs:12,md:12,children:Object(p.jsx)(Lm,{required:!0,type:""+(y.fields?"searchSelectConfigurationError":"searchSelectConfiguration"),label:Ti.a.t("fieldsToShow"),data:c?T:P,onChange:e=>D({value:e,propertyName:"fields"}),initialValue:c?A.fields:null===(n=A.fields)||void 0===n?void 0:n.filter((e=>"C\xf3digo de barra"!==e)),placeholder:Ti.a.t("selectFieldsToShow")})}),Object(p.jsx)(v.a,{item:!0,xs:12,md:12,children:Object(p.jsxs)(cn.a,{className:j.footerForm,style:{marginTop:5,marginBottom:15},children:[Ti.a.t("fieldsReq")," ",Object(p.jsx)("span",{className:j.inputArterisk,children:"* "})," ",Ti.a.t("required")]})})]}),(null===A||void 0===A||null===(r=A.fields)||void 0===r?void 0:r.length)>0&&!L&&Object(p.jsxs)(v.a,{className:j.previewContainer,children:[Object(p.jsx)(cn.a,{className:j.previewTitle,children:Ti.a.t("preview")}),Object(p.jsx)(v.a,{xs:12,md:12,children:Object(p.jsx)(bw,{priceSymbol:null===m||void 0===m?void 0:m.symbol,hasItemWithBarcode:c,...A})})]})]})};function vw(e){const{onSelectAllClick:t,list:a,selected:i,headCells:o}=e,n=jw(),r=(s=i,a.every((e=>s.includes(e.id))));var s;const l=!r&&a.some((e=>i.includes(e.id)));return Object(p.jsx)(Zs.a,{children:Object(p.jsxs)(Qs.a,{className:n.tableHead,children:[Object(p.jsx)(Js.a,{padding:"checkbox",style:{width:"5%"},children:Object(p.jsx)(Tm.a,{disableRipple:!0,sx:{"&.Mui-checked":{color:"#00A692"},"&.MuiCheckbox-indeterminate":{color:"#00A692"}},indeterminate:l,checked:r,onChange:e=>t(e,l,a),inputProps:{"aria-label":"select all desserts"}})}),o.map((e=>Object(p.jsx)(Js.a,{style:{width:e.width,minWidth:e.minWidth},className:n.titles,children:e.label},e.id)))]})})}const jw=Object(u.a)((e=>({tableHead:{background:"#F6F6F6"},titles:{fontSize:"14px",fontWeight:"800",lineHeight:"14.11px",fontFamily:"Work Sans, sans-serif",color:"#0D0D0D"}})));function Aw(e){const{numSelected:t,totalItems:a}=e,i=Cw();return Object(p.jsx)(v.a,{container:!0,className:i.toolContainer,xs:12,children:t>=0&&Object(p.jsx)(v.a,{item:!0,children:Object(p.jsxs)(cn.a,{sx:{flex:"1 1 100%"},className:i.toolText,children:[t," de ",a," seleccionados"]})})})}const Cw=Object(u.a)((e=>({toolText:{fontSize:"13px",fontWeight:"400",lineHeight:"18px",fontFamily:"Work Sans, sans-serif",color:"#666666"},toolContainer:{marginTop:"15px",marginBottom:"8px"}})));function yw(e){let{userConfigIvaCondition:t={},dataCurrency:a=[],headingList:i=[],handleSelectClick:o=(()=>null),isItemSelected:n=!1,row:r={},labelId:s=""}=e;const l=Ow(),{id:c,name:d,code:u,variantName:m,headingId:g,barcode:b,currencyId:h,finalPrice:x}=r,f=i&&i.find((e=>e.id===g)),v=a&&a.find((e=>e.id===h));return Object(p.jsxs)(Qs.a,{hover:!0,onClick:e=>o(e,c,r),role:"checkbox","aria-checked":n,tabIndex:-1,selected:n,sx:{cursor:"pointer","&.Mui-selected":{backgroundColor:"rgba(0, 199, 175, 0.1)"}},children:[Object(p.jsx)(Js.a,{padding:"checkbox",children:Object(p.jsx)(Tm.a,{disableRipple:!0,sx:{"&.Mui-checked":{color:"#00A692"}},checked:n,inputProps:{"aria-labelledby":s}})}),Object(p.jsx)(Js.a,{id:s,children:Object(p.jsx)("div",{style:{textTransform:"uppercase"},className:l.cells,children:u})}),Object(p.jsxs)(Js.a,{align:"left",children:[Object(p.jsx)("div",{style:{textTransform:"uppercase"},className:l.cells,children:d}),Object(p.jsx)("div",{className:l.subCells,children:m})]}),Object(p.jsx)(Js.a,{align:"left",children:Object(p.jsx)("div",{className:l.cells,children:null===f||void 0===f?void 0:f.name})}),Object(p.jsx)(Js.a,{align:"left",children:Object(p.jsx)("div",{className:l.barcodeCell,children:b})}),Object(p.jsx)(Js.a,{align:"left",children:Object(p.jsx)("div",{className:l.cells,children:null===v||void 0===v?void 0:v.symbol})}),Object(p.jsx)(Js.a,{align:"left",children:Object(p.jsx)("div",{className:l.cells,children:vs(x,(null===t||void 0===t?void 0:t.amountRounding)||0)})})]},c)}const Ow=Object(u.a)((e=>({cells:{fontSize:"14px",fontWeight:"500",fontFamily:"Work Sans, sans-serif",color:"#5A5A5A",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2,lineHeight:1.2,maxHeight:"2.8em",maxWidth:"200px"},barcodeCell:{fontSize:"14px",fontWeight:"500",lineHeight:"14.11px",fontFamily:"Work Sans, sans-serif",color:"#5A5A5A",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"180px"},subCells:{fontSize:"12px",fontWeight:"500",lineHeight:"14.11px",fontFamily:"Work Sans, sans-serif",color:"#818181",paddingTop:"5px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"180px"}}))),Sw=[{id:"code",label:Ti.a.t("SKU"),width:"10%",minWidth:"180px"},{id:["name","variantName"],label:Ti.a.t("item"),width:"20%",minWidth:"180px"}
76,{id:["headingId","subHeadingId"],label:Ti.a.t("category"),width:"10%",minWidth:"180px"},{id:"barcode",label:Ti.a.t("barcode"),width:"15%",minWidth:"180px"},{id:"currencyId",label:Ti.a.t("currency"),width:"5%",minWidth:"100px"},{id:"finalPrice",label:Ti.a.t("finalPrice"),width:"10%",minWidth:"150px"}],Ew={title:Ti.a.t("noResult"),text:Ti.a.t("emptyStateSearchProductsText"),img:Iv,containerStyle:{minHeight:400}},Iw=Object(u.a)((e=>({table:{minWidth:"750px",overflowX:"scroll"},loading:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300},empty:{display:"flex",justifyContent:"center",alignItems:"center","@media (max-width: 1100px)":{width:"calc(100vw - 100px)"}}})));var ww=e=>{let{selected:t=[],selectedProducts:a={},view:i={},page:o=1,totalPages:n=1,totalItems:r,list:s=[],listLoading:l=!1,listError:c=!1,headingList:d=[],dataCurrency:u=[],userConfigIvaCondition:m={},totalItemsStored:g="",searchText:b="",selectedListSearchText:h=null,isSelected:x=(()=>null),handleSelectClick:f=(()=>null),handleSelectAllClick:v=(()=>null),handlePageChange:j=(()=>null)}=e;const A="Seleccionados"===(null===i||void 0===i?void 0:i.name),C=Object.values(a),O=null===h?C:(()=>{const e=h.toLowerCase();return C.filter((t=>{if(h){const a=t.name.toLowerCase(),i=t.code.toLowerCase();if(!a.includes(e)&&!i.includes(e))return!1}return!0}))})(),S=O.slice(50*(o-1),50*o),E=A?S:s,I=A?Math.ceil(O.length/50):n,w=Iw();return Object(p.jsxs)(y.a,{sx:{width:"100%"},children:[Object(p.jsx)(Aw,{numSelected:t.length,totalItems:A?g:r}),Object(p.jsx)(Ym.a,{sx:{border:"1px solid #BEBEBE",borderRadius:"5px",width:"100%",mb:2,boxShadow:"none"},children:(null===E||void 0===E?void 0:E.length)>=0&&Object(p.jsx)(Ks.a,{style:{borderRadius:"5px"},sx:{th:{fontFamily:"Work Sans, sans-serif"},td:{fontFamily:"Work Sans, sans-serif"}},children:Object(p.jsxs)(Xs.a,{className:w.table,children:[Object(p.jsx)(vw,{numSelected:t.length,rowCount:E.length,headCells:Sw,onSelectAllClick:v,selected:t,list:E}),Object(p.jsxs)($s.a,{children:[l&&!A&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{colSpan:Sw.length+1,children:Object(p.jsx)("div",{className:w.loading,children:Object(p.jsx)(Od.a,{style:{color:"#00A692"}})})})}),(0===E.length&&(!!A||!l)||c)&&Object(p.jsx)(Qs.a,{style:{width:"100%"},children:Object(p.jsx)(Js.a,{colSpan:Sw.length+1,children:Object(p.jsx)("div",{className:w.empty,children:Object(p.jsx)(Fc,{isVertical:!0,containerStyle:{minHeight:500},...Ew})})})}),(!!A||!l)&&E.map(((e,t)=>{const a=x(e.id),i=`enhanced-table-checkbox-${t}`;return Object(p.jsx)(yw,{handleSelectClick:f,isItemSelected:a,row:e,labelId:i,headingList:d,dataCurrency:u,userConfigIvaCondition:m},e.id)}))]})]})})}),I>1&&Object(p.jsx)("div",{style:{marginBottom:"30px"},children:Object(p.jsx)(bn.a,{theme:jc,children:Object(p.jsx)(Ac,{actualPage:o,totalPages:I,onPageChange:e=>j(e)})})})]})};const Tw={view:{name:"Seleccionados"},type:null,heading:null,subHeading:null,provider:null};var Pw=e=>{let{dispatch:t=(()=>{}),listLoading:a=!1,setSelected:o=(()=>{}),setOpenLabelEditionModal:n=(()=>{}),setIsSelectionFromLocalStorage:r=(()=>{}),isSelectionFromLocalStorage:s=!1,labelConfigDataLoading:l=!1}=e;const c=localStorage.getItem("labelItems");let d=JSON.parse(c);Object(i.useEffect)((()=>{s&&!l&&n(!0)}),[s,l]),Object(i.useEffect)((()=>{if(d&&!a){t({type:HI,payload:{selectedProducts:d}});let e=Object.keys(d).map((e=>parseInt(e)));o(e),t({type:kI,payload:{selectedOptions:Tw}}),r(!0)}}),[]);const u=()=>{localStorage.removeItem("labelItems")};return Object(i.useEffect)((()=>(window.addEventListener("beforeunload",u),()=>{window.removeEventListener("beforeunload",u)})),[]),{cleanupLabelItemsFromLocalStorage:u,setIsSelectionFromLocalStorage:r}};const Rw={title:Ti.a.t("successDownload"),img:Zf,closeButtonText:Ti.a.t("accept"),closeButtonIcon:"check",modalContainerStyle:{minHeight:100,paddingBottom:20},buttonIconStyle:{width:19,height:15,marginRight:5}},Nw=(e,t)=>{let a;switch(e){case"LABEL_BARCODE_LENGTH_MAX":a=Ti.a.t("labelBarCodeLengthMax");break;case"LABEL_BARCODE_CONTROLNUMBER_DISTINCT":a=t.errorMessage;break;case"LABEL_BARCODE_LENGTH_DISTINC":a=Ti.a.t("labelBarCodeLabelLengthDistinct");break;default:a=Ti.a.t("defaultError")}return a};var Lw=Ei((()=>{var e;const t=Yi().props.value.dataUser,{defaultCurrency:a,dataCurrency:o}=Hg(),{searchData:n,dispatch:r,fetchSubHeadings:s,searchProducts:l}=UI(),{searchText:d,searchResults:u,selectedProducts:m,selectedOptions:g,filters:b}=n,{view:h}=g,{list:x,listLoading:f,listError:v,totalPages:j,totalItems:A,totalItemsStored:C}=u,{labelConfigData:y,dispatchLabelConfig:O,sendDataToCreatePrintFile:S}
76=cw(t,o),{creationSuccess:E,creationLoading:I,creationError:w,creationErrorCode:T}=y.labelFileCreation,[P,R]=Object(i.useState)(!1),[N,L]=Object(i.useState)(!1),[k,B]=Object(i.useState)(!1),[D,F]=Object(i.useState)(!1),[M,V]=Object(i.useState)([]),[W,H]=Object(i.useState)(1),[U,_]=Object(i.useState)(null),[z,q]=Object(i.useState)(!1),{cleanupLabelItemsFromLocalStorage:G}=Pw({dispatch:r,listLoading:f,setSelected:V,setOpenLabelEditionModal:B,setIsSelectionFromLocalStorage:q,isSelectionFromLocalStorage:z,labelConfigDataLoading:y.userLabelPrintingConfigLoading}),Y=(null===(e=Object.entries(m))||void 0===e?void 0:e.length)<=0||Object.entries(m).some((e=>{let[t,a]=e;return a.barcode&&(a.barcode.length>0||""!==a.barcode)}));Object(i.useEffect)((()=>{E&&X(),(E||w)&&(B(!k),q(!1),L(!0))}),[E,w]),Object(i.useEffect)((()=>{l({searchText:d,page:W,filters:g})}),[]);Object(i.useEffect)((()=>{if(D&&!w){var e,t;const a={fields:null===y||void 0===y||null===(e=y.userLabelPrintingConfig)||void 0===e||null===(t=e.fields)||void 0===t?void 0:t.filter((e=>"C\xf3digo de barra"!==e)),barcodeFormat:null,printer:y.userLabelPrintingConfig.printer,labelQuantity:y.userLabelPrintingConfig.labelQuantity,labelSize:y.userLabelPrintingConfig.labelSize};O({type:$I,payload:{userLabelPrintingConfig:a}})}F(!1)}),[D,w]);const K=()=>{l({searchText:"",page:1,filters:""}),r({type:RI,payload:""}),_(null),H(1)},X=()=>{r({type:LI}),K()},Z=(e,t,a)=>{let i;i=a.target.checked&&!t?{...m,...e}:((e,t)=>{const a={};return Object.keys(e).forEach((i=>{const o=e[i].id;Object.values(t).some((e=>e.id===o))||(a[i]={...e[i]})})),a})(m,e),r({type:HI,payload:{selectedProducts:i}})},Q={selected:M,selectedProducts:m,view:h,page:W,list:x,listLoading:f,listError:v,totalPages:j,totalItems:A,searchText:d,totalItemsStored:C,headingList:b.headingList,dataCurrency:o,selectedOptions:g,userConfigIvaCondition:t,selectedListSearchText:U,isSelected:e=>-1!==M.indexOf(e),handleSelectClick:(e,t,a)=>{const i=M.indexOf(t);((e,t)=>{let a=m;a&&e in a?(delete a[e],r({type:VI,payload:a})):r({type:MI,payload:{id:e,product:t}})})(t,a);const o=-1===i?[...M,t]:[...M.slice(0,i),...M.slice(i+1)];V(o)},handleSelectAllClick:(e,t,a)=>{let i=a.map((e=>e.id));const o=(e=>e.reduce(((e,t)=>(e[t.id]={...t},e)),{}))(a);if(Z(o,t,e),e.target.checked&&!t){const e=((e,t)=>{const a=e.concat(t);
76return[...new Set(a)]})(i,M);V(e)}else{const e=(n=i,M.filter((e=>!n.includes(e))));V(e),"Seleccionados"===(null===h||void 0===h?void 0:h.name)&&e.length<50*(W-1)+1&&H(W-1)}var n},handlePageChange:e=>{H(e),window.scrollTo({top:0,left:0,behavior:"smooth"}),"Seleccionados"!==(null===h||void 0===h?void 0:h.name)&&l({searchText:d,page:e,filters:g})}},J={primaryDisabled:M.length<=0,secondaryButtonText:Ti.a.t("back"),primaryButtonText:Ti.a.t("next"),secondaryButtonClick:()=>{G(),window.open("/conceptos.aspx","_self")},primaryButtonClick:()=>{Y||F(!0),Object(c.b)("Etiquetas - Siguiente"),B(!k)},renderTitleComponent:()=>Object(p.jsx)(KI,{title:Ti.a.t("labelPrinting"),subTitle:Ti.a.t("selectPrintingItems")})},$={searchData:n,handleKeysPress:e=>{var t;"Enter"===e.key?(l({searchText:n.searchText,page:1,filters:g}),_(n.searchText),H(1)):"Backspace"===e.key&&0===(null===(t=n.searchText)||void 0===t?void 0:t.length)&&K()},handleToggleFilterModal:()=>R(!P),handleSearchClick:()=>{var e;"Seleccionados"===(null===g||void 0===g||null===(e=g.view)||void 0===e?void 0:e.name)?_(n.searchText):(_(null),l({searchText:d,page:1,filters:{selectedOptions:g}})),H(1)},handleClearBtnClick:e=>{r({type:LI}),l({searchText:d,page:1,filters:""}),H(1),e.stopPropagation()},handleInputSearchChange:e=>{r({type:RI,payload:e.target.value}),""===e.target.value&&(l({searchText:"",page:1,filters:g}),_(null),H(1))}},ee={searchData:n,dispatch:r,isOpen:P,handleCloseModal:()=>R(!P),fetchSubHeadings:s,handleSearchWithFilters:e=>{l({searchText:d,page:1,filters:e}),H(1)},setPage:H},te={labelConfigData:y,selectedTotal:M.length,selectedProducts:m,defaultCurrency:a,isOpen:k,creationLoading:I,dispatchLabelConfig:O,sendDataToCreatePrintFile:S,cleanupLabelItemsFromLocalStorage:G,hasItemWithBarcode:Y,handleCloseEditionModal:()=>{q(!1),B(!k)}},ae={title:Nw(null===T||void 0===T?void 0:T.code,y.userLabelPrintingConfig.barcodeFormat),img:kc,closeButtonText:Ti.a.t("close"),closeButtonType:"secondary",modalContainerStyle:{minHeight:100,paddingBottom:20}},ie={handleClose:w?()=>{L(!1),O({type:iw}),H(1),window.scrollTo({top:0,left:0,behavior:"smooth"})}:()=>{L(!1),O({type:iw}),r({type:WI}),V([]),setTimeout((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),100)},showBtn:1,open:N,...w?{...ae}:{...Rw}};return Object(p.jsxs)(xm,{...J,children:[Object(p.jsx)(GI,{...$}),Object(p.jsx)(zI,{...ee}),Object(p.jsx)(ww,{...Q}),Object(p.jsx)(fw,{...te}),Object(p.jsx)(Kc,{...ie})]})}),"productLabels",!0);const kw={display:"flex",justifyContent:"center",alignItems:"center",minHeight:"calc(100vh - 100px)"};var Bw=e=>{let{component:t,requiredPlan:a,redirect:o,showRoute:n,...r}=e;const[s,c]=Object(i.useState)(!1),{userData:d,homeUrl:u}=Object(i.useContext)(Qa);if(Object(i.useEffect)((()=>{null!==d&&void 0!==d&&d.plan_name||c(!0)}),[d]),!s)return Object(p.jsx)("div",{style:kw,children:Object(p.jsx)(Od.a,{style:{color:"#00A692"}})});const m=a.split(",").map((e=>e.trim()));return Object(p.jsx)(l.b,{...r,render:e=>m.includes(null===d||void 0===d?void 0:d.plan_name)&&n?Object(p.jsx)(t,{...e}):Object(p.jsx)(l.a,{to:u})})};var Dw=e=>{let{component:t,auth:a,...i}=e;const o=(new L.a).get("Secure-1CBL"),n=localStorage.getItem("country"),r="Argentina"===n?"https://app.contabilium.com/v3/login":"Chile"===n?"https://app.contabilium.cl/v3/login":"Uruguay"===n?"https://app.contabilium.com.uy/v3/login":"Paraguay"===n?"https://app.contabilium.com.py/v3/login":"https://app.contabilium.com/v3/login";return Object(p.jsx)(l.b,{...i,render:e=>o?Object(p.jsx)(t,{...e}):Object(p.jsx)(l.a,{to:r})})};const Fw={ar:"https://app.contabilium.com/v3/login",cl:"https://app.contabilium.cl/v3/login",uy:"https://app.contabilium.com.uy/v3/login",py:"https://app.contabilium.com.py/v3/login"},Mw={ar:"https://app.contabilium.com/",cl:"https://app.contabilium.cl/",uy:"https://app.contabilium.com.uy/",py:"https://app.contabilium.com.py/"};var Vw=e=>{var t,a,o,n;let{component:r,auth:s,...c}=e;const{permissionsRoles:d}=Object(i.useContext)(Ka),{userData:u,jwt:m}=Object(i.useContext)(Qa),g=Object(l.h)(),b=localStorage.getItem("country_prod"),h=e=>{const t=Mw[e]+"v3/dashboard";window.location.href=t};return Object(i.useEffect)((()=>
76{if(g.pathname===c.path&&(m||b&&(e=>{window.location.href=Fw[e]})(b),u&&null!=d)){const e=d,t=u.user_type,a=u.plan_name,i=e.hasOwnProperty("2"),o=e[2],n=null===o||void 0===o?void 0:o.includes(38),r=null===o||void 0===o?void 0:o.includes(39);"Basic"===a&&(e=>{const t=Mw[e]+"modulos/seguridad/elegir-plan.aspx";window.location.href=t})(b),0!==e.length&&("B"===t&&!1===i&&h(b),"C"!==t||i&&(n||r)||h(b))}}),[b,u,m,null===d||void 0===d||null===(t=d.props)||void 0===t||null===(a=t.value)||void 0===a?void 0:a.permissionsRoles,null===d||void 0===d||null===(o=d.props)||void 0===o||null===(n=o.value)||void 0===n?void 0:n.rolSales]),Object(p.jsx)(l.b,{...c,render:e=>Object(p.jsx)(r,{...e})})};const Ww={ar:"https://app.contabilium.com/v3/login",cl:"https://app.contabilium.cl/v3/login",uy:"https://app.contabilium.com.uy/v3/login"},Hw={ar:"https://app.contabilium.com/",cl:"https://app.contabilium.cl/",uy:"https://app.contabilium.com.uy/"};var Uw=e=>{let{component:t,auth:a,...o}=e;const n=Object(l.h)(),{userData:r,jwt:s}=Object(i.useContext)(Qa),c=localStorage.getItem("country_prod"),d=(Za.a.enterprise.id,Za.a.basicNew.id,Za.a.basic.id,[Za.a.prueba.id,Za.a.freemium.id,Za.a.basic.id,Za.a.basicNew.id,Za.a.standard.id,Za.a.standardNew.id,Za.a.pro.id,Za.a.proNew.id]),u=e=>{const t=e!==mx.a.ARG.value?Hw[e]+"v3/dashboard":"https://app.contabilium.com/v3/dashboard";window.location.href=t};return Object(i.useEffect)((()=>{const e=n.pathname.startsWith("/v3/account"),t=n.pathname.startsWith("/v3/account/notifications");if(!e)return;if(s||c&&(e=>{window.location.href=Ww[e]})(c),!r)return;const a=(null===r||void 0===r?void 0:r.user_type)===tn.administrator.value&&null===r.additional_id,i=a&&null!==r.parent_id,o=d.includes(r.plan_id),l=!a||i||o;if(r){const e=r.user_type;e!==tn.customized.value&&e!==tn.restricted.value||u(c)}t&&l&&u(c)}),[n.pathname,c,r,s]),Object(p.jsx)(l.b,{...o,render:e=>t?Object(p.jsx)(t,{...e}):null})};var _w=e=>{let{component:t,auth:a,...i}=e;const o=localStorage.getItem("secret");return Object(p.jsx)(l.b,{...i,render:e=>""===o||void 0===o?Object(p.jsx)(l.a,{to:"/v3/login/recoverpass"}):Object(p.jsx)(t,{...e})})};var zw=e=>{let{component:t,auth:a,...o}=e;const n=(new L.a).get("Secure-1CBL"),{userData:r}=Object(i.useContext)(Qa);return Object(i.useEffect)((()=>{var e;if(null===r||void 0===r||!r.plan_id)return;null===(e=window.location.pathname)||void 0===e||e.toLowerCase().replace(/\/$/,"")}),[r]),Object(p.jsx)(l.b,{...o,render:e=>{var a;if(""===n||void 0===n)return Object(p.jsx)(l.a,{to:"/v3/login/recoverpass"});if("/v3/dashboard"===(null===(a=window.location.pathname)||void 0===a?void 0:a.toLowerCase().replace(/\/$/,""))){if(r&&!Object(BA.i)(r))return Object(p.jsx)(l.a,{to:BA.c});if(null===r||void 0===r||!r.plan_id)return null}return Object(p.jsx)(t,{...e})}})};const qw=Object(i.createContext)(),Gw=e=>{let{children:t}=e;const{usersConfig:a,usersLoading:o,usersError:n,fetchUsersConfigurationReducer:r}=Eb(),[s,l]=Object(i.useState)((()=>{const e=sessionStorage.getItem("usersConfig");return e?JSON.parse(e):null})),[c,d]=Object(i.useState)(!s),u=Object(i.useRef)(!1);return Object(i.useEffect)((()=>{a&&(sessionStorage.setItem("usersConfig",JSON.stringify(a)),l(a),d(!1),u.current=!1)}),[a]),Object(i.useEffect)((()=>{n&&(u.current=!0,d(!1))}),[n]),Object(i.useEffect)((()=>{s||u.current||(d(!0),r())}),[r,s]),Object(p.jsx)(qw.Provider,{value:{usersConfig:s,usersLoading:c||o,usersError:n},children:t})};var Yw=function(e){let{children:t}=e;const a=Object(BA.q)();var i;if(null!==a&&void 0!==a&&a.jwtData&&Object(BA.w)(a.jwtData)&&((null===(i=window.location.pathname)||void 0===i?void 0:i.replace(/\/$/,""))||"")!==BA.c.replace(/\/$/,""))return window.location.href=BA.c,null;return t};function Kw(e){let{children:t}=e;return Object(p.jsx)(g,{children:Object(p.jsx)(Ja,{children:Object(p.jsx)(Yw,{children:Object(p.jsx)(Gw,{children:Object(p.jsx)(Si,{children:Object(p.jsx)(Xa,{children:Object(p.jsx)(en,{children:Object(p.jsx)(Mi,{children:Object(p.jsx)(gO,{children:Object(p.jsx)(zi,{children:Object(p.jsx)(Hi,{children:t})})})})})})})})})})})}var Xw=a(726),Zw=a(66),Qw=a(306),Jw=(a(554),a(555),a(100));var $w=Object(T.a)((e=>{let{className:t,...a}=e;return Object(p.jsx)(vC.a,{...a,arrow:!0,classes:{popper:t}})}))((e=>{let{theme:t}=e;return{[`& .${Jw.a.arrow}`]:{color:t.palette.common.black},[`& .${Jw.a.tooltip}`]:{backgroundColor:t.palette.common.black,maxWidth:"133px",justifyContent:"center",alignItems:"center",textAlign:"center",fontFamily:"Work Sans, sans-serif!important",fontSize:"12px",color:"#fff",letterSpacing:"normal",fontWeight:"300",lineHeight:"15px"}}}));const eT={bag:"0 0 20 20",user:"0 0 20 20",check:"0 0 20 20",print:"0 0 20 20",alert:"0 0 30 30",infoCircle:"0 0 30 30"},tT={clock:"M11.75 2C6.374 2 2 6.374 2 11.75c0 5.377 4.374 9.75 9.75 9.75 5.377 0 9.75-4.373 9.75-9.75C21.5 6.374 17.127 2 11.75 2zm0 1.625a8.112 8.112 0 0 1 8.125 8.125 8.112 8.112 0 0 1-8.125 8.125 8.112 8.112 0 0 1-8.125-8.125 8.112 8.112 0 0 1 8.125-8.125zm-.813 
761.625v7.313h5.688v-1.626h-4.063V5.25h-1.624z",clock2:"M 16 4 C 9.382813 4 4 9.382813 4 16 C 4 22.617188 9.382813 28 16 28 C 22.617188 28 28 22.617188 28 16 C 28 9.382813 22.617188 4 16 4 Z M 16 6 C 21.535156 6 26 10.464844 26 16 C 26 21.535156 21.535156 26 16 26 C 10.464844 26 6 21.535156 6 16 C 6 10.464844 10.464844 6 16 6 Z M 15 8 L 15 17 L 22 17 L 22 15 L 17 15 L 17 8 Z",alert:"M11.75 2C6.374 2 2 6.374 2 11.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.126 2 11.75 2zm0 1.5A8.24 8.24 0 0 1 20 11.75 8.24 8.24 0 0 1 11.75 20a8.24 8.24 0 0 1-8.25-8.25 8.24 8.24 0 0 1 8.25-8.25zM11 7.25v1.5h1.5v-1.5H11zm0 3v6h1.5v-6H11z",alert2:"M 16 3 C 8.832031 3 3 8.832031 3 16 C 3 23.167969 8.832031 29 16 29 C 23.167969 29 29 23.167969 29 16 C 29 8.832031 23.167969 3 16 3 Z M 16 5 C 22.085938 5 27 9.914063 27 16 C 27 22.085938 22.085938 27 16 27 C 9.914063 27 5 22.085938 5 16 C 5 9.914063 9.914063 5 16 5 Z M 15 10 L 15 12 L 17 12 L 17 10 Z M 15 14 L 15 22 L 17 22 L 17 14 Z",paymentIcon:"M2.667 1.333v26h16v-2h-14v-22h10v6h6v2h2v-3.4l-.301-.299-6-6-.3-.3h-13.4zm14 3.4 2.6 2.6h-2.6v-2.6zm-10 6.6v2h12v-2h-12zm17 2v2c-1.7.3-3 1.7-3 3.5 0 2 1.5 3.5 3.5 3.5h1c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5h-3.5v2h2v2h2v-2c1.7-.3 3-1.7 3-3.5 0-2-1.5-3.5-3.5-3.5h-1c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5h3.5v-2h-2v-2h-2zm-17 3v2h7v-2h-7zm9 0v2h3v-2h-3zm-9 4v2h7v-2h-7zm9 0v2h3v-2h-3z",arrowLeft:"M 19.03125 4.28125 L 8.03125 15.28125 L 7.34375 16 L 8.03125 16.71875 L 19.03125 27.71875 L 20.46875 26.28125 L 10.1875 16 L 20.46875 5.71875 Z",arrowRight:"M 12.96875 4.28125 L 11.53125 5.71875 L 21.8125 16 L 11.53125 26.28125 L 12.96875 27.71875 L 23.96875 16.71875 L 24.65625 16 L 23.96875 15.28125 Z",arrowRight2:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z",boxesIcon:"M16.659 4v1.19a3.076 3.076 0 0 0-1.674 1.464 2.925 2.925 0 0 0-.264 1.946 3.061 3.061 0 0 0 1.268 1.883c.48.325 1.055.517 1.67.517.142 0 .276.027.396.076a.96.96 0 0 1 .528.527c.049.121.076.255.076.397a.976.976 0 0 1-.604.924c-.12.049-.254.076-.396.076-.143 0-.276-.027-.396-.076a.96.96 0 0 1-.528-.527A1.045 1.045 0 0 1 16.66 12h-2a2.948 2.948 0 0 0 .857 2.076 3.066 3.066 0 0 0 1.143.734V16h2v-1.19c1.16-.42 2-1.52 2-2.81 0-1.435-1.041-2.655-2.4-2.938a2.94 2.94 0 0 0-.6-.062c-.143 0-.276-.027-.396-.076a.961.961 0 0 1-.528-.528A1.045 1.045 0 0 1 16.66 8c0-.143.027-.276.076-.396a.962.962 0 0 1 .211-.317.996.996 0 0 1 .713-.287c.57 0 1 .43 1 1h2a2.948 2.948 0 0 0-.148-.924 3.046 3.046 0 0 0-1.852-1.887V4h-2zm-6.484 14c-1.031.004-1.817.266-1.817.266l-.02.007-5.671 2.176 1.984 5.57 4.93-1.89 7.137 3.93 12.324-5.106-.766-1.844-11.437 4.735-7.102-3.91-3.89 1.488-.641-1.805 3.797-1.457c.009-.004.476-.16 1.172-.16.703 0 1.522.156 2.222.79l.014.007.004.004c1.03.895 1.808 1.52 2.89 1.86 1.082.34 2.31.378 4.36.37l-.01-2c-2.012.008-3.063-.063-3.75-.281-.688-.211-1.176-.59-2.168-1.45l-.012-.007c-1.157-1.039-2.531-1.297-3.55-1.293z",search:"M 19 3 C 13.488281 3 9 7.488281 9 13 C 9 15.394531 9.839844 17.589844 11.25 19.3125 L 3.28125 27.28125 L 4.71875 28.71875 L 12.6875 20.75 C 14.410156 22.160156 16.605469 23 19 23 C 24.511719 23 29 18.511719 29 13 C 29 7.488281 24.511719 3 19 3 Z M 19 5 C 23.429688 5 27 8.570313 27 13 C 27 17.429688 23.429688 21 19 21 C 14.570313 21 11 17.429688 11 13 C 11 8.570313 14.570313 5 19 5 Z",infoCircle:"M 16 3 C 8.832031 3 3 8.832031 3 16 C 3 23.167969 8.832031 29 16 29 C 23.167969 29 29 23.167969 29 16 C 29 8.832031 23.167969 3 16 3 Z M 16 5 C 22.085938 5 27 9.914063 27 16 C 27 22.085938 22.085938 27 16 27 C 9.914063 27 5 22.085938 5 16 C 5 9.914063 9.914063 5 16 5 Z M 15 10 L 15 12 L 17 12 L 17 10 Z M 15 14 L 15 22 L 17 22 L 17 14 Z",questionCircle:"M 16 4 C 9.382813 4 4 9.382813 4 16 C 4 22.617188 9.382813 28 16 28 C 22.617188 28 28 22.617188 28 16 C 28 9.382813 22.617188 4 16 4 Z M 16 6 C 21.535156 6 26 10.464844 26 16 C 26 21.535156 21.535156 26 16 26 C 10.464844 26 6 21.535156 6 16 C 6 10.464844 10.464844 6 16 6 Z M 16 10 C 13.800781 10 12 11.800781 12 14 L 14 14 C 14 12.882813 14.882813 12 16 12 C 17.117188 12 18 12.882813 18 14 C 18 14.765625 17.507813 15.445313 16.78125 15.6875 L 16.375 15.8125 C 15.558594 16.082031 15 16.863281 15 17.71875 L 15 19 L 17 19 L 17 17.71875 L 17.40625 17.59375 C 18.945313 17.082031 20 15.621094 20 14 C 20 11.800781 18.199219 10 16 10 Z M 15 20 L 15 22 L 17 22 L 17 20 Z",fileDollar:"M 6 3 L 6 29 L 22 29 L 22 27 L 8 27 L 8 5 L 18 5 L 18 11 L 24 11 L 24 13 L 26 13 L 26 9.5996094 L 25.699219 9.3007812 L 19.699219 3.3007812 L 19.400391 3 L 6 3 z M 20 6.4003906 L 22.599609 9 L 20 9 L 20 6.4003906 z M 10 13 L 10 15 L 22 15 L 22 13 L 10 13 z M 27 15 L 27 17 C 25.3 17.3 24 18.7 24 20.5 C 24 22.5 25.5 24 27.5 24 L 28.5 24 C 29.3 24 30 24.7 30 25.5 C 30 26.3 29.3 27 28.5 27 L 25 27 L 25 29 L 27 29 L 27 31 L 29 31 L 29 29 C 30.7 28.7 32 27.3 32 25.5 C 32 23.5 30.5 22 28.5 22 L 27.5 22 C 26.7 22 26 21.3 26 20.5 C 26 19.7 26.7 19 27.5 19 L 31 19 L 31 17 L 29 17 L 29 15 L 27 15 z M 10 18 L 10 20 L 17 20 L 17 18 L 10 18 z M 19 18 L 19 20 L 22 20 L 22 18 L 19 18 z M 10 22 L 10 24 L 17 24 L 17 22 L 10 22 z M 19 22 L 19 24 L 22 24 L 22 22 L 19 22 z",receipt:"M 7 5.375 L 7 13 L 3 13 L 3 27 L 29 27 L 29 13 L 25 13 L 25 5.375 L 22 6.875 L 20 5.875 L 18 6.875 L 16 5.875 L 14 6.875 L 12 5.875 L 10 6.875 Z M 12 8.125 L 14 9.125 L 16 8.125 
76L 18 9.125 L 20 8.125 L 22 9.125 L 23 8.625 L 23 17 L 9 17 L 9 8.625 L 10 9.125 Z M 5 15 L 7 15 L 7 19 L 25 19 L 25 15 L 27 15 L 27 25 L 5 25 Z M 9 21 L 9 23 L 11 23 L 11 21 Z M 13 21 L 13 23 L 15 23 L 15 21 Z M 17 21 L 17 23 L 19 23 L 19 21 Z M 21 21 L 21 23 L 23 23 L 23 21 Z",ellipsisH:"M 6 14 C 4.894531 14 4 14.894531 4 16 C 4 17.105469 4.894531 18 6 18 C 7.105469 18 8 17.105469 8 16 C 8 14.894531 7.105469 14 6 14 Z M 16 14 C 14.894531 14 14 14.894531 14 16 C 14 17.105469 14.894531 18 16 18 C 17.105469 18 18 17.105469 18 16 C 18 14.894531 17.105469 14 16 14 Z M 26 14 C 24.894531 14 24 14.894531 24 16 C 24 17.105469 24.894531 18 26 18 C 27.105469 18 28 17.105469 28 16 C 28 14.894531 27.105469 14 26 14 Z",ellipsisV:"M 16 6 C 14.894531 6 14 6.894531 14 8 C 14 9.105469 14.894531 10 16 10 C 17.105469 10 18 9.105469 18 8 C 18 6.894531 17.105469 6 16 6 Z M 16 14 C 14.894531 14 14 14.894531 14 16 C 14 17.105469 14.894531 18 16 18 C 17.105469 18 18 17.105469 18 16 C 18 14.894531 17.105469 14 16 14 Z M 16 22 C 14.894531 22 14 22.894531 14 24 C 14 25.105469 14.894531 26 16 26 C 17.105469 26 18 25.105469 18 24 C 18 22.894531 17.105469 22 16 22 Z",user:"M10.2607 0.859375C5.10876 0.859375 0.916992 5.05115 0.916992 10.2031C0.916992 15.3551 5.10876 19.5469 10.2607 19.5469C15.4127 19.5469 19.6045 15.3551 19.6045 10.2031C19.6045 5.05115 15.4127 0.859375 10.2607 0.859375ZM10.2607 2.29688C14.635 2.29688 18.167 5.82886 18.167 10.2031C18.167 14.5774 14.635 18.1094 10.2607 18.1094C5.88648 18.1094 2.35449 14.5774 2.35449 10.2031C2.35449 5.82886 5.88648 2.29688 10.2607 2.29688ZM10.2607 4.45312C8.28418 4.45312 6.66699 6.07031 6.66699 8.04688C6.66699 9.13623 7.17517 10.1049 7.94727 10.7646C6.33008 11.6041 5.22949 13.2943 5.22949 15.2344H6.66699C6.66699 13.241 8.26733 11.6406 10.2607 11.6406C12.2542 11.6406 13.8545 13.241 13.8545 15.2344H15.292C15.292 13.2943 14.1914 11.6041 12.5742 10.7646C13.3463 10.1049 13.8545 9.13623 13.8545 8.04688C13.8545 6.07031 12.2373 4.45312 10.2607 4.45312ZM10.2607 5.89062C11.4596 5.89062 12.417 6.84802 12.417 8.04688C12.417 9.24573 11.4596 10.2031 10.2607 10.2031C9.06189 10.2031 8.10449 9.24573 8.10449 8.04688C8.10449 6.84802 9.06189 5.89062 10.2607 5.89062Z",print:"M3.29199 0.777344V6.25781H0.416992V16.3203H19.1045V6.25781H16.2295V0.777344L14.0732 1.85547L12.6357 1.13672L11.1982 1.85547L9.76074 1.13672L8.32324 1.85547L6.88574 1.13672L5.44824 1.85547L3.29199 0.777344ZM6.88574 2.75391L8.32324 3.47266L9.76074 2.75391L11.1982 3.47266L12.6357 2.75391L14.0732 3.47266L14.792 3.11328V9.13281H4.72949V3.11328L5.44824 3.47266L6.88574 2.75391ZM1.85449 7.69531H3.29199V10.5703H16.2295V7.69531H17.667V14.8828H1.85449V7.69531ZM4.72949 12.0078V13.4453H6.16699V12.0078H4.72949ZM7.60449 12.0078V13.4453H9.04199V12.0078H7.60449ZM10.4795 12.0078V13.4453H11.917V12.0078H10.4795ZM13.3545 12.0078V13.4453H14.792V12.0078H13.3545Z",bag:"M7.25977 0.693359C5.45764 0.693359 3.97852 2.17249 3.97852 3.97461V4.63086H0.738281L0.697266 5.24609L0.
760410156 17.0586L0 17.7559H14.5195L14.4785 17.0586L13.8223 5.24609L13.7812 4.63086H10.541V3.97461C10.541 2.17249 9.06189 0.693359 7.25977 0.693359ZM7.25977 2.00586C8.34668 2.00586 9.22852 2.8877 9.22852 3.97461V4.63086H5.29102V3.97461C5.29102 2.8877 6.17285 2.00586 7.25977 2.00586ZM1.96875 5.94336H3.97852V7.91211H5.29102V5.94336H9.22852V7.91211H10.541V5.94336H12.5508L13.125 16.4434H1.39453L1.96875 5.94336Z",check:"M13.833 0.109375L5.19238 8.75L1.55176 5.10938L0.833008 5.82812L4.83301 9.82812L5.19238 10.1719L5.55176 9.82812L14.5518 0.828125L13.833 0.109375Z",padlock:"M5.75047 9.98635C3.14049 10.6246 1.10059 12.8374 1.10059 15.6419V24.2264C1.10059 28.3575 4.68945 31.4993 8.8504 31.4993H18.1502C22.3112 31.4993 25.9 28.3575 25.9 24.2264V15.6419C25.9 12.8374 23.8601 10.6246 21.2501 9.98635V8.24981C21.2501 3.96972 17.7804 0.5 13.5003 0.5C9.22019 0.5 5.75047 3.96972 5.75047 8.24981V9.98635ZM18.1502 8.24981V9.79978H8.8504V8.24981C8.8504 7.70634 8.94363 7.18465 9.11499 6.69985C9.75331 4.89385 11.4757 3.59993 13.5003 3.59993C15.5248 3.59993 17.2473 4.89385 17.8856 6.69985C18.0569 7.18465 18.1502 7.70634 18.1502 8.24981ZM4.20051 15.6419C4.20051 14.242 5.46925 12.8997 7.30044 12.8997H19.7001C21.5313 12.8997 22.8001 14.242 22.8001 15.6419V24.2264C22.8001 26.4166 20.8373 28.3993 18.1502 28.3993H8.8504C6.16318 28.3993 4.20051 26.4166 4.20051 24.2264V15.6419Z",padlock2:"M8.61832 17.5225C4.07247 18.6342 0.519531 22.4882 0.519531 27.3729V42.3246C0.519531 49.5199 6.77031 54.9919 14.0175 54.9919H30.2151C37.4624 54.9919 43.7131 49.5199 43.7131 42.3246V27.3729C43.7131 22.4882 40.1601 18.6342 35.6143 17.5225V14.498C35.6143 7.04326 29.571 1 22.1163 1C14.6616 1 8.61832 7.04326 8.61832 14.498V17.5225ZM30.2151 14.498V17.1976H14.0175V14.498C14.0175 13.5514 14.1799 12.6428 14.4784 11.7984C15.5901 8.65284 18.5901 6.39919 22.1163 6.39919C25.6425 6.39919 28.6426 8.65284 29.7543 11.7984C30.0526 12.6428 30.2151 13.5514 30.2151 14.498ZM5.91873 27.3729C5.91873 24.9346 8.12851 22.5968 11.3179 22.5968H32.9147C36.104 22.5968 38.3139 24.9346 38.3139 27.3729V42.3246C38.3139 46.1394 34.8954 49.5927 30.2151 49.5927H14.0175C9.33714 49.5927 5.91873 46.1394 5.91873 42.3246V27.3729Z",lock:"M5.75047 9.98635C3.14049 10.6246 1.10059 12.8374 1.10059 15.6419V24.2264C1.10059 28.3575 4.68945 31.4993 8.8504 31.4993H18.1502C22.3112 31.4993 25.9 28.3575 25.9 24.2264V15.6419C25.9 12.8374 23.8601 10.6246 21.2501 9.98635V8.24981C21.2501 3.96972 17.7804 0.5 13.5003 0.5C9.22019 0.5 5.75047 3.96972 5.75047 8.24981V9.98635ZM18.1502 8.24981V9.79978H8.8504V8.24981C8.8504 7.70634 8.94363 7.18465 9.11499 6.69985C9.75331 4.89385 11.4757 3.59993 13.5003 3.59993C15.5248 3.59993 17.2473 4.89385 17.8856 6.69985C18.0569 7.18465 18.1502 7.70634 18.1502 8.24981ZM4.20051 15.6419C4.20051 14.242 5.46925 12.8997 7.30044 12.8997H19.7001C21.5313 12.8997 22.8001 14.242 22.8001 15.6419V24.2264C22.8001 26.4166 20.8373 28.3993 18.1502 28.3993H8.8504C6.16318 28.3993 4.20051 26.4166 4.20051 24.2264V15.6419Z",close:"M 7.21875 5.78125 L 5.78125 7.21875 L 14.5625 16 L 5.78125 24.78125 
76L 7.21875 26.21875 L 16 17.4375 L 24.78125 26.21875 L 26.21875 24.78125 L 17.4375 16 L 26.21875 7.21875 L 24.78125 5.78125 L 16 14.5625 Z",cog:"M15.1416 2.91602L14.9707 3.80469L14.3213 7.05176C13.2788 7.46191 12.3389 8.0387 11.4844 8.72656L8.30566 7.63281L7.45117 7.35938L7.00684 8.14551L4.81934 11.9053L4.375 12.6914L5.02441 13.2725L7.48535 15.4258C7.39563 15.9855 7.28027 16.5452 7.28027 17.1348C7.28027 17.7244 7.39563 18.2841 7.48535 18.8438L5.02441 20.9971L4.375 21.5781L4.81934 22.3643L7.00684 26.124L7.45117 26.9102L8.30566 26.6367L11.4844 25.543C12.3389 26.2308 13.2788 26.8076 14.3213 27.2178L14.9707 30.4648L15.1416 31.3535H21.2939L21.4648 30.4648L22.1143 27.2178C23.1567 26.8076 24.0967 26.2308 24.9512 25.543L28.1299 26.6367L28.9844 26.9102L29.4287 26.124L31.6162 22.3643L32.0605 21.5781L31.4111 20.9971L28.9502 18.8438C29.0399 18.2841 29.1553 17.7244 29.1553 17.1348C29.1553 16.5452 29.0399 15.9855 28.9502 15.4258L31.4111 13.2725L32.0605 12.6914L31.6162 11.9053L29.4287 8.14551L28.9844 7.35938L28.1299 7.63281L24.9512 8.72656C24.0967 8.0387 23.1567 7.46191 22.1143 7.05176L21.4648 3.80469L21.2939 2.91602H15.1416ZM16.9189 5.10352H19.5166L20.0635 7.94043L20.2002 8.58984L20.8154 8.79492C22.0587 9.18372 23.1866 9.84167 24.1309 10.709L24.6094 11.1533L25.2246 10.9482L27.9932 9.99121L29.292 12.2129L27.1045 14.1611L26.5918 14.5713L26.7627 15.2207C26.9037 15.8445 26.9678 16.4811 26.9678 17.1348C26.9678 17.7885 26.9037 18.425 26.7627 19.0488L26.626 19.6982L27.1045 20.1084L29.292 22.0566L27.9932 24.2783L25.2246 23.3213L24.6094 23.1162L24.1309 23.5605C23.1866 24.4279 22.0587 25.0858 20.8154 25.4746L20.2002 25.6797L20.0635 26.3291L19.5166 29.166H16.9189L16.3721 26.3291L16.2354 25.6797L15.6201 25.4746C14.3768 25.0858 13.2489 24.4279 12.3047 23.5605L11.8262 23.1162L11.2109 23.3213L8.44238 24.2783L7.14355 22.0566L9.33105 20.1084L9.84375 19.6982L9.67285 19.0488C9.53186 18.425 9.46777 17.7885 9.46777 17.1348C9.46777 16.4811 9.53186 15.8445 9.67285 15.2207L9.84375 14.5713L9.33105 14.1611L7.14355 12.2129L8.44238 9.99121L11.2109 10.9482L11.8262 11.1533L12.3047 10.709C13.2489 9.84167 14.3768 9.18372 15.6201 8.79492L16.2354 8.58984L16.3721 7.94043L16.9189 5.10352ZM18.2178 11.666C15.21 11.666 12.749 14.127 12.749 17.1348C12.749 20.1426 15.21 22.6035 18.2178 22.6035C21.2256 22.6035 23.6865 20.1426 23.6865 17.1348C23.6865 14.127 21.2256 11.666 18.2178 11.666ZM18.2178 13.8535C20.0421 13.8535 21.499 15.3104 21.499 17.1348C21.499 18.9591 20.0421 20.416 18.2178 20.416C16.3934 20.416 14.9365 18.9591 14.9365 17.1348C14.9365 15.3104 16.3934 13.8535 18.2178 13.8535Z",building:"M4.3042 4.30444H21.3781V9.1827H28.6955V28.6957H4.3042V4.30444ZM26.2564 11.6218H21.3781V14.061H23.8172V16.5001H21.3781V18.9392H23.8172V21.3784H21.3781V23.8175H23.8172V26.2566H26.2564V11.6218ZM18.939 6.74357H6.74333V26.2566H9.18246V23.8175H16.4999V26.2566H18.939V6.74357ZM9.18246 9.1827H11.6216V11.6218H9.18246V9.1827ZM16.4999 9.1827H14.0607V11.6218H16.4999V9.1827ZM9.18246 14.061H11.6216V16.5001H9.18246V14.061ZM16.4999 14.061H14.0607V16.5001H16.4999V14.061ZM9.18246 18.9392H11.6216V21.3784H9.18246V18.9392ZM16.4999 18.9392H14.0607V21.3784H16.4999V18.9392Z",cogs:"M15.4371 3.58691V4.79751C14.7459 4.93633 14.0756 5.17952 13.5059 5.57122L12.6879 4.72972L11.1819 6.24377L12.0334 7.11756C11.6709 7.67974 11.4154 8.30741 11.2804 8.96735H10.2006V11.1195H11.2804C11.4154 11.7795 11.6709 12.4071 12.0334 12.9693L11.1819 13.8431L12.6879 15.3561L13.5059 14.5167C14.0745 14.9073 14.7459 15.1516 15.4371 15.2894V16.5H17.5316V15.2894C18.1705 15.1462 18.7716 14.9106 19.2995 14.549L20.0849 15.3561L21.5574 13.8431L20.7719 13.036C21.149 12.4646 21.4181 11.8168 21.5574 11.1195H22.7681V8.96735H21.5574C21.4208 8.28164 21.1539 7.63037 20.7719 7.05084L21.5574 6.24377L20.0839 4.72972L19.2984 5.53678C18.7716 5.17629 18.1694 4.94063 17.5316 4.79751V3.58691H15.4371ZM16.4194 6.81517C18.1652 6.81517 19.5613 8.24852 19.5613 10.0434C19.5613 11.8383 18.1652 13.2717 16.4194 13.2717C14.6725 13.2717 13.2776 11.8383 13.2776 10.0434C13.2776 8.24852 14.6725 6.81517 16.4194 6.81517ZM8.10606 16.5V17.6772C7.4155 17.8081 6.7583 18.0827 6.17487 18.4843L5.35693 17.6428L3.85094 19.1568L4.70238 20.0306C4.3399 20.5928 4.0844 21.2205 3.94938 21.8804H2.86963V24.0326H3.94938C4.08553 24.7051 4.34735 25.3239 4.70238 25.8824L3.85094 26.7561L5.35693 28.2702L6.17487 27.4287C6.7583 27.8302 7.4155 28.1049 8.10606 28.2358V29.413H10.2006V28.2024C10.8395 28.0593 11.4406 27.8236 11.9685 27.4621L12.7539 28.2691L14.2264 26.7561L13.4409 25.9491C13.8186 25.3793 14.0853 24.7398 14.2264 24.0659L15.4685 24.0326L15.4036 21.8804L14.2254 21.9137C14.0933 21.2163 13.8262 20.5532 13.4399 19.9639L14.2254 19.1568L12.7529 17.6428L11.9674 18.4498C11.4396 18.0893 10.8374 17.8537 10.1996 17.7106V16.5H8.10606ZM22.7681 16.5V17.7106C22.0769 17.8494 21.4066 18.0926 20.8369 18.4843L20.0189 17.6428L18.5129 19.1568L19.3644 20.0306C19.0019 20.5928 18.7464 21.2205 18.6114 21.8804H17.5316V24.0326H18.6114C18.7464 24.6925 19.0019 25.3202 19.3644 25.8824L18.5129 26.7561L20.0189 28.2702L20.8369 27.4287C21.4056 27.8204 22.0769 28.0636 22.7681 28.2024V29.413H24.8626V28.2024C25.4823 28.0569 26.0704 27.7945 26.597 27.4287L27.4159 28.2702L28.8884 26.7561L28.103 25.9491C28.48 25.3863 28.7449 24.7546 28.8884 24.0659L30.1305 24.0326L30.0656 21.8804L28.8874 21.9137C28.7512 21.2121 28.4454 20.5729 28.0684 19.9972L28.8874 19.1568L27.4138 17.6428L26.597 18.4843C26.0665 18.133 25.4791 17.8823 24.8626 17.7439V16.5H22.7681ZM9.08737 19.7282C10.8342 19.7282 12.2292 21.1616 12.2292 22.9565C12.2292 24.7514 10.8342 26.1847 9.08737 26.1847C7.34154 26.1847 5.94551 24.7514 5.94551 22.9565C5.94551 21.1616 7.34154 19.7282 9.08737 19.7282ZM23.7494 19.7282C25.4963 19.7282 26.8912 21.1616 26.8912 22.9565C26.8912 24.7514 25.4963 26.1847 23.7494 26.1847C22.0036 26.1847 20.6075 24.7514 20.6075 22.9565C20.6075 21.1616 22.0036 19.7282 23.7494 19.7282Z",card:"M5.15625 6.1875C3.46033 6.1875 2.0625 7.58533 2.0625 9.28125V23.7188C2.0625 25.4147 3.46033 26.8125 5.15625 26.8125H27.8438C29.5397 26.8125 30.9375 25.4147 30.9375 23.7188V9.28125C30.9375 7.58533 29.5397 6.1875 27.8438 6.1875H5.15625ZM5.15625 8.25H27.8438C28.4279 8.25 28.875 8.69714 28.875 9.28125V11.3438H5.15625V13.4063H28.875V23.7188C28.875 24.3029 28.4279 24.75 27.8438 24.75H5.15625C4.57214 24.75 4.125 24.3029 4.125 23.7188V9.28125C4.125 8.69714 4.57214 8.25 5.15625 8.25Z",users:"M20.5731 26.5563V24.3214C20.573 23.5189 20.2599 22.749
761 19.7022 22.1815C19.1442 21.6139 18.3868 21.2954 17.5978 21.2954H8.81123C8.02229 21.2955 7.26581 21.614 6.7079 22.1815C6.15006 22.7491 5.836 23.5188 5.8359 24.3214V26.5563C5.8359 27.3532 5.20123 28 4.41795 28C3.63466 28 3 27.3532 3 26.5563V24.3214C3.00011 22.7534 3.61239 21.2497 4.70218 20.1409C5.79204 19.0322 7.26999 18.4091 8.81123 18.4091H17.5978C19.1391 18.4091 20.618 19.0321 21.7079 20.1409C22.7976 21.2496 23.41 22.7535 23.4101 24.3214V26.5563C23.4101 27.3532 22.7743 28 21.9911 28C21.2079 27.9998 20.5731 27.3531 20.5731 26.5563ZM27.163 26.5563V24.3225C27.1625 23.652 26.9436 23.0007 26.5399 22.4707C26.136 21.9407 25.5703 21.5613 24.9321 21.3937C24.1739 21.1944 23.7176 20.4082 23.9131 19.6368C24.1089 18.8652 24.8827 18.4009 25.641 18.6001C26.8878 18.9276 27.9926 19.6675 28.7816 20.7029C29.5703 21.7382 29.999 23.0105 30 24.3204V26.5563C30 27.3531 29.3652 27.9987 28.5821 27.9989C27.7988 27.9989 27.163 27.3532 27.163 26.5563ZM16.1798 10.9123C16.1798 9.24068 14.8476 7.88524 13.2045 7.88523C11.5614 7.88523 10.2292 9.24068 10.2292 10.9123C10.2292 12.584 11.5614 13.9394 13.2045 13.9394C14.8476 13.9394 16.1798 12.584 16.1798 10.9123ZM22.7783 10.9178C22.7783 10.2458 22.558 9.59244 22.153 9.06158C21.748 8.53088 21.1807 8.15229 20.5409 7.98562C19.7822 7.78789 19.3245 7.00178 19.5188 6.22982C19.7131 5.45793 20.4858 4.9923 21.2445 5.18988C22.4946 5.51551 23.6024 6.25561 24.3936 7.29269C25.1848 8.32974 25.6142 9.60498 25.6142 10.9178C25.6142 12.2307 25.1849 13.5069 24.3936 14.544C23.6024 15.5808 22.4945 16.3201 21.2445 16.6457C20.4857 16.8433 19.7131 16.3777 19.5188 15.6057C19.3247 14.8338 19.7822 14.0476 20.5409 13.8499C21.1808 13.6832 21.748 13.3048 22.153 12.774C22.5581 12.2431 22.7783 11.5899 22.7783 10.9178ZM19.0157 10.9123C19.0157 14.1778 16.4142 16.8246 13.2045 16.8246C9.99484 16.8246 7.39328 14.1778 7.39328 10.9123C7.39332 7.64685 9.99486 5 13.2045 5C16.4141 5.00001 19.0157 7.64686 19.0157 10.9123Z",box:"M9.10938 5.5L8.78711 5.91895L5.5 10.3018V28.1875H28.1875V10.3018L24.9004 5.91895L24.5781 5.5H9.10938ZM10.1406 7.5625H15.8125V9.625H8.59375L10.1406 7.5625ZM17.875 7.5625H23.5469L25.0938 9.625H17.875V7.5625ZM7.5625 11.6875H26.125V26.125H7.5625V11.6875ZM13.5566 13.75C12.9886 13.8024 12.5697 14.3099 12.6221 14.8779C12.6744 15.4459 13.182 15.8649 13.75 15.8125H19.9375C20.3081 15.8165 20.6545 15.6232 20.8439 15.3009C21.0292 14.9786 21.0292 14.5839 20.8439 14.2616C20.6545 13.9393 20.3081 13.746 19.9375 13.75H13.75C13.7178 13.75 13.6855 13.75 13.6533 13.75C13.6211 13.75 13.5889 13.75 13.5566 13.75Z",bank:"M16.5 4.125L16.0488 4.35059L5.73633 9.41016L5.15625 9.7002V11.4727H27.8438V9.7002L27.2637 9.41016L16.9512 4.35059L16.5 4.125ZM16.5 6.44531L22.5586 9.41016H10.4414L16.5 6.44531ZM7.21875 12.5039V22.8164H6.1875V24.8789H26.8125V22.8164H25.7812V12.5039H23.7188V22.8164H21.6562V12.5039H19.5938V22.8164H17.5312V12.5039H15.4688V22.8164H13.4062V12.5039H11.3438V22.8164H9.28125V12.5039H7.21875ZM4.125 25.9102V27.9727H28.875V25.9102H4.125Z",fileDollar:"M3 3V28.0714H19V26.1429H5V4.92857H15V10.7143H21V12.6429H23V9.36391L22.6992 9.07575L16.6992 3.29004L16.4004 3H3ZM17 6.27895L19.5996 8.78571H17V6.27895ZM7 12.6429V14.5714H19V12.6429H7ZM24 14.5714V16.5C22.3 16.7893 21 18.1393 21 19.875C21 21.8036 22.5 23.25 24.5 23.25H25.5C26.3 23.25 27 23.925 27 24.6964C27 25.4679 26.3 26.1429 25.5 26.1429H22V28.0714H24V30H26V28.0714C27.7 27.7821 29 26.4321 29 24.6964C29 22.7679 27.5 21.3214 25.5 21.3214H24.5C23.7 21.3214 23 20.6464 23 19.875C23 19.1036 23.7 18.4286 24.5 18.4286H28V16.5H26V14.5714H24ZM7 17.4643V19.3929H14V17.4643H7ZM16 17.4643V19.3929H19V17.4643H16ZM7 21.3214V23.25H14V21.3214H7ZM16 21.3214V23.25H19V21.3214H16Z"};var aT=e=>{let{name:t,onClick:a,viewBox:i,...o}=e;const n=i||eT[t]||"0 0 32 32";return Object(p.jsx)(D.a,{onClick:a,viewBox:n,...o,children:Object(p.jsx)("path",{d:tT[t]})})};const iT=Object(u.a)((e=>({grid:{paddingTop:10,paddingLeft:0},row:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",marginLeft:0,flexWrap:"wrap"},title:{fontFamily:"Work Sans, sans-serif",fontSize:26,marginLeft:0,color:"#131313","@media (max-width:425px)":{order:1,marginBottom:4}},infoWrap:{display:"flex",alignItems:"center",gap:6,color:"#8A8A8A",whiteSpace:"nowrap","@media (max-width:425px)":{width:"100%",order:2,justifyContent:"flex-start",marginTop:2}},infoText:{fontFamily:"Work Sans, sans-serif",fontSize:12,color:"#8A8A8A"},infoIcon:{fontSize:14,color:"#8A8A8A"},headerTooltip:{flex:"0 0 auto",marginRight:"0px",fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#fff"},iconTooltipBtn:{background:"transparent",border:"none",right:-5,padding:0,zIndex:10,position:"relative",curs
76or:"pointer"},customizeButtonContainer:{marginLeft:12,[e.breakpoints.down(959)]:{display:"none"}}})));var oT=e=>{let{country:t="ar",lastUpdate:a,lastUpdateLoading:o,lastUpdateError:n,onCustomize:r,isEditMode:s=!1,allWidgetsDisabledForRestrictedUser:l=!1}=e;const[d,u]=Object(i.useState)(!1),m=iT(),g=Object(Zw.a)(),b=Object(Xw.a)(g.breakpoints.up(960)),h=!o&&!n&&Boolean(a)&&!l;return Object(p.jsx)(v.a,{container:!0,className:m.grid,children:Object(p.jsxs)("div",{className:m.row,children:[Object(p.jsx)(cn.a,{className:m.title,children:Ti.a.t("dashboard.dashboard")}),h&&Object(p.jsxs)("div",{className:m.infoWrap,"aria-label":Ti.a.t("dashboard.lastUpdate"),children:[Object(p.jsx)($w,{className:m.headerTooltip,title:"Se actualiza cada 24 horas",placement:"top",arrow:!0,open:d,onOpen:()=>u(!0),onClose:()=>u(!1),children:Object(p.jsx)("button",{className:m.iconTooltipBtn,onClick:()=>u((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{name:"alert",style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6}})})}),Object(p.jsxs)(cn.a,{className:m.infoText,children:[Ti.a.t("dashboard.dateDashboard")," ",a]}
76),r&&b&&!l&&Object(p.jsx)("div",{className:m.customizeButtonContainer,children:Object(p.jsx)(cr.a,{title:s?Ti.a.t("dashboard.tooltipCustomizeEditMode"):Ti.a.t("dashboard.tooltipCustomize"),placement:"top",arrow:!0,children:Object(p.jsx)("div",{children:Object(p.jsx)(si,{id:"dashboard-customize-button",showIcon:!0,iconType:"edit",iconViewBox:"0 2 20 20",type:"primary",medium:!0,iconStyle:{width:16,height:16,marginRight:6},onClick:()=>{Object(c.b)("Dashboard - Personalizar"),r&&r()},children:"Personalizar"})})})})]})]})})};const nT="#02C1B0",rT="#E6E6E6",sT="#131313",lT=Object(u.a)((()=>({pill:{display:"inline-flex",alignItems:"center",gap:8,padding:"8px 10px",height:40,minHeight:44,borderRadius:12,border:`1px solid ${rT}`,background:"#fff",cursor:"pointer",textDecoration:"none",fontFamily:"Work Sans, sans-serif",fontSize:13,color:sT,transition:"border-color .15s ease, background .15s ease, opacity .15s",outline:"none",appearance:"none","&:link, &:visited":{color:sT,textDecoration:"none"},"&:hover, &:focus, &:active":{color:sT,textDecoration:"none",background:"#fff",borderColor:rT,boxShadow:"none",outline:"none"},"&[aria-disabled='true']":{pointerEvents:"none",cursor:"default"},"-webkit-tap-highlight-color":"transparent"},done:{borderColor:nT,background:"rgba(2,193,176,.08)"},index:{fontSize:14,color:"#8A8A8A",lineHeight:1},sep:{width:1,alignSelf:"stretch",background:"#E1E1E1",borderRadius:1,marginRight:4,marginLeft:2},iconWrap:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginTop:"2px",color:nT},iconWrapIconCheck:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginTop:"10px",marginRight:"-10px",color:nT},label:{whiteSpace:"nowrap"},labelDone:{color:nT,textDecoration:"line-through"}}))),cT=e=>{let{size:t=20,color:a=nT}=e;return Object(p.jsx)("svg",{role:"img","aria-label":"completado",width:t,height:t,viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",style:{marginTop:-3},children:Object(p.jsx)("path",{d:"M13 0L4.35938 8.64062L0.71875 5L0 5.71875L4 9.71875L4.35938 10.0625L4.71875 9.71875L13.7188 0.71875L13 0Z",stroke:a})})};function dT(e){let{index:t,label:a,completed:i=!1,href:o,onClick:n,disabled:r=!1,startIcon:s,endIcon:l,className:c,iconName:d}=e;const u=lT(),m=i||r,g={className:`${u.pill} ${i?u.done:""} ${c||""}`,"aria-disabled":m?"true":"false"},b=Object(p.jsxs)(p.Fragment,{children:[i?Object(p.jsx)("span",{className:u.iconWrapIconCheck,children:Object(p.jsx)(cT,{})}):Object(p.jsxs)(p.Fragment,{children:["undefined"!==typeof t&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)("span",{className:u.index,children:t}),Object(p.jsx)("span",{className:u.sep,"aria-hidden":"true"})]}),(s||d)&&Object(p.jsx)("span",{className:u.iconWrap,children:s||Object(p.jsx)(aT,{name:d,style:{color:"#00A692",width:20,height:20,marginTop:-3}})})]}),Object(p.jsx)("span",{className:`${u.label} ${i?u.labelDone:""}`,children:a}),l?Object(p.jsx)("span",{className:u.iconWrap,children:l}):null]});return o&&!r?Object(p.jsx)("a",{...g,href:o,onClick:n,children:b}):Object(p.jsx)("button",{...g,type:"button",onClick:r?void 0:n,children:b})}function uT(e){let{steps:t=[],onStepClick:a}=e;return Object(p.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:10},children:t.map(((e,t)=>Object(p.jsx)(dT,{index:t+1,label:e.label,href:e.href,iconName:e.iconName,completed:!!e.completed,disabled:!!e.disabled,onClick:()=>{a?a(e):e.href&&(window.location.href=e.href)}},e.key||t)))})}const pT=Object(u.a)((()=>({root:{width:"100%"},subline:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#7A7A7A",marginBottom:6},bar:{position:"relative",height:14,borderRadius:999,background:"#E6E6E6",overflow:"hidden"},fill:{position:"absolute",left:0,top:0,bottom:0,background:"#00C7AF",borderRadius:999,transition:"width 260ms ease",minWidth:0},pct:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",fontFamily:"Work Sans, sans-serif",fontWeight:600,fontSize:12,color:"#fff",textShadow:"0 1px 0 rgba(0,0,0,0.08)",pointerEvents:"none"},caption:{marginTop:6,fontFamily:"Work Sans, sans-serif",fontSize:12,color:"#7A7A7A"}})));function mT(e){let{percent:t=0,completedText:a,nextLabel:i}=e;const o=pT(),n=Math.max(0,Math.min(100,t));return Object(p.jsxs)("div",{className:o.root,children:[i&&Object(p.jsxs)("div",{className:o.subline,children:[Ti.a.t("next"),": ",i]}),Object(p.jsxs)("div",{className:o.bar,"aria-label":"progreso de configuraci\xf3n",children:[Object(p.jsx)("div",{className:o.fill,style:{width:`${n}%`}}),Object(p.jsx)("div",{className:o.pct,children:`${n}%`})]}),a&&Object(p.jsx)("div",{className:o.caption,children:a})]})}const gT=Object(u.a)((e=>({container:{background:"#fff",borderRadius:12,boxShadow:"0 1px 0 #E7E7E7",padding:"12px 16px"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},title:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:18,color:"#131313"},contentRow:{marginTop:10,display:"grid",gridTemplateColumns:"minmax(20%, 1fr) 1px auto",alignItems:"center",columnGap:16,rowGap:10,[e.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",gridTemplateRows:"auto auto"}},leftCol:{minWidth:"20%"},divider:{width:"100%",height:"100%",background:"#E7E7E7",borderRadius:1,[e.breakpoints.down("sm")]:{display:"none"}},rightCol:{minWidth:0,display:"flex",alignItems:"center"}
76,toggleBtn:{border:"none",background:"transparent",cursor:"pointer",padding:6,borderRadius:8}}))),bT=e=>{let{up:t=!1,size:a=22,color:i="#8C8C8C"}=e;return Object(p.jsx)("svg",{width:a,height:a,viewBox:"0 0 24 24",style:{transform:t?"rotate(180deg)":"none"},children:Object(p.jsx)("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})})};function hT(e){let{steps:t=[],defaultOpen:a=!0,onToggle:o,onStepClick:n,progress:r}=e;const s=gT(),[l,c]=Object(i.useState)(a);Object(i.useEffect)((()=>{o&&o(l)}),[l,o]);const{percent:d,nextLabel:u,completedText:m}=Object(i.useMemo)((()=>{var e;const a=Math.max(t.length,1),i=t.filter((e=>!!e.completed)).length;return{percent:i/a*100,nextLabel:(null===(e=t.find((e=>!e.completed)))||void 0===e?void 0:e.label)||"",completedText:`${i} de ${a} completados`}}),[t]);return Object(p.jsxs)("div",{className:s.container,children:[Object(p.jsxs)("div",{className:s.header,children:[Object(p.jsx)(cn.a,{className:s.title,component:"div",children:Ti.a.t("dashboard.completeConfiguration")}),Object(p.jsx)("button",{className:s.toggleBtn,onClick:()=>c((e=>!e)),"aria-expanded":l,"aria-label":l?Ti.a.t("dashboard.hide"):Ti.a.t("dashboard.show"),title:l?Ti.a.t("dashboard.hide"):Ti.a.t("dashboard.show"),children:Object(p.jsx)(bT,{up:l})})]}),l&&Object(p.jsxs)("div",{className:s.contentRow,children:[Object(p.jsx)("div",{className:s.leftCol,children:Object(p.jsx)(mT,{percent:Number.isFinite(r)?r:d,nextLabel:u,completedText:m})}),Object(p.jsx)("div",{className:s.divider}),Object(p.jsx)("div",{className:s.rightCol,children:Object(p.jsx)(uT,{steps:t,onStepClick:n})})]})]})}var xT=a(727),fT=a(754);const vT=Object(u.a)((e=>({card:{height:"170px",backgroundColor:"#FFFFFF",borderRadius:"10px",boxShadow:"0px 4px 10px 0px #00000005"},icon:{marginRight:"10px",flex:"0 0 auto"},cardHeader:{display:"flex",padding:"16px 16px 0 16px",alignItems:"center","@media (max-width: 780px)":{padding:"16px 16px 2px 16px"}},headerIcon:{flex:"0 0 auto",marginRight:"16px"},headerContent:{flex:"1 1 auto"},headerTooltip:{flex:"0 0 auto",marginRight:"8px",fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#fff"},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:"16px",color:"#666",paddingLeft:t?20:0,"@media (max-width: 780px)":{fontSize:"14px"}}},cardContentText:{fontFamily:"Work Sans, sans-serif",fontSize:"32px",color:"#131313",fontWeight:"500"},cardContentText2:{fontFamily:"Work Sans, sans-serif",fontSize:"24px",color:"#131313",paddingBottom:"10px",fontWeight:"500"},cardButton:{height:"25px",width:"146px",borderRadius:"50px",border:"solid 1px #666",backgroundColor:"#fff",fontFamily:"Work Sans, sans-serif",fontSize:"13px",display:"flex"},cardButton2:{height:"25px",width:"100%",borderRadius:"50px",border:"solid 1px #666",backgroundColor:"#fff",fontFamily:"Work Sans, sans-serif",fontSize:"13px",display:"flex"},iconTooltip:{backgroundColor:"#fff",border:"none","@media (max-width: 780px)":{padding:0}},buttonText:{fontFamily:"Work Sans, sans-serif",fontSize:"13px"}})));var jT=e=>{let{isEditMode:t=!1}=e;const a=vT({isEditMode:t}),[i,n]=o.a.useState("undefined"!==typeof window?window.innerWidth:1024);return o.a.useEffect((()=>{function e(){n(window.innerWidth)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),Object(p.jsxs)(Un.a,{className:a.card,children:[Object(p.jsx)("div",{className:a.cardHeader,children:Object(p.jsx)("div",{className:a.headerContent,children:Object(p.jsx)(fT.a,{animation:"wave",width:190,height:20,style:{borderRadius:0}})})}),i>=901?Object(p.jsx)(xT.a,{children:Object(p.jsxs)(di.a,{display:"flex",style:{alignItems:"center"},children:[Object(p.jsx)(di.a,{clone:!0,className:a.icon,children:Object(p.jsx)(fT.a,{animation:"wave",width:30,height:50,style:{borderRadius:0,marginRight:"20px",top:0,borderRight:0,borderBottom:0,marginLeft:0}})}),Object(p.jsx)(fT.a,{animation:"wave",width:221,height:50,style:{borderRadius:0}}),Object(p.jsx)(di.a,{sx:{justifyContent:"center",alignItems:"center",alignContent:"center",cursor:"pointer"}})]})}):Object(p.jsx)(xT.a,{style:{padding:"0 16px 16px 16px"},children:Object(p.jsxs)(di.a,{display:"flex",style:{alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[Object(p.jsx)(fT.a,{animation:"wave",width:200,height:50,style:{borderRadius:0}}),Object(p.jsx)(di.a,{sx:{justifyContent:"center",alignItems:"center",alignContent:"center",cursor:"pointer"}})]})})]})};
76function AT(){const{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}const CT=Object(u.a)((e=>({paperBase:{backgroundColor:"#FFFFFF",borderRadius:"10px",boxShadow:"0px 4px 10px 0px #00000005"},container:{padding:"10px 16px ",height:360,display:"flex",flexDirection:"column"}})));var yT=e=>{let{isGraph:t,noGraph:a}=e;const o=CT(),{width:n}=function(){const[e,t]=Object(i.useState)(AT());return Object(i.useEffect)((()=>{function e(){t(AT())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e}();return Object(p.jsx)(hr.a,{children:Object(p.jsx)("div",{className:o.container,children:n>=960&&n<=1087?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",maxWidth:"150px",mt:2,mx:2,mb:3},animation:"wave"}),t&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(hr.a,{container:!0,item:!0,justifyContent:"flex-start",alignItems:"center",direction:"row",children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{width:20,height:20,ml:2,mr:1,mb:3},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:150,height:30,ml:2,mb:3},animation:"wave"})]}),Object(p.jsxs)(hr.a,{container:!0,item:!0,justifyContent:"center",alignSelf:"flex-end",marginTop:7,children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:17,height:52,ml:2,mr:1,top:"71px"},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:17,height:83,ml:2,mr:1,top:"40px"},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:17,height:123,ml:2,mr:1},animation:"wave"})]})]}),a&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",mx:2,mb:3},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",mx:2,mb:3},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",mx:2,mb:3},animation:"wave"})]})]}):Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",maxWidth:"190px",mt:2,mx:2,mb:3},animation:"wave"}),t&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(hr.a,{container:!0,item:!0,justifyContent:"flex-start",alignItems:"center",direction:"row",children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{width:30,height:30,ml:2,mr:1,mb:3},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:221,height:30,ml:2,mb:3},animation:"wave"})]}),Object(p.jsxs)(hr.a,{container:!0,item:!0,justifyContent:"center",alignSelf:"flex-end",marginTop:7,children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:17,height:52,ml:2,mr:1,top:"71px"},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:17,height:83,ml:2,mr:1,top:"40px"},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{minWidth:17,height:123,ml:2,mr:1},animation:"wave"})]})]}),a&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",mx:2,mb:3},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",mx:2,mb:3},animation:"wave"}),Object(p.jsx)(fT.a,{variant:"rectangular",sx:{fontSize:"1rem",mx:2,mb:3},animation:"wave"})]})]})})})};const OT=e=>{let{className:t}=e;return Object(p.jsxs)("svg",{viewBox:"0 0 27 32",className:t,"aria-hidden":"true",children:[Object(p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75047 9.98635C3.14049 10.6246 1.10059 12.8374 1.10059 15.6419V24.2264C1.10059 28.3575 4.68945 31.4993 8.8504 31.4993H18.1502C22.3112 31.4993 25.9 28.3575 25.9 24.2264V15.6419C25.9 12.8374 23.8601 10.6246 21.2501 9.98635V8.24981C21.2501 3.96972 17.7804 0.5 13.5003 0.5C9.22019 0.5 5.75047 3.96972 5.75047 8.24981V9.98635Z",fill:"white"}),Object(p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75047 9.98635C3.14049 10.6246 1.10059 12.8374 1.10059 15.6419V24.2264C1.10059 28.3575 4.68945 31.4993 8.8504 31.4993H18.1502C22.3112 31.4993 25.9 28.3575 25.9 24.2264V15.6419C25.9 12.8374 23.8601 10.6246 21.2501 9.98635V8.24981C21.2501 3.96972 17.7804 0.5 13.5003 0.5C9.22019 0.5 5.75047 3.96972 5.75047 8.24981V9.98635ZM18.1502 8.24981V9.79978H8.8504V8.24981C8.8504 7.70634 8.94363 7.18465 9.11499 6.69985C9.75331 4.89385 11.4757 3.59993 13.5003 3.59993C15.5248 3.59993 17.2473 4.89385 17.8856 6.69985C18.0569 7.18465 18.1502 7.70634 18.1502 8.24981ZM4.20051 15.6419C4.20051 14.242 5.46925 12.8997 7.30044 12.8997H19.7001C21.5313 12.8997 22.8001 14.242 22.8001 15.6419V24.2264C22.8001 26.4166 20.8373 28.3993 18.1502 28.3993H8.8504C6.16318 28.3993 4.20051 26.4166 4.20051 24.2264V15.6419Z",fill:"#939393",stroke:"white"}),Object(p.jsx)("path",{d:"M15.1107 18.6984C15.1107 17.8424 14.4167 17.1484 13.5607 17.1484C12.7047 17.1484 12.0107 17.8424 12.0107 18.6984V21.7983C12.0107 22.6544 12.7047 23.3483 13.5607 23.3483C14.4167 23.3483 15.1107 22.6544 15.1107 21.7983V18.6984Z",fill:"#939393",stroke:"white"})]})},ST=e=>{let{className:t}=e;return Object(p.jsxs)("svg",{viewBox:"0 0 89 63",className:t,"aria-hidden":"true",children:[Object(p.jsx)("rect",{x:"18.4814",y:"2",width:"70",height:"11",rx:"5.5",fill:"#ECECEC"}),Object(p.jsx)("rect",{x:"18.5195",y:"52",width:"64",height:"11",rx:"5.5",fill:"#ECECEC"}),Object(p.jsx)("rect",{x:"0.519531",y:"27",width:"64",height:"11",rx:"5.5",fill:"#ECECEC"}),Object(p.jsx)("rect",{x:"75.5195",y:"27",width:"12",height:"12",rx:"6",fill:"#ECECEC"}),Object(p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.6183 17.5225C30.0725 18.6342 26.5195 22.4882 26.5195 27.3729V42.3246C26.5195 49.5199 32.7703 54.9919 40.0175 54.9919H56.2151C63.4624 54.9919 69.7131 49.5199 69.7131 42.3246V27.3729C69.7131 22.4882 66.1601 18.6342 61.6143 17.5225V14.498C61.6143 7.
7604326 55.571 1 48.1163 1C40.6616 1 34.6183 7.04326 34.6183 14.498V17.5225Z",fill:"white"}),Object(p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.6183 17.5225C30.0725 18.6342 26.5195 22.4882 26.5195 27.3729V42.3246C26.5195 49.5199 32.7703 54.9919 40.0175 54.9919H56.2151C63.4624 54.9919 69.7131 49.5199 69.7131 42.3246V27.3729C69.7131 22.4882 66.1601 18.6342 61.6143 17.5225V14.498C61.6143 7.04326 55.571 1 48.1163 1C40.6616 1 34.6183 7.04326 34.6183 14.498V17.5225ZM56.2151 14.498V17.1976H40.0175V14.498C40.0175 13.5514 40.1799 12.6428 40.4784 11.7984C41.5901 8.65284 44.5901 6.39919 48.1163 6.39919C51.6425 6.39919 54.6426 8.65284 55.7543 11.7984C56.0526 12.6428 56.2151 13.5514 56.2151 14.498ZM31.9187 27.3729C31.9187 24.9346 34.1285 22.5968 37.3179 22.5968H58.9147C62.104 22.5968 64.3139 24.9346 64.3139 27.3729V42.3246C64.3139 46.1394 60.8954 49.5927 56.2151 49.5927H40.0175C35.3371 49.5927 31.9187 46.1394 31.9187 42.3246V27.3729Z",fill:"#939393",stroke:"white"}),Object(p.jsx)("path",{d:"M50.9187 32.6996C50.9187 31.2086 49.7101 30 48.2191 30C46.7281 30 45.5195 31.2086 45.5195 32.6996V38.0988C45.5195 39.5898 46.7281 40.7984 48.2191 40.7984C49.7101 40.7984 50.9187 39.5898 50.9187 38.0988V32.6996Z",fill:"#939393",stroke:"white"})]})},ET=Object(u.a)((e=>({container:{height:e=>{let{size:t}=e;return"m"===t?360:170},display:"flex",flexDirection:"column"},headerRow:{display:"flex",alignItems:"center",padding:"10px 16px 0 16px",justifyContent:"space-between"},headerLeft:{display:"flex",alignItems:"center",gap:"8px"},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},headerTooltip:{flex:"0 0 auto",marginRight:"8px",fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#fff"},iconTooltipBtn:{background:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},bodyCentered:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:e.spacing(2),paddingTop:0},lockBig:{width:90,height:90,margin:e.spacing(2,0),color:"#CFCFCF"},titleCentered:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:400,color:"#666666",marginBottom:e.spacing(2.5),maxWidth:290},button:{textTransform:"none",fontWeight:400,fontSize:14,borderRadius:9999,padding:"6px 18px",border:"1px solid #BBBBBB",color:"#00A692",backgroundColor:"#fff",fontFamily:"Work Sans, sans-serif"},bodyCompact:{flex:1,display:"grid",padding:"8px 16px 16px 16px",columnGap:12},lockSmall:{width:40,height:40,color:"#CFCFCF",marginRight:"10px"},textCompact:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:400,color:"#666666",lineHeight:1.4},ctaLink:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#00A692",textDecoration:"none",cursor:"pointer","&:hover":{color:"#00A692",textDecoration:"none"}},containerCompact:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},containerLink:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"}})));function IT(e){let{size:t="s",nameWidget:a="",tooltip:o="",message:n=Ti.a.t("dashboard.noPermissionMessage"),ctaText:r=Ti.a.t("dashboard.upgradePlan"),onUpgradeClick:s,svgIcon:l,header:c="",showTooltip:d=!1,tooltipText:u="",blockedModuleModal:m="",noPermissionText:g="",showLimitationBanner:b=!0,isEditMode:h=!1}=e;const x=ET({size:t,isEditMode:h}),[f,v]=Object(i.useState)(!1),[j,A]=Object(i.useState)(!1),C=e=>{(e=>{e&&e.preventDefault(),A(!0)})(e)},y=l||OT,O=b?n:g||n;return Object(p.jsxs)("div",{className:x.container,children:[Object(p.jsx)("div",{className:x.headerRow,children:Object(p.jsxs)("div",{className:x.headerLeft,children:[(c||a)&&Object(p.jsx)("div",{className:x.headerText,children:c||a}),d&&u&&Object(p.jsx)($w,{className:x.headerTooltip,title:u||o,placement:"top",arrow:!0,open:f,onOpen:()=>v(!0),onClose:()=>v(!1),componentsProps:{tooltip:{sx:{maxWidth:"133px"}}},children:Object(p.jsx)("button",{className:x.iconTooltipBtn,onClick:()=>v((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{viewBox:"0 0 30 30",style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]})}),"m"===t?Object(p.jsxs)("div",{className:x.bodyCentered,children:[Object(p.jsx)(ST,{className:x.lockBig}),Object(p.jsx)("div",{className:x.titleCentered,children:O}),b&&Object(p.jsx)(zA.a,{className:x.button,onClick:C,disableRipple:!0,children:r})]}):Object(p.jsxs)("div",{className:x.bodyCompact,children:[Object(p.jsxs)("div",{className:x.containerCompact,children:[Object(p.jsx)(y,{className:x.lockSmall}
76),Object(p.jsx)("div",{className:x.textCompact,children:O})]}),b&&Object(p.jsx)("div",{className:x.containerLink,children:Object(p.jsx)("a",{href:"#",className:x.ctaLink,onClick:C,children:r})})]}),Object(p.jsx)(ki,{limitationKey:m||c,isOpen:j,handleClose:()=>A(!1),primaryButtonClick:e=>{e&&e.stopPropagation(),A(!1),"function"===typeof s?s():window.location.href="/modulos/seguridad/elegir-plan.aspx"}})]})}var wT,TT;function PT(){return PT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},PT.apply(null,arguments)}function RT(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",PT({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,wT||(wT=i.createElement("circle",{cx:16,cy:16,r:16,fill:"#FF2569",fillOpacity:.2})),TT||(TT=i.createElement("path",{d:"M10.38 9.45996L9.45996 10.38L15.08 16L9.45996 21.62L10.38 22.54L16 16.92L21.62 22.54L22.54 21.62L16.92 16L22.54 10.38L21.62 9.45996L16 15.08L10.38 9.45996Z",fill:"#FF2569"})))}const NT=i.forwardRef(RT);a.p;const LT=Object(u.a)((e=>({container:{height:e=>{let{size:t}=e;return"m"===t?360:170},display:"flex",flexDirection:"column"},headerRow:{display:"flex",alignItems:"center",padding:"10px 16px 0 16px",justifyContent:"space-between"},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,color:"#666",paddingLeft:t?20:0}},headerTooltip:{flex:"0 0 auto",marginRight:8,fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#fff"},iconTooltipBtn:{background:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},bodyCentered:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:e.spacing(2)},vectorBig:{width:100,height:100,marginBottom:e.spacing(2)},textCentered:{fontFamily:"Work Sans, sans-serif",fontSize:16,color:"#666",lineHeight:1.4},bodyCompact:{flex:1,display:"flex",alignItems:"center",padding:"0 16px 16px 16px"},vectorSmall:{width:27,height:32,marginRight:20},textCompact:{fontFamily:"Work Sans, sans-serif",fontSize:15,color:"#666",lineHeight:1.4}})));var kT=e=>{let{size:t="s",multicountry:a,nameWidget:o,tooltip:n,isEditMode:r=!1}=e;const[s,l]=Object(i.useState)(!1),c=LT({size:t,isEditMode:r});return Object(p.jsxs)("div",{className:c.container,children:[Object(p.jsxs)("div",{className:c.headerRow,children:[Object(p.jsx)("div",{className:c.headerText,children:o}),n&&Object(p.jsx)($w,{className:c.headerTooltip,title:n,placement:"top",arrow:!0,open:s,onOpen:()=>l(!0),onClose:()=>l(!1),children:Object(p.jsx)("button",{className:c.iconTooltipBtn,onClick:()=>l((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{viewBox:"0 0 35 35",style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]}),"m"===t?Object(p.jsxs)("div",{className:c.bodyCentered,children:[Object(p.jsx)(NT,{className:c.vectorBig}),Object(p.jsx)(cn.a,{className:c.textCentered,children:Ti.a.t("dashboard.error")}),a&&Object(p.jsx)(cn.a,{className:c.textCentered,children:a})]}):Object(p.jsxs)("div",{className:c.bodyCompact,children:[Object(p.jsx)(NT,{className:c.vectorSmall}
76),Object(p.jsxs)("div",{children:[Object(p.jsx)(cn.a,{className:c.textCompact,children:Ti.a.t("dashboard.errorText")}),a&&Object(p.jsx)(cn.a,{className:c.textCompact,children:a})]})]})]})};const BT=Object(u.a)((e=>({container:{height:e=>{let{size:t}=e;return"m"===t?360:170},display:"flex",flexDirection:"column"},header:{width:"100%",padding:e.spacing(2),paddingBottom:e.spacing(1.5),fontSize:16,fontWeight:400,color:"#111",textAlign:"left",fontFamily:"Work Sans, sans-serif"},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:"16px",fontWeight:400,color:"#131313",paddingLeft:t?20:0}},bodyCentered:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",textAlign:"center",padding:e.spacing(2),paddingTop:0,marginTop:-5},imageCentered:{height:e=>{let{size:t}=e;return"m"===t?167:122.22463989257812},margin:e.spacing(2,0)},title:{fontSize:15,fontWeight:400,color:"#666666",marginBottom:e.spacing(2),fontFamily:"Work Sans, sans-serif"},text:{fontSize:14,color:"#666",marginBottom:e.spacing(2),fontFamily:"Work Sans, sans-serif"},button:{textTransform:"none",fontWeight:400,fontSize:"14px",borderRadius:9999,padding:"8px 18px",border:"1px solid #131313",color:"#131313",backgroundColor:"#fff",fontFamily:"Work Sans, sans-serif",marginBottom:"5px"},bodyCompact:{flex:1,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:"0 16px 16px 16px",gap:16},imageCompact:{width:43,height:50,flex:"0 0 auto"},textCompact:{fontSize:15,fontWeight:400,color:"#666666",fontFamily:"Work Sans, sans-serif"},headerRow:{display:"flex",alignItems:"center",padding:"12px 16px 0 16px",justifyContent:"space-between"},headerLeft:{display:"flex",alignItems:"center",gap:8},headerTooltip:{flex:"0 0 auto",marginRight:"8px",fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#fff"},iconTooltipBtn:{backgroundColor:"#fff",border:"none",padding:0,zIndex:10,position:"relative",cursor:"pointer"}})));function DT(e){let{size:t="s",header:a="",svgIcon:o,title:n="",text:r="",buttonText:s="",buttonAction:l=null,compact:c,showTooltip:d=!1,tooltipText:u="",isEditMode:m=!1}=e;const g=BT({size:t,isEditMode:m}),[b,h]=Object(i.useState)(!1),x=null!==c&&void 0!==c?c:"s"===t&&!s,f=n||r;return Object(p.jsxs)("div",{className:g.container,children:[Object(p.jsx)("div",{className:g.headerRow,children:Object(p.jsxs)("div",{className:g.headerLeft,children:[a&&Object(p.jsx)("div",{className:g.headerText,children:a}),d&&u&&Object(p.jsx)($w,{className:g.headerTooltip,title:u,placement:"top",arrow:!0,open:b,onOpen:()=>h(!0),onClose:()=>h(!1),children:Object(p.jsx)("button",{className:g.iconTooltipBtn,onClick:()=>h((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:"24px",height:"24px",cursor:"pointer",marginTop:"6px"},name:"alert"})})})]})}),x?Object(p.jsxs)("div",{className:g.bodyCompact,children:[o&&("string"===typeof o?Object(p.jsx)("img",{src:o,className:g.imageCompact,alt:""}):Object(p.jsx)(o,{className:g.imageCompact})),f&&Object(p.jsx)("div",{className:g.textCompact,children:f})]}):Object(p.jsxs)("div",{className:g.bodyCentered,children:[o&&("string"===typeof o?Object(p.jsx)("img",{src:o,className:g.imageCentered,alt:""}):Object(p.jsx)(o,{className:g.imageCentered})),n&&Object(p.jsx)("div",{className:g.title,children:n}),s&&l&&Object(p.jsx)(zA.a,{className:g.button,onClick:l,children:s})]})]})}const FT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()},MT=Object(u.a)((e=>({paperBase:{backgroundColor:"#FFFFFF",borderRadius:"10px",boxShadow:"0px 4px 10px 0px #00000005",position:"relative",width:"100%",maxWidth:"100%",minWidth:0,overflow:"visible"},closeIcon:{position:"absolute",top:-8,right:-8,width:24,height:24,cursor:"pointer",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"}},dragHandle:{position:"absolute",left:10,width:20,height:20,cursor:"grab",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"auto",color:ui.a.grey600,"&:hover":{color:ui.a.primary400}},widgetContent:{overflow:"visible"},editModeWrapper:{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",width:"100%",maxWidth:"100%",minWidth:0},contentWrapper:{width:"100%",maxWidth:"100%",minWidth:0,overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch"}})));function VT(e){let{state:t,name:a,Component:i,tooltip:o,size:n="s",jwt:r,multicountry:s,emptyStateConfig:l={},componentProps:c={},skeletonProps:d={},blockedModuleModal:u,noPermissionText:m,noDataType:g="default",isEditMode:b=!1,onRemove:h,plan:x,setIsBlockedModalOpen:f,isDragging:v,widgetName:j}=e;const A=MT(),{defaultCurrency:C,loadingCurrency:y}=Vi(),O=(null===C||void 0===C?void 0:C.symbol)||null,S=FT(j||""),E=S?`${S}-widget`:void 0,I=S?`${S}-close-button`:void 0,w=["Ventas vs Compras","Ranking de clientes","Ventas por canal","Posici\xf3n IVA "],T=[Za.a.freemium.name,Za.a.basic.name,Za.a.basicNew.name],P=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!b||!e&&v?null:Object(p.jsx)(cr.a,{title:Ti.a.t("dashboard.tooltipRemoveWidget"),placement:"top",arrow:!0,children:Object(p.jsx)("div",{id:I,className:A.closeIcon,onClick:e=>{e.stopPropagation(),h&&h()},role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),h&&h())},"aria-label":"Eliminar widget",children:Object(p.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(p.jsx)("path",{d:"M0.663462 0L0 0.663462L4.05288 4.71635L0 8.76923L0.663462 9.43269L4.71635 5.37981L8.76923 9.43269L9.43269 8.76923L5.37981 4.71635L9.43269 0.663462L8.76923 0L4.71635 4.05288L0.663462 0Z",fill:"#F32465"})})})})},R=()=>
76{if(!b)return null;const e=()=>{if(T.includes(x))return f&&f(!0),!1},t=T.includes(x)?`${A.dragHandle} drag-handle no-drag`:`${A.dragHandle} drag-handle`;return Object(p.jsx)("div",{className:t,style:{top:w.includes(a)?20:15},onClick:e,onMouseDown:e,onPointerDown:e,onTouchStart:e,children:Object(p.jsx)(ni.a,{viewBox:"0 0 20 20",style:{width:16,height:20},name:"draggable"})})};if(!t||!1===t.visible)return null;const N={...l,size:n,tooltip:o,header:a,text:(null===l||void 0===l?void 0:l.text)||s,title:(null===l||void 0===l?void 0:l.title)||Ti.a.t("dashboard.noDataFor",{name:null===a||void 0===a?void 0:a.toLowerCase()})};if(t.loading||y||!O)return Object(p.jsxs)(tO.a,{id:E,className:A.paperBase,children:[P(!0),"m"===n?Object(p.jsx)(yT,{...d,isEditMode:b}):Object(p.jsx)(jT,{isEditMode:b})]});null!=(null===t||void 0===t?void 0:t.data)&&(Array.isArray(t.data)?t.data.length:Object.keys(t.data||{}).length);return t.noPermission?Object(p.jsxs)(tO.a,{id:E,className:A.paperBase,children:[R(),P(),Object(p.jsx)(IT,{size:n,nameWidget:a,tooltip:o,showTooltip:Boolean(null===l||void 0===l?void 0:l.showTooltip),tooltipText:(null===l||void 0===l?void 0:l.tooltipText)||o,blockedModuleModal:u,noPermissionText:m,showLimitationBanner:Boolean(null===t||void 0===t?void 0:t.limited),isEditMode:b})]}):t.isUnavailable?Object(p.jsx)(tO.a,{id:E,className:A.paperBase,children:Object(p.jsx)(DT,{...l,...N,buttonAction:null,size:n,title:Ti.a.t("dashboard.dashboardUnavailableText")})}):t.noData&&"none"!==g?Object(p.jsxs)(tO.a,{id:E,className:A.paperBase,children:[R(),P(),Object(p.jsx)(DT,{...N,isEditMode:b})]}):t.error?Object(p.jsxs)(tO.a,{id:E,className:A.paperBase,children:[R(),P(),Object(p.jsx)(kT,{size:n,nameWidget:a,tooltip:o,isEditMode:b})]}):Object(p.jsxs)(tO.a,{id:E,className:A.paperBase,children:[R(),P(),Object(p.jsx)("div",{className:b?A.editModeWrapper:A.contentWrapper,children:Object(p.jsx)(i,{data:t.data,jwt:r,header:a,showTooltip:Boolean(null===l||void 0===l?void 0:l.showTooltip),tooltipText:(null===l||void 0===l?void 0:l.tooltipText)||o,size:n,currencySymbol:O,...c})})]})}var WT,HT,UT,_T;function zT(){return zT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},zT.apply(null,arguments)}function qT(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",zT({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:100,height:100,viewBox:"0 0 100 100",fill:"none",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,WT||(WT=i.createElement("circle",{cx:50,cy:50,r:50,fill:"#FF2569",fillOpacity:.2})),HT||(HT=i.createElement("path",{d:"M42.5684 51.5234H31.4746V59.873H42.5684V51.5234ZM40.5273 57.8418H33.5059V53.5645H40.5273V57.8418Z",fill:"#F32465"})),UT||(UT=i.createElement("path",{d:"M62.4219 64.9707H42.4707V67.0117H62.4219V64.9707Z",fill:"#F32465"})),_T||(_T=i.createElement("path",{d:"M69.2383 26.0742H36.8262C34.2773 26.0742 32.1387 28.2129 32.1387 30.7617V44.707H30.7617C28.2129 44.707 26.0742 46.8457 26.0742 49.3945V69.2383C26.0742 71.7871 28.2129 73.9258 30.7617 73.9258H64.1602C66.709 73.9258 68.8477 71.7871 68.8477 69.1406V55.293H69.2578C71.8066 55.293 73.9453 53.1543 73.9453 50.5078V30.7617C73.9258 28.2129 71.7871 26.0742 69.2383 26.0742ZM36.8262 28.1152H69.2383C70.6641 28.1152 71.8848 29.3359 71.8848 30.7617V32.8027H34.1797V30.7617C34.1797 29.3359 35.4004 28.1152 36.8262 28.1152ZM66.7969 69.1406C66.7969 70.5664 65.5762 71.7871 64.1504 71.7871H30.7617C29.3359 71.7871 28.1152 70.5664 28.1152 69.1406V49.3848C28.1152 47.959 29.3359 46.7383 30.7617 46.7383H64.1602C65.5859 46.7383 66.8066 47.959 66.8066 49.3848V69.1406H66.7969ZM69.2383 53.2617H68.8281V49.3945C68.8281 46.8457 66.6895 44.707 64.1406 44.707H34.1797V34.834H71.8848V50.6152C71.8848 52.041 70.6641 53.2617 69.2383 53.2617Z",fill:"#F32465"})))}const GT=i.forwardRef(qT);a.p;const YT=Object(u.a)((e=>({root:{fontFamily:"Work Sans, sans-serif"},modal:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"#fff",border:"1px solid #E5E5E5",borderRadius:10,width:"min(600px, 92vw)",minHeight:420,boxShadow:"0 10px 24px rgba(0,0,0,.08)",padding:"24px 24px 16px",outline:"none",maxHeight:"95vh",overflowY:"auto"},closeBtnWrap:{display:"flex",justifyContent:"flex-end",marginTop:-8,marginRight:-8},closeBtn:{minWidth:0,padding:6,borderRadius:20,"&:hover":{background:"#F2F2F2"}},closeIcon:{color:"#666"},heroIconWrap:{display:"flex",justifyContent:"center",marginTop:6},title:{fontFamily:"Work Sans, sans-serif",fontSize:22,fontWeight:600,color:"#131313",textAlign:"center",marginTop:12},p:{fontFamily:"Work Sans, sans-serif",fontSize:15,color:"#131313",textAlign:"center",lineHeight:1.45,marginTop:12},strong:{fontWeight:600},danger:{color:"#F32465",fontWeight:600},infoBox:{marginTop:14,background:"#F8F8F8",border:"1px solid #EDEDED",borderRadius:8,padding:"14px 16px"},infoTitle:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:600,color:"#6C6C6C",marginBottom:6},infoList:{margin:0,paddingLeft:18},infoItem:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#6C6C6C",lineHeight:1.4,marginBottom:4},support:{marginTop:14,textAlign:"center",fontSize:14,color:"#6C6C6C","& a":{color:"#00A692",textDecoration:"none"},"& a:hover":{textDecoration:"underline"}},actions:{display:"grid",rowGap:10,justifyContent:"center",marginTop:18},payNow:{height:40,width:300,maxWidth:"90vw",borderRadius:999,textTransform:"none",fontWeight:600,fontSize:15,background:"#00A692",border:"2px s
76olid #00A692",fontFamily:"Work Sans, sans-serif",color:"#fff","&:hover":{background:"#007868",borderColor:"#007868"}},payLater:{fontFamily:"Work Sans, sans-serif",height:40,width:300,maxWidth:"90vw",borderRadius:999,textTransform:"none",fontSize:15,color:"#545454",background:"#F5F5F5","&:hover":{background:"#EBEBEB"}}})));var KT=e=>{const{open:t=!1,onClose:a,plan:o="Basic",days:n=0,route:r,textButton1:s=Ti.a.t("dashboard.payNow"),textButton2:l=Ti.a.t("dashboard.payLaterOverdue"),onClick:c,showWhy:d=!0,whyTitle:u=Ti.a.t("dashboard.overdueWhyTitle"),whyReasons:m=[Ti.a.t("dashboard.overdueWhy.reason1"),Ti.a.t("dashboard.overdueWhy.reason2"),Ti.a.t("dashboard.overdueWhy.reason3")]}=e,g=YT(),[b,h]=Object(i.useState)(t);Object(i.useEffect)((()=>h(t)),[t]);const x=()=>{h(!1),null===a||void 0===a||a()},f=o.replace("New","");return Object(p.jsx)(w.a,{open:b,onClose:x,className:g.root,sx:{zIndex:1e7},children:Object(p.jsxs)(y.a,{className:g.modal,role:"dialog","aria-labelledby":"overdue-title",children:[Object(p.jsx)("div",{className:g.closeBtnWrap,children:Object(p.jsx)(zA.a,{className:g.closeBtn,onClick:x,children:Object(p.jsx)(aT,{name:"close",className:g.closeIcon})})}),Object(p.jsx)("div",{className:g.heroIconWrap,children:Object(p.jsx)(GT,{"aria-hidden":!0})}),Object(p.jsx)(cn.a,{id:"overdue-title",className:g.title,children:Ti.a.t("dashboard.popupText1")}),Object(p.jsxs)(cn.a,{className:g.p,children:[Ti.a.t("dashboard.popUpText")," ",Object(p.jsx)("span",{className:g.strong,children:f}),".",Object(p.jsx)("br",{}),Ti.a.t("dashboard.popUpText1")," ",Object(p.jsx)("span",{className:g.strong,children:Ti.a.t("dashboard.popUpText2")})," ",Ti.a.t("dashboard.popUpText3")," ",Object(p.jsx)("span",{className:g.danger,children:Ti.a.t("dashboard.popUpText4")})]}),Object(p.jsxs)(cn.a,{className:g.p,children:[Ti.a.t("dashboard.popUpText5"),Object(p.jsx)("br",{}),Object(p.jsx)("span",{className:g.strong,children:"EPAGOS CONTABLIUM S.A."})]}),d&&Object(p.jsxs)("div",{className:g.infoBox,"aria-live":"polite",children:[Object(p.jsx)("div",{className:g.infoTitle,children:u}),Object(p.jsx)("ul",{className:g.infoList,children:m.map(((e,t)=>Object(p.jsx)("li",{className:g.infoItem,children:e},t)))})]}),Object(p.jsxs)("div",{className:g.support,children:[Ti.a.t("dashboard.popUpText6")," ",Object(p.jsx)("a",{href:"mailto:[email protected]",children:Ti.a.t("dashboard.popUpText7")})]}),Object(p.jsxs)("div",{className:g.actions,children:[Object(p.jsx)(zA.a,{className:g.payNow,onClick:()=>{null===c||void 0===c||c(),null===r||void 0===r||r()},disableRipple:!0,children:s}),Object(p.jsx)(zA.a,{className:g.payLater,onClick:()=>{const e=(new Date).toISOString().split("T")[0];localStorage.setItem("overduePlanDismissed",e),h(!1),null===a||void 0===a||a()},disableRipple:!0,children:l})]})]})})};const XT="SET_BOXES_LOADING",ZT="SET_BOXES_SUCCESS",QT="SET_BOXES_ERROR",JT={boxes:[],loading:!0,error:null},$T=(e,t)=>{switch(t.type){case XT:return{...e,loading:!0,error:null};case ZT:return{...e,boxes:t.payload,loading:!1,error:null};case QT:return{...e,loading:!1,error:t.payload};default:return e}};var eP=()=>{const[e,t]=Object(i.useReducer)($T,JT);return{boxes:e.boxes,boxesLoading:e.loading,boxesError:e.error,fetchBoxes:async()=>{t({type:XT});try{const e=await Ya.boxes.getBoxes();return t({type:ZT,payload:e}),e}catch(n){var e,a,i,o;const r=null!==(e=null!==(a=null===n||void 0===n||null===(i=n.response)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.message)&&void 0!==a?a:null===n||void 0===n?void 0:n.message)&&void 0!==e?e:"Error al cargar cajas";throw t({type:QT,payload:r}),n}}}};const tP="SET_SALES_LOADING",aP="SET_SALES_SUCCESS",iP="SET_SALES_ERROR",oP={sales:null,loading:!0,error:null},nP=(e,t)=>{switch(t.type){case tP:return{...e,loading:!0,error:null};case aP:return{...e,sales:t.payload,loading:!1,error:null};case iP:return{...e,loading:!1,error:t.payload};default:return e}};var rP=()=>{const[e,t]=Object(i.useReducer)(nP,oP);return{sales:e.sales,salesLoading:e.loading,salesError:e.error,fetchSales:async()=>{t({type:tP});try{const e=await Ya.dashboard.getSales();return t({type:aP,payload:e}),e}catch(e){const a=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(e,"Error al cargar ventas");throw t({type:iP,payload:a}),e}}}};const sP="SET_PENDING_BILLS_LOADING",lP="SET_PENDING_BILLS_SUCCESS",cP="SET_PENDING_BILLS_ERROR",dP={pendingBills:null,loading:!0,error:null},uP=(e,t)=>{switch(t.type){case sP:return{...e,loading:!0,error:null};case lP:return{...e,pendingBills:t.payload,loading:!1,error:null};case cP:return{...e,loading:!1,error:t.payload};default:return e}};var pP=()=>{const[e,t]=Object(i.useReducer)(uP,dP);return{pendingBills:e.pendingBills,pendingBillsLoading:e.loading,pen
76dingBillsError:e.error,fetchPendingBills:async()=>{t({type:sP});try{const e=await Ya.dashboard.getPendingBills();return t({type:lP,payload:e}),e}catch(e){const a=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(e,"Error al cargar pendiente de cobro");throw t({type:cP,payload:a}),e}}}};const mP="SET_SVB_LOADING",gP="SET_SVB_SUCCESS",bP="SET_SVB_ERROR",hP={salesVsBuys:null,loading:!0,error:null},xP=(e,t)=>{switch(t.type){case mP:return{...e,loading:!0,error:null};case gP:return{...e,salesVsBuys:t.payload,loading:!1,error:null};case bP:return{...e,loading:!1,error:t.payload};default:return e}},fP=(e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t};var vP=()=>{const[e,t]=Object(i.useReducer)(xP,hP);return{salesVsBuys:e.salesVsBuys,salesVsBuysLoading:e.loading,salesVsBuysError:e.error,fetchSalesVsBuys:async function(){let{period:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t({type:mP});try{const a=await Ya.dashboard.getSalesVsBuys({period:e});return t({type:gP,payload:a}),a}catch(a){const e=fP(a,"Error al cargar Ventas vs Compras");throw t({type:bP,payload:e}),a}}}};const jP="SET_CR_LOADING",AP="SET_CR_SUCCESS",CP="SET_CR_ERROR",yP={customersRanking:null,loading:!0,error:null},OP=(e,t)=>{switch(t.type){case jP:return{...e,loading:!0,error:null};case AP:return{...e,customersRanking:t.payload,loading:!1,error:null};case CP:return{...e,loading:!1,error:t.payload};default:return e}},SP=(e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t};var EP=()=>{const[e,t]=Object(i.useReducer)(OP,yP);return{customersRanking:e.customersRanking,customersRankingLoading:e.loading,customersRankingError:e.error,fetchCustomersRanking:async function(){let{period:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t({type:jP});try{const a=await Ya.dashboard.getCustomersRanking({period:e});return t({type:AP,payload:a}),a}catch(a){const e=SP(a,"Error al cargar ranking de clientes");throw t({type:CP,payload:e}),a}}}};const IP="SET_PP_LOADING",wP="SET_PP_SUCCESS",TP="SET_PP_ERROR",PP={data:null,loading:!0,error:null};function RP(e,t){switch(t.type){case IP:return{...e,loading:!0,error:null};case wP:return{...e,loading:!1,data:t.payload,error:null};case TP:return{...e,loading:!1,error:t.payload};default:return e}}const NP="SET_VAT_LOADING",LP="SET_VAT_SUCCESS",kP="SET_VAT_ERROR",BP={data:null,loading:!0,error:null};function DP(e,t){switch(t.type){case NP:return{...e,loading:!0,error:null};case LP:return{...e,loading:!1,data:t.payload,error:null};case kP:return{...e,loading:!1,error:t.payload};default:return e}}const FP=(e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t};const MP="SET_UNITS_LOADING",VP="SET_UNITS_SUCCESS",WP="SET_UNITS_ERROR",HP={units:null,loading:!0,error:null};function UP(e,t){switch(t.type){case MP:return{...e,loading:!0,error:null};case VP:return{...e,units:t.payload,loading:!1,error:null};case WP:return{...e,loading:!1,error:t.payload};default:return e}}var _P=()=>{const[e,t]=Object(i.useReducer)(UP,HP);return{units:e.units,unitsLoading:e.loading,unitsError:e.error,fetchUnitsSold:async()=>{t({type:MP});try{const e=await Ya.dashboard.getUnitsSold();return t({type:VP,payload:e}),e}catch(e){const a=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(e,"Error al cargar unidades vendidas");throw t({type:WP,payload:a}),e}}}};const zP="SET_MINIMUM_STOCK_LOADING",qP="SET_MINIMUM_STOCK_SUCCESS",GP="SET_MINIMUM_STOCK_ERROR",YP={minimumStock:null,loading:!0,error:null},KP=(e,t)=>{switch(t.type){case zP:return{...e,loading:!0,error:null};case qP:return{...e,minimumStock:t.payload,loading:!1,error:null};case GP:return{...e,loading:!1,error:t.payload};default:return e}};var XP=()=>{const[e,t]=Object(i.useReducer)(KP,YP);return{minimumStock:e.minimumStock,minimumStockLoading:e.loading,minimumStockError:e.error,fetchMinimumStock:async()=>{t({type:zP});try{const e=await Ya.dashboard.getMinimumStock();return t({type:qP,payload:e}),e}catch(e){const a=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(e,"Error al cargar stock m\xednimo");throw t({type:GP,payload:a}),e}}}};const ZP="SET_SALES_BY_CHANNEL_LOADING",QP="SET_SALES_BY_CHANNEL_SUCCESS",JP="SET_SALES_BY_CHANNEL_ERROR",$P={
76salesByChannel:null,loading:!0,error:null},eR=(e,t)=>{switch(t.type){case ZP:return{...e,loading:!0,error:null};case QP:return{...e,salesByChannel:t.payload,loading:!1,error:null};case JP:return{...e,loading:!1,error:t.payload};default:return e}},tR=(e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t};var aR=()=>{const[e,t]=Object(i.useReducer)(eR,$P);return{salesByChannel:e.salesByChannel,salesByChannelLoading:e.loading,salesByChannelError:e.error,fetchSalesByChannel:async function(){let{period:e,channelsId:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t({type:ZP});try{const i=await Ya.dashboard.getSalesByChannel({period:e,channelsId:a});return t({type:QP,payload:i}),i}catch(i){const e=tR(i,"Error al cargar ventas por canal");throw t({type:JP,payload:e}),i}}}};const iR="SET_SALES_CHANNEL_FILTER_LOADING",oR="SET_SALES_CHANNEL_FILTER_SUCCESS",nR="SET_SALES_CHANNEL_FILTER_ERROR",rR={salesChannelFilter:null,loading:!0,error:null},sR=(e,t)=>{switch(t.type){case iR:return{...e,loading:!0,error:null};case oR:return{...e,salesChannelFilter:t.payload,loading:!1,error:null};case nR:return{...e,loading:!1,error:t.payload};default:return e}};var lR=()=>{const[e,t]=Object(i.useReducer)(sR,rR),a=Object(i.useCallback)((async()=>{t({type:iR});try{const e=await Ya.dashboard.getSalesChannelFilter();return t({type:oR,payload:e}),e}catch(e){const a=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(e,"Error al cargar filtros de canal de venta");throw t({type:nR,payload:a}),e}}),[]);return{salesChannelFilter:e.salesChannelFilter,salesChannelFilterLoading:e.loading,salesChannelFilterError:e.error,fetchSalesChannelFilter:a}};const cR="SET_ASP_LOADING",dR="SET_ASP_SUCCESS",uR="SET_ASP_ERROR",pR={showWidget:!1,progress:0,steps:{accountConfigured:!1,productCreated:!1,clientCreated:!1,firstInvoiceEmitted:!1},loading:!0,error:null},mR=(e,t)=>{switch(t.type){case cR:return{...e,loading:!0,error:null};case dR:{var a,i,o,n;const r=t.payload||{},s={accountConfigured:!(null===r||void 0===r||null===(a=r.steps)||void 0===a||!a.accountConfigured),productCreated:!(null===r||void 0===r||null===(i=r.steps)||void 0===i||!i.productCreated),clientCreated:!(null===r||void 0===r||null===(o=r.steps)||void 0===o||!o.clientCreated),firstInvoiceEmitted:!(null===r||void 0===r||null===(n=r.steps)||void 0===n||!n.firstInvoiceEmitted)};return{...e,showWidget:!!r.showWidget,progress:"number"===typeof r.progress?Math.max(0,Math.min(100,r.progress)):0,steps:s,loading:!1,error:null}}case uR:return{...e,loading:!1,error:t.payload};default:return e}};var gR=()=>{const[e,t]=Object(i.useReducer)(mR,pR),a=Number(e.steps.accountConfigured)+Number(e.steps.productCreated)+Number(e.steps.clientCreated)+Number(e.steps.firstInvoiceEmitted),o=e.steps.accountConfigured&&e.steps.productCreated&&e.steps.clientCreated&&e.steps.firstInvoiceEmitted,n=!e.steps.accountConfigured&&!e.steps.productCreated&&!e.steps.clientCreated&&!e.steps.firstInvoiceEmitted,r="number"===typeof e.progress&&e.progress>=100||o,s=!!e.showWidget&&!r;return{showWidget:e.showWidget,progress:e.progress,steps:e.steps,accountSetupLoading:e.loading,accountSetupError:e.error,stepsCompleted:a,isComplete:r,allStepsFalse:n,shouldShowBanner:s,fetchAccountSetupProgress:async()=>{t({type:cR});try{const e=await Ya.dashboard.getAccountSetupProgress();return t({type:dR,payload:e}),e}catch(e){throw t({type:uR,payload:(null===e||void 0===e?void 0:e.message)||"Error"}),e}}}};const bR="SET_PENDING_PAYMENT_MODAL_LOADING",hR="SET_PENDING_PAYMENT_MODAL_SUCCESS",xR="SET_PENDING_PAYMENT_MODAL_ERROR",fR={modal:null,loading:!0,error:null},vR=(e,t)=>{switch(t.type){case bR:return{...e,loading:!0,error:null};case hR:return{...e,modal:t.payload,loading:!1,error:null};case xR:return{...e,loading:!1,error:t.payload};default:return e}};var jR=()=>{var e,t,a;const[o,n]=Object(i.useReducer)(vR,fR),r=Boolean(null===(e=o.modal)||void 0===e?void 0:e.show),s=null!==(t=null===(a=o.modal)||void 0===a?void 0:a.plan)&&void 0!==t?t:null;return{pendingPaymentModal:o.modal,pendingPaymentModalLoading:o.loading,pen
76dingPaymentModalError:o.error,shouldShowPendingPaymentModal:r,pendingPaymentPlan:s,fetchPendingPaymentModal:async()=>{if((new Date).getDate()>14)return n({type:hR,payload:null}),null;n({type:bR});try{const e=await Ya.dashboard.getPendingPaymentModal();return n({type:hR,payload:e}),e}catch(e){const t=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(e,"Error al cargar el modal de cobros pendientes");throw n({type:xR,payload:t}),e}}}};const AR="SET_LAST_UPDATE_LOADING",CR="SET_LAST_UPDATE_SUCCESS",yR="SET_LAST_UPDATE_ERROR",OR={lastUpdate:null,loading:!0,error:null},SR=(e,t)=>{switch(t.type){case AR:return{...e,loading:!0,error:null};case CR:return{...e,lastUpdate:t.payload,loading:!1,error:null};case yR:return{...e,loading:!1,error:t.payload};default:return e}};var ER=()=>{const[e,t]=Object(i.useReducer)(SR,OR);return{lastUpdate:e.lastUpdate,lastUpdateLoading:e.loading,lastUpdateError:e.error,fetchLastUpdate:async()=>{t({type:AR});try{var e;const a=await Ya.dashboard.getLastUpdate(),i=null!==(e=null===a||void 0===a?void 0:a.lastUpdate)&&void 0!==e?e:null;return t({type:CR,payload:i}),i}catch(a){const e=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(a,"Error al cargar la \xfaltima actualizaci\xf3n del dashboard");throw t({type:yR,payload:e}),a}}}};
76const IR="SET_CONFIGURATION_LOADING",wR="SET_CONFIGURATION_SUCCESS",TR="SET_CONFIGURATION_ERROR",PR={configuration:null,loading:!1,error:null},RR=(e,t)=>{switch(t.type){case IR:return{...e,loading:!0,error:null};case wR:return{...e,configuration:t.payload,loading:!1,error:null};case TR:return{...e,loading:!1,error:t.payload};default:return e}},NR=(e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t};var LR=()=>{const[e,t]=Object(i.useReducer)(RR,PR);return{configuration:e.configuration,configurationLoading:e.loading,configurationError:e.error,fetchConfiguration:async()=>{t({type:IR});try{var e;const a=await Ya.dashboard.getConfiguration(),i=null!==(e=null===a||void 0===a?void 0:a.configuration)&&void 0!==e?e:null;return t({type:wR,payload:i}),i}catch(a){const e=NR(a,"Error al cargar la configuraci\xf3n del dashboard");throw t({type:TR,payload:e}),a}},saveConfiguration:async function(e){let a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];a&&t({type:IR});try{const o=await Ya.dashboard.saveConfiguration(e);var i;if(a)t({type:wR,payload:null!==(i=null===o||void 0===o?void 0:o.configuration)&&void 0!==i?i:null});return o}catch(o){if(a){const e=NR(o,"Error al guardar la configuraci\xf3n del dashboard");t({type:TR,payload:e})}throw o}},resetConfiguration:async()=>{t({type:IR});try{var e;const a=await Ya.dashboard.resetConfiguration();return t({type:wR,payload:null!==(e=null===a||void 0===a?void 0:a.configuration)&&void 0!==e?e:null}),a}catch(a){const e=NR(a,"Error al restablecer la configuraci\xf3n del dashboard");throw t({type:TR,payload:e}),a}},updateConfigurationLocal:e=>{t({type:wR,payload:e})}}};const kR=()=>{const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`},BR=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)},DR=(e,t,a)=>(e=>{let{namespace:t="dash",key:a,scope:i}=e;return`${t}:${a}${i?`:${i}`:":global"}`})({namespace:e,key:t,scope:a}),FR=e=>{try{const t=localStorage.getItem(e);if(!t)return null;const a=JSON.parse(t);if(!a)return null;const i=Date.now();return"number"===typeof a.expiresAt?i<=a.expiresAt?a.data:null:a.day===kR()?a.data:null}catch(t){return console.warn("[dailyCache] read error",t),null}},MR=function(e,t){let{graceMs:a=0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{const i=Date.now(),o=BR().getTime()+Math.max(0,Number(a)||0),n={day:kR(),savedAt:i,expiresAt:o,data:t};localStorage.setItem(e,JSON.stringify(n))}catch(i){console.warn("[dailyCache] write error",i)}},VR=e=>{try{localStorage.removeItem(e),localStorage.setItem("__dailyCacheReset__",JSON.stringify({key:e,ts:Date.now()})),setTimeout((()=>localStorage.removeItem("__dailyCacheReset__")),0)}catch(t){console.warn("[dailyCache] invalidate error",t)}},WR=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=Date.now(),a=BR().getTime()+Math.max(0,Number(e)||0);return Math.max(0,a-t)},HR=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const a=window.setTimeout((()=>VR(e)),WR(t));return()=>window.clearTimeout(a)};var UR,_R;function zR(){return zR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},zR.apply(null,arguments)}function qR(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",zR({width:44,height:51,viewBox:"0 0 44 51",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,UR||(UR=i.createElement("rect",{x:.5,y:.888672,width:43,height:50,fill:"url(#pattern0_3035_1374)",fillOpacity:.4})),_R||(_R=i.createElement("defs",null,i.createElement("pattern",{id:"pattern0_3035_1374",patternContentUnits:"objectBoundingBox",width:1,height:1},i.createElement("use",{xlinkHref:"#image0_3035_1374",transform:"matrix(0.00149891 0 0 0.00130818 -0.266058 -0.0461104)"})),i.createElement("image",{id:"image0_3035_1374",width:1024,height:1024,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAEAAElEQVR4Xuz9eZgk2Vkf+n/fE5FZW9ba1V1L19LL9DK9LyOEJK6v/UP4kbUCBl9jMF64woAkEGKRjMG+tvEF2xjQwnIFZjNYWIAEEkggWWAwEtpmenqmp7unZ6aXWrqq967q2jPjvL8/TkRWVlZWVWZGZnVl5ffzTExXZSwZmRUn4pz3bAAREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREVQfJfICLaTIlEIiEi2XtRQ0NDg+d5noiIqmr0b7Q+9/XotUj+drmv5R9vrf3XWx/JX5+/X+6/0TbrbR+9ni9/ff5++ccv9Huh/aPf13o9//d8xa7P3y7/9fz1+dvlv76R/OOudZz81/O3z1+/1nb56yP52+Vvn/97paz1fvmKXb/RdvnW2n6t18tV6ePlK/fzR3L3j17LPU70eu42uT/nvxYEQbCwsLCQyWQy0TGIiIjKVfKDjYgoDhGR5ubmZt/3/Y6Ojo7mpuavT7W1ttjAZpqaGlr++vN/8/VQu0s8E4hVYwFgOR8NuPuWhv/my91Qwv9Fe6/a3mXJBYCoqpXlI4tCISsPF22rACT7/iIKqKhCc47vXgxfcJn63PcXUQEEAlUb7WfCTZff0xhRqypQgUChuStFJPxk0WvRyUWyJ5vzWu62uT+oAiIwcB9cVSEFPr8j4fYQcR/V5r61wK1e8b4RBbInJuK+B9iwvJNdY0RhVdynzu62TASutLTqHBUiEHeG4Wm6P1b+Nm59zmvu/RXu75h7/oV+VsBdPu7Yy7uEGyrcXzf3yl3xfuGbFSTheay13ll+9wJyz7mQvPOPuFdcuVMEsGu9S6HvpGQiAgigNvcdstf62gwUFiIwqu7iQ/73scZ5Z+VeW+GnDtcs72WMB9UAIgK74hwdMSbn3NVkXxex0dUJhEfU8D0FMCJqrQUAD4CNNsl+jaLWiEEi4WsmE2hjY9P44cOHPjI5OfnFdDqdWVxcnF9YWFhYXFxcdDsQEREVr6yHNhFRKRKJRKKxsbGxtbW1va+v79CVKy9+z6NHMwfg7kHdECSgsAASALoAhGW03KMUa6OsP20p/HMRrU9goZgAMA0g7fvJ+088se9T9+7d+407d+7cyd+ciIhoPQwAEFHVtLS0tPT09OxubWv7PyZvjr/h1u07BwG0AxiOtjEiEN+HsQHSgQWWa8RW3Z/ygwK5G2j0wqrCZM6LBdc7+ccOX8XyqaxcmVtPuXrtSiY8dv420X5GAKuAMYCrGMwnroFAgVrI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AAAvCG11lpKKW92FH7z69/ssQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcP38f/YkxmWk0KumAAAAAElFTkSuQmCC"}))))}const GR=i.forwardRef(qR);var YR,KR,XR;a.p;function ZR(){return ZR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},ZR.apply(null,arguments)}function QR(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",ZR({width:200,height:133,viewBox:"0 0 200 133",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,YR||(YR=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M191.617 47.1204C196.247 47.1204 200 50.8709 200 55.4973C200 60.1238 196.247 63.8743 191.617 63.8743H143.713C148.342 63.8743 152.096 67.6248 152.096 72.2513C152.096 76.8777 148.342 80.6282 143.713 80.6282H170.06C174.69 80.6282 178.443 84.3787 178.443 89.0052C178.443 93.6316 174.69 97.3821 170.06 97.3821H157.876C152.038 97.3821 147.305 101.133 147.305 105.759C147.305 108.843 149.701 111.636 154.491 114.136C159.121 114.136 162.874 117.887 162.874 122.513C162.874 127.139 159.121 130.89 154.491 130.89H55.0898C50.4599 130.89 46.7066 127.139 46.7066 122.513C46.7066 117.887 50.4599 114.136 55.0898 114.136H8.38323C3.7533 114.136 0 110.386 0 105.759C0 101.133 3.7533 97.3821 8.38323 97.3821H56.2874C60.9174 97.3821 64.6707 93.6316 64.6707 89.0052C64.6707 84.3787 60.9174 80.6282 56.2874 80.6282H26.3473C21.7174 80.6282 17.9641 76.8777 17.9641 72.2513C17.9641 67.6248 21.7174 63.8743 26.3473 63.8743H74.2515C69.6216 63.8743 65.8683 60.1238 65.8683 55.4973C65.8683 50.8709 69.6216 47.1204 74.2515 47.1204H191.617ZM191.61
767 80.6282C196.247 80.6282 200 84.3787 200 89.0052C200 93.6316 196.247 97.3821 191.617 97.3821C186.987 97.3821 183.234 93.6316 183.234 89.0052C183.234 84.3787 186.987 80.6282 191.617 80.6282Z",fill:"#EBEBEB"})),KR||(KR=i.createElement("g",{clipPath:"url(#clip0_122_9159)"},i.createElement("path",{d:"M69.0052 86.9844H49.9895V131.319H69.0052V86.9844Z",fill:"white"}),i.createElement("path",{d:"M69.0052 132.23H49.9895C49.7479 132.23 49.5162 132.134 49.3453 131.963C49.1745 131.793 49.0785 131.561 49.0785 131.319V86.9842C49.0785 86.7426 49.1745 86.5109 49.3453 86.3401C49.5162 86.1692 49.7479 86.0732 49.9895 86.0732H69.0052C69.2468 86.0732 69.4785 86.1692 69.6494 86.3401C69.8202 86.5109 69.9162 86.7426 69.9162 86.9842V131.319C69.9162 131.439 69.8926 131.557 69.8468 131.668C69.8011 131.778 69.7339 131.879 69.6494 131.963C69.5648 132.048 69.4643 132.115 69.3538 132.161C69.2433 132.207 69.1248 132.23 69.0052 132.23ZM50.9005 130.408H68.0942V87.8952H50.9005V130.408Z",fill:"#666666"}),i.createElement("path",{d:"M100.555 54.1885H81.5392V131.319H100.555V54.1885Z",fill:"white"}),i.createElement("path",{d:"M100.555 132.23H81.5392C81.2976 132.23 81.0659 132.134 80.895 131.964C80.7242 131.793 80.6282 131.561 80.6282 131.319V54.1886C80.6282 53.947 80.7242 53.7153 80.895 53.5444C81.0659 53.3736 81.2976 53.2776 81.5392 53.2776H100.555C100.797 53.2776 101.028 53.3736 101.199 53.5444C101.37 53.7153 101.466 53.947 101.466 54.1886V131.319C101.466 131.439 101.442 131.558 101.397 131.668C101.351 131.779 101.284 131.879 101.199 131.964C101.115 132.048 101.014 132.115 100.904 132.161C100.793 132.207 100.675 132.23 100.555 132.23ZM82.4502 130.408H99.6439V55.0996H82.4502V130.408Z",fill:"#666666"}),i.createElement("path",{d:"M133.023 76.2944H114.419V131.178H133.023V76.2944Z",fill:"white"}),i.createElement("path",{d:"M133.047 132.23H114.031C113.79 132.23 113.558 132.134 113.387 131.964C113.216 131.793 113.12 131.561 113.12 131.319V76.0368C113.119 75.9168 113.142 75.7977 113.187 75.6865C113.232 75.5753 113.299 75.4744 113.384 75.3895C113.469 75.3046 113.57 75.2376 113.681 75.1923C113.792 75.147 113.911 75.1244 114.031 75.1258H133.047C133.167 75.1244 133.286 75.147 133.397 75.1923C133.508 75.2376 133.609 75.3046 133.694 75.3895C133.779 75.4744 133.846 75.5753 133.892 75.6865C133.937 75.7977 133.959 75.9168 133.958 76.0368V131.319C133.958 131.561 133.862 131.793 133.691 131.964C133.52 132.134 133.289 132.23 133.047 132.23ZM114.942 130.408H132.136V76.9897H114.942V130.408Z",fill:"#666666"}),i.createElement("path",{d:"M165.843 41.4346H146.827V131.319H165.843V41.4346Z",fill:"white"}),i.createElement("path",{d:"M165.843 132.23H146.88C146.76 132.23 146.641 132.207 146.531 132.161C146.42 132.115 146.32 132.048 146.235 131.963C146.151 131.879 146.084 131.778 146.038 131.668C145.992 131.557 145.969 131.439 145.969 131.319V41.4344C145.969 41.3148 145.992 41.1963 146.038 41.0858C146.084 40.9753 146.151 40.8749 146.235 40.7903C146.32 40.7057 146.42 40.6386 146.531 40.5928C146.641 40.547 146.76 40.5234 146.88 40.5234H165.895C166.137 40.5234 166.369 40.6194 166.539 40.7903C166.71 40.9611 166.806 41.1928 166.806 41.4344V131.319C166.806 131.443 166.781 131.566 166.732 131.68C166.683 131.794 166.611 131.897 166.521 131.983C166.431 132.068 166.324 132.134 166.208 132.177C166.091 132.219 165.967 132.237 165.843 132.23ZM147.738 130.408H164.932V42.3454H147.738V130.408Z",fill:"#666666"}),i.createElement("path",{d:"M28.1362 83.8953C27.9312 83.8915 27.7329 83.8217 27.5708 83.6963C27.3807 83.5476 27.2575 83.3296 27.228 83.0901C27.1986 82.8505 27.2653 82.6091 27.4137 82.4188L43.1205 62.4188C43.2657 62.2316 43.4781 62.1083 43.7127 62.075C43.9473 62.0418 44.1856 62.1013 44.377 62.2408L54.5341 69.7696L87.8116 29.8639C87.9564 29.6929 88.1585 29.5805 88.3801 29.5477C88.6018 29.5149 88.8277 29.5641 89.0158 29.6858L118.262 48.7016L161.539 0.303647C161.619 0.214266 161.716 0.141469 161.824 0.089413C161.931 0.0373565 162.049 0.00705934 162.168 0.00025294C162.288 -0.00655346 162.408 0.0102643 162.521 0.0497441C162.634 0.089224 162.738 0.150593 162.827 0.230349C162.917 0.310105 162.989 0.406685 163.042 0.514574C163.094 0.622463 163.124 0.739549 163.131 0.859147C163.138 0.978745 163.121 1.09851 163.081 1.21161C163.042 1.32471 162.98 1.42893 162.901 1.51831L119.11 50.5026C118.962 50.6631 118.763 50.7667 118.547 50.7954C118.331 50.8241 118.111 50.7761 117.927 50.6597L88.7017 31.6544L55.3823 71.6021C55.23
7615 71.7794 55.0192 71.893 54.7881 71.9202C54.5569 71.9474 54.324 71.8861 54.1362 71.7487L44.0106 64.2408L28.8482 83.5392C28.7648 83.6492 28.6572 83.7385 28.5337 83.8002C28.4102 83.8619 28.2742 83.8945 28.1362 83.8953Z",fill:"#666666"}),i.createElement("path",{d:"M56.6282 129.382C56.5551 129.383 56.4841 129.357 56.4293 129.309C54.8796 127.968 53.3403 126.555 51.8639 125.12C51.807 125.063 51.775 124.986 51.775 124.906C51.775 124.825 51.807 124.748 51.8639 124.691C51.9221 124.637 51.9988 124.606 52.0785 124.606C52.1582 124.606 52.235 124.637 52.2932 124.691C53.7696 126.126 55.2984 127.539 56.8377 128.879C56.8946 128.936 56.9266 129.014 56.9266 129.094C56.9266 129.175 56.8946 129.252 56.8377 129.309C56.7802 129.36 56.705 129.386 56.6282 129.382Z",fill:"#666666"}),i.createElement("path",{d:"M63.1623 129.434C63.0875 129.434 63.0159 129.404 62.9633 129.351L52.1466 119.633C52.117 119.606 52.093 119.574 52.0759 119.538C52.0589 119.502 52.0491 119.463 52.0472 119.423C52.0452 119.383 52.0512 119.343 52.0646 119.306C52.0781 119.268 52.0988 119.234 52.1256 119.204C52.1524 119.174 52.1848 119.15 52.2209 119.133C52.257 119.116 52.2961 119.107 52.3359 119.105C52.3758 119.103 52.4157 119.109 52.4532 119.122C52.4908 119.136 52.5254 119.156 52.5549 119.183L63.3612 128.9C63.4157 128.959 63.446 129.035 63.446 129.115C63.446 129.195 63.4157 129.271 63.3612 129.33C63.3089 129.386 63.2386 129.423 63.1623 129.434Z",fill:"#666666"}),i.createElement("path",{d:"M66.7853 126.482C66.7125 126.481 66.6422 126.455 66.5864 126.408C61.822 122.22 56.9214 118.031 52.0418 113.927C52.0053 113.903 51.9742 113.873 51.9505 113.836C51.9269 113.8 51.9112 113.759 51.9047 113.717C51.8981 113.674 51.9007 113.63 51.9124 113.588C51.9241 113.547 51.9445 113.508 51.9724 113.475C52.0002 113.442 52.0348 113.415 52.0739 113.396C52.1129 113.378 52.1555 113.368 52.1988 113.367C52.242 113.366 52.285 113.374 52.3247 113.391C52.3645 113.408 52.4001 113.434 52.4293 113.466C57.3193 117.539 62.2198 121.738 66.9947 125.948C67.0516 126.005 67.0836 126.082 67.0836 126.162C67.0836 126.243 67.0516 126.32 66.9947 126.377C66.9689 126.408 66.937 126.433 66.9009 126.451C66.8649 126.469 66.8255 126.479 66.7853 126.482Z",fill:"#666666"}),i.createElement("path",{d:"M66.9843 120.513C66.9163 120.513 66.8502 120.491 66.7958 120.45C61.7906 116.618 56.8377 112.586 52.0628 108.471C52.0326 108.445 52.0078 108.413 51.9898 108.378C51.9719 108.342 51.9611 108.303 51.9582 108.263C51.9553 108.223 51.9603 108.183 51.9728 108.145C51.9854 108.107 52.0053 108.072 52.0314 108.042C52.0575 108.012 52.0894 107.987 52.1251 107.969C52.1608 107.951 52.1997 107.94 52.2395 107.937C52.2794 107.934 52.3195 107.939 52.3574 107.952C52.3954 107.965 52.4305 107.984 52.4607 108.011C57.2251 112.126 62.1675 116.147 67.1204 119.969C67.1531 119.992 67.1806 120.023 67.2015 120.057C67.2224 120.092 67.2362 120.13 67.2421 120.17C67.2479 120.21 67.2457 120.251 67.2356 120.29C67.2255 120.329 67.2077 120.366 67.1833 120.398C67.1339 120.46 67.0628 120.501 66.9843 120.513Z",fill:"#666666"}),i.createElement("path",{d:"M66.9843 114.492C66.9118 114.49 66.8419 114.464 66.7853 114.419C61.8429 110.23 56.8795 105.916 52.0209 101.613C51.9598 101.56 51.9222 101.485 51.9163 101.404C51.9104 101.324 51.9367 101.244 51.9895 101.183C52.0423 101.122 52.1171 101.085 52.1976 101.079C52.2782 101.073 52.3577 101.099 52.4188 101.152C57.2775 105.456 62.2408 109.759 67.1727 113.948C67.2296 114.005 67.2616 114.082 67.2616 114.162C67.2616 114.243 67.2296 114.32 67.1727 114.377C67.1266 114.438 67.0593 114.479 66.9843 114.492Z",fill:"#666666"}),i.createElement("path",{d:"M66.6701 108.105C66.6019 108.106 66.5352 108.084 66.4816 108.042C61.5811 104.251 56.7644 100.241 52.1466 96.1255C52.0868 96.0713 52.0511 95.9957 52.0472 95.9152C52.0432 95.8347 52.0715 95.7559 52.1256 95.6962C52.1798 95.6365 52.2554 95.6007 52.3359 95.5968C52.4164 95.5929 52.4952 95.6211 52.5549 95.6752C57.1518 99.78 61.979 103.78 66.8481 107.56C66.9111 107.608 66.9529 107.678 66.9646 107.757C66.9763 107.835 66.9571 107.915 66.911 107.979C66.8833 108.017 66.8472 108.048 66.8054 108.07C66.7636 108.092 66.7173 108.104 66.6701 108.105Z",fill:"#666666"}),i.createElement("path",{d:"M66.3979 102.073C66.3331 102.073 66.2703 102.051 66.2199 102.01C61.4136 98.3454 56.5864 94.5548 51.8848 90.7433C51.8556 90.7168 51.8322 90.6845 51.8162 90.6484C51.8003 90.6123 51.792 90.5733 51.792 90.5339C51.792 90.4944 51.8003 90.4554 51.8162 90.4194C51.8322 90.3833 51.8556 90.351 51.8848 90.3245C51.9084 90.2929 51.9382 90.2665 51.9722 90.2467C52.0063 90.2269 52.044 90.2142 52.0831 90.2093C52.1222 90.2044 52.1619 90.2075 52.1998 90.2182C52.2377 90.229 52.273 90.2474 52.3036 90.2721C57.0052 94.0836 61.8219 97.8637 66.6282 101.529C66.6601 101.553 66.6868 101.584 66.7067 101.619C66.7266 101.654 66.7394 101.692 66.7442 101.732C66.7491 101.772 66.746 101.813 66.7351 101.852C66.7241 101.89 66.7056 101.926 66.6806 101.958C66.6486 102.001 66.6053 102.035 66.5554 102.055C66.5055 102.076 66.4511 102.082 66.3979 102.073Z",fill:"#666666"}),i.createElement("path",{d:"M66.4083 96.8275C66.3406 96.8261 66.2749 96.8042 66.2199 96.7646L57.2565 89.707C57.2027 89.6506 57.1727 89.5756 57.1727 89.4976C57.1727 89.4196 57.2027 89.3447 57.2565 89.2882C57.2838 89.2603 57.3164 89.2382 57.3524 89.2231C57.3883 89.208 57.4269 89.2002 57.4659 89.2002C57.5049 89.2002 57.5436 89.208 57.5795 89.2231C57.6155 89.2382 57.6481 89.2603 57.6754 89.2882L66.6387 96.3353C66.6706 96.3599 66.6972 96.3906 66.7172 96.4255C66.7371 96.4605 66.7498 96.4991 66.7547 96.539C66.7596 96.579 66.7565 96.6195 66.7455 96.6582C66.7346 96.697 66.7161 96.7331 66.6911 96.7646C66.6525 96.797 66.6066 96.8196 66.5574 96.8306C66.5082 96.8415 66.457 96.8404 66.4083 96.8275Z",fill:"#666666"}),i.createElement("path",{d:"M66.6597 92.3457C66.5917 92.3457 66.5255 92.3237 66.4712 92.2829C66.0732 91.9478 65.5706 91.5499 65.0366 91.1311C64.5026 90.7122 63.8115 90.1677 63.267 89.707C63.2101 89.65 63.1781 89.5728 63.1781 89.4923C63.1781 89.4118 63.2101 89.3346 63.267 89.2777C63.3252 89.2232 63.4019 89.1929 63.4816 89.1929C63.5614 89.1929 63.6381 89.2232 63.6963 89.2777C64.2408 89.7384 64.8691 90.2305 65.4554 90.7017C66.0418 91.1729 66.5026 91.5185 66.9005 91.8536C66.955 91.9118 66.9853 91.9885 66.9853 92.0682C66.9853 92.148 66.955 92.2247 66.9005 92.2829C66.8671 92.3098 66.8283 92.3293 66.7868 92.3401C66.7453 92.3509 66.702 92.3529 66.6597 92.3457Z",fill:"#666666"}),i.createElement("path",{d:"M120.636 129.382C120.563 129.383 120.492 129.357 120.438 129.309C118.888 127.968 117.349 126.555 115.872 125.12C115.815 125.063 115.783 124.986 115.783 124.906C115.783 124.825 115.815 124.748 115.872 124.691C115.93 124.637 116.007 124.606 116.087 124.606C116.166 124.606 116.243 124.637 116.301 124.691C117.778 126.126 119.307 127.539 120.846 128.879C120.903 128.936 120.935 129.014 120.935 129.094C120.935 129.175 120.903 129.252 120.846 129.309C120.788 129.36 120.713 129.386 120.636 129.382Z",fill:"#666666"}),i.createElement("path",{d:"M127.17 129.434C127.096 129.434 127.024 129.404 126.972 129.351L116.155 119.633C116.125 119.606 116.101 119.574 116.084 119.538C116.067 119.502 116.057 119.463 116.055 119.423C116.053 119.383 116.059 119.343 116.073 119.306C116.086 119.268 116.107 119.234 116.134 119.204C116.161 119.174 116.193 119.15 116.229 119.133C116.265 119.116 116.304 119.107 116.344 119.105C116.384 119.103 116.424 119.109 116.461 119.122C116.499 119.136 116.534 119.156 116.563 119.183L127.369 128.9C127.424 128.959 127.454 129.035 127.454 129.115C127.454 129.195 127.424 129.271 127.369 129.33C127.317 129.386 127.247 129.423 127.17 129.434Z",fill:"#666666"}),i.createElement("path",{d:"M130.794 126.482C130.721 126.481 130.65 126.455 130.595 12
766.408C125.83 122.22 120.93 118.031 116.05 113.927C116.014 113.903 115.982 113.873 115.959 113.836C115.935 113.8 115.919 113.759 115.913 113.717C115.906 113.674 115.909 113.63 115.921 113.588C115.932 113.547 115.953 113.508 115.981 113.475C116.008 113.442 116.043 113.415 116.082 113.396C116.121 113.378 116.164 113.368 116.207 113.367C116.25 113.366 116.293 113.374 116.333 113.391C116.373 113.408 116.408 113.434 116.438 113.466C121.328 117.539 126.228 121.738 131.003 125.948C131.06 126.005 131.092 126.082 131.092 126.162C131.092 126.243 131.06 126.32 131.003 126.377C130.977 126.408 130.945 126.433 130.909 126.451C130.873 126.469 130.834 126.479 130.794 126.482Z",fill:"#666666"}),i.createElement("path",{d:"M130.993 120.513C130.925 120.513 130.858 120.491 130.804 120.45C125.799 116.618 120.846 112.586 116.071 108.471C116.041 108.445 116.016 108.413 115.998 108.378C115.98 108.342 115.969 108.303 115.966 108.263C115.964 108.223 115.968 108.183 115.981 108.145C115.994 108.107 116.014 108.072 116.04 108.042C116.066 108.012 116.098 107.987 116.133 107.969C116.169 107.951 116.208 107.94 116.248 107.937C116.288 107.934 116.328 107.939 116.366 107.952C116.404 107.965 116.439 107.984 116.469 108.011C121.233 112.126 126.176 116.147 131.129 119.969C131.161 119.992 131.189 120.023 131.21 120.057C131.231 120.092 131.244 120.13 131.25 120.17C131.256 120.21 131.254 120.251 131.244 120.29C131.234 120.329 131.216 120.366 131.191 120.398C131.142 120.46 131.071 120.501 130.993 120.513Z",fill:"#666666"}),i.createElement("path",{d:"M130.993 114.492C130.92 114.49 130.85 114.464 130.794 114.419C125.851 110.23 120.888 105.916 116.029 101.613C115.968 101.56 115.93 101.485 115.925 101.404C115.919 101.324 115.945 101.244 115.998 101.183C116.05 101.122 116.125 101.085 116.206 101.079C116.286 101.073 116.366 101.099 116.427 101.152C121.286 105.456 126.249 109.759 131.181 113.948C131.238 114.005 131.27 114.082 131.27 114.162C131.27 114.243 131.238 114.32 131.181 114.377C131.135 114.438 131.068 114.479 130.993 114.492Z",fill:"#666666"}),i.createElement("path",{d:"M130.678 108.105C130.61 108.106 130.543 108.084 130.49 108.042C125.589 104.251 120.773 100.241 116.155 96.1255C116.095 96.0713 116.059 95.9957 116.055 95.9152C116.051 95.8347 116.08 95.7559 116.134 95.6962C116.188 95.6365 116.264 95.6007 116.344 95.5968C116.425 95.5929 116.503 95.6211 116.563 95.6752C121.16 99.78 125.987 103.78 130.856 107.56C130.919 107.608 130.961 107.678 130.973 107.757C130.985 107.835 130.965 107.915 130.919 107.979C130.892 108.017 130.855 108.048 130.814 108.07C130.772 108.092 130.725 108.104 130.678 108.105Z",fill:"#666666"}),i.createElement("path",{d:"M130.406 102.073C130.341 102.073 130.278 102.051 130.228 102.011C125.422 98.3456 120.595 94.5551 115.893 90.7436C115.864 90.7171 115.84 90.6847 115.824 90.6487C115.809 90.6126 115.8 90.5736 115.8 90.5341C115.8 90.4947 115.809 90.4557 115.824 90.4196C115.84 90.3835 115.864 90.3512 115.893 90.3247C115.917 90.2932 115.946 90.2667 115.98 90.2469C116.015 90.2271 116.052 90.2144 116.091 90.2095C116.13 90.2047 116.17 90.2077 116.208 90.2185C116.246 90.2293 116.281 90.2476 116.312 90.2723C121.013 94.0839 125.83 97.864 130.636 101.529C130.668 101.553 130.695 101.584 130.715 101.619C130.735 101.654 130.748 101.693 130.752 101.733C130.757 101.773 130.754 101.813 130.743 101.852C130.732 101.891 130.714 101.927 130.689 101.958C130.657 102.002 130.614 102.035 130.564 102.056C130.514 102.076 130.459 102.082 130.406 102.073Z",fill:"#666666"}),i.createElement("path",{d:"M130.406 96.5329C130.341 96.5329 130.278 96.5108 130.228 96.47C125.422 92.8051 120.595 89.0145 115.893 85.203C115.864 85.1765 115.84 85.1442 115.824 85.1081C115.809 85.0721 115.8 85.0331 115.8 84.9936C115.8 84.9542 115.809 84.9151 115.824 84.8791C115.84 84.843 115.864 84.8107 115.893 84.7842C115.917 84.7526 115.946 84.7262 115.98 84.7064C116.015 84.6866 116.052 84.6739 116.091 84.669C116.13 84.6641 116.17 84.6672 116.208 84.678C116.246 84.6888 116.281 84.7071 116.312 84.7318C121.013 88.5433 125.83 92.3235 130.636 95.9884C130.668 96.0129 130.695 96.0436 130.715 96.0786C130.735 96.1136 130.748 96.1521 130.752 96.1921C130.757 96.232 130.754 96.2725 130.743 96.3113C130.732 96.35 130.714 96.3862 130.689 96.4177C130.657 96.461 130.614 96.4947 130.564 96.515C130.514 96.5353 130.459 96.5415 130.406 96.5329Z",fill:"#666666"}),i.createElement("path",{d:"M130.406 90.9513C130.341 90.9514 130.278 90.9292 130.228 90.8885C125.422 87.2236 120.595 83.433 115.893 79.6215C115.864 79.595 115.84 79.5627 115.824 79.5266C115.809 79.4905 115.8 79.4515 115.8 79.4121C115.8 79.3726 115.809 79.3336 115.824 79.2975C115.84 79.2615 115.864 79.2291 115.893 79.2026C115.917 79.1711 115.946 79.1447 115.98 79.1249C116.015 79.1051 116.052 79.0924 116.091 79.0875C116.13 79.0826 116.17 79.0856 116.208 79.0964C116.246 79.1072 116.281 79.1255 116.312 79.1503C121.013 82.9618 125.83 86.7419 130.636 90.4068C130.668 90.4314 130.695 90.4621 130.715 90.497C130.735 90.532 130.748 90.5706 130.752 90.6105C130.757 90.6505 130.754 90.691 130.743 90.7297C130.732 90.7685 130.714 90.8046 130.689 90.8361C130.657 90.8794 130.614 90.9131 130.564 90.9334C130.514 90.9538 130.459 90.9599 130.406 90.9513Z",fill:"#666666"}),i.createElement("path",{d:"M130.417 85.7896C130.349 85.7882 130.283 85.7663 130.228 85.7268L121.265 78.6692C121.211 78.6127 121.181 78.5378 121.181 78.4598C121.181 78.3818 121.211 78.3068 121.265 78.2504C121.292 78.2225 121.325 78.2004 121.361 78.1852C121.397 78.1701 121.435 78.1624 121.474 78.1624C121.513 78.1624 121.552 78.1701 121.588 78.1852C121.624 78.2004 121.656 78.2225 121.684 78.2504L130.647 85.2975C130.679 85.322 130.705 85.3527 130.725 85.3877C130.745 85.4227 130.758 85.4612 130.763 85.5012C130.768 85.5411 130.76
765 85.5816 130.754 85.6204C130.743 85.6591 130.724 85.6953 130.699 85.7268C130.661 85.7592 130.615 85.7818 130.566 85.7927C130.516 85.8037 130.465 85.8026 130.417 85.7896Z",fill:"#666666"}),i.createElement("path",{d:"M130.668 81.3079C130.6 81.3079 130.534 81.2858 130.479 81.245C130.081 80.91 129.579 80.5121 129.045 80.0932C128.511 79.6744 127.82 79.1299 127.275 78.6691C127.218 78.6122 127.186 78.535 127.186 78.4545C127.186 78.374 127.218 78.2968 127.275 78.2398C127.333 78.1853 127.41 78.155 127.49 78.155C127.57 78.155 127.646 78.1853 127.705 78.2398C128.249 78.7005 128.877 79.1927 129.464 79.6639C130.05 80.1351 130.511 80.4807 130.909 80.8157C130.963 80.8739 130.993 80.9507 130.993 81.0304C130.993 81.1101 130.963 81.1868 130.909 81.245C130.875 81.2719 130.837 81.2914 130.795 81.3023C130.754 81.3131 130.71 81.315 130.668 81.3079Z",fill:"#666666"}))),XR||(XR=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_122_9159"},i.createElement("rect",{width:139.529,height:132.23,fill:"white",transform:"translate(27.2251)"})))))}const JR=i.forwardRef(QR);var $R,eN,tN,aN,iN,oN;a.p;function nN(){return nN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},nN.apply(null,arguments)}function rN(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",nN({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",width:250,height:200,ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,$R||($R=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M207 65a7 7 0 1 1 0 14h-40a7 7 0 1 1 0 14h22a7 7 0 1 1 0 14h-10.174c-4.874 0-8.826 3.134-8.826 7 0 2.577 2 4.911 6 7a7 7 0 1 1 0 14H93a7 7 0 1 1 0-14H54a7 7 0 1 1 0-14h40a7 7 0 1 0 0-14H69a7 7 0 1 1 0-14h40a7 7 0 1 1 0-14h98zm0 28a7 7 0 1 1 0 14 7 7 0 0 1 0-14z",fill:"#EBEBEB"})),eN||(eN=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m153.672 64 9.302 67.843.835 6.806a4 4 0 0 1-3.482 4.458l-58.56 7.19a4 4 0 0 1-4.458-3.483l-9.016-73.427a2 2 0 0 1 1.762-2.232l4.859-.545",fill:"#fff"})),tN||(tN=i.createElement("path",{d:"M154.91 63.83a1.25 1.25 0 1 0-2.477.34l2.477-.34zm8.064 68.013 1.24-.153-.002-.017-1.238.17zm.835 6.806 1.241-.152-1.241.152zm-3.482 4.458.152 1.24-.152-1.24zm-58.56 7.19.152 1.241-.152-1.241zm-4.458-3.483 1.24-.152-1.24.152zm-9.016-73.427 1.24-.153-1.24.153zm1.762-2.232.14 1.243-.14-1.243zm4.998.698a1.25 1.25 0 0 0-.279-2.485l.279 2.485zm57.38-7.683 9.302 67.842 2.477-.339-9.302-67.843-2.477.34zm9.3 67.825.836 6.806 2.481-.304-.836-6.807-2.481.305zm.836 6.806a2.75 2.75 0 0 1-2.395 3.065l.305 2.481a5.249 5.249 0 0 0 4.571-5.85l-2.481.304zm-2.395 3.065-58.56 7.19.305 2.482 58.56-7.191-.305-2.481zm-58.56 7.19a2.75 2.75 0 0 1-3.064-2.394l-2.482.305a5.25 5.25 0 0 0 5.851 4.571l-.305-2.482zm-3.064-2.394-9.016-73.428-2.482.305 9.016 73.428 2.482-.305zm-9.016-73.428a.75.75 0 0 1 .653-.835l-.305-2.482a3.25 3.25 0 0 0-2.83 3.622l2.482-.305zm.653-.835.008-.001-.28-2.485a3.888 3.888 0 0 0-.033.004l.305 2.482zm.008-.001 4.858-.545-.279-2.485-4.858.545.279 2.485z",fill:"#666"})),aN||(aN=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m151.14 68.27 8.42 61.483.757 6.168c.244 1.987-1.15 3.793-3.114 4.035l-52.442 6.439c-1.963.241-3.753-1.175-3.997-3.162l-8.15-66.376a2 2 0 0 1 1.742-2.23l6.487-.796",fill:"#EBEBEB"})),iN||(iN=i.createElement("path",{d:"M110.672 51.25h45.557c.729 0 1.428.29 1.944.805l13.443 13.435a2.75 2.75 0 0 1 .806 1.945V130a2.75 2.75 0 0 1-2.75 2.75h-59a2.75 2.75 0 0 1-2.75-2.75V54a2.75 2.75 0 0 1 2.75-2.75z",fill:"#fff",stroke:"#666",strokeWidth:2.5})),oN||(oN=i.createElement("path",{d:"M156.672 52.403V64a3 3 0 0 0 3 3h7.933M118 118h26m-26-51h26-26zm0 12h43-43zm0 13h43-43zm0 13h43-43z",stroke:"#666",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const sN=i.forwardRef(rN);var lN;a.p;function cN(e){let{locale:t="es-AR",currencySymbol:a="$",minDecimalsBelow:i=0,withTooltipMeta:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||isNaN(e))return o?{display:`${a} 0`,fullNoSymbol:"0",sign:"",abbreviated:!1}:`${a} 0`;
76const n=e<0?"-":"",r=Math.abs(Number(e)),s=r.toLocaleString(t,{minimumFractionDigits:0,maximumFractionDigits:0}),l=1e6;if(r<l){const e=r.toLocaleString(t,{minimumFractionDigits:i,maximumFractionDigits:i}),l=""===a&&"-"===n?`${n}${e}`:"-"===n&&""!==a?`${a} ${n}${e}`:`${a} ${e}`;return o?{display:l,fullNoSymbol:s,sign:n,abbreviated:!1}:l}const c=r/l,d=2,u=Number(c.toFixed(d)),p=u.toLocaleString(t,{minimumFractionDigits:d,maximumFractionDigits:d}),m=""===a&&"-"===n?`${n}${p} M`:"-"===n&&""!==a?`${a} ${n}${p} M`:`${a} ${p} M`;return o?{display:m,fullNoSymbol:s,sign:n,abbreviated:!0}:m}function dN(e){let{locale:t="es-AR",digits:a=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=Number(e||0),o=i>=0?"+":"";return`${o}${i.toLocaleString(t,{maximumFractionDigits:a})}%`}function uN(){return uN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},uN.apply(null,arguments)}function pN(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",uN({width:15,height:9,viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,lN||(lN=i.createElement("path",{d:"M10.5 0L12.2175 1.7175L8.5575 5.3775L5.5575 2.3775L0 7.9425L1.0575 9L5.5575 4.5L8.5575 7.5L13.2825 2.7825L15 4.5V0H10.5Z",fill:"#00B69B"})))}const mN=i.forwardRef(pN);var gN;a.p;function bN(){return bN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)({}).hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},bN.apply(null,arguments)}function hN(e,t){let{title:a,titleId:o,...n}=e;return i.createElement("svg",bN({width:15,height:9,viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},n),a?i.createElement("title",{id:o},a):null,gN||(gN=i.createElement("path",{d:"M4.5 9L2.7825 7.2825L6.4425 3.6225L9.4425 6.6225L15 1.0575L13.9425 9.24496e-08L9.4425 4.5L6.4425 1.5L1.7175 6.2175L-3.93402e-07 4.5L0 9L4.5 9Z",fill:"#FF2569"})))}const xN=i.forwardRef(hN);a.p;const fN=Object(u.a)((e=>({container:e=>{let{isEditMode:t}=e;return{padding:"10px 16px ",height:170,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{width:"100%",maxWidth:"100%",minWidth:0,...t&&{minWidth:"400px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:2,marginBottom:e.spacing(1.5)},headerLeft:{display:"flex",alignItems:"center",gap:4},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},headerTooltip:{flex:"0 0 auto",marginRight:"8px",fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#fff"},iconTooltipBtn:{backgroundColor:"#fff",border:"none",right:"-5px",padding:0,zIndex:10,position:"relative",cursor:"pointer"},totalRow:{display:"flex",alignItems:"baseline",gap:12,marginBottom:e.spacing(2)},totalValue:{fontFamily:"Work Sans, sans-serif",fontWeight:500,lineHeight:1,display:"inline-flex",alignItems:"baseline",gap:4},currencySymbol:{fontSize:28,fontWeight:500,lineHeight:1,"@media (max-width: 1168px) and (min-width: 960px)":{fontSize:20}},amount:{fontSize:32,fontWeight:500,lineHeight:1,"@media (max-width: 1168px) and (min-width: 960px)":{fontSize:25}},variation:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:"Work Sans, sans-serif",fontSize:13,fontWeight:500},arrow:{width:16,height:16},footerRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:16,marginTop:"auto"},cell:{display:"grid",gridTemplateColumns:"6px 1fr",alignItems:"center",columnGap:12},divider:{width:2,height:45,borderRadius:4,background:"#02C1B0",justifySelf:"center"},label:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#8A8A8A",marginBottom:2},value:{fontFamily:"Work Sans, sans-serif",fontSize:18,fontWeight:500,width:"fit-content",color:"#131313","@media (max-width: 1068px) and (min-width: 960px)":{fontSize:15}}})));function vN(e){var t,a,o;let{data:n,header:r=Ti.a.t("dashboard.getSalesTitle"),showTooltip:s=!1,tooltipText:l="",currencySymbol:c="$",locale:d="es-AR",decimals:u=0,isEditMode:m=!1}=e;const g=fN({isEditMode:m}),[b,h]=Object(i.useState)(!1),x=cN(null===n||void 0===n?void 0:n.total,{locale:d,currencySymbol:"",minDecimalsBelow:u,withTooltipMeta:!0}),f=cN(null===n||void 0===n?void 0:n.lastMonth,{locale:d,currencySymbol:"",minDecimalsBelow:u,withTooltipMeta:!0}),v=cN(null===n||void 0===n?void 0:n.actualYear,{locale:d,currencySymbol:"",minDecimalsBelow:u,withTooltipMeta:!0}),j=Number((null===n||void 0===n?void 0:n.variation)||0),A=j>=0,C=A?"#00a692":"#F32465",y=dN(j,{locale:d,digits:0}),O=A?mN:xN;return Object(p.jsx)("div",{className:g.container,children:Object(p.jsxs)("div",{className:g.contentWrapper,children:[Object(p.jsx)("div",{className:g.headerRow,children:Object(p.jsxs)("div",{className:g.headerLeft,children:[r&&Object(p.jsx)("div",{className:g.headerText,children:r}),s&&l&&Object(p.jsx)($w,{className:g.headerTooltip,title:l,placement:"top",arrow:!0,open:b,onOpen:()=>h(!0),onClose:()=>h(!1),children:Object(p.jsx)("button",{className:g.iconTooltipBtn,onClick:()=>h((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]})}),Object(p.jsxs)("div",{className:g.totalRow,children:[Object(p.jsx)($w,{title:`${x.sign}${c} ${x.fullNoSymbol}`,placement:"top",disableHoverListener:!x.abbreviated,children:Object(p.jsxs)(cn.a,{className:g.totalValue,component:"div",children:[Object(p.jsx)("span",{className:g.currencySymbol,children:c}),Object(p.jsx)("span",{className:g.amount,style:{cursor:x.abbreviated?"pointer":"default"},children:null!==(t=x.display)&&void 0!==t?t:x})]})}),Object(p.jsx)($w,{title:Ti.a.t("dashboard.salesVariationTooltip"),placement:"top",arrow:!0,children:Object(p.jsxs)("span",{className:g.variation,style:{color:C,cursor:"pointer"},children:[Object(p.jsx)(O,{className:g.arrow}),y]})})]}),Object(p.jsxs)("div",{className:g.footerRow,children:[Object(p.jsxs)("div",{className:g.cell,children:[Object(p.jsx)("span",{className:g.divider}),Object(p.jsxs)("div",{children:[Object(p.jsx)("div",{className:g.label,children:Ti.a.t("dashboard.lastMonth")}),Object(p.jsx)($w,{title:`${f.sign}${c} ${f.fullNoSymbol}`,placement:"top",disableHoverListener:!f.abbreviated,children:Object(p.jsxs)("div",{className:g.value,style:{cursor:f.abbreviated?"pointer":"default"},children:[c,null!==(a=f.display)&&void 0!==a?a:f]})})]})]}),Object(p.jsxs)("div",{className:g.cell,children:[Object(p.jsx)("span",{className:g.divider}),Object(p.jsxs)("div",{children:[Object(p.jsx)("div",{className:g.label,children:Ti.a.t("dashboard.thisYear")}),Object(p.jsx)($w,{title:`${v.sign}${c} ${v.fullNoSymbol}`,placement:"top",disableHoverListener:!v.abbreviated,children:Object(p.jsxs)("div",{className:g.value,style:{cursor:v.abbreviated?"pointer":"default"},children:[c,null!==(o=v.display)&&void 0!==o?o:v]})})]})]})]})]})})}var jN=a(182),AN=a(261);const CN=Object(u.a)((e=>({container:e=>{let{isEditMode:t}=e;return{padding:"10px 16px",height:170,display:"flex",flexDirection:"column",...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:2,marginBottom:e.spacing(1.5)},headerLeft:{display:"flex",alignItems:"center",gap:8},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}
76},headerTooltip:{flex:"0 0 auto",marginRight:"8px",fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#fff"},iconTooltipBtn:{backgroundColor:"#fff",border:"none",padding:0,zIndex:10,position:"relative",cursor:"pointer"},middleRow:{flex:1,display:"grid",gridTemplateColumns:"32px 1fr 32px",alignItems:"center",columnGap:8,minHeight:0},middleRowSingle:{flex:1,display:"grid",gridTemplateColumns:"1fr",alignItems:"center",minHeight:0},arrowBtn:{background:"transparent",border:0,padding:0,height:32,width:32,display:"grid",placeItems:"center",cursor:"pointer","&:disabled":{opacity:.35,cursor:"default"}},arrowIcon:{width:24,height:24,color:"#8C8C8C"},viewport:e=>{let{isEditMode:t}=e;return{overflow:"hidden",height:"100%",...t&&{minWidth:"400px"}}},containerEmbla:{display:"flex",height:"100%"},slide:{flex:"0 0 100%",minWidth:0,display:"flex",alignItems:"center",justifyContent:"center"},slideInner:{display:"flex",flexDirection:"column",alignItems:"center",gap:6,width:"90%"},amountRow:{fontFamily:"Work Sans, sans-serif",display:"flex",alignItems:"baseline",gap:8},currency:{fontSize:28,fontWeight:500,letterSpacing:"0.06em",color:"#131313","@media (max-width: 1090px)":{fontSize:23},"@media (max-width: 999px)":{fontSize:20}},amount:{fontSize:32,fontWeight:500,color:"#131313",lineHeight:1,"@media (max-width: 1090px)":{fontSize:26},"@media (max-width: 999px)":{fontSize:24}},subtitle:{fontFamily:"Work Sans, sans-serif",fontSize:15,color:"#6C6C6C",maxWidth:"80%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},footerRow:{display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:6},detailLink:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#00A692",textDecoration:"none",cursor:"pointer","&:hover":{color:"#00A692",textDecoration:"none"}}})));function yN(e){let{data:t,header:a=Ti.a.t("dashboard.boxes"),showTooltip:o=!0,tooltipText:n=Ti.a.t("dashboard.tooltipBoxes"),detailHref:r,onViewDetail:s,locale:l="es-AR",decimals:c=0,isEditMode:d=!1}=e;const u=CN({isEditMode:d}),m=Object(i.useMemo)((()=>Array.isArray(null===t||void 0===t?void 0:t.savingBanks)?t.savingBanks:Array.isArray(t)?t:[]),[t]),g=m.length>1,b=Object(i.useMemo)((()=>Object(AN.a)({delay:3e3,stopOnMouseEnter:!0,stopOnInteraction:!1})),[]),[h,x]=Object(jN.a)({loop:g,align:"center",skipSnaps:!1,inViewThreshold:.8},g?[b]:[]),[f,v]=Object(i.useState)(!1),[j,A]=Object(i.useState)(!1),C=Object(i.useCallback)((()=>{x&&(v(x.canScrollPrev()),A(x.canScrollNext()))}),[x]);Object(i.useEffect)((()=>{x&&(x.on("select",C),x.on("reInit",C),C())}),[x,C]),Object(i.useEffect)((()=>{null===x||void 0===x||x.reInit({loop:g})}),[x,g,m.length]);const y=e=>{var t,a,i,o;let{box:n}=e;const r=cN(null===n||void 0===n?void 0:n.Total,{locale:l,currencySymbol:"",minDecimalsBelow:c,withTooltipMeta:!0});return Object(p.jsx)("div",{className:u.slide,children:Object(p.jsxs)("div",{className:u.slideInner,children:[Object(p.jsx)($w,{title:`${null!==(t=null===n||void 0===n?void 0:n.Currency)&&void 0!==t?t:""} ${r.sign}${r.fullNoSymbol}`,placement:"top",disableHoverListener:!r.abbreviated,children:Object(p.jsxs)("div",{className:u.amountRow,children:[Object(p.jsx)("span",{className:u.currency,children:null!==(a=null===n||void 0===n?void 0:n.Currency)&&void 0!==a?a:""}),Object(p.jsx)("span",{className:u.amount,style:{cursor:r.abbreviated?"pointer":"default"},children:(null!==(i=r.display)&&void 0!==i?i:r).replace(/^-\s+/,"-")})]})}),Object(p.jsx)("div",{className:u.subtitle,children:null!==(o=null===n||void 0===n?void 0:n.Nombre)&&void 0!==o?o:""})]})})};return Object(p.jsxs)("div",{className:u.container,children:[Object(p.jsx)("div",{className:u.headerRow,children:Object(p.jsxs)("div",{className:u.headerLeft,children:[a&&Object(p.jsx)("div",{className:u.headerText,children:a}),o&&n&&Object(p.jsx)($w,{className:u.headerTooltip,title:n,placement:"top",arrow:!0,children:Object(p.jsx)("button",{className:u.iconTooltipBtn,"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]})}),g?Object(p.jsxs)("div",{className:u.middleRow,children:[Object(p.jsx)("button",{className:u.arrowBtn,onClick:()=>{var e,t;null===b||void 0===b||null===(e=b.stop)||void 0===e||e.call(b),null===x||void 0===x||x.scrollPrev(),null===b||void 0===b||null===(t=b.play)||void 0===t||t.call(b)},disabled:!f,"aria-label":Ti.a.t("dashboard.prev"),children:Object(p.jsx)(aT,{name:"arrowLeft",className:u.arrowIcon})}),Object(p.jsx)("div",{className:u.viewport,ref:h,children:Object(p.jsx)("div",{className:u.containerEmbla,children:m.map(((e,t)=>{var a;return Object(p.jsx)(y,{box:e},`${null!==(a=e.ID)&&void 0!==a?a:"i"}-${t}`)}))})}),Object(p.jsx)("button",{className:u.arrowBtn,onClick:()=>{var e,t;null===b||void 0===b||null===(e=b.stop)||void 0===e||e.call(b),null===x||void 0===x||x.scrollNext(),null===b||void 0===b||null===(t=b.play)||void 0===t||t.call(b)},disabled:!j,"aria-label":Ti.a.t("next"),children:Object(p.jsx)(aT,{name:"arrowRight",className:u.arrowIcon})})]}):Object(p.jsx)("div",{className:u.middleRowSingle,children:Object(p.jsx)("div",{className:u.viewport,children:Object(p.jsx)("div",{className:u.containerEmbla,children:Object(p.jsx)(y,{box:m[0]||{}})})})})]})}const ON=Object(u.a)((e=>({container:e=>{let{isEditMode:t}=e;return{padding:"10px 16px ",height:170,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{width:"100%",maxWidth:"100%",minWidth:0,position:"relative",overflow:"hidden",...t&&{minWidth:"400px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:2,marginBottom:e.spacing(1.5)},headerLeft:{display:"flex",alignItems:"center",gap:4},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}
76},headerTooltip:{flex:"0 0 auto",marginRight:"8px",fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#fff"},iconTooltipBtn:{backgroundColor:"#fff",border:"none",right:"-5px",padding:0,zIndex:10,position:"relative",cursor:"pointer"},headerRight:{display:"flex",alignItems:"center",gap:12},viewAllLink:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#00A692",textDecoration:"none",cursor:"pointer","&:hover":{color:"#00A692",textDecoration:"none"}},totalRow:{display:"flex",alignItems:"baseline",gap:12,marginBottom:e.spacing(2)},totalValue:{fontFamily:"Work Sans, sans-serif",fontWeight:500,lineHeight:1,display:"inline-flex",alignItems:"baseline",gap:4,maxWidth:"100%",minWidth:0,overflow:"hidden"},currencySymbol:{fontSize:28,fontWeight:500,lineHeight:1,flexShrink:0,"@media (max-width: 1168px) and (min-width: 960px)":{fontSize:20}},amount:{fontSize:32,fontWeight:500,lineHeight:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,"@media (max-width: 1168px) and (min-width: 960px)":{fontSize:25}},variation:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:"Work Sans, sans-serif",fontSize:13,fontWeight:500},arrow:{width:16,height:16},balance:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#8A8A8A",marginLeft:8},footerRow:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:16,marginTop:"auto","@media (max-width: 600px)":{gridTemplateColumns:"1fr 1fr"}},footerRowCarousel:{flex:1,display:"grid",gridTemplateColumns:"22px 1fr 22px",alignItems:"center",columnGap:8,minHeight:0,marginTop:"auto"},arrowBtn:{background:"transparent",border:0,padding:0,height:22,width:22,display:"grid",placeItems:"center",cursor:"pointer","&:disabled":{opacity:.35,cursor:"default"}},arrowIcon:{width:24,height:24,color:"#8C8C8C"},viewport:{overflow:"hidden"},containerEmbla:{display:"flex"},slide:{flex:"0 0 auto",minWidth:120,marginRight:16},cell:{display:"grid",gridTemplateColumns:"6px 1fr",alignItems:"center",columnGap:12,width:"100%"},divider:{width:2,height:45,borderRadius:4,background:"#F32465",justifySelf:"center"},label:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#8A8A8A",marginBottom:2},value:{fontFamily:"Work Sans, sans-serif",fontSize:18,fontWeight:500,width:"fit-content",maxWidth:"100%",color:"#131313",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,"@media (max-width: 1068px) and (min-width: 960px)":{fontSize:15}}})));function SN(e){var t;let{data:a,header:o=Ti.a.t("dashboard.pendingPayment"),showTooltip:n=!1,tooltipText:r="",currencySymbol:s="$",locale:l="es-AR",decimals:c=0,isEditMode:d=!1,detailHref:u,onViewDetail:m}=e;const g=ON({isEditMode:d}),[b,h]=Object(i.useState)(!1),x=Object(i.useMemo)((()=>{const e=[{key:"overdue",label:Ti.a.t("dashboard.overdue"),meta:cN(null===a||void 0===a?void 0:a.expired,{locale:l,currencySymbol:"",minDecimalsBelow:c,withTooltipMeta:!0})},{key:"dueSoon",label:Ti.a.t("dashboard.dueSoon"),meta:cN(null===a||void 0===a?void 0:a.upcoming,{locale:l,currencySymbol:"",minDecimalsBelow:c,withTooltipMeta:!0})}];return null!=(null===a||void 0===a?void 0:a.creditBalance)&&e.push({key:"balance",label:Ti.a.t("dashboard.favorableBalance"),meta:cN(null===a||void 0===a?void 0:a.creditBalance,{locale:l,currencySymbol:"",minDecimalsBelow:c,withTooltipMeta:!0})}),e}),[a,l,c]),f=Object(i.useRef)(null),v=Object(i.useRef)(null),[j,A]=Object(i.useState)(null),C=Object(i.useCallback)((()=>{f.current&&v.current&&("undefined"!==typeof document&&document.fonts&&document.fonts.ready?document.fonts.ready:Promise.resolve()).then((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{if(!f.current||!v.current)return;const e=f.current.clientWidth,t=v.current;if(e<100)return void setTimeout((()=>C()),150);if(window.innerWidth<600)return void A(!0);const a=Array.from(t.querySelectorAll("[data-pb-cell]"));if(0===a.length)return void A(!1);const i=e=>{var t,a,i;if(!e)return!1;if("undefined"===typeof window)return!1;const o=null===(t=e.getClientRects)||void 0===t?void 0:t.call(e);if(o&&o.length>1)return!0;const n=window.getComputedStyle(e);let r=parseFloat(n.lineHeight);if(Number.isNaN(r)){const e=parseFloat(n.fontSize);r=Number.isNaN(e)?0:1.2*e}const s=null!==(a=null===(i=e.getBoundingClientRect)||void 0===i?void 0:i.call(e).height)&&void 0!==a?a:e.clientHeight;return r>0&&s>1.35*r};let o=!1;for(const n of a){if(n.scrollWidth>n.clientWidth+2){o=!0;break}const e=n.querySelector("[data-pb-label]"),t=n.querySelector("[data-pb-value]");if(i(e)||i(t)){o=!0;break}if(e&&e.scrollWidth>e.clientWidth+2||t&&t.scrollWidth>t.clientWidth+2){o=!0;break}}t.scrollWidth>t.clientWidth+5&&(o=!0),A(o)}))}))}))}))}),[x.length]);Object(i.useEffect)((()=>
76{if(!f.current)return;const e=new ResizeObserver((()=>{setTimeout((()=>{C()}),100)}));return e.observe(f.current),()=>{e.disconnect()}}),[C]),Object(i.useEffect)((()=>{const e=setTimeout((()=>{C()}),500);return()=>clearTimeout(e)}),[x,C]);const y=Object(i.useMemo)((()=>Object(AN.a)({delay:3e3,stopOnMouseEnter:!0,stopOnInteraction:!1})),[]),[O,S]=Object(jN.a)({align:"start",containScroll:"trimSnaps",dragFree:j},j?[y]:[]),[E,I]=Object(i.useState)(!1),[w,T]=Object(i.useState)(!1),P=Object(i.useCallback)((()=>{S&&(I(S.canScrollPrev()),T(S.canScrollNext()))}),[S]);Object(i.useEffect)((()=>{S&&(S.on("select",P),S.on("reInit",P),P())}),[S,P]),Object(i.useEffect)((()=>{S&&j&&S.reInit()}),[S,j,x.length]);const R=cN(null===a||void 0===a?void 0:a.total,{locale:l,currencySymbol:"",minDecimalsBelow:c,withTooltipMeta:!0});Number((null===a||void 0===a?void 0:a.variation)||0);return Object(p.jsx)("div",{className:g.container,ref:f,children:Object(p.jsxs)("div",{className:g.contentWrapper,children:[Object(p.jsxs)("div",{className:g.headerRow,children:[Object(p.jsxs)("div",{className:g.headerLeft,children:[o&&Object(p.jsx)("div",{className:g.headerText,children:o}),n&&r&&Object(p.jsx)($w,{className:g.headerTooltip,title:r,placement:"top",arrow:!0,open:b,onOpen:()=>h(!0),onClose:()=>h(!1),children:Object(p.jsx)("button",{className:g.iconTooltipBtn,onClick:()=>h((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]}),(u||m)&&Object(p.jsx)("div",{className:g.headerRight,children:Object(p.jsx)("a",{className:g.viewAllLink,href:u||"#",onClick:e=>{e.preventDefault(),m?m():u&&(window.location.href=u)},children:Ti.a.t("dashboard.viewDetail")})})]}),Object(p.jsx)("div",{className:g.totalRow,children:Object(p.jsx)("div",{style:{display:"flex",alignItems:"baseline",gap:8,maxWidth:"100%",minWidth:0},children:Object(p.jsx)($w,{title:`${R.sign}${s} ${R.fullNoSymbol}`,placement:"top",disableHoverListener:!R.abbreviated,children:Object(p.jsxs)(cn.a,{className:g.totalValue,component:"div",style:{maxWidth:"100%"},children:[Object(p.jsx)("span",{className:g.currencySymbol,children:s}),Object(p.jsx)("span",{className:g.amount,style:{cursor:R.abbreviated?"pointer":"default"},children:null!==(t=R.display)&&void 0!==t?t:R})]})})})}),Object(p.jsx)("div",{className:g.footerRow,ref:v,style:{visibility:"hidden",position:"absolute",top:0,left:0,width:"100%",pointerEvents:"none"},children:x.map((e=>{var t;return Object(p.jsxs)("div",{className:g.cell,"data-pb-cell":!0,children:[Object(p.jsx)("span",{className:g.divider}),Object(p.jsxs)("div",{"data-pb-content":!0,children:[Object(p.jsx)("div",{className:g.label,"data-pb-label":!0,children:e.label}),Object(p.jsx)($w,{title:`${e.meta.sign}${s} ${e.meta.fullNoSymbol}`,placement:"top",disableHoverListener:!e.meta.abbreviated,children:Object(p.jsxs)("div",{className:g.value,"data-pb-value":!0,style:{cursor:e.meta.abbreviated?"pointer":"default"},children:[s,null!==(t=e.meta.display)&&void 0!==t?t:e.meta]})})]})]},e.key)}))}),!0===j&&Object(p.jsxs)("div",{className:g.footerRowCarousel,children:[Object(p.jsx)("button",{className:g.arrowBtn,onClick:()=>{var e,t;null===y||void 0===y||null===(e=y.stop)||void 0===e||e.call(y),null===S||void 0===S||S.scrollPrev(),null===y||void 0===y||null===(t=y.play)||void 0===t||t.call(y)},disabled:!E,"aria-label":Ti.a.t("dashboard.prev"),children:Object(p.jsx)(aT,{name:"arrowLeft",className:g.arrowIcon})}),Object(p.jsx)("div",{className:g.viewport,ref:O,children:Object(p.jsx)("div",{className:g.containerEmbla,children:x.map((e=>{var t;return Object(p.jsx)("div",{className:g.slide,children:Object(p.jsxs)("div",{className:g.cell,"data-pb-cell":!0,children:[Object(p.jsx)("span",{className:g.divider}),Object(p.jsxs)("div",{"data-pb-content":!0,children:[Object(p.jsx)("div",{className:g.label,"data-pb-label":!0,children:e.label}),Object(p.jsx)($w,{title:`${e.meta.sign}${s} ${e.meta.fullNoSymbol}`,placement:"top",disableHoverListener:!e.meta.abbreviated,children:Object(p.jsxs)("div",{className:g.value,"data-pb-value":!0,style:{cursor:e.meta.abbreviated?"pointer":"default"},children:[s,null!==(t=e.meta.display)&&void 0!==t?t:e.meta]})})]})]})},e.key)}))})}),Object(p.jsx)("button",{className:g.arrowBtn,onClick:()=>{var e,t;null===y||void 0===y||null===(e=y.stop)||void 0===e||e.call(y),null===S||void 0===S||S.scrollNext(),null===y||void 0===y||null===(t=y.play)||void 0===t||t.call(y)},disabled:!w,"aria-label":Ti.a.t("next"),children:Object(p.jsx)(aT,{name:"arrowRight",className:g.arrowIcon})})]}),!1===j&&Object(p.jsx)("div",{className:g.footerRow,children:x.map((e=>{var t;
76return Object(p.jsxs)("div",{className:g.cell,"data-pb-cell":!0,children:[Object(p.jsx)("span",{className:g.divider}),Object(p.jsxs)("div",{"data-pb-content":!0,children:[Object(p.jsx)("div",{className:g.label,"data-pb-label":!0,children:e.label}),Object(p.jsx)($w,{title:`${e.meta.sign}${s} ${e.meta.fullNoSymbol}`,placement:"top",disableHoverListener:!e.meta.abbreviated,children:Object(p.jsxs)("div",{className:g.value,"data-pb-value":!0,style:{cursor:e.meta.abbreviated?"pointer":"default"},children:[s,null!==(t=e.meta.display)&&void 0!==t?t:e.meta]})})]})]},e.key)}))})]})})}const EN=Object(u.a)((e=>({container:{padding:"10px 16px",height:170,display:"flex",flexDirection:"column"},headerRow:{display:"flex",alignItems:"center",gap:"4px",paddingTop:2,marginBottom:e.spacing(1.5)},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},headerTooltip:{flex:"0 0 auto",marginRight:8,fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#fff"},iconTooltipBtn:{background:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},totalValue:{fontFamily:"Work Sans, sans-serif",fontWeight:500,color:"#131313",lineHeight:1,display:"inline-flex",alignItems:"baseline",gap:4,marginBottom:15,maxWidth:"100%",minWidth:0,overflow:"hidden"},currencySymbol:{fontSize:28,fontWeight:500,lineHeight:1,flexShrink:0},amount:{fontSize:32,fontWeight:500,lineHeight:1,cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},middle:{flex:1,display:"flex",alignItems:"center"},footerRow:{marginTop:"auto",display:"flex",alignItems:"center",justifyContent:"space-between"},legend:{display:"inline-flex",alignItems:"center",gap:8,fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#6C6C6C"},dot:{width:8,height:8,borderRadius:"50%",background:"#F32465"},detailLink:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#00A692",textDecoration:"none",cursor:"pointer","&:hover":{color:"#00A692",textDecoration:"none"}}})));function IN(e){var t;let{data:a,header:o=Ti.a.t("dashboard.pendingPayment"),showTooltip:n=!1,tooltipText:r="",currencySymbol:s="$",locale:l="es-AR",decimals:c=0,isEditMode:d=!1,detailHref:u,onViewDetail:m,legendText:g=Ti.a.t("dashboard.pendingBillsLegend")}=e;const b=EN({isEditMode:d}),[h,x]=Object(i.useState)(!1),f=cN(null===a||void 0===a?void 0:a.total,{locale:l,currencySymbol:"",minDecimalsBelow:c,withTooltipMeta:!0});return Object(p.jsxs)("div",{className:b.container,children:[Object(p.jsxs)("div",{className:b.headerRow,children:[o&&Object(p.jsx)("div",{className:b.headerText,children:o}),n&&r&&Object(p.jsx)($w,{className:b.headerTooltip,title:r,placement:"top",arrow:!0,open:h,onOpen:()=>x(!0),onClose:()=>x(!1),children:Object(p.jsx)("button",{className:b.iconTooltipBtn,onClick:()=>x((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]}),Object(p.jsx)("div",{className:b.middle,style:{minWidth:0,maxWidth:"100%",overflow:"hidden"},children:Object(p.jsx)($w,{title:`${s} ${f.sign}${f.fullNoSymbol}`,placement:"top",disableHoverListener:!f.abbreviated,children:Object(p.jsxs)(cn.a,{className:b.totalValue,component:"div",style:{maxWidth:"100%"},children:[Object(p.jsx)("span",{className:b.currencySymbol,children:s}),Object(p.jsx)("span",{className:b.amount,style:{cursor:f.abbreviated?"pointer":"default"},children:null!==(t=f.display)&&void 0!==t?t:f})]})})}),Object(p.jsxs)("div",{className:b.footerRow,children:[Object(p.jsxs)("div",{className:b.legend,children:[Object(p.jsx)("span",{className:b.dot}),Object(p.jsx)("span",{children:g})]}),Object(p.jsx)("a",{href:u||"#",onClick:e=>{e.preventDefault(),m?m():u&&(window.location.href=u)},className:b.detailLink,children:Ti.a.t("dashboard.viewDetail")})]})]})}const wN=Object(u.a)((e=>({container:e=>{let{isEditMode:t}=e;return{padding:"10px 16px",height:170,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{width:"100%",maxWidth:"100%",minWidth:0,...t&&{minWidth:"400px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:2,marginBottom:e.spacing(1.5)},headerLeft:{display:"flex",alignItems:"center",gap:4},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}
76},headerTooltip:{flex:"0 0 auto",marginRight:8,fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#fff"},iconTooltipBtn:{backgroundColor:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},totalRow:{display:"flex",alignItems:"baseline",gap:12,marginBottom:e.spacing(2)},totalValue:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:32,color:"#131313",lineHeight:1,display:"inline-flex",alignItems:"baseline"},variation:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:"Work Sans, sans-serif",fontSize:13,fontWeight:500},arrow:{width:16,height:16},footerRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:16,marginTop:"auto"},cell:{display:"grid",gridTemplateColumns:"6px 1fr",alignItems:"center",columnGap:12},divider:{width:2,height:45,borderRadius:4,background:"#544CC9",justifySelf:"center"},label:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#8A8A8A",marginBottom:2},value:{fontFamily:"Work Sans, sans-serif",fontSize:18,fontWeight:500,color:"#131313"}}))),TN=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es-AR";return Number(null!==e&&void 0!==e?e:0).toLocaleString(t,{maximumFractionDigits:0})};function PN(e){let{data:t,header:a=Ti.a.t("dashboard.unitsSoldTitle"),showTooltip:o=!1,tooltipText:n="",locale:r="es-AR",isEditMode:s=!1}=e;const l=wN({isEditMode:s}),[c,d]=Object(i.useState)(!1),u=TN(null===t||void 0===t?void 0:t.total,r),m=TN(null===t||void 0===t?void 0:t.lastMonth,r),g=TN(null===t||void 0===t?void 0:t.lastYearSameMonth,r),b=Number((null===t||void 0===t?void 0:t.variation)||0),h=b>=0,x=h?"#00a692":"#F32465",f=dN(b,{locale:r,digits:0}),v=h?mN:xN;return Object(p.jsx)("div",{className:l.container,children:Object(p.jsxs)("div",{className:l.contentWrapper,children:[Object(p.jsx)("div",{className:l.headerRow,children:Object(p.jsxs)("div",{className:l.headerLeft,children:[a&&Object(p.jsx)("div",{className:l.headerText,children:a}),o&&n&&Object(p.jsx)($w,{className:l.headerTooltip,title:n,placement:"top",arrow:!0,open:c,onOpen:()=>d(!0),onClose:()=>d(!1),children:Object(p.jsx)("button",{className:l.iconTooltipBtn,onClick:()=>d((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]})}),Object(p.jsxs)("div",{className:l.totalRow,children:[Object(p.jsx)(cn.a,{className:l.totalValue,component:"div",children:u}),Object(p.jsx)($w,{title:Ti.a.t("dashboard.unitsVariationTooltip"),placement:"top",arrow:!0,children:Object(p.jsxs)("span",{className:l.variation,style:{color:x,cursor:"pointer"},children:[Object(p.jsx)(v,{className:l.arrow}),f]})})]}),Object(p.jsxs)("div",{className:l.footerRow,children:[Object(p.jsxs)("div",{className:l.cell,children:[Object(p.jsx)("span",{className:l.divider}),Object(p.jsxs)("div",{children:[Object(p.jsx)("div",{className:l.label,children:Ti.a.t("dashboard.lastMonth")}),Object(p.jsx)("div",{className:l.value,children:m})]})]}),Object(p.jsxs)("div",{className:l.cell,children:[Object(p.jsx)("span",{className:l.divider}),Object(p.jsxs)("div",{children:[Object(p.jsx)("div",{className:l.label,children:Ti.a.t("dashboard.sameMonth")}),Object(p.jsx)("div",{className:l.value,children:g})]})]})]})]})})}var RN=a(378),NN=a.n(RN);var LN=e=>{const t=Object(i.useRef)(null),a=Object(i.useRef)(null),o=e.data,n=Array.isArray(o)?o.filter((e=>e&&Array.isArray(e.data))):[],r=o&&o[2]&&o[2].Currency?o[2].Currency:"",s=n.length>0&&n[0].data&&Array.isArray(n[0].data)?n[0].data.map((e=>e.x)):[],l={chart:{type:"bar",height:4,redrawOnParentResize:!0,toolbar:{show:!1},title:{style:{color:"#131313"}},zoom:{enabled:!1},padding:{left:0,right:0},fontFamily:"Work Sans, sans-serif",defaultLocale:"es",locales:[{name:"es",options:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],shortMonths:["Ene","Feb","Mar","Abr","May","Jun","JUL","AGO","Sep","Oct","Nov","Dic"],days:["Domingo","Lunes","Martes","Mi\xe9rcoles","Jueves","Viernes","S\xe1bado"],shortDays:["Dom","Lun","Mar","Mie","Jue","Vie","S\xe1b"]}}]},plotOptions:{bar:{horizontal:!1,columnWidth:s.length<=2?"5%":s.length<=3?"15%":"30px",borderRadius:6,distributed:!1,rangeBarOverlap:!0,rangeBarGroupRows:!1}},dataLabels:{enabled:!1},stroke:{show:!0,width:2,lineCap:"round",colors:["transparent"]},tooltip:{y:{formatter:function(e){const t=e<0?"-":"",a=Math.abs(Number(e)).toLocaleStr
76ing("es-AR",{minimumFractionDigits:0,maximumFractionDigits:0});return`${r} ${t}${a}`}}},xaxis:{type:"category",categories:s.length>0?s:void 0,tickPlacement:"on",tickAmount:s.length,offsetX:0,offsetY:0,labels:{show:!0,format:s.length>0?void 0:"MMM",showDuplicates:!1,hideOverlappingLabels:!1,rotate:s.length>8?-45:0,rotateAlways:s.length>=12,trim:!1,formatter:s.length>0?function(e,t){return e}:void 0,style:{fontSize:"13px",colors:"#666666"},offsetY:0,maxHeight:void 0}},yaxis:{title:{text:""},offsetX:0,labels:{maxHeight:"10px",formatter:function(e){return cN(e,{currencySymbol:r,locale:"es-AR",minDecimalsBelow:0})},style:{fontSize:"13px",colors:"#666666"}}},fill:{opacity:1,colors:["#00c7af","#ff2569"]},legend:{horizontalAlign:"center",position:"bottom",fontSize:"14px",fontFamily:"Work Sans, sans-serif",onItemClick:{toggleDataSeries:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:["#00c7af","#ff2569"],radius:10,customHTML:null,onClick:null,offsetX:"-10%",offsetY:0},labels:{colors:["#131313"]},itemMargin:{horizontal:10,vertical:5}},responsive:[{breakpoint:500,options:{plotOptions:{bar:{horizontal:!1,columnWidth:s.length<=2?"5%":s.length<=3?"15%":"30px",borderRadius:3,distributed:!1,rangeBarOverlap:!0,rangeBarGroupRows:!1}},stroke:{show:!0,width:4,lineCap:"round",colors:["transparent"]},legend:{horizontalAlign:"center",position:"bottom",fontSize:"14px",fontFamily:"Work Sans, sans-serif",markers:{width:12,height:12,strokeWidth:0,fillColors:["#00c7af","#ff2569"],radius:10,customHTML:null,onClick:null,offsetX:"-10%",offsetY:0},labels:{colors:["#131313"],style:{cssClass:"labels"}},itemMargin:{horizontal:15}}}}]},c=()=>{t.current&&t.current.chart&&t.current.chart.windowResizeHandler()};return Object(i.useEffect)((()=>{if(!a.current)return;const e=new ResizeObserver((()=>{setTimeout((()=>{c()}),100)}));return e.observe(a.current),()=>{e.disconnect()}}),[]),Object(i.useEffect)((()=>{const e=setTimeout((()=>{c()}),200);return()=>{clearTimeout(e)}}),[e.isEditMode]),Object(p.jsx)(v.a,{item:!0,xs:12,md:12,lg:12,xl:12,ref:a,style:{padding:0,margin:0,width:"100%"},children:Object(p.jsx)(NN.a,{ref:t,options:l,series:n,type:"bar",id:"ExChart",height:e.minHeight,width:"100%",sx:{overflowY:"hidden",width:"100%"}})})};const kN=e=>{let{up:t=!1}=e;return Object(p.jsx)("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:t?"rotate(180deg)":"none"},children:Object(p.jsx)("path",{d:"M-2.23509e-07 0.628906L4.8125 5.44141L5.12695 5.74219L5.44141 5.44141L10.2539 0.628905L9.625 -8.97559e-07L5.12695 4.49805L0.628906 -5.04328e-07L-2.23509e-07 0.628906Z",fill:"#666666"})})},BN=Object(u.a)((()=>({button:{background:"#fff",border:"1px solid #DFDFDF",borderRadius:"5px",padding:"5px 7px 5px 12px",display:"flex",alignItems:"center",gap:"2px",cursor:"pointer",fontFamily:"Work Sans, sans-serif",fontSize:"14px",color:"#131313",fontWeight:400,minHeight:"28px","&:hover":{borderColor:"#DFDFDF"},"&:focus":{outline:"none",borderColor:"#DFDFDF"},"&:active":{borderColor:"#DFDFDF"}},buttonText:{flex:1,textAlign:"left",marginRight:"8px"},chevronIcon:{display:"flex",alignItems:"center"},menu:{zIndex:1300},paper:{borderRadius:"5px",boxShadow:"0px 3px 9px rgba(0, 0, 0, 0.22)!important",width:"193px",background:"#FFFFFF",padding:"15px",display:"flex",flexDirection:"column",gap:"4px"},menuTitle:{padding:0,marginBottom:"4px",fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:600,color:"#131313"},menuList:{padding:"0 !important",display:"flex",flexDirection:"column",gap:"4px"},menuItem:{padding:"0 !important",minHeight:"auto","&:hover":{backgroundColor:"transparent"},"&.MuiMenuItem-root":{padding:"0 !important"}},menuItemContent:{display:"flex",alignItems:"center",padding:0,width:"100%",cursor:"pointer","&:hover":{backgroundColor:"transparent"}},menuItemText:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",color:"#131313",marginLeft:"8px"}})));function DN(e){let{options:t=[],value:a=null,onChange:o=(()=>{}),placeholder:n="Seleccionar",menuTitle:r="Per\xedodo:",plan:s,onOpenBlockedModal:l,isEditMode:c=!1,idPrefix:d}=e;const u=BN(),[m,g]=Object(i.useState)(!1),b=Object(i.useRef)(null),h=Object(i.useRef)(null),x=Object(i.useCallback)((e=>
76{e&&e.target&&("filter-menu-list"===e.target.id||e.target.closest&&e.target.closest("#filter-menu-list"))||g(!1)}),[]);Object(i.useEffect)((()=>{if(m)return window.addEventListener("scroll",x,{passive:!0}),window.addEventListener("resize",x,{passive:!0}),()=>{window.removeEventListener("scroll",x),window.removeEventListener("resize",x)}}),[m,x]);const f=()=>Object(p.jsx)("span",{style:{display:"inline-block",width:18,height:18,border:"1px solid #BEBEBE",borderRadius:3,background:"#FFFFFF"}}),v=()=>Object(p.jsx)("span",{style:{display:"inline-block",width:18,height:18,borderRadius:3,background:"#00A692",position:"relative"},children:Object(p.jsx)("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:4,left:3},children:Object(p.jsx)("path",{d:"M10.59 0.59L4.5 6.67 1.41 3.59 0 5l4.5 4.5L12 2.01 10.59 0.59z",fill:"#FFFFFF"})})}),j=t.map((e=>"string"===typeof e?{value:e,label:e}:e)),A=j.find((e=>e.value===a)),C=A?A.label:n,y=e=>{b.current&&b.current.contains(e.target)||h.current&&h.current.contains(e.target)||g(!1)},O=e=>{"Tab"===e.key&&(e.preventDefault(),g(!1))};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)("button",{ref:b,id:d?`${d}-filter-dropdown`:void 0,type:"button",className:u.button,onClick:()=>{c||("Freemium"!==s&&"Basic"!==s&&"BasicNew"!==s?g((e=>!e)):l&&l())},"aria-label":"Seleccionar per\xedodo","aria-expanded":m,disabled:c,style:c?{opacity:.5,cursor:"not-allowed"}:{},children:[Object(p.jsx)("span",{className:u.buttonText,children:C}),Object(p.jsx)("span",{className:u.chevronIcon,children:Object(p.jsx)(kN,{up:m})})]}),Object(p.jsx)(Ir.a,{open:m,anchorEl:b.current,role:void 0,placement:"bottom-end",transition:!0,disablePortal:!0,className:u.menu,children:e=>{let{TransitionProps:t,placement:i}=e;return Object(p.jsx)(qm.a,{onClickAway:y,children:Object(p.jsx)(Gm.a,{...t,style:{transformOrigin:"bottom"===i?"center top":"center bottom"},children:Object(p.jsxs)(Ym.a,{ref:h,className:u.paper,elevation:0,children:[r&&Object(p.jsx)(cn.a,{className:u.menuTitle,children:r}),Object(p.jsx)(Km.a,{autoFocusItem:m,id:"filter-menu-list",onKeyDown:O,className:u.menuList,children:j.map((e=>{const t=a===e.value;return Object(p.jsx)(ln.a,{className:u.menuItem,onClick:()=>{return t=e.value,o(t),void g(!1);var t},disableRipple:!0,children:Object(p.jsxs)("div",{className:u.menuItemContent,children:[Object(p.jsx)(Tm.a,{checked:t,icon:Object(p.jsx)(f,{}),checkedIcon:Object(p.jsx)(v,{}),sx:{padding:"4px"}}),Object(p.jsx)("span",{className:u.menuItemText,children:e.label})]})},e.value)}))})]})})})}})]})}const FN={lastWeek:"\xdaltima semana",currentMonth:"Mensual",last3Months:"Trimestral",last6Months:"Semestral",currentYear:"\xdalt. 12 meses"}
76,MN={"\xdaltima semana":"lastWeek",Mensual:"currentMonth",Trimestral:"last3Months",Semestral:"last6Months","\xdalt. 12 meses":"currentYear"},VN="last6Months",WN=["\xdaltima semana","Mensual","Trimestral","Semestral","\xdalt. 12 meses"],HN=Object(u.a)((()=>({container:e=>{let{isEditMode:t}=e;return{padding:"15px 16px",height:360,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,overflowX:"hidden",overflowY:"hidden",...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}},"@media (max-width: 600px)":{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{flex:1,display:"flex",flexDirection:"column",minHeight:0,width:"100%",maxWidth:"100%",minWidth:0,...t&&{minWidth:"400px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:5},headerLeft:{display:"flex",alignItems:"center",gap:"4px",flex:1},headerRight:{display:"flex",alignItems:"center",gap:"8px"},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},iconTooltipBtn:{background:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},subTitle:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#666",marginBottom:8},chartWrap:e=>{let{isEditMode:t,is12Months:a}=e;return{flex:1,minHeight:250,width:a?"calc(100% + 18px)":"calc(100% + 40px)",maxWidth:a?"calc(100% + 18px)":"calc(100% + 40px)",minWidth:0,marginLeft:"-10px",marginRight:"-10px",...t&&{minWidth:"500px"},"@media (max-width: 600px)":{minWidth:"500px",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},emptyStateContainer:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"16px 16px 0 16px",minHeight:0},emptyStateIcon:{width:167,height:167,flex:"0 0 auto"},emptyStateText:{fontSize:15,fontWeight:400,color:"#666666",fontFamily:"Work Sans, sans-serif",textAlign:"center"}})));function UN(e){let{data:t,header:a=Ti.a.t("dashboard.incomeExpenses"),showTooltip:o=!1,tooltipText:n="",selectedPeriod:r=VN,userType:s,blockedModuleModal:l,onPeriodChange:c,isEditMode:d=!1}=e;const u=(()=>{if(!t||!Array.isArray(t))return!1;const e=t.filter((e=>e&&Array.isArray(null===e||void 0===e?void 0:e.data)));if(0===e.length)return!1;const a=e[0];return a&&a.data&&12===a.data.length})(),m=HN({isEditMode:d,is12Months:u}),{userData:g}=$a(),b=null===g||void 0===g?void 0:g.plan_name,[h,x]=Object(i.useState)(!1),f=e=>FN[e]||"Semestral",[v,j]=Object(i.useState)((()=>f(r)));Object(i.useEffect)((()=>{const e=f(r);e!==v&&j(e)}),[r,v]);const A=(()=>{if(null===t||void 0===t)return!1;if(!Array.isArray(t))return!1;const e=t.filter((e=>Array.isArray(null===e||void 0===e?void 0:e.data)));if(0===e.length)return!1;if(!e.some((e=>e.data.length>0)))return!1;return!e.every((e=>e.data.every((e=>0===Number(null===e||void 0===e?void 0:e.y)))))})();return Object(p.jsx)("div",{className:m.container,children:Object(p.jsxs)("div",{className:m.contentWrapper,children:[Object(p.jsxs)("div",{className:m.headerRow,children:[Object(p.jsxs)("div",{className:m.headerLeft,children:[Object(p.jsx)("div",{className:m.headerText,children:a}),o&&n&&Object(p.jsx)($w,{title:n,placement:"top",arrow:!0,children:Object(p.jsx)("button",{className:m.iconTooltipBtn,"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]}),Object(p.jsx)("div",{className:m.headerRight,children:Object(p.jsx)(DN,{idPrefix:"sales-vs-buys",options:WN,value:v,onCh
76ange:e=>{if(j(e),c){const t=MN[e];t&&c(t)}},menuTitle:"Per\xedodo:",plan:b,onOpenBlockedModal:()=>{x(!0)},isEditMode:d})})]}),A?Object(p.jsx)("div",{className:m.chartWrap,children:Object(p.jsx)(LN,{data:t,minHeight:"280px",isEditMode:d})}):Object(p.jsxs)("div",{className:m.emptyStateContainer,children:[Object(p.jsx)(JR,{className:m.emptyStateIcon}),Object(p.jsx)("div",{className:m.emptyStateText,children:Ti.a.t("dashboard.noData")})]}),Object(p.jsx)(ki,{limitationKey:Ti.a.t("dashboard.filtersLimitationText"),isOpen:h,handleClose:()=>{x(!1)},primaryButtonClick:()=>{x(!1),window.open("/modulos/seguridad/elegir-plan.aspx","_self")}})]})})}const _N=Object(u.a)((()=>({container:e=>{let{size:t,isEditMode:a}=e;return{padding:"15px 16px 15px 16px",height:360,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,...a&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{flex:1,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,...t&&{minWidth:"450px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},headerLeft:{display:"flex",alignItems:"center",gap:"4px",flex:1},headerRight:{display:"flex",alignItems:"center"},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},iconTooltipBtn:{background:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},list:{marginTop:4,overflow:"visible"},row:{display:"grid",gridTemplateColumns:"32px 1fr auto",alignItems:"center",gap:12,padding:"4px 0"},rankChip:{width:28,height:28,borderRadius:"9999px",display:"grid",placeItems:"center",background:"#EEE9FF",color:"#544CC9",fontFamily:"Work Sans, sans-serif",fontSize:15,fontWeight:500},placeholderRow:{opacity:.4},placeholderChip:{background:"#E5E5E5",color:"#9E9E9E"},placeholderName:{color:"#9E9E9E"},placeholderSub:{color:"#9E9E9E"},placeholderAmount:{color:"#9E9E9E"},nameBlock:{minWidth:0},name:{fontFamily:"Work Sans, sans-serif",fontSize:15,fontWeight:500,color:"#131313",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},sub:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#666666",marginTop:0,fontWeight:400},amount:{fontFamily:"Work Sans, sans-serif",fontSize:15,fontWeight:400,color:"#131313",whiteSpace:"nowrap"},emptyState:{display:"grid",placeItems:"center",padding:"24px 8px",color:"#8C8C8C",fontFamily:"Work Sans, sans-serif",fontSize:14},emptyStateContainer:{flex:1,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:"0 16px",gap:16,minHeight:0},emptyStateIcon:{width:43,height:50,flex:"0 0 auto"},emptyStateText:{fontSize:15,fontWeight:400,color:"#666666",fontFamily:"Work Sans, sans-serif"},footerRow:{marginTop:"auto",display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:8,"@media (min-width: 320px)":{paddingTop:0}},legend:{display:"inline-flex",alignItems:"center",gap:8,fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#6C6C6C"},dot:{width:8,height:8,borderRadius:"50%",background:"#544CC9"}})));function zN(e){let{data:t,header:a=Ti.a.t("dashboard.customersRankingTitle"),currencySymbol:o="$",locale:n="es-AR",size:r="m",isEditMode:s=!1,maxItems:l=5,decimals:c=0,showTooltip:d=!1,tooltipText:u="",legendText:m,selectedPeriod:g=VN,userType:b,plan:h,blockedModuleModal:x,onPeriodChange:f}=e;const v=Array.isArray(null===t||void 0===t?void 0:t.items)?t.items:Array.isArray(t)?t:[],j=(null===t||void 0===t?void 0:t.dateRange)||"",A=v.length>0,C=m||(j?`${Ti.a.t("dashboard.closedWeek")}: ${j}`:Ti.a.t("dashboard.closedWeek")),y=_N({size:r,isEditMode:s}),[O,S]=Object(i.useState)(!1),[E,I]=Object(i.useState)(!1),w=e=>FN[e]||"Semestral",[T,P]=Object(i.useState)((()=>w(g)));Object(i.useEffect)((()=>{const e=w(g);e!==T&&P(e)}),[g,T]);const R=A?Math.min(v.length,l):0,N=A?Math.max(0,l-R):0;return Object(p.jsx)("div",{className:y.container,children:Object(p.jsxs)("div",{className:y.contentWrapper,children:[Object(p.jsxs)("div",{className:y.headerRow,children:[Object(p.jsxs)("div",{className:y.headerLeft,children:[Object(p.jsx)("div",{className:y.headerText,children:a}),d&&u&&Object(p.jsx)($w,{title:u,placement:"top",arrow:!0,open:O,onOpen:()=>S(!0),onClose:()=>S(!1),children:Object(p.jsx)("button",{className:y.iconTooltipBtn,onClick:()=>S((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]}),Object(p.jsx)("div",{className:y.headerRight,children:Object(p.jsx)(DN,{idPrefix:"customer-ranking",options:WN,value:T,onChange:e=>{if(P(e),f){const t=MN[e];t&&f(t)}},menuTitle:"Per\xedodo:",plan:h,onOpenBlockedModal:()=>{I(!0)},isEditMode:s})})]}),A?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)("div",{className:y.list,children:[v.slice(0,l).map(((e,t)=>{var a,i;const r=Number(null!==(a=e.totalProduct)&&void 0!==a?a:0),s=cN(e.total,{locale:n,currencySymbol:o,minDecimalsBelow:c,withTooltipMeta:!0});return Object(p.jsxs)("div",{className:y.row,children:[Object(p.jsx)("div",{className:y.rankChip,children:t+1}),Object(p.jsxs)("div",{className:y.nameBlock,children:[Object(p.jsx)("div",{className:y.name,children:e.customer}),Object(p.jsx)("div",{className:y.sub,children:`${r.toLocaleStr
76ing(n)} ${1===r?Ti.a.t("dashboard.product"):Ti.a.t("dashboard.products")}`})]}),Object(p.jsx)($w,{title:`${s.sign}${o} ${s.fullNoSymbol}`,placement:"top",disableHoverListener:!s.abbreviated,children:Object(p.jsx)("div",{className:y.amount,style:{cursor:s.abbreviated?"pointer":"default"},children:null!==(i=s.display)&&void 0!==i?i:s})})]},`${e.customer}-${t}`)})),Array.from({length:N}).map(((e,t)=>{const a=R+t+1;return Object(p.jsxs)("div",{className:`${y.row} ${y.placeholderRow}`,children:[Object(p.jsx)("div",{className:`${y.rankChip} ${y.placeholderChip}`,children:a}),Object(p.jsxs)("div",{className:y.nameBlock,children:[Object(p.jsx)("div",{className:`${y.name} ${y.placeholderName}`,children:"\u2014"}),Object(p.jsxs)("div",{className:`${y.sub} ${y.placeholderSub}`,children:[(0).toLocaleString(n)," ",Ti.a.t("dashboard.products")]})]}),Object(p.jsx)("div",{className:`${y.amount} ${y.placeholderAmount}`,children:"\u2014"})]},`ph-${a}`)}))]}),Object(p.jsx)("div",{className:y.footerRow,children:Object(p.jsxs)("div",{className:y.legend,children:[Object(p.jsx)("span",{className:y.dot}),Object(p.jsx)("span",{children:C})]})})]}):Object(p.jsxs)("div",{className:y.emptyStateContainer,children:[Object(p.jsx)(GR,{className:y.emptyStateIcon}),Object(p.jsx)("div",{className:y.emptyStateText,children:Ti.a.t("dashboard.noData")})]}),Object(p.jsx)(ki,{limitationKey:Ti.a.t("dashboard.filtersLimitationText"),isOpen:E,handleClose:()=>{I(!1)},primaryButtonClick:()=>{I(!1),window.open("/modulos/seguridad/elegir-plan.aspx","_self")}})]})})}const qN=Object(u.a)((()=>({container:e=>{let{isEditMode:t}=e;return{padding:"12px 16px",height:360,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},headerLeft:{display:"flex",alignItems:"center",gap:"8px",flex:1},headerRight:{display:"flex",alignItems:"center",gap:12},headerTooltip:{flex:"0 0 auto",marginRight:"0px",fontFamily:"Work Sans, sans-serif",fontSize:"13px",color:"#fff"},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},iconTooltipBtn:{backgroundColor:"#fff",border:"none",padding:0,zIndex:10,position:"relative",cursor:"pointer"},viewAllLink:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#00A692",textDecoration:"none",cursor:"pointer","&:hover":{color:"#00A692",textDecoration:"none"}},list:{marginTop:6,display:"flex",flexDirection:"column",overflow:"hidden"},row:{display:"grid",gridTemplateColumns:"minmax(0,1.8fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,.7fr)",alignItems:"center",columnGap:16,padding:"12px 0",borderBottom:"1px solid #F0F0F0",height:"57px","&:last-child":{borderBottom:"none",paddingBottom:10},"@media (max-width: 1400px)":{gridTemplateColumns:"minmax(140px,1.6fr) minmax(180px,2fr) minmax(100px,1fr) minmax(100px,1fr) minmax(120px,1.2fr) minmax(80px,.7fr)",columnGap:12}},numCell:{gridArea:"num"},customerCell:{gridArea:"customer"},docDateCell:{gridArea:"doc"},dueCell:{gridArea:"due"},amountCell:{gridArea:"amount"},actionsCell:{gridArea:"actions"},num:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#131313",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},customer:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#131313",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},docDate:{justifySelf:"center",whiteSpace:"nowrap",fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#131313",textAlign:"center"},dateCol:{justifySelf:"center",alignItems:"center"},datePill:{display:"inline-block",borderRadius:999,padding:"4px 10px",fontFamily:"Work Sans, sans-serif",fontSize:12,lineHeight:"16px",whiteSpace:"nowrap"},pillRed:{background:"rgba(255,37,105,0.1)",color:"#F32465",fontWeight:500},pillOrange:{background:"#FFF2E0",color:"#FB8500"},pillGreen:{background:"#E8F6F4",color:"#00A692"},amount:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:500,color:"#131313",justifySelf:"end",whiteSpace:"nowrap"},actions:{justifySelf:"end",display:"flex",gap:12},iconBtn:{background:"transparent",border:"none",padding:0,cursor:"pointer"},iconSvg:{width:20,height:20,color:"#666"},placeholderRow:{opacity:.4},placeholderNum:{color:"#131313"},placeholderCustomer:{color:"#131313"},placeholderDocDate:{color:"#131313"},placeholderDatePill:{background:"#E5E5E5",color:"#131313"},placeholderAmount:{color:"#131313"},placeholderActions:{opacity:.3,cursor:"default","& button":{cursor:"default",pointerEvents:"none"}},scrollX:e=>{let{isEditMode:t}=e;return{...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",marginLeft:-8,marginRight:-8,paddingLeft:0,paddingRight:0,scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent",transition:"all 0.2s ease-in-out","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}},"@media (max-width: 1400px)":{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",marginLeft:-8,marginRight:-8,paddingLeft:0,paddingRight:0,scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent",transition:"all 0.2s ease-in-out","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},tableMin:e=>{let{isEditMode:t}=e;return{minWidth:t?"790px":0,width:"100%",transition:"min-width 0.2s ease-in-out","@media (max-width: 1400px)":{minWidth:"790px",width:"100%",transition:"min-width 0.2s ease-in-out"}}},scrollXInset:{width:"calc(100% - 16px)",margin:"0 auto",maxWidth:"100%"},"@media (max-width: 1200px)":{row:{gridTemplateColumns:"\n        minmax(140px,1.6fr)  /* N\xfamero */\n        minmax(120px,2fr)    /* Raz\xf3n s
76ocial */\n        minmax(100px,1fr)    /* Fecha doc */\n        minmax(100px,1fr)    /* Vencimiento */\n        minmax(120px,1.2fr)  /* Importe */\n        minmax(80px,.7fr)    /* Acciones */\n      ",height:"auto",columnGap:12,transition:"grid-template-columns 0.2s ease-in-out"}}})));function GN(e){if(!e)return"";const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t){const[,e,a,i]=t;return`${i}/${a}/${e}`}const a=new Date(e);if(Number.isNaN(a.getTime()))return"";return`${String(a.getDate()).padStart(2,"0")}/${String(a.getMonth()+1).padStart(2,"0")}/${a.getFullYear()}`}function YN(e){var t,a;let{data:o,header:n=Ti.a.t("dashboard.accounts"),viewAllHref:r="/modulos/reportes/cuentasPagar.aspx",decimals:s=0,locale:l="es-AR",currencySymbol:c,showTooltip:d=!1,tooltipText:u="",isEditMode:m=!1}=e;const g=qN({isEditMode:m}),[b,h]=Object(i.useState)(!1),x={TotalItems:null!==(t=null===o||void 0===o?void 0:o.totalItems)&&void 0!==t?t:(null===o||void 0===o||null===(a=o.items)||void 0===a?void 0:a.length)||0,Items:((null===o||void 0===o?void 0:o.items)||[]).map(((e,t)=>{var a,i,o,n;return{ID:null!==(a=e.id)&&void 0!==a?a:t,Fecha:GN(e.expirationDate),RazonSocial:null!==(i=e.socialReason)&&void 0!==i?i:"",FechaDoc:GN(e.date),Numero:null!==(o=e.number)&&void 0!==o?o:"-",Currency:e.currencySymbol,ImporteTotalNeto:null!==(n=e.totalAmount)&&void 0!==n?n:0}}))},f=x.Items.slice(0,5),v=f.length,j=Math.max(0,5-v);return Object(p.jsxs)("div",{className:g.container,children:[Object(p.jsxs)("div",{className:g.headerRow,children:[Object(p.jsxs)("div",{className:g.headerLeft,children:[Object(p.jsxs)("div",{className:g.headerText,children:[n," ",null!=x.TotalItems?`(${x.TotalItems})`:""]}),d&&u&&Object(p.jsx)($w,{className:g.headerTooltip,title:u,placement:"top",arrow:!0,open:b,onOpen:()=>h(!0),onClose:()=>h(!1),children:Object(p.jsx)("button",{className:g.iconTooltipBtn,onClick:()=>h((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{name:"alert",style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6}})})})]}),Object(p.jsx)("div",{className:g.headerRight,children:Object(p.jsx)("a",{className:g.viewAllLink,href:r,children:Ti.a.t("dashboard.seeAll")})})]}),Object(p.jsx)("div",{className:g.scrollX,children:Object(p.jsx)("div",{className:g.scrollXInset,children:Object(p.jsxs)("div",{className:`${g.list} ${g.tableMin}`,children:[f.map((e=>{const t=function(e,t){return null==e?t.pillGreen:e<0?t.pillRed:e<=7?t.pillOrange:t.pillGreen}(function(e){if(!e||isNaN(e.getTime()))return null;const t=new Date;t.setHours(0,0,0,0);const a=new Date(e.getFullYear(),e.getMonth(),e.getDate());return Math.floor((a-t)/864e5)}(function(e){const[t,a,i]=(e||"").split("/").map(Number);return t&&a&&i?new Date(i,a-1,t):null}(e.Fecha)),g),a=encodeURIComponent(e.ID);return Object(p.jsxs)("div",{className:g.row,children:[Object(p.jsx)("div",{className:g.num,children:e.Numero}),Object(p.jsx)("div",{className:g.customer,children:e.RazonSocial}),Object(p.jsx)("div",{className:g.docDate,children:e.FechaDoc}),Object(p.jsx)("div",{className:g.dateCol,children:Object(p.jsx)("span",{className:`${g.datePill} ${t}`,children:e.Fecha})}),Object(p.jsxs)("div",{className:g.amount,children:[e.Currency," ",Number(e.ImporteTotalNeto).toLocaleString(l,{minimumFractionDigits:0,maximumFractionDigits:0})]}),Object(p.jsxs)("div",{className:g.actions,children:[Object(p.jsx)("a",{className:g.iconBtn,href:`/modulos/compras/comprase.aspx?ID=${a}`,"aria-label":Ti.a.t("dashboard.seeInvoice"),children:Object(p.jsx)(aT,{name:"search",className:g.iconSvg})}),Object(p.jsx)("a",{className:g.iconBtn,href:`/modulos/compras/pagose.aspx?IDCompra=${a}&Pago=100`,"aria-label":Ti.a.t("dashboard.pay"),children:Object(p.jsx)(aT,{name:"fileDollar",className:g.iconSvg})})]})]},e.ID)})),Array.from({length:j}).map(((e,t)=>{const a=`placeholder-${v+t+1}`;return Object(p.jsxs)("div",{className:`${g.row} ${g.placeholderRow}`,children:[Object(p.jsx)("div",{className:`${g.num} ${g.placeholderNum}`,children:"\u2014"}),Object(p.jsx)("div",{className:`${g.customer} ${g.placeholderCustomer}`,children:"\u2014"}),Object(p.jsx)("div",{className:`${g.docDate} ${g.placeholderDocDate}`,children:"\u2014"}),Object(p.jsx)("div",{className:g.dateCol,children:Object(p.jsx)("span",{className:`${g.datePill} ${g.placeholderDatePill}`,children:"\u2014"})}),Object(p.jsx)("div",{className:`${g.amount} ${g.placeholderAmount}`,children:"\u2014"}),Object(p.jsxs)("div",{className:`${g.actions} ${g.placeholderActions}`,children:[Object(p.jsx)("button",{className:g.iconBtn,disabled:!0,children:Object(p.jsx)(aT,{name:"search",className:g.iconSvg})}),Object(p.jsx)("button",{className:g.iconBtn,disabled:!0,children:Object(p.jsx)(aT,{name:"fileDollar",className:g.iconSvg})})]})]},a)}))]})})})]})}const KN=Object(u.a)((()=>
76({wrap:{display:"inline-flex",alignItems:"center",background:"#F1F3F4",borderRadius:16,padding:0,gap:4,flexWrap:"nowrap",maxWidth:"100%"},btn:{border:"none",borderRadius:14,padding:"6px 10px",fontFamily:"Work Sans, sans-serif",fontSize:12,cursor:"pointer",background:"transparent",color:"#5B5B5B",display:"inline-flex",alignItems:"center",maxWidth:"100%"},label:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",maxWidth:"100%",lineHeight:1.1},active:{background:"#02C1B0",color:"#fff"}})));function XN(e){let{value:t="current",onChange:a,currentText:i=Ti.a.t("dashboard.currentMonth"),previousText:o=Ti.a.t("dashboard.lastMonth"),idPrefix:n}=e;const r=KN(),s=e=>a&&a(e);return Object(p.jsxs)("div",{className:r.wrap,role:"tablist","aria-label":"per\xedodo IVA",children:[Object(p.jsx)("button",{type:"button",id:n?`${n}-current-month-chip`:void 0,className:`${r.btn} ${"current"===t?r.active:""}`,onClick:()=>s("current"),role:"tab","aria-selected":"current"===t,title:i,children:Object(p.jsx)("span",{className:r.label,children:i})}),Object(p.jsx)("button",{type:"button",id:n?`${n}-previous-month-chip`:void 0,className:`${r.btn} ${"previous"===t?r.active:""}`,onClick:()=>s("previous"),role:"tab","aria-selected":"previous"===t,title:o,children:Object(p.jsx)("span",{className:r.label,children:o})})]})}const ZN=Object(u.a)((()=>({wrap:{width:"100%",display:"flex",alignItems:"center"},seg:{height:8,borderRadius:"3px",transition:"flex-basis 250ms ease"},green:{background:"#00C7AF"},red:{background:"#F32465"}})));function QN(e){let{greenPct:t=0,redPct:a=0,gapPx:i=5,heightPx:o=8}=e;const n=ZN(),r=Math.max(0,Math.min(100,t)),s=Math.max(0,Math.min(100,a)),l=r>0&&s>0;return Object(p.jsxs)("div",{className:n.wrap,"aria-label":"",style:{gap:l?i:0},children:[r>0&&Object(p.jsx)("div",{className:`${n.seg} ${n.green}`,style:{flex:r,height:o}}),s>0&&Object(p.jsx)("div",{className:`${n.seg} ${n.red}`,style:{flex:s,height:o}})]})}const JN=Object(u.a)((e=>({container:e=>{let{isEditMode:t}=e;return{padding:"10px 16px",height:170,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{flex:1,display:"flex",flexDirection:"column",minHeight:0,width:"100%",maxWidth:"100%",minWidth:0,...t&&{minWidth:"400px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:2,marginBottom:e.spacing(1.25)},headerLeft:{display:"flex",alignItems:"center",gap:"8px",flex:1},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},headRight:{display:"flex",alignItems:"center",gap:8},headerTooltip:{flex:"0 0 auto",marginRight:0,fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#fff"},iconTooltipBtn:{background:"#fff",border:"none",padding:0,zIndex:10,position:"relative",cursor:"pointer",marginRight:"-5px"},row:{display:"grid",gridTemplateColumns:"1fr auto",alignItems:"center",columnGap:8,marginBottom:6,"@media (max-width: 1168px) and (min-width: 960px)":{marginBottom:0}},label:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#8A8A8A"},valueGreen:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:500,color:"#00A692"},valueRed:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:500,color:"#F32465"},progressWrap:{margin:"6px 0 10px","@media (min-width: 320px)":{margin:"6px 0 5px"}},footerRow:{display:"grid",gridTemplateColumns:"auto 1fr auto",alignItems:"center",columnGap:8,marginTop:"auto"},footerLabel:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#8A8A8A"},footerSub:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#131313",fontWeight:500},totalValueCell:{justifySelf:"end",position:"relative"},totalValue:{fontFamily:"Work Sans, sans-serif",fontWeight:500,fontSize:20,color:"#131313",textAlign:"end"},emptyStateContainer:{flex:1,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:"0 16px",gap:16,minHeight:0},emptyStateIcon:{width:43,height:50,flex:"0 0 auto"},emptyStateText:{fontSize:15,fontWeight:400,color:"#666666",fontFamily:"Work Sans, sans-serif"}})));function $N(e){var t,a,o;let{data:n,header:r=Ti.a.t("dashboard.vatPosition"),showTooltip:s=!1,tooltipText:l="",locale:c="es-AR",currencySymbol:d="$",onPeriodChange:u,currentMonth:m=1,decimals:g=0,isEditMode:b=!1}=e;const h=JN({isEditMode:b}),[x,f]=Object(i.useState)(!1),v=1===m?"current":"previous",j=Number((null===n||void 0===n?void 0:n.salesVat)||0),A=Number((null===n||void 0===n?void 0:n.buysVat)||0),C=Number((null===n||void 0===n?void 0:n.totalVat)||0),y=(1===m?Ti.a.t("dashboard.tooltipVatPositionCurrent"):Ti.a.t("dashboard.tooltipVatPositionPrevious"))||l,O=0!==j||0!==A||0!==C,S=Math.abs(j)+Math.abs(A),E=S>0?Math.abs(j)/S*100:0,I=S>0?Math.abs(A)/S*100:0,w=cN(j,{locale:c,currencySymbol:d,minDecimalsBelow:g,withTooltipMeta:!0}),T=cN(A,{locale:c,currencySymbol:d,minDecimalsBelow:g,withTooltipMeta:!0}),P=cN(C,{locale:c,currencySymbol:d,minDecimalsBelow:g,withTooltipMeta:!0});return Object(p.jsx)("div",{className:h.container,children:Object(p.jsxs)("div",{className:h.contentWrapper,children:[Object(p.jsxs)("div",{className:h.headerRow,children:[Object(p.jsxs)("div",{className:h.headerLeft,children:[Object(p.jsx)("div",{className:h.headerText,children:r}),s&&y&&Object(p.jsx)($w,{className:h.headerTooltip,title:y,placement:"top",arrow:!0,open:x,onOpen:()=>f(!0),onClose:()=>f(!1),children:Object(p.jsx)("button",{className:h.iconTooltipBtn,onClick:()=>f((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]}),Object(p.jsx)("div",{className:h.headRight,children:Object(p.jsx)(XN,{idPrefix:"vat-position",value:v,onCh
76ange:e=>{u&&u(e)},currentText:Ti.a.t("dashboard.currentMonth"),previousText:Ti.a.t("dashboard.previousMonth")})})]}),O?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)("div",{className:h.row,children:[Object(p.jsxs)("span",{className:h.label,children:[Ti.a.t("dashboard.vatSales"),":"]}),Object(p.jsx)($w,{title:`${w.sign}${d} ${w.fullNoSymbol}`,placement:"top",disableHoverListener:!w.abbreviated,children:Object(p.jsx)("span",{className:h.valueGreen,style:{cursor:w.abbreviated?"pointer":"default"},children:null!==(t=w.display)&&void 0!==t?t:w})})]}),Object(p.jsxs)("div",{className:h.row,children:[Object(p.jsxs)("span",{className:h.label,children:[Ti.a.t("dashboard.vatBuys"),":"]}),Object(p.jsx)($w,{title:`${T.sign}${d} ${T.fullNoSymbol}`,placement:"top",disableHoverListener:!T.abbreviated,children:Object(p.jsx)("span",{className:h.valueRed,style:{cursor:T.abbreviated?"pointer":"default"},children:null!==(a=T.display)&&void 0!==a?a:T})})]}),Object(p.jsx)("div",{className:h.progressWrap,children:Object(p.jsx)(QN,{greenPct:E,redPct:I})}),Object(p.jsxs)("div",{className:h.footerRow,children:[Object(p.jsx)("span",{className:h.footerLabel,children:Ti.a.t("dashboard.vatPay")}),Object(p.jsx)("div",{className:h.totalValueCell,children:Object(p.jsx)($w,{title:`${P.sign}${d} ${P.fullNoSymbol}`,placement:"top",arrow:!0,disableHoverListener:!P.abbreviated,PopperProps:{modifiers:{flip:{enabled:!1},offset:{enabled:!0,offset:"0,8"}}},children:Object(p.jsx)(cn.a,{className:h.totalValue,component:"div",style:{cursor:P.abbreviated?"pointer":"default"},children:null!==(o=P.display)&&void 0!==o?o:P})})})]})]}):Object(p.jsxs)("div",{className:h.emptyStateContainer,children:[Object(p.jsx)(GR,{className:h.emptyStateIcon}),Object(p.jsx)("div",{className:h.emptyStateText,children:Ti.a.t("dashboard.noData")})]})]})})}const eL=Object(u.a)((e=>({container:e=>{let{isEditMode:t}=e;return{padding:"10px 16px 10px 16px",height:170,display:"flex",flexDirection:"column",...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:2,marginBottom:e.spacing(1.5),minHeight:32},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},headerTooltip:{flex:"0 0 auto",marginRight:8,fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#fff"},iconTooltipBtn:{background:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},valuesRow:e=>{let{isEditMode:t}=e;return{flex:1,display:"flex",alignItems:"center",justifyContent:"space-around",marginBottom:15,...t&&{minWidth:"400px"}}},valueBlock:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},valueNumber:{fontFamily:"Work Sans, sans-serif",fontSize:32,fontWeight:500,color:"#131313",lineHeight:1,marginBottom:4},valueLabel:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#666666",fontWeight:400},footerRow:{marginTop:"auto",display:"flex",alignItems:"center",justifyContent:"space-between"},legend:{display:"inline-flex",alignItems:"center",gap:8,fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#6C6C6C","@media (min-width: 959px) and (max-width: 1038px)":{fontSize:11}},dot:{width:8,height:8,borderRadius:"50%",background:"#F32465"},detailLink:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#00A692",textDecoration:"none",cursor:"pointer","&:hover":{color:"#00A692",textDecoration:"none"},"@media (min-width: 959px) and (max-width: 1038px)":{textAlign:"right"}}}))),tL=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es-AR";return Number(null!==e&&void 0!==e?e:0).toLocaleString(t,{maximumFractionDigits:0})};function aL(e){var t,a;let{data:o,header:n=Ti.a.t("dashboard.minimumStockTitle"),showTooltip:r=!1,tooltipText:s="",locale:l="es-AR",detailHref:c,onViewDetail:d,legendText:u=Ti.a.t("dashboard.minimumStockLegend"),isEditMode:m=!1}=e;const g=eL({isEditMode:m}),[b,h]=Object(i.useState)(!1),x=Number(null!==(t=null===o||void 0===o?void 0:o.totalProducts)&&void 0!==t?t:0),f=Number(null!==(a=null===o||void 0===o?void 0:o.totalCombos)&&void 0!==a?a:0),v=tL(x,l),j=tL(f,l);return Object(p.jsxs)("div",{className:g.container,children:[Object(p.jsx)("div",{className:g.headerRow,children:Object(p.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4},children:[n&&Object(p.jsx)("div",{className:g.headerText,children:n}),r&&s&&Object(p.jsx)($w,{className:g.headerTooltip,title:s,placement:"top",arrow:!0,open:b,onOpen:()=>h(!0),onClose:()=>h(!1),children:Object(p.jsx)("button",{className:g.iconTooltipBtn,onClick:()=>h((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]})}),Object(p.jsxs)("div",{className:g.valuesRow,children:[Object(p.jsxs)("div",{className:g.valueBlock,children:[Object(p.jsx)(cn.a,{className:g.valueNumber,component:"div",children:v}),Object(p.jsx)("div",{className:g.valueLabel,children:Ti.a.t("dashboard.minimumStockProducts")})]}),Object(p.jsxs)("div",{className:g.valueBlock,children:[Object(p.jsx)(cn.a,{className:g.valueNumber,component:"div",children:j}),Object(p.jsx)("div",{className:g.valueLabel,children:Ti.a.t("dashboard.minimumStockCombos")})]})]}),Object(p.jsxs)("div",{className:g.footerRow,children:[Object(p.jsxs)("div",{className:g.legend,children:[Object(p.jsx)("span",{className:g.dot}
76),Object(p.jsx)("span",{children:u})]}),Object(p.jsx)("a",{href:c||"#",onClick:e=>{e.preventDefault(),d?d():c&&(window.location.href=c)},className:g.detailLink,children:Ti.a.t("dashboard.viewDetail")})]})]})}const iL=e=>{let{up:t=!1}=e;return Object(p.jsx)("svg",{width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:t?"rotate(180deg)":"none"},children:Object(p.jsx)("path",{d:"M-2.23509e-07 0.628906L4.8125 5.44141L5.12695 5.74219L5.44141 5.44141L10.2539 0.628905L9.625 -8.97559e-07L5.12695 4.49805L0.628906 -5.04328e-07L-2.23509e-07 0.628906Z",fill:"#666666"})})},oL=()=>Object(p.jsx)("svg",{width:"11",height:"10",viewBox:"0 0 11 10",xmlns:"http://www.w3.org/2000/svg",children:Object(p.jsx)("path",{d:"M9.56165 0.30957H0.628906L4.18874 4.93072V8.29155L6.11237 9.30864V4.93072L9.56165 0.30957Z",stroke:"#666666",strokeWidth:"0.619101",fill:"none"})}),nL=Object(u.a)((()=>({button:{background:"#fff",border:"1px solid #DFDFDF",borderRadius:"5px",padding:"5px 10px",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",fontFamily:"Work Sans, sans-serif",fontSize:"14px",color:"#131313",fontWeight:400,minHeight:"28px","&:hover":{borderColor:"#DFDFDF"},"&:focus":{outline:"none",borderColor:"#DFDFDF"},"&:active":{borderColor:"#DFDFDF"}},buttonDisabled:{cursor:"not-allowed",opacity:.6,"&:hover":{borderColor:"#DFDFDF"}},buttonText:{display:"flex",alignItems:"center",gap:6},chevronIcon:{display:"flex",alignItems:"center",marginLeft:2},menu:{zIndex:1e4},paper:{borderRadius:"5px",boxShadow:"0px 3px 9px rgba(0, 0, 0, 0.22)!important",width:"260px",background:"#FFFFFF",padding:"15px",display:"flex",flexDirection:"column",gap:"10px"},section:{display:"flex",flexDirection:"column",gap:6},label:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",fontWeight:600,color:"#131313"},menuList:{padding:"0 !important",display:"flex",flexDirection:"column",gap:"2px",maxHeight:180,overflowY:"auto"},menuItem:{padding:"0 !important",minHeight:"auto","&:hover":{backgroundColor:"transparent"},"&.MuiMenuItem-root":{padding:"0 !important"}},menuItemContent:{display:"flex",alignItems:"center",padding:0,width:"100%",cursor:"pointer","&:hover":{backgroundColor:"transparent"}},optionText:{fontFamily:"Work Sans, sans-serif",fontSize:"14px",color:"#131313",marginLeft:"8px",maxWidth:"300px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},selectRoot:{background:"#FFFFFF",borderRadius:5},selectInput:{fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#131313"}}))),rL=()=>Object(p.jsx)("span",{style:{display:"inline-block",width:18,height:18,border:"1px solid #BEBEBE",borderRadius:3,background:"#FFFFFF"}}),sL=()=>Object(p.jsx)("span",{style:{display:"inline-block",width:18,height:18,borderRadius:3,background:"#00A692",position:"relative"},children:Object(p.jsx)("svg",{width:"12",height:"9",viewBox:"0 0 12 9",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:4,left:3},children:Object(p.jsx)("path",{d:"M10.59 0.59L4.5 6.67 1.41 3.59 0 5l4.5 4.5L12 2.01 10.59 0.59z",fill:"#FFFFFF"})})});function lL(e){let{buttonText:t="Filtrar",firstLabel:a="Per\xedodo:",firstOptions:o=[],firstValue:n=null,onFirstChange:r=(()=>{}),secondLabel:s="Canal de venta:",secondOptions:l=[],secondValue:c=null,onSecondChange:d=(()=>{}),secondMultiple:u=!1,plan:m,onOpenBlockedModal:g,disabled:b=!1,normalizeSecondValue:h=null,onClose:x=null,maxSelections:f,idPrefix:v}=e;const j=nL(),[A,C]=Object(i.useState)(!1),y=Object(i.useRef)(null),[O,S]=Object(i.useState)(n),[E,I]=Object(i.useState)(c),w=e=>e.map((e=>"string"===typeof e?{value:e,label:e}:e)),T=Object(i.useMemo)((()=>w(o)),[o]),P=Object(i.useMemo)((()=>w(l)),[l]);Object(i.useEffect)((()=>{S(n),I(c)}),[A,n,c]),Object(i.useEffect)((()=>{b&&A&&C(!1)}),[b,A]);const N=Object(i.useCallback)((()=>{O!==n&&r(O),E!==c&&d(u?Array.isArray(E)?E:[]:E)}),[O,E,n,c,r,d,u]),L=e=>{if(!y.current||!y.current.contains(e.target)){if(u&&(!E||Array.isArray(E)&&0===E.length)&&P.length>0){const e=[P[0].value];return I(e),d(e),C(!1),void(x&&x())}N(),C(!1),x&&x()}},k=Object(i.useCallback)((()=>
76{if(u&&(!E||Array.isArray(E)&&0===E.length)&&P.length>0){const e=[P[0].value];return I(e),d(e),C(!1),void(x&&x())}N(),C(!1),x&&x()}),[N,u,E,P,d,x]);Object(i.useEffect)((()=>{if(A)return window.addEventListener("scroll",k,{passive:!0}),window.addEventListener("resize",k,{passive:!0}),()=>{window.removeEventListener("scroll",k),window.removeEventListener("resize",k)}}),[A,k]);const B=Object(i.useMemo)((()=>T.map((e=>({name:e.label,value:e.value})))),[T]),D=e=>{const t=e.target.value;if(u){let e="string"===typeof t?t.split(","):t;const a=Array.isArray(E)?E:E?[E]:[];return h&&"function"===typeof h&&(e=h(e,a)),void 0!==f&&"number"===typeof f&&f>0&&Array.isArray(e)&&e.length>f&&(e=e.slice(0,f)),void I(e)}I(t)};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)("button",{ref:y,id:v?`${v}-filter-button`:void 0,type:"button",className:`${j.button} ${b?j.buttonDisabled:""}`,onClick:()=>{b||("Freemium"!==m&&"Basic"!==m&&"BasicNew"!==m?(A&&(N(),x&&x()),C((e=>!e))):g&&g())},"aria-expanded":A,disabled:b,children:[Object(p.jsxs)("span",{className:j.buttonText,children:[Object(p.jsx)(oL,{}),t]}),Object(p.jsx)("span",{className:j.chevronIcon,children:Object(p.jsx)(iL,{up:A})})]}),Object(p.jsx)(Ir.a,{open:A,anchorEl:y.current,role:void 0,placement:"bottom-end",transition:!0,disablePortal:!0,className:j.menu,children:e=>{let{TransitionProps:t,placement:i}=e;return Object(p.jsx)(qm.a,{onClickAway:L,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:Object(p.jsx)(Gm.a,{...t,style:{transformOrigin:"bottom"===i?"center top":"center bottom"},children:Object(p.jsxs)(Ym.a,{className:j.paper,elevation:0,children:[Object(p.jsxs)("div",{className:j.section,children:[Object(p.jsx)(cn.a,{className:j.label,children:a}),Object(p.jsx)(Pr,{placeholder:O?"":"Seleccionar",data:B,value:B.find((e=>e.value===O))||null,onChange:(e,t)=>
76{var a;return S(t?null!==(a=t.value)&&void 0!==a?a:t.name:null)},small:!0,disabledMinHeight:!0,disabledMarginBottom:!0,isUsedInModal:!0})]}),Object(p.jsxs)("div",{className:j.section,children:[Object(p.jsx)(cn.a,{className:j.label,children:s}),Object(p.jsx)(R.a,{size:"small",fullWidth:!0,classes:{root:j.selectRoot},children:Object(p.jsx)(wm.a,{multiple:u,value:u?Array.isArray(E)?E:[]:null!==E&&void 0!==E?E:"",onChange:D,input:Object(p.jsx)(Im.a,{className:"searchSelect"}),renderValue:e=>{if(u){const t=Array.isArray(e)?e:[];return t.length?t.join(", "):"Seleccionar"}return e||"Seleccionar"},displayEmpty:!0,sx:{width:"100%","& fieldset":{display:"none"},"& .MuiOutlinedInput-root":{height:40},"& .MuiSelect-select":{padding:"10px 12px",fontFamily:"Work Sans, sans-serif",fontSize:14,color:"#131313",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},MenuProps:{disablePortal:!1,disableScrollLock:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:{zIndex:2e4},PaperProps:{sx:{zIndex:20001,maxHeight:216,boxShadow:"0 2px 2px rgba(0,0,0,0.2)",padding:"0 5px"}}},children:P.map((e=>{return Object(p.jsx)(ln.a,{value:e.value,className:j.menuItem,disableRipple:!0,children:Object(p.jsxs)("div",{className:j.menuItemContent,children:[u&&Object(p.jsx)(Tm.a,{checked:(t=e.value,u?Array.isArray(E)&&E.includes(t):E===t),icon:Object(p.jsx)(rL,{}),checkedIcon:Object(p.jsx)(sL,{}),sx:{padding:"4px"}}),Object(p.jsx)("span",{className:j.optionText,children:e.label})]})},`second-${e.value}`);var t}))})})]})]})})})}})]})}const cL=Object(u.a)((()=>({container:e=>{let{isEditMode:t}=e;return{padding:"15px 16px 8px 16px",height:360,display:"flex",flexDirection:"column",overflow:"hidden",width:"100%",maxWidth:"100%",minWidth:0,...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{flex:1,display:"flex",flexDirection:"column",width:"100%",maxWidth:"100%",minWidth:0,...t&&{minWidth:"450px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:15},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}},iconTooltipBtn:{background:"#fff",border:"none",right:-5,padding:0,zIndex:10,position:"relative",cursor:"pointer"},list:{marginTop:0,marginBottom:5,flex:1,overflow:"hidden",display:"flex",flexDirection:"column",gap:15},row:{display:"flex",flexDirection:"column",gap:3},topRow:{display:"flex",justifyContent:"space-between",alignItems:"center"},channelName:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:500,color:"#131313",flex:1,minWidth:0},channelValue:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:500,color:"#131313"},barContainer:{position:"relative",width:"100%",height:6,background:"#F5F5F5",borderRadius:3,overflow:"hidden"},bar:{height:"100%",borderRadius:3,transition:"width 0.3s ease"},percentageLabel:{fontFamily:"Work Sans, sans-serif",fontSize:11,fontWeight:500,color:"#666666",marginLeft:8},footerRow:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:10,paddingBottom:8,marginTop:"auto"},totalSection:{display:"flex",flexDirection:"row",alignItems:"center",gap:8},totalLabel:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#666666"},totalValue:{fontFamily:"Work Sans, sans-serif",fontSize:20,fontWeight:500,color:"#131313","@media (min-width:959px) and (max-width:1038px)":{fontSize:15}},detailLink:{fontFamily:"Work Sans, sans-serif",fontSize:13,color:"#00A692",textDecoration:"none",cursor:"pointer",textAlign:"end","@media (min-width: 959px) and (max-width: 1038px)":{textAlign:"left"},"&:hover":{color:"#00A692",textDecoration:"none"}},skeletonPlaceholder:{background:"#E5E5E5",borderRadius:3,height:14},skeletonNamePlaceholder:{width:50},skeletonValuePlaceholder:{width:40},barContainerWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:10},emptyStateContainer:{flex:1,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:"0 16px",gap:16,minHeight:0},emptyStateIcon:{width:43,height:50,flex:"0 0 auto"},emptyStateText:{fontSize:15,fontWeight:400,color:"#666666",fontFamily:"Work Sans, sans-serif"}})));function dL(e){var t;let{data:a,header:o=Ti.a.t("dashboard.salesByChannelTitle"),showTooltip:n=!1,tooltipText:r="",detailHref:s,locale:l="es-AR",decimals:c=0,currencySymbol:d="$",selectedPeriod:u=VN,selectedChannels:m=[],userType:g,blockedModuleModal:b,onFiltersChange:h,salesChannelFilter:x,salesChannelFilterLoading:f,isEditMode:v=!1}=e;const j=cL({isEditMode:v}),[A,C]=Object(i.useState)(!1),[y,O]=Object(i.useState)(!1),{userData:S}=$a(),E=null===S||void 0===S?void 0:S.plan_name,I=lR(),w=null!==x&&void 0!==x?x:I.salesChannelFilter;Object(i.useEffect)((()=>{void 0!==x||I.salesChannelFilter||I.fetchSalesChannelFilter()}),[x]);const T=e=>FN[e]||FN[VN],[P,R]=Object(i.useState)((()=>T(u)));Object(i.useEffect)((()=>{const e=T(u);R(e)}),[u]);const[N,L]=Object(i.useState)(P),[k,B]=Object(i.useState)(m),D=Object(i.useRef)(P),F=Object(i.useRef)(m);Object(i.useEffect)((()=>{L(P),D.current=P}),[P]),Object(i.useEffect)((()=>{B(m),F.current=m}),[m]);const M=Object(i.useMemo)((()=>
76{if(w&&Array.isArray(w)){const e=w.find((e=>1===e.id||e.name&&e.name.toLowerCase().includes("top 5")));return e?e.name:null}return null}),[w]),V=(Object(i.useMemo)((()=>M&&Array.isArray(m)&&m.includes(M)),[M,m]),e=>{if(!w||!Array.isArray(e)||0===e.length)return"1";const t=e.map((e=>{const t=w.find((t=>t.name===e));return t?t.id:null})).filter((e=>null!==e));return t.length>0?t.join(","):"1"}),W=Object(i.useCallback)(((e,t)=>{if(!M)return e;let a=Array.isArray(e)?[...e]:[];const i=Array.isArray(t)?t:[];if(a.length>0){const e=a.includes(M),t=a.some((e=>e!==M)),o=i.includes(M),n=i.some((e=>e!==M));e&&t?a=o&&!n?a.filter((e=>e!==M)):[M]:t&&!e&&(a=a.filter((e=>e!==M)))}return a}),[M]),H=Object(i.useCallback)((()=>{if(!h)return;const e=D.current,t=F.current;let a=W(t,m);M&&0===a.length&&(a=[M]);const i=MN[e]||VN,o=V(a),n=u||VN,r=V(m);i===n&&o===r||h({period:i,channelsId:o})}),[h,u,m,W,M,V]),U=(null===a||void 0===a?void 0:a.items)||[],_=(null===a||void 0===a?void 0:a.total)||0,z=U.length>0&&U.some((e=>0!==e.total)),q=["#00C7AF","#544CC9","#FF8A00","#F32465","#8C8C8C"],G=(()=>{const e=[...[...U].sort(((e,t)=>t.total-e.total)).slice(0,5)];for(;e.length<5;)e.push({name:"\u2014",total:0,isEmpty:!0});return e})(),Y=e=>cN(e,{locale:l,currencySymbol:d,minDecimalsBelow:c,withTooltipMeta:!0});return Object(p.jsx)("div",{className:j.container,children:Object(p.jsxs)("div",{className:j.contentWrapper,children:[Object(p.jsxs)("div",{className:j.headerRow,children:[Object(p.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4},children:[Object(p.jsx)("div",{className:j.headerText,children:o}),n&&r&&Object(p.jsx)($w,{title:r,placement:"top",arrow:!0,open:A,onOpen:()=>C(!0),onClose:()=>C(!1),children:Object(p.jsx)("button",{className:j.iconTooltipBtn,onClick:()=>C((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24,marginTop:6},name:"alert"})})})]}),Object(p.jsx)("div",{children:Object(p.jsx)(lL,{idPrefix:"sales-by-channel",firstLabel:"Per\xedodo:",firstOptions:["\xdaltima semana","Mensual","Trimestral","Semestral","Anual"],firstValue:N,onFirstChange:e=>{L(e),D.current=e},secondLabel:"Canal de venta:",secondOptions:w?w.map((e=>e.name)):[],secondValue:k,onSecondChange:e=>{let t=W(e,k);M&&0===t.length&&(t=[M]),B(t),F.current=t},secondMultiple:!0,plan:E,onOpenBlockedModal:()=>{O(!0)},disabled:v,normalizeSecondValue:W,onClose:H,maxSelections:5})})]}),z?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)("div",{className:j.list,children:G.map(((e,t)=>{var a;const i=e.percent||(o=e.total,_&&0!==_?Math.round(o/_*100):0);var o;const n=i,r=e.isEmpty?"#E5E5E5":q[t%q.length],s=e.isEmpty?null:cN(e.total,{locale:l,currencySymbol:d,minDecimalsBelow:c,withTooltipMeta:!0});return Object(p.jsxs)("div",{className:j.row,children:[Object(p.jsxs)("div",{className:j.topRow,children:[Object(p.jsxs)("div",{className:j.channelName,style:{color:e.isEmpty?"#9E9E9E":ui.a.grey600,display:"flex",alignItems:"center",gap:6},children:[Object(p.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:r,display:"inline-block",flexShrink:0}}),e.isEmpty?"\u2014":Object(p.jsx)($w,{title:e.name,placement:"top",arrow:!0,children:Object(p.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1},children:e.name})})]}),Object(p.jsx)("div",{className:j.channelValue,style:{color:e.isEmpty?"#9E9E9E":"#131313",display:"flex",alignItems:"center"},children:e.isEmpty?"\u2014":Object(p.jsx)(p.Fragment,{children:Object(p.jsx)($w,{title:`${s.sign}${d} ${s.fullNoSymbol}`,placement:"top",disableHoverListener:!s.abbreviated,children:Object(p.jsx)("div",{style:{cursor:s.abbreviated?"pointer":"default"},children:null!==(a=s.display)&&void 0!==a?a:s})})})})]}),Object(p.jsxs)("div",{className:j.barContainerWrapper,children:[Object(p.jsx)("div",{className:j.barContainer,children:Object(p.jsx)("div",{className:j.bar,style:{width:`${n}%`,background:r}})}),Object(p.jsxs)("span",{className:j.percentageLabel,style:{color:r},children:[i,"%"]})]})]},t)}))}),Object(p.jsxs)("div",{className:j.footerRow,children:[Object(p.jsx)("span",{className:j.totalLabel,children:Ti.a.t("dashboard.salesByChannelTotalSales")}),Object(p.jsx)($w,{title:`${Y(_).sign}${d} ${Y(_).fullNoSymbol}`,placement:"top",disableHoverListener:!Y(_).abbreviated,children:Object(p.jsx)(cn.a,{className:j.totalValue,component:"div",style:{cursor:Y(_).abbreviated?"pointer":"default"},children:null!==(t=Y(_).display)&&void 0!==t?t:Y(_)})})]})]}):Object(p.jsxs)("div",{className:j.emptyStateContainer,children:[Object(p.jsx)(GR,{className:j.emptyStateIcon}),Object(p.jsx)("div",{className:j.emptyStateText,children:Ti.a.t("dashboard.noData")})]}),Object(p.jsx)(ki,{limitationKey:Ti.a.t("dashboard.filtersLimitationText"),isOpen:y,handleClose:()=>{O(!1)},primaryButtonClick:()=>{O(!1),window.open("/modulos/seguridad/elegir-plan.aspx","_self")}})]})})}const uL={ar:{newSale:"/comprobantese.aspx",newPurchase:"/modulos/compras/comprase.aspx",clients:"/personas.aspx?tipo=c",suppliers:"/personas.aspx?tipo=p",currentAccount:"/modulos/reportes/cc.aspx",integrations:"/modulos/ventas/integraciones.aspx",newBudget:"/v3/budgets/addNew",cashRegisters:"/modulos/tesoreria/caja.aspx",products:"/conceptos.aspx"},cl:{newSale:"/comprobantese.aspx",newPurchase:"/modulos/compras/compraDetalladase.aspx",clients:"/personas.aspx?tipo=c",suppliers:"/personas.aspx?tipo=p",currentAccount:"/modulos/reportes/cc.aspx",integrations:"/modulos/ventas/integraciones.aspx",newBudget:"/v3/budgets/addNew",cashRegisters:"/modulos/tesoreria/caja.aspx",products:"/conceptos.aspx"},uy:{newSale:"/comprobantese.aspx",newPurchase:"/modulos/compras/compraDetalladase.aspx",clients:"/personas.aspx?tipo=c",suppliers:"/personas.aspx?tipo=p",currentAccount:"/modulos/reportes/cc.aspx",integrations:"/modulos/ventas/integraciones.aspx",newBudget:"/v3/budgets/addNew",cashRegisters:"/modulos/tesoreria/caja.aspx",products:"/conceptos.aspx"},py:{newSale:"/comprobantese.aspx",newPurchase:"/modulos/compras/compraDetalladase.aspx",clients:"/personas.aspx?tipo=c",suppliers:"/personas.aspx?tipo=p",currentAccount:"/modulos/reportes/cc.aspx",integrations:"/modulos/ventas/integraciones.aspx",newBudget:"/v3/budgets/addNew",cashRegisters:"/modulos/tesoreria/caja.aspx",products:"/conceptos.aspx"}};var pL=e=>[{id:"newSale",label:Ti.a.t("dashboard.quickAccess.newSale")||"Nueva venta",icon:"receipt",href:uL[e].newSale},{id:"newBudget",label:Ti.a.t("dashboard.quickAccess.newBudget")||"Nuevo presupuesto",icon:"fileDollar",href:uL[e].newBudget},{id:"newPurchase",label:Ti.a.t("dashboard.quickAccess.newPurchase")||"Nueva compra",icon:"bag",viewBox:"-2.5 0 20 20",href:uL[e].newPurchase},{id:"cashRegisters",label:Ti.a.t("dashboard.quickAccess.cashRegisters")||"Cajas",icon:"bank",href:uL[e].cashRegisters},{id:"products",label:Ti.a.t("dashboard.quickAccess.products")||"Productos",icon:"box",href:uL[e].products},{id:"integrations",label:Ti.a.t("dashboard.quickAccess.integrations")||"Integraciones",icon:"cogs",href:uL[e].integrations}];function mL(e){let{header:t=Ti.a.t("dashboard.quickAccess.title")||"Accesos r\xe1pidos",showTooltip:a=!0,tooltipText:o=Ti.a.t("dashboard.quickAccess.tooltip")||"",country:n="ar",isEditMode:r=!1}=e;const s=gL({isEditMode:r}),[l,c]=Object(i.useState)(!1),d=pL(n);return Object(p.jsx)("div",{className:s.container,children:Object(p.jsxs)("div",{className:s.contentWrapper,children:[Object(p.jsx)("div",{className:s.headerRow,children:Object(p.jsxs)("div",{className:s.headerLeft,children:[t&&Object(p.jsx)("div",{className:s.headerText,children:t}),a&&o&&Object(p.jsx)($w,{title:o,placement:"top",arrow:!0,open:l,onOpen:()=>c(!0),onClose:()=>c(!1),children:Object(p.jsx)("button",{className:s.iconTooltipBtn,onClick:()=>c((e=>!e)),"aria-label":"info",children:Object(p.jsx)(aT,{style:{color:"rgb(140 140 140)",width:24,height:24},name:"alert"})})})]})}),Object(p.jsx)("div",{className:s.gridContainer,children:d.map(((e,t)=>Object(p.jsxs)("div",{className:s.gridItem,style:{borderRight:t%3===2?"none":"1px solid #E0E0E0"},onClick:()=>{var t;(t=e.href)&&(window.location.href=t)},children:[Object(p.jsx)("div",{className:s.iconContainer,children:Object(p.jsx)(aT,{name:e.icon,style:{width:22,height:22,color:"#00A692"}})}),Object(p.jsx)(cn.a,{className:s.itemLabel,children:e.label})]},e.id)))})]})})}const gL=Object(u.a)((e=>({container:e=>{let{isEditMode:t}=e;return{padding:"10px 16px",height:360,display:"flex",flexDirection:"column",maxHeight:170,width:"100%",maxWidth:"100%",minWidth:0,...t&&{overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.2) transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:"3px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.3)"}}}}},contentWrapper:e=>{let{isEditMode:t}=e;return{width:"100%",maxWidth:"100%",minWidth:0,...t&&{minWidth:"400px"}}},headerRow:{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:32},headerLeft:{display:"flex",alignItems:"center",gap:4},headerText:e=>{let{isEditMode:t}=e;return{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:400,color:"#131313",paddingLeft:t?20:0}
76},iconTooltipBtn:{backgroundColor:"#fff",border:"none",right:"-5px",padding:0,zIndex:10,position:"relative",cursor:"pointer"},filterButton:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:400,color:"#131313",textTransform:"none",padding:"4px 12px",border:"1px solid #E0E0E0",borderRadius:8,backgroundColor:"#FFFFFF","&:hover":{backgroundColor:"#F5F5F5"}},gridContainer:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"repeat(2, 1fr)",gap:0,flex:1,alignItems:"center",height:"100%"},gridItem:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0",height:45,cursor:"pointer"},iconContainer:{width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center",marginBottom:3,color:"#00A692"},itemLabel:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:400,color:ui.a.textPrimary,textAlign:"center","&:hover":{color:ui.a.primary400}}}))),bL={visible:!0,loading:!0,noData:!1,noPermission:!1,error:null},hL={getSales:{...bL},boxes:{...bL},pendingBills:{...bL},pendingPayments:{...bL},salesVsBuys:{...bL},salesComparison:{...bL},unitsSold:{...bL},customerRanking:{...bL},vatPosition:{...bL},valuedStock:{...bL},minimumStock:{...bL},salesByChannel:{...bL},quickAccess:{...bL}};const xL=e=>{var t,a,i,o,n,r,s,l,c,d;const u=null!==(t=null===e||void 0===e||null===(a=e.response)||void 0===a?void 0:a.status)&&void 0!==t?t:null===e||void 0===e?void 0:e.status,p=null!==(i=null!==(o=null===e||void 0===e||null===(n=e.response)||void 0===n?void 0:n.data)&&void 0!==o?o:null===e||void 0===e?void 0:e.data)&&void 0!==i?i:{},m=null===p||void 0===p?void 0:p.code,g=null!==(r=null===p||void 0===p?void 0:p.message)&&void 0!==r?r:null===e||void 0===e?void 0:e.message,b=(null===e||void 0===e||null===(s=e.response)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.error)||[],h=(null===b||void 0===b?void 0:b.lenght)>0?null===(c=b[0])||void 0===c?void 0:c.code:m,x=(null===b||void 0===b?void 0:b.lenght)>0?null===(d=b[0])||void 0===d?void 0:d.message:g,f=403===u;return{isForbidden:f,isPlanLimited:f&&("USER_PLAN_NOT_ALLOWED"===m||"USER_PLAN_NOT_ALLOWED"===g),isNotAllowed:f&&("USER_NOT_ALLOWED"===m||"USER_NOT_ALLOWED"===g),code:m,msg:g,status:u,isUnavailable:"DASHBOARD_NOT_AVAILABLE"===h||"The dashboard is currently being processed and is not available. Please try again later."===x}};var fL=a(780);function vL(e){return Object(p.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",...e,children:Object(p.jsx)("path",{d:"M13 0L4.35938 8.64062L0.71875 5L0 5.71875L4 9.71875L4.35938 10.0625L4.71875 9.71875L13.7188 0.71875L13 0Z",fill:ui.a.primary400})})}function jL(e){return Object(p.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 11 11",...e,children:Object(p.jsx)("path",{d:"M5 0V5H0V6H5V11H6V6H11V5H6V0H5Z",fill:"white"})})}function AL(e){return Object(p.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",...e,children:Object(p.jsx)("path",{d:"M6 0C2.69141 0 0 2.69141 0 6C0 9.30859 2.69141 12 6 12C9.30859 12 12 9.30859 12 6C12 2.69141 9.30859 0 6 0ZM6 1C8.76758 1 11 3.23242 11 6C11 8.76758 8.76758 11 6 11C3.23242 11 1 8.76758 1 6C1 3.23242 3.23242 1 6 1ZM5.5 3V7H6.5V3H5.5ZM5.5 8V9H6.5V8H5.5Z",fill:"#544CC9"})})}const CL=Object(u.a)((e=>({card:{padding:e.spacing(2),borderRadius:12,position:"relative",background:"#FFFFFF",border:"1px solid #E0E0E0",display:"flex",flexDirection:"column",gap:e.spacing(1)},exclusive:{background:"#6C63FF1A",border:"1px solid #544CC9",paddingTop:"10px"},exclusiveHeader:{display:"flex",alignItems:"center",gap:e.spacing(1),height:18},alertIcon:{flexShrink:0},exclusiveTitleWrapper:{flex:1},exclusiveTitle:{borderRadius:10,fontSize:"13px",color:"#544CC9",display:"inline-block",fontWeight:400,fontFamily:"Work Sans, sans-serif"},mainContent:{display:"grid",gridTemplateColumns:"60px 1fr",columnGap:e.spacing(1.5)},imageContainer:{width:60,height:60,borderRadius:6,overflow:"visible",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative"},image:{height:"100%",objectFit:"cover"},imagePreview:{position:"absolute",top:65,left:112,transform:"translateX(-50%)",marginBottom:10,width:225,borderRadius:8,objectFit:"cover",boxShadow:"0 0px 5px rgba(0, 0, 0, 0.2)",zIndex:1e3,pointerEvents:"none",opacity:0,transition:"opacity 0.2s ease-in-out"},imagePreviewVisible:{opacity:1},cardMeta:{display:"flex",flexDirection:"column",gap:e.spacing(.2)},title:{fontFamily:"Work Sans, sans-serif",fontWeight:600,fontSize:"14px",color:"#131313",margin:0},description:{fontFamily:"Work Sans, sans-serif",fontSize:"12px",color:"#6B6B6B",margin:0,fontWeight:400},footerRow:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:e.spacing(.5)},buttonContainer:{display:"flex",alignItems:"center",gap:e.spacing(.5)},customButton:{minWidth:"auto"},imageWrapper:{width:60,height:60,borderRadius:6,overflow:"hidden",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",background:"#F0F0F0",border:"1px solid #E0E0E0"}})));function yL(e){let{title:t=Ti.a.t("dashboard.monthlySales"),description:o=Ti.a.t("dashboard.widgetDescription"),chipLabels:n=[],added:r=!1,name:s="",imageName:l,exclusive:c=!1,exclusiveTitle:d=Ti.a.t("dashboard.exclusivePlan"),loading:u=!1,disabled:m=!1,onAdd:g,onUpgrade:b}=e;const h=CL(),[x,f]=Object(i.useState)(!1),v=s?`${FT(s)}-add-button`:void 0,[j,A]=Object(i.useState)(null);Object(i.useEffect)((()=>{const e=l||s;a(557)(`./${e}.svg`).then((e=>A(e.default))).catch((()=>A(null)))}),[s,l]);const C=()=>{c&&b?b():!r&&g&&g()},y=()=>{const e={containerClass:h.customButton};return c?{...e,type:"tertiary",disabled:m,children:Ti.a.t("dashboard.upgradePlan")}:r||u?{...e,type:"secondary",disabled:!0,loading:u,children:u?Object(p.jsx)("span",{children:Ti.a.t("dashboard.adding")||"Agregando..."}):Object(p.jsxs)("div",{className:h.buttonContainer,children:[Object(p.jsx)(vL,{style:{width:14,height:11,color:ui.a.primary400}}),Object(p.jsx)("span",{children:Ti.a.t("dashboard.added")})]})}:{...e,type:"primary",disabled:m,children:Object(p.jsxs)("div",{className:h.buttonContainer,children:[Object(p.jsx)(jL,{style:{width:11,height:11}}),Object(p.jsxs)("span",{children:[" ",Ti.a.t("dashboard.add")]})]})}};return Object(p.jsxs)(tO.a,{elevation:0,style:{opacity:m?.5:1},className:`${h.card} ${c?h.exclusive:""}`,children:[c&&Object(p.jsxs)("div",{className:h.exclusiveHeader,children:[Object(p.jsx)("div",{className:h.alertIcon,children:Object(p.jsx)(AL,{})}),Object(p.jsx)("div",{className:h.exclusiveTitleWrapper,children:Object(p.jsx)("span",{className:h.exclusiveTitle,children:d})})]}),Object(p.jsxs)("div",{className:h.mainContent,children:[Object(p.jsxs)("div",{className:h.imageContainer,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[Object(p.jsx)("div",{className:h.imageWrapper,children:Object(p.jsx)("img",{src:j,alt:t,className:h.image})}),Object(p.jsx)("img",{src:j,alt:t,className:`${h.imagePreview} ${x?h.imagePreviewVisible:""}`})]}),Object(p.jsxs)("div",{className:h.cardMeta,children:[Object(p.jsx)(cn.a,{className:h.title,children:t}),Object(p.jsx)(cn.a,{className:h.description,children:o})]})]}),Object(p.jsx)("div",{className:h.footerRow,children:n.map(((e,t)=>Object(p.jsx)(Rc,{classNameDiv:c?"info":"outlined",containerStyle:{fontSize:11,padding:"0px 10px 0px 10px"},children:e},t)))}),r||c?Object(p.jsx)(si,{id:v,...y(),onClick:C}):Object(p.jsx)(cr.a,{title:Ti.a.t("dashboard.tooltipAddToDashboard"),placement:"top",arrow:!0,children:Object(p.jsx)("span",{children:Object(p.jsx)(si,{id:v,...y(),onClick:C})})})]})}const OL=Object(u.a)((e=>({drawerPaper:{width:300,maxWidth:"90vw",minHeight:0,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.1)",overflow:"hidden",display:"flex",flexDirection:"column"},container:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,overflow:"hidden",position:"relative"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(.8,2),flexShrink:0,minHeight:"fit-content"},chipsRow:{padding:e.spacing(0,2,2,2),flexShrink:0,minHeight:"fit-content",display:"grid",gridTemplateColumns:"22px 1fr 22px",alignItems:"center",columnGap:8},chipsArrowBtn:{background:"transparent",border:0,padding:0,height:22,width:22,display:"grid",placeItems:"center",cursor:"pointer","&:disabled":{opacity:.35,cursor:"default"}},chipsArrowIcon:{width:16,height:16,color:"#8C8C8C"},chipsViewport:{overflow:"hidden"},chipsContainer:{display:"flex",gap:e.spacing(1)},chipSlide:{flex:"0 0 auto",minWidth:0},scrollArea:{flex:"1 1 auto",overflowY:"auto",overflowX:"hidden",padding:e.spacing(0,2),paddingBottom:e.spacing(2),minHeight:0,position:"relative","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"#c1c1c1",borderRadius:"4px","&:hover":{background:"#a8a8a8"}}},sectionTitle:{fontWeight:500,fontFamily:"Work Sans, sans-serif",fontSize:14,padding:"10px 0px"},footer:{padding:"16px",borderTop:"1px solid #eee",flexShrink:0,background:"#FFFFFF",position:"relative",zIndex:10},resetButtonContainer:{display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5),width:"100%",marginTop:e.spacing(.5)},resetButtonWrapper:{width:"100% !important"},closeIcon:{},titleSidebar:{fontWeight:500,fontFamily:"Work Sans, sans-serif",fontSize:16},planUpgradeCard:{backgroundColor:"#FB85001A",borderRadius:"8px",border:"1px solid #FB8500",padding:"10px",marginBottom:e.spacing(2),display:"flex",flexDirection:"column",gap:e.spacing(1.5)},planUpgradeTitle:{color:"#FB8500",fontWeight:600,fontSize:13,fontFamily:"Work Sans, sans-serif",margin:0,lineHeight:1.4},planUpgradeSubtitle:{color:"#FB8500",fontWeight:400,fontSize:13,fontFamily:"Work Sans, sans-serif",margin:0,opacity:.8,lineHeight:1.4}})));function SL(e){return Object(p.jsx)("svg",{width:"16",height:"13",viewBox:"0 0 16 13",...e,children:Object(p.jsx)("path",{d:"M9.65918 0L8.71582 0.943359L13.166 5.39355H0V6.70605H13.166L8.71582 11.1562L9.65918 12.0996L15.2373 6.52148L15.6885 6.0498L15.2373 5.57812L9.65918 0Z",fill:"#818181"})})}function EL(e){return Object(p.jsxs)("svg",{width:"21",height:"21",viewBox:"0 0 21 21",...e,children:[Object(p.jsxs)("g",{clipPath:"url(#clip0_4038_19688)",children:[Object(p.jsx)("path",{d:"M6.35671 6.34989C6.09065 6.61638 6.14702 7.04919 6.44424 7.2805C6.74155 7.51179 7.16716 7.45264 7.44432 7.
7619753C8.88959 5.86748 11.1256 5.73675 12.7271 6.98267C14.5114 8.37127 14.8322 10.9433 13.4436 12.7276C12.0983 14.4558 9.64296 14.8109 7.86872 13.569C7.77406 13.4997 7.64118 13.5179 7.5691 13.6105L7.28541 13.9751C7.0511 14.2765 7.10384 14.7158 7.43204 14.9108C9.76223 16.2944 12.8131 15.7603 14.521 13.5661C16.3725 11.187 15.9447 7.75672 13.5656 5.90525C11.3685 4.19588 8.27516 4.43027 6.35671 6.34989Z",fill:"#131313"}),Object(p.jsx)("path",{d:"M4.22401 9.50593L8.40223 8.36907L5.32858 5.31905L4.22401 9.50593Z",fill:"#131313"})]}),Object(p.jsx)("defs",{children:Object(p.jsx)("clipPath",{id:"clip0_4038_19688",children:Object(p.jsx)("rect",{width:"14.5559",height:"14.5559",fill:"white",transform:"matrix(-0.614163 0.789179 0.789179 0.614163 8.93967 0)"})})})]})}function IL(e){let{open:t,onClose:a,topOffset:n,configuration:r,configurationLoading:s,widgetsConfig:l,onAddWidget:c,fetchConfiguration:d,resetConfiguration:u,canClose:m=!0,plan:g,isBlockedModalOpen:b=!1,setIsBlockedModalOpen:h,isRemovingWidget:x=!1,ivaCondition:f="",limitedPlans:v=[]}=e;const j=OL(),A=Object(Zw.a)(),C=Object(Xw.a)(A.breakpoints.up("md")),{userData:y}=$a(),O=null===y||void 0===y?void 0:y.country,S=null===y||void 0===y?void 0:y.user_type,E=!0,[I,w]=o.a.useState("all"),[T,P]=o.a.useState(new Set),[R,L]=o.a.useState(new Set),[k,B]=o.a.useState(!1),[D,F]=Object(jN.a)({align:"start",containScroll:"trimSnaps",dragFree:!0}),[M,V]=Object(i.useState)(!1),[W,H]=Object(i.useState)(!1),U=Object(i.useCallback)((()=>{F&&(V(F.canScrollPrev()),H(F.canScrollNext()))}),[F]);Object(i.useEffect)((()=>{F&&(F.on("select",U),F.on("reInit",U),U())}),[F,U]);const _=o.a.useMemo((()=>[{key:"all",label:Ti.a.t("dashboard.all")},{key:"sales",label:Ti.a.t("dashboard.salesCard")},{key:"purchases",label:Ti.a.t("dashboard.purchases")},{key:"inventories",label:Ti.a.t("dashboard.inventories")},{key:"finance",label:"Finanzas"}]),[]),z=e=>({getSales:"getSales",pendingBills:"pendingBills",unitsSold:"unitsSold",pendingPayments:"pendingPayments",vatPosition:"vatPosition",salesVsBuys:"salesVsBuys",customerRanking:"customerRanking",salesByChannel:"salesByChannel",minimumStock:"minimumStock",quickAccess:"quickAccess",boxes:"boxes"}[e]||e),q=(e,t)=>{const a=[];return["getSales","pendingBills","unitsSold","salesVsBuys","customerRanking","salesByChannel","vatPosition"].includes(e)&&a.push(Ti.a.t("dashboard.salesCard")),["salesVsBuys","pendingPayments","vatPosition"].includes(e)&&a.push(Ti.a.t("dashboard.purchases")),["minimumStock","unitsSold"].includes(e)&&a.push(Ti.a.t("dashboard.inventories")),["pendingPayments","vatPosition"].includes(e)&&a.push("Finanzas"),"boxes"===e&&["cl","uy","py"].includes(t)&&a.push("Finanzas"),a},G=e=>{const t={getSales:"dashboard.widgetDescriptionGetSales",pendingBills:"dashboard.widgetDescriptionPendingBills",unitsSold:"dashboard.widgetDescriptionUnitsSold",salesVsBuys:"dashboard.widgetDescriptionSalesVsBuys",customerRanking:"dashboard.widgetDescriptionCustomerRanking",pendingPayments:"dashboard.widgetDescriptionPendingPayments",vatPosition:"dashboard.widgetDescriptionVatPosition",minimumStock:"dashboard.widgetDescriptionMinimumStock",salesByChannel:"dashboard.widgetDescriptionSalesByChannel"}[e];return t?Ti.a.t(t):Ti.a.t("dashboard.widgetDescription")||"Informaci\xf3n relevante del widget."},Y=o.a.useMemo((()=>{if(!r||!Array.isArray(r)||!l)return[];const e="B"===S||"C"===S;return r.filter((e=>{if(!1===e.isVisible){const t=z(e.widgetName);return!("boxes"===t&&!["cl","uy","py"].includes(O))&&(!f||"MO"!==f&&"EX"!==f&&"PEQUY"!==f||"vatPosition"!==t)}return!1})).map((e=>{const t=z(e.widgetName),a=l.find((e=>e.key===t));return{...e,widgetKey:t,widget:a}})).filter((t=>{if(!t.widget)return!1;if(e){if(!0===t.planRestricted)return!1;if(!0!==t.enabled)return!1}return!0}))}),[r,l,O,S,f]),K=o.a.useMemo((()=>{if("all"===I)return Y;const e=_.find((e=>e.key===I));return e?Y.filter((t=>q(t.widgetKey,O).includes(e.label))):Y}),[Y,I,O,f,_]);o.a.useEffect((()=>{0}),[t,E,a]),o.a.useEffect((()=>{t||(P(new Set),L(new Set))}),[t]),o.a.useEffect((()=>{if(!r||!Array.isArray(r))return;const e=new Set(Y.map((e=>e.widgetName)));P((t=>{const a=new Set;return t.forEach((t=>{const i=R.has(t);e.has(t)&&!i||a.add(t)})),a}))}),[r,Y,R]);const X="number"===typeof n?n:C?96:80,Z=`calc(100vh - ${X}px)`,Q=`${X}px`;
76return Object(p.jsxs)(fL.a,{anchor:"right",variant:C?"persistent":"temporary",open:t&&E,onClose:m?a:void 0,classes:{paper:j.drawerPaper},ModalProps:{keepMounted:!0},PaperProps:{style:{width:300,top:Q,height:Z,position:"fixed",overflow:"hidden",display:"flex",flexDirection:"column"}},children:[Object(p.jsxs)("div",{className:j.container,role:"dialog","aria-labelledby":"customize-title",children:[Object(p.jsxs)("div",{className:j.header,children:[Object(p.jsx)(cn.a,{id:"customize-title",variant:"h6",style:{fontWeight:500},className:j.titleSidebar,children:Ti.a.t("dashboard.customize")}),Object(p.jsx)(wi.a,{id:"customize-sidebar-close-button",onClick:m?a:void 0,disabled:!m,"aria-label":Ti.a.t("dashboard.close"),className:j.closeIcon,style:m?{}:{opacity:.5,cursor:"not-allowed"},children:Object(p.jsx)(SL,{})})]}),Object(p.jsxs)("div",{className:j.chipsRow,children:[Object(p.jsx)("button",{className:j.chipsArrowBtn,onClick:()=>{null===F||void 0===F||F.scrollPrev()},disabled:!M,"aria-label":Ti.a.t("dashboard.prev"),children:Object(p.jsx)(aT,{name:"arrowLeft",className:j.chipsArrowIcon})}),Object(p.jsx)("div",{className:j.chipsViewport,ref:D,children:Object(p.jsx)("div",{className:j.chipsContainer,children:_.map((e=>Object(p.jsx)("div",{className:j.chipSlide,children:Object(p.jsx)(Rc,{id:`customize-filter-${e.key}`,classNameDiv:I===e.key?"success":"default",handleOnClick:()=>w(e.key),containerStyle:{cursor:"pointer"},children:e.label})},e.key)))})}),Object(p.jsx)("button",{className:j.chipsArrowBtn,onClick:()=>{null===F||void 0===F||F.scrollNext()},disabled:!W,"aria-label":Ti.a.t("next"),children:Object(p.jsx)(aT,{name:"arrowRight",className:j.chipsArrowIcon})})]}),Object(p.jsx)(N.a,{}),Object(p.jsxs)("div",{className:j.scrollArea,children:[Object(p.jsx)(cn.a,{className:j.sectionTitle,children:Ti.a.t("dashboard.availableWidgets")}),("Standard"===g||"StandardNew"===g)&&Object(p.jsxs)(di.a,{className:j.planUpgradeCard,children:[Object(p.jsx)(cn.a,{className:j.planUpgradeTitle,style:{fontWeight:400},children:(()=>{const e=Ti.a.t("dashboard.planUpgradeTitle"),t=[];let a=0;const i=e.indexOf("Standard");-1!==i&&(t.push(e.substring(a,i)),t.push(Object(p.jsx)("span",{style:{fontWeight:600},children:"Standard"},"standard")),a=i+"Standard".length);const o=e.indexOf("plan Pro");return-1!==o&&o>=a&&(t.push(e.substring(a,o)),t.push(Object(p.jsx)("span",{style:{fontWeight:600},children:"plan Pro"},"planPro")),a=o+"plan Pro".length),a<e.length&&t.push(e.substring(a)),t.length>0?t:e})()}),Object(p.jsx)(si,{type:"tertiary",containerStyle:{width:"100%",backgroundColor:"#FFF4E6",border:"1px solid #FB8500",borderRadius:"50px",color:"#FB8500",fontWeight:700,fontFamily:"Work Sans, sans-serif"},onClick:()=>{h&&h(!0)},children:Ti.a.t("dashboard.updatePlan")})]}),Object(p.jsx)(di.a,{display:"grid",gridGap:16,children:(s||R.size>0||x)&&null===f?Object(p.jsx)(di.a,{display:"flex",justifyContent:"center",alignItems:"center",style:{padding:A.spacing(4)},children:Object(p.jsx)(Od.a,{style:{color:"#00A692"},size:24})}):0===K.length?Object(p.jsx)(cn.a,{style:{padding:A.spacing(2),color:"#6B6B6B",fontSize:13,fontFamily:"Work Sans, sans-serif",textAlign:"center"},children:Ti.a.t("dashboard.noWidgetsAvailable")}):K.map((e=>{const t=e.widget,a=q(e.widgetKey,O),i=T.has(e.widgetName),o=R.has(e.widgetName),n=R.size>0;return!f||"MO"!==f&&"EX"!==f&&"PEQUY"!==f||"vatPosition"!==e.widgetKey?Object(p.jsx)(yL,{title:t.name,description:G(e.widgetKey),name:e.widgetName,imageName:"pendingBills"===e.widgetKey&&["cl","uy","py"].includes(O)?"pendingBillsRegion":void 0,chipLabels:a,exclusive:!0===e.planRestricted,exclusiveTitle:Ti.a.t("dashboard.exclusivePlan")||"Exclusivo plan Full/Enterprise",added:i,loading:o,disabled:n&&!o,onAdd:async()=>{if(c)if(v.includes(g))h(!0);else try{L((t=>new Set(t).add(e.widgetName))),await c(e.widgetName),L((t=>{const a=new Set(t);return a.delete(e.widgetName),a})),P((t=>new Set(t).add(e.widgetName)))}catch(t){L((t=>{const a=new Set(t);return a.delete(e.widgetName),a}))}},onUpgrade:()=>{h(!0)}},e.widgetName):null}))})]}),Object(p.jsx)("div",{className:j.footer,children:Object(p.jsx)(cr.a,{title:Ti.a.t("dashboard.tooltipReset"),placement:"top",arrow:!0,children:Object(p.jsx)("div",{style:{width:"100%"},children:Object(p.jsx)(si,{id:"customize-sidebar-reset-button",type:"secondary",containerStyle:{width:"100%"},containerClass:j.resetButtonWrapper,onClick:async()=>
76{if(u&&d)if(v.includes(g))h(!0);else{B(!0);try{"Standard"===g||await u(),await d()}catch(e){console.error("Error al restablecer el dashboard:",e)}finally{B(!1)}}},disabled:k||s,children:Object(p.jsxs)("div",{className:j.resetButtonContainer,children:[k?Object(p.jsx)(Od.a,{size:16,style:{color:"#131313"}}):Object(p.jsx)(EL,{style:{width:16,height:16}}),Object(p.jsx)("span",{children:Ti.a.t("dashboard.reset")})]})})})})})]}),Object(p.jsx)(ki,{limitationKey:Ti.a.t("dashboard.filtersLimitationText"),isOpen:b,handleClose:()=>{h&&h(!1)},primaryButtonClick:()=>{h&&h(!1),window.open("/modulos/seguridad/elegir-plan.aspx","_self")}})]})}function wL(e){let{country:t="ar"}=e;const a=TL(),i=pL(t),o=e=>({newSale:ui.a.primary400,newBudget:ui.a.secondary400,newPurchase:ui.a.error400,cashRegisters:ui.a.primary400,products:ui.a.secondary400,integrations:ui.a.error400}[e]||ui.a.primary400),n=e=>({newSale:Ti.a.t("dashboard.quickAccess.newSaleSubtitle"),newBudget:Ti.a.t("dashboard.quickAccess.newBudgetSubtitle"),newPurchase:Ti.a.t("dashboard.quickAccess.newPurchaseSubtitle"),cashRegisters:Ti.a.t("dashboard.quickAccess.cashRegistersSubtitle"),products:Ti.a.t("dashboard.quickAccess.productsSubtitle"),integrations:Ti.a.t("dashboard.quickAccess.integrationsSubtitle")}[e]||""),r={ar:"https://ayuda.contabilium.com/hc/es/articles/48030406931859--C%C3%B3mo-personalizar-mi-dashboard",cl:"https://ayuda.contabilium.cl/hc/es/articles/48030820136979--C%C3%B3mo-personalizar-mi-dashboard",uy:"https://ayuda.contabilium.com.uy/hc/es/articles/48031069066771--C%C3%B3mo-personalizar-mi-dashboard",py:"https://ayuda.contabilium.com.py/hc/es-419/articles/48031336867603--C%C3%B3mo-personalizar-mi-dashboard"};return Object(p.jsx)("div",{className:a.container,children:Object(p.jsxs)("div",{className:a.contentWrapper,children:[Object(p.jsxs)("div",{className:a.messageSection,children:[Object(p.jsx)("div",{className:a.lockIconContainer,children:Object(p.jsx)(aT,{name:"lock",viewBox:"-2 0.5 32 32",style:{width:40,height:40,color:ui.a.primary400}})}),Object(p.jsx)(cn.a,{className:a.mainMessage,children:Ti.a.t("dashboard.noPermissionToViewData")}),Object(p.jsx)(cn.a,{className:a.secondaryMessage,children:Ti.a.t("dashboard.contactAdminForAccess")})]}),Object(p.jsxs)("div",{className:a.quickAccessSection,children:[Object(p.jsxs)("div",{className:a.quickAccessTitleContainer,children:[Object(p.jsx)(cn.a,{className:a.quickAccessTitle,children:Ti.a.t("dashboard.quickAccess.title")}),Object(p.jsx)("div",{className:a.separator})]}),Object(p.jsx)("div",{className:a.gridContainer,children:i.map(((e,t)=>{return Object(p.jsxs)("div",{className:a.gridItem,style:{borderRight:t%3===2?"none":`1px solid ${ui.a.grey300}`},onClick:()=>{var t;(t=e.href)&&(window.location.href=t)},children:[Object(p.jsx)("div",{className:a.iconContainer,style:{backgroundColor:(i=e.id,{newSale:ui.a.primaryLight,newBudget:ui.a.secondaryLight,newPurchase:ui.a.errorLight,cashRegisters:ui.a.primaryLight,products:ui.a.secondaryLight,integrations:ui.a.errorLight}[i]||ui.a.primary300)},children:Object(p.jsx)(aT,{viewBox:null===e||void 0===e?void 0:e.viewBox,name:e.icon,style:{width:22,height:22,color:o(e.id)}})}),Object(p.jsxs)("div",{className:a.itemLabelContainer,children:[Object(p.jsx)(cn.a,{className:a.itemLabel,children:e.label}),Object(p.jsx)(cn.a,{className:a.itemSubtitle,children:n(e.id)})]})]},e.id);var i}))})]}),Object(p.jsx)("div",{className:a.helpSection,children:Object(p.jsxs)(cn.a,{className:a.helpText,children:[Ti.a.t("dashboard.initialSetupHelp"),Object(p.jsx)("span",{className:a.helpLink,onClick:()=>window.open(r[t],"_blank"),children:Ti.a.t("dashboard.visitHelpCenter")})]})})]})})}const TL=Object(u.a)((e=>({container:{width:"100%",maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.spacing(2,1)},contentWrapper:{width:"100%",maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"center"},messageSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",padding:e.spacing(8,2),textAlign:"center",backgroundColor:ui.a.white,borderRadius:10},lockIconContainer:{width:85,height:85,borderRadius:"50%",backgroundColor:ui.a.primaryLight,display:"flex",alignItems:"center",justifyContent:"center",marginBottom:e.spacing(2)},mainMessage:{fontFamily:"Work Sans, sans-serif",fontSize:18,fontWeight:600,color:ui.a.textPrimary,marginBottom:e.spacing(1)},secondaryMessage:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:400,color:ui.a.textSecondary},separator:{flex:1,height:1,backgroundColor:ui.a.grey300},quickAccessSection:{width:"100%",display:"flex",flexDirection:"column"},quickAccessTitleContainer:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",marginBottom:e.spacing(3),marginTop:e.spacing(3)},quickAccessTitle:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:400,color:ui.a.textSecondary,textTransform:"uppercase",marginRight:e.spacing(1)},gridContainer:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"repeat(2, 1fr)",gap:e.spacing(2),width:"100%","@media (max-width: 600px)":{gridTemplateColumns:"repeat(1, 1fr)"},"@media (min-width: 768px) and (max-width: 1024px)":{gridTemplateColumns:"repeat(2, 1fr)"}},gridItem:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:e.spacing(2.5,2),gap:10,borderRadius:10,cursor:"pointer",backgroundColor:ui.a.white,"&:hover":{boxShadow:"0 0 10px 0 rgba(0, 0, 0, 0.1)",transform:"translateY(-2px)",transition:"all 0.3s ease"}},iconContainer:{width:40,height:40,borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center"},itemLabelContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center"},itemLabel:{fontFamily:"Work Sans, sans-serif",fontSize:16,fontWeight:600,color:ui.a.textPrimary,textAlign:"center",marginBottom:e.spacing(0)},itemSubtitle:{fontFamily:"Work Sans, sans-serif",fontSize:14,marginBottom:0,fontWeight:400,color:ui.a.textSecondary,textAlign:"center"},helpSection:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",marginTop:e.spacing(4),padding:e.spacing(0,2)},helpText:{fontFamily:"Work Sans, sans-serif",fontSize:14,fontWeight:400,color:ui.a.textSecondary,textAlign:"center"},helpLink:{color:ui.a.primary400,cursor:"pointer",fontWeight:600,marginLeft:e.spacing(1),"&:hover":{color:ui.a.primary500,textDecoration:"underline"}}}))),PL=170,RL=16,NL=e=>{if(!e||e<=0)return 1;const t=e+RL,a=Math.ceil(t/186);return Math.max(1,a)},LL=(e,t)=>{const a=e.current.get(t);if(null===a||void 0===a||!a.current)return null;const i=a.current,o=i.offsetHeight||i.clientHeight||i.getBoundingClientRect().height;return o>0?o:null},kL=e=>{const t=[...e.map((e=>{const t=Math.min(e.w,12),a=Math.max(0,Math.min(e.x,12-t)),i=Math.max(0,e.y);return{...e,x:a,y:i,w:t}}))].sort(((e,t)=>e.y!==t.y?e.y-t.y:e.x-t.x)),a=new Map;return t.map((e=>{let t=e.x,i=e.y,o=0;for(;o<1e4;){let n=!1;if(t+e.w>12)t=0,i++,o++;else{for(let o=i;o<i+e.h;o++){for(let i=t;i<t+e.w;i++){const t=`${o}-${i}`;
76if(a.has(t)){if(a.get(t)!==e.i){n=!0;break}}}if(n)break}if(!n&&t+e.w<=12){for(let o=i;o<i+e.h;o++)for(let i=t;i<t+e.w;i++)a.set(`${o}-${i}`,e.i);break}t++,t+e.w>12&&(t=0,i++),o++}}return{...e,x:t,y:i}}))},BL=e=>{let{renderableWidgets:t,widgetRefs:a,configuration:o,plan:n,updateConfigurationLocal:r,saveConfiguration:s,isDesktop:l,isCustomizeOpen:c,pageShellRef:d,setIsBlockedModalOpen:u}=e;const[p,m]=Object(i.useState)(null),[g,b]=Object(i.useState)(!1),h=Object(i.useRef)(null),x=Object(i.useMemo)((()=>{if(!t||0===t.length)return[];const e=t.map((e=>((e,t)=>{var a,i,o,n;const r=null!=(null===(a=e.grid)||void 0===a?void 0:a.col)?e.grid.col:0,s=null!=(null===(i=e.grid)||void 0===i?void 0:i.row)?e.grid.row:0,l=(null===(o=e.grid)||void 0===o?void 0:o.colSpan)||12;let c=(null===(n=e.grid)||void 0===n?void 0:n.rowSpan)||1;const d=LL(t,e.widgetName);if(d){const e=NL(d);Math.abs(e-c)>1&&(c=e)}return{i:e.widgetName,x:r,y:s,w:l,h:c,minW:1,maxW:12,minH:1,_originalHeight:d||null}})(e,a)));return kL(e)}),[t,a]);Object(i.useEffect)((()=>{if(!t||0===t.length)return void m(null);const e=setTimeout((()=>{const e=x.map((e=>{const t=LL(a,e.i);if(t){const a=NL(t);if(Math.abs(a-e.h)>.5)return{...e,h:a,_originalHeight:t}}return e})),t=e.some(((e,t)=>{const a=x[t];return a&&e.h!==a.h}));m(t?e:null)}),150);return()=>clearTimeout(e)}),[t,a]);const f=p||x;Object(i.useEffect)((()=>{if(!l||!h.current)return;const e=new ResizeObserver((e=>{for(const t of e)window.dispatchEvent(new Event("resize",{bubbles:!0}))}));e.observe(h.current);const t=setTimeout((()=>{null!==d&&void 0!==d&&d.current&&d.current.offsetWidth,h.current&&h.current.offsetWidth,window.dispatchEvent(new Event("resize",{bubbles:!0}))}),250);return()=>{e.disconnect(),clearTimeout(t)}}),[c,l,d]);const v=Object(i.useCallback)((async(e,t,a,i,l,c)=>{if(b(!1),!o||!Array.isArray(o))return;const d=kL(e),u=new Map;d.forEach((e=>{const t={col:(a=e).x,row:a.y,colSpan:a.w,rowSpan:a.h};var a;const i=Math.max(0,Math.floor(t.col)),o=Math.max(0,Math.floor(t.row)),n=Math.max(1,Math.floor(e.h));u.set(e.i,{col:i,row:o,h:n})}));const p=o.map((e=>{if(u.has(e.widgetName)){var t;const a=u.get(e.widgetName),i=(null===(t=e.grid)||void 0===t?void 0:t.colSpan)||12,o=a.h,n=Math.min(i,12),r=Math.min(a.col,12-n);return{...e,grid:{...e.grid,col:r,row:a.row,colSpan:n,rowSpan:o}}}return e}));if(n!==Za.a.standard.name&&n!==Za.a.standardNew.name){r(p);try{await s({configuration:p},!1)}catch(m){console.error("Error saving layout configuration:",m)}}else r(p)}),[o,n,r,s]),j=Object(i.useCallback)(((e,t)=>{}),[]),A=Object(i.useCallback)(((e,t,a,i,o,r)=>{b(!0),n!==Za.a.basic.name&&n!==Za.a.basicNew.name&&n!==Za.a.freemium.name?t&&t.h&&setTimeout((()=>{var e;const a=null===r||void 0===r||null===(e=r.parentElement)||void 0===e?void 0:e.querySelector(".react-grid-placeholder");if(a&&t.h){const e=186*t.h-RL;a.style.height=`${e}px`,a.style.minHeight=`${e}px`}}),0):u&&u(!0)}),[n,u]);return{isDragging:g,finalGridLayout:f,gridContainerRef:h,handleDragStop:v,handleLayoutChange:j,handleDragStart:A}},DL=e=>{let{lastAddedWidgetName:t,setLastAddedWidgetName:a,widgetRefs:o,renderableWidgets:n,processedWidgetsConfig:r,scrollAttemptedRef:s}=e;Object(i.useEffect)((()=>{if(!t)return void(s&&(s.current=!1));if(null!==s&&void 0!==s&&s.current)return;let e=0;let i=null,r=[],l=!1;const c=()=>{if(l)return;e++;if(!n.some((e=>e.widgetName===t)))return void(e>=50&&(i&&clearInterval(i),r.forEach((e=>clearTimeout(e))),a(null),s&&(s.current=!1)));let c=null;const d=o.current.get(t);if(c=null!==d&&void 0!==d&&d.current?d.current:document.querySelector(`[data-widget-name="${t}"]`),!c)return void(e>=50&&(i&&clearInterval(i),r.forEach((e=>clearTimeout(e))),a(null),s&&(s.current=!1)));if(!document.body.contains(c))return void(e>=50&&(i&&clearInterval(i),r.forEach((e=>clearTimeout(e))),a(null),s&&(s.current=!1)));const u=c.getBoundingClientRect();if(0===u.width&&0===u.height||0===u.top&&0===u.left&&u.width===window.innerWidth)return void(e>=50&&(i&&clearInterval(i),r.forEach((e=>clearTimeout(e))),a(null),s&&(s.current=!1)));l=!0,s&&(s.current=!0),i&&clearInterval(i),r.forEach((e=>clearTimeout(e)));const p=setTimeout((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{(()=>{let e=c;if(e=null!==d&&void 0!==d&&d.current?d.current:document.querySelector(`[data-widget-name="${t}"]`),!e||!document.body.contains(e))return a(null),void(s&&(s.current=!1));const i=e.getBoundingClientRect();if(0===i.width&&0===i.height||0===i.top&&0===i.left&&i.width===window.innerWidth)return a(null),void(s&&(s.current=!1));const o=window.pageYOffset||document.documentElement.scrollTop,n=i.top+o-window.innerHeight/2+i.height/2,r=Math.max(0,n-120);window.scrollTo({top:r,behavior:"smooth"}),setTimeout((()=>{a(null),s&&(s.current=!1)}),500)})()}))}))}),300);r.push(p)},d=setTimeout((()=>{c(),i=setInterval((()=>{c()}),100)}),300);return r.push(d),()=>{i&&clearInterval(i),r.forEach((e=>clearTimeout(e)))}}),[t,r,n,o,a,s]);return{triggerScrollFromLayoutChange:Object(i.useCallback)((e=>{!e||s&&s.current||setTimeout((()=>{const t=document.querySelector(`[data-widget-name="${e}"]`);if(t){const e=t.getBoundingClientRect();if(e.width>0&&e.height>0){const t=window.pageYOffset||document.documentElement.scrollTop,i=e.top+t-window.innerHeight/2+e.height/2,o=120,n=Math.max(0,i-o);window.scrollTo({top:n,behavior:"smooth"}),s&&(s.current=!0),setTimeout((()=>{a(null),s&&(s.current=!1)}),500)}}}),200)}),[a,s])}},FL=Object(Qw.WidthProvider)(Qw.Responsive);function ML(){var e;const t=VL(),a=Object(Zw.a)(),n=Object(Xw.a)(a.breakpoints.up(960)),r=Object(i.useRef)(null),s=Object(i.useRef)(null),[l,d]=Object(i.useState)({top:96,height:null}),[u,m]=Object(i.useState)(hL),[g,b]=Object(i.useState)(1),h=Object(i.useRef)(!1),[x,f]=Object(i.useState)(!1),[j,A]=Object(i.useState)(!1),{setIsEditMode:C}=qi(),y=[Za.a.freemium.name,Za.a.basic.name,Za.a.basicNew.name];Object(i.useEffect)((()=>{const e=document.querySelector(".whatsapp-flotante");if(e&&(e.style.display=x?"none":"block"),"function"===typeof window.zE)try{x?window.zE("webWidget","hide"):window.zE("webWidget","show")}catch(t){console.warn("Error toggling Zendesk widget:",t)}}),[x]);const[O,S]=Object(i.useState)(VN),E=Object(i.useRef)(VN),[I,w]=Object(i.useState)(VN),{jwt:T,userData:P}=$a(),{usersConfig:R}=Object(i.useContext)(qw),N=null===P||void 0===P?void 0:P.country,L=null===P||void 0===P?void 0:P.plan_name,k=null===P||void 0===P?void 0:P.user_type,B=null!==(e=null===R||void 0===R?void 0:R.ivaCondition)&&void 0!==e?e:null,D=k===zb||k===qb,F=x;Object(i.useEffect)((()=>{C(x)}),[x,C]);const{boxes:M,boxesLoading:V,boxesError:W,fetchBoxes:H}=eP(),{fetchSales:U}=rP(),{fetchPendingBills:_}=pP(),{fetchSalesVsBuys:z}=vP(),{fetchCustomersRanking:q}=EP(),{fetchPendingPayments:G}=function(){const[e,t]=Object(i.useReducer)(RP,PP);return{pendingPayments:e.data,pendingPaymentsLoading:e.loading,pen
76dingPaymentsError:e.error,fetchPendingPayments:async()=>{t({type:IP});try{const e=await Ya.dashboard.getPendingPayments();return t({type:wP,payload:e}),e}catch(e){const a=((e,t)=>{var a,i;return(null===e||void 0===e||null===(a=e.response)||void 0===a||null===(i=a.data)||void 0===i?void 0:i.message)||(null===e||void 0===e?void 0:e.message)||t})(e,"Error al cargar cuentas a pagar");throw t({type:TP,payload:a}),e}}}}(),{fetchVatPosition:Y}=function(){const[e,t]=Object(i.useReducer)(DP,BP);return{vatPosition:e.data,vatPositionLoading:e.loading,vatPositionError:e.error,fetchVatPosition:async function(){let{period:e="previous"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t({type:NP});try{const a="current"===e?1:0,i=await Ya.dashboard.getVatPosition({currentMonth:a});return t({type:LP,payload:i}),i}catch(a){const e=FP(a,"Error al cargar posici\xf3n de IVA");throw t({type:kP,payload:e}),a}}}}(),{fetchUnitsSold:K}=_P(),{fetchMinimumStock:X}=XP(),{fetchSalesByChannel:Z}=aR(),{salesChannelFilter:Q,salesChannelFilterLoading:J,fetchSalesChannelFilter:$}=lR(),[ee,te]=Object(i.useState)(VN),[ae,ie]=Object(i.useState)("1"),oe=Object(i.useCallback)((e=>{if(!Q||!e)return[];const t=e.split(",").map((e=>parseInt(e.trim())));return Q.filter((e=>t.includes(e.id))).map((e=>e.name))}),[Q]),[ne,re]=Object(i.useState)((()=>oe(ae)));Object(i.useEffect)((()=>{if(Q&&Q.length>0){const e=oe(ae);re(e)}}),[Q,ae,oe]);const{progress:se,steps:le,accountSetupLoading:ce,accountSetupError:de,fetchAccountSetupProgress:ue,shouldShowBanner:pe}=gR(),{shouldShowPendingPaymentModal:me,fetchPendingPaymentModal:ge}=jR(),{lastUpdate:be,lastUpdateLoading:he,lastUpdateError:xe,fetchLastUpdate:fe}=ER(),ve=Object(i.useMemo)((()=>{if(!me)return!1;const e=localStorage.getItem("overduePlanDismissed");if(!e)return!0;const t=(new Date).toISOString().split("T")[0],a=new Date(e),i=new Date(t);return e!==t&&(a<i&&(localStorage.removeItem("overduePlanDismissed"),!0))}),[me]),{configuration:je,configurationLoading:Ae,fetchConfiguration:Ce,saveConfiguration:ye,resetConfiguration:Oe,updateConfigurationLocal:Se}=LR();Object(i.useEffect)((()=>{if(!je||!Array.isArray(je))return;const e=(t="salesByChannel",je.find((e=>e.widgetName===t)));var t;e&&!0===e.isVisible&&!Q&&(ke.current||(ke.current=!0,$().catch((e=>{console.error("Error loading salesChannelFilter:",e),ke.current=!1})))),(Q||e&&!1===e.isVisible)&&(ke.current=!1)}),[je,Q]);const[Ee,Ie]=Object(i.useState)(!1),[we,Te]=Object(i.useState)(null),Pe=Object(i.useRef)(new Map),Re=Object(i.useRef)(!1),Ne=Object(i.useRef)(new Set),Le=Object(i.useRef)(new Set),ke=Object(i.useRef)(!1),Be=Object(i.useRef)(!1),De=Object(i.useRef)(!1),Fe=Object(i.useCallback)((e=>!(!e||!Array.isArray(e)||0===e.length)&&e.every((e=>!1===e.isVisible))),[]);Object(i.useEffect)((()=>{!Ae&&je&&Fe(je)&&!mt&&f(!0)}),[je,Ae,Fe]);const Me=Object(i.useMemo)((()=>(e=>{let{classes:t,decimals:a=0,country:i="ar"}=e;return[{key:"getSales",name:"Ventas del mes sin iva",size:"s",noDataType:"default",grid:{xs:12,md:4,ls:4},Component:vN,componentProps:{decimals:a},multicountry:Ti.a.t("dashboard.lockAnualBilling"),emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:GR,showTooltip:!0,tooltipText:Ti.a.t("dashboard.tooltipGetSales")},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationsText"),noPermissionText:Ti.a.t("dashboard.noPermissionText")},{key:"boxes",name:"Cajas",Component:yN,componentProps:{decimals:a},size:"s",noDataType:"default",grid:{xs:12,md:4,ls:4},isVisible:e=>"ar"!==e,multicountry:Ti.a.t("dashboard.lockAnualBilling"),emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:GR,showTooltip:!0,tooltipText:Ti.a.t("dashboard.tooltipBoxes")},blockedModuleModal:Ti.a.t("dashboard.boxesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText")},{key:"pendingBills",name:"Pendiente de cobro",size:"s",grid:{xs:12,md:4,ls:4},Component:"uy"===i||"py"===i||"cl"===i?IN:SN,emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:GR,showTooltip:!0,tooltipText:"uy"===i||"py"===i||"cl"===i?Ti.a.t("dashboard.tooltipPendingBillsRegion"):Ti.a.t("dashboard.tooltipPendingBills")}
76,componentProps:{detailHref:"/modulos/reportes/saldosClientes.aspx",decimals:a},blockedModuleModal:Ti.a.t("dashboard.pendingBillsLimitationtext"),noPermissionText:Ti.a.t("dashboard.noPermissionText")},{key:"unitsSold",name:"Unidades vendidas",Component:PN,size:"s",noDataType:"default",grid:{xs:12,md:4,ls:4},multicountry:Ti.a.t("dashboard.noSales"),emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:GR,showTooltip:!0,tooltipText:Ti.a.t("dashboard.tooltipUnitsSold")},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText"),componentProps:{decimals:a}},{key:"salesVsBuys",name:"Ventas vs Compras",size:"m",noDataType:"none",grid:{xs:12,md:8,ls:8},Component:UN,multicountry:Ti.a.t("dashboard.noSales"),emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:JR,buttonText:Ti.a.t("dashboard.createReceipt"),buttonAction:()=>window.location.href="/comprobantese.aspx"},skeletonProps:{isGraph:!0},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText"),componentProps:{decimals:a}},{key:"customerRanking",name:"Ranking de clientes",Component:zN,size:"m",noDataType:"none",grid:{xs:12,md:4,lg:4},multicountry:Ti.a.t("dashboard.noSales"),emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:sN,buttonText:Ti.a.t("dashboard.emitReceipt"),buttonAction:()=>window.location.href="/comprobantese.aspx",showTooltip:!0,tooltipText:Ti.a.t("dashboard.tooltipCustomerRanking")},skeletonProps:{noGraph:!0},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText"),componentProps:{decimals:a}},{key:"salesByChannel",name:"Ventas por canal",size:"m",noDataType:"none",grid:{xs:12,md:4,lg:4},Component:dL,emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:sN,showTooltip:!0,tooltipText:Ti.a.t("dashboard.salesByChannelTooltip"),buttonAction:()=>window.location.href="/modulos/ventas/integraciones.aspx"},componentProps:{detailHref:"/modulos/reportes/ventas-por-integracion-mensual.aspx",decimals:0},skeletonProps:{noGraph:!0},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText")},{key:"pendingPayments",name:"Cuentas a pagar",size:"m",noDataType:"ext",grid:{xs:12,md:8,lg:8},Component:YN,emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:sN,buttonText:Ti.a.t("dashboard.newBuy"),buttonAction:()=>window.location.href="/modulos/compras/compraDetalladase.aspx",showTooltip:!0,tooltipText:Ti.a.t("dashboard.tootilPendingPayments")},paperClass:null===t||void 0===t?void 0:t.accountPayPaper,multicountry:Ti.a.t("dashboard.lockAnualBilling"),skeletonProps:{noGraph:!0},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText"),componentProps:{decimals:a}},{key:"vatPosition",name:"Posici\xf3n IVA",size:"s",noDataType:"none",grid:{xs:12,md:4,lg:4},Component:$N,multicountry:Ti.a.t("dashboard.lockAnualBilling"),emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:GR,showTooltip:!0,tooltipText:Ti.a.t("dashboard.tooltipVatPosition")},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText"),componentProps:{decimals:a}},{key:"minimumStock",name:"Stock m\xednimo",size:"s",noDataType:"default",grid:{xs:12,md:4,lg:4},Component:aL,emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:GR,showTooltip:!0,tooltipText:Ti.a.t("dashboard.minimumStockTooltip")},componentProps:{detailHref:"/modulos/reportes/stockMinimo.aspx",decimals:0},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText")},{key:"quickAccess",name:"Accesos r\xe1pidos",size:"s",noDataType:"default",grid:{xs:12,md:4,lg:4},Component:mL,emptyStateConfig:{title:Ti.a.t("dashboard.noData"),svgIcon:GR,showTooltip:!0,tooltipText:Ti.a.t("dashboard.quickAccess.tooltip")||""},blockedModuleModal:Ti.a.t("dashboard.getSalesLimitationText"),noPermissionText:Ti.a.t("dashboard.noPermissionText"),componentProps:{country:i}}]})({classes:t,decimals:0,country:N})),[t,N]),Ve=Object(i.useMemo)((()=>
76{if(!je||!Array.isArray(je))return null;return je.filter((e=>{if(!1===e.isVisible)return!1;if(D){if(!0===e.planRestricted)return!1;if(!0!==e.enabled)return!1}return!0})).sort(((e,t)=>e.grid.row!==t.grid.row?e.grid.row-t.grid.row:e.grid.col-t.grid.col))}),[je,k]),We=Object(i.useMemo)((()=>{const e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[{key:"account",label:"Configur\xe1 tu cuenta",href:"/modulos/miCuenta/datosGenerales.aspx",completed:!!e.accountConfigured,iconName:"cog"},{key:"product",label:"Crea un producto o servicio",href:"/conceptos.aspx",completed:!!e.productCreated,iconName:"bag"},{key:"client",label:"Carg\xe1 un cliente",href:"/personas.aspx?tipo=c",completed:!!e.clientCreated,iconName:"user"},{key:"invoice",label:"Carg\xe1 tu primera factura",href:"/comprobantes.aspx",completed:!!e.firstInvoiceEmitted,iconName:"print"}]}(le);return e.map((e=>"account"===e.key&&"ar"!==N?{...e,href:"/v3/account"}:e))}),[le,N]),He=(e,t)=>{m((a=>({...a,[e]:{...a[e],...t}})))},Ue=function(){let{userId:e,country:t,companyId:a,plan:i,userType:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=[e?`u=${e}`:null,t?`c=${t}`:null,a?`co=${a}`:null,i?`p=${i}`:null,o?`t=${o}`:null].filter(Boolean);return n.length?n.join("|"):"anon"}({userId:((e,t)=>{var a,i,o,n,r,s,l,c,d;const u=null!==(a=null!==(i=null===t||void 0===t?void 0:t.is_additional)&&void 0!==i?i:null===e||void 0===e?void 0:e.is_additional)&&void 0!==a?a:null===e||void 0===e||null===(o=e.payload)||void 0===o?void 0:o.is_additional,p=null!==(n=null!==(r=null===t||void 0===t?void 0:t.additional_id)&&void 0!==r?r:null===e||void 0===e?void 0:e.additional_id)&&void 0!==n?n:null===e||void 0===e||null===(s=e.payload)||void 0===s?void 0:s.additional_id,m=null!==(l=null!==(c=null===t||void 0===t?void 0:t.userId)&&void 0!==c?c:null===e||void 0===e?void 0:e.userId)&&void 0!==l?l:null===e||void 0===e||null===(d=e.payload)||void 0===d?void 0:d.userId;return u&&p?`add:${p}|parentID:${null===t||void 0===t?void 0:t.userId}`:`usr:${m}`})(T,P),country:N,plan:L,userType:k}),_e=e=>DR("dashboard",e,Ue),ze=Object(i.useCallback)((()=>{try{const t=_e("salesByChannel:");let a=null,i=0;for(let o=0;o<localStorage.length;o++){const n=localStorage.key(o);if(n&&n.startsWith(t))try{const e=FR(n);if(e&&e.filters){const t=localStorage.getItem(n);if(t){const o=JSON.parse(t),n=(null===o||void 0===o?void 0:o.savedAt)||
760;n>i&&(i=n,a=e.filters)}}}catch(e){}}if(a)return{period:a.period||VN,channelsId:a.channelsId||"1"}}catch(t){console.warn("Error loading salesByChannel filters from cache:",t)}return{period:VN,channelsId:"1"}}),[_e]),qe=Object(i.useCallback)((()=>{try{const t=_e("customerRanking:");let a=null,i=0;for(let o=0;o<localStorage.length;o++){const n=localStorage.key(o);if(n&&n.startsWith(t))try{const e=FR(n);if(e&&e.filters){const t=localStorage.getItem(n);if(t){const o=JSON.parse(t),n=(null===o||void 0===o?void 0:o.savedAt)||0;n>i&&(i=n,a=e.filters)}}}catch(e){}}if(a)return{period:a.period||VN}}catch(t){console.warn("Error loading customerRanking filters from cache:",t)}return{period:VN}}),[_e]),Ge=Object(i.useCallback)((()=>{try{const t=_e("salesVsBuys:");let a=null,i=0;for(let o=0;o<localStorage.length;o++){const n=localStorage.key(o);if(n&&n.startsWith(t))try{const e=FR(n);if(e&&e.filters){const t=localStorage.getItem(n);if(t){const o=JSON.parse(t),n=(null===o||void 0===o?void 0:o.savedAt)||0;n>i&&(i=n,a=e.filters)}}}catch(e){}}if(a)return{period:a.period||VN}}catch(t){console.warn("Error loading salesVsBuys filters from cache:",t)}return{period:VN}}),[_e]),Ye={boxes:e=>Array.isArray(null===e||void 0===e?void 0:e.savingBanks)&&e.savingBanks.length>0,getSales:e=>{if(!e)return!1;return!["total","lastMonth","actualYear","variation"].every((t=>0===Number(null===e||void 0===e?void 0:e[t])))&&(null!=e.total||null!=e.actualYear||null!=e.lastMonth)},pendingBills:e=>{if(!e)return!1;return!["total","expired","upcoming","creditBalance"].every((t=>{var a;return 0===Number(null!==(a=null===e||void 0===e?void 0:e[t])&&void 0!==a?a:0)}))&&(null!=e.total||null!=e.upcoming||null!=e.expired||null!=e.creditBalance)},salesVsBuys:e=>{if(!Array.isArray(e))return!1;const t=e.filter((e=>Array.isArray(null===e||void 0===e?void 0:e.data)));if(0===t.length)return!1;if(!t.some((e=>e.data.length>0)))return!1;return!t.every((e=>e.data.every((e=>0===Number(null===e||void 0===e?void 0:e.y)))))},customerRanking:e=>!!e&&(e.items&&Array.isArray(e.items)?e.items.length>0:Array.isArray(e)&&e.length>0),pendingPayments:e=>!!(e&&Array.isArray(e.items)&&e.items.length>0),vatPosition:e=>{if(!e)return!1;if(!["salesVat","buysVat","totalVat"].some((t=>null!=e[t])))return!1;return!["salesVat","buysVat","totalVat"].every((t=>0===Number(null===e||void 0===e?void 0:e[t])))},unitsSold:e=>{if(!e)return!1;const t=["total","lastMonth","lastYearSameMonth","variation"];if(!t.some((t=>null!=e[t])))return!1;return!t.every((t=>0===Number(e[t])))},minimumStock:e=>{if(!e)return!1;const t=Number(e.totalProducts)>0,a=Number(e.totalCombos)>0;return t||a},salesByChannel:e=>!!e&&(Array.isArray(e.items)&&e.items.length>0)},Ke=async e=>{let{key:t,fetchFn:a,hasDataFn:i,defaultErrMsg:o,fourOhxAsNoPermission:n=!1,cacheSuffix:r}=e;He(t,{loading:!0,noData:!1,noPermission:!1,error:null});try{await async function(e){let{storageKey:t,fetchFn:a,onData:i,graceMs:o=0}=e;const n=FR(t);if(n)return null===i||void 0===i||i(n,!0),n;const r=await a();return MR(t,r,{graceMs:o}),null===i||void 0===i||i(r,!1),r}({storageKey:_e(r?`${t}:${r}`:t),graceMs:Ze,fetchFn:a,onData:e=>{const a=!i||i(e);He(t,{loading:!1,data:e,noData:!a,error:null})}})}catch(u){var s,l;const e=null!==(s=null===u||void 0===u||null===(l=u.response)||void 0===l?void 0:l.status)&&void 0!==s?s:null===u||void 0===u?void 0:u.status,a="number"===typeof e&&e>=400&&e<500,{isForbidden:i,isPlanLimited:r,isNotAllowed:p,isUnavailable:m}=xL(u);var c,d;if(i||n&&a)He(t,{loading:!1,noPermission:!0,limited:!!r&&!p,error:null,isUnavailable:m});else He(t,{loading:!1,error:null!==(c=null!==(d=null===u||void 0===u?void 0:u.message)&&void 0!==d?d:o)&&void 0!==c?c:Ti.a.t("dashboard.loadFailed"),isUnavailable:m})}},Xe=DR("dashboard","boxes",Ue),Ze=126e5,Qe=Object(i.useCallback)((e=>{if(!e||!Array.isArray(e))return"1";const t=e.map((e=>"object"===typeof e&&null!==e&&e.id?e.id:null)).filter((e=>null!==e));return t.length>0?t.join(","):"1"}),[]),Je=Object(i.useCallback)((e=>{if(!e||!Q||!Array.isArray(Q))return[{id:1,name:"Top 5 de ventas",type:"Predeterminado"}];const t=e.split(",").map((e=>parseInt(e.trim()))),a=Q.filter((e=>t.includes(e.id))).map((e=>({id:e.id,name:e.name,type:e.type||"Predeterminado"})));return a.length>0?a:[{id:1,name:"Top 5 de ventas",type:"Predeterminado"}]}),[Q]),$e=e=>_e(`salesVsBuys:${e}`),et=Object(i.useCallback)((async(e,t)=>{const a=((e,t)=>
76_e(`salesByChannel:${t?`${e}:${t}`:e}`))(e,t);try{const i=FR(a);if(i&&i.filters&&i.filters.period===e&&i.filters.channelsId===t){const e=Ye.salesByChannel(i.data);return void He("salesByChannel",{loading:!1,data:i.data,noData:!e,error:null})}}catch(r){console.warn("Error reading cached salesByChannel data:",r)}He("salesByChannel",{loading:!0,noData:!1,noPermission:!1,error:null});try{const i=await Z({period:e,channelsId:t}),o=Ye.salesByChannel(i);try{MR(a,{filters:{period:e,channelsId:t},data:i},{graceMs:Ze})}catch(s){console.warn("Error saving salesByChannel data to cache:",s)}He("salesByChannel",{loading:!1,data:i,noData:!o,error:null})}catch(l){var i,o;null!==(i=null===l||void 0===l||null===(o=l.response)||void 0===o?void 0:o.status)&&void 0!==i||(null===l||void 0===l||l.status);const{isForbidden:e}=xL(l);var n;if(e)He("salesByChannel",{loading:!1,noPermission:!0,error:null});else He("salesByChannel",{loading:!1,error:null!==(n=null===l||void 0===l?void 0:l.message)&&void 0!==n?n:Ti.a.t("dashboard.errorText")})}}),[He,Z,_e,Ze]),tt=Object(i.useCallback)((async(e,t)=>{if(!je||!Array.isArray(je))return void console.warn("Configuration not available, cannot update filters");const a=je.map((a=>a.widgetName===e?{...a,filters:{...a.filters,...t}}:a));if("Standard"!==L&&"StandardNew"!==L){Se(a);try{await ye({configuration:a},!1)}catch(i){console.error("Error saving filter configuration:",i)}}else Se(a)}),[je,L,Se,ye]),at=Object(i.useCallback)((async e=>{let{period:t,channelsId:a}=e;if(te(t),ie(a),Q&&Q.length>0){const e=oe(a);re(e)}const i=Je(a);await tt("salesByChannel",{period:t,channels:i}),et(t,a)}),[et,Q,oe,Je,tt]),it=Object(i.useCallback)((async e=>{const t=(e=>_e(`customerRanking:${e}`))(e);try{const a=FR(t);if(a&&a.filters&&a.filters.period===e){const e=Ye.customerRanking(a.data);return void He("customerRanking",{loading:!1,data:a.data,noData:!e,error:null})}}catch(n){console.warn("Error reading cached customerRanking data:",n)}He("customerRanking",{loading:!0,noData:!1,noPermission:!1,error:null});try{const a=await q({period:e}),i=Ye.customerRanking(a);try{MR(t,{filters:{period:e},data:a},{graceMs:Ze})}catch(r){console.warn("Error saving customerRanking data to cache:",r)}He("customerRanking",{loading:!1,data:a,noData:!i,error:null})}catch(s){var a,i;null!==(a=null===s||void 0===s||null===(i=s.response)||void 0===i?void 0:i.status)&&void 0!==a||(null===s||void 0===s||s.status);const{isForbidden:e}=xL(s);var o;if(e)He("customerRanking",{loading:!1,noPermission:!0,error:null});else He("customerRanking",{loading:!1,error:null!==(o=null===s||void 0===s?void 0:s.message)&&void 0!==o?o:Ti.a.t("dashboard.loadCustomerRanking")})}}),[He,q,_e,Ze]),ot=Object(i.useCallback)((async e=>{E.current=e;const t=$e(e);try{const a=FR(t);if(a&&a.filters&&a.filters.period===e){if(E.current!==e)return;const t=Ye.salesVsBuys(a.data);return void He("salesVsBuys",{loading:!1,data:a.data,noData:!t,error:null})}}catch(n){console.warn("Error reading cached salesVsBuys data:",n)}if(E.current===e){He("salesVsBuys",{loading:!0,noData:!1,noPermission:!1,error:null});try{const a=await z({period:e});if(E.current!==e)return;const i=Ye.salesVsBuys(a);try{MR(t,{filters:{period:e},data:a},{graceMs:Ze})}catch(r){console.warn("Error saving salesVsBuys data to cache:",r)}He("salesVsBuys",{loading:!1,data:a,noData:!i,error:null})}catch(s){var a,i;if(E.current!==e)return;null!==(a=null===s||void 0===s||null===(i=s.response)||void 0===i?void 0:i.status)&&void 0!==a||(null===s||void 0===s||s.status);const{isForbidden:t}=xL(s);var o;if(t)He("salesVsBuys",{loading:!1,noPermission:!0,error:null});else He("salesVsBuys",{loading:!1,error:null!==(o=null===s||void 0===s?void 0:s.message)&&void 0!==o?o:Ti.a.t("dashboard.loadSalesVsBuys")})}}}),[He,z,_e,Ze]);Object(i.useEffect)((()=>{var e,t,a;if(!je||!Array.isArray(je))return;if(!Re.current)return;const i=e=>je.find((t=>t.widgetName===e)),o=i("salesByChannel");if(o&&!0===o.isVisible&&o.filters){const e=o.filters.period||VN,t=o.filters.channels?Qe(o.filters.channels):o.filters.channelsId||"1";e===ee&&t===ae||(te(e),ie(t),et(e,t))}const n=i("customerRanking");if(n&&!0===n.isVisible&&null!==(e=n.filters)&&void 0!==e&&e.period){const e=n.filters.period;e!==I&&(w(e),it(e))}const r=i("salesVsBuys");if(r&&!0===r.isVisible&&null!==(t=r.filters)&&void 0!==t&&t.period){const e=r.filters.period;e!==O&&(E.current=e,S(e),ot(e))}const s=i("vatPosition");if(h.current=!0===(null===s||void 0===s?void 0:s.isVisible),void 0!==(null===s||void 0===s||null===(a=s.filters)||void 0===a?void 0:a.currentMonth)){const e=s.filters.currentMonth;e!==g&&b(e)}}),[je,Qe]);const nt=Object(i.useCallback)((async(e,t)=>{var a;if(!T||!N)return;const i=t(e);if(i&&!0===i.isVisible){Le.current.add(e);try{switch(e){case"boxes":await Ke({key:"boxes",fetchFn:async()=>"ar"===N?{savingBanks:[]}:H(),hasDataFn:Ye.boxes,defaultErrMsg:Ti.a.t("dashboard.loadBoxes"),fourOhxAsNoPermission:!0});break;case"getSales":await Ke({key:"getSales",fetchFn:U,hasDataFn:Ye.getSales,defaultErrMsg:Ti.a.t("dashboard.loadSales")});break;
76case"pendingBills":await Ke({key:"pendingBills",fetchFn:_,hasDataFn:Ye.pendingBills,defaultErrMsg:Ti.a.t("dashboard.loadReceivables")});break;case"pendingPayments":await Ke({key:"pendingPayments",fetchFn:G,hasDataFn:Ye.pendingPayments,defaultErrMsg:Ti.a.t("dashboard.loadPayables")});break;case"unitsSold":await Ke({key:"unitsSold",fetchFn:K,hasDataFn:Ye.unitsSold,defaultErrMsg:Ti.a.t("dashboard.loadUnitsSold")});break;case"minimumStock":await Ke({key:"minimumStock",fetchFn:X,hasDataFn:Ye.minimumStock,defaultErrMsg:Ti.a.t("dashboard.errorText")});break;case"salesVsBuys":{var o;let e=VN;if(null!==(o=i.filters)&&void 0!==o&&o.period)e=i.filters.period;else{e=Ge().period}E.current=e,S(e),await ot(e);break}case"customerRanking":{var n;let e=VN;if(null!==(n=i.filters)&&void 0!==n&&n.period)e=i.filters.period;else{e=qe().period}w(e),await it(e);break}case"salesByChannel":{let e=VN,t="1";if(i.filters)e=i.filters.period||VN,t=i.filters.channels?Qe(i.filters.channels):i.filters.channelsId||"1";else{const a=ze();e=a.period,t=a.channelsId}te(e),ie(t),await et(e,t);break}case"vatPosition":h.current=!0;const t=void 0!==(null===(a=i.filters)||void 0===a?void 0:a.currentMonth)?i.filters.currentMonth:1;b(t);const r=1===t?"current":"previous";await Ke({key:"vatPosition",fetchFn:()=>Y({period:r}),hasDataFn:Ye.vatPosition,defaultErrMsg:Ti.a.t("dashboard.loadVatPosition"),cacheSuffix:r});break;case"quickAccess":He("quickAccess",{loading:!1,visible:!0});break;default:console.warn(`Unknown widget name: ${e}`)}}finally{Le.current.delete(e)}}}),[T,N,Ke,H,U,_,G,K,X,ot,it,et,Y,He,Ge,qe,ze,Qe]),rt=Object(i.useCallback)((e=>({getSales:"getSales",pendingBills:"pendingBills",unitsSold:"unitsSold",pendingPayments:"pendingPayments",vatPosition:"vatPosition",salesVsBuys:"salesVsBuys",customerRanking:"customerRanking",salesByChannel:"salesByChannel",minimumStock:"minimumStock",quickAccess:"quickAccess",boxes:"boxes"}[e]||e)),[]);Object(i.useEffect)((()=>{if(!je||!Array.isArray(je))return;if(!Re.current)return;if(!T||!N)return;const e=e=>je.find((t=>t.widgetName===e)),t=new Set;je.forEach((e=>{!0===e.isVisible&&t.add(e.widgetName)}));const a=Array.from(t).filter((e=>!Ne.current.has(e)));a.length>0&&a.forEach((async t=>{if(Le.current.has(t))return;const a=rt(t),i=u[a];if(!i||!i.data||i.loading||i.error){if("salesByChannel"===t&&!Q&&!J)try{await $()}catch(o){console.error("Error loading salesChannelFilter:",o)}nt(t,e).catch((e=>{console.error(`Error loading widget ${t}:`,e)}))}})),Ne.current=t}),[je]),Object(i.useEffect)((()=>{T&&N&&(Re.current=!1,Be.current=!1,"ar"===N&&ge().catch((()=>{})),(async(e,t,a)=>{let i=null;try{i=await Ce()}catch(R){console.error("Error fetching configuration:",R)}if(!i||!Array.isArray(i))return void console.warn("Configuration not available or invalid, skipping widget loading");const o=e=>i.find((t=>t.widgetName===e));let n=VN,r="1";const s=o("salesByChannel");if(null!==s&&void 0!==s&&s.filters)n=s.filters.period||VN,r=s.filters.channels?Qe(s.filters.channels):s.filters.channelsId||"1";else{const e=ze();n=e.period,r=e.channelsId}te(n),ie(r);let l=VN;const c=o("customerRanking");if(null!==c&&void 0!==c&&null!==(e=c.filters)&&void 0!==e&&e.period)l=c.filters.period;else{l=qe().period}w(l);let d=VN;const u=o("salesVsBuys");if(null!==u&&void 0!==u&&null!==(t=u.filters)&&void 0!==t&&t.period)d=u.filters.period;else{d=Ge().period}E.current=d,S(d);const p=o("vatPosition");h.current=!0===(null===p||void 0===p?void 0:p.isVisible),void 0!==(null===p||void 0===p||null===(a=p.filters)||void 0===a?void 0:a.currentMonth)&&b(p.filters.currentMonth);let m=null;L===Za.a.prueba.name&&(m=Promise.resolve(ue()).catch((e=>{})));const g=Promise.resolve(fe()),x=[];if(p&&!0===p.isVisible){var f;const e=1===(void 0!==(null===(f=p.filters)||void 0===f?void 0:f.currentMonth)?p.filters.currentMonth:1)?"current":"previous";x.push(Ke({key:"vatPosition",fetchFn:()=>Y({period:e}),hasDataFn:Ye.vatPosition,defaultErrMsg:Ti.a.t("dashboard.loadVatPosition"),cacheSuffix:e}))}const v=o("boxes");v&&!0===v.isVisible&&x.push(Ke({key:"boxes",fetchFn:async()=>"ar"===N?{savingBanks:[]}:H(),hasDataFn:Ye.boxes,defaultErrMsg:Ti.a.t("dashboard.loadBoxes"),fourOhxAsNoPermission:!0}));const j=o("getSales");j&&!0===j.isVisible&&x.push(Ke({key:"getSales",fetchFn:U,hasDataFn:Ye.getSales,defaultErrMsg:Ti.a.t("dashboard.loadSales")}));const A=o("pendingBills");A&&!0===A.isVisible&&x.push(Ke({key:"pendingBills",fetchFn:_,hasDataFn:Ye.pendingBills,defaultErrMsg:Ti.a.t("dashboard.loadReceivables")}));const C=o("salesVsBuys");C&&!0===C.isVisible&&x.push(ot(d));const y=o("customerRanking");y&&!0===y.isVisible&&x.push(it(l));const O=o("pendingPayments");O&&!0===O.isVisible&&x.push(Ke({key:"pendingPayments",fetchFn:G,hasDataFn:Ye.pendingPayments,defaultErrMsg:Ti.a.t("dashboard.loadPayables")}));const I=o("unitsSold");I&&!0===I.isVisible&&x.push(Ke({key:"unitsSold",fetchFn:K,hasDataFn:Ye.unitsSold,defaultErrMsg:Ti.a.t("dashboard.loadUnitsSold")}));const T=o("minimumStock");T&&!0===T.isVisible&&x.push(Ke({key:"minimumStock",fetchFn:X,hasDataFn:Ye.minimumStock,defaultErrMsg:Ti.a.t("dashboard.errorText")}
76)),s&&!0===s.isVisible&&(Q||J||x.push(Promise.resolve($())),x.push(et(n,r))),m&&x.push(m),x.push(g),await Promise.allSettled(x),He("quickAccess",{loading:!1,visible:!0});const P=new Set;i.forEach((e=>{!0===e.isVisible&&P.add(e.widgetName)})),Ne.current=P,Re.current=!0})())}),[T,N]),Object(i.useEffect)((()=>{if(!T||!N)return;if(!Re.current)return;if(!h.current)return;const e=1===g?"current":"previous";Ke({key:"vatPosition",fetchFn:()=>Y({period:e}),hasDataFn:Ye.vatPosition,defaultErrMsg:Ti.a.t("dashboard.loadVatPosition"),cacheSuffix:e})}),[g,T,N]),Object(i.useEffect)((()=>{V||!M||W||MR(Xe,M,{graceMs:Ze})}),[M,V,W]),Object(i.useEffect)((()=>{if(!T||!N)return;const e=[];["boxes","getSales","pendingBills","pendingPayments","unitsSold","minimumStock"].forEach((t=>{const a=_e(t),i=HR(a,Ze);e.push(i)}));["current","previous"].forEach((t=>{const a=_e(`vatPosition:${t}`),i=HR(a,Ze);e.push(i)}));["salesVsBuys:","customerRanking:","salesByChannel:"].forEach((t=>{const a=_e(t);for(let i=0;i<localStorage.length;i++){const t=localStorage.key(i);if(t&&t.startsWith(a)){const a=HR(t,Ze);e.push(a)}}}));const t=(e=>{const t=t=>{if("__dailyCacheReset__"===t.key&&t.newValue)try{const{key:a}=JSON.parse(t.newValue);null===e||void 0===e||e(a)}catch{}};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)})((e=>{}));return()=>{e.forEach((e=>e())),t()}}),[T,N,Ue,Ze]);new Set(["pendingPayments","vatPosition",..."ar"!==N?["unitsSold"]:[],"quickAccess"]);const st=e=>Me.find((t=>t.key===e)),lt=Object(i.useCallback)((e=>{if(!e||!Array.isArray(e))return e;const t=e.filter((e=>!1!==e.isVisible)).map((e=>{var t,a,i,o;return{...e,grid:{...e.grid,row:null!==(t=null===(a=e.grid)||void 0===a?void 0:a.row)&&void 0!==t?t:null,col:null!==(i=null===(o=e.grid)||void 0===o?void 0:o.col)&&void 0!==i?i:null}}}));if(0===t.length)return e;const a=t.filter((e=>{var t,a;return null!=(null===(t=e.grid)||void 0===t?void 0:t.row)&&null!=(null===(a=e.grid)||void 0===a?void 0:a.col)})),i=t.filter((e=>{var t,a;return null==(null===(t=e.grid)||void 0===t?void 0:t.row)||null==(null===(a=e.grid)||void 0===a?void 0:a.col)}));a.sort(((e,t)=>{var a,i,o,n,r,s,l,c;const d=null!==(a=null===(i=e.grid)||void 0===i?void 0:i.row)&&void 0!==a?a:1/0,u=null!==(o=null===(n=t.grid)||void 0===n?void 0:n.row)&&void 0!==o?o:1/0;if(d!==u)return d-u;return(null!==(r=null===(s=e.grid)||void 0===s?void 0:s.col)&&void 0!==r?r:1/0)-(null!==(l=null===(c=t.grid)||void 0===c?void 0:c.col)&&void 0!==l?l:1/0)}));const o=new Map,n=(e,t,a,i)=>{for(let n=e;n<e+i;n++){const e=o.get(n)||new Set;for(let i=t;i<t+a;i++)if(e.has(i)||i>=12)return!1}return!0},r=(e,t,a,i)=>{for(let n=e;n<e+i;n++){o.has(n)||o.set(n,new Set);const e=o.get(n);for(let i=t;i<t+a;i++)e.add(i)}},s=(e,t)=>{for(let a=0;a<1e3;a++)for(let i=0;i+e<=12;i++)if(n(a,i,e,t))return{row:a,col:i};return{row:0,col:0}},l=[];a.forEach((e=>{var t,a,i,o,c,d;const u=(null===(t=e.grid)||void 0===t?void 0:t.colSpan)||12,p=(null===(a=e.grid)||void 0===a?void 0:a.rowSpan)||1,m=null!==(i=null===(o=e.grid)||void 0===o?void 0:o.row)&&void 0!==i?i:0,g=null!==(c=null===(d=e.grid)||void 0===d?void 0:d.col)&&void 0!==c?c:0;let b=!1,h=m,x=g;if(n(m,g,u,p))r(m,g,u,p),b=!0;else{const e=s(u,p);h=e.row,x=e.col,r(h,x,u,p),b=!0}l.push({...e,grid:{...e.grid,row:h,col:x}})})),i.forEach((e=>{var t,a;const i=(null===(t=e.grid)||void 0===t?void 0:t.colSpan)||12,o=(null===(a=e.grid)||void 0===a?void 0:a.rowSpan)||1,n=s(i,o);r(n.row,n.col,i,o),l.push({...e,grid:{...e.grid,row:n.row,col:n.col}})}));const c=new Map(l.map((e=>[e.widgetName,e])));return e.map((e=>c.has(e.widgetName)?c.get(e.widgetName):e))}),[]),ct=Object(i.useCallback)((async e=>{if(!je||!Array.isArray(je))return;if(y.includes(L))return void A(!0);const t=rt(e),a=st(t);a&&a.name&&Object(c.b)(`Dashboard - Eliminar - ${a.name}`);try{let t=je.map((t=>t.widgetName===e?{...t,isVisible:!1}:t));return t=lt(t),"Standard"===L||"StandardNew"===L?void Se(t):(Se(t),Ie(!0),ye({configuration:t},!1).then((()=>{Ie(!1)})).catch((e=>{throw console.error("Error saving configuration:",e),Ie(!1),e})))}catch(i){throw console.error("Error removing widget:",i),Ie(!1),i}}),[je,ye,lt,L,Se,A,Ie]),dt=Object(i.useCallback)((async e=>{if(!je||!Array.isArray(je))return;const t=rt(e),a=st(t);if(a&&a.name)try{if(!je.find((t=>t.widgetName===e)))return;let t=je.map((t=>t.widgetName===e?{...t,isVisible:!0,grid:{...t.grid,row:null,col:null}}:t));if(t=lt(t),"salesByChannel"===e&&!Q&&!J)try{await $()}catch(i){console.error("Error loading salesChannelFilter when adding widget:",i)}return"Standard"===L||"StandardNew"===L?(Se(t),void Te(e)):(Se(t),Te(e),ye({configuration:t},!1).catch((e=>{throw console.error("Error saving configuration:",e),e})))}catch(i){throw console.error("Error adding widget:",i),i}}),[je,ye,lt,L,Se]),ut=e=>({getSales:"getSales",pendingBills:"pendingBills",unitsSold:"unitsSold",pen
76dingPayments:"pendingPayments",vatPosition:"vatPosition",salesVsBuys:"salesVsBuys",customerRanking:"customerRanking",salesByChannel:"salesByChannel",minimumStock:"minimumStock",quickAccess:"quickAccess",boxes:"boxes"}[e]||e),pt=Object(i.useMemo)((()=>Ve&&0!==Ve.length?Ve.filter((e=>{const t=ut(e.widgetName),a=st(t);if(!a)return!1;if(a.isVisible&&!a.isVisible(N))return!1;if(D){if(!0===e.planRestricted)return!1;if(!0!==e.enabled)return!1;if(!0!==e.isVisible)return!1}return!0})):[]),[Ve,N,Me,k]),mt=Object(i.useMemo)((()=>{if(!D||!je||!Array.isArray(je))return!1;return je.every((e=>!1===e.enabled))}),[je,k]),{finalGridLayout:gt,gridContainerRef:bt,handleDragStop:ht,handleLayoutChange:xt,handleDragStart:ft,isDragging:vt}=BL({renderableWidgets:pt,widgetRefs:Pe,configuration:je,plan:L,updateConfigurationLocal:Se,saveConfiguration:ye,isDesktop:n,isCustomizeOpen:x,pageShellRef:r,setIsBlockedModalOpen:A}),{triggerScrollFromLayoutChange:jt}=DL({lastAddedWidgetName:we,setLastAddedWidgetName:Te,widgetRefs:Pe,renderableWidgets:pt,processedWidgetsConfig:Ve,scrollAttemptedRef:De}),At=Object(i.useCallback)(((e,t)=>{xt(e,t),we&&!De.current&&jt(we)}),[xt,we,jt]),Ct=Object(i.useCallback)(((e,t)=>{const a=ut(e.widgetName),i=st(a);return i?"salesVsBuys"===a?Object(p.jsx)(VT,{state:u[a],name:i.name,widgetName:e.widgetName,Component:i.Component,tooltip:i.tooltip,size:i.size,noDataType:i.noDataType,jwt:T,multicountry:i.multicountry,paperClass:i.paperClass,emptyStateConfig:i.emptyStateConfig,componentProps:{...i.componentProps,selectedPeriod:O,userType:k,blockedModuleModal:i.blockedModuleModal,onPeriodChange:async e=>{E.current=e;const t=$e(e);let a=!1;try{const i=FR(t);if(i&&i.filters&&i.filters.period===e){a=!0;const e=Ye.salesVsBuys(i.data);He("salesVsBuys",{loading:!1,data:i.data,noData:!e,error:null})}}catch(i){console.warn("Error reading cached salesVsBuys data:",i)}if(a||He("salesVsBuys",{loading:!0,data:null}),S(e),await tt("salesVsBuys",{period:e}),!a)return ot(e)},isEditMode:F},skeletonProps:i.skeletonProps,blockedModuleModal:i.blockedModuleModal,noPermissionText:i.noPermissionText,isEditMode:F,onRemove:t?()=>t(e.widgetName):void 0,plan:L,setIsBlockedModalOpen:A,isDragging:vt},`salesVsBuys-${O}`):"customerRanking"===a?Object(p.jsx)(VT,{state:u[a],name:i.name,widgetName:e.widgetName,Component:i.Component,tooltip:i.tooltip,size:i.size,noDataType:i.noDataType,jwt:T,multicountry:i.multicountry,paperClass:i.paperClass,emptyStateConfig:i.emptyStateConfig,componentProps:{...i.componentProps,selectedPeriod:I,userType:k,plan:L,blockedModuleModal:i.blockedModuleModal,onPeriodChange:async e=>(w(e),await tt("customerRanking",{period:e}),it(e)),isEditMode:F},skeletonProps:i.skeletonProps,blockedModuleModal:i.blockedModuleModal,noPermissionText:i.noPermissionText,isEditMode:F,onRemove:t?()=>t(e.widgetName):void 0,plan:L,setIsBlockedModalOpen:A,isDragging:vt},`customerRanking-${I}`):"vatPosition"===a?Object(p.jsx)(VT,{state:u[a],name:i.name,widgetName:e.widgetName,Component:i.Component,tooltip:i.tooltip,size:i.size,noDataType:i.noDataType,jwt:T,multicountry:i.multicountry,paperClass:i.paperClass,emptyStateConfig:i.emptyStateConfig,componentProps:{...i.componentProps,currentMonth:g,onPeriodChange:async e=>{const t="current"===e?1:0;return b(t),await tt("vatPosition",{currentMonth:t}),Ke({key:"vatPosition",fetchFn:()=>Y({period:e}),hasDataFn:Ye.vatPosition,defaultErrMsg:Ti.a.t("dashboard.loadVatPosition"),cacheSuffix:e})},isEditMode:F},skeletonProps:i.skeletonProps,blockedModuleModal:i.blockedModuleModal,noPermissionText:i.noPermissionText,isEditMode:F,onRemove:t?()=>t(e.widgetName):void 0,plan:L,setIsBlockedModalOpen:A,isDragging:vt}):"salesByChannel"===a?Object(p.jsx)(VT,{state:u[a],name:i.name,widgetName:e.widgetName,Component:i.Component,tooltip:i.tooltip,size:i.size,noDataType:i.noDataType,jwt:T,multicountry:i.multicountry,paperClass:i.paperClass,emptyStateConfig:i.emptyStateConfig,componentProps:{...i.componentProps,selectedPeriod:ee,selectedChannels:ne,userType:k,blockedModuleModal:i.blockedModuleModal,onFiltersChange:at,salesChannelFilter:Q,salesChannelFilterLoading:J,isEditMode:F},skeletonProps:i.skeletonProps,blockedModuleModal:i.blockedModuleModal,noPermissionText:i.noPermissionText,isEditMode:F,onRemove:t?()=>t(e.widgetName):void 0,plan:L,setIsBlockedModalOpen:A,isDragging:vt},`salesByChannel-${ee}-${ae}`):"quickAccess"!==a||k!==zb&&k!==qb?Object(p.jsx)(VT,{state:u[a],name:i.name,widgetName:e.widgetName,Component:i.Component,tooltip:i.tooltip,size:i.size,noDataType:i.noDataType,jwt:T,multicountry:i.multicountry,paperClass:i.paperClass,emptyStateConfig:i.emptyStateConfig,componentProps:{...i.componentProps,currentMonth:g,onPeriodChange:async e=>{const t="current"===e?1:0;b(t),await tt("vatPosition",{currentMonth:t})},isEditMode:F},skeletonProps:i.skeletonProps,blockedModuleModal:i.blockedModuleModal,noPermissionText:i.noPermissionText,isEditMode:F,onRemove:t?()=>t(e.widgetName):void 0,plan:L,setIsBlockedModalOpen:A,isDragging:vt}):Object(p.jsx)(VT,{state:{...u[a],noPermission:!0,loading:!1},name:i.name,widgetName:e.widgetName,Component:i.Component,tooltip:i.tooltip,size:i.size,noDataType:i.noDataType,jwt:T,multicountry:i.multicountry,paperClass:i.paperClass,emptyStateConfig:i.emptyStateConfig,componentProps:{...i.componentProps,isEditMode:F},skeletonProps:i.skeletonProps,blockedModuleModal:i.blockedModuleModal,noPermissionText:i.noPermissionText,isEditMode:F,onRemove:t?()=>t(e.widgetName):void 0,isDragging:vt}):null}),[u,T,k,L,O,I,F,g,ee,ae,ne,Q,J,ot,it,at,Y,Ke,tt,Ye,st,ut,ct]);return Object(i.useEffect)((()=>{const e=()=>{let e=document.querySelector('[class*="containerHeader"]');if(!e){const t=document.querySelectorAll('[class*="MuiGrid-container"]');e=Array.from(t).find((e=>{const t=window.getComputedStyle(e),a=e.getBoundingClientRect();return("sticky"===t.position||"fixed"===t.position)&&a.top<=10&&a.top>=0}))}if(!e){const t=document.querySelectorAll('[class*="containerAlerts"]');t.length>0&&(e=t[0].closest('[class*="MuiGrid-container"]')||t[0].parentElement)}if(e){const t=e.getBoundingClientRect(),a=Math.round(t.height);d({top:a,height:a})}else{const e=s.current||r.current;if(e){const t=e.getBoundingClientRect(),a=Math.max(0,Math.round(t.top+window.scrollY));d({top:a,height:null})}else{d({top:n?96:80,height:null})}}};e();let t=document.querySelector('[class*="containerHeader"]');if(!t){const e=document.querySelectorAll('[class*="MuiGrid-container"]');t=Array.from(e).find((e=>{const t=window.getComputedStyle(e),a=e.getBoundingClientRect();return("sticky"===t.position||"fixed"===t.position)&&a.top<=10&&a.top>=0}))}if(!t){const e=document.querySelectorAll('[class*="containerAlerts"]');e.length>0&&(t=e[0].closest('[class*="MuiGrid-container"]')||e[0].parentElement)}let a=null;if(t){a=new ResizeObserver((()=>{e()})),a.observe(t);const i=t.querySelector('[class*="containerAlerts"]');i&&a.observe(i)}const i=()=>{e()};window.addEventListener("resize",i);const o=setTimeout(e,100),l=setTimeout(e,500);return()=>{a&&a.disconnect(),window.removeEventListener("resize",i),clearTimeout(o),clearTimeout(l)}}),[n]),DL({lastAddedWidgetName:we,setLastAddedWidgetName:Te,widgetRefs:Pe,renderableWidgets:pt,processedWidgetsConfig:Ve,scrollAttemptedRef:De}),Object(p.jsxs)("div",{className:t.root,children:[Object(p.jsx)("div",{ref:r,className:`${t.pageShell} ${n&&x?t.pageShellShift:""}`,children:Object(p.jsxs)(v.a,{container:!0,spacing:2,children:[Object(p.jsx)(v.a,{container:!0,item:!0,xs:12,className:t.gridOuter,style:{marginBottom:"-10px",alignItems:"left"},children:Object(p.jsx)(oT,{country:N,lastUpdate:be,lastUpdateLoading:he,lastUpdateError:xe,onCustomize:()=>f(!0),isEditMode:x,allWidgetsDisabledForRestrictedUser:mt})}),Object(p.jsxs)(v.a,{item:!0,xs:12,children:[ve&&Object(p.jsx)(KT,{open:!0,plan:L,route:()=>{window.location.href="/modulos/seguridad/elegir-plan.aspx"}}),pe&&!ce&&!de&&Object(p.jsx)(hT,{steps:We,progress:"number"===typeof se?se:void 0,onStepClick:e=>{e.href&&(window.location.href=e.href)}})]}),Ae&&Object(p.jsx)(v.a,{item:!0,xs:12,children:Object(p.jsx)(di.a,{display:"flex",justifyContent:"center",alignItems:"center",style:{padding:"20px 0"},children:Object(p.jsx)(Od.a,{style:{color:"#00A692"}})})}),!Ae&&Ve&&0===pt.length&&Object(p.jsx)(p.Fragment,{children:mt?Object(p.jsx)(wL,{country:N}):Object(p.jsx)(v.a,{item:!0,xs:12,children:Object(p.jsx)(di.a,{display:"flex",justifyContent:"center",alignItems:"center",style:{minHeight:"calc(100vh - 200px)",width:"100%",padding:a.spacing(4,0)},children:Object(p.jsx)(Fc,{img:On,altImg:"Empty dashboard",title:void 0,text:Ti.a.t("dashboard.customizeDashboardEmptyState"),isVertical:!0,containerStyle:{display:"flex",justifyContent:"center",alignItems:"center"}})})})}),!Ae&&Ve&&pt.length>0&&Object(p.jsx)("div",{ref:bt,style:{width:"100%",maxWidth:"100%",minWidth:"100%",position:"relative",overflow:"visible",padding:"8px 10px 0 10px",boxSizing:"border-box",contain:"layout style",flexShrink:0},children:n?Object(p.jsx)(FL,{className:t.widgetsGridContainer,layouts:{lg:gt},breakpoints:{lg:960,md:768,sm:480,xs:0,xxs:0},cols:{lg:12,md:12,sm:12,xs:12,xxs:12},rowHeight:PL,margin:[16,RL],containerPadding:[0,0],isDraggable:F&&"Basic"!==L&&"BasicNew"!==L,isResizable:!1,onLayoutChange:At,onDragStart:ft,onDragStop:ht,compactType:"vertical",preventCollision:!1,allowOverlap:!1,draggableHandle:".drag-handle",draggableCancel:".no-drag",useCSSTransforms:!0,children:pt.map((e=>{const a=ut(e.widgetName);st(a);let i=Pe.current.get(e.widgetName);
76return i||(i=o.a.createRef(),Pe.current.set(e.widgetName,i)),Object(p.jsx)("div",{ref:i,className:t.widgetGridItem,"data-widget-name":e.widgetName,children:Ct(e,ct)},e.widgetName)}))}):Object(p.jsx)("div",{className:t.widgetsGridContainer,children:pt.map((e=>{var a,i;const r=ut(e.widgetName),s=(st(r),(null===(a=e.grid)||void 0===a?void 0:a.colSpan)||12),l=(null===(i=e.grid)||void 0===i?void 0:i.rowSpan)||1;let c=Pe.current.get(e.widgetName);return c||(c=o.a.createRef(),Pe.current.set(e.widgetName,c)),Object(p.jsx)("div",{ref:c,className:t.widgetGridItem,style:{...n&&{gridColumn:`span ${s} / span ${s}`,gridRow:l>1?`span ${l}`:"auto"}},children:Ct(e,ct)},e.widgetName)}))})})]})}),Object(p.jsx)(IL,{limitedPlans:y,open:x,onClose:()=>{Fe(je)&&!mt||f(!1)},topOffset:l.top,configuration:je,configurationLoading:Ae,widgetsConfig:Me,isEditMode:F,onAddWidget:dt,fetchConfiguration:Ce,resetConfiguration:Oe,canClose:!Fe(je)||mt,plan:L,isBlockedModalOpen:j,setIsBlockedModalOpen:A,updateConfigurationLocal:Se,isRemovingWidget:Ee,ivaCondition:B})]})}const VL=Object(u.a)((e=>({root:{flexGrow:1,backgroundColor:"#ebebeb",marginBottom:"10px",overflowX:"hidden",maxWidth:"100%",width:"100%"},pageShell:{paddingLeft:e.spacing(4),paddingRight:e.spacing(3),paddingBottom:e.spacing(4),marginBottom:"50px",transition:"padding-right 200ms ease",[e.breakpoints.down("sm")]:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}},pageShellShift:{paddingRight:e.spacing(2.7)+300},gridOuter:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},stackCol:{display:"grid",rowGap:e.spacing(2.5)},widgetsGridContainer:{width:"100%",maxWidth:"100%",minWidth:"100%",display:"grid",gridTemplateColumns:"repeat(12, 1fr)",gap:e.spacing(2),overflow:"visible",boxSizing:"border-box",contain:"layout style",willChange:"contents",[e.breakpoints.down(959)]:{gridTemplateColumns:"1fr"},"& .react-grid-layout":{position:"relative",width:"100% !important",minWidth:"100%",maxWidth:"100%",boxSizing:"border-box",contain:"layout style"},"& .react-grid-item":{transition:"all 200ms ease",transitionProperty:"left, top",minWidth:0,width:"100%",boxSizing:"border-box","& > *":{maxHeight:"100%",boxSizing:"border-box",width:"100%",minWidth:0}},"& .react-grid-item.cssTransforms":{transitionProperty:"transform"},"& .react-grid-item.react-draggable-dragging":{transition:"none",zIndex:3,willChange:"transform","& > *":{maxHeight:"100%",overflow:"hidden"}},"& .react-grid-item.dropping":{visibility:"hidden"},"& .react-grid-item.react-grid-placeholder":{background:"transparent",opacity:.5,transitionDuration:"100ms",zIndex:2,userSelect:"none",borderRadius:"10px",boxSizing:"border-box",minHeight:"0 !important",maxHeight:"none !important",overflow:"hidden",border:`2px dashed ${ui.a.primary400}`,display:"block !important"}},widgetGridItem:{width:"100%",maxWidth:"100%",minWidth:0,position:"relative",height:"100%",boxSizing:"border-box",contain:"layout style",willChange:"transform",[e.breakpoints.down(959)]:{gridColumn:"span 1 !important",gridRow:"auto !important"}},dragPlaceholder:{boxSizing:"border-box"}})));Object(c.a)();var WL=function(){const e="/v3/account/productFields",t=()=>Object(p.jsx)(x,{children:Object(p.jsx)(om,{})}),a=()=>Object(p.jsx)(x,{children:Object(p.jsx)(og,{children:Object(p.jsx)(Cf,{})})});return Object(p.jsx)(s.a,{children:Object(p.jsxs)(l.d,{children:[Object(p.jsx)(l.b,{exact:!0,path:"/v3/login/",component:VA}),Object(p.jsx)(l.b,{exact:!0,path:"/v3/login/recoverpass",component:cC}),Object(p.jsx)(l.b,{exact:!0,path:"/v3/login/recovermailsend",component:xC}),Object(p.jsx)(l.b,{exact:!0,path:"/v3/login/link",component:zy}),Object(p.jsx)(l.b,{exact:!0,path:"/v3/login/mailauth",component:yy,auth:f.a.loggedIn()}),Object(p.jsx)(l.b,{exact:!0,path:BA.c,component:Ly}),Object(p.jsx)(Dw,{exact:!0,path:"/v3/login/successauth",component:Ey}),Object(p.jsx)(Dw,{exact:!0,path:BA.f,component:By}),Object(p.jsx)(Dw,{exact:!0,path:"/v3/login/confirmemail",component:Wy}),Object(p.jsx)(_w,{exact:!0,path:"/v3/login/changepass",component:BC}),Object(p.jsx)(_w,{exact:!0,path:"/v3/login/completepass",component:qC}),Object(p.jsx)(_w,{exact:!0,path:"/v3/login/expiredpass",component:Xy}),Object(p.jsx)(l.b,{exact:!0,path:"/v3/login/checklink",component:Jy}),Object(p.jsxs)(Kw,{children:[Object(p.jsx)(Wn,{}),Object(p.jsx)(zw,{exact:!0,path:"/v3/dashboard",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(ML,{})})}),Object(p.jsx)(Bw,{exact:!0,showRoute:!0,component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(Lw,{})}),path:"/v3/labelPrinting",requiredPlan:"Enterprise, Full, FullNew, ProNew, Prueba, Pro"}),Object(p.jsx)(EI,{exact:!0,path:"/v3/bulkImport",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(kf,{})})}),Object(p.jsx)(EI,{exact:!0,path:"/v3/bulkImport/start",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(Pv,{})})}),Object(p.jsx)(EI,{exact:!0,path:"/v3/bulkImportVariant",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(ij,{})}),requireVariantsFlag:!0}),Object(p.jsx)(EI,{exact:!0,path:"/v3/bulkImportVariant/start",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(xA,{})}),requireVariantsFlag:!0}),Object(p.jsx)(Vw,{exact:!0,path:"/v3/attributes/addNew",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(Xu,{})})}),Object(p.jsx)(Vw,{exact:!0,path:"/v3/attributes/edition/:id",component:t}
76),Object(p.jsx)(Dw,{exact:!0,path:"/v3/attributes/edition",component:t}),Object(p.jsx)(Dw,{exact:!0,path:"/v3/functionalities",children:Object(p.jsx)(x,{children:Object(p.jsx)(pp,{})})}),!1,Object(p.jsx)(Vw,{exact:!0,path:"/v3/attributes/creation",children:Object(p.jsx)(x,{children:Object(p.jsx)(bm,{})})}),Object(p.jsx)(yI,{exact:!0,path:"/v3/budgets",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(Ag,{children:Object(p.jsx)(rb,{})})})}),Object(p.jsx)(yI,{exact:!0,path:"/v3/budgets/addNew",component:a}),Object(p.jsx)(yI,{exact:!0,path:"/v3/budgets/edition/:id",component:a}),Object(p.jsx)(yI,{exact:!0,path:"/v3/budgets/addNew/:id",component:a}),Object(p.jsx)(Uw,{exact:!0,path:"/v3/account",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(jO,{})})}),Object(p.jsx)(Uw,{exact:!0,path:"/v3/account/currency",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(NO,{})})}),Object(p.jsx)(Uw,{exact:!0,path:"/v3/account/additionalCompany",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(kS,{})})}),Object(p.jsx)(Uw,{exact:!0,path:"/v3/account/notifications",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(ZS,{})})}),Object(p.jsx)(Uw,{exact:!0,path:"/v3/account/automaticBilling",component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(cE,{})})}),Object(p.jsx)(Uw,{exact:!0,path:e,component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(YE,{})})}),Object(p.jsx)(Uw,{exact:!0,path:`${e}/:fieldId`,component:()=>Object(p.jsx)(x,{children:Object(p.jsx)(jI,{})})}),Object(p.jsx)(Dw,{path:"*",children:Object(p.jsx)("div",{})})]})]})})};r.a.render(Object(p.jsx)(WL,{}),document.getElementById("root"))},56:function(e,t,a){"use strict";a.d(t,"f",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"i",(function(){return r})),a.d(t,"h",(function(){return s})),a.d(t,"g",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"b",(function(){return d})),a.d(t,"n",(function(){return u})),a.d(t,"m",(function(){return p})),a.d(t,"j",(function(){return m})),a.d(t,"k",(function(){return g})),a.d(t,"l",(function(){return b})),a.d(t,"c",(function(){return h})),a.d(t,"d",(function(){return x}));var i=a(9);const o=()=>{Object(i.b)("PYS Nva - Empezar Importaci\xf3n")},n=()=>{Object(i.b)("Nva Impor Masiva Step 1 - Descargar Planilla")},r=()=>{Object(i.b)("Nva Impor Masiva Step 1 - Siguiente Arriba")},s=()=>{Object(i.b)("Nva Impor Masiva Step 1 - Siguiente Abajo")},l=()=>{Object(i.b)("Nva Impor Masiva Step 1 - Comprimir Indicaciones")},c=()=>{Object(i.b)("Nva Impor Masiva Step 2 - Seleccionar")},d=()=>{Object(i.b)("Nva Impor Masiva Step 2 - Arrastrar")},u=()=>{Object(i.b)("Nva Impor Masiva Step 2 - Volver")},p=()=>{Object(i.b)("Nva Impor Masiva Step 2 - Siguiente")},m=()=>{Object(i.b)("Nva Impor Masiva Step 3 - Descomprimir Indicaciones")},g=()=>{Object(i.b)("Nva Impor Masiva Step 3 - Siguiente")},b=()=>{Object(i.b)("Nva Impor Masiva Step 3 - Volver")},h=()=>{Object(i.b)("Nva Impor Masiva Modal - Cancelar")},x=()=>{Object(i.b)("Nva Impor Masiva Modal - Importar",{exito:!0})}},78:function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return r}));const i=2500,o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")},n=[{title:"Marca",realName:"marca",previewKey:"brand",labelKey:"account.productFields.fieldNames.mar
76ca"},{title:"L\xednea",realName:"l\xednea",previewKey:"line",labelKey:"account.productFields.fieldNames.linea"},{title:"Material",realName:"material",previewKey:"material",labelKey:"account.productFields.fieldNames.material"},{title:"Origen",realName:"origen",previewKey:"origin",labelKey:"account.productFields.fieldNames.origen"},{title:"Temporada",realName:"temporada",previewKey:"season",labelKey:"account.productFields.fieldNames.temporada"},{title:"Calidad",realName:"calidad",previewKey:"quality",labelKey:"account.productFields.fieldNames.calidad"}],r={Nombre:{title:"Nombre",fieldName:"",fieldValue:"",required:"Si",realName:"Nombre"},SKU:{title:"SKU",fieldName:"",fieldValue:"",required:"Si",realName:"SKU"},Tipo:{title:"Tipo",fieldName:"",fieldValue:"",required:"Si",realName:"Tipo"},Estado:{title:"Estado",fieldName:"",fieldValue:"",required:"Si",realName:"Estado"},Moneda:{title:"Moneda",fieldName:"",fieldValue:"",required:"Si",realName:"Moneda"},"URL imagen":{title:"URL imagen",fieldName:"",fieldValue:"",realName:"Url Imagen"},Rubro:{title:"Rubro",fieldName:"",fieldValue:"",required:"Si",realName:"Rubro"},"Sub-rubro":{title:"Sub-rubro",fieldName:"",fieldValue:"",realName:"Subrubro",secondRealName:"Sub Rubro"},"Descripci\xf3n":{title:"Descripci\xf3n",fieldName:"",fieldValue:"",realName:"descripci\xf3n"},"C\xf3digo Proveedor":{title:"C\xf3digo Proveedor",fieldName:"",fieldValue:"",realName:"proveedor origen",secondRealName:"c\xf3digo proveedor"},"Cuenta compra":{title:"Cuenta compra",fieldName:"",fieldValue:"",realName:"cuentas compra",secondRealName:"CC Compras"},"Cuenta venta":{title:"Cuenta venta",fieldName:"",fieldValue:"",realName:"cuentas venta",secondRealName:"CC Ventas"},"Cuenta mercader\xeda":{title:"Cuenta mercader\xeda",fieldName:"",fieldValue:"",realName:"cuenta mercaderia",secondRealName:"CC Mercaderia"},...n.reduce(((e,t)=>({...e,[t.title]:{title:t.title,fieldName:"",fieldValue:"",realName:t.realName}})),{}),Observaciones:{title:"Observaciones",fieldName:"",fieldValue:"",realName:"observaciones"},"Precio unitario":{title:"Precio unitario",fieldName:"",fieldValue:"",required:"Si",realName:"precio unitario",secondRealName:"Precio"},"Tipo de IVA":{title:"Tipo de IVA",fieldName:"",fieldValue:"",realName:"Tipo de IVA",tooltip:!0},"Tasa IVA":{title:"Tasa IVA",fieldName:"",fieldValue:"",required:"Si",realName:"Tasa IVA",secondRealName:"Iva"},"Costo interno":{title:"Costo interno",fieldName:"",fieldValue:"",realName:"costo interno"},Rentabilidad:{title:"Rentabilidad",fieldName:"",fieldValue:"",realName:"rentabilidad"},"C\xf3digo de barra":{title:"C\xf3digo de barra",fieldName:"",fieldValue:"",realName:"codigo de barra",secondRealName:"Codigo Barras"},"Stock m\xednimo":{title:"Stock m\xednimo",fieldName:"",fieldValue:"",realName:"stock minimo"},"C\xf3digo OEM":{title:"C\xf3digo OEM",fieldName:"",fieldValue:"",realName:"cod oem",secondRealName:"Codigo Oem"},"RG 5329-2023":{title:"RG 5329-2023",fieldName:"",fieldValue:"",realName:"RG 5329-2023"}}},9:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return s}));var i=a(60);const o=()=>{i.a.getInstance().init("3fd99627cc179983dc296b7c86c0c182")},n=e=>{i.a.getInstance().setUserId(e)},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t?i.a.getInstance().logEvent(e,t):i.a.getInstance().logEvent(e)},s=e=>{var t=(new i.a.Identify).set("properties",e);i.a.getInstance().identify(t)}}},[[558,1,2]]]);
77//# sourceMappingURL=main.4fff3c20.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.