@tesouro/embedded-components-react 0.2.55 → 0.2.56
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/lib/ReceivablesWidget.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index2.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/useReceiptMatch.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index2.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +58 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +398 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +69 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +407 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +64 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +29 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +22 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +147 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +56 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +96 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +55 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +92 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +95 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +24 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +19 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +10 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +116 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +68 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +45 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +75 -7
- 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 +54 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +195 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +14 -394
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +41 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +7 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +110 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +184 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +121 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +59 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +13 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +88 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +44 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +45 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +391 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +19 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +13 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +92 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +46 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +75 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +55 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +58 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +54 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +346 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +2 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +12 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +31 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +37 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +35 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +17 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +244 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +179 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +18 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +53 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +48 -341
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +28 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +92 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +42 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +37 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +343 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +303 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +86 -474
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +155 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +267 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +23 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +20 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +149 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +19 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +41 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +60 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +31 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +113 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +21 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +56 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +20 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +39 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +80 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +94 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +192 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +487 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +162 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +61 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +44 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +65 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +22 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +76 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +41 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +62 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +24 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +186 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +108 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +80 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +290 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +48 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +15 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +82 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +224 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +35 -174
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +46 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +109 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +17 -287
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +27 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +58 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +94 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +106 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +63 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +28 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +155 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +27 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +78 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +127 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +255 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +54 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +16 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +47 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +46 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +6 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +104 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +57 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +32 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +40 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +67 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +97 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +9 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +10 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +119 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +91 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +32 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +66 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +30 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +4 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +127 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +65 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +85 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +23 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +105 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +110 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +28 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +24 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +39 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +70 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +67 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +38 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +54 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +35 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +32 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +26 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +38 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +19 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +14 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +21 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +5 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +29 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +68 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +52 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +37 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +41 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +37 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +13 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +93 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +20 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +57 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +69 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +18 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +56 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +31 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +51 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +49 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +70 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +83 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +50 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +50 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +54 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +33 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +36 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +50 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +52 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- 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/index87.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +33 -33
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +79 -74
- package/dist/packages/shared-ui-shadcn/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
|
|
3
|
-
import { useLingui as c } from "@lingui/react";
|
|
4
|
-
import { toast as n } from "react-hot-toast";
|
|
5
|
-
const M = (a, i) => {
|
|
1
|
+
import { useMoniteContext as i } from "./index58.js";
|
|
2
|
+
const s = (e) => {
|
|
6
3
|
const {
|
|
7
|
-
api: t
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return t.finops.postMeasureUnits.useMutation({}, {
|
|
13
|
-
onSuccess: async (e) => {
|
|
14
|
-
await t.finops.getMeasureUnits.invalidateQueries(o), n.success(r._("Unit {name} was added to the list", {
|
|
15
|
-
name: e.name
|
|
16
|
-
})), a?.();
|
|
17
|
-
},
|
|
18
|
-
onError: async (e) => {
|
|
19
|
-
const s = m(r, e);
|
|
20
|
-
if (s.includes("already exists")) {
|
|
21
|
-
i?.(s);
|
|
22
|
-
return;
|
|
23
|
-
} else
|
|
24
|
-
n.error(s);
|
|
4
|
+
api: t
|
|
5
|
+
} = i();
|
|
6
|
+
return t.finops.postReceivablesIdPreview.useMutation({
|
|
7
|
+
path: {
|
|
8
|
+
receivable_id: e
|
|
25
9
|
}
|
|
26
10
|
});
|
|
27
11
|
};
|
|
28
12
|
export {
|
|
29
|
-
|
|
13
|
+
s as useCreateInvoiceEmailPreview
|
|
30
14
|
};
|
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
|
|
3
|
-
import { useLingui as d } from "@lingui/react";
|
|
4
|
-
import { toast as n } from "react-hot-toast";
|
|
5
|
-
const g = (i, o, u) => {
|
|
1
|
+
import { useMoniteContext as n } from "./index58.js";
|
|
2
|
+
const m = (e) => {
|
|
6
3
|
const {
|
|
7
|
-
api:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
i18n: a
|
|
11
|
-
} = d();
|
|
12
|
-
return e.finops.patchMeasureUnitsId.useMutation({
|
|
4
|
+
api: t
|
|
5
|
+
} = n();
|
|
6
|
+
return t.finops.getPaymentTermsId.useQuery({
|
|
13
7
|
path: {
|
|
14
|
-
|
|
8
|
+
payment_terms_id: e ?? ""
|
|
15
9
|
}
|
|
16
10
|
}, {
|
|
17
|
-
|
|
18
|
-
await Promise.all([e.finops.getMeasureUnits.invalidateQueries(r), e.finops.getMeasureUnitsId.invalidateQueries({
|
|
19
|
-
parameters: {
|
|
20
|
-
path: {
|
|
21
|
-
unit_id: i
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}, r)]), n.success(a._("Unit {name} was updated", {
|
|
25
|
-
name: s.name
|
|
26
|
-
})), o?.();
|
|
27
|
-
},
|
|
28
|
-
onError: (s) => {
|
|
29
|
-
const t = m(a, s);
|
|
30
|
-
if (t.includes("already exists")) {
|
|
31
|
-
u?.(t);
|
|
32
|
-
return;
|
|
33
|
-
} else
|
|
34
|
-
n.error(t);
|
|
35
|
-
}
|
|
11
|
+
enabled: !!e
|
|
36
12
|
});
|
|
37
13
|
};
|
|
38
14
|
export {
|
|
39
|
-
|
|
15
|
+
m as useGetPaymentTermById
|
|
40
16
|
};
|
|
@@ -1,71 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}) => {
|
|
22
|
-
const {
|
|
23
|
-
i18n: m
|
|
24
|
-
} = U(), b = z(m), {
|
|
25
|
-
handleSubmit: l,
|
|
26
|
-
control: d,
|
|
27
|
-
reset: y,
|
|
28
|
-
setError: c
|
|
29
|
-
} = k({
|
|
30
|
-
defaultValues: h,
|
|
31
|
-
resolver: S(b)
|
|
32
|
-
}), w = E(() => y(), (e) => c("name", {
|
|
33
|
-
type: "custom",
|
|
34
|
-
message: e
|
|
35
|
-
})), i = V(s ?? "", () => v?.(), (e) => c("name", {
|
|
36
|
-
type: "custom",
|
|
37
|
-
message: e
|
|
38
|
-
})), x = (e) => {
|
|
39
|
-
if (!n || !s) {
|
|
40
|
-
console.error("handleEdit called without valid id or edit mode");
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
i.mutate(e);
|
|
44
|
-
}, N = (e) => {
|
|
45
|
-
w.mutate(e);
|
|
46
|
-
}, u = w.isPending || i.isPending;
|
|
47
|
-
return /* @__PURE__ */ t(C, { className: "ttw:border-border ttw:hover:bg-transparent", children: /* @__PURE__ */ t(M, { colSpan: 3, className: "ttw:w-full ttw:whitespace-normal", children: /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start", children: [
|
|
48
|
-
/* @__PURE__ */ t(f, { name: "name", control: d, render: ({
|
|
49
|
-
field: e,
|
|
50
|
-
fieldState: {
|
|
51
|
-
error: r
|
|
52
|
-
}
|
|
53
|
-
}) => /* @__PURE__ */ a("div", { className: "ttw:w-[35%]", children: [
|
|
54
|
-
/* @__PURE__ */ t(p, { ...e, disabled: u, "aria-invalid": !!r || void 0, className: "ttw:h-8" }),
|
|
55
|
-
r && /* @__PURE__ */ t("p", { className: "ttw:text-xs ttw:text-destructive ttw:mt-1", children: r.message })
|
|
56
|
-
] }) }),
|
|
57
|
-
/* @__PURE__ */ t(f, { name: "description", control: d, render: ({
|
|
58
|
-
field: e,
|
|
59
|
-
fieldState: {
|
|
60
|
-
error: r
|
|
61
|
-
}
|
|
62
|
-
}) => /* @__PURE__ */ t("div", { className: "ttw:w-[55%]", children: /* @__PURE__ */ t(p, { ...e, id: e.name, disabled: u, "aria-invalid": !!r || void 0, className: "ttw:h-8" }) }) }),
|
|
63
|
-
n ? /* @__PURE__ */ a("div", { className: "ttw:flex ttw:justify-center ttw:gap-1", children: [
|
|
64
|
-
/* @__PURE__ */ t(o, { variant: "outline", size: "icon", className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", disabled: i.isPending, onClick: l(x), children: /* @__PURE__ */ t($, { className: "ttw:size-4" }) }),
|
|
65
|
-
/* @__PURE__ */ t(o, { variant: "outline", size: "icon", className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", onClick: g, children: /* @__PURE__ */ t(j, { className: "ttw:size-4" }) })
|
|
66
|
-
] }) : /* @__PURE__ */ t(o, { variant: "outline", size: "sm", className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", onClick: l(N), children: m._("Add") })
|
|
67
|
-
] }) }) });
|
|
68
|
-
};
|
|
1
|
+
class t {
|
|
2
|
+
value;
|
|
3
|
+
currency;
|
|
4
|
+
formatter;
|
|
5
|
+
constructor(r) {
|
|
6
|
+
this.value = r.value, this.currency = r.currency, this.formatter = r.formatter;
|
|
7
|
+
}
|
|
8
|
+
add(r) {
|
|
9
|
+
if (this.currency !== r.currency)
|
|
10
|
+
throw new Error("Currencies must match");
|
|
11
|
+
return new t({
|
|
12
|
+
value: Number(this.value) + Number(r.value),
|
|
13
|
+
currency: this.currency,
|
|
14
|
+
formatter: this.formatter
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
toString() {
|
|
18
|
+
return this.formatter(this.value, this.currency) ?? "";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
69
21
|
export {
|
|
70
|
-
|
|
22
|
+
t as Price
|
|
71
23
|
};
|
|
@@ -1,49 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "./index58.js";
|
|
8
|
-
import "@mui/x-data-grid";
|
|
9
|
-
import { ConfirmationModal as y } from "./index269.js";
|
|
10
|
-
import { Table as C, TableBody as _, TableRow as D, TableCell as l } from "./index309.js";
|
|
11
|
-
import { Typography as r } from "./index86.js";
|
|
12
|
-
import { Loader2 as L } from "lucide-react";
|
|
13
|
-
import { useGetProducts as T } from "./index204.js";
|
|
14
|
-
const R = ({
|
|
15
|
-
onClose: c,
|
|
16
|
-
onDelete: d,
|
|
17
|
-
name: p,
|
|
18
|
-
isLoading: u,
|
|
19
|
-
open: h,
|
|
20
|
-
id: n
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as l, useEffect as c } from "react";
|
|
3
|
+
const u = ({
|
|
4
|
+
shouldStartProgress: e,
|
|
5
|
+
isError: d,
|
|
6
|
+
isSuccess: w
|
|
21
7
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/* @__PURE__ */ e(r, { color: "muted", children: t._("Deleting it won't affect your items.") })
|
|
34
|
-
] }) : /* @__PURE__ */ a(m, { children: [
|
|
35
|
-
/* @__PURE__ */ e(r, { children: t._("Any products or services referencing this unit will update to use a blank unit of measure.") }),
|
|
36
|
-
/* @__PURE__ */ e(r, { color: "muted", children: t._("Previously issued invoices will not be impacted.") }),
|
|
37
|
-
o && /* @__PURE__ */ e(L, { className: "ttw:mx-auto ttw:size-6 ttw:animate-spin" }),
|
|
38
|
-
!o && /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(_, { children: s?.data.map((i) => /* @__PURE__ */ a(D, { className: "ttw:border-border ttw:hover:bg-transparent", children: [
|
|
39
|
-
/* @__PURE__ */ e(l, { className: "ttw:pl-0 ttw:whitespace-normal ttw:text-text ttw:font-medium", children: i.name }),
|
|
40
|
-
/* @__PURE__ */ e(l, { className: "ttw:pr-0 ttw:text-right ttw:text-text ttw:font-medium", children: i.price && w(i.price?.value, i.price?.currency) })
|
|
41
|
-
] }, i.id)) }) })
|
|
42
|
-
] });
|
|
43
|
-
return /* @__PURE__ */ e(y, { open: h, title: t._('Delete "{name}"?', {
|
|
44
|
-
name: p
|
|
45
|
-
}), confirmLabel: t._("Delete"), cancelLabel: t._("Cancel"), onClose: c, onConfirm: d, isLoading: u || o, children: g() });
|
|
8
|
+
const [a, o] = l(0);
|
|
9
|
+
return c(() => {
|
|
10
|
+
let s;
|
|
11
|
+
return e && (s = setInterval(() => {
|
|
12
|
+
o((t) => t < 98 ? t + 2 : t === 98 ? t + 1 : t);
|
|
13
|
+
}, 200)), () => {
|
|
14
|
+
clearInterval(s);
|
|
15
|
+
};
|
|
16
|
+
}, [e]), w ? /* @__PURE__ */ r("div", { className: "ttw:w-65.5 ttw:h-1.5 ttw:bg-success ttw:rounded-md" }) : d ? /* @__PURE__ */ r("div", { className: "ttw:w-65.5 ttw:h-1.5 ttw:bg-danger ttw:rounded-md" }) : /* @__PURE__ */ r("div", { className: "ttw:w-65.5 ttw:h-1.5 ttw:bg-neutral ttw:rounded-md", children: /* @__PURE__ */ r("div", { className: "ttw:bg-primary ttw:h-full ttw:rounded-md", style: {
|
|
17
|
+
width: `${a}%`
|
|
18
|
+
} }) });
|
|
46
19
|
};
|
|
47
20
|
export {
|
|
48
|
-
|
|
21
|
+
u as UploadBar
|
|
49
22
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a, Fragment as B } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as s, useMemo as N, useCallback as G } from "react";
|
|
3
|
-
import { ProductDeleteModal as W } from "./
|
|
4
|
-
import { ProductType as q } from "./
|
|
5
|
-
import { Filters as H } from "./
|
|
3
|
+
import { ProductDeleteModal as W } from "./index174.js";
|
|
4
|
+
import { ProductType as q } from "./index175.js";
|
|
5
|
+
import { Filters as H } from "./index176.js";
|
|
6
6
|
import { useMoniteContext as Y } from "./index58.js";
|
|
7
7
|
import { MoniteScopedProviders as J } from "./index84.js";
|
|
8
8
|
import { useCurrencies as Q } from "./index59.js";
|
|
@@ -10,27 +10,27 @@ import "./index93.js";
|
|
|
10
10
|
import { useLingui as V } from "@lingui/react";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "@mui/x-data-grid";
|
|
13
|
-
import { useUserPermissions as X } from "./
|
|
13
|
+
import { useUserPermissions as X } from "./index136.js";
|
|
14
14
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
15
15
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
16
16
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
17
17
|
import "@tanstack/react-query";
|
|
18
18
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
19
19
|
import { Scope as k } from "../../shared/data-access/dist/lib/scopes.js";
|
|
20
|
-
import { AccessRestriction as Z } from "./
|
|
20
|
+
import { AccessRestriction as Z } from "./index137.js";
|
|
21
21
|
import { Button as f } from "./index85.js";
|
|
22
22
|
import "clsx";
|
|
23
23
|
import "tailwind-merge";
|
|
24
24
|
import "@radix-ui/react-dialog";
|
|
25
25
|
import { ArrowUp as ee, ArrowDown as te, ArrowUpDown as oe, Plus as ie } from "lucide-react";
|
|
26
|
-
import { DataTable as re } from "./
|
|
27
|
-
import { GetNoRowsOverlay as ae } from "./
|
|
28
|
-
import { MeasureUnit as se } from "./
|
|
29
|
-
import { hasSelectedText as ne } from "./
|
|
30
|
-
import { FILTER_TYPE_SEARCH as S } from "./
|
|
26
|
+
import { DataTable as re } from "./index164.js";
|
|
27
|
+
import { GetNoRowsOverlay as ae } from "./index163.js";
|
|
28
|
+
import { MeasureUnit as se } from "./index177.js";
|
|
29
|
+
import { hasSelectedText as ne } from "./index165.js";
|
|
30
|
+
import { FILTER_TYPE_SEARCH as S } from "./index178.js";
|
|
31
31
|
import "react-hot-toast";
|
|
32
|
-
import { useGetProducts as le } from "./
|
|
33
|
-
import { ManageMeasureUnits as ce } from "./
|
|
32
|
+
import { useGetProducts as le } from "./index179.js";
|
|
33
|
+
import { ManageMeasureUnits as ce } from "./index180.js";
|
|
34
34
|
const Ge = (d) => /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(de, { ...d }) }), de = ({
|
|
35
35
|
onFilterChanged: d,
|
|
36
36
|
onSortChanged: g,
|
|
@@ -1,30 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
permissions: o
|
|
10
|
-
}) => {
|
|
11
|
-
const {
|
|
12
|
-
i18n: n
|
|
13
|
-
} = u();
|
|
14
|
-
return o.isUpdateAllowed || o.isDeleteAllowed ? /* @__PURE__ */ i(s, { children: [
|
|
15
|
-
/* @__PURE__ */ e(a, { asChild: !0, children: /* @__PURE__ */ e(c, { variant: "ghost", size: "icon", "aria-label": "actions-menu-button", children: /* @__PURE__ */ e(m, {}) }) }),
|
|
16
|
-
/* @__PURE__ */ i(d, { align: "end", children: [
|
|
17
|
-
o.isUpdateAllowed && /* @__PURE__ */ i(r, { onClick: t, children: [
|
|
18
|
-
/* @__PURE__ */ e(p, {}),
|
|
19
|
-
n._("Edit")
|
|
20
|
-
] }),
|
|
21
|
-
o.isDeleteAllowed && /* @__PURE__ */ i(r, { onClick: l, variant: "destructive", children: [
|
|
22
|
-
/* @__PURE__ */ e(h, {}),
|
|
23
|
-
n._("Delete")
|
|
24
|
-
] })
|
|
25
|
-
] })
|
|
26
|
-
] }) : null;
|
|
1
|
+
const o = ["draft", "new", "waiting_to_be_paid", "approve_in_progress"], s = (n) => {
|
|
2
|
+
if (!n.due_date) return 0;
|
|
3
|
+
const e = /* @__PURE__ */ new Date();
|
|
4
|
+
e.setUTCHours(0, 0, 0, 0);
|
|
5
|
+
const t = new Date(n.due_date);
|
|
6
|
+
if (t.setUTCHours(0, 0, 0, 0), t.getTime() === e.getTime()) return 0;
|
|
7
|
+
const r = o.includes(n.status), i = t.getTime() < e.getTime();
|
|
8
|
+
return !r || !i ? 0 : Math.floor((e.getTime() - t.getTime()) / 864e5);
|
|
27
9
|
};
|
|
28
10
|
export {
|
|
29
|
-
|
|
11
|
+
s as getInvoiceOverdueDays
|
|
30
12
|
};
|
|
@@ -1,36 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} = n();
|
|
6
|
-
return t.finops.getPaymentLinksId.useQuery({
|
|
7
|
-
path: {
|
|
8
|
-
payment_link_id: e ?? ""
|
|
9
|
-
}
|
|
10
|
-
}, {
|
|
11
|
-
enabled: !!e
|
|
12
|
-
});
|
|
13
|
-
}, y = () => {
|
|
14
|
-
const {
|
|
15
|
-
api: e
|
|
16
|
-
} = n(), t = e.finops.postPaymentLinks.useMutation({});
|
|
17
|
-
return async (a, s, i, o) => t.mutateAsync({
|
|
18
|
-
recipient: {
|
|
19
|
-
id: s,
|
|
20
|
-
type: "counterpart"
|
|
21
|
-
},
|
|
22
|
-
object: {
|
|
23
|
-
id: a,
|
|
24
|
-
type: "payable"
|
|
25
|
-
},
|
|
26
|
-
payment_methods: i,
|
|
27
|
-
expires_at: new Date(
|
|
28
|
-
Date.now() + o * 24 * 3600 * 1e3
|
|
29
|
-
// x days from now
|
|
30
|
-
).toISOString()
|
|
31
|
-
});
|
|
32
|
-
};
|
|
1
|
+
function r(l, e) {
|
|
2
|
+
if (l !== void 0) return l;
|
|
3
|
+
if (e !== void 0) return null;
|
|
4
|
+
}
|
|
33
5
|
export {
|
|
34
|
-
|
|
35
|
-
r as usePaymentLinkById
|
|
6
|
+
r as resolveNullableUpdate
|
|
36
7
|
};
|
|
@@ -1,55 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
roleId: s,
|
|
9
|
-
variant: a = "default",
|
|
10
|
-
quoted: l = !1,
|
|
11
|
-
roleData: e
|
|
1
|
+
import { jsxs as i, jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as s } from "@lingui/react";
|
|
3
|
+
import { Badge as m } from "./index254.js";
|
|
4
|
+
import { Typography as o } from "./index86.js";
|
|
5
|
+
const f = ({
|
|
6
|
+
email: t,
|
|
7
|
+
isDefault: e
|
|
12
8
|
}) => {
|
|
13
9
|
const {
|
|
14
|
-
|
|
15
|
-
} =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} = m.finops.getRolesId.useQuery({
|
|
20
|
-
path: {
|
|
21
|
-
role_id: s
|
|
22
|
-
}
|
|
23
|
-
}, {
|
|
24
|
-
enabled: !e
|
|
25
|
-
}), t = e ?? c, r = !e && d;
|
|
26
|
-
if (!t && !r && f && s) {
|
|
27
|
-
const {
|
|
28
|
-
badgeVariant: u,
|
|
29
|
-
className: g
|
|
30
|
-
} = i({
|
|
31
|
-
variant: a,
|
|
32
|
-
isError: !0,
|
|
33
|
-
componentType: "role"
|
|
34
|
-
});
|
|
35
|
-
return /* @__PURE__ */ o(n, { variant: u, className: g, children: "N/A" });
|
|
36
|
-
}
|
|
37
|
-
if (!t && !r || !t)
|
|
38
|
-
return null;
|
|
39
|
-
const {
|
|
40
|
-
badgeVariant: p,
|
|
41
|
-
className: w,
|
|
42
|
-
showIcon: h
|
|
43
|
-
} = i({
|
|
44
|
-
variant: a,
|
|
45
|
-
isError: !1,
|
|
46
|
-
componentType: "role"
|
|
47
|
-
});
|
|
48
|
-
return /* @__PURE__ */ x(n, { variant: p, className: w, children: [
|
|
49
|
-
h && /* @__PURE__ */ o(N, { width: 24, height: 24, className: a === "default" ? "ttw:text-[rgb(97,97,97)] ttw:!w-6 ttw:!h-6 ttw:flex-shrink-0" : "ttw:!w-6 ttw:!h-6 ttw:flex-shrink-0" }),
|
|
50
|
-
r ? /* @__PURE__ */ o(b, { className: "ttw:h-4 ttw:w-20" }) : l ? `"${t.name}"` : t.name
|
|
10
|
+
i18n: r
|
|
11
|
+
} = s();
|
|
12
|
+
return /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
13
|
+
/* @__PURE__ */ a(o, { variant: "body2", className: "ttw:max-w-62.5 ttw:truncate", title: t, children: t }),
|
|
14
|
+
e && /* @__PURE__ */ a(m, { variant: "secondary", children: r._("Default") })
|
|
51
15
|
] });
|
|
52
16
|
};
|
|
53
17
|
export {
|
|
54
|
-
|
|
18
|
+
f as DefaultEmail
|
|
55
19
|
};
|
|
@@ -1,42 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}) => {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
!t?.hideCancel && /* @__PURE__ */ o(r, { variant: "text", color: "primary", onClick: t?.onClick || g?.onClose, disabled: n?.isLoading || i?.isLoading || e?.isLoading, children: t?.label || s._("Cancel") }),
|
|
28
|
-
i && !i.onTheLeft && /* @__PURE__ */ o(r, { variant: "text", color: "primary", onClick: i.onClick, disabled: i.isDisabled || i.isLoading, children: i.isLoading ? /* @__PURE__ */ o(a, { color: "inherit", size: 20 }) : i.label }),
|
|
29
|
-
n && /* @__PURE__ */ o(r, { variant: "contained", color: "primary", ...h(n) ? {
|
|
30
|
-
type: "submit",
|
|
31
|
-
form: n.formId
|
|
32
|
-
} : {
|
|
33
|
-
type: "button",
|
|
34
|
-
onClick: n.onClick
|
|
35
|
-
}, disabled: n.isDisabled || n.isLoading, children: n.isLoading ? /* @__PURE__ */ o(a, { color: "inherit", size: 20 }) : n.label })
|
|
36
|
-
] })
|
|
37
|
-
] })
|
|
38
|
-
] });
|
|
39
|
-
};
|
|
1
|
+
import { jsxs as r, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as d } from "react";
|
|
3
|
+
import { styled as s, TableCell as i, Card as m, Table as c, TableBody as h, TableRow as p } from "@mui/material";
|
|
4
|
+
const b = s(i)(({
|
|
5
|
+
theme: e,
|
|
6
|
+
isRequired: l
|
|
7
|
+
}) => ({
|
|
8
|
+
color: l ? e.palette.error.main : e.palette.text.secondary,
|
|
9
|
+
minWidth: 120,
|
|
10
|
+
width: "35%"
|
|
11
|
+
})), u = (e) => {
|
|
12
|
+
const l = d(() => !e.value && e.withEmptyStateFiller ? "—" : e.value, [e.value, e.withEmptyStateFiller]);
|
|
13
|
+
return l ? /* @__PURE__ */ r(p, { children: [
|
|
14
|
+
/* @__PURE__ */ t(b, { component: "th", scope: "row", children: e.label }),
|
|
15
|
+
/* @__PURE__ */ t(i, { children: l })
|
|
16
|
+
] }) : null;
|
|
17
|
+
}, y = ({
|
|
18
|
+
items: e,
|
|
19
|
+
children: l,
|
|
20
|
+
...a
|
|
21
|
+
}) => /* @__PURE__ */ r(m, { variant: "outlined", sx: {
|
|
22
|
+
overflow: "visible"
|
|
23
|
+
}, ...a, children: [
|
|
24
|
+
/* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(h, { children: e.map((o, n) => /* @__PURE__ */ t(u, { ...o }, n)) }) }),
|
|
25
|
+
l
|
|
26
|
+
] });
|
|
40
27
|
export {
|
|
41
|
-
|
|
28
|
+
y as MoniteCard,
|
|
29
|
+
u as MoniteCardItem,
|
|
30
|
+
b as StyledLabelTableCell
|
|
42
31
|
};
|
|
@@ -1,49 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
padding: 3
|
|
15
|
-
}, "aria-label": "breadcrumb", children: [
|
|
16
|
-
/* @__PURE__ */ e(s, { onClick: i, sx: {
|
|
17
|
-
cursor: i ? "pointer" : "default"
|
|
18
|
-
}, children: r }),
|
|
19
|
-
/* @__PURE__ */ e(s, { children: o })
|
|
20
|
-
] })), G = c(({
|
|
21
|
-
title: r,
|
|
22
|
-
secondaryLevel: i = !1,
|
|
23
|
-
previousLevelTitle: o,
|
|
24
|
-
closeButtonTooltip: d,
|
|
25
|
-
showDivider: p = !0,
|
|
26
|
-
closeSecondaryLevelDialog: m
|
|
1
|
+
import { jsx as a, jsxs as x, Fragment as h } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Controller as y } from "react-hook-form";
|
|
3
|
+
import { useRootElements as D } from "./index93.js";
|
|
4
|
+
import { Alert as F } from "@mui/material";
|
|
5
|
+
import { DatePicker as C } from "@mui/x-date-pickers";
|
|
6
|
+
import { parse as P, format as T } from "date-fns";
|
|
7
|
+
const M = ({
|
|
8
|
+
control: p,
|
|
9
|
+
name: n,
|
|
10
|
+
slotProps: o,
|
|
11
|
+
valueAs: c = "date",
|
|
12
|
+
stringFormat: s = "yyyy-MM-dd",
|
|
13
|
+
...d
|
|
27
14
|
}) => {
|
|
28
|
-
const {
|
|
29
|
-
|
|
30
|
-
} =
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}) =>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
15
|
+
const i = (e) => e?.type === "custom", {
|
|
16
|
+
root: l
|
|
17
|
+
} = D();
|
|
18
|
+
return /* @__PURE__ */ a(y, { control: p, name: n, render: ({
|
|
19
|
+
field: e,
|
|
20
|
+
fieldState: {
|
|
21
|
+
error: r,
|
|
22
|
+
isTouched: u
|
|
23
|
+
},
|
|
24
|
+
formState: {
|
|
25
|
+
isValid: f
|
|
26
|
+
}
|
|
27
|
+
}) => {
|
|
28
|
+
const m = (u || !f) && !i(r), g = e.value !== null ? typeof e.value == "string" ? P(e.value, s, /* @__PURE__ */ new Date()) : new Date(e.value) : null;
|
|
29
|
+
return /* @__PURE__ */ x(h, { children: [
|
|
30
|
+
/* @__PURE__ */ a(
|
|
31
|
+
C,
|
|
32
|
+
{
|
|
33
|
+
...e,
|
|
34
|
+
...d,
|
|
35
|
+
value: g,
|
|
36
|
+
onChange: (t) => {
|
|
37
|
+
if (t instanceof Date && !Number.isNaN(t.getTime())) {
|
|
38
|
+
const v = c === "string" ? T(t, s) : t;
|
|
39
|
+
e.onChange(v);
|
|
40
|
+
} else
|
|
41
|
+
e.onChange(null);
|
|
42
|
+
},
|
|
43
|
+
slotProps: {
|
|
44
|
+
...o,
|
|
45
|
+
popper: {
|
|
46
|
+
...o?.popper,
|
|
47
|
+
container: l
|
|
48
|
+
},
|
|
49
|
+
dialog: {
|
|
50
|
+
...o?.dialog,
|
|
51
|
+
container: l
|
|
52
|
+
},
|
|
53
|
+
textField: {
|
|
54
|
+
variant: "standard",
|
|
55
|
+
...o?.textField,
|
|
56
|
+
id: n,
|
|
57
|
+
error: m && !!r?.message,
|
|
58
|
+
helperText: m && r?.message
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
i(r) && /* @__PURE__ */ a(F, { severity: "error", icon: !1, sx: {
|
|
64
|
+
marginTop: -2
|
|
65
|
+
}, children: r?.message })
|
|
66
|
+
] });
|
|
67
|
+
} });
|
|
68
|
+
};
|
|
47
69
|
export {
|
|
48
|
-
|
|
70
|
+
M as RHFDatePicker
|
|
49
71
|
};
|