PageSourceSearch

https://meuajudante.com.br/_next/static/chunks/pages/ma-my-admin/a…/[ads_id]/relatorio-578bf6881d8d7f3c.js

js meuajudante.com.br collected 2026-09-24 10:44:59 UTC 10,841 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2790,85222],{12353:(e,n,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/ma-my-admin/analises/anuncios/[ads_id]/relatorio",function(){return a(83569)}])},72340:(e,n,a)=>{"use strict";a.d(n,{mz:()=>r,PZ:()=>h,Ph:()=>m,cw:()=>o,SN:()=>s,F$:()=>c,eL:()=>d,TH:()=>t});var i=a(13464),l=a(72966);function t(){return(0,i.n_)({mutationFn:e=>l.A.ads.update(e.ads_id,e)})}function d(){return(0,i.n_)({mutationFn:e=>l.A.ads.removeById(e)})}function s(){return(0,i.n_)({mutationFn:e=>l.A.ads.create(e)})}function r(e){let n=["ads-by-id",e];return(0,i.Ou)(n,()=>l.A.ads.getById(e),{enabled:!!e})}function o(){let{limit:e=1e3,page:n=1,filters:a,orders:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=["ads-list",e,n,JSON.stringify(a),JSON.stringify(t)];return(0,i.Ou)(d,()=>l.A.ads.listAll({page:n,limit:e,filters:a,orders:t}))}function c(){return(0,i.n_)({mutationFn:e=>l.A.ads.createManySameType(e)})}function h(e){let n=["ads-reach",JSON.stringify(e)];return(0,i.Ou)(n,()=>l.A.ads.getReach(e),{enabled:e.length>0})}function m(){return(0,i.Ou)(["ads-internal-routes"],()=>l.A.ads.getInternalRoutes(),{refetchOnWindowFocus:!1})}(0,i.eO)().useActions},83569:(e,n,a)=>{"use strict";a.r(n),a.d(n,{__N_SSP:()=>j,default:()=>B});var i=a(36303),l=a(78594),t=a(22738),d=a(52327),s=a.n(d),r=a(3997),o=a(82643),c=a(87361),h=a(30498),m=a(72340),u=a(13464),p=a(72966),Y=a(76180),f=a(11493),g=a(78743),A=a(41144),_=a(9904),v=a(89275),D=a(75786),N=a(23243),F=a(72928),b=a(60575),w=a(95811),y=a(82422),k=a(53735),P=a(87479),x=a(47082),O=a(50147),T=a(40076),R=a(36564),S=a(44588),I=a(68658),M=a(24462);let E=e=>{let{children:n,className:a=""}=e;return(0,i.Y)("li",{className:(0,Y.Q)("theme-body-sm-medium flex flex-wrap",a),children:n})},q=e=>{let{children:n,className:a=""}=e;return(0,i.Y)("span",{className:(0,Y.Q)("text-theme-feedback-notify block font-bold w-60",a),children:n})},z=e=>{let{period:n}=e;return(0,i.FD)(i.FK,{children:[(0,i.Y)("span",{children:n[0]?s()(n[0]).format("DD/MM/YYYY - HH:mm"):"Indefinido"}),(0,i.Y)("span",{className:"text-theme-highlight",children:"|"}),(0,i.Y)("span",{children:n[1]?s()(n[1]).format("DD/MM/YYYY - HH:mm"):"Indefinido"})]})},C=e=>{let{period:n}=e;return(0,i.FD)(i.FK,{children:[(0,i.Y)("span",{children:s()(n[0]).format("DD/MM/YYYY")}),(0,i.Y)("span",{className:"text-theme-highlight",children:"|"}),(0,i.Y)("span",{children:s()(n[1]).format("DD/MM/YYYY")})]})},H=(0,I.memo)(M.A);function L(e){var n,a;let l,{ads_id:t,active:d,type:r,average_watch_time:o,brand:c,watch_time:h,minimum_watch_time:m,qtd_views:u,qtd_users_reached:p,qtd_clicks:I,qtd_watched_complete:M,conversion_complete_watch:L,conversion_clicks:Q,period_active:V,redirect:j,isLoading:B,isLoadingRequest:J,onToggleActive:K,content:U,finded:$,dialogFilterPeriodProps:X,toggleDialogFilterPeriod:W}=e;if(B)d=!0,t="1",c="Marketing group. LTDA",r="top_banner_app",h=30,m=30,j="https://google.com",u=232,p=5,I=5,M=78,o=1.7,L=.5,Q=.2,V=["2023-01-01 09:30","2023-12-31 23:59"];else if(!$)return(0,i.Y)(D.A,{children:(0,i.Y)("section",{className:"grid grid-cols-1 gap-3",children:(0,i.Y)("article",{children:(0,i.FD)(k.A,{className:"w-full",children:[(0,i.Y)(P.A,{className:"py-4",children:(0,i.Y)(x.A,{children:"An\xfancio n\xe3o encontrado"})}),(0,i.Y)(O.A,{}),(0,i.Y)(T.A,{className:"p-6",children:"O an\xfancio solicitado n\xe3o foi encontrado!"})]})})})});let Z=!!(null==(a=X.initialValues)||null==(n=a.period)?void 0:n.filter(
1Boolean).length),G="top_banner_app"===r||"top_banner_web"===r;return(0,i.FD)(i.FK,{children:[(0,i.Y)(H,{...X}),(0,i.Y)(f.A,{open:J}),(0,i.Y)(D.A,{children:(0,i.Y)("section",{className:"grid grid-cols-1 gap-3",children:(0,i.Y)("article",{children:(0,i.FD)(k.A,{className:"w-full",children:[(0,i.FD)(P.A,{className:"flex flex-wrap items-center justify-between py-4 gap-5",children:[(0,i.Y)(x.A,{children:"Resumo"}),!B&&(0,i.FD)("div",{className:"flex gap-1 items-center flex-wrap",children:[(0,i.Y)(A.A,{startIcon:(0,i.Y)(w.A,{}),label:"Filtrar por per\xedodo",endIcon:Z?(0,i.FD)("span",{className:"hidden sm:inline",children:["|\xa0"," ",(l=X.initialValues.period,"".concat(s()(l[0]).format("DD/MM/YYYY")," - ").concat(s()(l[1]).format("DD/MM/YYYY")))]}):void 0,size:"small",className:"max-sm:hidden",onClick:W}),(0,i.FD)("div",{className:"flex items-stretch sm:hidden",children:[Z&&(0,i.Y)("div",{className:" rounded-md px-4 py-1.5 bg-theme-3 shadow-theme-dp-1  flex justify-between items-center gap-3 theme-body-sm-medium rounded-tr-none rounded-br-none ",children:(0,i.Y)(C,{period:X.initialValues.period})}),(0,i.Y)(_.A,{fullRounded:!1,icon:(0,i.Y)(w.A,{}),label:"Filtrar por per\xedodo",size:"small",className:Z?"rounded-tl-none rounded-bl-none":"",onClick:W})]}),(0,i.Y)(A.A,{startIcon:(0,i.Y)(y.A,{}),label:"Editar",size:"small",className:"max-sm:hidden",isLink:!0,href:N.I.parsePushTo("ADS_UPDATE",t)}),(0,i.Y)(_.A,{fullRounded:!1,icon:(0,i.Y)(y.A,{}),label:"Editar",size:"small",className:"sm:hidden",isLink:!0,href:N.I.parsePushTo("ADS_UPDATE",t)}),(0,i.Y)(R.A,{control:(0,i.Y)(S.A,{onChange:e=>K(e.target.checked),name:t,value:d,checked:d}),labelPlacement:"start",className:"[&_span]:theme-body-sm-normal",label:d?"Ativo":"Inativo"})]})]}),(0,i.Y)(O.A,{}),(0,i.FD)(T.A,{className:"p-6 flex flex-wrap justify-between items-start gap-5",children:[(0,i.FD)("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-4",children:[(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"ID An\xfancio:"}),(0,i.Y)("span",{className:B?"skeleton":"",children:t})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Marca:"}),(0,i.Y)("span",{className:B?"skeleton":"",children:c})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Tipo:"}),(0,i.Y)("span",{className:B?"skeleton":"",children:r})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Ativo:"}),(0,i.Y)(g.A,{label:d?"Sim":"N\xe3o",color:d?"success":"danger",className:(0,Y.Q)("w-16",B?"skeleton":"")})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Tempo de exibi\xe7\xe3o (s):"}),(0,i.FD)("span",{className:B?"skeleton":"",children:[F.A.msToSecond(h),"s"]})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Tempo m\xednimo de exibi\xe7\xe3o (s):"}),(0,i.FD)("span",{className:B?"skeleton":"",children:[F.A.msToSecond(m),"s"]})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Redirecionamento:"}),(0,i.Y)("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:(B?"skeleton":"")+" text-blue-500 hover:underline",children:j})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Qtd. visualiza\xe7\xe3o:"}),(0,i.Y)("span",{className:B?"skeleton":"",children:u})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Usu\xe1rios atingidos:"}),(0,i.Y)("span",{className:B?"skeleton":"",children:p})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Qtd. clicks:"}),(0,i.Y)("span",{className:B?"skeleton":"",children:I})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Qtd. assistiu por completo:"}),(0,i.Y)("span",{className:B?"skeleton":"",children:M})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Tempo m\xe9dio visualiza\xe7\xe3o:"}),(0,i.FD)("span",{className:B?"skeleton":"",children:[F.A.msToSecond(o),"s"]})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Convers\xe3o visualiza\xe7\xe3o completa:"}),(0,i.FD)("span",{className:B?"skeleton":"",children:[b.A.parseToPercent(L),"%"]})]}),(0,i.FD)(E,{children:[(0,i.Y)(q,{children:"Convers\xe3o de clicks:"}),(0,i.FD)("span",{className:B?"skeleton":"",children:[b.A.parseToPercent(Q),"%"]})]}),V&&V.filter(Boolean).length>0&&(0,i.FD)(E,{className:"sm:col-span-2 items-center",children:[(0,i.Y)(q,{className:"w-auto mr-2",children:"Per\xedodo an\xfancio ativo:"}),(0,i.Y)("div",{className:(0,Y.Q)("\n                                                        rounded-md px-4 py-2 border border-theme-background-3 \n                                                        flex justify-between items-center gap-3\n                                                    ",B&&"skeleton"),children:(0,i.Y)(z,{period:V})})]})]}),!B&&(0,i.Y)(v.A,{isImage:G,controls:!0,className:"max-h-[260px] rounded-md max-sm:w-max w-auto",src:U.src})]})]})})})})]})}class Q extends c.H{setDeps(e){this.deps=e}toggleFilterPeriod(){this.filterPeriodOpen=!this.filterPeriodOpen}toggleActiveAds(e){this.deps.updateAds({ads_id:this.deps.adsId||"",is_paused:!e},{onSuccess:(e,n,a)=>{(0,o.oR)(e.message,{type:"success"}),this.deps.refetchAdsAnalytic()},onError:(e,n,a)=>{(0,o.oR)(e.message,{type:"error"})}})}constructor(...e){super(...e),this.filterPeriodOpen=!1,this.filterPeriodRange=c.H.reactive(new h.A("peri
1od",{onSubmit:()=>this.toggleFilterPeriod(),onReset:()=>this.toggleFilterPeriod(),initialValues:{period:[s()().add(-30,"day").startOf("day").toDate(),s()().endOf("day").toDate()]}}))}}function V(){let e=(0,r.useParams)().ads_id,n=(0,m.TH)(),a=(0,c.A)(()=>new Q),l=function(e,n){let a=["ads-analytic-by-id",e,JSON.stringify(n)];return(0,u.Ou)(a,()=>p.A.adsAnalytic.getAnalyticsAdsById(e,n),{enabled:!!e})}(e||"",a.$(e=>{var n,a,i,l;return{period:{start:null==(a=e.filterPeriodRange.value)||null==(n=a.period)?void 0:n[0],end:null==(l=e.filterPeriodRange.value)||null==(i=l.period)?void 0:i[1]}}}));return a.setDeps({updateAds:n.mutate,adsId:e||"",refetchAdsAnalytic:l.refetch}),a.$(e=>{var n,a,t,d,s,r,o,c,h,m,u,p,Y,f,g,A;return(0,i.Y)(L,{isLoading:l.isLoading,isLoadingRequest:l.isRefetching,finded:!!l.data,active:!(null==(n=l.data)?void 0:n.ads.is_paused),ads_id:(null==(a=l.data)?void 0:a.ads.id)||"",brand:(null==(t=l.data)?void 0:t.brand.name)||"",type:null==(d=l.data)?void 0:d.ads.type,watch_time:(null==(s=l.data)?void 0:s.ads.display_time)||0,minimum_watch_time:(null==(r=l.data)?void 0:r.ads.display_time_for_close)||0,redirect:(null==(o=l.data)?void 0:o.ads.click_href)||"",qtd_views:(null==(c=l.data)?void 0:c.showed_qtd)||0,qtd_users_reached:(null==(h=l.data)?void 0:h.users_watched)||0,qtd_clicks:(null==(m=l.data)?void 0:m.click_qtd)||0,qtd_watched_complete:(null==(u=l.data)?void 0:u.watched_completed_qtd)||0,average_watch_time:(null==(p=l.data)?void 0:p.average_time_watched)||0,conversion_complete_watch:(null==(Y=l.data)?void 0:Y.percentual_time_watched)||0,conversion_clicks:(null==(f=l.data)?void 0:f.percentual_click)||0,period_active:(null==(g=l.data)?void 0:g.ads.period)||null,onToggleActive:e.toggleActiveAds,content:{src:(null==(A=l.data)?void 0:A.ads.src)||""},dialogFilterPeriodProps:{open:e.filterPeriodOpen,onSubmit:e.filterPeriodRange.onSubmit,onClose:e.toggleFilterPeriod,initialValues:e.filterPeriodRange.value,onReset:e.filterPeriodRange.reset},toggleDialogFilterPeriod:e.toggleFilterPeriod})})}var j=!0;let B=()=>((0,t.VY)(),(0,i.FD)(i.FK,{children:[(0,i.Y)(l.bV,{title:"Meu ajudante - An\xe1lise de an\xfancio - Relat\xf3rio",nofollow:!0,noindex:!0}),(0,i.Y)(V,{})]}))}},e=>{e.O(0,[40316,12940,25673,3997,17349,28894,7888,90636,46593,38792],()=>e(e.s=12353)),_N_E=e.O()}]);

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.