@tesouro/embedded-components-react 0.2.111 → 0.2.112
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 +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/ReceivablesWidget.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.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/index109.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 +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +99 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +57 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +73 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +8 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +23 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +120 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +11 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +48 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +49 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +11 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +43 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +15 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +141 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +54 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +70 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +3 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +62 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +39 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +82 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +23 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +21 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +19 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +27 -205
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +105 -415
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +67 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +26 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +96 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +101 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +75 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +55 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +196 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +14 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +21 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +27 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +112 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +68 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +189 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +31 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +111 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +131 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +18 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +183 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +50 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +88 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +40 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +45 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +201 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +424 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +60 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +398 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +68 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +406 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +12 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +7 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +35 -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 +146 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +26 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +47 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +28 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +75 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +55 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +58 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +18 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +96 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +95 -246
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +191 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +42 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +58 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +29 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +113 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +21 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +54 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +484 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +156 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +35 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +341 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +302 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +97 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +158 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +265 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +25 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +18 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +36 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +34 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +66 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +345 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +2 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +17 -300
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +9 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +11 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +11 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +36 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +33 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +244 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +19 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +25 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +39 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +54 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +50 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +30 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +96 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +139 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +102 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +71 -283
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +44 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +27 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +38 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +58 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +110 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +86 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +62 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +159 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +29 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +78 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +66 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +22 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +32 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +14 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +14 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +79 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +76 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +40 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +21 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +19 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +171 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +127 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +159 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +18 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +65 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +55 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +6 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +8 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +23 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +62 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +25 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +126 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +65 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +134 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +112 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +79 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +283 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +48 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +15 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +83 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +219 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +35 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +10 -18
- 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 +11 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +6 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +2 -8
- 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 +93 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +16 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +82 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +17 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +50 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +12 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +47 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +255 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +32 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +31 -33
- 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 +4 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +125 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +119 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +53 -10
- 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 +18 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +69 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +95 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +36 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +35 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +44 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +39 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +35 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +43 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +22 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +66 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +36 -23
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +10 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +66 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +18 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +65 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +19 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +15 -16
- 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 +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +66 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +53 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +33 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +11 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +5 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +72 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +67 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +35 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +33 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +105 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +111 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +36 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +39 -16
- 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 +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +38 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +46 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +70 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +67 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +49 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +29 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +56 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +68 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +20 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +28 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +69 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +38 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +39 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +83 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +51 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +55 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +30 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +35 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +14 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +93 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +15 -33
- 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 +75 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +9 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +19 -39
- 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/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 +7 -7
- 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 +8 -8
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- 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/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 +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/onboarding-widget/ui/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/onboarding-widget/ui/dist/index6.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/profile-widget/ui/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index6.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js +53 -53
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index12.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index13.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index15.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index16.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index6.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/team-widget/ui/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/index4.js +29 -29
- package/dist/packages/shared-ui-shadcn/dist/index.js +892 -892
- package/package.json +1 -1
|
@@ -1,26 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as i, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCurrencies as v } from "./index58.js";
|
|
3
|
+
import { useId as P, useMemo as U, useCallback as h } from "react";
|
|
4
|
+
import "./index92.js";
|
|
5
|
+
import { useLingui as g } from "@lingui/react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "./index57.js";
|
|
8
|
+
import "@mui/x-data-grid";
|
|
9
|
+
import { zodResolver as x } from "@hookform/resolvers/zod";
|
|
10
|
+
import { Button as u } from "./index84.js";
|
|
11
|
+
import { LoadingSpinner as S } from "./index135.js";
|
|
12
|
+
import { useForm as _, FormProvider as C } from "react-hook-form";
|
|
13
|
+
import { useUpdateProduct as F } from "./index314.js";
|
|
14
|
+
import { getProductValidationSchema as N } from "./index170.js";
|
|
15
|
+
import { ProductFormContent as I } from "./index171.js";
|
|
16
|
+
const A = ({
|
|
17
|
+
product: r,
|
|
18
|
+
handleClose: l,
|
|
19
|
+
onUpdate: d
|
|
14
20
|
}) => {
|
|
15
21
|
const {
|
|
16
|
-
i18n:
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
i18n: o
|
|
23
|
+
} = g(), {
|
|
24
|
+
formatToMinorUnits: m,
|
|
25
|
+
formatFromMinorUnits: s
|
|
26
|
+
} = v(), f = `product-edit-form-${P()}`, {
|
|
27
|
+
mutate: p,
|
|
28
|
+
isPending: n
|
|
29
|
+
} = F(r.id), w = U(() => ({
|
|
30
|
+
name: r.name,
|
|
31
|
+
type: r.type ?? "product",
|
|
32
|
+
pricePerUnit: s(r.price?.value, r.price?.currency) ?? void 0,
|
|
33
|
+
currency: r.price?.currency ?? "USD",
|
|
34
|
+
description: r.description ?? "",
|
|
35
|
+
measureUnitId: r.measure_unit_id ?? void 0
|
|
36
|
+
}), [r.name, r.type, r.price?.value, r.price?.currency, r.description, r.measure_unit_id, s]), t = _({
|
|
37
|
+
resolver: x(N(o)),
|
|
38
|
+
defaultValues: w
|
|
39
|
+
}), y = h((a) => {
|
|
40
|
+
a.preventDefault(), a.stopPropagation(), t.handleSubmit((e) => {
|
|
41
|
+
p({
|
|
42
|
+
name: e.name,
|
|
43
|
+
type: e.type,
|
|
44
|
+
price: {
|
|
45
|
+
value: m(e.pricePerUnit, e.currency) ?? e.pricePerUnit,
|
|
46
|
+
currency: e.currency
|
|
47
|
+
},
|
|
48
|
+
description: e.description,
|
|
49
|
+
...e.measureUnitId ? {
|
|
50
|
+
measure_unit_id: e.measureUnitId
|
|
51
|
+
} : {}
|
|
52
|
+
}, {
|
|
53
|
+
onSuccess: (b) => {
|
|
54
|
+
d?.(b);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
})(a);
|
|
58
|
+
}, [p, m, d, t.handleSubmit]);
|
|
59
|
+
return /* @__PURE__ */ i(C, { ...t, children: /* @__PURE__ */ c("form", { id: f, onSubmit: y, 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: [
|
|
60
|
+
/* @__PURE__ */ i(I, { isLoading: n, isProduct: r?.type === "product", isEditMode: !0 }),
|
|
61
|
+
/* @__PURE__ */ c("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
|
|
62
|
+
/* @__PURE__ */ i(u, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", onClick: l, children: o._("Cancel") }),
|
|
63
|
+
/* @__PURE__ */ c(u, { type: "submit", className: "ttw:flex-1", disabled: n || !t.formState.isDirty, children: [
|
|
64
|
+
n && /* @__PURE__ */ i(S, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
65
|
+
o._("Save")
|
|
66
|
+
] })
|
|
67
|
+
] })
|
|
68
|
+
] }) });
|
|
23
69
|
};
|
|
24
70
|
export {
|
|
25
|
-
|
|
71
|
+
A as ProductEditForm
|
|
26
72
|
};
|
|
@@ -1,101 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
import "./index57.js";
|
|
5
|
-
import { useLingui as _ } from "@lingui/react";
|
|
6
|
-
import "./index92.js";
|
|
7
|
-
import { useFileInput as z } from "./index61.js";
|
|
8
|
-
import "react-dom";
|
|
9
|
-
import "@mui/x-data-grid";
|
|
10
|
-
import { Button as s } from "./index84.js";
|
|
11
|
-
import { Popover as D, PopoverTrigger as P, PopoverContent as k } from "./index392.js";
|
|
12
|
-
import { cn as F } from "./index100.js";
|
|
13
|
-
import { ChevronUpIcon as I, ChevronDownIcon as U, CloudUpload as j, Copy as A, Plus as E } from "lucide-react";
|
|
14
|
-
const K = ({
|
|
15
|
-
isCreateAllowed: u,
|
|
16
|
-
onCreateInvoice: h,
|
|
17
|
-
handleFileUpload: w
|
|
18
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as r } from "./index57.js";
|
|
2
|
+
const u = (t, e = !0) => {
|
|
19
3
|
const {
|
|
20
|
-
|
|
21
|
-
} =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} = z(), [g, i] = f(!1), v = (l) => {
|
|
26
|
-
l.preventDefault(), i(!0);
|
|
27
|
-
}, N = (l) => {
|
|
28
|
-
l.preventDefault(), i(!1);
|
|
29
|
-
}, d = 10, C = (l) => {
|
|
30
|
-
l.preventDefault(), i(!1);
|
|
31
|
-
const o = Array.from(l.dataTransfer.files);
|
|
32
|
-
if (o.length > d) {
|
|
33
|
-
n.error(e._("You can only upload up to {fileCount} files at a time", {
|
|
34
|
-
fileCount: d
|
|
35
|
-
})), a(!1);
|
|
36
|
-
return;
|
|
4
|
+
api: o
|
|
5
|
+
} = r();
|
|
6
|
+
return o.finops.getProductsId.useQuery({
|
|
7
|
+
path: {
|
|
8
|
+
product_id: t
|
|
37
9
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
n.error(p);
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
w(m);
|
|
45
|
-
}), a(!1);
|
|
46
|
-
};
|
|
47
|
-
return /* @__PURE__ */ t("div", { className: "Monite-Payables", children: /* @__PURE__ */ r(D, { open: c, onOpenChange: a, children: [
|
|
48
|
-
/* @__PURE__ */ t(P, { asChild: !0, children: /* @__PURE__ */ r(s, { size: "lg", disabled: !u, children: [
|
|
49
|
-
e._("Add new bill"),
|
|
50
|
-
c ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(U, {})
|
|
51
|
-
] }) }),
|
|
52
|
-
/* @__PURE__ */ r(k, { align: "end", className: "ttw:w-auto ttw:min-w-110 ttw:border-none ttw:p-6", children: [
|
|
53
|
-
/* @__PURE__ */ r("div", { className: "ttw:w-110 ttw:flex ttw:flex-col ttw:gap-4", onClick: (l) => {
|
|
54
|
-
l.preventDefault(), l.stopPropagation();
|
|
55
|
-
}, children: [
|
|
56
|
-
/* @__PURE__ */ r("div", { children: [
|
|
57
|
-
/* @__PURE__ */ t("h3", { className: "ttw:text-xl ttw:font-semibold ttw:text-zinc-950", children: e._("Upload bills") }),
|
|
58
|
-
/* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:text-zinc-500", children: e._("Upload your bills and we'll automatically pull the details so you can review and approve.") })
|
|
59
|
-
] }),
|
|
60
|
-
/* @__PURE__ */ t("div", { className: F("ttw:box-border ttw:cursor-pointer ttw:w-full ttw:h-36.5 ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:border ttw:rounded-lg ttw:border-dashed ttw:border-zinc-200 ttw:bg-zinc-50", g && "ttw:bg-transparent"), onDragOver: v, onDragLeave: N, onDrop: C, onClick: b, children: /* @__PURE__ */ r("div", { className: "ttw:mx-auto ttw:flex ttw:flex-col ttw:items-center ttw:gap-2", children: [
|
|
61
|
-
/* @__PURE__ */ t("div", { className: "ttw:w-11 ttw:h-11 ttw:rounded-full ttw:bg-primary ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(j, { className: "ttw:text-white ttw:size-5" }) }),
|
|
62
|
-
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-medium ttw:text-zinc-950", children: [
|
|
63
|
-
e._("Drop your files here, or"),
|
|
64
|
-
" ",
|
|
65
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline", children: e._("click to browse") })
|
|
66
|
-
] }),
|
|
67
|
-
/* @__PURE__ */ t("p", { className: "ttw:text-xs ttw:font-normal ttw:text-zinc-500", children: e._("PDF, PNG or JPG (max. 20MB)") })
|
|
68
|
-
] }) }),
|
|
69
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
70
|
-
/* @__PURE__ */ t("h3", { className: "ttw:text-primary ttw:text-sm ttw:font-semibold", children: e._("Send via email") }),
|
|
71
|
-
/* @__PURE__ */ t("p", { className: "ttw:text-zinc-500 ttw:font-normal ttw:text-sm", children: e._("Email your bills here and they'll appear in your bill pay inbox, ready to review and pay.") })
|
|
72
|
-
] }),
|
|
73
|
-
/* @__PURE__ */ r("div", { className: "ttw:px-3 ttw:h-14 ttw:border ttw:border-zinc-200 ttw:rounded-lg ttw:flex ttw:items-center ttw:justify-between ttw:gap-6", children: [
|
|
74
|
-
/* @__PURE__ */ t("span", { children: e._("bills@business-banking.com") }),
|
|
75
|
-
/* @__PURE__ */ r(s, { type: "button", variant: "ghost", size: "sm", className: "ttw:text-primary ttw:hover:bg-primary-foreground ttw:hover:text-primary", onClick: () => {
|
|
76
|
-
navigator.clipboard.writeText("bills@business-banking.com"), n.success(e._("Email address copied to clipboard"));
|
|
77
|
-
}, children: [
|
|
78
|
-
/* @__PURE__ */ t(A, {}),
|
|
79
|
-
e._("Copy")
|
|
80
|
-
] })
|
|
81
|
-
] }),
|
|
82
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
83
|
-
/* @__PURE__ */ t("h3", { className: "ttw:text-sm ttw:font-semibold ttw:text-primary", children: e._("Or add bill manually") }),
|
|
84
|
-
/* @__PURE__ */ r(s, { onClick: () => {
|
|
85
|
-
a(!1), h();
|
|
86
|
-
}, className: "ttw:w-fit ttw:bg-primary-foreground ttw:hover:bg-primary-foreground ttw:text-primary", children: [
|
|
87
|
-
/* @__PURE__ */ t(E, {}),
|
|
88
|
-
e._("Add new bill")
|
|
89
|
-
] })
|
|
90
|
-
] })
|
|
91
|
-
] }),
|
|
92
|
-
/* @__PURE__ */ t(x, { "aria-label": e._("Upload payable files"), multiple: !0, onChange: (l) => {
|
|
93
|
-
const o = l.target.files;
|
|
94
|
-
o && w(o), a(!1);
|
|
95
|
-
} })
|
|
96
|
-
] })
|
|
97
|
-
] }) });
|
|
10
|
+
}, {
|
|
11
|
+
enabled: e
|
|
12
|
+
});
|
|
98
13
|
};
|
|
99
14
|
export {
|
|
100
|
-
|
|
15
|
+
u as useGetProductById
|
|
101
16
|
};
|
|
@@ -1,59 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
function g(o, n) {
|
|
14
|
-
o.fontWeight !== void 0 && (n.fontWeight = o.fontWeight);
|
|
15
|
-
}
|
|
16
|
-
function p(o, n) {
|
|
17
|
-
o.boxShadow !== void 0 && (n.boxShadow = o.boxShadow);
|
|
18
|
-
}
|
|
19
|
-
function l(o, n) {
|
|
20
|
-
if (!o.transitionDuration && !o.transitionTimingFunction && !o.transitionProperty)
|
|
21
|
-
return;
|
|
22
|
-
const a = [], t = o.transitionProperty || "all";
|
|
23
|
-
a.push(t), o.transitionDuration && a.push(o.transitionDuration), o.transitionTimingFunction && a.push(o.transitionTimingFunction), n.transition = a.join(" ");
|
|
24
|
-
}
|
|
25
|
-
function y(o) {
|
|
26
|
-
if (!o) return {};
|
|
27
|
-
const n = {};
|
|
28
|
-
return u(o, n), c(o, n), b(o, n), g(o, n), p(o, n), l(o, n), n;
|
|
29
|
-
}
|
|
30
|
-
function f(o, n) {
|
|
31
|
-
return !n || !n[o] ? {} : y(n[o]);
|
|
32
|
-
}
|
|
33
|
-
function h(o) {
|
|
34
|
-
if (!o) return {};
|
|
35
|
-
const n = {};
|
|
36
|
-
return ["primary", "secondary", "tertiary", "destructive"].forEach((a) => {
|
|
37
|
-
const t = o[a];
|
|
38
|
-
if (!t) return;
|
|
39
|
-
const i = `--ttw-btn-payables-${a}`;
|
|
40
|
-
t.background && (n[`${i}-bg`] = t.background), t.color && (n[`${i}-color`] = t.color), t.border && (n[`${i}-border`] = t.border), t.borderRadius !== void 0 && (n[`${i}-radius`] = typeof t.borderRadius == "number" ? `${t.borderRadius}px` : t.borderRadius), t.fontWeight !== void 0 && (n[`${i}-weight`] = String(t.fontWeight)), t.boxShadow && (n[`${i}-shadow`] = t.boxShadow), t.transitionProperty && (n[`${i}-transition-property`] = t.transitionProperty), t.transitionDuration && (n[`${i}-transition-duration`] = t.transitionDuration), t.transitionTimingFunction && (n[`${i}-transition-timing`] = t.transitionTimingFunction), ["hover", "active", "focus", "disabled"].forEach((s) => {
|
|
41
|
-
const r = t[s];
|
|
42
|
-
if (!r) return;
|
|
43
|
-
const e = `${i}-${s}`;
|
|
44
|
-
r.background && (n[`${e}-bg`] = r.background), r.color && (n[`${e}-color`] = r.color), r.border && (n[`${e}-border`] = r.border), r.boxShadow && (n[`${e}-shadow`] = r.boxShadow);
|
|
45
|
-
});
|
|
46
|
-
}), n;
|
|
47
|
-
}
|
|
1
|
+
import { jsxs as i, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as e } from "./index85.js";
|
|
3
|
+
import { twMerge as s } from "tailwind-merge";
|
|
4
|
+
const w = ({
|
|
5
|
+
label: o,
|
|
6
|
+
value: t,
|
|
7
|
+
isLast: a
|
|
8
|
+
}) => /* @__PURE__ */ i("li", { className: s("ttw:flex ttw:gap-4 ttw:py-2.5", !a && "ttw:border-b ttw:border-border"), children: [
|
|
9
|
+
/* @__PURE__ */ r(e, { variant: "body2", color: "muted", className: "ttw:w-35 ttw:min-w-35 ttw:font-medium", children: o }),
|
|
10
|
+
typeof t == "string" ? /* @__PURE__ */ r(e, { variant: "body2", className: "ttw:font-medium", children: t }) : t
|
|
11
|
+
] });
|
|
48
12
|
export {
|
|
49
|
-
|
|
50
|
-
b as applyBorderStyles,
|
|
51
|
-
c as applyColorStyles,
|
|
52
|
-
p as applyShadowStyles,
|
|
53
|
-
l as applyTransitionStyles,
|
|
54
|
-
g as applyTypographyStyles,
|
|
55
|
-
h as generatePayablesButtonCssVars,
|
|
56
|
-
f as getButtonStateStyles,
|
|
57
|
-
y as getButtonStyles,
|
|
58
|
-
d as isGradient
|
|
13
|
+
w as ProductDetailLine
|
|
59
14
|
};
|
|
@@ -1,78 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */ a(o.Overlay, { "data-slot": "sheet-overlay", className: s("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:fixed ttw:inset-0 ttw:z-1300 ttw:bg-black/50", t), ...e });
|
|
26
|
-
}
|
|
27
|
-
function x({
|
|
28
|
-
className: t,
|
|
29
|
-
children: e,
|
|
30
|
-
side: n = "right",
|
|
31
|
-
container: l = typeof document < "u" ? document.body : null,
|
|
32
|
-
showCloseButton: r = !0,
|
|
33
|
-
...w
|
|
34
|
-
}) {
|
|
35
|
-
return /* @__PURE__ */ i(c, { container: l, children: [
|
|
36
|
-
/* @__PURE__ */ a(u, {}),
|
|
37
|
-
/* @__PURE__ */ i(o.Content, { "data-slot": "sheet-content", className: s("ttw:bg-background ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:fixed ttw:z-1300 ttw:flex ttw:flex-col ttw:gap-4 ttw:shadow-lg ttw:transition ttw:ease-in-out ttw:data-[state=closed]:duration-300 ttw:data-[state=open]:duration-500", n === "right" && "ttw:data-[state=closed]:slide-out-to-right ttw:data-[state=open]:slide-in-from-right ttw:inset-y-0 ttw:right-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", n === "left" && "ttw:data-[state=closed]:slide-out-to-left ttw:data-[state=open]:slide-in-from-left ttw:inset-y-0 ttw:left-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", n === "top" && "ttw:data-[state=closed]:slide-out-to-top ttw:data-[state=open]:slide-in-from-top ttw:inset-x-0 ttw:top-0 ttw:h-auto ttw:border-b", n === "bottom" && "ttw:data-[state=closed]:slide-out-to-bottom ttw:data-[state=open]:slide-in-from-bottom ttw:inset-x-0 ttw:bottom-0 ttw:h-auto ttw:border-t", t), ...w, children: [
|
|
38
|
-
e,
|
|
39
|
-
r && /* @__PURE__ */ i(o.Close, { className: "ttw:p-2 ttw:ring-offset-background ttw:focus:ring-ring ttw:data-[state=open]:bg-neutral ttw:absolute ttw:top-4 ttw:right-4 ttw:rounded-xs ttw:opacity-70 ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:ring-2 ttw:focus:ring-offset-2 ttw:focus:outline-hidden ttw:cursor-pointer ttw:disabled:pointer-events-none", children: [
|
|
40
|
-
/* @__PURE__ */ a(d, { className: "ttw:size-4" }),
|
|
41
|
-
/* @__PURE__ */ a("span", { className: "ttw:sr-only", children: "Close" })
|
|
42
|
-
] })
|
|
43
|
-
] })
|
|
44
|
-
] });
|
|
45
|
-
}
|
|
46
|
-
function b({
|
|
47
|
-
className: t,
|
|
48
|
-
...e
|
|
49
|
-
}) {
|
|
50
|
-
return /* @__PURE__ */ a("div", { "data-slot": "sheet-header", className: s("ttw:flex ttw:flex-col ttw:gap-1.5 ttw:p-4", t), ...e });
|
|
51
|
-
}
|
|
52
|
-
function N({
|
|
53
|
-
className: t,
|
|
54
|
-
...e
|
|
55
|
-
}) {
|
|
56
|
-
return /* @__PURE__ */ a("div", { "data-slot": "sheet-footer", className: s("ttw:mt-auto ttw:flex ttw:flex-col ttw:gap-2 ttw:p-4", t), ...e });
|
|
57
|
-
}
|
|
58
|
-
function y({
|
|
59
|
-
className: t,
|
|
60
|
-
...e
|
|
61
|
-
}) {
|
|
62
|
-
return /* @__PURE__ */ a(o.Title, { "data-slot": "sheet-title", className: s("ttw:text-foreground ttw:font-semibold", t), ...e });
|
|
63
|
-
}
|
|
64
|
-
function S({
|
|
65
|
-
className: t,
|
|
66
|
-
...e
|
|
67
|
-
}) {
|
|
68
|
-
return /* @__PURE__ */ a(o.Description, { "data-slot": "sheet-description", className: s("ttw:text-muted-foreground ttw:text-sm", t), ...e });
|
|
69
|
-
}
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createContext as i, useState as c, useCallback as d, useContext as h } from "react";
|
|
3
|
+
import { MoniteScopedProviders as l } from "./index83.js";
|
|
4
|
+
const n = i(null);
|
|
5
|
+
function g() {
|
|
6
|
+
const e = h(n);
|
|
7
|
+
if (!e)
|
|
8
|
+
throw new Error('Could not find DiscardChangesContext. Make sure that you are using "DiscardChangesContext" component before calling this hook.');
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
const m = ({
|
|
12
|
+
children: e
|
|
13
|
+
}) => /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(u, { children: e }) }), u = ({
|
|
14
|
+
children: e
|
|
15
|
+
}) => {
|
|
16
|
+
const [r, t] = c(!1), s = d((a) => {
|
|
17
|
+
t(a);
|
|
18
|
+
}, []);
|
|
19
|
+
return /* @__PURE__ */ o(n.Provider, { value: {
|
|
20
|
+
handleShowModal: s,
|
|
21
|
+
shouldShowChangesModal: r
|
|
22
|
+
}, children: e });
|
|
23
|
+
};
|
|
70
24
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
S as SheetDescription,
|
|
75
|
-
N as SheetFooter,
|
|
76
|
-
b as SheetHeader,
|
|
77
|
-
y as SheetTitle
|
|
25
|
+
n as DiscardChangesContext,
|
|
26
|
+
m as DiscardChangesContextProvider,
|
|
27
|
+
g as useDiscardChangesContext
|
|
78
28
|
};
|
|
@@ -1,8 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as O } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as v } from "react";
|
|
3
|
+
import { toast as I } from "react-hot-toast";
|
|
4
|
+
import "./index57.js";
|
|
5
|
+
import { useLingui as $ } from "@lingui/react";
|
|
6
|
+
import "./index92.js";
|
|
7
|
+
import { useFileInput as z, LOGO_SUPPORTED_FORMATS as C, LOGO_MAX_FILE_SIZE_IN_MB as M } from "./index61.js";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "@mui/x-data-grid";
|
|
10
|
+
import "@tanstack/react-query";
|
|
11
|
+
import "date-fns";
|
|
12
|
+
import { useMyEntity as P } from "./index78.js";
|
|
13
|
+
import { SquarePen as T, Trash2 as k } from "lucide-react";
|
|
14
|
+
import { Button as x } from "./index84.js";
|
|
15
|
+
import { Typography as l } from "./index85.js";
|
|
16
|
+
import { useUploadEntityLogo as B } from "./index420.js";
|
|
17
|
+
import { useDeleteEntityLogo as U } from "./index421.js";
|
|
18
|
+
import { DragAndDropBox as A } from "./index422.js";
|
|
19
|
+
import { Skeleton as j } from "./index136.js";
|
|
20
|
+
const st = () => {
|
|
21
|
+
const {
|
|
22
|
+
i18n: o
|
|
23
|
+
} = $(), {
|
|
24
|
+
data: i,
|
|
25
|
+
isLoading: m
|
|
26
|
+
} = P(), c = i?.id ?? "", {
|
|
27
|
+
FileInput: D,
|
|
28
|
+
openFileInput: d,
|
|
29
|
+
checkFileError: N,
|
|
30
|
+
resetInput: p
|
|
31
|
+
} = z({
|
|
32
|
+
acceptedFormats: C,
|
|
33
|
+
maxFileSizeInMB: M
|
|
34
|
+
}), [f, s] = v(!1), [g, n] = v(""), {
|
|
35
|
+
mutateAsync: _,
|
|
36
|
+
isSuccess: b,
|
|
37
|
+
isError: w,
|
|
38
|
+
isPending: u,
|
|
39
|
+
reset: E
|
|
40
|
+
} = B(), {
|
|
41
|
+
mutate: S,
|
|
42
|
+
isPending: F
|
|
43
|
+
} = U(c);
|
|
44
|
+
async function h(t) {
|
|
45
|
+
if (t) {
|
|
46
|
+
const a = N(t);
|
|
47
|
+
if (a) {
|
|
48
|
+
I.error(a);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
n(t.name), await _({
|
|
52
|
+
body: {
|
|
53
|
+
file: t
|
|
54
|
+
},
|
|
55
|
+
path: {
|
|
56
|
+
entity_id: c
|
|
57
|
+
}
|
|
58
|
+
}), p(), n("");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const L = u || w, y = !!i?.logo && !g && !L && !m;
|
|
62
|
+
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
63
|
+
/* @__PURE__ */ r("div", { className: "ttw:pt-5 ttw:pb-2.5 ttw:flex ttw:flex-col ttw:gap-1.5", children: [
|
|
64
|
+
/* @__PURE__ */ e(l, { variant: "h3", children: o._("Branding") }),
|
|
65
|
+
/* @__PURE__ */ e(l, { variant: "body2", color: "muted", children: o._("Control how your invoices will appear to your customers by adding your company's logo. Changes apply to new invoices only.") })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", onDragEnter: (t) => {
|
|
68
|
+
t.preventDefault(), s(!0);
|
|
69
|
+
}, onDragLeave: (t) => {
|
|
70
|
+
t.preventDefault(), s(!1);
|
|
71
|
+
}, onDragOver: (t) => t.preventDefault(), onDrop: (t) => {
|
|
72
|
+
t.preventDefault(), s(!1);
|
|
73
|
+
const a = t.dataTransfer?.files ? t.dataTransfer?.files?.[0] : null;
|
|
74
|
+
h(a);
|
|
75
|
+
}, children: [
|
|
76
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
77
|
+
/* @__PURE__ */ e(l, { variant: "body1", className: "ttw:font-medium", children: o._("Upload your company logo") }),
|
|
78
|
+
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:leading-5", color: "muted", children: o._("Proudly display your logo on all your invoices.") })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:items-end ttw:gap-2", children: [
|
|
81
|
+
m ? /* @__PURE__ */ e(j, { className: "ttw:w-full ttw:h-38 ttw:bg-zinc-200" }) : /* @__PURE__ */ e(O, { children: y ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:w-full ttw:h-38 ttw:box-border", children: /* @__PURE__ */ e("img", { src: i?.logo?.url, className: "ttw:w-auto ttw:max-w-full ttw:object-contain ttw:max-h-38", alt: o._("Organization logo") }) }) : /* @__PURE__ */ e(A, { isUploading: u, isSuccess: b, isError: w, isDraggingOver: f, fileName: g, resetUpload: () => {
|
|
82
|
+
p(), E(), n("");
|
|
83
|
+
}, onClick: d }) }),
|
|
84
|
+
!f && y && /* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
85
|
+
/* @__PURE__ */ e(x, { variant: "ghost", size: "sm", onClick: d, "aria-label": o._("Edit logo"), children: /* @__PURE__ */ e(T, { className: "ttw:size-4 ttw:w-fit" }) }),
|
|
86
|
+
i?.logo && /* @__PURE__ */ e(x, { variant: "ghost", size: "sm", disabled: F, "aria-label": o._("Delete logo"), onClick: () => S(), children: /* @__PURE__ */ e(k, { className: "ttw:size-4" }) })
|
|
87
|
+
] })
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ e(D, { onChange: (t) => {
|
|
90
|
+
const a = t.target.files ? t.target.files[0] : null;
|
|
91
|
+
h(a);
|
|
92
|
+
} })
|
|
93
|
+
] })
|
|
94
|
+
] });
|
|
95
|
+
};
|
|
6
96
|
export {
|
|
7
|
-
|
|
97
|
+
st as LogoSection
|
|
8
98
|
};
|
|
@@ -1,35 +1,103 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
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
|
-
|
|
1
|
+
import { jsx as r, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as h } from "./index84.js";
|
|
3
|
+
import { PDFSettings as q } from "./index237.js";
|
|
4
|
+
import { useForm as S, FormProvider as D } from "react-hook-form";
|
|
5
|
+
import { useLingui as k } from "@lingui/react";
|
|
6
|
+
import { useDiscardChangesContext as N } from "./index175.js";
|
|
7
|
+
import { usePatchEntitySettings as w } from "./index238.js";
|
|
8
|
+
import { safeZodResolver as F } from "./index239.js";
|
|
9
|
+
import { useEffect as P } from "react";
|
|
10
|
+
import { InvoiceNumbering as C } from "./index240.js";
|
|
11
|
+
import { getInvoiceSettingsFormSchema as I } from "./index241.js";
|
|
12
|
+
import { getBankDisplayValue as d, buildDocumentRendering as V } from "./index242.js";
|
|
13
|
+
const Z = ({
|
|
14
|
+
entityId: _,
|
|
15
|
+
entitySettings: e,
|
|
16
|
+
nextNumbers: i,
|
|
17
|
+
isDialog: c
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
i18n: a
|
|
21
|
+
} = k(), {
|
|
22
|
+
handleShowModal: s
|
|
23
|
+
} = N(), {
|
|
24
|
+
mutate: m,
|
|
25
|
+
isPending: p
|
|
26
|
+
} = w(_), o = S({
|
|
27
|
+
resolver: F(I(a, i)),
|
|
28
|
+
defaultValues: {
|
|
29
|
+
credit_note: e?.document_ids?.document_type_prefix?.credit_note ?? "CN",
|
|
30
|
+
credit_note_number: i?.credit_note ?? 1,
|
|
31
|
+
delivery_note: e?.document_ids?.document_type_prefix?.delivery_note ?? "DN",
|
|
32
|
+
delivery_note_number: i?.delivery_note ?? 1,
|
|
33
|
+
invoice: e?.document_ids?.document_type_prefix?.invoice ?? "INV",
|
|
34
|
+
invoice_number: i?.invoice ?? 1,
|
|
35
|
+
purchase_order: e?.document_ids?.document_type_prefix?.purchase_order ?? "PO",
|
|
36
|
+
purchase_order_number: i?.purchase_order ?? 1,
|
|
37
|
+
quote: e?.document_ids?.document_type_prefix?.quote ?? "Q",
|
|
38
|
+
quote_number: i?.quote ?? 1,
|
|
39
|
+
include_date: e?.document_ids?.include_date ?? !1,
|
|
40
|
+
min_digits: e?.document_ids?.min_digits ?? 5,
|
|
41
|
+
prefix: e?.document_ids?.prefix ?? "",
|
|
42
|
+
separator: e?.document_ids?.separator ?? "-",
|
|
43
|
+
invoice_bank_display: d(e?.document_rendering?.invoice, !!(e?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
44
|
+
credit_note_bank_display: d(e?.document_rendering?.credit_note, !!(e?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
45
|
+
quote_bank_display: d(e?.document_rendering?.quote, !!(e?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
46
|
+
update_paid_invoices: e?.generate_paid_invoice_pdf ?? !1,
|
|
47
|
+
quote_signature_display: e?.document_rendering?.quote?.display_signature ?? !1,
|
|
48
|
+
quote_electronic_signature: e?.quote_signature_required ?? !1
|
|
49
|
+
}
|
|
50
|
+
}), {
|
|
51
|
+
control: u,
|
|
52
|
+
handleSubmit: l,
|
|
53
|
+
formState: n,
|
|
54
|
+
reset: g
|
|
55
|
+
} = o, f = (t) => {
|
|
56
|
+
const {
|
|
57
|
+
dirtyFields: y
|
|
58
|
+
} = n, v = V(e?.document_rendering, t), b = y.invoice_number;
|
|
59
|
+
m({
|
|
60
|
+
path: {
|
|
61
|
+
entity_id: _
|
|
62
|
+
},
|
|
63
|
+
body: {
|
|
64
|
+
...e,
|
|
65
|
+
document_ids: {
|
|
66
|
+
document_type_prefix: {
|
|
67
|
+
invoice: t.invoice,
|
|
68
|
+
credit_note: t.credit_note,
|
|
69
|
+
delivery_note: t.delivery_note,
|
|
70
|
+
purchase_order: t.purchase_order,
|
|
71
|
+
quote: t.quote
|
|
72
|
+
},
|
|
73
|
+
...b && {
|
|
74
|
+
next_number: {
|
|
75
|
+
invoice: t.invoice_number
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
min_digits: t.min_digits,
|
|
79
|
+
separator: t.separator,
|
|
80
|
+
include_date: t.include_date,
|
|
81
|
+
prefix: t.prefix || null
|
|
82
|
+
},
|
|
83
|
+
document_rendering: v,
|
|
84
|
+
generate_paid_invoice_pdf: t.update_paid_invoices,
|
|
85
|
+
quote_signature_required: t.quote_electronic_signature === !0 || t.quote_electronic_signature === "true"
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
onSuccess: () => {
|
|
89
|
+
g(o.getValues());
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
return P(() => {
|
|
94
|
+
s(n?.isDirty);
|
|
95
|
+
}, [n?.isDirty, s]), /* @__PURE__ */ r(D, { ...o, children: /* @__PURE__ */ x("form", { className: "ttw:flex ttw:flex-col ttw:gap-6", onSubmit: l(f), children: [
|
|
96
|
+
/* @__PURE__ */ r(C, { control: u }),
|
|
97
|
+
/* @__PURE__ */ r(q, { control: u, isDialog: c }),
|
|
98
|
+
/* @__PURE__ */ r(h, { type: "submit", className: "ttw:w-fit", disabled: p || !n?.isDirty, children: a._("Save changes") })
|
|
99
|
+
] }) });
|
|
100
|
+
};
|
|
30
101
|
export {
|
|
31
|
-
|
|
32
|
-
m as DropdownMenuContent,
|
|
33
|
-
p as DropdownMenuItem,
|
|
34
|
-
c as DropdownMenuTrigger
|
|
102
|
+
Z as TemplateSettingsContent
|
|
35
103
|
};
|