@tesouro/embedded-components-react 0.2.16 → 0.2.18
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 +0 -13
- package/dist/lib/ReceivablesWidget.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +13 -20
- 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/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -2
- 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 +2 -13
- 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 +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +25 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +8 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +93 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +101 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +17 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +14 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +24 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +48 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +70 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +29 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +3 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +61 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +81 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +97 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +57 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +36 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +55 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +196 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +14 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +77 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +247 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +180 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +14 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +109 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +78 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +107 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +110 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +53 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +61 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +87 -57
- 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 +45 -194
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +37 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +112 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +67 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +186 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +30 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +52 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +20 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +19 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +10 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +18 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +4 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +5 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +8 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +20 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +19 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +13 -235
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +89 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +22 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +9 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +18 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +22 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +115 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +66 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +59 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +397 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +68 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +2 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +406 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +35 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +100 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +10 -7
- 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 +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +18 -28
- 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 +165 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +130 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +14 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +162 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +18 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +62 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +65 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +59 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +7 -62
- 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 +9 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +61 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +63 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +14 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +22 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +52 -340
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +27 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +56 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +15 -157
- 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 +72 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +44 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +342 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +303 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +100 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +157 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +250 -474
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +23 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +20 -2
- 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 +39 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +61 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +31 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +113 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +22 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +41 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +52 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +67 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +10 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +2 -2
- 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 +49 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +62 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +24 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +127 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +23 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +39 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +94 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +109 -23
- 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 +85 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +484 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +164 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +149 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +19 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +45 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +31 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +6 -126
- 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 +103 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +26 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +34 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +54 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +20 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +37 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +48 -58
- 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 +97 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +46 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +41 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +56 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +91 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +126 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +36 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +16 -134
- 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 +10 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +41 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +2 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +94 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +94 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +192 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +157 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +27 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +27 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +78 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +38 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +14 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +76 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +76 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +41 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +62 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +43 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +23 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +185 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +98 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +81 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +289 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +43 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +86 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +214 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +30 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +50 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +106 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +11 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +255 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +14 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +50 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +7 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +51 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +15 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +94 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +30 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +33 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +17 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +66 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +46 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +25 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +20 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +70 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +153 -177
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +29 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +53 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +24 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +23 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +72 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +94 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +102 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +110 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +13 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +56 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +127 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +27 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +38 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +14 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +19 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +11 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +33 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +85 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +39 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +12 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +28 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +23 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +18 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +91 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +21 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +9 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +57 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +71 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +18 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +59 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +29 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +29 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +50 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +35 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +13 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +29 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +39 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +82 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +49 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +37 -44
- 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 +46 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +70 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +83 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +52 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +52 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +53 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +54 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +66 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +37 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +46 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +56 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +41 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +19 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +48 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +8 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.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/index60.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +24 -24
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +0 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +0 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +0 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +0 -10
|
@@ -1,117 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { EntityProfileFormContent as y } from "./index445.js";
|
|
4
|
-
import "react-hot-toast";
|
|
5
|
-
import "./index59.js";
|
|
6
|
-
import { useLingui as _ } from "@lingui/react";
|
|
7
|
-
import { useMemo as h } from "react";
|
|
8
|
-
import "date-fns";
|
|
9
|
-
import { useUserPermissions as v } from "./index137.js";
|
|
10
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
11
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
12
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
13
|
-
import "@tanstack/react-query";
|
|
14
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
15
|
-
import { Scope as g } from "../../shared/data-access/dist/lib/scopes.js";
|
|
16
|
-
import "clsx";
|
|
17
|
-
import "tailwind-merge";
|
|
18
|
-
import "@radix-ui/react-dropdown-menu";
|
|
19
|
-
import "lucide-react";
|
|
20
|
-
import { Button as m } from "./index86.js";
|
|
21
|
-
import { usePatchEntityById as w } from "./index421.js";
|
|
22
|
-
import "./index94.js";
|
|
23
|
-
import "react-dom";
|
|
24
|
-
import "@mui/x-data-grid";
|
|
25
|
-
import { useForm as x } from "react-hook-form";
|
|
26
|
-
import { useMyEntity as b } from "./index80.js";
|
|
27
|
-
import "./index52.js";
|
|
28
|
-
import "@mui/icons-material/ArrowBack";
|
|
29
|
-
import "@mui/icons-material/Close";
|
|
30
|
-
import "@mui/material/IconButton";
|
|
31
|
-
import "@mui/material/Tooltip";
|
|
32
|
-
import { AccessRestrictionModal as D } from "./index381.js";
|
|
33
|
-
import { Dialog as C, DialogContent as z, DialogHeader as E, DialogTitle as S, DialogDescription as P, DialogFooter as F } from "./index206.js";
|
|
34
|
-
import { Form as M } from "./index266.js";
|
|
35
|
-
import { zodResolver as N } from "@hookform/resolvers/zod";
|
|
36
|
-
const $ = (t) => {
|
|
37
|
-
const o = {
|
|
38
|
-
email: t.email || void 0,
|
|
39
|
-
tax_id: t.tax_id || void 0,
|
|
40
|
-
address_line_1: t.address.line1 || void 0,
|
|
41
|
-
address_line_2: t.address.line2 || void 0,
|
|
42
|
-
city: t.address.city || void 0,
|
|
43
|
-
postal_code: t.address.postal_code || void 0,
|
|
44
|
-
state: t.address.state || void 0,
|
|
45
|
-
country: t.address.country || void 0,
|
|
46
|
-
phone: t.phone || void 0,
|
|
47
|
-
website: t.website || void 0
|
|
48
|
-
};
|
|
49
|
-
return "organization" in t ? {
|
|
50
|
-
name: t.organization.legal_name || void 0,
|
|
51
|
-
...o
|
|
52
|
-
} : {
|
|
53
|
-
title: t.individual.title || void 0,
|
|
54
|
-
name: t.individual.first_name || void 0,
|
|
55
|
-
surname: t.individual.last_name || void 0,
|
|
56
|
-
...o
|
|
57
|
-
};
|
|
58
|
-
}, O = ({
|
|
59
|
-
open: t,
|
|
60
|
-
onClose: o,
|
|
61
|
-
entity: r
|
|
62
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as e } from "./index59.js";
|
|
2
|
+
const a = () => {
|
|
63
3
|
const {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
d({
|
|
76
|
-
email: i.email || null,
|
|
77
|
-
website: i.website || null,
|
|
78
|
-
phone: i.phone || null,
|
|
79
|
-
tax_id: i.tax_id || null,
|
|
80
|
-
address: {
|
|
81
|
-
line1: i.address_line_1 || null,
|
|
82
|
-
line2: i.address_line_2 || null,
|
|
83
|
-
city: i.city || null,
|
|
84
|
-
postal_code: i.postal_code || null,
|
|
85
|
-
state: i.state || null
|
|
86
|
-
},
|
|
87
|
-
...r.type === "individual" ? {
|
|
88
|
-
title: i.title || null,
|
|
89
|
-
first_name: i.name || null,
|
|
90
|
-
last_name: i.surname || null
|
|
91
|
-
} : {
|
|
92
|
-
organization: {
|
|
93
|
-
legal_name: i.name || null
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}), children: /* @__PURE__ */ l(z, { className: "ttw:max-h-4/5 ttw:overflow-y-auto", children: [
|
|
98
|
-
/* @__PURE__ */ l(E, { children: [
|
|
99
|
-
/* @__PURE__ */ e(S, { className: "ttw:text-2xl ttw:font-semibold ttw:leading-8", children: n._("Edit my organization profile") }),
|
|
100
|
-
/* @__PURE__ */ e(P, { hidden: !0, children: n._("Edit your organization profile to update your information.") })
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-6", children: /* @__PURE__ */ e(y, { entityType: r.type }) }),
|
|
103
|
-
/* @__PURE__ */ l(F, { children: [
|
|
104
|
-
/* @__PURE__ */ e(m, { variant: "ghost", onClick: o, children: n._("Cancel") }),
|
|
105
|
-
/* @__PURE__ */ e(m, { type: "submit", form: a, disabled: !c.isDirty, children: n._("Save") })
|
|
106
|
-
] })
|
|
107
|
-
] }) }) }) });
|
|
108
|
-
}, yt = (t) => {
|
|
109
|
-
const {
|
|
110
|
-
data: o,
|
|
111
|
-
isLoading: r
|
|
112
|
-
} = b();
|
|
113
|
-
return v().has(g.OrganizationWriteOrg) ? r || !o ? null : /* @__PURE__ */ e(O, { ...t, entity: o }) : /* @__PURE__ */ e(D, { open: t.open, onClose: t.onClose });
|
|
4
|
+
api: t,
|
|
5
|
+
queryClient: i
|
|
6
|
+
} = e();
|
|
7
|
+
return t.finops.putEntitiesIdLogo.useMutation(void 0, {
|
|
8
|
+
onSuccess: async (s) => {
|
|
9
|
+
t.finops.getEntityUsersMyEntity.setQueryData({}, (o) => o && {
|
|
10
|
+
...o,
|
|
11
|
+
logo: s
|
|
12
|
+
}, i), await t.finops.getEntityUsersMyEntity.invalidateQueries(i);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
114
15
|
};
|
|
115
16
|
export {
|
|
116
|
-
|
|
17
|
+
a as useUploadEntityLogo
|
|
117
18
|
};
|
|
@@ -1,46 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { Alert as x } from "./index159.js";
|
|
6
|
-
import { Button as s } from "./index86.js";
|
|
7
|
-
import { Dialog as S, DialogContent as _, DialogHeader as k, DialogTitle as L, DialogDescription as A, DialogFooter as G } from "./index206.js";
|
|
8
|
-
import { Typography as I } from "./index87.js";
|
|
9
|
-
import { MoniteCurrencyShadcn as N } from "./index447.js";
|
|
10
|
-
import { useLingui as $ } from "@lingui/react";
|
|
11
|
-
const V = ({
|
|
12
|
-
open: l,
|
|
13
|
-
handleClose: i,
|
|
14
|
-
currentCurrency: o,
|
|
15
|
-
updateCurrentCurrency: u,
|
|
16
|
-
hasValidLineItemsSelected: m,
|
|
17
|
-
clearLineItems: d
|
|
18
|
-
}) => {
|
|
1
|
+
import { toast as o } from "react-hot-toast";
|
|
2
|
+
import { useMoniteContext as n } from "./index59.js";
|
|
3
|
+
import { useLingui as r } from "@lingui/react";
|
|
4
|
+
const p = (i) => {
|
|
19
5
|
const {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ t(G, { children: [
|
|
39
|
-
/* @__PURE__ */ e(s, { variant: "ghost", onClick: i, children: r._("Cancel") }),
|
|
40
|
-
/* @__PURE__ */ e(s, { onClick: f, children: r._("Save") })
|
|
41
|
-
] })
|
|
42
|
-
] }) });
|
|
6
|
+
api: t,
|
|
7
|
+
queryClient: s
|
|
8
|
+
} = n(), {
|
|
9
|
+
i18n: e
|
|
10
|
+
} = r();
|
|
11
|
+
return t.finops.deleteEntitiesIdLogo.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
entity_id: i
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async () => {
|
|
17
|
+
await t.finops.getEntityUsersMyEntity.invalidateQueries(s), o.success(e._("Logo was removed."));
|
|
18
|
+
},
|
|
19
|
+
onError: () => {
|
|
20
|
+
o.error(e._("Failed to remove logo."));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
43
23
|
};
|
|
44
24
|
export {
|
|
45
|
-
|
|
25
|
+
p as useDeleteEntityLogo
|
|
46
26
|
};
|
|
@@ -1,13 +1,52 @@
|
|
|
1
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as t, jsxs as e, Fragment as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import { useLingui as h } from "@lingui/react";
|
|
4
|
+
import { X as g, CloudUpload as x, AlertCircle as N, CheckCircle2 as b } from "lucide-react";
|
|
5
|
+
import { LoadingSpinner as y } from "./index140.js";
|
|
6
|
+
import { Typography as l } from "./index87.js";
|
|
7
|
+
import { twMerge as v } from "tailwind-merge";
|
|
8
|
+
import { UploadBar as C } from "./index445.js";
|
|
9
|
+
const U = ({
|
|
10
|
+
isUploading: o,
|
|
11
|
+
isSuccess: r,
|
|
12
|
+
isError: i,
|
|
13
|
+
isDraggingOver: d,
|
|
14
|
+
resetUpload: a,
|
|
15
|
+
fileName: m,
|
|
16
|
+
onClick: u
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
i18n: s
|
|
20
|
+
} = h(), w = o || r || i;
|
|
21
|
+
function p() {
|
|
22
|
+
return i ? /* @__PURE__ */ t(N, { className: "ttw:size-5 ttw:text-danger" }) : r ? /* @__PURE__ */ t(b, { className: "ttw:size-5 ttw:text-success" }) : /* @__PURE__ */ t(y, { className: "ttw:w-5 ttw:h-5" });
|
|
23
|
+
}
|
|
24
|
+
return f(() => {
|
|
25
|
+
let n;
|
|
26
|
+
return r && (n = setTimeout(() => a(), 2e3)), () => clearTimeout(n);
|
|
27
|
+
}, [r, a]), /* @__PURE__ */ t("div", { className: v("ttw:w-full ttw:h-38 ttw:bg-white ttw:box-border ttw:transition-all ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:px-4 ttw:py-6", d ? "ttw:border-solid ttw:border-primary" : "ttw:border-dashed ttw:border-border"), onClick: () => {
|
|
28
|
+
w || u();
|
|
29
|
+
}, children: w ? /* @__PURE__ */ e(c, { children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-4 ttw:justify-center ttw:w-full", children: [
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:w-1/2 ttw:items-center", children: [
|
|
32
|
+
p(),
|
|
33
|
+
/* @__PURE__ */ t("span", { className: "ttw:w-full ttw:text-sm ttw:leading-5 ttw:text-medium ttw:text-neutral ttw:truncate", children: m })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:items-center", children: [
|
|
36
|
+
/* @__PURE__ */ t(C, { shouldStartProgress: o, isError: i, isSuccess: r }),
|
|
37
|
+
i && /* @__PURE__ */ t("button", { type: "button", disabled: o, onClick: a, className: "ttw:border-none ttw:cursor-pointer", children: /* @__PURE__ */ t(g, { className: "ttw:size-4" }) })
|
|
38
|
+
] })
|
|
39
|
+
] }),
|
|
40
|
+
i && /* @__PURE__ */ t(l, { variant: "body2", color: "destructive", className: "ttw:font-medium", children: s._("Wrong file format. Please, upload the file in JPEG, PNG or GIF format.") })
|
|
41
|
+
] }) : /* @__PURE__ */ e(c, { children: [
|
|
42
|
+
/* @__PURE__ */ t("div", { className: "ttw:p-3 ttw:bg-primary ttw:rounded-full", children: /* @__PURE__ */ t(x, { className: "ttw:text-white ttw:size-5" }) }),
|
|
43
|
+
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:font-medium", children: [
|
|
44
|
+
s._("Drop your files here, or "),
|
|
45
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline ttw:hover:cursor-pointer", children: s._("click to browse") })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ t(l, { variant: "caption", color: "muted", children: s._("PNG, JPG or GIF (max. 10MB)") })
|
|
48
|
+
] }) });
|
|
49
|
+
};
|
|
11
50
|
export {
|
|
12
|
-
|
|
51
|
+
U as DragAndDropBox
|
|
13
52
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Switch as a } from "radix-ui";
|
|
3
|
+
import { cn as e } from "./index102.js";
|
|
4
|
+
function o({
|
|
5
|
+
className: s,
|
|
6
|
+
size: r = "default",
|
|
7
|
+
...i
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ t(a.Root, { "data-slot": "switch", "data-size": r, className: e("ttw:peer ttw:group/switch ttw:inline-flex ttw:shrink-0 ttw:items-center ttw:rounded-full ttw:border ttw:border-transparent ttw:shadow-xs ttw:transition-all ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-[1.15rem] ttw:data-[size=default]:w-8 ttw:data-[size=sm]:h-3.5 ttw:data-[size=sm]:w-6 ttw:data-[state=checked]:bg-primary ttw:data-[state=unchecked]:bg-input ttw:dark:data-[state=unchecked]:bg-input/80", s), ...i, children: /* @__PURE__ */ t(a.Thumb, { "data-slot": "switch-thumb", className: e("ttw:pointer-events-none ttw:block ttw:rounded-full ttw:bg-background ttw:ring-0 ttw:transition-transform ttw:group-data-[size=default]/switch:size-4 ttw:group-data-[size=sm]/switch:size-3 ttw:data-[state=checked]:translate-x-[calc(100%-2px)] ttw:data-[state=unchecked]:translate-x-0 ttw:dark:data-[state=checked]:bg-primary-foreground ttw:dark:data-[state=unchecked]:bg-foreground") }) });
|
|
10
|
+
}
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
o as Switch
|
|
9
13
|
};
|
|
@@ -1,56 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { Autocomplete as M, TextField as O, CircularProgress as v } from "@mui/material";
|
|
8
|
-
const $ = ({
|
|
9
|
-
onChange: l,
|
|
10
|
-
className: p
|
|
11
|
-
}) => {
|
|
12
|
-
const {
|
|
13
|
-
i18n: r
|
|
14
|
-
} = F(), {
|
|
15
|
-
api: d
|
|
16
|
-
} = y(), {
|
|
17
|
-
root: u
|
|
18
|
-
} = I(), [i, s] = n(!1), [m, c] = n(null), [f, g] = n(""), {
|
|
19
|
-
data: C,
|
|
20
|
-
isLoading: a,
|
|
21
|
-
refetch: A
|
|
22
|
-
} = d.finops.getEntityUsers.useQuery({
|
|
23
|
-
query: {
|
|
24
|
-
name__istartswith: f || void 0
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
enabled: i
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ o(M, { autoComplete: !0, includeInputInList: !0, filterSelectedOptions: !0, value: m, noOptionsText: r._("No users found"), slotProps: {
|
|
30
|
-
popper: {
|
|
31
|
-
container: u
|
|
32
|
-
}
|
|
33
|
-
}, open: i, onOpen: () => {
|
|
34
|
-
s(!0);
|
|
35
|
-
}, onClose: () => {
|
|
36
|
-
s(!1);
|
|
37
|
-
}, loading: a, options: C?.data || [], getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(), isOptionEqualToValue: (e, t) => e.id === t.id, filterOptions: (e) => e, onInputChange: (e, t) => {
|
|
38
|
-
g(t);
|
|
39
|
-
}, onChange: (e, t) => {
|
|
40
|
-
c(t), l(t?.id), A();
|
|
41
|
-
}, className: _("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", p), sx: {
|
|
42
|
-
"&.MuiAutocomplete-root": {
|
|
43
|
-
display: "flex",
|
|
44
|
-
alignItems: "center"
|
|
45
|
-
}
|
|
46
|
-
}, renderInput: (e) => /* @__PURE__ */ o(O, { ...e, variant: "standard", placeholder: r._("Added by"), className: "Monite-ApprovalAddedByFilter Monite-FilterControl", InputProps: {
|
|
47
|
-
...e.InputProps,
|
|
48
|
-
endAdornment: /* @__PURE__ */ h(x, { children: [
|
|
49
|
-
a ? /* @__PURE__ */ o(v, { color: "inherit", size: 20 }) : null,
|
|
50
|
-
e.InputProps.endAdornment
|
|
51
|
-
] })
|
|
52
|
-
} }) });
|
|
53
|
-
};
|
|
1
|
+
const t = (e) => ({
|
|
2
|
+
approved: e._("Approved"),
|
|
3
|
+
canceled: e._("Canceled"),
|
|
4
|
+
rejected: e._("Rejected"),
|
|
5
|
+
waiting: e._("In approval")
|
|
6
|
+
});
|
|
54
7
|
export {
|
|
55
|
-
|
|
8
|
+
t as getRowToStatusTextMap
|
|
56
9
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o, jsxs as b, Fragment as P } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { ScopedCssBaselineContainerClassName as T } from "./index106.js";
|
|
3
3
|
import { InvoiceStatusChip as k } from "./index57.js";
|
|
4
|
-
import { ReceivableFilters as B } from "./
|
|
4
|
+
import { ReceivableFilters as B } from "./index176.js";
|
|
5
5
|
import "react-hot-toast";
|
|
6
6
|
import { useMoniteContext as G } from "./index59.js";
|
|
7
7
|
import { useLingui as A } from "@lingui/react";
|
|
8
8
|
import { useState as c, useMemo as D } from "react";
|
|
9
|
-
import { useReceivablesFilters as W } from "./
|
|
9
|
+
import { useReceivablesFilters as W } from "./index177.js";
|
|
10
10
|
import "date-fns";
|
|
11
11
|
import { useCurrencies as j } from "./index60.js";
|
|
12
12
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
@@ -24,13 +24,13 @@ import "./index94.js";
|
|
|
24
24
|
import { useAreCounterpartsLoading as q, defaultCounterpartColumnWidth as H, useAutosizeGridColumns as Q } from "./index64.js";
|
|
25
25
|
import "react-hook-form";
|
|
26
26
|
import { MoniteScopedProviders as V } from "./index85.js";
|
|
27
|
-
import { ReceivableCursorFields as x } from "./
|
|
28
|
-
import { CounterpartNameCellById as Y } from "./
|
|
29
|
-
import { DataGridEmptyState as J } from "./
|
|
30
|
-
import { GetNoRowsOverlay as K } from "./
|
|
27
|
+
import { ReceivableCursorFields as x } from "./index174.js";
|
|
28
|
+
import { CounterpartNameCellById as Y } from "./index164.js";
|
|
29
|
+
import { DataGridEmptyState as J } from "./index178.js";
|
|
30
|
+
import { GetNoRowsOverlay as K } from "./index165.js";
|
|
31
31
|
import { TablePagination as U } from "./index88.js";
|
|
32
|
-
import { classNames as X } from "./
|
|
33
|
-
import { hasSelectedText as Z } from "./
|
|
32
|
+
import { classNames as X } from "./index179.js";
|
|
33
|
+
import { hasSelectedText as Z } from "./index167.js";
|
|
34
34
|
import { Stack as ee, Typography as te, Box as oe } from "@mui/material";
|
|
35
35
|
import { DataGrid as ie } from "@mui/x-data-grid";
|
|
36
36
|
const De = (s) => /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(ae, { ...s }) }), ae = ({
|
|
@@ -1,20 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
...r
|
|
1
|
+
import { jsx as o, jsxs as h, Fragment as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { useMoniteContext as y } from "./index59.js";
|
|
4
|
+
import { useRootElements as I } from "./index94.js";
|
|
5
|
+
import { classNames as _ } from "./index179.js";
|
|
6
|
+
import { useLingui as F } from "@lingui/react";
|
|
7
|
+
import { Autocomplete as M, TextField as O, CircularProgress as v } from "@mui/material";
|
|
8
|
+
const $ = ({
|
|
9
|
+
onChange: l,
|
|
10
|
+
className: p
|
|
12
11
|
}) => {
|
|
13
12
|
const {
|
|
14
|
-
|
|
15
|
-
} =
|
|
16
|
-
|
|
13
|
+
i18n: r
|
|
14
|
+
} = F(), {
|
|
15
|
+
api: d
|
|
16
|
+
} = y(), {
|
|
17
|
+
root: u
|
|
18
|
+
} = I(), [i, s] = n(!1), [m, c] = n(null), [f, g] = n(""), {
|
|
19
|
+
data: C,
|
|
20
|
+
isLoading: a,
|
|
21
|
+
refetch: A
|
|
22
|
+
} = d.finops.getEntityUsers.useQuery({
|
|
23
|
+
query: {
|
|
24
|
+
name__istartswith: f || void 0
|
|
25
|
+
}
|
|
26
|
+
}, {
|
|
27
|
+
enabled: i
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ o(M, { autoComplete: !0, includeInputInList: !0, filterSelectedOptions: !0, value: m, noOptionsText: r._("No users found"), slotProps: {
|
|
30
|
+
popper: {
|
|
31
|
+
container: u
|
|
32
|
+
}
|
|
33
|
+
}, open: i, onOpen: () => {
|
|
34
|
+
s(!0);
|
|
35
|
+
}, onClose: () => {
|
|
36
|
+
s(!1);
|
|
37
|
+
}, loading: a, options: C?.data || [], getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(), isOptionEqualToValue: (e, t) => e.id === t.id, filterOptions: (e) => e, onInputChange: (e, t) => {
|
|
38
|
+
g(t);
|
|
39
|
+
}, onChange: (e, t) => {
|
|
40
|
+
c(t), l(t?.id), A();
|
|
41
|
+
}, className: _("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", p), sx: {
|
|
42
|
+
"&.MuiAutocomplete-root": {
|
|
43
|
+
display: "flex",
|
|
44
|
+
alignItems: "center"
|
|
45
|
+
}
|
|
46
|
+
}, renderInput: (e) => /* @__PURE__ */ o(O, { ...e, variant: "standard", placeholder: r._("Added by"), className: "Monite-ApprovalAddedByFilter Monite-FilterControl", InputProps: {
|
|
47
|
+
...e.InputProps,
|
|
48
|
+
endAdornment: /* @__PURE__ */ h(x, { children: [
|
|
49
|
+
a ? /* @__PURE__ */ o(v, { color: "inherit", size: 20 }) : null,
|
|
50
|
+
e.InputProps.endAdornment
|
|
51
|
+
] })
|
|
52
|
+
} }) });
|
|
17
53
|
};
|
|
18
54
|
export {
|
|
19
|
-
|
|
55
|
+
$ as AutocompleteCreatedBy
|
|
20
56
|
};
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFileById as s } from "./index79.js";
|
|
3
|
+
import { Avatar as e } from "@mui/material";
|
|
4
|
+
const n = ({
|
|
5
|
+
alt: t,
|
|
6
|
+
fileId: a,
|
|
7
|
+
...r
|
|
8
|
+
}) => a ? /* @__PURE__ */ l(i, { fileId: a, alt: t, ...r }) : /* @__PURE__ */ l(e, { alt: t, ...r }), i = ({
|
|
9
|
+
alt: t,
|
|
10
|
+
fileId: a,
|
|
11
|
+
...r
|
|
8
12
|
}) => {
|
|
9
13
|
const {
|
|
10
|
-
|
|
11
|
-
} =
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ e(l, { className: "ttw:gap-6", children: [
|
|
14
|
-
/* @__PURE__ */ t(c, { className: "ttw:text-2xl ttw:font-semibold ttw:leading-8", children: o._("Access restricted") }),
|
|
15
|
-
/* @__PURE__ */ e(d, { children: [
|
|
16
|
-
o._("You don't have permissions to view this page."),
|
|
17
|
-
/* @__PURE__ */ t("br", {}),
|
|
18
|
-
o._("Contact your system administrator for details.")
|
|
19
|
-
] })
|
|
20
|
-
] }),
|
|
21
|
-
/* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(a, { onClick: s, children: o._("Close") }) })
|
|
22
|
-
] }) });
|
|
14
|
+
data: o
|
|
15
|
+
} = s(a);
|
|
16
|
+
return /* @__PURE__ */ l(e, { alt: t, src: o?.url, ...r });
|
|
23
17
|
};
|
|
24
18
|
export {
|
|
25
|
-
|
|
19
|
+
n as UserAvatar
|
|
26
20
|
};
|
|
@@ -1,18 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as n, jsxs as I } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as l, useEffect as w } from "react";
|
|
3
|
+
import { toast as c } from "react-hot-toast";
|
|
4
|
+
import { useRootElements as S } from "./index94.js";
|
|
5
|
+
import "./index59.js";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "date-fns";
|
|
8
|
+
import { useLingui as R } from "@lingui/react";
|
|
9
|
+
import { usePaymentIntentById as $ } from "./index82.js";
|
|
10
|
+
import { useCreatePayablePaymentLink as v, usePaymentLinkById as B } from "./index477.js";
|
|
11
|
+
import { Modal as j, Box as x, CircularProgress as D } from "@mui/material";
|
|
12
|
+
const G = (r, d, f, i) => {
|
|
3
13
|
const {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
i18n: t
|
|
15
|
+
} = R(), {
|
|
16
|
+
root: k
|
|
17
|
+
} = S(), b = v(), [L, m] = l(!1), [u, o] = l(null), [g, p] = l(null), [_, P] = l(!1), {
|
|
18
|
+
data: s,
|
|
19
|
+
isSuccess: h
|
|
20
|
+
} = $(i ?? "");
|
|
21
|
+
w(() => {
|
|
22
|
+
h && s?.payment_link_id && i && p(s.payment_link_id);
|
|
23
|
+
}, [h, s, i]);
|
|
24
|
+
const {
|
|
25
|
+
data: e,
|
|
26
|
+
refetch: C,
|
|
27
|
+
isSuccess: y,
|
|
28
|
+
isLoading: E
|
|
29
|
+
} = B(g ?? "");
|
|
30
|
+
return w(() => {
|
|
31
|
+
y && e?.payment_intent?.status === "processing" && f?.(r ?? "", e?.payment_intent?.status ?? "");
|
|
32
|
+
}, [e, y, f, r]), {
|
|
33
|
+
handlePay: async () => {
|
|
34
|
+
if (!d) {
|
|
35
|
+
c.error(t._("Vendor not found. Please create a vendor first."));
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (!_)
|
|
39
|
+
try {
|
|
40
|
+
if (E) {
|
|
41
|
+
c.error(t._("Payment link is still loading. Please wait a moment and try again."));
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (!g || y && e?.payment_intent?.status !== "created") {
|
|
45
|
+
if (P(!0), !r) throw new Error("Payable ID is undefined");
|
|
46
|
+
const a = await b(
|
|
47
|
+
r,
|
|
48
|
+
d,
|
|
49
|
+
["sepa_credit"],
|
|
50
|
+
60
|
|
51
|
+
// 60 days from now
|
|
52
|
+
);
|
|
53
|
+
if (a.payment_page_url)
|
|
54
|
+
p(a.id), o(a.payment_page_url);
|
|
55
|
+
else
|
|
56
|
+
throw p(null), o(null), new Error("No payment page URL in response");
|
|
57
|
+
} else if (e?.payment_page_url)
|
|
58
|
+
o(e.payment_page_url);
|
|
59
|
+
else
|
|
60
|
+
throw new Error("No payment page URL in existing payment link");
|
|
61
|
+
m(!0);
|
|
62
|
+
} catch (a) {
|
|
63
|
+
console.error("Payment link creation/retrieval error:", a), c.error(i && s?.status === "created" ? t._("Failed to retrieve payment link. Please try again.") : t._("Failed to create payment link. Please try again.")), m(!1);
|
|
64
|
+
} finally {
|
|
65
|
+
P(!1);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
isCreatingPaymentLink: _,
|
|
69
|
+
modalComponent: /* @__PURE__ */ n(j, { open: L, onClose: async () => {
|
|
70
|
+
await C(), m(!1), o(null);
|
|
71
|
+
}, container: k, children: /* @__PURE__ */ n(x, { sx: {
|
|
72
|
+
position: "absolute",
|
|
73
|
+
top: "50%",
|
|
74
|
+
left: "50%",
|
|
75
|
+
transform: "translate(-50%, -50%)",
|
|
76
|
+
width: "80%",
|
|
77
|
+
maxWidth: 600,
|
|
78
|
+
bgcolor: "background.paper",
|
|
79
|
+
boxShadow: 24,
|
|
80
|
+
p: 4,
|
|
81
|
+
borderRadius: 2
|
|
82
|
+
}, children: u ? /* @__PURE__ */ n("iframe", { src: u, title: "Payment Page", width: "100%", height: "400px", style: {
|
|
83
|
+
border: "none"
|
|
84
|
+
} }) : /* @__PURE__ */ I(x, { sx: {
|
|
85
|
+
display: "flex",
|
|
86
|
+
flexDirection: "column",
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
gap: 2,
|
|
89
|
+
py: 4
|
|
90
|
+
}, children: [
|
|
91
|
+
/* @__PURE__ */ n(D, {}),
|
|
92
|
+
/* @__PURE__ */ n("p", { children: t._("Loading payment page...") })
|
|
93
|
+
] }) }) })
|
|
94
|
+
};
|
|
15
95
|
};
|
|
16
96
|
export {
|
|
17
|
-
|
|
97
|
+
G as usePaymentHandler
|
|
18
98
|
};
|