@solvimon/solvimon-web 0.1.0-alpha.6 → 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-DZ1XkSJ3.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CT0Tjsnw.mjs} +4 -4
- package/dist/{ContentWithAsideLayout-D_T137tN.mjs → ContentWithAsideLayout-BTdixy3L.mjs} +2 -11
- package/dist/ContentWithAsideLayout-oAYVrLvL.js +1 -0
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CK73bYUe.mjs} +11 -11
- 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-BWXmZmGZ.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dt_Vb7Wz.mjs} +2 -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-BSn_Zy0Y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D6Cr2Uga.mjs} +5 -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-CVWPT3Ni.mjs +910 -0
- 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-X7-dfeZP.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs} +5 -30
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BIxGqr9U.mjs} +20 -20
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CpEqDnO3.js +1 -0
- package/dist/adyen-51SvcyqV.mjs +4 -0
- package/dist/adyen-DZsyEXkw.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.ce.d.ts +1 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +14 -14
- 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 +28 -32
- 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 -7
- 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 +42 -75
- 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 -7
- 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 -6
- 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 -7
- 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 -34
- 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 +7 -10
- 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 -8
- 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 +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-C_Hz_npf.js +1 -0
- package/dist/customer-TIi7iZFw.mjs +32 -0
- package/dist/en-US-CBoPxQwX.mjs +199 -0
- package/dist/en-US-DJq-9dD8.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-C7BHqB0g.mjs → invoices-BuVOuTOm.mjs} +2 -1
- 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-BA7Kt8ti.mjs → paymentMethods-Di32oJ39.mjs} +2 -1
- package/dist/{payments-NTHUh5je.mjs → payments-C5fD1PXB.mjs} +1 -1
- package/dist/{payments-B8W0W6wZ.js → payments-DeutKq9x.js} +1 -1
- package/dist/{registry-DgRnFEVF.mjs → registry-BLwMl1bK.mjs} +6 -5
- package/dist/registry-CMSmkLcy.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 +589 -857
- 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 +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.ce.d.ts +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +81 -57
- package/dist/solvimon-web.css +1 -1
- package/dist/source-DKDKBlUm.mjs +179 -0
- package/dist/source-dkMNFWDc.js +1 -0
- package/dist/{subscriptions-BEoXaAHw.mjs → subscriptions-mOgjjzUi.mjs} +2 -1
- package/dist/subscriptions-wdMADcQZ.js +1 -0
- package/dist/{useActionDispatchProvider-zSXRlc2S.mjs → useActionDispatchProvider-B4gszz0Q.mjs} +1 -1
- package/dist/{useActionDispatchProvider-DmTJ_bqE.js → useActionDispatchProvider-DfS2P0bd.js} +1 -1
- package/dist/useCustomer-DanZzn-l.js +1 -0
- package/dist/useCustomer-cbhDyWJL.mjs +25 -0
- package/dist/useIncrementalLoading-DFe5Yh8M.js +1 -0
- package/dist/{useIncrementalLoading-Bgs0mqyb.mjs → useIncrementalLoading-RRicokf1.mjs} +3 -4
- package/dist/useInvoiceData-CxxHa5R2.js +1 -0
- package/dist/{useInvoiceData-B6P2VShe.mjs → useInvoiceData-fS6G_244.mjs} +6 -12
- package/dist/{useInvoicesList-23Ra-23Z.mjs → useInvoicesList-BQQxcPdz.mjs} +22 -22
- package/dist/useInvoicesList-CtJqmblZ.js +1 -0
- package/dist/usePaymentMethodOptions-2MloZ9bY.mjs +26 -0
- package/dist/usePaymentMethodOptions-D01YWW3G.js +1 -0
- package/dist/{usePaymentMethods-BK4unvj2.js → usePaymentMethods-Cm9WdSW0.js} +1 -1
- package/dist/{usePaymentMethods-B8Nft16c.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-DreHuOra.mjs → useWalletBalanceItems-B53Gkjro.mjs} +8 -7
- 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 +30 -17
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +0 -1
- package/dist/ContentWithAsideLayout-BZJPhvLh.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/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DI3AxwdD.mjs +0 -58733
- package/dist/component-yWF07boR.js +0 -1
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/invoices-CjBHfDXp.js +0 -1
- package/dist/paymentMethods-A-5SBmy1.js +0 -1
- package/dist/registry-SwmYGFn7.js +0 -1
- package/dist/sprite-DZD704h3-CCc3Mz1x.js +0 -1
- package/dist/sprite-DZD704h3-DZD704h3.mjs +0 -4
- 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/useInvoiceData-CS7hLTea.js +0 -1
- package/dist/useInvoicesList-CIFGVsDj.js +0 -1
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-NlFk6jPD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../component-yWF07boR.js"),n=require("../../PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js"),a=require("../../paymentMethods-A-5SBmy1.js"),i=require("../../ContentWithAsideLayout-BZJPhvLh.js"),r=require("../../useActionDispatchProvider-DmTJ_bqE.js"),o={id:"ppsu_hwDeeN0vhvcVCsAIdp1G",pricing_plan_schedule_infos:[{id:"ppsc_IwDeeN0vhvcVCIAQdq1a",pricing_plan_version_id:"ppve_MwDeeN0vhvcEuaADdd1f",start_at:"2026-04-05T22:00:00Z",pricing_plan_version:{pricing_categories:[{product_category:{id:"proc_iwDeeN0vhphn6VAtBD1w",name:"Add ons"},display_order:1,pricings:[{id:"pric_ywDeeN0vhvcPguAadr1V",name:"Integration setup",products:[{name:"Integration setup"}],items:[{id:"prii_NwDeeN0vhvcPguAxds12",product_items:[{name:"Rillet integration setup",model_type:"ONE_OFF"}],configs:[{on_demand:!0,bands:[{fixed_amount:{quantity:"5000.00",currency:"EUR"}}]}]},{id:"prii_IwDeeN0vhvcPgvAsdS1Q",product_items:[{name:"Attio integration setup",model_type:"ONE_OFF"}],configs:[{on_demand:!0,bands:[{amount:{quantity:"50000.00",currency:"EUR"}}]}]}]}],pricing_groups:[]}]}}]},l=e=>{var t,n;return((null==(t=e.configs)?void 0:t.some(e=>e.on_demand))??!1)&&((null==(n=e.product_items)?void 0:n.some(e=>"ONE_OFF"===e.model_type))??!1)},c=e=>{var t,n;return{id:e.id,name:null==(n=null==(t=e.product_items)?void 0:t[0])?void 0:n.name,items:[{id:e.id,configs:(e.configs??[]).map(e=>({bands:(e.bands??[]).map(e=>({fixed_amount:e.fixed_amount??e.amount}))}))}]}},s=e=>(e.items??[]).filter(l).map(c),d=e=>({display_order:e.display_order,product_category:e.product_category,pricings:(e.pricings??[]).flatMap(s),pricing_groups:(e.pricing_groups??[]).map(e=>({id:e.id,name:e.name,pricings:(e.pricings??[]).flatMap(s)})).filter(e=>e.pricings.length>0)}),u=Object.fromEntries(o.pricing_plan_schedule_infos.flatMap(e=>e.pricing_plan_version.pricing_categories).flatMap(e=>e.pricings).flatMap(e=>e.items).filter(l).map(e=>{var t,n,a,i,r;const o=null==(a=null==(n=null==(t=e.configs)?void 0:t[0])?void 0:n.bands)?void 0:a[0],l=(null==(i=null==o?void 0:o.fixed_amount)?void 0:i.quantity)??(null==(r=null==o?void 0:o.amount)?void 0:r.quantity)??"0";return[e.id,parseFloat(l)]})),p=e=>({quantity:e.toFixed(2),currency:"EUR"}),m={id:"paya_NwDeeN0vgXgeP1AyNx14",object_type:"PAYMENT_ACCEPTOR",status:"ACTIVE",reference:"mock-payment-acceptor",name:"Mock payment acceptor",type:"PAYMENT_GATEWAY"},g={id:"intg_zwDeeN0vgXgeM6APNW1g",object_type:"INTEGRATION",reference:"mock-payment-integration",name:"Mock payment integration",description:"Mock payment integration",status:"ACTIVE",type:"PAYMENT_GATEWAY"},_={class:"mb-3 flex flex-col gap-2"},f={class:"flex flex-col gap-1 border-t pt-3"},y={class:"flex items-center justify-between"},v={class:"flex items-center justify-between"},h={class:"flex items-center justify-between border-t pt-3"},b=e.defineComponent({__name:"UpgradeOrderSummary",props:{selectedPricings:{type:Array},invoice:{type:Object},isPending:{type:Boolean}},setup(n){const a=n,{$t:i}=t.useIntl(),r=e.computed(()=>0===a.selectedPricings.length),o=e=>{var t,n,a,i,r,o;return null==(o=null==(r=null==(i=null==(a=null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.configs)?void 0:a[0])?void 0:i.bands)?void 0:r[0])?void 0:o.fixed_amount};return(a,l)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),null,{default:e.withCtx(()=>{var a;return[e.createVNode(e.unref(t._sfc_main$2),{variant:"heading-3",tag:"h2",class:"mb-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Order summary",id:"upgrade_subscription.order_summary.title",description:"Title for the order summary section on the upgrade subscription page"})),1)]),_:1}),r.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Select add-ons to see pricing.",id:"upgrade_subscription.order_summary.empty_state",description:"Placeholder shown when no add-ons are selected in the order summary"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selectedPricings,n=>(e.openBlock(),e.createElementBlock("div",{key:n.id,class:"flex items-center justify-between"},[e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm"},{default:e.withCtx(()=>{var t,a;return[e.createTextVNode(e.toDisplayString(n.name??(null==(a=null==(t=n.products)?void 0:t[0])?void 0:a.name)),1)]}),_:2},1024),e.createVNode(e.unref(t._sfc_main$2),{variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"one-off",id:"upgrade_subscription.order_summary.one_off_label",description:"One-off payment label next to a line item in order summary"})),1)]),_:1})]),o(n)?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:0,variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(o(n))),1)]),_:2},1024)):e.createCommentVNode("",!0)]))),128))]),(null==(a=n.invoice)?void 0:a.tax_summary)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",f,[e.createElementVNode("div",y,[e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Total excluding taxes",id:"upgrade_subscription.order_summary.subtotal_label",description:"Subtotal before tax label in order summary"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(n.invoice.tax_summary.base_amount)),1)]),_:1})]),e.createElementVNode("div",v,[e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Taxes",id:"upgrade_subscription.order_summary.taxes_label",description:"Tax amount label in order summary"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(n.invoice.tax_summary.tax_amount)),1)]),_:1})])]),e.createElementVNode("div",h,[e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Total due today",id:"upgrade_subscription.order_summary.total_label",description:"Total amount due today label in order summary"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(n.invoice.tax_summary.total_amount)),1)]),_:1})])],64)):e.createCommentVNode("",!0)],64))]}),_:1}))}}),k=e.defineComponent({__name:"OnDemandPricingRow",props:{pricing:{type:Object},selected:{type:Boolean}},emits:["toggle"],setup(a,{emit:i}){const r=a,o=i,{$t:l}=t.useIntl(),c=e.computed(()=>{var e,t;return r.pricing.name??(null==(t=null==(e=r.pricing.products)?void 0:e[0])?void 0:t.name)??"—"}),s=e.computed(()=>{var e,t,n,a,i,o;return null==(o=null==(i=null==(a=null==(n=null==(t=null==(e=r.pricing.items)?void 0:e[0])?void 0:t.configs)?void 0:n[0])?void 0:a.bands)?void 0:i[0])?void 0:o.fixed_amount}),d=e.computed(()=>s.value?`${t.formatAmount(s.value)} ${l({defaultMessage:"one-off",id:"on_demand_pricing_row.one_off_label",description:"One-off label shown next to the price in an on-demand pricing row"})}`:"");return(i,r)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{"content-background":a.selected?"none":"gray",class:e.normalizeClass({"!bg-white":a.selected})},{default:e.withCtx(()=>[e.createVNode(n._sfc_main,{name:c.value,description:d.value},{default:e.withCtx(()=>[a.selected?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2H),{key:0,color:"gray",variant:"outline",size:"sm","icon-prefix":"remove_shopping_cart",onClick:r[0]||(r[0]=e=>o("toggle",a.pricing.id))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Remove",id:"on_demand_pricing_row.remove_button_label",description:"Label for the remove button in an on-demand pricing row"})),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2H),{key:1,color:"primary",size:"sm","icon-prefix":"add",onClick:r[1]||(r[1]=e=>o("toggle",a.pricing.id))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Add to cart",id:"on_demand_pricing_row.add_to_cart_button_label",description:"Label for the add to cart button in an on-demand pricing row"})),1)]),_:1}))]),_:1},8,["name","description"])]),_:1},8,["content-background","class"]))}}),x={class:"grid grid-cols-1 gap-1"},N=e.defineComponent({__name:"OnDemandPricingList",props:{categories:{type:Array},selectedPricingIds:{type:Array}},emits:["toggle"],setup(n,{emit:a}){const i=n,r=a,o=e.computed(()=>[...i.categories].sort((e,t)=>(e.display_order??0)-(t.display_order??0)));return(a,i)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id??a.display_order,class:"flex flex-col gap-2"},[e.createVNode(e.unref(t._sfc_main$2),{variant:"heading-3",tag:"h2"},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString((null==(t=a.product_category)?void 0:t.name)??a.name),1)]}),_:2},1024),e.createElementVNode("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricings,t=>(e.openBlock(),e.createBlock(k,{key:t.id,pricing:t,selected:n.selectedPricingIds.includes(t.id),onToggle:i[0]||(i[0]=e=>r("toggle",e))},null,8,["pricing","selected"]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricing_groups,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.id},[e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm",weight:"semibold",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.name),1)]),_:2},1024),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricings,t=>(e.openBlock(),e.createBlock(k,{key:t.id,pricing:t,selected:n.selectedPricingIds.includes(t.id),onToggle:i[1]||(i[1]=e=>r("toggle",e))},null,8,["pricing","selected"]))),128))],64))),128))])]))),128))}}),w={class:"flex flex-col gap-4"},B={key:0,class:"flex flex-col gap-2"},V={class:"flex flex-col gap-1"},C={key:1,class:"flex flex-col gap-2"},E={class:"flex flex-col gap-1"},T={class:"flex items-center gap-3"},S={key:0,class:"flex h-9 w-9 shrink-0 items-center gap-0.5"},A=["src","alt"],I={key:1,class:"flex h-9 w-9 shrink-0 items-center justify-center overflow-clip rounded"},D=["src","alt"],M={key:2,class:"flex flex-col gap-1"},P=e.defineComponent({__name:"PaymentMethodPicker",props:{customerId:{type:String},subscriptionId:{type:String},selectedId:{type:String}},emits:["select"],setup(n,{emit:i}){const r=n,o=i,{$t:l}=t.useIntl(),{getPaymentMethods:c}=a.createPaymentMethodsService(),s=e.ref([]),d=e.ref([]),u=e.ref(!1),p=e.computed(()=>d.value.flatMap(e=>e.options??[])),_=e=>`https://checkoutshopper-live.adyen.com/checkoutshopper/images/logos/small/${e}.svg`,f=["visa","mc","amex","maestro"],y=e=>{if(!e)return[];return[...f.filter(t=>e.includes(t)),...e.filter(e=>!f.includes(e))].slice(0,4)};return e.onMounted(async()=>{u.value=!0;try{const e=await c({customerId:r.customerId,pagination:{page:1,pageSize:50}});s.value=e.data,d.value=[{payment_acceptor:m,integration:g,options:[{name:"iDeal",payment_method_variant:"ONLINE_BANKING",payment_gateway_variant:"ADYEN",adyen:{name:"iDEAL | Wero",type:"ideal"}},{name:"Cards",payment_method_variant:"CARD",payment_gateway_variant:"ADYEN",adyen:{name:"Cards",type:"scheme",brands:["maestro","accel","amex","cup","diners","hipercard","jcb","mc","nyce","pulse","star","visa"]}},{name:"PayPal",payment_method_variant:"DIGITAL_WALLET",payment_gateway_variant:"ADYEN",adyen:{name:"PayPal",type:"paypal",configuration:{intent:"capture"}}},{name:"Trustly",payment_method_variant:"ONLINE_BANKING",payment_gateway_variant:"ADYEN",adyen:{name:"Trustly - Instant Bank Payment",type:"trustly"}}]}]}finally{u.value=!1}}),(a,i)=>(e.openBlock(),e.createElementBlock("div",w,[s.value.length>0?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(e.unref(t._sfc_main$2),{variant:"heading-3",tag:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Saved payment methods",id:"upgrade_subscription.payment_picker.saved_title",description:"Heading for the saved payment methods section in the upgrade subscription payment picker"})),1)]),_:1}),e.createElementVNode("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:a.id,"content-background":n.selectedId===a.id?"none":"gray",class:e.normalizeClass([{"!bg-white":n.selectedId===a.id},"cursor-pointer"]),onClick:e=>o("select",a.id)},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{"payment-method":a},null,8,["payment-method"])]),_:2},1032,["content-background","class","onClick"]))),128))])])):e.createCommentVNode("",!0),p.value.length>0?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(t._sfc_main$2),{variant:"heading-3",tag:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"All payment methods",id:"upgrade_subscription.payment_picker.all_title",description:"Heading for the all payment methods section in the upgrade subscription payment picker"})),1)]),_:1}),e.createElementVNode("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1g),{key:a.adyen.type,"content-background":n.selectedId===a.adyen.type?"none":"gray",class:e.normalizeClass([{"!bg-white":n.selectedId===a.adyen.type},"cursor-pointer"]),onClick:e=>o("select",a.adyen.type)},{default:e.withCtx(()=>{return[e.createElementVNode("div",T,["scheme"===a.adyen.type?(e.openBlock(),e.createElementBlock("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y(a.adyen.brands),t=>(e.openBlock(),e.createElementBlock("img",{key:t,src:_(t),alt:t,class:"h-5 w-auto rounded"},null,8,A))),128))])):(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("img",{src:(n=a.adyen.type,`https://checkoutshopper-live.adyen.com/checkoutshopper/images/logos/${n}.svg`),alt:a.name,class:"h-9 w-9 object-contain"},null,8,D)])),e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.name),1)]),_:2},1024)])];var n}),_:2},1032,["content-background","class","onClick"]))),128))])])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",M,[...i[0]||(i[0]=[e.createElementVNode("div",{class:"h-[52px] animate-pulse rounded-md bg-gray-100"},null,-1),e.createElementVNode("div",{class:"h-[52px] animate-pulse rounded-md bg-gray-100"},null,-1),e.createElementVNode("div",{class:"h-[52px] animate-pulse rounded-md bg-gray-100"},null,-1)])])):e.createCommentVNode("",!0)]))}});const $={key:0,class:"flex h-full items-center justify-center p-8"},O={class:"flex flex-col items-center py-10"},j=e.defineComponent({__name:"UpgradeSubscription",props:{configuration:{type:Object}},setup(a){const l=a,{$t:c}=t.useIntl(),{dispatchAction:s}=r.useActionDispatchProvider(),{chargeOnDemandPricingItems:m}=function(){const e=t.createRequestService(),n=t.useConfig();return{chargeOnDemandPricingItems:function({scheduleId:t,pricingPlanVersionId:a,pricingItemIds:i,startAt:r,finalizeImmediately:o=!0,paymentMethodId:l}){return e({url:`${n.apiUrls.config}/portal/pricing-plan-schedules/${t}/charge-on-demand-pricing-items`,options:{method:"POST"},data:{...a?{pricing_plan_version_id:a}:{},pricing_item_ids:i,...r?{start_at:r}:{},finalize_immediately:o,...l?{payment_method_id:l}:{}}})}}}(),g=i.usePortal(),_=e.computed(()=>g.value.customer_id),f=e.ref([]),y=e.ref(void 0),v=e.ref(!1),h=e.ref(!1),k=e.ref(void 0),x=e.ref(!1),w=e.computed(()=>(e=>{var t;const n=Date.now(),a=o.pricing_plan_schedule_infos,i=a.find(e=>{const t=Date.parse(e.start_at);return Number.isFinite(t)&&t<=n})??a[0],r=((null==(t=null==i?void 0:i.pricing_plan_version)?void 0:t.pricing_categories)??[]).map(d).filter(e=>{var t,n;return((null==(t=e.pricings)?void 0:t.length)??0)>0||((null==(n=e.pricing_groups)?void 0:n.length)??0)>0});return{pricing_plan_subscription_id:e||o.id,pricing_plan_schedule_id:(null==i?void 0:i.id)??"",pricing_plan_version_id:(null==i?void 0:i.pricing_plan_version_id)??"",billing_period:{type:"MONTH",value:1},billing_currency:"EUR",pricing_categories:r}})(l.configuration.subscriptionId)),B=e.computed(()=>w.value.pricing_categories),V=e.computed(()=>B.value.flatMap(e=>[...e.pricings??[],...(e.pricing_groups??[]).flatMap(e=>e.pricings??[])])),C=e.computed(()=>V.value.filter(e=>f.value.includes(e.id)));let E;e.watch(f,e=>{if(clearTimeout(E),0===e.length)return k.value=void 0,void(x.value=!1);x.value=!0,E=setTimeout(()=>{k.value=(e=>{const t=e.reduce((e,t)=>e+(u[t]??0),0),n=Math.round(.21*t*100)/100,a=t+n;return{invoice:{tax_summary:{base_amount:p(t),tax_amount:p(n),total_amount:p(a),country_code:"NL"}},first_invoice:{},invoice_infos:[]}})(e).invoice,x.value=!1},400)});const T=e=>{f.value.includes(e)?f.value=f.value.filter(t=>t!==e):f.value=[...f.value,e]},S=e.computed(()=>f.value.length>0&&!!y.value),A=e.ref(void 0),I=async()=>{if(S.value){v.value=!0,A.value=void 0;try{const e=C.value.map(e=>{var t,n;return null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.id}).filter(e=>!!e),t=y.value&&y.value.startsWith("pmet_")?y.value:void 0,n=await m({scheduleId:w.value.pricing_plan_schedule_id,pricingPlanVersionId:w.value.pricing_plan_version_id,pricingItemIds:e,finalizeImmediately:!0,paymentMethodId:t});t?h.value=!0:s({action:"pay-invoice",data:{invoiceId:n.id}})}catch{A.value=c({defaultMessage:"Something went wrong. Please try again.",id:"upgrade_subscription.purchase_error",description:"Error message shown when the purchase call fails on the upgrade subscription page"})}finally{v.value=!1}}};return(r,o)=>h.value?(e.openBlock(),e.createElementBlock("div",$,[e.createVNode(e.unref(t._sfc_main$1g),null,{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(t._sfc_main$4),{icon:"check_circle",class:"text-green-400",size:"lg"}),e.createVNode(e.unref(t._sfc_main$2),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"Payment successful",id:"upgrade_subscription.success.title",description:"Title shown after a successful add-on purchase"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main$2),{variant:"body-sm",shade:"lighter",tag:"span",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"Your add-ons have been activated.",id:"upgrade_subscription.success.subtitle",description:"Subtitle shown after a successful add-on purchase"})),1)]),_:1})])]),_:1})])):(e.openBlock(),e.createBlock(e.unref(i.ContentWithAsideLayout),{key:1},{content:e.withCtx(()=>[B.value.length>0?(e.openBlock(),e.createBlock(N,{key:0,categories:B.value,"selected-pricing-ids":f.value,onToggle:T},null,8,["categories","selected-pricing-ids"])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$2),{key:1,variant:"body-sm",shade:"lighter",class:"p-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"No on-demand add-ons are available for this subscription.",id:"upgrade_subscription.empty_state",description:"Shown when there are no on-demand add-ons available for the subscription"})),1)]),_:1})),e.createVNode(e.unref(t._sfc_main$2p),{spacing:"sm"}),e.createVNode(P,{"customer-id":_.value,"subscription-id":a.configuration.subscriptionId,"selected-id":y.value,onSelect:o[0]||(o[0]=e=>y.value=e)},null,8,["customer-id","subscription-id","selected-id"])]),aside:e.withCtx(()=>[e.createVNode(b,{"selected-pricings":C.value,invoice:k.value,"is-pending":x.value},null,8,["selected-pricings","invoice","is-pending"]),A.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$16),{key:0,title:A.value},null,8,["title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(t._sfc_main$2H),{size:"lg",class:"full-width",type:"button",disabled:!S.value||v.value,loading:v.value,onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)({defaultMessage:"Purchase",id:"upgrade_subscription.purchase_button.label",description:"Label for the purchase button on the upgrade subscription page"})),1)]),_:1},8,["disabled","loading"]),e.createVNode(e.unref(t._sfc_main$2),{tag:"div",variant:"body-sm",shade:"lighter",class:"flex grow justify-center"},{default:e.withCtx(()=>[e.createVNode(n._sfc_main$1,{icon:"lock",kpi:e.unref(c)({defaultMessage:"Secure and encrypted payments",id:"upgrade_subscription.kpi.encrypted_payments.label",description:"The encrypted payments KPI shown on the upgrade subscription page"})},null,8,["kpi"])]),_:1})]),_:1}))}}),L=e.defineComponent({__name:"UpgradeSubscription.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:n=>(a,i)=>{var r,o,l,c;return e.openBlock(),e.createBlock(t._sfc_main$1,{"custom-element-name":e.unref(q),environment:n.environment,locale:n.locale,"portal-object":n.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(o=null==(r=n.branding)?void 0:r.colors)?void 0:o.primary,"secondary-color":null==(c=null==(l=n.branding)?void 0:l.colors)?void 0:c.secondary,"experimental-features":n.experimentalFeatures,"log-level":n.logLevel,"on-log":n.onLog,onError:i[0]||(i[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(j,{configuration:n.configuration},null,8,["configuration"])]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}),F=t.defineCustomElement(L),q=t.getComponentName("upgrade-subscription");exports.COMPONENT_NAME=q,exports.SolvimonUpgradeSubscription=F,exports.defineSolvimonUpgradeSubscription=()=>{customElements.get(q)||customElements.define(q,F)};
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../vendor-ui-Ce_Yp7xA.js"),n=require("../../PricingGroupContent.vue_vue_type_script_setup_true_lang-CKNMt-JH.js"),a=require("../../paymentMethods-B4AYGf0K.js"),i=require("../../ContentWithAsideLayout-oAYVrLvL.js"),r=require("../../useActionDispatchProvider-DfS2P0bd.js"),o=require("../../usePortal-DWJEVkTj.js"),l=require("../../component-C2Gc-wsE.js"),c={id:"ppsu_hwDeeN0vhvcVCsAIdp1G",pricing_plan_schedule_infos:[{id:"ppsc_IwDeeN0vhvcVCIAQdq1a",pricing_plan_version_id:"ppve_MwDeeN0vhvcEuaADdd1f",start_at:"2026-04-05T22:00:00Z",pricing_plan_version:{pricing_categories:[{product_category:{id:"proc_iwDeeN0vhphn6VAtBD1w",name:"Add ons"},display_order:1,pricings:[{id:"pric_ywDeeN0vhvcPguAadr1V",name:"Integration setup",products:[{name:"Integration setup"}],items:[{id:"prii_NwDeeN0vhvcPguAxds12",product_items:[{name:"Rillet integration setup",model_type:"ONE_OFF"}],configs:[{on_demand:!0,bands:[{fixed_amount:{quantity:"5000.00",currency:"EUR"}}]}]},{id:"prii_IwDeeN0vhvcPgvAsdS1Q",product_items:[{name:"Attio integration setup",model_type:"ONE_OFF"}],configs:[{on_demand:!0,bands:[{amount:{quantity:"50000.00",currency:"EUR"}}]}]}]}],pricing_groups:[]}]}}]},s=e=>{var t,n;return((null==(t=e.configs)?void 0:t.some(e=>e.on_demand))??!1)&&((null==(n=e.product_items)?void 0:n.some(e=>"ONE_OFF"===e.model_type))??!1)},d=e=>{var t,n;return{id:e.id,name:null==(n=null==(t=e.product_items)?void 0:t[0])?void 0:n.name,items:[{id:e.id,configs:(e.configs??[]).map(e=>({bands:(e.bands??[]).map(e=>({fixed_amount:e.fixed_amount??e.amount}))}))}]}},u=e=>(e.items??[]).filter(s).map(d),p=e=>({display_order:e.display_order,product_category:e.product_category,pricings:(e.pricings??[]).flatMap(u),pricing_groups:(e.pricing_groups??[]).map(e=>({id:e.id,name:e.name,pricings:(e.pricings??[]).flatMap(u)})).filter(e=>e.pricings.length>0)}),m=Object.fromEntries(c.pricing_plan_schedule_infos.flatMap(e=>e.pricing_plan_version.pricing_categories).flatMap(e=>e.pricings).flatMap(e=>e.items).filter(s).map(e=>{var t,n,a,i,r;const o=null==(a=null==(n=null==(t=e.configs)?void 0:t[0])?void 0:n.bands)?void 0:a[0],l=(null==(i=null==o?void 0:o.fixed_amount)?void 0:i.quantity)??(null==(r=null==o?void 0:o.amount)?void 0:r.quantity)??"0";return[e.id,parseFloat(l)]})),g=e=>({quantity:e.toFixed(2),currency:"EUR"}),_={id:"paya_NwDeeN0vgXgeP1AyNx14",object_type:"PAYMENT_ACCEPTOR",status:"ACTIVE",reference:"mock-payment-acceptor",name:"Mock payment acceptor",type:"PAYMENT_GATEWAY"},f={id:"intg_zwDeeN0vgXgeM6APNW1g",object_type:"INTEGRATION",reference:"mock-payment-integration",name:"Mock payment integration",description:"Mock payment integration",status:"ACTIVE",type:"PAYMENT_GATEWAY"},y={class:"mb-3 flex flex-col gap-2"},v={class:"flex flex-col gap-1 border-t pt-3"},h={class:"flex items-center justify-between"},b={class:"flex items-center justify-between"},k={class:"flex items-center justify-between border-t pt-3"},x=e.defineComponent({__name:"UpgradeOrderSummary",props:{selectedPricings:{type:Array},invoice:{type:Object},isPending:{type:Boolean}},setup(n){const a=n,{$t:i}=t.useIntl(),r=e.computed(()=>0===a.selectedPricings.length),o=e=>{var t,n,a,i,r,o;return null==(o=null==(r=null==(i=null==(a=null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.configs)?void 0:a[0])?void 0:i.bands)?void 0:r[0])?void 0:o.fixed_amount};return(a,l)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),null,{default:e.withCtx(()=>{var a;return[e.createVNode(e.unref(t._sfc_main),{variant:"heading-3",tag:"h2",class:"mb-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Order summary",id:"upgrade_subscription.order_summary.title",description:"Title for the order summary section on the upgrade subscription page"})),1)]),_:1}),r.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Select add-ons to see pricing.",id:"upgrade_subscription.order_summary.empty_state",description:"Placeholder shown when no add-ons are selected in the order summary"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selectedPricings,n=>(e.openBlock(),e.createElementBlock("div",{key:n.id,class:"flex items-center justify-between"},[e.createElementVNode("div",null,[e.createVNode(e.unref(t._sfc_main),{variant:"body-sm"},{default:e.withCtx(()=>{var t,a;return[e.createTextVNode(e.toDisplayString(n.name??(null==(a=null==(t=n.products)?void 0:t[0])?void 0:a.name)),1)]}),_:2},1024),e.createVNode(e.unref(t._sfc_main),{variant:"body-xs",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"one-off",id:"upgrade_subscription.order_summary.one_off_label",description:"One-off payment label next to a line item in order summary"})),1)]),_:1})]),o(n)?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(o(n))),1)]),_:2},1024)):e.createCommentVNode("",!0)]))),128))]),(null==(a=n.invoice)?void 0:a.tax_summary)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",v,[e.createElementVNode("div",h,[e.createVNode(e.unref(t._sfc_main),{variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Total excluding taxes",id:"upgrade_subscription.order_summary.subtotal_label",description:"Subtotal before tax label in order summary"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main),{variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(n.invoice.tax_summary.base_amount)),1)]),_:1})]),e.createElementVNode("div",b,[e.createVNode(e.unref(t._sfc_main),{variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Taxes",id:"upgrade_subscription.order_summary.taxes_label",description:"Tax amount label in order summary"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main),{variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(n.invoice.tax_summary.tax_amount)),1)]),_:1})])]),e.createElementVNode("div",k,[e.createVNode(e.unref(t._sfc_main),{variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Total due today",id:"upgrade_subscription.order_summary.total_label",description:"Total amount due today label in order summary"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main),{variant:"body-sm",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(n.invoice.tax_summary.total_amount)),1)]),_:1})])],64)):e.createCommentVNode("",!0)],64))]}),_:1}))}}),N=e.defineComponent({__name:"OnDemandPricingRow",props:{pricing:{type:Object},selected:{type:Boolean}},emits:["toggle"],setup(a,{emit:i}){const r=a,o=i,{$t:l}=t.useIntl(),c=e.computed(()=>{var e,t;return r.pricing.name??(null==(t=null==(e=r.pricing.products)?void 0:e[0])?void 0:t.name)??"—"}),s=e.computed(()=>{var e,t,n,a,i,o;return null==(o=null==(i=null==(a=null==(n=null==(t=null==(e=r.pricing.items)?void 0:e[0])?void 0:t.configs)?void 0:n[0])?void 0:a.bands)?void 0:i[0])?void 0:o.fixed_amount}),d=e.computed(()=>s.value?`${t.formatAmount(s.value)} ${l({defaultMessage:"one-off",id:"on_demand_pricing_row.one_off_label",description:"One-off label shown next to the price in an on-demand pricing row"})}`:"");return(i,r)=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{"content-background":a.selected?"none":"gray",class:e.normalizeClass({"!bg-white":a.selected})},{default:e.withCtx(()=>[e.createVNode(n._sfc_main,{name:c.value,description:d.value},{default:e.withCtx(()=>[a.selected?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:0,color:"gray",variant:"outline",size:"sm","icon-prefix":"remove_shopping_cart",onClick:r[0]||(r[0]=e=>o("toggle",a.pricing.id))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Remove",id:"on_demand_pricing_row.remove_button_label",description:"Label for the remove button in an on-demand pricing row"})),1)]),_:1})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$3),{key:1,color:"primary",size:"sm","icon-prefix":"add",onClick:r[1]||(r[1]=e=>o("toggle",a.pricing.id))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Add to cart",id:"on_demand_pricing_row.add_to_cart_button_label",description:"Label for the add to cart button in an on-demand pricing row"})),1)]),_:1}))]),_:1},8,["name","description"])]),_:1},8,["content-background","class"]))}}),w={class:"grid grid-cols-1 gap-1"},B=e.defineComponent({__name:"OnDemandPricingList",props:{categories:{type:Array},selectedPricingIds:{type:Array}},emits:["toggle"],setup(n,{emit:a}){const i=n,r=a,o=e.computed(()=>[...i.categories].sort((e,t)=>(e.display_order??0)-(t.display_order??0)));return(a,i)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id??a.display_order,class:"flex flex-col gap-2"},[e.createVNode(e.unref(t._sfc_main),{variant:"heading-3",tag:"h2"},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString((null==(t=a.product_category)?void 0:t.name)??a.name),1)]}),_:2},1024),e.createElementVNode("div",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricings,t=>(e.openBlock(),e.createBlock(N,{key:t.id,pricing:t,selected:n.selectedPricingIds.includes(t.id),onToggle:i[0]||(i[0]=e=>r("toggle",e))},null,8,["pricing","selected"]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricing_groups,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.id},[e.createVNode(e.unref(t._sfc_main),{variant:"body-sm",weight:"semibold",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.name),1)]),_:2},1024),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pricings,t=>(e.openBlock(),e.createBlock(N,{key:t.id,pricing:t,selected:n.selectedPricingIds.includes(t.id),onToggle:i[1]||(i[1]=e=>r("toggle",e))},null,8,["pricing","selected"]))),128))],64))),128))])]))),128))}}),V={class:"flex flex-col gap-4"},C={key:0,class:"flex flex-col gap-2"},E={class:"flex flex-col gap-1"},S={key:1,class:"flex flex-col gap-2"},T={class:"flex flex-col gap-1"},A={class:"flex items-center gap-3"},I={key:0,class:"flex h-9 w-9 shrink-0 items-center gap-0.5"},D=["src","alt"],M={key:1,class:"flex h-9 w-9 shrink-0 items-center justify-center overflow-clip rounded"},P=["src","alt"],O={key:2,class:"flex flex-col gap-1"},j=e.defineComponent({__name:"PaymentMethodPicker",props:{customerId:{type:String},subscriptionId:{type:String},selectedId:{type:String}},emits:["select"],setup(n,{emit:i}){const r=n,o=i,{$t:l}=t.useIntl(),{getPaymentMethods:c}=a.createPaymentMethodsService(),s=e.ref([]),d=e.ref([]),u=e.ref(!1),p=e.computed(()=>d.value.flatMap(e=>e.options??[])),m=e=>`https://checkoutshopper-live.adyen.com/checkoutshopper/images/logos/small/${e}.svg`,g=["visa","mc","amex","maestro"],y=e=>{if(!e)return[];return[...g.filter(t=>e.includes(t)),...e.filter(e=>!g.includes(e))].slice(0,4)};return e.onMounted(async()=>{u.value=!0;try{const e=await c({customerId:r.customerId,pagination:{page:1,pageSize:50}});s.value=e.data,d.value=[{payment_acceptor:_,integration:f,options:[{name:"iDeal",payment_method_variant:"ONLINE_BANKING",payment_gateway_variant:"ADYEN",adyen:{name:"iDEAL | Wero",type:"ideal"}},{name:"Cards",payment_method_variant:"CARD",payment_gateway_variant:"ADYEN",adyen:{name:"Cards",type:"scheme",brands:["maestro","accel","amex","cup","diners","hipercard","jcb","mc","nyce","pulse","star","visa"]}},{name:"PayPal",payment_method_variant:"DIGITAL_WALLET",payment_gateway_variant:"ADYEN",adyen:{name:"PayPal",type:"paypal",configuration:{intent:"capture"}}},{name:"Trustly",payment_method_variant:"ONLINE_BANKING",payment_gateway_variant:"ADYEN",adyen:{name:"Trustly - Instant Bank Payment",type:"trustly"}}]}]}finally{u.value=!1}}),(a,i)=>(e.openBlock(),e.createElementBlock("div",V,[s.value.length>0?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(t._sfc_main),{variant:"heading-3",tag:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Saved payment methods",id:"upgrade_subscription.payment_picker.saved_title",description:"Heading for the saved payment methods section in the upgrade subscription payment picker"})),1)]),_:1}),e.createElementVNode("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:a.id,"content-background":n.selectedId===a.id?"none":"gray",class:e.normalizeClass([{"!bg-white":n.selectedId===a.id},"cursor-pointer"]),onClick:e=>o("select",a.id)},{default:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main$5),{"payment-method":a},null,8,["payment-method"])]),_:2},1032,["content-background","class","onClick"]))),128))])])):e.createCommentVNode("",!0),p.value.length>0?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(e.unref(t._sfc_main),{variant:"heading-3",tag:"h2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"All payment methods",id:"upgrade_subscription.payment_picker.all_title",description:"Heading for the all payment methods section in the upgrade subscription payment picker"})),1)]),_:1}),e.createElementVNode("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,a=>(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:a.adyen.type,"content-background":n.selectedId===a.adyen.type?"none":"gray",class:e.normalizeClass([{"!bg-white":n.selectedId===a.adyen.type},"cursor-pointer"]),onClick:e=>o("select",a.adyen.type)},{default:e.withCtx(()=>{return[e.createElementVNode("div",A,["scheme"===a.adyen.type?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y(a.adyen.brands),t=>(e.openBlock(),e.createElementBlock("img",{key:t,src:m(t),alt:t,class:"h-5 w-auto rounded"},null,8,D))),128))])):(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("img",{src:(n=a.adyen.type,`https://checkoutshopper-live.adyen.com/checkoutshopper/images/logos/${n}.svg`),alt:a.name,class:"h-9 w-9 object-contain"},null,8,P)])),e.createVNode(e.unref(t._sfc_main),{variant:"body-sm"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.name),1)]),_:2},1024)])];var n}),_:2},1032,["content-background","class","onClick"]))),128))])])):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",O,[...i[0]||(i[0]=[e.createElementVNode("div",{class:"h-[52px] animate-pulse rounded-md bg-gray-100"},null,-1),e.createElementVNode("div",{class:"h-[52px] animate-pulse rounded-md bg-gray-100"},null,-1),e.createElementVNode("div",{class:"h-[52px] animate-pulse rounded-md bg-gray-100"},null,-1)])])):e.createCommentVNode("",!0)]))}}),L={class:"flex gap-1"},$=e.defineComponent({__name:"Kpi",props:{icon:{type:null},kpi:{type:String}},setup:n=>(a,i)=>(e.openBlock(),e.createElementBlock("div",L,[e.createVNode(e.unref(t._sfc_main$11),{icon:n.icon,size:"xs"},null,8,["icon"]),e.createVNode(e.unref(t._sfc_main),{variant:"body-xs"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.kpi),1)]),_:1})]))});const F={key:0,class:"flex h-full items-center justify-center p-8"},q={class:"flex flex-col items-center py-10"},z=e.defineComponent({__name:"UpgradeSubscription",props:{configuration:{type:Object}},setup(n){const a=n,{$t:s}=t.useIntl(),{dispatchAction:d}=r.useActionDispatchProvider(),{chargeOnDemandPricingItems:u}=function(){const e=l.createRequestService(),t=l.useConfig();return{chargeOnDemandPricingItems:function({scheduleId:n,pricingPlanVersionId:a,pricingItemIds:i,startAt:r,finalizeImmediately:o=!0,paymentMethodId:l}){return e({url:`${t.apiUrls.config}/portal/pricing-plan-schedules/${n}/charge-on-demand-pricing-items`,options:{method:"POST"},data:{...a?{pricing_plan_version_id:a}:{},pricing_item_ids:i,...r?{start_at:r}:{},finalize_immediately:o,...l?{payment_method_id:l}:{}}})}}}(),_=o.usePortal(),f=e.computed(()=>_.value.customer_id),y=e.ref([]),v=e.ref(void 0),h=e.ref(!1),b=e.ref(!1),k=e.ref(void 0),N=e.ref(!1),w=e.computed(()=>(e=>{var t;const n=Date.now(),a=c.pricing_plan_schedule_infos,i=a.find(e=>{const t=Date.parse(e.start_at);return Number.isFinite(t)&&t<=n})??a[0],r=((null==(t=null==i?void 0:i.pricing_plan_version)?void 0:t.pricing_categories)??[]).map(p).filter(e=>{var t,n;return((null==(t=e.pricings)?void 0:t.length)??0)>0||((null==(n=e.pricing_groups)?void 0:n.length)??0)>0});return{pricing_plan_subscription_id:e||c.id,pricing_plan_schedule_id:(null==i?void 0:i.id)??"",pricing_plan_version_id:(null==i?void 0:i.pricing_plan_version_id)??"",billing_period:{type:"MONTH",value:1},billing_currency:"EUR",pricing_categories:r}})(a.configuration.subscriptionId)),V=e.computed(()=>w.value.pricing_categories),C=e.computed(()=>V.value.flatMap(e=>[...e.pricings??[],...(e.pricing_groups??[]).flatMap(e=>e.pricings??[])])),E=e.computed(()=>C.value.filter(e=>y.value.includes(e.id)));let S;e.watch(y,e=>{if(clearTimeout(S),0===e.length)return k.value=void 0,void(N.value=!1);N.value=!0,S=setTimeout(()=>{k.value=(e=>{const t=e.reduce((e,t)=>e+(m[t]??0),0),n=Math.round(.21*t*100)/100,a=t+n;return{invoice:{tax_summary:{base_amount:g(t),tax_amount:g(n),total_amount:g(a),country_code:"NL"}},first_invoice:{},invoice_infos:[]}})(e).invoice,N.value=!1},400)});const T=e=>{y.value.includes(e)?y.value=y.value.filter(t=>t!==e):y.value=[...y.value,e]},A=e.computed(()=>y.value.length>0&&!!v.value),I=e.ref(void 0),D=async()=>{if(A.value){h.value=!0,I.value=void 0;try{const e=E.value.map(e=>{var t,n;return null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.id}).filter(e=>!!e),t=v.value&&v.value.startsWith("pmet_")?v.value:void 0,n=await u({scheduleId:w.value.pricing_plan_schedule_id,pricingPlanVersionId:w.value.pricing_plan_version_id,pricingItemIds:e,finalizeImmediately:!0,paymentMethodId:t});t?b.value=!0:d({action:"pay-invoice",data:{invoiceId:n.id}})}catch{I.value=s({defaultMessage:"Something went wrong. Please try again.",id:"upgrade_subscription.purchase_error",description:"Error message shown when the purchase call fails on the upgrade subscription page"})}finally{h.value=!1}}};return(a,r)=>b.value?(e.openBlock(),e.createElementBlock("div",F,[e.createVNode(e.unref(t._sfc_main$1),null,{default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createVNode(e.unref(t._sfc_main$11),{icon:"check_circle",class:"text-green-400",size:"lg"}),e.createVNode(e.unref(t._sfc_main),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Payment successful",id:"upgrade_subscription.success.title",description:"Title shown after a successful add-on purchase"})),1)]),_:1}),e.createVNode(e.unref(t._sfc_main),{variant:"body-sm",shade:"lighter",tag:"span",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Your add-ons have been activated.",id:"upgrade_subscription.success.subtitle",description:"Subtitle shown after a successful add-on purchase"})),1)]),_:1})])]),_:1})])):(e.openBlock(),e.createBlock(e.unref(i.ContentWithAsideLayout),{key:1},{content:e.withCtx(()=>[V.value.length>0?(e.openBlock(),e.createBlock(B,{key:0,categories:V.value,"selected-pricing-ids":y.value,onToggle:T},null,8,["categories","selected-pricing-ids"])):(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:1,variant:"body-sm",shade:"lighter",class:"p-4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"No on-demand add-ons are available for this subscription.",id:"upgrade_subscription.empty_state",description:"Shown when there are no on-demand add-ons available for the subscription"})),1)]),_:1})),e.createVNode(e.unref(t._sfc_main$25),{spacing:"sm"}),e.createVNode(j,{"customer-id":f.value,"subscription-id":n.configuration.subscriptionId,"selected-id":v.value,onSelect:r[0]||(r[0]=e=>v.value=e)},null,8,["customer-id","subscription-id","selected-id"])]),aside:e.withCtx(()=>[e.createVNode(x,{"selected-pricings":E.value,invoice:k.value,"is-pending":N.value},null,8,["selected-pricings","invoice","is-pending"]),I.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$15),{key:0,title:I.value},null,8,["title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(t._sfc_main$3),{size:"lg",class:"full-width",type:"button",disabled:!A.value||h.value,loading:h.value,onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)({defaultMessage:"Purchase",id:"upgrade_subscription.purchase_button.label",description:"Label for the purchase button on the upgrade subscription page"})),1)]),_:1},8,["disabled","loading"]),e.createVNode(e.unref(t._sfc_main),{tag:"div",variant:"body-sm",shade:"lighter",class:"flex grow justify-center"},{default:e.withCtx(()=>[e.createVNode($,{icon:"lock",kpi:e.unref(s)({defaultMessage:"Secure and encrypted payments",id:"upgrade_subscription.kpi.encrypted_payments.label",description:"The encrypted payments KPI shown on the upgrade subscription page"})},null,8,["kpi"])]),_:1})]),_:1}))}}),R=e.defineComponent({__name:"UpgradeSubscription.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},branding:{type:Object},configuration:{type:Object}},setup:t=>(n,a)=>{var i,r,o,c;return e.openBlock(),e.createBlock(l._sfc_main,{"custom-element-name":e.unref(Y),environment:t.environment,locale:t.locale,"portal-object":t.portalObject,"allowed-portal-types":["CUSTOMER"],"primary-color":null==(r=null==(i=t.branding)?void 0:i.colors)?void 0:r.primary,"secondary-color":null==(c=null==(o=t.branding)?void 0:o.colors)?void 0:c.secondary,"experimental-features":t.experimentalFeatures,"log-level":t.logLevel,"on-log":t.onLog,onError:a[0]||(a[0]=e=>n.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(z,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["custom-element-name","environment","locale","portal-object","primary-color","secondary-color","experimental-features","log-level","on-log"])}}),U=l.defineCustomElement(R),Y=l.getComponentName("upgrade-subscription");exports.COMPONENT_NAME=Y,exports.SolvimonUpgradeSubscription=U,exports.defineSolvimonUpgradeSubscription=()=>{customElements.get(Y)||customElements.define(Y,U)};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createVNode, createTextVNode, toDisplayString, createElementBlock, Fragment, createElementVNode, renderList, createCommentVNode, normalizeClass, ref, onMounted, watch } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as _sfc_main$
|
|
4
|
-
import { c as createPaymentMethodsService } from "../../paymentMethods-
|
|
5
|
-
import {
|
|
6
|
-
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-
|
|
2
|
+
import { u as useIntl, b as _sfc_main$7, _ as _sfc_main$8, v as formatAmount, e as _sfc_main$a, j as _sfc_main$b, t as _sfc_main$c, A as _sfc_main$d, R as _sfc_main$e } from "../../vendor-ui-BwxuPDg8.mjs";
|
|
3
|
+
import { _ as _sfc_main$9 } from "../../PricingGroupContent.vue_vue_type_script_setup_true_lang-CzS32ZUt.mjs";
|
|
4
|
+
import { c as createPaymentMethodsService } from "../../paymentMethods-Di32oJ39.mjs";
|
|
5
|
+
import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-BTdixy3L.mjs";
|
|
6
|
+
import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-B4gszz0Q.mjs";
|
|
7
|
+
import { u as usePortal } from "../../usePortal-DJDJNLbo.mjs";
|
|
8
|
+
import { c as createRequestService, u as useConfig, _ as _sfc_main$f, d as defineCustomElement, g as getComponentName } from "../../component-CM9g6tbD.mjs";
|
|
7
9
|
const mockSubscriptionGetResponse = {
|
|
8
10
|
id: "ppsu_hwDeeN0vhvcVCsAIdp1G",
|
|
9
11
|
pricing_plan_schedule_infos: [
|
|
@@ -228,12 +230,12 @@ const getMockPaymentMethodOptionsResponse = () => [
|
|
|
228
230
|
]
|
|
229
231
|
}
|
|
230
232
|
];
|
|
231
|
-
const _hoisted_1$
|
|
233
|
+
const _hoisted_1$4 = { class: "mb-3 flex flex-col gap-2" };
|
|
232
234
|
const _hoisted_2$2 = { class: "flex flex-col gap-1 border-t pt-3" };
|
|
233
235
|
const _hoisted_3$1 = { class: "flex items-center justify-between" };
|
|
234
236
|
const _hoisted_4$1 = { class: "flex items-center justify-between" };
|
|
235
237
|
const _hoisted_5$1 = { class: "flex items-center justify-between border-t pt-3" };
|
|
236
|
-
const _sfc_main$
|
|
238
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
237
239
|
__name: "UpgradeOrderSummary",
|
|
238
240
|
props: {
|
|
239
241
|
selectedPricings: { type: Array },
|
|
@@ -249,11 +251,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
249
251
|
return (_f = (_e = (_d = (_c = (_b = (_a = pricing.items) == null ? void 0 : _a[0]) == null ? void 0 : _b.configs) == null ? void 0 : _c[0]) == null ? void 0 : _d.bands) == null ? void 0 : _e[0]) == null ? void 0 : _f.fixed_amount;
|
|
250
252
|
};
|
|
251
253
|
return (_ctx, _cache) => {
|
|
252
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
254
|
+
return openBlock(), createBlock(unref(_sfc_main$7), null, {
|
|
253
255
|
default: withCtx(() => {
|
|
254
256
|
var _a;
|
|
255
257
|
return [
|
|
256
|
-
createVNode(unref(_sfc_main$
|
|
258
|
+
createVNode(unref(_sfc_main$8), {
|
|
257
259
|
variant: "heading-3",
|
|
258
260
|
tag: "h2",
|
|
259
261
|
class: "mb-3"
|
|
@@ -267,7 +269,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
267
269
|
]),
|
|
268
270
|
_: 1
|
|
269
271
|
}),
|
|
270
|
-
isEmpty.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
272
|
+
isEmpty.value ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
271
273
|
key: 0,
|
|
272
274
|
variant: "body-sm",
|
|
273
275
|
shade: "lighter"
|
|
@@ -281,14 +283,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
281
283
|
]),
|
|
282
284
|
_: 1
|
|
283
285
|
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
284
|
-
createElementVNode("div", _hoisted_1$
|
|
286
|
+
createElementVNode("div", _hoisted_1$4, [
|
|
285
287
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.selectedPricings, (pricing) => {
|
|
286
288
|
return openBlock(), createElementBlock("div", {
|
|
287
289
|
key: pricing.id,
|
|
288
290
|
class: "flex items-center justify-between"
|
|
289
291
|
}, [
|
|
290
292
|
createElementVNode("div", null, [
|
|
291
|
-
createVNode(unref(_sfc_main$
|
|
293
|
+
createVNode(unref(_sfc_main$8), { variant: "body-sm" }, {
|
|
292
294
|
default: withCtx(() => {
|
|
293
295
|
var _a2, _b;
|
|
294
296
|
return [
|
|
@@ -297,7 +299,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
297
299
|
}),
|
|
298
300
|
_: 2
|
|
299
301
|
}, 1024),
|
|
300
|
-
createVNode(unref(_sfc_main$
|
|
302
|
+
createVNode(unref(_sfc_main$8), {
|
|
301
303
|
variant: "body-xs",
|
|
302
304
|
shade: "lighter"
|
|
303
305
|
}, {
|
|
@@ -311,7 +313,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
311
313
|
_: 1
|
|
312
314
|
})
|
|
313
315
|
]),
|
|
314
|
-
getPrice(pricing) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
316
|
+
getPrice(pricing) ? (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
315
317
|
key: 0,
|
|
316
318
|
variant: "body-sm"
|
|
317
319
|
}, {
|
|
@@ -326,7 +328,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
326
328
|
((_a = __props.invoice) == null ? void 0 : _a.tax_summary) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
327
329
|
createElementVNode("div", _hoisted_2$2, [
|
|
328
330
|
createElementVNode("div", _hoisted_3$1, [
|
|
329
|
-
createVNode(unref(_sfc_main$
|
|
331
|
+
createVNode(unref(_sfc_main$8), {
|
|
330
332
|
variant: "body-sm",
|
|
331
333
|
shade: "lighter"
|
|
332
334
|
}, {
|
|
@@ -339,7 +341,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
339
341
|
]),
|
|
340
342
|
_: 1
|
|
341
343
|
}),
|
|
342
|
-
createVNode(unref(_sfc_main$
|
|
344
|
+
createVNode(unref(_sfc_main$8), { variant: "body-sm" }, {
|
|
343
345
|
default: withCtx(() => [
|
|
344
346
|
createTextVNode(toDisplayString(unref(formatAmount)(__props.invoice.tax_summary.base_amount)), 1)
|
|
345
347
|
]),
|
|
@@ -347,7 +349,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
347
349
|
})
|
|
348
350
|
]),
|
|
349
351
|
createElementVNode("div", _hoisted_4$1, [
|
|
350
|
-
createVNode(unref(_sfc_main$
|
|
352
|
+
createVNode(unref(_sfc_main$8), {
|
|
351
353
|
variant: "body-sm",
|
|
352
354
|
shade: "lighter"
|
|
353
355
|
}, {
|
|
@@ -360,7 +362,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
360
362
|
]),
|
|
361
363
|
_: 1
|
|
362
364
|
}),
|
|
363
|
-
createVNode(unref(_sfc_main$
|
|
365
|
+
createVNode(unref(_sfc_main$8), { variant: "body-sm" }, {
|
|
364
366
|
default: withCtx(() => [
|
|
365
367
|
createTextVNode(toDisplayString(unref(formatAmount)(__props.invoice.tax_summary.tax_amount)), 1)
|
|
366
368
|
]),
|
|
@@ -369,7 +371,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
369
371
|
])
|
|
370
372
|
]),
|
|
371
373
|
createElementVNode("div", _hoisted_5$1, [
|
|
372
|
-
createVNode(unref(_sfc_main$
|
|
374
|
+
createVNode(unref(_sfc_main$8), {
|
|
373
375
|
variant: "body-sm",
|
|
374
376
|
weight: "semibold"
|
|
375
377
|
}, {
|
|
@@ -382,7 +384,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
382
384
|
]),
|
|
383
385
|
_: 1
|
|
384
386
|
}),
|
|
385
|
-
createVNode(unref(_sfc_main$
|
|
387
|
+
createVNode(unref(_sfc_main$8), {
|
|
386
388
|
variant: "body-sm",
|
|
387
389
|
weight: "semibold"
|
|
388
390
|
}, {
|
|
@@ -401,7 +403,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
401
403
|
};
|
|
402
404
|
}
|
|
403
405
|
});
|
|
404
|
-
const _sfc_main$
|
|
406
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
405
407
|
__name: "OnDemandPricingRow",
|
|
406
408
|
props: {
|
|
407
409
|
pricing: { type: Object },
|
|
@@ -428,17 +430,17 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
428
430
|
})}` : ""
|
|
429
431
|
);
|
|
430
432
|
return (_ctx, _cache) => {
|
|
431
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
433
|
+
return openBlock(), createBlock(unref(_sfc_main$7), {
|
|
432
434
|
"content-background": __props.selected ? "none" : "gray",
|
|
433
435
|
class: normalizeClass({ "!bg-white": __props.selected })
|
|
434
436
|
}, {
|
|
435
437
|
default: withCtx(() => [
|
|
436
|
-
createVNode(_sfc_main$
|
|
438
|
+
createVNode(_sfc_main$9, {
|
|
437
439
|
name: title.value,
|
|
438
440
|
description: description.value
|
|
439
441
|
}, {
|
|
440
442
|
default: withCtx(() => [
|
|
441
|
-
__props.selected ? (openBlock(), createBlock(unref(_sfc_main$
|
|
443
|
+
__props.selected ? (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
442
444
|
key: 0,
|
|
443
445
|
color: "gray",
|
|
444
446
|
variant: "outline",
|
|
@@ -454,7 +456,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
454
456
|
})), 1)
|
|
455
457
|
]),
|
|
456
458
|
_: 1
|
|
457
|
-
})) : (openBlock(), createBlock(unref(_sfc_main$
|
|
459
|
+
})) : (openBlock(), createBlock(unref(_sfc_main$a), {
|
|
458
460
|
key: 1,
|
|
459
461
|
color: "primary",
|
|
460
462
|
size: "sm",
|
|
@@ -479,8 +481,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
479
481
|
};
|
|
480
482
|
}
|
|
481
483
|
});
|
|
482
|
-
const _hoisted_1$
|
|
483
|
-
const _sfc_main$
|
|
484
|
+
const _hoisted_1$3 = { class: "grid grid-cols-1 gap-1" };
|
|
485
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
484
486
|
__name: "OnDemandPricingList",
|
|
485
487
|
props: {
|
|
486
488
|
categories: { type: Array },
|
|
@@ -499,7 +501,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
499
501
|
key: category.id ?? category.display_order,
|
|
500
502
|
class: "flex flex-col gap-2"
|
|
501
503
|
}, [
|
|
502
|
-
createVNode(unref(_sfc_main$
|
|
504
|
+
createVNode(unref(_sfc_main$8), {
|
|
503
505
|
variant: "heading-3",
|
|
504
506
|
tag: "h2"
|
|
505
507
|
}, {
|
|
@@ -511,9 +513,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
511
513
|
}),
|
|
512
514
|
_: 2
|
|
513
515
|
}, 1024),
|
|
514
|
-
createElementVNode("div", _hoisted_1$
|
|
516
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
515
517
|
(openBlock(true), createElementBlock(Fragment, null, renderList(category.pricings, (pricing) => {
|
|
516
|
-
return openBlock(), createBlock(_sfc_main$
|
|
518
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
517
519
|
key: pricing.id,
|
|
518
520
|
pricing,
|
|
519
521
|
selected: __props.selectedPricingIds.includes(pricing.id),
|
|
@@ -524,7 +526,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
524
526
|
return openBlock(), createElementBlock(Fragment, {
|
|
525
527
|
key: group.id
|
|
526
528
|
}, [
|
|
527
|
-
createVNode(unref(_sfc_main$
|
|
529
|
+
createVNode(unref(_sfc_main$8), {
|
|
528
530
|
variant: "body-sm",
|
|
529
531
|
weight: "semibold",
|
|
530
532
|
class: "mt-2"
|
|
@@ -535,7 +537,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
535
537
|
_: 2
|
|
536
538
|
}, 1024),
|
|
537
539
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group.pricings, (pricing) => {
|
|
538
|
-
return openBlock(), createBlock(_sfc_main$
|
|
540
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
539
541
|
key: pricing.id,
|
|
540
542
|
pricing,
|
|
541
543
|
selected: __props.selectedPricingIds.includes(pricing.id),
|
|
@@ -550,7 +552,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
550
552
|
};
|
|
551
553
|
}
|
|
552
554
|
});
|
|
553
|
-
const _hoisted_1$
|
|
555
|
+
const _hoisted_1$2 = { class: "flex flex-col gap-4" };
|
|
554
556
|
const _hoisted_2$1 = {
|
|
555
557
|
key: 0,
|
|
556
558
|
class: "flex flex-col gap-2"
|
|
@@ -576,7 +578,7 @@ const _hoisted_11 = {
|
|
|
576
578
|
key: 2,
|
|
577
579
|
class: "flex flex-col gap-1"
|
|
578
580
|
};
|
|
579
|
-
const _sfc_main$
|
|
581
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
580
582
|
__name: "PaymentMethodPicker",
|
|
581
583
|
props: {
|
|
582
584
|
customerId: { type: String },
|
|
@@ -618,9 +620,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
618
620
|
}
|
|
619
621
|
});
|
|
620
622
|
return (_ctx, _cache) => {
|
|
621
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
623
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
622
624
|
savedMethods.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
623
|
-
createVNode(unref(_sfc_main$
|
|
625
|
+
createVNode(unref(_sfc_main$8), {
|
|
624
626
|
variant: "heading-3",
|
|
625
627
|
tag: "h2"
|
|
626
628
|
}, {
|
|
@@ -635,14 +637,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
635
637
|
}),
|
|
636
638
|
createElementVNode("div", _hoisted_3, [
|
|
637
639
|
(openBlock(true), createElementBlock(Fragment, null, renderList(savedMethods.value, (method) => {
|
|
638
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
640
|
+
return openBlock(), createBlock(unref(_sfc_main$7), {
|
|
639
641
|
key: method.id,
|
|
640
642
|
"content-background": __props.selectedId === method.id ? "none" : "gray",
|
|
641
643
|
class: normalizeClass([{ "!bg-white": __props.selectedId === method.id }, "cursor-pointer"]),
|
|
642
644
|
onClick: ($event) => emit("select", method.id)
|
|
643
645
|
}, {
|
|
644
646
|
default: withCtx(() => [
|
|
645
|
-
createVNode(unref(_sfc_main$
|
|
647
|
+
createVNode(unref(_sfc_main$b), { "payment-method": method }, null, 8, ["payment-method"])
|
|
646
648
|
]),
|
|
647
649
|
_: 2
|
|
648
650
|
}, 1032, ["content-background", "class", "onClick"]);
|
|
@@ -650,7 +652,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
650
652
|
])
|
|
651
653
|
])) : createCommentVNode("", true),
|
|
652
654
|
newOptions.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
653
|
-
createVNode(unref(_sfc_main$
|
|
655
|
+
createVNode(unref(_sfc_main$8), {
|
|
654
656
|
variant: "heading-3",
|
|
655
657
|
tag: "h2"
|
|
656
658
|
}, {
|
|
@@ -665,7 +667,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
665
667
|
}),
|
|
666
668
|
createElementVNode("div", _hoisted_5, [
|
|
667
669
|
(openBlock(true), createElementBlock(Fragment, null, renderList(newOptions.value, (option) => {
|
|
668
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
670
|
+
return openBlock(), createBlock(unref(_sfc_main$7), {
|
|
669
671
|
key: option.adyen.type,
|
|
670
672
|
"content-background": __props.selectedId === option.adyen.type ? "none" : "gray",
|
|
671
673
|
class: normalizeClass([{ "!bg-white": __props.selectedId === option.adyen.type }, "cursor-pointer"]),
|
|
@@ -689,7 +691,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
689
691
|
class: "h-9 w-9 object-contain"
|
|
690
692
|
}, null, 8, _hoisted_10)
|
|
691
693
|
])),
|
|
692
|
-
createVNode(unref(_sfc_main$
|
|
694
|
+
createVNode(unref(_sfc_main$8), { variant: "body-sm" }, {
|
|
693
695
|
default: withCtx(() => [
|
|
694
696
|
createTextVNode(toDisplayString(option.name), 1)
|
|
695
697
|
]),
|
|
@@ -711,6 +713,30 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
711
713
|
};
|
|
712
714
|
}
|
|
713
715
|
});
|
|
716
|
+
const _hoisted_1$1 = { class: "flex gap-1" };
|
|
717
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
718
|
+
__name: "Kpi",
|
|
719
|
+
props: {
|
|
720
|
+
icon: { type: null },
|
|
721
|
+
kpi: { type: String }
|
|
722
|
+
},
|
|
723
|
+
setup(__props) {
|
|
724
|
+
return (_ctx, _cache) => {
|
|
725
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
726
|
+
createVNode(unref(_sfc_main$c), {
|
|
727
|
+
icon: __props.icon,
|
|
728
|
+
size: "xs"
|
|
729
|
+
}, null, 8, ["icon"]),
|
|
730
|
+
createVNode(unref(_sfc_main$8), { variant: "body-xs" }, {
|
|
731
|
+
default: withCtx(() => [
|
|
732
|
+
createTextVNode(toDisplayString(__props.kpi), 1)
|
|
733
|
+
]),
|
|
734
|
+
_: 1
|
|
735
|
+
})
|
|
736
|
+
]);
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
});
|
|
714
740
|
function createPricingPlanSchedulesService() {
|
|
715
741
|
const request = createRequestService();
|
|
716
742
|
const config = useConfig();
|
|
@@ -832,15 +858,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
832
858
|
};
|
|
833
859
|
return (_ctx, _cache) => {
|
|
834
860
|
return isPurchased.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
835
|
-
createVNode(unref(_sfc_main$
|
|
861
|
+
createVNode(unref(_sfc_main$7), null, {
|
|
836
862
|
default: withCtx(() => [
|
|
837
863
|
createElementVNode("div", _hoisted_2, [
|
|
838
|
-
createVNode(unref(_sfc_main$
|
|
864
|
+
createVNode(unref(_sfc_main$c), {
|
|
839
865
|
icon: "check_circle",
|
|
840
866
|
class: "text-green-400",
|
|
841
867
|
size: "lg"
|
|
842
868
|
}),
|
|
843
|
-
createVNode(unref(_sfc_main$
|
|
869
|
+
createVNode(unref(_sfc_main$8), {
|
|
844
870
|
variant: "heading-3",
|
|
845
871
|
tag: "span",
|
|
846
872
|
class: "mt-2"
|
|
@@ -854,7 +880,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
854
880
|
]),
|
|
855
881
|
_: 1
|
|
856
882
|
}),
|
|
857
|
-
createVNode(unref(_sfc_main$
|
|
883
|
+
createVNode(unref(_sfc_main$8), {
|
|
858
884
|
variant: "body-sm",
|
|
859
885
|
shade: "lighter",
|
|
860
886
|
tag: "span",
|
|
@@ -875,12 +901,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
875
901
|
})
|
|
876
902
|
])) : (openBlock(), createBlock(unref(ContentWithAsideLayout), { key: 1 }, {
|
|
877
903
|
content: withCtx(() => [
|
|
878
|
-
categories.value.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
904
|
+
categories.value.length > 0 ? (openBlock(), createBlock(_sfc_main$4, {
|
|
879
905
|
key: 0,
|
|
880
906
|
categories: categories.value,
|
|
881
907
|
"selected-pricing-ids": selectedPricingIds.value,
|
|
882
908
|
onToggle: handleToggle
|
|
883
|
-
}, null, 8, ["categories", "selected-pricing-ids"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
909
|
+
}, null, 8, ["categories", "selected-pricing-ids"])) : (openBlock(), createBlock(unref(_sfc_main$8), {
|
|
884
910
|
key: 1,
|
|
885
911
|
variant: "body-sm",
|
|
886
912
|
shade: "lighter",
|
|
@@ -895,8 +921,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
895
921
|
]),
|
|
896
922
|
_: 1
|
|
897
923
|
})),
|
|
898
|
-
createVNode(unref(_sfc_main$
|
|
899
|
-
createVNode(_sfc_main$
|
|
924
|
+
createVNode(unref(_sfc_main$e), { spacing: "sm" }),
|
|
925
|
+
createVNode(_sfc_main$3, {
|
|
900
926
|
"customer-id": customerId.value,
|
|
901
927
|
"subscription-id": __props.configuration.subscriptionId,
|
|
902
928
|
"selected-id": selectedPaymentMethodId.value,
|
|
@@ -904,16 +930,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
904
930
|
}, null, 8, ["customer-id", "subscription-id", "selected-id"])
|
|
905
931
|
]),
|
|
906
932
|
aside: withCtx(() => [
|
|
907
|
-
createVNode(_sfc_main$
|
|
933
|
+
createVNode(_sfc_main$6, {
|
|
908
934
|
"selected-pricings": selectedPricings.value,
|
|
909
935
|
invoice: previewInvoice.value,
|
|
910
936
|
"is-pending": isPreviewPending.value
|
|
911
937
|
}, null, 8, ["selected-pricings", "invoice", "is-pending"]),
|
|
912
|
-
purchaseError.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
938
|
+
purchaseError.value ? (openBlock(), createBlock(unref(_sfc_main$d), {
|
|
913
939
|
key: 0,
|
|
914
940
|
title: purchaseError.value
|
|
915
941
|
}, null, 8, ["title"])) : createCommentVNode("", true),
|
|
916
|
-
createVNode(unref(_sfc_main$
|
|
942
|
+
createVNode(unref(_sfc_main$a), {
|
|
917
943
|
size: "lg",
|
|
918
944
|
class: "full-width",
|
|
919
945
|
type: "button",
|
|
@@ -930,14 +956,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
930
956
|
]),
|
|
931
957
|
_: 1
|
|
932
958
|
}, 8, ["disabled", "loading"]),
|
|
933
|
-
createVNode(unref(_sfc_main$
|
|
959
|
+
createVNode(unref(_sfc_main$8), {
|
|
934
960
|
tag: "div",
|
|
935
961
|
variant: "body-sm",
|
|
936
962
|
shade: "lighter",
|
|
937
963
|
class: "flex grow justify-center"
|
|
938
964
|
}, {
|
|
939
965
|
default: withCtx(() => [
|
|
940
|
-
createVNode(_sfc_main$
|
|
966
|
+
createVNode(_sfc_main$2, {
|
|
941
967
|
icon: "lock",
|
|
942
968
|
kpi: unref($t)({
|
|
943
969
|
defaultMessage: "Secure and encrypted payments",
|
|
@@ -961,7 +987,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
961
987
|
locale: { type: String },
|
|
962
988
|
dateLocale: { type: String },
|
|
963
989
|
messages: { type: Object },
|
|
964
|
-
showTimezones: { type: Boolean },
|
|
965
990
|
primaryColor: { type: String },
|
|
966
991
|
secondaryColor: { type: String },
|
|
967
992
|
isShadowRoot: { type: Boolean },
|
|
@@ -970,14 +995,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
970
995
|
onLog: { type: Function },
|
|
971
996
|
allowedPortalTypes: { type: Array },
|
|
972
997
|
portalObject: { type: Object },
|
|
973
|
-
customElementName: { type: String },
|
|
974
998
|
branding: { type: Object },
|
|
975
999
|
configuration: { type: Object }
|
|
976
1000
|
},
|
|
977
1001
|
setup(__props) {
|
|
978
1002
|
return (_ctx, _cache) => {
|
|
979
1003
|
var _a, _b, _c, _d;
|
|
980
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1004
|
+
return openBlock(), createBlock(_sfc_main$f, {
|
|
981
1005
|
"custom-element-name": unref(COMPONENT_NAME),
|
|
982
1006
|
environment: __props.environment,
|
|
983
1007
|
locale: __props.locale,
|
package/dist/solvimon-web.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '[data-v-afd5600c].tiptap h1,.editor-content-typography[data-v-afd5600c]h1{margin-top: 0px;font-size: 2.1428571em;font-weight: 700;line-height: 1.2;}[data-v-afd5600c].tiptap h2,.editor-content-typography[data-v-afd5600c]h2{margin-top: 0px;font-size: 1.5em;font-weight: 700;line-height: 1.3333333;}[data-v-afd5600c].tiptap h3,.editor-content-typography[data-v-afd5600c]h3{margin-top: 0px;font-size: 1.2857143em;font-weight: 600;line-height: 1.4444444;}[data-v-afd5600c].tiptap h4,.editor-content-typography[data-v-afd5600c]h4{margin-top: 0px;font-size: 1.1em;font-weight: 600;line-height: 1.4444444;}[data-v-afd5600c].tiptap p,.editor-content-typography[data-v-afd5600c]p{margin-top: 0px;line-height: 1.45;--tw-text-opacity: 1;color: rgb(71 85 105/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap ul,[data-v-afd5600c].tiptap ol,.editor-content-typography[data-v-afd5600c]ul,.editor-content-typography[data-v-afd5600c]ol{margin-top: 0px;padding-left: 1.625em;}[data-v-afd5600c].tiptap ul,.editor-content-typography[data-v-afd5600c]ul{list-style-type: disc;}[data-v-afd5600c].tiptap ol,.editor-content-typography[data-v-afd5600c]ol{list-style-type: decimal;}[data-v-afd5600c].tiptap li,.editor-content-typography[data-v-afd5600c]li{margin-top: 0.2em;line-height: 1.45;--tw-text-opacity: 1;color: rgb(71 85 105/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap blockquote,.editor-content-typography[data-v-afd5600c]blockquote{margin-top: 0px;margin-bottom: 1rem;border-left-width: 3px;--tw-border-opacity: 1;border-color: rgb(203 213 225/var(--tw-border-opacity,1));padding-left: 0.875rem;font-style: italic;line-height: 1.45;--tw-text-opacity: 1;color: rgb(100 116 139/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap blockquote p,.editor-content-typography[data-v-afd5600c]blockquote p{margin-bottom: 0px;color: inherit;}[data-v-afd5600c].tiptap pre,.editor-content-typography[data-v-afd5600c]pre{margin-top: 0px;margin-bottom: 1rem;white-space: pre-wrap;border-radius: 0.375rem;border-width: 1px;--tw-border-opacity: 1;border-color: rgb(226 232 240/var(--tw-border-opacity,1));--tw-bg-opacity: 1;background-color: rgb(248 250 252/var(--tw-bg-opacity,1));padding-left: 0.75rem;padding-right: 0.75rem;padding-top: 0.5rem;padding-bottom: 0.5rem;font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size: 0.875em;line-height: 1.5;--tw-text-opacity: 1;color: rgb(51 65 85/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap pre code,.editor-content-typography[data-v-afd5600c]pre code{background-color: transparent;padding: 0px;color: inherit;}[data-v-afd5600c].tiptap code:not(pre code),.editor-content-typography[data-v-afd5600c]code:not(pre code){border-radius: 0.25rem;--tw-bg-opacity: 1;background-color: rgb(241 245 249/var(--tw-bg-opacity,1));padding-left: 0.25rem;padding-right: 0.25rem;padding-top: 0.125rem;padding-bottom: 0.125rem;font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size: 0.875em;--tw-text-opacity: 1;color: rgb(51 65 85/var(--tw-text-opacity,1));}[data-v-afd5600c].tiptap a,.editor-content-typography[data-v-afd5600c]a{--tw-text-opacity: 1;color: rgb(37 99 235/var(--tw-text-opacity,1));text-decoration-line: none;}[data-v-afd5600c].tiptap a:hover,.editor-content-typography[data-v-afd5600c]a:hover{text-decoration-line: underline;}[data-v-afd5600c].tiptap>*:last-child,.editor-content-typography[data-v-afd5600c]*:last-child{margin-bottom: 0px;}[data-v-afd5600c].tiptap .is-empty::before{content: attr(data-placeholder);float: left;height: 0;pointer-events: none;font-weight: 400;font-style: italic;--tw-text-opacity: 1;color: rgb(148 163 184/var(--tw-text-opacity,1));}';export default ".to-right-enter-active[data-v-ce4df87e],.to-right-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateX(-10px);}.to-right-leave[data-v-ce4df87e],.to-right-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateX(0);}.to-right-enter-active[data-v-ce4df87e],.to-right-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateX(10px);}.to-left-leave[data-v-ce4df87e],.to-left-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateX(0);}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateY(10px);}.to-top-leave[data-v-ce4df87e],.to-top-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateY(0);}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateY(-10px);}.to-bottom-leave[data-v-ce4df87e],.to-bottom-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateY(0);}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-active[data-v-ce4df87e]{transition: all 250ms;}.expand-enter-active,.expand-leave-active{transition: height 300ms ease-in-out;overflow: hidden;}.expand-enter,.expand-leave-to{height: 0;}input[type='range']{-webkit-appearance: none;-moz-appearance: none;appearance: none;width: 100%;background: transparent;margin: 0.5rem 0;}input[type='range']::-webkit-slider-thumb{-webkit-appearance: none;appearance: none;width: 1rem;height: 1rem;border: 2px solid rgb(229 231 235);border-radius: 50%;background: #ffffff;box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3);cursor: pointer;-webkit-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}input[type='range']:disabled::-webkit-slider-thumb{cursor: not-allowed;}input[type='range']::-moz-range-thumb{-moz-appearance: none;appearance: none;width: 1rem;height: 1rem;border: 2px solid rgb(229 231 235);border-radius: 50%;background: #ffffff;box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3);cursor: pointer;-moz-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}input[type='range']:disabled::-moz-range-thumb{cursor: not-allowed;}input[type='range']:not(:disabled):hover::-webkit-slider-thumb{box-shadow: 0 0 0 6px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):hover::-moz-range-thumb{box-shadow: 0 0 0 6px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):active::-webkit-slider-thumb{box-shadow: 0 0 0 8px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):active::-moz-range-thumb{box-shadow: 0 0 0 8px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']::-webkit-slider-runnable-track{width: 100%;height: 0.5rem;cursor: pointer;background: linear-gradient(to right,var(--color-primary-600)var(--range-percentage,0%),n#e0e5eb var(--range-percentage, 0%)n);border-radius: 0.25rem;}input[type='range']:disabled::-webkit-slider-runnable-track{background: #e0e5eb;cursor: not-allowed;}input[type='range']::-moz-range-track{width: 100%;height: 0.5rem;cursor: pointer;background: linear-gradient(to right,var(--color-primary-600)var(--range-percentage,0%),n#e0e5eb var(--range-percentage, 0%)n);border-radius: 0.25rem;}input[type='range']:disabled::-moz-range-track{background: #e0e5eb;cursor: not-allowed;}input[type='range'].range-sm::-webkit-slider-thumb{width: 0.8rem;height: 0.8rem;margin-top:-0.2rem;}input[type='range'].range-sm::-moz-range-thumb{width: 0.8rem;height: 0.8rem;}input[type='range'].range-sm::-webkit-slider-runnable-track{height: 0.4rem;border-radius: 0.2rem;}input[type='range'].range-sm::-moz-range-track{height: 0.4rem;border-radius: 0.2rem;}input[type='range'].range-md::-webkit-slider-thumb{width: 1rem;height: 1rem;margin-top:-0.25rem;}input[type='range'].range-md::-moz-range-thumb{width: 1rem;height: 1rem;}input[type='range'].range-md::-webkit-slider-runnable-track{height: 0.5rem;border-radius: 0.25rem;}input[type='range'].range-md::-moz-range-track{height: 0.5rem;border-radius: 0.25rem;}input[type='range'].range-lg::-webkit-slider-thumb{width: 1.4rem;height: 1.4rem;margin-top:-0.35rem;}input[type='range'].range-lg::-moz-range-thumb{width: 1.4rem;height: 1.4rem;}input[type='range'].range-lg::-webkit-slider-runnable-track{height: 0.7rem;border-radius: 0.35rem;}input[type='range'].range-lg::-moz-range-track{height: 0.7rem;border-radius: 0.35rem;}input[type='range'].range-xl::-webkit-slider-thumb{width: 1.8rem;height: 1.8rem;margin-top:-0.5rem;}input[type='range'].range-xl::-moz-range-thumb{width: 1.8rem;height: 1.8rem;}input[type='range'].range-xl::-webkit-slider-runnable-track{height: 0.9rem;border-radius: 0.45rem;}input[type='range'].range-xl::-moz-range-track{height: 0.9rem;border-radius: 0.45rem;}thead th:first-of-type,tr td:first-of-type{position: sticky;left: 0;background: inherit;z-index: 2;}thead th:last-of-type,tr td:last-of-type{position: sticky;right: 0;background: inherit;z-index: 2;}.slide-left-enter-active[data-v-1a3d5742],.slide-left-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-left-enter-from[data-v-1a3d5742],.slide-left-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateX(30px);}.slide-right-enter-active[data-v-1a3d5742],.slide-right-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-right-enter-from[data-v-1a3d5742],.slide-right-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateX(-30px);}.slide-top-enter-active[data-v-1a3d5742],.slide-top-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-top-enter-from[data-v-1a3d5742],.slide-top-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateY(30px);}.slide-bottom-enter-active[data-v-1a3d5742],.slide-bottom-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-bottom-enter-from[data-v-1a3d5742],.slide-bottom-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateY(-30px);}.fade-enter-active[data-v-1a3d5742],.fade-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.fade-enter-from[data-v-1a3d5742],.fade-leave-to[data-v-1a3d5742]{opacity: 0;}.animated-gradient[data-v-f1f0dadf]{background: repeating-linear-gradient(to right,rgba(255,255,255,0)0%,rgba(255,255,255,0.75)50%,rgba(255,255,255,0)100%);width: 100%;background-size: 200% auto;background-position: 0 100%;animation: gradient-f1f0dadf 2s infinite;animation-fill-mode: forwards;animation-timing-function: linear;}@keyframes gradient-f1f0dadf{0%{background-position: 0 0;}100%{background-position:-200% 0;}}.nested-conditions-border::before{background-image: url(\"data:image/svg+xml,%3Csvg width='4' height='5' fill='none' xmlns='http:}.conditions-root:focus-within>.conditions-with-context-menu[data-v-8d2c7588],.conditions-root:hover>.conditions-with-context-menu[data-v-8d2c7588]{padding-right: 3rem;}.conditions-root:focus-within>.conditions-with-context-menu+.context-menu-wrapper[data-v-8d2c7588],.conditions-root:hover>.conditions-with-context-menu+.context-menu-wrapper[data-v-8d2c7588]{opacity: 1;}";{}
|
|
1
|
+
export default ".to-right-enter-active[data-v-ce4df87e],.to-right-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateX(-10px);}.to-right-leave[data-v-ce4df87e],.to-right-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateX(0);}.to-right-enter-active[data-v-ce4df87e],.to-right-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateX(10px);}.to-left-leave[data-v-ce4df87e],.to-left-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateX(0);}.to-left-enter-active[data-v-ce4df87e],.to-left-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateY(10px);}.to-top-leave[data-v-ce4df87e],.to-top-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateY(0);}.to-top-enter-active[data-v-ce4df87e],.to-top-leave-active[data-v-ce4df87e]{transition: all 250ms;}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-to[data-v-ce4df87e]{opacity: 0;transform: translateY(-10px);}.to-bottom-leave[data-v-ce4df87e],.to-bottom-enter-to[data-v-ce4df87e]{opacity: 1;transform: translateY(0);}.to-bottom-enter-active[data-v-ce4df87e],.to-bottom-leave-active[data-v-ce4df87e]{transition: all 250ms;}";export default ".expand-enter-active,.expand-leave-active{transition: height 300ms ease-in-out;overflow: hidden;}.expand-enter,.expand-leave-to{height: 0;}";export default "thead th:first-of-type,tr td:first-of-type{position: sticky;left: 0;background: inherit;z-index: 2;}thead th:last-of-type,tr td:last-of-type{position: sticky;right: 0;background: inherit;z-index: 2;}";export default "input[type='range']{-webkit-appearance: none;-moz-appearance: none;appearance: none;width: 100%;background: transparent;margin: 0.5rem 0;}input[type='range']::-webkit-slider-thumb{-webkit-appearance: none;appearance: none;width: 1rem;height: 1rem;border: 2px solid rgb(229 231 235);border-radius: 50%;background: #ffffff;box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3);cursor: pointer;-webkit-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}input[type='range']:disabled::-webkit-slider-thumb{cursor: not-allowed;}input[type='range']::-moz-range-thumb{-moz-appearance: none;appearance: none;width: 1rem;height: 1rem;border: 2px solid rgb(229 231 235);border-radius: 50%;background: #ffffff;box-shadow: 0 1px 3px 0 rgba(0,0,0,0.3);cursor: pointer;-moz-transition: all 0.1s ease-in-out;transition: all 0.1s ease-in-out;}input[type='range']:disabled::-moz-range-thumb{cursor: not-allowed;}input[type='range']:not(:disabled):hover::-webkit-slider-thumb{box-shadow: 0 0 0 6px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):hover::-moz-range-thumb{box-shadow: 0 0 0 6px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):active::-webkit-slider-thumb{box-shadow: 0 0 0 8px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']:not(:disabled):active::-moz-range-thumb{box-shadow: 0 0 0 8px color-mix(in srgb,var(--color-primary-200)50%,transparent);}input[type='range']::-webkit-slider-runnable-track{width: 100%;height: 0.5rem;cursor: pointer;background: linear-gradient(to right,var(--color-primary-600)var(--range-percentage,0%),n#e0e5eb var(--range-percentage, 0%)n);border-radius: 0.25rem;}input[type='range']:disabled::-webkit-slider-runnable-track{background: #e0e5eb;cursor: not-allowed;}input[type='range']::-moz-range-track{width: 100%;height: 0.5rem;cursor: pointer;background: linear-gradient(to right,var(--color-primary-600)var(--range-percentage,0%),n#e0e5eb var(--range-percentage, 0%)n);border-radius: 0.25rem;}input[type='range']:disabled::-moz-range-track{background: #e0e5eb;cursor: not-allowed;}input[type='range'].range-sm::-webkit-slider-thumb{width: 0.8rem;height: 0.8rem;margin-top:-0.2rem;}input[type='range'].range-sm::-moz-range-thumb{width: 0.8rem;height: 0.8rem;}input[type='range'].range-sm::-webkit-slider-runnable-track{height: 0.4rem;border-radius: 0.2rem;}input[type='range'].range-sm::-moz-range-track{height: 0.4rem;border-radius: 0.2rem;}input[type='range'].range-md::-webkit-slider-thumb{width: 1rem;height: 1rem;margin-top:-0.25rem;}input[type='range'].range-md::-moz-range-thumb{width: 1rem;height: 1rem;}input[type='range'].range-md::-webkit-slider-runnable-track{height: 0.5rem;border-radius: 0.25rem;}input[type='range'].range-md::-moz-range-track{height: 0.5rem;border-radius: 0.25rem;}input[type='range'].range-lg::-webkit-slider-thumb{width: 1.4rem;height: 1.4rem;margin-top:-0.35rem;}input[type='range'].range-lg::-moz-range-thumb{width: 1.4rem;height: 1.4rem;}input[type='range'].range-lg::-webkit-slider-runnable-track{height: 0.7rem;border-radius: 0.35rem;}input[type='range'].range-lg::-moz-range-track{height: 0.7rem;border-radius: 0.35rem;}input[type='range'].range-xl::-webkit-slider-thumb{width: 1.8rem;height: 1.8rem;margin-top:-0.5rem;}input[type='range'].range-xl::-moz-range-thumb{width: 1.8rem;height: 1.8rem;}input[type='range'].range-xl::-webkit-slider-runnable-track{height: 0.9rem;border-radius: 0.45rem;}input[type='range'].range-xl::-moz-range-track{height: 0.9rem;border-radius: 0.45rem;}";export default ".conditions-root:focus-within>.conditions-with-context-menu[data-v-6310fe1d],.conditions-root:hover>.conditions-with-context-menu[data-v-6310fe1d]{padding-right: 3rem;}.conditions-root:focus-within>.conditions-with-context-menu+.context-menu-wrapper[data-v-6310fe1d],.conditions-root:hover>.conditions-with-context-menu+.context-menu-wrapper[data-v-6310fe1d]{opacity: 1;}";export default ".nested-conditions-border::before{background-image: url(\"data:image/svg+xml,%3Csvg width='4' height='5' fill='none' xmlns='http:}";export default '[data-v-1e3637a9].tiptap h1,.editor-content-typography[data-v-1e3637a9]h1{margin-top: 0px;font-size: 2.1428571em;font-weight: 700;line-height: 1.2;}[data-v-1e3637a9].tiptap h2,.editor-content-typography[data-v-1e3637a9]h2{margin-top: 0px;font-size: 1.5em;font-weight: 700;line-height: 1.3333333;}[data-v-1e3637a9].tiptap h3,.editor-content-typography[data-v-1e3637a9]h3{margin-top: 0px;font-size: 1.2857143em;font-weight: 600;line-height: 1.4444444;}[data-v-1e3637a9].tiptap h4,.editor-content-typography[data-v-1e3637a9]h4{margin-top: 0px;font-size: 1.1em;font-weight: 600;line-height: 1.4444444;}[data-v-1e3637a9].tiptap p,.editor-content-typography[data-v-1e3637a9]p{margin-top: 0px;line-height: 1.45;--tw-text-opacity: 1;color: rgb(71 85 105/var(--tw-text-opacity,1));}[data-v-1e3637a9].tiptap ul,[data-v-1e3637a9].tiptap ol,.editor-content-typography[data-v-1e3637a9]ul,.editor-content-typography[data-v-1e3637a9]ol{margin-top: 0px;padding-left: 1.625em;}[data-v-1e3637a9].tiptap ul,.editor-content-typography[data-v-1e3637a9]ul{list-style-type: disc;}[data-v-1e3637a9].tiptap ol,.editor-content-typography[data-v-1e3637a9]ol{list-style-type: decimal;}[data-v-1e3637a9].tiptap li,.editor-content-typography[data-v-1e3637a9]li{margin-top: 0.2em;line-height: 1.45;--tw-text-opacity: 1;color: rgb(71 85 105/var(--tw-text-opacity,1));}[data-v-1e3637a9].tiptap blockquote,.editor-content-typography[data-v-1e3637a9]blockquote{margin-top: 0px;margin-bottom: 1rem;border-left-width: 3px;--tw-border-opacity: 1;border-color: rgb(203 213 225/var(--tw-border-opacity,1));padding-left: 0.875rem;font-style: italic;line-height: 1.45;--tw-text-opacity: 1;color: rgb(100 116 139/var(--tw-text-opacity,1));}[data-v-1e3637a9].tiptap blockquote p,.editor-content-typography[data-v-1e3637a9]blockquote p{margin-bottom: 0px;color: inherit;}[data-v-1e3637a9].tiptap pre,.editor-content-typography[data-v-1e3637a9]pre{margin-top: 0px;margin-bottom: 1rem;white-space: pre-wrap;border-radius: 0.375rem;border-width: 1px;--tw-border-opacity: 1;border-color: rgb(226 232 240/var(--tw-border-opacity,1));--tw-bg-opacity: 1;background-color: rgb(248 250 252/var(--tw-bg-opacity,1));padding-left: 0.75rem;padding-right: 0.75rem;padding-top: 0.5rem;padding-bottom: 0.5rem;font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size: 0.875em;line-height: 1.5;--tw-text-opacity: 1;color: rgb(51 65 85/var(--tw-text-opacity,1));}[data-v-1e3637a9].tiptap pre code,.editor-content-typography[data-v-1e3637a9]pre code{background-color: transparent;padding: 0px;color: inherit;}[data-v-1e3637a9].tiptap code:not(pre code),.editor-content-typography[data-v-1e3637a9]code:not(pre code){border-radius: 0.25rem;--tw-bg-opacity: 1;background-color: rgb(241 245 249/var(--tw-bg-opacity,1));padding-left: 0.25rem;padding-right: 0.25rem;padding-top: 0.125rem;padding-bottom: 0.125rem;font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size: 0.875em;--tw-text-opacity: 1;color: rgb(51 65 85/var(--tw-text-opacity,1));}[data-v-1e3637a9].tiptap a,.editor-content-typography[data-v-1e3637a9]a{--tw-text-opacity: 1;color: rgb(37 99 235/var(--tw-text-opacity,1));text-decoration-line: none;}[data-v-1e3637a9].tiptap a:hover,.editor-content-typography[data-v-1e3637a9]a:hover{text-decoration-line: underline;}[data-v-1e3637a9].tiptap>*:last-child,.editor-content-typography[data-v-1e3637a9]*:last-child{margin-bottom: 0px;}[data-v-1e3637a9].tiptap .is-empty::before{content: attr(data-placeholder);float: left;height: 0;pointer-events: none;font-weight: 400;font-style: italic;--tw-text-opacity: 1;color: rgb(148 163 184/var(--tw-text-opacity,1));}';export default ".animated-gradient[data-v-f1f0dadf]{background: repeating-linear-gradient(to right,rgba(255,255,255,0)0%,rgba(255,255,255,0.75)50%,rgba(255,255,255,0)100%);width: 100%;background-size: 200% auto;background-position: 0 100%;animation: gradient-f1f0dadf 2s infinite;animation-fill-mode: forwards;animation-timing-function: linear;}@keyframes gradient-f1f0dadf{0%{background-position: 0 0;}100%{background-position:-200% 0;}}";export default ".slide-left-enter-active[data-v-1a3d5742],.slide-left-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-left-enter-from[data-v-1a3d5742],.slide-left-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateX(30px);}.slide-right-enter-active[data-v-1a3d5742],.slide-right-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-right-enter-from[data-v-1a3d5742],.slide-right-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateX(-30px);}.slide-top-enter-active[data-v-1a3d5742],.slide-top-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-top-enter-from[data-v-1a3d5742],.slide-top-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateY(30px);}.slide-bottom-enter-active[data-v-1a3d5742],.slide-bottom-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.slide-bottom-enter-from[data-v-1a3d5742],.slide-bottom-leave-to[data-v-1a3d5742]{opacity: 0;transform: translateY(-30px);}.fade-enter-active[data-v-1a3d5742],.fade-leave-active[data-v-1a3d5742]{transition: all 0.5s ease;}.fade-enter-from[data-v-1a3d5742],.fade-leave-to[data-v-1a3d5742]{opacity: 0;}";{}
|