2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{j as t,H as N,L as S}from"./vendor-BKmmeuxg.js";import{T}from"./tabs-D0Mbb5M5.js";import{S as C}from"./separator-_3LZ_wAA.js";import{T as L,a as k,b as D}from"./tabs-Ifouhv9A.js";import{L as O}from"./landing-layout-DQFYAk24.js";import{s as I}from"./utils-DxSsnXxD.js";import R from"./details-BPWe85h6.js";import U from"./exam-header-DXybW8eT.js";import $ from"./exam-preview-CSOd-bEq.js";import E from"./instructor-Doh9qfRv.js";import H from"./overview-DNLPs2fh.js";import P from"./reviews-DKGhstr6.js";import"./index-CupQom6K.js";import"./app-logo-CmnEIwal.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./dropdown-menu-DO-po5c1.js";import"./scroll-area-C8HGru-R.js";import"./use-auth-NG-DQJrC.js";import"./use-screen-DU5n3V8C.js";import"./appearance-D2z3xcjR.js";import"./app-BytVvUs_.js";/* empty css */import"./language-BFZ7KItL.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./profile-toggle-CvHrFE0q.js";import"./avatar-j28afJTV.js";import"./index.browser-OxPLOBIU.js";import"./rating-stars-DYjrA02Q.js";import"./card-D9_SJYq6.js";import"./accordion-CNBvFN43.js";import"./richtor-CRcM6Du2.js";import"./progress-DinXkPLd.js";import"./use-lang-YfV87_zl.js";import"./table-footer-B-sB7gNG.js";import"./route-B4ZMN77y.js";const z=({tab:a,exam:e,system:r,translate:v})=>{var g,j,f,u,y,h,x;const{button:o}=v,c=[{value:"overview",label:o.overview,Component:t.jsx(H,{})},{value:"details",label:o.details,Component:t.jsx(R,{})},{value:"instructor",label:o.instructor,Component:t.jsx(E,{})},{value:"reviews",label:o.reviews,Component:t.jsx(P,{})}],w=e.meta_title||`${e.title} | ${(g=r.fields)==null?void 0:g.name}`,p=e.meta_description||e.short_description||e.description||"Professional certification exam",b=e.meta_keywords||`${e.title}, certification exam, professional test, ${((j=r.fields)==null?void 0:j.keywords)||"LMS"}`,m=e.og_title||e.title,l=e.og_description||p,n=e.thumbnail||e.banner||"",d=(f=r.fields)==null?void 0:f.name,_=typeof window<"u"?window.location.href:"";return I(r.fields.selling_currency),t.jsxs(t.Fragment,{children:[t.jsxs(N,{children:[t.jsx("title",{children:w}),t.jsx("meta",{name:"description",content:p}),t.jsx("meta",{name:"keywords",content:b}),t.jsx("meta",{name:"author",content:((u=r.fields)==null?void 0:u.author)||"UiLib"}),t.jsx("meta",{property:"og:type",content:"article"}),t.jsx("meta",{property:"og:url",content:_}),t.jsx("meta",{property:"og:title",content:m}),t.jsx("meta",{property:"og:description",content:l}),t.jsx("meta",{property:"og:site_name",content:d}),t.jsx("meta",{property:"og:image",content:n}),t.jsx("meta",{property:"og:image:width",content:"1200"}),t.jsx("meta",{property:"og:image:height",content:"630"}),t.jsx("meta",{property:"og:image:alt",content:e.title}),t.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),t.jsx("meta",{name:"twitter:title",content:m}),t.jsx("meta",{name:"twitter:description",content:l}),n&&t.jsx("meta",{name:"twitter:image",content:n}),t.jsx("meta",{name:"exam:title",content:e.title}),t.jsx("meta",{name:"exam:level",content:e.level||""}),t.jsx("meta",{name:"exam:price",content:((y=e.price)==null?void 0:y.toString())||"0"}),t.jsx("meta",{name:"exam:pricing_type",content:e.pricing_type}),e.instructor&&t.jsx("meta",{name:"exam:instructor",content:((h=e.instructor.user)==null?void 0:h.name)||""}),t.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"ExaminationTest",name:e.title,description:p,image:n,provider:{"@type":"Organization",name:d,url:typeof window<"u"?window.location.origin:""},instructor:e.instructor?{"@type":"Person",name:((x=e.instructor.user)==null?void 0:x.name)||""}:void 0,educationalLevel:e.level,offers:e.pricing_type==="paid"?{"@type":"Offer",price:e.price||0,priceCurrency:"USD",availability:"https://schema.org/InStock"}:{"@type":"Offer",price:0,priceCurrency:"USD",availability:"https://schema.org/InStock"},aggregateRating:{"@type":"AggregateRating",ratingValue:e.average_rating}})})]}),t.jsxs("div",{className:"container grid grid-cols-1 gap-7 py-10 md:grid-cols-3",children:[t.jsxs("div",{className:"space-y-8 md:col-span-2",children:[t.jsx(U,{}),t.jsxs(T,{value:a,className:"bg-card overflow-hidden rounded-md border shadow",children:[t.jsx("div",{className:"overflow-x-auto overflow-y-hidden",children:t.jsx(L,{className:"vertical-tabs-list",children:c.map(({label:s,value:i})=>t.jsx(S,{href:route("exams.details",{slug:e.slug,id:e.id,tab:i}),children:t.jsx(k,{value:i,className:"vertical-tabs-trigger",children:t.jsx("span",{children:s})},i)},i))})}),t.jsx(C,{className:"mt-[1px]"}),c.map(({value:s,Component:i})=>t.jsx(D,{value:s,className:"m-0 p-5",children:i},s))]})]}),t.jsx("div",{children:t.jsx($,{})})]})]})};z.layout=a=>t.jsx(O,{children:a,customizable:!1});export{z as default};
|