1import { g as L, y as W } from "./chunk-xgti9j2t.js"; 2import { $ as a, $r as E, Aa as r, Ai as H, Ba as T, Ea as n, G as B, Hn as v, Hr as P, Io as z, Kn as N, Li as m, Na as F, Pi as R, Pt as o, Ro as j, Sa as g, Sn as u, Sr as x, Y as f, bi as q, co as K, f as k, fa as s, fi as Q, fr as O, gt as h, ia as X, l as Z, qa as Y, sa as p, t as d, tn as l, zo as G, zr as $ } from "./chunk-c97c17u8.js"; 3import { M as J } from "./chunk-l3jkbhly.js"; 4import { p as V } from "./chunk-k52vj1ic.js"; 5import { o as U } from "./chunk-l24fzhmb.js"; 6import { A as ii } from "./chunk-jrtaqqwj.js"; 7import { o as ti, t as ei } from "./chunk-pesy0vb6.js"; 8import { D as ni, o as oi } from "./chunk-llc8ry2a.js"; 9import { ut as si } from "./chunk-fbjoug0d.js"; 10import { a as ai } from "./chunk-ewplex8i.js"; 11import { n as ri, r as I } from "./chunk-c18gpzrj.js"; 12import { r as pi } from "./chunk-c9rg1mp5.js"; 13import { t as ci } from "./chunk-kyqvtgtk.js"; 14import { Y as hi, gt as li } from "./chunk-w0x32net.js"; 15import { p as di } from "./chunk-bhnvkbxx.js"; 16import { ot as ui } from "./chunk-f2v2cgea.js"; 17import { c as gi } from "./chunk-og5uebri.js"; 18import { Dn as mi, it as fi, jr as Ci } from "./chunk-go6pvd0a.js"; 19import { t as _i } from "./chunk-k4et3zlq.js"; 20import { i as Ti, p as vi } from "./chunk-hul0ult7.js"; 21import { n as xi, r as ki } from "./chunk-lmnwxprc.js"; 22import { r as Oi } from "./chunk-ilfhy0in.js"; 23import { n as Gi } from "./chunk-ohg30iel.js"; 24import { $ as Ii } from "./chunk-iuhjzybw.js"; 25import { r as Ai, t as A } from "./chunk-i1knml6i.js"; 26import { n as y, t as yi } from "./chunk-ga84h9wi.js"; 27import { t as wi } from "./chunk-bwsrvyqb.js"; 28import { Dn as C, En as bi, Mn as Si, Nn as Di, Sn as Mi, Tn as Li, xn as Wi } from "./chunk-g8mtbi19.js"; 29import { a as Ei, i as Hi, o as Bi, s as Pi, t as zi } from "./chunk-oinny59o.js"; 30import { n as Ni, r as Fi } from "./chunk-h0085uyy.js"; 31import { n as Ri, t as ji } from "./chunk-my4pllpb.js"; 32import { t as qi } from "./chunk-o4f8w5yc.js"; 33function Ki(t, e) { 34 t & 1 && u(0, "vn-icon", 3), t & 2 && l("name", "theme-success-i"); 35} 36function Qi(t, e) { 37 t & 1 && u(0, "vn-icon", 3), t & 2 && l("name", "theme-info-i"); 38} 39function Xi(t, e) { 40 if (t & 1) { 41 let i = x(); 42 n(0, "div", 2)(1, "div"), f(2, Ki, 1, 1, "vn-icon", 3)(3, Qi, 1, 1, "vn-icon", 3), s(), n(4, "div")(5, "span"), a(6), s()(), n(7, "div")(8, "i", 4), d("click", function() { 43 return O(i), G(g().close()); 44 }), s()()(); 45 } 46 if (t & 2) { 47 let i = g(); 48 o(2), m(i.toast.errorType === "SUCCESS" ? 2 : i.toast.errorType === "INFO" ? 3 : -1), o(4), p(i.toast.message); 49 } 50} 51function Zi(t, e) { 52 if (t & 1) { 53 let i = x(); 54 n(0, "div", 18), d("click", function() { 55 return O(i), G(g().showHideHelp()); 56 }), a(1), s(); 57 } 58 if (t & 2) { 59 let i = g(); 60 o(), p(i.geoGuardHelp()); 61 } 62} 63var _, w, b, S, D; 64function M() { 65 return (M = qi((() => { 66 W(), R(), J(), V(), U(), ii(), ti(), ni(), si(), ai(), ri(), pi(), ci(), oi(), li(), di(), ui(), hi(), gi(), Ci(), _i(), vi(), Ti(), xi(), Oi(), Gi(), Ii(), mi(), Ai(), yi(), Si(), bi(), Mi(), wi(), Ni(), Bi(), Ri(), _ = (() => { 67 let t = class { 68 constructor() { 69 this.subject = new B(); 70 } 71 dispatch(i, c) { 72 this.subject.next({ 73 event: i, 74 data: c 75 }); 76 } 77 on(i) { 78 return this.subject.pipe(j((c) => c.event === i), N((c) => c.data)); 79 } 80 ngOnDestroy() { 81 this.subject.complete(); 82 } 83 }; 84 return t.ɵfac = function(e) { 85 return new (e || t)(); 86 }, t.ɵprov = Q({ 87 token: t, 88 factory: t.ɵfac, 89 providedIn: "root" 90 }), t; 91 })(), w = ["geoCoordinationToaster"], b = ["*"], S = (() => { 92 let t = class { 93 constructor() { 94 this.dispatcher = h(_), this.localStorage = h(fi), this.device = h(I), this.geolocationConfig = h(y), this.placementTop = zi.TOP, this.toasterDisplayedKey = "is_geocomply_toaster_displayed", this.destroyRef = h(Z), this.activator = h(Di); 95 } 96 close() { 97 this.toast.errorType === C.Info && this.localStorage.set(this.toasterDisplayedKey, !0), this.popper.hide(); 98 } 99 ngAfterViewInit() { 100 return L(this, null, function* () { 101 (yield this.activator.isActive()) && this.device.isiOS && !this.localStorage.get(this.toasterDisplayedKey
101) && (this.toast = { 102 message: this.geolocationConfig.textMappings.messages?.GeoGuardInstallationAlertText ?? "To play on web, Geoguard needs to be installed and running on your device ", 103 errorType: C.Info 104 }, this.popper.show()); 105 }); 106 } 107 ngOnInit() { 108 this.dispatcher.on("CONFIRM_LOCATION").pipe(ei(this.destroyRef)).subscribe((i) => this.showMessage(i)); 109 } 110 showMessage(i) { 111 this.toast = i, this.popper.show(); 112 } 113 }; 114 return t.ɵfac = function(e) { 115 return new (e || t)(); 116 }, t.ɵcmp = v({ 117 type: t, 118 selectors: [["vn-geo-coordination-toaster"]], 119 viewQuery: function(e, i) { 120 if (e & 1 && z(w, 5), e & 2) { 121 let c; 122 X(c = K()) && (i.popper = c.first); 123 } 124 }, 125 ngContentSelectors: b, 126 decls: 5, 127 vars: 9, 128 consts: [ 129 ["geoCoordinationToaster", ""], 130 [ 131 3, 132 "popper", 133 "popperAppendTo", 134 "popperHideOnClickOutside", 135 "popperHideOnScroll", 136 "popperPlacement", 137 "popperApplyClass", 138 "popperDisableAnimation", 139 "popperApplyArrowClass" 140 ], 141 [1, "geo-location-message"], 142 [3, "name"], 143 [ 144 "aria-hidden", 145 "true", 146 1, 147 "theme-ex", 148 3, 149 "click" 150 ] 151 ], 152 template: function(e, i) { 153 e & 1 && (Y(), n(0, "div", 1), P(1), s(), n(2, "popper-content", null, 0), f(4, Xi, 9, 2, "div", 2), s()), e & 2 && (l("popper", q(3))("popperAppendTo", "body")("popperHideOnClickOutside", !0)("popperHideOnScroll", !1)("popperPlacement", i.placementTop)("popperApplyClass", "geo-guard-toast")("popperDisableAnimation", !1)("popperApplyArrowClass", "withoutArrow"), o(4), m(i.toast != null ? 4 : -1)); 154 }, 155 dependencies: [ 156 Pi, 157 Hi, 158 Ei, 159 A 160 ], 161 encapsulation: 2, 162 changeDetection: 1 163 }), t; 164 })(), D = (() => { 165 let t = class extends ji { 166 constructor() { 167 super(...arguments), this.showToolTip = !1, this.title = r(""), this.installOrOpenGeoGuardTitle = r(""), this.installOrOpenGeoGuardCTAText = r(""), this.whatIsGeoGuard = r(""), this.geoGuardHelp = r(""), this.geoGuardDescription = r(""), this.orSeparatorText = r(""), this.proceedWithGeoCoordinationCTAText = r(""), this.proceedWithGeoCoordinationTitle = r(""), this.playOnWebInformationText = r(""), this.continueOnEntainAppInformationText = r(""), this.continuePlayingQueryText = r(""), this.downloadEntainAppLinkText = r(""), this.glvAppIntent = T(() => { 168 if (this.device.isMobile) { 169 if (this.device.isAndroid) return this.geoCoordinationConfig.installerSettings.glv?.playStoreIntent; 170 if (this.device.isiOS) return this.geoCoordinationConfig.installerSettings.glv?.appStoreIntent; 171 } 172 return ""; 173 }), this.entainAppIntent = T(() => { 174 if (this.device.isMobile) { 175 if (this.device.isAndroid) return this.geoCoordinationConfig.installerSettings.entain?.playStoreIntent; 176 if (this.device.isiOS) return this.geoCoordinationConfig.installerSettings.entain?.appStoreIntent; 177 } 178 return ""; 179 }), this.geoCoordinationConfig = h(y), this.device = h(I), this.errorData = h(Li), this.geolocationCoordinatorService = h(Wi), this.dispatcher = h(_); 180 } 181 ngOnInit() { 182 this.title.set(this.geoCoordinationConfig.textMappings.messages?.MobileLaunchWidgetTitle ?? ""), this.title.set(this.geoCoordinationConfig.textMappings.messages?.MobileLaunchWidgetTitle ?? ""), this.installOrOpenGeoGuardTitle.set(this.geoCoordinationConfig.textMappings.messages?.InstallOrOpenGeoGuardTitle ?? ""), this.installOrOpenGeoGuardCTAText.set(this.geoCoordinationConfig.textMappings.messages?.InstallOrOpenGeoGuardCTAText ?? ""), this.whatIsGeoGuard.set(this.geoCoordinationConfig.textMappings.messages?.WhatIsGeoGuard ?? ""), this.geoGuardDescription.set(this.geoCoordinationConfig.textMappings.messages?.GeoGuardDescription ?? ""), this.orSeparatorText.set(this.geoCoordinationConfig.textMappings.messages?.OrSeparatorText ?? ""), this.proceedWithGeoCoordinationCTAText.set(this.geoCoordinationConfig.textMappings.messages?.ProceedWithGeoCoordinationCTAText ?? ""), this.proceedWithGeoCoordinationTitle.set(this.geoCoordinationConfig.textMappings.messages?.ProceedWithGeoCoordinationTitle ?? ""), this.playOnWebInformationText.set(this.geoCoordinationConfig.textMappings.messages?.PlayOnWebInformationText ?? ""), this.continueOnEntainAppInformationText.set(this.geoCoordinationConfig.textMappings.messages?.ContinueOnEntainAppInformationText ?? ""), this.continuePlayingQueryText.set(this.geoCoordinationConfig.textMappings.messages?.ContinuePlayingQueryText ?? ""), this.downloadEntainAppLinkText.set(this.geoCoordinationConfig.textMappings.messages?.DownloadEntainAppLinkText ?? ""), this.geoGuardHelp.set(this.device.isiOS ? this.geoCoordinationConfig.textMappings.messages?.AboutGeoGuardIOS ?? "" : this.geoCoordinationConfig.textMappings.messages?.AboutGeoGuardAndroid ?? ""); 183 } 184 close() { 185 this.closeOverlay(); 186 } 187 confirmLocation() { 188 this.geolocationCoordinatorService.initialize(), this.geolocationCoordinatorService.onInitialized = (i, c) => { 189 i === "INITIALIZED" && (this.close(), this.dispatcher.dispatch("CONFIRM_LOCATION", { 190 message: this.geoCoordinationConfig.textMappings.messages?.LocationSuccessInformationText ?? "", 191 errorType: C.Success 192 })); 193 }; 194 } 195 installOrOpenGeoGuard(i) { 196 if (this.errorData?.additionalInfo?.yes) { 197 i.preventDefault(), this.errorData.additionalInfo.yes(); 198 return; 199 } 200 } 201 showHideHelp() { 202 this.showToolTip = !this.showToolTip; 203 } 204 }; 205 return t.ɵfac = (() => { 206 let e; 207 return function(i) { 208 return (e || (e = H(t)))(i || t); 209 }; 210 })(), t.ɵcmp = v({ 211 type: t, 212 selectors: [["vn-geo-coordination-mobile-launch-widget"]], 213 features: [E], 214 decls: 36, 215 vars: 17, 216 consts: [ 217 [ 218 3, 219 "onClose", 220 "showHeaderCloseIcon", 221 "headerTitle" 222 ], 223 ["content", ""], 224 [1, "geo-guard-validation-container"], 225 [1, "geo-guard-validation-body"], 226 [1, "theme-location-pin"], 227 [1, "header-text"], 228 [1, "description-text"], 229 [1, "btn-help-text"], 230 [ 231 "ds-button", 232 "", 233 "size", 234 "large", 235 "variant", 236 "filled", 237 "kind", 238 "primary", 239 "target", 240 "_blank", 241 1, 242 "w-100", 243 3, 244 "href" 245 ], 246 [1, "underline-text"], 247 [1, "line-spacing-text"], 248 [1, "step"], 249 [ 250 "ds-button", 251 "", 252 "size", 253 "large", 254 "variant", 255 "outline", 256 "kind", 257 "secondary", 258 "target", 259 "_blank", 260 1, 261 "w-100", 262 3, 263 "click", 264 "href" 265 ], 266 [ 267 "ds-button", 268 "", 269 "size", 270 "large", 271 "variant", 272 "filled", 273 "kind", 274 "primary", 275 1, 276 "w-100", 277 3, 278 "click" 279 ], 280 [ 281 1, 282 "geo-guard-help", 283 "help-popup" 284 ], 285 [ 286 "aria-hidden", 287 "true", 288 3, 289 "click" 290 ], 291 [3, "name"], 292 [ 293 1, 294 "help-text-box", 295 "popuptext", 296 "show" 297 ], 298 [ 299 1, 300 "help-text-box", 301 "popuptext", 302 "show", 303 3, 304 "click" 305 ] 306 ], 307 template: function(e, i) { 308 e & 1 && (n(0, "vn-dialog", 0), d("onClose", function() { 309 return i.close(); 310 }), $(1, 1), n(2, "div", 2)(3, "div", 3), u(4, "div", 4), n(5, "div", 5), a(6), s(), n(7, "div", 6), a(8), s(), n(9, "div", 7), a(10), s(), n(11, "a", 8), a(12), s(), n(13, "div", 9)(14, "h6", 10)(15, "span"), a(16), s()()(), n(17, "div", 7), a(18), s(), n(19, "div", 11), a(20), s(), n(21, "div")(22, "a", 12), d("click", function(c) { 311 return i.installOrOpenGeoGuard(c); 312 }), a(23), s()(), n(24, "div", 11), a(25), s(), n(26, "div")(27, "a", 13), d("click", function() { 313 return i.confirmLocation(); 314 }), a(28), s()(), n(29, "div", 14)(30, "div", 15), d("click", function() { 315 return i.showHideHelp(); 316 }), u(31, "vn-icon", 16), n(32, "span"), a(33), s(), f(34, Zi, 2, 1, "div", 17), s()()()(), u(35, "vn-geo-coordination-toaster"), F(), s()), e & 2 && (l("showHeaderCloseIcon", !0)("headerTitle", i.title()), o(6), p(i.continuePlayingQueryText()), o(2), p(i.geoGuardDescription()), o(2), p(i.continueOnEntainAppInformationText()), o(), l("href", i.entainAppIntent(), k), o(), p(i.downloadEntainAppLinkText()), o(4), p(i.orSeparatorText()), o(2), p(i.playOnWebInformationText()), o(2), p(i.installOrOpenGeoGuardTitle()), o(2), l("href", i.glvAppIntent(), k), o(), p(i.installOrOpenGeoGuardCTAText()), o(2), p(i.proceedWithGeoCoordinationTitle()), o(3), p(i.proceedWithGeoCoordinationCTAText()), o(3), l("name", "theme-info"), o(2), p(i.whatIsGeoGuard()), o(), m(i.showToolTip ? 34 : -1)); 317 }, 318 dependencies: [ 319 S, 320 Fi, 321 A, 322 ki 323 ], 324 encapsulation: 2, 325 changeDetection: 1 326 }), t; 327 })(); 328 })))(); 329} 330M(); 331export { D as GeoCoordinationMobileLaunchWidgetComponent }; 332 333//# sourceMappingURL=chunk-jdu8ij7e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.