@wajub/vue 1.3.0

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 ADDED
@@ -0,0 +1,83 @@
1
+ # @wajub/vue
2
+
3
+ **Wajub Components** for Vue 3.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @wajub/vue @wajub/js
9
+ ```
10
+
11
+ ## Quick start — hosted checkout
12
+
13
+ ```vue
14
+ <script setup lang="ts">
15
+ import { WajubProvider, CheckoutEmbed } from "@wajub/vue";
16
+
17
+ defineProps<{ sessionId: string }>();
18
+ </script>
19
+
20
+ <template>
21
+ <WajubProvider>
22
+ <CheckoutEmbed
23
+ :session-id="sessionId"
24
+ @success="() => (window.location.href = '/thanks')"
25
+ />
26
+ </WajubProvider>
27
+ </template>
28
+ ```
29
+
30
+ Create `sessionId` on your server, then pass it as a prop. Never expose secret keys (`sk_...`) in the browser.
31
+
32
+ ## Components
33
+
34
+ ```vue
35
+ <script setup lang="ts">
36
+ import { ref } from "vue";
37
+ import type { ComponentInstance } from "@wajub/js";
38
+ import { WajubProvider, CardComponent, useConfirmPayment } from "@wajub/vue";
39
+
40
+ const props = defineProps<{ sessionId: string }>();
41
+ const confirm = useConfirmPayment(props.sessionId);
42
+ const cardRef = ref<ComponentInstance | null>(null);
43
+ </script>
44
+
45
+ <template>
46
+ <WajubProvider>
47
+ <CardComponent
48
+ :session-id="sessionId"
49
+ @instance="(c) => { cardRef = c; }"
50
+ />
51
+ <button @click="cardRef && confirm(cardRef)">Pay</button>
52
+ </WajubProvider>
53
+ </template>
54
+ ```
55
+
56
+ ## API
57
+
58
+ | Export | Description |
59
+ |--------|-------------|
60
+ | `WajubProvider` | Loads the checkout SDK once for the subtree |
61
+ | `CheckoutEmbed` | Full hosted checkout inline |
62
+ | `CardComponent` | Card fields only |
63
+ | `PaymentComponent` | Payment method selector + form |
64
+ | `AddressComponent` | Shipping / billing address |
65
+ | `MobileMoneyComponent` | Mobile money form |
66
+ | `WalletComponent` | Apple Pay / Google Pay |
67
+ | `useWajub()` | Access loaded SDK (throws while loading) |
68
+ | `useWajubOptional()` | Safe access (`null` during SSR) |
69
+ | `useLoadWajub()` | Trigger SDK load manually |
70
+ | `useConfirmPayment()` | Submit a mounted component |
71
+
72
+ ## Nuxt 3
73
+
74
+ - Wrap checkout pages with `<WajubProvider>` inside `<ClientOnly>`.
75
+ - Create the session on your server — never expose `sk_...` to the client.
76
+
77
+ ## Documentation
78
+
79
+ Integration guide: [docs.wajub.com/tools/components/vue](https://docs.wajub.com/tools/components/vue)
80
+
81
+ ## License
82
+
83
+ MIT
@@ -0,0 +1,81 @@
1
+ import { type PropType } from "vue";
2
+ import type { CheckoutLayout, EmbeddedConfig } from "@wajub/js";
3
+ export declare const CheckoutEmbed: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ sessionId: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ class: {
9
+ type: StringConstructor;
10
+ default: undefined;
11
+ };
12
+ style: {
13
+ type: PropType<Record<string, string>>;
14
+ default: undefined;
15
+ };
16
+ minHeight: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ locale: StringConstructor;
21
+ embedOrigin: StringConstructor;
22
+ theme: ObjectConstructor;
23
+ appearance: ObjectConstructor;
24
+ layout: PropType<CheckoutLayout>;
25
+ loadingText: StringConstructor;
26
+ showLoading: BooleanConstructor;
27
+ onReady: PropType<EmbeddedConfig["onReady"]>;
28
+ onSuccess: PropType<EmbeddedConfig["onSuccess"]>;
29
+ onError: PropType<EmbeddedConfig["onError"]>;
30
+ onLoadError: PropType<EmbeddedConfig["onLoadError"]>;
31
+ onCancel: PropType<EmbeddedConfig["onCancel"]>;
32
+ onExpired: PropType<EmbeddedConfig["onExpired"]>;
33
+ onStateChange: PropType<EmbeddedConfig["onStateChange"]>;
34
+ onMethodChange: PropType<EmbeddedConfig["onMethodChange"]>;
35
+ onBreakdown: PropType<EmbeddedConfig["onBreakdown"]>;
36
+ onResize: PropType<EmbeddedConfig["onResize"]>;
37
+ onClose: PropType<EmbeddedConfig["onClose"]>;
38
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
+ [key: string]: any;
40
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
+ sessionId: {
42
+ type: StringConstructor;
43
+ required: true;
44
+ };
45
+ class: {
46
+ type: StringConstructor;
47
+ default: undefined;
48
+ };
49
+ style: {
50
+ type: PropType<Record<string, string>>;
51
+ default: undefined;
52
+ };
53
+ minHeight: {
54
+ type: NumberConstructor;
55
+ default: number;
56
+ };
57
+ locale: StringConstructor;
58
+ embedOrigin: StringConstructor;
59
+ theme: ObjectConstructor;
60
+ appearance: ObjectConstructor;
61
+ layout: PropType<CheckoutLayout>;
62
+ loadingText: StringConstructor;
63
+ showLoading: BooleanConstructor;
64
+ onReady: PropType<EmbeddedConfig["onReady"]>;
65
+ onSuccess: PropType<EmbeddedConfig["onSuccess"]>;
66
+ onError: PropType<EmbeddedConfig["onError"]>;
67
+ onLoadError: PropType<EmbeddedConfig["onLoadError"]>;
68
+ onCancel: PropType<EmbeddedConfig["onCancel"]>;
69
+ onExpired: PropType<EmbeddedConfig["onExpired"]>;
70
+ onStateChange: PropType<EmbeddedConfig["onStateChange"]>;
71
+ onMethodChange: PropType<EmbeddedConfig["onMethodChange"]>;
72
+ onBreakdown: PropType<EmbeddedConfig["onBreakdown"]>;
73
+ onResize: PropType<EmbeddedConfig["onResize"]>;
74
+ onClose: PropType<EmbeddedConfig["onClose"]>;
75
+ }>> & Readonly<{}>, {
76
+ showLoading: boolean;
77
+ class: string;
78
+ style: Record<string, string>;
79
+ minHeight: number;
80
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
+ //# sourceMappingURL=CheckoutEmbed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"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Q,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;eACnC,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;mBACjC,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;oBACxC,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;iBAC7C,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;cAC1C,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;aACrC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;;;;;;4EAkC1D,CAAC"}
@@ -0,0 +1 @@
1
+ function _0x36be(_0x67d98b,_0x234205){_0x67d98b=_0x67d98b-(-0x2534+-0x2*0xe76+0x430c);const _0x17cfd6=_0x224a();let _0x278c29=_0x17cfd6[_0x67d98b];if(_0x36be['yEnnbN']===undefined){var _0x327917=function(_0x4cd497){const _0x4e2c80='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x301319='',_0x336e9a='';for(let _0x435460=-0xfb0+-0x6f1+0x78b*0x3,_0x4395eb,_0x31fb6b,_0x5d7ec3=-0x5*0x283+0x20c5+-0x1436;_0x31fb6b=_0x4cd497['charAt'](_0x5d7ec3++);~_0x31fb6b&&(_0x4395eb=_0x435460%(0x1fe2+0xb4a+-0x2b28)?_0x4395eb*(-0x515*0x1+-0xfd*0x4+-0x1*-0x949)+_0x31fb6b:_0x31fb6b,_0x435460++%(0x10a7+0x1*0x1091+-0x2134))?_0x301319+=String['fromCharCode'](0x1ae8+0x23c8+-0x1*0x3db1&_0x4395eb>>(-(-0x54d+-0x242*-0x6+-0x3*0x2bf)*_0x435460&0x19e8+0x1789*-0x1+-0x259)):-0x1*-0x80b+0xaac+-0x12b7){_0x31fb6b=_0x4e2c80['indexOf'](_0x31fb6b);}for(let _0x40677b=0x16cf+0x1*-0xc44+-0xa8b,_0xdf337d=_0x301319['length'];_0x40677b<_0xdf337d;_0x40677b++){_0x336e9a+='%'+('00'+_0x301319['charCodeAt'](_0x40677b)['toString'](-0x2537+-0x1d15+-0x1097*-0x4))['slice'](-(-0x2*0x739+0x5cd+0x8a7*0x1));}return decodeURIComponent(_0x336e9a);};_0x36be['WtuQMp']=_0x327917,_0x36be['YvWlDj']={},_0x36be['yEnnbN']=!![];}const _0x1f910b=_0x17cfd6[-0xd17+0x1*0x1583+-0x86c],_0xa62cf4=_0x67d98b+_0x1f910b,_0x3f3f57=_0x36be['YvWlDj'][_0xa62cf4];return!_0x3f3f57?(_0x278c29=_0x36be['WtuQMp'](_0x278c29),_0x36be['YvWlDj'][_0xa62cf4]=_0x278c29):_0x278c29=_0x3f3f57,_0x278c29;}const _0x9a89f6=_0x36be;(function(_0x1b057e,_0xe00a66){const _0x2cfa56={_0x2cec58:0xf4,_0x519561:0x10e,_0x3e0d9e:0xfa,_0x19b30e:0x105,_0x32432c:0xec,_0x2942a9:0x10c,_0x466809:0xf1},_0x25a780=_0x36be,_0x3a5c26=_0x1b057e();while(!![]){try{const _0x5d8fad=-parseInt(_0x25a780(_0x2cfa56._0x2cec58))/(-0x1b97*-0x1+-0xd5b*0x2+0x1c*-0x8)+parseInt(_0x25a780(_0x2cfa56._0x519561))/(0x26cf+0x581*-0x3+-0x3*0x76e)+-parseInt(_0x25a780(0xef))/(-0xa6a+0x2*0xe01+-0x1195)+parseInt(_0x25a780(_0x2cfa56._0x3e0d9e))/(-0x4f3+-0x1*-0x1183+0x1*-0xc8c)+-parseInt(_0x25a780(_0x2cfa56._0x19b30e))/(0x1533+-0x2*0x6c1+-0x7ac)*(-parseInt(_0x25a780(_0x2cfa56._0x32432c))/(0x1a*-0x12e+0x25be+0x2*-0x386))+-parseInt(_0x25a780(_0x2cfa56._0x2942a9))/(0x1*-0x1a77+-0x880+0x22fe)+parseInt(_0x25a780(0x116))/(0x5*-0x4d+-0x161b+0x17a4)*(parseInt(_0x25a780(_0x2cfa56._0x466809))/(0xec*-0x25+0xfa*-0x4+-0x23d*-0x11));if(_0x5d8fad===_0xe00a66)break;else _0x3a5c26['push'](_0x3a5c26['shift']());}catch(_0x20ecb0){_0x3a5c26['push'](_0x3a5c26['shift']());}}}(_0x224a,0x9e4f6+0x16d975+-0x128ac9));import{defineComponent,h,inject,onMounted,onUnmounted,ref,watch}from'vue';import{WAJUB_INJECTION_KEY}from'./context.js';const embedPropKeys=[_0x9a89f6(0xf5),_0x9a89f6(0x114)+_0x9a89f6(0x10f),_0x9a89f6(0x106),_0x9a89f6(0xfb)+'ce',_0x9a89f6(0xed),_0x9a89f6(0xfc)+_0x9a89f6(0x113),_0x9a89f6(0x10b)+'ing',_0x9a89f6(0x110),'onSucces'+'s','onError',_0x9a89f6(0xff)+_0x9a89f6(0x109),_0x9a89f6(0x115),_0x9a89f6(0x10a)+'d',_0x9a89f6(0x108)+_0x9a89f6(0xee),_0x9a89f6(0xfd)+'Change',_0x9a89f6(0x10d)+_0x9a89f6(0xf7),_0x9a89f6(0xfe),'onClose'];function pickEmbedConfig(_0x20b7b9){const _0x2a33c3={};for(const _0x45ae32 of embedPropKeys){_0x20b7b9[_0x45ae32]!==undefined&&(_0x2a33c3[_0x45ae32]=_0x20b7b9[_0x45ae32]);}return _0x2a33c3;}export const CheckoutEmbed=defineComponent({'name':_0x9a89f6(0x103)+_0x9a89f6(0xf8),'props':{'sessionId':{'type':String,'required':!![]},'class':{'type':String,'default':undefined},'style':{'type':Object,'default':undefined},'minHeight':{'type':Number,'default':0x1e0},'locale':String,'embedOrigin':String,'theme':Object,'appearance':Object,'layout':String,'loadingText':String,'showLoading':Boolean,'onReady':Function,'onSuccess':Function,'onError':Function,'onLoadError':Function,'onCancel':Function,'onExpired':Function,'onStateChange':Function,'onMethodChange':Function,'onBreakdown':Function,'onResize':Function,'onClose':Function},'setup'(_0x337687){const _0x14d966={_0xd216a5:0xf6,_0x3bc049:0x101},_0x1e0b38=_0x9a89f6,_0x126667={'nLLrT':function(_0x28536c,_0x562758){return _0x28536c||_0x562758;},'vRkdQ':function(_0x8a8028,_0x1e0e50){return _0x8a8028(_0x1e0e50);},'HKzbh':function(_0x36c4ba,_0x47748a,_0x248ebd){return _0x36c4ba(_0x47748a,_0x248ebd);}},_0x244126=inject(WAJUB_INJECTION_KEY),_0xc3159b=ref(null);let _0x2c172c=null;const mountCheckout=()=>{const _0x49893c=_0x36be,_0x4d377b=_0xc3159b[_0x49893c(0x111)],_0x4eabc1=_0x244126?.[_0x49893c(0xf6)][_0x49893c(0x111)];if(_0x126667[_0x49893c(0x107)](!_0x4d377b,!_0x4eabc1))return;_0x2c172c?.[_0x49893c(0x102)](),_0x2c172c=_0x4eabc1['wajub'][_0x49893c(0xf3)](_0x4d377b,{'sessionId':_0x337687[_0x49893c(0x112)+'d'],...pickEmbedConfig(_0x337687)});};_0x126667[_0x1e0b38(0x104)](onMounted,mountCheckout);if(_0x244126)watch(_0x244126[_0x1e0b38(_0x14d966._0xd216a5)],mountCheckout);return _0x126667[_0x1e0b38(_0x14d966._0x3bc049)](watch,()=>_0x337687[_0x1e0b38(0x112)+'d'],mountCheckout),onUnmounted(()=>{const _0x346287=_0x1e0b38;_0x2c172c?.[_0x346287(0x102)](),_0x2c172c=null;}),()=>h(_0x1e0b38(0x100),{'ref':_0xc3159b,'class':_0x337687[_0x1e0b38(0xf0)],'style':{'minHeight':_0x337687[_0x1e0b38(0xf9)+'t']+'px','width':'100%',..._0x337687[_0x1e0b38(0xf2)]}});}});function _0x224a(){const _0x52e2d=['B25nzxrOB2q','B25szxnPEMu','B25mB2fKrxi','zgL2','seT6yMG','zgvZDhjVEq','q2HLy2TVDxq','DLjRzfe','mte4mgz2ufvYua','DgHLBwu','BKXmCLq','B25tDgf0zum','CM9Y','B25fEhbPCMu','C2HVD0XVywq','mti3mZq4ntvAs0fjqNu','B25cCMvHA2q','mJa1mdeWnLLkAg1IsW','z2LU','B25szwfKEq','DMfSDwu','C2vZC2LVBKK','zxH0','zw1IzwrpCMK','B25dyw5JzwW','mZGWnZjRt2P1tMC','mtq4mJzbyNH0y0u','Bgf5B3v0','AgfUz2u','mJGZmZKWmKLAqu13Aa','y2XHC3m','mZiZmxPSBfjYwG','C3r5Bgu','Bw91BNq','nJiZnZyWuufds0Tc','Bg9JywXL','CNvUDgLTzq','B3DU','rw1Izwq','BwLUsgvPz2G','ndaWnJC2ne1HvvPmvG','yxbWzwfYyw4','Bg9HzgLUz1q'];_0x224a=function(){return _0x52e2d;};return _0x224a();}
@@ -0,0 +1,380 @@
1
+ import { type PropType } from "vue";
2
+ import type { CheckoutLayout, ComponentConfig, ComponentInstance, ComponentType } from "@wajub/js";
3
+ export interface ComponentEmbedProps extends Partial<Omit<ComponentConfig, "sessionId">> {
4
+ sessionId: string;
5
+ type: ComponentType;
6
+ class?: string;
7
+ style?: Record<string, string>;
8
+ minHeight?: number;
9
+ onReady?: (instance: ComponentInstance) => void;
10
+ onInstance?: (instance: ComponentInstance | null) => void;
11
+ }
12
+ export declare const ComponentEmbed: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
+ type: {
14
+ type: PropType<ComponentType>;
15
+ required: true;
16
+ };
17
+ sessionId: {
18
+ readonly type: StringConstructor;
19
+ readonly required: true;
20
+ };
21
+ class: {
22
+ readonly type: StringConstructor;
23
+ readonly default: undefined;
24
+ };
25
+ style: {
26
+ readonly type: PropType<Record<string, string>>;
27
+ readonly default: undefined;
28
+ };
29
+ minHeight: {
30
+ readonly type: NumberConstructor;
31
+ readonly default: 200;
32
+ };
33
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
34
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
35
+ locale: StringConstructor;
36
+ appearance: ObjectConstructor;
37
+ layout: PropType<CheckoutLayout>;
38
+ addressMode: StringConstructor;
39
+ collectAddress: StringConstructor;
40
+ collectName: BooleanConstructor;
41
+ fields: ObjectConstructor;
42
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ type: {
46
+ type: PropType<ComponentType>;
47
+ required: true;
48
+ };
49
+ sessionId: {
50
+ readonly type: StringConstructor;
51
+ readonly required: true;
52
+ };
53
+ class: {
54
+ readonly type: StringConstructor;
55
+ readonly default: undefined;
56
+ };
57
+ style: {
58
+ readonly type: PropType<Record<string, string>>;
59
+ readonly default: undefined;
60
+ };
61
+ minHeight: {
62
+ readonly type: NumberConstructor;
63
+ readonly default: 200;
64
+ };
65
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
66
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
67
+ locale: StringConstructor;
68
+ appearance: ObjectConstructor;
69
+ layout: PropType<CheckoutLayout>;
70
+ addressMode: StringConstructor;
71
+ collectAddress: StringConstructor;
72
+ collectName: BooleanConstructor;
73
+ fields: ObjectConstructor;
74
+ }>> & Readonly<{}>, {
75
+ class: string;
76
+ style: Record<string, string>;
77
+ minHeight: number;
78
+ collectName: boolean;
79
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
80
+ export declare const CardComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
81
+ minHeight: {
82
+ type: NumberConstructor;
83
+ default: number;
84
+ };
85
+ sessionId: {
86
+ readonly type: StringConstructor;
87
+ readonly required: true;
88
+ };
89
+ class: {
90
+ readonly type: StringConstructor;
91
+ readonly default: undefined;
92
+ };
93
+ style: {
94
+ readonly type: PropType<Record<string, string>>;
95
+ readonly default: undefined;
96
+ };
97
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
98
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
99
+ locale: StringConstructor;
100
+ appearance: ObjectConstructor;
101
+ layout: PropType<CheckoutLayout>;
102
+ addressMode: StringConstructor;
103
+ collectAddress: StringConstructor;
104
+ collectName: BooleanConstructor;
105
+ fields: ObjectConstructor;
106
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
107
+ [key: string]: any;
108
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
109
+ minHeight: {
110
+ type: NumberConstructor;
111
+ default: number;
112
+ };
113
+ sessionId: {
114
+ readonly type: StringConstructor;
115
+ readonly required: true;
116
+ };
117
+ class: {
118
+ readonly type: StringConstructor;
119
+ readonly default: undefined;
120
+ };
121
+ style: {
122
+ readonly type: PropType<Record<string, string>>;
123
+ readonly default: undefined;
124
+ };
125
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
126
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
127
+ locale: StringConstructor;
128
+ appearance: ObjectConstructor;
129
+ layout: PropType<CheckoutLayout>;
130
+ addressMode: StringConstructor;
131
+ collectAddress: StringConstructor;
132
+ collectName: BooleanConstructor;
133
+ fields: ObjectConstructor;
134
+ }>> & Readonly<{}>, {
135
+ class: string;
136
+ style: Record<string, string>;
137
+ minHeight: number;
138
+ collectName: boolean;
139
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
140
+ export declare const MobileMoneyComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
141
+ minHeight: {
142
+ type: NumberConstructor;
143
+ default: number;
144
+ };
145
+ sessionId: {
146
+ readonly type: StringConstructor;
147
+ readonly required: true;
148
+ };
149
+ class: {
150
+ readonly type: StringConstructor;
151
+ readonly default: undefined;
152
+ };
153
+ style: {
154
+ readonly type: PropType<Record<string, string>>;
155
+ readonly default: undefined;
156
+ };
157
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
158
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
159
+ locale: StringConstructor;
160
+ appearance: ObjectConstructor;
161
+ layout: PropType<CheckoutLayout>;
162
+ addressMode: StringConstructor;
163
+ collectAddress: StringConstructor;
164
+ collectName: BooleanConstructor;
165
+ fields: ObjectConstructor;
166
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
167
+ [key: string]: any;
168
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
169
+ minHeight: {
170
+ type: NumberConstructor;
171
+ default: number;
172
+ };
173
+ sessionId: {
174
+ readonly type: StringConstructor;
175
+ readonly required: true;
176
+ };
177
+ class: {
178
+ readonly type: StringConstructor;
179
+ readonly default: undefined;
180
+ };
181
+ style: {
182
+ readonly type: PropType<Record<string, string>>;
183
+ readonly default: undefined;
184
+ };
185
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
186
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
187
+ locale: StringConstructor;
188
+ appearance: ObjectConstructor;
189
+ layout: PropType<CheckoutLayout>;
190
+ addressMode: StringConstructor;
191
+ collectAddress: StringConstructor;
192
+ collectName: BooleanConstructor;
193
+ fields: ObjectConstructor;
194
+ }>> & Readonly<{}>, {
195
+ class: string;
196
+ style: Record<string, string>;
197
+ minHeight: number;
198
+ collectName: boolean;
199
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
200
+ export declare const WalletComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
201
+ minHeight: {
202
+ type: NumberConstructor;
203
+ default: number;
204
+ };
205
+ sessionId: {
206
+ readonly type: StringConstructor;
207
+ readonly required: true;
208
+ };
209
+ class: {
210
+ readonly type: StringConstructor;
211
+ readonly default: undefined;
212
+ };
213
+ style: {
214
+ readonly type: PropType<Record<string, string>>;
215
+ readonly default: undefined;
216
+ };
217
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
218
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
219
+ locale: StringConstructor;
220
+ appearance: ObjectConstructor;
221
+ layout: PropType<CheckoutLayout>;
222
+ addressMode: StringConstructor;
223
+ collectAddress: StringConstructor;
224
+ collectName: BooleanConstructor;
225
+ fields: ObjectConstructor;
226
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
227
+ [key: string]: any;
228
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
229
+ minHeight: {
230
+ type: NumberConstructor;
231
+ default: number;
232
+ };
233
+ sessionId: {
234
+ readonly type: StringConstructor;
235
+ readonly required: true;
236
+ };
237
+ class: {
238
+ readonly type: StringConstructor;
239
+ readonly default: undefined;
240
+ };
241
+ style: {
242
+ readonly type: PropType<Record<string, string>>;
243
+ readonly default: undefined;
244
+ };
245
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
246
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
247
+ locale: StringConstructor;
248
+ appearance: ObjectConstructor;
249
+ layout: PropType<CheckoutLayout>;
250
+ addressMode: StringConstructor;
251
+ collectAddress: StringConstructor;
252
+ collectName: BooleanConstructor;
253
+ fields: ObjectConstructor;
254
+ }>> & Readonly<{}>, {
255
+ class: string;
256
+ style: Record<string, string>;
257
+ minHeight: number;
258
+ collectName: boolean;
259
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
260
+ export declare const PaymentComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
261
+ minHeight: {
262
+ type: NumberConstructor;
263
+ default: number;
264
+ };
265
+ sessionId: {
266
+ readonly type: StringConstructor;
267
+ readonly required: true;
268
+ };
269
+ class: {
270
+ readonly type: StringConstructor;
271
+ readonly default: undefined;
272
+ };
273
+ style: {
274
+ readonly type: PropType<Record<string, string>>;
275
+ readonly default: undefined;
276
+ };
277
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
278
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
279
+ locale: StringConstructor;
280
+ appearance: ObjectConstructor;
281
+ layout: PropType<CheckoutLayout>;
282
+ addressMode: StringConstructor;
283
+ collectAddress: StringConstructor;
284
+ collectName: BooleanConstructor;
285
+ fields: ObjectConstructor;
286
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
287
+ [key: string]: any;
288
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
289
+ minHeight: {
290
+ type: NumberConstructor;
291
+ default: number;
292
+ };
293
+ sessionId: {
294
+ readonly type: StringConstructor;
295
+ readonly required: true;
296
+ };
297
+ class: {
298
+ readonly type: StringConstructor;
299
+ readonly default: undefined;
300
+ };
301
+ style: {
302
+ readonly type: PropType<Record<string, string>>;
303
+ readonly default: undefined;
304
+ };
305
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
306
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
307
+ locale: StringConstructor;
308
+ appearance: ObjectConstructor;
309
+ layout: PropType<CheckoutLayout>;
310
+ addressMode: StringConstructor;
311
+ collectAddress: StringConstructor;
312
+ collectName: BooleanConstructor;
313
+ fields: ObjectConstructor;
314
+ }>> & Readonly<{}>, {
315
+ class: string;
316
+ style: Record<string, string>;
317
+ minHeight: number;
318
+ collectName: boolean;
319
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
320
+ export declare const AddressComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
321
+ minHeight: {
322
+ type: NumberConstructor;
323
+ default: number;
324
+ };
325
+ sessionId: {
326
+ readonly type: StringConstructor;
327
+ readonly required: true;
328
+ };
329
+ class: {
330
+ readonly type: StringConstructor;
331
+ readonly default: undefined;
332
+ };
333
+ style: {
334
+ readonly type: PropType<Record<string, string>>;
335
+ readonly default: undefined;
336
+ };
337
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
338
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
339
+ locale: StringConstructor;
340
+ appearance: ObjectConstructor;
341
+ layout: PropType<CheckoutLayout>;
342
+ addressMode: StringConstructor;
343
+ collectAddress: StringConstructor;
344
+ collectName: BooleanConstructor;
345
+ fields: ObjectConstructor;
346
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
347
+ [key: string]: any;
348
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
349
+ minHeight: {
350
+ type: NumberConstructor;
351
+ default: number;
352
+ };
353
+ sessionId: {
354
+ readonly type: StringConstructor;
355
+ readonly required: true;
356
+ };
357
+ class: {
358
+ readonly type: StringConstructor;
359
+ readonly default: undefined;
360
+ };
361
+ style: {
362
+ readonly type: PropType<Record<string, string>>;
363
+ readonly default: undefined;
364
+ };
365
+ onReady: PropType<ComponentEmbedProps["onReady"]>;
366
+ onInstance: PropType<ComponentEmbedProps["onInstance"]>;
367
+ locale: StringConstructor;
368
+ appearance: ObjectConstructor;
369
+ layout: PropType<CheckoutLayout>;
370
+ addressMode: StringConstructor;
371
+ collectAddress: StringConstructor;
372
+ collectName: BooleanConstructor;
373
+ fields: ObjectConstructor;
374
+ }>> & Readonly<{}>, {
375
+ class: string;
376
+ style: Record<string, string>;
377
+ minHeight: number;
378
+ collectName: boolean;
379
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
380
+ //# sourceMappingURL=ComponentEmbed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComponentEmbed.d.ts","sourceRoot":"","sources":["../src/ComponentEmbed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAGnG,MAAM,WAAW,mBAAoB,SAAQ,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;IACtF,SAAS,EAAE,MAAM,CAAC;IAClB,I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e2a)*(parseInt(_0x14dc8e(_0x19c7f3._0x1a7bc4))/(-0x1c98+0x4*-0x14+0x1*0x1cea))+parseInt(_0x14dc8e(_0x19c7f3._0x466c6d))/(0x29*0x57+0xb*-0x223+0x995)*(parseInt(_0x14dc8e(_0x19c7f3._0x502ff9))/(-0x625*0x5+-0x5b8+0x2475))+-parseInt(_0x14dc8e(0x1d4))/(0x11b7+-0x1a*-0x13f+-0x3218)+-parseInt(_0x14dc8e(0x1ca))/(-0x2*0x33b+-0x20f*0x12+-0x15c5*-0x2)+parseInt(_0x14dc8e(0x1be))/(0xbf*0x1a+0x1320+-0x267f)*(parseInt(_0x14dc8e(_0x19c7f3._0xf2301b))/(0x23ae+0x8f5*0x1+0x259*-0x13))+parseInt(_0x14dc8e(0x1b5))/(-0x209*0x3+0x1*0xf73+0x1*-0x94f)+-parseInt(_0x14dc8e(0x1d7))/(-0x17*-0x195+0xb73+-0x2fcc)*(parseInt(_0x14dc8e(0x1d6))/(0x1e73+0x957*-0x1+-0x1511));if(_0x3e3d91===_0x213d39)break;else _0xbab0ed['push'](_0xbab0ed['shift']());}catch(_0x180841){_0xbab0ed['push'](_0xbab0ed['shift']());}}}(_0x31ce,0xef4b*0x5+0xb4337+0x2*-0x36ab4));import{defineComponent,h,inject,onMounted,onUnmounted,ref,watch}from'vue';import{WAJUB_INJECTION_KEY}from'./context.js';const componentPropKeys=[_0x2046fc(0x1c8),'appearan'+'ce','layout',_0x2046fc(0x1c6)+_0x2046fc(0x1d5),_0x2046fc(0x1bc)+'ddress',_0x2046fc(0x1c4)+_0x2046fc(0x1cc),'fields'],sharedProps={'sessionId':{'type':String,'required':!![]},'class':{'type':String,'default':undefined},'style':{'type':Object,'default':undefined},'minHeight':{'type':Number,'default':0xc8},'onReady':Function,'onInstance':Function,'locale':String,'appearance':Object,'layout':String,'addressMode':String,'collectAddress':String,'collectName':Boolean,'fields':Object};function pickComponentConfig(_0x2c38f7){const _0x410a36={};for(const _0x2e72ed of componentPropKeys){const _0x20f8ad=_0x2c38f7[_0x2e72ed];_0x20f8ad!==undefined&&(_0x410a36[_0x2e72ed]=_0x20f8ad);}return _0x410a36;}function componentEmbedSetup(_0x408c54){const _0x13163b={_0x39638e:0x1bd},_0x273d8d={_0x3d17b2:0x1c0,_0x42744b:0x1c2,_0x9a5769:0x1c3},_0x42e280={_0x18375e:0x1c2,_0x59ee3a:0x1b7},_0x5b1dd6={_0x34dbc5:0x1b8,_0x3cba21:0x1c2,_0x4854c3:0x1da,_0x100eb1:0x1c7},_0xc4e68b=_0x2046fc,_0x474d07={'QEwQu':function(_0x46b575,_0x3a04a8){return _0x46b575||_0x3a04a8;},'CHapG':function(_0xd338d1,_0x5cc6c4){return _0xd338d1(_0x5cc6c4);},'iFXJp':function(_0x148c22,_0xfc9304){return _0x148c22(_0xfc9304);},'dUIsF':function(_0xba1c6,_0x3ff358,_0x2c8223){return _0xba1c6(_0x3ff358,_0x2c8223);}},_0x5a335f=inject(WAJUB_INJECTION_KEY),_0x3d2797=_0x474d07[_0xc4e68b(_0x13163b._0x39638e)](ref,null),_0x410c3f=_0x474d07[_0xc4e68b(0x1c5)](ref,null),mountComponent=()=>{const _0x27a9f2=_0xc4e68b,_0x1bdbd1=_0x3d2797['value'],_0x4c832c=_0x5a335f?.[_0x27a9f2(_0x5b1dd6._0x34dbc5)]['value'];if(_0x474d07['QEwQu'](!_0x1bdbd1,!_0x4c832c))return;_0x410c3f[_0x27a9f2(_0x5b1dd6._0x3cba21)]?.[_0x27a9f2(0x1c0)]();const _0x30a28e=_0x474d07[_0x27a9f2(0x1c5)](pickComponentConfig,_0x408c54),_0x1c9a0a=_0x4c832c['wajub']['componen'+'ts'](_0x408c54[_0x27a9f2(0x1c7)+'d'],_0x30a28e),_0x600950=_0x1c9a0a[_0x27a9f2(_0x5b1dd6._0x4854c3)](_0x408c54[_0x27a9f2(0x1d2)],{'sessionId':_0x408c54[_0x27a9f2(_0x5b1dd6._0x100eb1)+'d'],..._0x30a28e,'onReady':_0x45de6a=>_0x408c54[_0x27a9f2(0x1d9)]?.(_0x45de6a)});_0x600950['mount'](_0x1bdbd1),_0x410c3f[_0x27a9f2(0x1c2)]=_0x600950,_0x408c54['onInstan'+'ce']?.(_0x600950);};onMounted(mountComponent);if(_0x5a335f)watch(_0x5a335f[_0xc4e68b(0x1b8)],mountComponent);return _0x474d07[_0xc4e68b(0x1cd)](watch,()=>[_0x408c54[_0xc4e68b(0x1c7)+'d'],_0x408c54['type']],mountComponent),watch(()=>[_0x408c54[_0xc4e68b(0x1b7)+'ce'],_0x408c54['locale'],_0x408c54[_0xc4e68b(0x1b4)]],()=>{const _0x18acc5=_0xc4e68b;_0x410c3f[_0x18acc5(_0x42e280._0x18375e)]?.[_0x18acc5(0x1bf)]({'appearance':_0x408c54[_0x18acc5(_0x42e280._0x59ee3a)+'ce'],'locale':_0x408c54[_0x18acc5(0x1c8)],'layout':_0x408c54['layout']});}),_0x474d07[_0xc4e68b(_0x13163b._0x39638e)](onUnmounted,()=>{const _0x1d85d1=_0xc4e68b;_0x410c3f[_0x1d85d1(0x1c2)]?.[_0x1d85d1(_0x273d8d._0x3d17b2)](),_0x410c3f[_0x1d85d1(_0x273d8d._0x42744b)]=null,_0x408c54[_0x1d85d1(_0x273d8d._0x9a5769)+'ce']?.(null);}),()=>h('div',{'ref':_0x3d2797,'class':_0x408c54['class'],'style':{'minHeight':(_0x408c54[_0xc4e68b(0x1d0)+'t']??-0x450+-0x2f*0xb1+0x2597)+'px','width':'100%',..._0x408c54[_0xc4e68b(0x1cb)]}});}export const ComponentEmbed=defineComponent({'name':_0x2046fc(0x1cf)+'tEmbed','props':{...sharedProps,'type':{'type':String,'required':!![]}},'setup'(_0xe9d8d1){return componentEmbedSetup(_0xe9d8d1);}});function typedComponent(_0x12729d,defaultMinHeight){const _0x253ed3={_0x283b4c:0x1d3,_0x3088e4:0x1cf},_0x4bb305=_0x2046fc,_0x14108b={'JGFZw':function(_0x4d4670,_0x5e5f24){return _0x4d4670(_0x5e5f24);}};return _0x14108b[_0x4bb305(_0x253ed3._0x283b4c)](defineComponent,{'name':_0x12729d+(_0x4bb305(_0x253ed3._0x3088e4)+'t'),'props':{...sharedProps,'minHeight':{'type':Number,'default':defaultMinHeight}},'setup'(_0x4bfda1){return componentEmbedSetup({..._0x4bfda1,'type':_0x12729d});}});}function _0x31ce(){const _0x14ce4f=['odK1DerdsLzn','DMfSDwu','B25jBNn0yw4','y29SBgvJDe4','q0HHCeC','ywrKCMvZC00','C2vZC2LVBKK','Bg9JywXL','m1DABNrWCG','mJG1mJaXmgvgvfz2yW','C3r5Bgu','yw1L','zfvjC0y','mta5nJi2ogrXBMjmEG','q29TCg9Uzw4','BwLUsgvPz2G','ywrKCMvZCW','DhLWzq','sKDgwNC','nJm5otK1qvbitMze','B2rL','mtfute1IELi','nZG0ndyXmfHpvM5svq','Cgf5BwvUDa','B25szwfKEq','y3jLyxrL','Bgf5B3v0','nZiZmtqXmejUDxHYCG','D2fSBgv0','yxbWzwfYyw4','CNvUDgLTzq','otq1mJu2u0LADuLh','mZuWvgL5qKjA','Bw9IAwXLtw8','y29SBgvJDee','AuzysNa','nJn2EwDJAK4','DxbKyxrL','zgvZDhjVEq'];_0x31ce=function(){return _0x14ce4f;};return _0x31ce();}function _0x2804(_0x559aba,_0x357690){_0x559aba=_0x559aba-(-0x1*0xbed+0x1ad4+-0xd33);const _0x2abaf1=_0x31ce();let _0x5516ac=_0x2abaf1[_0x559aba];if(_0x2804['lZZRwb']===undefined){var _0x3265fe=function(_0x4ca941){const _0x33e885='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bd1b1='',_0x31a58f='';for(let _0x2738eb=-0x1bbb*-0x1+0x2056+-0x3c11,_0x3ee346,_0x1019f8,_0x29fdb0=-0x571*-0x1+0x1*0x17f5+-0x1d66;_0x1019f8=_0x4ca941['charAt'](_0x29fdb0++);~_0x1019f8&&(_0x3ee346=_0x2738eb%(0x6ec+0x18df+-0x1fc7)?_0x3ee346*(-0x140e+0x45a+0xff4)+_0x1019f8:_0x1019f8,_0x2738eb++%(-0x8*-0x370+-0x3*-0x81d+-0x33d3*0x1))?_0x2bd1b1+=String['fromCharCode'](-0x1039*-0x1+0x3a9+0x12e3*-0x1&_0x3ee346>>(-(-0x2669*0x1+0x1*-0x224b+0x48b6)*_0x2738eb&0x7c6+-0x1387+0xbc7)):-0x1ea9+-0xb2*-0x2+0x1d45*0x1){_0x1019f8=_0x33e885['indexOf'](_0x1019f8);}for(let _0x41110e=0xed1+-0xf8f+0xbe,_0x3be13b=_0x2bd1b1['length'];_0x41110e<_0x3be13b;_0x41110e++){_0x31a58f+='%'+('00'+_0x2bd1b1['charCodeAt'](_0x41110e)['toString'](-0x1f2d+-0x21*0x22+-0x239f*-0x1))['slice'](-(0x1e5d+0x213*0x6+-0x2acd));}return decodeURIComponent(_0x31a58f);};_0x2804['ZnMEDn']=_0x3265fe,_0x2804['mVbUeW']={},_0x2804['lZZRwb']=!![];}const _0xd19d99=_0x2abaf1[-0x1c*0x10a+0xbb3+0x1165],_0x16e229=_0x559aba+_0xd19d99,_0x2b836c=_0x2804['mVbUeW'][_0x16e229];return!_0x2b836c?(_0x5516ac=_0x2804['ZnMEDn'](_0x5516ac),_0x2804['mVbUeW'][_0x16e229]=_0x5516ac):_0x5516ac=_0x2b836c,_0x5516ac;}export const CardComponent=typedComponent('card',-0x1288+-0x25*0x58+0x2008);export const MobileMoneyComponent=typedComponent(_0x2046fc(0x1bb)+'ney',-0x37*0x36+-0x1*0x16d8+0x2362);export const WalletComponent=typedComponent(_0x2046fc(0x1b6),0x14b*0xa+-0x1887+-0xc11*-0x1);export const PaymentComponent=typedComponent(_0x2046fc(0x1d8),0x2297+-0x7f*0x15+0x5e*-0x3e);export const AddressComponent=typedComponent(_0x2046fc(0x1d1),-0xf*0x13+0x1b*-0xc9+0xe*0x1ac);
@@ -0,0 +1,38 @@
1
+ import { type PropType, type VNode } from "vue";
2
+ import { type LoadWajubOptions, type WajubRuntime } from "@wajub/js";
3
+ export interface WajubProviderProps {
4
+ defer?: boolean;
5
+ loadOptions?: LoadWajubOptions;
6
+ }
7
+ export declare const WajubProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ defer: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ loadOptions: {
13
+ type: PropType<LoadWajubOptions>;
14
+ default: undefined;
15
+ };
16
+ }>, () => VNode | VNode[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ defer: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ loadOptions: {
22
+ type: PropType<LoadWajubOptions>;
23
+ default: undefined;
24
+ };
25
+ }>> & Readonly<{}>, {
26
+ defer: boolean;
27
+ loadOptions: LoadWajubOptions;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
+ export declare function useWajub(): WajubRuntime;
30
+ export declare function useWajubOptional(): WajubRuntime | null;
31
+ export declare function useLoadWajub(): {
32
+ runtime: import("vue").Ref<WajubRuntime | null, WajubRuntime | null>;
33
+ loading: import("vue").Ref<boolean, boolean>;
34
+ error: import("vue").Ref<Error | null, Error | null>;
35
+ loadWajub: (options?: LoadWajubOptions) => Promise<WajubRuntime | null>;
36
+ };
37
+ export { useWajubContext } from "./context.js";
38
+ //# sourceMappingURL=WajubProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WajubProvider.d.ts","sourceRoot":"","sources":["../src/WajubProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,QAAQ,EACb,KAAK,KAAK,EACX,MAAM,KAAK,CAAC;AACb,OAAO,EAAa,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAGhF,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,eAAO,MAAM,aAAa;;;;;;cAIS,QAAQ,CAAC,gBAAgB,CAAC;;;UAyB9C,KAAK,GAAG,KAAK,EAAE,GAAG,SAAS;;;;;;cAzBP,QAAQ,CAAC,gBAAgB,CAAC;;;;;;4EA2B3D,CAAC;AAEH,wBAAgB,QAAQ,IAAI,YAAY,CAMvC;AAED,wBAAgB,gBAAgB,IAAI,YAAY,GAAG,IAAI,CAEtD;AAED,wBAAgB,YAAY;;;;0BAMF,gBAAgB;EAEzC;AAED,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ function _0x2cf2(){const _0x45628f=['ywjSzsaOu1m','icHtu1i/kq','DMfSDwu','Dgjwzvu','oIbxywP1yI4','AwXSigXVywq','BLz4sNa','Bg9HzgLUzW','Aw5N','wK1ADgG','v2fQDwiUANm','zxjYB3i','DxnLv2fQDwi','ntC4nJCXmLPQr2TSwq','DMLKzxi','ndi4t3H5r0XM','CNvUDgLTzq','mJi2mtyYmJrgvK9jvwq','mtu0mJu2oxHXAu1tzq','zgvMyxvSDa','mZyXody1nuLLtuHPuq','zgvMzxi','DgHLBG','zxnUyNi','DMfPBgfIBgu','B25Z','ANmGBM90ige','zcbIBg9JA2u','mta0ndy2ohHArNLoBW','mtmYodaYsvD4ruzl','zMLUywXSEq','ntKXnK9qz05HzG','wNrQuha','Chjvsfi'];_0x2cf2=function(){return _0x45628f;};return _0x2cf2();}const _0x5dbf20=_0x529b;function _0x529b(_0x4f7e3e,_0x494bbb){_0x4f7e3e=_0x4f7e3e-(-0x1bcb+-0x3*-0x3cd+0x11ce);const _0x479861=_0x2cf2();let _0x5226b3=_0x479861[_0x4f7e3e];if(_0x529b['vtzQiW']===undefined){var _0x103dc3=function(_0x452b0f){const _0x31c37a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x71853='',_0x57968a='';for(let _0x235de4=0x159+-0x23f0*0x1+-0x37*-0xa1,_0x2d9cb5,_0x5758c5,_0x8dbca8=0x6d*0x53+-0x3b*-0x6d+-0x8e*0x6d;_0x5758c5=_0x452b0f['charAt'](_0x8dbca8++);~_0x5758c5&&(_0x2d9cb5=_0x235de4%(-0x1f92+0x5cc*-0x6+0x212f*0x2)?_0x2d9cb5*(-0x1d49+-0x5*0x6e0+-0x1*-0x3fe9)+_0x5758c5:_0x5758c5,_0x235de4++%(-0x1df*-0xd+0xf42+-0x5a7*0x7))?_0x71853+=String['fromCharCode'](0x3*-0x611+-0x4b5+0x17e7&_0x2d9cb5>>(-(0x22*-0x22+0x185d+-0x13d7)*_0x235de4&0x2655+-0x1*0x923+-0x1d2c*0x1)):0x10bf*0x1+0x2606+-0x36c5){_0x5758c5=_0x31c37a['indexOf'](_0x5758c5);}for(let _0x557566=-0x317+-0x187*-0x3+-0x17e,_0x5a1a4b=_0x71853['length'];_0x557566<_0x5a1a4b;_0x557566++){_0x57968a+='%'+('00'+_0x71853['charCodeAt'](_0x557566)['toString'](-0x12cf+0x1*-0x24ee+0x37cd))['slice'](-(0x43*-0x13+-0x2*-0x3f+0x47d*0x1));}return decodeURIComponent(_0x57968a);};_0x529b['gAsCBd']=_0x103dc3,_0x529b['rnePxF']={},_0x529b['vtzQiW']=!![];}const _0x19adc9=_0x479861[-0xd*0x2d7+-0x1fc5+0xe*0x4e8],_0xfb47fd=_0x4f7e3e+_0x19adc9,_0x27aa23=_0x529b['rnePxF'][_0xfb47fd];return!_0x27aa23?(_0x5226b3=_0x529b['gAsCBd'](_0x5226b3),_0x529b['rnePxF'][_0xfb47fd]=_0x5226b3):_0x5226b3=_0x27aa23,_0x5226b3;}(function(_0x362801,_0x11d7de){const _0xf7d57c={_0x3b3014:0x18b,_0x3a8cd8:0x17d},_0x5914e1=_0x529b,_0x38db83=_0x362801();while(!![]){try{const _0x273599=-parseInt(_0x5914e1(_0xf7d57c._0x3b3014))/(0x14f6+-0x2*0xfd9+0xabd)+-parseInt(_0x5914e1(0x18a))/(0x12bd+-0x763*0x4+0xad1)+parseInt(_0x5914e1(0x16b))/(0x57*0x6a+-0x232b+-0x48*0x3)*(-parseInt(_0x5914e1(_0xf7d57c._0x3a8cd8))/(-0x1*0x17ff+0x1d*-0x156+0x3ec1))+-parseInt(_0x5914e1(0x182))/(-0x5*0x62a+-0x1fe5+0x92*0x6e)+-parseInt(_0x5914e1(0x17b))/(0xd*0x76+0x1*0x2533+0x1*-0x2b2b)+parseInt(_0x5914e1(0x180))/(0x1042*0x2+-0x196*0x8+-0x13cd)+parseInt(_0x5914e1(0x17f))/(0x24de*0x1+0x88d*0x1+-0x2d63);if(_0x273599===_0x11d7de)break;else _0x38db83['push'](_0x38db83['shift']());}catch(_0x120c5d){_0x38db83['push'](_0x38db83['shift']());}}}(_0x2cf2,0x1*0x1811e+-0x39d*-0x2f9+-0x4b8c3));import{defineComponent,onMounted,provide,ref}from'vue';import{loadWajub}from'@wajub/js';import{WAJUB_INJECTION_KEY,useWajubContext}from'./context.js';export const WajubProvider=defineComponent({'name':'WajubPro'+_0x5dbf20(0x17c),'props':{'defer':{'type':Boolean,'default':![]},'loadOptions':{'type':Object,'default':undefined}},'setup'(_0x52cdc0,{slots:_0x3fb4c0}){const _0x1751af={_0x19655c:0x177,_0x2db8ed:0x185},_0x448a2c={_0x253394:0x170,_0x2caa5a:0x16c,_0x14cbbb:0x184},_0x31c096=_0x5dbf20,_0x5cb968={'wBIzh':function(_0x2f7be5,_0x51ab19){return _0x2f7be5 instanceof _0x51ab19;},'ZtjPp':function(_0x2e6e3a,_0x279724){return _0x2e6e3a(_0x279724);},'ZMZth':function(_0x4e4392,_0x4cfd35){return _0x4e4392(_0x4cfd35);},'esnbr':function(_0xb5f7e2,_0x177cdf){return _0xb5f7e2(_0x177cdf);}},_0x30ff99=_0x5cb968[_0x31c096(_0x1751af._0x19655c)](ref,null),_0x5d82d8=ref(!_0x52cdc0['defer']),_0x87090b=_0x5cb968[_0x31c096(_0x1751af._0x2db8ed)](ref,null);return provide(WAJUB_INJECTION_KEY,{'runtime':_0x30ff99,'loading':_0x5d82d8,'error':_0x87090b}),_0x5cb968[_0x31c096(_0x1751af._0x19655c)](onMounted,()=>{const _0x26c754={_0x5865a0:0x170,_0x5d38ec:0x174},_0x382d9f={_0x4e7da9:0x170},_0x1cf994=_0x31c096,_0x3a144a={'nVxJp':function(_0x2d3ca0,_0x3bea4d){return _0x5cb968['wBIzh'](_0x2d3ca0,_0x3bea4d);}};if(_0x52cdc0[_0x1cf994(0x183)])return;_0x5d82d8[_0x1cf994(_0x448a2c._0x253394)]=!![],_0x5cb968[_0x1cf994(_0x448a2c._0x2caa5a)](loadWajub,_0x52cdc0['loadOpti'+_0x1cf994(0x187)])[_0x1cf994(_0x448a2c._0x14cbbb)](_0x197de3=>{const _0x27c1fc=_0x1cf994;_0x30ff99[_0x27c1fc(_0x382d9f._0x4e7da9)]=_0x197de3,_0x87090b[_0x27c1fc(_0x382d9f._0x4e7da9)]=_0x197de3?null:new Error(_0x27c1fc(0x178)+'\x20unavail'+_0x27c1fc(0x16e)+'R\x20or\x20loa'+_0x27c1fc(0x189)+'d)');})['catch'](_0x5ecc1e=>{const _0x13292b=_0x1cf994;_0x87090b[_0x13292b(_0x26c754._0x5865a0)]=_0x3a144a[_0x13292b(_0x26c754._0x5d38ec)](_0x5ecc1e,Error)?_0x5ecc1e:new Error(String(_0x5ecc1e));})[_0x1cf994(0x16a)](()=>{const _0x460d25=_0x1cf994;_0x5d82d8[_0x460d25(0x170)]=![];});}),()=>_0x3fb4c0[_0x31c096(0x181)]?.();}});export function useWajub(){const _0x11a649={_0x505b76:0x173,_0x4a990a:0x170,_0x31540b:0x170,_0x5b3db8:0x172,_0x1ff709:0x188,_0x100fb8:0x16f},_0xc82ca6=_0x5dbf20,_0x57fc3c={'prUHR':function(_0x434199){return _0x434199();}},{runtime:_0x5d23f0,loading:_0x490931,error:_0x450e63}=_0x57fc3c[_0xc82ca6(0x16d)](useWajubContext);if(_0x490931['value'])throw new Error(_0xc82ca6(0x17a)+_0xc82ca6(0x172)+'js\x20is\x20st'+_0xc82ca6(_0x11a649._0x505b76)+_0xc82ca6(0x176));if(_0x450e63[_0xc82ca6(_0x11a649._0x4a990a)])throw _0x450e63[_0xc82ca6(0x170)];if(!_0x5d23f0[_0xc82ca6(_0x11a649._0x31540b)])throw new Error(_0xc82ca6(0x17a)+_0xc82ca6(_0x11a649._0x5b3db8)+_0xc82ca6(_0x11a649._0x1ff709)+_0xc82ca6(0x186)+_0xc82ca6(_0x11a649._0x100fb8));return _0x5d23f0[_0xc82ca6(0x170)];}export function useWajubOptional(){const _0xe431bd={_0x1aad3e:0x171,_0x4262c9:0x17e},_0x420c18=_0x5dbf20,_0x57d5af={'tbVeU':function(_0x202474){return _0x202474();}};return _0x57d5af[_0x420c18(_0xe431bd._0x1aad3e)](useWajubContext)[_0x420c18(_0xe431bd._0x4262c9)][_0x420c18(0x170)];}export function useLoadWajub(){const _0x2271ff={_0x4df473:0x17e},_0x4686ee=_0x5dbf20,_0x5c33fb=useWajubContext();return{'runtime':_0x5c33fb[_0x4686ee(_0x2271ff._0x4df473)],'loading':_0x5c33fb[_0x4686ee(0x175)],'error':_0x5c33fb[_0x4686ee(0x179)],'loadWajub':_0xee2207=>loadWajub(_0xee2207)};}export{useWajubContext}from'./context.js';
@@ -0,0 +1,10 @@
1
+ import { type InjectionKey, type Ref } from "vue";
2
+ import type { WajubRuntime } from "@wajub/js";
3
+ export interface WajubContextValue {
4
+ runtime: Ref<WajubRuntime | null>;
5
+ loading: Ref<boolean>;
6
+ error: Ref<Error | null>;
7
+ }
8
+ export declare const WAJUB_INJECTION_KEY: InjectionKey<WajubContextValue>;
9
+ export declare function useWajubContext(): WajubContextValue;
10
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAClC,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACtB,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,iBAAiB,CAA0B,CAAC;AAE3F,wBAAgB,eAAe,IAAI,iBAAiB,CAMnD"}
@@ -0,0 +1 @@
1
+ function _0x5218(_0x5afb08,_0x140eae){_0x5afb08=_0x5afb08-(0x29f*0xc+0x194e*-0x1+-0x1*0x514);const _0x393394=_0x443b();let _0x5dad90=_0x393394[_0x5afb08];if(_0x5218['WSngJf']===undefined){var _0x292347=function(_0xdb119){const _0x3b83f1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c4d5e='',_0x5e7ab7='';for(let _0x1f71d9=0x5a8+0x19b2+-0x1f5a,_0x6b69c0,_0x59a233,_0x55e1fe=0x1a69+0x1*-0xd25+-0xd44;_0x59a233=_0xdb119['charAt'](_0x55e1fe++);~_0x59a233&&(_0x6b69c0=_0x1f71d9%(0x1*-0x1d23+0xc30+0x10f7)?_0x6b69c0*(-0x2181*-0x1+-0x1883+-0x8be)+_0x59a233:_0x59a233,_0x1f71d9++%(-0x1bef+-0x2d*-0xc3+-0x654))?_0x4c4d5e+=String['fromCharCode'](-0x1857+-0x36*-0x17+0x147c&_0x6b69c0>>(-(-0x182+-0x1801+-0x1*-0x1985)*_0x1f71d9&0x19e5+0xe8d+-0x286c)):0x1088+-0x1c*-0x15a+-0x3660){_0x59a233=_0x3b83f1['indexOf'](_0x59a233);}for(let _0x1d5a2d=0xce5+-0x4b*0x75+-0x142*-0x11,_0x1dc9bb=_0x4c4d5e['length'];_0x1d5a2d<_0x1dc9bb;_0x1d5a2d++){_0x5e7ab7+='%'+('00'+_0x4c4d5e['charCodeAt'](_0x1d5a2d)['toString'](0x191e+-0x165*-0x15+-0x3657))['slice'](-(-0xe7d+0xd43+0x13c));}return decodeURIComponent(_0x5e7ab7);};_0x5218['kZXeEm']=_0x292347,_0x5218['iolNJY']={},_0x5218['WSngJf']=!![];}const _0x2e9b31=_0x393394[0xc04+-0xa36*0x1+-0x1ce],_0x3fbe41=_0x5afb08+_0x2e9b31,_0x4ebb05=_0x5218['iolNJY'][_0x3fbe41];return!_0x4ebb05?(_0x5dad90=_0x5218['kZXeEm'](_0x5dad90),_0x5218['iolNJY'][_0x3fbe41]=_0x5dad90):_0x5dad90=_0x4ebb05,_0x5dad90;}const _0x5c9c4f=_0x5218;(function(_0x182096,_0x392e16){const _0x2abcf4={_0x3b6e8f:0x118,_0x563018:0x113,_0x53380c:0x114,_0x39171a:0x117,_0x17a771:0x112},_0x351425=_0x5218,_0x2ac1ae=_0x182096();while(!![]){try{const _0x30ce3c=-parseInt(_0x351425(0x11a))/(-0x2*0x783+-0xeab+0x1db2)+-parseInt(_0x351425(_0x2abcf4._0x3b6e8f))/(0xbea+0x2355+-0x1a1*0x1d)*(-parseInt(_0x351425(_0x2abcf4._0x563018))/(-0xb2d*0x2+0x44d+0x121*0x10))+-parseInt(_0x351425(0x116))/(-0x19*-0x12a+0x3c*0x1+0x342*-0x9)*(parseInt(_0x351425(0x11b))/(0x18a3+-0x9b4+-0xeea))+parseInt(_0x351425(_0x2abcf4._0x53380c))/(-0x2*-0xa04+0x269e+0x10c*-0x38)+-parseInt(_0x351425(_0x2abcf4._0x39171a))/(0x611+0x55*0x14+-0xcae)+-parseInt(_0x351425(0x11d))/(0x1*0x15e+0x7e4+-0x93a)+parseInt(_0x351425(_0x2abcf4._0x17a771))/(-0x184c+-0x1c4+-0x3*-0x8b3);if(_0x30ce3c===_0x392e16)break;else _0x2ac1ae['push'](_0x2ac1ae['shift']());}catch(_0x13f9c5){_0x2ac1ae['push'](_0x2ac1ae['shift']());}}}(_0x443b,-0x2a421+-0x4c252+0x2e12*0x38));function _0x443b(){const _0x3ea665=['q29UDgv4DdO','mJuWotyYBfP0uKPS','mtC1wgL5CuLL','DxnLv2fQDwi','mtiYndu0nhD6svfHrW','AgLUifDHANu','ihvZzsb3Axq','Dgv4Da','yLbYB3zPzgu','mtCXnJeZofbACMrxvq','odm5otfWyuLKCvq','mtm2oti3mMTZshrPrW','svbiBxu','odCYBK5Nuvr3','otC4mdeYyxfyA0zA','mJjVAuXABvu'];_0x443b=function(){return _0x3ea665;};return _0x443b();}import{inject}from'vue';export const WAJUB_INJECTION_KEY=Symbol('WajubCon'+_0x5c9c4f(0x120));export function useWajubContext(){const _0x4d228c={_0x42c31c:0x115,_0x1277be:0x11c,_0x537caf:0x119,_0x556a14:0x11f},_0x4f6a71=_0x5c9c4f,_0x11c54d={'IPHmu':function(_0x6553ba,_0x2f1477){return _0x6553ba(_0x2f1477);}},_0x36375e=_0x11c54d[_0x4f6a71(_0x4d228c._0x42c31c)](inject,WAJUB_INJECTION_KEY);if(!_0x36375e)throw new Error(_0x4f6a71(_0x4d228c._0x1277be)+_0x4f6a71(_0x4d228c._0x537caf)+_0x4f6a71(_0x4d228c._0x556a14)+_0x4f6a71(0x11e)+_0x4f6a71(0x121)+'r');return _0x36375e;}
@@ -0,0 +1,10 @@
1
+ export { WajubProvider, useWajub, useWajubOptional, useLoadWajub, } from "./WajubProvider.js";
2
+ export type { WajubProviderProps } from "./WajubProvider.js";
3
+ export { WAJUB_INJECTION_KEY, useWajubContext } from "./context.js";
4
+ export type { WajubContextValue } from "./context.js";
5
+ export { CheckoutEmbed } from "./CheckoutEmbed.js";
6
+ export type { CheckoutEmbedProps } from "./types.js";
7
+ export { ComponentEmbed, CardComponent, MobileMoneyComponent, WalletComponent, PaymentComponent, AddressComponent, } from "./ComponentEmbed.js";
8
+ export type { ComponentEmbedProps } from "./ComponentEmbed.js";
9
+ export { useConfirmPayment } from "./useConfirmPayment.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EACL,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ (function(_0xcc6b0c,_0x2fbd85){var _0x362d4e={_0x599d43:0x17e,_0x121f54:0x182,_0x4f82c9:0x17c},_0x5345a6=_0x55d3,_0x22dcfd=_0xcc6b0c();while(!![]){try{var _0x4b5da2=parseInt(_0x5345a6(_0x362d4e._0x599d43))/(0x2*0x118f+0x1*-0x17a7+-0xb76)+parseInt(_0x5345a6(0x17d))/(-0x2*-0xe59+0x1*0xf2a+-0x15ed*0x2)+-parseInt(_0x5345a6(0x180))/(-0x3*0x16+0x1aae+-0x1a69*0x1)+parseInt(_0x5345a6(_0x362d4e._0x121f54))/(-0x4fc*0x7+0xed*-0x3+-0x1*-0x25af)+parseInt(_0x5345a6(0x181))/(0x1*0x1e67+0xfe+-0x1f60)+-parseInt(_0x5345a6(_0x362d4e._0x4f82c9))/(0x2077+-0x2526+-0x5*-0xf1)+-parseInt(_0x5345a6(0x17f))/(-0x2*0xfc6+-0x590+0x2523);if(_0x4b5da2===_0x2fbd85)break;else _0x22dcfd['push'](_0x22dcfd['shift']());}catch(_0x373591){_0x22dcfd['push'](_0x22dcfd['shift']());}}}(_0x145b,-0x6ff15+-0x24*-0xad2e+-0x3d9e6));export{WajubProvider,useWajub,useWajubOptional,useLoadWajub}from'./WajubProvider.js';export{WAJUB_INJECTION_KEY,useWajubContext}from'./context.js';function _0x145b(){var _0x1074cb=['mtG4ode0mgTQyxbwsW','otq1mdGWDKT1A2L5','mJm4mJaYm1PxzKnizG','mZeXnJqWm1PdAe1IBq','nZeXntCZmenqq1frBa','oteZndy4zeHJs2LT','nZy1odCZnNP1AvzMBa'];_0x145b=function(){return _0x1074cb;};return _0x145b();}export{CheckoutEmbed}from'./CheckoutEmbed.js';export{ComponentEmbed,CardComponent,MobileMoneyComponent,WalletComponent,PaymentComponent,AddressComponent}from'./ComponentEmbed.js';function _0x55d3(_0x3b11bf,_0x70df7d){_0x3b11bf=_0x3b11bf-(-0x1cd3+-0x1*-0x1e45+0xa);var _0x5823d8=_0x145b();var _0x53dccb=_0x5823d8[_0x3b11bf];if(_0x55d3['HVmYDA']===undefined){var _0x491d90=function(_0x3e1bc2){var _0x3795a4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x96d503='',_0x2531da='';for(var _0x57504c=0xf71*0x1+0x68*0x59+-0x103*0x33,_0x258b9c,_0x1297cc,_0x166293=0x50a+0x1f68+-0x2472;_0x1297cc=_0x3e1bc2['charAt'](_0x166293++);~_0x1297cc&&(_0x258b9c=_0x57504c%(-0x405+-0xbb6+0xfbf)?_0x258b9c*(-0x732+0x1075+-0x903)+_0x1297cc:_0x1297cc,_0x57504c++%(-0x2a5+-0x1701+0x19aa))?_0x96d503+=String['fromCharCode'](0x1*0x20f9+0xfb6+-0x2fb0*0x1&_0x258b9c>>(-(-0xa0a*0x2+-0x322*0xb+0x368c)*_0x57504c&0xe9*0x4+-0x79*-0x31+-0x1ac7)):-0x7be*0x1+-0x1a84+0x1121*0x2){_0x1297cc=_0x3795a4['indexOf'](_0x1297cc);}for(var _0x45464a=-0x475*0x7+-0x38b*-0x1+0x3*0x938,_0x1fd3d6=_0x96d503['length'];_0x45464a<_0x1fd3d6;_0x45464a++){_0x2531da+='%'+('00'+_0x96d503['charCodeAt'](_0x45464a)['toString'](0x4a+0x1d*0x21+-0x1d*0x23))['slice'](-(-0x4fc*-0x6+0x3f4+0x4d6*-0x7));}return decodeURIComponent(_0x2531da);};_0x55d3['jjeytl']=_0x491d90,_0x55d3['HBOWng']={},_0x55d3['HVmYDA']=!![];}var _0x271edc=_0x5823d8[-0xb1b*0x1+-0xbd6+0x16f1],_0x54cb56=_0x3b11bf+_0x271edc,_0x30e6c0=_0x55d3['HBOWng'][_0x54cb56];return!_0x30e6c0?(_0x53dccb=_0x55d3['jjeytl'](_0x53dccb),_0x55d3['HBOWng'][_0x54cb56]=_0x53dccb):_0x53dccb=_0x30e6c0,_0x53dccb;}export{useConfirmPayment}from'./useConfirmPayment.js';
@@ -0,0 +1,14 @@
1
+ import type { CSSProperties } from "vue";
2
+ import type { EmbeddedConfig } from "@wajub/js";
3
+ export interface WajubProviderProps {
4
+ defer?: boolean;
5
+ loadOptions?: import("@wajub/js").LoadWajubOptions;
6
+ }
7
+ export type CheckoutEmbedProps = Omit<EmbeddedConfig, "sessionId"> & {
8
+ sessionId: string;
9
+ class?: string;
10
+ style?: CSSProperties;
11
+ minHeight?: number;
12
+ };
13
+ export type { ComponentEmbedProps } from "./ComponentEmbed.js";
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,WAAW,EAAE,gBAAgB,CAAC;CACpD;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,GAAG;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,5 @@
1
+ import type { ComponentInstance, ConfirmPaymentOptions } from "@wajub/js";
2
+ export declare function useConfirmPayment(sessionId?: string): (component: ComponentInstance, options?: Partial<Omit<ConfirmPaymentOptions, "components">>) => Promise<{
3
+ status: string;
4
+ }>;
5
+ //# sourceMappingURL=useConfirmPayment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConfirmPayment.d.ts","sourceRoot":"","sources":["../src/useConfirmPayment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAG1E,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,MAAM,IAIhD,WAAW,iBAAiB,EAC5B,UAAU,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;;GAgB/D"}
@@ -0,0 +1 @@
1
+ function _0x3f7e(_0x98e925,_0x4605eb){_0x98e925=_0x98e925-(0x2*0x4e1+0x1a8c+-0x235e);const _0x174383=_0x4760();let _0x1e5cf5=_0x174383[_0x98e925];if(_0x3f7e['KSZFDz']===undefined){var _0x36f63f=function(_0x5e56de){const _0x14467c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51f0af='',_0x5c2fee='';for(let _0x3e6d7c=0x1*0x169f+-0x1*0xce3+0x1c*-0x59,_0x4ec535,_0x916976,_0x22f8cb=0x672+0x1*0x1bd1+0xb3*-0x31;_0x916976=_0x5e56de['charAt'](_0x22f8cb++);~_0x916976&&(_0x4ec535=_0x3e6d7c%(-0x175e+0x2008+-0x8a6)?_0x4ec535*(0x9*0x259+-0x3cb*-0x2+-0x97d*0x3)+_0x916976:_0x916976,_0x3e6d7c++%(-0x7*-0x52f+0x264b+-0x4a9*0x10))?_0x51f0af+=String['fromCharCode'](-0x1df7+-0xfb9*-0x1+-0x1*-0xf3d&_0x4ec535>>(-(-0x1744+-0xeac+0x25f2)*_0x3e6d7c&-0x1f*0xf8+0x6a2+0x176c)):-0x7f*-0x43+0x1fc0+-0x83*0x7f){_0x916976=_0x14467c['indexOf'](_0x916976);}for(let _0x5f537a=-0x172*0x7+-0x461*-0x4+0x2*-0x3b3,_0x40e791=_0x51f0af['length'];_0x5f537a<_0x40e791;_0x5f537a++){_0x5c2fee+='%'+('00'+_0x51f0af['charCodeAt'](_0x5f537a)['toString'](0x267c*-0x1+-0x706*-0x1+0x1f86))['slice'](-(-0x108*0x6+-0x1ce1*0x1+0x29*0xdb));}return decodeURIComponent(_0x5c2fee);};_0x3f7e['JBGZNr']=_0x36f63f,_0x3f7e['FvTGJU']={},_0x3f7e['KSZFDz']=!![];}const _0x402c5a=_0x174383[-0x546+0x1d*0x65+-0x62b],_0x667d87=_0x98e925+_0x402c5a,_0x49fc8c=_0x3f7e['FvTGJU'][_0x667d87];return!_0x49fc8c?(_0x1e5cf5=_0x3f7e['JBGZNr'](_0x1e5cf5),_0x3f7e['FvTGJU'][_0x667d87]=_0x1e5cf5):_0x1e5cf5=_0x49fc8c,_0x1e5cf5;}(function(_0x2e00a9,_0x34ac39){const _0x11bc8b={_0x38d7a4:0x103,_0x137ef0:0xf5,_0x440e15:0xf2},_0x341294=_0x3f7e,_0xecdc74=_0x2e00a9();while(!![]){try{const _0x576f4f=-parseInt(_0x341294(0xf8))/(0xb2*-0x8+0x8e2+-0x351)*(parseInt(_0x341294(0xf1))/(-0x15de+-0x1cba+0x329a))+parseInt(_0x341294(_0x11bc8b._0x38d7a4))/(-0x1*-0x5cf+0x63a+-0xc06)+-parseInt(_0x341294(0x105))/(-0x1*-0x23a4+-0x1c26+-0x77a)*(-parseInt(_0x341294(0xfb))/(0x1800+0x65*-0x22+-0xa91))+-parseInt(_0x341294(0x100))/(-0x1f5d+-0x4e*0x79+0x4441)*(-parseInt(_0x341294(_0x11bc8b._0x137ef0))/(-0x3*-0x6b1+-0x2263+0x1*0xe57))+-parseInt(_0x341294(0x104))/(-0x1*0x17a5+-0x5*0x5ef+0x18*0x239)*(parseInt(_0x341294(_0x11bc8b._0x440e15))/(-0x1*0x3af+0x6*0x2cf+-0xd22))+-parseInt(_0x341294(0xfc))/(0x1134+-0x2ab*0x1+-0xe7f)+-parseInt(_0x341294(0xf4))/(-0x1*0x2269+0x1*0x2181+-0x3*-0x51);if(_0x576f4f===_0x34ac39)break;else _0xecdc74['push'](_0xecdc74['shift']());}catch(_0x981ef){_0xecdc74['push'](_0xecdc74['shift']());}}}(_0x4760,0x96171+-0xe3fc*0xa+0x90426));function _0x4760(){const _0x451684=['odCZnZiYmgXtwuLJzq','DxnLq29UzMK','B25jzcbPCYa','Bg9HzgvK','mZCWndaXmgn2z01KvW','y29UzMLYBva','C2vZC2LVBKK','mZq2nJu1ngLMs2P0ta','ofbkzgznBq','mZm5mKXMrgznsG','lMPZig5VDca','ohf0BLDwsq','mZu4oda5m3feswrpwG','DMfSDwu','nde2mtG1DfPkAfPQ','n21er3Dizq','yxLTzw50','CM1qyxLTzw4','mJy1mda3yxn4z0ve','D2fQDwi','DdOGv2fQDwi','nZe5mgffvfLmyq'];_0x4760=function(){return _0x451684;};return _0x4760();}import{useWajubContext}from'./context.js';export function useConfirmPayment(_0x497a4d){const _0x334c6e={_0x51dd6c:0xf3,_0x10d79c:0xfa,_0x273866:0xf0,_0x23a30c:0xff,_0x572057:0x102,_0x58a2f8:0xfd,_0x11a2d8:0xf7,_0x55b171:0xfe},_0x38f2af=useWajubContext();return async(_0x51d98b,_0x450f58)=>{const _0x2d745e=_0x3f7e,_0x53fd18=_0x38f2af['runtime'][_0x2d745e(_0x334c6e._0x51dd6c)];if(!_0x53fd18)throw new Error('useConfi'+'rmPaymen'+_0x2d745e(_0x334c6e._0x10d79c)+_0x2d745e(_0x334c6e._0x273866)+_0x2d745e(_0x334c6e._0x23a30c));const _0x126b15=_0x497a4d??_0x450f58?.[_0x2d745e(_0x334c6e._0x572057)+'d'];if(!_0x126b15)throw new Error(_0x2d745e(_0x334c6e._0x58a2f8)+_0x2d745e(_0x334c6e._0x11a2d8)+'t:\x20sessi'+_0x2d745e(_0x334c6e._0x55b171)+'required');return _0x53fd18[_0x2d745e(0xf9)][_0x2d745e(0x101)+_0x2d745e(0xf6)]({'sessionId':_0x126b15,'components':_0x51d98b,..._0x450f58});};}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@wajub/vue",
3
+ "version": "1.3.0",
4
+ "description": "Wajub Components for Vue 3 — Provider, composables, and embed components",
5
+ "license": "MIT",
6
+ "author": "Wajub",
7
+ "homepage": "https://wajub.com",
8
+ "type": "module",
9
+ "sideEffects": false,
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "README.md"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.json",
25
+ "clean": "rm -rf dist"
26
+ },
27
+ "peerDependencies": {
28
+ "@wajub/js": "^1.3.0",
29
+ "vue": ">=3.3"
30
+ },
31
+ "devDependencies": {
32
+ "@wajub/js": "file:..",
33
+ "typescript": "^5.9.3",
34
+ "vue": "^3.5.13"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ }
39
+ }