1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4891,880],{45151:function(e,t,a){a.r(t),a.d(t,{default:function(){return i}});var r=a(57437),s=a(2265),l=a(16463),n=a(87138),o=a(51359);function i(e){let{onClose:t,onSuccess:a,message:i}=e,c=(0,l.useRouter)(),[x,d]=(0,s.useState)(""),[p,u]=(0,s.useState)(""),[b,m]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),[g,v]=(0,s.useState)(null),j=async e=>{e.preventDefault(),v(null),f(!0);try{let e=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:x.trim(),password:p})}),s=await e.json();if(!e.ok){var r;v(null!==(r=s.error)&&void 0!==r?r:"Login failed. Please try again.");return}c.refresh(),a?a():t()}catch(e){v("Network error. Please check your connection and try again.")}finally{f(!1)}};return(0,r.jsx)("div",{className:"tw-modal fixed inset-0 z-[88888] flex items-center justify-center p-2 bg-black/50",onClick:e=>{e.stopPropagation(),e.target===e.currentTarget&&t()},children:(0,r.jsxs)("div",{className:"tw-modal-box bg-white w-full max-w-[500px] max-h-[calc(100vh-2rem)] flex flex-col border border-[rgba(0,0,0,0.6)] rounded-lg relative",children:[(0,r.jsx)("button",{onClick:t,className:"absolute right-[-14px] max-[576px]:right-[-7px] top-[-14px] z-[9] p-0 bg-white w-[30px] h-[30px] rounded-full shadow-[0_0_5px_rgba(0,0,0,0.3)] flex items-center justify-center text-[22px] cursor-pointer","aria-label":"Close",children:(0,r.jsx)(o.Icon,{icon:"line-md:close"})}),(0,r.jsx)("div",{className:"flex justify-between items-center p-4 border-b border-b-[rgba(0,0,0,0.1)] shrink-0",children:(0,r.jsx)("div",{className:"favlogo",children:(0,r.jsx)("img",{className:"block h-[20px]",src:"/assets/images/favlogo.png",alt:"Acid Nation"})})}),(0,r.jsxs)("div",{className:"overflow-hidden overflow-y-auto max-h-[calc(90vh-48px)] login-inner",children:[(0,r.jsx)("div",{className:"mx-[-40px] welcome-account",children:(0,r.jsx)("img",{src:"/assets/images/welcome-account.png",alt:""})}),(0,r.jsxs)("div",{className:"text-center pt-[20px] pb-[15px] px-[25px] max-md:px-[30px] create-account-block",children:[(0,r.jsx)("h4",{children:"Join ACID NATION"}),i&&(0,r.jsx)("p",{className:"mb-2 text-sm text-[#555]",children:i}),(0,r.jsx)("p",{className:"mb-4",children:"Free for artists, labels, creators, and fans. Create your account to save tracks, build playlists, or load your music."}),(0,r.jsx)(n.default,{href:"/registration/fan",className:"w-full block text-center text-white bg-[#0149ff] no-underline rounded-[6px] p-[10px] uppercase relative z-[1] transition-all duration-300 text-[10px] tracking-[1.25px] hover:shadow-[0_0_5px_0_rgba(0,0,0,0.7)] more-list create-btn",children:"Create an account"}),(0,r.jsx)("div",{className:"text-center mt-[20px] relative before:content-[''] before:absolute before:top-[12px] before:left-0 before:w-full before:border-b before:border-[#8f8f8f] already-account-block",children:(0,r.jsx)("span",{className:"bg-white relative py-0 px-[7%]",children:"Already have an account? Sign in"})})]}),(0,r.jsx)("div",{className:"mb-[37px] woocommerce",children:(0,r.jsx)("div",{className:"login-vcenter",children:(0,r.jsx)("div",{className:"w-full px-[12px] mylogin",children:(0,r.jsxs)("form",{onSubmit:j,noValidate:!0,children:[g&&(0,r.jsx)("div",{role:"alert",className:"mb-[12px] px-[12px] py-[10px] rounded-[6px] bg-red-50 border border-red-300 text-red-700 text-[13px]",children:g}),(0,r.jsxs)("div",{className:"border-0 p-[13px] album-info-block",children:[(0,r.jsxs)("div",{className:"form-group mb-[12px]",children:[(0,r.jsx)("label",{className:"block text-[14px] text-[#3c434a] mb-[12px] font-semibold",children:"Username or email address*"}),(0,r.jsx)("input",{type:"text",name:"username",required:!0,value:x,onChange:e=>d(e.target.value),className:"w-full text-[#3c434a] px-[9px] py-[8px] outline-none border border-[rgb(217_221_225)] text-[12px] bg-white rounded-[4px] form-control text-[#000]"})]}),(0,r.jsxs)("div",{className:"form-group mb-[12px]",children:[(0,r.jsx)("label",{className:"block text-[14px] text-[#3c434a] mb-[12px] font-semibold",htmlFor:"popup-login-password",children:"Password*"}),(0,r.jsxs)("span",{className:"flex flex-col justify-center relative password-input",children:[(0,r.jsx)("input",{className:"w-full text-[#3c434a] px-[9px] py-[8px] pr-[2.5rem] outline-none border border-[rgb(217,221,225)] text-[12px] bg-white rounded-[4px]",type:b?"text":"password",name:"password",id:"popup-login-password",required:!0,value:p,onChange:e=>u(e.target.value)}),(0,r.jsx)("button",{type:"button",className:"absolute right-[0.7em] top-1/2 -translate-y-1/2 bg-transparent border-0 p-0 cursor-pointer text-[20px]","aria-label":"Show password",onClick:()=>m(e=>!e),children:(0,r.jsx)(o.Icon,{icon:b?"vaadin:eye":"vaadin:eye-slash"})})]})]})]}),(0,r.jsx)("div",{className:"text-center submit-block",children:(0,r.jsx)("button",{className:"border-0 px-[44px] py-[9px] inline-flex h-[40px] rounded-[4px] bg-[#0149ff] items-center justify-center text-white text-[10px] tracking-[1.25px] cursor-pointer uppercase transition-all duration-300 hover:shadow-[0_0_5px_0_rgba(0,0,0,0.7)] disabled:opacity-60 disabled:cursor-default",type:"submit",disabled:h,children:h?"Logging inâ¦":"Log in"})})]})})})})]})]})})}}}]);
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.