PageSourceSearch

https://www.growthconf.com.br/assets/contentService-D-YtiaGk.js

js growthconf.com.br collected 2026-10-04 13:33:48 UTC 4,524 bytes, 1 lines download raw bytes

1import{s as a,B as g,q as E}from"./index-B58ZFblL.js";const u=["metrics","testimonials","faq"],d="landing_sections",s="speakers",i="sponsors",c=e=>e&&e.includes("postimg.cc")?"":e||"";function l(e){var o;const r={...e};return r.hero&&(r.hero={...r.hero,backgroundImage:c(r.hero.backgroundImage)}),r.manifesto&&(r.manifesto={...r.manifesto,coverImage:c(r.manifesto.coverImage),floatingImages:(o=r.manifesto.floatingImages)==null?void 0:o.map(c)}),r}function f(e){return Object.fromEntries(e.filter(({section:r,data_en:o})=>o!=null&&u.includes(r)).map(({section:r,data_en:o})=>[r,o]))}const p=e=>({apareceEm:e.aparece_em??[],id:Number(e.id),name:e.name,role:e.role,company:e.company,bio:e.bio,category:e.category,topic:e.topic,image:e.image,imageHover:e.image_hover,companyLogo:e.company_logo??"",website:e.website??"",topicos:e.topicos??[],palestras:e.palestras??[],roleEn:e.role_en??"",bioEn:e.bio_en??"",palestrasEn:e.palestras_en??[],topicosEn:e.topicos_en??[],socials:e.socials??{}}),_=e=>({aparece_em:e.apareceEm??[],id:e.id,name:e.name,role:e.role??"",company:e.company??"",bio:e.bio??"",category:e.category??"",topic:e.topic??"",image:e.image??"",image_hover:e.imageHover??"",company_logo:e.companyLogo??"",website:e.website??"",topicos:e.topicos??[],palestras:e.palestras??[],role_en:e.roleEn??"",bio_en:e.bioEn??"",palestras_en:e.palestrasEn??[],topicos_en:e.topicosEn??[],socials:e.socials??{}}),m=e=>({apareceEm:e.aparece_em??[],id:Number(e.id),name:e.name,logo:e.logo,tier:e.tier,website:e.website,description:e.description,offerText:e.offer_text,offerLink:e.offer_link,descriptionEn:e.description_en??"",offerTextEn:e.offer_text_en??"",socials:e.socials??{}}),b=e=>({aparece_em:e.apareceEm??[],id:e.id,name:e.name,logo:e.logo??"",tier:e.tier??"business",website:e.website??"",description:e.description??"",offer_text:e.offerText??"",offer_link:e.offerLink??"",description_en:e.descriptionEn??"",offer_text_en:e.offerTextEn??"",socials:e.socials??{}}),w={getLandingPageData:async()=>{try{const{data:e,error:r}=await a.from(d).select("section, data, data_en");if(r)throw r;if(!e||e.length===0)return null;const o=Object.fromEntries(e.map(({section:n,data:t})=>[n,t]));return{...l(o),en:f(e)}}catch(e){return console.error("Erro ao buscar o conteúdo da landing:",e),null}},getSpeakers:async()=>{try{const{data:e,error:r}=await a.from(s).select("*").order("id",{ascending:!0});if(r)throw r;return e.map(p)}catch(e){return console.error("Erro ao buscar palestrantes:",e),[]}},listarPalestrantesNoPainel:async()=>{const{data:e,error:r}=await a.from(s).select("*").order("id",{ascending:!0});if(r)throw console.error("Erro ao buscar palestrantes:",r),new Error(r.message||"Erro ao buscar palestrantes");return e.map(p)},saveSpeaker:async e=>{const{error:r}=await a.from(s).upsert(_(e),{onConflict:"id"});if(r)throw console.error("Erro ao salvar palestrante:",r),new Error(r.message||"Erro ao salvar palestrante");return!0},deleteSpeaker:async e=>{const{error:r}=await a.from(s).delete().eq("id",e);if(r)throw console.error("Erro ao deletar palestrante:",r),new Error(r.message||"Erro ao deletar palestrante");return!0},getSponsors:async()=>{try{const{data:e,error:r}=await a.from(i).select("*").order("id",{ascending:!0});if(r)throw r;return e.map(m)}catch(e){return console.error("Erro ao buscar patrocinadores:",e),[]}},listarPatrocinadoresNoPainel:async()=>{const{data:e,error:r}=await a.from(i).select("*").order("id",{ascending:!0});if(r)throw console.error("Erro ao buscar patrocinadores:",r),new Error(r.message||"Erro ao buscar patrocinadores");return e.map(m)},saveSponsor:async e=>{const{error:r}=await a.from(i).upsert(b(e),{onConflict:"id"});if(r)throw console.error("Erro ao salvar patrocinador:",r),new Error(r.message||"Erro ao salvar patrocinador");return!0},deleteSponsor:async e=>{const{error:r}=await a.from(i).delete().eq("id",e);if(r)throw console.error("Erro ao deletar patrocinador:",r),new Error(r.message||"Erro ao deletar patrocinador");return!0},uploadImage:async(e,r="uploads")=>{const o=`${Date.now()}_${e.name.replace(/[^a-zA-Z0-9._-]/g,"_")}`,n=`midia/${r}/${o}`,{error:t}=await a.storage.from(g).upload(n,e,{cacheControl:"31536000",contentType:e.type,upsert:!1});if(t)throw console.error("Erro ao subir imagem:",t),new Error(t.message||"Erro ao fazer upload da imagem");return E(n)}},S=Object.freeze(Object.defineProperty({__proto__:null,ContentService:w,TABELA_SECOES:d,sanearSecoes:l,secoesEmIngles:f},Symbol.toStringTag,{value:"Module"}));
1export{w as C,u as S,d as T,S as c,l as s};

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.