@solvimon/solvimon-web 0.1.0-alpha.7 → 0.1.0-alpha.8
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/ApiStatus-CyNDp_op.mjs +9 -0
- package/dist/ApiStatus-oqvUEWJx.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C-C0i6i6.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +2 -4
- package/dist/{ContentWithAsideLayout-Ct24RV-2.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
- package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +2 -5
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CLU7Yiyx.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B_WLgBur.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +1 -2
- package/dist/PaymentHistoryBlock-DHM-3fh-.js +1 -0
- package/dist/PaymentHistoryBlock-YzJ6bxKr.mjs +4 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +1 -5
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DFw8lrDv.js +1 -0
- package/dist/PaymentIntegrationForm-Cl5ua8v8.js +1 -0
- package/dist/PaymentIntegrationForm-ID4QnvA3.mjs +4 -0
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CVWPT3Ni.mjs} +32 -189
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DifRn1ok.js +1 -0
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js +1 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -31
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +4 -7
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
- package/dist/adyenLoader-CEH4A2b2.js +1 -0
- package/dist/adyenLoader-gsbzSjYV.mjs +177 -0
- package/dist/component-C2Gc-wsE.js +1 -0
- package/dist/component-CM9g6tbD.mjs +804 -0
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +3 -7
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +9 -17
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -7
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +42 -2659
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -7
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +2 -6
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -7
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +7 -33
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +8 -4824
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -8
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +3 -7
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/core/types.d.ts +2 -0
- package/dist/{customer-CcQR-JIm.js → customer-C_Hz_npf.js} +1 -1
- package/dist/{customer-CJrpbGX4.mjs → customer-TIi7iZFw.mjs} +1 -1
- package/dist/en-US-CBoPxQwX.mjs +199 -0
- package/dist/en-US-DJq-9dD8.js +1 -0
- package/dist/index-CzL1ZcGi.mjs +85 -0
- package/dist/index-DRdBmZ2-.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -1
- package/dist/{invoices-CNK1Ushv.mjs → invoices-BuVOuTOm.mjs} +2 -15
- package/dist/invoices-DbvwXAsm.js +1 -0
- package/dist/nl-NL-BB7KbK-h.mjs +181 -0
- package/dist/nl-NL-CtU1Lg2F.js +1 -0
- package/dist/paymentMethods-B4AYGf0K.js +1 -0
- package/dist/{paymentMethods-C-ApE-G4.mjs → paymentMethods-Di32oJ39.mjs} +2 -2
- package/dist/{payments-CE9U7aKK.mjs → payments-C5fD1PXB.mjs} +1 -1
- package/dist/{payments-CLt0SExf.js → payments-DeutKq9x.js} +1 -1
- package/dist/{registry-B99ZnfEn.mjs → registry-BLwMl1bK.mjs} +6 -4
- package/dist/registry-CMSmkLcy.js +1 -0
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +420 -2388
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +13 -14
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +3 -0
- package/dist/screens/PayInvoice/PayInvoice.cjs.js +1 -0
- package/dist/screens/PayInvoice/PayInvoice.es.js +456 -0
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +79 -61
- package/dist/solvimon-web.css +1 -1
- package/dist/source-DKDKBlUm.mjs +179 -0
- package/dist/source-dkMNFWDc.js +1 -0
- package/dist/{subscriptions-CoeCrY1I.mjs → subscriptions-mOgjjzUi.mjs} +2 -2
- package/dist/subscriptions-wdMADcQZ.js +1 -0
- package/dist/{useActionDispatchProvider-eO2qFPGv.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
- package/dist/{useActionDispatchProvider-CWVV_xsi.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
- package/dist/{useCustomer-PthyTFLl.js → useCustomer-DanZzn-l.js} +1 -1
- package/dist/{useCustomer--jycAz--.mjs → useCustomer-cbhDyWJL.mjs} +2 -2
- package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
- package/dist/{useIncrementalLoading-CcnL3flF.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -8
- package/dist/useInvoiceData-CxxHa5R2.js +1 -0
- package/dist/{useInvoiceData-BiMMoVoW.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
- package/dist/{useInvoicesList-DFhF_gp7.mjs → useInvoicesList-BQQxcPdz.mjs} +23 -260
- package/dist/useInvoicesList-CtJqmblZ.js +1 -0
- package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
- package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
- package/dist/{usePaymentMethods-BRQ7-dUr.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
- package/dist/{usePaymentMethods-BX2RnHZN.mjs → usePaymentMethods-DZvfWSlx.mjs} +2 -2
- package/dist/usePayments-B13S_yai.js +1 -0
- package/dist/usePayments-D4uGKBsV.mjs +36 -0
- package/dist/usePortal-DJDJNLbo.mjs +12 -0
- package/dist/usePortal-DWJEVkTj.js +1 -0
- package/dist/useService-9fCKPTmu.js +1 -0
- package/dist/useService-BuWWE5ND.mjs +68 -0
- package/dist/useViewport-Bu0cyeSi.mjs +38 -0
- package/dist/useViewport-CKRY1CKR.js +1 -0
- package/dist/useWalletBalanceItems-B53Gkjro.mjs +106 -0
- package/dist/useWalletBalanceItems-BMaVT4TW.js +1 -0
- package/dist/useWatchDebounced-2ZLnfgvG.js +1 -0
- package/dist/useWatchDebounced-D1xuIX6_.mjs +12 -0
- package/dist/vendor-ui-BwxuPDg8.mjs +28598 -0
- package/dist/vendor-ui-Ce_Yp7xA.js +1 -0
- package/package.json +17 -10
- package/dist/Alert.vue.es-DMPvSykx.js +0 -1
- package/dist/Alert.vue.es-DsJ1ckRU.mjs +0 -172
- package/dist/Amount.vue.es-C6JE5rL8.mjs +0 -23
- package/dist/Amount.vue.es-h8wulbBG.js +0 -1
- package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +0 -93
- package/dist/Avatar.vue.es-BbyE0AjW.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +0 -1
- package/dist/Button.vue.es-6sBk5tBL.mjs +0 -408
- package/dist/Button.vue.es-BC4_TItq.js +0 -1
- package/dist/CardContent.vue.es-ChEMrFCc.mjs +0 -115
- package/dist/CardContent.vue.es-i9ivuGKG.js +0 -1
- package/dist/Chip.vue.es-D0fkSe8a.js +0 -1
- package/dist/Chip.vue.es-DcW2CjUA.mjs +0 -1576
- package/dist/Comparators.vue.es-BdxDqU8o.js +0 -1
- package/dist/Comparators.vue.es-DdTKGB80.mjs +0 -406
- package/dist/ContentWithAsideLayout-UHovpjZu.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +0 -175
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +0 -1
- package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
- package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
- package/dist/DividerText.vue.es-B7oa5Xpn.mjs +0 -72
- package/dist/DividerText.vue.es-yiFdPQvo.js +0 -1
- package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +0 -30
- package/dist/ErrorNotification.vue.es-FpRyg0De.js +0 -1
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +0 -46
- package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
- package/dist/IconButton.vue.es-DNCwwH_j.mjs +0 -825
- package/dist/IconButton.vue.es-DiSiGPWO.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +0 -1
- package/dist/PaymentMethod.vue.es-DYlnmZh7.js +0 -1
- package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +0 -1255
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +0 -1
- package/dist/Section.vue.es-3-H1pUTB.mjs +0 -79
- package/dist/Section.vue.es-BuzTXRLP.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +0 -1
- package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +0 -136
- package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +0 -1
- package/dist/TrialChip.vue.es-BHYbW8b6.mjs +0 -759
- package/dist/TrialChip.vue.es-C6Xg_5rR.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/_flatRest.es-BHFPCqZh.mjs +0 -642
- package/dist/_flatRest.es-dFffnTpX.js +0 -1
- package/dist/api.es-B4qAAJKr.js +0 -1
- package/dist/api.es-UkfpLiLL.mjs +0 -83
- package/dist/cloneDeep-Hs8Pp07F.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/cn.es-C7xoIs3C.js +0 -1
- package/dist/cn.es-tfxVlz02.mjs +0 -3191
- package/dist/component-ZRZIt3ZW.js +0 -1
- package/dist/component-dpA83LIN.mjs +0 -6569
- package/dist/countryData.es--zJAd6LA.mjs +0 -252
- package/dist/countryData.es-D3MFzU92.js +0 -1
- package/dist/customer.es-D42Md24r.js +0 -1
- package/dist/customer.es-LIW2YmLL.mjs +0 -30
- package/dist/formatting.es-9hM8aHSg.js +0 -1
- package/dist/formatting.es-D5H_ySFv.mjs +0 -68
- package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CI71bVGE.mjs +0 -2521
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-WLSPwi90.js +0 -1
- package/dist/index.es-BBJF2O2l.js +0 -1
- package/dist/index.es-LCAKs4tH.mjs +0 -438
- package/dist/invoices-3kVHsAXr.js +0 -1
- package/dist/isEmpty.es-Bp1SbWFu.mjs +0 -131
- package/dist/isEmpty.es-Dycf-CD_.js +0 -1
- package/dist/paymentMethods-DZRf0WRl.js +0 -1
- package/dist/pick.es-BgDAfhAl.js +0 -1
- package/dist/pick.es-DdVOyp0Q.mjs +0 -45
- package/dist/registry-ClZ43bQn.js +0 -1
- package/dist/sprite.svg.es-CCc3Mz1x.js +0 -1
- package/dist/sprite.svg.es-DZD704h3.mjs +0 -4
- package/dist/subscriptions-CS8HTxzC.js +0 -1
- package/dist/typeGuards.es-C4nR5FkL.js +0 -1
- package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
- package/dist/useIncrementalLoading-CAdNW-Bf.js +0 -1
- package/dist/useInvoiceData-DvQO_nKz.js +0 -1
- package/dist/useInvoicesList-CHkwSNO9.js +0 -1
- package/dist/useService-B67YWAcN.js +0 -1
- package/dist/useService-DG_zedHV.mjs +0 -282
- package/dist/useWalletBalanceItems-B5FMmoU2.mjs +0 -308
- package/dist/useWalletBalanceItems-BY3gq0fc.js +0 -1
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
const countryData = [
|
|
2
|
-
{ key: "AF", value: "Afghanistan" },
|
|
3
|
-
{ key: "AX", value: "Aland Islands" },
|
|
4
|
-
{ key: "AL", value: "Albania" },
|
|
5
|
-
{ key: "DZ", value: "Algeria" },
|
|
6
|
-
{ key: "AS", value: "American Samoa" },
|
|
7
|
-
{ key: "AD", value: "Andorra" },
|
|
8
|
-
{ key: "AO", value: "Angola" },
|
|
9
|
-
{ key: "AI", value: "Anguilla" },
|
|
10
|
-
{ key: "AQ", value: "Antarctica" },
|
|
11
|
-
{ key: "AG", value: "Antigua And Barbuda" },
|
|
12
|
-
{ key: "AR", value: "Argentina" },
|
|
13
|
-
{ key: "AM", value: "Armenia" },
|
|
14
|
-
{ key: "AW", value: "Aruba" },
|
|
15
|
-
{ key: "AU", value: "Australia" },
|
|
16
|
-
{ key: "AT", value: "Austria" },
|
|
17
|
-
{ key: "AZ", value: "Azerbaijan" },
|
|
18
|
-
{ key: "BS", value: "Bahamas" },
|
|
19
|
-
{ key: "BH", value: "Bahrain" },
|
|
20
|
-
{ key: "BD", value: "Bangladesh" },
|
|
21
|
-
{ key: "BB", value: "Barbados" },
|
|
22
|
-
{ key: "BY", value: "Belarus" },
|
|
23
|
-
{ key: "BE", value: "Belgium" },
|
|
24
|
-
{ key: "BZ", value: "Belize" },
|
|
25
|
-
{ key: "BJ", value: "Benin" },
|
|
26
|
-
{ key: "BM", value: "Bermuda" },
|
|
27
|
-
{ key: "BT", value: "Bhutan" },
|
|
28
|
-
{ key: "BO", value: "Bolivia" },
|
|
29
|
-
{ key: "BA", value: "Bosnia And Herzegovina" },
|
|
30
|
-
{ key: "BW", value: "Botswana" },
|
|
31
|
-
{ key: "BV", value: "Bouvet Island" },
|
|
32
|
-
{ key: "BR", value: "Brazil" },
|
|
33
|
-
{ key: "IO", value: "British Indian Ocean Territory" },
|
|
34
|
-
{ key: "BN", value: "Brunei Darussalam" },
|
|
35
|
-
{ key: "BG", value: "Bulgaria" },
|
|
36
|
-
{ key: "BF", value: "Burkina Faso" },
|
|
37
|
-
{ key: "BI", value: "Burundi" },
|
|
38
|
-
{ key: "KH", value: "Cambodia" },
|
|
39
|
-
{ key: "CM", value: "Cameroon" },
|
|
40
|
-
{ key: "CA", value: "Canada" },
|
|
41
|
-
{ key: "CV", value: "Cape Verde" },
|
|
42
|
-
{ key: "KY", value: "Cayman Islands" },
|
|
43
|
-
{ key: "CF", value: "Central African Republic" },
|
|
44
|
-
{ key: "TD", value: "Chad" },
|
|
45
|
-
{ key: "CL", value: "Chile" },
|
|
46
|
-
{ key: "CN", value: "China" },
|
|
47
|
-
{ key: "CX", value: "Christmas Island" },
|
|
48
|
-
{ key: "CC", value: "Cocos (Keeling) Islands" },
|
|
49
|
-
{ key: "CO", value: "Colombia" },
|
|
50
|
-
{ key: "KM", value: "Comoros" },
|
|
51
|
-
{ key: "CG", value: "Congo" },
|
|
52
|
-
{ key: "CD", value: "Congo, Democratic Republic" },
|
|
53
|
-
{ key: "CK", value: "Cook Islands" },
|
|
54
|
-
{ key: "CR", value: "Costa Rica" },
|
|
55
|
-
{ key: "CI", value: 'Cote D"Ivoire' },
|
|
56
|
-
{ key: "HR", value: "Croatia" },
|
|
57
|
-
{ key: "CU", value: "Cuba" },
|
|
58
|
-
{ key: "CW", value: "Curaçao" },
|
|
59
|
-
{ key: "CY", value: "Cyprus" },
|
|
60
|
-
{ key: "CZ", value: "Czech Republic" },
|
|
61
|
-
{ key: "DK", value: "Denmark" },
|
|
62
|
-
{ key: "DJ", value: "Djibouti" },
|
|
63
|
-
{ key: "DM", value: "Dominica" },
|
|
64
|
-
{ key: "DO", value: "Dominican Republic" },
|
|
65
|
-
{ key: "EC", value: "Ecuador" },
|
|
66
|
-
{ key: "EG", value: "Egypt" },
|
|
67
|
-
{ key: "SV", value: "El Salvador" },
|
|
68
|
-
{ key: "GQ", value: "Equatorial Guinea" },
|
|
69
|
-
{ key: "ER", value: "Eritrea" },
|
|
70
|
-
{ key: "EE", value: "Estonia" },
|
|
71
|
-
{ key: "ET", value: "Ethiopia" },
|
|
72
|
-
{ key: "FK", value: "Falkland Islands (Malvinas)" },
|
|
73
|
-
{ key: "FO", value: "Faroe Islands" },
|
|
74
|
-
{ key: "FJ", value: "Fiji" },
|
|
75
|
-
{ key: "FI", value: "Finland" },
|
|
76
|
-
{ key: "FR", value: "France" },
|
|
77
|
-
{ key: "GF", value: "French Guiana" },
|
|
78
|
-
{ key: "PF", value: "French Polynesia" },
|
|
79
|
-
{ key: "TF", value: "French Southern Territories" },
|
|
80
|
-
{ key: "GA", value: "Gabon" },
|
|
81
|
-
{ key: "GM", value: "Gambia" },
|
|
82
|
-
{ key: "GE", value: "Georgia" },
|
|
83
|
-
{ key: "DE", value: "Germany" },
|
|
84
|
-
{ key: "GH", value: "Ghana" },
|
|
85
|
-
{ key: "GI", value: "Gibraltar" },
|
|
86
|
-
{ key: "GR", value: "Greece" },
|
|
87
|
-
{ key: "GL", value: "Greenland" },
|
|
88
|
-
{ key: "GD", value: "Grenada" },
|
|
89
|
-
{ key: "GP", value: "Guadeloupe" },
|
|
90
|
-
{ key: "GU", value: "Guam" },
|
|
91
|
-
{ key: "GT", value: "Guatemala" },
|
|
92
|
-
{ key: "GG", value: "Guernsey" },
|
|
93
|
-
{ key: "GN", value: "Guinea" },
|
|
94
|
-
{ key: "GW", value: "Guinea-Bissau" },
|
|
95
|
-
{ key: "GY", value: "Guyana" },
|
|
96
|
-
{ key: "HT", value: "Haiti" },
|
|
97
|
-
{ key: "HM", value: "Heard Island & Mcdonald Islands" },
|
|
98
|
-
{ key: "VA", value: "Holy See (Vatican City State)" },
|
|
99
|
-
{ key: "HN", value: "Honduras" },
|
|
100
|
-
{ key: "HK", value: "Hong Kong" },
|
|
101
|
-
{ key: "HU", value: "Hungary" },
|
|
102
|
-
{ key: "IS", value: "Iceland" },
|
|
103
|
-
{ key: "IN", value: "India" },
|
|
104
|
-
{ key: "ID", value: "Indonesia" },
|
|
105
|
-
{ key: "IR", value: "Iran, Islamic Republic Of" },
|
|
106
|
-
{ key: "IQ", value: "Iraq" },
|
|
107
|
-
{ key: "IE", value: "Ireland" },
|
|
108
|
-
{ key: "IM", value: "Isle Of Man" },
|
|
109
|
-
{ key: "IL", value: "Israel" },
|
|
110
|
-
{ key: "IT", value: "Italy" },
|
|
111
|
-
{ key: "JM", value: "Jamaica" },
|
|
112
|
-
{ key: "JP", value: "Japan" },
|
|
113
|
-
{ key: "JE", value: "Jersey" },
|
|
114
|
-
{ key: "JO", value: "Jordan" },
|
|
115
|
-
{ key: "KZ", value: "Kazakhstan" },
|
|
116
|
-
{ key: "KE", value: "Kenya" },
|
|
117
|
-
{ key: "KI", value: "Kiribati" },
|
|
118
|
-
{ key: "KR", value: "Korea" },
|
|
119
|
-
{ key: "KP", value: "North Korea" },
|
|
120
|
-
{ key: "KW", value: "Kuwait" },
|
|
121
|
-
{ key: "KG", value: "Kyrgyzstan" },
|
|
122
|
-
{ key: "LA", value: 'Lao People"s Democratic Republic' },
|
|
123
|
-
{ key: "LV", value: "Latvia" },
|
|
124
|
-
{ key: "LB", value: "Lebanon" },
|
|
125
|
-
{ key: "LS", value: "Lesotho" },
|
|
126
|
-
{ key: "LR", value: "Liberia" },
|
|
127
|
-
{ key: "LY", value: "Libyan Arab Jamahiriya" },
|
|
128
|
-
{ key: "LI", value: "Liechtenstein" },
|
|
129
|
-
{ key: "LT", value: "Lithuania" },
|
|
130
|
-
{ key: "LU", value: "Luxembourg" },
|
|
131
|
-
{ key: "MO", value: "Macao" },
|
|
132
|
-
{ key: "MK", value: "Macedonia" },
|
|
133
|
-
{ key: "MG", value: "Madagascar" },
|
|
134
|
-
{ key: "MW", value: "Malawi" },
|
|
135
|
-
{ key: "MY", value: "Malaysia" },
|
|
136
|
-
{ key: "MV", value: "Maldives" },
|
|
137
|
-
{ key: "ML", value: "Mali" },
|
|
138
|
-
{ key: "MT", value: "Malta" },
|
|
139
|
-
{ key: "MH", value: "Marshall Islands" },
|
|
140
|
-
{ key: "MQ", value: "Martinique" },
|
|
141
|
-
{ key: "MR", value: "Mauritania" },
|
|
142
|
-
{ key: "MU", value: "Mauritius" },
|
|
143
|
-
{ key: "YT", value: "Mayotte" },
|
|
144
|
-
{ key: "MX", value: "Mexico" },
|
|
145
|
-
{ key: "FM", value: "Micronesia, Federated States Of" },
|
|
146
|
-
{ key: "MD", value: "Moldova" },
|
|
147
|
-
{ key: "MC", value: "Monaco" },
|
|
148
|
-
{ key: "MN", value: "Mongolia" },
|
|
149
|
-
{ key: "ME", value: "Montenegro" },
|
|
150
|
-
{ key: "MS", value: "Montserrat" },
|
|
151
|
-
{ key: "MA", value: "Morocco" },
|
|
152
|
-
{ key: "MZ", value: "Mozambique" },
|
|
153
|
-
{ key: "MM", value: "Myanmar" },
|
|
154
|
-
{ key: "NA", value: "Namibia" },
|
|
155
|
-
{ key: "NR", value: "Nauru" },
|
|
156
|
-
{ key: "NP", value: "Nepal" },
|
|
157
|
-
{ key: "NL", value: "Netherlands" },
|
|
158
|
-
{ key: "AN", value: "Netherlands Antilles" },
|
|
159
|
-
{ key: "NC", value: "New Caledonia" },
|
|
160
|
-
{ key: "NZ", value: "New Zealand" },
|
|
161
|
-
{ key: "NI", value: "Nicaragua" },
|
|
162
|
-
{ key: "NE", value: "Niger" },
|
|
163
|
-
{ key: "NG", value: "Nigeria" },
|
|
164
|
-
{ key: "NU", value: "Niue" },
|
|
165
|
-
{ key: "NF", value: "Norfolk Island" },
|
|
166
|
-
{ key: "MP", value: "Northern Mariana Islands" },
|
|
167
|
-
{ key: "NO", value: "Norway" },
|
|
168
|
-
{ key: "OM", value: "Oman" },
|
|
169
|
-
{ key: "PK", value: "Pakistan" },
|
|
170
|
-
{ key: "PW", value: "Palau" },
|
|
171
|
-
{ key: "PS", value: "Palestinian Territory, Occupied" },
|
|
172
|
-
{ key: "PA", value: "Panama" },
|
|
173
|
-
{ key: "PG", value: "Papua New Guinea" },
|
|
174
|
-
{ key: "PY", value: "Paraguay" },
|
|
175
|
-
{ key: "PE", value: "Peru" },
|
|
176
|
-
{ key: "PH", value: "Philippines" },
|
|
177
|
-
{ key: "PN", value: "Pitcairn" },
|
|
178
|
-
{ key: "PL", value: "Poland" },
|
|
179
|
-
{ key: "PT", value: "Portugal" },
|
|
180
|
-
{ key: "PR", value: "Puerto Rico" },
|
|
181
|
-
{ key: "QA", value: "Qatar" },
|
|
182
|
-
{ key: "RE", value: "Reunion" },
|
|
183
|
-
{ key: "RO", value: "Romania" },
|
|
184
|
-
{ key: "RU", value: "Russian Federation" },
|
|
185
|
-
{ key: "RW", value: "Rwanda" },
|
|
186
|
-
{ key: "BL", value: "Saint Barthelemy" },
|
|
187
|
-
{ key: "SH", value: "Saint Helena" },
|
|
188
|
-
{ key: "KN", value: "Saint Kitts And Nevis" },
|
|
189
|
-
{ key: "LC", value: "Saint Lucia" },
|
|
190
|
-
{ key: "MF", value: "Saint Martin" },
|
|
191
|
-
{ key: "PM", value: "Saint Pierre And Miquelon" },
|
|
192
|
-
{ key: "VC", value: "Saint Vincent And Grenadines" },
|
|
193
|
-
{ key: "WS", value: "Samoa" },
|
|
194
|
-
{ key: "SM", value: "San Marino" },
|
|
195
|
-
{ key: "ST", value: "Sao Tome And Principe" },
|
|
196
|
-
{ key: "SA", value: "Saudi Arabia" },
|
|
197
|
-
{ key: "SN", value: "Senegal" },
|
|
198
|
-
{ key: "RS", value: "Serbia" },
|
|
199
|
-
{ key: "SC", value: "Seychelles" },
|
|
200
|
-
{ key: "SL", value: "Sierra Leone" },
|
|
201
|
-
{ key: "SG", value: "Singapore" },
|
|
202
|
-
{ key: "SK", value: "Slovakia" },
|
|
203
|
-
{ key: "SI", value: "Slovenia" },
|
|
204
|
-
{ key: "SB", value: "Solomon Islands" },
|
|
205
|
-
{ key: "SO", value: "Somalia" },
|
|
206
|
-
{ key: "ZA", value: "South Africa" },
|
|
207
|
-
{ key: "GS", value: "South Georgia And Sandwich Isl." },
|
|
208
|
-
{ key: "ES", value: "Spain" },
|
|
209
|
-
{ key: "LK", value: "Sri Lanka" },
|
|
210
|
-
{ key: "SD", value: "Sudan" },
|
|
211
|
-
{ key: "SR", value: "Suriname" },
|
|
212
|
-
{ key: "SJ", value: "Svalbard And Jan Mayen" },
|
|
213
|
-
{ key: "SZ", value: "Swaziland" },
|
|
214
|
-
{ key: "SE", value: "Sweden" },
|
|
215
|
-
{ key: "CH", value: "Switzerland" },
|
|
216
|
-
{ key: "SY", value: "Syrian Arab Republic" },
|
|
217
|
-
{ key: "TW", value: "Taiwan" },
|
|
218
|
-
{ key: "TJ", value: "Tajikistan" },
|
|
219
|
-
{ key: "TZ", value: "Tanzania" },
|
|
220
|
-
{ key: "TH", value: "Thailand" },
|
|
221
|
-
{ key: "TL", value: "Timor-Leste" },
|
|
222
|
-
{ key: "TG", value: "Togo" },
|
|
223
|
-
{ key: "TK", value: "Tokelau" },
|
|
224
|
-
{ key: "TO", value: "Tonga" },
|
|
225
|
-
{ key: "TT", value: "Trinidad And Tobago" },
|
|
226
|
-
{ key: "TN", value: "Tunisia" },
|
|
227
|
-
{ key: "TR", value: "Turkey" },
|
|
228
|
-
{ key: "TM", value: "Turkmenistan" },
|
|
229
|
-
{ key: "TC", value: "Turks And Caicos Islands" },
|
|
230
|
-
{ key: "TV", value: "Tuvalu" },
|
|
231
|
-
{ key: "UG", value: "Uganda" },
|
|
232
|
-
{ key: "UA", value: "Ukraine" },
|
|
233
|
-
{ key: "AE", value: "United Arab Emirates" },
|
|
234
|
-
{ key: "GB", value: "United Kingdom" },
|
|
235
|
-
{ key: "US", value: "United States" },
|
|
236
|
-
{ key: "UM", value: "United States Outlying Islands" },
|
|
237
|
-
{ key: "UY", value: "Uruguay" },
|
|
238
|
-
{ key: "UZ", value: "Uzbekistan" },
|
|
239
|
-
{ key: "VU", value: "Vanuatu" },
|
|
240
|
-
{ key: "VE", value: "Venezuela" },
|
|
241
|
-
{ key: "VN", value: "Vietnam" },
|
|
242
|
-
{ key: "VG", value: "Virgin Islands, British" },
|
|
243
|
-
{ key: "VI", value: "Virgin Islands, U.S." },
|
|
244
|
-
{ key: "WF", value: "Wallis And Futuna" },
|
|
245
|
-
{ key: "EH", value: "Western Sahara" },
|
|
246
|
-
{ key: "YE", value: "Yemen" },
|
|
247
|
-
{ key: "ZM", value: "Zambia" },
|
|
248
|
-
{ key: "ZW", value: "Zimbabwe" }
|
|
249
|
-
];
|
|
250
|
-
export {
|
|
251
|
-
countryData as c
|
|
252
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.countryData=[{key:"AF",value:"Afghanistan"},{key:"AX",value:"Aland Islands"},{key:"AL",value:"Albania"},{key:"DZ",value:"Algeria"},{key:"AS",value:"American Samoa"},{key:"AD",value:"Andorra"},{key:"AO",value:"Angola"},{key:"AI",value:"Anguilla"},{key:"AQ",value:"Antarctica"},{key:"AG",value:"Antigua And Barbuda"},{key:"AR",value:"Argentina"},{key:"AM",value:"Armenia"},{key:"AW",value:"Aruba"},{key:"AU",value:"Australia"},{key:"AT",value:"Austria"},{key:"AZ",value:"Azerbaijan"},{key:"BS",value:"Bahamas"},{key:"BH",value:"Bahrain"},{key:"BD",value:"Bangladesh"},{key:"BB",value:"Barbados"},{key:"BY",value:"Belarus"},{key:"BE",value:"Belgium"},{key:"BZ",value:"Belize"},{key:"BJ",value:"Benin"},{key:"BM",value:"Bermuda"},{key:"BT",value:"Bhutan"},{key:"BO",value:"Bolivia"},{key:"BA",value:"Bosnia And Herzegovina"},{key:"BW",value:"Botswana"},{key:"BV",value:"Bouvet Island"},{key:"BR",value:"Brazil"},{key:"IO",value:"British Indian Ocean Territory"},{key:"BN",value:"Brunei Darussalam"},{key:"BG",value:"Bulgaria"},{key:"BF",value:"Burkina Faso"},{key:"BI",value:"Burundi"},{key:"KH",value:"Cambodia"},{key:"CM",value:"Cameroon"},{key:"CA",value:"Canada"},{key:"CV",value:"Cape Verde"},{key:"KY",value:"Cayman Islands"},{key:"CF",value:"Central African Republic"},{key:"TD",value:"Chad"},{key:"CL",value:"Chile"},{key:"CN",value:"China"},{key:"CX",value:"Christmas Island"},{key:"CC",value:"Cocos (Keeling) Islands"},{key:"CO",value:"Colombia"},{key:"KM",value:"Comoros"},{key:"CG",value:"Congo"},{key:"CD",value:"Congo, Democratic Republic"},{key:"CK",value:"Cook Islands"},{key:"CR",value:"Costa Rica"},{key:"CI",value:'Cote D"Ivoire'},{key:"HR",value:"Croatia"},{key:"CU",value:"Cuba"},{key:"CW",value:"Curaçao"},{key:"CY",value:"Cyprus"},{key:"CZ",value:"Czech Republic"},{key:"DK",value:"Denmark"},{key:"DJ",value:"Djibouti"},{key:"DM",value:"Dominica"},{key:"DO",value:"Dominican Republic"},{key:"EC",value:"Ecuador"},{key:"EG",value:"Egypt"},{key:"SV",value:"El Salvador"},{key:"GQ",value:"Equatorial Guinea"},{key:"ER",value:"Eritrea"},{key:"EE",value:"Estonia"},{key:"ET",value:"Ethiopia"},{key:"FK",value:"Falkland Islands (Malvinas)"},{key:"FO",value:"Faroe Islands"},{key:"FJ",value:"Fiji"},{key:"FI",value:"Finland"},{key:"FR",value:"France"},{key:"GF",value:"French Guiana"},{key:"PF",value:"French Polynesia"},{key:"TF",value:"French Southern Territories"},{key:"GA",value:"Gabon"},{key:"GM",value:"Gambia"},{key:"GE",value:"Georgia"},{key:"DE",value:"Germany"},{key:"GH",value:"Ghana"},{key:"GI",value:"Gibraltar"},{key:"GR",value:"Greece"},{key:"GL",value:"Greenland"},{key:"GD",value:"Grenada"},{key:"GP",value:"Guadeloupe"},{key:"GU",value:"Guam"},{key:"GT",value:"Guatemala"},{key:"GG",value:"Guernsey"},{key:"GN",value:"Guinea"},{key:"GW",value:"Guinea-Bissau"},{key:"GY",value:"Guyana"},{key:"HT",value:"Haiti"},{key:"HM",value:"Heard Island & Mcdonald Islands"},{key:"VA",value:"Holy See (Vatican City State)"},{key:"HN",value:"Honduras"},{key:"HK",value:"Hong Kong"},{key:"HU",value:"Hungary"},{key:"IS",value:"Iceland"},{key:"IN",value:"India"},{key:"ID",value:"Indonesia"},{key:"IR",value:"Iran, Islamic Republic Of"},{key:"IQ",value:"Iraq"},{key:"IE",value:"Ireland"},{key:"IM",value:"Isle Of Man"},{key:"IL",value:"Israel"},{key:"IT",value:"Italy"},{key:"JM",value:"Jamaica"},{key:"JP",value:"Japan"},{key:"JE",value:"Jersey"},{key:"JO",value:"Jordan"},{key:"KZ",value:"Kazakhstan"},{key:"KE",value:"Kenya"},{key:"KI",value:"Kiribati"},{key:"KR",value:"Korea"},{key:"KP",value:"North Korea"},{key:"KW",value:"Kuwait"},{key:"KG",value:"Kyrgyzstan"},{key:"LA",value:'Lao People"s Democratic Republic'},{key:"LV",value:"Latvia"},{key:"LB",value:"Lebanon"},{key:"LS",value:"Lesotho"},{key:"LR",value:"Liberia"},{key:"LY",value:"Libyan Arab Jamahiriya"},{key:"LI",value:"Liechtenstein"},{key:"LT",value:"Lithuania"},{key:"LU",value:"Luxembourg"},{key:"MO",value:"Macao"},{key:"MK",value:"Macedonia"},{key:"MG",value:"Madagascar"},{key:"MW",value:"Malawi"},{key:"MY",value:"Malaysia"},{key:"MV",value:"Maldives"},{key:"ML",value:"Mali"},{key:"MT",value:"Malta"},{key:"MH",value:"Marshall Islands"},{key:"MQ",value:"Martinique"},{key:"MR",value:"Mauritania"},{key:"MU",value:"Mauritius"},{key:"YT",value:"Mayotte"},{key:"MX",value:"Mexico"},{key:"FM",value:"Micronesia, Federated States Of"},{key:"MD",value:"Moldova"},{key:"MC",value:"Monaco"},{key:"MN",value:"Mongolia"},{key:"ME",value:"Montenegro"},{key:"MS",value:"Montserrat"},{key:"MA",value:"Morocco"},{key:"MZ",value:"Mozambique"},{key:"MM",value:"Myanmar"},{key:"NA",value:"Namibia"},{key:"NR",value:"Nauru"},{key:"NP",value:"Nepal"},{key:"NL",value:"Netherlands"},{key:"AN",value:"Netherlands Antilles"},{key:"NC",value:"New Caledonia"},{key:"NZ",value:"New Zealand"},{key:"NI",value:"Nicaragua"},{key:"NE",value:"Niger"},{key:"NG",value:"Nigeria"},{key:"NU",value:"Niue"},{key:"NF",value:"Norfolk Island"},{key:"MP",value:"Northern Mariana Islands"},{key:"NO",value:"Norway"},{key:"OM",value:"Oman"},{key:"PK",value:"Pakistan"},{key:"PW",value:"Palau"},{key:"PS",value:"Palestinian Territory, Occupied"},{key:"PA",value:"Panama"},{key:"PG",value:"Papua New Guinea"},{key:"PY",value:"Paraguay"},{key:"PE",value:"Peru"},{key:"PH",value:"Philippines"},{key:"PN",value:"Pitcairn"},{key:"PL",value:"Poland"},{key:"PT",value:"Portugal"},{key:"PR",value:"Puerto Rico"},{key:"QA",value:"Qatar"},{key:"RE",value:"Reunion"},{key:"RO",value:"Romania"},{key:"RU",value:"Russian Federation"},{key:"RW",value:"Rwanda"},{key:"BL",value:"Saint Barthelemy"},{key:"SH",value:"Saint Helena"},{key:"KN",value:"Saint Kitts And Nevis"},{key:"LC",value:"Saint Lucia"},{key:"MF",value:"Saint Martin"},{key:"PM",value:"Saint Pierre And Miquelon"},{key:"VC",value:"Saint Vincent And Grenadines"},{key:"WS",value:"Samoa"},{key:"SM",value:"San Marino"},{key:"ST",value:"Sao Tome And Principe"},{key:"SA",value:"Saudi Arabia"},{key:"SN",value:"Senegal"},{key:"RS",value:"Serbia"},{key:"SC",value:"Seychelles"},{key:"SL",value:"Sierra Leone"},{key:"SG",value:"Singapore"},{key:"SK",value:"Slovakia"},{key:"SI",value:"Slovenia"},{key:"SB",value:"Solomon Islands"},{key:"SO",value:"Somalia"},{key:"ZA",value:"South Africa"},{key:"GS",value:"South Georgia And Sandwich Isl."},{key:"ES",value:"Spain"},{key:"LK",value:"Sri Lanka"},{key:"SD",value:"Sudan"},{key:"SR",value:"Suriname"},{key:"SJ",value:"Svalbard And Jan Mayen"},{key:"SZ",value:"Swaziland"},{key:"SE",value:"Sweden"},{key:"CH",value:"Switzerland"},{key:"SY",value:"Syrian Arab Republic"},{key:"TW",value:"Taiwan"},{key:"TJ",value:"Tajikistan"},{key:"TZ",value:"Tanzania"},{key:"TH",value:"Thailand"},{key:"TL",value:"Timor-Leste"},{key:"TG",value:"Togo"},{key:"TK",value:"Tokelau"},{key:"TO",value:"Tonga"},{key:"TT",value:"Trinidad And Tobago"},{key:"TN",value:"Tunisia"},{key:"TR",value:"Turkey"},{key:"TM",value:"Turkmenistan"},{key:"TC",value:"Turks And Caicos Islands"},{key:"TV",value:"Tuvalu"},{key:"UG",value:"Uganda"},{key:"UA",value:"Ukraine"},{key:"AE",value:"United Arab Emirates"},{key:"GB",value:"United Kingdom"},{key:"US",value:"United States"},{key:"UM",value:"United States Outlying Islands"},{key:"UY",value:"Uruguay"},{key:"UZ",value:"Uzbekistan"},{key:"VU",value:"Vanuatu"},{key:"VE",value:"Venezuela"},{key:"VN",value:"Vietnam"},{key:"VG",value:"Virgin Islands, British"},{key:"VI",value:"Virgin Islands, U.S."},{key:"WF",value:"Wallis And Futuna"},{key:"EH",value:"Western Sahara"},{key:"YE",value:"Yemen"},{key:"ZM",value:"Zambia"},{key:"ZW",value:"Zimbabwe"}];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i=require("./typeGuards.es-C4nR5FkL.js"),n=i=>{if(i)return[i.first_name,i.infix,i.last_name].filter(i=>i).join(" ")};exports.getCustomerCountry=n=>{var e,r;return i.isIndividual(n)?null==(e=n.individual.residential_address)?void 0:e.country:i.isOrganization(n)?null==(r=n.organization.registered_address)?void 0:r.country:void 0},exports.getCustomerName=e=>i.isIndividual(e)?n(e.individual.name):i.isOrganization(e)?e.organization.legal_name:void 0;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { i as isIndividual, a as isOrganization } from "./typeGuards.es-fwUoeMCe.mjs";
|
|
2
|
-
const getCustomerName = (customer) => {
|
|
3
|
-
if (isIndividual(customer)) {
|
|
4
|
-
return getReadableName(customer.individual.name);
|
|
5
|
-
}
|
|
6
|
-
if (isOrganization(customer)) {
|
|
7
|
-
return customer.organization.legal_name;
|
|
8
|
-
}
|
|
9
|
-
return void 0;
|
|
10
|
-
};
|
|
11
|
-
const getReadableName = (name) => {
|
|
12
|
-
if (!name) {
|
|
13
|
-
return void 0;
|
|
14
|
-
}
|
|
15
|
-
return [name.first_name, name.infix, name.last_name].filter((part) => part).join(" ");
|
|
16
|
-
};
|
|
17
|
-
const getCustomerCountry = (customer) => {
|
|
18
|
-
var _a, _b;
|
|
19
|
-
if (isIndividual(customer)) {
|
|
20
|
-
return (_a = customer.individual.residential_address) == null ? void 0 : _a.country;
|
|
21
|
-
}
|
|
22
|
-
if (isOrganization(customer)) {
|
|
23
|
-
return (_b = customer.organization.registered_address) == null ? void 0 : _b.country;
|
|
24
|
-
}
|
|
25
|
-
return void 0;
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
getCustomerCountry as a,
|
|
29
|
-
getCustomerName as g
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r=r=>{if(!r)return"";const e=r.toLowerCase();return e.charAt(0).toUpperCase()+e.slice(1)},e={DAY:{literal:{singular:"Day",plural:"Days"},full:"Daily"},WEEK:{literal:{singular:"Week",plural:"Weeks"},full:"Weekly"},MONTH:{literal:{singular:"Month",plural:"Months"},full:"Monthly"},YEAR:{literal:{singular:"Year",plural:"Years"},full:"Yearly"}};exports.capitalize=r,exports.formatAmount=(r,e)=>new Intl.NumberFormat((r=>{if(null==r?void 0:r.locale)return r.locale;if("undefined"!=typeof window){const r=localStorage.getItem("numberFormat");if(r)return r}return"en-US"})(e),{style:"currency",currency:r.currency,maximumFractionDigits:10}).format(+r.quantity),exports.formatBillingPeriod=(r,l={short:!1,hideValueForExactPeriods:!1,prefix:"every"})=>{const t=r.value??1,a=e[r.type].literal[1===+t?"singular":"plural"].toLowerCase();return`${l.prefix&&!l.short?`${l.prefix} `:""}${l.hideValueForExactPeriods&&1===t?a:`${t} ${a}`}`},exports.formatEnum=e=>r((e??"").replace(/_/g," "));
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
const capitalize = (word) => {
|
|
2
|
-
if (!word) return "";
|
|
3
|
-
const lower = word.toLowerCase();
|
|
4
|
-
return lower.charAt(0).toUpperCase() + lower.slice(1);
|
|
5
|
-
};
|
|
6
|
-
const timePeriodMap = {
|
|
7
|
-
DAY: {
|
|
8
|
-
literal: {
|
|
9
|
-
singular: "Day",
|
|
10
|
-
plural: "Days"
|
|
11
|
-
},
|
|
12
|
-
full: "Daily"
|
|
13
|
-
},
|
|
14
|
-
WEEK: {
|
|
15
|
-
literal: {
|
|
16
|
-
singular: "Week",
|
|
17
|
-
plural: "Weeks"
|
|
18
|
-
},
|
|
19
|
-
full: "Weekly"
|
|
20
|
-
},
|
|
21
|
-
MONTH: {
|
|
22
|
-
literal: {
|
|
23
|
-
singular: "Month",
|
|
24
|
-
plural: "Months"
|
|
25
|
-
},
|
|
26
|
-
full: "Monthly"
|
|
27
|
-
},
|
|
28
|
-
YEAR: {
|
|
29
|
-
literal: {
|
|
30
|
-
singular: "Year",
|
|
31
|
-
plural: "Years"
|
|
32
|
-
},
|
|
33
|
-
full: "Yearly"
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const getLocale = (options) => {
|
|
37
|
-
if (options == null ? void 0 : options.locale) {
|
|
38
|
-
return options.locale;
|
|
39
|
-
}
|
|
40
|
-
if (typeof window !== "undefined") {
|
|
41
|
-
const numberFormat = localStorage.getItem("numberFormat");
|
|
42
|
-
if (numberFormat) {
|
|
43
|
-
return numberFormat;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return "en-US";
|
|
47
|
-
};
|
|
48
|
-
const formatAmount = (amount, options) => new Intl.NumberFormat(getLocale(options), {
|
|
49
|
-
style: "currency",
|
|
50
|
-
currency: amount.currency,
|
|
51
|
-
maximumFractionDigits: 10
|
|
52
|
-
}).format(+amount.quantity);
|
|
53
|
-
const formatEnum = (str) => capitalize((str ?? "").replace(/_/g, " "));
|
|
54
|
-
const formatBillingPeriod = (billingPeriod, options = {
|
|
55
|
-
short: false,
|
|
56
|
-
hideValueForExactPeriods: false,
|
|
57
|
-
prefix: "every"
|
|
58
|
-
}) => {
|
|
59
|
-
const billingValue = billingPeriod.value ?? 1;
|
|
60
|
-
const billingType = timePeriodMap[billingPeriod.type].literal[+billingValue === 1 ? "singular" : "plural"].toLowerCase();
|
|
61
|
-
return `${options.prefix && !options.short ? `${options.prefix} ` : ""}${options.hideValueForExactPeriods && billingValue === 1 ? billingType : `${billingValue} ${billingType}`}`;
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
formatAmount as a,
|
|
65
|
-
formatBillingPeriod as b,
|
|
66
|
-
capitalize as c,
|
|
67
|
-
formatEnum as f
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./countryData.es-D3MFzU92.js");exports.getCountryNameByCode=function(t){var n;return(null==(n=e.countryData.find(e=>e.key===t))?void 0:n.value)??t};
|
package/dist/index-2jo9BSPM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue");var t;const r="undefined"!=typeof window,n=()=>{};function o(t){return"function"==typeof t?t():e.unref(t)}r&&(null==(t=null==window?void 0:window.navigator)?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const i=e=>e();function c(e,t={}){let r,i,c=n;const u=e=>{clearTimeout(e),c(),c=n};return n=>{const s=o(e),a=o(t.maxWait);return r&&u(r),s<=0||void 0!==a&&a<=0?(i&&(u(i),i=null),Promise.resolve(n())):new Promise((e,o)=>{c=t.rejectOnCancel?o:e,a&&!i&&(i=setTimeout(()=>{r&&u(r),i=null,e(n())},a)),r=setTimeout(()=>{i&&u(i),i=null,e(n())},s)})}}var u=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function l(t,r,n={}){const o=n,{eventFilter:c=i}=o,l=((e,t)=>{var r={};for(var n in e)s.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&u)for(var n of u(e))t.indexOf(n)<0&&a.call(e,n)&&(r[n]=e[n]);return r})(o,["eventFilter"]);return e.watch(t,(p=c,f=r,function(...e){return new Promise((t,r)=>{Promise.resolve(p(()=>f.apply(this,e),{fn:f,thisArg:this,args:e})).then(t).catch(r)})}),l);var p,f}var p=Object.defineProperty,f=Object.defineProperties,v=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;exports.identity=function(e){return e},exports.increaseWithUnit=function(e,t){var r;if("number"==typeof e)return e+t;const n=(null==(r=e.match(/^-?[0-9]+\.?[0-9]*/))?void 0:r[0])||"",o=e.slice(n.length),i=parseFloat(n)+t;return Number.isNaN(i)?e:i+o},exports.isClient=r,exports.isString=e=>"string"==typeof e,exports.noop=n,exports.resolveRef=function(t){return"function"==typeof t?e.computed(t):e.ref(t)},exports.resolveUnref=o,exports.tryOnMounted=function(t,r=!0){e.getCurrentInstance()?e.onMounted(t):r?t():e.nextTick(t)},exports.tryOnScopeDispose=function(t){return!!e.getCurrentScope()&&(e.onScopeDispose(t),!0)},exports.watchDebounced=function(e,t,r={}){const n=r,{debounce:o=0,maxWait:i}=n,u=((e,t)=>{var r={};for(var n in e)y.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&d)for(var n of d(e))t.indexOf(n)<0&&O.call(e,n)&&(r[n]=e[n]);return r})(n,["debounce","maxWait"]);return l(e,t,(s=((e,t)=>{for(var r in t||(t={}))y.call(t,r)&&b(e,r,t[r]);if(d)for(var r of d(t))O.call(t,r)&&b(e,r,t[r]);return e})({},u),a={eventFilter:c(o,{maxWait:i})},f(s,v(a))));var s,a},exports.watchOnce=function(t,r,n){const o=e.watch(t,(...t)=>(e.nextTick(()=>o()),r(...t)),n)};
|
package/dist/index-BFZ0dPh9.mjs
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { watch, nextTick, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, computed, ref, unref } from "vue";
|
|
2
|
-
var _a;
|
|
3
|
-
const isClient = typeof window !== "undefined";
|
|
4
|
-
const isString = (val) => typeof val === "string";
|
|
5
|
-
const noop = () => {
|
|
6
|
-
};
|
|
7
|
-
isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
8
|
-
function resolveUnref(r) {
|
|
9
|
-
return typeof r === "function" ? r() : unref(r);
|
|
10
|
-
}
|
|
11
|
-
function createFilterWrapper(filter, fn) {
|
|
12
|
-
function wrapper(...args) {
|
|
13
|
-
return new Promise((resolve, reject) => {
|
|
14
|
-
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
return wrapper;
|
|
18
|
-
}
|
|
19
|
-
const bypassFilter = (invoke) => {
|
|
20
|
-
return invoke();
|
|
21
|
-
};
|
|
22
|
-
function debounceFilter(ms, options = {}) {
|
|
23
|
-
let timer;
|
|
24
|
-
let maxTimer;
|
|
25
|
-
let lastRejector = noop;
|
|
26
|
-
const _clearTimeout = (timer2) => {
|
|
27
|
-
clearTimeout(timer2);
|
|
28
|
-
lastRejector();
|
|
29
|
-
lastRejector = noop;
|
|
30
|
-
};
|
|
31
|
-
const filter = (invoke) => {
|
|
32
|
-
const duration = resolveUnref(ms);
|
|
33
|
-
const maxDuration = resolveUnref(options.maxWait);
|
|
34
|
-
if (timer)
|
|
35
|
-
_clearTimeout(timer);
|
|
36
|
-
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
37
|
-
if (maxTimer) {
|
|
38
|
-
_clearTimeout(maxTimer);
|
|
39
|
-
maxTimer = null;
|
|
40
|
-
}
|
|
41
|
-
return Promise.resolve(invoke());
|
|
42
|
-
}
|
|
43
|
-
return new Promise((resolve, reject) => {
|
|
44
|
-
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
45
|
-
if (maxDuration && !maxTimer) {
|
|
46
|
-
maxTimer = setTimeout(() => {
|
|
47
|
-
if (timer)
|
|
48
|
-
_clearTimeout(timer);
|
|
49
|
-
maxTimer = null;
|
|
50
|
-
resolve(invoke());
|
|
51
|
-
}, maxDuration);
|
|
52
|
-
}
|
|
53
|
-
timer = setTimeout(() => {
|
|
54
|
-
if (maxTimer)
|
|
55
|
-
_clearTimeout(maxTimer);
|
|
56
|
-
maxTimer = null;
|
|
57
|
-
resolve(invoke());
|
|
58
|
-
}, duration);
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
return filter;
|
|
62
|
-
}
|
|
63
|
-
function identity(arg) {
|
|
64
|
-
return arg;
|
|
65
|
-
}
|
|
66
|
-
function increaseWithUnit(target, delta) {
|
|
67
|
-
var _a2;
|
|
68
|
-
if (typeof target === "number")
|
|
69
|
-
return target + delta;
|
|
70
|
-
const value = ((_a2 = target.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : _a2[0]) || "";
|
|
71
|
-
const unit = target.slice(value.length);
|
|
72
|
-
const result = parseFloat(value) + delta;
|
|
73
|
-
if (Number.isNaN(result))
|
|
74
|
-
return target;
|
|
75
|
-
return result + unit;
|
|
76
|
-
}
|
|
77
|
-
function tryOnScopeDispose(fn) {
|
|
78
|
-
if (getCurrentScope()) {
|
|
79
|
-
onScopeDispose(fn);
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
function resolveRef(r) {
|
|
85
|
-
return typeof r === "function" ? computed(r) : ref(r);
|
|
86
|
-
}
|
|
87
|
-
function tryOnMounted(fn, sync = true) {
|
|
88
|
-
if (getCurrentInstance())
|
|
89
|
-
onMounted(fn);
|
|
90
|
-
else if (sync)
|
|
91
|
-
fn();
|
|
92
|
-
else
|
|
93
|
-
nextTick(fn);
|
|
94
|
-
}
|
|
95
|
-
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
96
|
-
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
97
|
-
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
98
|
-
var __objRest$5 = (source, exclude) => {
|
|
99
|
-
var target = {};
|
|
100
|
-
for (var prop in source)
|
|
101
|
-
if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
102
|
-
target[prop] = source[prop];
|
|
103
|
-
if (source != null && __getOwnPropSymbols$6)
|
|
104
|
-
for (var prop of __getOwnPropSymbols$6(source)) {
|
|
105
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
|
|
106
|
-
target[prop] = source[prop];
|
|
107
|
-
}
|
|
108
|
-
return target;
|
|
109
|
-
};
|
|
110
|
-
function watchWithFilter(source, cb, options = {}) {
|
|
111
|
-
const _a2 = options, {
|
|
112
|
-
eventFilter = bypassFilter
|
|
113
|
-
} = _a2, watchOptions = __objRest$5(_a2, [
|
|
114
|
-
"eventFilter"
|
|
115
|
-
]);
|
|
116
|
-
return watch(source, createFilterWrapper(eventFilter, cb), watchOptions);
|
|
117
|
-
}
|
|
118
|
-
var __defProp$4 = Object.defineProperty;
|
|
119
|
-
var __defProps$4 = Object.defineProperties;
|
|
120
|
-
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
121
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
122
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
123
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
124
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
125
|
-
var __spreadValues$4 = (a, b) => {
|
|
126
|
-
for (var prop in b || (b = {}))
|
|
127
|
-
if (__hasOwnProp$4.call(b, prop))
|
|
128
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
129
|
-
if (__getOwnPropSymbols$4)
|
|
130
|
-
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
131
|
-
if (__propIsEnum$4.call(b, prop))
|
|
132
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
133
|
-
}
|
|
134
|
-
return a;
|
|
135
|
-
};
|
|
136
|
-
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
137
|
-
var __objRest$3 = (source, exclude) => {
|
|
138
|
-
var target = {};
|
|
139
|
-
for (var prop in source)
|
|
140
|
-
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
141
|
-
target[prop] = source[prop];
|
|
142
|
-
if (source != null && __getOwnPropSymbols$4)
|
|
143
|
-
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
144
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
145
|
-
target[prop] = source[prop];
|
|
146
|
-
}
|
|
147
|
-
return target;
|
|
148
|
-
};
|
|
149
|
-
function watchDebounced(source, cb, options = {}) {
|
|
150
|
-
const _a2 = options, {
|
|
151
|
-
debounce = 0,
|
|
152
|
-
maxWait = void 0
|
|
153
|
-
} = _a2, watchOptions = __objRest$3(_a2, [
|
|
154
|
-
"debounce",
|
|
155
|
-
"maxWait"
|
|
156
|
-
]);
|
|
157
|
-
return watchWithFilter(source, cb, __spreadProps$4(__spreadValues$4({}, watchOptions), {
|
|
158
|
-
eventFilter: debounceFilter(debounce, { maxWait })
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
function watchOnce(source, cb, options) {
|
|
162
|
-
const stop = watch(source, (...args) => {
|
|
163
|
-
nextTick(() => stop());
|
|
164
|
-
return cb(...args);
|
|
165
|
-
}, options);
|
|
166
|
-
}
|
|
167
|
-
export {
|
|
168
|
-
tryOnMounted as a,
|
|
169
|
-
isString as b,
|
|
170
|
-
resolveUnref as c,
|
|
171
|
-
increaseWithUnit as d,
|
|
172
|
-
identity as e,
|
|
173
|
-
watchOnce as f,
|
|
174
|
-
isClient as i,
|
|
175
|
-
noop as n,
|
|
176
|
-
resolveRef as r,
|
|
177
|
-
tryOnScopeDispose as t,
|
|
178
|
-
watchDebounced as w
|
|
179
|
-
};
|