@tesouro/embedded-components-react 0.7.46 → 0.7.49
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 -23
- package/dist/index.d.ts +4 -0
- package/dist/lib/CounterpartsWidget.d.ts +4 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +4 -0
- package/dist/lib/CustomersWidget.d.ts +2 -0
- package/dist/lib/ReceivablesWidget.d.ts +2 -0
- package/dist/lib/monite-sdk.d.ts +51 -182
- package/dist/lib/monite-sdk.js +71 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +40 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +75 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +10 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +36 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +1 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +102 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +51 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +1 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +49 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +1 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +53 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +151 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +70 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +11 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +68 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +172 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +73 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +76 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +33 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +1 -446
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +565 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +156 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +26 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +1 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +23 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +71 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +5 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +37 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +48 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +54 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +28 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +39 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +78 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +4 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +47 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +79 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +121 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +17 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +1 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +121 -292
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +17 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +120 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +21 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +55 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +71 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +26 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +3 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +31 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +10 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +14 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +13 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +15 -564
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +114 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +62 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +195 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +38 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +17 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +5 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +359 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +89 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +14 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +182 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +98 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +53 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +33 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +158 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +49 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +85 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +7 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +304 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +26 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +157 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +34 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +101 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +186 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +131 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +208 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +238 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +131 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +165 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +19 -356
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +16 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +9 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +22 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +83 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +101 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +171 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +11 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +66 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +25 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +210 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +87 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +154 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +104 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +42 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +69 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +19 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +5 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +11 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +130 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +6 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +6 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +219 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +31 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +32 -238
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +73 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +179 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +194 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +102 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +64 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +39 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +83 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +46 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +15 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +87 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +32 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +70 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +8 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +5 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +72 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +54 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +49 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +18 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +33 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +51 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +71 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +80 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +8 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +27 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +16 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +3 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +55 -53
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +85 -84
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +238 -241
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +0 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +0 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +0 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +0 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +0 -97
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { useMoniteContext as t } from "./index45.js";
|
|
4
|
-
import { useCurrencies as n } from "./index63.js";
|
|
5
|
-
import { Button as r } from "./index56.js";
|
|
6
|
-
import { MoniteScopedProviders as i } from "./index129.js";
|
|
7
|
-
import { Sheet as a, SheetClose as o, SheetContent as s, SheetDescription as c, SheetHeader as l, SheetTitle as u } from "./index50.js";
|
|
8
|
-
import { LoadingSpinner as d } from "./index51.js";
|
|
9
|
-
import "./index52.js";
|
|
10
|
-
import { Skeleton as f } from "./index54.js";
|
|
11
|
-
import { DropdownMenu as p, DropdownMenuContent as m, DropdownMenuItem as h, DropdownMenuTrigger as g } from "./index55.js";
|
|
12
|
-
import { Typography as _ } from "./index62.js";
|
|
13
|
-
import { useUserPermissions as v } from "./index111.js";
|
|
14
|
-
import { NotFound as y } from "./index132.js";
|
|
15
|
-
import { AccessRestriction as b } from "./index153.js";
|
|
16
|
-
import "./index327.js";
|
|
17
|
-
import { useGetProductById as x } from "./index354.js";
|
|
18
|
-
import { ProductDeleteModal as S } from "./index358.js";
|
|
19
|
-
import { ProductEditForm as C } from "./index372.js";
|
|
20
|
-
import { ProductDetailLine as w } from "./index373.js";
|
|
21
|
-
import { useState as T } from "react";
|
|
22
|
-
import { MoreVerticalIcon as E, Trash2 as D, X as O } from "lucide-react";
|
|
23
|
-
import { Fragment as k, jsx as A, jsxs as j } from "@emotion/react/jsx-runtime";
|
|
24
|
-
import { useLingui as M } from "@lingui/react";
|
|
25
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js
|
|
26
|
-
var N = (e) => /* @__PURE__ */ A(i, { children: /* @__PURE__ */ A(P, { ...e }) }), P = ({ id: i, open: N, onClose: P, onUpdated: F, onDeleted: I, showActionsMenu: L = !0 }) => {
|
|
27
|
-
let { i18n: R } = M(), { locale: z } = t(), { formatCurrencyToDisplay: B } = n(), [V, H] = T(!1), [U, W] = T(!1), { data: G, isLoading: K, isFetching: q } = x(i), J = G?.type === "product", Y = v(), X = Y.has(e.InvoiceReadOrg), Z = Y.has(e.InvoiceWriteOrg), Q = Y.has(e.InvoiceWriteOrg);
|
|
28
|
-
return X ? !K && !q && !G ? /* @__PURE__ */ A(a, {
|
|
29
|
-
open: N,
|
|
30
|
-
onOpenChange: P,
|
|
31
|
-
children: /* @__PURE__ */ A(s, {
|
|
32
|
-
showCloseButton: !0,
|
|
33
|
-
className: "ttw:gap-0",
|
|
34
|
-
children: /* @__PURE__ */ A("div", {
|
|
35
|
-
className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
|
|
36
|
-
children: /* @__PURE__ */ A(y, {
|
|
37
|
-
title: R._("Product not found"),
|
|
38
|
-
description: R._("There is no product by provided id: {id}", { id: i })
|
|
39
|
-
})
|
|
40
|
-
})
|
|
41
|
-
})
|
|
42
|
-
}) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(a, {
|
|
43
|
-
open: N,
|
|
44
|
-
onOpenChange: P,
|
|
45
|
-
children: /* @__PURE__ */ j(s, {
|
|
46
|
-
showCloseButton: !1,
|
|
47
|
-
className: "ttw:gap-0",
|
|
48
|
-
children: [/* @__PURE__ */ j(l, {
|
|
49
|
-
className: "ttw:pt-6 ttw:pl-6 ttw:pb-7 ttw:flex-row ttw:gap-3 ttw:border-b ttw:border-border",
|
|
50
|
-
children: [/* @__PURE__ */ j("div", {
|
|
51
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:w-[85%]",
|
|
52
|
-
children: [/* @__PURE__ */ A(u, {
|
|
53
|
-
asChild: K,
|
|
54
|
-
className: "ttw:text-2xl",
|
|
55
|
-
children: K ? /* @__PURE__ */ A(f, { className: "ttw:w-40" }) : G?.name ?? ""
|
|
56
|
-
}), /* @__PURE__ */ A(c, {
|
|
57
|
-
asChild: K,
|
|
58
|
-
children: K ? /* @__PURE__ */ A(f, { className: "ttw:w-60" }) : R._("{type} · Added {createdAt}", {
|
|
59
|
-
createdAt: R.date(G?.created_at, z.dateFormat),
|
|
60
|
-
type: G?.type === "product" ? "Product" : "Service"
|
|
61
|
-
})
|
|
62
|
-
})]
|
|
63
|
-
}), /* @__PURE__ */ j("div", {
|
|
64
|
-
className: "ttw:flex ttw:gap-2",
|
|
65
|
-
children: [L && Q && /* @__PURE__ */ j(p, { children: [/* @__PURE__ */ A(g, {
|
|
66
|
-
asChild: !0,
|
|
67
|
-
children: /* @__PURE__ */ A(r, {
|
|
68
|
-
type: "button",
|
|
69
|
-
variant: "outline",
|
|
70
|
-
className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
|
|
71
|
-
children: /* @__PURE__ */ A(E, {})
|
|
72
|
-
})
|
|
73
|
-
}), /* @__PURE__ */ A(m, {
|
|
74
|
-
align: "end",
|
|
75
|
-
children: /* @__PURE__ */ j(h, {
|
|
76
|
-
onClick: () => W(!0),
|
|
77
|
-
variant: "destructive",
|
|
78
|
-
children: [/* @__PURE__ */ A(D, {}), R._("Delete product")]
|
|
79
|
-
})
|
|
80
|
-
})] }), /* @__PURE__ */ A(o, {
|
|
81
|
-
className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
|
|
82
|
-
children: /* @__PURE__ */ A(O, { className: "ttw:size-4" })
|
|
83
|
-
})]
|
|
84
|
-
})]
|
|
85
|
-
}), K ? /* @__PURE__ */ A("div", {
|
|
86
|
-
className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
|
|
87
|
-
children: /* @__PURE__ */ A(d, {})
|
|
88
|
-
}) : /* @__PURE__ */ A("main", {
|
|
89
|
-
className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
|
|
90
|
-
children: /* @__PURE__ */ j("div", {
|
|
91
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
92
|
-
children: [/* @__PURE__ */ j("div", {
|
|
93
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
94
|
-
children: [/* @__PURE__ */ j("div", {
|
|
95
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
96
|
-
children: [/* @__PURE__ */ A(_, {
|
|
97
|
-
variant: "body1",
|
|
98
|
-
className: "ttw:font-medium",
|
|
99
|
-
children: R._("{type} details", { type: J ? "Product" : "Service" })
|
|
100
|
-
}), /* @__PURE__ */ A(_, {
|
|
101
|
-
variant: "body2",
|
|
102
|
-
color: "muted",
|
|
103
|
-
children: J ? R._("A physical or digital item") : R._("Work or labor you provide")
|
|
104
|
-
})]
|
|
105
|
-
}), !V && Z && /* @__PURE__ */ A(r, {
|
|
106
|
-
type: "button",
|
|
107
|
-
variant: "ghost",
|
|
108
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
109
|
-
onClick: () => H(!0),
|
|
110
|
-
children: R._("Edit")
|
|
111
|
-
})]
|
|
112
|
-
}), V && G ? /* @__PURE__ */ A(C, {
|
|
113
|
-
product: G,
|
|
114
|
-
handleClose: () => H(!1),
|
|
115
|
-
onUpdate: (e) => {
|
|
116
|
-
F?.(e), H(!1);
|
|
117
|
-
}
|
|
118
|
-
}) : /* @__PURE__ */ j("ul", {
|
|
119
|
-
className: "ttw:list-none",
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ A(w, {
|
|
122
|
-
label: R._("{type} name", { type: J ? "Product" : "Service" }),
|
|
123
|
-
value: G?.name ?? "-"
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ A(w, {
|
|
126
|
-
label: R._("Price per unit"),
|
|
127
|
-
value: G?.price ? B(G.price.value, G.price.currency) : "-"
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ A(w, {
|
|
130
|
-
label: R._("Description"),
|
|
131
|
-
value: G?.description || "-",
|
|
132
|
-
isLast: !0
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
})]
|
|
136
|
-
})
|
|
137
|
-
})]
|
|
138
|
-
})
|
|
139
|
-
}), i && U && /* @__PURE__ */ A(S, {
|
|
140
|
-
id: i,
|
|
141
|
-
open: U,
|
|
142
|
-
onClose: () => W(!1),
|
|
143
|
-
onDeleted: (e) => {
|
|
144
|
-
P?.(), I?.(e), W(!1);
|
|
145
|
-
}
|
|
146
|
-
})] }) : /* @__PURE__ */ A(a, {
|
|
147
|
-
open: N,
|
|
148
|
-
onOpenChange: P,
|
|
149
|
-
children: /* @__PURE__ */ A(s, {
|
|
150
|
-
showCloseButton: !0,
|
|
151
|
-
className: "ttw:gap-0",
|
|
152
|
-
children: /* @__PURE__ */ A("div", {
|
|
153
|
-
className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
|
|
154
|
-
children: /* @__PURE__ */ A(b, {})
|
|
155
|
-
})
|
|
156
|
-
})
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
//#endregion
|
|
160
|
-
export { N as ProductDetails };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index25.js";
|
|
2
|
-
import { useCurrencies as n } from "./index63.js";
|
|
3
|
-
import { Button as r } from "./index56.js";
|
|
4
|
-
import { MoniteScopedProviders as i } from "./index129.js";
|
|
5
|
-
import { Sheet as a, SheetClose as o, SheetContent as s, SheetDescription as c, SheetFooter as l, SheetHeader as u, SheetTitle as d } from "./index50.js";
|
|
6
|
-
import { LoadingSpinner as f } from "./index51.js";
|
|
7
|
-
import "./index52.js";
|
|
8
|
-
import "./index173.js";
|
|
9
|
-
import { useCreateProduct as p } from "./index349.js";
|
|
10
|
-
import "./index357.js";
|
|
11
|
-
import { PRODUCT_API_FIELD_MAP as m } from "./index360.js";
|
|
12
|
-
import { getProductValidationSchema as h } from "./index363.js";
|
|
13
|
-
import { ProductFormContent as g } from "./index371.js";
|
|
14
|
-
import { useCallback as _, useId as v, useMemo as y } from "react";
|
|
15
|
-
import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { useLingui as S } from "@lingui/react";
|
|
17
|
-
import { FormProvider as C, useForm as w } from "react-hook-form";
|
|
18
|
-
import { zodResolver as T } from "@hookform/resolvers/zod";
|
|
19
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js
|
|
20
|
-
var E = (e) => /* @__PURE__ */ b(i, { children: /* @__PURE__ */ b(D, { ...e }) }), D = ({ onClose: i, open: E, onCreated: D }) => {
|
|
21
|
-
let { i18n: O } = S(), { formatToMinorUnits: k } = n(), A = `product-form-${v()}`, { mutate: j, isPending: M } = p(D), N = y(() => ({
|
|
22
|
-
name: "",
|
|
23
|
-
type: "product",
|
|
24
|
-
measureUnitId: "",
|
|
25
|
-
pricePerUnit: void 0,
|
|
26
|
-
currency: "USD",
|
|
27
|
-
description: void 0
|
|
28
|
-
}), []), { watch: P, ...F } = w({
|
|
29
|
-
resolver: T(h(O)),
|
|
30
|
-
defaultValues: N
|
|
31
|
-
}), I = P("type"), L = !!P("name")?.trim() && P("pricePerUnit") !== void 0, R = _((n) => {
|
|
32
|
-
n.preventDefault(), n.stopPropagation(), F.handleSubmit((n) => {
|
|
33
|
-
j({ body: {
|
|
34
|
-
name: n.name,
|
|
35
|
-
type: n.type,
|
|
36
|
-
price: {
|
|
37
|
-
value: k(n.pricePerUnit, n.currency) ?? 0,
|
|
38
|
-
currency: n.currency
|
|
39
|
-
},
|
|
40
|
-
description: n.description,
|
|
41
|
-
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
42
|
-
} }, { onError: (n) => {
|
|
43
|
-
e(F.setError, t(n), { fieldMap: m });
|
|
44
|
-
} });
|
|
45
|
-
})(n);
|
|
46
|
-
}, [
|
|
47
|
-
j,
|
|
48
|
-
k,
|
|
49
|
-
F.handleSubmit,
|
|
50
|
-
F.setError
|
|
51
|
-
]);
|
|
52
|
-
return /* @__PURE__ */ b(a, {
|
|
53
|
-
open: E,
|
|
54
|
-
onOpenChange: i,
|
|
55
|
-
children: /* @__PURE__ */ x(s, {
|
|
56
|
-
className: "ttw:gap-0",
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ x(u, {
|
|
59
|
-
className: "ttw:border-b ttw:border-border",
|
|
60
|
-
children: [/* @__PURE__ */ b(d, {
|
|
61
|
-
className: "ttw:text-2xl",
|
|
62
|
-
children: O._("Add a product or service")
|
|
63
|
-
}), /* @__PURE__ */ b(c, {
|
|
64
|
-
className: "ttw:max-w-130",
|
|
65
|
-
children: O._("Save the products and services you sell so you can quickly add them as line items on invoices.")
|
|
66
|
-
})]
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ b("div", {
|
|
69
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto",
|
|
70
|
-
children: /* @__PURE__ */ b(C, {
|
|
71
|
-
...F,
|
|
72
|
-
watch: P,
|
|
73
|
-
children: /* @__PURE__ */ b("form", {
|
|
74
|
-
id: A,
|
|
75
|
-
onSubmit: R,
|
|
76
|
-
children: /* @__PURE__ */ b(g, { isLoading: M })
|
|
77
|
-
})
|
|
78
|
-
})
|
|
79
|
-
}),
|
|
80
|
-
/* @__PURE__ */ x(l, {
|
|
81
|
-
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
82
|
-
children: [/* @__PURE__ */ b(o, {
|
|
83
|
-
asChild: !0,
|
|
84
|
-
children: /* @__PURE__ */ b(r, {
|
|
85
|
-
variant: "outline",
|
|
86
|
-
disabled: M,
|
|
87
|
-
className: "ttw:flex-1 ttw:border-border",
|
|
88
|
-
children: O._("Cancel")
|
|
89
|
-
})
|
|
90
|
-
}), /* @__PURE__ */ x(r, {
|
|
91
|
-
type: "submit",
|
|
92
|
-
form: A,
|
|
93
|
-
className: "ttw:flex-1",
|
|
94
|
-
title: O._("Complete the form to continue"),
|
|
95
|
-
disabled: M || !L,
|
|
96
|
-
children: [M && /* @__PURE__ */ b(f, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), O._("Save {type}", { type: I })]
|
|
97
|
-
})]
|
|
98
|
-
})
|
|
99
|
-
]
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
//#endregion
|
|
104
|
-
export { E as CreateProduct };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { MoniteScopedProviders as t } from "./index129.js";
|
|
4
|
-
import { useUserPermissions as n } from "./index111.js";
|
|
5
|
-
import { AccessRestriction as r } from "./index153.js";
|
|
6
|
-
import "./index155.js";
|
|
7
|
-
import { ProductsTable as i } from "./index370.js";
|
|
8
|
-
import { ProductDetails as a } from "./index374.js";
|
|
9
|
-
import { CreateProduct as o } from "./index375.js";
|
|
10
|
-
import { useCallback as s, useState as c } from "react";
|
|
11
|
-
import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js
|
|
13
|
-
var f = (e) => /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u(p, { ...e }) }), p = ({ pageTitleComponent: t }) => {
|
|
14
|
-
let f = n().has(e.InvoiceReadOrg), [p, m] = c(void 0), [h, g] = c(!1), _ = s((e) => {
|
|
15
|
-
m(e);
|
|
16
|
-
}, []), v = s(() => {
|
|
17
|
-
m(void 0);
|
|
18
|
-
}, []), y = s(() => {
|
|
19
|
-
g(!1);
|
|
20
|
-
}, []), b = s(() => {
|
|
21
|
-
g(!0);
|
|
22
|
-
}, []), x = s((e) => {
|
|
23
|
-
m(e);
|
|
24
|
-
}, []);
|
|
25
|
-
return /* @__PURE__ */ d(l, { children: [
|
|
26
|
-
t(/* @__PURE__ */ u(l, {})),
|
|
27
|
-
!f && /* @__PURE__ */ u(r, {}),
|
|
28
|
-
f && /* @__PURE__ */ u(i, {
|
|
29
|
-
onRowClick: _,
|
|
30
|
-
onDeleted: x,
|
|
31
|
-
openCreateModal: b
|
|
32
|
-
}),
|
|
33
|
-
h && /* @__PURE__ */ u(o, {
|
|
34
|
-
open: !0,
|
|
35
|
-
onClose: y,
|
|
36
|
-
onCreated: y
|
|
37
|
-
}),
|
|
38
|
-
!!p && p && /* @__PURE__ */ u(a, {
|
|
39
|
-
id: p,
|
|
40
|
-
open: !0,
|
|
41
|
-
onClose: v
|
|
42
|
-
})
|
|
43
|
-
] });
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
export { f as Products };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { Box as t, useTheme as n } from "@mui/material";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js
|
|
4
|
-
var r = ({ children: r, shouldApplyFinanceStyles: i = !1 }) => {
|
|
5
|
-
let a = n();
|
|
6
|
-
return /* @__PURE__ */ e(t, {
|
|
7
|
-
sx: {
|
|
8
|
-
background: `linear-gradient(180deg, ${a.palette.primary.light} 0%, ${a.palette.background.paper} 100%)`,
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column",
|
|
11
|
-
gap: 1,
|
|
12
|
-
px: 3,
|
|
13
|
-
py: i ? 3 : 2.5,
|
|
14
|
-
width: "100%",
|
|
15
|
-
minHeight: "auto",
|
|
16
|
-
borderRadius: "16px",
|
|
17
|
-
boxShadow: "0 16px 24px 0 rgba(0, 0, 0, 0.02)",
|
|
18
|
-
border: i ? "none" : `1px solid ${a.palette.divider}`
|
|
19
|
-
},
|
|
20
|
-
children: r
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { r as FinanceBannerWrapper };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { Box as n, Link as r, Typography as i } from "@mui/material";
|
|
3
|
-
import { useLingui as a } from "@lingui/react";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js
|
|
5
|
-
var o = [
|
|
6
|
-
{
|
|
7
|
-
id: 1,
|
|
8
|
-
question: "Does enrolling in the program affect my credit score?",
|
|
9
|
-
answer: "Nope! During the onboarding process we will only conduct a soft pull on your credit report, which will not affect your personal credit score."
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: 2,
|
|
13
|
-
question: "Why do I need to provide my bank connection details?",
|
|
14
|
-
answer: "Securely connecting your business bank account allows us to review your cashflow and determine your best loan offers."
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 3,
|
|
18
|
-
question: "When should I expect to receive a loan offer?",
|
|
19
|
-
answer: "Once you are enrolled into the program, we will be actively analyzing your financials and creating pre-approved offers that work best for your business needs. We do this to help you avoid debt trap. Loan offers are usually provided within less than 48 hours."
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: 4,
|
|
23
|
-
question: "How do I repay the loan?",
|
|
24
|
-
answer: "At the moment we support monthly loan repayment once you agree to the loan payment schedule. A fixed amount will be automatically deducted from the bank you linked during the onboarding.In the near future, you can also choose to pay back the loan as a fixed percentage of your daily sales until the loan is fully repaid."
|
|
25
|
-
}
|
|
26
|
-
], s = () => {
|
|
27
|
-
let { i18n: s } = a();
|
|
28
|
-
return /* @__PURE__ */ t(n, {
|
|
29
|
-
p: 4,
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ t(n, { children: [/* @__PURE__ */ e(i, {
|
|
32
|
-
variant: "h3",
|
|
33
|
-
children: s._("Simplified, fast funding for your growing business")
|
|
34
|
-
}), /* @__PURE__ */ e(i, {
|
|
35
|
-
variant: "subtitle2",
|
|
36
|
-
mt: 2,
|
|
37
|
-
children: s._("Get your business moving and accelerate growth with quick and easy access to funding. Multiple options available.")
|
|
38
|
-
})] }),
|
|
39
|
-
/* @__PURE__ */ t(n, {
|
|
40
|
-
mt: 5,
|
|
41
|
-
children: [/* @__PURE__ */ e(i, {
|
|
42
|
-
mb: 1,
|
|
43
|
-
variant: "h3",
|
|
44
|
-
children: s._("FAQ")
|
|
45
|
-
}), o.map((r) => /* @__PURE__ */ t(n, {
|
|
46
|
-
mt: 3,
|
|
47
|
-
children: [/* @__PURE__ */ e(i, {
|
|
48
|
-
variant: "subtitle2",
|
|
49
|
-
children: s._("{faqQuestion}", { faqQuestion: r.question })
|
|
50
|
-
}), /* @__PURE__ */ e(i, {
|
|
51
|
-
variant: "body1",
|
|
52
|
-
mt: 1,
|
|
53
|
-
children: s._("{faqAnswer}", { faqAnswer: r.answer })
|
|
54
|
-
})]
|
|
55
|
-
}, r.id))]
|
|
56
|
-
}),
|
|
57
|
-
/* @__PURE__ */ e(n, {
|
|
58
|
-
mt: 5,
|
|
59
|
-
children: /* @__PURE__ */ t(i, {
|
|
60
|
-
variant: "body2",
|
|
61
|
-
children: [
|
|
62
|
-
s._("All loans are subject to credit approval. Your terms may vary. Flourish Capital loans are issued by Kanmon. California Loans are made pursuant to a Department of Financial Protection and Innovation California Lenders Law License. Read more about Kanmon"),
|
|
63
|
-
" ",
|
|
64
|
-
/* @__PURE__ */ e(r, {
|
|
65
|
-
target: "_blank",
|
|
66
|
-
rel: "noopener noreferrer",
|
|
67
|
-
href: "https://kanmon.com",
|
|
68
|
-
children: s._("here.")
|
|
69
|
-
})
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
})
|
|
73
|
-
]
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
export { s as FinanceFaqDetails };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Dialog as e } from "./index122.js";
|
|
2
|
-
import "./index123.js";
|
|
3
|
-
import { FinanceFaqDetails as t } from "./index379.js";
|
|
4
|
-
import { useState as n } from "react";
|
|
5
|
-
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js
|
|
7
|
-
var o = ({ children: o }) => {
|
|
8
|
-
let [s, c] = n(!1);
|
|
9
|
-
return /* @__PURE__ */ a(r, { children: [o({ openModal: () => {
|
|
10
|
-
c(!0);
|
|
11
|
-
} }), /* @__PURE__ */ i(e, {
|
|
12
|
-
open: s,
|
|
13
|
-
onClose: () => c(!1),
|
|
14
|
-
alignDialog: "right",
|
|
15
|
-
children: /* @__PURE__ */ i(t, {})
|
|
16
|
-
})] });
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { o as FinanceFaqWrapper };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { Box as t, useTheme as n } from "@mui/material";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js
|
|
4
|
-
var r = ({ progress: r }) => {
|
|
5
|
-
let i = n();
|
|
6
|
-
return /* @__PURE__ */ e(t, {
|
|
7
|
-
sx: {
|
|
8
|
-
backgroundColor: i.palette.divider,
|
|
9
|
-
width: "100%",
|
|
10
|
-
height: "6px",
|
|
11
|
-
borderRadius: .5
|
|
12
|
-
},
|
|
13
|
-
children: /* @__PURE__ */ e(t, { sx: {
|
|
14
|
-
backgroundColor: i.palette.primary.main,
|
|
15
|
-
width: `${r}%`,
|
|
16
|
-
height: "6px",
|
|
17
|
-
borderRadius: .5
|
|
18
|
-
} })
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { r as FinanceProgressBar };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js
|
|
3
|
-
var t = () => {
|
|
4
|
-
let { api: t } = e();
|
|
5
|
-
return t.finops.getFinancingOffers.useQuery();
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as useGetFinanceOffers };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
import { toast as t } from "react-hot-toast";
|
|
3
|
-
import { useLingui as n } from "@lingui/react";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js
|
|
5
|
-
var r = () => {
|
|
6
|
-
let { api: r } = e(), { i18n: i } = n();
|
|
7
|
-
return r.finops.postFinancingTokens.useMutation({}, { onError: () => {
|
|
8
|
-
t.error(i._("The financing service is currently unavailable. Please reload the page or try again later."));
|
|
9
|
-
} });
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { r as useGetFinancingConnectToken };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "./index129.js";
|
|
2
|
-
import { createContext as e, useContext as t } from "react";
|
|
3
|
-
import "@emotion/react/jsx-runtime";
|
|
4
|
-
import "@lingui/react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js
|
|
6
|
-
var n = e(null);
|
|
7
|
-
function r() {
|
|
8
|
-
let e = t(n);
|
|
9
|
-
if (!e) throw Error("Could not find KanmonContext. Make sure that you are using \"MoniteProvider\" component before calling this hook.");
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { n as KanmonContext, r as useKanmonContext };
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
import { useMyEntity as t } from "./index143.js";
|
|
3
|
-
import "./index148.js";
|
|
4
|
-
import { useComponentSettings as n } from "./index171.js";
|
|
5
|
-
import "./index173.js";
|
|
6
|
-
import { useKanmonContext as r } from "./index384.js";
|
|
7
|
-
import { useGetFinanceOffers as i } from "./index382.js";
|
|
8
|
-
import { useGetFinancingConnectToken as a } from "./index383.js";
|
|
9
|
-
import { useEffect as o, useState as s } from "react";
|
|
10
|
-
import { useLingui as c } from "@lingui/react";
|
|
11
|
-
import l from "react-script-hook";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js
|
|
13
|
-
var u = "https://cdn.sandbox.kanmon.dev/scripts/v2/kanmon-connect.js", d = "https://cdn.kanmon.dev/scripts/v2/kanmon-connect.js", f = {
|
|
14
|
-
INIT: "init",
|
|
15
|
-
IN_PROGRESS: "in_progress",
|
|
16
|
-
PENDING_APPROVAL: "pending_approval",
|
|
17
|
-
NO_OFFERS_AVAILABLE: "no_offers",
|
|
18
|
-
SERVICING: "servicing",
|
|
19
|
-
APPROVED: "approved",
|
|
20
|
-
OFFER_ACCEPTED: "offer_accepted",
|
|
21
|
-
OFFERS_EXPIRED: "offers_expired"
|
|
22
|
-
}, p = () => {
|
|
23
|
-
let { apiUrl: p, api: m, queryClient: h, entityId: g } = e(), { isKanmonInitialized: _, toggleKanmon: v, handleButtonText: y, buttonText: b } = r(), { onboardingCallbacks: x } = n(), { i18n: S } = c(), C = a(), { data: w } = i(), { isUSEntity: T } = t(), E = (() => {
|
|
24
|
-
switch (w?.business_status) {
|
|
25
|
-
case "NEW":
|
|
26
|
-
default: return f.INIT;
|
|
27
|
-
case "INPUT_REQUIRED": return f.IN_PROGRESS;
|
|
28
|
-
case "ONBOARDED": return w?.offers?.length === 0 ? f.PENDING_APPROVAL : w?.offers?.[0]?.status === "NEW" ? f.APPROVED : w?.offers?.[0]?.status === "EXPIRED" ? f.OFFERS_EXPIRED : w?.offers?.[0]?.status === "ACCEPTED" ? f.OFFER_ACCEPTED : f.SERVICING;
|
|
29
|
-
}
|
|
30
|
-
})(), D = (() => {
|
|
31
|
-
try {
|
|
32
|
-
let e = new URL(p);
|
|
33
|
-
return !["api.dev.monite.com", "api.sandbox.monite.com"].includes(e.hostname);
|
|
34
|
-
} catch {
|
|
35
|
-
return !0;
|
|
36
|
-
}
|
|
37
|
-
})() ? d : u, [O] = l({ src: D }), [k, A] = s(!1), j = (e) => {
|
|
38
|
-
let t = {
|
|
39
|
-
type: "receivable",
|
|
40
|
-
status: "NEW",
|
|
41
|
-
invoice_id: e?.platformInvoiceId,
|
|
42
|
-
document_id: e?.platformInvoiceNumber,
|
|
43
|
-
due_date: e?.invoiceDueDate,
|
|
44
|
-
issue_date: e?.invoiceIssuedDate,
|
|
45
|
-
total_amount: e?.invoiceAmountCents,
|
|
46
|
-
currency: "USD",
|
|
47
|
-
payer_type: e?.payorType,
|
|
48
|
-
payer_business_name: e?.payorBusinessName,
|
|
49
|
-
payer_first_name: e?.payorFirstName,
|
|
50
|
-
payer_last_name: e?.payorLastName,
|
|
51
|
-
requested_amount: e?.amountRequestedForFinancingCents,
|
|
52
|
-
principal_amount: e?.principalAmountCents,
|
|
53
|
-
repayment_amount: e?.repaymentAmountCents,
|
|
54
|
-
advance_amount: e?.invoiceAdvanceAmountCents,
|
|
55
|
-
advance_rate_percentage: e?.advanceRatePercentage * 100,
|
|
56
|
-
fee_amount: e?.feeAmountCents,
|
|
57
|
-
fee_percentage: e?.transactionFeePercentage * 100,
|
|
58
|
-
repayment_schedule: {
|
|
59
|
-
repayment_date: e?.repaymentSchedule?.schedule?.[0]?.repaymentDate,
|
|
60
|
-
repayment_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentAmountCents,
|
|
61
|
-
repayment_fee_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentFeeAmountCents,
|
|
62
|
-
repayment_principal_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentPrincipalAmountCents
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
m.finops.getFinancingInvoices.setQueryData(m.finops.getFinancingInvoices.getQueryKey({ query: {
|
|
66
|
-
type: "receivable",
|
|
67
|
-
invoice_id: e?.platformInvoiceId
|
|
68
|
-
} }), (e) => ({
|
|
69
|
-
...e,
|
|
70
|
-
data: [t]
|
|
71
|
-
}), h), m.finops.getFinancingInvoices.setQueryData(m.finops.getFinancingInvoices.getQueryKey({ query: {} }), (e) => {
|
|
72
|
-
let n = e?.data ? e.data : [];
|
|
73
|
-
return {
|
|
74
|
-
...e,
|
|
75
|
-
data: [t, ...n]
|
|
76
|
-
};
|
|
77
|
-
}, h);
|
|
78
|
-
}, M = ({ connectToken: e }) => {
|
|
79
|
-
window?.KANMON_CONNECT?.start({
|
|
80
|
-
connectToken: e,
|
|
81
|
-
onEvent: (e) => {
|
|
82
|
-
if (e.eventType === "USER_STATE_CHANGED" || e.eventType === "USER_CONFIRMED_INVOICE") {
|
|
83
|
-
if (e.eventType === "USER_CONFIRMED_INVOICE") j(e.data.invoice);
|
|
84
|
-
else {
|
|
85
|
-
switch (e.data.userState) {
|
|
86
|
-
case "START_FLOW":
|
|
87
|
-
y(S._("Apply for financing"));
|
|
88
|
-
break;
|
|
89
|
-
case "USER_INPUT_REQUIRED":
|
|
90
|
-
e.data.section === "OFFER" ? y(S._("Review terms and sign")) : y(S._("Resume application"));
|
|
91
|
-
break;
|
|
92
|
-
case "WAITING_FOR_OFFERS":
|
|
93
|
-
y(""), (w?.business_status === "INPUT_REQUIRED" || w?.business_status === "NEW") && x.onWorkingCapitalOnboardingComplete?.(g);
|
|
94
|
-
break;
|
|
95
|
-
case "OFFERS_EXPIRED":
|
|
96
|
-
case "NO_OFFERS_EXTENDED":
|
|
97
|
-
y("");
|
|
98
|
-
break;
|
|
99
|
-
case "SERVICING":
|
|
100
|
-
y(S._("Financing menu")), w?.business_status === "ONBOARDED" && w?.offers?.[0]?.status === "NEW" && window.localStorage.setItem("isFinanceTabNew", "true");
|
|
101
|
-
break;
|
|
102
|
-
case "VIEW_OFFERS":
|
|
103
|
-
case "OFFER_ACCEPTED": y(S._("Review terms and sign"));
|
|
104
|
-
}
|
|
105
|
-
m.finops.getFinancingOffers.invalidateQueries(h);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
o(() => {
|
|
112
|
-
!_ && !O && T && (async () => {
|
|
113
|
-
A(!0);
|
|
114
|
-
try {
|
|
115
|
-
let e = await C.mutateAsync();
|
|
116
|
-
M({ connectToken: e.connect_token }), v(!0);
|
|
117
|
-
} catch {} finally {
|
|
118
|
-
A(!1);
|
|
119
|
-
}
|
|
120
|
-
})();
|
|
121
|
-
}, [O, T]);
|
|
122
|
-
let N = O || k, P = T, F = w?.business_status === "ONBOARDED" && w?.offers?.[0]?.status === "CURRENT";
|
|
123
|
-
return {
|
|
124
|
-
buttonText: b,
|
|
125
|
-
applicationState: E,
|
|
126
|
-
offer: w?.offers?.[0],
|
|
127
|
-
isLoading: N,
|
|
128
|
-
isEnabled: P,
|
|
129
|
-
isServicing: F
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
//#endregion
|
|
133
|
-
export { f as FinancialApplicationState, p as useFinancing };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js
|
|
3
|
-
var t = () => {
|
|
4
|
-
let { api: t } = e();
|
|
5
|
-
return t.finops.postFinancingInvoices.useMutation({}, { onError: () => {} });
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as useFinanceAnInvoice };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js
|
|
3
|
-
var t = (t, n = !0) => {
|
|
4
|
-
let { api: r } = e();
|
|
5
|
-
return r.finops.getFinancingInvoices.useQuery({ query: t }, { enabled: n });
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as useGetFinancedInvoices };
|