source: trip-planner-front/node_modules/.cache/babel-webpack/78f2348e17d24783f2aae200a0bbda2c.json@ 59329aa

Last change on this file since 59329aa was fa375fe, checked in by Ema <ema_spirova@…>, 3 years ago

adding new components

  • Property mode set to 100644
File size: 11.6 KB
RevLine 
[fa375fe]1{"ast":null,"code":"'use strict'; // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)\n// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).\n\nvar ansiHTML = require('ansi-html');\n\nvar _require = require('html-entities'),\n AllHtmlEntities = _require.AllHtmlEntities;\n\nvar entities = new AllHtmlEntities();\nvar colors = {\n reset: ['transparent', 'transparent'],\n black: '181818',\n red: 'E36049',\n green: 'B3CB74',\n yellow: 'FFD080',\n blue: '7CAFC2',\n magenta: '7FACCA',\n cyan: 'C3C2EF',\n lightgrey: 'EBE7E3',\n darkgrey: '6D7891'\n};\nvar overlayIframe = null;\nvar overlayDiv = null;\nvar lastOnOverlayDivReady = null;\nansiHTML.setColors(colors);\n\nfunction createOverlayIframe(onIframeLoad) {\n var iframe = document.createElement('iframe');\n iframe.id = 'webpack-dev-server-client-overlay';\n iframe.src = 'about:blank';\n iframe.style.position = 'fixed';\n iframe.style.left = 0;\n iframe.style.top = 0;\n iframe.style.right = 0;\n iframe.style.bottom = 0;\n iframe.style.width = '100vw';\n iframe.style.height = '100vh';\n iframe.style.border = 'none';\n iframe.style.zIndex = 9999999999;\n iframe.onload = onIframeLoad;\n return iframe;\n}\n\nfunction addOverlayDivTo(iframe) {\n var div = iframe.contentDocument.createElement('div');\n div.id = 'webpack-dev-server-client-overlay-div';\n div.style.position = 'fixed';\n div.style.boxSizing = 'border-box';\n div.style.left = 0;\n div.style.top = 0;\n div.style.right = 0;\n div.style.bottom = 0;\n div.style.width = '100vw';\n div.style.height = '100vh';\n div.style.backgroundColor = 'rgba(0, 0, 0, 0.85)';\n div.style.color = '#E8E8E8';\n div.style.fontFamily = 'Menlo, Consolas, monospace';\n div.style.fontSize = 'large';\n div.style.padding = '2rem';\n div.style.lineHeight = '1.2';\n div.style.whiteSpace = 'pre-wrap';\n div.style.overflow = 'auto';\n iframe.contentDocument.body.appendChild(div);\n return div;\n}\n\nfunction ensureOverlayDivExists(onOverlayDivReady) {\n if (overlayDiv) {\n // Everything is ready, call the callback right away.\n onOverlayDivReady(overlayDiv);\n return;\n } // Creating an iframe may be asynchronous so we'll schedule the callback.\n // In case of multiple calls, last callback wins.\n\n\n lastOnOverlayDivReady = onOverlayDivReady;\n\n if (overlayIframe) {\n // We've already created it.\n return;\n } // Create iframe and, when it is ready, a div inside it.\n\n\n overlayIframe = createOverlayIframe(function () {\n overlayDiv = addOverlayDivTo(overlayIframe); // Now we can talk!\n\n lastOnOverlayDivReady(overlayDiv);\n }); // Zalgo alert: onIframeLoad() will be called either synchronously\n // or asynchronously depending on the browser.\n // We delay adding it so `overlayIframe` is set when `onIframeLoad` fires.\n\n document.body.appendChild(overlayIframe);\n} // Successful compilation.\n\n\nfunction clear() {\n if (!overlayDiv) {\n // It is not there in the first place.\n return;\n } // Clean up and reset internal state.\n\n\n document.body.removeChild(overlayIframe);\n overlayDiv = null;\n overlayIframe = null;\n lastOnOverlayDivReady = null;\n} // Compilation with errors (e.g. syntax error or missing modules).\n\n\nfunction showMessage(messages) {\n ensureOverlayDivExists(function (div) {\n // Make it look similar to our terminal.\n div.innerHTML = \"<span style=\\\"color: #\".concat(colors.red, \"\\\">Failed to compile.</span><br><br>\").concat(ansiHTML(entities.encode(messages[0])));\n });\n}\n\nmodule.exports = {\n clear: clear,\n showMessage: showMessage\n};","map":{"version":3,"sources":["C:/Users/DELL/Desktop/bachelor-thesis/trip-planner-front/node_modules/webpack-dev-server/client/overlay.js"],"names":["ansiHTML","require","_require","AllHtmlEntities","entities","colors","reset","black","red","green","yellow","blue","magenta","cyan","lightgrey","darkgrey","overlayIframe","overlayDiv","lastOnOverlayDivReady","setColors","createOverlayIframe","onIframeLoad","iframe","document","createElement","id","src","style","position","left","top","right","bottom","width","height","border","zIndex","onload","addOverlayDivTo","div","contentDocument","boxSizing","backgroundColor","color","fontFamily","fontSize","padding","lineHeight","whiteSpace","overflow","body","appendChild","ensureOverlayDivExists","onOverlayDivReady","clear","removeChild","showMessage","messages","innerHTML","concat","encode","module","exports"],"mappings":"AAAA,a,CAAc;AACd;;AAEA,IAAIA,QAAQ,GAAGC,OAAO,CAAC,WAAD,CAAtB;;AAEA,IAAIC,QAAQ,GAAGD,OAAO,CAAC,eAAD,CAAtB;AAAA,IACIE,eAAe,GAAGD,QAAQ,CAACC,eAD/B;;AAGA,IAAIC,QAAQ,GAAG,IAAID,eAAJ,EAAf;AACA,IAAIE,MAAM,GAAG;AACXC,EAAAA,KAAK,EAAE,CAAC,aAAD,EAAgB,aAAhB,CADI;AAEXC,EAAAA,KAAK,EAAE,QAFI;AAGXC,EAAAA,GAAG,EAAE,QAHM;AAIXC,EAAAA,KAAK,EAAE,QAJI;AAKXC,EAAAA,MAAM,EAAE,QALG;AAMXC,EAAAA,IAAI,EAAE,QANK;AAOXC,EAAAA,OAAO,EAAE,QAPE;AAQXC,EAAAA,IAAI,EAAE,QARK;AASXC,EAAAA,SAAS,EAAE,QATA;AAUXC,EAAAA,QAAQ,EAAE;AAVC,CAAb;AAYA,IAAIC,aAAa,GAAG,IAApB;AACA,IAAIC,UAAU,GAAG,IAAjB;AACA,IAAIC,qBAAqB,GAAG,IAA5B;AACAlB,QAAQ,CAACmB,SAAT,CAAmBd,MAAnB;;AAEA,SAASe,mBAAT,CAA6BC,YAA7B,EAA2C;AACzC,MAAIC,MAAM,GAAGC,QAAQ,CAACC,aAAT,CAAuB,QAAvB,CAAb;AACAF,EAAAA,MAAM,CAACG,EAAP,GAAY,mCAAZ;AACAH,EAAAA,MAAM,CAACI,GAAP,GAAa,aAAb;AACAJ,EAAAA,MAAM,CAACK,KAAP,CAAaC,QAAb,GAAwB,OAAxB;AACAN,EAAAA,MAAM,CAACK,KAAP,CAAaE,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1B;AACAC,EAAAA,UAAU,GAAG,IAAb;AACAD,EAAAA,aAAa,GAAG,IAAhB;AACAE,EAAAA,qBAAqB,GAAG,IAAxB;AACD,C,CAAC;;;AAGF,SAASsC,WAAT,CAAqBC,QAArB,EAA+B;AAC7BL,EAAAA,sBAAsB,CAAC,UAAUb,GAAV,EAAe;AACpC;AACAA,IAAAA,GAAG,CAACmB,SAAJ,GAAgB,yBAAyBC,MAAzB,CAAgCtD,MAAM,CAACG,GAAvC,EAA4C,sCAA5C,EAAoFmD,MAApF,CAA2F3D,QAAQ,CAACI,QAAQ,CAACwD,MAAT,CAAgBH,QAAQ,CAAC,CAAD,CAAxB,CAAD,CAAnG,CAAhB;AACD,GAHqB,CAAtB;AAID;;AAEDI,MAAM,CAACC,OAAP,GAAiB;AACfR,EAAAA,KAAK,EAAEA,KADQ;AAEfE,EAAAA,WAAW,EAAEA;AAFE,CAAjB","sourcesContent":["'use strict'; // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)\n// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).\n\nvar ansiHTML = require('ansi-html');\n\nvar _require = require('html-entities'),\n AllHtmlEntities = _require.AllHtmlEntities;\n\nvar entities = new AllHtmlEntities();\nvar colors = {\n reset: ['transparent', 'transparent'],\n black: '181818',\n red: 'E36049',\n green: 'B3CB74',\n yellow: 'FFD080',\n blue: '7CAFC2',\n magenta: '7FACCA',\n cyan: 'C3C2EF',\n lightgrey: 'EBE7E3',\n darkgrey: '6D7891'\n};\nvar overlayIframe = null;\nvar overlayDiv = null;\nvar lastOnOverlayDivReady = null;\nansiHTML.setColors(colors);\n\nfunction createOverlayIframe(onIframeLoad) {\n var iframe = document.createElement('iframe');\n iframe.id = 'webpack-dev-server-client-overlay';\n iframe.src = 'about:blank';\n iframe.style.position = 'fixed';\n iframe.style.left = 0;\n iframe.style.top = 0;\n iframe.style.right = 0;\n iframe.style.bottom = 0;\n iframe.style.width = '100vw';\n iframe.style.height = '100vh';\n iframe.style.border = 'none';\n iframe.style.zIndex = 9999999999;\n iframe.onload = onIframeLoad;\n return iframe;\n}\n\nfunction addOverlayDivTo(iframe) {\n var div = iframe.contentDocument.createElement('div');\n div.id = 'webpack-dev-server-client-overlay-div';\n div.style.position = 'fixed';\n div.style.boxSizing = 'border-box';\n div.style.left = 0;\n div.style.top = 0;\n div.style.right = 0;\n div.style.bottom = 0;\n div.style.width = '100vw';\n div.style.height = '100vh';\n div.style.backgroundColor = 'rgba(0, 0, 0, 0.85)';\n div.style.color = '#E8E8E8';\n div.style.fontFamily = 'Menlo, Consolas, monospace';\n div.style.fontSize = 'large';\n div.style.padding = '2rem';\n div.style.lineHeight = '1.2';\n div.style.whiteSpace = 'pre-wrap';\n div.style.overflow = 'auto';\n iframe.contentDocument.body.appendChild(div);\n return div;\n}\n\nfunction ensureOverlayDivExists(onOverlayDivReady) {\n if (overlayDiv) {\n // Everything is ready, call the callback right away.\n onOverlayDivReady(overlayDiv);\n return;\n } // Creating an iframe may be asynchronous so we'll schedule the callback.\n // In case of multiple calls, last callback wins.\n\n\n lastOnOverlayDivReady = onOverlayDivReady;\n\n if (overlayIframe) {\n // We've already created it.\n return;\n } // Create iframe and, when it is ready, a div inside it.\n\n\n overlayIframe = createOverlayIframe(function () {\n overlayDiv = addOverlayDivTo(overlayIframe); // Now we can talk!\n\n lastOnOverlayDivReady(overlayDiv);\n }); // Zalgo alert: onIframeLoad() will be called either synchronously\n // or asynchronously depending on the browser.\n // We delay adding it so `overlayIframe` is set when `onIframeLoad` fires.\n\n document.body.appendChild(overlayIframe);\n} // Successful compilation.\n\n\nfunction clear() {\n if (!overlayDiv) {\n // It is not there in the first place.\n return;\n } // Clean up and reset internal state.\n\n\n document.body.removeChild(overlayIframe);\n overlayDiv = null;\n overlayIframe = null;\n lastOnOverlayDivReady = null;\n} // Compilation with errors (e.g. syntax error or missing modules).\n\n\nfunction showMessage(messages) {\n ensureOverlayDivExists(function (div) {\n // Make it look similar to our terminal.\n div.innerHTML = \"<span style=\\\"color: #\".concat(colors.red, \"\\\">Failed to compile.</span><br><br>\").concat(ansiHTML(entities.encode(messages[0])));\n });\n}\n\nmodule.exports = {\n clear: clear,\n showMessage: showMessage\n};"]},"metadata":{},"sourceType":"script"}
Note: See TracBrowser for help on using the repository browser.