PageSourceSearch

https://cesla.com.br/assets/admin.page-autoridade-CK_7T5-A.js

js cesla.com.br collected 2026-10-09 21:56:48 UTC 4,297 bytes, 1 lines download raw bytes

1import{j as e}from"./main-PqYkaywL.js";import{I as x}from"./input-B5g4HLct.js";import{L as c}from"./label-CEBeCynm.js";import{T as p}from"./textarea-Dc-9mejT.js";import{B as m}from"./button-Cx_HQK9f.js";import{J as _}from"./JsonPageEditor-BCfO2-cE.js";import{R as h}from"./RichTextEditor-DNhUFsuQ.js";import{T as j}from"./trash-2-aB524HHy.js";import{P as b}from"./plus-zh9XYDJ4.js";import"./utils-BQHNewu7.js";import"./undo-2-CdgKq2A6.js";import"./createLucideIcon-Dxaekzza.js";import"./image-DN9EPPYD.js";const g={hero_eyebrow:"",hero_title:"",history_eyebrow:"",history_intro_html:"",history_middle_html:"",quote:"",history_outro_html:"",pillars_eyebrow:"",pillars_title:"",pillars:[],cta_title:"",cta_description:"",cta_label:"",cta_url:""};function n({title:r,children:s}){return e.jsxs("section",{className:"space-y-4 rounded-xl border border-border bg-card p-6",children:[e.jsx("h2",{className:"text-lg font-semibold",children:r}),s]})}function a({label:r,value:s,onChange:t,textarea:i=!1,rows:l=3,hint:o}){return e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{children:r}),i?e.jsx(p,{rows:l,value:s??"",onChange:d=>t(d.target.value)}):e.jsx(x,{value:s??"",onChange:d=>t(d.target.value)}),o&&e.jsx("p",{className:"text-xs text-muted-foreground",children:o})]})}function R(){return e.jsx(_,{table:"page_content",keyColumn:"page_key",keyValue:"nossa-autoridade",title:"Página Nossa Autoridade",description:"Edite todos os textos da página /nossa-autoridade.",defaultContent:g,children:({value:r,set:s})=>e.jsxs(e.Fragment,{children:[e.jsxs(n,{title:"Hero",children:[e.jsx(a,{label:"Eyebrow",value:r.hero_eyebrow,onChange:t=>s({...r,hero_eyebrow:t})}),e.jsx(a,{label:"Título principal",textarea:!0,rows:2,value:r.hero_title,onChange:t=>s({...r,hero_title:t})})]}),e.jsxs(n,{title:"Bloco História",children:[e.jsx(a,{label:"Eyebrow",value:r.history_eyebrow,onChange:t=>s({...r,history_eyebrow:t})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{children:"Parágrafo de introdução"}),e.jsx(h,{value:r.history_intro_html,onChange:t=>s({...r,history_intro_html:t})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Este parágrafo recebe a letra capitular destacada."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{children:"Parágrafos do meio"}),e.jsx(h,{value:r.history_middle_html,onChange:t=>s({...r,history_middle_html:t})})]}),e.jsx(a,{label:"Citação em destaque",textarea:!0,rows:3,value:r.quote,onChange:t=>s({...r,quote:t})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(c,{children:"Parágrafos finais"}),e.jsx(h,{value:r.history_outro_html,onChange:t=>s({...r,history_outro_html:t})})]})]}),e.jsxs(n,{title:"Pilares",children:[e.jsx(a,{label:"Eyebrow",value:r.pillars_eyebrow,onChange:t=>s({...r,pillars_eyebrow:t})}),e.jsx(a,{label:"Título",value:r.pillars_title,onChange:t=>s({...r,pillars_title:t})}),e.jsxs("div",{className:"space-y-3",children:[r.pillars.map((t,i)=>e.jsxs("div",{className:"space-y-2 rounded-md border border-border bg-background p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm font-semibold",children:["Pilar ",i+1]}),e.jsx(m,{type:"button",variant:"ghost",size:"icon",onClick:()=>s({...r,pillars:r.pillars.filter((l,o)=>o!==i)}),children:e.jsx(j,{className:"h-4 w-4"})})]}),e.jsx(a,{label:"Título",value:t.title,onChange:l=>{const o=[...r.pillars];o[i]={...o[i],title:l},s({...r,pillars:o})}}),e.jsx(a,{label:"Descrição",textarea:!0,value:t.description,onChange:l=>{const o=[...r.pillars];o[i]={...o[i],description:l},s({...r,pillars:o})}})]},i)),e.jsxs(m,{type:"button",variant:"outline",size:"sm",onClick:()=>s({...r,pillars:[...r.pillars,{title:"",description:""}]}),children:[e.jsx(b,{className:"h-4 w-4"})," Adicionar pilar"]})]})]}),e.jsxs(n,{title:"CTA final",children:[e.jsx(a,{label:"Título",value:r.cta_title,onChange:t=>s({...r,cta_title:t})}),e.jsx(a,{label:"Descrição",textarea:!0,value:r.cta_description,onChange:t=>s({...r,cta_description:t})}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsx(a,{label:"Botão (texto)",value:r.cta_label,onChange:t=>s({...r,cta_label:t})}),e.jsx(a,{label:"Botão (link)",value:r.cta_url,onChange:t=>s({...r,cta_url:t})})]})]})]})})}export{R as component};

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.