@solvimon/solvimon-web 0.1.0-alpha.6 → 0.1.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/Alert.vue.es-DMPvSykx.js +1 -0
  2. package/dist/Alert.vue.es-DsJ1ckRU.mjs +172 -0
  3. package/dist/Amount.vue.es-C6JE5rL8.mjs +23 -0
  4. package/dist/Amount.vue.es-h8wulbBG.js +1 -0
  5. package/dist/Avatar.vue.es-Ba8ZGfm4.mjs +93 -0
  6. package/dist/Avatar.vue.es-BbyE0AjW.js +1 -0
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C4Ndo83E.js +1 -0
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DZ1XkSJ3.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-CupcH8TZ.mjs} +6 -4
  9. package/dist/Button.vue.es-6sBk5tBL.mjs +408 -0
  10. package/dist/Button.vue.es-BC4_TItq.js +1 -0
  11. package/dist/CardContent.vue.es-ChEMrFCc.mjs +115 -0
  12. package/dist/CardContent.vue.es-i9ivuGKG.js +1 -0
  13. package/dist/Chip.vue.es-D0fkSe8a.js +1 -0
  14. package/dist/Chip.vue.es-DcW2CjUA.mjs +1576 -0
  15. package/dist/Comparators.vue.es-BdxDqU8o.js +1 -0
  16. package/dist/Comparators.vue.es-DdTKGB80.mjs +406 -0
  17. package/dist/{ContentWithAsideLayout-D_T137tN.mjs → ContentWithAsideLayout-Ct24RV-2.mjs} +1 -1
  18. package/dist/{ContentWithAsideLayout-BZJPhvLh.js → ContentWithAsideLayout-UHovpjZu.js} +1 -1
  19. package/dist/CustomerBillingInformation.vue.es-9rP7-RzN.js +1 -0
  20. package/dist/CustomerBillingInformation.vue.es-DBMl01Es.mjs +175 -0
  21. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CYTCcMgP.js +1 -0
  22. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DK6tiecN.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZJ0xukI.mjs} +14 -11
  23. package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
  24. package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
  25. package/dist/DividerText.vue.es-B7oa5Xpn.mjs +72 -0
  26. package/dist/DividerText.vue.es-yiFdPQvo.js +1 -0
  27. package/dist/ErrorNotification.vue.es-Bgw0MIl8.mjs +30 -0
  28. package/dist/ErrorNotification.vue.es-FpRyg0De.js +1 -0
  29. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
  30. package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
  31. package/dist/IconButton.vue.es-DNCwwH_j.mjs +825 -0
  32. package/dist/IconButton.vue.es-DiSiGPWO.js +1 -0
  33. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BDitcx8B.js +1 -0
  34. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BWXmZmGZ.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DsrBsrtk.mjs} +3 -2
  35. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-6yi47YWd.js +1 -0
  36. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BSn_Zy0Y.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BnKwmJ2s.mjs} +9 -5
  37. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-BE1lWOk9.mjs +1067 -0
  38. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CC3hm3nx.js +1 -0
  39. package/dist/PaymentMethod.vue.es-DYlnmZh7.js +1 -0
  40. package/dist/PaymentMethod.vue.es-nXZoQjG3.mjs +1255 -0
  41. package/dist/{PricingGroupContent.vue_vue_type_script_setup_true_lang-X7-dfeZP.mjs → PricingGroupContent.vue_vue_type_script_setup_true_lang-BbvDXvIS.mjs} +6 -5
  42. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-CmQILA3q.js +1 -0
  43. package/dist/Section.vue.es-3-H1pUTB.mjs +79 -0
  44. package/dist/Section.vue.es-BuzTXRLP.js +1 -0
  45. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-AxYjVFUM.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DVhJy0t8.mjs} +23 -20
  46. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Pq3d7DTb.js +1 -0
  47. package/dist/TooltipParagraph.vue.es-DVJLF9Kv.mjs +136 -0
  48. package/dist/TooltipParagraph.vue.es-kTbRGoPF.js +1 -0
  49. package/dist/TrialChip.vue.es-BHYbW8b6.mjs +759 -0
  50. package/dist/TrialChip.vue.es-C6Xg_5rR.js +1 -0
  51. package/dist/_flatRest.es-BHFPCqZh.mjs +642 -0
  52. package/dist/_flatRest.es-dFffnTpX.js +1 -0
  53. package/dist/adyen-51SvcyqV.mjs +4 -0
  54. package/dist/adyen-DZsyEXkw.js +1 -0
  55. package/dist/api.es-B4qAAJKr.js +1 -0
  56. package/dist/api.es-UkfpLiLL.mjs +83 -0
  57. package/dist/{cloneDeep-DranHQkY.js → cloneDeep-Hs8Pp07F.js} +1 -1
  58. package/dist/cn.es-C7xoIs3C.js +1 -0
  59. package/dist/cn.es-tfxVlz02.mjs +3191 -0
  60. package/dist/component-ZRZIt3ZW.js +1 -0
  61. package/dist/component-dpA83LIN.mjs +6569 -0
  62. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -1
  63. package/dist/components/BillingInformation/BillingInformation.cjs.js +1 -1
  64. package/dist/components/BillingInformation/BillingInformation.es.js +14 -10
  65. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -1
  66. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +1 -1
  67. package/dist/components/BillingInformationForm/BillingInformationForm.es.js +27 -23
  68. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -1
  69. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +1 -1
  70. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +3 -3
  71. package/dist/components/Invoice/Invoice.ce.d.ts +1 -1
  72. package/dist/components/Invoice/Invoice.cjs.js +1 -1
  73. package/dist/components/Invoice/Invoice.es.js +2612 -28
  74. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -1
  75. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +1 -1
  76. package/dist/components/InvoiceDetails/InvoiceDetails.es.js +3 -3
  77. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -1
  78. package/dist/components/InvoicesList/InvoicesList.cjs.js +1 -1
  79. package/dist/components/InvoicesList/InvoicesList.es.js +2 -2
  80. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -1
  81. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +1 -1
  82. package/dist/components/PaymentHistory/PaymentHistory.es.js +3 -3
  83. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -1
  84. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +1 -1
  85. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +10 -8
  86. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -1
  87. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +1 -1
  88. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +4820 -7
  89. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -1
  90. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +1 -1
  91. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +4 -4
  92. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -1
  93. package/dist/components/WalletBalances/WalletBalances.cjs.js +1 -1
  94. package/dist/components/WalletBalances/WalletBalances.es.js +2 -2
  95. package/dist/core/index.cjs.js +1 -1
  96. package/dist/core/index.es.js +1 -1
  97. package/dist/countryData.es--zJAd6LA.mjs +252 -0
  98. package/dist/countryData.es-D3MFzU92.js +1 -0
  99. package/dist/customer-CJrpbGX4.mjs +32 -0
  100. package/dist/customer-CcQR-JIm.js +1 -0
  101. package/dist/customer.es-D42Md24r.js +1 -0
  102. package/dist/customer.es-LIW2YmLL.mjs +30 -0
  103. package/dist/formatting.es-9hM8aHSg.js +1 -0
  104. package/dist/formatting.es-D5H_ySFv.mjs +68 -0
  105. package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
  106. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
  107. package/dist/index-CI71bVGE.mjs +2521 -0
  108. package/dist/index-WLSPwi90.js +1 -0
  109. package/dist/index.cjs.js +1 -1
  110. package/dist/index.es-BBJF2O2l.js +1 -0
  111. package/dist/index.es-LCAKs4tH.mjs +438 -0
  112. package/dist/index.es.js +1 -1
  113. package/dist/invoices-3kVHsAXr.js +1 -0
  114. package/dist/{invoices-C7BHqB0g.mjs → invoices-CNK1Ushv.mjs} +15 -1
  115. package/dist/isEmpty.es-Bp1SbWFu.mjs +131 -0
  116. package/dist/isEmpty.es-Dycf-CD_.js +1 -0
  117. package/dist/{paymentMethods-BA7Kt8ti.mjs → paymentMethods-C-ApE-G4.mjs} +2 -1
  118. package/dist/paymentMethods-DZRf0WRl.js +1 -0
  119. package/dist/{payments-NTHUh5je.mjs → payments-CE9U7aKK.mjs} +1 -1
  120. package/dist/{payments-B8W0W6wZ.js → payments-CLt0SExf.js} +1 -1
  121. package/dist/pick.es-BgDAfhAl.js +1 -0
  122. package/dist/pick.es-DdVOyp0Q.mjs +45 -0
  123. package/dist/{registry-DgRnFEVF.mjs → registry-B99ZnfEn.mjs} +1 -2
  124. package/dist/registry-ClZ43bQn.js +1 -0
  125. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -1
  126. package/dist/screens/Checkout/Checkout.cjs.js +1 -1
  127. package/dist/screens/Checkout/Checkout.es.js +1862 -162
  128. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -1
  129. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +1 -1
  130. package/dist/screens/CustomerOverview/CustomerOverview.es.js +11 -11
  131. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +1 -1
  132. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +1 -1
  133. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +46 -40
  134. package/dist/solvimon-web.css +1 -1
  135. package/dist/subscriptions-CS8HTxzC.js +1 -0
  136. package/dist/{subscriptions-BEoXaAHw.mjs → subscriptions-CoeCrY1I.mjs} +2 -1
  137. package/dist/typeGuards.es-C4nR5FkL.js +1 -0
  138. package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
  139. package/dist/{useActionDispatchProvider-DmTJ_bqE.js → useActionDispatchProvider-CWVV_xsi.js} +1 -1
  140. package/dist/{useActionDispatchProvider-zSXRlc2S.mjs → useActionDispatchProvider-eO2qFPGv.mjs} +1 -1
  141. package/dist/useCustomer--jycAz--.mjs +25 -0
  142. package/dist/useCustomer-PthyTFLl.js +1 -0
  143. package/dist/useIncrementalLoading-CAdNW-Bf.js +1 -0
  144. package/dist/{useIncrementalLoading-Bgs0mqyb.mjs → useIncrementalLoading-CcnL3flF.mjs} +5 -1
  145. package/dist/{useInvoiceData-B6P2VShe.mjs → useInvoiceData-BiMMoVoW.mjs} +2 -2
  146. package/dist/{useInvoiceData-CS7hLTea.js → useInvoiceData-DvQO_nKz.js} +1 -1
  147. package/dist/useInvoicesList-CHkwSNO9.js +1 -0
  148. package/dist/{useInvoicesList-23Ra-23Z.mjs → useInvoicesList-DFhF_gp7.mjs} +260 -23
  149. package/dist/{usePaymentMethods-BK4unvj2.js → usePaymentMethods-BRQ7-dUr.js} +1 -1
  150. package/dist/{usePaymentMethods-B8Nft16c.mjs → usePaymentMethods-BX2RnHZN.mjs} +2 -2
  151. package/dist/{useService-D-CUtlp3.js → useService-B67YWAcN.js} +1 -1
  152. package/dist/{useService-B4qv5N2D.mjs → useService-DG_zedHV.mjs} +1 -0
  153. package/dist/useWalletBalanceItems-B5FMmoU2.mjs +308 -0
  154. package/dist/useWalletBalanceItems-BY3gq0fc.js +1 -0
  155. package/package.json +14 -8
  156. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-eRGZRjmq.js +0 -1
  157. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BvmKLc2H.js +0 -1
  158. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DNWspHtC.js +0 -1
  159. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Cx4c8E4i.js +0 -1
  160. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Ct26TY0a.js +0 -1
  161. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-WRXecMCj.mjs +0 -6568
  162. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-KnhKv07X.js +0 -1
  163. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D9_G7CyE.js +0 -1
  164. package/dist/component-DI3AxwdD.mjs +0 -58733
  165. package/dist/component-yWF07boR.js +0 -1
  166. package/dist/index-CzL1ZcGi.mjs +0 -85
  167. package/dist/index-DRdBmZ2-.js +0 -1
  168. package/dist/invoices-CjBHfDXp.js +0 -1
  169. package/dist/paymentMethods-A-5SBmy1.js +0 -1
  170. package/dist/registry-SwmYGFn7.js +0 -1
  171. package/dist/subscriptions-DSi93KpN.js +0 -1
  172. package/dist/useCustomer-DkrBNt5f.mjs +0 -45
  173. package/dist/useCustomer-fK-w7ifj.js +0 -1
  174. package/dist/useIncrementalLoading-BK6N8sYW.js +0 -1
  175. package/dist/useInvoicesList-CIFGVsDj.js +0 -1
  176. package/dist/useWalletBalanceItems-DreHuOra.mjs +0 -105
  177. package/dist/useWalletBalanceItems-NlFk6jPD.js +0 -1
  178. /package/dist/{sprite-DZD704h3-CCc3Mz1x.js → sprite.svg.es-CCc3Mz1x.js} +0 -0
  179. /package/dist/{sprite-DZD704h3-DZD704h3.mjs → sprite.svg.es-DZD704h3.mjs} +0 -0
@@ -0,0 +1 @@
1
+ const e=require("vue"),l="py-2 px-4 text-sm",t={danger:"text-red-700",dark:"text-gray-700",info:"text-blue-700",success:"text-green-700",warning:"text-yellow-700"},o={danger:"bg-red-100",dark:"bg-gray-100",info:"bg-blue-100",success:"bg-green-100",warning:"bg-yellow-100"},n={danger:"border-t-4 border-red-500",dark:"border-t-4 border-gray-500",info:"border-t-4 border-blue-500",success:"border-t-4 border-green-500",warning:"border-t-4 border-yellow-500"},r="ml-auto -mx-1.5 -my-1.5 rounded focus:ring-2 p-1.5 inline-flex h-8 w-8",a={danger:"hover:bg-red-200 focus:ring-red-400 bg-red-100 text-red-500",dark:"hover:bg-gray-200 focus:ring-gray-400 bg-gray-100 text-gray-500",info:"hover:bg-blue-200 focus:ring-blue-400 bg-blue-100 text-blue-500",success:"bg-green-100 text-green-500 focus:ring-green-400 hover:bg-green-200",warning:"focus:ring-yellow-400 hover:bg-yellow-200 bg-yellow-100 text-yellow-500"};const s={key:0,class:"ml-auto inline-flex items-center"},i=e.defineComponent({__name:"Alert",props:{type:{default:"info"},title:{default:""},closable:{type:Boolean,default:!1},icon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},inline:{type:Boolean,default:!0}},setup(i){const c=i,{alertClasses:d,textClasses:u,closeClasses:m,contentClasses:g,titleClasses:f}=function(s){const i=e.computed(()=>[l,o[s.type.value],c.value,s.border.value?n[s.type.value]:"rounded",s.inline.value?"flex items-center":""].filter(e=>!!e).join(" ")),c=e.computed(()=>t[s.type.value]??""),d=e.computed(()=>[r,a[s.type.value]??""].filter(e=>!!e).join(" ")),u=e.computed(()=>s.inline.value?s.icon.value||s.title.value?s.title.value?"grow ml-1":"grow ml-2":"":"my-2"),m=e.computed(()=>s.icon.value&&s.inline.value?["font-medium ml-2",s.inline.value?"":"text-lg"].filter(e=>!!e).join(" "):["font-medium",s.inline.value?"":"text-lg ml-2"].filter(e=>!!e).join(" "));return{alertClasses:i,textClasses:c,closeClasses:d,contentClasses:u,titleClasses:m}}(e.toRefs(c)),v=e.ref(!0),b=()=>{v.value=!1};return(l,t)=>v.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(d)),role:"alert"},[e.createElementVNode("div",{class:e.normalizeClass(i.inline?"flex":"flex items-center")},[i.icon?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["flex-shrink-0","w-5","h-5",e.unref(u)]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"},null,-1)])],2)):e.createCommentVNode("",!0),i.title?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(f))},e.toDisplayString(i.title),3)):e.createCommentVNode("",!0),!i.inline&&i.closable?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(e.unref(m)),"aria-label":"Close",onClick:b},[...t[1]||(t[1]=[e.createElementVNode("span",{class:"sr-only"},"Dismiss",-1),e.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(g))},[e.renderSlot(l.$slots,"default")],2),l.$slots.actions?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(l.$slots,"actions")])):e.createCommentVNode("",!0),i.inline&&i.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(e.unref(m)),"aria-label":"Close",onClick:b},[...t[2]||(t[2]=[e.createElementVNode("span",{class:"sr-only"},"Dismiss",-1),e.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}});exports._sfc_main=i;
@@ -0,0 +1,172 @@
1
+ import { computed, defineComponent, toRefs, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
+ const defaultAlertClasses = "py-2 px-4 text-sm";
3
+ const alertTextClasses = {
4
+ danger: "text-red-700",
5
+ dark: "text-gray-700",
6
+ info: "text-blue-700",
7
+ success: "text-green-700",
8
+ warning: "text-yellow-700"
9
+ };
10
+ const alertTypeClasses = {
11
+ danger: "bg-red-100",
12
+ dark: "bg-gray-100",
13
+ info: "bg-blue-100",
14
+ success: "bg-green-100",
15
+ warning: "bg-yellow-100"
16
+ };
17
+ const alertBorderClasses = {
18
+ danger: "border-t-4 border-red-500",
19
+ dark: "border-t-4 border-gray-500",
20
+ info: "border-t-4 border-blue-500",
21
+ success: "border-t-4 border-green-500",
22
+ warning: "border-t-4 border-yellow-500"
23
+ };
24
+ const defaultCloseButtonClasses = "ml-auto -mx-1.5 -my-1.5 rounded focus:ring-2 p-1.5 inline-flex h-8 w-8";
25
+ const closeButtonClasses = {
26
+ danger: "hover:bg-red-200 focus:ring-red-400 bg-red-100 text-red-500",
27
+ dark: "hover:bg-gray-200 focus:ring-gray-400 bg-gray-100 text-gray-500",
28
+ info: "hover:bg-blue-200 focus:ring-blue-400 bg-blue-100 text-blue-500",
29
+ success: "bg-green-100 text-green-500 focus:ring-green-400 hover:bg-green-200",
30
+ warning: "focus:ring-yellow-400 hover:bg-yellow-200 bg-yellow-100 text-yellow-500"
31
+ };
32
+ function useAlertClasses(props) {
33
+ const alertClasses = computed(
34
+ () => [
35
+ defaultAlertClasses,
36
+ alertTypeClasses[props.type.value],
37
+ textClasses.value,
38
+ props.border.value ? alertBorderClasses[props.type.value] : "rounded",
39
+ // rounded only if no border
40
+ props.inline.value ? "flex items-center" : ""
41
+ ].filter((value) => !!value).join(" ")
42
+ );
43
+ const textClasses = computed(() => alertTextClasses[props.type.value] ?? "");
44
+ const closeClasses = computed(
45
+ () => [defaultCloseButtonClasses, closeButtonClasses[props.type.value] ?? ""].filter((value) => !!value).join(" ")
46
+ );
47
+ const contentClasses = computed(() => {
48
+ if (!props.inline.value) return "my-2";
49
+ if (!props.icon.value && !props.title.value) return "";
50
+ return !props.title.value ? "grow ml-2" : "grow ml-1";
51
+ });
52
+ const titleClasses = computed(() => {
53
+ if (!props.icon.value || !props.inline.value) {
54
+ return ["font-medium", !props.inline.value ? "text-lg ml-2" : ""].filter((value) => !!value).join(" ");
55
+ }
56
+ return ["font-medium ml-2", !props.inline.value ? "text-lg" : ""].filter((value) => !!value).join(" ");
57
+ });
58
+ return {
59
+ alertClasses,
60
+ textClasses,
61
+ closeClasses,
62
+ contentClasses,
63
+ titleClasses
64
+ };
65
+ }
66
+ const _hoisted_1 = {
67
+ key: 0,
68
+ class: "ml-auto inline-flex items-center"
69
+ };
70
+ const _sfc_main = /* @__PURE__ */ defineComponent({
71
+ __name: "Alert",
72
+ props: {
73
+ type: { default: "info" },
74
+ title: { default: "" },
75
+ closable: { type: Boolean, default: false },
76
+ icon: { type: Boolean, default: true },
77
+ border: { type: Boolean, default: false },
78
+ inline: { type: Boolean, default: true }
79
+ },
80
+ setup(__props) {
81
+ const props = __props;
82
+ const { alertClasses, textClasses, closeClasses, contentClasses, titleClasses } = useAlertClasses(
83
+ toRefs(props)
84
+ );
85
+ const visible = ref(true);
86
+ const onCloseClick = () => {
87
+ visible.value = false;
88
+ };
89
+ return (_ctx, _cache) => {
90
+ return visible.value ? (openBlock(), createElementBlock("div", {
91
+ key: 0,
92
+ class: normalizeClass(unref(alertClasses)),
93
+ role: "alert"
94
+ }, [
95
+ createElementVNode("div", {
96
+ class: normalizeClass(__props.inline ? "flex" : "flex items-center")
97
+ }, [
98
+ __props.icon ? (openBlock(), createElementBlock("svg", {
99
+ key: 0,
100
+ class: normalizeClass(["flex-shrink-0", "w-5", "h-5", unref(textClasses)]),
101
+ fill: "currentColor",
102
+ viewBox: "0 0 20 20",
103
+ xmlns: "http://www.w3.org/2000/svg"
104
+ }, [..._cache[0] || (_cache[0] = [
105
+ createElementVNode("path", {
106
+ "fill-rule": "evenodd",
107
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",
108
+ "clip-rule": "evenodd"
109
+ }, null, -1)
110
+ ])], 2)) : createCommentVNode("", true),
111
+ __props.title ? (openBlock(), createElementBlock("span", {
112
+ key: 1,
113
+ class: normalizeClass(unref(titleClasses))
114
+ }, toDisplayString(__props.title), 3)) : createCommentVNode("", true),
115
+ !__props.inline && __props.closable ? (openBlock(), createElementBlock("button", {
116
+ key: 2,
117
+ type: "button",
118
+ class: normalizeClass(unref(closeClasses)),
119
+ "aria-label": "Close",
120
+ onClick: onCloseClick
121
+ }, [..._cache[1] || (_cache[1] = [
122
+ createElementVNode("span", { class: "sr-only" }, "Dismiss", -1),
123
+ createElementVNode("svg", {
124
+ class: "w-5 h-5",
125
+ fill: "currentColor",
126
+ viewBox: "0 0 20 20",
127
+ xmlns: "http://www.w3.org/2000/svg"
128
+ }, [
129
+ createElementVNode("path", {
130
+ "fill-rule": "evenodd",
131
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
132
+ "clip-rule": "evenodd"
133
+ })
134
+ ], -1)
135
+ ])], 2)) : createCommentVNode("", true)
136
+ ], 2),
137
+ createElementVNode("div", {
138
+ class: normalizeClass(unref(contentClasses))
139
+ }, [
140
+ renderSlot(_ctx.$slots, "default")
141
+ ], 2),
142
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1, [
143
+ renderSlot(_ctx.$slots, "actions")
144
+ ])) : createCommentVNode("", true),
145
+ __props.inline && __props.closable ? (openBlock(), createElementBlock("button", {
146
+ key: 1,
147
+ type: "button",
148
+ class: normalizeClass(unref(closeClasses)),
149
+ "aria-label": "Close",
150
+ onClick: onCloseClick
151
+ }, [..._cache[2] || (_cache[2] = [
152
+ createElementVNode("span", { class: "sr-only" }, "Dismiss", -1),
153
+ createElementVNode("svg", {
154
+ class: "w-5 h-5",
155
+ fill: "currentColor",
156
+ viewBox: "0 0 20 20",
157
+ xmlns: "http://www.w3.org/2000/svg"
158
+ }, [
159
+ createElementVNode("path", {
160
+ "fill-rule": "evenodd",
161
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
162
+ "clip-rule": "evenodd"
163
+ })
164
+ ], -1)
165
+ ])], 2)) : createCommentVNode("", true)
166
+ ], 2)) : createCommentVNode("", true);
167
+ };
168
+ }
169
+ });
170
+ export {
171
+ _sfc_main as _
172
+ };
@@ -0,0 +1,23 @@
1
+ import { defineComponent, openBlock, createElementBlock, mergeProps, toDisplayString, unref } from "vue";
2
+ import { a as formatAmount } from "./formatting.es-D5H_ySFv.mjs";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "Amount",
5
+ props: {
6
+ value: {},
7
+ highlighted: { type: Boolean, default: false }
8
+ },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createElementBlock("span", mergeProps(_ctx.$attrs, {
12
+ class: [
13
+ { "text-primary-600 font-semibold": __props.highlighted },
14
+ "inline-block"
15
+ // ensures classes like my-2 / mx-2 works
16
+ ]
17
+ }), toDisplayString(unref(formatAmount)(__props.value)), 17);
18
+ };
19
+ }
20
+ });
21
+ export {
22
+ _sfc_main as _
23
+ };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./formatting.es-9hM8aHSg.js"),o=e.defineComponent({__name:"Amount",props:{value:{},highlighted:{type:Boolean,default:!1}},setup:o=>(n,r)=>(e.openBlock(),e.createElementBlock("span",e.mergeProps(n.$attrs,{class:[{"text-primary-600 font-semibold":o.highlighted},"inline-block"]}),e.toDisplayString(e.unref(t.formatAmount)(o.value)),17))});exports._sfc_main=o;
@@ -0,0 +1,93 @@
1
+ import { ref, watch, defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, toDisplayString, createCommentVNode } from "vue";
2
+ const useHashColor = (str) => {
3
+ const color = ref();
4
+ const generateColorFromHash = (str2) => {
5
+ let hash = 0;
6
+ for (let i = 0; i < str2.length; i++) {
7
+ hash = str2.charCodeAt(i) + ((hash << 5) - hash);
8
+ }
9
+ let colorHex = "#";
10
+ for (let i = 0; i < 3; i++) {
11
+ const value = hash >> i * 8 & 255;
12
+ colorHex += ("00" + value.toString(16)).substr(-2);
13
+ }
14
+ return colorHex;
15
+ };
16
+ watch(
17
+ () => str,
18
+ () => {
19
+ color.value = generateColorFromHash(str);
20
+ },
21
+ { immediate: true }
22
+ );
23
+ return color;
24
+ };
25
+ const getComposedString = (inputs = []) => {
26
+ const filtered = inputs.filter((input) => input != null && input !== "");
27
+ if (filtered.length === 1) {
28
+ return filtered[0];
29
+ }
30
+ const areAllNamesSame = filtered.every((name) => name === filtered[0]);
31
+ return areAllNamesSame ? filtered[0] : [
32
+ ...filtered.slice(0, filtered.length - 2),
33
+ filtered.slice(filtered.length - 2, filtered.length).join(" & ")
34
+ ].join(", ");
35
+ };
36
+ const _sfc_main = /* @__PURE__ */ defineComponent({
37
+ __name: "Avatar",
38
+ props: {
39
+ initials: {},
40
+ imageSrc: {},
41
+ size: { default: "md" },
42
+ round: { type: Boolean, default: false },
43
+ variant: { default: "light" },
44
+ colorHash: {},
45
+ font: { default: "icon" }
46
+ },
47
+ setup(__props) {
48
+ const props = __props;
49
+ const sizeMap = {
50
+ xs: "w-4 h-4",
51
+ sm: "w-5 h-5",
52
+ md: "w-6 h-6",
53
+ lg: "w-8 h-8",
54
+ xl: "w-12 h-12"
55
+ };
56
+ const fontSizeMap = {
57
+ xs: "text-base",
58
+ sm: "text-lg",
59
+ md: "text-2xl",
60
+ lg: "text-4xl",
61
+ xl: "text-6xl"
62
+ };
63
+ const backgroundColor = useHashColor(props.colorHash ?? props.initials ?? "A");
64
+ const styles = computed(() => ({
65
+ backgroundImage: props.imageSrc ? `url(${props.imageSrc})` : `linear-gradient(140deg, ${backgroundColor.value}60 0%, #DCF3FD 75%)`
66
+ }));
67
+ return (_ctx, _cache) => {
68
+ return openBlock(), createElementBlock("div", {
69
+ class: normalizeClass(["flex shrink-0 justify-center items-center rounded overflow-hidden bg-cover bg-primary-100", {
70
+ [sizeMap[props.size]]: true,
71
+ "rounded-full": __props.round,
72
+ "border border-black border-opacity-5": __props.variant === "dark"
73
+ }]),
74
+ style: normalizeStyle(styles.value)
75
+ }, [
76
+ __props.initials && !__props.imageSrc ? (openBlock(), createElementBlock("span", {
77
+ key: 0,
78
+ class: normalizeClass(["font-semibold font-regular text-2xl", {
79
+ [fontSizeMap[props.size]]: true,
80
+ "font-regular": __props.font === "icon",
81
+ "font-inter drop-shadow-sm": __props.font === "regular",
82
+ "text-white/70": __props.variant === "light",
83
+ "text-black/10": __props.variant === "dark"
84
+ }])
85
+ }, toDisplayString(__props.initials.toUpperCase()), 3)) : createCommentVNode("", true)
86
+ ], 6);
87
+ };
88
+ }
89
+ });
90
+ export {
91
+ _sfc_main as _,
92
+ getComposedString as g
93
+ };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=e.defineComponent({__name:"Avatar",props:{initials:{},imageSrc:{},size:{default:"md"},round:{type:Boolean,default:!1},variant:{default:"light"},colorHash:{},font:{default:"icon"}},setup(t){const r=t,l={xs:"w-4 h-4",sm:"w-5 h-5",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"},n={xs:"text-base",sm:"text-lg",md:"text-2xl",lg:"text-4xl",xl:"text-6xl"},a=(t=>{const r=e.ref();return e.watch(()=>t,()=>{r.value=(e=>{let t=0;for(let l=0;l<e.length;l++)t=e.charCodeAt(l)+((t<<5)-t);let r="#";for(let l=0;l<3;l++)r+=("00"+(t>>8*l&255).toString(16)).substr(-2);return r})(t)},{immediate:!0}),r})(r.colorHash??r.initials??"A"),o=e.computed(()=>({backgroundImage:r.imageSrc?`url(${r.imageSrc})`:`linear-gradient(140deg, ${a.value}60 0%, #DCF3FD 75%)`}));return(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex shrink-0 justify-center items-center rounded overflow-hidden bg-cover bg-primary-100",{[l[r.size]]:!0,"rounded-full":t.round,"border border-black border-opacity-5":"dark"===t.variant}]),style:e.normalizeStyle(o.value)},[t.initials&&!t.imageSrc?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["font-semibold font-regular text-2xl",{[n[r.size]]:!0,"font-regular":"icon"===t.font,"font-inter drop-shadow-sm":"regular"===t.font,"text-white/70":"light"===t.variant,"text-black/10":"dark"===t.variant}])},e.toDisplayString(t.initials.toUpperCase()),3)):e.createCommentVNode("",!0)],6))}});exports._sfc_main=t,exports.getComposedString=(e=[])=>{const t=e.filter(e=>null!=e&&""!==e);if(1===t.length)return t[0];return t.every(e=>e===t[0])?t[0]:[...t.slice(0,t.length-2),t.slice(t.length-2,t.length).join(" & ")].join(", ")};
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./Button.vue.es-BC4_TItq.js"),i=require("./CustomerBillingInformation.vue.es-9rP7-RzN.js"),o=require("./component-ZRZIt3ZW.js"),n=require("./Skeleton.vue_vue_type_script_setup_true_lang-D1Xzfc70.js"),r=require("./useActionDispatchProvider-CWVV_xsi.js"),s=e.defineComponent({__name:"BillingInformation",props:{customer:{type:Object},isLoading:{type:Boolean},configuration:{default:()=>({showEditButton:!0}),type:Object}},emits:["edit-billing-information"],setup(s){const{$t:a}=o.useIntl(),{dispatchAction:c}=r.useActionDispatchProvider();return(o,r)=>s.isLoading?(e.openBlock(),e.createBlock(n._sfc_main,{key:0,variant:"section",class:"min-h-[100px]","data-testid":"billing-information-skeleton"})):(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,customer:s.customer,"fallback-to-reference":!1},e.createSlots({_:2},[s.configuration.showEditButton?{name:"settings",fn:e.withCtx(()=>[e.createVNode(e.unref(t._sfc_main),{size:"sm",variant:"ghost",color:"gray","icon-prefix":"edit",onClick:r[0]||(r[0]=t=>e.unref(c)({action:"edit-billing-information"}))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)({defaultMessage:"Edit",id:"customer_overview.billing_information_block.view_all_payment_methods_link_label",description:"The link text that links to the overview page of the customer billing information"})),1)]),_:1})]),key:"0"}:void 0]),1032,["customer"]))}});exports._sfc_main=s;
@@ -1,7 +1,9 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, createSlots, withCtx, createVNode, createTextVNode, toDisplayString } from "vue";
2
- import { b as useIntl, k as _sfc_main$z, l as _sfc_main$2H } from "./component-DI3AxwdD.mjs";
2
+ import { _ as _sfc_main$3 } from "./Button.vue.es-6sBk5tBL.mjs";
3
+ import { _ as _sfc_main$2 } from "./CustomerBillingInformation.vue.es-DBMl01Es.mjs";
4
+ import { a as useIntl } from "./component-dpA83LIN.mjs";
3
5
  import { _ as _sfc_main$1 } from "./Skeleton.vue_vue_type_script_setup_true_lang-DXJcL7x6.mjs";
4
- import { u as useActionDispatchProvider } from "./useActionDispatchProvider-zSXRlc2S.mjs";
6
+ import { u as useActionDispatchProvider } from "./useActionDispatchProvider-eO2qFPGv.mjs";
5
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
8
  __name: "BillingInformation",
7
9
  props: {
@@ -21,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
23
  variant: "section",
22
24
  class: "min-h-[100px]",
23
25
  "data-testid": "billing-information-skeleton"
24
- })) : (openBlock(), createBlock(unref(_sfc_main$z), {
26
+ })) : (openBlock(), createBlock(unref(_sfc_main$2), {
25
27
  key: 1,
26
28
  customer: __props.customer,
27
29
  "fallback-to-reference": false
@@ -29,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
31
  __props.configuration.showEditButton ? {
30
32
  name: "settings",
31
33
  fn: withCtx(() => [
32
- createVNode(unref(_sfc_main$2H), {
34
+ createVNode(unref(_sfc_main$3), {
33
35
  size: "sm",
34
36
  variant: "ghost",
35
37
  color: "gray",