PageSourceSearch

https://accounts.wisedataagency.com/assets/js/SocialCalendarPage-DhzQDxO0.js

js wisedataagency.com collected 2026-10-02 00:37:23 UTC 8,738 bytes, 1 lines download raw bytes

1var le=Object.defineProperty,ce=Object.defineProperties;var de=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable;var M=(t,s,a)=>s in t?le(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,L=(t,s)=>{for(var a in s||(s={}))ue.call(s,a)&&M(t,a,s[a]);if(I)for(var a of I(s))pe.call(s,a)&&M(t,a,s[a]);return t},E=(t,s)=>ce(t,de(s));import{r,j as e,d as me,e as he}from"./vendor-DLu4vUfS.js";import{dT as R,ci as ge,bC as fe,f as _e,V as q,cu as je,Q as ye,bT as xe,aG as ve}from"./index-CcdK9N0Q.js";import{u as Se}from"./useMediaQuery-vBokRSTn.js";import{E as N}from"./EmptyState-DgfpXeyb.js";import{H as Ce}from"./HelpButton-BhePaGY6.js";import{h as be,i as Fe,j as Ne}from"./useSocialQueries-j1eTDg3v.js";import{u as Pe}from"./useSelectedProject-CF5b5sAF.js";import{f as we,p as Ae,u as Te,v as De,A as $,t as ke,a as Ie,C as Me,b as Le,c as Ee,d as Re,e as $e,D as qe}from"./DayPostsDrawer-1WYSYwqP.js";import{N as Ge,P as Ve}from"./PostDetailDrawer-B9mG7Nq0.js";import{P as Qe}from"./ProjectSelector-C0KgEsmt.js";import{P as x}from"./charts-BXvkUCkT.js";import{P as Be}from"./StatusBadge-BU2Fh_7P.js";import{u as Oe}from"./useSocialPaths-DfY3hKFF.js";import"./pdf-D7ObOTRE.js";import"./socialService-smNp41RB.js";import"./socialKeys-XFBZaRNK.js";import"./projectService-CMPzi5rp.js";import"./Select-DYuTPB7U.js";import"./SearchableSelect-B4nkBk-Q.js";import"./social.constants-yecRRGNb.js";import"./index-7mowtb0E.js";import"./index-B66__Fzh.js";import"./Pinterest-D49ezMff.js";import"./ChannelAvatar-BmjSVduF.js";import"./CategoryDot-CrFCAFYK.js";import"./useSocialMutations-CNDRZJP3.js";import"./uploadLimits-NR8vYI5u.js";import"./composer.rules-DP-8GdoT.js";import"./social.postStatus-BF3OG14w.js";import"./download--tuDmDw9.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:"7eaf0f2f64eb966cf5498c872668549f12796533"};var s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="e75666ef-ca6a-491e-afee-5d63c2e8b1a5",t._sentryDebugIdIdentifier="sentry-dbid-e75666ef-ca6a-491e-afee-5d63c2e8b1a5")}catch(a){}})();function Ye(t,{initialApprovalFilter:s=""}={}){const[a,d]=r.useState(""),[n,o]=r.useState(""),[i,u]=r.useState(""),[c,j]=r.useState(s),C=r.useMemo(()=>we(t,{statusFilter:a,channelFilter:n,categoryFilter:i,approvalFilter:c}),[t,a,n,i,c]);return{statusFilter:a,setStatusFilter:d,channelFilter:n,setChannelFilter:o,categoryFilter:i,setCategoryFilter:u,approvalFilter:c,setApprovalFilter:j,filtered:C}}const ze="instagram_business";function He({isActive:t,channels:s=[],channelFilter:a="",projectId:d=null}){const n=r.useMemo(()=>s.filter(c=>c.type===ze),[s]),o=r.useMemo(()=>{if(!t||n.length===0)return null;const c=n.find(j=>String(j.id)===String(a));return c?c.id:n[0].id},[t,n,a]),{data:i=[],isLoading:u}=be(o,d,t);return{posts:i,isLoading:u,hasChannel:n.length>0,resourceId:o,channels:n}}const Ke="_tile_1i0ui_1",We="_scheduled_1i0ui_17",Je="_image_1i0ui_31",Ue="_placeholder_1i0ui_38",Xe="_format_1i0ui_48",Ze="_overlay_1i0ui_59",et="_time_1i0ui_77",tt="_tag_1i0ui_78",g={tile:Ke,scheduled:We,image:Je,placeholder:Ue,format:Xe,overlay:Ze,time:et,tag:tt};function G({post:t,onClick:s}){const a=t.mediaType==="reels"||t.mediaType==="video",d=t.mediaType==="carousel",n=t.status==="scheduled",o=Ae(t);return e.jsxs("button",{type:"button",className:`${g.tile} ${n?g.scheduled:""}`,onClick:()=>s==null?void 0:s(t),title:t.content||"",children:[e.jsx(Be,{post:t,className:g.image,fallback:e.jsx("span",{className:g.placeholder,"aria-hidden":!0,children:a?e.jsx(R,{}):e.jsx(ge,{})})}),a||d?e.jsx("span",{className:g.format,"aria-hidden":!0,children:a?e.jsx(R,{}):e.jsx(fe,{})}):null,e.jsxs("span",{className:g.overlay,children:[e.jsx("span",{className:g.time,children:o}),n?e.jsx("span",{className:g.tag,children:"Agendado"}):null]})]})}G.propTypes={post:x.object.isRequired,onClick:x.func};const st="_wrapper_yjntq_1",at="_grid_yjntq_10",nt="_cell_yjntq_18",ot="_skeleton_yjntq_23",it="_divider_yjntq_29",rt="_legend_yjntq_40",lt="_legendMark_yjntq_49",f={wrapper:st,grid:at,cell:nt,skeleton:ot,divider:it,legend:rt,legendMark:lt},ct=6;function V({posts:t=[],isLoading:s=!1,hasChannel:a=!0,onSelectPost:d}){const n=r.useMemo(()=>t.filter(o=>o.status==="scheduled").length,[t]);return a?s?e.jsx("div",{className:f.grid,children:Array.from({length:ct}).map((o,i)=>e.jsx(q,{variant:"rectangular",borderRadius:6,className:f.skeleton},`feed-skeleton-${i}`))}):t.length===0?e.jsx(N,{icon:je,title:"Nenhuma publicação para esta conta ainda",description:"Agende um post para esta conta e ele aparece aqui, no lugar que vai ocupar no perfil."}):e.jsxs("div",{className:f.wrapper,children:[e.jsx("div",{className:f.grid,children:t.map((o,i)=>e.jsxs("div",{className:f.cell,children:[i===n&&n>
10?e.jsx("span",{className:f.divider,"aria-hidden":!0}):null,e.jsx(G,{post:o,onClick:d})]},o.id))}),n>0?e.jsxs("p",{className:f.legend,children:[e.jsx("span",{className:f.legendMark,"aria-hidden":!0})," Contorno tracejado: ainda não publicado."]}):null]}):e.jsx(N,{icon:_e,title:"Sem conta do Instagram neste projeto",description:"A prévia do feed simula a grade do perfil, então precisa de uma conta do Instagram conectada."})}V.propTypes={posts:x.array,isLoading:x.bool,hasChannel:x.bool,onSelectPost:x.func.isRequired};const dt="_container_1hthi_1",ut="_header_1hthi_6",pt="_titleContainer_1hthi_15",mt="_title_1hthi_15",ht="_subtitle_1hthi_28",gt="_headerActions_1hthi_34",ft="_listSkeleton_1hthi_40",_={container:dt,header:ut,titleContainer:pt,title:mt,subtitle:ht,headerActions:gt,listSkeleton:ft};function Kt(){var k;const t=me(),s=Oe(),[a,d]=r.useState("month"),[n,o]=r.useState(null),[i,u]=r.useState(null),[c,j]=r.useState(null),C=Se("(max-width: 480px)"),p=C&&a!=="grid"?"list":a,{viewDate:v,goPrev:Q,goNext:B,goToday:O}=Te(p),{projectId:m,setProjectId:Y,projects:z,isLoading:H}=Pe(),K=r.useMemo(()=>De(v),[v]),{data:P=[],isLoading:W}=Fe(E(L({},K),{projectId:m})),{data:A=[]}=Ne(m),[J]=he(),{statusFilter:U,setStatusFilter:X,channelFilter:T,setChannelFilter:Z,categoryFilter:ee,setCategoryFilter:te,approvalFilter:se,setApprovalFilter:ae,filtered:y}=Ye(P,{initialApprovalFilter:J.get("filtro")===$?$:""}),b=p==="grid",S=He({isActive:b,channels:A,channelFilter:T,projectId:m}),ne=r.useMemo(()=>{const l=new Map;for(const h of P)h.category&&!l.has(h.category.id)&&l.set(h.category.id,h.category);return Array.from(l.values())},[P]),oe=r.useMemo(()=>{if(!i)return[];const l=ke(i);return y.filter(h=>Ie(h)===l)},[i,y]),w=l=>t(`${s}/posts/novo?type=post&date=${l}&project=${m}`),F=l=>o(l.id),D=(l="post")=>t(`${s}/posts/novo?type=${l}&project=${m}`),ie=l=>{j(i),u(null),o(l.id)},re=()=>{o(null),c&&(u(c),j(null))};return e.jsxs(e.Fragment,{children:[e.jsx(ye,{title:"Calendário"}),e.jsxs("div",{className:_.container,children:[e.jsxs("div",{className:_.header,children:[e.jsxs("div",{className:_.titleContainer,children:[e.jsx("h1",{className:_.title,children:"Calendário"}),e.jsx("p",{className:_.subtitle,children:"Planeje e visualize suas publicações."}),e.jsx(Ce,{collection:"redes-sociais"})]}),e.jsxs("div",{className:_.headerActions,children:[e.jsx(Qe,{projects:z,projectId:m,onChange:Y,isLoading:H}),m?e.jsx(Ge,{onSelect:D}):null]})]}),m?e.jsxs(e.Fragment,{children:[e.jsx(Me,{viewDate:v,onPrev:Q,onNext:B,onToday:O,view:p,onViewChange:d,statusFilter:U,onStatusChange:X,channelFilter:b?String((k=S.resourceId)!=null?k:""):T,onChannelChange:Z,channels:b?S.channels:A,categoryFilter:ee,onCategoryChange:te,categories:ne,approvalFilter:se,onApprovalChange:ae,isMobile:C}),b?e.jsx(V,{posts:S.posts,isLoading:S.isLoading,hasChannel:S.hasChannel,onSelectPost:F}):W?p==="month"||p==="week"?e.jsx(Le,{}):e.jsx("div",{className:_.listSkeleton,children:Array.from({length:5}).map((l,h)=>e.jsx(q,{variant:"rectangular",height:64,borderRadius:12},`cal-skeleton-${h}`))}):y.length===0&&p==="list"?e.jsx(N,{icon:ve,title:"Nenhum post nesta janela",description:"Crie um post para começar a planejar.",cta:{label:"Novo post",onClick:()=>D("post"),variant:"primary"}}):p==="list"?e.jsx(Ee,{posts:y,onSelectPost:F}):p==="week"?e.jsx(Re,{viewDate:v,posts:y,onAddDay:w,onSelectPost:F}):e.jsx($e,{viewDate:v,posts:y,onAddDay:w,onSelectPost:F,onShowMore:u})]}):e.jsx(N,{icon:xe,title:"Selecione um projeto",description:"Escolha um projeto acima para planejar e visualizar suas publicações."})]}),e.jsx(qe,{date:i,posts:oe,isOpen:!!i,onClose:()=>u(null),onSelectPost:ie,onAddDay:w}),e.jsx(Ve,{postId:n,isOpen:!!n,onClose:re,base:s})]})}export{Kt 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.