1System.register(['vue','@ionas/formkit'],(function(exports){'use strict';var provide,defineComponent,toRefs,computed,useFormKitContext;return{setters:[function(module){provide=module.provide;defineComponent=module.defineComponent;toRefs=module.toRefs;computed=module.computed;},function(module){useFormKitContext=module.useFormKitContext;}],execute:(function(){exports('addPaymentComponentsToForm',K);const T=defineComponent({ 2__name:"FormkitPaymentTotal", 3props:{ 4locale:null, 5currency:null, 6fractionDigits:null, 7fields:null, 8shippingOptionFields:null, 9shippingOptions:null 10}, 11setup(n){ 12const t=n,{ 13locale:l, 14currency:s, 15fractionDigits:o, 16fields:c, 17shippingOptionFields:m, 18shippingOptions:p 19}=toRefs(t),{ 20fields:e 21}=useFormKitContext("<FormkitPaymentTotal>"),r=computed(()=>c.value.map(({id:u,pricePerUnit:a})=>a*(e[u]||0)).reduce((u,a)=>u+a,0)),_=computed(()=>m.value.map((u)=>{ 22const a=e[u],v=p.value.find(({id:g})=>a===g); 23return v?v.startPrice:0; 24}).reduce((u,a)=>u+a,0)),f=computed(()=>r.value+_.value),i=computed(()=>f.value.toLocaleString(l.value,{ 25style:"currency", 26currency:s.value, 27minimumFractionDigits:o.value 28})); 29return{__sfc:!0,props:t,locale:l,currency:s,fractionDigits:o,productInvoiceItemFields:c,shippingOptionFields:m,shippingOptions:p,allFields:e,itemsTotal:r,shippingTotal:_,total:f,totalFormatted:i}; 30} 31}); 32function P(n,t,l,s,o,c,m,p){ 33var e=typeof n=="function"?n.options:n; 34t&&(e.render=t,e.staticRenderFns=l,e._compiled=!0),s&&(e.functional=!0),c&&(e._scopeId="data-v-"+c); 35var r; 36if(m?(r=function(i){ 37i=i|| 38this.$vnode&&this.$vnode.ssrContext|| 39this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!i&&typeof __VUE_SSR_CONTEXT__<"u"&&(i=__VUE_SSR_CONTEXT__),o&&o.call(this,i),i&&i._registeredComponents&&i._registeredComponents.add(m); 40},e._ssrRegister=r):o&&(r=p?function(){ 41o.call( 42this, 43(e.functional?this.parent:this).$root.$options.shadowRoot 44); 45}:o),r) 46if(e.functional){ 47e._injectStyles=r; 48var _=e.render; 49e.render=function(u,a){ 50return r.call(a),_(u,a); 51}; 52}else{ 53var f=e.beforeCreate; 54e.beforeCreate=f?[].concat(f,r):[r]; 55} 56return{ 57exports:n, 58options:e 59}; 60} 61var R=function(){ 62var t=this,l=t._self._c,s=t._self._setupProxy; 63return l("div",[t._v(t._s(s.totalFormatted))]); 64},O=[],k=P( 65T, 66R, 67O, 68!1, 69null, 70null, 71null, 72null 73); 74const S=k.exports,$=Symbol("FormKitPayment"); 75function K(n,t,l){ 76var c; 77const s=l.child({ 78namespace:(((c=l.getContext())==null?void 0:c.namespace)??"<formkit-form>")+" | Payment", 79package:"@ionas/formkit-payment" 80}); 81s.trace("Extending form with payment components"),Object.assign( 82n.components??(n.components={}), 83{ 84FormkitPaymentTotal:S 85} 86); 87const o=n.setup; 88return{ 89...n, 90setup(m,p){ 91return provide($,{ 92paymentLogger:s 93}),{ 94...o?o(m,p):{}, 95paymentLogger:s 96}; 97} 98}; 99}})}}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.