import{L as _}from"./Layout-CkBTjrsX.js";import{I as f,h}from"./moment-C7JtfGJw.js";import{Z as b,r as u,c as i,o as a,a as w,b as t,t as n,e as g,f as v,F as d,j as r}from"./app-BLo7SiiE.js";import{S as k}from"./Subscribe-DnwqbR1f.js";import{s as y}from"./index-BSypv9LU.js";import{_ as H}from"./FlashMessages-DImpr6PL.js";import"./LoadingButton-fIGCYE5-.js";const I={layout:_,props:{kb:Object,random_kb:Array,types:Array},components:{Icon:f,Head:b,Subscribe:k},data(){return{title:this.kb.title,author_name:""}},methods:{getReadingTime(o){const s=o.trim().split(/\s+/).length;return Math.ceil(s/225)+" minute read"},sanitizeHtml:y},created(){this.moment=h}},M={class:"relative z-10 overflow-hidden bg-primary pt-[120px] pb-[100px] md:pt-[130px] lg:pt-[160px]"},T={class:"container"},z={class:"-mx-4 flex flex-wrap items-center"},F={class:"w-full px-4"},L={class:"text-center"},D={class:"text-4xl font-semibold text-white"},N={class:"list-none mt-6 text-white"},U={class:"inline-block font-semibold mx-5"},V={class:"block"},Y={class:"pt-20 pb-10 lg:pt-[120px] lg:pb-20"},j={class:"container"},B={class:"-mx-4 flex flex-wrap justify-center"},R={class:"w-full px-4"},S={class:"-mx-4 flex flex-wrap"},A={class:"w-full px-4 lg:w-8/12"},C={class:"wow fadeInUp mb-6 text-[26px] font-bold leading-snug text-dark sm:text-3xl sm:leading-snug md:text-4xl md:leading-snug","data-wow-delay":".1s"},E=["innerHTML"],O={class:"-mx-4 mb-12 flex flex-wrap items-center"},Z={class:"w-full px-4"},q={key:0,class:"wow fadeInUp mb-8 flex flex-wrap items-center md:mb-0","data-wow-delay":".1s"},G=["href"],J={class:"w-full px-4 lg:w-4/12"},K={class:"-mx-4 mb-8 flex flex-wrap"},P={class:"wow fadeInUp mb-5 flex w-full items-center border-b border-[#F2F3F8] pb-5","data-wow-delay":".1s"},Q={class:"w-full"},W=["href"],X={class:"text-sm text-body-color"};function $(o,e,s,m,c,x){const p=u("Head");return a(),i("div",null,[w(p,{title:o.$t(c.title)},null,8,["title"]),t("section",M,[t("div",T,[t("div",z,[t("div",F,[t("div",L,[t("h1",D,n(s.kb.title),1),t("ul",N,[t("li",U,[e[0]||(e[0]=t("span",{class:"block"},"Time :",-1)),e[1]||(e[1]=g()),t("span",V,n(x.getReadingTime(s.kb.details)),1)])])])])])]),e[2]||(e[2]=t("div",null,[t("span",{class:"absolute top-0 left-0 z-[-1]"},[t("img",{src:"/landing/images/header/shape-1.svg",alt:""})]),t("span",{class:"absolute top-0 right-0 z-[-1]"},[t("img",{src:"/landing/images/header/shape-2.svg",alt:""})])],-1))]),t("section",Y,[t("div",j,[t("div",B,[t("div",R,[t("div",S,[t("div",A,[t("div",null,[t("h2",C,n(s.kb.title),1),t("div",{class:"post-details html",innerHTML:s.kb.details},null,8,E),t("div",O,[t("div",Z,[s.types.length?(a(),i("div",q,[(a(!0),i(d,null,r(s.types,l=>(a(),i("a",{key:l.id,href:o.route("kb.by_type",l.id),class:"mr-2 mb-2 block rounded bg-primary bg-opacity-5 py-2 px-5 text-xs font-medium text-white hover:bg-opacity-100 hover:text-white md:mr-4 lg:mr-2 xl:mr-4"},n(l.name),9,G))),128))])):v("",!0)])])])]),t("div",J,[t("div",null,[t("div",K,[e[3]||(e[3]=t("div",{class:"w-full px-4"},[t("h2",{class:"wow fadeInUp relative pb-5 text-2xl font-semibold text-dark sm:text-[28px]","data-wow-delay":".1s"}," Random "),t("span",{class:"mb-10 inline-block h-[2px] w-20 bg-primary"})],-1)),(a(!0),i(d,null,r(s.random_kb,l=>(a(),i("div",{class:"w-full px-4 md:w-1/2 lg:w-full",key:l.id},[t("div",P,[t("div",Q,[t("h4",null,[t("a",{href:o.route("kb.details",l.id),class:"mb-1 inline-block text-lg font-medium leading-snug text-dark hover:text-primary lg:text-base xl:text-lg"},n(l.title),9,W)]),t("p",X,n(o.moment(l.updated_at).format("MMM DD, YYYY")),1)])])]))),128))])])])])])])])])])}const nt=H(I,[["render",$]]);export{nt as default};
