gather-vue 8.6.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.
Files changed (178) hide show
  1. package/README.md +64 -0
  2. package/dist/.htaccess +1 -0
  3. package/dist/App-B7KWoHRH.js +160 -0
  4. package/dist/App-B7KWoHRH.js.gz +0 -0
  5. package/dist/App-C03tW0-W.js +405 -0
  6. package/dist/App-C03tW0-W.js.gz +0 -0
  7. package/dist/BannerExample-CRj1iMwh.js +77 -0
  8. package/dist/BannerExample-CRj1iMwh.js.gz +0 -0
  9. package/dist/BannerExample-DLN6d9M0.js +84 -0
  10. package/dist/BannerExample-DLN6d9M0.js.gz +0 -0
  11. package/dist/CallToAction-BbJ-zDFa.js +3493 -0
  12. package/dist/CallToAction-BbJ-zDFa.js.gz +0 -0
  13. package/dist/CallToAction-jAi8aaI-.js +35 -0
  14. package/dist/CallToAction-jAi8aaI-.js.gz +0 -0
  15. package/dist/Card-B1Pdd5BL.js +202 -0
  16. package/dist/Card-B1Pdd5BL.js.gz +0 -0
  17. package/dist/Card-qMo1jrfb.js +699 -0
  18. package/dist/Card-qMo1jrfb.js.gz +0 -0
  19. package/dist/CloseCardButton-CL_3xkAF.js +71 -0
  20. package/dist/CloseCardButton-CL_3xkAF.js.gz +0 -0
  21. package/dist/Editor-DXSZFkEM.js +149 -0
  22. package/dist/Editor-DXSZFkEM.js.gz +0 -0
  23. package/dist/EmailExistsView-CX1ijN0R.js +72 -0
  24. package/dist/EmailExistsView-CX1ijN0R.js.gz +0 -0
  25. package/dist/EmailInvitation-BVFicmrK.js +22 -0
  26. package/dist/EmailView-DdaSnKFq.js +84 -0
  27. package/dist/EmailView-DdaSnKFq.js.gz +0 -0
  28. package/dist/FriendBannerExample-C8QmPZyP.js +76 -0
  29. package/dist/FriendBannerExample-C8QmPZyP.js.gz +0 -0
  30. package/dist/FriendConfirmation-B-RemAoP.js +22 -0
  31. package/dist/FriendForm-CunLFX_H.js +255 -0
  32. package/dist/FriendForm-CunLFX_H.js.gz +0 -0
  33. package/dist/FriendOptIn-bp4udUYv.js +27 -0
  34. package/dist/FriendPending-cFjgyL8g.js +22 -0
  35. package/dist/FriendPitch-BhSs2eLR.js +19 -0
  36. package/dist/FriendPitch-CAS1c3Co.js +33 -0
  37. package/dist/FriendSuccess-uxEdomAY.js +22 -0
  38. package/dist/Invitations-hprUCIvW.js +27 -0
  39. package/dist/InviteRoot-Dima8d2G.js +252 -0
  40. package/dist/InviteRoot-Dima8d2G.js.gz +0 -0
  41. package/dist/LaunchButton-BQw42WVn.js +18 -0
  42. package/dist/MazBtn.1qp5aQ4N-DU0ii1Xr.js +103 -0
  43. package/dist/MazBtn.1qp5aQ4N-DU0ii1Xr.js.gz +0 -0
  44. package/dist/MazCheckbox.UAnkvAoS-pse3PCQf.js +149 -0
  45. package/dist/MazCheckbox.UAnkvAoS-pse3PCQf.js.gz +0 -0
  46. package/dist/MazIcon.B5hPzeLk-C20gse35.js +103 -0
  47. package/dist/MazIcon.B5hPzeLk-C20gse35.js.gz +0 -0
  48. package/dist/MazPhoneNumberInput-Cz50Ts4U.js +4751 -0
  49. package/dist/MazPhoneNumberInput-Cz50Ts4U.js.gz +0 -0
  50. package/dist/MazSpinner.DZT5jj-c-y1IYJMcd.js +34 -0
  51. package/dist/MazSpinner.DZT5jj-c-y1IYJMcd.js.gz +0 -0
  52. package/dist/Menu-BsKr40BO.js +21377 -0
  53. package/dist/Menu-BsKr40BO.js.gz +0 -0
  54. package/dist/Message-D4PAgcHO.js +22 -0
  55. package/dist/MessageCard-CC74qCir.js +74 -0
  56. package/dist/MessageCard-CC74qCir.js.gz +0 -0
  57. package/dist/MessageView-BKAIrwj7.js +88 -0
  58. package/dist/MessageView-BKAIrwj7.js.gz +0 -0
  59. package/dist/PendingApprovalCard-Dzs0UxBO.js +48 -0
  60. package/dist/PendingApprovalCard-Dzs0UxBO.js.gz +0 -0
  61. package/dist/PendingApprovalView-V-OUYSnK.js +33 -0
  62. package/dist/ReferralButton-CEue5qud.js +18 -0
  63. package/dist/ReferralFailedView-3Ua13t4V.js +74 -0
  64. package/dist/ReferralFailedView-3Ua13t4V.js.gz +0 -0
  65. package/dist/ReferredConfirmCard-iwgkcZCm.js +48 -0
  66. package/dist/ReferredConfirmCard-iwgkcZCm.js.gz +0 -0
  67. package/dist/ReferredConfirmView-DS1RNBwP.js +33 -0
  68. package/dist/ReferredSuccessCard-Dg-a4FYr.js +209 -0
  69. package/dist/ReferredSuccessCard-Dg-a4FYr.js.gz +0 -0
  70. package/dist/ReferredSuccessView-ChVztlUr.js +33 -0
  71. package/dist/ReferredView-7HezoVIA.js +98 -0
  72. package/dist/ReferredView-7HezoVIA.js.gz +0 -0
  73. package/dist/RewardCard-CwU2X2Yo.js +197 -0
  74. package/dist/RewardCard-CwU2X2Yo.js.gz +0 -0
  75. package/dist/Rewards-DdyEwCyy.js +27 -0
  76. package/dist/RewardsRoot-CnQfyjC6.js +198 -0
  77. package/dist/RewardsRoot-CnQfyjC6.js.gz +0 -0
  78. package/dist/Root-bUfnZpPP.js +17 -0
  79. package/dist/ShareInvitation-SAgC-8YA.js +22 -0
  80. package/dist/SignIn-CroW3mY6.js +36 -0
  81. package/dist/SignIn-CroW3mY6.js.gz +0 -0
  82. package/dist/SignIn-g32Hg2or.js +17 -0
  83. package/dist/SignInTextArea-DBRk6x09.js +17 -0
  84. package/dist/SignUpFormCard-Cail4V4M.js +287 -0
  85. package/dist/SignUpFormCard-Cail4V4M.js.gz +0 -0
  86. package/dist/SignUpView-a7LPgEeX.js +368 -0
  87. package/dist/SignUpView-a7LPgEeX.js.gz +0 -0
  88. package/dist/SignUpView-uujOX5hN.js +103 -0
  89. package/dist/SignUpView-uujOX5hN.js.gz +0 -0
  90. package/dist/SocialView-CbBZTB7Z.js +87 -0
  91. package/dist/SocialView-CbBZTB7Z.js.gz +0 -0
  92. package/dist/Stats-DtS-GXsI.js +22 -0
  93. package/dist/StatsView-fX-VznRc.js +90 -0
  94. package/dist/StatsView-fX-VznRc.js.gz +0 -0
  95. package/dist/Success-k06CZz0K.js +40 -0
  96. package/dist/Success-k06CZz0K.js.gz +0 -0
  97. package/dist/SuccessCard-C1iF1j2W.js +219 -0
  98. package/dist/SuccessCard-C1iF1j2W.js.gz +0 -0
  99. package/dist/SuccessView-CDUVkpSQ.js +77 -0
  100. package/dist/SuccessView-CDUVkpSQ.js.gz +0 -0
  101. package/dist/TextArea-DFfa9A93.js +17 -0
  102. package/dist/TextAreaCard-D_VfEHME.js +34 -0
  103. package/dist/TextAreaCard-D_VfEHME.js.gz +0 -0
  104. package/dist/UserView-DnD929IT.js +96 -0
  105. package/dist/UserView-DnD929IT.js.gz +0 -0
  106. package/dist/WhatsAppShare-B40Ouvds.js +59 -0
  107. package/dist/WhatsAppShare-B40Ouvds.js.gz +0 -0
  108. package/dist/agent-session-Xh6dZlhc.js +298 -0
  109. package/dist/agent-session-Xh6dZlhc.js.gz +0 -0
  110. package/dist/aggregate-base-C6N8Ymd5.js +830 -0
  111. package/dist/aggregate-base-C6N8Ymd5.js.gz +0 -0
  112. package/dist/bel-serializer-DMbFBZ6U.js +51 -0
  113. package/dist/bel-serializer-DMbFBZ6U.js.gz +0 -0
  114. package/dist/browser-q7cvfJ-2.js +366 -0
  115. package/dist/browser-q7cvfJ-2.js.gz +0 -0
  116. package/dist/cart.js +5 -0
  117. package/dist/cart.js.gz +0 -0
  118. package/dist/check.C9Q_W85g-DmgtOx7Q.js +30 -0
  119. package/dist/chevron-down.BkvtON3b-RNrTKYcy.js +30 -0
  120. package/dist/content-5VAQ1vQ0.js +4 -0
  121. package/dist/event-origin-BSW5uum9.js +13 -0
  122. package/dist/examples.mobile.json.tW3aL0qI-tW3aL0qI.js +4 -0
  123. package/dist/examples.mobile.json.tW3aL0qI-tW3aL0qI.js.gz +0 -0
  124. package/dist/eye-slash.BoO00xzs-CULY_lvM.js +30 -0
  125. package/dist/eye.f8zAUc30-Yr89kafZ.js +43 -0
  126. package/dist/eye.f8zAUc30-Yr89kafZ.js.gz +0 -0
  127. package/dist/favicon.ico +0 -0
  128. package/dist/first-paint-B61SrVKm.js +453 -0
  129. package/dist/first-paint-B61SrVKm.js.gz +0 -0
  130. package/dist/gather-vue.css +5 -0
  131. package/dist/gather-vue.css.gz +0 -0
  132. package/dist/gather-widget.es.js +5 -0
  133. package/dist/gather-widget.umd.js +263 -0
  134. package/dist/gather-widget.umd.js.gz +0 -0
  135. package/dist/gather_widget.css +58 -0
  136. package/dist/gather_widget.css.gz +0 -0
  137. package/dist/gather_widget.js +72 -0
  138. package/dist/gather_widget.js.gz +0 -0
  139. package/dist/iframe-BELrOJ1p.js +6 -0
  140. package/dist/index-3lvNtPTE.js +327 -0
  141. package/dist/index-3lvNtPTE.js.gz +0 -0
  142. package/dist/index-BDyGxL1x.js +255 -0
  143. package/dist/index-BDyGxL1x.js.gz +0 -0
  144. package/dist/index-BF9haAFD.js +343 -0
  145. package/dist/index-BF9haAFD.js.gz +0 -0
  146. package/dist/index-BMIST_QA.js +128 -0
  147. package/dist/index-BMIST_QA.js.gz +0 -0
  148. package/dist/index-BdWnMhAc.js +235 -0
  149. package/dist/index-BdWnMhAc.js.gz +0 -0
  150. package/dist/index-BioZsJbf.js +190 -0
  151. package/dist/index-BioZsJbf.js.gz +0 -0
  152. package/dist/index-BzOcD8v-.js +166 -0
  153. package/dist/index-BzOcD8v-.js.gz +0 -0
  154. package/dist/index-C8pB9mUQ.js +147 -0
  155. package/dist/index-C8pB9mUQ.js.gz +0 -0
  156. package/dist/index-C_ougoWd.js +426 -0
  157. package/dist/index-C_ougoWd.js.gz +0 -0
  158. package/dist/index-CoRlIGDo.js +513 -0
  159. package/dist/index-CoRlIGDo.js.gz +0 -0
  160. package/dist/index-CyWBxUBS.js +291 -0
  161. package/dist/index-CyWBxUBS.js.gz +0 -0
  162. package/dist/index-DijQHge7.js +325 -0
  163. package/dist/index-DijQHge7.js.gz +0 -0
  164. package/dist/magnifying-glass.-nBiyXot-CuA_mltt.js +30 -0
  165. package/dist/main-DPldah1M.js +40243 -0
  166. package/dist/main-DPldah1M.js.gz +0 -0
  167. package/dist/nav-timing-B-TNQpyK.js +31 -0
  168. package/dist/nav-timing-B-TNQpyK.js.gz +0 -0
  169. package/dist/no-photography.BJX8HSus-BJX8HSus.js +4 -0
  170. package/dist/no-symbol.CIgKzsrB-3PuxVsDY.js +30 -0
  171. package/dist/recorder-PHZWRV-S.js +8271 -0
  172. package/dist/recorder-PHZWRV-S.js.gz +0 -0
  173. package/dist/stylesheet-evaluator-B4P289vW.js +86 -0
  174. package/dist/stylesheet-evaluator-B4P289vW.js.gz +0 -0
  175. package/dist/time-to-first-byte-kiwh1xjs.js +29 -0
  176. package/dist/traverse-Bw4y1x4D.js +8 -0
  177. package/dist/type-check-Bp684oBR.js +6 -0
  178. package/package.json +89 -0
Binary file
@@ -0,0 +1,22 @@
1
+ import { defineComponent as r, resolveComponent as e, createBlock as n, openBlock as t, withCtx as a, createVNode as c } from "vue";
2
+ import { M as _ } from "./MessageCard-CC74qCir.js";
3
+ import { _ as p } from "./main-DPldah1M.js";
4
+ const m = r({
5
+ name: "MessageBlock",
6
+ components: {
7
+ MessageCard: _
8
+ }
9
+ });
10
+ function d(i, f, l, g, u, C) {
11
+ const o = e("MessageCard"), s = e("v-card");
12
+ return t(), n(s, null, {
13
+ default: a(() => [
14
+ c(o)
15
+ ]),
16
+ _: 1
17
+ });
18
+ }
19
+ const x = /* @__PURE__ */ p(m, [["render", d], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/referral_campaign/Message.vue"]]);
20
+ export {
21
+ x as default
22
+ };
@@ -0,0 +1,74 @@
1
+ import { S as C, W as w } from "./WhatsAppShare-B40Ouvds.js";
2
+ import { u as o, _ as M } from "./main-DPldah1M.js";
3
+ import { defineComponent as $, resolveComponent as n, createBlock as r, openBlock as a, withCtx as s, createElementVNode as _, createVNode as c, toDisplayString as d, createCommentVNode as h } from "vue";
4
+ const U = $({
5
+ name: "MessageCard",
6
+ components: {
7
+ WhatsAppShare: w,
8
+ SmsShare: C
9
+ },
10
+ computed: {
11
+ content() {
12
+ var t;
13
+ return (t = o().referralCampaign) == null ? void 0 : t.config.message;
14
+ },
15
+ referralUrl() {
16
+ const e = o();
17
+ return encodeURIComponent(e.referralUrl);
18
+ },
19
+ socialMessage() {
20
+ var t;
21
+ const e = o();
22
+ return encodeURIComponent(((t = e.referral) == null ? void 0 : t.socialInvitationMessage) || "");
23
+ },
24
+ whatsAppLink() {
25
+ return `https://api.whatsapp.com/send?text=${this.socialMessage}%20${this.referralUrl}`;
26
+ },
27
+ smsLink() {
28
+ return `sms:?&body=${this.socialMessage}%20${this.referralUrl}`;
29
+ }
30
+ }
31
+ }), x = { class: "text-h5 text-center" }, b = { class: "text-subtitle-2 text-center" };
32
+ function A(e, t, y, L, W, I) {
33
+ const u = n("WhatsAppShare"), f = n("SmsShare"), v = n("v-col"), g = n("v-row"), k = n("v-container"), S = n("v-card-text");
34
+ return a(), r(S, null, {
35
+ default: s(() => {
36
+ var l, i;
37
+ return [
38
+ _("div", x, d((l = e.content) == null ? void 0 : l.title), 1),
39
+ _("div", b, d((i = e.content) == null ? void 0 : i.subtitle), 1),
40
+ c(k, { class: "align-center pb-0" }, {
41
+ default: s(() => [
42
+ c(g, null, {
43
+ default: s(() => [
44
+ c(v, { class: "text-center" }, {
45
+ default: s(() => {
46
+ var p, m;
47
+ return [
48
+ (p = e.content) != null && p.show_whatsapp ? (a(), r(u, {
49
+ key: 0,
50
+ link: e.whatsAppLink
51
+ }, null, 8, ["link"])) : h("", !0),
52
+ (m = e.content) != null && m.show_sms ? (a(), r(f, {
53
+ key: 1,
54
+ link: e.smsLink
55
+ }, null, 8, ["link"])) : h("", !0)
56
+ ];
57
+ }),
58
+ _: 1
59
+ })
60
+ ]),
61
+ _: 1
62
+ })
63
+ ]),
64
+ _: 1
65
+ })
66
+ ];
67
+ }),
68
+ _: 1
69
+ });
70
+ }
71
+ const B = /* @__PURE__ */ M(U, [["render", A], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/user/invite/MessageCard.vue"]]);
72
+ export {
73
+ B as M
74
+ };
Binary file
@@ -0,0 +1,88 @@
1
+ import { defineComponent as C, resolveComponent as o, createBlock as m, openBlock as p, withCtx as t, createVNode as e, createCommentVNode as _ } from "vue";
2
+ import { C as R, P as v, u as i, _ as S } from "./main-DPldah1M.js";
3
+ import { S as V } from "./StatsView-fX-VznRc.js";
4
+ import { R as M } from "./RewardsRoot-CnQfyjC6.js";
5
+ import { M as k } from "./MessageCard-CC74qCir.js";
6
+ const P = C({
7
+ name: "MessageView",
8
+ components: {
9
+ Popup: v,
10
+ StatsView: V,
11
+ RewardsRoot: M,
12
+ MessageCard: k,
13
+ CustomTheme: R
14
+ },
15
+ computed: {
16
+ showStats() {
17
+ var a;
18
+ return (a = i().referralCampaign) == null ? void 0 : a.campaign.embedded_interface_configs.display_stats;
19
+ },
20
+ showRewards() {
21
+ var a, r, n;
22
+ const s = i();
23
+ return s.showRewards && ((n = (r = (a = s.referralCampaign) == null ? void 0 : a.config) == null ? void 0 : r.home) == null ? void 0 : n.show_rewards);
24
+ }
25
+ }
26
+ });
27
+ function $(s, a, r, n, x, y) {
28
+ const u = o("CustomTheme"), f = o("StatsView"), c = o("v-card"), d = o("v-container"), l = o("MessageCard"), w = o("RewardsRoot"), h = o("v-card-text"), g = o("Popup");
29
+ return p(), m(g, { showBack: !0 }, {
30
+ default: t(() => [
31
+ e(u),
32
+ s.showStats ? (p(), m(d, {
33
+ key: 0,
34
+ class: "pa-5",
35
+ id: "top-card"
36
+ }, {
37
+ default: t(() => [
38
+ e(c, null, {
39
+ default: t(() => [
40
+ e(f)
41
+ ]),
42
+ _: 1
43
+ })
44
+ ]),
45
+ _: 1
46
+ })) : _("", !0),
47
+ e(d, {
48
+ class: "pa-5",
49
+ id: s.showStats ? "" : "top-card"
50
+ }, {
51
+ default: t(() => [
52
+ e(c, null, {
53
+ default: t(() => [
54
+ e(l)
55
+ ]),
56
+ _: 1
57
+ })
58
+ ]),
59
+ _: 1
60
+ }, 8, ["id"]),
61
+ s.showRewards ? (p(), m(d, {
62
+ key: 1,
63
+ class: "pa-5",
64
+ id: "reward-container"
65
+ }, {
66
+ default: t(() => [
67
+ e(c, { id: "gc-rewards-1" }, {
68
+ default: t(() => [
69
+ e(h, null, {
70
+ default: t(() => [
71
+ e(w)
72
+ ]),
73
+ _: 1
74
+ })
75
+ ]),
76
+ _: 1
77
+ })
78
+ ]),
79
+ _: 1
80
+ })) : _("", !0)
81
+ ]),
82
+ _: 1
83
+ });
84
+ }
85
+ const U = /* @__PURE__ */ S(P, [["render", $], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/user/invite/MessageView.vue"]]);
86
+ export {
87
+ U as default
88
+ };
Binary file
@@ -0,0 +1,48 @@
1
+ import { defineComponent as p, resolveComponent as n, createBlock as m, openBlock as c, withCtx as o, createVNode as r, createElementVNode as u, createElementBlock as f, createCommentVNode as v, createTextVNode as g, toDisplayString as s } from "vue";
2
+ import { u as a, _ as x } from "./main-DPldah1M.js";
3
+ const C = p({
4
+ name: "PendingApprovalCard",
5
+ computed: {
6
+ title() {
7
+ var e;
8
+ return (e = a().referralCampaign) == null ? void 0 : e.config.friend_pending.title;
9
+ },
10
+ subtitle() {
11
+ var e;
12
+ return (e = a().referralCampaign) == null ? void 0 : e.config.friend_pending.subtitle;
13
+ }
14
+ }
15
+ }), b = { class: "text-h5 text-center" }, h = {
16
+ key: 0,
17
+ class: "text-subtitle-2 text-center"
18
+ };
19
+ function k(t, e, N, P, V, $) {
20
+ const i = n("v-icon"), l = n("v-col"), d = n("v-container"), _ = n("v-card-text");
21
+ return c(), m(_, null, {
22
+ default: o(() => [
23
+ r(d, { class: "align-center" }, {
24
+ default: o(() => [
25
+ r(l, { class: "text-center" }, {
26
+ default: o(() => [
27
+ r(i, { class: "mx-auto" }, {
28
+ default: o(() => e[0] || (e[0] = [
29
+ g("mdi-alert-circle-outline")
30
+ ])),
31
+ _: 1
32
+ })
33
+ ]),
34
+ _: 1
35
+ })
36
+ ]),
37
+ _: 1
38
+ }),
39
+ u("div", b, s(t.title), 1),
40
+ t.subtitle ? (c(), f("div", h, s(t.subtitle), 1)) : v("", !0)
41
+ ]),
42
+ _: 1
43
+ });
44
+ }
45
+ const E = /* @__PURE__ */ x(C, [["render", k], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/PendingApprovalCard.vue"]]);
46
+ export {
47
+ E as P
48
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as c, resolveComponent as e, createBlock as d, openBlock as _, withCtx as o, createVNode as n } from "vue";
2
+ import { P as i, _ as s } from "./main-DPldah1M.js";
3
+ import { P as l } from "./PendingApprovalCard-Dzs0UxBO.js";
4
+ const m = c({
5
+ name: "PendingApprovalView",
6
+ components: {
7
+ Popup: i,
8
+ PendingApprovalCard: l
9
+ }
10
+ });
11
+ function f(u, v, P, g, C, A) {
12
+ const r = e("PendingApprovalCard"), p = e("v-card"), t = e("v-container"), a = e("Popup");
13
+ return _(), d(a, null, {
14
+ default: o(() => [
15
+ n(t, { class: "pa-5" }, {
16
+ default: o(() => [
17
+ n(p, { id: "top-card" }, {
18
+ default: o(() => [
19
+ n(r)
20
+ ]),
21
+ _: 1
22
+ })
23
+ ]),
24
+ _: 1
25
+ })
26
+ ]),
27
+ _: 1
28
+ });
29
+ }
30
+ const $ = /* @__PURE__ */ s(m, [["render", f], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/PendingApprovalView.vue"]]);
31
+ export {
32
+ $ as default
33
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as o, resolveComponent as n, createElementBlock as t, openBlock as r, createVNode as c } from "vue";
2
+ import { a0 as a, _ as s } from "./main-DPldah1M.js";
3
+ const u = o({
4
+ name: "ReferralButtonBlock",
5
+ components: {
6
+ LaunchButton: a
7
+ }
8
+ }), _ = { id: "launch-btn-container" };
9
+ function i(p, m, f, l, d, B) {
10
+ const e = n("LaunchButton");
11
+ return r(), t("div", _, [
12
+ c(e)
13
+ ]);
14
+ }
15
+ const v = /* @__PURE__ */ s(u, [["render", i], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/referral_campaign/ReferralButton.vue"]]);
16
+ export {
17
+ v as default
18
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as p, resolveComponent as t, createBlock as f, openBlock as i, withCtx as r, createVNode as o, createElementVNode as x, createElementBlock as $, createCommentVNode as R, createTextVNode as F, toDisplayString as d } from "vue";
2
+ import { u as _, _ as u, P as V } from "./main-DPldah1M.js";
3
+ const b = p({
4
+ name: "ReferralFailedCard",
5
+ computed: {
6
+ title() {
7
+ var e;
8
+ return (e = _().referralCampaign) == null ? void 0 : e.config.referral_pending.title;
9
+ },
10
+ subtitle() {
11
+ var e;
12
+ return (e = _().referralCampaign) == null ? void 0 : e.config.referral_pending.subtitle;
13
+ }
14
+ }
15
+ }), h = { class: "text-h5 text-center" }, k = {
16
+ key: 0,
17
+ class: "text-subtitle-2 text-center"
18
+ };
19
+ function w(n, e, m, v, C, g) {
20
+ const a = t("v-icon"), c = t("v-col"), s = t("v-container"), l = t("v-card-text");
21
+ return i(), f(l, null, {
22
+ default: r(() => [
23
+ o(s, { class: "align-center" }, {
24
+ default: r(() => [
25
+ o(c, { class: "text-center" }, {
26
+ default: r(() => [
27
+ o(a, { class: "mx-auto" }, {
28
+ default: r(() => e[0] || (e[0] = [
29
+ F("mdi-alert-circle-outline")
30
+ ])),
31
+ _: 1
32
+ })
33
+ ]),
34
+ _: 1
35
+ })
36
+ ]),
37
+ _: 1
38
+ }),
39
+ x("div", h, d(n.title), 1),
40
+ n.subtitle ? (i(), $("div", k, d(n.subtitle), 1)) : R("", !0)
41
+ ]),
42
+ _: 1
43
+ });
44
+ }
45
+ const N = /* @__PURE__ */ u(b, [["render", w], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/ReferralFailedCard.vue"]]), P = p({
46
+ name: "ReferralFailedView",
47
+ components: {
48
+ Popup: V,
49
+ ReferralFailedCard: N
50
+ }
51
+ });
52
+ function B(n, e, m, v, C, g) {
53
+ const a = t("ReferralFailedCard"), c = t("v-card"), s = t("v-container"), l = t("Popup");
54
+ return i(), f(l, null, {
55
+ default: r(() => [
56
+ o(s, { class: "pa-5" }, {
57
+ default: r(() => [
58
+ o(c, { id: "top-card" }, {
59
+ default: r(() => [
60
+ o(a)
61
+ ]),
62
+ _: 1
63
+ })
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]),
68
+ _: 1
69
+ });
70
+ }
71
+ const S = /* @__PURE__ */ u(P, [["render", B], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/ReferralFailedView.vue"]]);
72
+ export {
73
+ S as default
74
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as _, resolveComponent as r, createBlock as f, openBlock as c, withCtx as o, createVNode as n, createElementVNode as u, createElementBlock as p, createCommentVNode as v, createTextVNode as C, toDisplayString as s } from "vue";
2
+ import { u as i, _ as x } from "./main-DPldah1M.js";
3
+ const g = _({
4
+ name: "ReferredConfirmCard",
5
+ computed: {
6
+ title() {
7
+ var e;
8
+ return (e = i().referralCampaign) == null ? void 0 : e.config.friend_confirmation.title;
9
+ },
10
+ subtitle() {
11
+ var e;
12
+ return (e = i().referralCampaign) == null ? void 0 : e.config.friend_confirmation.subtitle;
13
+ }
14
+ }
15
+ }), b = { class: "text-h5 text-center" }, R = {
16
+ key: 0,
17
+ class: "text-subtitle-2 text-center"
18
+ };
19
+ function h(t, e, k, N, V, $) {
20
+ const a = r("v-icon"), l = r("v-col"), d = r("v-container"), m = r("v-card-text");
21
+ return c(), f(m, null, {
22
+ default: o(() => [
23
+ n(d, { class: "align-center" }, {
24
+ default: o(() => [
25
+ n(l, { class: "text-center" }, {
26
+ default: o(() => [
27
+ n(a, { class: "mx-auto" }, {
28
+ default: o(() => e[0] || (e[0] = [
29
+ C("mdi-alert-circle-outline")
30
+ ])),
31
+ _: 1
32
+ })
33
+ ]),
34
+ _: 1
35
+ })
36
+ ]),
37
+ _: 1
38
+ }),
39
+ u("div", b, s(t.title), 1),
40
+ t.subtitle ? (c(), p("div", R, s(t.subtitle), 1)) : v("", !0)
41
+ ]),
42
+ _: 1
43
+ });
44
+ }
45
+ const y = /* @__PURE__ */ x(g, [["render", h], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/ReferredConfirmCard.vue"]]);
46
+ export {
47
+ y as R
48
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as p, resolveComponent as e, createBlock as f, openBlock as i, withCtx as o, createVNode as r } from "vue";
2
+ import { P as m, _ } from "./main-DPldah1M.js";
3
+ import { R as d } from "./ReferredConfirmCard-iwgkcZCm.js";
4
+ const s = p({
5
+ name: "ReferredConfirmView",
6
+ components: {
7
+ Popup: m,
8
+ ConfirmCard: d
9
+ }
10
+ });
11
+ function C(u, l, v, R, w, x) {
12
+ const n = e("ConfirmCard"), t = e("v-card"), c = e("v-container"), a = e("Popup");
13
+ return i(), f(a, null, {
14
+ default: o(() => [
15
+ r(c, { class: "pa-5" }, {
16
+ default: o(() => [
17
+ r(t, { id: "top-card" }, {
18
+ default: o(() => [
19
+ r(n)
20
+ ]),
21
+ _: 1
22
+ })
23
+ ]),
24
+ _: 1
25
+ })
26
+ ]),
27
+ _: 1
28
+ });
29
+ }
30
+ const h = /* @__PURE__ */ _(s, [["render", C], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/ReferredConfirmView.vue"]]);
31
+ export {
32
+ h as default
33
+ };
@@ -0,0 +1,209 @@
1
+ import { defineComponent as $, resolveComponent as n, createBlock as d, openBlock as o, withCtx as r, createVNode as i, createElementVNode as c, createElementBlock as p, createCommentVNode as l, createTextVNode as m, toDisplayString as a } from "vue";
2
+ import { C as b, u as s, aj as N, _ as S } from "./main-DPldah1M.js";
3
+ import { C as A } from "./CallToAction-BbJ-zDFa.js";
4
+ const E = $({
5
+ name: "ReferredSuccessCard",
6
+ components: {
7
+ CallToAction: A,
8
+ CustomTheme: b
9
+ },
10
+ data() {
11
+ return {
12
+ copied: !1
13
+ };
14
+ },
15
+ computed: {
16
+ content() {
17
+ var t;
18
+ return (t = s().referralCampaign) == null ? void 0 : t.config.friend_success;
19
+ },
20
+ showReward() {
21
+ return !N(this.reward);
22
+ },
23
+ showTick() {
24
+ return this.includesReward || this.redemptionType === "thank_you";
25
+ },
26
+ isCode() {
27
+ return this.redemptionType === "redemption_code";
28
+ },
29
+ isUrl() {
30
+ return this.redemptionType === "redemption_url";
31
+ },
32
+ isCredit() {
33
+ return this.redemptionType === "referred_credit";
34
+ },
35
+ friendName() {
36
+ return s().friend.name;
37
+ },
38
+ redemptionType() {
39
+ return s().friend.messageType;
40
+ },
41
+ disableRedemption() {
42
+ var e, t;
43
+ return (t = (e = this.content) == null ? void 0 : e.reward) == null ? void 0 : t.disable_redemption;
44
+ },
45
+ includesReward() {
46
+ return this.isCode || this.isUrl || this.isCredit;
47
+ },
48
+ referredDetails() {
49
+ const e = s();
50
+ return {
51
+ email: e.friend.email,
52
+ name: e.friend.name,
53
+ redemptionCode: e.friend.redemptionCode
54
+ };
55
+ },
56
+ title() {
57
+ var e, t;
58
+ return this.isCode || this.isUrl || this.isCredit ? `${(e = this.content) == null ? void 0 : e.title.reward_title} ${this.friendName ?? ""}` : this.redemptionType === "thank_you" ? `${(t = this.content) == null ? void 0 : t.title.join_title} ${this.friendName ?? ""}` : "";
59
+ },
60
+ currency() {
61
+ var t;
62
+ return (t = s().referralCampaign) == null ? void 0 : t.campaign.display_currency;
63
+ },
64
+ credit() {
65
+ var t;
66
+ return (t = s().friend.reward) == null ? void 0 : t.referred_value;
67
+ },
68
+ reward() {
69
+ const e = s();
70
+ switch (this.redemptionType) {
71
+ case "redemption_code":
72
+ return e.friend.redemptionCode;
73
+ case "redemption_url":
74
+ return e.friend.redemptionUrl;
75
+ case "referred_credit":
76
+ return `${this.currency}${this.credit}`;
77
+ default:
78
+ return "";
79
+ }
80
+ }
81
+ },
82
+ methods: {
83
+ copyUrl() {
84
+ var t;
85
+ const e = document.querySelector("#referred-copy");
86
+ if (e) {
87
+ e.setAttribute("type", "text"), e.select();
88
+ try {
89
+ document.execCommand("copy");
90
+ } catch (h) {
91
+ console.error(h);
92
+ }
93
+ e.setAttribute("type", "hidden"), (t = window == null ? void 0 : window.getSelection()) == null || t.removeAllRanges(), this.copied = !0, setTimeout(() => {
94
+ this.copied = !1;
95
+ }, 1500);
96
+ }
97
+ }
98
+ }
99
+ }), V = { class: "text-h5 text-center" }, B = { key: 0 }, D = { class: "text-subtitle-2 text-center" }, j = {
100
+ id: "url-text",
101
+ class: "text-center"
102
+ }, q = ["value"], x = { key: 0 }, z = { key: 1 };
103
+ function F(e, t, h, G, H, I) {
104
+ const k = n("CustomTheme"), f = n("v-icon"), u = n("v-col"), T = n("v-container"), g = n("v-row"), R = n("CallToAction"), U = n("v-card-text");
105
+ return o(), d(U, null, {
106
+ default: r(() => {
107
+ var _, C, w, v;
108
+ return [
109
+ i(k),
110
+ i(T, { class: "align-center" }, {
111
+ default: r(() => [
112
+ i(u, { class: "text-center" }, {
113
+ default: r(() => [
114
+ e.showTick ? (o(), d(f, {
115
+ key: 0,
116
+ class: "mx-auto"
117
+ }, {
118
+ default: r(() => t[2] || (t[2] = [
119
+ m("mdi-check-bold")
120
+ ])),
121
+ _: 1
122
+ })) : l("", !0)
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ _: 1
128
+ }),
129
+ c("div", V, a(e.title), 1),
130
+ e.includesReward && e.showReward && !e.disableRedemption ? (o(), p("div", B, [
131
+ c("div", D, a((_ = e.content) == null ? void 0 : _.reward.title), 1),
132
+ c("div", {
133
+ id: "referrer-url-box",
134
+ class: "text-center",
135
+ onClick: t[0] || (t[0] = (...y) => e.copyUrl && e.copyUrl(...y))
136
+ }, [
137
+ i(g, { "no-gutters": "" }, {
138
+ default: r(() => [
139
+ e.copied && !e.isCredit ? (o(), d(u, {
140
+ key: 0,
141
+ cols: "12",
142
+ class: "text-center"
143
+ }, {
144
+ default: r(() => [
145
+ i(f, null, {
146
+ default: r(() => t[3] || (t[3] = [
147
+ m("mdi-check")
148
+ ])),
149
+ _: 1
150
+ }),
151
+ t[4] || (t[4] = m(" Copied "))
152
+ ]),
153
+ _: 1
154
+ })) : (o(), d(u, {
155
+ key: 1,
156
+ ciks: "11",
157
+ class: "text-center"
158
+ }, {
159
+ default: r(() => [
160
+ c("div", j, a(e.reward), 1)
161
+ ]),
162
+ _: 1
163
+ })),
164
+ !e.copied && !e.isCredit ? (o(), d(u, {
165
+ key: 2,
166
+ cols: "1",
167
+ class: "text-right"
168
+ }, {
169
+ default: r(() => [
170
+ i(f, null, {
171
+ default: r(() => t[5] || (t[5] = [
172
+ m("mdi-content-copy")
173
+ ])),
174
+ _: 1
175
+ })
176
+ ]),
177
+ _: 1
178
+ })) : l("", !0)
179
+ ]),
180
+ _: 1
181
+ })
182
+ ]),
183
+ c("input", {
184
+ type: "hidden",
185
+ id: "referred-copy",
186
+ value: e.reward
187
+ }, null, 8, q),
188
+ e.isCredit ? l("", !0) : (o(), p("div", {
189
+ key: 0,
190
+ id: "copy-url",
191
+ class: "text-center",
192
+ onClick: t[1] || (t[1] = (...y) => e.copyUrl && e.copyUrl(...y))
193
+ }, [
194
+ e.isCode ? (o(), p("div", x, a((C = e.content) == null ? void 0 : C.reward.code_action), 1)) : e.isUrl ? (o(), p("div", z, a((w = e.content) == null ? void 0 : w.reward.link_action), 1)) : l("", !0)
195
+ ]))
196
+ ])) : l("", !0),
197
+ i(R, {
198
+ config: (v = e.content) == null ? void 0 : v.reward_link,
199
+ "referred-details": e.referredDetails
200
+ }, null, 8, ["config", "referred-details"])
201
+ ];
202
+ }),
203
+ _: 1
204
+ });
205
+ }
206
+ const M = /* @__PURE__ */ S(E, [["render", F], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/ReferredSuccessCard.vue"]]);
207
+ export {
208
+ M as R
209
+ };