PageSourceSearch

https://app.infinitycopy.ai/_next/static/chunks/7578-bb83f65dcc870a82.js

js infinitycopy.ai collected 2026-10-05 12:04:24 UTC 36,753 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7578],{50202:function(e,t,n){n.d(t,{Ib:function(){return re},Vy:function(){return $}});var o=n(59499),r=n(27812),i=n(50029),a=n(4730),c=n(87794),l=n.n(c),d=n(67294),u=n(52767),s=n(64586),p=n(83159),f=n(6111),h=n(19219),x=n(97007),b=n(17853),m=n(3471),g=n(98165),v=n(54680),w=n(85016),y=n(7053),j=n(44990),k=n(82175),O=n(75730),C=n(41664),z=n(47831),I=n(66183),Z=z.default.div.withConfig({componentId:"sc-tqy407-0"})(["flex:1;padding:40px 30px 100px;width:100%;max-width:1280px;@media (max-width:","px){padding:30px 15px 100px;}",""],(function(e){return e.theme.breakpoint.md}),(function(e){return e.activeCheckoutBar&&(0,z.css)(["padding:126px 30px 100px;@media (max-width:","px){padding:15px 15px 100px;}"],(function(e){return e.theme.breakpoint.md}))})),S=z.default.div.withConfig({componentId:"sc-tqy407-1"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:40px;"]),P=(z.default.div.withConfig({componentId:"sc-tqy407-2"})(["background-image:",";background-position:center;background-repeat:no-repeat;background-size:contain;height:18px;width:18px;"],(function(e){var t=e.src;return"url(".concat(t,")")})),(0,z.default)(j.Z).withConfig({componentId:"sc-tqy407-3"})(["display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600;line-height:140%;"])),D=z.default.div.withConfig({componentId:"sc-tqy407-4"})([".custom-table table{border-collapse:separate;border-spacing:0 10px;.ant-table-tbody .ant-table-cell{p{font-size:13px;}}.ant-checkbox-wrapper{padding:0px 12px;.ant-checkbox{width:18px;height:18px;border-radius:6px;.ant-checkbox-inner{border-collapse:collapse;z-index:1;width:18px;height:18px;border:1px solid #c0c4cb;border-radius:6px;&::after{inset-inline-start:22.5%;}}&.ant-checkbox-checked{.ant-checkbox-inner{border-color:",";}}&.ant-checkbox-indeterminate{.ant-checkbox-inner::after{inset-inline-start:50%;}}}}.row-table-custom-children{&.offset-item-children-row .ant-checkbox-wrapper{&::after{content:'';width:2px;height:60px;background-color:#cfe3f9;position:absolute;right:0px;top:-32px;display:block;}}}.ant-table-thead{th.ant-table-cell{padding:0 8px;}& > tr{& > td{border:none;}& > th{border:none;&:before{display:none;}&:nth-child(2){padding-left:25px;}&:hover{border-radius:10px;}}}}tr.row-table-custom{td{padding:8px;border-top:1px solid #e9edf5;border-bottom:1px solid #e9edf5;cursor:pointer;p{font-size:13px;}&:first-child{border-left:1px solid #e9edf5;border-radius:10px 0 0 10px;}&:last-child{border-right:1px solid #e9edf5;border-radius:0 8px 8px 0;}&:nth-child(2){padding-left:25px;}}&.ant-table-row-level-0{transition:all 0.2s;&:hover{transition:all 0.2s;background:",";transform:scale(1.01);}&.expanded-row-table-custom{box-shadow:none;&:hover{background:",";transform:none;}td{border-bottom:none;border-top:1px solid #ccd3e6;border-bottom:1px solid #e9edf5;&:first-child{border-left:1px solid #ccd3e6;}&:last-child{border-right:1px solid #ccd3e6;}p{font-weight:600;}&:first-child{border-radius:10px 0 0 0;}&:last-child{border-radius:0 8px 0 0;}}}}transition:display 0.4s;}tr.ant-table-expanded-row.ant-table-expanded-row-level-1{position:relative;top:-10px;padding:0 15px !important;box-shadow:0px 10px 10px -10px rgba(11,17,62,0.17);& > td,&:hover > td{background:transparent !important;}& > td.ant-table-cell{border:1px solid #ccd3e6 !important;border-top:none !important;border-radius:0 0 8px 8px;}}.ant-table-wrapper tr.ant-table-expanded-row > td,.ant-table-wrapper tr.ant-table-expanded-row:hover > td{background:transparent !important;}}.custom-table-children{table{border-collapse:separate;border-spacing:0 !important;}.ant-table{position:relative;top:-10px;}tr.row-table-custom-children{td{padding:8px;border-top:1px solid transparent !important;border-bottom:1px solid transparent !important;&:first-child{border-left:1px solid transparent !important;border-radius:10px 0 0 10px;}&:last-child{border-right:1px solid transparent !important;border-radius:0 8px 8px 0;}}transition:display 0.4s;}.ant-table-thead th.ant-table-cell{padding-bottom:16px !important;color:",";font-size:12px;font-weight:400;}}
1.row-table-custom-children td{padding-left:10px !important;}.offset-item-children-row td:first-child,.offset-item-children-row td:nth-child(2){padding-left:35px !important;}.ant-table-wrapper .ant-table-tbody > tr{&.ant-table-row-selected:hover > td,& > td.ant-table-cell-row-hover{background:transparent !important;}&.ant-table-row-selected > td{background:transparent;}&.ant-table-row-level-0.row-table-custom-children{&:nth-child(even){background-color:transparent;}&:nth-child(odd){background-color:#f6f9fc;}}}"],(function(e){return e.theme.color.blueRibbon}),(function(e){return e.theme.color.whiteLilacLight}),(function(e){return e.theme.color.whiteLilacLight}),(function(e){return e.theme.color.manatee})),E=z.default.div.withConfig({componentId:"sc-tqy407-5"})(["display:flex;flex-direction:column;gap:10px;"]),B=z.default.div.withConfig({componentId:"sc-tqy407-6"})(["display:flex;justify-content:center;align-items:center;width:35px;height:35px;border-radius:50%;cursor:pointer;transition:all 0.3s ease;&:hover{background:",";}svg{fill:",";width:25px;height:25px;}"],(function(e){return e.theme.color.whiteLilac}),(function(e){return e.theme.color.blueBayoux})),R=z.default.div.withConfig({componentId:"sc-tqy407-7"})(["background:",";border-radius:10px;padding:15px;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;position:sticky;top:50px;z-index:2;"],(function(e){return e.theme.color.downriver})),A=z.default.div.withConfig({componentId:"sc-tqy407-8"})(["display:flex;"]),L=z.default.div.withConfig({componentId:"sc-tqy407-9"})(["display:block;width:1px;background-color:",";opacity:0.2;margin:0 20px 0 10px;"],(function(e){return e.theme.color.white})),q=z.default.div.withConfig({componentId:"sc-tqy407-10"})(["display:flex;"]),N=z.default.p.withConfig({componentId:"sc-tqy407-11"})(["color:",";opacity:0.6;font-size:13px;margin:auto;"],(function(e){return e.theme.color.white})),V=(0,z.default)(P).withConfig({componentId:"sc-tqy407-12"})(["font-size:13px;padding:7px 12px;"," &:disabled{opacity:0.6;}"],(function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"delete";return{delete:(0,z.css)(["background-color:transparent;border:1px solid ",";color:",";border-radius:10px;font-size:13px;padding:7px 12px;&:hover{background-color:transparent;}"],(function(e){return e.theme.color.white}),(function(e){return e.theme.color.white})),cancelSelectedData:(0,z.css)(["background-color:transparent;border:none;color:",";font-size:13px;padding:7px 12px;&:hover{background-color:transparent;}"],(function(e){return e.theme.color.white}))}[e]}(e.variant)})),M=z.default.div.withConfig({componentId:"sc-tqy407-13"})(["display:flex;align-items:center;"]),F=z.default.button.withConfig({componentId:"sc-tqy407-14"})(["background-color:transparent;border:none;margin-left:8px;cursor:pointer;"]),T=(0,z.default)(I.J).withConfig({componentId:"sc-tqy407-15"})(["cursor:pointer;"]),U=z.default.div.withConfig({componentId:"sc-tqy407-16"})(["display:flex;justify-content:flex-end;"]),_=z.default.div.withConfig({componentId:"sc-tqy407-17"})(["display:flex;align-items:center;gap:16px;"]),G=n(96673),H=z.default.div.withConfig({componentId:"sc-jxjo9n-0"})(["display:flex;flex-wrap:wrap;gap:3px;max-width:250px;.ant-select .ant-select-selector .ant-select-selection-overflow{gap:5px;.ant-tag{margin:0;}}"]),K=z.default.div.withConfig({componentId:"sc-jxjo9n-1"})(["display:flex;justify-content:space-between;align-items:center;border-radius:10px;padding:0 2px;cursor:pointer;background:",";"," ",""],(function(e){return e.theme.color.white}),(function(e){var t=e.bordercolor;return t&&(0,z.css)(["border:1px solid ",";"],t)}),(function(e){var t=e.bgcolor;return t&&(0,z.css)(["background-color:","2A;"],t)})),W=n(85893);function J(e){var t,n,o,r=e.status,i={Failed:{label:"Erro na gera\xe7\xe3o",color:"#EF0860"},Started:{label:"Iniciado",color:"#BBBCBE"},DeniedByRateLimit:{label:"Erro por limite de gera\xe7\xe3o",color:"#EF0860"},Authorized:{label:"Autorizado",color:"#434D5D"},Unauthorized:{label:"N\xe3o autorizado",color:"#EF0860"},InProgress:{label:"Em progresso",color:"#EFB041"},Completed:{label:"Conclu\xeddo",color:"#4BBB8A"},Queued:{label:"Na fila",color:"#EFB041"}};return(0,W.jsx)(H,{children:(0,W.jsx)(K,{bgcolor:null===(t=i[r])||void 0===t?void 0:t.color,children:(0,W.jsx)(G.Z,{fontcolor:null===(n=i[r])||void 0===n?void 0:n.color,noBorder:!0,children:null===(o=i[r])||void 0===o?void 0:o.label})})})}var Q=["batchId"];function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?X(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e){var t,n=e.batchId,o=(0,a.Z)(e,Q),c=(0,O.Z)("models"),z=(0,d.useState)([]),I=z[0],G=z[1],H=(0,d.useState)(!1),K=H[0],X=H[1],$=(0,d.useState)([]),ee=$[0],te=$[1],ne=(0,d.useState)([]),oe=ne[0],re=ne[1],ie=(0,h.aC)().activeCheckoutBar,ae=(0,s.Z)(),ce=ae.useContentInBatch,le=ae.useDeleteContentItemInBatch,de=ae.useRegenerateContentInBatch,ue=ae.useRenameBatch,se=ce(n),pe=se.data,fe=se.isLoading,he=se.refetch,xe=le().mutate,be=ue(n),me=be.mutateAsync,ge=be.isLoading,ve=de(),we=ve.mutate,ye=ve.isLoading,je=(0,h.tW)().updateOutputById,ke=(0,k.TA)({initialValues:{name:""},onSubmit:function(){var e=(0,i.Z)(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me({name:t.name});case 2:X(!1);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),Oe=ke.values,Ce=ke.handleSubmit,ze=ke.setFieldValue;(0,d.useEffect)((function(){if(pe){var e=pe.items.map((function(e){return{key:e.id,id:e.id,name:e.name,externalId:e.externalId,status:e.status,audiences:e.audiences,brandVoice:e.brandVoice,lastOutput:e.lastOutput,input:e.input}}));ze("name",pe.name),G(e)}}),[pe,ze]);var Ie=(0,d.useCallback)((function(){var e={id:n,items:oe.map((function(e){var t=I.find((function(t){return t.id===e}));return{id:null===t||void 0===t?void 0:t.id,name:null===t||void 0===t?void 0:t.name,externalId:null===t||void 0===t?void 0:t.externalId,audiences:null===t||void 0===t?void 0:t.audiences.map((function(e){return e.id})),brandVoice:null===t||void 0===t?void 0:t.brandVoice.id,input:null===t||void 0===t?void 0:t.input}}))};we(e),re([])}),[n,I,we,oe]),Ze=(0,d.useCallback)((function(){oe.forEach((function(e){xe(e)})),re([])}),[xe,oe]),Se=(0,d.useMemo)((function(){return[{key:"regenerate",label:"Gerar novamente"},{key:"delete",label:"Excluir"}]}),[]),Pe=(0,d.useCallback)((function(e,t){var o={delete:function(){xe(e.id)},regenerate:function(){we({id:n,items:[{id:e.id,name:e.name,externalId:e.externalId,audiences:e.audiences.map((function(e){return e.id})),brandVoice:e.brandVoice.id,input:e.input}]})}};null===o||void 0===o||o[t]()}),[n,xe,we]),De=[{title:"Nome",dataIndex:"name",key:"name",width:"75%"},{title:"Status",dataIndex:"status",key:"status",render:function(e){return(0,W.jsx)(J,{status:e})},width:"20%"},{title:"",key:"action",render:function(e,t){return(0,W.jsx)(p.Z,{menu:{items:Se,onClick:function(e){var n=e.key;Pe(t,n)}},placement:"bottomRight",trigger:["click"],children:(0,W.jsx)(B,{children:(0,W.jsx)(m.Z,{})})})},width:"5%"}],Ee={selectedRowKeys:oe,onChange:function(e){re(e)},onSelect:function(e,t){if(t){var n=[].concat((0,r.Z)(oe),[e.id]);re(n)}else{var o=oe.filter((function(t){return t!==e.id}));re(o)}},onSelectAll:function(e,t){if(e){var n=t.map((function(e){return e.id}));re(n)}else re([])}},Be=(0,d.useMemo)((function(){var e,t;return"".concat(null===c||void 0===c||null===(e=c[null===pe||void 0===pe||null===(t=pe.model)||void 0===t?void 0:t.code])||void 0===e?void 0:e.title," - ").concat(new Date("".concat(null===pe||void 0===pe?void 0:pe.createdAtUtc,"Z")).toLocaleString("pt-BR",{year:"numeric",month:"long",day:"numeric"}))}),[null===pe||void 0===pe?void 0:pe.createdAtUtc,null===pe||void 0===pe||null===(t=pe.model)||void 0===t?void 0:t.code,c]);return(0,W.jsxs)(Z,{activeCheckoutBar:ie,children:[(0,W.jsxs)(S,{children:[(0,W.jsxs)(M,{children:[!fe&&(0,W.jsx)(x.Z,{children:(null===pe||void 0===pe?void 0:pe.name)||Be}),(0,W.jsx)(F,{onClick:function(){return X(!0)},children:(0,W.jsx)(T,{color:v.Z.color.manatee,size:"xs",icon:"edit"})})]}),(0,W.jsxs)(_,{children:[(0,W.jsxs)(P,{onClick:he,variant:"outline",nobordered:!0,children:[(0,W.jsx)(g.Z,{style:{fontSize:"16px"}}),"Atualizar lista"]}),(0,W.jsx)(C.default,{href:"/batches",passHref:!0,children:(0,W.jsx)(j.Z,{variant:"outline",as:"a",children:"Voltar"})})]})]}),(0,W.jsxs)(D,{children:[oe.length>0&&(0,W.jsxs)(R,{children:[(0,W.jsxs)(A,{children:[(0,W.jsx)(V,{variant:"primary",onClick:Ie,loader:ye,children:"Gerar conte\xfado selecionado"}),(0,W.jsx)(L,{}),(0,W.jsx)(V,{variant:"delete",onClick:Ze,children:"Excluir"})]}),(0,W.jsxs)(q,{children:[(0,W.jsx)(V,{variant:"cancelSelectedData",onClick:function(){return re([])},children:"Cancelar sele\xe7\xe3o"}),(0,W.jsx)(L,{}),(0,W.jsxs)(N,{children:[oe.length," conte\xfado(s) selecionado(s)"]})]})]}),(0,W.jsx)(u.Z,Y({columnsData:De,data:I,rowSelection:Y({},Ee),expandable:{expandedRowRender:function(e){return(0,W.jsx)(E,{children:(0,W.jsx)(b.Z,{initialValue:e.lastOutput.modifiedText||e.lastOutput.text,handleBlur:function(t){var n;je(null===e||void 0===e||null===(n=e.lastOutput)||void 0===n?void 0:n.id,t)}})})},rowExpandable:function(e){return"Completed"===e.status},expandIcon:function(){return null},expandIconColumnIndex:-1,expandedRowKeys:ee,onExpand:function(e,t){te(e?[t.key]:[])}},onRow:function(e){return{className:(null===ee||void 0===ee?void 0:ee.includes(e.ke
1y))?"expanded-row-table-custom":"row-table-custom",onClick:function(t){var n,o,i;if("TD"===(null===t||void 0===t||null===(n=t.target)||void 0===n?void 0:n.nodeName)&&null!==t&&void 0!==t&&null!==(o=t.target)&&void 0!==o&&null!==(i=o.className)&&void 0!==i&&i.includes("ant-table-cell")){var a="Completed"===e.status&&(null===ee||void 0===ee?void 0:ee.includes(e.key))?ee.filter((function(t){return t!==e.key})):[].concat((0,r.Z)(ee),[e.key]);te(a)}}}},pagination:!1,rowClassName:function(){return"row-table-custom"},className:"custom-table",loading:{spinning:fe,indicator:(0,W.jsx)(f.Z,{size:"sm"})}},o))]}),(0,W.jsxs)(w.Z,{title:"Atualizar nome",open:K,setOpen:X,children:[(0,W.jsx)(y.Z,{type:"input",label:"Nome",value:(null===Oe||void 0===Oe?void 0:Oe.name)||Be,onChange:function(e){return ze("name",e)}}),(0,W.jsx)(U,{children:(0,W.jsx)(j.Z,{onClick:Ce,loader:ge,children:"Atualizar"})})]})]})}var ee=n(36864),te=n(11163);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e){var t=(0,ee.Z)({},e),n=(0,d.useState)([]),o=n[0],i=n[1],a=(0,d.useState)([]),c=a[0],l=a[1],b=(0,h.aC)().activeCheckoutBar,v=(0,s.Z)(),w=v.useListContentsInBatch,y=v.useDeleteContentsInBatch,j=w(),k=j.data,C=j.isLoading,z=j.refetch,I=y().mutate,E=(0,O.Z)("models"),M=(0,te.useRouter)().push;(0,d.useEffect)((function(){if(k){var e=k.items.map((function(e){return oe({key:e.id},e)}));i(e)}}),[k]);var F=(0,d.useCallback)((function(){c.forEach((function(e){I(e)})),l([])}),[I,c]),T=(0,d.useMemo)((function(){return[{key:"view",label:"Visualizar"},{key:"delete",label:"Excluir"}]}),[]),U=(0,d.useCallback)((function(e,t){var n={delete:function(){I(e.id)},view:function(){M("/batches/".concat(e.id))}};null===n||void 0===n||n[t]()}),[I,M]),_=(0,d.useCallback)((function(e){var t,n;return"".concat(null===E||void 0===E||null===(t=E[null===e||void 0===e||null===(n=e.model)||void 0===n?void 0:n.code])||void 0===t?void 0:t.title," - ").concat(new Date("".concat(null===e||void 0===e?void 0:e.createdAtUtc,"Z")).toLocaleString("pt-BR",{year:"numeric",month:"long",day:"numeric"}))}),[E]),G=[{title:"Nome",dataIndex:"name",key:"name",render:function(e,t){return(0,W.jsx)("span",{children:e||_(t)})},width:"45%"},{title:"Atualizado em",dataIndex:"updatedAtUtc",key:"updatedAtUtc",render:function(e){return new Date("".concat(e,"Z")).toLocaleString("pt-BR",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})},width:"35%"},{title:"status",dataIndex:"status",key:"status",render:function(e){return(0,W.jsx)(J,{status:e})},width:"15%"},{title:"",key:"action",render:function(e,t){return(0,W.jsx)(p.Z,{menu:{items:T,onClick:function(e){var n=e.key;U(t,n)}},placement:"bottomRight",trigger:["click"],children:(0,W.jsx)(B,{children:(0,W.jsx)(m.Z,{})})})},width:"5%"}],H={selectedRowKeys:c,onChange:function(e){l(e)},onSelect:function(e,t){if(t){var n=[].concat((0,r.Z)(c),[e.id]);l(n)}else{var o=c.filter((function(t){return t!==e.id}));l(o)}},onSelectAll:function(e,t){if(e){var n=t.map((function(e){return e.id}));l(n)}else l([])}};return(0,W.jsxs)(Z,{activeCheckoutBar:b,children:[(0,W.jsxs)(S,{children:[(0,W.jsx)(x.Z,{children:"Listas de conte\xfados gerados"}),(0,W.jsxs)(P,{onClick:function(){return z()},variant:"outline",nobordered:!0,children:[(0,W.jsx)(g.Z,{style:{fontSize:"16px"}}),"Atualizar lista"]})]}),(0,W.jsxs)(D,{children:[c.length>0&&(0,W.jsxs)(R,{children:[(0,W.jsx)(A,{children:(0,W.jsx)(V,{variant:"delete",onClick:F,children:"Excluir lista"})}),(0,W.jsxs)(q,{children:[(0,W.jsx)(V,{variant:"cancelSelectedData",onClick:function(){return l([])},children:"Cancelar sele\xe7\xe3o"}),(0,W.jsx)(L,{}),(0,W.jsxs)(N,{children:[c.length," lista(s) selecionadas(s)"]})]})]}),(0,W.jsx)(u.Z,oe({columnsData:G,data:o,rowSelection:oe({},H),expandable:{expandIcon:function(){return null},expandIconColumnIndex:-1},onRow:function(e){return{className:"row-table-custom",onClick:function(t){var n,o,r;"TD"===(null===t||void 0===t||null===(n=t.target)||void 0===n?void 0:n.nodeName)&&null!==t&&void 0!==t&&null!==(o=t.target)&&void 0!==o&&null!==(r=o.className)&&void 0!==r&&r.includes("ant-table-cell")&&M("/batches/".concat(e.id))}}},pagination:!1,rowClassName:function(){return"row-table-custom"},className:"custom-table",loading:{spinning:C,indicator:(0,W.jsx)(f.Z,{size:"sm"})}},t))]})]})}},96695:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(338),r=n(44047),i=n(67294),a=n(47831).default.div.withConfig({componentId:"sc-o8ja3u-0"})(["button{width:100%;margin-top:3px;background-color:",";}.ant-select{margin-top:4px;width:100%;}.ant-select-lg .ant-select-selector{font-size:15px;border-radius:10px;}"],(function(e){return e.theme.color.white})),c=n(85893);var l=function(e){var t=e.value,n=e.multiple,l=void 0!==n&&n,d=e.error,u=void 0!==d&&d,s=e.onCh
1ange,p=e.maxOptions,f=void 0===p?10:p,h=(0,i.useState)(),x=h[0],b=h[1],m=(0,(0,o.Z)().useAudiences)().data,g=null===m||void 0===m?void 0:m.items.map((function(e){return{value:e.id,label:e.name}})),v=(0,i.useCallback)((function(e){b(e),null===s||void 0===s||s(e)}),[s]);return(0,i.useEffect)((function(){if(Array.isArray(x)&&x.length>f){var e=x.slice(0,f);v(e)}}),[x,v,f]),(0,i.useEffect)((function(){if(!x&&t){var e=l&&!Array.isArray(t)?[t]:t;b(e)}}),[x,l,t]),(0,c.jsx)(a,{children:(0,c.jsx)(r.Z,{allowClear:!0,size:"large",mode:l?"multiple":void 0,value:x,placeholder:"Selecione",onChange:function(e){return v(e)},status:u?"error":void 0,options:g})})}},91280:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(59499),r=n(338),i=n(44047),a=n(67294),c=n(47831).default.div.withConfig({componentId:"sc-1ix90sy-0"})(["button{width:100%;margin-top:3px;background-color:",";}.ant-select{margin-top:4px;width:100%;}.ant-select-lg .ant-select-selector{font-size:15px;border-radius:10px;}"],(function(e){return e.theme.color.white})),l=n(85893);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s=function(e){var t=e.value,n=e.error,o=void 0!==n&&n,d=e.onChange,s=e.toneOfVoiceOptions,p=(0,a.useState)(),f=p[0],h=p[1],x=(0,(0,r.Z)().useBrandVoices)().data,b=null===x||void 0===x?void 0:x.items.map((function(e){return{value:e.id,label:e.name}})),m=(0,a.useCallback)((function(e){h(e),null===d||void 0===d||d(e)}),[d]);return(0,a.useEffect)((function(){!f&&t&&h(t)}),[f,t]),(0,l.jsx)(c,{children:(0,l.jsx)(i.Z,{size:"large",value:f,placeholder:"Selecione",onChange:function(e){return m(e)},status:o?"error":void 0,options:[u({},b&&{label:"Minhas identidades verbais",options:b}),u({},s&&{label:"Tom de voz",options:s})]})})}},7053:function(e,t,n){n.d(t,{Z:function(){return m}});var o=n(67294),r=n(51904),i=n(44047),a=n(45570),c=n(96695),l=n(91280),d=n(47831),u=n(94063),s=d.default.div.withConfig({componentId:"sc-lv0lue-0"})(["color:",";display:flex;font-size:12px;font-weight:400;height:3px;justify-content:flex-end;line-height:16px;padding-top:4px;position:relative;top:8px;width:100%;"],(function(e){return e.theme.color.baliHai})),p=d.default.div.withConfig({componentId:"sc-lv0lue-1"})([".ant-select{margin-top:4px;}.ant-select-lg .ant-select-selector{font-size:15px;}"]),f=(0,d.default)(u.Z).withConfig({componentId:"sc-lv0lue-2"})([""]),h=d.default.div.withConfig({componentId:"sc-lv0lue-3"})(["margin-bottom:17px;"]),x=d.default.span.withConfig({componentId:"sc-lv0lue-4"})(["color:",";font-size:10px;margin-left:5px;"],(function(e){return e.theme.color.blueRibbon})),b=n(85893);function m(e){var t=e.type,n=e.label,d=e.placeholder,u=e.name,m=e.value,g=e.maxlength,v=e.size,w=e.options,y=e.multiple,j=void 0!==y&&y,k=e.error,O=e.onChange,C=e.loading,z=e.maxOptions,I=void 0===z?10:z,Z=e.required,S=void 0===Z||Z,P=e.filterBy,D=void 0===P?"value":P,E=e.tagRenderBy,B=void 0===E?"value":E,R=(0,o.useState)(void 0),A=R[0],L=R[1],q=(0,o.useCallback)((function(e){var t=g?null===e||void 0===e?void 0:e.slice(0,g):e;L(t),null===O||void 0===O||O(t)}),[g,O]);return(0,o.useEffect)((function(){L(m)}),[m]),(0,b.jsxs)(p,{children:[g&&(0,b.jsxs)(s,{children:[(null===A||void 0===A?void 0:A.length)||0,"/",g]}),(0,b.jsxs)(f,{htmlFor:u,children:[n,!S&&(0,b.jsx)(x,{children:"(opcional)"}),"select"===t&&(0,b.jsx)(h,{children:(0,b.jsx)(i.Z,{size:v,mode:j?"multiple":void 0,value:A,placeholder:d,style:{width:"100%"},onChange:function(e){return q(e)},status:k?"error":void 0,options:w})}),"input"===t&&(0,b.jsx)(a.Z,{name:u,value:A,placeholder:d,onChange:function(e){return q(e.target.value)},inputLimit:g,as:g&&g>80?"textarea":void 0}),"selectIdsApi"===t&&(0,b.jsx)(h,{children:(0,b.jsx)(i.Z,{showSearch:!0,size:v,mode:j?"multiple":void 0,allowClear:!0,style:{width:"100%"},placeholder:d,value:A||void 0,onChange:function(e,t){return q(t)},options:w,loading:C,tagRender:function(e){var t=e.closable,n=e.onClose;return(0,b.jsx)(r.Z,{color:"blue",onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},closable:t,onClose:n,style:{marginRight:3},children:e[B]})},filterOption:function(e,t){var n,o=null!==(n=t[D])&&void 0!==n?n:"";return(o?"".concat(o):"").toLowerCase().includes(e.toLowerCase())}})}),"audienceSelect"===t&&(0,b.jsx)(h,{children:(0,b.jsx)(c.Z,{multiple:j,value:A,onChange:function(e){return q(e)},error:k,maxOptions:I})}),"brandVoiceSelect"===t&&(0,b.jsx)(h,{children:(0,b.jsx)(l.Z,{value:A,onChange:function(e){return q(e)},toneOfVoiceOptions:w,error:k})})]},u)]})}},6111:function(e,t,n){n.d(t,{Z:function(){return d}});var o=n(47831),r=(0,o.keyframes)(["0%{transform:translate(-50%,-50%) rotate(0deg);}100%{transform:translate(-50%,-50%) rotate(360deg);}"]),i=function(e){switch(e){case"sm":return 50;case"md":default:return 100;case"lg":return 200;case"xl":return 400}},a=o.default.div.withConfig({componentId:"sc-1fte1nr-0"})(["width:",";height:",";display:inline-block;overflow:hidden;background:",";"],(function(e){var t=e.size;return i(t)}),(function(e){var t=e.size;return i(t)}),(function(e){return e.theme.color.white})),c=o.default.div.withConfig({componentId:"sc-1fte1nr-1"})(["position:absolute;width:","px;height:","px;border:","px solid ",";border-top-color:transparent;border-radius:50%;animation:"," 1s linear infinite;top:50%;left:50%;transform:translate(-50%,-50%);"],(function(e){var t=e.size;return i(t)/1.73}),(function(e){var t=e.size;return i(t)/1.73}),(function(e){var t=e.size;return i(t)/8.33}),(function(e){return e.theme.color.blueRibbon}),r),l=n(85893);var d=function(e){var t=e.size;return(0,l.jsx)(a,{size:t,children:(0,l.jsx)(c,{size:t})})}},70506:function(e,t,n){n.d(t,{Z:function(){return o.Z}});var o=n(48335)},17853:function(e,t,n){n.d(t,{Z:function(){return u}});var o=n(67294),r=n(86243),i=n(47831),a=i.default.div.withConfig({componentId:"sc-dvsxxl
1-0"})(["width:100%;display:flex;position:relative;"]),c=i.default.textarea.withConfig({componentId:"sc-dvsxxl-1"})(["flex:1;padding:20px;min-height:500px;border:1px solid transparent;border-radius:10px;"]),l=i.default.div.withConfig({componentId:"sc-dvsxxl-2"})(["flex:1;padding:20px;min-height:500px;transition:all 0.2s ease-in-out 0s;border:1px solid transparent;border-radius:10px;&:before{position:absolute;content:'';width:15px;height:15px;right:10px;top:10px;background-image:url('/assets/icons/pencil.svg');background-position:center;background-repeat:no-repeat;background-size:contain;opacity:0.1;}&:hover{transition:all 0.2s ease-in-out 0s;background:",";border:1px solid ",";cursor:text;&:before{opacity:0.4;}}h1,h2,h3,h4,h5,h6{margin-bottom:20px;","}p{margin-bottom:10px;"," &:not(:last-of-type) +:not(p){margin-top:10px;}}ul{padding-left:0;margin-left:1em;list-style-position:inside;& +:not(ul){margin-top:30px;","}}",""],(function(e){return e.theme.color.athensGray}),(function(e){return e.theme.color.athensGray}),(function(e){return"sm"===e.size&&(0,i.css)(["margin-bottom:10px;"])}),(function(e){return"sm"===e.size&&(0,i.css)(["margin-bottom:5px;"])}),(function(e){return"sm"===e.size&&(0,i.css)(["margin-top:20px;"])}),(function(e){return"sm"===e.size&&(0,i.css)(["h1{font-size:22px;}h2{font-size:18px;}h3{font-size:16px;}h4{font-size:15px;}"])})),d=(i.default.button.withConfig({componentId:"sc-dvsxxl-3"})(["padding:5px 10px;border-radius:10px;border:1px solid #1034f1;color:#1034f1;background-color:#fff;font-size:14px;cursor:pointer;position:absolute;top:0px;right:20px;"]),n(85893));var u=function(e){var t=e.initialValue,n=e.handleBlur,i=e.size,u=void 0===i?"md":i,s=(0,o.useState)(t),p=s[0],f=s[1],h=(0,o.useState)("preview"),x=h[0],b=h[1];return(0,o.useEffect)((function(){f(t)}),[t]),(0,d.jsx)(a,{children:"edit"===x?(0,d.jsx)(c,{value:p,onChange:function(e){f(e.target.value)},onBlur:function(){b("preview"),n&&n(p)},autoFocus:!0}):(0,d.jsx)(l,{onClick:function(){return b("edit")},size:u,children:(0,d.jsx)(r.Z,{children:p})})})}},85016:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(67294),r=n(15070),i=n(47831),a=(0,i.default)(r.Z).withConfig({componentId:"sc-zl0vnz-0"})([".ant-modal-content{padding:0;}"]),c=i.default.div.withConfig({componentId:"sc-zl0vnz-1"})(["height:60px;border-bottom:1px solid ",";padding:0 24px;display:flex;align-items:center;"],(function(e){return e.theme.color.periwinkleGray})),l=i.default.h2.withConfig({componentId:"sc-zl0vnz-2"})(["font-size:16px;"]),d=i.default.div.withConfig({componentId:"sc-zl0vnz-3"})(["padding:40px;"]),u=n(85893);function s(e){var t=e.children,n=e.title,r=e.open,i=e.setOpen,s=e.width,p=void 0===s?700:s,f=(0,o.useCallback)((function(){i(!1)}),[i]);return r?(0,u.jsxs)(a,{open:r,onCancel:f,title:null,footer:null,width:p,centered:!0,children:[(0,u.jsx)(c,{children:(0,u.jsx)(l,{children:n})}),(0,u.jsx)(d,{children:t})]}):null}},52868:function(e,t,n){n.d(t,{Z:function(){return o.Z}});var o=n(45134)},31417:function(e,t,n){n.d(t,{Z:function(){return o.Z}});var o=n(17714)},52767:function(e,t,n){n.d(t,{Z:function(){return u}});var o=n(59499),r=n(4730),i=n(16521),a=(0,n(47831).default)(i.Z).withConfig({componentId:"sc-11btyqr-0"})([".ant-table-thead{.ant-table-cell{background:transparent;color:",";font-size:12px;font-weight:400;padding:0 16px;}tr{th,td{border-bottom:none;&:before{display:none;}}}}.ant-table-tbody{.ant-table-cell{color:",";font-size:14px;}> tr{&.ant-table-row:hover > td{background-color:transparent;}> td.ant-table-cell-row-hover{background-color:transparent;}}.ant-table-row.clickable-row .ant-table-cell{cursor:pointer;}.ant-table-row-level-1{background:#fafafa;.ant-checkbox-wrapper{position:relative;left:20px;}}}"],(function(e){return e.theme.color.manatee}),(function(e){return e.theme.color.blueBayoux})),c=n(85893),l=["columnsData","data"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){var t=e.columnsData,n=e.data,i=(0,r.Z)(e,l);return(0,c.jsx)(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({columns:t,dataSource:n},i))}},96673:function(e,t,n){n.d(t,{Z:function(){return p}});var o=n(59499),r=n(4730),i=n(47831),a=n(51904),c=(0,i.default)(a.Z).withConfig({componentId:"sc-1344jro-0"})(["border:1px solid ",";position:relative;background:transparent;border-radius:10px;padding:3px 7px;font-size:12px;color:",";display:inline-flex;align-items:center;margin:0;overflow:hidden;svg{margin-right:3px;}"," "," "," "," ",""],(function(e){return e.theme.color.mercury}),(function(e){return e.theme.color.firefly}),(function(e){var t=e.fontcolor;return t&&(0,i.css)(["color:",";"],t)}),(function(e){var t=e.colorMain;return t&&(0,i.css)(["border:1px solid ",";padding:3px 7px 3px 22px;&::before{content:'';position:absolute;width:8px;height:8px;top:calc(50% - 4px);left:8px;border-radius:3px;background-color:",";margin-right:5px;}"],t,t)}),(function(e){return"primary"===e.variant&&(0,i.css)(["background:",";border:1px solid ",";color:",";"],(function(e){return e.theme.color.blueRibbonLight}),(function(e){return e.theme.color.blueRibbonLight}),(function(e){return e.theme.color.blueRibbon}))}),(function(e){return"secondary"===e.variant&&(0,i.css)(["background:",";border:1px solid ",";color:",";border-radius:10px;font-size:10px;width:28px;height:20px;"],(function(e){return e.theme.color.gallery}),(function(e){return e.theme.color.gallery}),(function(e){return e.theme.color.riverBed}))}),(function(e){return e.noBorder&&(0,i.css)(["border:none;"])})),l=n(85893),d=["children"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=e.children,n=(0,r.Z)(e,d);return(0,l.jsx)(c,s(s({},n),{},{children:t}))}},97007:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(59499),r=n(31212),i=n(85893);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){return(0,i.jsx)(r.D,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))}},32892:function(e,t,n){n.d(t,{Z:function(){return m}});var o=n(67294),r=n(29676),i=n(85279),a=n(41664),c=n(84957),l=n(75730),d=function(e){try{var t=new Date,n=new Date(e)-t,o=Math.floor(n/864e5);if(o<0||Number.isNaN(o))throw new Error;return o}catch(r){return 0}},u=n(44990),s=n(47831),p=s.default.div.withConfig({componentId:"sc-1tkokgb-0"})(["display:flex;position:fixed;justify-content:center;top:0;z-index:15;width:100%;pointer-events:none;padding:20px 20px 20px 265px;"," "," @media (max-width:","px){z-index:0;position:relative;padding:75px 15px 15px;}@media (max-width:","px){","}"],(function(e){return!e.desktopOpen&&(0,s.css)(["padding:20px 20px 0 87px;"])}),(function(e){return e.bgLayerMode&&(0,s.css)(["background-color:",";"],(function(e){return e.theme.color.white}))}),(function(e){return e.theme.breakpoint.md}),(function(e){return e.theme.breakpoint.sm}),(function(e){return e.informativeTopMenuIsShow&&(0,s.css)(["padding-top:140px;"])})),f=s.default.div.withConfig({componentId:"sc-1tkokgb-1"})([""]),h=s.default.p.withConfig({componentId:"sc-1tkokgb-2"})(["display:inline-block;font-size:15px;font-weight:400;line-height:20px;margin-right:10px;color:",";&:before{background-image:url('/assets/icons/expired.svg');background-position:center;background-repeat:no-repeat;background-size:22px;content:'';height:22px;width:22px;margin:0 4px 2px 0;display:inline-block;vertical-align:middle;}@media (max-width:","px){font-size:12px;line-height:14px;text-align:center;margin-bottom:10px;&:before{display:none;}}"],(function(e){return e.theme.color.white}),(function(e){return e.theme.breakpoint.md})),x=s.default.div.withConfig({componentId:"sc-1tkokgb-3"})(["align-items:center;background-color:",";display:flex;height:66px;pointer-events:auto;justify-content:space-between;color:",";padding:10px 20px;border-radius:10px;@media (max-width:","px){width:100%;height:auto;padding:13px 15px 15px;flex-direction:column;justify-content:center;}a{font-weight:600;line-height:18px;padding:8px 12px 9px;color:",";background-color:",";@media (max-width:","px){font-size:12px;line-height:14px;}}",""],(function(e){return e.theme.color.razzmatazz}),(function(e){return e.theme.color.white}),(function(e){return e.theme.breakpoint.md}),(function(e){return e.theme.color.razzmatazz}),(function(e){return e.theme.color.white}),(function(e){return e.theme.breakpoint.md}),(function(e){var t=e.variant;return(0,s.css)([""," ",""],"trialWithCredits"===t&&(0,s.css)(["background-color:",";a{color:",";}"],(function(e){return e.theme.color.blueRibbon}),(function(e){return e.theme.color.blueRibbon})),"paidEmpty"===t&&(0,s.css)(["","{&:before{margin:0 6px 2px 0;background-size:18px;background-image:url('/assets/icons/switch.svg');}}"],h))})),b=n(85893);function m(e){var t=e.bgLayerMode,n=(0,l.Z)("trialBar"),s=(0,o.useState)(!1),m=s[0],g=s[1],v=(0,r.a)(),w=v.user,y=v.activeCheckoutBar,j=(0,i.H)(),k=j.desktopSidebarOpen,O=j.informativeTopMenuIsShow,C=d(w.trialPeriodExpiresAtUtc),z=null===n||void 0===n?void 0:n[y];if((0,o.useEffect)((function(){g(!0)}),[]),!z||!m||!y)return null;var I="paidEmpty"===y?"/buy-credits":"/plans";return(0,b.jsx)(p,{desktopOpen:k,bgLayerMode:t,informativeTopMenuIsShow:O,children:(0,b.jsxs)(x,{variant:y,children:[(0,b.jsx)(f,{children:z.getInfo&&(0,b.jsx)(h,{dangerouslySetInnerHTML:{__html:(0,c.Z)(z.getInfo(C))}})}),(0,b.jsx)(a.default,{href:I,passHref:!0,children:(0,b.jsx)(u.Z,{as:"a",children:z.button})})]})})}},46292:function(e,t,n){n.d(t,{Z:function(){return o.Z}});var o=n(32892)}}]);

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.