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
@@ -0,0 +1,33 @@
1
+ import { defineComponent as a, resolveComponent as e, createBlock as p, openBlock as d, withCtx as o, createVNode as r } from "vue";
2
+ import { P as _, _ as f } from "./main-DPldah1M.js";
3
+ import { R as u } from "./ReferredSuccessCard-Dg-a4FYr.js";
4
+ const i = a({
5
+ name: "ReferredSuccessView",
6
+ components: {
7
+ Popup: _,
8
+ ReferredSuccessCard: u
9
+ }
10
+ });
11
+ function m(l, v, C, R, S, w) {
12
+ const c = e("ReferredSuccessCard"), n = e("v-card"), t = e("v-container"), s = e("Popup");
13
+ return d(), p(s, null, {
14
+ default: o(() => [
15
+ r(t, { class: "pa-5" }, {
16
+ default: o(() => [
17
+ r(n, { id: "top-card" }, {
18
+ default: o(() => [
19
+ r(c)
20
+ ]),
21
+ _: 1
22
+ })
23
+ ]),
24
+ _: 1
25
+ })
26
+ ]),
27
+ _: 1
28
+ });
29
+ }
30
+ const $ = /* @__PURE__ */ f(i, [["render", m], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/ReferredSuccessView.vue"]]);
31
+ export {
32
+ $ as default
33
+ };
@@ -0,0 +1,98 @@
1
+ import { defineComponent as h, resolveComponent as t, createBlock as a, openBlock as s, withCtx as r, createElementBlock as F, createCommentVNode as f, createVNode as n, createElementVNode as w } from "vue";
2
+ import { C, P, u as d, _ as g } from "./main-DPldah1M.js";
3
+ import { F as v } from "./FriendPitch-CAS1c3Co.js";
4
+ import { F as k } from "./FriendForm-CunLFX_H.js";
5
+ const b = h({
6
+ name: "ReferredView",
7
+ components: {
8
+ Popup: P,
9
+ FriendPitch: v,
10
+ FriendForm: k,
11
+ CustomTheme: C
12
+ },
13
+ computed: {
14
+ showBanner() {
15
+ var o;
16
+ return ((o = d().referralCampaign) == null ? void 0 : o.config.theme.show_banner_friend) && this.banner;
17
+ },
18
+ banner() {
19
+ var o;
20
+ return (o = d().referralCampaign) == null ? void 0 : o.bannerReferredUrl;
21
+ },
22
+ showFriendPitch() {
23
+ return d().showFriendPitch;
24
+ },
25
+ friendError() {
26
+ return d().friend.hasError;
27
+ }
28
+ }
29
+ }), E = ["src"];
30
+ function y(e, o, V, B, R, T) {
31
+ const c = t("CustomTheme"), l = t("v-card-text"), i = t("v-card"), m = t("v-container"), p = t("FriendForm"), _ = t("FriendPitch"), u = t("Popup");
32
+ return s(), a(u, { class: "friend" }, {
33
+ default: r(() => [
34
+ e.showBanner ? (s(), F("img", {
35
+ key: 0,
36
+ id: "banner-image",
37
+ class: "banner-signup-friend",
38
+ src: e.banner
39
+ }, null, 8, E)) : f("", !0),
40
+ e.friendError ? (s(), a(m, {
41
+ key: 1,
42
+ id: "top-card"
43
+ }, {
44
+ default: r(() => [
45
+ n(i, null, {
46
+ default: r(() => [
47
+ n(c),
48
+ n(l, { class: "text-center" }, {
49
+ default: r(() => o[0] || (o[0] = [
50
+ w("span", { class: "error-message" }, "There was an error loading the referral. Please check your referral code.", -1)
51
+ ])),
52
+ _: 1
53
+ })
54
+ ]),
55
+ _: 1
56
+ })
57
+ ]),
58
+ _: 1
59
+ })) : (s(), a(m, {
60
+ key: 2,
61
+ id: "top-card"
62
+ }, {
63
+ default: r(() => [
64
+ n(i, null, {
65
+ default: r(() => [
66
+ n(c),
67
+ n(l, null, {
68
+ default: r(() => [
69
+ n(p)
70
+ ]),
71
+ _: 1
72
+ })
73
+ ]),
74
+ _: 1
75
+ })
76
+ ]),
77
+ _: 1
78
+ })),
79
+ e.friendError ? f("", !0) : (s(), a(m, { key: 3 }, {
80
+ default: r(() => [
81
+ e.showFriendPitch ? (s(), a(i, { key: 0 }, {
82
+ default: r(() => [
83
+ n(c),
84
+ n(_)
85
+ ]),
86
+ _: 1
87
+ })) : f("", !0)
88
+ ]),
89
+ _: 1
90
+ }))
91
+ ]),
92
+ _: 1
93
+ });
94
+ }
95
+ const U = /* @__PURE__ */ g(b, [["render", y], ["__scopeId", "data-v-58d30e12"], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/referred/ReferredView.vue"]]);
96
+ export {
97
+ U as default
98
+ };
Binary file
@@ -0,0 +1,197 @@
1
+ import { defineComponent as C, resolveComponent as a, createElementBlock as u, openBlock as l, createVNode as o, withCtx as t, createBlock as R, createCommentVNode as b, createElementVNode as v, toDisplayString as c, createTextVNode as i } from "vue";
2
+ import { u as p, _ as y } from "./main-DPldah1M.js";
3
+ const S = C({
4
+ name: "RewardCardStats",
5
+ props: {
6
+ reward: {
7
+ type: Object
8
+ }
9
+ },
10
+ computed: {
11
+ content() {
12
+ var r, n;
13
+ return (n = (r = p().referralCampaign) == null ? void 0 : r.config) == null ? void 0 : n.rewards;
14
+ },
15
+ showEarnedRewards() {
16
+ var e, r;
17
+ return ((e = this.content) == null ? void 0 : e.show_earned_rewards) && ((r = this.reward) == null ? void 0 : r.hasEarnedRewards) && !0;
18
+ },
19
+ currency() {
20
+ var r, n;
21
+ return (n = (r = p().referralCampaign) == null ? void 0 : r.campaign) == null ? void 0 : n.display_currency;
22
+ },
23
+ referrals() {
24
+ var r;
25
+ return ((r = p().referral) == null ? void 0 : r.currentPoints) || 0;
26
+ },
27
+ remaining() {
28
+ var e;
29
+ if (this.reward) {
30
+ const r = ((e = this.reward) == null ? void 0 : e.points) - this.referrals;
31
+ return r < 0 ? 0 : r;
32
+ } else
33
+ return "";
34
+ },
35
+ isComplete() {
36
+ var e;
37
+ return (e = this.reward) == null ? void 0 : e.complete;
38
+ },
39
+ calculatedAmount() {
40
+ var e;
41
+ return (e = this.reward) == null ? void 0 : e.calculatedValue;
42
+ }
43
+ }
44
+ }), N = { class: "reward-stats" }, V = { class: "text-subtitle-2 text-center" }, I = {
45
+ key: 0,
46
+ class: "text-subtitle-2 text-center"
47
+ }, A = {
48
+ key: 1,
49
+ class: "text-subtitle-2 text-center"
50
+ }, B = { class: "text-subtitle-2 text-center" };
51
+ function O(e, r, n, $, E, x) {
52
+ const _ = a("v-col"), m = a("v-icon"), w = a("v-chip"), f = a("v-layout");
53
+ return l(), u("div", N, [
54
+ o(f, { class: "d-flex flex-wrap" }, {
55
+ default: t(() => [
56
+ o(_, {
57
+ cols: "auto",
58
+ class: "flex-grow-1 px-4"
59
+ }, {
60
+ default: t(() => {
61
+ var s, d;
62
+ return [
63
+ v("div", V, c(((s = e.content) == null ? void 0 : s.required_label) || "REQUIRED") + ": " + c((d = e.reward) == null ? void 0 : d.points), 1)
64
+ ];
65
+ }),
66
+ _: 1
67
+ }),
68
+ o(_, {
69
+ cols: "auto",
70
+ class: "flex-grow-1 px-4"
71
+ }, {
72
+ default: t(() => {
73
+ var s, d;
74
+ return [
75
+ e.isComplete ? (l(), u("div", I, [
76
+ i(c(((s = e.content) == null ? void 0 : s.complete_label) || "COMPLETE") + " ", 1),
77
+ o(m, null, {
78
+ default: t(() => r[0] || (r[0] = [
79
+ i("mdi-check-circle-outline")
80
+ ])),
81
+ _: 1
82
+ })
83
+ ])) : (l(), u("div", A, c(((d = e.content) == null ? void 0 : d.remaining_label) || "REMAINING") + ": " + c(e.remaining), 1))
84
+ ];
85
+ }),
86
+ _: 1
87
+ }),
88
+ e.showEarnedRewards ? (l(), R(_, {
89
+ key: 0,
90
+ cols: "auto",
91
+ class: "flex-grow-1 px-4"
92
+ }, {
93
+ default: t(() => {
94
+ var s;
95
+ return [
96
+ v("div", B, [
97
+ i(c((s = e.content) == null ? void 0 : s.earned_label) + ": ", 1),
98
+ o(w, {
99
+ variant: "outlined",
100
+ size: "small",
101
+ label: ""
102
+ }, {
103
+ default: t(() => [
104
+ i(c(e.currency) + c(e.calculatedAmount), 1)
105
+ ]),
106
+ _: 1
107
+ })
108
+ ])
109
+ ];
110
+ }),
111
+ _: 1
112
+ })) : b("", !0)
113
+ ]),
114
+ _: 1
115
+ })
116
+ ]);
117
+ }
118
+ const U = /* @__PURE__ */ y(S, [["render", O], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/user/rewards/RewardCardStats.vue"]]), j = C({
119
+ name: "RewardCard",
120
+ components: { RewardCardStats: U },
121
+ props: {
122
+ reward: {
123
+ type: Object
124
+ }
125
+ },
126
+ computed: {
127
+ content() {
128
+ var r, n;
129
+ return (n = (r = p().referralCampaign) == null ? void 0 : r.config) == null ? void 0 : n.rewards;
130
+ },
131
+ description() {
132
+ var e;
133
+ return (e = this.reward) == null ? void 0 : e.description;
134
+ },
135
+ image() {
136
+ var e;
137
+ return (e = this.reward) == null ? void 0 : e.image;
138
+ }
139
+ }
140
+ }), D = { class: "reward-card" }, M = ["src"];
141
+ function P(e, r, n, $, E, x) {
142
+ var h;
143
+ const _ = a("v-card-title"), m = a("RewardCardStats"), w = a("v-col"), f = a("v-row"), s = a("v-layout"), d = a("v-card-text"), k = a("v-card");
144
+ return l(), u("div", D, [
145
+ o(k, {
146
+ id: `reward_${(h = e.reward) == null ? void 0 : h.name}`
147
+ }, {
148
+ default: t(() => [
149
+ o(_, { class: "pb-0 reward-title" }, {
150
+ default: t(() => {
151
+ var g;
152
+ return [
153
+ i(c((g = e.reward) == null ? void 0 : g.name), 1)
154
+ ];
155
+ }),
156
+ _: 1
157
+ }),
158
+ o(m, { reward: e.reward }, null, 8, ["reward"]),
159
+ e.image ? (l(), R(s, { key: 0 }, {
160
+ default: t(() => [
161
+ o(f, { "no-gutters": "" }, {
162
+ default: t(() => [
163
+ o(w, {
164
+ class: "text-center",
165
+ cols: "12",
166
+ sm: "12"
167
+ }, {
168
+ default: t(() => [
169
+ v("img", {
170
+ class: "reward-card-img",
171
+ alt: "Reward card image",
172
+ src: e.image
173
+ }, null, 8, M)
174
+ ]),
175
+ _: 1
176
+ })
177
+ ]),
178
+ _: 1
179
+ })
180
+ ]),
181
+ _: 1
182
+ })) : b("", !0),
183
+ o(d, null, {
184
+ default: t(() => [
185
+ i(c(e.description), 1)
186
+ ]),
187
+ _: 1
188
+ })
189
+ ]),
190
+ _: 1
191
+ }, 8, ["id"])
192
+ ]);
193
+ }
194
+ const z = /* @__PURE__ */ y(j, [["render", P], ["__scopeId", "data-v-89f8bb36"], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/user/rewards/RewardCard.vue"]]);
195
+ export {
196
+ z as R
197
+ };
Binary file
@@ -0,0 +1,27 @@
1
+ import { defineComponent as a, resolveComponent as e, createBlock as s, openBlock as _, withCtx as o, createVNode as t } from "vue";
2
+ import { R as d } from "./RewardsRoot-CnQfyjC6.js";
3
+ import { _ as p } from "./main-DPldah1M.js";
4
+ const m = a({
5
+ name: "RewardsBlock",
6
+ components: {
7
+ RewardsRoot: d
8
+ }
9
+ });
10
+ function l(f, i, u, R, v, w) {
11
+ const r = e("RewardsRoot"), n = e("v-card-text"), c = e("v-card");
12
+ return _(), s(c, null, {
13
+ default: o(() => [
14
+ t(n, null, {
15
+ default: o(() => [
16
+ t(r)
17
+ ]),
18
+ _: 1
19
+ })
20
+ ]),
21
+ _: 1
22
+ });
23
+ }
24
+ const $ = /* @__PURE__ */ p(m, [["render", l], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/referral_campaign/Rewards.vue"]]);
25
+ export {
26
+ $ as default
27
+ };
@@ -0,0 +1,198 @@
1
+ import { defineComponent as z, resolveComponent as d, createElementBlock as a, openBlock as o, createElementVNode as y, createBlock as u, createCommentVNode as H, createVNode as s, toDisplayString as w, withCtx as i, Fragment as h, renderList as _, normalizeStyle as I, createTextVNode as v, normalizeClass as V } from "vue";
2
+ import { R as N } from "./RewardCard-CwU2X2Yo.js";
3
+ import { u as f, _ as B } from "./main-DPldah1M.js";
4
+ const E = z({
5
+ name: "RewardsRoot",
6
+ components: {
7
+ RewardCard: N
8
+ },
9
+ data() {
10
+ return {
11
+ carouselHeight: "auto",
12
+ show: !0,
13
+ selectedTier: 0,
14
+ firstHeightUpdate: !0
15
+ };
16
+ },
17
+ computed: {
18
+ rewards() {
19
+ return f().visibleRewards;
20
+ },
21
+ content() {
22
+ var t;
23
+ return (t = f().referralCampaign) == null ? void 0 : t.config.rewards;
24
+ },
25
+ referral() {
26
+ return f().referral;
27
+ },
28
+ currentTier() {
29
+ return this.rewards.find((e) => {
30
+ var t;
31
+ return e.id === ((t = this.referral) == null ? void 0 : t.currentTierId);
32
+ });
33
+ },
34
+ hasMultipleRewards() {
35
+ return this.rewards.length > 1;
36
+ },
37
+ showRewards() {
38
+ return this.rewards.length > 1 && this.currentTier !== void 0;
39
+ },
40
+ stepperColor() {
41
+ var t, r, l;
42
+ return ((l = (r = (t = f().referralCampaign) == null ? void 0 : t.config) == null ? void 0 : r.theme) == null ? void 0 : l.stepper_background_color) || "#3c3c3c";
43
+ }
44
+ },
45
+ methods: {
46
+ selectTier(e) {
47
+ const t = this.rewards.findIndex((r) => r.id === e);
48
+ t !== -1 && (this.selectedTier = t);
49
+ },
50
+ findRewardIndex(e) {
51
+ return this.rewards.findIndex((t) => t.id === e.id);
52
+ },
53
+ updateRewardsHeight() {
54
+ const e = document.querySelectorAll(".v-window-item");
55
+ let t = 0;
56
+ for (let r = 0; r < e.length; r++) {
57
+ e[r].style.display === "none" && (e[r].style.display = "inline", e[r].style.visibility = "hidden");
58
+ const l = e[r].offsetHeight;
59
+ l > t && (t = l), e[r].style.display === "inline" && (e[r].style.display = "none", e[r].style.visibility = "unset");
60
+ }
61
+ this.$data.carouselHeight = t ? `${t}px` : "auto";
62
+ }
63
+ },
64
+ mounted() {
65
+ this.$nextTick(() => {
66
+ var e;
67
+ this.selectTier((e = this.referral) == null ? void 0 : e.currentTierId), setInterval(() => {
68
+ this.updateRewardsHeight();
69
+ }, 1500);
70
+ });
71
+ }
72
+ }), U = { id: "rewards-root" }, M = { class: "text-h5 text-center" }, q = { class: "text-subtitle-2 text-center" }, A = { key: 0 }, D = { key: 1 };
73
+ function F(e, t, r, l, L, j) {
74
+ var g, R;
75
+ const c = d("v-icon"), k = d("v-timeline-item"), b = d("v-timeline"), p = d("v-btn"), C = d("RewardCard"), T = d("v-window-item"), $ = d("v-window"), S = d("v-item"), x = d("v-item-group");
76
+ return o(), a("div", U, [
77
+ y("div", M, w((g = e.content) == null ? void 0 : g.title), 1),
78
+ y("div", q, w((R = e.content) == null ? void 0 : R.subtitle), 1),
79
+ e.showRewards ? (o(), u(b, {
80
+ key: 0,
81
+ id: "timeline-container",
82
+ "line-inset": "10px",
83
+ direction: "horizontal",
84
+ density: "comfortable",
85
+ "truncate-line": "both"
86
+ }, {
87
+ default: i(() => [
88
+ (o(!0), a(h, null, _(e.rewards, (n, m) => (o(), u(k, {
89
+ size: "small",
90
+ key: `${m}-step`,
91
+ "fill-dot": "",
92
+ onClick: (G) => e.selectTier(n.id)
93
+ }, {
94
+ icon: i(() => [
95
+ n.complete ? (o(), a("span", A, [
96
+ s(c, { icon: "mdi-check" })
97
+ ])) : (o(), a("span", D, w(n.points), 1))
98
+ ]),
99
+ _: 2
100
+ }, 1032, ["onClick"]))), 128))
101
+ ]),
102
+ _: 1
103
+ })) : H("", !0),
104
+ s($, {
105
+ style: I(`height: ${e.carouselHeight};`),
106
+ id: "reward-carousel-container",
107
+ ref: "carousel",
108
+ "show-arrows": e.hasMultipleRewards,
109
+ modelValue: e.selectedTier,
110
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.selectedTier = n)
111
+ }, {
112
+ prev: i(({ props: n }) => [
113
+ s(p, {
114
+ class: "stepper-btn",
115
+ variant: "flat",
116
+ onClick: n.onClick,
117
+ key: "icon-left",
118
+ size: "34"
119
+ }, {
120
+ default: i(() => [
121
+ s(c, { size: "x-large" }, {
122
+ default: i(() => t[1] || (t[1] = [
123
+ v("mdi-menu-left")
124
+ ])),
125
+ _: 1
126
+ })
127
+ ]),
128
+ _: 2
129
+ }, 1032, ["onClick"])
130
+ ]),
131
+ next: i(({ props: n }) => [
132
+ s(p, {
133
+ class: "stepper-btn",
134
+ variant: "flat",
135
+ onClick: n.onClick,
136
+ key: "icon-right",
137
+ size: "34"
138
+ }, {
139
+ default: i(() => [
140
+ s(c, { size: "x-large" }, {
141
+ default: i(() => t[2] || (t[2] = [
142
+ v("mdi-menu-right")
143
+ ])),
144
+ _: 1
145
+ })
146
+ ]),
147
+ _: 2
148
+ }, 1032, ["onClick"])
149
+ ]),
150
+ default: i(() => [
151
+ (o(!0), a(h, null, _(e.rewards, (n, m) => (o(), u(T, {
152
+ key: `reward_${m}`,
153
+ class: "px-4",
154
+ eager: ""
155
+ }, {
156
+ default: i(() => [
157
+ s(C, { reward: n }, null, 8, ["reward"])
158
+ ]),
159
+ _: 2
160
+ }, 1024))), 128))
161
+ ]),
162
+ _: 1
163
+ }, 8, ["style", "show-arrows", "modelValue"]),
164
+ s(x, { class: "text-center reward-carousel-controls" }, {
165
+ default: i(() => [
166
+ (o(!0), a(h, null, _(e.rewards, (n) => (o(), u(S, {
167
+ key: `btn-${n.id}`
168
+ }, {
169
+ default: i(() => [
170
+ s(p, {
171
+ size: "x-small",
172
+ variant: "text",
173
+ class: V(e.selectedTier === e.findRewardIndex(n) ? "selected" : ""),
174
+ icon: "",
175
+ onClick: (m) => e.selectTier(n.id)
176
+ }, {
177
+ default: i(() => [
178
+ s(c, { size: "x-large" }, {
179
+ default: i(() => [...t[3] || (t[3] = [
180
+ v("mdi-record")
181
+ ])]),
182
+ _: 1
183
+ })
184
+ ]),
185
+ _: 2
186
+ }, 1032, ["class", "onClick"])
187
+ ]),
188
+ _: 2
189
+ }, 1024))), 128))
190
+ ]),
191
+ _: 1
192
+ })
193
+ ]);
194
+ }
195
+ const P = /* @__PURE__ */ B(E, [["render", F], ["__file", "/Users/dominic/Code/gather-vue/src/components/referral_campaign/user/rewards/RewardsRoot.vue"]]);
196
+ export {
197
+ P as R
198
+ };
Binary file
@@ -0,0 +1,17 @@
1
+ import { defineComponent as t, createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
2
+ import { _ as c } from "./main-DPldah1M.js";
3
+ const s = t({
4
+ name: "BlocksRoot"
5
+ });
6
+ function d(i, e, l, a, m, p) {
7
+ return n(), o("div", null, e[0] || (e[0] = [
8
+ r("div", {
9
+ id: "editor-welcome-text",
10
+ class: "text-subtitle-2 text-center"
11
+ }, "Select a Block from the right hand side menu", -1)
12
+ ]));
13
+ }
14
+ const u = /* @__PURE__ */ c(s, [["render", d], ["__scopeId", "data-v-fcd3de5b"], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/Root.vue"]]);
15
+ export {
16
+ u as default
17
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent as t, resolveComponent as e, createBlock as r, openBlock as a, withCtx as c, createVNode as s } from "vue";
2
+ import { S as i } from "./Card-B1Pdd5BL.js";
3
+ import { _ } from "./main-DPldah1M.js";
4
+ const p = t({
5
+ name: "ShareInvitationBlock",
6
+ components: {
7
+ Share: i
8
+ }
9
+ });
10
+ function m(d, f, l, h, u, v) {
11
+ const o = e("Share"), n = e("v-card");
12
+ return a(), r(n, null, {
13
+ default: c(() => [
14
+ s(o)
15
+ ]),
16
+ _: 1
17
+ });
18
+ }
19
+ const C = /* @__PURE__ */ _(p, [["render", m], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/referral_campaign/ShareInvitation.vue"]]);
20
+ export {
21
+ C as default
22
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as i, resolveComponent as p, createBlock as m, openBlock as _, withCtx as u, createVNode as d } from "vue";
2
+ import { S as g } from "./SignUpFormCard-Cail4V4M.js";
3
+ import { a as c, _ as f } from "./main-DPldah1M.js";
4
+ const l = i({
5
+ name: "SignInBlock",
6
+ components: {
7
+ SignUpFormCard: g
8
+ },
9
+ computed: {
10
+ closeButtonConfig() {
11
+ var o, n, e;
12
+ return (e = (n = (o = c().campaign) == null ? void 0 : o.config) == null ? void 0 : n.pop_up) == null ? void 0 : e.sign_up;
13
+ },
14
+ showSignUp() {
15
+ var o, n, e, r;
16
+ return (r = (e = (n = (o = c().campaign) == null ? void 0 : o.config) == null ? void 0 : n.pop_up) == null ? void 0 : e.sign_up) == null ? void 0 : r.enabled;
17
+ },
18
+ cardElevation() {
19
+ var o, n, e;
20
+ return (e = (n = (o = c().campaign) == null ? void 0 : o.config) == null ? void 0 : n.theme) == null ? void 0 : e.card_elevation;
21
+ }
22
+ }
23
+ });
24
+ function S(t, o, n, e, r, C) {
25
+ const s = p("SignUpFormCard"), a = p("v-container");
26
+ return _(), m(a, { class: "pa-5" }, {
27
+ default: u(() => [
28
+ d(s)
29
+ ]),
30
+ _: 1
31
+ });
32
+ }
33
+ const k = /* @__PURE__ */ f(l, [["render", S], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/pop_up/SignIn.vue"]]);
34
+ export {
35
+ k as default
36
+ };
Binary file
@@ -0,0 +1,17 @@
1
+ import { defineComponent as n, resolveComponent as o, createBlock as r, openBlock as t } from "vue";
2
+ import i from "./SignUpView-a7LPgEeX.js";
3
+ import { _ as c } from "./main-DPldah1M.js";
4
+ const p = n({
5
+ name: "SignInBlock",
6
+ components: {
7
+ SignUpView: i
8
+ }
9
+ });
10
+ function s(m, a, _, f, d, g) {
11
+ const e = o("SignUpView");
12
+ return t(), r(e, { hideBanner: !0 });
13
+ }
14
+ const k = /* @__PURE__ */ c(p, [["render", s], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/referral_campaign/SignIn.vue"]]);
15
+ export {
16
+ k as default
17
+ };
@@ -0,0 +1,17 @@
1
+ import { defineComponent as o, resolveComponent as n, createBlock as r, openBlock as t } from "vue";
2
+ import { T as p } from "./TextAreaCard-D_VfEHME.js";
3
+ import { _ as a } from "./main-DPldah1M.js";
4
+ const c = o({
5
+ name: "PopUpTextAreaBlock",
6
+ components: {
7
+ TextAreaCard: p
8
+ }
9
+ });
10
+ function s(i, m, _, d, f, x) {
11
+ const e = n("TextAreaCard");
12
+ return t(), r(e, { "page-type": "sign-in" });
13
+ }
14
+ const A = /* @__PURE__ */ a(c, [["render", s], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/pop_up/SignInTextArea.vue"]]);
15
+ export {
16
+ A as default
17
+ };