PageSourceSearch

https://www.jolifin.de/theme/86db693bb4f539ecaff1140e784845e8/js/p…p-theme.app-checkout-login.plugin.8c4a61.js

js jolifin.de collected 2026-10-02 00:40:11 UTC 1,804 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[96443],{989(t,e,n){n.d(e,{A:()=>i});class i{static isApp(){return document.body.classList.contains("is-native-app-view")}}},6276(t,e,n){n.d(e,{A:()=>o});var i=n(5795);let s=null,r=null;async function a(){return s||(r||(r=fetch("/pns/context-token",{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Error(`context-token endpoint returned ${t.status}`);return t.json()}).then(t=>(s=t.token,r=null,t.token)).catch(t=>{throw r=null,t})),r)}class o{async fetchSW(t,e){let n=await a(),s={...e?.headers??{},"sw-access-key":i.Gp,"sw-context-token":n,"Content-Type":"application/json"};return(await fetch(t,{...e,headers:s})).json()}}},6443(t,e,n){n.r(e),n.d(e,{default:()=>r});var i=n(989),s=n(6276);class r extends window.PluginBaseClass{init(){i.A.isApp()&&this.el instanceof HTMLFormElement&&(this._form=this.el,this._swHelper=new s.A,this.formValidationPluginInstance=window.PluginManager.getPluginInstanceFromElement(this.el,"FormValidation"),this._registerEventListener())}_registerEventListener(){this.el.addEventListener("submit",this._onSubmit.bind(this)),this.formValidationPluginInstance&&this.formValidationPluginInstance.$emitter.subscribe("beforeSubmit",this._onValidate.bind(this))}_onSubmit(t){t.preventDefault(),this._isFormValid&&this._handleLogin()}_onValidate(t){this._isFormValid=t.detail.validity??!1}_handleLogin(){let t=this._getFormData(),e={username:t.username,password:t.password};this._swHelper.fetchSW("/store-api/account/login",{method:"POST",body:JSON.stringify(e)}).then(t=>{if(t.errors){this._displayError();return}t.contextToken&&window.nativeAppHelper?.postLoginData(e)})}_getFormData(){return Object.fromEntries(new FormData(this._form))}_displayError(){this.$emitter.publish("loginCredentialsIncorrect")}}}}]);

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.