PageSourceSearch

https://autozentrumduisburg.de/_next/static/chunks/pages/sy-auth-2cec8076ec2a23e9.js

js autozentrumduisburg.de collected 2026-10-07 06:24:32 UTC 10,575 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9203],{29612:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>U,default:()=>A});var n,i,o=r(62888),a=r(87466);a.Ay.div.withConfig({componentId:"sc-53829305-0"})(["color:pink;"]);var s=r(50180),c=r(35125),d=r(91524),p=r(31762),l=r.n(p),h=r(3042),u=r.n(h),f=r(62017),g=r(85100),m=r(34663),y=r(65623),v=r(37600),b=r(61114),x=r.n(b);function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var R=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(_(t)),t.handleErrored=t.handleErrored.bind(_(t)),t.handleChange=t.handleChange.bind(_(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(_(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var r=t.prototype;return r.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},r.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},r.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(e)},5e3)},r.handleRecaptchaRef=function(e){this.captcha=e},r.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return d.createElement("div",w({},t,{ref:this.handleRecaptchaRef}))},t}(d.Component);R.displayName="ReCAPTCHA",R.propTypes={sitekey:x().string.isRequired,onChange:x().func,grecaptcha:x().object,theme:x().oneOf(["dark","light"]),type:x().oneOf(["image","audio"]),tabindex:x().number,onExpired:x().func,onErrored:x().func,size:x().oneOf(["compact","normal","invisible"]),stoken:x().string,hl:x().string,badge:x().oneOf(["bottomright","bottomleft","inline"])}
1,R.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var k=r(22380),j=r.n(k);function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var S={},E=0,L="onloadcallback";let I=(n=function(){return"https://"+(("u">typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+L+"&render=explicit"},i=i={callbackName:L,globalName:"grecaptcha"},function(e){var t=e.displayName||e.name||"Component",r=function(t){function r(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t;var o=r.prototype;return o.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+E++),this.__scriptLoaderID},o.setupScriptURL=function(){return this.__scriptURL=n(),this.__scriptURL},o.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},o.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=S[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[i.callbackName]},o.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=i,o=n.globalName,a=n.callbackName,s=n.scriptId;if(o&&void 0!==window[o]&&(S[t]={loaded:!0,observers:{}}),S[t]){var c=S[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var d={};d[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},S[t]={loaded:!1,observers:d};var p=document.createElement("script");for(var l in p.src=t,p.async=!0,i.attributes)p.setAttribute(l,i.attributes[l]);s&&(p.id=s);var h=function(e){if(S[t]){var r=S[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"u">typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),p.onload=function(){var e=S[t];e&&(e.loaded=!0,h(function(t){return!a&&(t(e),!0)}))},p.onerror=function(){var e=S[t];e&&(e.errored=!0,h(function(t){return t(e),!0}))},document.body.appendChild(p)},o.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===i.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=S[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete S[e])},o.render=function(){var t=i.globalName,r=this.props,n=(r.asyncScriptOnLoad,r.forwardedRef),o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"u">typeof window&&(o[t]=void 0!==window[t]?window[t]:void 0),o.ref=n,(0,d.createElement)(e,o)},r}(d.Component),o=(0,d.forwardRef)(function(e,t){return(0,d.createElement)(r,C({},e,{forwardedRef:t}))});return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:x().func},j()(o,e)})(R);var O=r(322),N=r.n(O);let T=a.Ay.div.withConfig({componentId:"sc-68814e6e-0"})(["padding:30px;background:#ececec;height:100vh;display:flex;align-items:center;justify-content:center;"]),A=()=>{var e;let t,[r,n]=(0,d.useState)(!1),[i,a]=(0,d.useState)(!1),[p,h]=(0,d.useState)(null),[b,x]=(0,d.useState)(0),[w,_]=(0,d.useState)(!1),[R,k]=(0,d.useState)(!1),j=(0,m.useRouter)(),C=(0,v.As)(),S=(0,d.useRef)(null),E=(0,d.useRef)(null),{t:L}=(0,f.Bd)("common"),O=b>2,{expired:A}=j.query,U="6LdGVoghAAAAAOf5IY-nbclyTfRqlJC7ludm2Z4y",P=async e=>{h(null),n(!1),a(!0);try{x(b+1);let t=await g.mk.post("auth/check",e);n(!0);let r=t.data.data?.token,i=t.data.data?.refresh_token;C.login({token:r,refreshToken:i}),x(0)}catch(e){h(e)}finally{a(!1)}},z=(t="",(e=p)?t=e.isAxiosError?u()(e,"response.data.result.message")||"":e.message:t);return(0,d.useEffect)(()=>{(async()=>{let e=C.getToken();if("true"===A||"1"===A){e&&C.logout(),j.replace("/sy-auth",void 0,{shallow:!0});return}if(e){k(!0);try{let t=await g.mk.post("auth/validate",{token:e});t.data.data?.valid||C.logout()}catch(e){C.logout()}finally{k(!1)}}})()},[C,j,A]),(0,d.useEffect)(()=>(r&&C.token&&setTimeout(()=>window.location.assign("/"),1e3),()=>(0,y.lQ)()),[C.token,r,j]),(0,o.jsx)(T,{children:(0,o.jsx)("div",{className:"auth-card",children:(0,o.jsx)(s.Zp,{title:C.token?(0,o.jsx)("span",{style:{color:"green"},children:"✓ Signed In"}):"Sign In",bordered:!1,style:{width:350},children:(0,o.jsxs)(s.$x,{direction:"vertical",size:"large",style:{width:"100%"},children:[("true"===A||"1"===A)&&(0,o.jsx)(s.Fc,{message:L("auth-se
1ssion_expired-message")||"Your session has expired. Please sign in again.",type:"warning",showIcon:!0}),p&&(0,o.jsx)(s.Fc,{message:L(`error-${l()(z)}-label`),type:"error"}),r&&(0,o.jsx)(s.Fc,{message:(0,o.jsxs)(s.$x,{children:[(0,o.jsx)("span",{children:"Success"}),(0,o.jsx)(N(),{href:"/",children:"To home →"})]}),type:"success"}),!C.token&&(0,o.jsxs)(s.lV,{name:"basic",labelCol:{span:24},wrapperCol:{span:24},onFinish:e=>P(e),autoComplete:"off",disabled:i||!!C.token,layout:"vertical",children:[(0,o.jsx)(s.lV.Item,{label:"Username",name:"username",rules:[{required:!0,message:"Please input your username!"}],children:(0,o.jsx)(s.pd,{ref:S})}),(0,o.jsx)(s.lV.Item,{label:"Password",name:"password",rules:[{required:!0,message:"Please input your password!"}],children:(0,o.jsx)(s.pd.Password,{})}),(0,o.jsx)(s.lV.Item,{wrapperCol:{offset:0,span:24},children:(0,o.jsx)(c.$n,{type:"primary",htmlType:"submit",loading:i,size:"large",style:{width:"100%"},disabled:O&&!w,children:"Submit"})}),O&&!w&&U&&(0,o.jsx)(I,{ref:E,size:"normal",sitekey:U,onChange:e=>{e&&(setTimeout(()=>_(!0),1e3),E.current?.reset?.())}})]}),C.token&&!R&&(0,o.jsx)(c.$n,{type:"primary",size:"large",style:{width:"100%",marginTop:-24},onClick:()=>C.logout(),children:"Sign out"}),R&&(0,o.jsx)(s.Fc,{message:"Validating session...",type:"info",showIcon:!0})]})})})})};var U=!0},43009:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sy-auth",function(){return r(29612)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=43009)),_N_E=e.O()}]);

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.