1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[728],{694:function(o,u,c){var n=c(9279);class s{constructor(){this.elements={subscribe:Array.from(document.querySelectorAll(".plenigo-auth__subscribe")),myAccount:Array.from(document.querySelectorAll(".plenigo-auth__my-account")),logout:Array.from(document.querySelectorAll(".plenigo-auth__logout")),login:Array.from(document.querySelectorAll(".plenigo-auth__login"))},this.elements.logout.forEach(t=>{t.removeAttribute("target")}),this.initUser(),this.updateElements()}async initUser(){const t=await(0,n.wz)();window.dispatchEvent(new CustomEvent("frisbii:user:init",{detail:t}))}async updateElements(){if(!await(0,n.Lh)()){this.disconnected();return}this.connected()}disconnected(){const t=[...this.elements.logout,...this.elements.myAccount],i=[...this.elements.login,...this.elements.subscribe];t.forEach(e=>{e.style.display="none"}),i.forEach(e=>{e.style.display=null})}async connected(){const t=[...this.elements.login],i=[...this.elements.logout,...this.elements.myAccount];await(0,n.ll)()?t.push(...this.elements.subscribe):i.push(...this.elements.subscribe),t.forEach(e=>{e.style.display="none"}),i.forEach(e=>{e.style.display=null})}}window.addEventListener("DOMContentLoaded",()=>{document.documentElement.lang!=="en-UK"&&new s})},9279:function(o,u,c){c.d(u,{Lh:function(){return t},ll:function(){return i},wz:function(){return l}});const n=new Set(["can-read-premium"]);let s=null;function l(){return s!==null||(s=fetch("/wp-json/studiometa-frisbii/user").then(e=>e.json()).catch(e=>{console.log(e)})),s}async function t(){return!!await l()}async function i(){const e=await l();return e&&e.accessRights.find(r=>n.has(r))}}},function(o){var u=function(n){return o(o.s=n)},c=u(694)}]); 2 3//# sourceMappingURL=index.1481c76b9eae5b13525b.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.