PageSourceSearch

https://qatta.sa/_next/static/chunks/app/(merchant)/merchant/register/page-c1fb9949c9a75f05.js

js qatta.sa collected 2026-10-04 19:31:45 UTC 21,929 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5452],{21665:function(e,t,s){Promise.resolve().then(s.bind(s,78743))},29410:function(e,t,s){"use strict";s.d(t,{Z:function(){return o}});var r=s(60635);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim()};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,r.forwardRef)((e,t)=>{let{color:s="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:u,...m}=e;return(0,r.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:s,strokeWidth:o?24*Number(l)/Number(a):l,className:n("lucide",c),...m},[...u.map(e=>{let[t,s]=e;return(0,r.createElement)(t,s)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let s=(0,r.forwardRef)((s,i)=>{let{className:o,...c}=s;return(0,r.createElement)(l,{ref:i,iconNode:t,className:n("lucide-".concat(a(e)),o),...c})});return s.displayName="".concat(e),s}},48731:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(29410).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},86979:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(29410).Z)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},98113:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(29410).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},90979:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(29410).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},35549:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(29410).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},75121:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(29410).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},62919:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});let r=(0,s(29410).Z)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},39389:function(e,t,s){"use strict";s.d(t,{default:function(){return a.a}});var r=s(73649),a=s.n(r)},55589:function(e,t,s){"use strict";s.d(t,{default:function(){return a.a}});var r=s(66867),a=s.n(r)},27473:function(e,t,s){"use strict";var r=s(38321);s.o(r,"useParams")&&s.d(t,{useParams:function(){return r.useParams}}),s.o(r,"usePathname")&&s.d(t,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(t,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(t,{useSearchParams:function(){return r.useSearchParams}})},73649:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return o},getImageProps:function(){return l}});let r=s(98422),a=s(35034),n=s(30604),i=r._(s(69278));function l(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let o=n.Image},78743:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return N}});var r=s(72835),a=s(60635),n=s(27473),i=s(55589),l=s(39389),o=s(60726);let c=(0,s(29410).Z)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
1],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var d=s(86979),u=s(62919),m=s(35549),h=s(48731),p=s(75121),x=s(98113),b=s(90979);let y={"Fashion & Apparel":["Men's Clothing","Women's Clothing","Kids' Clothing","Accessories & Bags"],Electronics:["Smartphones & Accessories","Computers & Tablets","TVs & Audio","Gaming"],"Home & Furniture":["Furniture","Home D\xe9cor","Kitchen & Dining","Bedding & Bath"],"Health & Beauty":["Skincare","Makeup & Cosmetics","Vitamins & Supplements","Perfumes"],"Sports & Outdoors":["Fitness Equipment","Outdoor Gear","Sports Apparel","Cycling"],"Food & Beverages":["Restaurants","Bakeries & Sweets","Grocery","Specialty Foods"],Automotive:["Auto Parts","Car Accessories","Automotive Services"],"Jewelry & Watches":["Jewelry","Watches","Gold & Silver"],"Books & Stationery":["Books","Office Supplies","Art & Craft"],"Toys & Games":["Toys","Board Games","Video Games"]},g=["Below SAR 2 million","SAR 2M – 10M","SAR 10M – 50M","Above SAR 50 million"],f="qattapay_merchant_draft",j="qattapay_merchant_token",w={name:"",nameAr:"",email:"",password:"",confirmPassword:"",businessType:"",nationalNumber:"",businessCategory:"",businessSubcategory:"",estimatedSales:"",phone:"",websiteUrl:""},v=[{id:1,label:"Account",icon:(0,r.jsx)(c,{className:"h-4 w-4"})},{id:2,label:"Business",icon:(0,r.jsx)(d.Z,{className:"h-4 w-4"})},{id:3,label:"Contact",icon:(0,r.jsx)(u.Z,{className:"h-4 w-4"})}];function N(){var e;let t=(0,n.useRouter)(),[s,i]=(0,a.useState)(1),[x,b]=(0,a.useState)(w),[N,M]=(0,a.useState)({}),[T,B]=(0,a.useState)(""),[R,E]=(0,a.useState)(!1),[F,O]=(0,a.useState)(!1),[U,X]=(0,a.useState)("");function _(e,t){let{password:s,confirmPassword:r,...a}=e;localStorage.setItem(f,JSON.stringify({step:t,form:a}))}function I(e){let t={...x,...e};b(t),_(t,s)}function D(e){M(t=>{let s={...t};return delete s[e],s})}function z(e){if(e instanceof o.MS&&e.fieldErrors.length>0){let t={};for(let s of e.fieldErrors)t[s.field]=s.message;M(t)}else B(e.message)}async function L(e){e.preventDefault();let t=function(){let e={};return x.name.trim()||(e.name="Store name is required"),x.nameAr.trim()||(e.nameAr="Arabic name is required"),x.email.trim()?/\S+@\S+\.\S+/.test(x.email)||(e.email="Enter a valid email"):e.email="Email is required",x.password.length<8&&(e.password="Password must be at least 8 characters"),x.password!==x.confirmPassword&&(e.confirmPassword="Passwords do not match"),e}();if(Object.keys(t).length){M(t);return}M({}),E(!0),B("");try{let e=(await o.hi.merchants.register({name:x.name,nameAr:x.nameAr,email:x.email,password:x.password})).token;localStorage.setItem(j,e),X(e),i(2),_(x,2),window.scrollTo(0,0)}catch(e){z(e)}finally{E(!1)}}async function G(e){e.preventDefault();let t=function(){let e={};return x.businessType||(e.businessType="Please select a business type"),x.nationalNumber.trim()||(e.nationalNumber="National number is required"),x.businessCategory||(e.businessCategory="Please select a category"),x.businessSubcategory||(e.businessSubcategory="Please select a subcategory"),x.estimatedSales||(e.estimatedSales="Please select estimated sales"),e}();if(Object.keys(t).length){M(t);return}M({}),E(!0),B("");try{await o.hi.merchants.updateProfile(U,{businessType:x.businessType,nationalNumber:x.nationalNumber,businessCategory:x.businessCategory,businessSubcategory:x.businessSubcategory,estimatedSales:x.estimatedSales}),i(3),_(x,3),window.scrollTo(0,0)}catch(e){z(e)}finally{E(!1)}}async function W(e){e.preventDefault();let t=function(){let e={};/^\+9665\d{8}$/.test(x.phone)||(e.phone="Must be a valid Saudi number (+9665XXXXXXXX)");try{new URL(x.websiteUrl)}catch(t){e.websiteUrl="Enter a valid URL (https://...)"}return e}();if(Object.keys(t).length){M(t);return}M({}),E(!0),B("");try{await o.hi.merchants.updateProfile(U,{phone:x.phone,websiteUrl:x.websiteUrl}),localStorage.removeItem(f),O(!0)}catch(e){z(e)}finally{E(!1)}}return(0,a.useEffect)(()=>{try{let e=localStorage.getItem(f);if(e){let t=JSON.parse(e);b(t.form),i(t.step)}let t=localStorage.getItem(j);t&&X(t)}catch(e){}},[]),F?(0,r.jsx)("div",{className:"min-h-screen bg-[#F5F4F8] flex items-center justify-center px-4",children:(0,r.jsxs)("div",{className:"max-w-md w-full rounded-2xl bg-white border border-gray-100 shadow-sm p-10 text-center",children:[(0,r.jsx)("div",{className:"mx-auto mb-5 flex h-16 w-16 items-center justify-center rounded-2xl bg-amber-50",children:(0,r.jsx)(m.Z,{className:"h-9 w-9 text-amber-500"})}),(0,r.jsx)("h1",{className:"text-xl font-bold text-gray-900 mb-2",children:"Application Submitted!"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-2",children:"Thank y
1ou for registering with QattaPay. Your application is now under review by our team."}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mb-8",children:"You'll receive a confirmation once your account is approved — typically within 1–2 business days."}),(0,r.jsxs)("div",{className:"rounded-xl bg-amber-50 border border-amber-100 px-4 py-3 mb-6 text-left",children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-amber-800 mb-1",children:"What happens next?"}),(0,r.jsxs)("ul",{className:"space-y-1 text-xs text-amber-700 list-disc list-inside",children:[(0,r.jsx)("li",{children:"Our team reviews your business information"}),(0,r.jsx)("li",{children:"You will be notified via email upon approval"}),(0,r.jsx)("li",{children:"Once approved, sign in to access your dashboard"})]})]}),(0,r.jsx)("button",{onClick:()=>{localStorage.removeItem(j),localStorage.removeItem(f),t.push("/merchant/dashboard")},className:"block w-full rounded-xl bg-primary-600 py-3 text-sm font-semibold text-white hover:bg-primary-700 transition-colors shadow-sm text-center",children:"Back to Sign In"})]})}):(0,r.jsxs)("div",{className:"min-h-screen bg-[#F5F4F8] flex",children:[(0,r.jsxs)("div",{className:"hidden lg:flex lg:w-[36%] bg-primary-950 flex-col justify-between p-12 text-white shrink-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(l.default,{src:"/brand/qatta-pay-icon.png",alt:"",width:36,height:36,className:"shrink-0"}),(0,r.jsx)("span",{className:"text-lg font-bold tracking-tight",children:"QattaPay"})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-primary-400 uppercase tracking-widest mb-6",children:"Registration Steps"}),v.map(e=>{let t=s>e.id,a=s===e.id;return(0,r.jsxs)("div",{className:"flex items-center gap-3 rounded-xl px-4 py-3 transition-all ".concat(a?"bg-primary-800/60":""),children:[(0,r.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 transition-all ".concat(t?"bg-emerald-500 border-emerald-500 text-white":a?"border-primary-400 text-primary-300":"border-primary-700 text-primary-600"),children:t?(0,r.jsx)(m.Z,{className:"h-4 w-4"}):e.icon}),(0,r.jsx)("div",{children:(0,r.jsxs)("p",{className:"text-sm font-semibold ".concat(a?"text-white":t?"text-primary-300":"text-primary-600"),children:["Step ",e.id," — ",e.label]})})]},e.id)})]}),(0,r.jsxs)("p",{className:"text-xs text-primary-400",children:["\xa9 ",new Date().getFullYear()," QattaPay. All rights reserved."]})]}),(0,r.jsx)("div",{className:"flex flex-1 items-center justify-center px-6 py-12 overflow-y-auto",children:(0,r.jsxs)("div",{className:"w-full max-w-lg",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 mb-6 lg:hidden",children:[(0,r.jsx)(l.default,{src:"/brand/qatta-pay-icon.png",alt:"",width:32,height:32}),(0,r.jsx)("span",{className:"font-bold text-gray-900",children:"QattaPay Merchant"})]}),(0,r.jsx)("div",{className:"flex items-center gap-2 mb-6 lg:hidden",children:v.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-1",children:[(0,r.jsx)("div",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-[11px] font-bold ".concat(s>e.id?"bg-emerald-500 text-white":s===e.id?"bg-primary-600 text-white":"bg-gray-200 text-gray-400"),children:s>e.id?"✓":e.id}),(0,r.jsx)("span",{className:"text-xs font-medium ".concat(s===e.id?"text-primary-700":"text-gray-400"),children:e.label}),t<v.length-1&&(0,r.jsx)("div",{className:"flex-1 h-px ".concat(s>e.id?"bg-emerald-400":"bg-gray-200")})]},e.id))}),(0,r.jsxs)("div",{className:"mb-6",children:[s>1&&(0,r.jsxs)("button",{onClick:function(){M({}),B("");let e=s-1;i(e),_(x,e),window.scrollTo(0,0)},className:"flex items-center gap-1.5 text-sm text-gray-400 hover:text-gray-600 mb-3 transition-colors",children:[(0,r.jsx)(h.Z,{className:"h-4 w-4"})," Back"]}),(0,r.jsxs)("p",{className:"text-xs font-semibold text-primary-500 uppercase tracking-widest mb-1",children:["Step ",s," of 3"]}),(0,r.jsxs)("h1",{className:"text-2xl font-bold text-gray-900",children:[1===s&&"Create your account",2===s&&"Tell us about your business",3===s&&"Contact & website"]}),(0,r.jsxs)("p",{className:"mt-1 text-sm text-gray-400",children:[1===s&&"Your login credentials and store name",2===s&&"This helps us verify and set up your merchant profile",3===s&&"How customers and QattaPay can reach you"]})]}),1===s&&(0,r.jsxs)("form",{onSubmit:L,className:"space-y-4",children:[(0,r.jsxs)(S,{children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsx)(q,{label:"Store Name (English)",error:N.name,children:(0,r.jsx)("input",{type:"text",value:x.name,onChange:e=>{I({name:e.target.value}),D("name")},placeholder:"My Store",className:P(!!N.name),required:!0})}),(0,r.jsx)(q,{label:"Store Name (Arabic)",error:N.nameAr,children:(0,r.jsx)("input",{type:"text",value:x.nameAr,onChange:e=>{I({nameAr:e.target.value}),D("nameAr")},placeholder:"متجري",dir:"rtl",className:P(!!N.nameAr),required:!0})})]}),(0,r.jsx)(q,{label:"Email address",error:N.email,children:(0,r.jsx)("input",{type:"email",value:x.email,onChange:e=>{I({email:e.target.value}),D("email")},placeholder:"[email protected]",className:P(!!N.email),autoComplete:"email",required:!0})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsx)(q,{label:"Password",error:N.password,children:(0,r.jsx)("input",{type:"password",value:x.password,onChange:e=>{I({password:e.target.value}),D("password")},placeholder:"Min. 8 characters",className:P(!!N.password),required:!0,minLength:8})}),(0,r.jsx)(q,{label:"Confirm Password",error:N.confirmPassword,children:(0,r.jsx)("input",{type:"password",value:x.confirmPassword,onChange:e=>{I({confirmPassword:e.target.value}),D("confirmPassword")},placeholder:"Re-enter password",className:P(!!N.confirmPassword),required:!0})})]})]}),T&&(0,r.jsx)(C,{message:T}),(0,r.jsx)(k,{label:"Continue to Business Details",loading:R}),(0,r.jsx)(A,{})]}),2===s&&(0,r.jsxs)("form",{onSubmit:G,className:"space-y-4",children:[(0,r.jsxs)(S,{children:[(0,r.jsx)(q,{label:"Business type",error:N.businessType,children:(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3 mt-1",children:["freelancer","registered"].map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>{I({businessType:e}),D("businessType")},className:"flex items-center justify-center gap-2 rounded-xl border-2 py-3 text-sm font-semibold transition-all ".concat(x.businessType===e?"border-primary-600 bg-primary-50 text-primary-700":"border-gray-200 text-gray-500 hover:border-gray-300"),children:["freelancer"===e?(0,r.jsx)(c,{className:"h-4 w-4"}):(0,r.jsx)(d.Z,{className:"h-4 w-4"}),"freelancer"===e?"Freelancer":"Registered Business"]},e))})}),(0,r.jsx)(q,{label:"freelancer"===x.businessType?"National ID Number":"Unified National Number (UNN)",error:N.nationalNumber,children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("span",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-xs font-bold text-gray-400",children:"freelancer"===x.businessType?"ID |":"UNN |"}),(0,r.jsx)("input",{type:"text",value:x.nationalNumber,onChange:e=>{I({nationalNumber:e.target.value}),D("nationalNumber")},placeholder:"123456789",className:"".concat(P(!!N.nationalNumber)," pl-14"),required:!0})]})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsx)(q,{label:"Business category",error:N.businessCategory,children:(0,r.jsxs)("select",{value:x.businessCategory,onChange:e=>{I({businessCategory:e.target.value,businessSubcategory:""}),D("businessCategory"),D("businessSubcategory")},className:Z(!!N.businessCategory),required:!0,children:[(0,r.jsx)("option",{value:"",children:"Select category"}),Object.keys(y).map(e=>(0,r.jsx)("option",{children:e},e))]})}),(0,r.jsx)(q,{label:"Business subcategory",error:N.businessSubcategory,children:(0,r.jsxs)("select",{value:x.businessSubcategory,onChange:e=>{I({businessSubcategory:e.target.value}),D("businessSubcategory")},className:Z(!!N.businessSubcategory),disabled:!x.businessCategory,required:!0,children:[(0,r.jsx)("option",{value:"",children:"Select subcategory"}),(null!==(e=y[x.businessCategory])&&void 0!==e?e:[]).map(e=>(0,r.jsx)("option",{children:e},e))]})})]}),(0,r.jsx)(q,{label:"Estimated total yearly sales",error:N.estimatedSales,children:(0,r.jsxs)("select",{value:x.estimatedSales,onChange:e=>{I({estimatedSales:e.target.value}),D("estimatedSales")},className:Z(!!N.estimatedSales),required:!0,children:[(0,r.jsx)("option",{value:"",children:"Select range"}),g.map(e=>(0,r.jsx)("option",{children:e},e))]})})]}),T&&(0,r.jsx)(C,{message:T}),(0,r.jsx)(k,{label:"Continue to Contact Details",loading:R})]}),3===s&&(0,r.jsxs)("form",{onSubmit:W,className:"space-y-4",children:[(0,r.jsxs)(S,{children:[(0,r.jsxs)(q,{label:"Phone number",error:N.phone,children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(u.Z,{className:"absolute left-3.5 to
1p-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,r.jsx)("span",{className:"absolute left-10 top-1/2 -translate-y-1/2 text-sm text-gray-500 pointer-events-none",children:"+966"}),(0,r.jsx)("input",{type:"tel",value:x.phone.replace(/^\+966/,""),onChange:e=>{let t=e.target.value.replace(/\D/g,"").slice(0,9);I({phone:t?"+966".concat(t):""}),D("phone")},placeholder:"500000000",className:"".concat(P(!!N.phone)," pl-[4.5rem]"),required:!0})]}),!N.phone&&(0,r.jsx)("p",{className:"mt-1 text-xs text-gray-400",children:"Saudi format: +9665XXXXXXXX"})]}),(0,r.jsx)(q,{label:"Website URL",error:N.websiteUrl,children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(p.Z,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,r.jsx)("input",{type:"url",value:x.websiteUrl,onChange:e=>{I({websiteUrl:e.target.value}),D("websiteUrl")},placeholder:"https://mystore.com",className:"".concat(P(!!N.websiteUrl)," pl-10"),required:!0})]})})]}),T&&(0,r.jsx)(C,{message:T}),(0,r.jsx)("button",{type:"submit",disabled:R,className:"w-full rounded-xl bg-primary-600 py-3 text-sm font-semibold text-white shadow-sm hover:bg-primary-700 disabled:opacity-60 transition-colors flex items-center justify-center gap-2",children:R?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white"}),"Saving…"]}):"Submit Application →"}),(0,r.jsx)(A,{})]})]})})]})}function S(e){let{children:t}=e;return(0,r.jsx)("div",{className:"rounded-2xl bg-white border border-gray-100 shadow-sm p-5 space-y-4",children:t})}function k(e){let{label:t,loading:s=!1}=e;return(0,r.jsx)("button",{type:"submit",disabled:s,className:"w-full rounded-xl bg-primary-600 py-3 text-sm font-semibold text-white shadow-sm hover:bg-primary-700 disabled:opacity-60 transition-colors flex items-center justify-center gap-2",children:s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white"}),"Saving…"]}):(0,r.jsxs)(r.Fragment,{children:[t," ",(0,r.jsx)(x.Z,{className:"h-4 w-4"})]})})}function C(e){let{message:t}=e;return(0,r.jsxs)("div",{className:"flex items-start gap-2 rounded-xl bg-red-50 border border-red-200 px-4 py-3",children:[(0,r.jsx)(b.Z,{className:"h-4 w-4 text-red-500 mt-0.5 shrink-0"}),(0,r.jsx)("p",{className:"text-sm text-red-700",children:t})]})}function A(){return(0,r.jsxs)("p",{className:"text-center text-sm text-gray-400",children:["Already have an account?"," ",(0,r.jsx)(i.default,{href:"/merchant/dashboard",className:"font-semibold text-primary-600 hover:underline",children:"Sign in"})]})}function P(e){let t="w-full rounded-xl border px-4 py-2.5 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus:outline-none focus:ring-2 transition";return e?"".concat(t," border-red-300 bg-red-50 focus:border-red-400 focus:ring-red-100"):"".concat(t," border-gray-200 bg-white focus:border-primary-500 focus:ring-primary-100")}function Z(e){let t="w-full rounded-xl border px-4 py-2.5 text-sm text-gray-900 shadow-sm bg-white focus:outline-none focus:ring-2 transition appearance-none";return e?"".concat(t," border-red-300 bg-red-50 focus:border-red-400 focus:ring-red-100"):"".concat(t," border-gray-200 focus:border-primary-500 focus:ring-primary-100")}function q(e){let{label:t,error:s,children:a}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1.5",children:t}),a,s&&(0,r.jsxs)("p",{className:"mt-1.5 flex items-center gap-1 text-xs text-red-600",children:[(0,r.jsx)(b.Z,{className:"h-3 w-3 shrink-0"})," ",s]})]})}}},function(e){e.O(0,[6867,604,726,1582,7400,352,1744],function(){return e(e.s=21665)}),_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.