PageSourceSearch

https://infosaudi.ai/build/assets/RoleSelection-DBZUu8co.js

js infosaudi.ai collected 2026-10-05 13:33:36 UTC 5,105 bytes, 1 lines download raw bytes

1import{j as e,$ as H,Y as I,m as J}from"./app-DBcZI1UJ.js";import{F as K}from"./FrontLayout-Dc504okw.js";import{f as O}from"./priceFormatter-D1yVyt2s.js";import"./useTranslation-tlDg_cva.js";import"./RiyalIcon-DGJyUtdp.js";function se({auth:Q,packages:n=[]}){var o,l,m,c,x,d,p,y,h,u,g,f,j,N,b,v,w,k,A,_,L,P,C,R,$,B,F,S,Y,D,E,G,M,T,W,q;const i=r=>{J.visit(`/new-register?role=${r}`)},s=n.reduce((r,t)=>{const a=t.user_type;return a&&(r[a]||(r[a]=[]),r[a].push(t)),r},{});console.log("Packages from DB:",n),console.log("Grouped by user_type:",s);const z=[{key:((l=(o=s.owner)==null?void 0:o[0])==null?void 0:l.user_type)||"owner",name:((c=(m=s.owner)==null?void 0:m[0])==null?void 0:c.name)||"مالك عقار",description:((d=(x=s.owner)==null?void 0:x[0])==null?void 0:d.description)||"نشر وإدارة إعلانات عقاراتك",icon:"🏢",features:Array.isArray((y=(p=s.owner)==null?void 0:p[0])==null?void 0:y.features)&&((u=(h=s.owner)==null?void 0:h[0])==null?void 0:u.features.length)>0?(f=(g=s.owner)==null?void 0:g[0])==null?void 0:f.features:["نشر إعلانات العقارات","إدارة الإعلانات","تلقي الاستفسارات","إدارة الحجوزات"]},{key:((N=(j=s.agent)==null?void 0:j[0])==null?void 0:N.user_type)||"agent",name:((v=(b=s.agent)==null?void 0:b[0])==null?void 0:v.name)||"وسيط عقاري",description:((k=(w=s.agent)==null?void 0:w[0])==null?void 0:k.description)||"إدارة عدة عقارات وعملاء",icon:"👔",features:Array.isArray((_=(A=s.agent)==null?void 0:A[0])==null?void 0:_.features)&&((P=(L=s.agent)==null?void 0:L[0])==null?void 0:P.features.length)>0?(R=(C=s.agent)==null?void 0:C[0])==null?void 0:R.features:["إدارة عدة عقارات","أدوات البحث المتقدمة","إدارة العملاء","تقارير الأداء"]},{key:((B=($=s.company)==null?void 0:$[0])==null?void 0:B.user_type)||"company",name:((S=(F=s.company)==null?void 0:F[0])==null?void 0:S.name)||"شركة عقارية",description:((D=(Y=s.company)==null?void 0:Y[0])==null?void 0:D.description)||"إدارة فرق العمل والعقارات",icon:"🏗️",features:Array.isArray((G=(E=s.company)==null?void 0:E[0])==null?void 0:G.features)&&((T=(M=s.company)==null?void 0:M[0])==null?void 0:T.features.length)>0?(q=(W=s.company)==null?void 0:W[0])==null?void 0:q.features:["إدارة فرق العمل","عدد غير محدود من الإعلانات","أدوات تحليل متقدمة","دعم فني مخصص"]}];return e.jsxs(K,{children:[e.jsx(H,{title:"اختر نوع الحساب"}),e.jsx("div",{className:"bg-primary-500 text-white py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-3",children:"اختر نوع حسابك"}),e.jsx("p",{className:"text-lg text-primary-100 max-w-2xl mx-auto",children:"حدد النوع المناسب لك وابدأ رحلتك في عالم العقارات"})]})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:z.map(r=>e.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition-all duration-300 hover:border-primary-300 cursor-pointer",onClick:()=>i(r.key),children:[e.jsxs("div",{className:"bg-primary-500 text-white p-6 text-center",children:[e.jsx("div",{className:"text-5xl mb-3",children:r.icon}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:r.name}),e.jsx("p",{className:"text-sm text-primary-100",children:r.description})]}),e.jsxs("div",{className:"p-5",children:[e.jsx("ul",{className:"space-y-2.5 mb-5",children:Array.isArray(r.features)&&r.features.length>0?r.features.map((t,a)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx("svg",{className:"w-4 h-4 text-success-500 ml-2 flex-shrink-0 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),e.jsx("span",{className:"text-sm text-gray-700",children:t})]},a)):null}),s[r.key]&&s[r.key].length>0&&e.jsxs("div",{className:"border-t border-gray-100 pt-4 mb-4",children:[e.jsx("h4",{className:"text-xs font-semibold mb-2 text-gray-700",children:"الباقات المتاحة:"}
1),e.jsx("div",{className:"space-y-1.5",children:s[r.key].slice(0,2).map(t=>e.jsxs("div",{className:"text-xs text-gray-600",children:[t.name,":"," ",O(t.price),"/شهر"]},t.id))})]}),e.jsx("button",{onClick:t=>{t.stopPropagation(),i(r.key)},className:"w-full bg-primary-500 hover:bg-primary-600 text-white py-2.5 rounded-md font-medium transition text-sm",children:"اختر هذا النوع"})]})]},r.key))}),e.jsx("div",{className:"text-center mt-10",children:e.jsxs("p",{className:"text-gray-600 text-sm",children:["لديك حساب بالفعل؟"," ",e.jsx(I,{href:"/login",className:"text-primary-500 hover:text-primary-600 font-semibold",children:"سجل دخولك"})]})})]})]})}export{se as default};

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.