PageSourceSearch

https://www.jp.se/assets/rev/js/follow-modification-module-E6YJ7JPM.js

js jp.se collected 2026-10-02 05:06:28 UTC 1,382 bytes, 2 lines download raw bytes

1import{a as o}from"./chunk-F4JR2GIT.js";import{i as a}from"./chunk-XCPXRTXT.js";import{d as c}from"./chunk-6KHOHYTW.js";var e=c(o());var s=class{constructor(t){this.element=t,this._init()}_init(){this._subjectName=this.element.dataset.subjectName,this._subjectId=this.element.dataset.subjectId,this._subjectType=this.element.dataset.subjectType,this._active=this.element.dataset.active==="true",this._button=this.element.querySelector("button"),this._listenForUpdates(),this._button.addEventListener("click",()=>{this._sendOpenModificationModalEvent()}),a().then(t=>{let i=t.find(n=>n.id===this._subjectId);this._modificationFollowState=i?i.followState:"undefined"}).catch(t=>console.error(t))}_listenForUpdates(){document.addEventListener("lcl-follow-modal:follow-push-state-changed",t=>{t.detail.subjectId===this._subjectId&&(this._active=!this._active,this._modificationFollowState=t.detail.state)})}_sendOpenModificationModalEvent(){this.element.dispatchEvent(new CustomEvent(e.FOLLOW_MODIFICATION_OPEN_EVENT_NAME,{bubbles:!0,detail:{subjectName:this._subjectName,subjectId:this._subjectId,subjectType:this._subjectType,focusAfter:this.element,subjectFilter:this._active?e.FOLLOW_NOTIFICATION_FILTER_ALL_NEWS:e.FOLLOW_NOTIFICATION_FILTER_NONE,currentState:this._modificationFollowState}}))}};export{s as default};
2//# sourceMappingURL=follow-modification-module-E6YJ7JPM.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.