import{d as U,V as E,r as A,gV as B,c as v,cj as q,w as j,dU as R,el as O,cY as F,ac as z,e as i,f as p,i as t,j as d,h as a,L as _,E as c,g as L,z as m,F as T,J as H,a4 as J,_ as Q}from"./windi.23b0d74b.js";import{n as W}from"./workflowConfighash.b1b13bc6.js";import{r as Y,a as X,_ as Z,b as K,c as ee}from"./mozart-prompt.839298b8.js";import{J as te}from"./client-telemetry.1af86279.js";import{s as k,_ as oe,a as se,b as ae}from"./integrations-list-item.8602c752.js";import{L as ne}from"./lazy-hydration.cf771c16.js";import{_ as re}from"./app-auth-section.cc8b0a69.js";import{_ as ie}from"./markdown.d94e73c1.js";import{_ as pe}from"./section-heading.1e8e4e06.js";import{_ as le}from"./trusted.4150d53b.js";import{_ as de}from"./apps-list.8dd800d8.js";import{K as me,_ as ue}from"./app.1e2bf8c8.js";import{_ as ce}from"./demo.1d6b8585.js";import"./config.3f931dc4.js";import"./step-button.4559ac81.js";import"./vue.aa20dc7b.js";import"./peekaboo.0f50bae1.js";import"./prompt-redirect.4512524b.js";import"./prompt-dumb.b4980ca5.js";import"./urql.281747b1.js";import"./deployComponent.18d54186.js";import"./emitter.73ad9719.js";import"./logo-cloud.2328f3c9.js";import"./app-card.16081d1b.js";import"./page-controls.3967c706.js";import"./caret-left.484f8d0b.js";import"./input-filter.d43db83c.js";import"./search.564885e8.js";const he=[{id:"p_QPCA3A",name:"Return data in Google Sheet as an array of JSON objects",description:"Turns any Google sheet into an array of JSON objects, returning them in the HTTP response.",owner:"dylburger",apps:["google_sheets"],appIds:["app_168hvn"]},{id:"p_RRCZqJ",name:"MGL Group Updater using Slack",description:"Acts as a virtual webhook to update a master airtable table on a pro account from any of 11 separate tables in different free airtable bases which don't allow scripts to run when an record is updated.",owner:"MakeGiveLive",apps:["slack","airtable"],appIds:["app_OkrhR1","app_m5ghdO"]},{id:"p_vQC3V7",name:"Browan Object Locator to Google Sheet",description:`I've updated one of my workflows to do some GPS calculations. Specifically, To interpret the GPS coordinates received from the tracking device, I've added some GPS-specific steps - Reverse Geocode using the HERE.com API to find the nearest address for the received GPS coordinate`,owner:"dangermikeb",apps:["here","google_sheets"],appIds:["app_1YMhPQ","app_168hvn"]},{id:"p_vQC6Dm",name:"Slack post message as specific user",description:'Someone asked if they could vary the default "Pipedream" username and icon attached to Slack messages sent with the Pipedream integration. The answer is: yes!',owner:"dylburger",apps:["slack"],appIds:["app_OkrhR1"]},{id:"p_ezCn1j",name:"TBHV110 to Google Sheet",description:`This workflow receives HTTP post requests from an HTTP Custom Integration in the Helium Console, parses the data, then sends the data to a Google Sheet for easy viewing. The Pipedream workflow is part of an end-to-end data flow whose purpose is to make it easy to view and log temperature, humidity, CO2, and VO measurements from a sensor. The end-to-end workflow looks like this: TBHV110 sensor > Helium Hotspot > Helium Console > Pipedream workflow > Google Sheet Before sending data to the Google Sheet, the workflow does some data manipulations, namely converts UNIX time to GMT time converts temperature from C to F calculates Absolute Humidity and Dew Point from the temperature and humidity measurements The TBHV110 sensor is a LoRaWAN sensor that measures temperature, humidity, CO2, and VO. Helium is an Internet-of-Things hardware and software platform for developers to build IoT applications (see companies like CareBand, Smart Mimic, and Conserv). Helium is also a peer-to-peer wireless IoT network (the People\u2019s Network) where ownership of the network is distributed to whoever has purchased and deployed a Helium hotspot device.`,owner:"dangermikeb",apps:["google_sheets"],appIds:["app_168hvn"]},{id:"p_MOClby",name:"Share Peloton Ride",description:"Automatically text a link to your latest Peloton workout as soon as you finish so you can #humblebrag to your friends",owner:"danny",apps:["twilio"],appIds:["app_mE7hqO"]},{id:"p_dDCA5e",name:"Twitter Mentions -> Slack",description:"Listen for mentions and Twitter and post to Slack as formatted blocks.",owner:"pravin",apps:["twitter","slack"],appIds:["app_13GhY1","app_OkrhR1"]},{id:"p_PACqq1q",name:"Translated Twitter Mentions -> Slack",description:"Listen for mentions on Twitter, translate them and post to Slack as formatted blocks.",owner:"pravin",apps:["twitter","slack","google_cloud_translate"],appIds:["app_13GhY1","app_OkrhR1","app_X2Rhal"]},{id:"p_mkCkLyZ",name:"Respond to Telegram Bot message",description:`Listens for messages sent to your Telegram bot, responds with a friendly "Hello!". You can modify the response to be whatever you'd like.`,owner:"dylburger",apps:["telegram_bot_api"],appIds:["app_OD5hL6"]}],_e=U({props:{dashedNameSlug:String},async setup(e){const o=E(),h=te(),M=A(!1),P=A(0),y=()=>{u.value&&(h.setTitle(`${u.value.name} API Integrations`),h.setDescription(`Pipedream enables developers to easily integrate the ${u.value.name} API with more than ${R} other applications remarkably fast. Join the ${O}+ developers using the Pipedream platform today. Free to get started.`),h.setImageUrl(F+`${u.value.id}/logo/96`))},g=B({variables:v(()=>({appId:q(e.dashedNameSlug)}))}),u=v(()=>{var n;return(n=g.data.value)==null?void 0:n.app});j(()=>{var n;return(n=u.value)==null?void 0:n.id},y);const w=v(()=>{var n,r;return((r=(n=g.data.value)==null?void 0:n.app)==null?void 0:r.registryComponents)||[]}),b=v(()=>{const n=W[e.dashedNameSlug],r=n?Object.values(n):null;return r?r.map(l=>({app:u.value,savedComponent:l})):w.value.filter(l=>l.type==="SOURCE").map(l=>({app:u.value,savedComponent:l}))}),S=v(()=>w.value.filter(n=>n.type!=="SOURCE").map(n=>({app:u.value,savedComponent:n}))),f=v(()=>{var n,r,l;return((l=(r=(n=g.data.value)==null?void 0:n.app)==null?void 0:r.integrationConnections)==null?void 0:l.nodes)||[]});return await g,y(),{me:o,app:u,NUM_APPS_FORMATTED:R,NUM_USERS_FORMATTED:O,integrations:f,appActions:S,appTriggers:b,watchDemoIdx:P,showModal:M}},computed:{featuredWorkflows(){return this.app?he.filter(e=>e.apps.includes(this.app.nameSlug)):[]},relatedVideos(){return this.app?Y.filter(e=>e.apps.includes(this.app.nameSlug)):[]},relatedContent(){return this.app?X.filter(e=>e.apps.includes(this.app.nameSlug)):[]},testRequestCode(){var e;return(e=this.app)==null?void 0:e.componentCodeScaffoldRaw},readme(){var o,h;const e=(h=(o=this.app)==null?void 0:o.marketplaceContent)==null?void 0:h.markdown;return{overview:k(e,"Overview"),exampleUseCases:k(e,"Example Use Cases"),gettingStarted:k(e,"Getting Started"),troubleshooting:k(e,"Troubleshooting")}}}}),ge={class:"bg-white flex flex-col rounded"},fe={class:"marketplace-page mb-16"},ve={class:"max-w-1140px mx-auto flex items-center text-xl"},we={class:"section"},ke={class:"mb-2 w-full flex justify-around"},ye={class:"text-2xl"},be={class:"text-xl"},Se={key:0,class:"mt-5"},Ce={class:"flex flex-wrap justify-center mx-2 my-2 gap-2 my-4"},Te={key:1,class:"section"},Me={key:2,class:"section"},Pe={key:3,class:"section"},xe={key:4,class:"section"},Ie={key:5,class:"section"},Ae={key:6,class:"section"},Re={key:7,class:"section"},Oe={key:0,class:"section"},Le={class:"section"},He={class:"font-semibold"},Ge={class:"font-code mr-1 font-light"},$e={key:1,class:"section"},Ve={class:"flex my-2"},De=["href"],Ne=["src","alt"],Ue={class:"flex-grow ml-2"},Ee=["href"],Be={key:2,class:"section"},qe={class:"flex my-2"},je=["href"],Fe=["src","alt"],ze={class:"flex-grow ml-2"},Je=["href"],Qe={key:3,class:"mt-5"},We={class:"flex flex-wrap justify-center mx-2 my-2 gap-2 my-4"};function Ye(e,o,h,M,P,y){const g=ce,u=me,w=ue,b=Z,S=de,f=J,n=le,r=pe,l=ie,G=K,$=oe,C=se,x=ae,V=re,D=ne,N=ee,I=z("track");return i(),p(T,null,[t(u,{value:e.showModal,dialogStyle:"width:75vw;",onClose:o[1]||(o[1]=s=>e.showModal=!1)},{default:d(()=>[a("div",ge,[a("div",{class:"i-mdi-close self-end m-qr hover_opacity-50 cursor-pointer",onClick:o[0]||(o[0]=s=>e.showModal=!1)}),t(g,{class:"mx-auto w-full overflow-clip",watchDemoIdx:e.watchDemoIdx,imgLoading:"eager"},null,8,["watchDemoIdx"])])]),_:1},8,["value"]),t(N,{app:e.app},{default:d(()=>[a("div",fe,[a("div",ve,[t(w,{to:{name:"marketplace-explore"}},{default:d(()=>o[4]||(o[4]=[_("Explore")])),_:1}),o[6]||(o[6]=a("div",{class:"mx-1"},"/",-1)),t(w,{to:{name:"marketplace-apps"}},{default:d(()=>o[5]||(o[5]=[_("Apps")])),_:1}),o[7]||(o[7]=a("div",{class:"mx-1"},"/",-1)),a("div",null,c(e.app.name),1)]),t(b,{class:"w-full mt-2 mb-6 text-base",app:e.app},null,8,["app"]),a("div",we,[a("div",ke,[a("div",ye,"or select an app to connect with "+c(e.app.name),1)]),t(S,{"from-app":e.app},null,8,["from-app"])]),a("div",be,"Build and run workflows using the "+c(e.app.name)+" API. Use 1000s of source-available triggers and actions across "+c(e.NUM_APPS_FORMATTED)+"+ apps. Or write custom code to integrate any app or API in seconds.",1),e.me.anonymous?(i(),p("div",Se,[a("div",Ce,[L(t(f,{class:"w-44 info h-44px px-3",type:"primary",loud:"",to:{name:"signup"},target:"_self"},{default:d(()=>o[8]||(o[8]=[_("Start for free \u2014 no credit card required")])),_:1},512),[[I,"marketplace app: get started cta",void 0,{click:!0}]]),t(f,{class:"w-44 info h-44px px-3",type:"white",loud:"",onClick:o[2]||(o[2]=s=>e.showModal=!0)},{default:d(()=>o[9]||(o[9]=[_("Watch a demo")])),_:1})]),t(n)])):m("",!0),e.readme.overview?(i(),p("div",Te,[t(r,{text:"Overview"}),t(l,{class:"markdown-body","no-breaks":!0,source:e.readme.overview},null,8,["source"])])):m("",!0),e.testRequestCode?(i(),p("div",Me,[t(G,{app:e.app},null,8,["app"])])):m("",!0),e.readme.exampleUseCases?(i(),p("div",Pe,[t(r,{text:"Example Use Cases"}),t(l,{class:"markdown-body","no-breaks":!0,source:e.readme.exampleUseCases},null,8,["source"])])):m("",!0),e.readme.gettingStarted?(i(),p("div",xe,[t(r,{text:"Getting Started"}),t(l,{class:"markdown-body","no-breaks":!0,source:e.readme.gettingStarted},null,8,["source"])])):m("",!0),e.integrations.length?(i(),p("div",Ie,[t(r,{text:`Popular ${e.app.name} Integrations`},null,8,["text"]),t(C,{items:e.integrations},{default:d(({item:s})=>[t($,{integration:s},null,8,["integration"])]),_:1},8,["items"])])):m("",!0),e.appTriggers.length?(i(),p("div",Ae,[t(r,{text:`Popular ${e.app.name} Triggers`},null,8,["text"]),t(C,{items:e.appTriggers},{default:d(({item:s})=>[t(x,{app:s.app,"saved-component":s.savedComponent},null,8,["app","saved-component"])]),_:1},8,["items"])])):m("",!0),e.appActions.length?(i(),p("div",Re,[t(r,{text:`Popular ${e.app.name} Actions`},null,8,["text"]),t(C,{items:e.appActions},{default:d(({item:s})=>[t(x,{app:s.app,"saved-component":s.savedComponent},null,8,["app","saved-component"])]),_:1},8,["items"])])):m("",!0),t(D,{"when-visible":""},{default:d(()=>[e.readme.troubleshooting?(i(),p("div",Oe,[t(r,{text:"Troubleshooting"}),t(l,{class:"markdown-body","no-breaks":!0,source:e.readme.troubleshooting},null,8,["source"])])):m("",!0),a("div",Le,[t(r,{text:"Authentication"},{default:d(()=>{var s;return[a("span",He,[o[10]||(o[10]=_("Name Slug: ")),a("span",Ge,c((s=e.app)==null?void 0:s.nameSlug),1)])]}),_:1}),t(V,{class:"mt-4",app:e.app,"show-oauth-config":""},null,8,["app"])]),e.relatedVideos.length?(i(),p("div",$e,[t(r,{text:"Related Videos"}),(i(!0),p(T,null,H(e.relatedVideos,s=>(i(),p("div",Ve,[a("a",{class:"block flex-shrink-0",href:s.url},[a("img",{class:"shadow-md rounded border border-grey-lighter",src:s.image,alt:s.title,style:{width:"190px",height:"140px"},loading:"lazy"},null,8,Ne)],8,De),a("div",Ue,[a("a",{class:"font-bold text-blue-darker hover_underline",href:s.url},c(s.title),9,Ee),a("div",null,c(s.description),1)])]))),256))])):m("",!0),e.relatedContent.length?(i(),p("div",Be,[t(r,{text:"Community Posts"}),(i(!0),p(T,null,H(e.relatedContent,s=>(i(),p("div",qe,[a("a",{class:"block flex-shrink-0",href:s.url},[a("img",{class:"shadow-md rounded border border-grey-lighter",src:s.image,alt:s.title,style:{width:"190px",height:"140px"},loading:"lazy"},null,8,Fe)],8,je),a("div",ze,[a("a",{class:"font-bold text-blue-darker hover_underline",href:s.url},c(s.title),9,Je),a("div",null,c(s.description),1)])]))),256))])):m("",!0),e.me.anonymous?(i(),p("div",Qe,[a("div",We,[L(t(f,{class:"w-44 info h-44px px-3",type:"primary",loud:"",to:{name:"signup"},target:"_self"},{default:d(()=>o[11]||(o[11]=[_("Start for free \u2014 no credit card required")])),_:1},512),[[I,"marketplace app: get started cta",void 0,{click:!0}]]),t(f,{class:"w-44 info h-44px px-3",type:"white",loud:"",onClick:o[3]||(o[3]=s=>e.showModal=!0)},{default:d(()=>o[12]||(o[12]=[_("Watch a demo")])),_:1})]),t(n)])):m("",!0)]),_:1})])]),_:1},8,["app"])],64)}const Tt=Q(_e,[["render",Ye],["__file","app.vue"]]);export{Tt as default};