@srgssr/share-button 0.1.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.
@@ -0,0 +1,890 @@
1
+ import e from "video.js";
2
+ //#region ../web-suite-utils/dist/web-suite-utils.js
3
+ function t(e, t) {
4
+ this.v = e, this.k = t;
5
+ }
6
+ function n(e, t, n, r, i, a, o) {
7
+ try {
8
+ var s = e[a](o), c = s.value;
9
+ } catch (e) {
10
+ n(e);
11
+ return;
12
+ }
13
+ s.done ? t(c) : Promise.resolve(c).then(r, i);
14
+ }
15
+ function r(e) {
16
+ return function() {
17
+ var t = this, r = arguments;
18
+ return new Promise(function(i, a) {
19
+ var o = e.apply(t, r);
20
+ function s(e) {
21
+ n(o, i, a, s, c, "next", e);
22
+ }
23
+ function c(e) {
24
+ n(o, i, a, s, c, "throw", e);
25
+ }
26
+ s(void 0);
27
+ });
28
+ };
29
+ }
30
+ function i(e) {
31
+ var n, r;
32
+ function i(n, r) {
33
+ try {
34
+ var o = e[n](r), s = o.value, c = s instanceof t;
35
+ Promise.resolve(c ? s.v : s).then(function(t) {
36
+ if (c) {
37
+ var r = n === "return" ? "return" : "next";
38
+ if (!s.k || t.done) return i(r, t);
39
+ t = e[r](t).value;
40
+ }
41
+ a(o.done ? "return" : "normal", t);
42
+ }, function(e) {
43
+ i("throw", e);
44
+ });
45
+ } catch (e) {
46
+ a("throw", e);
47
+ }
48
+ }
49
+ function a(e, t) {
50
+ switch (e) {
51
+ case "return":
52
+ n.resolve({
53
+ value: t,
54
+ done: !0
55
+ });
56
+ break;
57
+ case "throw":
58
+ n.reject(t);
59
+ break;
60
+ default: n.resolve({
61
+ value: t,
62
+ done: !1
63
+ });
64
+ }
65
+ (n = n.next) ? i(n.key, n.arg) : r = null;
66
+ }
67
+ this._invoke = function(e, t) {
68
+ return new Promise(function(a, o) {
69
+ var s = {
70
+ key: e,
71
+ arg: t,
72
+ resolve: a,
73
+ reject: o,
74
+ next: null
75
+ };
76
+ r ? r = r.next = s : (n = r = s, i(e, t));
77
+ });
78
+ }, typeof e.return != "function" && (this.return = void 0);
79
+ }
80
+ i.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
81
+ return this;
82
+ }, i.prototype.next = function(e) {
83
+ return this._invoke("next", e);
84
+ }, i.prototype.throw = function(e) {
85
+ return this._invoke("throw", e);
86
+ }, i.prototype.return = function(e) {
87
+ return this._invoke("return", e);
88
+ };
89
+ function a(e) {
90
+ let t = new DOMParser().parseFromString(e, "image/svg+xml").documentElement;
91
+ if (!(t instanceof SVGElement)) throw Error("Parsed root is not an SVGElement");
92
+ return t;
93
+ }
94
+ function o(e) {
95
+ return s.apply(this, arguments);
96
+ }
97
+ function s() {
98
+ return s = r(function* (e) {
99
+ let t = yield fetch(e, { mode: "cors" });
100
+ if (!t.ok) throw Error(`Failed to fetch SVG: ${t.status} ${t.statusText}`);
101
+ return a(yield t.text());
102
+ }), s.apply(this, arguments);
103
+ }
104
+ function c(e) {
105
+ return l.apply(this, arguments);
106
+ }
107
+ function l() {
108
+ return l = r(function* (e) {
109
+ let t = e.trim(), n = URL.parse(t);
110
+ if (n) return yield o(n.href);
111
+ if (t.startsWith("<")) return a(t);
112
+ throw Error(`Provided string is not a URL or an SVG element: ${e}`);
113
+ }), l.apply(this, arguments);
114
+ }
115
+ function ee(e) {
116
+ return u.apply(this, arguments);
117
+ }
118
+ function u() {
119
+ return u = r(function* (e) {
120
+ if (e instanceof SVGElement) return e;
121
+ if (e instanceof URL) return yield o(e.href);
122
+ if (typeof e == "string") return yield c(e);
123
+ throw Error(`Invalid icon type provided: ${e}`);
124
+ }), u.apply(this, arguments);
125
+ }
126
+ //#endregion
127
+ //#region ../svg-button/dist/svg-button.js
128
+ function d(e, t) {
129
+ this.v = e, this.k = t;
130
+ }
131
+ function f(e, t, n, r, i, a, o) {
132
+ try {
133
+ var s = e[a](o), c = s.value;
134
+ } catch (e) {
135
+ n(e);
136
+ return;
137
+ }
138
+ s.done ? t(c) : Promise.resolve(c).then(r, i);
139
+ }
140
+ function p(e) {
141
+ return function() {
142
+ var t = this, n = arguments;
143
+ return new Promise(function(r, i) {
144
+ var a = e.apply(t, n);
145
+ function o(e) {
146
+ f(a, r, i, o, s, "next", e);
147
+ }
148
+ function s(e) {
149
+ f(a, r, i, o, s, "throw", e);
150
+ }
151
+ o(void 0);
152
+ });
153
+ };
154
+ }
155
+ function m(e) {
156
+ var t, n;
157
+ function r(t, n) {
158
+ try {
159
+ var a = e[t](n), o = a.value, s = o instanceof d;
160
+ Promise.resolve(s ? o.v : o).then(function(n) {
161
+ if (s) {
162
+ var c = t === "return" ? "return" : "next";
163
+ if (!o.k || n.done) return r(c, n);
164
+ n = e[c](n).value;
165
+ }
166
+ i(a.done ? "return" : "normal", n);
167
+ }, function(e) {
168
+ r("throw", e);
169
+ });
170
+ } catch (e) {
171
+ i("throw", e);
172
+ }
173
+ }
174
+ function i(e, i) {
175
+ switch (e) {
176
+ case "return":
177
+ t.resolve({
178
+ value: i,
179
+ done: !0
180
+ });
181
+ break;
182
+ case "throw":
183
+ t.reject(i);
184
+ break;
185
+ default: t.resolve({
186
+ value: i,
187
+ done: !1
188
+ });
189
+ }
190
+ (t = t.next) ? r(t.key, t.arg) : n = null;
191
+ }
192
+ this._invoke = function(e, i) {
193
+ return new Promise(function(a, o) {
194
+ var s = {
195
+ key: e,
196
+ arg: i,
197
+ resolve: a,
198
+ reject: o,
199
+ next: null
200
+ };
201
+ n ? n = n.next = s : (t = n = s, r(e, i));
202
+ });
203
+ }, typeof e.return != "function" && (this.return = void 0);
204
+ }
205
+ m.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
206
+ return this;
207
+ }, m.prototype.next = function(e) {
208
+ return this._invoke("next", e);
209
+ }, m.prototype.throw = function(e) {
210
+ return this._invoke("throw", e);
211
+ }, m.prototype.return = function(e) {
212
+ return this._invoke("return", e);
213
+ };
214
+ var h = "1.1.3";
215
+ function g(e) {
216
+ return _.apply(this, arguments);
217
+ }
218
+ function _() {
219
+ return _ = p(function* (e) {
220
+ let { icon: t, iconName: n } = e.options();
221
+ n && e.setIcon(n);
222
+ let r = e.el().querySelector(".vjs-icon-placeholder");
223
+ n && r && r.classList.toggle(`vjs-icon-${n}`, !0), yield v(t, r);
224
+ }), _.apply(this, arguments);
225
+ }
226
+ function v(e, t) {
227
+ return y.apply(this, arguments);
228
+ }
229
+ function y() {
230
+ return y = p(function* (e, t) {
231
+ if (!e || !t) return;
232
+ let n = yield ee(e);
233
+ n.classList.add("icon-from-options"), t.classList.add("vjs-svg-icon"), t.replaceChildren(n);
234
+ }), y.apply(this, arguments);
235
+ }
236
+ var te = e.log.createLogger("svg-button"), ne = e.getComponent("Button"), re = class extends ne {
237
+ constructor(e, t) {
238
+ super(e, t), this.appendIcon().catch((e) => te.error("There was a problem loading the provided SVG Icon", e));
239
+ }
240
+ appendIcon() {
241
+ var e = this;
242
+ return p(function* (t = void 0) {
243
+ if (t) {
244
+ let { icon: n, iconName: r } = t;
245
+ e.options({
246
+ icon: n,
247
+ iconName: r
248
+ });
249
+ }
250
+ yield g(e);
251
+ }).apply(this, arguments);
252
+ }
253
+ buildCSSClass() {
254
+ return `vjs-svg-button ${super.buildCSSClass()}`;
255
+ }
256
+ static get VERSION() {
257
+ return h;
258
+ }
259
+ };
260
+ e.registerComponent("SvgButton", re);
261
+ var ie = e.log.createLogger("svg-component"), b = e.getComponent("Component"), ae = class extends b {
262
+ constructor(e, t) {
263
+ super(e, t), this.appendIcon().catch((e) => ie.error("There was a problem loading the provided SVG Icon", e));
264
+ }
265
+ appendIcon() {
266
+ var e = this;
267
+ return p(function* (t = void 0) {
268
+ if (t) {
269
+ let { icon: n, iconName: r } = t;
270
+ e.options({
271
+ icon: n,
272
+ iconName: r
273
+ });
274
+ }
275
+ yield g(e);
276
+ }).apply(this, arguments);
277
+ }
278
+ createEl(t, n = {}, r = {}) {
279
+ n = Object.assign({ className: this.buildCSSClass() }, n);
280
+ let i = super.createEl(t, n, r);
281
+ return this.player_.options_.experimentalSvgIcons || i.appendChild(e.dom.createEl("span", { className: "vjs-icon-placeholder" }, { "aria-hidden": !0 })), i;
282
+ }
283
+ buildCSSClass() {
284
+ return `vjs-svg-component ${super.buildCSSClass()}`;
285
+ }
286
+ static get VERSION() {
287
+ return h;
288
+ }
289
+ };
290
+ e.registerComponent("SvgComponent", ae);
291
+ //#endregion
292
+ //#region assets/embed.svg?raw
293
+ var x = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M5.91929 7.72199C6.2117 7.42625 6.68666 7.42625 6.97907 7.72199C7.27116 8.01767 7.27116 8.49717 6.97907 8.79285L3.80752 11.9995L6.97907 15.2072C7.27116 15.5028 7.27116 15.9823 6.97907 16.278C6.68666 16.5738 6.2117 16.5738 5.91929 16.278L2.21931 12.5359C1.9269 12.2402 1.9269 11.7598 2.21931 11.4641L5.91929 7.72199ZM17.0212 7.72199C17.3136 7.4263 17.7876 7.42628 18.08 7.72199L21.7809 11.4651C22.0729 11.7608 22.0732 12.2403 21.7809 12.5359L18.08 16.278C17.7876 16.5738 17.3136 16.5738 17.0212 16.278C16.7288 15.9823 16.7288 15.5029 17.0212 15.2072L20.1918 11.9995L17.0212 8.79285C16.7288 8.49711 16.7288 8.01772 17.0212 7.72199ZM13.1808 7.9192C13.3657 7.54512 13.8151 7.39297 14.185 7.58C14.5549 7.76704 14.7044 8.22254 14.5194 8.59662L10.8194 16.0818C10.6345 16.4555 10.1849 16.6067 9.81524 16.42C9.44548 16.233 9.29518 15.7784 9.47985 15.4044L13.1808 7.9192Z\" fill=\"currentColor\"/>\n</svg>\n", oe = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M11.9998 2C6.47711 2 2 6.49365 2 12.0367C2 16.7436 5.22874 20.6932 9.58425 21.778V15.104H7.52229V12.0367H9.58425V10.7151C9.58425 7.29899 11.1246 5.7156 14.4662 5.7156C15.0997 5.7156 16.1929 5.84046 16.6401 5.96491V8.74509C16.4041 8.7202 15.9941 8.70775 15.4849 8.70775C13.8454 8.70775 13.2118 9.33123 13.2118 10.952V12.0367H16.4781L15.9169 15.104H13.2118V22C18.1633 21.3998 22 17.1683 22 12.0367C21.9996 6.49365 17.5225 2 11.9998 2Z\" fill=\"currentColor\"/>\n</svg>\n", se = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\">\n <path d=\"M0 11.1868C0 9.93044 0.454022 8.71396 1.27952 7.80719L5.1937 3.50612C5.97826 2.64245 7.04411 2.1225 8.18285 2.07243C9.32194 2.02234 10.4248 2.44794 11.2731 3.24311C12.1194 4.03644 12.6508 5.13866 12.7785 6.32406C12.9062 7.50926 12.6237 8.70981 11.9762 9.6878C11.7452 10.0368 11.277 10.131 10.9304 9.89841C10.5839 9.66575 10.4902 9.1943 10.7213 8.84538C11.1667 8.17245 11.3697 7.3301 11.279 6.4882C11.1884 5.64639 10.8133 4.88638 10.246 4.35447C9.68055 3.82442 8.96667 3.55859 8.24864 3.59016C7.53029 3.62176 6.83545 3.95007 6.30726 4.53145H6.30628L2.39112 8.83253V8.83352C1.83239 9.44735 1.50832 10.2928 1.50832 11.1868C1.50833 12.0808 1.83238 12.9262 2.39112 13.54C2.948 14.1516 3.68867 14.4813 4.44543 14.4813C5.20216 14.4813 5.94286 14.1516 6.49973 13.54L7.26371 12.7005C7.5451 12.3915 8.02213 12.3709 8.32916 12.6541C8.63609 12.9374 8.65748 13.4177 8.3763 13.7269L7.61133 14.5663C6.78375 15.4753 5.6466 16 4.44543 16C3.24424 16 2.10711 15.4753 1.27952 14.5663C0.45401 13.6595 6.74243e-06 12.4431 0 11.1868ZM18.4917 4.47608C18.4916 3.69176 18.1823 2.93947 17.6315 2.38487C17.0807 1.83027 16.3335 1.51878 15.5546 1.51872C14.7757 1.51872 14.0285 1.83036 13.4777 2.38487L12.862 3.00482C12.5675 3.30107 12.09 3.30112 11.7956 3.00482C11.5011 2.70835 11.5013 2.2276 11.7956 1.93103L12.4113 1.31109C13.245 0.471754 14.3756 0 15.5546 0C16.7336 5.7788e-05 17.8642 0.47167 18.6979 1.31109C19.5316 2.1505 19.9999 3.28897 20 4.47608C20 5.66317 19.5315 6.80163 18.6979 7.64108L14.7827 11.5842L14.7818 11.5832C13.9911 12.3804 12.9313 12.8485 11.8132 12.8933C10.6952 12.938 9.60145 12.557 8.75043 11.8255C7.89928 11.0938 7.35289 10.0653 7.22149 8.94624C7.09016 7.82725 7.38328 6.69946 8.04144 5.78816C8.28642 5.44902 8.75826 5.37442 9.09511 5.62106C9.43162 5.86774 9.50579 6.34195 9.26106 6.681C8.82617 7.28316 8.63317 8.02887 8.71999 8.76826C8.80684 9.50759 9.16714 10.1872 9.72946 10.6706C10.2917 11.1539 11.0146 11.4051 11.7533 11.3756C12.4921 11.346 13.1929 11.0373 13.7153 10.5104H13.7163L17.6315 6.5673C18.1822 6.01266 18.4917 5.26038 18.4917 4.47608Z\" fill=\"currentColor\"/>\n</svg>\n", ce = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M19.6676 3H4.32891C3.59414 3 3 3.58008 3 4.29727V19.6992C3 20.4164 3.59414 21 4.32891 21H19.6676C20.4023 21 21 20.4164 21 19.7027V4.29727C21 3.58008 20.4023 3 19.6676 3ZM8.34023 18.3387H5.66836V9.74648H8.34023V18.3387ZM7.0043 8.57578C6.14648 8.57578 5.45391 7.8832 5.45391 7.02891C5.45391 6.17461 6.14648 5.48203 7.0043 5.48203C7.85859 5.48203 8.55117 6.17461 8.55117 7.02891C8.55117 7.87969 7.85859 8.57578 7.0043 8.57578ZM18.3387 18.3387H15.6703V14.1621C15.6703 13.1672 15.6527 11.884 14.2816 11.884C12.893 11.884 12.682 12.9703 12.682 14.0918V18.3387H10.0172V9.74648H12.5766V10.9207H12.6117C12.9668 10.2457 13.8387 9.53203 15.1359 9.53203C17.8395 9.53203 18.3387 11.3109 18.3387 13.6242V18.3387Z\" fill=\"currentColor\"/>\n</svg>\n", le = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M20.4977 7.42209L16.2293 10.4005L18.6764 12.6899C18.9809 12.9749 18.9991 13.4556 18.7175 13.7639C18.4359 14.0721 17.9609 14.0913 17.6563 13.8064L14.9617 11.2854L13.5513 12.2712C13.0954 12.5897 12.554 12.7602 12 12.7602C11.5155 12.7601 11.0411 12.6299 10.6248 12.384L10.4497 12.2712L9.03736 11.2854L6.3437 13.8064C6.03906 14.0911 5.56401 14.072 5.28247 13.7639C5.00105 13.4556 5.01997 12.9748 5.32453 12.6899L7.76976 10.4014L3.50235 7.42209V16.9917C3.50235 17.1703 3.54436 17.2543 3.56886 17.2916C3.59646 17.3335 3.6388 17.3715 3.70383 17.4044C3.77174 17.4387 3.84877 17.4595 3.9151 17.4707C3.94627 17.476 3.97073 17.4786 3.98455 17.4796H20.0164C20.1927 17.4796 20.275 17.4371 20.3118 17.4123C20.3532 17.3844 20.3908 17.3416 20.4233 17.2757C20.4572 17.207 20.4778 17.129 20.4888 17.0619L20.4977 16.9917V7.42209ZM11.3026 11.0201C11.5074 11.1631 11.7512 11.2398 12 11.2398C12.249 11.2398 12.4925 11.1633 12.6974 11.0201L19.145 6.52036H4.85505L11.3026 11.0201ZM22 16.9926V17.0312C21.9994 17.0493 21.998 17.0724 21.9961 17.0995C21.9923 17.1539 21.9847 17.2272 21.9707 17.3124C21.9432 17.479 21.8872 17.7128 21.7672 17.9557C21.6456 18.2019 21.4506 18.4713 21.1451 18.6773C20.8352 18.8864 20.4559 18.9999 20.0164 19H3.94542C3.92756 18.9994 3.90484 18.998 3.87793 18.996C3.82433 18.9922 3.75263 18.9845 3.66862 18.9703C3.50386 18.9425 3.27213 18.886 3.03189 18.7644C2.78862 18.6413 2.52248 18.444 2.31886 18.1349C2.1122 17.8211 2 17.4366 2 16.9917V7.00834V6.99251C2.0001 6.98593 2.00068 6.97781 2.00098 6.96875C2.00157 6.95068 2.00199 6.92766 2.00391 6.90045C2.00774 6.84621 2.01536 6.77363 2.02934 6.68863C2.05681 6.52185 2.1136 6.28746 2.23376 6.04426C2.3554 5.7981 2.54946 5.52872 2.85485 5.32268C3.16497 5.11348 3.54483 5 3.98455 5H20.0321L20.1221 5.00396C20.1758 5.00784 20.2482 5.0155 20.3324 5.02969C20.4971 5.05749 20.7279 5.11508 20.9681 5.23657C21.2113 5.35964 21.4775 5.55607 21.6811 5.8651C21.8879 6.17895 22 6.56333 22 7.00834V16.9926Z\" fill=\"currentColor\"/>\n</svg>\n", ue = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M9.43542 6.84128C9.55792 6.83128 9.67129 6.90302 9.72351 7.01413L10.8641 9.43307C10.918 9.54745 10.8939 9.68347 10.8046 9.77292L9.95496 10.6235C9.77112 10.8073 9.71708 11.0936 9.84363 11.3208C10.1539 11.8772 10.5712 12.4137 11.0546 12.9067C11.5475 13.3899 12.0833 13.8077 12.6395 14.1176C12.8666 14.2441 13.1527 14.19 13.3368 14.0063L14.1874 13.1557C14.2768 13.0664 14.4128 13.043 14.5272 13.0971L16.9462 14.2368C17.0573 14.289 17.129 14.4027 17.119 14.5249C17.0928 14.8433 16.9651 15.4815 16.3934 16.0532C14.7798 17.6669 11.8822 15.8421 11.7616 15.77C11.0486 15.3869 10.3709 14.8741 9.72839 14.2319C9.08625 13.5897 8.57333 12.9117 8.19031 12.1987C8.11602 12.0755 6.29465 9.18098 7.9071 7.56784C8.4788 6.99614 9.11696 6.86746 9.43542 6.84128Z\" fill=\"currentColor\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.1844 1.77682C17.7071 1.77691 22.1844 6.25418 22.1844 11.7768C22.1844 17.2994 17.707 21.7767 12.1844 21.7768C10.4429 21.7768 8.8058 21.331 7.37976 20.5483L2.18445 21.7768L3.51648 16.7661C2.66957 15.2978 2.18447 13.5937 2.18445 11.7768C2.18445 6.25413 6.66175 1.77682 12.1844 1.77682ZM12.1844 3.56784C7.65091 3.56784 3.97546 7.24328 3.97546 11.7768C3.97555 13.5246 4.52177 15.1448 5.453 16.476L4.59265 19.4096L7.66199 18.6284C8.95882 19.4862 10.5133 19.9848 12.1844 19.9848C16.7178 19.9848 20.3932 16.3101 20.3934 11.7768C20.3934 7.24333 16.7179 3.56792 12.1844 3.56784Z\" fill=\"currentColor\"/>\n</svg>\n", S = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M17.1761 3.86484H19.9362L13.9061 10.7568L21 20.1352H15.4456L11.0951 14.4472L6.11723 20.1352H3.35544L9.80517 12.7635L3 3.86484H8.69545L12.6279 9.06384L17.1761 3.86484ZM16.2073 18.4831H17.7368L7.86441 5.43013H6.2232L16.2073 18.4831Z\" fill=\"currentColor\"/>\n</svg>\n", C = e.getComponent("SvgComponent"), w = e.log.createLogger("share-button"), T = class extends C {
294
+ constructor(e, t = {}) {
295
+ super(e, t), this.on("click", this.handleClick);
296
+ }
297
+ createEl(t = "a", n = {}, r = {}) {
298
+ if (t !== "a") throw w.error(`Creating a ShareButton with an HTML element of ${t} is not supported; the element must be an 'a'`), Error(`'${t}' is not supported for ShareButton`);
299
+ let { title: i, target: a, rel: o } = this.options(), s = super.createEl(t, n, e.obj.merge({
300
+ href: this.getHref(),
301
+ title: this.localize(i),
302
+ target: a,
303
+ rel: o
304
+ }, r));
305
+ return s.prepend(e.dom.createEl("span", {
306
+ className: "vjs-control-text",
307
+ textContent: this.localize(i)
308
+ })), s.append(e.dom.createEl("span", {
309
+ className: "vjs-share-button-title",
310
+ textContent: this.localize(this.options().label)
311
+ })), s;
312
+ }
313
+ setUrlGenerator(e) {
314
+ this.generateUrl_ = e, this.updateHref();
315
+ }
316
+ generateUrl() {
317
+ return typeof this.generateUrl_ == "function" ? this.generateUrl_() : "";
318
+ }
319
+ getHref() {
320
+ let e = this.generateUrl();
321
+ if (!e) return "";
322
+ try {
323
+ let { buildUrl: t } = this.options();
324
+ return t(e, this.shareText(), this.player(), this);
325
+ } catch (e) {
326
+ w.error("Error building the share url:", e);
327
+ }
328
+ return "";
329
+ }
330
+ shareText() {
331
+ let e = this.options().shareText ?? this.parentComponent_?.options().shareText ?? document.title;
332
+ return typeof e == "function" ? e(this.player(), this) : e;
333
+ }
334
+ updateHref() {
335
+ this.el().href = this.getHref();
336
+ }
337
+ handleClick() {
338
+ this.trigger({
339
+ type: "share",
340
+ bubbles: !0
341
+ });
342
+ }
343
+ buildCSSClass() {
344
+ return `vjs-share-button ${super.buildCSSClass()}`;
345
+ }
346
+ handleLanguagechange() {
347
+ let { title: e, label: t } = this.options();
348
+ this.el().title = this.localize(e), this.$(".vjs-control-text").textContent = this.localize(e), this.$(".vjs-share-button-title").textContent = this.localize(t);
349
+ }
350
+ };
351
+ T.prototype.options_ = {
352
+ target: "_blank",
353
+ rel: "noopener noreferrer",
354
+ buildUrl: (e) => e
355
+ };
356
+ var E = class extends T {};
357
+ E.prototype.options_ = e.obj.merge(T.prototype.options_, {
358
+ className: "vjs-share-button-facebook",
359
+ label: "Facebook",
360
+ title: "Share on Facebook",
361
+ icon: oe,
362
+ iconName: "facebook",
363
+ buildUrl: (e) => `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}`
364
+ });
365
+ var D = class extends T {};
366
+ D.prototype.options_ = e.obj.merge(T.prototype.options_, {
367
+ className: "vjs-share-button-x",
368
+ label: "X",
369
+ title: "Share on X",
370
+ icon: S,
371
+ iconName: "x",
372
+ buildUrl: (e, t) => `https://twitter.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}`
373
+ });
374
+ var O = class extends T {};
375
+ O.prototype.options_ = e.obj.merge(T.prototype.options_, {
376
+ className: "vjs-share-button-linkedin",
377
+ label: "LinkedIn",
378
+ title: "Share on LinkedIn",
379
+ icon: ce,
380
+ iconName: "linkedin",
381
+ buildUrl: (e) => `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e)}`
382
+ });
383
+ var k = class extends T {};
384
+ k.prototype.options_ = e.obj.merge(T.prototype.options_, {
385
+ className: "vjs-share-button-whatsapp",
386
+ label: "WhatsApp",
387
+ title: "Share on WhatsApp",
388
+ icon: ue,
389
+ iconName: "whatsapp",
390
+ buildUrl: (e, t) => `https://api.whatsapp.com/send?text=${encodeURIComponent(`${t} ${e}`)}`
391
+ });
392
+ var A = class extends T {};
393
+ A.prototype.options_ = e.obj.merge(T.prototype.options_, {
394
+ className: "vjs-share-button-email",
395
+ label: "E-mail",
396
+ title: "Share by email",
397
+ icon: le,
398
+ iconName: "email",
399
+ target: "_self",
400
+ buildUrl: (e, t) => {
401
+ let n = encodeURIComponent(t);
402
+ return `mailto:?subject=${n}&body=${n}%20${encodeURIComponent(e)}`;
403
+ }
404
+ });
405
+ var j = class extends T {
406
+ handleClick(e) {
407
+ e.preventDefault(), this.copyText(this.textToCopy()), super.handleClick(e);
408
+ }
409
+ textToCopy() {
410
+ return this.generateUrl();
411
+ }
412
+ copyText(e) {
413
+ var t;
414
+ if (!((t = navigator.clipboard) != null && t.writeText)) {
415
+ w.warn("Clipboard API is unavailable; the text could not be copied.");
416
+ return;
417
+ }
418
+ Promise.resolve(navigator.clipboard.writeText(e)).catch((e) => {
419
+ w.error("The text could not be copied:", e);
420
+ });
421
+ }
422
+ };
423
+ j.prototype.options_ = e.obj.merge(T.prototype.options_, {
424
+ className: "vjs-share-button-copy",
425
+ label: "Copy link",
426
+ title: "Copy link",
427
+ icon: se,
428
+ iconName: "copy-link",
429
+ target: "",
430
+ rel: "",
431
+ buildUrl: () => "#"
432
+ });
433
+ var M = class extends j {
434
+ textToCopy() {
435
+ let { buildEmbedCode: e } = this.options();
436
+ return e(this.generateUrl(), this.player(), this);
437
+ }
438
+ };
439
+ M.prototype.options_ = e.obj.merge(j.prototype.options_, {
440
+ className: "vjs-share-button-embed",
441
+ label: "Embed",
442
+ title: "Embed",
443
+ icon: x,
444
+ iconName: "embed",
445
+ buildEmbedCode: (e) => `<iframe src="${e}" width="560" height="315" allowfullscreen></iframe>`
446
+ }), e.registerComponent("ShareButton", T), e.registerComponent("FacebookShareButton", E), e.registerComponent("XShareButton", D), e.registerComponent("LinkedinShareButton", O), e.registerComponent("WhatsappShareButton", k), e.registerComponent("EmailShareButton", A), e.registerComponent("CopyLinkShareButton", j), e.registerComponent("EmbedShareButton", M);
447
+ //#endregion
448
+ //#region src/share-button-collection.js
449
+ var N = e.getComponent("Component"), P = class extends N {
450
+ setUrlGenerator(e) {
451
+ this.children().forEach((t) => t.setUrlGenerator?.call(t, e));
452
+ }
453
+ };
454
+ P.prototype.options_ = {
455
+ className: "vjs-share-button-collection",
456
+ shareText: void 0,
457
+ children: [
458
+ "facebookShareButton",
459
+ "xShareButton",
460
+ "linkedinShareButton",
461
+ "whatsappShareButton",
462
+ "emailShareButton",
463
+ "copyLinkShareButton",
464
+ "embedShareButton"
465
+ ]
466
+ }, e.registerComponent("ShareButtonCollection", P);
467
+ //#endregion
468
+ //#region \0rollupPluginBabelHelpers.js
469
+ function F(e, t) {
470
+ this.v = e, this.k = t;
471
+ }
472
+ function I(e, t, n) {
473
+ return (t = B(t)) in e ? Object.defineProperty(e, t, {
474
+ value: n,
475
+ enumerable: !0,
476
+ configurable: !0,
477
+ writable: !0
478
+ }) : e[t] = n, e;
479
+ }
480
+ function L(e, t) {
481
+ var n = Object.keys(e);
482
+ if (Object.getOwnPropertySymbols) {
483
+ var r = Object.getOwnPropertySymbols(e);
484
+ t && (r = r.filter(function(t) {
485
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
486
+ })), n.push.apply(n, r);
487
+ }
488
+ return n;
489
+ }
490
+ function R(e) {
491
+ for (var t = 1; t < arguments.length; t++) {
492
+ var n = arguments[t] == null ? {} : arguments[t];
493
+ t % 2 ? L(Object(n), !0).forEach(function(t) {
494
+ I(e, t, n[t]);
495
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L(Object(n)).forEach(function(t) {
496
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
497
+ });
498
+ }
499
+ return e;
500
+ }
501
+ function z(e, t) {
502
+ if (typeof e != "object" || !e) return e;
503
+ var n = e[Symbol.toPrimitive];
504
+ if (n !== void 0) {
505
+ var r = n.call(e, t || "default");
506
+ if (typeof r != "object") return r;
507
+ throw TypeError("@@toPrimitive must return a primitive value.");
508
+ }
509
+ return (t === "string" ? String : Number)(e);
510
+ }
511
+ function B(e) {
512
+ var t = z(e, "string");
513
+ return typeof t == "symbol" ? t : t + "";
514
+ }
515
+ function V(e) {
516
+ var t, n;
517
+ function r(t, n) {
518
+ try {
519
+ var a = e[t](n), o = a.value, s = o instanceof F;
520
+ Promise.resolve(s ? o.v : o).then(function(n) {
521
+ if (s) {
522
+ var c = t === "return" ? "return" : "next";
523
+ if (!o.k || n.done) return r(c, n);
524
+ n = e[c](n).value;
525
+ }
526
+ i(a.done ? "return" : "normal", n);
527
+ }, function(e) {
528
+ r("throw", e);
529
+ });
530
+ } catch (e) {
531
+ i("throw", e);
532
+ }
533
+ }
534
+ function i(e, i) {
535
+ switch (e) {
536
+ case "return":
537
+ t.resolve({
538
+ value: i,
539
+ done: !0
540
+ });
541
+ break;
542
+ case "throw":
543
+ t.reject(i);
544
+ break;
545
+ default: t.resolve({
546
+ value: i,
547
+ done: !1
548
+ });
549
+ }
550
+ (t = t.next) ? r(t.key, t.arg) : n = null;
551
+ }
552
+ this._invoke = function(e, i) {
553
+ return new Promise(function(a, o) {
554
+ var s = {
555
+ key: e,
556
+ arg: i,
557
+ resolve: a,
558
+ reject: o,
559
+ next: null
560
+ };
561
+ n ? n = n.next = s : (t = n = s, r(e, i));
562
+ });
563
+ }, typeof e.return != "function" && (this.return = void 0);
564
+ }
565
+ V.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
566
+ return this;
567
+ }, V.prototype.next = function(e) {
568
+ return this._invoke("next", e);
569
+ }, V.prototype.throw = function(e) {
570
+ return this._invoke("throw", e);
571
+ }, V.prototype.return = function(e) {
572
+ return this._invoke("return", e);
573
+ };
574
+ var H = {
575
+ Share: "Teilen",
576
+ "Sharing type": "Art des Teilens",
577
+ Close: "Schliessen",
578
+ "Share episode": "Episode teilen",
579
+ Episode: "Episode",
580
+ "Share the current position": "Aktuelle Position teilen",
581
+ "Current position": "Aktuelle Position",
582
+ "Share on Facebook": "Auf Facebook teilen",
583
+ "Share on X": "Auf X teilen",
584
+ "Share on LinkedIn": "Auf LinkedIn teilen",
585
+ "Share on WhatsApp": "Auf WhatsApp teilen",
586
+ "Share by email": "Per E-Mail teilen",
587
+ "Copy link": "Link kopieren",
588
+ Embed: "Einbetten",
589
+ Facebook: "Facebook",
590
+ X: "X",
591
+ LinkedIn: "LinkedIn",
592
+ WhatsApp: "WhatsApp",
593
+ "E-mail": "E-Mail"
594
+ }, U = {
595
+ Share: "Share",
596
+ "Sharing type": "Sharing type",
597
+ Close: "Close",
598
+ "Share episode": "Share episode",
599
+ Episode: "Episode",
600
+ "Share the current position": "Share the current position",
601
+ "Current position": "Current position",
602
+ "Share on Facebook": "Share on Facebook",
603
+ "Share on X": "Share on X",
604
+ "Share on LinkedIn": "Share on LinkedIn",
605
+ "Share on WhatsApp": "Share on WhatsApp",
606
+ "Share by email": "Share by email",
607
+ "Copy link": "Copy link",
608
+ Embed: "Embed",
609
+ Facebook: "Facebook",
610
+ X: "X",
611
+ LinkedIn: "LinkedIn",
612
+ WhatsApp: "WhatsApp",
613
+ "E-mail": "E-mail"
614
+ }, de = {
615
+ Share: "Partager",
616
+ "Sharing type": "Type de partage",
617
+ Close: "Fermer",
618
+ "Share episode": "Partager l'épisode",
619
+ Episode: "Épisode",
620
+ "Share the current position": "Partager la position courante",
621
+ "Current position": "Position courante",
622
+ "Share on Facebook": "Partager sur Facebook",
623
+ "Share on X": "Partager sur X",
624
+ "Share on LinkedIn": "Partager sur Linkedin",
625
+ "Share on WhatsApp": "Partager sur Whatsapp",
626
+ "Share by email": "Partager par e-mail",
627
+ "Copy link": "Copier le lien",
628
+ Embed: "Embed",
629
+ Facebook: "Facebook",
630
+ X: "X",
631
+ LinkedIn: "LinkedIn",
632
+ WhatsApp: "WhatsApp",
633
+ "E-mail": "E-mail"
634
+ }, W = {
635
+ Share: "Condividi",
636
+ "Sharing type": "Tipo di condivisione",
637
+ Close: "Chiudi",
638
+ "Share episode": "Condividi l'episodio",
639
+ Episode: "Episodio",
640
+ "Share the current position": "Condividi la posizione corrente",
641
+ "Current position": "Posizione corrente",
642
+ "Share on Facebook": "Condividi su Facebook",
643
+ "Share on X": "Condividi su X",
644
+ "Share on LinkedIn": "Condividi su LinkedIn",
645
+ "Share on WhatsApp": "Condividi su WhatsApp",
646
+ "Share by email": "Condividi via e-mail",
647
+ "Copy link": "Copia il link",
648
+ Embed: "Incorpora",
649
+ Facebook: "Facebook",
650
+ X: "X",
651
+ LinkedIn: "LinkedIn",
652
+ WhatsApp: "WhatsApp",
653
+ "E-mail": "E-mail"
654
+ }, fe = {
655
+ Share: "Cundivider",
656
+ "Sharing type": "Tip da cundivider",
657
+ Close: "Serrar",
658
+ "Share episode": "Cundivider l'episoda",
659
+ Episode: "Episoda",
660
+ "Share the current position": "Cundivider la posiziun actuala",
661
+ "Current position": "Posiziun actuala",
662
+ "Share on Facebook": "Cundivider sin Facebook",
663
+ "Share on X": "Cundivider sin X",
664
+ "Share on LinkedIn": "Cundivider sin LinkedIn",
665
+ "Share on WhatsApp": "Cundivider sin WhatsApp",
666
+ "Share by email": "Cundivider per e-mail",
667
+ "Copy link": "Copiar il link",
668
+ Embed: "Integrar",
669
+ Facebook: "Facebook",
670
+ X: "X",
671
+ LinkedIn: "LinkedIn",
672
+ WhatsApp: "WhatsApp",
673
+ "E-mail": "E-mail"
674
+ };
675
+ //#endregion
676
+ //#region src/lang/index.js
677
+ function G(t, n) {
678
+ e.addLanguage(t, R(R({}, e.options.language[t] ?? {}), n));
679
+ }
680
+ G("de", H), G("en", U), G("fr", de), G("it", W), G("rm", fe);
681
+ //#endregion
682
+ //#region src/share-url-options.js
683
+ var pe = e.getComponent("Component"), K = (e, t) => me(e, t) || window.location.href, me = (e, t) => {
684
+ let { url: n } = t.options();
685
+ return typeof n == "function" ? n(e, t, t.context()) : n;
686
+ }, q = (e) => e.options().mediaComposition, J = (e) => {
687
+ var t, n;
688
+ return (t = q(e)) == null || (n = t.getMainChapter) == null ? void 0 : n.call(t);
689
+ }, Y = (e) => {
690
+ var t, n;
691
+ return ((t = q(e)) == null || (n = t.getSubdivisions) == null ? void 0 : n.call(t)) ?? [];
692
+ }, he = (e, t) => t >= e.markIn / 1e3 && t < e.markOut / 1e3, ge = (e) => Y(e).filter((e) => !e.blockReason).filter((t) => he(t, e.currentTime())).pop(), X = (e) => e.currentSource()?.mediaData, _e = (e) => J(e) || X(e), Z = class extends pe {
693
+ constructor(e, t = {}) {
694
+ super(e, t), this.render(), this.on(this.player(), "timeupdate", this.updateOptionsState);
695
+ }
696
+ createEl() {
697
+ return super.createEl("div", {}, {
698
+ role: "radiogroup",
699
+ "aria-label": this.localize("Sharing type")
700
+ });
701
+ }
702
+ render(e = this.defaultOption()) {
703
+ let t = this.entries();
704
+ this.toggleClass("vjs-hidden", t.length <= 1), this.el().replaceChildren(...t.map(([t, n]) => this.createOption(t, n, t === e)));
705
+ }
706
+ entries() {
707
+ let { options: e, includeCurrentTime: t } = this.options();
708
+ return Object.entries(e).filter(([e, n]) => n !== !1 && !this.isOptionHidden(n) && (e !== "currentTime" || t));
709
+ }
710
+ isOptionHidden(e) {
711
+ return typeof e.isHidden == "function" && e.isHidden(this.player(), this);
712
+ }
713
+ isOptionDisabled(e) {
714
+ return typeof e.isDisabled == "function" ? e.isDisabled(this.player(), this) : !!e.disabled;
715
+ }
716
+ defaultOption() {
717
+ let { defaultOption: e, includeCurrentTime: t } = this.options(), n = e ?? (t ? "currentTime" : "episode"), r = this.entries().filter(([, e]) => !this.isOptionDisabled(e));
718
+ return r.some(([e]) => e === n) ? n : r[0]?.[0];
719
+ }
720
+ createOption(t, n, r) {
721
+ let i = `${this.id()}_${t}`, a = e.dom.createEl("label", {
722
+ className: "vjs-share-url-option-label",
723
+ title: this.localize(n.title ?? n.label)
724
+ }, { for: i });
725
+ return a.append(e.dom.createEl("input", {
726
+ className: "vjs-share-url-option-input",
727
+ checked: r,
728
+ disabled: this.isOptionDisabled(n)
729
+ }, {
730
+ id: i,
731
+ type: "radio",
732
+ name: `${this.id()}_url_option`,
733
+ value: t
734
+ }), e.dom.createEl("span", { textContent: this.localize(n.label) })), a;
735
+ }
736
+ input(e) {
737
+ return this.$(`.vjs-share-url-option-input[value="${e}"]`);
738
+ }
739
+ selected() {
740
+ return this.$(".vjs-share-url-option-input:checked")?.value;
741
+ }
742
+ updateOptionsState() {
743
+ this.entries().forEach(([e, t]) => {
744
+ let n = this.input(e);
745
+ n && (n.disabled = this.isOptionDisabled(t));
746
+ });
747
+ let e = this.options().options[this.selected()];
748
+ e && this.isOptionDisabled(e) && this.selectDefaultOption();
749
+ }
750
+ selectDefaultOption() {
751
+ let e = this.input(this.defaultOption());
752
+ e && (e.checked = !0, this.trigger("change"));
753
+ }
754
+ context() {
755
+ var e;
756
+ let t = _e(this.player());
757
+ return {
758
+ currentMedia: t,
759
+ currentSource: (e = this.player()).currentSource?.call(e),
760
+ currentSubdivision: ge(this.player()),
761
+ currentTime: this.player().currentTime(),
762
+ mainChapter: J(this.player()),
763
+ mediaData: X(this.player()),
764
+ subdivisions: Y(this.player()),
765
+ title: t?.title
766
+ };
767
+ }
768
+ generateUrl() {
769
+ let e = this.options().options[this.selected()];
770
+ return e ? e.generateUrl(this.player(), this) : "";
771
+ }
772
+ handleLanguagechange() {
773
+ this.el().setAttribute("aria-label", this.localize("Sharing type")), this.render(this.selected());
774
+ }
775
+ };
776
+ Z.prototype.options_ = {
777
+ className: "vjs-share-url-options",
778
+ defaultOption: void 0,
779
+ includeCurrentTime: !1,
780
+ url: void 0,
781
+ options: {
782
+ episode: {
783
+ label: "Episode",
784
+ title: "Share episode",
785
+ generateUrl: (e, t) => K(e, t)
786
+ },
787
+ currentTime: {
788
+ label: "Current position",
789
+ title: "Share the current position",
790
+ generateUrl: (e, t) => {
791
+ let n = new URL(K(e, t));
792
+ return n.searchParams.set("startTime", Math.floor(e.currentTime())), n.toString();
793
+ }
794
+ }
795
+ }
796
+ }, e.registerComponent("ShareUrlOptions", Z);
797
+ //#endregion
798
+ //#region src/share-modal.js
799
+ var ve = e.getComponent("ModalDialog"), Q = class extends ve {
800
+ constructor(e, t = {}) {
801
+ super(e, t), this.handleOutsideClick = this.handleOutsideClick.bind(this), this.fill(), this.render();
802
+ }
803
+ dispose() {
804
+ this.unbindOutsideClick(), super.dispose();
805
+ }
806
+ buildCSSClass() {
807
+ return `vjs-share-modal ${super.buildCSSClass()}`;
808
+ }
809
+ render() {
810
+ this.title_ = this.createTitle(), this.urlOptions_ = this.addChild("ShareUrlOptions", this.options().shareUrlOptions), this.collection_ = this.addChild("ShareButtonCollection", this.options().shareButtonCollection), this.on(this.urlOptions_, "change", this.updateUrlGenerator), this.on("share", this.handleShare), this.updateUrlGenerator();
811
+ }
812
+ createTitle() {
813
+ let e = this.addChild("ShareModalTitle", {
814
+ componentClass: "TitleBar",
815
+ className: "vjs-share-title"
816
+ });
817
+ return e.update({ title: this.localize(this.options().title ?? "Share") }), e;
818
+ }
819
+ open() {
820
+ super.open(), this.bindOutsideClick(), this.updateUrlGenerator();
821
+ }
822
+ close() {
823
+ this.unbindOutsideClick(), super.close();
824
+ }
825
+ updateUrlGenerator() {
826
+ this.collection_.setUrlGenerator(() => this.urlOptions_.generateUrl());
827
+ }
828
+ handleShare() {
829
+ this.close();
830
+ }
831
+ bindOutsideClick() {
832
+ document.addEventListener("pointerdown", this.handleOutsideClick);
833
+ }
834
+ unbindOutsideClick() {
835
+ document.removeEventListener("pointerdown", this.handleOutsideClick);
836
+ }
837
+ handleOutsideClick(e) {
838
+ this.isOwnClick(e) || this.close();
839
+ }
840
+ isOwnClick(e) {
841
+ return this.el().contains(e.target);
842
+ }
843
+ handleLanguagechange() {
844
+ this.el().title = this.localize(this.options().title ?? "Share"), this.title_.update({ title: this.localize(this.options().title ?? "Share") });
845
+ }
846
+ };
847
+ Q.prototype.options_ = {
848
+ pauseOnOpen: !1,
849
+ temporary: !1,
850
+ title: "Share",
851
+ shareUrlOptions: {},
852
+ shareButtonCollection: {}
853
+ }, e.registerComponent("ShareModal", Q);
854
+ //#endregion
855
+ //#region package.json
856
+ var ye = "0.0.1", be = e.getComponent("SvgButton"), xe = e.log.createLogger("share-toggle"), $ = class extends be {
857
+ constructor(e, t = {}) {
858
+ super(e, t), this.player().ready(() => this.bindShareModal());
859
+ }
860
+ bindShareModal() {
861
+ let e = this.player().getChild("ShareModal");
862
+ if (!e) {
863
+ xe.warn("ShareToggle requires a ShareModal child on the player");
864
+ return;
865
+ }
866
+ this.on(e, "modalopen", this.hide), this.on(e, "modalclose", this.show), this.toggleClass("vjs-hidden", e.opened());
867
+ }
868
+ handleClick(e) {
869
+ super.handleClick(e), this.shareModal().open();
870
+ }
871
+ shareModal() {
872
+ let e = this.player().getChild("ShareModal");
873
+ if (!e) throw Error("ShareToggle requires a ShareModal child on the player");
874
+ return e;
875
+ }
876
+ buildCSSClass() {
877
+ return `vjs-share-toggle ${super.buildCSSClass()}`;
878
+ }
879
+ static get VERSION() {
880
+ return ye;
881
+ }
882
+ };
883
+ $.prototype.options_ = {
884
+ controlText: "Share",
885
+ iconName: "share"
886
+ }, e.registerComponent("ShareToggle", $);
887
+ //#endregion
888
+ export { T as ShareButton, P as ShareButtonCollection, Q as ShareModal, $ as ShareToggle, Z as ShareUrlOptions };
889
+
890
+ //# sourceMappingURL=share-button.js.map