@solvimon/solvimon-web 0.1.0-alpha.6 → 0.1.0-alpha.7
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/Alert.vue.es-DMPvSykx.js +1 -0
- package/dist/Alert.vue.es-DsJ1ckRU.mjs +172 -0
- package/dist/Amount.vue.es-C6JE5rL8.mjs +23 -0
- package/dist/Amount.vue.es-h8wulbBG.js +1 -0
- package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +93 -0
- package/dist/Avatar.vue.es-BbyE0AjW.js +1 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +1 -0
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DZ1XkSJ3.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs} +6 -4
- package/dist/Button.vue.es-6sBk5tBL.mjs +408 -0
- package/dist/Button.vue.es-BC4_TItq.js +1 -0
- package/dist/CardContent.vue.es-ChEMrFCc.mjs +115 -0
- package/dist/CardContent.vue.es-i9ivuGKG.js +1 -0
- package/dist/Chip.vue.es-D0fkSe8a.js +1 -0
- package/dist/Chip.vue.es-DcW2CjUA.mjs +1576 -0
- package/dist/Comparators.vue.es-BdxDqU8o.js +1 -0
- package/dist/Comparators.vue.es-DdTKGB80.mjs +406 -0
- package/dist/{ContentWithAsideLayout-D_T137tN.mjs → ContentWithAsideLayout-Ct24RV-2.mjs} +1 -1
- package/dist/{ContentWithAsideLayout-BZJPhvLh.js → ContentWithAsideLayout-UHovpjZu.js} +1 -1
- package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +1 -0
- package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +175 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs} +14 -11
- package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
- package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
- package/dist/DividerText.vue.es-B7oa5Xpn.mjs +72 -0
- package/dist/DividerText.vue.es-yiFdPQvo.js +1 -0
- package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +30 -0
- package/dist/ErrorNotification.vue.es-FpRyg0De.js +1 -0
- package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
- package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
- package/dist/IconButton.vue.es-DNCwwH_j.mjs +825 -0
- package/dist/IconButton.vue.es-DiSiGPWO.js +1 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +1 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs} +3 -2
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +1 -0
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs} +9 -5
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs +1067 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +1 -0
- package/dist/PaymentMethod.vue.es-DYlnmZh7.js +1 -0
- package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +1255 -0
- package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs} +6 -5
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +1 -0
- package/dist/Section.vue.es-3-H1pUTB.mjs +79 -0
- package/dist/Section.vue.es-BuzTXRLP.js +1 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs} +23 -20
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +1 -0
- package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +136 -0
- package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +1 -0
- package/dist/TrialChip.vue.es-BHYbW8b6.mjs +759 -0
- package/dist/TrialChip.vue.es-C6Xg_5rR.js +1 -0
- package/dist/_flatRest.es-BHFPCqZh.mjs +642 -0
- package/dist/_flatRest.es-dFffnTpX.js +1 -0
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-DZsyEXkw.js +1 -0
- package/dist/api.es-B4qAAJKr.js +1 -0
- package/dist/api.es-UkfpLiLL.mjs +83 -0
- package/dist/{cloneDeep-DranHQkY.js → cloneDeep-Hs8Pp07F.js} +1 -1
- package/dist/cn.es-C7xoIs3C.js +1 -0
- package/dist/cn.es-tfxVlz02.mjs +3191 -0
- package/dist/component-ZRZIt3ZW.js +1 -0
- package/dist/component-dpA83LIN.mjs +6569 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +14 -10
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +27 -23
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -3
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
- package/dist/components/Invoice/Invoice.cjs.js +1 -1
- package/dist/components/Invoice/Invoice.es.js +2612 -28
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
- package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +2 -2
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +10 -8
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +4820 -7
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -4
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -1
- package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +2 -2
- package/dist/core/index.cjs.js +1 -1
- package/dist/core/index.es.js +1 -1
- package/dist/countryData.es--zJAd6LA.mjs +252 -0
- package/dist/countryData.es-D3MFzU92.js +1 -0
- package/dist/customer-CJrpbGX4.mjs +32 -0
- package/dist/customer-CcQR-JIm.js +1 -0
- package/dist/customer.es-D42Md24r.js +1 -0
- package/dist/customer.es-LIW2YmLL.mjs +30 -0
- package/dist/formatting.es-9hM8aHSg.js +1 -0
- package/dist/formatting.es-D5H_ySFv.mjs +68 -0
- package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
- package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
- package/dist/index-CI71bVGE.mjs +2521 -0
- package/dist/index-WLSPwi90.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es-BBJF2O2l.js +1 -0
- package/dist/index.es-LCAKs4tH.mjs +438 -0
- package/dist/index.es.js +1 -1
- package/dist/invoices-3kVHsAXr.js +1 -0
- package/dist/{invoices-C7BHqB0g.mjs → invoices-CNK1Ushv.mjs} +15 -1
- package/dist/isEmpty.es-Bp1SbWFu.mjs +131 -0
- package/dist/isEmpty.es-Dycf-CD_.js +1 -0
- package/dist/{paymentMethods-BA7Kt8ti.mjs → paymentMethods-C-ApE-G4.mjs} +2 -1
- package/dist/paymentMethods-DZRf0WRl.js +1 -0
- package/dist/{payments-NTHUh5je.mjs → payments-CE9U7aKK.mjs} +1 -1
- package/dist/{payments-B8W0W6wZ.js → payments-CLt0SExf.js} +1 -1
- package/dist/pick.es-BgDAfhAl.js +1 -0
- package/dist/pick.es-DdVOyp0Q.mjs +45 -0
- package/dist/{registry-DgRnFEVF.mjs → registry-B99ZnfEn.mjs} +1 -2
- package/dist/registry-ClZ43bQn.js +1 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
- package/dist/screens/Checkout/Checkout.cjs.js +1 -1
- package/dist/screens/Checkout/Checkout.es.js +1862 -162
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +11 -11
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +46 -40
- package/dist/solvimon-web.css +1 -1
- package/dist/subscriptions-CS8HTxzC.js +1 -0
- package/dist/{subscriptions-BEoXaAHw.mjs → subscriptions-CoeCrY1I.mjs} +2 -1
- package/dist/typeGuards.es-C4nR5FkL.js +1 -0
- package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
- package/dist/{useActionDispatchProvider-DmTJ_bqE.js → useActionDispatchProvider-CWVV_xsi.js} +1 -1
- package/dist/{useActionDispatchProvider-zSXRlc2S.mjs → useActionDispatchProvider-eO2qFPGv.mjs} +1 -1
- package/dist/useCustomer--jycAz--.mjs +25 -0
- package/dist/useCustomer-PthyTFLl.js +1 -0
- package/dist/useIncrementalLoading-CAdNW-Bf.js +1 -0
- package/dist/{useIncrementalLoading-Bgs0mqyb.mjs → useIncrementalLoading-CcnL3flF.mjs} +5 -1
- package/dist/{useInvoiceData-B6P2VShe.mjs → useInvoiceData-BiMMoVoW.mjs} +2 -2
- package/dist/{useInvoiceData-CS7hLTea.js → useInvoiceData-DvQO_nKz.js} +1 -1
- package/dist/useInvoicesList-CHkwSNO9.js +1 -0
- package/dist/{useInvoicesList-23Ra-23Z.mjs → useInvoicesList-DFhF_gp7.mjs} +260 -23
- package/dist/{usePaymentMethods-BK4unvj2.js → usePaymentMethods-BRQ7-dUr.js} +1 -1
- package/dist/{usePaymentMethods-B8Nft16c.mjs → usePaymentMethods-BX2RnHZN.mjs} +2 -2
- package/dist/{useService-D-CUtlp3.js → useService-B67YWAcN.js} +1 -1
- package/dist/{useService-B4qv5N2D.mjs → useService-DG_zedHV.mjs} +1 -0
- package/dist/useWalletBalanceItems-B5FMmoU2.mjs +308 -0
- package/dist/useWalletBalanceItems-BY3gq0fc.js +1 -0
- package/package.json +14 -8
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BvmKLc2H.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DNWspHtC.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Cx4c8E4i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ct26TY0a.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs +0 -6568
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D9_G7CyE.js +0 -1
- package/dist/component-DI3AxwdD.mjs +0 -58733
- package/dist/component-yWF07boR.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/invoices-CjBHfDXp.js +0 -1
- package/dist/paymentMethods-A-5SBmy1.js +0 -1
- package/dist/registry-SwmYGFn7.js +0 -1
- package/dist/subscriptions-DSi93KpN.js +0 -1
- package/dist/useCustomer-DkrBNt5f.mjs +0 -45
- package/dist/useCustomer-fK-w7ifj.js +0 -1
- package/dist/useIncrementalLoading-BK6N8sYW.js +0 -1
- package/dist/useInvoicesList-CIFGVsDj.js +0 -1
- package/dist/useWalletBalanceItems-DreHuOra.mjs +0 -105
- package/dist/useWalletBalanceItems-NlFk6jPD.js +0 -1
- /package/dist/{sprite-DZD704h3-CCc3Mz1x.js → sprite.svg.es-CCc3Mz1x.js} +0 -0
- /package/dist/{sprite-DZD704h3-DZD704h3.mjs → sprite.svg.es-DZD704h3.mjs} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonSubscriptionsList: import('
|
|
1
|
+
export declare const SolvimonSubscriptionsList: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
|
|
2
2
|
export declare const COMPONENT_NAME: string;
|
|
3
3
|
export declare const defineSolvimonSubscriptionsList: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js"),t=require("../../component-ZRZIt3ZW.js"),r=require("../../useCustomer-PthyTFLl.js"),n=require("../../useLoadInitialData-BRg7IWqW.js"),l=require("../../usePaymentMethods-BRQ7-dUr.js"),i=e.defineComponent({__name:"SubscriptionsList.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup(i){const a=i.portalObject.customer_id,s=r.useCustomer({customerId:a}),p=o.useSubscriptionsList({customerId:a}),u=l.usePaymentMethods({customerId:a}),{isLoading:m}=n.useLoadInitialData(s.get.execute(),p.fetchInitial(),u.fetchAll());return(o,r)=>{var n,l,a,y;return e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{"custom-element-name":e.unref(c),environment:i.environment,locale:i.locale,"portal-object":i.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(l=null==(n=i.branding)?void 0:n.colors)?void 0:l.primary,"secondary-color":null==(y=null==(a=i.branding)?void 0:a.colors)?void 0:y.secondary,"experimental-features":i.experimentalFeatures,"log-level":i.logLevel,"on-log":i.onLog,onError:r[0]||(r[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{customer:e.unref(s),subscriptions:e.unref(p).items,paymentMethods:e.unref(u).items,isLoading:e.unref(m),loadMore:e.unref(p).fetchMore})]),_:3},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}}),a=e.defineComponent({__name:"SubscriptionsList.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},customElementName:{type:String},branding:{type:Object},configuration:{type:Object}},setup:r=>(n,l)=>{var a,s,p,u;return e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{"custom-element-name":e.unref(c),environment:r.environment,locale:r.locale,"portal-object":r.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(s=null==(a=r.branding)?void 0:a.colors)?void 0:s.primary,"secondary-color":null==(u=null==(p=r.branding)?void 0:p.colors)?void 0:u.secondary,"experimental-features":r.experimentalFeatures,"log-level":r.logLevel,"on-log":r.onLog,onError:l[0]||(l[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(i,e.normalizeProps(e.guardReactiveProps(n.$props)),{default:e.withCtx(({customer:t,subscriptions:n,paymentMethods:l,isLoading:i,loadMore:a})=>[e.createVNode(o._sfc_main,{configuration:r.configuration,customer:t.customer.value,subscriptions:n.value,"payment-methods":l.value,"is-loading":i,onLoadMore:a},null,8,["configuration","customer","subscriptions","payment-methods","is-loading","onLoadMore"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}),s=t.defineCustomElement(a),c=t.getComponentName("subscriptions-list");exports.COMPONENT_NAME=c,exports.SolvimonSubscriptionsList=s,exports.defineSolvimonSubscriptionsList=()=>{customElements.get(c)||customElements.define(c,s)};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import {
|
|
4
|
-
import { u as useCustomer } from "../../useCustomer
|
|
2
|
+
import { u as useSubscriptionsList, _ as _sfc_main$3 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs";
|
|
3
|
+
import { b as _sfc_main$2, d as defineCustomElement, g as getComponentName } from "../../component-dpA83LIN.mjs";
|
|
4
|
+
import { u as useCustomer } from "../../useCustomer--jycAz--.mjs";
|
|
5
5
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
6
|
-
import { u as usePaymentMethods } from "../../usePaymentMethods-
|
|
6
|
+
import { u as usePaymentMethods } from "../../usePaymentMethods-BX2RnHZN.mjs";
|
|
7
7
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "SubscriptionsList.entry.view",
|
|
9
9
|
props: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SolvimonWalletBalances: import('
|
|
1
|
+
export declare const SolvimonWalletBalances: import('../../../../node_modules/vue/dist/vue.d.ts').VueElementConstructor<unknown>;
|
|
2
2
|
export declare const COMPONENT_NAME: string;
|
|
3
3
|
export declare const defineSolvimonWalletBalances: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../_Uint8Array-DxISR7XF.js"),a=require("../../useWalletBalanceItems-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../_Uint8Array-DxISR7XF.js"),a=require("../../useWalletBalanceItems-BY3gq0fc.js"),o=require("../../useLoadInitialData-BRg7IWqW.js"),l=require("../../component-ZRZIt3ZW.js"),n=e.defineComponent({__name:"WalletBalances",props:{hasError:{type:Boolean},isLoading:{type:Boolean},walletBalances:{type:Array}},setup:t=>(o,l)=>(e.openBlock(),e.createBlock(a._sfc_main,{"has-error":t.hasError,"is-loading":t.isLoading,"wallet-balances":t.walletBalances},null,8,["has-error","is-loading","wallet-balances"]))}),r=e.defineComponent({__name:"WalletBalances.entry.view",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},customElementName:{type:String},branding:{type:Object}},setup(t){const l=t.portalObject.customer_id,n=a.useCustomerWalletBalances({customerId:l}),r=a.useWalletBalanceItems(n.walletBalances),{isLoading:s}=o.useLoadInitialData(n.fetch());return(t,a)=>e.renderSlot(t.$slots,"default",{customerWalletBalances:e.unref(n),walletBalanceItems:e.unref(r),isLoading:e.unref(s)})}}),s=e.defineComponent({__name:"WalletBalances.entry",props:{portalObject:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},showTimezones:{type:Boolean},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},customElementName:{type:String},branding:{type:Object}},setup:a=>(o,s)=>{var i,c,m,u;return e.openBlock(),e.createBlock(e.unref(l._sfc_main$1),{"custom-element-name":e.unref(p),environment:a.environment,locale:a.locale,"portal-object":a.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(c=null==(i=a.branding)?void 0:i.colors)?void 0:c.primary,"secondary-color":null==(u=null==(m=a.branding)?void 0:m.colors)?void 0:u.secondary,"experimental-features":a.experimentalFeatures,"log-level":a.logLevel,"on-log":a.onLog,onError:s[0]||(s[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(r,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({customerWalletBalances:a,walletBalanceItems:o,isLoading:l})=>[e.createVNode(n,{"has-error":a.apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":l,"wallet-balances":o},null,8,["has-error","is-loading","wallet-balances"])]),_:1},16)]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}),i=l.defineCustomElement(s),p=l.getComponentName("wallet-balances");exports.COMPONENT_NAME=p,exports.SolvimonWalletBalances=i,exports.defineSolvimonWalletBalances=()=>{customElements.get(p)||customElements.define(p,i)};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, renderSlot, unref, withCtx, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { A as ApiStatus } from "../../_Uint8Array-DHE03FZr.mjs";
|
|
3
|
-
import { _ as _sfc_main$3, u as useCustomerWalletBalances, a as useWalletBalanceItems } from "../../useWalletBalanceItems-
|
|
3
|
+
import { _ as _sfc_main$3, u as useCustomerWalletBalances, a as useWalletBalanceItems } from "../../useWalletBalanceItems-B5FMmoU2.mjs";
|
|
4
4
|
import { u as useLoadInitialData } from "../../useLoadInitialData-Dm48tlSO.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { b as _sfc_main$4, d as defineCustomElement, g as getComponentName } from "../../component-dpA83LIN.mjs";
|
|
6
6
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "WalletBalances",
|
|
8
8
|
props: {
|
package/dist/core/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../registry-ClZ43bQn.js");exports.createSolvimonCore=e.createSolvimonCore,exports.getRegisteredComponentIds=e.getRegisteredComponentIds,exports.getRegisteredScreenIds=e.getRegisteredScreenIds;
|
package/dist/core/index.es.js
CHANGED
|
@@ -0,0 +1,252 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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"}];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { c as createRequestService, u as useConfig } from "./component-dpA83LIN.mjs";
|
|
2
|
+
function createCustomerService() {
|
|
3
|
+
const request = createRequestService();
|
|
4
|
+
const config = useConfig();
|
|
5
|
+
function getCustomer(customerId) {
|
|
6
|
+
return request({
|
|
7
|
+
url: `${config.apiUrls.config}/portal/customers/${customerId}`
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function updateCustomer(customerId, payload) {
|
|
11
|
+
return request({
|
|
12
|
+
url: `${config.apiUrls.config}/portal/customers/${customerId}`,
|
|
13
|
+
options: { method: "PATCH" },
|
|
14
|
+
data: payload
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function checkTaxID(payload) {
|
|
18
|
+
return request({
|
|
19
|
+
url: `${config.apiUrls.config}/portal/customers/validate-tax-id`,
|
|
20
|
+
options: { method: "POST" },
|
|
21
|
+
data: payload
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
getCustomer,
|
|
26
|
+
updateCustomer,
|
|
27
|
+
checkTaxID
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
createCustomerService as c
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=require("./component-ZRZIt3ZW.js");exports.createCustomerService=function(){const e=t.createRequestService(),r=t.useConfig();return{getCustomer:function(t){return e({url:`${r.apiUrls.config}/portal/customers/${t}`})},updateCustomer:function(t,o){return e({url:`${r.apiUrls.config}/portal/customers/${t}`,options:{method:"PATCH"},data:o})},checkTaxID:function(t){return e({url:`${r.apiUrls.config}/portal/customers/validate-tax-id`,options:{method:"POST"},data:t})}}};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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," "));
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|