PageSourceSearch

https://drahmedfarhat.com/front/_next/static/chunks/745-e1db79e4730d084f.js

js drahmedfarhat.com collected 2026-09-24 14:44:31 UTC 10,323 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[745],{10745:(e,a,s)=>{s.d(a,{s:()=>h});var l=s(95155),i=s(12115),n=s(18955),t=s(70667),r=s(39867),o=s(12108),d=s(24033),c=s(15239),m=s(36386),p=s(346);let x={android:{key:"android_link",showKey:"show_android_link",logo:"/front/app-logos/Google_Play.png",name:"Google Play"},apple:{key:"apple_link",showKey:"show_apple_link",logo:"/front/app-logos/App_Store.png",name:"App Store"},huawei:{key:"huawei_link",showKey:"show_huawei_link",logo:"/front/app-logos/Huawei_AppGallery.png",name:"AppGallery"}};function h(e){let{type:a,watchUrl:s}=e,h=(0,n.c)("dashboard.learning"),{webSettings:f}=(0,m.A)(),[w,y]=(0,i.useState)(!1),u=(()=>{let e=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"apple":"android"})(),g=(()=>{if(!(null==f?void 0:f.app_links))return[];let e=[];return Object.keys(x).forEach(a=>{let s=x[a],l=f.app_links[s.key],i=f.app_links[s.showKey];l&&i&&e.push({key:a,url:l,logo:s.logo,name:s.name})}),e})(),k=g.find(e=>e.key===u)||g[0],b=g.filter(e=>e.key!==(null==k?void 0:k.key));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("style",{children:"\n                @keyframes float-device {\n                    0%, 100% { transform: translateY(0px); }\n                    50% { transform: translateY(-12px); }\n                }\n                .animate-float-device {\n                    animation: float-device 6s ease-in-out infinite;\n                }\n                @keyframes float-shadow {\n                    0%, 100% { transform: scale(1); opacity: 0.4; }\n                    50% { transform: scale(0.85); opacity: 0.15; }\n                }\n                .animate-float-shadow {\n                    animation: float-shadow 6s ease-in-out infinite;\n                }\n            "}),(0,l.jsx)("div",{className:"flex flex-col items-center justify-center min-h-[50vh] p-8 text-center rounded-3xl",children:"desktop"===a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative w-72 h-64 mb-8 flex items-center justify-center",children:[(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none opacity-60",children:(0,l.jsxs)("svg",{className:"w-[220%] h-[220%] text-dynamic-primary-500 animate-[spin_40s_linear_infinite]",viewBox:"0 0 200 200",fill:"none",stroke:"currentColor",children:[(0,l.jsx)("circle",{cx:"100",cy:"100",r:"
160",strokeWidth:"1.5",strokeDasharray:"140 48.5",strokeDashoffset:"45",className:"opacity-80"}),(0,l.jsx)("circle",{cx:"100",cy:"100",r:"80",strokeWidth:"0.75",strokeDasharray:"180 71.3",strokeDashoffset:"0",className:"opacity-40"}),(0,l.jsx)("circle",{cx:"160",cy:"100",r:"2.5",fill:"currentColor",stroke:"none",className:"opacity-70"}),(0,l.jsx)("circle",{cx:"40",cy:"100",r:"1.5",fill:"currentColor",stroke:"none",className:"opacity-50"})]})}),(0,l.jsx)("div",{className:"absolute -bottom-2 w-52 h-6 bg-dynamic-primary-500/20 rounded-[100%] blur-[10px] animate-float-shadow"}),(0,l.jsxs)("div",{className:"relative z-10 w-60 h-40 bg-[#192b3a] rounded-t-[8px] p-1 flex flex-col shadow-[0_20px_40px_rgba(0,0,0,0.4)] animate-float-device",children:[(0,l.jsx)("div",{className:"w-1.5 h-1.5 bg-dynamic-primary-500 rounded-full mx-auto mb-1"}),(0,l.jsxs)("div",{className:"w-full h-full bg-dynamic-primary-500 flex items-center justify-between px-6 relative overflow-hidden",dir:"ltr",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 w-[40%]",children:[(0,l.jsx)("div",{className:"h-[2px] bg-white/70 rounded-full w-full"}),(0,l.jsx)("div",{className:"h-[2px] bg-white/70 rounded-full w-[85%]"}),(0,l.jsx)("div",{className:"h-[2px] bg-white/70 rounded-full w-[60%]"})]}),(0,l.jsx)("div",{className:"w-16 h-14 bg-white flex items-center justify-center shadow-sm shrink-0 animate-[pulse_3s_ease-in-out_infinite]",children:(0,l.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",className:"text-dynamic-primary-500",children:[(0,l.jsx)("path",{d:"M17.5 19C19.9853 19 22 16.9853 22 14.5C22 12.1325 20.1772 10.2036 17.8576 10.0125C17.4475 6.64364 14.5772 4 11 4C7.13401 4 4 7.13401 4 11C4 11.2332 4.01138 11.4636 4.03362 11.691C1.77663 12.1643 0 14.1378 0 16.5C0 19.5376 2.46243 22 5.5 22H17.5V19Z",fill:"currentColor"}),(0,l.jsx)("path",{d:"M12 16L8 12H11V8H13V12H16L12 16Z",fill:"white"})]})})]}),(0,l.jsx)("div",{className:"absolute -bottom-[8px] -left-6 -right-6 h-[8px] bg-[#192b3a] rounded-[4px] flex items-center justify-center gap-[6px] px-8 overflow-hidden",children:[...Array(14)].map((e,a)=>(0,l.jsx)("div",{className:"w-1.5 h-1 bg-dynamic-primary-500/90 rounded-sm mt-0.5"},a))})]})]}),(0,l.jsx)("h2",{className:"text-2xl font-bold text-dynamic-secondary-500 mb-4",children:h("contentNotAvailableOnBrowser")}),(0,l.jsx)("p",{className:"text-muted mb-8 max-w-md mx-auto",children:h("downloadDesktopAppMessage")}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-4 justify-center",children:[(0,l.jsxs)(t.$,{onClick:()=>{if(null==f?void 0:f.app_links)if("mobile"===a){let e=navigator.userAgent||navigator.vendor||window.opera;if(/android/i.test(e))f.app_links.android_link&&window.open(f.app_links.android_link,"_blank");else if(/iPad|iPhone|iPod/.test(e)&&!window.MSStream)f.app_links.apple_link&&window.open(f.app_links.apple_link,"_blank");else{let e=f.app_links.android_link||f.app_links.apple_link;e&&window.open(e,"_blank")}}else"mac"===(0,p.ZI)()?f.app_links.mac_link&&window.open(f.app_links.mac_link,"_blank"):f.app_links.windows_link&&window.open(f.app_links.windows_link,"_blank")},className:"bg-dynamic-primary-500 text-white hover:bg-dynamic-primary-600 gap-2 flex-center",children:[(0,l.jsx)(r.A,{className:"w-4 h-4"}),h("downloadApplication")]}),(0,l.jsx)(t.$,{onClick:()=>{s&&(window.location.href=s)},variant:"outline",className:"border-dynamic-primary-500 text-dynamic-primary-500 hover:bg-dynamic-primary-50",children:h("watchContent")})]})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative w-48 h-64 mb-8 flex items-center justify-center",children:[(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none opacity-60",children:(0,l.jsxs)("svg",{className:"w-[220%] h-[220%] text-dynamic-primary-500 animate-[spin_40s_linear_infinite]",viewBox:"0 0 200 200",fill:"none",stroke:"currentColor",children:[(0,l.jsx)("circle",{cx:"100",cy:"100",r:"
160",strokeWidth:"1.5",strokeDasharray:"140 48.5",strokeDashoffset:"45",className:"opacity-80"}),(0,l.jsx)("circle",{cx:"100",cy:"100",r:"80",strokeWidth:"0.75",strokeDasharray:"180 71.3",strokeDashoffset:"0",className:"opacity-40"}),(0,l.jsx)("circle",{cx:"160",cy:"100",r:"2.5",fill:"currentColor",stroke:"none",className:"opacity-70"}),(0,l.jsx)("circle",{cx:"40",cy:"100",r:"1.5",fill:"currentColor",stroke:"none",className:"opacity-50"})]})}),(0,l.jsx)("div",{className:"absolute -bottom-2 w-32 h-4 bg-dynamic-primary-500/20 rounded-[100%] blur-[8px] animate-float-shadow"}),(0,l.jsxs)("div",{className:"relative z-10 w-32 h-56 bg-[#192b3a] rounded-[1.25rem] p-1 flex flex-col shadow-[0_20px_40px_rgba(0,0,0,0.4)] animate-float-device",children:[(0,l.jsx)("div",{className:"absolute top-1 left-1/2 -translate-x-1/2 w-10 h-[6px] bg-[#192b3a] rounded-b-[4px] z-20"}),(0,l.jsxs)("div",{className:"w-full h-full bg-dynamic-primary-500 rounded-[1rem] flex flex-col items-center justify-center p-4 relative overflow-hidden",dir:"ltr",children:[(0,l.jsx)("div",{className:"w-12 h-10 bg-white flex items-center justify-center shadow-sm mb-6 shrink-0 rounded-[2px] animate-[pulse_3s_ease-in-out_infinite]",children:(0,l.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",className:"text-dynamic-primary-500",children:[(0,l.jsx)("path",{d:"M17.5 19C19.9853 19 22 16.9853 22 14.5C22 12.1325 20.1772 10.2036 17.8576 10.0125C17.4475 6.64364 14.5772 4 11 4C7.13401 4 4 7.13401 4 11C4 11.2332 4.01138 11.4636 4.03362 11.691C1.77663 12.1643 0 14.1378 0 16.5C0 19.5376 2.46243 22 5.5 22H17.5V19Z",fill:"currentColor"}),(0,l.jsx)("path",{d:"M12 16L8 12H11V8H13V12H16L12 16Z",fill:"white"})]})}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 w-full px-1",children:[(0,l.jsx)("div",{className:"h-[2px] bg-white/70 rounded-full w-full"}),(0,l.jsx)("div",{className:"h-[2px] bg-white/70 rounded-full w-[80%] mx-auto"}),(0,l.jsx)("div",{className:"h-[2px] bg-white/70 rounded-full w-full"})]})]})]})]}),(0,l.jsx)("h2",{className:"text-2xl font-bold text-dynamic-secondary-500 mb-4",children:h("contentAvailableOnlyOnMobile")}),(0,l.jsx)("p",{className:"text-gray-600 dark:text-gray-300 mb-8 max-w-md mx-auto",children:h("downloadMobileAppMessage")}),k&&(0,l.jsxs)(t.$,{onClick:()=>window.open(k.url,"_blank"),className:"bg-dynamic-primary-500 text-white hover:bg-dynamic-primary-600 gap-3 flex-center mb-4",children:[(0,l.jsx)(c.default,{src:k.logo,alt:k.name,width:20,height:20,className:"dark:invert"}),h("downloadFrom")," ",k.name]}),b.length>0&&(0,l.jsxs)("div",{className:"w-full max-w-sm",children:[(0,l.jsxs)("button",{onClick:()=>y(!w),className:"flex items-center justify-center gap-2 text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 transition-colors mx-auto",children:[h("otherDownloadOptions"),w?(0,l.jsx)(o.A,{className:"w-4 h-4"}):(0,l.jsx)(d.A,{className:"w-4 h-4"})]}),w&&(0,l.jsx)("div",{className:"mt-4 flex flex-wrap justify-center gap-3",children:b.map(e=>(0,l.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-lg border border-gray-200 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:[(0,l.jsx)(c.default,{src:e.logo,alt:e.name,width:20,height:20,className:"dark:invert"}),(0,l.jsx)("span",{className:"text-sm font-medium text-muted",children:e.name})]},e.key))})]})]})})]})}},36386:(e,a,s)=>{s.d(a,{A:()=>o,V:()=>r});var l=s(53455),i=s(21858);let n={get:async()=>{try{return(await i.A.get("/web-setting")).data}catch(s){var e,a;throw Error((null==s||null==(a=s.response)||null==(e=a.data)?void 0:e.error)||s.message||"Failed to fetch web settings")}}},t=async()=>(await n.get()).data,r=e=>{let{data:a,isLoading:s,error:i}=(0,l.I)({queryKey:["webSettings"],queryFn:()=>t(),staleTime:3e5,initialData:e,retry:1});return{webSettings:a,isWebSettingsLoading:s,webSettingsError:i}},o=r}}]);

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.