1"use strict";(globalThis.webpackChunkcometchat_dashboard=globalThis.webpackChunkcometchat_dashboard||[]).push([[4183],{4183(e,a,t){t.r(a),t.d(a,{default:()=>l});var n=t(65043),o=t(58443),s=t(48806),i=t(70579);const r=o.A.campaignsDomain,l=()=>{const e=(0,n.useRef)(null),a=(0,n.useMemo)(()=>{try{const e=sessionStorage.getItem("campaignsAppConfig");if(!e)return null;const a=JSON.parse(e);return{appId:a.appId||"",region:a.region||"us",apiKey:a.apiKey||"",authToken:(0,s.c4)()||""}}catch{return null}},[]);return(0,n.useEffect)(()=>{document.title="CometChat Campaigns"},[]),(0,n.useEffect)(()=>{if(!a)return;const t=t=>{var n,o;t.origin===new URL(r).origin&&("cometchat-campaigns-ready"===(null===(n=t.data)||void 0===n?void 0:n.type)&&(null===(o=e.current)||void 0===o||o.contentWindow.postMessage({type:"cometchat-app-config",appId:a.appId,region:a.region,apiKey:a.apiKey,authToken:a.authToken},new URL(r).origin)))};return window.addEventListener("message",t),()=>window.removeEventListener("message",t)},[a]),a?(0,i.jsx)("iframe",{ref:e,src:r,title:"CometChat Campaigns",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-downloads",style:{width:"100%",height:"100vh",border:"none",display:"block"}}):(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh"},children:(0,i.jsx)("p",{children:"Unable to load campaigns. Please open this page from the dashboard sidebar."})})}}}]); 2//# sourceMappingURL=4183.50a1efe1.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.