(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29477,t=>{"use strict";t.s(["default",()=>c],29477);var e=t.i(43476),i=t.i(73360),a=t.i(61745),l=t.i(40141);function r(t){return(0,l.GenIcon)({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V6H8.5C8.22386 6 8 5.77614 8 5.5V2H3.5ZM9 2.70711L11.2929 5H9V2.70711ZM2 2.5C2 1.67157 2.67157 1 3.5 1H8.5C8.63261 1 8.75979 1.05268 8.85355 1.14645L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5Z",fill:"currentColor"},child:[]}]})(t)}var n=t.i(46932),o=t.i(67696),s=t.i(31278);let c=()=>{let t="ar"===(0,a.useLocale)(),{data:l,isLoading:c,isError:d}=(0,o.useGetPage)("privacy-policy");return(0,e.jsxs)(n.motion.section,{initial:{opacity:0,y:25},animate:{opacity:1,y:0},transition:{duration:.6},className:"w-full h-auto p-5 border border-gray-100 bg-white shadow-sm my-10 rounded-xl",dir:t?"rtl":"ltr",children:[(0,e.jsx)(i.default,{text:(null==l?void 0:l.title)||"...",children:(0,e.jsx)(r,{})}),c&&(0,e.jsxs)("div",{className:"flex items-center justify-center py-10 text-gray-500",children:[(0,e.jsx)(s.Loader2,{className:"animate-spin mr-2"})," جاري تحميل المحتوى..."]}),d&&(0,e.jsx)("div",{className:"text-center text-red-500 py-10",children:"حدث خطأ أثناء تحميل الصفحة."}),!c&&!d&&(0,e.jsx)(n.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3,duration:.6},className:"w-full h-auto p-6 bg-gray-50 my-10 rounded-2xl overflow-y-auto max-h-[70vh] custom-scrollbar",children:(0,e.jsx)("p",{className:"leading-8 text-gray-700 whitespace-pre-line ".concat(t?"text-right":"text-left"),children:(null==l?void 0:l.content)||"لا يوجد محتوى متاح حاليًا."})})]})}}]);