@tesouro/embedded-components-react 0.2.35 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +10 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +23 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -1271
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1270 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +56 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +397 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +69 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +407 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +76 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +11 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +24 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +13 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +119 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +49 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +44 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +131 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +55 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +68 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +23 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +59 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +81 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +5 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +57 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +27 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +20 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +19 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +27 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +113 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +68 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +42 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +75 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +55 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +196 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +14 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +22 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +27 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +39 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +7 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +244 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +178 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +8 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +115 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +87 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +101 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +107 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +58 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +62 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +86 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +47 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +112 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +69 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +185 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +122 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +55 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -381
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +4 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +45 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +380 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +19 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +97 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +93 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +101 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +14 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +33 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +99 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +26 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +6 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +212 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +10 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +2 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +14 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +69 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +77 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +41 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +72 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +54 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +57 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +17 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +62 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +149 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +10 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +19 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +23 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +44 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +63 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +157 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +26 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +26 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +76 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +17 -287
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +27 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +58 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +94 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +106 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +88 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +482 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +159 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +42 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +57 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +29 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +113 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +22 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +40 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +52 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +16 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +33 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +25 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +126 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +344 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +303 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +99 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +157 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +267 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +25 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +19 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +94 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +96 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +190 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +17 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +163 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +134 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +155 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +18 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +58 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +59 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +6 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +59 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +24 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +60 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +14 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +36 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +46 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +38 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +8 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +102 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +34 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +54 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +40 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +17 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +59 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +90 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +122 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +16 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +38 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +41 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +59 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +43 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +189 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +108 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +79 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +288 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +47 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +83 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +221 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +48 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +105 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +10 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +50 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +66 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +47 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +33 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +53 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +34 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +13 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +22 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +45 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +25 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +37 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +64 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +14 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +19 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +12 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +120 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +70 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +16 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +127 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +59 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +101 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +103 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +74 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +67 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +38 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +30 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +85 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +22 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +12 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +28 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +20 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +38 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +66 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +55 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +40 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +55 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +80 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +54 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +29 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +36 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +46 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +71 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +82 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +39 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +93 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +21 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +34 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +52 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +50 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +29 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +37 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +48 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +7 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/onboarding-widget/data-access/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +119 -119
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2308 -2383
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index10.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index16.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index21.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index22.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +2 -2
- package/package.json +1 -1
|
@@ -1,69 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useLingui as I } from "@lingui/react";
|
|
7
|
-
import { Loader2 as b, Search as S } from "lucide-react";
|
|
8
|
-
import { useState as m, useCallback as w } from "react";
|
|
1
|
+
import { jsx as e, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as F, useCallback as k, useMemo as w } from "react";
|
|
3
|
+
import { useFormContext as T, Controller as $ } from "react-hook-form";
|
|
4
|
+
import { getCounterpartName as H, prepareAddressView as J } from "./index7.js";
|
|
5
|
+
import { useRootElements as K } from "./index94.js";
|
|
9
6
|
import "./index59.js";
|
|
7
|
+
import { useCounterpartList as W } from "./index73.js";
|
|
10
8
|
import "react-hot-toast";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
9
|
+
import { useLingui as X } from "@lingui/react";
|
|
10
|
+
import { Combobox as Y, ComboboxInput as Z, ComboboxContent as tt, ComboboxList as et, ComboboxItem as C, ComboboxSeparator as rt } from "./index92.js";
|
|
11
|
+
import { Button as ot } from "./index86.js";
|
|
12
|
+
import { Field as at, FieldContent as it, FieldLabel as nt, FieldError as st } from "./index160.js";
|
|
13
|
+
import { InputGroupAddon as lt } from "./index103.js";
|
|
14
|
+
import { cn as dt } from "./index102.js";
|
|
15
|
+
import { Loader2 as ut, Plus as mt } from "lucide-react";
|
|
16
|
+
const h = "__create-new__", Vt = ({
|
|
17
|
+
setIsCreateCounterpartOpened: f,
|
|
18
|
+
setIsViewCounterpartOpened: b,
|
|
19
|
+
isSimplified: a = !1,
|
|
20
|
+
shouldDisableFormUpdate: x = !1,
|
|
21
|
+
disabled: S,
|
|
22
|
+
currentCounterpartId: z,
|
|
23
|
+
handleUpdateCounterpartId: v,
|
|
24
|
+
counterpartAddresses: I
|
|
25
|
+
}) => {
|
|
16
26
|
const {
|
|
17
|
-
i18n:
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
i18n: u
|
|
28
|
+
} = X(), {
|
|
29
|
+
root: A
|
|
30
|
+
} = K(), {
|
|
31
|
+
control: P,
|
|
32
|
+
watch: j
|
|
33
|
+
} = T(), {
|
|
34
|
+
data: g,
|
|
35
|
+
isLoading: D
|
|
36
|
+
} = W({
|
|
37
|
+
query: {
|
|
38
|
+
is_customer: !0
|
|
39
|
+
}
|
|
40
|
+
}), [m, _] = F(""), [c, y] = F(!1), M = k(() => {
|
|
41
|
+
!a && f && f(!0);
|
|
42
|
+
}, [a, f]), O = k(() => {
|
|
43
|
+
!a && b && b(!0);
|
|
44
|
+
}, [a, b]), q = j("counterpart_id"), p = x ? z : q, i = w(() => g ? g.data.map((r) => ({
|
|
45
|
+
id: r.id,
|
|
46
|
+
label: H(r)
|
|
47
|
+
})) : [], [g]), o = w(() => i.find((r) => r.id === p) ?? null, [i, p]), B = o ? o.label : m, {
|
|
48
|
+
matchingItems: N,
|
|
49
|
+
nonMatchingItems: L
|
|
50
|
+
} = w(() => {
|
|
51
|
+
const r = o ? "" : m.toLowerCase().trim();
|
|
52
|
+
if (!r)
|
|
53
|
+
return {
|
|
54
|
+
matchingItems: i,
|
|
55
|
+
nonMatchingItems: []
|
|
56
|
+
};
|
|
57
|
+
const n = [], l = [];
|
|
58
|
+
for (const d of i)
|
|
59
|
+
d.label.toLowerCase().includes(r) ? n.push(d) : l.push(d);
|
|
60
|
+
return {
|
|
61
|
+
matchingItems: n,
|
|
62
|
+
nonMatchingItems: l
|
|
63
|
+
};
|
|
64
|
+
}, [m, o, i]), U = w(() => [...a ? [] : [h], ...i.map((r) => r.id)], [i, a]), E = o ? Array.from(o.label)[0]?.toUpperCase() ?? "?" : "+", V = I?.data?.[0] ? J({
|
|
65
|
+
address: I.data[0]
|
|
66
|
+
}) : "", G = !c && !!o && !!V && !a;
|
|
67
|
+
return /* @__PURE__ */ e($, { name: "counterpart_id", control: P, render: ({
|
|
68
|
+
field: r,
|
|
69
|
+
fieldState: {
|
|
70
|
+
error: n
|
|
71
|
+
}
|
|
72
|
+
}) => {
|
|
73
|
+
const l = (t) => {
|
|
74
|
+
x && v ? v(t) : r.onChange(t);
|
|
75
|
+
}, d = (t) => {
|
|
76
|
+
if (t === h) {
|
|
77
|
+
M();
|
|
78
|
+
return;
|
|
31
79
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
s(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
80
|
+
_(""), l(t ?? "");
|
|
81
|
+
}, R = (t) => {
|
|
82
|
+
t !== h && (i.some((Q) => Q.id === t) || (_(t), p && l("")));
|
|
83
|
+
};
|
|
84
|
+
return /* @__PURE__ */ e(at, { children: /* @__PURE__ */ s(it, { children: [
|
|
85
|
+
/* @__PURE__ */ e(nt, { htmlFor: "counterpart_id", required: !0, children: u._("Customer") }),
|
|
86
|
+
/* @__PURE__ */ s(Y, { value: p ?? null, onValueChange: d, inputValue: B, onInputValueChange: R, items: U, filter: () => !0, disabled: S, open: c, onOpenChange: (t) => y(t), children: [
|
|
87
|
+
/* @__PURE__ */ s("div", { className: dt("ttw:flex ttw:flex-col ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:has-[[data-slot=input-group-control]:focus-visible]:border-ring ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20"), children: [
|
|
88
|
+
/* @__PURE__ */ s("div", { className: "ttw:relative", children: [
|
|
89
|
+
/* @__PURE__ */ e(Z, { id: "counterpart_id", placeholder: u._("Select customer"), "aria-invalid": !!n, showClear: c && (!!o || !!m), className: "ttw:min-h-10 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0 ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent", children: /* @__PURE__ */ e(lt, { align: "inline-start", children: D ? /* @__PURE__ */ e(ut, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ e("span", { className: "ttw:flex ttw:size-7 ttw:items-center ttw:justify-center ttw:rounded-full ttw:select-none ttw:text-xs ttw:font-medium", style: {
|
|
90
|
+
backgroundColor: o ? "rgba(203, 203, 254, 1)" : "rgba(235, 235, 255, 1)",
|
|
91
|
+
color: "rgba(55, 55, 255, 1)"
|
|
92
|
+
}, children: E }) }) }),
|
|
93
|
+
!c && o && !a && /* @__PURE__ */ e("div", { className: "ttw:pointer-events-none ttw:absolute ttw:inset-y-0 ttw:right-8 ttw:flex ttw:items-center", children: /* @__PURE__ */ e(ot, { type: "button", variant: "ghost", size: "sm", className: "ttw:pointer-events-auto ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary/10", onPointerDown: (t) => t.stopPropagation(), onClick: O, children: u._("View details") }) })
|
|
94
|
+
] }),
|
|
95
|
+
G && /* @__PURE__ */ e("p", { className: "ttw:pl-12 ttw:pr-3 ttw:pb-2 ttw:text-xs ttw:text-muted-foreground ttw:cursor-text ttw:select-none", onClick: () => y(!0), children: V })
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ e(tt, { container: A, children: /* @__PURE__ */ s(et, { children: [
|
|
98
|
+
!a && /* @__PURE__ */ s(C, { value: h, className: "ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary", children: [
|
|
99
|
+
/* @__PURE__ */ e(mt, {}),
|
|
100
|
+
u._("Create new customer")
|
|
101
|
+
] }),
|
|
102
|
+
N.map((t) => /* @__PURE__ */ e(C, { value: t.id, children: t.label }, t.id)),
|
|
103
|
+
N.length > 0 && L.length > 0 && /* @__PURE__ */ e(rt, {}),
|
|
104
|
+
L.map((t) => /* @__PURE__ */ e(C, { value: t.id, children: t.label }, t.id))
|
|
105
|
+
] }) })
|
|
44
106
|
] }),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
-
] }) }),
|
|
51
|
-
/* @__PURE__ */ r(G, { children: [
|
|
52
|
-
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
-
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
-
isUpdateAllowed: !0,
|
|
58
|
-
isDeleteAllowed: !0
|
|
59
|
-
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
-
] }, t.id))
|
|
61
|
-
] })
|
|
62
|
-
] })
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
65
|
-
] });
|
|
107
|
+
/* @__PURE__ */ e(st, { errors: n ? [n] : [] })
|
|
108
|
+
] }) });
|
|
109
|
+
} });
|
|
66
110
|
};
|
|
67
111
|
export {
|
|
68
|
-
|
|
112
|
+
Vt as CounterpartSelector
|
|
69
113
|
};
|
|
@@ -10,7 +10,7 @@ import "@tanstack/react-query";
|
|
|
10
10
|
import "date-fns";
|
|
11
11
|
import { useEntityUserByAuthToken as x } from "./index77.js";
|
|
12
12
|
import "react-hot-toast";
|
|
13
|
-
import { MoniteCard as g } from "./
|
|
13
|
+
import { MoniteCard as g } from "./index457.js";
|
|
14
14
|
import _ from "@mui/icons-material/DriveFileRenameOutline";
|
|
15
15
|
import { Box as o, Typography as r, Skeleton as v, Alert as b } from "@mui/material";
|
|
16
16
|
const L = ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as M } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { EditInvoiceDetails as G } from "./
|
|
3
|
-
import { EmailInvoiceDetails as z } from "./
|
|
4
|
-
import { useGetRecurrenceById as H } from "./
|
|
5
|
-
import { InvoiceDetailsActions as J } from "./
|
|
6
|
-
import { InvoiceDetailsTabDetails as K } from "./
|
|
7
|
-
import { InvoiceDetailsTabOverview as W } from "./
|
|
8
|
-
import { InvoiceDetailsTabPayments as Y } from "./
|
|
9
|
-
import { InvoiceDetailsTabScheduledInvoices as q } from "./
|
|
10
|
-
import { InvoicePDFViewer as Q } from "./
|
|
11
|
-
import { InvoiceRecurrenceStatusChip as X } from "./
|
|
2
|
+
import { EditInvoiceDetails as G } from "./index191.js";
|
|
3
|
+
import { EmailInvoiceDetails as z } from "./index192.js";
|
|
4
|
+
import { useGetRecurrenceById as H } from "./index193.js";
|
|
5
|
+
import { InvoiceDetailsActions as J } from "./index194.js";
|
|
6
|
+
import { InvoiceDetailsTabDetails as K } from "./index195.js";
|
|
7
|
+
import { InvoiceDetailsTabOverview as W } from "./index196.js";
|
|
8
|
+
import { InvoiceDetailsTabPayments as Y } from "./index197.js";
|
|
9
|
+
import { InvoiceDetailsTabScheduledInvoices as q } from "./index198.js";
|
|
10
|
+
import { InvoicePDFViewer as Q } from "./index199.js";
|
|
11
|
+
import { InvoiceRecurrenceStatusChip as X } from "./index181.js";
|
|
12
12
|
import { InvoiceStatusChip as Z } from "./index57.js";
|
|
13
13
|
import { MoniteScopedProviders as ee } from "./index85.js";
|
|
14
14
|
import { useCurrencies as te } from "./index60.js";
|
|
@@ -21,19 +21,19 @@ import "@mui/x-data-grid";
|
|
|
21
21
|
import { useComponentSettings as ae } from "./index69.js";
|
|
22
22
|
import { useIsLargeDesktopScreen as se } from "./index71.js";
|
|
23
23
|
import { useGetReceivableById as ne } from "./index84.js";
|
|
24
|
-
import { useUserPermissions as le } from "./
|
|
24
|
+
import { useUserPermissions as le } from "./index148.js";
|
|
25
25
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
26
26
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
27
27
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
28
28
|
import "@tanstack/react-query";
|
|
29
29
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
30
30
|
import { Scope as re } from "../../shared/data-access/dist/lib/scopes.js";
|
|
31
|
-
import { AccessRestriction as ce } from "./
|
|
32
|
-
import { DialogTitle as f } from "./
|
|
33
|
-
import { Sheet as T, SheetContent as O, SheetDescription as h, SheetTitle as P, SheetHeader as de } from "./
|
|
34
|
-
import { Tabs as me, TabsList as we, TabsTrigger as m, TabsContent as w } from "./
|
|
35
|
-
import { LoadingSpinner as pe } from "./
|
|
36
|
-
import { NotFound as R } from "./
|
|
31
|
+
import { AccessRestriction as ce } from "./index158.js";
|
|
32
|
+
import { DialogTitle as f } from "./index200.js";
|
|
33
|
+
import { Sheet as T, SheetContent as O, SheetDescription as h, SheetTitle as P, SheetHeader as de } from "./index137.js";
|
|
34
|
+
import { Tabs as me, TabsList as we, TabsTrigger as m, TabsContent as w } from "./index201.js";
|
|
35
|
+
import { LoadingSpinner as pe } from "./index138.js";
|
|
36
|
+
import { NotFound as R } from "./index155.js";
|
|
37
37
|
const x = {
|
|
38
38
|
Overview: "overview"
|
|
39
39
|
}, Qe = (n) => /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(ve, { ...n }) }), ve = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, Fragment as b, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { manualPaymentRecordValidationSchema as g } from "./
|
|
2
|
+
import { manualPaymentRecordValidationSchema as g } from "./index204.js";
|
|
3
3
|
import { useCurrencies as y } from "./index60.js";
|
|
4
4
|
import { useMemo as _, useEffect as C } from "react";
|
|
5
5
|
import "./index94.js";
|
|
@@ -8,9 +8,9 @@ import "react-dom";
|
|
|
8
8
|
import "./index59.js";
|
|
9
9
|
import "@mui/x-data-grid";
|
|
10
10
|
import { safeZodResolver as v } from "./index276.js";
|
|
11
|
-
import { RHFDatePicker as D } from "./
|
|
12
|
-
import { RHFTextField as S } from "./
|
|
13
|
-
import { RHFTimePicker as R } from "./
|
|
11
|
+
import { RHFDatePicker as D } from "./index458.js";
|
|
12
|
+
import { RHFTextField as S } from "./index459.js";
|
|
13
|
+
import { RHFTimePicker as R } from "./index460.js";
|
|
14
14
|
import { DialogTitle as T, DialogContent as P, Grid as i, FormHelperText as k, Button as m, DialogActions as E, CircularProgress as H } from "@mui/material";
|
|
15
15
|
import { useForm as V } from "react-hook-form";
|
|
16
16
|
const Z = ({
|
|
@@ -1,34 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ref: t,
|
|
11
|
-
...a
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "popover-trigger", ref: t, ...a });
|
|
14
|
-
}
|
|
15
|
-
d.displayName = o.Trigger.displayName;
|
|
16
|
-
function f({
|
|
17
|
-
className: t,
|
|
18
|
-
align: a = "center",
|
|
19
|
-
sideOffset: r = 4,
|
|
20
|
-
...n
|
|
21
|
-
}) {
|
|
22
|
-
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(o.Content, { "data-slot": "popover-content", align: a, sideOffset: r, className: i("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:w-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", t), ...n }) });
|
|
23
|
-
}
|
|
24
|
-
function l({
|
|
25
|
-
...t
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ e(o.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
28
|
-
}
|
|
1
|
+
const g = (r, t = /* @__PURE__ */ new Date()) => {
|
|
2
|
+
if (!r)
|
|
3
|
+
return 0;
|
|
4
|
+
const e = new Date(r);
|
|
5
|
+
if (Number.isNaN(e.getTime()))
|
|
6
|
+
return 0;
|
|
7
|
+
const n = 1e3 * 60 * 60 * 24, T = Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()), o = Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), a = Math.floor((T - o) / n);
|
|
8
|
+
return a > 0 ? a : 0;
|
|
9
|
+
};
|
|
29
10
|
export {
|
|
30
|
-
|
|
31
|
-
l as PopoverAnchor,
|
|
32
|
-
f as PopoverContent,
|
|
33
|
-
d as PopoverTrigger
|
|
11
|
+
g as getDaysOverdue
|
|
34
12
|
};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const n = 1e3 * 60 * 60 * 24, T = Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()), o = Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), a = Math.floor((T - o) / n);
|
|
8
|
-
return a > 0 ? a : 0;
|
|
9
|
-
};
|
|
1
|
+
const t = (e) => ({
|
|
2
|
+
approved: e._("Approved"),
|
|
3
|
+
canceled: e._("Canceled"),
|
|
4
|
+
rejected: e._("Rejected"),
|
|
5
|
+
waiting: e._("In approval")
|
|
6
|
+
});
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
t as getRowToStatusTextMap
|
|
12
9
|
};
|
|
@@ -1,18 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as o, jsxs as h, Fragment as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { useMoniteContext as y } from "./index59.js";
|
|
4
|
+
import { useRootElements as I } from "./index94.js";
|
|
5
|
+
import { classNames as _ } from "./index190.js";
|
|
6
|
+
import { useLingui as F } from "@lingui/react";
|
|
7
|
+
import { Autocomplete as M, TextField as O, CircularProgress as v } from "@mui/material";
|
|
8
|
+
const $ = ({
|
|
9
|
+
onChange: l,
|
|
10
|
+
className: p
|
|
11
|
+
}) => {
|
|
3
12
|
const {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
i18n: r
|
|
14
|
+
} = F(), {
|
|
15
|
+
api: d
|
|
16
|
+
} = y(), {
|
|
17
|
+
root: u
|
|
18
|
+
} = I(), [i, s] = n(!1), [m, c] = n(null), [f, g] = n(""), {
|
|
19
|
+
data: C,
|
|
20
|
+
isLoading: a,
|
|
21
|
+
refetch: A
|
|
22
|
+
} = d.finops.getEntityUsers.useQuery({
|
|
23
|
+
query: {
|
|
24
|
+
name__istartswith: f || void 0
|
|
13
25
|
}
|
|
26
|
+
}, {
|
|
27
|
+
enabled: i
|
|
14
28
|
});
|
|
29
|
+
return /* @__PURE__ */ o(M, { autoComplete: !0, includeInputInList: !0, filterSelectedOptions: !0, value: m, noOptionsText: r._("No users found"), slotProps: {
|
|
30
|
+
popper: {
|
|
31
|
+
container: u
|
|
32
|
+
}
|
|
33
|
+
}, open: i, onOpen: () => {
|
|
34
|
+
s(!0);
|
|
35
|
+
}, onClose: () => {
|
|
36
|
+
s(!1);
|
|
37
|
+
}, loading: a, options: C?.data || [], getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(), isOptionEqualToValue: (e, t) => e.id === t.id, filterOptions: (e) => e, onInputChange: (e, t) => {
|
|
38
|
+
g(t);
|
|
39
|
+
}, onChange: (e, t) => {
|
|
40
|
+
c(t), l(t?.id), A();
|
|
41
|
+
}, className: _("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", p), sx: {
|
|
42
|
+
"&.MuiAutocomplete-root": {
|
|
43
|
+
display: "flex",
|
|
44
|
+
alignItems: "center"
|
|
45
|
+
}
|
|
46
|
+
}, renderInput: (e) => /* @__PURE__ */ o(O, { ...e, variant: "standard", placeholder: r._("Added by"), className: "Monite-ApprovalAddedByFilter Monite-FilterControl", InputProps: {
|
|
47
|
+
...e.InputProps,
|
|
48
|
+
endAdornment: /* @__PURE__ */ h(x, { children: [
|
|
49
|
+
a ? /* @__PURE__ */ o(v, { color: "inherit", size: 20 }) : null,
|
|
50
|
+
e.InputProps.endAdornment
|
|
51
|
+
] })
|
|
52
|
+
} }) });
|
|
15
53
|
};
|
|
16
54
|
export {
|
|
17
|
-
|
|
55
|
+
$ as AutocompleteCreatedBy
|
|
18
56
|
};
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFileById as s } from "./index79.js";
|
|
3
|
+
import { Avatar as e } from "@mui/material";
|
|
4
|
+
const n = ({
|
|
5
|
+
alt: t,
|
|
6
|
+
fileId: a,
|
|
7
|
+
...r
|
|
8
|
+
}) => a ? /* @__PURE__ */ l(i, { fileId: a, alt: t, ...r }) : /* @__PURE__ */ l(e, { alt: t, ...r }), i = ({
|
|
9
|
+
alt: t,
|
|
10
|
+
fileId: a,
|
|
11
|
+
...r
|
|
12
|
+
}) => {
|
|
5
13
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
i18n: e
|
|
10
|
-
} = r();
|
|
11
|
-
return t.finops.deleteEntitiesIdLogo.useMutation({
|
|
12
|
-
path: {
|
|
13
|
-
entity_id: i
|
|
14
|
-
}
|
|
15
|
-
}, {
|
|
16
|
-
onSuccess: async () => {
|
|
17
|
-
await t.finops.getEntityUsersMyEntity.invalidateQueries(s), o.success(e._("Logo was removed."));
|
|
18
|
-
},
|
|
19
|
-
onError: () => {
|
|
20
|
-
o.error(e._("Failed to remove logo."));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
14
|
+
data: o
|
|
15
|
+
} = s(a);
|
|
16
|
+
return /* @__PURE__ */ l(e, { alt: t, src: o?.url, ...r });
|
|
23
17
|
};
|
|
24
18
|
export {
|
|
25
|
-
|
|
19
|
+
n as UserAvatar
|
|
26
20
|
};
|
|
@@ -1,52 +1,71 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as t, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { getMeasureUnitValidationSchema as z } from "./index176.js";
|
|
3
|
+
import { Button as o } from "./index86.js";
|
|
4
|
+
import { Input as p } from "./index120.js";
|
|
5
|
+
import { TableRow as C, TableCell as M } from "./index295.js";
|
|
6
|
+
import { zodResolver as S } from "@hookform/resolvers/zod";
|
|
7
|
+
import { useLingui as U } from "@lingui/react";
|
|
8
|
+
import { Check as $, X as j } from "lucide-react";
|
|
9
|
+
import { useForm as k, Controller as f } from "react-hook-form";
|
|
10
|
+
import { useCreateMeasureUnit as E } from "./index410.js";
|
|
11
|
+
import { useUpdateMeasureUnit as V } from "./index411.js";
|
|
12
|
+
const P = {
|
|
13
|
+
name: "",
|
|
14
|
+
description: ""
|
|
15
|
+
}, D = ({
|
|
16
|
+
id: s,
|
|
17
|
+
isEditMode: n,
|
|
18
|
+
initialValues: h = P,
|
|
19
|
+
onCancel: g,
|
|
20
|
+
onEdit: v
|
|
17
21
|
}) => {
|
|
18
22
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
23
|
+
i18n: m
|
|
24
|
+
} = U(), b = z(m), {
|
|
25
|
+
handleSubmit: l,
|
|
26
|
+
control: d,
|
|
27
|
+
reset: y,
|
|
28
|
+
setError: c
|
|
29
|
+
} = k({
|
|
30
|
+
defaultValues: h,
|
|
31
|
+
resolver: S(b)
|
|
32
|
+
}), w = E(() => y(), (e) => c("name", {
|
|
33
|
+
type: "custom",
|
|
34
|
+
message: e
|
|
35
|
+
})), i = V(s ?? "", () => v?.(), (e) => c("name", {
|
|
36
|
+
type: "custom",
|
|
37
|
+
message: e
|
|
38
|
+
})), x = (e) => {
|
|
39
|
+
if (!n || !s) {
|
|
40
|
+
console.error("handleEdit called without valid id or edit mode");
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
i.mutate(e);
|
|
44
|
+
}, N = (e) => {
|
|
45
|
+
w.mutate(e);
|
|
46
|
+
}, u = w.isPending || i.isPending;
|
|
47
|
+
return /* @__PURE__ */ t(C, { className: "ttw:border-border ttw:hover:bg-transparent", children: /* @__PURE__ */ t(M, { colSpan: 3, className: "ttw:w-full ttw:whitespace-normal", children: /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start", children: [
|
|
48
|
+
/* @__PURE__ */ t(f, { name: "name", control: d, render: ({
|
|
49
|
+
field: e,
|
|
50
|
+
fieldState: {
|
|
51
|
+
error: r
|
|
52
|
+
}
|
|
53
|
+
}) => /* @__PURE__ */ a("div", { className: "ttw:w-[35%]", children: [
|
|
54
|
+
/* @__PURE__ */ t(p, { ...e, disabled: u, "aria-invalid": !!r || void 0, className: "ttw:h-8" }),
|
|
55
|
+
r && /* @__PURE__ */ t("p", { className: "ttw:text-xs ttw:text-destructive ttw:mt-1", children: r.message })
|
|
56
|
+
] }) }),
|
|
57
|
+
/* @__PURE__ */ t(f, { name: "description", control: d, render: ({
|
|
58
|
+
field: e,
|
|
59
|
+
fieldState: {
|
|
60
|
+
error: r
|
|
61
|
+
}
|
|
62
|
+
}) => /* @__PURE__ */ t("div", { className: "ttw:w-[55%]", children: /* @__PURE__ */ t(p, { ...e, id: e.name, disabled: u, "aria-invalid": !!r || void 0, className: "ttw:h-8" }) }) }),
|
|
63
|
+
n ? /* @__PURE__ */ a("div", { className: "ttw:flex ttw:justify-center ttw:gap-1", children: [
|
|
64
|
+
/* @__PURE__ */ t(o, { variant: "outline", size: "icon", className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", disabled: i.isPending, onClick: l(x), children: /* @__PURE__ */ t($, { className: "ttw:size-4" }) }),
|
|
65
|
+
/* @__PURE__ */ t(o, { variant: "outline", size: "icon", className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", onClick: g, children: /* @__PURE__ */ t(j, { className: "ttw:size-4" }) })
|
|
66
|
+
] }) : /* @__PURE__ */ t(o, { variant: "outline", size: "sm", className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", onClick: l(N), children: m._("Add") })
|
|
67
|
+
] }) }) });
|
|
49
68
|
};
|
|
50
69
|
export {
|
|
51
|
-
|
|
70
|
+
D as MeasureUnitsFormRow
|
|
52
71
|
};
|
|
@@ -1,13 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCurrencies as b } from "./index60.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./index94.js";
|
|
5
|
+
import { useLingui as x } from "@lingui/react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "./index59.js";
|
|
8
|
+
import "@mui/x-data-grid";
|
|
9
|
+
import { ConfirmationModal as y } from "./index273.js";
|
|
10
|
+
import { Table as C, TableBody as _, TableRow as D, TableCell as l } from "./index295.js";
|
|
11
|
+
import { Typography as r } from "./index87.js";
|
|
12
|
+
import { Loader2 as L } from "lucide-react";
|
|
13
|
+
import { useGetProducts as T } from "./index173.js";
|
|
14
|
+
const R = ({
|
|
15
|
+
onClose: c,
|
|
16
|
+
onDelete: d,
|
|
17
|
+
name: p,
|
|
18
|
+
isLoading: u,
|
|
19
|
+
open: h,
|
|
20
|
+
id: n
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
i18n: t
|
|
24
|
+
} = x(), {
|
|
25
|
+
formatCurrencyToDisplay: w
|
|
26
|
+
} = b(), {
|
|
27
|
+
data: s,
|
|
28
|
+
isLoading: o
|
|
29
|
+
} = T({
|
|
30
|
+
measure_unit_id: n ?? ""
|
|
31
|
+
}, !!n), f = s?.data.length === 0, g = () => f ? /* @__PURE__ */ a(m, { children: [
|
|
32
|
+
/* @__PURE__ */ e(r, { children: t._("There are no items created with this measure unit.") }),
|
|
33
|
+
/* @__PURE__ */ e(r, { color: "muted", children: t._("Deleting it won't affect your items.") })
|
|
34
|
+
] }) : /* @__PURE__ */ a(m, { children: [
|
|
35
|
+
/* @__PURE__ */ e(r, { children: t._("Any products or services referencing this unit will update to use a blank unit of measure.") }),
|
|
36
|
+
/* @__PURE__ */ e(r, { color: "muted", children: t._("Previously issued invoices will not be impacted.") }),
|
|
37
|
+
o && /* @__PURE__ */ e(L, { className: "ttw:mx-auto ttw:size-6 ttw:animate-spin" }),
|
|
38
|
+
!o && /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(_, { children: s?.data.map((i) => /* @__PURE__ */ a(D, { className: "ttw:border-border ttw:hover:bg-transparent", children: [
|
|
39
|
+
/* @__PURE__ */ e(l, { className: "ttw:pl-0 ttw:whitespace-normal ttw:text-text ttw:font-medium", children: i.name }),
|
|
40
|
+
/* @__PURE__ */ e(l, { className: "ttw:pr-0 ttw:text-right ttw:text-text ttw:font-medium", children: i.price && w(i.price?.value, i.price?.currency) })
|
|
41
|
+
] }, i.id)) }) })
|
|
42
|
+
] });
|
|
43
|
+
return /* @__PURE__ */ e(y, { open: h, title: t._('Delete "{name}"?', {
|
|
44
|
+
name: p
|
|
45
|
+
}), confirmLabel: t._("Delete"), cancelLabel: t._("Cancel"), onClose: c, onConfirm: d, isLoading: u || o, children: g() });
|
|
46
|
+
};
|
|
11
47
|
export {
|
|
12
|
-
|
|
48
|
+
R as ConfirmDeleteMeasureUnitDialog
|
|
13
49
|
};
|