1import{aD as I,aE as R,aF as r,aG as o,aH as D,aI as C,aJ as y,aK as v,aL as h,aM as m,aN as e,aO as lt,aP as A,aQ as N,aR as g,aS as d,aT as F,aU as it,aV as rt,aW as _,aX as B,aY as ct,aZ as ut,a_ as G,a$ as _t,b0 as S,b1 as dt,b2 as j,b3 as pt,b4 as mt,b5 as ft,b6 as gt}from"./Df00y0Wo.js";import bt from"./B6P-uOSd.js";import{_ as vt}from"./Bzd_Svv2.js";import{_ as ht,f as xt}from"./CkwQz_1R.js";import{_ as yt}from"./CRlfNOUR.js";import{_ as wt}from"./B6RSHRbf.js";import{h as kt}from"./C7PP2XIP.js";import{u as H}from"./C0-PxpMF.js";import"./C2J70aJ8.js";import"./BAtuJ5I7.js";import"./CTCPWCQW.js";import"./BnWl8N8_.js";import"./BCLd3cGE.js";import"./BQ_ZZZLR.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new l.Error().stack;t&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[t]="45b89722-2807-4f15-9172-4ddbd16b857e",l._sentryDebugIdIdentifier="sentry-dbid-45b89722-2807-4f15-9172-4ddbd16b857e")}catch{}})();const Pt={class:"flex flex-row flex-wrap gap-2"},$t=I({__name:"Tags",props:{tags:{}},setup(l){const t=R(),i=l;return(p,f)=>{const c=A;return o(),r("div",Pt,[(o(!0),r(D,null,C(i.tags,(u,b)=>(o(),y(c,{key:b,class:lt(["px-4 py-0.5 rounded-full font-bold transition-all duration-500",u.main?"bg-dm-green-500 shadow--main":"bg-violet-400 shadow--secondary"]),to:e(t)("blog")+`?tag=${u.tag}`,"aria-label":u.tag},{default:v(()=>[h(m(u.tag),1)]),_:2},1032,["class","to","aria-label"]))),128))])}}}),Bt=N($t,[["__scopeId","data-v-20824488"]]),It={class:"flex flex-col gap-4"},Dt={class:"flex flex-row flex-wrap gap-2"},Ct=I({__name:"AdditionalFiles",props:{files:{}},setup(l){const t=l;return(i,p)=>{const f=bt,c=A;return o(),r("div",It,[g("div",Dt,[(o(!0),r(D,null,C(t.files,(u,b)=>(o(),y(c,{target:"_blank",key:b,class:"px-4 py-0.5 rounded-full font-bold bg-white/10 hover:bg-fuchsia-700 transition-all duration-300 shadow",to:u.url,"aria-label":`Download ${u.name}`},{default:v(()=>[d(f,{name:"pixelarticons:file-alt"}),h(" "+m(u.name),1)]),_:2},1032,["to","aria-label"]))),128))])])}}}),Lt=N(Ct,[["__scopeId","data-v-9e0d8758"]]),Tt=I({__name:"CTA",props:{data:{}},setup(l){const t=l;return(i,p)=>{const f=A;return o(),y(f,{class:"px-5 py-2 font-bold bg-dm-green-500 transition-all duration-300 max-w-max rounded-xl shadow",to:t.data.url,"aria-label":t.data.text},{default:v(()=>[h(m(t.data.text),1)]),_:1},8,["to","aria-label"])}}}),Mt=N(Tt,[["__scopeId","data-v-135c87b8"]]),At={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-
15"},Nt={__name:"OtherPosts",props:{posts:{type:Array,required:!0}},setup(l){const t=l;return(i,p)=>{const f=ht;return o(),r("div",At,[(o(!0),r(D,null,C(t.posts,(c,u)=>(o(),y(f,{key:u,title:c.title,date:c.publication_date,img:c.image.data.attributes.url,slug:c.slug,id:c.id,class:"animate__animated animate__fadeIn transition-all duration-500"},null,8,["title","date","img","slug","id"]))),128))])}}},Ot={class:"dm-section relative"},Vt={key:0,class:"relative space-y-5"},Et={class:"pb-10 space-y-4"},Ft={class:"text-3xl md:text-5xl font-bold animate__animated animate__fadeInLeft"},Gt={class:"flex flex-row gap-2 items-center animate__animated animate__fadeInLeft"},St={key:0,class:"animate__animated animate__fadeInLeft"},jt={class:"flex flex-row flex-wrap gap-4"},Ht={key:1,class:"animate__animated animate__fadeInLeft"},Yt={key:1,class:"border-b border-white/20 flex flex-col items-center pt-10 pb-16 space-y-10 transition-all duration-500"},Rt={key:0},zt={key:1,class:"min-h-[450px] flex flex-col items-center justify-center"},Ut={class:"mb-5"},qt={class:"mt-40"},Jt=I({__name:"[...slug]",async setup(l){let t,i;const{t:p}=F({useScope:"local"}),f=R(),c=it(),u=rt(),{locale:b}=F(),O=_(c.params.slug[0]),w=_(!0),k=_(!0),z=_(0);_({});const a=_({}),P=_(""),$=_("");function U(s){const n=s.match(/<p[^>]*>(.*?)<\/p>/i);return n?n[1].trim():""}try{const{responseData:s}=([t,i]=B(()=>ct("blog-posts",[{populate:"*",locale:b.value,filters:{slug:{$eqi:O.value}}}])),t=await t,i(),t),n=ut(s);if(n.length===0)throw G({statusCode:404,statusMessage:"Post not found"});a.value=n[0],P.value=a.value.title,$.value=kt(a.value.date).format("DD.MM.YYYY"),z.value=a.value.id,k.value=!0,w.value=!1}catch{throw G({statusCode:404,statusMessage:"Post not found"})}_t(b,async()=>{w.value=!0,k.value=!1;const s=a.value.localizations.data.find(n=>n.attributes.locale===b.value).attributes.slug;u.push({path:f("blog")+`/${s}`})});const x=_([]);if(k&&(a.value.main_blog_tag.data&&x.value.push({tag:a.value.main_blog_tag.data.attributes.tag,main:!0}),a.value.blog_tags.data)){const s=a.value.blog_tags.data.filter(n=>n.attributes.tag!==x.value[0].tag?n:!1);x.value.push(...s.map(n=>({tag:n.attributes.tag,main:!1})))}const V=_([]);a.value&&a.value.additional_files.data&&(V.value=a.value.additional_files.data.map(s=>({name:s.attributes.name,url:s.attributes.url})));const L=_([]);a.value&&a.value.call_to_action.length>0&&(L.value=a.value.call_to_action.map(s=>({text:s.text,btn:s.button_text,url:s.url})));const q=S(()=>L.value.length>0),T=_([]);a.value&&(T.value=([t,i]=B(()=>xt({id:a.value.id,tag:x.value[0]?x.value[0].tag:"",locale:b.value})),t=await t,i(),t));const J=S(()=>T.value.length>0);if(a.value&&a.value.title&&a.value.content){const s=U(a.value.content),n=`${a.value.title} | Blog | DataMix`;[t,i]=B(()=>H({title:n,description:s})),await t,i()}else[t,i]=B(()=>
1H({title:"Applications Development Blog | DataMix",description:"DataMix blog â Useful information about web app development, MVP development, insights for start-ups ⨠How to create an application from scratch? ⨠Read our blog DataMix will share the most interesting â",image:"https://datamix.space/logo.png"})),await t,i();const W={"@context":"https://schema.org","@type":"BlogPosting",headline:P.value,author:{"@type":"Person",name:"DataMix"},publisher:{"@type":"Organization",name:"DataMix",logo:{"@type":"ImageObject",url:"https://datamix.space/logo.png"}},datePublished:$.value,dateModified:$.value,mainEntityOfPage:{"@type":"WebPage","@id":"https://datamix.space/blog/"+O.value},articleBody:a.value.content.slice(0,100),image:a.value.image.data.attributes.url};return dt({script:[{id:"blog-post-json-ld",type:"application/ld+json",children:JSON.stringify(W)}]}),(s,n)=>{const K=pt,Q=Bt,X=Lt,Z=vt,M=mt,tt=Mt,at=Nt,et=yt,st=ft,ot=wt;return o(),r("div",Ot,[e(k)&&!e(w)?(o(),r("div",Vt,[g("div",Et,[d(K,{"routes-array":["home","blog"],"dynamic-route":{name:e(P),path:e(c).fullPath},class:"pb-4"},null,8,["dynamic-route"]),g("h1",Ft,m(e(P)),1),g("div",Gt,[d(Q,{tags:e(x)},null,8,["tags"]),g("div",null,m(e($)),1)]),d(X,{files:e(V),class:"animate__animated animate__fadeInLeft"},null,8,["files"])]),d(Z,{data:e(a)},null,8,["data"]),e(q)?(o(),r("div",St,[d(M,{class:"py-4"},{default:v(()=>[h(m(e(p)("cta")),1)]),_:1}),g("div",jt,[(o(!0),r(D,null,C(e(L),(E,nt)=>(o(),y(tt,{key:nt,data:E},null,8,["data"]))),128))])])):j("",!0),e(J)?(o(),r("div",Ht,[d(M,{class:"py-4"},{default:v(()=>[h(m(e(p)("otherPosts")),1)]),_:1}),g("div",null,[d(at,{posts:e(T)},null,8,["posts"])])])):j("",!0)])):(o(),r("div",Yt,[e(w)?(o(),r("div",Rt,[d(et)])):(o(),r("div",zt,[d(M,null,{default:v(()=>[h(m(e(p)("errorTitle")),1)]),_:1}),g("div",Ut,m(e(p)("errorText")),1),d(st,{onClick:n[0]||(n[0]=E=>("navigateTo"in s?s.navigateTo:e(gt))(e(f)("blog"))),aria:e(p)("errorButton")},{default:v(()=>[h(m(e(p)("errorButton")),1)]),_:1},8,["aria"])]))])),g("div",qt,[d(ot,{class:"mt-40"})])])}}});function Y(l){const t=l;t.__i18n=t.__i18n||[],t.__i18n.push({locale:"",resource:{en:{otherPosts:{t:0,b:{t:2,i:[{t:3}],s:"Other Posts"}},cta:{t:0,b:{t:2,i:[{t:3}],s:"Useful Links"}}},uk:{otherPosts:{t:0,b:{t:2,i:[{t:3}],s:"ÐнÑÑ Ð¿ÑблÑкаÑÑÑ"}},cta:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑиÑÐ½Ñ Ð¿Ð¾ÑиланнÑ"}}}}})}typeof Y=="function"&&Y(Jt);export{Jt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.