Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/
Upload File :
Current File : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/Detail-BoLKf1rZ.js

import{r as j,j as e,S as v,R as y,A as f}from"./app-DkyzAbJi.js";import{G as w}from"./GuestLayout-xanhvIwR.js";import{I as u}from"./input-DRWK1FJg.js";import{L as p}from"./label-B6hDW2ZU.js";import{S as b}from"./star-LcZpVstQ.js";import{U as k}from"./users-C9x9Dl19.js";import{C as _}from"./clock-CscXS-54.js";import{c as h}from"./createLucideIcon-BBUAF5_d.js";import{D as C}from"./download-CM27KWJt.js";import{G as S}from"./graduation-cap-CtuhVFwY.js";import{C as A}from"./calendar-DtdHpGfP.js";import{A as D}from"./award-CzzysDa0.js";import{X as P}from"./x-CSmzPeLy.js";import"./toaster-CT5Ximl4.js";import"./index-QyWV7v_F.js";import"./utils-CytzSlOG.js";/**
 * @license lucide-react v0.474.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F=[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]],M=h("ChartNoAxesColumnIncreasing",F);/**
 * @license lucide-react v0.474.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]],N=h("CirclePlay",q);/**
 * @license lucide-react v0.474.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],g=h("Globe",$);function I({fields:a,onSubmit:r}){const[l,o]=y.useState({syarat_pelatihan_id:a.map(s=>s.id)}),c=s=>{s.preventDefault(),r(l)},d=(s,t)=>{o(i=>({...i,[`jawaban_${s}`]:t}))},m=s=>{const t={id:s.id,name:`jawaban_${s.id}`,required:s.required==="required","aria-label":s.description,onChange:i=>{var n;if(s.type=="file"){const x=(n=i.target.files)==null?void 0:n[0];x&&d(s.id,x)}else d(s.id,s.type==="checkbox"?i.target.checked:i.target.value)},value:s.type!="file"?l[`jawaban_${s.id}`]||(s.type==="checkbox"?!1:""):null,checked:s.type==="checkbox"?l[`jawaban_${s.id}`]||!1:void 0};switch(s.type){case"checkbox":return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx("input",{type:"checkbox",...t,className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"}),e.jsx("label",{htmlFor:s.id,className:"ml-2 text-sm text-gray-600",children:s.description})]})});case"file":return e.jsxs("div",{className:"space-y-1",children:[e.jsx(p,{htmlFor:s.id,children:s.description}),e.jsx(u,{type:"file",id:s.id,name:`jawaban_${s.id}`,required:s.required==="required","aria-label":s.description,onChange:i=>{var x;const n=(x=i.target.files)==null?void 0:x[0];n&&d(s.id,n)},placeholder:s.description,className:"w-full"})]});default:return e.jsxs("div",{className:"space-y-1",children:[e.jsx(p,{htmlFor:s.id,children:s.description}),e.jsx(u,{type:s.type,...t,placeholder:s.description,className:"w-full"})]})}};return e.jsxs("form",{onSubmit:c,className:"space-y-6",encType:"multipart/form-data",method:"POST",children:[e.jsx("div",{className:"w-full space-y-4",children:a.map(s=>e.jsxs("div",{className:"space-y-1",children:[e.jsx("input",{type:"hidden",name:"syarat_pelatihan_id[]",value:s.id}),m(s)]},s.id))}),e.jsxs("div",{className:"w-full space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx("input",{type:"checkbox",id:"checkbox",className:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",required:!0,onChange:s=>{o(t=>({...t,setuju:s.target.checked}))}}),e.jsx("label",{htmlFor:"checkbox",className:"ml-2 text-sm text-gray-600",children:"Saya telah telah bersedia mengikuti persyaratan yang ada pada formulir komitmen pelatihan ini."})]}),e.jsx("button",{type:"submit",className:"w-full bg-[#0070BA] text-white py-3 rounded-lg font-semibold hover:bg-[#003087] transition-colors",children:"Daftar"})]})]})}function Y({pelatihan:a}){const[r,l]=j.useState("informasi"),[o,c]=j.useState(!1),d=s=>{f.post(route("course.join",a.id),s,{forceFormData:!0,onFinish:()=>c(!1)})},m=()=>o?e.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:e.jsxs("div",{className:"bg-white rounded-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[e.jsxs("div",{className:"p-6 border-b border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-2xl font-bold",children:"Daftar Pelatihan"}),e.jsx("button",{onClick:()=>c(!1),className:"text-gray-500 hover:text-gray-700",children:e.jsx(P,{className:"h-6 w-6"})})]}),e.jsxs("div",{className:"flex flex-col items-center justify-between",children:[e.jsx("b",{children:a.title}),e.jsx("div",{className:"text-sm text-gray-600",children:a.description})]})]}),e.jsxs("div",{className:"p-6 border-b border-gray-200",children:[e.jsx("div",{className:"text-sm text-gray-900",children:"Tanggal Pelatihan"}),e.jsxs("div",{className:"text-sm text-gray-900 font-bold",children:[a.start_date," s/d ",a.end_date]}),e.jsx("div",{className:"space-y-8 mt-8 flex flex-col",children:e.jsx(I,{fields:a.syarat_pelatihans,onSubmit:d})})]})]})}):null;return e.jsxs(w,{children:[e.jsx(v,{title:a.title}),e.jsx("div",{className:"pt-16 bg-white",children:e.jsxs("div",{className:"relative h-[400px] overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gray-900/60 z-10"}),e.jsx("img",{src:route("course.thumbnail",a.id),alt:a.title,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 z-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-full flex items-center",children:e.jsxs("div",{className:"text-white max-w-3xl",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4",children:a.title}),e.jsx("p",{className:"text-xl text-gray-200 mb-6",children:a.short_description}),e.jsxs("div",{className:"flex items-center space-x-6 text-sm",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(b,{className:"h-5 w-5 text-yellow-400 mr-1"}),e.jsxs("span",{children:[0," (",a.pesertas_count," peserta)"]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(k,{className:"h-5 w-5 mr-1"}),e.jsxs("span",{children:[a.pesertas_count.toLocaleString()," students"]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(_,{className:"h-5 w-5 mr-1"}),e.jsxs("span",{children:["Terakhir di update ",a.last_updated]})]})]})]})})})]})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("div",{className:"border-b border-gray-200 mb-8",children:e.jsx("nav",{className:"flex space-x-8",children:["informasi","silabus","instruktur","peserta"].map(s=>e.jsx("button",{onClick:()=>l(s),className:`
                      py-4 px-1 border-b-2 font-medium text-sm
                      ${r===s?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}
                    `,children:s.charAt(0).toUpperCase()+s.slice(1)},s))})}),r==="informasi"&&e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Deskripsi Pelatihan"}),e.jsx("p",{className:"text-gray-600",children:a.description})]}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Konten Pelatihan"}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[e.jsxs("div",{className:"text-center p-4 bg-white rounded-lg shadow-xs",children:[e.jsx(N,{className:"h-8 w-8 text-blue-600 mx-auto mb-2"}),e.jsx("div",{className:"font-semibold",children:a.duration}),e.jsx("div",{className:"text-sm text-gray-500",children:"Durasi Pertemuan"})]}),e.jsxs("div",{className:"text-center p-4 bg-white rounded-lg shadow-xs",children:[e.jsx(C,{className:"h-8 w-8 text-blue-600 mx-auto mb-2"}),e.jsx("div",{className:"font-semibold",children:"Materi"}),e.jsx("div",{className:"text-sm text-gray-500",children:"Materi yang bisa di unduh"})]}),e.jsxs("div",{className:"text-center p-4 bg-white rounded-lg shadow-xs",children:[e.jsx(S,{className:"h-8 w-8 text-blue-600 mx-auto mb-2"}),e.jsx("div",{className:"font-semibold",children:"Certificate"}),e.jsx("div",{className:"text-sm text-gray-500",children:"Of Completion"})]}),e.jsxs("div",{className:"text-center p-4 bg-white rounded-lg shadow-xs",children:[e.jsx(g,{className:"h-8 w-8 text-blue-600 mx-auto mb-2"}),e.jsx("div",{className:"font-semibold",children:"Akses Materi"}),e.jsx("div",{className:"text-sm text-gray-500",children:"Akses materi seumur hidup"})]})]})]})]}),r==="silabus"&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Materi Silabus"}),e.jsx("div",{className:"space-y-4",children:a.pelatihan_materis.map((s,t)=>e.jsx("div",{className:"bg-white p-4 rounded-lg shadow-xs",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-lg",children:s.name}),e.jsx("div",{className:"text-sm text-gray-500 mt-1",children:s.code})]}),e.jsx(N,{className:"h-6 w-6 text-blue-600"})]})},t))})]}),r==="instruktur"&&e.jsx("div",{children:e.jsx("div",{className:"bg-white p-6 rounded-lg shadow-xs",children:e.jsx("div",{className:"flex items-start space-x-4",children:e.jsx("div",{children:e.jsx("h2",{className:"text-2xl font-bold mb-2",children:a.instructor.nama})})})})}),r==="peserta"&&e.jsx("div",{children:e.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-xs",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Student Reviews"}),e.jsxs("div",{className:"flex items-center mb-8",children:[e.jsx("div",{className:"text-5xl font-bold text-blue-600 mr-8",children:0}),e.jsxs("div",{children:[e.jsx("div",{className:"flex text-yellow-400 mb-2",children:[...Array(5)].map((s,t)=>e.jsx(b,{className:"h-5 w-5",fill:"currentColor"},t))}),e.jsxs("div",{className:"text-gray-600",children:["Pelatihan Rating • ",a.pesertas_count," Reviews"]})]})]})]})})]}),e.jsx("div",{className:"lg:col-span-1",children:e.jsx("div",{className:"sticky top-24",children:e.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",children:e.jsxs("div",{className:"p-6",children:[e.jsx("button",{onClick:()=>c(!0),className:"w-full bg-blue-600 text-white py-3 rounded-lg font-semibold mb-4 hover:bg-blue-700 transition-colors",children:"Daftar Sekarang"}),e.jsxs("div",{className:"mt-6 space-y-4 text-sm",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(A,{className:"h-5 w-5 mr-2"}),e.jsxs("span",{children:[a.start_date," s/d ",a.end_date]})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(D,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:"Certificate of completion"})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(M,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:"Beginner hinggaa Advanced"})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(g,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:"Indonesia"})]})]})]})})})})]})}),m()]})}export{Y as default};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]