FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
mailpoet
/
assets
/
dist
/
js
Edit File: automation_flow_embed.js
"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[707],{41669(e){e.exports=jQuery},73561(e,t,o){var a=o(79124),n=o(75379),i=o(8301),s=o(67268),r=o(65490),d=o(10319),l=o(9513),c=o(37833),m=o(970),w=o(94256),p=o(98561),u=o(86106);function b(){return window.mailpoet_automation_id?(0,u.jsx)("div",{className:"mailpoet-automation-flow-embed",children:(0,u.jsx)(p.Q,{})}):(0,u.jsx)("div",{className:"flow-embed-error",children:(0,s.__)("No automation specified","mailpoet")})}window.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("mailpoet_automation_flow_embed");if(e&&((0,r.registerTranslations)(),(0,d.b)(),(0,c.createStore)(),(0,m.createStore)(),(0,l.g)(),(0,w.b)(),(0,i.L)(m.storeName).getSections().forEach(e=>{(0,n.J)(m.storeName).updateSection(e)}),(0,a.createRoot)(e).render((0,u.jsx)(b,{})),window.parent!==window)){let e=0;const t=()=>{const t=document.body.scrollHeight;t>0&&t!==e&&(e=t,window.parent.postMessage({type:"mailpoet-flow-embed-height",height:t},"*"))};new ResizeObserver(t).observe(document.body),window.addEventListener("load",t)}})}},e=>{e.O(0,[223],()=>e(e.s=73561)),e.O()}]);
Save
Back