@tesouro/embedded-components-react 0.2.161 → 0.2.162
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 +21 -0
- package/dist/lib/ReceivablesWidget.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +88 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +28 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index6.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index9.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
- 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 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +1 -1
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +10 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +19 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +27 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +117 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +68 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +12 -467
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +12 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +9 -537
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +43 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +72 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +58 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +22 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +74 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +41 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +221 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +466 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +107 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +533 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +97 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +57 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +96 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +94 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +14 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -1
- 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 +22 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +54 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +27 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +55 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +36 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +341 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +303 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +100 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +161 -96
- 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 +265 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +24 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +20 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +18 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +167 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +134 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +157 -52
- 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 +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +18 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +67 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +60 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +58 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +61 -29
- 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 +14 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +31 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +72 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +44 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +67 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +149 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +10 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +19 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +6 -109
- 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 +484 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +158 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +40 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +119 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +41 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +53 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +62 -33
- 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 +157 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +28 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +75 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +124 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +49 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +110 -483
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +105 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +48 -20
- 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 +201 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +28 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +4 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +17 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +34 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +30 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +32 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +28 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +47 -57
- 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 +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +27 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +96 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +109 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +83 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +93 -77
- 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 +94 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +210 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +39 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +13 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +71 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +76 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +41 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +25 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +127 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +7 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +18 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +96 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +37 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +34 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +66 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +45 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +27 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +21 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +4 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +11 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +15 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +48 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +82 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +265 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +59 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +23 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +139 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +109 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +80 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +92 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +9 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +282 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +49 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +15 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +120 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -123
- 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 +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +3 -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 +32 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +33 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +19 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +45 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +50 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +65 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +17 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +18 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +11 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +65 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +2 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +53 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +29 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +31 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +4 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +127 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +39 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +35 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +13 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +96 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +14 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +18 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +9 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +70 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +33 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +57 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +29 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +55 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +80 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +31 -32
- 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 +54 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +29 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +36 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +46 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +49 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +32 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +85 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +104 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +110 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +71 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +66 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +36 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +12 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +23 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +38 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +81 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +38 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +47 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +36 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +10 -0
- 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 +6 -6
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- 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 +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +165 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +71 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/labels.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +125 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +327 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApproverOptions.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index10.js +130 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index13.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index14.js +65 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index15.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +99 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +236 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index2.js +117 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index4.js +46 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index6.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index8.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index9.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/amountCoverage.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/amountInput.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyPriority.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyScript.js +98 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyTrigger.js +136 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/validatePolicyDraft.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
- package/dist/packages/shared-ui-shadcn/dist/index.js +1668 -1662
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index10.js +0 -23
|
@@ -1,107 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "react
|
|
3
|
-
import "./
|
|
4
|
-
|
|
5
|
-
import { useState as A } from "react";
|
|
6
|
-
import { useUserPermissions as G } from "./index141.js";
|
|
7
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
8
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
10
|
-
import "@tanstack/react-query";
|
|
11
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
12
|
-
import { Scope as S } from "../../shared/data-access/dist/lib/scopes.js";
|
|
13
|
-
import { calculateDueDate as O } from "./index7.js";
|
|
14
|
-
import { differenceInCalendarDays as U, format as F } from "date-fns";
|
|
15
|
-
import "clsx";
|
|
16
|
-
import "tailwind-merge";
|
|
17
|
-
import "@radix-ui/react-dropdown-menu";
|
|
18
|
-
import { Loader2 as L } from "lucide-react";
|
|
19
|
-
import { Button as V } from "./index84.js";
|
|
20
|
-
import { useGetPaymentReminderById as Y } from "./index231.js";
|
|
21
|
-
import { useGetPaymentReminders as k } from "./index384.js";
|
|
22
|
-
import { useCreatePaymentReminder as z } from "./index385.js";
|
|
23
|
-
import { useGetPaymentTermById as W } from "./index388.js";
|
|
24
|
-
import "./index92.js";
|
|
25
|
-
import "react-dom";
|
|
26
|
-
import "@mui/x-data-grid";
|
|
27
|
-
import { useFormContext as Z } from "react-hook-form";
|
|
28
|
-
import { CUSTOM_DATE_PAYMENT_TERM as q, RECEIPT_DUE_PAYMENT_TERM as H } from "./index304.js";
|
|
29
|
-
import { RadioGroup as J, RadioGroupItem as N } from "./index274.js";
|
|
30
|
-
import { Typography as m } from "./index85.js";
|
|
31
|
-
import { Input as K } from "./index118.js";
|
|
32
|
-
const Q = "MMM d, yyyy", D = 1, E = 1e4, Re = ({
|
|
33
|
-
disabled: P
|
|
34
|
-
}) => {
|
|
1
|
+
import { useMemo as s } from "react";
|
|
2
|
+
import { useLingui as t } from "@lingui/react";
|
|
3
|
+
import { useExistingCurrenciesFromProducts as u } from "./index481.js";
|
|
4
|
+
const d = () => {
|
|
35
5
|
const {
|
|
36
|
-
|
|
37
|
-
} =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
mutate: M,
|
|
46
|
-
isPending: p
|
|
47
|
-
} = z(), g = Number(a), x = a !== "" && g >= D && g <= E, u = a !== "" && !x, w = c && l ? U(l, /* @__PURE__ */ new Date()) : void 0, {
|
|
48
|
-
data: n
|
|
49
|
-
} = Y(_), R = n ? [n.term_1_reminder?.days_before, n.term_2_reminder?.days_before, n.term_final_reminder?.days_before].filter((e) => typeof e == "number") : [], B = w !== void 0 && (a !== "" && Number(a) > w || R.some((e) => e > w)), C = () => {
|
|
50
|
-
const e = Number(a);
|
|
51
|
-
M({
|
|
52
|
-
body: {
|
|
53
|
-
name: e === 1 ? t._("{daysBefore} day", {
|
|
54
|
-
daysBefore: e
|
|
55
|
-
}) : t._("{daysBefore} days", {
|
|
56
|
-
daysBefore: e
|
|
57
|
-
}),
|
|
58
|
-
term_final_reminder: {
|
|
59
|
-
days_before: e,
|
|
60
|
-
subject: t._("Payment is due soon"),
|
|
61
|
-
body: v ? t._("Payment is due on {dueDate}.", {
|
|
62
|
-
dueDate: F(v, Q)
|
|
63
|
-
}) : t._("Payment is due soon.")
|
|
64
|
-
}
|
|
65
|
-
}
|
|
6
|
+
i18n: r
|
|
7
|
+
} = t(), {
|
|
8
|
+
existingCurrencies: e,
|
|
9
|
+
isLoadingProducts: o
|
|
10
|
+
} = u();
|
|
11
|
+
return {
|
|
12
|
+
currencyGroups: s(() => [{
|
|
13
|
+
title: r._("You have items in"),
|
|
14
|
+
predicate: (i) => e.has(i.code)
|
|
66
15
|
}, {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
16
|
+
title: r._("No items created in"),
|
|
17
|
+
predicate: (i) => !e.has(i.code)
|
|
18
|
+
}], [e, r]),
|
|
19
|
+
isLoadingCurrencyGroups: o
|
|
71
20
|
};
|
|
72
|
-
return /* @__PURE__ */ i("div", { className: "ttw:border ttw:border-border ttw:rounded-lg ttw:min-h-28 ttw:p-2.5 ttw:flex ttw:w-full ttw:flex-col ttw:gap-4 ttw:xl:w-1/2", children: [
|
|
73
|
-
/* @__PURE__ */ i(m, { variant: "body2", children: [
|
|
74
|
-
t._("Number of days"),
|
|
75
|
-
" ",
|
|
76
|
-
/* @__PURE__ */ r("span", { className: "ttw:text-green-700 ttw:font-bold", children: t._("BEFORE") }),
|
|
77
|
-
" ",
|
|
78
|
-
t._("due date")
|
|
79
|
-
] }),
|
|
80
|
-
/* @__PURE__ */ r(J, { className: "ttw:contents", value: _ ?? "", onValueChange: (e) => y("payment_reminder_id", e), children: /* @__PURE__ */ i("ul", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [
|
|
81
|
-
/* @__PURE__ */ r("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
82
|
-
/* @__PURE__ */ r(N, { value: "", id: "no-payment-reminder" }),
|
|
83
|
-
/* @__PURE__ */ r(m, { variant: "body2", className: "ttw:leading-snug", children: t._("No reminder") })
|
|
84
|
-
] }) }),
|
|
85
|
-
d?.map((e) => /* @__PURE__ */ r("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
86
|
-
/* @__PURE__ */ r(N, { value: e.value, id: e.value }),
|
|
87
|
-
/* @__PURE__ */ r(m, { variant: "body2", className: "ttw:leading-snug", children: e.label })
|
|
88
|
-
] }) }, e.value))
|
|
89
|
-
] }) }),
|
|
90
|
-
T && /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
91
|
-
!!(d && d?.length > 0) && /* @__PURE__ */ r(m, { variant: "caption", color: "muted", children: t._("Add schedule") }),
|
|
92
|
-
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
|
|
93
|
-
/* @__PURE__ */ r(K, { type: "text", inputMode: "numeric", value: a, onChange: (e) => f(e.target.value.replace(/\D/g, "")), disabled: P || p, name: "new_reminders", className: "ttw:text-right ttw:w-full ttw:p-1.5 ttw:max-w-56", placeholder: t._("e.g., 3"), "aria-invalid": u, "aria-describedby": u ? "new-reminder-error" : void 0 }),
|
|
94
|
-
/* @__PURE__ */ r(m, { variant: "body2", children: Number(a) === 1 ? t._("day") : t._("days") }),
|
|
95
|
-
/* @__PURE__ */ r(V, { type: "button", variant: "secondary", className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs", disabled: !x || p, onClick: C, children: p ? /* @__PURE__ */ r(L, { className: "ttw:size-4 ttw:animate-spin" }) : t._("Save") })
|
|
96
|
-
] }),
|
|
97
|
-
u && /* @__PURE__ */ r(m, { id: "new-reminder-error", variant: "caption", color: "destructive", children: t._("Enter a number of days between {min} and {max}.", {
|
|
98
|
-
min: D,
|
|
99
|
-
max: E
|
|
100
|
-
}) })
|
|
101
|
-
] }),
|
|
102
|
-
B && /* @__PURE__ */ r(m, { variant: "body2", className: "ttw:text-amber-700", children: t._("This reminder would be sent after the due date has already passed.") })
|
|
103
|
-
] });
|
|
104
21
|
};
|
|
105
22
|
export {
|
|
106
|
-
|
|
23
|
+
d as useProductCurrencyGroups
|
|
107
24
|
};
|
|
@@ -1,114 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
10
|
-
import "@tanstack/react-query";
|
|
11
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
12
|
-
import { Scope as k } from "../../shared/data-access/dist/lib/scopes.js";
|
|
13
|
-
import { calculateDueDate as F } from "./index7.js";
|
|
14
|
-
import { format as U } from "date-fns";
|
|
15
|
-
import "clsx";
|
|
16
|
-
import "tailwind-merge";
|
|
17
|
-
import "@radix-ui/react-dropdown-menu";
|
|
18
|
-
import { Plus as B, Loader2 as L } from "lucide-react";
|
|
19
|
-
import { Button as h } from "./index84.js";
|
|
20
|
-
import { useGetOverdueReminders as V } from "./index386.js";
|
|
21
|
-
import { useCreateOverdueReminder as Y } from "./index387.js";
|
|
22
|
-
import { useGetPaymentTermById as z } from "./index388.js";
|
|
23
|
-
import "./index92.js";
|
|
24
|
-
import "react-dom";
|
|
25
|
-
import "@mui/x-data-grid";
|
|
26
|
-
import { useFormContext as K } from "react-hook-form";
|
|
27
|
-
import { CUSTOM_DATE_PAYMENT_TERM as W, RECEIPT_DUE_PAYMENT_TERM as q } from "./index304.js";
|
|
28
|
-
import { RadioGroup as H, RadioGroupItem as b } from "./index274.js";
|
|
29
|
-
import { Typography as n } from "./index85.js";
|
|
30
|
-
import { Input as J } from "./index118.js";
|
|
31
|
-
const Q = "MMM d, yyyy", N = 3, Tt = ({
|
|
32
|
-
disabled: l
|
|
33
|
-
}) => {
|
|
34
|
-
const {
|
|
35
|
-
data: u
|
|
36
|
-
} = V(), [o, c] = I([""]), {
|
|
37
|
-
i18n: e
|
|
38
|
-
} = j(), A = G().has(k.InvoiceWriteOrg), {
|
|
39
|
-
watch: w,
|
|
40
|
-
setValue: y
|
|
41
|
-
} = K(), C = w("overdue_reminder_id"), p = w("payment_terms_id"), P = w("payment_terms_custom_date"), v = p === W, _ = p === q, R = p && !v && !_ ? p : void 0, {
|
|
42
|
-
data: g
|
|
43
|
-
} = z(R), x = v ? P ?? void 0 : _ ? /* @__PURE__ */ new Date() : g && F(g) || void 0, {
|
|
44
|
-
mutate: T,
|
|
45
|
-
isPending: d
|
|
46
|
-
} = Y(), E = (t, i) => {
|
|
47
|
-
c((m) => m.map((r, f) => f === t ? i : r));
|
|
48
|
-
}, M = () => {
|
|
49
|
-
c((t) => t.length < N ? [...t, ""] : t);
|
|
50
|
-
}, D = () => {
|
|
51
|
-
c([""]);
|
|
52
|
-
}, $ = o.every((t) => Number(t) >= 1), S = () => {
|
|
53
|
-
const t = o.map((r) => Number(r)).sort((r, f) => r - f), i = t.map((r) => r === 1 ? e._("{daysAfter} day", {
|
|
54
|
-
daysAfter: r
|
|
55
|
-
}) : e._("{daysAfter} days", {
|
|
56
|
-
daysAfter: r
|
|
57
|
-
})), m = i.length === 1 ? i[0] : `${i.slice(0, -1).join(", ")} ${e._("and")} ${i[i.length - 1]}`;
|
|
58
|
-
T({
|
|
59
|
-
body: {
|
|
60
|
-
name: m,
|
|
61
|
-
terms: t.map((r) => ({
|
|
62
|
-
days_after: r,
|
|
63
|
-
subject: e._("Payment is overdue"),
|
|
64
|
-
body: x ? e._("Payment was due on {dueDate}.", {
|
|
65
|
-
dueDate: U(x, Q)
|
|
66
|
-
}) : e._("Payment is overdue.")
|
|
67
|
-
}))
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
70
|
-
onSuccess: (r) => {
|
|
71
|
-
c([""]), y("overdue_reminder_id", r.id);
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
return /* @__PURE__ */ s("div", { className: "ttw:border ttw:border-border ttw:rounded-lg ttw:min-h-28 ttw:p-2.5 ttw:flex ttw:w-full ttw:flex-col ttw:gap-4 ttw:xl:w-1/2", children: [
|
|
76
|
-
/* @__PURE__ */ s(n, { variant: "body2", children: [
|
|
77
|
-
e._("Number of days"),
|
|
78
|
-
" ",
|
|
79
|
-
/* @__PURE__ */ a("span", { className: "ttw:text-destructive ttw:font-bold", children: e._("AFTER") }),
|
|
80
|
-
" ",
|
|
81
|
-
e._("due date")
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ a(H, { className: "ttw:contents", value: C ?? "", onValueChange: (t) => y("overdue_reminder_id", t), children: /* @__PURE__ */ s("ul", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [
|
|
84
|
-
/* @__PURE__ */ a("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
85
|
-
/* @__PURE__ */ a(b, { value: "", id: "no-overdue-reminder" }),
|
|
86
|
-
/* @__PURE__ */ a(n, { variant: "body2", className: "ttw:leading-snug", children: e._("No reminder") })
|
|
87
|
-
] }) }),
|
|
88
|
-
u?.map((t) => /* @__PURE__ */ a("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
89
|
-
/* @__PURE__ */ a(b, { value: t.value, id: t.value }),
|
|
90
|
-
/* @__PURE__ */ a(n, { variant: "body2", className: "ttw:leading-snug", children: t.label })
|
|
91
|
-
] }) }, t.value))
|
|
92
|
-
] }) }),
|
|
93
|
-
A && /* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
94
|
-
/* @__PURE__ */ a(n, { variant: "caption", color: "muted", children: u && u.length > 0 ? e._("Add schedule (Specify up to 3 terms)") : e._("Send up to three reminders") }),
|
|
95
|
-
/* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
|
|
96
|
-
o.map((t, i, m) => /* @__PURE__ */ s(O, { children: [
|
|
97
|
-
/* @__PURE__ */ a(J, { type: "text", inputMode: "numeric", value: t, onChange: (r) => E(i, r.target.value.replace(/\D/g, "")), disabled: l || d, name: `new_reminders_${i}`, className: "ttw:text-right ttw:w-15 ttw:p-1.5", placeholder: m.length === 1 ? e._("e.g., 3") : void 0 }),
|
|
98
|
-
/* @__PURE__ */ a(n, { variant: "body2", children: Number(t) === 1 ? e._("day") : e._("days") })
|
|
99
|
-
] }, i)),
|
|
100
|
-
o.length < N && /* @__PURE__ */ s(h, { type: "button", variant: "ghost", className: "ttw:text-xs ttw:text-primary ttw:hover:text-primary", disabled: l || d || !o[o.length - 1], onClick: M, children: [
|
|
101
|
-
/* @__PURE__ */ a(B, {}),
|
|
102
|
-
e._("Add")
|
|
103
|
-
] })
|
|
104
|
-
] }),
|
|
105
|
-
/* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
|
|
106
|
-
/* @__PURE__ */ a(h, { type: "button", variant: "ghost", className: "ttw:text-xs", disabled: l || d, onClick: D, children: e._("Clear") }),
|
|
107
|
-
/* @__PURE__ */ a(h, { type: "button", variant: "secondary", className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs", disabled: l || d || !$, onClick: S, children: d ? /* @__PURE__ */ a(L, { className: "ttw:size-4 ttw:animate-spin" }) : e._("Save") })
|
|
108
|
-
] })
|
|
109
|
-
] })
|
|
110
|
-
] });
|
|
111
|
-
};
|
|
1
|
+
import { getCountries as e } from "./index93.js";
|
|
2
|
+
import { getCurrencies as o } from "./index94.js";
|
|
3
|
+
const m = (t, n) => {
|
|
4
|
+
const c = u(t, n);
|
|
5
|
+
return n.is_default_for_currency ? t._("{bankAccountName} (Default)", {
|
|
6
|
+
bankAccountName: c
|
|
7
|
+
}) : c;
|
|
8
|
+
}, u = (t, n) => n.name ? n.name : n.country && n.currency ? `${e(t)[n.country]} (${o(t)[n.currency]})` : n.id;
|
|
112
9
|
export {
|
|
113
|
-
|
|
10
|
+
m as getBankAccountName
|
|
114
11
|
};
|
|
@@ -1,14 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as o, jsxs as b } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as g, Fragment as w } from "react";
|
|
3
|
+
import { getCurrenciesArray as x, sortCurrencyOptionsByGroup as O, filterOptions as v, getGroupTitleForOption as B } from "./index94.js";
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { RHFAutocomplete as M } from "./index486.js";
|
|
6
|
+
import { ListSubheader as S, Divider as q } from "@mui/material";
|
|
7
|
+
import { useLingui as L } from "@lingui/react";
|
|
8
|
+
import { CurrencyInput as W } from "./index487.js";
|
|
9
|
+
import { CurrencyOption as j } from "./index488.js";
|
|
10
|
+
const R = ({
|
|
11
|
+
required: s,
|
|
12
|
+
actualCurrency: y,
|
|
13
|
+
groups: t,
|
|
14
|
+
fullWidth: m,
|
|
15
|
+
showCodeOnly: i,
|
|
16
|
+
hideLabel: h = !1,
|
|
17
|
+
showCurrencyCode: p = !1,
|
|
18
|
+
showCurrencySymbol: u = !0,
|
|
19
|
+
showClearButton: C = !0,
|
|
20
|
+
allowedCurrencies: l,
|
|
21
|
+
...d
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
i18n: n
|
|
25
|
+
} = L(), a = n._("Currency"), c = g(() => {
|
|
26
|
+
const e = x(n);
|
|
27
|
+
return l ? e.filter((r) => l.includes(r.code)) : e;
|
|
28
|
+
}, [l, n]), f = O(c, t);
|
|
29
|
+
return /* @__PURE__ */ o(M, { ...d, required: s, disabled: c?.length === 1 || d.disabled, className: `Monite-Currency ${h && "Monite-Label-Hidden"}`, disableClearable: !C, label: a, options: f, optionKey: "code", labelKey: i ? "code" : "label", fullWidth: m, slotProps: {
|
|
30
|
+
paper: {
|
|
31
|
+
sx: {
|
|
32
|
+
"& .MuiAutocomplete-listbox hr:last-of-type": {
|
|
33
|
+
display: "none"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, renderInput: (e, r) => /* @__PURE__ */ o(W, { error: r?.error, defaultValue: y, required: r?.required ?? s, label: r?.label ?? a, showCodeOnly: i, showCurrencySymbol: u, showCurrencyCode: p, ...e }), renderOption: (e, r) => /* @__PURE__ */ o(j, { props: e, option: r, showCodeOnly: i, showCurrencyCode: p, showCurrencySymbol: u }, r.code), filterOptions: v, groupBy: t ? (e) => B(e, t)?.title : void 0, renderGroup: (e) => e.group.trim() === "" ? e.children : /* @__PURE__ */ b(w, { children: [
|
|
38
|
+
/* @__PURE__ */ o(S, { component: "div", title: e.group, sx: {
|
|
39
|
+
bgcolor: "background.paper",
|
|
40
|
+
typography: "body2",
|
|
41
|
+
fontWeight: (r) => r.typography.fontWeightBold,
|
|
42
|
+
textOverflow: "ellipsis",
|
|
43
|
+
overflow: "hidden",
|
|
44
|
+
whiteSpace: "nowrap",
|
|
45
|
+
py: 1.25,
|
|
46
|
+
px: 2,
|
|
47
|
+
top: -12
|
|
48
|
+
// hack needed to align the group title with the first option (MUI handles custom groups poorly)
|
|
49
|
+
}, children: e.group }),
|
|
50
|
+
e.children,
|
|
51
|
+
/* @__PURE__ */ o(q, { sx: {
|
|
52
|
+
mx: 1,
|
|
53
|
+
mt: 1
|
|
54
|
+
} })
|
|
55
|
+
] }, e.key) });
|
|
56
|
+
};
|
|
10
57
|
export {
|
|
11
|
-
|
|
12
|
-
u as getCountryName,
|
|
13
|
-
o as getMeasureUnitName
|
|
58
|
+
R as MoniteCurrency
|
|
14
59
|
};
|
|
@@ -1,31 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "./index92.js";
|
|
6
|
-
import "@
|
|
7
|
-
import "
|
|
8
|
-
import "@mui/
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { jsxs as A, Fragment as F, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createElement as j } from "@emotion/react";
|
|
3
|
+
import { useTags as k } from "./index485.js";
|
|
4
|
+
import { TagFormModal as w } from "./index47.js";
|
|
5
|
+
import { useRootElements as y } from "./index92.js";
|
|
6
|
+
import { useLingui as S } from "@lingui/react";
|
|
7
|
+
import I from "@mui/icons-material/Add";
|
|
8
|
+
import { Autocomplete as L, TextField as M, Button as V } from "@mui/material";
|
|
9
|
+
import { createFilterOptions as W } from "@mui/material/Autocomplete";
|
|
10
|
+
import { useState as B, useMemo as m } from "react";
|
|
11
|
+
const p = (o) => o ? o.map(({
|
|
12
|
+
id: r,
|
|
13
|
+
name: n
|
|
14
|
+
}) => ({
|
|
15
|
+
value: r,
|
|
16
|
+
label: n
|
|
17
|
+
})) : [], d = "__create-new__";
|
|
18
|
+
function D(o) {
|
|
19
|
+
return o?.value === d;
|
|
20
|
+
}
|
|
21
|
+
const P = W(), N = ({
|
|
22
|
+
disabled: o,
|
|
23
|
+
value: r,
|
|
24
|
+
onChange: n,
|
|
25
|
+
label: f,
|
|
26
|
+
variant: c = "filled",
|
|
27
|
+
error: v = !1,
|
|
28
|
+
helperText: h,
|
|
29
|
+
required: g = !1
|
|
30
|
+
}) => {
|
|
31
|
+
const {
|
|
32
|
+
i18n: x
|
|
33
|
+
} = S(), {
|
|
34
|
+
root: b
|
|
35
|
+
} = y(), {
|
|
36
|
+
tagsQuery: s
|
|
37
|
+
} = k(), [T, u] = B(!1), C = m(() => r ? p(r) : [], [r]), O = m(() => {
|
|
38
|
+
const t = s.data?.data || [], e = r || [], a = [...t];
|
|
39
|
+
return e.forEach((l) => {
|
|
40
|
+
a.find((q) => q.id === l.id) || a.push(l);
|
|
41
|
+
}), p(a);
|
|
42
|
+
}, [s.data?.data, r]), _ = (t) => {
|
|
43
|
+
const e = t.map((l) => l.value), a = s.data?.data?.filter((l) => e.includes(l.id)) || [];
|
|
44
|
+
n?.(a);
|
|
45
|
+
}, E = () => {
|
|
46
|
+
u(!0);
|
|
27
47
|
};
|
|
48
|
+
return /* @__PURE__ */ A(F, { children: [
|
|
49
|
+
/* @__PURE__ */ i(w, { open: T, onClose: () => u(!1), onCreate: (t) => {
|
|
50
|
+
const e = [...r || [], t];
|
|
51
|
+
n?.(e);
|
|
52
|
+
}, isDeleteAllowed: !1 }),
|
|
53
|
+
/* @__PURE__ */ i(L, { disabled: o, multiple: !0, filterSelectedOptions: !0, getOptionLabel: (t) => t.label, options: O, slotProps: {
|
|
54
|
+
popper: {
|
|
55
|
+
container: b
|
|
56
|
+
}
|
|
57
|
+
}, isOptionEqualToValue: (t, e) => t.value === e.value, value: C, onChange: (t, e) => {
|
|
58
|
+
_(e || []);
|
|
59
|
+
}, filterOptions: (t, e) => {
|
|
60
|
+
const a = P(t, e);
|
|
61
|
+
return a.unshift({
|
|
62
|
+
value: d,
|
|
63
|
+
label: x._("Create new tag")
|
|
64
|
+
}), a;
|
|
65
|
+
}, renderOption: (t, e) => D(e) ? /* @__PURE__ */ i(V, { variant: "text", startIcon: /* @__PURE__ */ i(I, {}), fullWidth: !0, sx: {
|
|
66
|
+
justifyContent: "flex-start",
|
|
67
|
+
px: 2
|
|
68
|
+
}, onClick: E, children: e.label }, e.value) : /* @__PURE__ */ j("li", { ...t, key: e.value }, e.label), renderInput: (t) => /* @__PURE__ */ i(M, { ...t, label: f, variant: c, fullWidth: !0, error: v, helperText: h, required: g }) })
|
|
69
|
+
] });
|
|
28
70
|
};
|
|
29
71
|
export {
|
|
30
|
-
|
|
72
|
+
N as TagsAutocomplete,
|
|
73
|
+
p as tagsToSelect
|
|
31
74
|
};
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import "@
|
|
4
|
-
import "react-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}, [t, i]);
|
|
23
|
-
};
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { TagsAutocomplete as f } from "./index448.js";
|
|
3
|
+
import { FormControl as p } from "@mui/material";
|
|
4
|
+
import { Controller as u } from "react-hook-form";
|
|
5
|
+
const T = ({
|
|
6
|
+
control: t,
|
|
7
|
+
name: i,
|
|
8
|
+
label: n,
|
|
9
|
+
variant: o = "filled",
|
|
10
|
+
disabled: m = !1,
|
|
11
|
+
required: l = !1,
|
|
12
|
+
helperText: d
|
|
13
|
+
}) => /* @__PURE__ */ r(u, { name: i, control: t, render: ({
|
|
14
|
+
field: a,
|
|
15
|
+
fieldState: {
|
|
16
|
+
error: e
|
|
17
|
+
}
|
|
18
|
+
}) => /* @__PURE__ */ r(p, { variant: o, fullWidth: !0, required: l, error: !!e, children: /* @__PURE__ */ r(f, { disabled: m, value: a.value || [], onChange: (s) => {
|
|
19
|
+
a.onChange(s);
|
|
20
|
+
}, label: n, variant: o, error: !!e, helperText: e?.message || d, required: l }) }) });
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
T as TagsAutocompleteInput
|
|
26
23
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as o, Fragment as F } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { ProductDeleteModal as I } from "./
|
|
3
|
-
import { ProductEditForm as T } from "./
|
|
2
|
+
import { ProductDeleteModal as I } from "./index161.js";
|
|
3
|
+
import { ProductEditForm as T } from "./index171.js";
|
|
4
4
|
import { MoniteScopedProviders as j } from "./index83.js";
|
|
5
5
|
import { useCurrencies as B } from "./index58.js";
|
|
6
6
|
import { useMoniteContext as L } from "./index57.js";
|
|
@@ -21,8 +21,8 @@ import { LoadingSpinner as X } from "./index131.js";
|
|
|
21
21
|
import { NotFound as q } from "./index149.js";
|
|
22
22
|
import { useLingui as J } from "@lingui/react";
|
|
23
23
|
import { MoreVerticalIcon as K, Trash2 as Q, X as Y } from "lucide-react";
|
|
24
|
-
import { useGetProductById as Z } from "./
|
|
25
|
-
import { ProductDetailLine as f } from "./
|
|
24
|
+
import { useGetProductById as Z } from "./index172.js";
|
|
25
|
+
import { ProductDetailLine as f } from "./index173.js";
|
|
26
26
|
import { AccessRestriction as tt } from "./index152.js";
|
|
27
27
|
const $t = (a) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(et, { ...a }) }), et = ({
|
|
28
28
|
id: a,
|
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { toast as o } from "react-hot-toast";
|
|
2
|
+
import { useMoniteContext as r } from "./index57.js";
|
|
3
|
+
import { useLingui as t } from "@lingui/react";
|
|
4
|
+
const c = () => {
|
|
5
|
+
const {
|
|
6
|
+
api: n
|
|
7
|
+
} = r(), {
|
|
8
|
+
i18n: e
|
|
9
|
+
} = t();
|
|
10
|
+
return n.finops.postFinancingTokens.useMutation({}, {
|
|
11
|
+
onError: () => {
|
|
12
|
+
o.error(e._("The financing service is currently unavailable. Please reload the page or try again later."));
|
|
13
|
+
}
|
|
12
14
|
});
|
|
13
|
-
return f(() => {
|
|
14
|
-
if (typeof window > "u") return;
|
|
15
|
-
const t = () => {
|
|
16
|
-
const c = [72, 96, 120, 144, 192, 240, 288, 384];
|
|
17
|
-
let n = 96;
|
|
18
|
-
for (const d of c)
|
|
19
|
-
if (window.matchMedia(`(resolution: ${d}dpi)`).matches) {
|
|
20
|
-
n = d;
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
const u = window.devicePixelRatio || 1, w = n * u, e = document.createElement("div");
|
|
24
|
-
e.style.width = "1in", e.style.height = "1in", e.style.position = "absolute", e.style.left = "-9999px", document.body.appendChild(e);
|
|
25
|
-
const a = e.getBoundingClientRect(), o = Math.round(a.width);
|
|
26
|
-
document.body.removeChild(e);
|
|
27
|
-
const i = o > 0 ? o : w, l = Math.round(s.inches.width * i), m = Math.round(s.inches.height * i);
|
|
28
|
-
r({
|
|
29
|
-
width: l,
|
|
30
|
-
height: m,
|
|
31
|
-
dpi: i
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
return t(), window.addEventListener("resize", t), () => {
|
|
35
|
-
window.removeEventListener("resize", t);
|
|
36
|
-
};
|
|
37
|
-
}, []), h;
|
|
38
15
|
};
|
|
39
16
|
export {
|
|
40
|
-
|
|
17
|
+
c as useGetFinancingConnectToken
|
|
41
18
|
};
|