@tesouro/embedded-components-react 0.2.55 → 0.2.56
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 +26 -26
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index2.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/useReceiptMatch.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index2.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- 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/index112.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +7 -6
- 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 +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +23 -1269
- 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 +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +58 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +398 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +69 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +407 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +64 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +6 -32
- 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 +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +29 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +22 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -47
- 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 +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +147 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +56 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +96 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +55 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +92 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +95 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +24 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +19 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +10 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +116 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +68 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +45 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +75 -7
- 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 +54 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +195 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +14 -394
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +41 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +7 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +110 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +67 -24
- 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 +184 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +121 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +59 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +13 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +88 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +44 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +45 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +391 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +19 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +13 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +92 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +46 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +75 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +55 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +58 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +54 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +346 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +2 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +12 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +31 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +37 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +35 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +17 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +244 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +179 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +18 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +53 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +48 -341
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +28 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +92 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +42 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +37 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +343 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +303 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +86 -474
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +155 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +267 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +23 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +20 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +149 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +19 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +41 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +60 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +31 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +113 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +21 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +56 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +20 -21
- 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 +39 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +80 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +94 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +192 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +487 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +162 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +61 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +44 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +65 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +22 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +76 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +41 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +62 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +24 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +186 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +108 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +80 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +290 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +48 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +15 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +82 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +224 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +35 -174
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +46 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +109 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +17 -287
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +27 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +58 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +94 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +106 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +63 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +28 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +155 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +27 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -19
- 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 +78 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +127 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +255 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +54 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +16 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +17 -28
- 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 +47 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +46 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +6 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +104 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +35 -16
- 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 +57 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +32 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +40 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +67 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +97 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +9 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +10 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +119 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -24
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +91 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +32 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +66 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +30 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +4 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +127 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +65 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +85 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +23 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +105 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +110 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +28 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +24 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +39 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +70 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +67 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +38 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +54 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +35 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +32 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +26 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +38 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +19 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +14 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +21 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +5 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +29 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +68 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +52 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +37 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +41 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +37 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +13 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +93 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +20 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +57 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +69 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +18 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +56 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +31 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +51 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +49 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +70 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +83 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +50 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +50 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +54 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +33 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +36 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +50 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +52 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.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/index79.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/index87.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +33 -33
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +79 -74
- package/dist/packages/shared-ui-shadcn/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,125 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as t, jsxs as e, Fragment as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import { useLingui as h } from "@lingui/react";
|
|
4
|
+
import { X as g, CloudUpload as x, AlertCircle as N, CheckCircle2 as b } from "lucide-react";
|
|
5
|
+
import { LoadingSpinner as y } from "./index139.js";
|
|
6
|
+
import { Typography as l } from "./index86.js";
|
|
7
|
+
import { twMerge as v } from "tailwind-merge";
|
|
8
|
+
import { UploadBar as C } from "./index439.js";
|
|
9
|
+
const U = ({
|
|
10
|
+
isUploading: o,
|
|
11
|
+
isSuccess: r,
|
|
12
|
+
isError: i,
|
|
13
|
+
isDraggingOver: d,
|
|
14
|
+
resetUpload: a,
|
|
15
|
+
fileName: m,
|
|
16
|
+
onClick: u
|
|
12
17
|
}) => {
|
|
13
18
|
const {
|
|
14
|
-
i18n:
|
|
15
|
-
} =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
const a = s(e[0][1], u);
|
|
45
|
-
if (e.length === 1)
|
|
46
|
-
switch (e[0][0]) {
|
|
47
|
-
case o.GREATER_THAN:
|
|
48
|
-
return t._("Greater than {formattedValue}", {
|
|
49
|
-
formattedValue: a
|
|
50
|
-
});
|
|
51
|
-
case o.GREATER_THAN_OR_EQUAL:
|
|
52
|
-
return t._("Greater than or equal to {formattedValue}", {
|
|
53
|
-
formattedValue: a
|
|
54
|
-
});
|
|
55
|
-
case o.LESS_THAN:
|
|
56
|
-
return t._("Less than {formattedValue}", {
|
|
57
|
-
formattedValue: a
|
|
58
|
-
});
|
|
59
|
-
case o.LESS_THAN_OR_EQUAL:
|
|
60
|
-
return t._("Less than or equal to {formattedValue}", {
|
|
61
|
-
formattedValue: a
|
|
62
|
-
});
|
|
63
|
-
case o.EQUALS:
|
|
64
|
-
return t._("Equal to {formattedValue}", {
|
|
65
|
-
formattedValue: a
|
|
66
|
-
});
|
|
67
|
-
default:
|
|
68
|
-
return a;
|
|
69
|
-
}
|
|
70
|
-
if (e.length === 2) {
|
|
71
|
-
const r = e.find((n) => n[0] === o.GREATER_THAN_OR_EQUAL), g = e.find((n) => n[0] === o.LESS_THAN_OR_EQUAL);
|
|
72
|
-
if (r && g)
|
|
73
|
-
return t._("{from} - {to}", {
|
|
74
|
-
from: s(r[1], u),
|
|
75
|
-
to: s(g[1], u)
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return a;
|
|
79
|
-
};
|
|
80
|
-
return ((e) => !!(e && typeof e == "object" && "all" in e && Array.isArray(e.all)))(i?.trigger) ? {
|
|
81
|
-
triggers: i.trigger?.all?.reduce((e, u) => {
|
|
82
|
-
if (typeof u == "string" || !u.operator || !u.left_operand || u.right_operand == null)
|
|
83
|
-
return e;
|
|
84
|
-
const {
|
|
85
|
-
key: a,
|
|
86
|
-
value: r
|
|
87
|
-
} = f(u);
|
|
88
|
-
if (!a || r == null || !p(a))
|
|
89
|
-
return e;
|
|
90
|
-
switch (a) {
|
|
91
|
-
case "amount":
|
|
92
|
-
(typeof r == "string" || typeof r == "number") && A(u.operator) && (e.amount || (e.amount = {
|
|
93
|
-
currency: "EUR",
|
|
94
|
-
value: []
|
|
95
|
-
}), e.amount.value.push([u.operator, r]));
|
|
96
|
-
break;
|
|
97
|
-
case "currency":
|
|
98
|
-
e.amount ? e.amount.currency = r : e.amount = {
|
|
99
|
-
value: [],
|
|
100
|
-
currency: r
|
|
101
|
-
};
|
|
102
|
-
break;
|
|
103
|
-
case "tags.id":
|
|
104
|
-
typeof r == "string" && (e.tags || (e.tags = []), e.tags.push(r));
|
|
105
|
-
break;
|
|
106
|
-
case "counterpart_id":
|
|
107
|
-
case "was_created_by_user_id":
|
|
108
|
-
Array.isArray(r) && (e[a] = r);
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
return e;
|
|
112
|
-
}, {}),
|
|
113
|
-
getTriggerName: c,
|
|
114
|
-
getTriggerLabel: l,
|
|
115
|
-
getAmountLabel: _
|
|
116
|
-
} : {
|
|
117
|
-
triggers: {},
|
|
118
|
-
getTriggerName: c,
|
|
119
|
-
getTriggerLabel: l,
|
|
120
|
-
getAmountLabel: _
|
|
121
|
-
};
|
|
19
|
+
i18n: s
|
|
20
|
+
} = h(), w = o || r || i;
|
|
21
|
+
function p() {
|
|
22
|
+
return i ? /* @__PURE__ */ t(N, { className: "ttw:size-5 ttw:text-danger" }) : r ? /* @__PURE__ */ t(b, { className: "ttw:size-5 ttw:text-success" }) : /* @__PURE__ */ t(y, { className: "ttw:w-5 ttw:h-5" });
|
|
23
|
+
}
|
|
24
|
+
return f(() => {
|
|
25
|
+
let n;
|
|
26
|
+
return r && (n = setTimeout(() => a(), 2e3)), () => clearTimeout(n);
|
|
27
|
+
}, [r, a]), /* @__PURE__ */ t("div", { className: v("ttw:w-full ttw:h-38 ttw:bg-white ttw:box-border ttw:transition-all ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:px-4 ttw:py-6", d ? "ttw:border-solid ttw:border-primary" : "ttw:border-dashed ttw:border-border"), onClick: () => {
|
|
28
|
+
w || u();
|
|
29
|
+
}, children: w ? /* @__PURE__ */ e(c, { children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-4 ttw:justify-center ttw:w-full", children: [
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:w-1/2 ttw:items-center", children: [
|
|
32
|
+
p(),
|
|
33
|
+
/* @__PURE__ */ t("span", { className: "ttw:w-full ttw:text-sm ttw:leading-5 ttw:text-medium ttw:text-neutral ttw:truncate", children: m })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:items-center", children: [
|
|
36
|
+
/* @__PURE__ */ t(C, { shouldStartProgress: o, isError: i, isSuccess: r }),
|
|
37
|
+
i && /* @__PURE__ */ t("button", { type: "button", disabled: o, onClick: a, className: "ttw:border-none ttw:cursor-pointer", children: /* @__PURE__ */ t(g, { className: "ttw:size-4" }) })
|
|
38
|
+
] })
|
|
39
|
+
] }),
|
|
40
|
+
i && /* @__PURE__ */ t(l, { variant: "body2", color: "destructive", className: "ttw:font-medium", children: s._("Wrong file format. Please, upload the file in JPEG, PNG or GIF format.") })
|
|
41
|
+
] }) : /* @__PURE__ */ e(c, { children: [
|
|
42
|
+
/* @__PURE__ */ t("div", { className: "ttw:p-3 ttw:bg-primary ttw:rounded-full", children: /* @__PURE__ */ t(x, { className: "ttw:text-white ttw:size-5" }) }),
|
|
43
|
+
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:font-medium", children: [
|
|
44
|
+
s._("Drop your files here, or "),
|
|
45
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline ttw:hover:cursor-pointer", children: s._("click to browse") })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ t(l, { variant: "caption", color: "muted", children: s._("PNG, JPG or GIF (max. 10MB)") })
|
|
48
|
+
] }) });
|
|
122
49
|
};
|
|
123
50
|
export {
|
|
124
|
-
|
|
51
|
+
U as DragAndDropBox
|
|
125
52
|
};
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Switch as a } from "radix-ui";
|
|
3
|
+
import { cn as e } from "./index101.js";
|
|
4
|
+
function o({
|
|
5
|
+
className: s,
|
|
6
|
+
size: r = "default",
|
|
7
|
+
...i
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ t(a.Root, { "data-slot": "switch", "data-size": r, className: e("ttw:peer ttw:group/switch ttw:inline-flex ttw:shrink-0 ttw:items-center ttw:rounded-full ttw:border ttw:border-transparent ttw:shadow-xs ttw:transition-all ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-[1.15rem] ttw:data-[size=default]:w-8 ttw:data-[size=sm]:h-3.5 ttw:data-[size=sm]:w-6 ttw:data-[state=checked]:bg-primary ttw:data-[state=unchecked]:bg-input ttw:dark:data-[state=unchecked]:bg-input/80", s), ...i, children: /* @__PURE__ */ t(a.Thumb, { "data-slot": "switch-thumb", className: e("ttw:pointer-events-none ttw:block ttw:rounded-full ttw:bg-background ttw:ring-0 ttw:transition-transform ttw:group-data-[size=default]/switch:size-4 ttw:group-data-[size=sm]/switch:size-3 ttw:data-[state=checked]:translate-x-[calc(100%-2px)] ttw:data-[state=unchecked]:translate-x-0 ttw:dark:data-[state=checked]:bg-primary-foreground ttw:dark:data-[state=unchecked]:bg-foreground") }) });
|
|
4
10
|
}
|
|
5
|
-
const e = /* @__PURE__ */ b("ul", process.env.NODE_ENV === "production" ? {
|
|
6
|
-
target: "e10it8hw0"
|
|
7
|
-
} : {
|
|
8
|
-
target: "e10it8hw0",
|
|
9
|
-
label: "ColumnList"
|
|
10
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
11
|
-
name: "1932ye7",
|
|
12
|
-
styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}"
|
|
13
|
-
} : {
|
|
14
|
-
name: "1932ye7",
|
|
15
|
-
styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL2xpYnMvdGVzb3Vyby1lbWJlZGRlZC1jb21wb25lbnRzLXJlYWN0L21vbml0ZS1zZGsvc3JjL2NvbXBvbmVudHMvYXBwcm92YWxQb2xpY2llcy9BcHByb3ZhbFBvbGljaWVzVGFibGUvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVtQyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9saWJzL3Rlc291cm8tZW1iZWRkZWQtY29tcG9uZW50cy1yZWFjdC9tb25pdGUtc2RrL3NyYy9jb21wb25lbnRzL2FwcHJvdmFsUG9saWNpZXMvQXBwcm92YWxQb2xpY2llc1RhYmxlL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuZXhwb3J0IGNvbnN0IENvbHVtbkxpc3QgPSBzdHlsZWQudWxgXG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgbGlzdC1zdHlsZTogbm9uZTtcblxuICBsaSB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBnYXA6IDRweDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG5gO1xuIl19 */",
|
|
16
|
-
toString: t
|
|
17
|
-
});
|
|
18
11
|
export {
|
|
19
|
-
|
|
12
|
+
o as Switch
|
|
20
13
|
};
|
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "./index101.js";
|
|
3
|
+
import * as o from "@radix-ui/react-popover";
|
|
4
|
+
function m({
|
|
5
5
|
...t
|
|
6
|
-
})
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ e(o.Root, { "data-slot": "popover", ...t });
|
|
8
|
+
}
|
|
9
|
+
function d({
|
|
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({
|
|
12
25
|
...t
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ e(o.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
28
|
+
}
|
|
16
29
|
export {
|
|
17
|
-
|
|
30
|
+
m as Popover,
|
|
31
|
+
l as PopoverAnchor,
|
|
32
|
+
f as PopoverContent,
|
|
33
|
+
d as PopoverTrigger
|
|
18
34
|
};
|
|
@@ -1,18 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { useEffect as _ } from "react";
|
|
2
|
+
const c = (i, u, r) => {
|
|
3
|
+
_(() => {
|
|
4
|
+
if (!i?.data?.length) return;
|
|
5
|
+
const d = u(), m = new Map(i.data.map((e) => [e.id, e])), s = new Map(i.data.filter((e) => e.name).map((e) => [e.name?.toLowerCase(), e])), o = d.line_items.map((e) => {
|
|
6
|
+
const n = e.product.measure_unit_id, t = e.product.measure_unit_name || e.measure_unit?.name;
|
|
7
|
+
let a;
|
|
8
|
+
return n && m.has(n) ? a = m.get(n) : t && s.has(t.toLowerCase()) && (a = s.get(t.toLowerCase())), a ? {
|
|
9
|
+
...e,
|
|
10
|
+
product: {
|
|
11
|
+
...e.product,
|
|
12
|
+
measure_unit_id: a.id,
|
|
13
|
+
measure_unit_name: void 0
|
|
14
|
+
},
|
|
15
|
+
measure_unit: {
|
|
16
|
+
id: a.id,
|
|
17
|
+
name: a.name || ""
|
|
18
|
+
}
|
|
19
|
+
} : t ? {
|
|
20
|
+
...e,
|
|
21
|
+
product: {
|
|
22
|
+
...e.product,
|
|
23
|
+
measure_unit_id: void 0,
|
|
24
|
+
measure_unit_name: t
|
|
25
|
+
},
|
|
26
|
+
measure_unit: {
|
|
27
|
+
name: t,
|
|
28
|
+
id: null
|
|
29
|
+
}
|
|
30
|
+
} : n === "" || n === void 0 ? {
|
|
31
|
+
...e,
|
|
32
|
+
product: {
|
|
33
|
+
...e.product,
|
|
34
|
+
measure_unit_id: void 0
|
|
35
|
+
}
|
|
36
|
+
} : {
|
|
37
|
+
...e
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
r({
|
|
41
|
+
...d,
|
|
42
|
+
line_items: o
|
|
43
|
+
});
|
|
44
|
+
}, [i?.data, r, u]);
|
|
45
|
+
};
|
|
16
46
|
export {
|
|
17
|
-
|
|
47
|
+
c as useMeasureUnitsMapping
|
|
18
48
|
};
|
|
@@ -1,18 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { useMoniteContext as n } from "./index58.js";
|
|
2
|
+
import { getAPIErrorMessage as p } from "./index123.js";
|
|
3
|
+
import { useLingui as c } from "@lingui/react";
|
|
4
|
+
import { toast as t } from "react-hot-toast";
|
|
5
|
+
const v = (a) => {
|
|
6
|
+
const {
|
|
7
|
+
i18n: i
|
|
8
|
+
} = c(), {
|
|
9
|
+
api: e,
|
|
10
|
+
queryClient: s
|
|
11
|
+
} = n();
|
|
12
|
+
return e.finops.patchReceivablesId.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
receivable_id: a
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: async (r) => {
|
|
18
|
+
e.finops.getReceivablesId.setQueryData({
|
|
19
|
+
path: {
|
|
20
|
+
receivable_id: a
|
|
21
|
+
}
|
|
22
|
+
}, r, s), await Promise.all([e.finops.getReceivablesIdPdfLink.resetQueries({
|
|
23
|
+
parameters: {
|
|
24
|
+
path: {
|
|
25
|
+
receivable_id: a
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}, s), e.finops.getReceivables.invalidateQueries(s)]), t.success(i._("{receivableType} has been updated", {
|
|
29
|
+
receivableType: r.type
|
|
30
|
+
}));
|
|
31
|
+
},
|
|
32
|
+
onError: (r) => {
|
|
33
|
+
const o = p(i, r);
|
|
34
|
+
t.error(i._("Failed to update receivable: {errorMessage}", {
|
|
35
|
+
errorMessage: o
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
};
|
|
16
40
|
export {
|
|
17
|
-
|
|
41
|
+
v as useUpdateReceivable
|
|
18
42
|
};
|
|
@@ -1,18 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { useMoniteContext as o } from "./index58.js";
|
|
2
|
+
import { getAPIErrorMessage as n } from "./index123.js";
|
|
3
|
+
import { useLingui as p } from "@lingui/react";
|
|
4
|
+
import { toast as c } from "react-hot-toast";
|
|
5
|
+
const g = (e) => {
|
|
6
|
+
const {
|
|
7
|
+
api: r,
|
|
8
|
+
queryClient: i
|
|
9
|
+
} = o(), {
|
|
10
|
+
i18n: t
|
|
11
|
+
} = p();
|
|
12
|
+
return r.finops.putReceivablesIdLineItems.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
receivable_id: e
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: async () => {
|
|
18
|
+
await r.finops.getReceivablesId.invalidateQueries({
|
|
19
|
+
parameters: {
|
|
20
|
+
path: {
|
|
21
|
+
receivable_id: e
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, i);
|
|
25
|
+
},
|
|
26
|
+
onError: (s) => {
|
|
27
|
+
const a = n(t, s);
|
|
28
|
+
c.error(t._("Failed to update receivable line items: {errorMessage}", {
|
|
29
|
+
errorMessage: a
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
16
34
|
export {
|
|
17
|
-
|
|
35
|
+
g as useUpdateReceivableLineItems
|
|
18
36
|
};
|
|
@@ -1,75 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const b = ({
|
|
4
|
-
approvalPolicy: t
|
|
5
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as t } from "./index58.js";
|
|
2
|
+
const o = () => {
|
|
6
3
|
const {
|
|
7
|
-
|
|
8
|
-
} =
|
|
9
|
-
|
|
10
|
-
const e = r.params;
|
|
11
|
-
return !("user_ids" in e && !Array.isArray(e.user_ids) || "role_ids" in e && !Array.isArray(e.role_ids) || !("required_approval_count" in e) || typeof e.required_approval_count != "number");
|
|
12
|
-
}, i = (r) => typeof r != "object" || r === null || !("run_concurrently" in r) || typeof r.run_concurrently != "boolean" || !("all" in r) || !Array.isArray(r.all) ? !1 : r.all.every((e) => s(e) || i(e)), f = (r) => {
|
|
13
|
-
if (!Array.isArray(r) || r.length !== 1) return !1;
|
|
14
|
-
const [e] = r;
|
|
15
|
-
if (typeof e != "object" || e === null || !("if" in e) || !("then" in e) || !("else" in e)) return !1;
|
|
16
|
-
const {
|
|
17
|
-
if: a,
|
|
18
|
-
then: l,
|
|
19
|
-
else: R
|
|
20
|
-
} = e;
|
|
21
|
-
if (typeof a != "object" || a === null || !("run_concurrently" in a) || !("all" in a)) return !1;
|
|
22
|
-
const {
|
|
23
|
-
run_concurrently: E,
|
|
24
|
-
all: c
|
|
25
|
-
} = a;
|
|
26
|
-
return typeof E != "boolean" || !Array.isArray(c) || !Array.isArray(l) || !Array.isArray(R) ? !1 : c.every((y) => s(y) || i(y));
|
|
27
|
-
}, u = (r) => r.call === n.REQUEST_APPROVAL_BY_USERS && Array.isArray(r.params.user_ids) && r.params.user_ids.length === 1 && r.params.required_approval_count === 1, A = (r) => r.call === n.REQUEST_APPROVAL_BY_USERS && Array.isArray(r.params.user_ids) && r.params.user_ids.length > 1 && r.params.required_approval_count > 0, d = (r) => r.call === n.REQUEST_APPROVAL_BY_ROLES && Array.isArray(r.params.role_ids) && r.params.role_ids.length >= 1 && r.params.required_approval_count > 0, m = (r) => !r.run_concurrently && r.all.length > 1 && r.all.every((e) => s(e) && u(e)), _ = (r) => L(r, o), p = (r, e) => g(r, o, e);
|
|
28
|
-
return f(t?.script) ? {
|
|
29
|
-
rules: t?.script[0].if.all.reduce((r, e) => {
|
|
30
|
-
if (i(e)) {
|
|
31
|
-
if (m(e))
|
|
32
|
-
return {
|
|
33
|
-
...r,
|
|
34
|
-
approval_chain: {
|
|
35
|
-
chainUserIds: e.all.reduce((a, l) => s(l) && u(l) && l.params.user_ids[0] && l.params.user_ids[0] ? [...a, l.params.user_ids[0]] : a, [])
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
} else if (s(e)) {
|
|
39
|
-
if (u(e))
|
|
40
|
-
return {
|
|
41
|
-
...r,
|
|
42
|
-
single_user: {
|
|
43
|
-
userId: e.params.user_ids[0]
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
if (A(e))
|
|
47
|
-
return {
|
|
48
|
-
...r,
|
|
49
|
-
users_from_list: {
|
|
50
|
-
userIds: e.params.user_ids,
|
|
51
|
-
count: e.params.required_approval_count
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
if (d(e))
|
|
55
|
-
return {
|
|
56
|
-
...r,
|
|
57
|
-
roles_from_list: {
|
|
58
|
-
roleIds: e.params.role_ids,
|
|
59
|
-
count: e.params.required_approval_count
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
return r;
|
|
64
|
-
}, {}),
|
|
65
|
-
getRuleName: _,
|
|
66
|
-
getRuleLabel: p
|
|
67
|
-
} : {
|
|
68
|
-
rules: void 0,
|
|
69
|
-
getRuleName: _,
|
|
70
|
-
getRuleLabel: p
|
|
71
|
-
};
|
|
4
|
+
api: e
|
|
5
|
+
} = t();
|
|
6
|
+
return e.finops.getPaymentTerms.useQuery();
|
|
72
7
|
};
|
|
73
8
|
export {
|
|
74
|
-
|
|
9
|
+
o as useGetPaymentTerms
|
|
75
10
|
};
|
|
@@ -1,18 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as C } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Controller as c } from "react-hook-form";
|
|
3
|
+
import { DefaultEmail as v } from "./index442.js";
|
|
4
|
+
import { useRootElements as y } from "./index93.js";
|
|
5
|
+
import { useCounterpartById as S } from "./index71.js";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "./index58.js";
|
|
8
|
+
import { useCounterpartContactList as F } from "./index75.js";
|
|
9
|
+
import "date-fns";
|
|
10
|
+
import "react";
|
|
11
|
+
import "react-hot-toast";
|
|
12
|
+
import { useLingui as I } from "@lingui/react";
|
|
13
|
+
import { useGetReceivableById as N } from "./index83.js";
|
|
14
|
+
import { Card as u, CardContent as m, Stack as f, Typography as h, TextField as b, CircularProgress as M, FormControl as T, Select as B, MenuItem as L, FormHelperText as W } from "@mui/material";
|
|
15
|
+
import { getDefaultContact as _, getContactList as j } from "./index378.js";
|
|
16
|
+
const K = ({
|
|
17
|
+
formName: n,
|
|
18
|
+
style: t,
|
|
19
|
+
children: i,
|
|
20
|
+
handleIssueAndSend: a
|
|
21
|
+
}) => /* @__PURE__ */ e("form", { id: n, noValidate: !0, onSubmit: a, style: t, children: i }), k = ({
|
|
22
|
+
invoiceId: n,
|
|
23
|
+
control: t
|
|
24
|
+
}) => {
|
|
25
|
+
const {
|
|
26
|
+
data: i
|
|
27
|
+
} = N(n), {
|
|
28
|
+
data: a
|
|
29
|
+
} = S(i?.counterpart_id), {
|
|
30
|
+
data: r,
|
|
31
|
+
isLoading: o
|
|
32
|
+
} = F(i?.counterpart_id), {
|
|
33
|
+
root: x
|
|
34
|
+
} = y();
|
|
35
|
+
if (o) return /* @__PURE__ */ e(M, {});
|
|
36
|
+
const g = _(r, a);
|
|
37
|
+
return /* @__PURE__ */ e(c, { name: "to", control: t, render: ({
|
|
38
|
+
field: p,
|
|
39
|
+
fieldState: {
|
|
40
|
+
error: s
|
|
41
|
+
}
|
|
42
|
+
}) => /* @__PURE__ */ d(T, { variant: "standard", required: !0, fullWidth: !0, error: !!s, children: [
|
|
43
|
+
/* @__PURE__ */ e(B, { MenuProps: {
|
|
44
|
+
container: x
|
|
45
|
+
}, className: "Monite-NakedField Monite-RecipientSelector", "data-testid": `${p.name}-select`, ...p, children: j(r, g).map((l) => /* @__PURE__ */ e(L, { value: l.email, children: /* @__PURE__ */ e(v, { email: l.email ?? "", isDefault: l.is_default }) }, l.id)) }),
|
|
46
|
+
s && /* @__PURE__ */ e(W, { children: s.message })
|
|
47
|
+
] }) });
|
|
48
|
+
}, O = ({
|
|
49
|
+
invoiceId: n,
|
|
50
|
+
control: t,
|
|
51
|
+
isDisabled: i
|
|
52
|
+
}) => {
|
|
53
|
+
const {
|
|
54
|
+
i18n: a
|
|
55
|
+
} = I();
|
|
56
|
+
return /* @__PURE__ */ d(C, { children: [
|
|
57
|
+
/* @__PURE__ */ e(u, { sx: {
|
|
58
|
+
mb: 3
|
|
59
|
+
}, children: /* @__PURE__ */ e(m, { sx: {
|
|
60
|
+
px: 3,
|
|
61
|
+
pt: 1,
|
|
62
|
+
pb: 1,
|
|
63
|
+
"&:last-child": {
|
|
64
|
+
pb: 1
|
|
65
|
+
}
|
|
66
|
+
// last-child is necessary to override default style of the MUI theme
|
|
67
|
+
}, children: /* @__PURE__ */ d(f, { spacing: 2, direction: "row", alignItems: "center", children: [
|
|
68
|
+
/* @__PURE__ */ e(h, { variant: "body2", sx: {
|
|
69
|
+
minWidth: "52px"
|
|
70
|
+
}, children: a._("To") }),
|
|
71
|
+
/* @__PURE__ */ e(k, { invoiceId: n, control: t })
|
|
72
|
+
] }) }) }),
|
|
73
|
+
/* @__PURE__ */ d(u, { children: [
|
|
74
|
+
/* @__PURE__ */ e(m, { sx: {
|
|
75
|
+
px: 3,
|
|
76
|
+
py: 1,
|
|
77
|
+
borderBottomWidth: "1px",
|
|
78
|
+
borderBottomStyle: "solid",
|
|
79
|
+
borderBottomColor: "divider"
|
|
80
|
+
}, children: /* @__PURE__ */ d(f, { spacing: 2, direction: "row", alignItems: "center", children: [
|
|
81
|
+
/* @__PURE__ */ e(h, { variant: "body2", children: a._("Subject") }),
|
|
82
|
+
/* @__PURE__ */ e(c, { name: "subject", control: t, render: ({
|
|
83
|
+
field: r,
|
|
84
|
+
fieldState: {
|
|
85
|
+
error: o
|
|
86
|
+
}
|
|
87
|
+
}) => /* @__PURE__ */ e(b, { id: r.name, "data-testid": `${r.name}-input`, variant: "standard", className: "Monite-NakedField", fullWidth: !0, error: !!o, helperText: o?.message, required: !0, ...r, disabled: i }) })
|
|
88
|
+
] }) }),
|
|
89
|
+
/* @__PURE__ */ e(m, { sx: {
|
|
90
|
+
pl: 3,
|
|
91
|
+
pr: 3,
|
|
92
|
+
pb: 3,
|
|
93
|
+
pt: 1
|
|
94
|
+
}, children: /* @__PURE__ */ e(c, { name: "body", control: t, render: ({
|
|
95
|
+
field: r,
|
|
96
|
+
fieldState: {
|
|
97
|
+
error: o
|
|
98
|
+
}
|
|
99
|
+
}) => /* @__PURE__ */ e(b, { id: r.name, "data-testid": `${r.name}-input`, variant: "standard", className: "Monite-NakedField", fullWidth: !0, error: !!o, helperText: o?.message, required: !0, multiline: !0, rows: 8, ...r, disabled: i }) }) })
|
|
100
|
+
] })
|
|
101
|
+
] });
|
|
102
|
+
};
|
|
16
103
|
export {
|
|
17
|
-
|
|
104
|
+
K as Form,
|
|
105
|
+
O as FormContent
|
|
18
106
|
};
|