PageSourceSearch

https://accounts.wisedataagency.com/assets/js/EditCopy-CqV2lNsk.js

js wisedataagency.com collected 2026-09-24 14:02:52 UTC 3,171 bytes, 1 lines download raw bytes

1var h=(t,s,o)=>new Promise((n,c)=>{var p=r=>{try{i(o.next(r))}catch(d){c(d)}},u=r=>{try{i(o.throw(r))}catch(d){c(d)}},i=r=>r.done?n(r.value):Promise.resolve(r.value).then(p,u);i((o=o.apply(t,s)).next())});import{d as G,u as O,r as f,j as e}from"./vendor-BlJ90GWG.js";import{aj as V,a6 as Y,P as q,C as z}from"./index-BIHwndtW.js";import{B as H}from"./BackButton-BZFMqPGI.js";import{C as J,a as K}from"./CopyPreview-DEVtRVqh.js";import{C as Q}from"./CopyFormSkeleton-CTixZLlN.js";import{u as U,s as a}from"./CopyGenerator.module-BKsinGue.js";import"./pdf-Ba4Lif-1.js";import"./charts-i6LaAsIH.js";import"./Select-CGDbQs1i.js";import"./Textarea-CvhZjv8C.js";import"./ProjectAutocomplete-GLsEmt6r.js";import"./SearchableSelect-DIkZVRqk.js";import"./projectService-Dp3HZKHv.js";import"./core.esm-BebadJQJ.js";import"./sortable.esm-NlfugMbi.js";import"./StatusBadge-D8gTiFlk.js";import"./validators-DRPEAPaw.js";import"./useDebounce-DdJ7lloX.js";import"./schemas-Zv2IiRs2.js";import"./download-BF9SZSEK.js";(function(){try{var t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};t.SENTRY_RELEASE={id:"0d78e8d78eda4804299eff0767f9df5613e65c75"};var s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="5af81105-b9b5-4367-9042-c6a707761e6e",t._sentryDebugIdIdentifier="sentry-dbid-5af81105-b9b5-4367-9042-c6a707761e6e")}catch(o){}})();function ve(){const t=G(),s=V(),{id:o}=O(),{name:n,setName:c,projectId:p,handleProjectChange:u,structureType:i,loadStructure:r,blocks:d,updateBlock:b,removeBlock:j,reorderBlocks:C,addBlock:E,notes:y,setNotes:N,status:x,setStatus:w,isPreviewMode:P,togglePreviewMode:m,saveCopy:k,saving:B,exporting:F,exportToPDF:I,errors:R,creatorName:S,createdAt:T,previewRef:D,loadCopyForRoute:L,loadingPlan:_}=U({skipListLoad:!0}),[g,v]=f.useState(!1);f.useEffect(()=>{const l=Number(o);if(!Number.isFinite(l)||l<=0){v(!0);return}L(l).then(A=>{A||v(!0)})},[o]),f.useEffect(()=>{g&&t(`${s}/utils/copy-generator`)},[g,t,s]);const M=()=>{t(`${s}/utils/copy-generator`)},$=()=>h(null,null,function*(){(yield k())&&t(`${s}/utils/copy-generator`)});return e.jsxs(Y,{children:[e.jsx(q,{title:"Editar copy"}),e.jsxs("div",{className:a.container,children:[e.jsxs("div",{className:a.header,children:[e.jsx(H,{onClick:M,label:"Voltar para lista"}),e.jsxs("div",{className:a.titleContainer,children:[e.jsx("h1",{className:a.title,children:"Editar copy"}),e.jsx("p",{className:a.subtitle,children:"Edite os detalhes da sua copy"})]})]}),e.jsx(z,{className:a.card,children:_?e.jsx(Q,{}):e.jsx(J,{name:n,setName:c,projectId:p,handleProjectChange:u,structureType:i,loadStructure:r,blocks:d,updateBlock:b,removeBlock:j,reorderBlocks:C,addBlock:E,notes:y,setNotes:N,status:x,setStatus:w,togglePreviewMode:m,saveCopy:$,saving:B,errors:R,isEditing:!0})})]}),P&&e.jsx("div",{className:a.previewOverlay,children:e.jsx("div",{className:a.previewModalContainer,children:e.jsx(K,{ref:D,name:n,structureType:i,status:x,blocks:d,notes:y,creatorName:S,createdAt:T,onClose:m,onEdit:m,onExportPdf:()=>I(Number(o),n),exporting:F})})})]})}export{ve 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.