@tesouro/embedded-components-react 0.2.113 → 0.2.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -0
- package/dist/lib/ReceivablesWidget.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/index2.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/index4.js +64 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.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/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -35
- 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 +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -8
- 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 +60 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +398 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +94 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +76 -12
- 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 +6 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +30 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +11 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +121 -11
- 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 +10 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +42 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +48 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +46 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +15 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +11 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +148 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +57 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +70 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +29 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +3 -9
- 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 +37 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +80 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +4 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +42 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +75 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +57 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +196 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +22 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +77 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +28 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +41 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +110 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +69 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +188 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +30 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +108 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +137 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +21 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +183 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +13 -88
- 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 +19 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +48 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +5 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +86 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +33 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +44 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +46 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +202 -17
- 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 +424 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +20 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +2 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +10 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +107 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +65 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +96 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +98 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +18 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +35 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +101 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +26 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +212 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +5 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +64 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +32 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +19 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +35 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +34 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +66 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +345 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +12 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +23 -477
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +26 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +15 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +17 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +246 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +12 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +23 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +36 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +58 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +51 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +30 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +96 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +144 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +106 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +344 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +299 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +98 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +158 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +264 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +10 -248
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +490 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +167 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +38 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +57 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +29 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +112 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +22 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +42 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +52 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +72 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +44 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +63 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +23 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +127 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +60 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +92 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +111 -212
- 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 +84 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +16 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +33 -293
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +14 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +73 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +75 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +43 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +63 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +42 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +134 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +112 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +81 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +284 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +46 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +15 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +83 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +223 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +36 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +10 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +10 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +12 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +6 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +149 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +91 -136
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +83 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +16 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +61 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +19 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +94 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +96 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +213 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +57 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +57 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +21 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +15 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +17 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +169 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +133 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +159 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +9 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +18 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +61 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +65 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +9 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +62 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +21 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +62 -16
- 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 +14 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +156 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +27 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +78 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +32 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +43 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +39 -53
- 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 +31 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +6 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +22 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +41 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +72 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +94 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +9 -24
- 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 +10 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +11 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +15 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +48 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +93 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +38 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +35 -2
- 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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -1
- 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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +9 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +53 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +31 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +22 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +65 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +85 -10
- 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 +24 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +98 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +110 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +38 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +73 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +68 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +35 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +8 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +20 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +20 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +26 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +38 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +20 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +70 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +81 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +49 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +51 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +50 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +29 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +56 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +39 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +56 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +68 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +21 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +49 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +56 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +29 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +81 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +68 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +43 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +26 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +50 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +39 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +31 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +4 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +127 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +5 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +32 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +67 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +39 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +7 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +18 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +94 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +74 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +20 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +41 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +36 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +14 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +49 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +13 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +39 -47
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.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/index78.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/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1429 -1425
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +24 -24
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { FieldLabel as m, Field as h, FieldContent as p, FieldError as f, FieldDescription as _ } from "./
|
|
3
|
-
import { Input as b } from "./
|
|
4
|
-
import { Label as v } from "./
|
|
5
|
-
import { RadioGroup as C, RadioGroupItem as y } from "./
|
|
2
|
+
import { FieldLabel as m, Field as h, FieldContent as p, FieldError as f, FieldDescription as _ } from "./index160.js";
|
|
3
|
+
import { Input as b } from "./index118.js";
|
|
4
|
+
import { Label as v } from "./index279.js";
|
|
5
|
+
import { RadioGroup as C, RadioGroupItem as y } from "./index334.js";
|
|
6
6
|
import { Typography as n } from "./index85.js";
|
|
7
7
|
import { useLingui as F } from "@lingui/react";
|
|
8
8
|
import { useRef as S } from "react";
|
|
9
9
|
import { useFormContext as T, Controller as u } from "react-hook-form";
|
|
10
10
|
import { twMerge as c } from "tailwind-merge";
|
|
11
|
-
import { CounterpartBankSection as z } from "./
|
|
12
|
-
import { Checkbox as I } from "./
|
|
13
|
-
import { CounterpartAddressSection as L } from "./
|
|
11
|
+
import { CounterpartBankSection as z } from "./index153.js";
|
|
12
|
+
import { Checkbox as I } from "./index319.js";
|
|
13
|
+
import { CounterpartAddressSection as L } from "./index155.js";
|
|
14
14
|
const $ = ({
|
|
15
15
|
handleChangeCounterpartType: N,
|
|
16
16
|
counterpartType: d,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AllowedCountries as l } from "./index367.js";
|
|
2
2
|
import { z as i } from "zod";
|
|
3
|
-
import "./
|
|
3
|
+
import "./index325.js";
|
|
4
4
|
const m = (e, t) => ({
|
|
5
5
|
line1: i.string().optional().refine((a) => !t || !!a?.trim(), {
|
|
6
6
|
message: e._("Street address is required")
|
|
@@ -1,22 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as a, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as m, Controller as w } from "react-hook-form";
|
|
3
|
+
import { Typography as n } from "./index85.js";
|
|
4
|
+
import { useLingui as u } from "@lingui/react";
|
|
5
|
+
import { Switch as i } from "./index381.js";
|
|
6
|
+
import { twMerge as h } from "tailwind-merge";
|
|
7
|
+
const x = ({
|
|
8
|
+
control: l,
|
|
9
|
+
isDialog: r
|
|
10
|
+
}) => {
|
|
5
11
|
const {
|
|
6
12
|
i18n: e
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} =
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
} = u(), {
|
|
14
|
+
watch: c,
|
|
15
|
+
setValue: d
|
|
16
|
+
} = m(), s = c("invoice_bank_display");
|
|
17
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
18
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5", children: [
|
|
19
|
+
/* @__PURE__ */ t(n, { variant: "h3", children: e._("PDF settings") }),
|
|
20
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("Invoices are generated as PDFs") })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ a("div", { className: h("ttw:flex ttw:flex-col ttw:gap-2.5 ttw:p-4 ttw:rounded-lg", r ? "ttw:bg-zinc-100" : "ttw:bg-white"), children: [
|
|
23
|
+
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
24
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
25
|
+
/* @__PURE__ */ t(n, { variant: "body1", className: "ttw:font-medium", children: e._("Display your bank account details on the PDF") }),
|
|
26
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("Shows your bank account number, routing number, and account holder name so that customers can pay using an ACH bank transfer. Should only be used with accounts that have a debit block.") })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ t(i, { checked: s, onCheckedChange: (o) => {
|
|
29
|
+
d("invoice_bank_display", o, {
|
|
30
|
+
shouldDirty: !0
|
|
31
|
+
});
|
|
32
|
+
}, "aria-label": e._("Display bank display options") })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
35
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
36
|
+
/* @__PURE__ */ t(n, { variant: "body1", className: "ttw:font-medium", children: e._("Update PDF files for paid invoices") }),
|
|
37
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", children: e._("PDF invoice files will be regenerated to reflect payments made and any remaining amount due. Once a PDF has been updated, you won't be able to revert it.") }),
|
|
38
|
+
/* @__PURE__ */ t(n, { variant: "body2", color: "muted", className: "ttw:font-medium", children: e._("Once updated, you won't be able to revert the PDFs.") })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ t(w, { name: "update_paid_invoices", control: l, render: ({
|
|
41
|
+
field: o
|
|
42
|
+
}) => /* @__PURE__ */ t(i, { checked: o.value, onCheckedChange: o.onChange, "aria-label": e._("Enable update paid invoices pdf") }) })
|
|
43
|
+
] })
|
|
44
|
+
] })
|
|
45
|
+
] });
|
|
19
46
|
};
|
|
20
47
|
export {
|
|
21
|
-
|
|
48
|
+
x as PDFSettings
|
|
22
49
|
};
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const f = () => {
|
|
1
|
+
import { toast as n } from "react-hot-toast";
|
|
2
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
3
|
+
import { useLingui as a } from "@lingui/react";
|
|
4
|
+
const c = (e) => {
|
|
6
5
|
const {
|
|
7
|
-
i18n: r
|
|
8
|
-
} = i(), {
|
|
9
6
|
api: t,
|
|
10
|
-
queryClient:
|
|
11
|
-
} =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
queryClient: i
|
|
8
|
+
} = o(), {
|
|
9
|
+
i18n: s
|
|
10
|
+
} = a();
|
|
11
|
+
return t.finops.patchEntitiesIdSettings.useMutation(void 0, {
|
|
12
|
+
onSuccess: () => {
|
|
13
|
+
n.success(s._("Settings updated successfully.")), t.finops.getEntitiesIdSettings.invalidateQueries({
|
|
14
|
+
parameters: {
|
|
15
|
+
path: {
|
|
16
|
+
entity_id: e
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
onError: () => {
|
|
26
|
-
a.error(r._("Failed to update counterpart."));
|
|
19
|
+
}, i), t.finops.getDocumentsIdNextNumbers.invalidateQueries({
|
|
20
|
+
parameters: {
|
|
21
|
+
path: {
|
|
22
|
+
entity_id: e
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, i);
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
};
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
c as usePatchEntitySettings
|
|
32
31
|
};
|
|
@@ -1,44 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
counterpartId: e,
|
|
6
|
-
addressId: t
|
|
7
|
-
}) => {
|
|
8
|
-
const {
|
|
9
|
-
i18n: a
|
|
10
|
-
} = i(), {
|
|
11
|
-
api: r,
|
|
12
|
-
queryClient: s
|
|
13
|
-
} = n();
|
|
14
|
-
return r.finops.patchCounterpartsIdAddressesId.useMutation({
|
|
15
|
-
path: {
|
|
16
|
-
counterpart_id: e,
|
|
17
|
-
address_id: t
|
|
18
|
-
}
|
|
19
|
-
}, {
|
|
20
|
-
onSuccess: async (d) => {
|
|
21
|
-
r.finops.getCounterpartsIdAddressesId.setQueryData({
|
|
22
|
-
path: {
|
|
23
|
-
counterpart_id: e,
|
|
24
|
-
address_id: t
|
|
25
|
-
}
|
|
26
|
-
}, (o) => ({
|
|
27
|
-
...o,
|
|
28
|
-
...d
|
|
29
|
-
}), s), await r.finops.getCounterpartsIdAddresses.invalidateQueries({
|
|
30
|
-
parameters: {
|
|
31
|
-
path: {
|
|
32
|
-
counterpart_id: e
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}, s);
|
|
36
|
-
},
|
|
37
|
-
onError: () => {
|
|
38
|
-
p.error(a._("Failed to update address."));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
};
|
|
1
|
+
import { zodResolver as e } from "@hookform/resolvers/zod";
|
|
2
|
+
function t(o) {
|
|
3
|
+
return e(o);
|
|
4
|
+
}
|
|
42
5
|
export {
|
|
43
|
-
|
|
6
|
+
t as safeZodResolver
|
|
44
7
|
};
|
|
@@ -1,65 +1,79 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
hasExistingBankAccount: a,
|
|
11
|
-
isLoading: o,
|
|
12
|
-
isStandalone: b,
|
|
13
|
-
handleCancel: v
|
|
2
|
+
import { useFormContext as $, Controller as d } from "react-hook-form";
|
|
3
|
+
import { useLingui as F } from "@lingui/react";
|
|
4
|
+
import { Typography as c } from "./index85.js";
|
|
5
|
+
import { Field as m, FieldContent as s, FieldLabel as w, FieldError as u } from "./index160.js";
|
|
6
|
+
import { Input as g } from "./index118.js";
|
|
7
|
+
import { Checkbox as S } from "./index319.js";
|
|
8
|
+
const E = ({
|
|
9
|
+
control: o
|
|
14
10
|
}) => {
|
|
15
11
|
const {
|
|
16
|
-
i18n:
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
i18n: i
|
|
13
|
+
} = F(), {
|
|
14
|
+
setValue: v,
|
|
15
|
+
watch: a
|
|
16
|
+
} = $(), p = a("min_digits"), f = a("prefix"), h = a("separator"), b = a("include_date"), x = a("invoice"), N = a("invoice_number");
|
|
17
|
+
function y() {
|
|
18
|
+
return `${x}${h}${f ? `${f}${h}` : ""}${b ? `${(/* @__PURE__ */ new Date()).getFullYear()}${h}` : ""}${N.toString().padStart(p, "0")}`;
|
|
19
|
+
}
|
|
20
|
+
const _ = y();
|
|
21
|
+
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5", children: [
|
|
23
|
+
/* @__PURE__ */ e(c, { variant: "h3", children: i._("Invoice numbering") }),
|
|
24
|
+
/* @__PURE__ */ e(c, { variant: "body2", color: "muted", children: i._("Specify how you want your invoices to be numbered. Changes apply to new invoices only. Existing invoice numbers won't be updated.") })
|
|
27
25
|
] }),
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
26
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:w-94 ttw:gap-0.5 ttw:p-4 ttw:bg-neutral-200 ttw:rounded-xl", children: [
|
|
27
|
+
/* @__PURE__ */ e(c, { variant: "body2", color: "muted", children: i._("Preview") }),
|
|
28
|
+
/* @__PURE__ */ e(c, { variant: "h4", className: "ttw:font-medium", children: _ })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:w-min ttw:gap-2 ttw:p-2", children: [
|
|
31
|
+
/* @__PURE__ */ e(d, { name: "invoice", control: o, render: ({
|
|
32
|
+
field: t,
|
|
33
|
+
fieldState: {
|
|
34
|
+
error: r
|
|
35
|
+
}
|
|
36
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
37
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Invoice prefix") }),
|
|
38
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, maxLength: 25, "aria-invalid": !!r || void 0, className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
39
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
40
|
+
] }) }) }),
|
|
41
|
+
/* @__PURE__ */ e(d, { name: "invoice_number", control: o, render: ({
|
|
42
|
+
field: t,
|
|
41
43
|
fieldState: {
|
|
42
|
-
error:
|
|
44
|
+
error: r
|
|
43
45
|
}
|
|
44
|
-
}) => /* @__PURE__ */ e(m, {
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
/* @__PURE__ */ e(
|
|
47
|
-
|
|
46
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
47
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Starting number") }),
|
|
48
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", "aria-invalid": !!r || void 0, onChange: (l) => {
|
|
49
|
+
const C = l.target.value.replace(/^0+(?=\d)/, "");
|
|
50
|
+
t.onChange(Number(C));
|
|
51
|
+
}, value: t.value.toString().padStart(p, "0"), className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
52
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
48
53
|
] }) }) }),
|
|
49
|
-
/* @__PURE__ */ e(
|
|
50
|
-
field:
|
|
54
|
+
/* @__PURE__ */ e(d, { name: "min_digits", control: o, render: ({
|
|
55
|
+
field: t,
|
|
51
56
|
fieldState: {
|
|
52
|
-
error:
|
|
57
|
+
error: r
|
|
53
58
|
}
|
|
54
|
-
}) => /* @__PURE__ */ e(m, {
|
|
55
|
-
/* @__PURE__ */ e(
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
|
|
59
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
60
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Digit count") }),
|
|
61
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", className: "ttw:bg-white ttw:w-29 ttw:max-w-29", onChange: (l) => {
|
|
62
|
+
+l.target.value > 20 ? v("min_digits", 20, {
|
|
63
|
+
shouldDirty: !0
|
|
64
|
+
}) : t.onChange(l);
|
|
65
|
+
}, "aria-invalid": !!r || void 0 }),
|
|
66
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
58
67
|
] }) }) })
|
|
59
68
|
] }),
|
|
60
|
-
/* @__PURE__ */ e(
|
|
69
|
+
/* @__PURE__ */ e("div", { className: "ttw:bg-transparent ttw:w-full ttw:p-2", children: /* @__PURE__ */ e(d, { name: "include_date", control: o, render: ({
|
|
70
|
+
field: t
|
|
71
|
+
}) => /* @__PURE__ */ e(m, { orientation: "horizontal", children: /* @__PURE__ */ n(s, { className: "ttw:flex-row ttw:items-center", children: [
|
|
72
|
+
/* @__PURE__ */ e(S, { id: t.name, ref: t.ref, checked: t.value ?? !1, onCheckedChange: t.onChange, onBlur: t.onBlur, className: "ttw:bg-white" }),
|
|
73
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, className: "ttw:font-normal", children: i._("Include the current year in the invoice number prefix") })
|
|
74
|
+
] }) }) }) })
|
|
61
75
|
] });
|
|
62
76
|
};
|
|
63
77
|
export {
|
|
64
|
-
|
|
78
|
+
E as InvoiceNumbering
|
|
65
79
|
};
|
|
@@ -1,98 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} = A(), o = k || C, S = z(() => ({
|
|
33
|
-
accountHolderName: t?.account_holder_name ?? "",
|
|
34
|
-
accountNumber: t?.account_number ?? "",
|
|
35
|
-
routingNumber: t?.routing_number ?? ""
|
|
36
|
-
}), [t]), {
|
|
37
|
-
resetField: n,
|
|
38
|
-
...a
|
|
39
|
-
} = y({
|
|
40
|
-
resolver: P(U(e)),
|
|
41
|
-
defaultValues: S
|
|
42
|
-
}), x = H((m) => {
|
|
43
|
-
m.preventDefault(), m.stopPropagation(), a.handleSubmit((r) => {
|
|
44
|
-
if (t) {
|
|
45
|
-
const s = {
|
|
46
|
-
account_holder_name: r.accountHolderName,
|
|
47
|
-
account_number: r.accountNumber,
|
|
48
|
-
routing_number: r.routingNumber
|
|
49
|
-
};
|
|
50
|
-
return f({
|
|
51
|
-
path: {
|
|
52
|
-
counterpart_id: p,
|
|
53
|
-
bank_account_id: t?.id
|
|
54
|
-
},
|
|
55
|
-
body: s
|
|
56
|
-
}, {
|
|
57
|
-
onSuccess: () => {
|
|
58
|
-
l.success(e._("Bank account information has been updated.")), c && c();
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
const s = {
|
|
63
|
-
account_holder_name: r.accountHolderName,
|
|
64
|
-
account_number: r.accountNumber,
|
|
65
|
-
routing_number: r.routingNumber,
|
|
66
|
-
country: "US",
|
|
67
|
-
currency: "USD",
|
|
68
|
-
is_default_for_currency: !0
|
|
69
|
-
};
|
|
70
|
-
return _({
|
|
71
|
-
path: {
|
|
72
|
-
counterpart_id: p
|
|
73
|
-
},
|
|
74
|
-
body: s
|
|
75
|
-
}, {
|
|
76
|
-
onSuccess: () => {
|
|
77
|
-
l.success(e._("Bank Account has been added.")), i && i();
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
})(m);
|
|
82
|
-
}, [l, f, _, L, c, i, a.handleSubmit, e]);
|
|
83
|
-
return /* @__PURE__ */ u(B, { resetField: n, ...a, children: /* @__PURE__ */ d("form", { id: h, onSubmit: x, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
|
|
84
|
-
/* @__PURE__ */ u(I, { hasExistingBankAccount: N, handleCancel: b, isLoading: o, isStandalone: g }),
|
|
85
|
-
/* @__PURE__ */ d("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
86
|
-
/* @__PURE__ */ u(w, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
|
|
87
|
-
n("accountHolderName"), n("accountNumber"), n("routingNumber"), b();
|
|
88
|
-
}, children: e._("Cancel") }),
|
|
89
|
-
/* @__PURE__ */ d(w, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
|
|
90
|
-
o && /* @__PURE__ */ u(j, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
91
|
-
e._("Save")
|
|
92
|
-
] })
|
|
93
|
-
] })
|
|
94
|
-
] }) });
|
|
95
|
-
};
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
const i = (n, t) => e.object({
|
|
3
|
+
min_digits: e.coerce.number().int().min(1, n._("Can't be less than 1")).max(20, n._("Can't be greater than 20")),
|
|
4
|
+
credit_note: e.string().min(1),
|
|
5
|
+
credit_note_number: e.coerce.number().int().min(t.credit_note, n._("Can't be less than {nextNumbersCredit_note}", {
|
|
6
|
+
nextNumbersCredit_note: t.credit_note
|
|
7
|
+
})),
|
|
8
|
+
delivery_note: e.string().min(1),
|
|
9
|
+
delivery_note_number: e.coerce.number().int().min(t.delivery_note, n._("Can't be less than {nextNumbersDelivery_note}", {
|
|
10
|
+
nextNumbersDelivery_note: t.delivery_note
|
|
11
|
+
})),
|
|
12
|
+
quote: e.string().min(1),
|
|
13
|
+
quote_number: e.coerce.number().int().min(t.quote, n._("Can't be less than {nextNumbersQuote}", {
|
|
14
|
+
nextNumbersQuote: t.quote
|
|
15
|
+
})),
|
|
16
|
+
invoice: e.string().min(1, n._("Invoice prefix is required")).max(25, n._("Invoice prefix should have at most 25 characters")),
|
|
17
|
+
invoice_number: e.coerce.number().int().min(t.invoice, n._("Can't be less than {nextNumbersInvoice}", {
|
|
18
|
+
nextNumbersInvoice: t.invoice
|
|
19
|
+
})),
|
|
20
|
+
purchase_order: e.string().min(1),
|
|
21
|
+
purchase_order_number: e.coerce.number().int().min(t.purchase_order, n._("Can't be less than {nextNumbersPurchase_order}", {
|
|
22
|
+
nextNumbersPurchase_order: t.purchase_order
|
|
23
|
+
})),
|
|
24
|
+
include_date: e.boolean(),
|
|
25
|
+
prefix: e.string().max(25, n._("Prefix should have at most 25 characters")),
|
|
26
|
+
separator: e.enum(["/", "-", "|", ".", ""]),
|
|
27
|
+
invoice_bank_display: e.boolean(),
|
|
28
|
+
update_paid_invoices: e.boolean(),
|
|
29
|
+
quote_signature_display: e.boolean(),
|
|
30
|
+
quote_electronic_signature: e.union([e.boolean(), e.string()])
|
|
31
|
+
});
|
|
96
32
|
export {
|
|
97
|
-
|
|
33
|
+
i as getInvoiceSettingsFormSchema
|
|
98
34
|
};
|
|
@@ -1,114 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}) => {
|
|
18
|
-
const {
|
|
19
|
-
i18n: l
|
|
20
|
-
} = T(), {
|
|
21
|
-
watch: N,
|
|
22
|
-
control: h
|
|
23
|
-
} = B(), u = U(null), i = S === "vendor";
|
|
24
|
-
return /* @__PURE__ */ a("div", { className: g("ttw:flex ttw:flex-col ttw:gap-4"), ref: u, children: [
|
|
25
|
-
d ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: /* @__PURE__ */ e(b, { variant: "body1", className: "ttw:font-medium", children: v ? l._("Editing address") : l._("Adding address") }) }) : /* @__PURE__ */ e(y, { children: !i && /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: /* @__PURE__ */ a(b, { variant: "body1", className: "ttw:font-medium", children: [
|
|
26
|
-
l._("Address"),
|
|
27
|
-
" ",
|
|
28
|
-
/* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground", children: l._("(optional)") })
|
|
29
|
-
] }) }) }),
|
|
30
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
31
|
-
/* @__PURE__ */ e(w, { name: "line1", control: h, render: ({
|
|
32
|
-
field: t,
|
|
33
|
-
fieldState: {
|
|
34
|
-
error: r
|
|
35
|
-
}
|
|
36
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
37
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Street address") }),
|
|
38
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
39
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
40
|
-
] }) }) }),
|
|
41
|
-
/* @__PURE__ */ e(w, { name: "line2", control: h, render: ({
|
|
42
|
-
field: t,
|
|
43
|
-
fieldState: {
|
|
44
|
-
error: r
|
|
45
|
-
}
|
|
46
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
47
|
-
/* @__PURE__ */ a(c, { htmlFor: t.name, className: "ttw:gap-1", children: [
|
|
48
|
-
l._("Apt, suite, floor, etc."),
|
|
49
|
-
i && /* @__PURE__ */ e(b, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: l._("(optional)") })
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
52
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
53
|
-
] }) }) })
|
|
54
|
-
] }),
|
|
55
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
56
|
-
/* @__PURE__ */ e(w, { name: "city", control: h, render: ({
|
|
57
|
-
field: t,
|
|
58
|
-
fieldState: {
|
|
59
|
-
error: r
|
|
60
|
-
}
|
|
61
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
62
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("City") }),
|
|
63
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
64
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
65
|
-
] }) }) }),
|
|
66
|
-
/* @__PURE__ */ e(w, { name: "state", control: h, render: ({
|
|
67
|
-
field: t,
|
|
68
|
-
fieldState: {
|
|
69
|
-
error: r
|
|
70
|
-
}
|
|
71
|
-
}) => N("country") === "US" ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
72
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
|
|
73
|
-
/* @__PURE__ */ a(F, { value: t.value ?? void 0, onValueChange: t.onChange, disabled: n, children: [
|
|
74
|
-
/* @__PURE__ */ e(_, { ref: t.ref, onBlur: t.onBlur, "aria-invalid": !!r || void 0, className: g("ttw:w-full", (d || i) && "ttw:bg-white"), disabled: n, children: /* @__PURE__ */ e(j, { placeholder: l._("Select a state") }) }),
|
|
75
|
-
/* @__PURE__ */ e(A, { children: Object.entries(x).map(([p, C]) => /* @__PURE__ */ a(E, { value: p, children: [
|
|
76
|
-
C,
|
|
77
|
-
" — ",
|
|
78
|
-
p
|
|
79
|
-
] }, p)) })
|
|
80
|
-
] }),
|
|
81
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
82
|
-
] }) }) : /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
83
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
|
|
84
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
85
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
86
|
-
] }) }) })
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
89
|
-
/* @__PURE__ */ e(w, { name: "postalCode", control: h, render: ({
|
|
90
|
-
field: t,
|
|
91
|
-
fieldState: {
|
|
92
|
-
error: r
|
|
93
|
-
}
|
|
94
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
95
|
-
/* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Postal code") }),
|
|
96
|
-
/* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
|
|
97
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
98
|
-
] }) }) }),
|
|
99
|
-
/* @__PURE__ */ e(w, { name: "country", control: h, render: ({
|
|
100
|
-
field: t,
|
|
101
|
-
fieldState: {
|
|
102
|
-
error: r
|
|
103
|
-
}
|
|
104
|
-
}) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
|
|
105
|
-
/* @__PURE__ */ e(c, { children: l._("Country") }),
|
|
106
|
-
/* @__PURE__ */ e(L, { value: t.value, className: d || i ? "ttw:bg-white" : "", onChange: t.onChange, invalid: !!r, disabled: n, container: u?.current, allowedCountries: ["US"] }),
|
|
107
|
-
/* @__PURE__ */ e(m, { errors: [r] })
|
|
108
|
-
] }) }) })
|
|
109
|
-
] })
|
|
110
|
-
] });
|
|
1
|
+
const a = (n) => !!n && typeof n == "object" && "display_organization_bank_account" in n, t = (n, i) => a(n) ? !!(n.display_organization_bank_account ?? i) : i, _ = (n, i) => {
|
|
2
|
+
const o = a(n?.invoice);
|
|
3
|
+
return {
|
|
4
|
+
...n,
|
|
5
|
+
display_organization_bank_account: i.invoice_bank_display,
|
|
6
|
+
quote: {
|
|
7
|
+
...n?.quote,
|
|
8
|
+
display_signature: i.quote_signature_display
|
|
9
|
+
},
|
|
10
|
+
...o ? {
|
|
11
|
+
invoice: {
|
|
12
|
+
...n?.invoice,
|
|
13
|
+
display_organization_bank_account: i.invoice_bank_display
|
|
14
|
+
}
|
|
15
|
+
} : {}
|
|
16
|
+
};
|
|
111
17
|
};
|
|
112
18
|
export {
|
|
113
|
-
|
|
19
|
+
_ as buildDocumentRendering,
|
|
20
|
+
t as getBankDisplayValue,
|
|
21
|
+
a as hasBankDisplay
|
|
114
22
|
};
|