{"version":3,"sources":["App.js","serviceWorker.js","index.js"],"names":["window","CargarDesignEditorHTML","data","App","editor","loadDesign","JSON","parse","onLoad","OnLoadEditorHTML","onDesignLoad","OnLoadContenidoEditorHTML","saveDesign","_this","design","selectImage","exportHtml","html","_this2","this","react_default","a","createElement","es","ref","options","locale","Component","IniciarEditorHTML","v1","v2","ReactDOM","render","App_App","document","getElementById","Boolean","location","hostname","match","ID","src_App","navigator","serviceWorker","ready","then","registration","unregister"],"mappings":"kPAiBCA,OAAOC,uBAAwB,SAASC,GACxCC,EAAIC,OAAOC,WAAWC,KAAKC,MAAML,SAG5BC,6MAwCHK,OAAS,WAETR,OAAOS,sBAMRC,aAAe,SAACR,GAEdF,OAAOW,0BAA0BT,MAMnCU,WAAa,WACXC,EAAKT,OAAOQ,WAAW,SAAAE,SAQzBC,YAAc,WACZF,EAAKT,OAAOW,YAAY,SAAAb,SAI1Bc,WAAa,WACXH,EAAKT,OAAOY,WAAW,SAAAd,GACCA,EAAjBY,OAAiBZ,EAATe,gFApDR,IAAAC,EAAAC,KAKP,OAAQC,EAAAC,EAAAC,cAACC,EAAA,EAAD,CACJC,IAAK,SAAApB,GAAM,OAAIc,EAAKd,OAASA,GAC/BI,OAAQW,KAAKX,OACXE,aAAcS,KAAKT,aACzBK,YAAaI,KAAKJ,YACjBU,QAAS,CACRC,OAAQ,kBA/BMC,aAmFlB3B,OAAO4B,kBAAoB,SAASC,EAAIC,GAEpCC,IAASC,OAAOZ,EAAAC,EAAAC,cAACW,EAAD,CAAKJ,GAAIA,EAAIC,GAAIA,IAAQI,SAASC,eAAe,UAKtDhC,QCrGKiC,QACW,cAA7BpC,OAAOqC,SAASC,UAEe,UAA7BtC,OAAOqC,SAASC,UAEhBtC,OAAOqC,SAASC,SAASC,MACvB,2DCTNvC,OAAO4B,kBAAoB,SAASY,EAAGX,EAAIC,GACvCC,IAASC,OAAOZ,EAAAC,EAAAC,cAACmB,EAAD,CAAKZ,GAAIA,EAAIC,GAAIA,IAAQI,SAASC,eAAeK,KDiH/D,kBAAmBE,WACrBA,UAAUC,cAAcC,MAAMC,KAAK,SAAAC,GACjCA,EAAaC","file":"static/js/main.4cd5c70c.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { render } from 'react-dom'\nimport EmailEditor from 'react-email-editor'\nimport ReactDOM from 'react-dom'\nimport {\n\n Grid, Header, Button, Icon\n\n} from 'semantic-ui-react';\n\n\n\nvar V1 = \"ERES FEOOO\";\n\n//const CargarDesignEditorHTML = (instance, someData) => {\n//}\n\n window.CargarDesignEditorHTML= function(data) {\n\tApp.editor.loadDesign(JSON.parse(data));\n \n}\nclass App extends Component {\n //CargarDesignEditorHTML = (someData) => { CargarDesignEditorHTML(this, someData); }\n // constructor(props) {\n // super(props);\n // }\n // componentDidMount: function() {\n // var $this = $(ReactDOM.findDOMNode(this).getElementsByClassName('blockbuilder-branding'))\n//var element = document.getElementsByClassName('blockbuilder-branding');\n//
\n //

react-email-editor Demo {this.props.v1}

\n\n //
\n // \n //
\n //
\n // \n //
\n //}\n\n\n render() {\n \n \n \n \n return this.editor = editor}\n\t\t onLoad={this.onLoad}\n onDesignLoad={this.onDesignLoad}\n\t\tselectImage={this.selectImage}\n\t\t options={{\n locale: 'es-ES'\n }} />\n \n //
\n\t // const node = ReactDOM.findDOMNode(this.editor).getElementsByClassName('blockbuilder-branding')\n //console.log(node);\n }\n\n \n onLoad = () => {\n //console.log('OKK')\n window.OnLoadEditorHTML();\n // $('.blockbuilder-branding').css(\"display\",\"none\")\n // this.editor.addEventListener('onDesignLoad', this.onDesignLoad)\n // this.editor.loadDesign(sample)\n }\n \n onDesignLoad = (data) => {\n // console.log('onDesignLoad', data)\n\t\t window.OnLoadContenidoEditorHTML(data); \n }\n \n \n \n\n saveDesign = () => {\n this.editor.saveDesign(design => {\n\t\n\t//window.OnGuardarHTML(design);\n\t\n //console.log('saveDesign', design)\n // alert(\"Design JSON has been logged in your developer console.\")\n })\n }\n selectImage = () => {\n this.editor.selectImage(data => {\n\t//alert(\"SE SUBE IMAGEN\")\n })\n }\n exportHtml = () => {\n this.editor.exportHtml(data => {\n\t const { design, html } = data\n\t//window.OnExportarEditorHTML(data);\n\t // console.log('design',design)\n // console.log('exportHtml', html)\n // alert(\"Output HTML has been logged in your developer console.\")\n })\n }\n\n \n \n}\nwindow.IniciarEditorHTML = function(v1, v2) {\n\n ReactDOM.render(, document.getElementById('root'))\n}\n\n//render(, document.getElementById('root'))\n\nexport default App;\n","// In production, we register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://goo.gl/SC7cgQ'\n );\n });\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.');\n\n // Execute callback\n if (config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n if (\n response.status === 404 ||\n response.headers.get('content-type').indexOf('javascript') === -1\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\n\nwindow.IniciarEditorHTML = function(ID,v1, v2) {\n ReactDOM.render(, document.getElementById(ID))\n}\n\n\n//ReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: http://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}