@coinflowlabs/vue 1.3.0 → 1.3.1
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/README.md
CHANGED
package/dist/coinflow-vue.js
CHANGED
|
@@ -15568,9 +15568,9 @@ const sm = /* @__PURE__ */ bs(B1, [["render", L1]]), Es = (r) => {
|
|
|
15568
15568
|
(Rt(), Bt("svg", K1, [
|
|
15569
15569
|
n[1] || (n[1] = Wr("title", null, "Apple Logo", -1)),
|
|
15570
15570
|
Wr("g", $1, [
|
|
15571
|
-
Wr("g", { fill: Lr(e) }, n[0] || (n[0] = [
|
|
15571
|
+
Wr("g", { fill: Lr(e) }, [...n[0] || (n[0] = [
|
|
15572
15572
|
Ni('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>', 5)
|
|
15573
|
-
]), 8, W1)
|
|
15573
|
+
])], 8, W1)
|
|
15574
15574
|
])
|
|
15575
15575
|
]))
|
|
15576
15576
|
]));
|
|
@@ -15616,12 +15616,12 @@ const sm = /* @__PURE__ */ bs(B1, [["render", L1]]), Es = (r) => {
|
|
|
15616
15616
|
},
|
|
15617
15617
|
setup(r) {
|
|
15618
15618
|
return (e, t) => (Rt(), Bt(Xa, null, [
|
|
15619
|
-
r.color === "white" ? (Rt(), Bt("svg", q1, t[0] || (t[0] = [
|
|
15619
|
+
r.color === "white" ? (Rt(), Bt("svg", q1, [...t[0] || (t[0] = [
|
|
15620
15620
|
Ni('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>', 1)
|
|
15621
|
-
]))) : xs("", !0),
|
|
15622
|
-
r.color === "black" ? (Rt(), Bt("svg", G1, t[1] || (t[1] = [
|
|
15621
|
+
])])) : xs("", !0),
|
|
15622
|
+
r.color === "black" ? (Rt(), Bt("svg", G1, [...t[1] || (t[1] = [
|
|
15623
15623
|
Ni('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>', 1)
|
|
15624
|
-
]))) : xs("", !0)
|
|
15624
|
+
])])) : xs("", !0)
|
|
15625
15625
|
], 64));
|
|
15626
15626
|
}
|
|
15627
15627
|
}), fm = /* @__PURE__ */ kt({
|
|
@@ -19,4 +19,4 @@ Message: ${r}.
|
|
|
19
19
|
appId: '${t()}',
|
|
20
20
|
partnerId: '${e.value}',
|
|
21
21
|
});
|
|
22
|
-
};`,a=document.createElement("script");a.innerHTML=o,document.head.appendChild(a),s(()=>{document.head.removeChild(i),document.head.removeChild(a)})}),(s,i)=>null}}),mm=["id"],_m=te.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(n,{expose:e}){const{tokenExIframe:t,initializeTokenExCardOnlyIframe:r}=Ji(n.args);async function s(){if(!t.value)throw new Error("Unable to get token");return t.value.tokenize()}e({getToken:s});function i(){return JSON.stringify(n.args.css)}return te.watchEffect(()=>{r({css:i(),debug:n.args.debug,origins:n.args.origins,font:n.args.font})},{}),(o,a)=>(te.openBlock(),te.createElementBlock("div",{id:te.unref(tr)},null,8,mm))}}),ym={style:{position:"relative",height:"100%"}},wm={style:{position:"relative",zIndex:10,height:"100%"}},Da=te.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(n){const{onSuccess:e}=n.args;function t(){const f=Cr(n.args);return{...n.args,walletPubkey:f,transaction:void 0,routePrefix:"form",route:`/${n.route}/${n.args.merchantId}`}}function r(){return{...Mr(n.args),handleHeightChange:n.args.handleHeightChange}}const s=te.ref(.8),i=te.ref("flex"),o=Math.random().toString(16).substring(2);function a({data:f}){try{const g=JSON.parse(f);if("method"in g&&g.method==="loaded"&&(s.value=1,setTimeout(()=>{i.value="none"},2e3)),"method"in g&&g.data.startsWith("ERROR"))return n.args?.onError?.(g.info),!1;if(!("method"in g)||g.method!=="getToken")return}catch{return}e?.(f)}return(f,g)=>(te.openBlock(),te.createElementBlock("div",ym,[te.createElementVNode("div",{style:te.normalizeStyle({backgroundColor:n.args.color,display:n.overlayDisplayOverride??i.value,opacity:s.value,alignItems:n.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[te.renderSlot(f.$slots,"default")],4),te.createElementVNode("div",wm,[te.createVNode(Ur,{onOnMessage:a,args:{...t(),...r(),handleHeightChangeId:te.unref(o)}},null,8,["args"])])]))}}),bm={id:"svg-logo",viewBox:"0 0 35 15"},Rm={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Em={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Sm=["fill"],Am=te.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(n){const e=n.color==="white"?"#000":"#FFF";return(t,r)=>(te.openBlock(),te.createElementBlock("svg",bm,[(te.openBlock(),te.createElementBlock("svg",Rm,[r[1]||(r[1]=te.createElementVNode("title",null,"Apple Logo",-1)),te.createElementVNode("g",Em,[te.createElementVNode("g",{fill:te.unref(e)},r[0]||(r[0]=[te.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)]),8,Sm)])]))]))}}),Im=te.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(n){return(e,t)=>(te.openBlock(),te.createBlock(Da,{route:"apple-pay",args:n.args},{default:te.withCtx(()=>[te.createVNode(Am,{color:n.args.color},null,8,["color"])]),_:1},8,["args"]))}}),vm={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Om={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},km=te.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(n){return(e,t)=>(te.openBlock(),te.createElementBlock(te.Fragment,null,[n.color==="white"?(te.openBlock(),te.createElementBlock("svg",vm,t[0]||(t[0]=[te.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)]))):te.createCommentVNode("",!0),n.color==="black"?(te.openBlock(),te.createElementBlock("svg",Om,t[1]||(t[1]=[te.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)]))):te.createCommentVNode("",!0)],64))}}),Tm=te.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(n){return(e,t)=>(te.openBlock(),te.createBlock(Da,{route:"google-pay",args:n.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:te.withCtx(()=>[te.createVNode(km,{color:n.args.color},null,8,["color"])]),_:1},8,["args"]))}});pe.CARD_TYPE_MAPPING=La,pe.CardType=wn,pe.CoinflowApplePayButton=Im,pe.CoinflowCardNumberInput=lm,pe.CoinflowCardNumberOnlyInput=_m,pe.CoinflowCvvInput=fm,pe.CoinflowCvvOnlyInput=pm,pe.CoinflowGooglePayButton=Tm,pe.CoinflowIframe=Ur,pe.CoinflowPurchase=cm,pe.CoinflowPurchaseProtection=gm,pe.CoinflowUtils=Wt,pe.CoinflowWithdraw=sm,pe.Currency=Gi,pe.CurrencyToISO4217=qg,pe.EventBus=Xg,pe.IFrameMessageMethods=Yi,pe.MerchantStyle=ws,pe.PaymentMethods=Rs,pe.SettlementType=ys,pe.ThreeDsChallengePreference=bs,pe.TokenExCardNumberIframeId=tr,pe.TokenExCvvContainerID=Un,pe.WithdrawCurrencies=Na,pe.doInitializeCvvOnlyTokenExIframe=Ma,pe.doInitializeTokenExCardOnlyIframe=Ua,pe.doInitializeTokenExIframe=Pa,pe.getCustomerName=Yg,pe.getHandlers=Mr,pe.getIframeConfig=Ca,pe.getWalletPubkey=Cr,pe.handleIFrameMessage=xa,pe.isTypedCurrencyCents=Gg,pe.isWithdrawCurrency=Vg,pe.setTokenExScriptTag=ji,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|
|
22
|
+
};`,a=document.createElement("script");a.innerHTML=o,document.head.appendChild(a),s(()=>{document.head.removeChild(i),document.head.removeChild(a)})}),(s,i)=>null}}),mm=["id"],_m=te.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(n,{expose:e}){const{tokenExIframe:t,initializeTokenExCardOnlyIframe:r}=Ji(n.args);async function s(){if(!t.value)throw new Error("Unable to get token");return t.value.tokenize()}e({getToken:s});function i(){return JSON.stringify(n.args.css)}return te.watchEffect(()=>{r({css:i(),debug:n.args.debug,origins:n.args.origins,font:n.args.font})},{}),(o,a)=>(te.openBlock(),te.createElementBlock("div",{id:te.unref(tr)},null,8,mm))}}),ym={style:{position:"relative",height:"100%"}},wm={style:{position:"relative",zIndex:10,height:"100%"}},Da=te.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(n){const{onSuccess:e}=n.args;function t(){const f=Cr(n.args);return{...n.args,walletPubkey:f,transaction:void 0,routePrefix:"form",route:`/${n.route}/${n.args.merchantId}`}}function r(){return{...Mr(n.args),handleHeightChange:n.args.handleHeightChange}}const s=te.ref(.8),i=te.ref("flex"),o=Math.random().toString(16).substring(2);function a({data:f}){try{const g=JSON.parse(f);if("method"in g&&g.method==="loaded"&&(s.value=1,setTimeout(()=>{i.value="none"},2e3)),"method"in g&&g.data.startsWith("ERROR"))return n.args?.onError?.(g.info),!1;if(!("method"in g)||g.method!=="getToken")return}catch{return}e?.(f)}return(f,g)=>(te.openBlock(),te.createElementBlock("div",ym,[te.createElementVNode("div",{style:te.normalizeStyle({backgroundColor:n.args.color,display:n.overlayDisplayOverride??i.value,opacity:s.value,alignItems:n.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[te.renderSlot(f.$slots,"default")],4),te.createElementVNode("div",wm,[te.createVNode(Ur,{onOnMessage:a,args:{...t(),...r(),handleHeightChangeId:te.unref(o)}},null,8,["args"])])]))}}),bm={id:"svg-logo",viewBox:"0 0 35 15"},Rm={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Em={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Sm=["fill"],Am=te.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(n){const e=n.color==="white"?"#000":"#FFF";return(t,r)=>(te.openBlock(),te.createElementBlock("svg",bm,[(te.openBlock(),te.createElementBlock("svg",Rm,[r[1]||(r[1]=te.createElementVNode("title",null,"Apple Logo",-1)),te.createElementVNode("g",Em,[te.createElementVNode("g",{fill:te.unref(e)},[...r[0]||(r[0]=[te.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,Sm)])]))]))}}),Im=te.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(n){return(e,t)=>(te.openBlock(),te.createBlock(Da,{route:"apple-pay",args:n.args},{default:te.withCtx(()=>[te.createVNode(Am,{color:n.args.color},null,8,["color"])]),_:1},8,["args"]))}}),vm={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Om={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},km=te.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(n){return(e,t)=>(te.openBlock(),te.createElementBlock(te.Fragment,null,[n.color==="white"?(te.openBlock(),te.createElementBlock("svg",vm,[...t[0]||(t[0]=[te.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):te.createCommentVNode("",!0),n.color==="black"?(te.openBlock(),te.createElementBlock("svg",Om,[...t[1]||(t[1]=[te.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):te.createCommentVNode("",!0)],64))}}),Tm=te.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(n){return(e,t)=>(te.openBlock(),te.createBlock(Da,{route:"google-pay",args:n.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:te.withCtx(()=>[te.createVNode(km,{color:n.args.color},null,8,["color"])]),_:1},8,["args"]))}});pe.CARD_TYPE_MAPPING=La,pe.CardType=wn,pe.CoinflowApplePayButton=Im,pe.CoinflowCardNumberInput=lm,pe.CoinflowCardNumberOnlyInput=_m,pe.CoinflowCvvInput=fm,pe.CoinflowCvvOnlyInput=pm,pe.CoinflowGooglePayButton=Tm,pe.CoinflowIframe=Ur,pe.CoinflowPurchase=cm,pe.CoinflowPurchaseProtection=gm,pe.CoinflowUtils=Wt,pe.CoinflowWithdraw=sm,pe.Currency=Gi,pe.CurrencyToISO4217=qg,pe.EventBus=Xg,pe.IFrameMessageMethods=Yi,pe.MerchantStyle=ws,pe.PaymentMethods=Rs,pe.SettlementType=ys,pe.ThreeDsChallengePreference=bs,pe.TokenExCardNumberIframeId=tr,pe.TokenExCvvContainerID=Un,pe.WithdrawCurrencies=Na,pe.doInitializeCvvOnlyTokenExIframe=Ma,pe.doInitializeTokenExCardOnlyIframe=Ua,pe.doInitializeTokenExIframe=Pa,pe.getCustomerName=Yg,pe.getHandlers=Mr,pe.getIframeConfig=Ca,pe.getWalletPubkey=Cr,pe.handleIFrameMessage=xa,pe.isTypedCurrencyCents=Gg,pe.isWithdrawCurrency=Vg,pe.setTokenExScriptTag=ji,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -60,7 +60,7 @@ export type nftCartItem = {
|
|
|
60
60
|
rawSellerData: Record<string, any>;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
export type productType = 'inGameProduct' | 'gameOfSkill' | 'dataStorage' | 'computingResources' | 'sportsTicket' | 'eSportsTicket' | 'musicTicket' | 'conferenceTicket' | 'virtualSportsTicket' | 'virtualESportsTicket' | 'virtualMusicTicket' | 'virtualConferenceTicket' | 'alcohol' | 'DLC' | 'subscription' | 'fundACause' | 'realEstate' | 'computingContract' | 'digitalArt' | 'topUp' | 'ownershipContract' | 'inGameCurrency';
|
|
63
|
+
export type productType = 'inGameProduct' | 'gameOfSkill' | 'dataStorage' | 'computingResources' | 'sportsTicket' | 'eSportsTicket' | 'musicTicket' | 'conferenceTicket' | 'virtualSportsTicket' | 'virtualESportsTicket' | 'virtualMusicTicket' | 'virtualConferenceTicket' | 'alcohol' | 'DLC' | 'subscription' | 'fundACause' | 'realEstate' | 'computingContract' | 'digitalArt' | 'topUp' | 'ownershipContract' | 'inGameCurrency' | 'digitalCollectibles' | 'digitalCollectiblesMarketplace' | 'digitalGiftingMarketplace' | 'sweepstakes' | 'virtualSportsEvents' | 'contractInvoicing' | 'onlineCasino' | 'cryptoOnramp' | 'gaming' | 'travelDocuments' | 'musicStreaming' | 'digitalContent' | 'eBooks' | 'digitalSubscriptionContent';
|
|
64
64
|
export declare namespace nftCartItem {
|
|
65
65
|
/**
|
|
66
66
|
* Denotes the cart item class. The item schema is chosen based on this value
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
"@types/bs58": "^4.0.4",
|
|
34
34
|
"@rushstack/eslint-patch": "^1.12.0",
|
|
35
35
|
"@types/node": "^22.15.30",
|
|
36
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
36
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
37
37
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
38
38
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
39
39
|
"copyfiles": "^2.4.1",
|
|
40
40
|
"csstype": "^3.1.3",
|
|
41
41
|
"eslint": "^8.57.1",
|
|
42
|
-
"eslint-plugin-vue": "^10.
|
|
42
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
43
43
|
"prettier": "^3.6.2",
|
|
44
44
|
"typescript": "^5.6.3",
|
|
45
|
-
"vite": "^7.
|
|
45
|
+
"vite": "^7.1.3",
|
|
46
46
|
"vite-plugin-dts": "^4.5.4",
|
|
47
|
-
"vitepress": "^1.6.
|
|
48
|
-
"vue": "^3.5.
|
|
49
|
-
"vue-tsc": "^3.0.
|
|
47
|
+
"vitepress": "^1.6.4",
|
|
48
|
+
"vue": "^3.5.20",
|
|
49
|
+
"vue-tsc": "^3.0.6"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"lz-string": "^1.5.0"
|