import{_ as Z}from"./card.1996bcf7.js";import{_ as N}from"./nuxt-link.385044e5.js";import{_ as v,o as s,c as i,a as o,d as a,b as l,w as f,u as G,q as D,s as F,E as J,v as t,h as V,i as u,t as h,F as K,r as Q,p as X,e as ee}from"./entry.d21a52b0.js";import{_ as te}from"./alternatives-box.56bcccdf.js";import{_ as oe}from"./tag-cell.45d4ca01.js";import{_ as se}from"./comparison-table.58860859.js";import{u as H}from"./asyncData.d867dc6e.js";import{d as ae,e as ne}from"./listings.4d51193a.js";import{g as re,b as ie,p as le}from"./utils.58cf63a1.js";import"./card-image.786d1983.js";import"./init.5b20f3c5.js";import"./_commonjsHelpers.042e6b4d.js";const ce={name:"alert"},_e={class:"py-4 max-w-3xl mx-auto border-l-4 border-amber-400 bg-amber-50 p-4 mb-8"},me={class:"flex"},de={class:"ml-3"},pe={class:"text-sm text-amber-700"};function ue(m,n,d,c,e,p){const r=N;return s(),i("div",_e,[o("div",me,[o("div",de,[o("p",pe,[a(" The outgoing link above is an affiliate link, which helps us support Postmake and keep it free for visitors. "),l(r,{class:"font-bold hover:underline",target:"_blank",to:"/faq"},{default:f(()=>[a("Learn more.")]),_:1})])])])])}const he=v(ce,[["render",ue]]);const A=m=>(X("data-v-6d573466"),m=m(),ee(),m),fe={class:"bg-gray-light px-8"},ge={class:"mx-auto max-w-3xl pt-16 pb-8"},be={key:1,class:"text-center mx-auto max-w-3xl pt-2 pb-8"},xe={class:"text-2xl font-medium"},ve={key:0,class:"bg-white text-left border border-dashed border-gray-main rounded mt-4 p-6"},ye=["innerHTML"],ke={class:"mt-4"},we=["href"],$e={class:"pt-4 pb-16 sm:pb-8 flex max-h-[48rem]"},Le=["src"],Ie={class:"text-center mx-auto max-w-3xl pt-2 pb-16 sm:pb-8"},Se={class:"bg-white text-left border border-dashed border-gray-main rounded mt-4 p-6"},Te=["innerHTML"],Pe={class:"mt-4"},Me=A(()=>o("p",{class:"mt-8"}," Some tools might also offer discounts or offers, especially for newer members. Most of these offers traditionally come as part of affiliate programs or promotions, but often you can reach out to companies and check whether they can give you special pricing. ",-1)),Be={key:2,class:"mx-auto max-w-3xl pt-2 pb-16 sm:pb-8"},Ce=A(()=>o("h2",{class:"text-center text-2xl font-medium pb-4"},"Similar Tools",-1)),De={key:3,class:"mx-auto max-w-3xl pt-2 pb-16 sm:pb-8"},Fe={class:"text-center text-2xl font-medium"},He={class:"my-4"},Ne={__name:"listing",async setup(m){var k,w,$,L,I,S,T,P,M,B,C;let n,d;G({title:re(D().params.id)+" – Postmake"});const c=D().params.id,{data:e}=([n,d]=F(()=>H(()=>ae(c),"$VmR7Zk2ffg")),n=await n,d(),n);console.log(e.value);const{data:p}=([n,d]=F(()=>H(()=>ne(c,e.value.header,!0),"$IuaveccmFt")),n=await n,d(),n);let r=[e.value.screenshot];(r.length===0||r[0]==="")&&(r=[`https://images.postmake.io/${c}/screenshot.webp`]);let R={toolbar:!1,navbar:!1,title:!1},g=e.value.name+" can be categorized under "+(e.value.header?ie(e.value.header)+", which is commonly listed under "+((k=e.value.tag)==null?void 0:k.name):(w=e.value.tag)==null?void 0:w.name)+" tools.";g+=(L=($=e.value)==null?void 0:$.tag)!=null&&L.blurb?"<br/><br/>"+((S=(I=e.value)==null?void 0:I.tag)==null?void 0:S.blurb):"",g+=((P=(T=e.value)==null?void 0:T.header)==null?void 0:P.blurb)||"",le((M=e.value)==null?void 0:M.name);const y=(C=(B=e.value)==null?void 0:B.description)==null?void 0:C.replace(/\n/g,"<br>"),Y=()=>{var b;let _=((b=e.value)==null?void 0:b.price_link)??"";return _=_.replace(/\/+$/,""),/^https?:\/\//i.test(_)||(_="https://"+_),`${_}/?ref=postmake.io`};return(_,b)=>{const j=Z,q=he,z=J("viewer"),x=N,E=te,O=oe,U=se;return s(),i("div",fe,[o("div",ge,[l(j,{card:t(e),inline:!0,class:"mb-4"},null,8,["card"])]),t(e).affiliated?(s(),V(q,{key:0})):u("",!0),t(e).description?(s(),i("div",be,[o("h2",xe,h(t(e).tagline),1),t(e).description?(s(),i("div",ve,[t(y)?(s(),i("div",{key:0,innerHTML:t(y)},null,8,ye)):u("",!0),o("p",ke,[a(" Pricing for "+h(t(e).name)+" starts at $9/mo. You can learn more at its ",1),o("a",{href:Y(),target:"_blank",class:"text-primary-main font-semibold"},"pricing page",8,we),a(". ")])])):u("",!0)])):u("",!0),o("div",$e,[l(z,{class:"listing-screenshot w-1/3 max-h-[48rem] mx-auto rounded border object-cover object-top",images:t(r),options:t(R)},{default:f(()=>[(s(!0),i(K,null,Q(t(r),W=>(s(),i("img",{src:W},null,8,Le))),256))]),_:1},8,["images","options"])]),o("div",Ie,[o("div",Se,[o("p",{innerHTML:t(g)},null,8,Te),o("p",Pe,[a(" Not all similar tools offer the same features. Most include a free plan or trial, so you should be able to give them a try. You can browse some of the "),l(x,{class:"primary-link",target:"_blank",to:t(c)+"/alternatives"},{default:f(()=>[a("alternatives to "+h(t(e).name),1)]),_:1},8,["to"]),a(" listed in the directory. ")]),Me])]),t(p)?(s(),i("div",Be,[Ce,l(E,{cards:t(p).alternatives},null,8,["cards"]),o("span",null,[a("You can browse more "),l(x,{class:"primary-link",to:"/like/"+t(c)},{default:f(()=>[a("tools like "+h(t(e).name),1)]),_:1},8,["to"]),a(", or check out all tools tagged under "),l(O,{tag:t(e).tag.uid},null,8,["tag"])])])):u("",!0),t(p)?(s(),i("div",De,[o("h2",Fe,"Compare "+h(t(e).name)+" With Other Similar Tools",1),o("div",He,[l(U,{mainListing:t(e),listings:t(p).alternatives},null,8,["mainListing","listings"])]),l(x,{class:"primary-link",target:"_blank",to:t(c)+"/comparisons"},{default:f(()=>[a("See all comparisons")]),_:1},8,["to"])])):u("",!0)])}}},Ve=v(Ne,[["__scopeId","data-v-6d573466"]]),Ae={};function Re(m,n,d,c,e,p){const r=Ve;return s(),V(r)}const Qe=v(Ae,[["render",Re]]);export{Qe as default};
