1import{d as B,f as y,g as _,h as N,l as k,k as C,i as I,e as d,q as M,s as h,v as q,x as H,y as D,u as L,z,c as W,A as J,B as G,a as F,C as Q,w as K,D as X,n as x,H as Z,E as Y,G as ee,t as te,I as oe}from"./BMVpzGKs.js";import{_ as ae}from"./DxNiIWDZ.js";import{f as se}from"./4ztki_BW.js";import{g as ne}from"./B-Hlxotg.js";const ie={class:"motw-post w-full min-w-0"},re={class:"motw-post__header"},ce={key:0,class:"motw-post__text--category"},me={class:"motw-post__text--title"},ue={key:1,class:"motw-post__text--date"},pe=["src","alt"],le={class:"motw-post__body prose mx-auto max-w-none w-full min-w-0 break-words"},ge=B({__name:"markdown-post",props:{post:{type:Object,required:!0}},setup(t){return(e,o)=>{const s=ae;return d(),y("article",ie,[_("div",re,[t.post.category?(d(),y("div",ce,N(t.post.category),1)):k("",!0),_("h1",me,N(t.post.title),1),t.post.publishDate?(d(),y("div",ue,N(C(se)(new Date(t.post.publishDate),e.$i18n.locale)),1)):k("",!0),t.post.coverImage?(d(),y("img",{key:2,src:t.post.coverImage,alt:t.post.metaImageAlt||t.post.title,loading:"lazy",class:"motw-post__image"},null,8,pe)):k("",!0)]),_("div",le,[I(s,{value:t.post},null,8,["value"])])])}}}),he=Object.assign(M(ge,[["__scopeId","data-v-66ec6ded"]]),{__name:"BlogMarkdownPost"}),R=[{hash:"8o59-vRQMcUFht8UmSzj79OswYSWlZM3BeziZAiuWpw",pascalName:"OGImageTakumi",kebabName:"og-image-takumi",path:"/runner/_work/motive-website/motive-website/components/og/OGImage.takumi.vue",category:"app",renderer:"takumi",propNames:["title","showImage"]},{hash:"",pascalName:"BlogPostTakumi",kebabName:"blog-post-takumi",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"BrutalistSatori",kebabName:"brutalist-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"DocsTakumi",kebabName:"docs-takumi",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"FrameSatori",kebabName:"frame-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"NuxtSatori",kebabName:"nuxt-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"NuxtSeoSatori",kebabName:"nuxt-seo-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"NuxtSeoTakumi",kebabName:"nuxt-seo-takumi",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"PergelSatori",kebabName:"pergel-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"ProductCardTakumi",kebabName:"product-card-takumi",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"SaaSSatori",kebabName:"saa-ssatori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"SimpleBlogSatori",kebabName:"simple-blog-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"UnJsSatori",kebabName:"un-js-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"WithEmojiSatori",kebabName:"with-emoji-satori",path:"/runner/_work/motive-website/motive-website/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]}],de=200,_e=/=/g,fe=/\+/g,ye=/\//g,be=/_/g,we=/%20/g,ke=/[^\u0000-\u007F]/,ve={w:"width",h:"height",c:"component",em:"emojis",k:"key",a:"alt",u:"url",cache:"cacheMaxAgeSeconds",p:"_path",q:"_query",ch:"_componentHash"},Ne=Object.fromEntries(Object.entries(ve).map(([t,e])=>[e,t])),xe=new Set(["satori","resvg","sharp","screenshot","takumi","fonts","_query","_path"]);function w(t){let e;if(typeof btoa=="function"){const o=new TextEncoder().encode(t),s=String.fromCharCode(...o);e=btoa(s)}else e=Buffer.from(t,"utf8").toString("base64");return e.replace(_e,"").replace(fe,"-").replace(ye,"~")}function Se(t){let e=0;for(let o=0;o<t.length;o++){const s=t.charCodeAt(o);e=(e<<5)-e+s,e=e&e}return Math.abs(e).toString(36)}function Ae(t,e,o){const{_path:s,_hash:n,...a}=t;return Se(JSON.stringify(a))}function je(t,e){const o=[],s={};for(const[n,a]of Object.entries(t))if(n==="props"&&typeof a=="object")for(const[r,i]of Object.entries(a))i!=null&&(typeof i=="string"||typeof i=="number"||typeof i=="boolean"?s[r]=i:(s.props=s.props||{},s.props[r]=i));else s[n]=a;for(const[n,a]of Object.entries(s)){if(a==null||a===""||n==="extension"||n==="socialPreview"||n==="_path"&&a==="/"||n==="_query"&&typeof a=="object"&&Object.keys(a).length===0||e&&n in e&&e[n]===a&&n!=="component")continue;const r=Ne[n]||n;if(xe.has(n)){const i=JSON.stringify(a);if(i==="{}")continue;const m=w(i);o.push(`${r}_${m}`)}else if(typeof a=="object"){const i=JSON.stringify(a);if(i==="{}")continue;const m=w(i);o.push(`${r}_${m}`)}else{const i=String(a);if(ke.test(i))o.push(`${r}_~${w(i)}`);else{const m=i.startsWith("~")?`~${i}`:i,c=encodeURIComponent(m.replace(be,"__")).replace(we,"+");c.includes("%")?o.push(`${r}_~${w(i)}`):o.push(`${r}_${c}`)}}}return o.join(",")}function Ce(t,e="png",o=!1,s,n){const a=je(t,s),r=o?"/_og/s":"/_og/d";if(o&&(a.length>de||a.includes("%"))){const c=Ae(t);return{url:`${r}/o_${c}.${e}`,hash:c}}return{url:`${r}/${a||"default"}.${e}`}}const Ie=/-([a-z])/g;function S(t,e){const o=e.key||"og",s=o==="twitter",n=o==="og"||o==="twitter",a=[];return n&&(a.push({name:"twitter:card",content:"summary_large_image"}),a.push({name:"twitter:image",content:t}
1),a.push({name:"twitter:image:src",content:t})),s||(a.push({property:"og:image",content:t}),a.push({property:"og:image:type",content:()=>`image/${$e(h(t))||e.extension}`})),e.width&&(s||a.push({property:"og:image:width",content:e.width}),n&&a.push({name:"twitter:image:width",content:e.width})),e.height&&(s||a.push({property:"og:image:height",content:e.height}),n&&a.push({name:"twitter:image:height",content:e.height})),e.alt&&(s||a.push({property:"og:image:alt",content:e.alt}),n&&a.push({name:"twitter:image:alt",content:e.alt})),a}function P(t){return["url","extension","width","height","alt","props","renderer","component","emojis","_query","_hash","fonts","satori","resvg","sharp","screenshot","takumi","cacheMaxAgeSeconds","cacheKey","key"].includes(t)}function Ee(t,e=[]){t=t||{};const o=q(t.props,Object.fromEntries(Object.entries({...t}).filter(([a])=>!P(a)&&!e.includes(a)))),s={};Object.entries(o).forEach(([a,r])=>{s[a.replace(Ie,i=>String(i[1]).toUpperCase())]=r});const n=Object.fromEntries(Object.entries({...t}).filter(([a])=>P(a)||e.includes(a)));return Object.keys(s).length>0&&(n.props=s),n}function Te(t){return t.split("?")[0]}function $e(t){t=Te(t);const e=t.split("/").pop()||t,o=e.split(".").pop()||e;return o==="jpg"?"jpeg":o}const U=new WeakMap;function A(t,e,o){let s;try{const a=z();a&&(s=U.get(a),s||(s=new Map,U.set(a,s)))}catch{}s?.get(t)?.dispose();const n=W(e,o);n&&s&&s.set(t,n)}function Oe(t){const e=h(t);if(e===!1)return!1;const o=e;if(o.width&&(o.width=h(o.width)),o.height&&(o.height=h(o.height)),o.alt&&(o.alt=h(o.alt)),o.url&&(o.url=h(o.url)),o.props){o.props={...o.props};for(const s in o.props)o.props[s]=h(o.props[s])}return o}function Re(t,e,o,s){const n=`${H("/",t,"_og/r",e)}.png`,a={};if(s)for(const[r,i]of Object.entries(s))r.startsWith("_og_")||(a[r]=i);return o==="twitter"&&(a._og_key="twitter"),Object.keys(a).length?D(n,a):n}function Pe(t,e,o){const s=Array.isArray(t)?t:[t],n=L(),a=n.app.baseURL,r=n.public?.["nuxt-og-image"]||{},i=r.defaults||{},m=[];for(const c of s){const f=Oe(c);if(f===!1)continue;const u=f;for(const l in i)u[l]===void 0&&(u[l]=i[l]);e.query&&(u._query=e.query);const p=u.key||"og";if(u.url){const l=u.url;A(p,{meta:S(l,u)},{tagPriority:"high"}),m.push(l);continue}if(r.hasServerRuntime){const l=Re(a,o,p,e.query);A(p,{meta:S(l,u)},{tagPriority:35}),m.push(l);continue}const g=Ee(q(u,i)),v=g.extension||i?.extension||"png",b={...g,_path:o},E=g.component||R?.[0]?.pascalName,T=R?.find(l=>l.pascalName===E||l.kebabName===E);T?.hash&&(b._componentHash=T.hash);const V=Ce(b,v,!0,i),$=H("/",a,V.url),O=g._query&&Object.keys(g._query).length?D($,{_query:g._query}):$;A(p,{meta:S(O,g)},{processTemplateParams:!0,tagPriority:35}),m.push(O)}return m}function j(t={}){const e=J(),o=G(),s=o.path||"/";return e.isHydrating?[]:Pe(t,o,s)}function Ue(t,e={},o={}){if(Array.isArray(e))return j(e.map(a=>({...a,component:t})));const s=e&&Object.keys(e).length>0?e:void 0;if(Array.isArray(o))return j(o.map(a=>{const r={...a,component:t};return s&&(r.props=a.props?{...s,...a.props}:{...s}),r}));const n={...o,component:t};return s&&(n.props=s),j(n)}const Be={class:"motw-blog-post"},Me={class:"motw-blog-post__wrap"},qe={class:"motw-wrapped-content motw-wrapped-content--centered motw-blog-post__content-post"},He=B({__name:"[slug]",async setup(t){let e,o;const{public:{baseUrl:s}}=L(),n=G(),{t:a,locale:r}=F();function i(u){const p=u?.trim()??"";return p?ee(p)?p:te(s,p.startsWith("/")?p:`/${p}`):""}const{data:m}=([e,o]=Q(async()=>Y(`${r.value}-blog-${n.params.slug}`,async()=>{try{return await $fetch(`/api/blog/${n.params.slug}`,{query:{locale:r.value}})}catch{return null}})),e=await e,o(),e),c=x(()=>m.value??null),f=x(()=>i(c.value?.metaImage));return f.value||Ue("OGImage.takumi",{title:c.value?.metaTitle??c.value?.title??""}),W({meta:x(()=>ne(c.value?.metaTitle??c.value?.title,c.value?.metaDescription??c.value?.description,a("blog.detail.meta.url",{base:s,slug:c.value?.slug??n.params.slug}),f.value,c.value?.metaImageAlt??c.value?.title))}),(u,p)=>{const g=oe,v=Z,b=he;return d(),y("div",null,[I(v,null,{default:K(()=>[I(g,{target:"_blank"})]),_:1}),_("div",Be,[_("main",Me,[_("div",qe,[C(m)?(d(),X(b,{key:0,post:C(m)},null,8,["post"])):k("",!0)])])])])}}}),Ve=M(He,[["__scopeId","data-v-2abdb542"]]);export{Ve 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.