PageSourceSearch

https://raw-and-paw-co.vercel.app/_next/static/chunks/03_ca~v._nzlb.js?dpl=dpl_7716aDE8LPKH7Y69MRCvtRZY5v3Y

js raw-and-paw-co.vercel.app collected 2026-10-03 07:35:15 UTC 7,798 bytes, 7 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74586,e=>{"use strict";var t=e.i(47167),a=e.i(43476),s=e.i(71645),r=e.i(75647),l=e.i(56231),i=e.i(18566);e.s(["WholesaleLoginPage",0,()=>{let[e,n]=(0,s.useState)(""),[o,c]=(0,s.useState)(""),[d,x]=(0,s.useState)(!1),[p,u]=(0,s.useState)(""),[h,m]=(0,s.useState)(!1),{user:b,isWholesale:f,isInitialized:w,login:g}=(0,r.useUser)(),{openWholesaleApp:v}=(0,l.useModal)(),j=(0,i.useRouter)();(0,i.usePathname)();let k="/wholesale/portal";(0,s.useEffect)(()=>{if(w&&b&&f){let e=k.toLowerCase().startsWith("/admin"),t=b.email?.toLowerCase().trim()==="[email protected]"||b.email?.toLowerCase().trim()==="[email protected]";e&&!t?j.replace("/wholesale/portal"):j.replace(k)}},[w,b,f,k]);let y=async t=>{t.preventDefault(),x(!0),u("");try{let t=await g(e,o);t.success?j.replace("/wholesale/portal"):(u(t.message||"Invalid credentials or account not yet approved."),x(!1))}catch(e){u("Connection failed. Please check your credentials."),x(!1)}},N=async a=>{if(a.preventDefault(),!e)return void u("Please enter your email address to reset your password.");x(!0),u("");let s=`
2            mutation customerRecover($email: String!) {
3                customerRecover(email: $email) {
4                    customerUserErrors { message }
5                }
6            }
7        `;try{let a=(t.default.env.NEXT_PUBLIC_SHOPIFY_DOMAIN||"rawandpawco.myshopify.com").replace("https://",""),r=await fetch(`https://${a}/api/2026-01/graphql.json`,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":"ff8801a2dbd4300ccf875b0694e1f6ad"},body:JSON.stringify({query:s,variables:{email:e}})}),l=await r.json();if(l.errors)throw Error(l.errors[0].message);let i=l.data?.customerRecover?.customerUserErrors;i&&i.length>0?u(i[0].message):(u("If an account exists, a reset link has been sent to your email."),m(!1))}catch(e){u("System error. Please try again later.")}finally{x(!1)}};return(0,a.jsxs)("div",{className:"min-h-screen bg-[#0a0a0a] pt-32 pb-20 px-4 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full h-full overflow-hidden pointer-events-none opacity-10",children:(0,a.jsx)("div",{className:"absolute top-[-10%] left-[-10%] w-[50vw] h-[50vw] bg-[#00ADC7] rounded-full blur-[150px]"})}),(0,a.jsxs)("div",{className:"max-w-4xl mx-auto relative z-10",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("span",{className:"inline-block py-1 px-3 rounded-full bg-[#00ADC7]/10 border border-[#00ADC7]/20 text-[#00ADC7] text-[10px] font-black uppercase tracking-[0.3em] mb-4",children:"Professional Dealer Network"}),(0,a.jsxs)("h1",{className:"text-4xl md:text-5xl font-serif font-black text-white mb-4",children:["Dealer ",(0,a.jsx)("span",{className:"text-[#00ADC7]",children:"Portal"})]})]}),(0,a.jsxs)("div",{className:"max-w-xl mx-auto",children:[(0,a.jsxs)("div",{className:"flex bg-black/40 p-1.5 rounded-2xl border border-white/10 mb-10",children:[(0,a.jsx)("div",{className:"flex-1 py-4 rounded-xl font-black text-xs uppercase tracking-widest text-center bg-white text-black shadow-lg",children:"Sign In"}),(0,a.jsx)("button",{onClick:v,className:"flex-1 py-4 rounded-xl font-black text-xs uppercase tracking-widest text-gray-400 hover:text-[#00ADC7] transition-all",children:"Apply"})]}),(0,a.jsxs)("div",{className:"glass-menu p-10 rounded-[2.5rem] border border-white/5 shadow-2xl",children:[(0,a.jsx)("h3",{className:"text-2xl font-black font-serif mb-6 uppercase text-white",children:"Dealer Sign In"}),p&&(0,a.jsx)("div",{className:"mb-6 p-4 bg-red-500/10 text-red-400 text-xs font-bold rounded-xl border border-red-500/20",children:p}),h?(0,a.jsxs)("form",{onSubmit:N,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("label",{className:"text-[10px] font-black uppercase tracking-widest text-gray-400 ml-2",children:"Email"}),(0,a.jsx)("input",{type:"email",placeholder:"[email protected]",className:"w-full p-4 bg-white/5 border border-white/10 rounded-2xl text-white focus:border-[#00ADC7] outline-none transition-all",value:e,onCh
7ange:e=>n(e.target.value),required:!0})]}),(0,a.jsx)("div",{className:"flex justify-end px-2",children:(0,a.jsx)("button",{type:"button",onClick:()=>{u(""),m(!1)},className:"text-[10px] font-black uppercase tracking-tighter text-[#00ADC7] hover:text-white transition-colors",children:"Back to Login"})}),(0,a.jsx)("button",{disabled:d,className:"w-full bg-[#00ADC7] text-black py-5 rounded-2xl font-black text-xs uppercase tracking-[0.2em] hover:bg-white transition-all shadow-xl active:scale-95 disabled:opacity-50 mt-4",children:d?"Sending...":"Send Reset Link"})]}):(0,a.jsxs)("form",{onSubmit:y,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("label",{className:"text-[10px] font-black uppercase tracking-widest text-gray-400 ml-2",children:"Email"}),(0,a.jsx)("input",{type:"email",placeholder:"[email protected]",className:"w-full p-4 bg-white/5 border border-white/10 rounded-2xl text-white focus:border-[#00ADC7] outline-none transition-all",value:e,onChange:e=>n(e.target.value),required:!0})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("label",{className:"text-[10px] font-black uppercase tracking-widest text-gray-400 ml-2",children:"Password"}),(0,a.jsx)("input",{type:"password",placeholder:"••••••••",className:"w-full p-4 bg-white/5 border border-white/10 rounded-2xl text-white focus:border-[#00ADC7] outline-none transition-all",value:o,onChange:e=>c(e.target.value),required:!0})]}),(0,a.jsx)("div",{className:"flex justify-end px-2",children:(0,a.jsx)("button",{type:"button",onClick:()=>{u(""),m(!0)},className:"text-[10px] font-black uppercase tracking-tighter text-[#00ADC7] hover:text-white transition-colors",children:"Forgot Password?"})}),(0,a.jsx)("button",{disabled:d,className:"w-full bg-[#00ADC7] text-black py-5 rounded-2xl font-black text-xs uppercase tracking-[0.2em] hover:bg-white transition-all shadow-xl active:scale-95 disabled:opacity-50 mt-4",children:d?"Authenticating...":"Enter Dealer Portal"})]}),(0,a.jsxs)("div",{className:"mt-8 pt-6 border-t border-white/5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-green-400/80",children:[(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),(0,a.jsx)("span",{className:"text-[9px] font-black uppercase tracking-wider",children:"SSL Encrypted"})]}),(0,a.jsx)("span",{className:"text-white/10",children:"|"}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-green-400/80",children:[(0,a.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),(0,a.jsx)("span",{className:"text-[9px] font-black uppercase tracking-wider",children:"PCI Compliant"})]})]}),(0,a.jsx)("p",{className:"text-[9px] text-center text-gray-600 uppercase font-black tracking-widest",children:"Powered by Shopify • Raw & Paw Naturals LLC"})]})]})]})]})]})}])},49026,e=>{"use strict";var t=e.i(43476),a=e.i(74586);e.s(["default",0,function(){return(0,t.jsx)(a.WholesaleLoginPage,{})}])}]);

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.