KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/sbaedu/test.sbaedu.com/static/js/97.09027329.chunk.js
/*! For license information please see 97.09027329.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunktechwind=self.webpackChunktechwind||[]).push([[97],{8097:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var a=s(9867),r=s(4670),n=s(5644),i=s(4234),l=s(2909),d=s(333),c=s(6439),o=(s(4592),s(8960)),m=(s(1461),s(2834));const x=a.memo((function(){const e=(0,r.s0)(),[t,s]=(0,a.useState)(),[x,u]=(0,a.useState)(),{p_id:h}=(0,r.UO)(),[p,g]=(0,a.useState)(!1),[j,b]=(0,a.useState)({}),[v,w]=(0,a.useState)(""),[f,N]=(0,a.useState)(0),y=(0,a.useRef)(null),[k,C]=(0,a.useState)(""),[_,S]=(0,a.useState)(null),I=t=>{t.preventDefault();const s=t.target.elements.id.value,a=t.target.elements.name.value,r=t.target.elements.mode.value,n=t.target.elements.price.value,i=(t.target.elements.qty.value,t.target.elements.views.value),l=t.target.elements.duration.value,d=t.target.elements.image.value,c=t.target.elements.price_id.value;localStorage.setItem("cartitems",JSON.stringify({id:s,mode:r,name:a,price:n,qty:1,image:d,duration:l,views:i,price_id:c})),o.Am.success("Added ".concat(a));setTimeout((()=>{e("/checkout")}),2e3)};(0,a.useEffect)((()=>{U(),A()}),[h]),(0,a.useEffect)((()=>{const e=document.querySelector("#priceListbtn li:first-child button");e&&e.click()}),[t]);const A=async()=>{const e={product_slug:h},t=await(0,c.ds)(e);200===t.status?1===t.data.status&&u(t.data.data):(0===t.response.data.status&&u({error:"Something went wrong !"}),500===t.status&&u({error:"Internal Server Error !"}))},U=async()=>{const e={product_slug:h},t=await(0,c.AU)(e);if(200===t.status){if(1===t.data.status){const e=0===t.data.data.length?null:t.data.data;s(e)}}else 0===t.response.data.status&&s({error:"Something went wrong !"}),500===t.status&&s({error:"Internal Server Error !"})},F=e=>{let{data:t}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("tr",{className:"border-t border-gray-100 dark:border-gray-700",children:[(0,m.jsx)("td",{className:"p-4",children:(0,m.jsxs)(n.rU,{className:"flex items-center",onClick:()=>{return e=t.id,void S(_===e?null:e);var e},children:[(0,m.jsx)(d.w2Gk,{className:"me-1"})," ",t?t.name:null]})}),(0,m.jsx)("td",{className:"p-4 text-end",children:(0,m.jsx)(d.bCI1,{className:"inline"})})]}),_===t.id&&t.children_recursive&&t.children_recursive.length>0&&(0,m.jsx)("tr",{children:(0,m.jsx)("td",{colSpan:"2",className:"p-4",children:(0,m.jsx)("table",{className:"w-full",children:(0,m.jsx)("tbody",{children:t.children_recursive.map(((e,t)=>(0,m.jsxs)("tr",{className:"border-t border-gray-100 dark:border-gray-700",children:[(0,m.jsx)("td",{className:"p-4",children:(0,m.jsxs)(n.rU,{className:"flex items-center",children:[(0,m.jsx)(d.w2Gk,{className:"me-1"})," ",e?e.name:e]})}),(0,m.jsx)("td",{className:"p-4 text-end",children:(0,m.jsx)(d.bCI1,{className:"inline"})})]},t)))})})})})]})},L=e=>{let{data:t,index:s}=e;return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("li",{className:"inline-block nav-item",children:(0,m.jsx)("button",{ref:0===s?y:null,type:"button",name:t.mode,price_id:t.id,className:"btn uppercase bg-blue-700 hover:bg-blue-900 px-2 py-1 shadow-sm rounded-sm text-white "+(j.mode===t.mode?"bg-green-400":null),value:t.mode,onClick:e=>(e=>{const t=e.target.value,s=(e.target.name,e.target.attributes.getNamedItem("price_id").value);C(s),b({mode:t}),w(t)})(e),children:t.mode})})})},z=e=>{let{data:t,index:s}=e;return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{className:v===t.mode?"block":"d-none",children:[(0,m.jsxs)("h6",{className:"font-bold uppercase mb-5 text-indigo-600 text-center",children:[t?t.mode:null," "]}),(0,m.jsxs)("div",{className:"flex mb-5 justify-content-center text-center",children:[(0,m.jsx)("span",{className:"text-xl font-semibold",children:" \u20b9"}),(0,m.jsxs)("span",{className:"price text-xl font-semibold mb-0 text-center",style:{textDecoration:"line-through"},children:[" ",t?t.price:null," "]})," \xa0",(0,m.jsxs)("span",{className:"text-xl font-semibold",children:[t.max_discount,"% Off"]})]}),(0,m.jsxs)("div",{className:"flex mb-5 justify-content-center text-center",children:[(0,m.jsx)("span",{className:"text-xl font-semibold",children:" \u20b9"}),(0,m.jsxs)("span",{className:"price text-xl font-semibold mb-0 text-center",children:[" ",t?t.price-t.price*t.max_discount/100:null," "]})]}),(0,m.jsxs)("ul",{className:"list-none text-slate-400 text-center",children:[(0,m.jsxs)("li",{className:"mb-1 flex items-center ms-0 justify-content-center",children:[(0,m.jsxs)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",className:"text-indigo-600 text-base me-2",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,m.jsx)("path",{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"})]})," ",t.duration," Days"]}),(0,m.jsxs)("li",{className:"mb-1 flex items-center ms-0 justify-content-center",children:[(0,m.jsxs)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 16 16",className:"text-indigo-600 text-base me-2",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),(0,m.jsx)("path",{d:"M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"})]})," ",t.views," Views"]})]}),(0,m.jsxs)("form",{onSubmit:I,children:[(0,m.jsx)("input",{type:"hidden",name:"id",value:x.id}),(0,m.jsx)("input",{type:"hidden",name:"name",value:x.product_name}),(0,m.jsx)("input",{type:"hidden",name:"mode",value:t.mode}),(0,m.jsx)("input",{type:"hidden",name:"price",value:t.price}),(0,m.jsx)("input",{type:"hidden",name:"price_id",value:k}),(0,m.jsx)("input",{type:"hidden",name:"qty",value:"1"}),(0,m.jsx)("input",{type:"hidden",name:"image",value:x.image}),(0,m.jsx)("input",{type:"hidden",name:"duration",value:t.duration}),(0,m.jsx)("input",{type:"hidden",name:"views",value:t.views}),(0,m.jsx)("button",{type:"submit",className:"py-2 px-5 inline-block font-semibold tracking-wide border align-middle duration-500 text-base text-center bg-indigo-600 hover:bg-indigo-700 border-indigo-600 hover:border-indigo-700 text-white rounded-md mt-5",children:"Buy Now"})]})]})})};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i.Z,{navClass:"nav-sticky"}),(0,m.jsx)(o.Ix,{}),(0,m.jsx)("section",{className:"relative pb-16 pt-36 items-center overflow-hidden bg-indigo-600 bg-[url('../../assets/images/bg3.png')] bg-center bg-no-repeat bg-cover",children:(0,m.jsx)("div",{className:"container relative",children:(0,m.jsx)("div",{className:"grid grid-cols-1 ",children:(0,m.jsxs)("div",{className:"",children:[(0,m.jsxs)("ul",{className:"tracking-[0.5px]  mb-0 inline-flex items-center space-x-1",children:[(0,m.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out text-white/50 hover:text-white",children:(0,m.jsx)(n.rU,{to:"/index-course",children:"Course"})}),(0,m.jsx)("li",{className:"inline-block text-base text-white/50 mx-0.5 ltr:rotate-0 rtl:rotate-180",children:(0,m.jsx)(d.AeIR,{className:"text-xl"})}),(0,m.jsx)("li",{className:"inline-block uppercase text-[13px] font-bold duration-500 ease-in-out text-white","aria-current":"page",children:"Course Details"})]}),(0,m.jsxs)("h1",{className:"font-bold lg:leading-normal leading-normal text-4xl lg:text-5xl mb-5 text-white",children:[x?x.product_name:null," "]}),(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:x?x.short_desc:null}}),(0,m.jsx)("div",{className:"subcribe-form mt-6 ",children:(0,m.jsxs)("ul",{className:"tracking-[0.5px] mb-0 inline-block m-auto",children:[(0,m.jsxs)("li",{className:"inline-flex items-center mt-2 mx-3",children:[(0,m.jsx)(d.xANe,{className:"text-white"}),(0,m.jsx)("span",{className:"text-white/60 ms-1",children:"10 Weeks"})]}),(0,m.jsxs)("li",{className:"inline-flex items-center mt-2 mx-3",children:[(0,m.jsx)(d.VyLw,{className:"text-white"}),(0,m.jsx)("span",{className:"text-white/60 ms-1",children:"All Levels"})]}),(0,m.jsxs)("li",{className:"inline-flex items-center mt-2 mx-3",children:[(0,m.jsx)(d.atF7,{className:"text-white"}),(0,m.jsx)("span",{className:"text-white/60 ms-1",children:t?t.length:0})]}),(0,m.jsxs)("li",{className:"inline-flex items-center mt-2 mx-3",children:[(0,m.jsx)(d._pwe,{width:18,className:"text-white"}),(0,m.jsx)("span",{className:"text-white/60 ms-1",children:"0 Quiz"})]}),(0,m.jsxs)("li",{className:"inline-flex items-center mt-2 mx-3",children:[(0,m.jsx)(d.$muA,{className:"text-white"}),(0,m.jsx)("span",{className:"text-white/60 ms-1",children:"5 Students"})]})]})})]})})})}),(0,m.jsx)("section",{className:"relative pb-16 pt-7",children:(0,m.jsx)("div",{className:"container",children:(0,m.jsxs)("div",{className:"grid md:grid-cols-12 grid-cols-1 gap-[30px]",children:[(0,m.jsxs)("div",{className:"lg:col-span-7 md:col-span-6",children:[(0,m.jsxs)("div",{className:"group border mt-3 relative rounded-md overflow-hidden hover:shadow dark:hover:shadow-gray-700 bg-white dark:bg-slate-900  p-5 transition-all duration-500 ease-in-out h-fit",children:[(0,m.jsx)("h5",{className:"text-2xl font-semibold mb-5 mt-5",children:"Course Details"}),(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:x?(D=x.long_desc,D?D.replace(/<[^>]*>?/gm,""):""):null}})]}),(0,m.jsx)("div",{className:"relative  mt-7 overflow-x-auto block w-full bg-white dark:bg-slate-900 shadow dark:shadow-gray-800 rounded-md",children:(0,m.jsxs)("table",{className:"w-full text-start",children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{className:"px-4 py-5 text-start",children:"Course Content "}),(0,m.jsx)("th",{className:"px-4 py-5 text-end",children:"Time"})]})}),(0,m.jsxs)("tbody",{children:[(0,m.jsx)("tr",{className:"border-t border-gray-100 dark:border-gray-700"}),t?t.map(((e,t)=>(0,m.jsx)(F,{data:e},t))):(0,m.jsx)("div",{children:(0,m.jsx)("h2",{children:"Not Found"})})]})]})})]}),(0,m.jsx)("div",{className:"lg:col-span-5 md:col-span-6",children:(0,m.jsx)("div",{className:" dark:shadow-gray-800 p-1  md:-mt-64 -mt-36 rounded-md bg-white dark:bg-slate-900 sticky top-20",children:(0,m.jsx)("div",{className:"grid grid-cols-1 gap-3",children:(0,m.jsxs)("div",{className:"group border relative rounded-md overflow-hidden hover:shadow dark:hover:shadow-gray-700 bg-white dark:bg-slate-900 text-center transition-all duration-500 ease-in-out h-fit",children:[(0,m.jsx)("div",{className:"border-b border-gray-100 dark:border-gray-700",children:x?null!==x.video_url&&""!==x.video_url?(0,m.jsx)("div",{style:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden",maxWidth:"100%",backgroundColor:"#000"},children:(0,m.jsx)("iframe",{src:x.video_url,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"YouTube video player"})}):(0,m.jsx)("img",{src:x.image,alt:"new_img",width:"100%"}):null}),(0,m.jsxs)("div",{className:"p-6 hosting-price",children:[(0,m.jsx)("ul",{id:"priceListbtn",className:"inline-block flex-wrap justify-center text-center p-1 bg-white dark:bg-slate-900 shadow dark:shadow-gray-800 rounded-full nav nav-tabs",children:x?x.price.map(((e,t)=>(0,m.jsx)(L,{data:e},t))):null}),(0,m.jsx)("div",{className:"tab-content",children:x?x.price.map(((e,t)=>(0,m.jsx)(z,{data:e},t))):null})]})]})})})})]})})}),(0,m.jsx)(l.Z,{})]});var D}))},1461:()=>{},4592:(e,t,s)=>{function a(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)e[a]=s[a]}return e}s.d(t,{Z:()=>r});var r=function e(t,s){function r(e,r,n){if("undefined"!==typeof document){"number"===typeof(n=a({},s,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var l in n)n[l]&&(i+="; "+l,!0!==n[l]&&(i+="="+n[l].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var s=document.cookie?document.cookie.split("; "):[],a={},r=0;r<s.length;r++){var n=s[r].split("="),i=n.slice(1).join("=");try{var l=decodeURIComponent(n[0]);if(a[l]=t.read(i,l),e===l)break}catch(d){}}return e?a[e]:a}},remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,a({},this.attributes,t))},withConverter:function(t){return e(a({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(s)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}}]);
//# sourceMappingURL=97.09027329.chunk.js.map

Anon7 - 2021