|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/sbaedu/test.sbaedu.com/static/js/ |
Upload File : |
"use strict";(self.webpackChunktechwind=self.webpackChunktechwind||[]).push([[443],{9052:(e,t,s)=>{s.d(t,{Z:()=>o});var a=s(9867),r=s(4436),l=s(5644),i=s(333),n=s(2834);const o=e=>{let{title:t,description:s}=e;const o=(0,r.v9)((e=>e.websiteReducer)),[d,c]=(0,a.useState)();return(0,a.useEffect)((()=>{o&&o.data&&o.data.data&&c(o.data.data)}),[o]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("section",{className:"relative table w-full py-16 lg:py-16 bg-[url('../../assets/images/course/cta.jpg')] bg-no-repeat bg-center bg-cover",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black opacity-75"}),(0,n.jsx)("div",{className:"container relative",children:(0,n.jsxs)("div",{className:"grid grid-cols-1 pb-8 text-center mt-10",children:[(0,n.jsx)("h3",{className:"md:text-4xl text-3xl md:leading-normal leading-normal font-medium text-white",children:t.blog_title}),(0,n.jsx)("h5",{className:"text-white/50 text-lg font-medium",children:s.short_desc})]})}),(0,n.jsx)("div",{className:"absolute text-center z-10 bottom-5 start-0 end-0 mx-3",children:(0,n.jsxs)("ul",{className:"tracking-[0.5px] mb-0 inline-flex items-center space-x-1",children:[(0,n.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out text-white/50 hover:text-white",children:(0,n.jsx)(l.rU,{to:"/",children:d?d.site_name:""})}),(0,n.jsx)("li",{className:"inline-block text-base text-white/50 mx-0.5 ltr:rotate-0 rtl:rotate-180",children:(0,n.jsx)(i.AeIR,{className:"text-xl"})}),(0,n.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out text-white","aria-current":"page",children:t.blog_title})]})})]})})}},9443:(e,t,s)=>{s.r(t),s.d(t,{default:()=>u});var a=s(9867),r=s(4670),l=s(5644),i=s(4234),n=s(2909),o=s(4868),d=s(6439),c=(s(9991),s(9052)),x=s(333),h=s(2834);function u(){const e=(0,r.TH)(),[t,s]=(0,a.useState)(),{cat_id:u}=(0,r.UO)(),[g,m]=(0,a.useState)(),[b,p]=(0,a.useState)(1),[v,j]=(0,a.useState)(""),[f,w]=(0,a.useState)(),[N,y]=(0,a.useState)(),[k,C]=(0,a.useState)(null),S=(0,r.s0)(),[O,_]=(0,a.useState)({error:"Data Not Found !"}),[z,E]=(0,a.useState)({id:"",state:!1});(0,a.useEffect)((()=>{var t=e.pathname.split("/");let s=void 0==t[2]?t[1]:t[2];E({id:s,state:!0}),Z(),F()}),[u,b]);const F=async()=>{const e=await(0,d.oz)();if(200===e.status)1===e.data.status&&C(e.data.data);else if(0===e.response.data.status){let t=e.response.data.message;console.log(t)}},L=e=>{let{data:t}=e;return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("li",{className:"mb-2",children:(0,h.jsx)("button",{onClick:e=>P(e,t.slug),className:"btn py-1 px-2 w-full shadow-sm hover:bg-blue-700 hover:text-white "+(z.id===t.slug?"bg-blue-700 text-white":""),children:t.name})})})},P=(e,t)=>{p(1),E({id:t,state:!0}),S("/category/"+t)},Z=async()=>{const e={category_id:u,page:b},t=await(0,d.ru)(e);if(200===t.status){if(1===t.data.status){s(t.data.data.data),w(t.data.data.links);const e=t.data.data.data;0===e.length?y(null):y(e)}}else 0===t.response.data.status&&_({error:"Data Not Found !"})};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i.Z,{navClass:"nav-sticky"}),(0,h.jsx)(c.Z,{title:{blog_title:"Course Listing"},description:{short_desc:"Please see our latest educational courses"}}),(0,h.jsx)("div",{className:"relative",children:(0,h.jsx)("div",{className:"shape absolute sm:-bottom-px -bottom-[2px] start-0 end-0 overflow-hidden z-1 text-white dark:text-slate-900",children:(0,h.jsx)("svg",{className:"w-full h-auto scale-[2.0] origin-top",viewBox:"0 0 2880 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M0 48H1437.5H2880V0H2160C1442.5 52 720 0 720 0H0V48Z",fill:"currentColor"})})})}),(0,h.jsx)("section",{className:"relative md:py-24 py-16",children:(0,h.jsx)("div",{className:"container",children:(0,h.jsxs)("div",{className:"grid md:grid-cols-12 grid-cols-1 gap-[30px]",children:[(0,h.jsx)("div",{className:"lg:col-span-4 md:col-span-6",children:(0,h.jsxs)("div",{className:"shadow dark:shadow-gray-800 p-6 rounded-md bg-white dark:bg-slate-900 sticky top-20",children:[(0,h.jsx)("form",{children:(0,h.jsx)("div",{className:"grid grid-cols-1 gap-3",children:(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{htmlFor:"searchname",className:"hidden font-semibold"}),(0,h.jsxs)("div",{className:"relative",children:[(0,h.jsx)(o.Z,{className:"size-4 absolute top-3 start-3"}),(0,h.jsx)("input",{name:"search",id:"searchname",type:"text",className:"form-input w-full py-2 px-3 h-10 ps-9 bg-transparent dark:bg-slate-900 dark:text-slate-200 rounded outline-none border border-gray-200 focus:border-indigo-600 dark:border-gray-800 dark:focus:border-indigo-600 focus:ring-0",placeholder:"Search",value:v,onChange:e=>{const s=e.target.value;j(s),""===s&&y(t);const a=t.filter((e=>e.product_name.toLowerCase().includes(s.toLowerCase())));y(a)}})]})]})})}),(0,h.jsxs)("div",{className:"border py-5 mt-4 px-8",children:[(0,h.jsx)("h3",{className:"pb-3 text-xl",children:"Course Category"}),(0,h.jsx)("ul",{children:k?k.map(((e,t)=>(0,h.jsx)(L,{data:e},t))):null})]})]})}),(0,h.jsxs)("div",{className:"lg:col-span-8 md:col-span-6",children:[(0,h.jsx)("div",{className:"grid md:grid-cols-12 grid-cols-1 items-center gap-[30px]",children:(0,h.jsx)("div",{className:"lg:col-span-9 md:col-span-8",children:(0,h.jsx)("h3",{className:"text-xl leading-normal font-semibold",children:"Showing Courses"})})}),(0,h.jsx)("div",{className:"grid lg:grid-cols-3 md:grid-cols-2 grid-cols-1 mt-8 gap-[30px]",children:N?N.map(((e,t)=>(0,h.jsxs)(l.rU,{to:"/course/"+e.slug,children:[" ",(0,h.jsxs)("div",{className:"group",children:[(0,h.jsx)("div",{className:"relative overflow-hidden shadow dark:shadow-gray-800 group-hover:shadow-lg group-hover:dark:shadow-gray-800 rounded-md transition-all duration-500",children:(0,h.jsx)("img",{src:e.image?e.image:null,alt:"pic"})}),(0,h.jsxs)("div",{className:"mt-4",children:[(0,h.jsx)(l.rU,{to:"/course/"+e.slug,className:"hover:text-indigo-600 text-lg font-semibold",children:e.product_name}),(0,h.jsx)("div",{className:"flex justify-between items-center mt-1",children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:e.short_desc}})})]})]},t)]}))):(0,h.jsx)("h1",{className:"text-2xl text-center",children:O.error})}),(0,h.jsx)("div",{className:"grid md:grid-cols-12 grid-cols-1 mt-8",children:(0,h.jsx)("div",{className:"md:col-span-12 text-center",children:(0,h.jsx)("nav",{"aria-label":"Page navigation example",children:(0,h.jsx)("ul",{className:"inline-flex items-center -space-x-px",children:f?f.map(((e,t)=>(0,h.jsxs)("div",{children:[" ","« Previous"===e.label?(0,h.jsx)("li",{children:(0,h.jsx)("button",{onClick:t=>((e,t,s)=>{if(t){const e=t.split("=")[1];p(e)}})(0,e.url,e.label),className:"size-[40px] inline-flex justify-center items-center text-slate-400 bg-white dark:bg-slate-900 rounded-s-lg hover:text-white border border-gray-100 dark:border-gray-700 hover:border-indigo-600 dark:hover:border-indigo-600 hover:bg-indigo-600 dark:hover:bg-indigo-600",children:(0,h.jsx)(x.RL9C,{className:"text-[20px] rtl:rotate-180 rtl:-mt-1"})})}):null,"« Previous"!==e.label&&"Next »"!==e.label?(0,h.jsx)("li",{children:(0,h.jsx)("button",{onClick:t=>{return s=e.url,a=e.label,void(s&&p(a));var s,a},className:"size-[40px] inline-flex justify-center items-center text-slate-400 hover:text-white dark:bg-slate-900 border border-gray-100 dark:border-gray-700 hover:border-indigo-600 dark:hover:border-indigo-600 hover:bg-indigo-600 dark:hover:bg-indigo-600",style:{backgroundColor:e.active?"#4F5DEB":"white"},children:e.label})}):null,"Next »"===e.label?(0,h.jsx)("li",{children:(0,h.jsx)("button",{onClick:t=>((e,t,s)=>{if(t){const e=t.split("=")[1];p(e)}})(0,e.url,e.label),className:"size-[40px] inline-flex justify-center items-center text-slate-400 bg-white dark:bg-slate-900 rounded-e-lg hover:text-white border border-gray-100 dark:border-gray-700 hover:border-indigo-600 dark:hover:border-indigo-600 hover:bg-indigo-600 dark:hover:bg-indigo-600",children:(0,h.jsx)(x.AeIR,{className:"text-xl rtl:rotate-180 rtl:-mt-1"})})}):null]},t))):""})})})})]})]})})}),(0,h.jsx)(n.Z,{})]})}},4868:(e,t,s)=>{s.d(t,{Z:()=>d});var a=s(9867),r=s(8731),l=s.n(r);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},i.apply(this,arguments)}function n(e,t){if(null==e)return{};var s,a,r=function(e,t){if(null==e)return{};var s,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)s=l[a],t.indexOf(s)>=0||(r[s]=e[s]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)s=l[a],t.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}var o=(0,a.forwardRef)((function(e,t){var s=e.color,r=void 0===s?"currentColor":s,l=e.size,o=void 0===l?24:l,d=n(e,["color","size"]);return a.createElement("svg",i({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},d),a.createElement("circle",{cx:"11",cy:"11",r:"8"}),a.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))}));o.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},o.displayName="Search";const d=o}}]);
//# sourceMappingURL=443.6b2558f3.chunk.js.map