PageSourceSearch

https://login.commonsku.com/dist/react/components-MPPreferencesPopup.c668acff.chunk.js

js commonsku.com collected 2026-10-02 03:16:20 UTC 3,532 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[2411],{93399(t,e,n){n.r(e),n.d(e,{default:()=>f});var s=n(22224),c=n.n(s),a=n(41594),l=n.n(a),o=n(98483),i=n(64128),d=n(48059),r=n(79618),_=n(3602),u=n(75158),p=n(64982),m=n(63988);const f=(0,i.A)(function(t){let{onClose:e,sync_started:n}=t;const s=(0,o.wA)(),i=(0,u.Us)(),[r,f]=(0,a.useState)(0),[g,b]=(0,a.useState)(!1),y=(0,o.d4)(t=>{let{temp:e}=t;return e.marketing_software}),h=(0,o.d4)(d.Tp.loading),x=(0,o.d4)(d.Tp.sync_state),T=(0,o.d4)(t=>c().get(t,"marketing_platforms.sync_details",{})),A=(0,o.d4)(d.Tp.syncing_status),C=(0,o.d4)(t=>c().get(t,"marketing_platforms.pereferences",p.hv)),j=(0,o.d4)(t=>{const e=c().get(t,"marketing_platforms.platform_data",{});return{total_contacts:c().get(e,"total_contacts",0),total_duplicates:c().get(e,"total_duplicates",null),total_duplicate_emails_contacts:c().get(e,"total_duplicate_emails_contacts",null),duplicate_emails:c().get(e,"duplicate_emails_contacts",[])||[],invalid_emails:c().get(e,"invalid_emails_contacts",[])||[]}}),v=l().useMemo(()=>{const t=c().get(C,"industry",[]),e=c().get(C,"client_status",[]),n=c().get(C,"department",[]);return t&&t.length>0&&e&&e.length>0&&n&&n.length>0},[C,y]),D=[{label:"Preferences",content:(0,m.jsx)(p.bd,{mp_preferences:C,platform_data:j,sync_started:n,syncing_status:A,sync_state:x,marketing_software:y,can_sync:v,can_re_sync:g,onClose:e})}].concat(n?[{label:"Failed",content:(0,m.jsx)(p.Z3,{type:"failed_contacts",action:"FAILED",default_comments:"Invalid Email or Sync timeout"},"failed_contacts_tab"),onClick:function(){s((0,d.Yp)({failed_contacts:"y",limit:20,offset:0}))}},{label:"HUBSPOT"===y?"Deleted":"Archived",content:(0,m.jsx)(p.Z3,{type:"HUBSPOT"==y?"deleted_contacts":"archived_contacts",action:"HUBSPOT"==y?"DELETED":"ARCHIVED",default_comments:"HUBSPOT"==y?"Deleted contact":"Archived contact"},"archived_contacts_tab"),onClick:function(){const t="HUBSPOT"==y?"deleted_contacts":"archived_contacts";s((0,d.Yp)({[t]:"y",limit:20,offset:0}))}},{label:"Unsubscribed",content:(0,m.jsx)(p.Z3,{type:"unsubscribed_contacts",action:"UNSUBSCRIBED",default_comments:"Unsubscribed contact"},"unsubscribed_contacts_tab"),onClick:function(){s((0,d.Yp)({unsubscribed_contacts:"y",limit:20,offset:0}))}}]:[]);return(0,a.useEffect)(()=>{n&&s((0,d.Yp)()),s((0,d.zo)(i.company_id)),s((0,d.qf)({mp_prefs:C}))},[]),(0,a.useEffect)(()=>{const t=setTimeout(()=>{s(n?(0,d.Yp)():(0,d.qf)({mp_prefs:C}))},5e3);return x||(c().get(T,"failed",0)>0||c().get(T,"unsubscribed",0)>0||c().get(T,"pending",0)>0||c().get(T,"archived",0)>0||c().get(T,"deleted",0)>0?b(!0):b(!1),clearTimeout(t)),()=>t&&clearTimeout(t)},[n,T,x]),(0,m.jsx)(_.Theme,{"data-test-name":"MPPreferencesPopup",children:(0,m.jsx)(_.Popup,{width:10/12*100+"%",style:{padding:"5px 25px",fontFamily:_.themeOptions.fonts.join(",")},onClose:e,title:`${y?c().upperFirst(c().lowerCase(y)):""} Sync`,controls:(0,m.jsx)(_.Button,{onClick:e,children:"Close"}),children:(0,m.jsx)("div",{className:"row",style:{overflow:"auto",marginBottom:"100px"},children:(0,m.jsx)(_.Row,{children:(0,m.jsxs)(_.Col,{xs:!0,padded:!0,children:[(0,m.jsx)(_.TabBar,{padded:!0,children:D.map((t,e)=>(0,m.jsx)(_.Tab,{size:D.length,selected:e==r,onClick:()=>{f(e);let t=D[e].onClick;t&&t()},children:t.label},"tabs_"+e))}),h?(0,m.jsx)(_.Loading,{}):D[r]?D[r].content:null]})})})})})},{[d.Ay.name]:d.Ay.reducer,[r.Ay.name]:r.Ay.reducer})}}]);
2//# sourceMappingURL=components-MPPreferencesPopup.c668acff.chunk.js.map

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.