PageSourceSearch

https://otentecnologia.com.br/assets/Produtos-CtvEOrig.js

js otentecnologia.com.br collected 2026-09-30 05:27:52 UTC 12,689 bytes, 1 lines download raw bytes

1import{r as e,j as t}from"./framer-DNXtdBgj.js";import{b as s,c as a,z as r,v as o,t as i,l as c,m as n,S as l,n as d,p as m,_ as p,I as u,B as h,y as j,f as x,A as g,e as f}from"./index-XTUkK5WH.js";import{C as b,a as w,c as y,b as N}from"./card-Bfb46Kgw.js";import{B as v}from"./badge-5FdbKFYY.js";import{S as k}from"./skeleton-Bt0hhFPb.js";import{L as _}from"./lucide-react-DdhOkNbt.js";import{StaticFaqBlock as z}from"./StaticFaqBlock-QK-W9wAm.js";import{S as q}from"./search-B3aOT83d.js";import{P as C}from"./package-BE07Fgma.js";import"./supabase-CVkO6afG.js";import"./rotate-ccw-C2WGqzDI.js";import"./users-round-C_OE1rsU.js";import"./arrow-down-DfziBROL.js";import"./arrow-left-C0gCHPMp.js";import"./arrow-up-CT5ffgZN.js";import"./gauge-BNI8BD1a.js";import"./scroll-text-Vl7lpiFX.js";import"./beaker-BrTWGqIw.js";import"./undo-C-O6gUEH.js";import"./book-open-BVLVX2es.js";import"./building-2-Cf048s_3.js";import"./calendar-C5w0UWVn.js";import"./chart-column-x2tYRpNA.js";import"./chevron-left-DqNOkFpB.js";import"./chevron-up-Z5mg4Tbw.js";import"./circle-alert-n9Uv_QXA.js";import"./circle-help-BygYEz3a.js";import"./circle-play-BxE3Zfu0.js";import"./circle-x-9je29lWZ.js";import"./clock-BnArT1ze.js";import"./cloud-download-B5wokQzr.js";import"./copy-DvFQ8OQF.js";import"./dollar-sign-BBpURsdK.js";import"./download-CV2HsLSX.js";import"./ellipsis-Cq3Dkf9P.js";import"./external-link-CHm8ztBE.js";import"./plug-DK6c2MQ-.js";import"./eye-DGqLm-TM.js";import"./factory-g-lDNgT_.js";import"./trophy-BNIW75xO.js";import"./file-text-IPr1Bv1X.js";import"./filter-1c3ANojw.js";import"./flask-conical-BlsHoGJc.js";import"./truck-DYQSc8JD.js";import"./grip-vertical-C_biI_Rx.js";import"./languages-CrFQJEyg.js";import"./layers-TdwY-S1Y.js";import"./wrench-k69Xhg9M.js";import"./link-DeKx1FCi.js";import"./lock-BVNQ8Di1.js";import"./megaphone-DFcDot7x.js";import"./message-square-D4sVdRit.js";import"./messages-square-DJBJUnxt.js";import"./minus-CpB6H7Bv.js";import"./mouse-pointer-click-DvtxVJgg.js";import"./pencil-CX2IfFbO.js";import"./percent-BxtVv4_8.js";import"./plus-BWMdkkfo.js";import"./puzzle-ms8g5hLX.js";import"./quote-BtDo9u2T.js";import"./refresh-cw-BQas9oJM.js";import"./rocket-Ckmnaf0E.js";import"./save-Buqk_0cO.js";import"./send-Dg9m1kWo.js";import"./shield-check-BW2RZQX9.js";import"./shield-Bv2YDszh.js";import"./star-BK8-9i0D.js";import"./store-DcJbx96d.js";import"./tag-ob77C-Yn.js";import"./target-CQCdL--z.js";import"./trash-2-CSXn37pz.js";import"./trending-down-DZynLLBS.js";import"./trending-up-CCgO3IUu.js";import"./triangle-alert-DJSRqaL7.js";import"./upload-BR5n0rOG.js";import"./user-BgbMIIGm.js";import"./users-BomTj5bm.js";import"./video-CHR9136P.js";import"./zap-C9zHODIP.js";import"./ContextualFAQ-BPBV_px-.js";const F=({name:e,className:s})=>t.jsx(_[e]||C,{className:s}),L=e=>e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim(),S={"zoho-desk":["atendimento","suporte","helpdesk","help desk","ticket","tickets","sac","chamados","customer service","soporte"],"zoho-crm":["crm","vendas","leads","pipeline","funil","clientes","oportunidades","ventas","sales"],"zoho-marketing-automation":["marketing","automacao","automation","email marketing","campanha","campanhas","leads","nutricao","mql"],"zoho-marketing-plus":["marketing","campanhas","social media","redes sociais","email","midias sociais"],"zoho-books":["financeiro","contabilidade","contabil","faturamento","fatura","nota fiscal","contas a pagar","contas a receber","books","accounting","finance","facturacion"],"zoho-people":["rh","recursos humanos","people","ponto","folha","colaboradores","funcionarios","hr","human resources","talentos","onboarding"],"zoho-projects":["projetos","gestao de projetos","tarefas","kanban","gantt","produtividade","projects","proyectos"],"zoho-analytics":["bi","business intelligence","dashboard","relatorios","relatorio","analise","analytics","dados","data","metricas","kpi"],"zoho-one":["suite","pacote completo","tudo em um","all in one","ecossistema"],"zoho-crm-plus":["crm","experiencia do cliente","cx","engajamento","vendas","marketing","atendimento"],"zoho-workplace":["produtivida
1de","email corporativo","colaboracao","office","documentos","planilhas","chat"],atendimento:["suporte","helpdesk","help desk","ticket","tickets","sac","chamados","customer service"],"crm & vendas":["crm","vendas","leads","pipeline","funil","clientes","ventas","sales"],produtividade:["tarefas","projetos","colaboracao","office","produtivity"],analytics:["bi","business intelligence","dashboard","relatorios","dados","metricas"],"suite completa":["suite","pacote","tudo em um","all in one"]};function P(){const{t:_}=s(),[P,Z]=e.useState(""),[B,D]=e.useState(null),{tracking:K}=a("produtos.lista.card_cta"),$=r(a("produtos.lista.contato_cta").tracking,{cta_key:"produtos.lista.contato_cta"}),{data:A,isLoading:M}=o({queryKey:["public-products"],queryFn:async()=>{const{data:e,error:t}=await f.from("products").select("id, name, slug, short_description, full_description, features, icon, image, category_id, is_featured").eq("status","published").order("sort_order");if(t)throw t;return e}}),{data:O}=o({queryKey:["public-product-categories"],queryFn:async()=>{const{data:e,error:t}=await f.from("product_categories").select("id, name, slug, icon").order("sort_order");if(t)throw t;return e}}),Q=O?.map(e=>e.name)||[],{translated:R}=i(Q),E=(O||[]).map((e,t)=>({...e,name:R[t]||e.name})),H=A?.map(e=>e.name)||[],I=A?.map(e=>e.short_description)||[],{translated:T}=i(H),{translated:W}=i(I),Y=(A||[]).map((e,t)=>({...e,name:T[t]||e.name,short_description:W[t]||e.short_description})),G=L(P).split(/\s+/).filter(e=>e.length>0),J=Y.map(e=>{const t=E.find(t=>t.id===e.category_id),s=((e,t,s)=>{if(0===s.length)return 1;const a=[{text:e.name||"",weight:5},{text:t||"",weight:4},{text:e.short_description||"",weight:3},{text:e.full_description||"",weight:2},{text:(e.features||[]).map(e=>`${e?.title||""} ${e?.description||""}`).join(" "),weight:2},{text:(S[e.slug]||[]).join(" "),weight:4},{text:(S[L(t||"")]||[]).join(" "),weight:3}].map(e=>({text:L(e.text),weight:e.weight}));let r=0;for(const o of s){let e=0;for(const t of a)t.text.includes(o)&&(e+=t.weight);if(0===e)return 0;r+=e}return r})(e,t?.name,G);return{product:e,score:s}}).filter(({product:e,score:t})=>0!==t&&(!B||e.category_id===B)).sort((e,t)=>G.length>0?t.score-e.score:0).map(({product:e})=>e),U=0===G.length&&null===B,V=U?J.filter(e=>e.is_featured):[],X=U?J.filter(e=>!e.is_featured):J,ee=(e,s=!1)=>{const a=E.find(t=>t.id===e.category_id);return t.jsxs(b,{className:s?"group hover:shadow-lg transition-all duration-300 hover:-translate-y-1 border-accent/40 bg-accent/5 ring-1 ring-accent/20 shadow-md":"group hover:shadow-lg transition-all duration-300 hover:-translate-y-1",children:[t.jsxs(w,{children:[t.jsxs("div",{className:"flex items-start justify-between gap-2",children:[t.jsx("div",{className:"w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center overflow-hidden",children:e.image?t.jsx("img",{src:e.image,alt:e.name,className:"w-full h-full object-cover",loading:"lazy"}):e.icon?t.jsx(F,{name:e.icon,className:"h-6 w-6 text-primary"}):t.jsx(C,{className:"h-6 w-6 text-primary"})}),t.jsxs("div",{className:"flex flex-col items-end gap-1",children:[s&&t.jsx(v,{className:"bg-accent text-accent-foreground border-transparent text-xs",children:_("products.featured.badge")}),a&&t.jsx(v,{variant:"secondary",className:"text-xs",children:a.name})]})]}),t.jsx(N,{className:"font-display text-xl mt-4 group-hover:text-primary transition-colors",children:e.name})]}),t.jsxs(y,{children:[e.short_description&&t.jsx("p",{className:"text-muted-foreground text-sm mb-4 line-clamp-2",children:e.short_description}),t.jsx(j,{to:`/produtos/${e.slug}`,children:t.jsxs(h,{variant:"accent",className:"gap-2",onClick:()=>x(K,{cta_key:"produtos.lista.card_cta",label:e.name,slug:e.slug}),children:[_("products.learnMore")," ",t.jsx(g,{className:"h-4 w-4"})]})})]})]},e.id)},te=s(),se=c("produtos",te.locale);return t.jsxs(n,{children:[t.jsx(l,{title:_("products.seo.title"),description:_("products.seo.description"),keywords:"Zoho CRM, Zoho Desk, Zoho Books, Zoho Projects, produtos Zoho, software empresarial",canonical:"https://www.otentecnologia.com.br/produtos",alternateLanguages:d("/produtos"),jsonLd:[m([{name:"Home",url:"https://www.otentecnologia.com.br/"},{name:_("products.breadcrumb")}]),p({name:_("products.seo.title"),items:(Y||[]).map(e=>({name:e.name,url:`https://www.otentecnologia.com.br/produtos/${e.slug}`,...e.image?{image:e.image}:{},...e.short_description?{description:e.short_description}:{}}))}),...se?[se]:[]]}),t.jsx("section",{className:"py-16 md:py-24 gradient-dark",children:t.jsx("div",{className:"container",children:t.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[t.jsx("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 backdrop-blur-sm border border-white/20 text-white text-sm font-medium mb-6",children:_("products.hero.badge")}),t.jsx("div",{className:"flex justify-center mb-6",children:t.jsxs("h1",{className:"font-display text-4xl md:text-5xl font-bold text-white relative inline-block pb-4",children:[_("products.hero.title"),t.jsx("span",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-1 bg-accent rounded-full"})]})}),t.jsx("p",{className:"text-lg text-white/80 mb-8",children:_("products.hero.description")}),t.jsxs("div",{className:"max-w-md mx-auto relative",children:[t.jsx(q,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-white/60"}),t.jsx(u,{placeholder:_("products.search.placeholder"),value:P,onChange:e=>Z(e.target.value),className:"pl-12 h-12 text-base bg-white/10 border-white/20 text-white placeholder:text-white/50"})]})]})})}),E.length>0&&t.jsx("section",{className:"py-8 border-b",children:t.jsx("div",{className:"container",children:t.jsxs("div",{className:"flex flex-wrap gap-2 justify-center",children:[t.jsx(h,{variant:null===B?"default":"outline",size:"sm",onClick:()=>D(null),children:_("products.filters.all")}),E.map(e=>t.jsxs(h,{variant:B===e.id?"default":"outline",size:"sm",onClick:()=>D(e.id),className:"gap-2",children:[e.icon&&t.jsx(F,{name:e.icon,className:"h-4 w-4"}),e.name]},e.id))]})})}),t.jsx("section",{className:"py-16",children:t.jsx("div",{className:"container",children:M?t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(6)].map((e,s)=>t.jsxs(b,{children:[t.jsxs(w,{children:[t.jsx(k,{className:"h-12 w-12 rounded-lg"}
1),t.jsx(k,{className:"h-6 w-3/4 mt-4"})]}),t.jsxs(y,{children:[t.jsx(k,{className:"h-4 w-full mb-2"}),t.jsx(k,{className:"h-4 w-2/3"})]})]},s))}):0===J?.length?t.jsxs("div",{className:"text-center py-16",children:[t.jsx(C,{className:"h-16 w-16 mx-auto text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-xl font-semibold mb-2",children:_("products.noProducts.title")}),t.jsx("p",{className:"text-muted-foreground",children:_(P?"products.noProducts.searchDescription":"products.noProducts.emptyDescription")})]}):t.jsxs(t.Fragment,{children:[V.length>0&&t.jsxs("div",{className:"mb-12",children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-accent/10 border border-accent/30 text-accent text-xs font-semibold uppercase tracking-wide mb-3",children:_("products.featured.eyebrow")}),t.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-foreground",children:_("products.featured.title")}),t.jsx("p",{className:"text-muted-foreground mt-2 max-w-xl mx-auto",children:_("products.featured.subtitle")})]}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:V.map(e=>ee(e,!0))})]}),X.length>0&&t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:X.map(e=>ee(e,!1))})]})})}),t.jsx("section",{className:"py-16 gradient-dark",children:t.jsx("div",{className:"container",children:t.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[t.jsx("h2",{className:"font-display text-3xl font-bold mb-4 text-white",children:(()=>{const e=_("products.cta.title"),s=e.toLowerCase(),a=["começar","empezar","start"].map(e=>({w:e,i:s.indexOf(e)})).find(e=>-1!==e.i);if(!a)return e;const r=e.slice(0,a.i),o=e.slice(a.i,a.i+a.w.length),i=e.slice(a.i+a.w.length);return t.jsxs(t.Fragment,{children:[r,t.jsx("span",{className:"text-accent",children:o}),i]})})()}),t.jsx("p",{className:"text-white/80 mb-6",children:_("products.cta.description")}),t.jsx(j,{to:"/contato",onClick:$,children:t.jsx(h,{size:"lg",variant:"accent",children:_("products.cta.button")})})]})})}),t.jsx(z,{faqKey:"produtos"})]})}export{P 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.