@tesouro/embedded-components-react 0.2.220 → 0.2.222
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/README.md +10 -0
- package/dist/index.d.ts +35 -15
- package/dist/index.js +81 -77
- package/dist/lib/CreateCardWidget.d.ts +590 -0
- package/dist/lib/CreateCardWidget.js +7 -0
- package/dist/lib/ReceivablesWidget.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index2.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index2.js +61 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/index2.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/ui/dist/index3.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1270 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +8 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +7 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +73 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +32 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +119 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +217 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +11 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +150 -24
- 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 +2 -2
- 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 +94 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +57 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +19 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +27 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +114 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +2 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +23 -361
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +358 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +69 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +2 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +407 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +26 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +5 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +214 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +35 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +14 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +79 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +76 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +44 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +73 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +488 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +167 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +146 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +86 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +23 -359
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +183 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +26 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +35 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +37 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +61 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +94 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +110 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +40 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +59 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +30 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +118 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +23 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +16 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +43 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +343 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +296 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +97 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +159 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +265 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +24 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +22 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +51 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +27 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +56 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +18 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +93 -74
- 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 +97 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +210 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +48 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +63 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +41 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +36 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +82 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +34 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +66 -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 +360 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +117 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +6 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +17 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +10 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +10 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +11 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +11 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +19 -483
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +26 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +37 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +14 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +17 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +105 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +12 -149
- 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 +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +24 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +37 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +55 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +50 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +30 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +45 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +145 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +108 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- 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 +50 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +74 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +32 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +17 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +149 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +19 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +6 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +20 -117
- 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 +15 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +17 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +158 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +132 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +159 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +63 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +67 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +60 -4
- 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 +6 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +59 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +22 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +61 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +67 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +33 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +158 -42
- 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 +28 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +78 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +26 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +127 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +25 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +126 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +48 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +114 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +106 -63
- 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 +45 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +203 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +69 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +30 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +38 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +30 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +13 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +34 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +118 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +16 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +71 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +11 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +95 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +50 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +15 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +31 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +4 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +124 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +64 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +21 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +45 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +12 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +66 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +21 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +116 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +80 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +32 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +40 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +73 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +97 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +66 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +45 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +6 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +84 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +85 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +262 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +61 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +42 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +21 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +137 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +94 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +2 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +278 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +48 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +13 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +50 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +83 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +93 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +15 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +75 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +22 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +56 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +70 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +20 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +46 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +36 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +33 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +29 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +55 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +38 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +40 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +18 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +56 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +30 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +39 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +12 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +28 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +24 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +39 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +14 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +32 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +85 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +23 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +99 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +112 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +70 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -1
- 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 +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +3 -3
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +4 -4
- 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 +9 -9
- 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/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +21 -21
- package/package.json +1 -1
|
@@ -1,25 +1,111 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as i, Fragment as I, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as $, useState as v } from "react";
|
|
3
|
+
import { useLingui as F } from "@lingui/react";
|
|
4
|
+
import { toast as g } from "react-hot-toast";
|
|
5
|
+
import { Check as T } from "lucide-react";
|
|
6
|
+
import { useMoniteContext as q } from "./index57.js";
|
|
7
|
+
import { useCurrencies as A } from "./index58.js";
|
|
8
|
+
import "./index92.js";
|
|
9
|
+
import "react-dom";
|
|
10
|
+
import "@mui/x-data-grid";
|
|
11
|
+
import { useGetMeasureUnits as L } from "./index308.js";
|
|
12
|
+
import { DialogHeader as U, DialogTitle as B, DialogFooter as G } from "./index267.js";
|
|
13
|
+
import { Button as p } from "./index84.js";
|
|
14
|
+
import { Checkbox as x } from "./index351.js";
|
|
15
|
+
import { Separator as H } from "./index137.js";
|
|
16
|
+
import { Typography as c } from "./index85.js";
|
|
17
|
+
const st = ({
|
|
18
|
+
inlineLineItems: u,
|
|
19
|
+
title: _,
|
|
20
|
+
onClose: w
|
|
21
|
+
}) => {
|
|
22
|
+
const {
|
|
23
|
+
i18n: a
|
|
24
|
+
} = F(), {
|
|
25
|
+
api: f,
|
|
26
|
+
queryClient: k
|
|
27
|
+
} = q(), {
|
|
28
|
+
formatCurrencyToDisplay: N
|
|
29
|
+
} = A(), {
|
|
30
|
+
data: C
|
|
31
|
+
} = L(), {
|
|
32
|
+
mutateAsync: S
|
|
33
|
+
} = f.finops.postProducts.useMutation(), s = $(() => u.map((t, e) => ({
|
|
34
|
+
key: t.id ?? String(e),
|
|
35
|
+
lineItem: t
|
|
36
|
+
})), [u]), [n, d] = v(() => new Set(s.map((t) => t.key))), [l, h] = v(!1), D = s.length > 0 && n.size === s.length, m = n.size > 0, y = () => d(new Set(s.map((t) => t.key))), b = () => d(/* @__PURE__ */ new Set()), P = (t) => d((e) => {
|
|
37
|
+
const o = new Set(e);
|
|
38
|
+
return o.has(t) ? o.delete(t) : o.add(t), o;
|
|
39
|
+
}), M = (t) => {
|
|
40
|
+
const e = N(t.product.price.value, t.product.price.currency) ?? "", o = t.product.measure_unit_id ? C?.data?.find((z) => z.id === t.product.measure_unit_id)?.name : void 0;
|
|
41
|
+
return o ? `${e} ${o}` : e;
|
|
42
|
+
}, j = async () => {
|
|
43
|
+
const t = s.filter((e) => n.has(e.key));
|
|
44
|
+
if (t.length) {
|
|
45
|
+
h(!0);
|
|
46
|
+
try {
|
|
47
|
+
await Promise.all(t.map(({
|
|
48
|
+
lineItem: e
|
|
49
|
+
}) => S({
|
|
50
|
+
body: {
|
|
51
|
+
name: e.product.name,
|
|
52
|
+
type: "product",
|
|
53
|
+
price: {
|
|
54
|
+
value: e.product.price.value,
|
|
55
|
+
currency: e.product.price?.currency ?? "USD"
|
|
56
|
+
},
|
|
57
|
+
...e.product.measure_unit_id ? {
|
|
58
|
+
measure_unit_id: e.product.measure_unit_id
|
|
59
|
+
} : {},
|
|
60
|
+
...e.product.description ? {
|
|
61
|
+
description: e.product.description
|
|
62
|
+
} : {}
|
|
63
|
+
}
|
|
64
|
+
}))), await f.finops.getProducts.invalidateQueries(k), g.success(a._("Products and services saved.")), w();
|
|
65
|
+
} catch {
|
|
66
|
+
g.error(a._("Failed to save products and services."));
|
|
67
|
+
} finally {
|
|
68
|
+
h(!1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return /* @__PURE__ */ i(I, { children: [
|
|
73
|
+
/* @__PURE__ */ r(U, { className: "ttw:border-b ttw:border-border ttw:p-6", children: /* @__PURE__ */ i(B, { className: "ttw:flex ttw:flex-row ttw:items-center ttw:gap-4", children: [
|
|
74
|
+
/* @__PURE__ */ r("span", { className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50", children: /* @__PURE__ */ r(T, { className: "ttw:size-6 ttw:text-green-700" }) }),
|
|
75
|
+
_
|
|
76
|
+
] }) }),
|
|
77
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-6", children: [
|
|
78
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-1.5", children: [
|
|
79
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
80
|
+
/* @__PURE__ */ r(c, { variant: "h4", children: a._("Do you want to also save these items?") }),
|
|
81
|
+
/* @__PURE__ */ r(c, { variant: "caption", color: "muted", children: a._("Saved items can be quickly added to future invoices.") })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ r(p, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", disabled: l, onClick: m ? b : y, children: m ? a._("Deselect all") : a._("Select all") })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ i("ul", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [
|
|
86
|
+
/* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
87
|
+
/* @__PURE__ */ r(x, { checked: D, onCheckedChange: (t) => t ? y() : b(), disabled: l || s.length === 0, "aria-label": a._("Products and services") }),
|
|
88
|
+
/* @__PURE__ */ r(c, { variant: "body2", className: "ttw:font-semibold", children: a._("Products and services") })
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(H, {}) }),
|
|
91
|
+
s.map(({
|
|
92
|
+
key: t,
|
|
93
|
+
lineItem: e
|
|
94
|
+
}) => /* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-start ttw:gap-2", children: [
|
|
95
|
+
/* @__PURE__ */ r(x, { checked: n.has(t), onCheckedChange: () => P(t), disabled: l, "aria-label": e.product.name }),
|
|
96
|
+
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
97
|
+
/* @__PURE__ */ r(c, { variant: "caption", children: e.product.name }),
|
|
98
|
+
/* @__PURE__ */ r(c, { variant: "caption", color: "muted", children: M(e) })
|
|
99
|
+
] })
|
|
100
|
+
] }, t))
|
|
101
|
+
] })
|
|
102
|
+
] }),
|
|
103
|
+
/* @__PURE__ */ i(G, { className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6", children: [
|
|
104
|
+
/* @__PURE__ */ r(p, { type: "button", variant: "outline", className: "ttw:flex-1 ttw:border-border", disabled: l, onClick: w, children: a._("Skip") }),
|
|
105
|
+
/* @__PURE__ */ r(p, { type: "button", variant: "default", className: "ttw:flex-1", disabled: !m || l, onClick: j, children: a._("Save selected items") })
|
|
106
|
+
] })
|
|
107
|
+
] });
|
|
16
108
|
};
|
|
17
109
|
export {
|
|
18
|
-
|
|
19
|
-
o as FILTER_TYPE_CREATED_AT,
|
|
20
|
-
p as FILTER_TYPE_CREATED_BY,
|
|
21
|
-
T as FILTER_TYPE_SEARCH,
|
|
22
|
-
d as ROLE_APPROVAL_CALLS,
|
|
23
|
-
R as ROW_TO_STATUS_MUI_MAP,
|
|
24
|
-
i as getRowToStatusTextMap
|
|
110
|
+
st as ActionsModalProductsStep
|
|
25
111
|
};
|
|
@@ -2,9 +2,9 @@ import { jsx as o, jsxs as I, Fragment as y } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import { CounterpartDetails as R } from "./index2.js";
|
|
3
3
|
import { CustomersTable as T } from "./index6.js";
|
|
4
4
|
import { VendorsTable as b } from "./index5.js";
|
|
5
|
-
import { CreateCounterpartDialog as k } from "./
|
|
5
|
+
import { CreateCounterpartDialog as k } from "./index152.js";
|
|
6
6
|
import { MoniteScopedProviders as M } from "./index83.js";
|
|
7
|
-
import { useUserPermissions as P } from "./
|
|
7
|
+
import { useUserPermissions as P } from "./index130.js";
|
|
8
8
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
9
9
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
10
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -12,7 +12,7 @@ import "@tanstack/react-query";
|
|
|
12
12
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
13
13
|
import { Scope as l } from "../../shared/data-access/dist/lib/scopes.js";
|
|
14
14
|
import { useState as u, useCallback as c } from "react";
|
|
15
|
-
import { AccessRestriction as j } from "./
|
|
15
|
+
import { AccessRestriction as j } from "./index131.js";
|
|
16
16
|
import { Button as x } from "./index84.js";
|
|
17
17
|
import "clsx";
|
|
18
18
|
import "tailwind-merge";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMoniteContext as _ } from "./index57.js";
|
|
2
2
|
import { useLingui as l } from "@lingui/react";
|
|
3
|
-
import { getAPIErrorMessage as b } from "./
|
|
3
|
+
import { getAPIErrorMessage as b } from "./index119.js";
|
|
4
4
|
import { toast as s } from "react-hot-toast";
|
|
5
5
|
import { useUpdatePayable as m } from "./index25.js";
|
|
6
6
|
const A = ({
|
|
@@ -1,46 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as a, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as m, Controller as u } from "react-hook-form";
|
|
3
|
+
import { Typography as n } from "./index85.js";
|
|
4
|
+
import { useLingui as w } from "@lingui/react";
|
|
5
|
+
import { Switch as i } from "./index431.js";
|
|
6
|
+
import { twMerge as h } from "tailwind-merge";
|
|
7
|
+
const x = ({
|
|
8
|
+
control: l,
|
|
9
|
+
isDialog: r
|
|
10
10
|
}) => {
|
|
11
11
|
const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
e(
|
|
33
|
-
] },
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
12
|
+
i18n: t
|
|
13
|
+
} = w(), {
|
|
14
|
+
watch: c,
|
|
15
|
+
setValue: d
|
|
16
|
+
} = m(), s = c("invoice_bank_display");
|
|
17
|
+
return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
18
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5", children: [
|
|
19
|
+
/* @__PURE__ */ e(n, { variant: "h3", children: t._("PDF settings") }),
|
|
20
|
+
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", children: t._("Invoices are generated as PDFs") })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ a("div", { className: h(
|
|
23
|
+
"ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-lg",
|
|
24
|
+
// In the dialog the toggles sit in their own grey grouping box, so the
|
|
25
|
+
// inset padding is needed. On the settings page they already sit inside
|
|
26
|
+
// the section card, so the extra padding just indented the body.
|
|
27
|
+
r ? "ttw:bg-zinc-100 ttw:p-4" : ""
|
|
28
|
+
), children: [
|
|
29
|
+
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
30
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
31
|
+
/* @__PURE__ */ e(n, { variant: "body1", className: "ttw:font-medium", children: t._("Display your bank account details on the PDF") }),
|
|
32
|
+
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", children: t._("Shows your bank account number, routing number, and account holder name so that customers can pay using an ACH bank transfer. Should only be used with accounts that have a debit block.") })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ e(i, { checked: s, onCheckedChange: (o) => {
|
|
35
|
+
d("invoice_bank_display", o, {
|
|
36
|
+
shouldDirty: !0
|
|
37
|
+
});
|
|
38
|
+
}, "aria-label": t._("Display bank display options") })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ a("section", { className: "ttw:flex ttw:justify-between ttw:gap-4", children: [
|
|
41
|
+
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
42
|
+
/* @__PURE__ */ e(n, { variant: "body1", className: "ttw:font-medium", children: t._("Update PDF files for paid invoices") }),
|
|
43
|
+
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", children: t._("PDF invoice files will be regenerated to reflect payments made and any remaining amount due. Once a PDF has been updated, you won't be able to revert it.") }),
|
|
44
|
+
/* @__PURE__ */ e(n, { variant: "body2", color: "muted", className: "ttw:font-medium", children: t._("Once updated, you won't be able to revert the PDFs.") })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ e(u, { name: "update_paid_invoices", control: l, render: ({
|
|
47
|
+
field: o
|
|
48
|
+
}) => /* @__PURE__ */ e(i, { checked: o.value, onCheckedChange: o.onChange, "aria-label": t._("Enable update paid invoices pdf") }) })
|
|
49
|
+
] })
|
|
50
|
+
] })
|
|
51
|
+
] });
|
|
43
52
|
};
|
|
44
53
|
export {
|
|
45
|
-
|
|
54
|
+
x as PDFSettings
|
|
46
55
|
};
|
|
@@ -1,59 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { useDebounceCallback as x, useDebounce as T } from "./index65.js";
|
|
6
|
-
import { useLingui as _ } from "@lingui/react";
|
|
7
|
-
import { X as N } from "lucide-react";
|
|
8
|
-
import { SearchInput as A, DatePicker as $, Combobox as R } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
9
|
-
import { FILTER_TYPE_SEARCH as k, FILTER_TYPE_CREATED_BY as D, FILTER_TYPE_CREATED_AT as v } from "./index299.js";
|
|
10
|
-
const C = 500, F = (t) => {
|
|
11
|
-
const e = `${t.first_name ?? ""} ${t.last_name ?? ""}`.trim();
|
|
12
|
-
return e && t.email ? `${e} (${t.email})` : e || t.email || t.id;
|
|
13
|
-
}, L = ({
|
|
14
|
-
onChange: t
|
|
15
|
-
}) => {
|
|
1
|
+
import { toast as n } from "react-hot-toast";
|
|
2
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
3
|
+
import { useLingui as a } from "@lingui/react";
|
|
4
|
+
const c = (e) => {
|
|
16
5
|
const {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
api: t,
|
|
7
|
+
queryClient: i
|
|
8
|
+
} = o(), {
|
|
9
|
+
i18n: s
|
|
10
|
+
} = a();
|
|
11
|
+
return t.finops.patchEntitiesIdSettings.useMutation(void 0, {
|
|
12
|
+
onSuccess: () => {
|
|
13
|
+
n.success(s._("Settings updated successfully.")), t.finops.getEntitiesIdSettings.invalidateQueries({
|
|
14
|
+
parameters: {
|
|
15
|
+
path: {
|
|
16
|
+
entity_id: e
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, i), t.finops.getDocumentsIdNextNumbers.invalidateQueries({
|
|
20
|
+
parameters: {
|
|
21
|
+
path: {
|
|
22
|
+
entity_id: e
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, i);
|
|
25
26
|
}
|
|
26
|
-
})
|
|
27
|
-
value: o.id,
|
|
28
|
-
label: F(o)
|
|
29
|
-
})), [d]), p = u(() => !r || i.some((o) => o.value === r.value) ? i : [r, ...i], [i, r]);
|
|
30
|
-
return /* @__PURE__ */ s(R, { items: p, value: r?.value ?? "", placeholder: e._("Added by"), emptyMessage: e._("No users found"), clearAriaLabel: e._("Clear selection"), onQueryChange: a, onValueChange: (o) => {
|
|
31
|
-
const h = Array.isArray(o) ? o[0] ?? "" : o ?? "";
|
|
32
|
-
l(p.find((g) => g.value === h) ?? null), t(h || void 0);
|
|
33
|
-
} });
|
|
34
|
-
}, X = ({
|
|
35
|
-
onChangeFilter: t
|
|
36
|
-
}) => {
|
|
37
|
-
const {
|
|
38
|
-
i18n: e
|
|
39
|
-
} = _(), {
|
|
40
|
-
root: n
|
|
41
|
-
} = E(), [r, l] = c(void 0), m = x((a) => {
|
|
42
|
-
t(k, a.trim() ? a : null);
|
|
43
|
-
}, C);
|
|
44
|
-
return /* @__PURE__ */ f("div", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2", children: [
|
|
45
|
-
/* @__PURE__ */ s("div", { className: "ttw:flex-1", children: /* @__PURE__ */ s(A, { placeholder: e._("Search"), className: "ttw:h-9 ttw:w-full", onChange: (a) => m(a.target.value) }) }),
|
|
46
|
-
/* @__PURE__ */ s("div", { className: "ttw:w-48 ttw:shrink-0", children: /* @__PURE__ */ s(L, { onChange: (a) => t(D, a ?? null) }) }),
|
|
47
|
-
/* @__PURE__ */ f("div", { className: "ttw:relative ttw:w-44 ttw:shrink-0", children: [
|
|
48
|
-
/* @__PURE__ */ s($, { value: r, placeholder: e._("Created at"), className: `ttw:h-9 ttw:border-border${r ? " ttw:pr-8" : ""}`, container: n, onChange: (a) => {
|
|
49
|
-
l(a), t(v, a ?? null);
|
|
50
|
-
} }),
|
|
51
|
-
r ? /* @__PURE__ */ s("button", { type: "button", "aria-label": e._("Clear created at filter"), className: "ttw:absolute ttw:right-2 ttw:top-1/2 ttw:inline-flex ttw:size-4 ttw:-translate-y-1/2 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 hover:ttw:opacity-100", onClick: () => {
|
|
52
|
-
l(void 0), t(v, null);
|
|
53
|
-
}, children: /* @__PURE__ */ s(N, { className: "ttw:size-3.5" }) }) : null
|
|
54
|
-
] })
|
|
55
|
-
] });
|
|
27
|
+
});
|
|
56
28
|
};
|
|
57
29
|
export {
|
|
58
|
-
|
|
30
|
+
c as usePatchEntitySettings
|
|
59
31
|
};
|
|
@@ -1,98 +1,79 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { getPayablesAnalyticsSnapshot as U } from "./index414.js";
|
|
11
|
-
const c = [{
|
|
12
|
-
groupStatus: "all",
|
|
13
|
-
apiStatuses: [],
|
|
14
|
-
representativeStatus: null
|
|
15
|
-
}, {
|
|
16
|
-
groupStatus: "draft",
|
|
17
|
-
apiStatuses: ["draft", "new"],
|
|
18
|
-
representativeStatus: "draft"
|
|
19
|
-
}, {
|
|
20
|
-
groupStatus: "pending_approval",
|
|
21
|
-
apiStatuses: ["approve_in_progress"],
|
|
22
|
-
representativeStatus: "approve_in_progress"
|
|
23
|
-
}, {
|
|
24
|
-
groupStatus: "rejected",
|
|
25
|
-
apiStatuses: ["rejected"],
|
|
26
|
-
representativeStatus: "rejected"
|
|
27
|
-
}, {
|
|
28
|
-
groupStatus: "ready_to_pay",
|
|
29
|
-
apiStatuses: ["waiting_to_be_paid", "partially_paid"],
|
|
30
|
-
representativeStatus: "waiting_to_be_paid"
|
|
31
|
-
}, {
|
|
32
|
-
groupStatus: "paid",
|
|
33
|
-
apiStatuses: ["paid"],
|
|
34
|
-
representativeStatus: "paid"
|
|
35
|
-
}, {
|
|
36
|
-
groupStatus: "cancelled",
|
|
37
|
-
apiStatuses: ["canceled"],
|
|
38
|
-
representativeStatus: "canceled"
|
|
39
|
-
}], O = ({
|
|
40
|
-
onChangeFilter: o,
|
|
41
|
-
selectedStatus: s
|
|
1
|
+
import { jsxs as n, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as $, Controller as d } from "react-hook-form";
|
|
3
|
+
import { useLingui as F } from "@lingui/react";
|
|
4
|
+
import { Typography as c } from "./index85.js";
|
|
5
|
+
import { Field as m, FieldContent as s, FieldLabel as w, FieldError as u } from "./index154.js";
|
|
6
|
+
import { Input as g } from "./index128.js";
|
|
7
|
+
import { Checkbox as S } from "./index351.js";
|
|
8
|
+
const E = ({
|
|
9
|
+
control: o
|
|
42
10
|
}) => {
|
|
43
11
|
const {
|
|
44
|
-
i18n:
|
|
45
|
-
} =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
12
|
+
i18n: i
|
|
13
|
+
} = F(), {
|
|
14
|
+
setValue: v,
|
|
15
|
+
watch: a
|
|
16
|
+
} = $(), p = a("min_digits"), f = a("prefix"), h = a("separator"), b = a("include_date"), x = a("invoice"), N = a("invoice_number");
|
|
17
|
+
function y() {
|
|
18
|
+
return `${x}${h}${f ? `${f}${h}` : ""}${b ? `${(/* @__PURE__ */ new Date()).getFullYear()}${h}` : ""}${N.toString().padStart(p, "0")}`;
|
|
19
|
+
}
|
|
20
|
+
const _ = y();
|
|
21
|
+
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5", children: [
|
|
23
|
+
/* @__PURE__ */ e(c, { variant: "h3", children: i._("Invoice numbering") }),
|
|
24
|
+
/* @__PURE__ */ e(c, { variant: "body2", color: "muted", children: i._("Specify how you want your invoices to be numbered. Changes apply to new invoices only. Existing invoice numbers won't be updated.") })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:w-94 ttw:gap-0.5 ttw:p-4 ttw:bg-neutral-200 ttw:rounded-xl", children: [
|
|
27
|
+
/* @__PURE__ */ e(c, { variant: "body2", color: "muted", children: i._("Preview") }),
|
|
28
|
+
/* @__PURE__ */ e(c, { variant: "h4", className: "ttw:font-medium", children: _ })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:w-min ttw:gap-2 ttw:p-2", children: [
|
|
31
|
+
/* @__PURE__ */ e(d, { name: "invoice", control: o, render: ({
|
|
32
|
+
field: t,
|
|
33
|
+
fieldState: {
|
|
34
|
+
error: r
|
|
35
|
+
}
|
|
36
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
37
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Invoice prefix") }),
|
|
38
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, maxLength: 25, "aria-invalid": !!r || void 0, className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
39
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
40
|
+
] }) }) }),
|
|
41
|
+
/* @__PURE__ */ e(d, { name: "invoice_number", control: o, render: ({
|
|
42
|
+
field: t,
|
|
43
|
+
fieldState: {
|
|
44
|
+
error: r
|
|
45
|
+
}
|
|
46
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
47
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Starting number") }),
|
|
48
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", "aria-invalid": !!r || void 0, onChange: (l) => {
|
|
49
|
+
const C = l.target.value.replace(/^0+(?=\d)/, "");
|
|
50
|
+
t.onChange(Number(C));
|
|
51
|
+
}, value: t.value.toString().padStart(p, "0"), className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
52
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
53
|
+
] }) }) }),
|
|
54
|
+
/* @__PURE__ */ e(d, { name: "min_digits", control: o, render: ({
|
|
55
|
+
field: t,
|
|
56
|
+
fieldState: {
|
|
57
|
+
error: r
|
|
58
|
+
}
|
|
59
|
+
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
60
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Digit count") }),
|
|
61
|
+
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", className: "ttw:bg-white ttw:w-29 ttw:max-w-29", onChange: (l) => {
|
|
62
|
+
+l.target.value > 20 ? v("min_digits", 20, {
|
|
63
|
+
shouldDirty: !0
|
|
64
|
+
}) : t.onChange(l);
|
|
65
|
+
}, "aria-invalid": !!r || void 0 }),
|
|
66
|
+
/* @__PURE__ */ e(u, { errors: [r] })
|
|
67
|
+
] }) }) })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ e("div", { className: "ttw:bg-transparent ttw:w-full ttw:p-2", children: /* @__PURE__ */ e(d, { name: "include_date", control: o, render: ({
|
|
70
|
+
field: t
|
|
71
|
+
}) => /* @__PURE__ */ e(m, { orientation: "horizontal", children: /* @__PURE__ */ n(s, { className: "ttw:flex-row ttw:items-center", children: [
|
|
72
|
+
/* @__PURE__ */ e(S, { id: t.name, ref: t.ref, checked: t.value ?? !1, onCheckedChange: t.onChange, onBlur: t.onBlur, className: "ttw:bg-white" }),
|
|
73
|
+
/* @__PURE__ */ e(w, { htmlFor: t.name, className: "ttw:font-normal", children: i._("Include the current year in the invoice number prefix") })
|
|
74
|
+
] }) }) }) })
|
|
75
|
+
] });
|
|
95
76
|
};
|
|
96
77
|
export {
|
|
97
|
-
|
|
78
|
+
E as InvoiceNumbering
|
|
98
79
|
};
|