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.
- package/README.md +64 -0
- package/dist/.htaccess +1 -0
- package/dist/App-B7KWoHRH.js +160 -0
- package/dist/App-B7KWoHRH.js.gz +0 -0
- package/dist/App-C03tW0-W.js +405 -0
- package/dist/App-C03tW0-W.js.gz +0 -0
- package/dist/BannerExample-CRj1iMwh.js +77 -0
- package/dist/BannerExample-CRj1iMwh.js.gz +0 -0
- package/dist/BannerExample-DLN6d9M0.js +84 -0
- package/dist/BannerExample-DLN6d9M0.js.gz +0 -0
- package/dist/CallToAction-BbJ-zDFa.js +3493 -0
- package/dist/CallToAction-BbJ-zDFa.js.gz +0 -0
- package/dist/CallToAction-jAi8aaI-.js +35 -0
- package/dist/CallToAction-jAi8aaI-.js.gz +0 -0
- package/dist/Card-B1Pdd5BL.js +202 -0
- package/dist/Card-B1Pdd5BL.js.gz +0 -0
- package/dist/Card-qMo1jrfb.js +699 -0
- package/dist/Card-qMo1jrfb.js.gz +0 -0
- package/dist/CloseCardButton-CL_3xkAF.js +71 -0
- package/dist/CloseCardButton-CL_3xkAF.js.gz +0 -0
- package/dist/Editor-DXSZFkEM.js +149 -0
- package/dist/Editor-DXSZFkEM.js.gz +0 -0
- package/dist/EmailExistsView-CX1ijN0R.js +72 -0
- package/dist/EmailExistsView-CX1ijN0R.js.gz +0 -0
- package/dist/EmailInvitation-BVFicmrK.js +22 -0
- package/dist/EmailView-DdaSnKFq.js +84 -0
- package/dist/EmailView-DdaSnKFq.js.gz +0 -0
- package/dist/FriendBannerExample-C8QmPZyP.js +76 -0
- package/dist/FriendBannerExample-C8QmPZyP.js.gz +0 -0
- package/dist/FriendConfirmation-B-RemAoP.js +22 -0
- package/dist/FriendForm-CunLFX_H.js +255 -0
- package/dist/FriendForm-CunLFX_H.js.gz +0 -0
- package/dist/FriendOptIn-bp4udUYv.js +27 -0
- package/dist/FriendPending-cFjgyL8g.js +22 -0
- package/dist/FriendPitch-BhSs2eLR.js +19 -0
- package/dist/FriendPitch-CAS1c3Co.js +33 -0
- package/dist/FriendSuccess-uxEdomAY.js +22 -0
- package/dist/Invitations-hprUCIvW.js +27 -0
- package/dist/InviteRoot-Dima8d2G.js +252 -0
- package/dist/InviteRoot-Dima8d2G.js.gz +0 -0
- package/dist/LaunchButton-BQw42WVn.js +18 -0
- package/dist/MazBtn.1qp5aQ4N-DU0ii1Xr.js +103 -0
- package/dist/MazBtn.1qp5aQ4N-DU0ii1Xr.js.gz +0 -0
- package/dist/MazCheckbox.UAnkvAoS-pse3PCQf.js +149 -0
- package/dist/MazCheckbox.UAnkvAoS-pse3PCQf.js.gz +0 -0
- package/dist/MazIcon.B5hPzeLk-C20gse35.js +103 -0
- package/dist/MazIcon.B5hPzeLk-C20gse35.js.gz +0 -0
- package/dist/MazPhoneNumberInput-Cz50Ts4U.js +4751 -0
- package/dist/MazPhoneNumberInput-Cz50Ts4U.js.gz +0 -0
- package/dist/MazSpinner.DZT5jj-c-y1IYJMcd.js +34 -0
- package/dist/MazSpinner.DZT5jj-c-y1IYJMcd.js.gz +0 -0
- package/dist/Menu-BsKr40BO.js +21377 -0
- package/dist/Menu-BsKr40BO.js.gz +0 -0
- package/dist/Message-D4PAgcHO.js +22 -0
- package/dist/MessageCard-CC74qCir.js +74 -0
- package/dist/MessageCard-CC74qCir.js.gz +0 -0
- package/dist/MessageView-BKAIrwj7.js +88 -0
- package/dist/MessageView-BKAIrwj7.js.gz +0 -0
- package/dist/PendingApprovalCard-Dzs0UxBO.js +48 -0
- package/dist/PendingApprovalCard-Dzs0UxBO.js.gz +0 -0
- package/dist/PendingApprovalView-V-OUYSnK.js +33 -0
- package/dist/ReferralButton-CEue5qud.js +18 -0
- package/dist/ReferralFailedView-3Ua13t4V.js +74 -0
- package/dist/ReferralFailedView-3Ua13t4V.js.gz +0 -0
- package/dist/ReferredConfirmCard-iwgkcZCm.js +48 -0
- package/dist/ReferredConfirmCard-iwgkcZCm.js.gz +0 -0
- package/dist/ReferredConfirmView-DS1RNBwP.js +33 -0
- package/dist/ReferredSuccessCard-Dg-a4FYr.js +209 -0
- package/dist/ReferredSuccessCard-Dg-a4FYr.js.gz +0 -0
- package/dist/ReferredSuccessView-ChVztlUr.js +33 -0
- package/dist/ReferredView-7HezoVIA.js +98 -0
- package/dist/ReferredView-7HezoVIA.js.gz +0 -0
- package/dist/RewardCard-CwU2X2Yo.js +197 -0
- package/dist/RewardCard-CwU2X2Yo.js.gz +0 -0
- package/dist/Rewards-DdyEwCyy.js +27 -0
- package/dist/RewardsRoot-CnQfyjC6.js +198 -0
- package/dist/RewardsRoot-CnQfyjC6.js.gz +0 -0
- package/dist/Root-bUfnZpPP.js +17 -0
- package/dist/ShareInvitation-SAgC-8YA.js +22 -0
- package/dist/SignIn-CroW3mY6.js +36 -0
- package/dist/SignIn-CroW3mY6.js.gz +0 -0
- package/dist/SignIn-g32Hg2or.js +17 -0
- package/dist/SignInTextArea-DBRk6x09.js +17 -0
- package/dist/SignUpFormCard-Cail4V4M.js +287 -0
- package/dist/SignUpFormCard-Cail4V4M.js.gz +0 -0
- package/dist/SignUpView-a7LPgEeX.js +368 -0
- package/dist/SignUpView-a7LPgEeX.js.gz +0 -0
- package/dist/SignUpView-uujOX5hN.js +103 -0
- package/dist/SignUpView-uujOX5hN.js.gz +0 -0
- package/dist/SocialView-CbBZTB7Z.js +87 -0
- package/dist/SocialView-CbBZTB7Z.js.gz +0 -0
- package/dist/Stats-DtS-GXsI.js +22 -0
- package/dist/StatsView-fX-VznRc.js +90 -0
- package/dist/StatsView-fX-VznRc.js.gz +0 -0
- package/dist/Success-k06CZz0K.js +40 -0
- package/dist/Success-k06CZz0K.js.gz +0 -0
- package/dist/SuccessCard-C1iF1j2W.js +219 -0
- package/dist/SuccessCard-C1iF1j2W.js.gz +0 -0
- package/dist/SuccessView-CDUVkpSQ.js +77 -0
- package/dist/SuccessView-CDUVkpSQ.js.gz +0 -0
- package/dist/TextArea-DFfa9A93.js +17 -0
- package/dist/TextAreaCard-D_VfEHME.js +34 -0
- package/dist/TextAreaCard-D_VfEHME.js.gz +0 -0
- package/dist/UserView-DnD929IT.js +96 -0
- package/dist/UserView-DnD929IT.js.gz +0 -0
- package/dist/WhatsAppShare-B40Ouvds.js +59 -0
- package/dist/WhatsAppShare-B40Ouvds.js.gz +0 -0
- package/dist/agent-session-Xh6dZlhc.js +298 -0
- package/dist/agent-session-Xh6dZlhc.js.gz +0 -0
- package/dist/aggregate-base-C6N8Ymd5.js +830 -0
- package/dist/aggregate-base-C6N8Ymd5.js.gz +0 -0
- package/dist/bel-serializer-DMbFBZ6U.js +51 -0
- package/dist/bel-serializer-DMbFBZ6U.js.gz +0 -0
- package/dist/browser-q7cvfJ-2.js +366 -0
- package/dist/browser-q7cvfJ-2.js.gz +0 -0
- package/dist/cart.js +5 -0
- package/dist/cart.js.gz +0 -0
- package/dist/check.C9Q_W85g-DmgtOx7Q.js +30 -0
- package/dist/chevron-down.BkvtON3b-RNrTKYcy.js +30 -0
- package/dist/content-5VAQ1vQ0.js +4 -0
- package/dist/event-origin-BSW5uum9.js +13 -0
- package/dist/examples.mobile.json.tW3aL0qI-tW3aL0qI.js +4 -0
- package/dist/examples.mobile.json.tW3aL0qI-tW3aL0qI.js.gz +0 -0
- package/dist/eye-slash.BoO00xzs-CULY_lvM.js +30 -0
- package/dist/eye.f8zAUc30-Yr89kafZ.js +43 -0
- package/dist/eye.f8zAUc30-Yr89kafZ.js.gz +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/first-paint-B61SrVKm.js +453 -0
- package/dist/first-paint-B61SrVKm.js.gz +0 -0
- package/dist/gather-vue.css +5 -0
- package/dist/gather-vue.css.gz +0 -0
- package/dist/gather-widget.es.js +5 -0
- package/dist/gather-widget.umd.js +263 -0
- package/dist/gather-widget.umd.js.gz +0 -0
- package/dist/gather_widget.css +58 -0
- package/dist/gather_widget.css.gz +0 -0
- package/dist/gather_widget.js +72 -0
- package/dist/gather_widget.js.gz +0 -0
- package/dist/iframe-BELrOJ1p.js +6 -0
- package/dist/index-3lvNtPTE.js +327 -0
- package/dist/index-3lvNtPTE.js.gz +0 -0
- package/dist/index-BDyGxL1x.js +255 -0
- package/dist/index-BDyGxL1x.js.gz +0 -0
- package/dist/index-BF9haAFD.js +343 -0
- package/dist/index-BF9haAFD.js.gz +0 -0
- package/dist/index-BMIST_QA.js +128 -0
- package/dist/index-BMIST_QA.js.gz +0 -0
- package/dist/index-BdWnMhAc.js +235 -0
- package/dist/index-BdWnMhAc.js.gz +0 -0
- package/dist/index-BioZsJbf.js +190 -0
- package/dist/index-BioZsJbf.js.gz +0 -0
- package/dist/index-BzOcD8v-.js +166 -0
- package/dist/index-BzOcD8v-.js.gz +0 -0
- package/dist/index-C8pB9mUQ.js +147 -0
- package/dist/index-C8pB9mUQ.js.gz +0 -0
- package/dist/index-C_ougoWd.js +426 -0
- package/dist/index-C_ougoWd.js.gz +0 -0
- package/dist/index-CoRlIGDo.js +513 -0
- package/dist/index-CoRlIGDo.js.gz +0 -0
- package/dist/index-CyWBxUBS.js +291 -0
- package/dist/index-CyWBxUBS.js.gz +0 -0
- package/dist/index-DijQHge7.js +325 -0
- package/dist/index-DijQHge7.js.gz +0 -0
- package/dist/magnifying-glass.-nBiyXot-CuA_mltt.js +30 -0
- package/dist/main-DPldah1M.js +40243 -0
- package/dist/main-DPldah1M.js.gz +0 -0
- package/dist/nav-timing-B-TNQpyK.js +31 -0
- package/dist/nav-timing-B-TNQpyK.js.gz +0 -0
- package/dist/no-photography.BJX8HSus-BJX8HSus.js +4 -0
- package/dist/no-symbol.CIgKzsrB-3PuxVsDY.js +30 -0
- package/dist/recorder-PHZWRV-S.js +8271 -0
- package/dist/recorder-PHZWRV-S.js.gz +0 -0
- package/dist/stylesheet-evaluator-B4P289vW.js +86 -0
- package/dist/stylesheet-evaluator-B4P289vW.js.gz +0 -0
- package/dist/time-to-first-byte-kiwh1xjs.js +29 -0
- package/dist/traverse-Bw4y1x4D.js +8 -0
- package/dist/type-check-Bp684oBR.js +6 -0
- package/package.json +89 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# gather-vue-app
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
8
|
+
|
|
9
|
+
## Type Support for `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
+
|
|
13
|
+
## Customize configuration
|
|
14
|
+
|
|
15
|
+
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
16
|
+
|
|
17
|
+
## Project Setup
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
pnpm install
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Compile and Hot-Reload for Development
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
pnpm dev
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Type-Check, Compile and Minify for Production
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm build
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Run Unit Tests with [Vitest](https://vitest.dev/)
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm test:unit
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Run End-to-End Tests with [Playwright](https://playwright.dev)
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
# Install browsers for the first run
|
|
45
|
+
npx playwright install
|
|
46
|
+
|
|
47
|
+
# When testing on CI, must build the project first
|
|
48
|
+
pnpm build
|
|
49
|
+
|
|
50
|
+
# Runs the end-to-end tests
|
|
51
|
+
pnpm test:e2e
|
|
52
|
+
# Runs the tests only on Chromium
|
|
53
|
+
pnpm test:e2e --project=chromium
|
|
54
|
+
# Runs the tests of a specific file
|
|
55
|
+
pnpm test:e2e tests/example.spec.ts
|
|
56
|
+
# Runs the tests in debug mode
|
|
57
|
+
pnpm test:e2e --debug
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
pnpm lint
|
|
64
|
+
```
|
package/dist/.htaccess
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Header add Access-Control-Allow-Origin "*"
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { defineComponent as C, resolveComponent as a, createElementBlock as B, openBlock as u, normalizeStyle as y, createBlock as f, createCommentVNode as _, createVNode as l, withCtx as r, createTextVNode as d, createElementVNode as s, normalizeClass as A } from "vue";
|
|
2
|
+
import { a as i, _ as S } from "./main-DPldah1M.js";
|
|
3
|
+
const h = C({
|
|
4
|
+
name: "AppBlock",
|
|
5
|
+
computed: {
|
|
6
|
+
showAppBar() {
|
|
7
|
+
var o, t, e;
|
|
8
|
+
return (e = (t = (o = i().campaign) == null ? void 0 : o.config) == null ? void 0 : t.theme) == null ? void 0 : e.show_app_bar;
|
|
9
|
+
},
|
|
10
|
+
showClose() {
|
|
11
|
+
var o, t, e;
|
|
12
|
+
return (e = (t = (o = i().campaign) == null ? void 0 : o.config) == null ? void 0 : t.theme) == null ? void 0 : e.show_close_button;
|
|
13
|
+
},
|
|
14
|
+
barColor() {
|
|
15
|
+
var o;
|
|
16
|
+
return ((o = i().campaign) == null ? void 0 : o.config.theme.app_bar_color) ?? "#272728";
|
|
17
|
+
},
|
|
18
|
+
transparentBackground() {
|
|
19
|
+
var o, t, e;
|
|
20
|
+
return (e = (t = (o = i().campaign) == null ? void 0 : o.config) == null ? void 0 : t.theme) == null ? void 0 : e.transparent_background;
|
|
21
|
+
},
|
|
22
|
+
windowBackgroundColor() {
|
|
23
|
+
var o, t, e;
|
|
24
|
+
return (e = (t = (o = i().campaign) == null ? void 0 : o.config) == null ? void 0 : t.theme) == null ? void 0 : e.window_color;
|
|
25
|
+
},
|
|
26
|
+
formInputStyle() {
|
|
27
|
+
var o, t, e;
|
|
28
|
+
return (e = (t = (o = i().campaign) == null ? void 0 : o.config) == null ? void 0 : t.theme) == null ? void 0 : e.form_input_style;
|
|
29
|
+
},
|
|
30
|
+
cardElevation() {
|
|
31
|
+
var o, t, e;
|
|
32
|
+
return (e = (t = (o = i().campaign) == null ? void 0 : o.config) == null ? void 0 : t.theme) == null ? void 0 : e.card_elevation;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}), E = {
|
|
36
|
+
novalidate: "",
|
|
37
|
+
id: "example-form"
|
|
38
|
+
};
|
|
39
|
+
function I(n, o, t, e, T, $) {
|
|
40
|
+
const p = a("v-icon"), c = a("v-btn"), v = a("v-app-bar"), m = a("v-row"), g = a("v-container"), b = a("v-text-field"), k = a("v-card-text"), w = a("v-card"), x = a("v-col");
|
|
41
|
+
return u(), B("div", {
|
|
42
|
+
id: "pop-up-editor-app-container",
|
|
43
|
+
style: y(
|
|
44
|
+
n.transparentBackground ? "background-color: transparent !important" : n.windowBackgroundColor ? `background-color: ${n.windowBackgroundColor} !important` : ""
|
|
45
|
+
)
|
|
46
|
+
}, [
|
|
47
|
+
n.showAppBar ? (u(), f(v, {
|
|
48
|
+
key: 0,
|
|
49
|
+
absolute: "",
|
|
50
|
+
flat: !0,
|
|
51
|
+
dark: !0,
|
|
52
|
+
color: n.barColor
|
|
53
|
+
}, {
|
|
54
|
+
default: r(() => [
|
|
55
|
+
l(c, {
|
|
56
|
+
icon: "",
|
|
57
|
+
id: "back-button"
|
|
58
|
+
}, {
|
|
59
|
+
default: r(() => [
|
|
60
|
+
l(p, null, {
|
|
61
|
+
default: r(() => o[0] || (o[0] = [
|
|
62
|
+
d("mdi-arrow-left")
|
|
63
|
+
])),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
n.showClose ? (u(), f(c, {
|
|
70
|
+
key: 0,
|
|
71
|
+
icon: "",
|
|
72
|
+
id: "close-button",
|
|
73
|
+
class: "float-right"
|
|
74
|
+
}, {
|
|
75
|
+
default: r(() => [
|
|
76
|
+
l(p, null, {
|
|
77
|
+
default: r(() => o[1] || (o[1] = [
|
|
78
|
+
d("mdi-close")
|
|
79
|
+
])),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
})) : _("", !0)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["color"])) : _("", !0),
|
|
88
|
+
l(m, {
|
|
89
|
+
id: "card-example",
|
|
90
|
+
class: "mx-5"
|
|
91
|
+
}, {
|
|
92
|
+
default: r(() => [
|
|
93
|
+
l(x, { cols: "12" }, {
|
|
94
|
+
default: r(() => [
|
|
95
|
+
l(w, { elevation: n.cardElevation }, {
|
|
96
|
+
default: r(() => [
|
|
97
|
+
l(k, null, {
|
|
98
|
+
default: r(() => [
|
|
99
|
+
o[5] || (o[5] = s("div", { class: "text-h5 text-center" }, "Primary Text", -1)),
|
|
100
|
+
o[6] || (o[6] = s("div", { class: "text-subtitle-2 text-center" }, "Secondary Text", -1)),
|
|
101
|
+
o[7] || (o[7] = s("br", null, null, -1)),
|
|
102
|
+
o[8] || (o[8] = s("p", null, "This is what text on a card will look like.", -1)),
|
|
103
|
+
o[9] || (o[9] = s("p", null, "This is an icon:", -1)),
|
|
104
|
+
l(p, { left: "" }, {
|
|
105
|
+
default: r(() => o[2] || (o[2] = [
|
|
106
|
+
d("mdi-check-bold")
|
|
107
|
+
])),
|
|
108
|
+
_: 1
|
|
109
|
+
}),
|
|
110
|
+
l(g, { class: "align-center" }, {
|
|
111
|
+
default: r(() => [
|
|
112
|
+
l(m, null, {
|
|
113
|
+
default: r(() => [
|
|
114
|
+
l(c, { class: "text-center mx-auto" }, {
|
|
115
|
+
default: r(() => [
|
|
116
|
+
l(p, { class: "pe-2" }, {
|
|
117
|
+
default: r(() => o[3] || (o[3] = [
|
|
118
|
+
d("mdi-check-bold")
|
|
119
|
+
])),
|
|
120
|
+
_: 1
|
|
121
|
+
}),
|
|
122
|
+
o[4] || (o[4] = s("span", null, "Example button", -1))
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
})
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
})
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}),
|
|
132
|
+
o[10] || (o[10] = s("div", { class: "text-h5 text-center mt-5" }, "Form Inputs", -1)),
|
|
133
|
+
s("form", E, [
|
|
134
|
+
l(b, {
|
|
135
|
+
id: "example-field",
|
|
136
|
+
class: A(n.formInputStyle !== "underlined" ? "mt-5" : ""),
|
|
137
|
+
variant: n.formInputStyle,
|
|
138
|
+
label: "A label",
|
|
139
|
+
hint: "A hint",
|
|
140
|
+
"append-icon": "mdi-email-outline"
|
|
141
|
+
}, null, 8, ["class", "variant"])
|
|
142
|
+
])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["elevation"])
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
})
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
})
|
|
155
|
+
], 4);
|
|
156
|
+
}
|
|
157
|
+
const z = /* @__PURE__ */ S(h, [["render", I], ["__scopeId", "data-v-385133f6"], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/pop_up/App.vue"]]);
|
|
158
|
+
export {
|
|
159
|
+
z as default
|
|
160
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import { defineComponent as T, resolveComponent as a, createElementBlock as _, openBlock as p, createVNode as t, withCtx as r, Fragment as C, renderList as R, createBlock as h, toDisplayString as B, createTextVNode as m, normalizeStyle as I, createElementVNode as d, normalizeClass as E } from "vue";
|
|
2
|
+
import { u, _ as z } from "./main-DPldah1M.js";
|
|
3
|
+
import { R as V } from "./RewardCard-CwU2X2Yo.js";
|
|
4
|
+
const A = T({
|
|
5
|
+
name: "RewardExample",
|
|
6
|
+
components: {
|
|
7
|
+
RewardCard: V
|
|
8
|
+
},
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
show: !0,
|
|
12
|
+
selectedTier: 0
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
computed: {
|
|
16
|
+
rewards() {
|
|
17
|
+
return u().visibleRewards;
|
|
18
|
+
},
|
|
19
|
+
content() {
|
|
20
|
+
var e;
|
|
21
|
+
return (e = u().referralCampaign) == null ? void 0 : e.config.rewards;
|
|
22
|
+
},
|
|
23
|
+
referral() {
|
|
24
|
+
return u().referral;
|
|
25
|
+
},
|
|
26
|
+
currentTier() {
|
|
27
|
+
return this.rewards.find((n) => {
|
|
28
|
+
var e;
|
|
29
|
+
return n.id === ((e = this.referral) == null ? void 0 : e.currentTierId);
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
hasMultipleRewards() {
|
|
33
|
+
return this.rewards.length > 1;
|
|
34
|
+
},
|
|
35
|
+
showRewards() {
|
|
36
|
+
return this.rewards.length > 1 && this.currentTier !== void 0;
|
|
37
|
+
},
|
|
38
|
+
stepperColor() {
|
|
39
|
+
var e, o, l;
|
|
40
|
+
return ((l = (o = (e = u().referralCampaign) == null ? void 0 : e.config) == null ? void 0 : o.theme) == null ? void 0 : l.stepper_background_color) || "#3c3c3c";
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
selectTier(n) {
|
|
45
|
+
const e = this.rewards.findIndex((o) => o.id === n);
|
|
46
|
+
e !== -1 && (this.selectedTier = e);
|
|
47
|
+
},
|
|
48
|
+
findRewardIndex(n) {
|
|
49
|
+
return this.rewards.findIndex((e) => e.id === n.id);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
mounted() {
|
|
53
|
+
this.$nextTick(() => {
|
|
54
|
+
var n;
|
|
55
|
+
this.selectTier((n = this.referral) == null ? void 0 : n.currentTierId);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}), N = { id: "rewards-example" }, U = { key: 0 }, F = { key: 1 };
|
|
59
|
+
function M(n, e, o, l, S, $) {
|
|
60
|
+
const s = a("v-icon"), c = a("v-timeline-item"), w = a("v-timeline"), f = a("v-btn"), b = a("RewardCard"), g = a("v-carousel-item"), k = a("v-carousel");
|
|
61
|
+
return p(), _("div", N, [
|
|
62
|
+
t(w, {
|
|
63
|
+
id: "timeline-container",
|
|
64
|
+
"line-inset": "10px",
|
|
65
|
+
direction: "horizontal",
|
|
66
|
+
"truncate-line": "both"
|
|
67
|
+
}, {
|
|
68
|
+
default: r(() => [
|
|
69
|
+
(p(!0), _(C, null, R(n.rewards, (i, v) => (p(), h(c, {
|
|
70
|
+
size: "small",
|
|
71
|
+
key: `${v}-step`,
|
|
72
|
+
"fill-dot": "",
|
|
73
|
+
onClick: (x) => n.selectTier(i.id)
|
|
74
|
+
}, {
|
|
75
|
+
icon: r(() => [
|
|
76
|
+
i.complete ? (p(), _("span", U, [
|
|
77
|
+
t(s, { icon: "mdi-check" })
|
|
78
|
+
])) : (p(), _("span", F, B(i.points), 1))
|
|
79
|
+
]),
|
|
80
|
+
_: 2
|
|
81
|
+
}, 1032, ["onClick"]))), 128))
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}),
|
|
85
|
+
t(k, {
|
|
86
|
+
id: "reward-carousel-container",
|
|
87
|
+
ref: "carousel",
|
|
88
|
+
"show-arrows": n.hasMultipleRewards,
|
|
89
|
+
"hide-delimiters": "",
|
|
90
|
+
modelValue: n.selectedTier,
|
|
91
|
+
"onUpdate:modelValue": e[0] || (e[0] = (i) => n.selectedTier = i),
|
|
92
|
+
height: "100%"
|
|
93
|
+
}, {
|
|
94
|
+
prev: r(({ props: i }) => [
|
|
95
|
+
t(f, {
|
|
96
|
+
class: "stepper-btn",
|
|
97
|
+
variant: "flat",
|
|
98
|
+
color: "success",
|
|
99
|
+
onClick: i.onClick,
|
|
100
|
+
icon: "",
|
|
101
|
+
size: "34"
|
|
102
|
+
}, {
|
|
103
|
+
default: r(() => [
|
|
104
|
+
t(s, { size: "x-large" }, {
|
|
105
|
+
default: r(() => e[1] || (e[1] = [
|
|
106
|
+
m("mdi-menu-left")
|
|
107
|
+
])),
|
|
108
|
+
_: 1
|
|
109
|
+
})
|
|
110
|
+
]),
|
|
111
|
+
_: 2
|
|
112
|
+
}, 1032, ["onClick"])
|
|
113
|
+
]),
|
|
114
|
+
next: r(({ props: i }) => [
|
|
115
|
+
t(f, {
|
|
116
|
+
class: "stepper-btn",
|
|
117
|
+
variant: "flat",
|
|
118
|
+
color: "info",
|
|
119
|
+
onClick: i.onClick,
|
|
120
|
+
icon: "",
|
|
121
|
+
size: "34"
|
|
122
|
+
}, {
|
|
123
|
+
default: r(() => [
|
|
124
|
+
t(s, { size: "x-large" }, {
|
|
125
|
+
default: r(() => e[2] || (e[2] = [
|
|
126
|
+
m("mdi-menu-right")
|
|
127
|
+
])),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
_: 2
|
|
132
|
+
}, 1032, ["onClick"])
|
|
133
|
+
]),
|
|
134
|
+
default: r(() => [
|
|
135
|
+
(p(!0), _(C, null, R(n.rewards, (i, v) => (p(), h(g, {
|
|
136
|
+
key: `reward_${v}`,
|
|
137
|
+
class: "px-4"
|
|
138
|
+
}, {
|
|
139
|
+
default: r(() => [
|
|
140
|
+
t(b, { reward: i }, null, 8, ["reward"])
|
|
141
|
+
]),
|
|
142
|
+
_: 2
|
|
143
|
+
}, 1024))), 128))
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["show-arrows", "modelValue"])
|
|
147
|
+
]);
|
|
148
|
+
}
|
|
149
|
+
const D = /* @__PURE__ */ z(A, [["render", M], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/referral_campaign/RewardExample.vue"]]), L = T({
|
|
150
|
+
name: "AppBlock",
|
|
151
|
+
components: {
|
|
152
|
+
RewardExample: D
|
|
153
|
+
},
|
|
154
|
+
computed: {
|
|
155
|
+
barColor() {
|
|
156
|
+
var e, o, l;
|
|
157
|
+
return ((l = (o = (e = u().referralCampaign) == null ? void 0 : e.config) == null ? void 0 : o.theme) == null ? void 0 : l.app_bar_color) || "#272728";
|
|
158
|
+
},
|
|
159
|
+
transparentBackground() {
|
|
160
|
+
var e, o, l;
|
|
161
|
+
return (l = (o = (e = u().referralCampaign) == null ? void 0 : e.config) == null ? void 0 : o.theme) == null ? void 0 : l.transparent_background;
|
|
162
|
+
},
|
|
163
|
+
windowBackgroundColor() {
|
|
164
|
+
var e, o, l;
|
|
165
|
+
return (l = (o = (e = u().referralCampaign) == null ? void 0 : e.config) == null ? void 0 : o.theme) == null ? void 0 : l.window_color;
|
|
166
|
+
},
|
|
167
|
+
stepperBackgroundColor() {
|
|
168
|
+
var e, o, l;
|
|
169
|
+
return ((l = (o = (e = u().referralCampaign) == null ? void 0 : e.config) == null ? void 0 : o.theme) == null ? void 0 : l.stepper_background_color) || "#3c3c3c";
|
|
170
|
+
},
|
|
171
|
+
formInputStyle() {
|
|
172
|
+
var e, o, l;
|
|
173
|
+
return (l = (o = (e = u().referralCampaign) == null ? void 0 : e.config) == null ? void 0 : o.theme) == null ? void 0 : l.form_input_style;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}), P = { class: "mx-auto" }, j = {
|
|
177
|
+
novalidate: "",
|
|
178
|
+
id: "example-form"
|
|
179
|
+
};
|
|
180
|
+
function q(n, e, o, l, S, $) {
|
|
181
|
+
const s = a("v-icon"), c = a("v-btn"), w = a("v-app-bar"), f = a("v-row"), b = a("v-container"), g = a("RewardExample"), k = a("v-text-field"), i = a("v-checkbox"), v = a("v-card-text"), x = a("v-card"), y = a("v-col");
|
|
182
|
+
return p(), _("div", {
|
|
183
|
+
id: "referralcampaign-editor-app-container",
|
|
184
|
+
style: I(
|
|
185
|
+
n.transparentBackground ? "background-color: transparent !important" : n.windowBackgroundColor ? `background-color: ${n.windowBackgroundColor} !important` : ""
|
|
186
|
+
)
|
|
187
|
+
}, [
|
|
188
|
+
t(w, {
|
|
189
|
+
absolute: "",
|
|
190
|
+
flat: !0,
|
|
191
|
+
dark: !0,
|
|
192
|
+
color: n.barColor
|
|
193
|
+
}, {
|
|
194
|
+
default: r(() => [
|
|
195
|
+
t(c, {
|
|
196
|
+
icon: "",
|
|
197
|
+
id: "back-button"
|
|
198
|
+
}, {
|
|
199
|
+
default: r(() => [
|
|
200
|
+
t(s, null, {
|
|
201
|
+
default: r(() => e[0] || (e[0] = [
|
|
202
|
+
m("mdi-arrow-left")
|
|
203
|
+
])),
|
|
204
|
+
_: 1
|
|
205
|
+
})
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}),
|
|
209
|
+
t(c, {
|
|
210
|
+
icon: "",
|
|
211
|
+
id: "close-button",
|
|
212
|
+
class: "float-right"
|
|
213
|
+
}, {
|
|
214
|
+
default: r(() => [
|
|
215
|
+
t(s, null, {
|
|
216
|
+
default: r(() => e[1] || (e[1] = [
|
|
217
|
+
m("mdi-close")
|
|
218
|
+
])),
|
|
219
|
+
_: 1
|
|
220
|
+
})
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
})
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}, 8, ["color"]),
|
|
227
|
+
t(f, {
|
|
228
|
+
id: "card-example",
|
|
229
|
+
class: "mx-5"
|
|
230
|
+
}, {
|
|
231
|
+
default: r(() => [
|
|
232
|
+
t(y, { cols: "12" }, {
|
|
233
|
+
default: r(() => [
|
|
234
|
+
t(x, null, {
|
|
235
|
+
default: r(() => [
|
|
236
|
+
t(v, null, {
|
|
237
|
+
default: r(() => [
|
|
238
|
+
e[10] || (e[10] = d("div", { class: "text-h5 text-center" }, "Primary Text", -1)),
|
|
239
|
+
e[11] || (e[11] = d("div", { class: "text-subtitle-2 text-center" }, "Secondary Text", -1)),
|
|
240
|
+
e[12] || (e[12] = d("br", null, null, -1)),
|
|
241
|
+
e[13] || (e[13] = d("p", null, "This is what text on a card will look like as part of the embedded referral experience.", -1)),
|
|
242
|
+
e[14] || (e[14] = d("p", null, "This is an icon:", -1)),
|
|
243
|
+
t(s, null, {
|
|
244
|
+
default: r(() => e[2] || (e[2] = [
|
|
245
|
+
m("mdi-check-bold")
|
|
246
|
+
])),
|
|
247
|
+
_: 1
|
|
248
|
+
}),
|
|
249
|
+
t(b, { class: "align-center" }, {
|
|
250
|
+
default: r(() => [
|
|
251
|
+
t(f, null, {
|
|
252
|
+
default: r(() => [
|
|
253
|
+
t(c, { class: "text-center mx-auto" }, {
|
|
254
|
+
default: r(() => [
|
|
255
|
+
t(s, { class: "pe-2" }, {
|
|
256
|
+
default: r(() => e[3] || (e[3] = [
|
|
257
|
+
m("mdi-check-bold")
|
|
258
|
+
])),
|
|
259
|
+
_: 1
|
|
260
|
+
}),
|
|
261
|
+
e[4] || (e[4] = d("span", null, "Example button", -1))
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
})
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
}),
|
|
271
|
+
e[15] || (e[15] = d("div", { class: "text-subtitle-2 text-center mt-5" }, "Sharing Buttons:", -1)),
|
|
272
|
+
t(b, { class: "align-center" }, {
|
|
273
|
+
default: r(() => [
|
|
274
|
+
t(f, null, {
|
|
275
|
+
default: r(() => [
|
|
276
|
+
d("div", P, [
|
|
277
|
+
t(c, {
|
|
278
|
+
class: "ma-2",
|
|
279
|
+
size: "small",
|
|
280
|
+
theme: "dark",
|
|
281
|
+
ripple: !1,
|
|
282
|
+
elevation: 0,
|
|
283
|
+
icon: ""
|
|
284
|
+
}, {
|
|
285
|
+
default: r(() => [
|
|
286
|
+
t(s, { size: "large" }, {
|
|
287
|
+
default: r(() => e[5] || (e[5] = [
|
|
288
|
+
m("mdi-linkedin")
|
|
289
|
+
])),
|
|
290
|
+
_: 1
|
|
291
|
+
})
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
}),
|
|
295
|
+
t(c, {
|
|
296
|
+
class: "ma-2",
|
|
297
|
+
size: "small",
|
|
298
|
+
theme: "dark",
|
|
299
|
+
ripple: !1,
|
|
300
|
+
elevation: 0,
|
|
301
|
+
icon: ""
|
|
302
|
+
}, {
|
|
303
|
+
default: r(() => [
|
|
304
|
+
t(s, { size: "large" }, {
|
|
305
|
+
default: r(() => e[6] || (e[6] = [
|
|
306
|
+
m("mdi-facebook")
|
|
307
|
+
])),
|
|
308
|
+
_: 1
|
|
309
|
+
})
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}),
|
|
313
|
+
t(c, {
|
|
314
|
+
class: "ma-2",
|
|
315
|
+
size: "small",
|
|
316
|
+
theme: "dark",
|
|
317
|
+
ripple: !1,
|
|
318
|
+
elevation: 0,
|
|
319
|
+
icon: ""
|
|
320
|
+
}, {
|
|
321
|
+
default: r(() => [
|
|
322
|
+
t(s, { size: "large" }, {
|
|
323
|
+
default: r(() => e[7] || (e[7] = [
|
|
324
|
+
m("mdi-twitter")
|
|
325
|
+
])),
|
|
326
|
+
_: 1
|
|
327
|
+
})
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
}),
|
|
331
|
+
t(c, {
|
|
332
|
+
class: "ma-2",
|
|
333
|
+
size: "small",
|
|
334
|
+
theme: "dark",
|
|
335
|
+
ripple: !1,
|
|
336
|
+
elevation: 0,
|
|
337
|
+
icon: ""
|
|
338
|
+
}, {
|
|
339
|
+
default: r(() => [
|
|
340
|
+
t(s, { size: "large" }, {
|
|
341
|
+
default: r(() => e[8] || (e[8] = [
|
|
342
|
+
m("mdi-whatsapp")
|
|
343
|
+
])),
|
|
344
|
+
_: 1
|
|
345
|
+
})
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}),
|
|
349
|
+
t(c, {
|
|
350
|
+
class: "ma-2",
|
|
351
|
+
size: "small",
|
|
352
|
+
theme: "dark",
|
|
353
|
+
ripple: !1,
|
|
354
|
+
elevation: 0,
|
|
355
|
+
icon: ""
|
|
356
|
+
}, {
|
|
357
|
+
default: r(() => [
|
|
358
|
+
t(s, { size: "large" }, {
|
|
359
|
+
default: r(() => e[9] || (e[9] = [
|
|
360
|
+
m("mdi-cellphone-text")
|
|
361
|
+
])),
|
|
362
|
+
_: 1
|
|
363
|
+
})
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
})
|
|
367
|
+
])
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
})
|
|
371
|
+
]),
|
|
372
|
+
_: 1
|
|
373
|
+
}),
|
|
374
|
+
e[16] || (e[16] = d("div", { class: "text-h5 text-center mt-5" }, "Reward Tracking", -1)),
|
|
375
|
+
t(g),
|
|
376
|
+
e[17] || (e[17] = d("div", { class: "text-h5 text-center mt-5" }, "Form Inputs", -1)),
|
|
377
|
+
d("form", j, [
|
|
378
|
+
t(k, {
|
|
379
|
+
id: "example-field",
|
|
380
|
+
class: E(n.formInputStyle !== "underlined" ? "mt-5" : ""),
|
|
381
|
+
variant: n.formInputStyle,
|
|
382
|
+
label: "A label",
|
|
383
|
+
hint: "A hint",
|
|
384
|
+
"append-icon": "mdi-email-outline"
|
|
385
|
+
}, null, 8, ["class", "variant"]),
|
|
386
|
+
t(i, { label: "This is a checkbox" })
|
|
387
|
+
])
|
|
388
|
+
]),
|
|
389
|
+
_: 1
|
|
390
|
+
})
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
})
|
|
394
|
+
]),
|
|
395
|
+
_: 1
|
|
396
|
+
})
|
|
397
|
+
]),
|
|
398
|
+
_: 1
|
|
399
|
+
})
|
|
400
|
+
], 4);
|
|
401
|
+
}
|
|
402
|
+
const K = /* @__PURE__ */ z(L, [["render", q], ["__scopeId", "data-v-95814043"], ["__file", "/Users/dominic/Code/gather-vue/src/components/editor/blocks/referral_campaign/App.vue"]]);
|
|
403
|
+
export {
|
|
404
|
+
K as default
|
|
405
|
+
};
|
|
Binary file
|