@openedx/frontend-build 15.0.0-alpha.4 → 15.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/commitlint.yml +1 -8
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/index.html +1 -1
- package/example/dist/{app.9b26aa9c728d62e6064d.css → app.09a2e8d2732091b5c03c.css} +1 -1
- package/example/dist/{app.9b26aa9c728d62e6064d.css.map → app.09a2e8d2732091b5c03c.css.map} +1 -1
- package/example/dist/app.09a2e8d2732091b5c03c.js +2 -0
- package/example/dist/app.09a2e8d2732091b5c03c.js.map +1 -0
- package/example/dist/babel/App.js +1 -1
- package/example/dist/babel/App.js.map +1 -1
- package/example/dist/babel/index.js +1 -1
- package/example/dist/babel/index.js.map +1 -1
- package/example/dist/index.html +1 -1
- package/example/dist/report.html +2 -2
- package/package.json +5 -5
- package/example/dist/app.9b26aa9c728d62e6064d.js +0 -2
- package/example/dist/app.9b26aa9c728d62e6064d.js.map +0 -1
|
@@ -7,11 +7,4 @@ on:
|
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
9
|
commitlint:
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Check out repository
|
|
13
|
-
uses: actions/checkout@v3
|
|
14
|
-
with:
|
|
15
|
-
fetch-depth: 0
|
|
16
|
-
- name: Check commits
|
|
17
|
-
uses: wagoid/commitlint-github-action@v5
|
|
10
|
+
uses: openedx/.github/.github/workflows/commitlint.yml@master
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1718097453600" clover="3.2.0">
|
|
3
|
+
<project timestamp="1718097453600" name="All files">
|
|
4
4
|
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
|
|
5
5
|
</project>
|
|
6
6
|
</coverage>
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage generated by
|
|
88
88
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
89
|
-
at 2024-
|
|
89
|
+
at 2024-06-11T09:17:33.594Z
|
|
90
90
|
</div>
|
|
91
91
|
<script src="prettify.js"></script>
|
|
92
92
|
<script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.
|
|
1
|
+
{"version":3,"file":"app.09a2e8d2732091b5c03c.css","mappings":"AAEA,GACE,SAHS,CAMX,4BACE,iBADF,4BACE,gB","sources":["webpack://example/./src/style.scss"],"sourcesContent":["$h3-color: red;\n\nh3 {\n color: $h3-color;\n}\n\n.text-align-right {\n text-align: right;\n}\n"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkexample=self.webpackChunkexample||[]).push([[524],{882:(e,t,r)=>{"use strict";var n=r(799),a=r(280),s=r.n(a),i=r(318),c=r(182);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var l=["alt"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(e){var t=e.alt,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,l);return(0,c.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({alt:t},r))};f.defaultProps={alt:void 0,style:void 0};const h=f;var d,m,b,g,y;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(null,arguments)}var v=function(e){return i.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg","data-name":"\\u0421\\u043B\\u043E\\u0439 1",viewBox:"0 0 100 125"},e),d||(d=i.createElement("path",{d:"m48.292 20.913 1.258 7.637a30 30 0 0 0 3.912-.378c2.385-.533 4.713-1.327 7.102-1.839.664-.142 1.459.326 2.194.514-.514.487-.947 1.22-1.556 1.423a42.6 42.6 0 0 1-15.177 2.408 20.86 20.86 0 0 1-11.076-3.712 2.8 2.8 0 0 1-.517-.49 1.7 1.7 0 0 1-.175-.423c.86-1.194 1.826-.492 2.778-.115a47 47 0 0 0 5.506 2.102c2.142.548 2.496.112 2.158-2.033-.158-1.002-.454-1.983-.7-2.971a2.1 2.1 0 0 0-2.205-1.717 16.7 16.7 0 0 0-8.18 1.666c-1.214.596-2.445 1.795-4.573.26l1.822-1.04a19.6 19.6 0 0 1 8.767-2.946c3.644-.188 3.354-.397 4.832-3.62a43 43 0 0 1 4.924-7.44 27 27 0 0 1 3.394-3.432c.887-.828 2.1-1.14 2.86-.149a2.95 2.95 0 0 1 .252 2.678 17.6 17.6 0 0 1-3.252 3.777 11.94 11.94 0 0 0-3.691 7.016 9.6 9.6 0 0 0-.01 1.43c4.673-.532 8.678 1.55 12.912 2.71 1.424.391 3.072-.1 4.616-.076 7.752.122 15.007 1.705 20.628 7.564a16.2 16.2 0 0 1 2.477 3.902 33.48 33.48 0 0 1 3.617 18.76 57.4 57.4 0 0 1-3.119 15.243c-2.933 7.717-6.358 15.172-13.498 20.072a43.4 43.4 0 0 1-12.244 6.257c-1.145.335-2.265.757-3.397 1.136-4.8 1.61-9.576.768-14.373-.074-3.176-.558-6.38-.956-9.579-1.38a29.9 29.9 0 0 1-10.196-3.692c-4.505-2.401-8.054-5.781-11.477-9.377a25.7 25.7 0 0 1-6.8-13.015 81 81 0 0 1-1.564-23.374c.52-5.428 2.032-10.596 5.905-14.452 2.3-2.288 5.553-3.653 8.47-5.268a12.9 12.9 0 0 1 4.23-1.427c.715-.11 1.559.623 2.344.975a7.7 7.7 0 0 1-1.972 1.11c-4.793 1.025-9.263 2.823-12.294 6.772a24.4 24.4 0 0 0-4.743 13.49 78.6 78.6 0 0 0 .417 16.109c1.07 7.837 3.758 14.72 10.052 20.008a65.6 65.6 0 0 0 10.197 7.573c4.092 2.268 8.61 2.834 13.12 3.43 3.115.413 6.236.428 9.38 1.053 2.951.587 6.323-.085 9.339-.865a43.9 43.9 0 0 0 14.436-7.078 23.05 23.05 0 0 0 8.217-10.002c1.844-4.472 3.651-8.96 5.358-13.486 1.728-4.581 1.364-9.434 1.628-14.204.26-4.707-1.328-8.914-3.338-13.026-2.82-5.77-7.844-8.549-13.78-9.914a63 63 0 0 0-7.3-.857c-.297-.033-.663-.138-.888-.013-3.433 1.911-6.273-.39-9.332-1.24-2.507-.695-5.06-1.226-8.096-1.95"})),m||(m=i.createElement("path",{d:"M18.806 79.422a94 94 0 0 1-4.432-8.44c-2.234-5.48-2.678-11.377-3.27-17.194-.464-4.56.356-9.056 1.4-13.494a1.92 1.92 0 0 1 .548-1.103 5.3 5.3 0 0 1 1.501-.48c.07.488.372 1.121.172 1.443-3.97 6.397-2.759 13.274-2.045 20.147a39.8 39.8 0 0 0 4.424 14.103c.794 1.554 1.703 3.05 2.559 4.573zM71.066 81.567c-1.856 2.462-3.676 4.954-5.606 7.357-.294.366-1.096.325-1.663.473.114-.534.059-1.214.371-1.578a134 134 0 0 1 5.06-5.533 7.5 7.5 0 0 1 1.615-.999ZM64.625 58.938 63.58 70.015l-.563-.026c.047-.932.14-1.864.133-2.795-.019-2.38-.13-4.761-.09-7.14.007-.513.49-1.018.755-1.527Z"})),b||(b=i.createElement("path",{d:"M16.307 54.974c-.114-.165-.333-.335-.337-.51a546 546 0 0 1-.187-9.589 2.17 2.17 0 0 1 .442-1.148.83.83 0 0 1 .736-.271.78.78 0 0 1 .38.671c-1.248 3.5-1.022 7.1-.793 10.704.002.024-.089.055-.241.143M73.758 52.915c-.484-1.653-1.011-3.295-1.409-4.967-.067-.285.424-.703.657-1.059.35.258.972.483 1.007.779.205 1.713.272 3.443.386 5.167ZM53.81 71.398l.793-7.98.473.045c.73 2.756-.035 5.38-.746 8.008ZM50.797 89.664l1.357-1.745a6.2 6.2 0 0 1 1.017 1.96c.062.547-.48 1.163-.754 1.749zM79.708 75.525l1.242-3.701c.906 2.101.708 2.914-1.242 3.701M44.125 88.245a10 10 0 0 1 1.022-.915 6 6 0 0 1 1.238 1.307c.065.1-.568.825-.615.798a16 16 0 0 1-1.645-1.19M52.803 79.592l.47-4.388.683.083-.579 4.43Z"})),g||(g=i.createElement("text",{y:115,fontFamily:"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif",fontSize:5,fontWeight:"bold"},"Created by Roman")),y||(y=i.createElement("text",{y:120,fontFamily:"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif",fontSize:5,fontWeight:"bold"},"from the Noun Project")))};const O=r.p+"cb28cdb1468c915e27e5cec9af64f22f.svg",x=r.p+"1382e1cbf8d733d7301cdd212192bfea.jpg";function E(){var e=[].concat(["macintosh","granny smith"],["fuji","golden delicious"]);return(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{children:"Test page"}),(0,c.jsx)("h2",{children:"SCSS parsing tests"}),(0,c.jsx)("h3",{children:"The Apples"}),' ("The Apples" should be red)',(0,c.jsx)("h2",{children:"ES6 parsing tests"}),(0,c.jsx)("ul",{children:e.map((function(e){return(0,c.jsx)("li",{children:e},e)}))}),(0,c.jsx)("h2",{children:"JSX parsing tests"}),(0,c.jsx)(v,{style:{width:"10rem"}}),(0,c.jsx)("h2",{children:"TSX parsing tests"}),(0,c.jsx)(h,{src:O,alt:"appleFromTsx",style:{width:"10rem"}}),(0,c.jsx)("h2",{children:"Asset import tests"}),(0,c.jsx)("img",{src:O,alt:"apple",style:{width:"10rem"}}),(0,c.jsx)("img",{src:O,alt:"apple",style:{width:"10rem"}}),(0,c.jsx)("br",{}),(0,c.jsx)("img",{src:x,alt:"apple",style:{width:"10rem"}}),(0,c.jsx)("p",{children:"Photo by Louis Hansel @shotsoflouis on Unsplash"}),(0,c.jsx)("h2",{children:"process.env tests"}),(0,c.jsxs)("p",{children:["Test process.env variable: ","MISSING_ENV_VAR".TEST_VARIABLE]}),(0,c.jsxs)("p",{children:["Non-existent process.env variable (nothing here is good): ","MISSING_ENV_VAR".I_AM_NOT_HERE]}),(0,c.jsx)("h2",{children:"env.config.js tests"}),(0,c.jsxs)("p",{children:[(0,c.jsx)("span",{children:"env.config.js boolean test: "}),!1===s().FALSE_VALUE?s().CORRECT_BOOL_VALUE:s().INCORRECT_BOOL_VALUE]}),(0,c.jsxs)("p",{children:["env.config.js integer test: ",Number.isInteger(s().INTEGER_VALUE)?"It was an integer. Great.":"It was not an integer! Why not? "]}),(0,c.jsx)("h2",{children:"Right-to-left language handling tests"}),(0,c.jsx)("p",{className:"text-align-right",children:"I'm aligned right, but left in RTL."})]})}r.g.document.getElementsByTagName("html")[0].setAttribute("dir","ltr"),n.render((0,c.jsx)(E,{}),document.getElementById("root"))},280:e=>{e.exports={FALSE_VALUE:!1,CORRECT_BOOL_VALUE:"Good, false meant false. We did not cast a boolean to a string.",INCORRECT_BOOL_VALUE:"Why was a false boolean true?",INTEGER_VALUE:123}}},e=>{e.O(0,[652],(()=>(882,e(e.s=882)))),e.O()}]);
|
|
2
|
+
//# sourceMappingURL=app.09a2e8d2732091b5c03c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.09a2e8d2732091b5c03c.js","mappings":"k/BAQA,IAAMA,EAAQ,SAAHC,GAAA,IAAMC,EAAGD,EAAHC,IAAQC,E,yWAAIC,CAAAH,EAAAI,GAAA,OAAkBC,EAAAA,EAAAA,KAAA,M,+VAAAC,CAAA,CAAKL,IAAKA,GAASC,GAAQ,EAM1EH,EAAMQ,aAJe,CACnBN,SAAKO,EACLC,WAAOD,GAGT,UCfA,IAAIE,EAAOC,EAAQC,EAAQC,EAAOC,EAClC,SAASC,IAAa,OAAOA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAK,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAAIF,UAAUD,GAAI,IAAK,IAAII,KAAKD,GAAG,CAAG,GAAEE,eAAeC,KAAKH,EAAGC,KAAOL,EAAEK,GAAKD,EAAEC,GAAK,CAAE,OAAOL,CAAG,EAAGJ,EAASY,MAAM,KAAMN,UAAY,CAEnR,IAAIO,EAAW,SAAkBC,GAC/B,OAAoB,gBAAoB,MAAOd,EAAS,CACtDe,MAAO,6BACP,YAAa,iCACbC,QAAS,eACRF,GAAQnB,IAAUA,EAAqB,gBAAoB,OAAQ,CACpEsB,EAAG,03DACArB,IAAWA,EAAsB,gBAAoB,OAAQ,CAChEqB,EAAG,gkBACApB,IAAWA,EAAsB,gBAAoB,OAAQ,CAChEoB,EAAG,orBACAnB,IAAUA,EAAqB,gBAAoB,OAAQ,CAC9DoB,EAAG,IACHC,WAAY,gEACZC,SAAU,EACVC,WAAY,QACX,qBAAsBtB,IAAWA,EAAsB,gBAAoB,OAAQ,CACpFmB,EAAG,IACHC,WAAY,gEACZC,SAAU,EACVC,WAAY,QACX,0BACL,EAEA,QAAe,IAA0B,uCC3BzC,EAAe,IAA0B,uCCQ1B,SAASC,IACtB,IACMC,EAAY,GAAHC,OADU,CAAC,YAAa,gBACC,QAAQ,qBAChD,OACEC,EAAAA,EAAAA,MAAA,OAAAC,SAAA,EACEpC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,eACJpC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,wBACJpC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,eAAe,iCACnBpC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,uBACJpC,EAAAA,EAAAA,KAAA,MAAAoC,SACGH,EAAUI,KAAI,SAAAC,GAAK,OAAItC,EAAAA,EAAAA,KAAA,MAAAoC,SAAiBE,GAARA,EAAmB,OAEtDtC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,uBACJpC,EAAAA,EAAAA,KAACuC,EAAK,CAACnC,MAAO,CAAEoC,MAAO,YACvBxC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,uBACJpC,EAAAA,EAAAA,KAACN,EAAK,CAAC+C,IAAKC,EAAU9C,IAAI,eAAeQ,MAAO,CAAEoC,MAAO,YACzDxC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,wBACJpC,EAAAA,EAAAA,KAAA,OAAKyC,IAAKC,EAAU9C,IAAI,QAAQQ,MAAO,CAAEoC,MAAO,YAChDxC,EAAAA,EAAAA,KAAA,OAAKyC,IAAKC,EAAU9C,IAAI,QAAQQ,MAAO,CAAEoC,MAAO,YAChDxC,EAAAA,EAAAA,KAAA,UACAA,EAAAA,EAAAA,KAAA,OAAKyC,IAAKE,EAAU/C,IAAI,QAAQQ,MAAO,CAAEoC,MAAO,YAChDxC,EAAAA,EAAAA,KAAA,KAAAoC,SAAG,qDACHpC,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,uBACJD,EAAAA,EAAAA,MAAA,KAAAC,SAAA,CAAG,8BAA4BQ,kBAAYC,kBAC3CV,EAAAA,EAAAA,MAAA,KAAAC,SAAA,CAAG,6DAA2DQ,kBAAYE,kBAC1E9C,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,yBACJD,EAAAA,EAAAA,MAAA,KAAAC,SAAA,EAAGpC,EAAAA,EAAAA,KAAA,QAAAoC,SAAM,kCACiB,IAAvBW,IAAAA,YAA+BA,IAAAA,mBAA4BA,IAAAA,yBAE9DZ,EAAAA,EAAAA,MAAA,KAAAC,SAAA,CAAG,+BAA6BY,OAAOC,UAAUF,IAAAA,eAAwB,4BAA8B,uCACvG/C,EAAAA,EAAAA,KAAA,MAAAoC,SAAI,2CACJpC,EAAAA,EAAAA,KAAA,KAAGkD,UAAU,mBAAkBd,SAAC,0CAGtC,CCnCAe,EAAAA,EAAOC,SAASC,qBAAqB,QAAQ,GAAGC,aAAa,MAAO,OAEpEC,EAAAA,QACEvD,EAAAA,EAAAA,KAACgC,EAAG,IACJoB,SAASI,eAAe,Q,UCX1BC,EAAOC,QAAU,CACfC,aAAa,EACbC,mBAAoB,mEACpBC,qBAAsB,gCACtBC,cAAe,I","sources":["webpack://example/./src/Image.tsx","webpack://example/./src/apple.svg","webpack://example/./src/apple.jpg","webpack://example/./src/App.jsx","webpack://example/./src/index.jsx","webpack://example/./env.config.js"],"sourcesContent":["import React, { CSSProperties } from 'react';\n\ntype ImageProps = {\n src: string;\n alt?: string;\n style?: CSSProperties;\n};\n\nconst Image = ({ alt, ...rest }:ImageProps) => <img alt={alt} {...rest} />;\n\nconst defaultProps = {\n alt: undefined,\n style: undefined,\n};\nImage.defaultProps = defaultProps;\nexport default Image;\n","var _path, _path2, _path3, _text, _text2;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgApple = function SvgApple(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n \"data-name\": \"\\\\u0421\\\\u043B\\\\u043E\\\\u0439 1\",\n viewBox: \"0 0 100 125\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"m48.292 20.913 1.258 7.637a30 30 0 0 0 3.912-.378c2.385-.533 4.713-1.327 7.102-1.839.664-.142 1.459.326 2.194.514-.514.487-.947 1.22-1.556 1.423a42.6 42.6 0 0 1-15.177 2.408 20.86 20.86 0 0 1-11.076-3.712 2.8 2.8 0 0 1-.517-.49 1.7 1.7 0 0 1-.175-.423c.86-1.194 1.826-.492 2.778-.115a47 47 0 0 0 5.506 2.102c2.142.548 2.496.112 2.158-2.033-.158-1.002-.454-1.983-.7-2.971a2.1 2.1 0 0 0-2.205-1.717 16.7 16.7 0 0 0-8.18 1.666c-1.214.596-2.445 1.795-4.573.26l1.822-1.04a19.6 19.6 0 0 1 8.767-2.946c3.644-.188 3.354-.397 4.832-3.62a43 43 0 0 1 4.924-7.44 27 27 0 0 1 3.394-3.432c.887-.828 2.1-1.14 2.86-.149a2.95 2.95 0 0 1 .252 2.678 17.6 17.6 0 0 1-3.252 3.777 11.94 11.94 0 0 0-3.691 7.016 9.6 9.6 0 0 0-.01 1.43c4.673-.532 8.678 1.55 12.912 2.71 1.424.391 3.072-.1 4.616-.076 7.752.122 15.007 1.705 20.628 7.564a16.2 16.2 0 0 1 2.477 3.902 33.48 33.48 0 0 1 3.617 18.76 57.4 57.4 0 0 1-3.119 15.243c-2.933 7.717-6.358 15.172-13.498 20.072a43.4 43.4 0 0 1-12.244 6.257c-1.145.335-2.265.757-3.397 1.136-4.8 1.61-9.576.768-14.373-.074-3.176-.558-6.38-.956-9.579-1.38a29.9 29.9 0 0 1-10.196-3.692c-4.505-2.401-8.054-5.781-11.477-9.377a25.7 25.7 0 0 1-6.8-13.015 81 81 0 0 1-1.564-23.374c.52-5.428 2.032-10.596 5.905-14.452 2.3-2.288 5.553-3.653 8.47-5.268a12.9 12.9 0 0 1 4.23-1.427c.715-.11 1.559.623 2.344.975a7.7 7.7 0 0 1-1.972 1.11c-4.793 1.025-9.263 2.823-12.294 6.772a24.4 24.4 0 0 0-4.743 13.49 78.6 78.6 0 0 0 .417 16.109c1.07 7.837 3.758 14.72 10.052 20.008a65.6 65.6 0 0 0 10.197 7.573c4.092 2.268 8.61 2.834 13.12 3.43 3.115.413 6.236.428 9.38 1.053 2.951.587 6.323-.085 9.339-.865a43.9 43.9 0 0 0 14.436-7.078 23.05 23.05 0 0 0 8.217-10.002c1.844-4.472 3.651-8.96 5.358-13.486 1.728-4.581 1.364-9.434 1.628-14.204.26-4.707-1.328-8.914-3.338-13.026-2.82-5.77-7.844-8.549-13.78-9.914a63 63 0 0 0-7.3-.857c-.297-.033-.663-.138-.888-.013-3.433 1.911-6.273-.39-9.332-1.24-2.507-.695-5.06-1.226-8.096-1.95\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.806 79.422a94 94 0 0 1-4.432-8.44c-2.234-5.48-2.678-11.377-3.27-17.194-.464-4.56.356-9.056 1.4-13.494a1.92 1.92 0 0 1 .548-1.103 5.3 5.3 0 0 1 1.501-.48c.07.488.372 1.121.172 1.443-3.97 6.397-2.759 13.274-2.045 20.147a39.8 39.8 0 0 0 4.424 14.103c.794 1.554 1.703 3.05 2.559 4.573zM71.066 81.567c-1.856 2.462-3.676 4.954-5.606 7.357-.294.366-1.096.325-1.663.473.114-.534.059-1.214.371-1.578a134 134 0 0 1 5.06-5.533 7.5 7.5 0 0 1 1.615-.999ZM64.625 58.938 63.58 70.015l-.563-.026c.047-.932.14-1.864.133-2.795-.019-2.38-.13-4.761-.09-7.14.007-.513.49-1.018.755-1.527Z\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.307 54.974c-.114-.165-.333-.335-.337-.51a546 546 0 0 1-.187-9.589 2.17 2.17 0 0 1 .442-1.148.83.83 0 0 1 .736-.271.78.78 0 0 1 .38.671c-1.248 3.5-1.022 7.1-.793 10.704.002.024-.089.055-.241.143M73.758 52.915c-.484-1.653-1.011-3.295-1.409-4.967-.067-.285.424-.703.657-1.059.35.258.972.483 1.007.779.205 1.713.272 3.443.386 5.167ZM53.81 71.398l.793-7.98.473.045c.73 2.756-.035 5.38-.746 8.008ZM50.797 89.664l1.357-1.745a6.2 6.2 0 0 1 1.017 1.96c.062.547-.48 1.163-.754 1.749zM79.708 75.525l1.242-3.701c.906 2.101.708 2.914-1.242 3.701M44.125 88.245a10 10 0 0 1 1.022-.915 6 6 0 0 1 1.238 1.307c.065.1-.568.825-.615.798a16 16 0 0 1-1.645-1.19M52.803 79.592l.47-4.388.683.083-.579 4.43Z\"\n })), _text || (_text = /*#__PURE__*/React.createElement(\"text\", {\n y: 115,\n fontFamily: \"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif\",\n fontSize: 5,\n fontWeight: \"bold\"\n }, \"Created by Roman\")), _text2 || (_text2 = /*#__PURE__*/React.createElement(\"text\", {\n y: 120,\n fontFamily: \"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif\",\n fontSize: 5,\n fontWeight: \"bold\"\n }, \"from the Noun Project\")));\n};\nexport { SvgApple as ReactComponent };\nexport default __webpack_public_path__ + \"cb28cdb1468c915e27e5cec9af64f22f.svg\";","export default __webpack_public_path__ + \"1382e1cbf8d733d7301cdd212192bfea.jpg\";","import config from 'env.config';\nimport Image from './Image';\nimport appleUrl, { ReactComponent as Apple } from './apple.svg';\nimport appleImg from './apple.jpg';\n\nimport './style.scss';\n\n// eslint-disable-next-line react/function-component-definition\nexport default function App() {\n const newEnglandApples = ['macintosh', 'granny smith'];\n const allApples = [...newEnglandApples, 'fuji', 'golden delicious'];\n return (\n <div>\n <h1>Test page</h1>\n <h2>SCSS parsing tests</h2>\n <h3>The Apples</h3> ("The Apples" should be red)\n <h2>ES6 parsing tests</h2>\n <ul>\n {allApples.map(apple => <li key={apple}>{apple}</li>)}\n </ul>\n <h2>JSX parsing tests</h2>\n <Apple style={{ width: '10rem' }} />\n <h2>TSX parsing tests</h2>\n <Image src={appleUrl} alt=\"appleFromTsx\" style={{ width: '10rem' }} />\n <h2>Asset import tests</h2>\n <img src={appleUrl} alt=\"apple\" style={{ width: '10rem' }} />\n <img src={appleUrl} alt=\"apple\" style={{ width: '10rem' }} />\n <br />\n <img src={appleImg} alt=\"apple\" style={{ width: '10rem' }} />\n <p>Photo by Louis Hansel @shotsoflouis on Unsplash</p>\n <h2>process.env tests</h2>\n <p>Test process.env variable: {process.env.TEST_VARIABLE}</p>\n <p>Non-existent process.env variable (nothing here is good): {process.env.I_AM_NOT_HERE}</p>\n <h2>env.config.js tests</h2>\n <p><span>env.config.js boolean test: </span>\n {config.FALSE_VALUE === false ? config.CORRECT_BOOL_VALUE : config.INCORRECT_BOOL_VALUE}\n </p>\n <p>env.config.js integer test: {Number.isInteger(config.INTEGER_VALUE) ? 'It was an integer. Great.' : 'It was not an integer! Why not? '}</p>\n <h2>Right-to-left language handling tests</h2>\n <p className=\"text-align-right\">I'm aligned right, but left in RTL.</p>\n </div>\n );\n}\n","import ReactDOM from 'react-dom';\nimport App from './App';\n\n// This line is to emulate what frontend-platform does when i18n initializes.\n// It's necessary because our stylesheet is generated with `[dir=\"ltr\"]` as a prefix on all\n// direction-sensitive CSS classes. Without this line, those classes wouldn't be applied to the\n// document. See: https://github.com/openedx/frontend-platform/blob/master/src/i18n/lib.js#L186\nglobal.document.getElementsByTagName('html')[0].setAttribute('dir', 'ltr');\n\nReactDOM.render(\n <App />,\n document.getElementById('root'),\n);\n","module.exports = {\n FALSE_VALUE: false,\n CORRECT_BOOL_VALUE: 'Good, false meant false. We did not cast a boolean to a string.',\n INCORRECT_BOOL_VALUE: 'Why was a false boolean true?',\n INTEGER_VALUE: 123,\n};\n"],"names":["Image","_ref","alt","rest","_objectWithoutProperties","_excluded","_jsx","_objectSpread","defaultProps","undefined","style","_path","_path2","_path3","_text","_text2","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","SvgApple","props","xmlns","viewBox","d","y","fontFamily","fontSize","fontWeight","App","allApples","concat","_jsxs","children","map","apple","Apple","width","src","appleUrl","appleImg","process","TEST_VARIABLE","I_AM_NOT_HERE","config","Number","isInteger","className","global","document","getElementsByTagName","setAttribute","ReactDOM","getElementById","module","exports","FALSE_VALUE","CORRECT_BOOL_VALUE","INCORRECT_BOOL_VALUE","INTEGER_VALUE"],"sourceRoot":""}
|
|
@@ -13,7 +13,7 @@ require("./style.scss");
|
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
|
-
function _interopRequireDefault(
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
17
|
// eslint-disable-next-line react/function-component-definition
|
|
18
18
|
function App() {
|
|
19
19
|
var newEnglandApples = ['macintosh', 'granny smith'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","names":["_env","_interopRequireDefault","require","_Image","_apple","_interopRequireWildcard","_apple2","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","
|
|
1
|
+
{"version":3,"file":"App.js","names":["_env","_interopRequireDefault","require","_Image","_apple","_interopRequireWildcard","_apple2","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","App","newEnglandApples","allApples","concat","jsxs","children","jsx","map","apple","ReactComponent","style","width","src","appleUrl","alt","appleImg","process","env","TEST_VARIABLE","I_AM_NOT_HERE","config","FALSE_VALUE","CORRECT_BOOL_VALUE","INCORRECT_BOOL_VALUE","Number","isInteger","INTEGER_VALUE","className"],"sources":["../../src/App.jsx"],"sourcesContent":["import config from 'env.config';\nimport Image from './Image';\nimport appleUrl, { ReactComponent as Apple } from './apple.svg';\nimport appleImg from './apple.jpg';\n\nimport './style.scss';\n\n// eslint-disable-next-line react/function-component-definition\nexport default function App() {\n const newEnglandApples = ['macintosh', 'granny smith'];\n const allApples = [...newEnglandApples, 'fuji', 'golden delicious'];\n return (\n <div>\n <h1>Test page</h1>\n <h2>SCSS parsing tests</h2>\n <h3>The Apples</h3> ("The Apples" should be red)\n <h2>ES6 parsing tests</h2>\n <ul>\n {allApples.map(apple => <li key={apple}>{apple}</li>)}\n </ul>\n <h2>JSX parsing tests</h2>\n <Apple style={{ width: '10rem' }} />\n <h2>TSX parsing tests</h2>\n <Image src={appleUrl} alt=\"appleFromTsx\" style={{ width: '10rem' }} />\n <h2>Asset import tests</h2>\n <img src={appleUrl} alt=\"apple\" style={{ width: '10rem' }} />\n <img src={appleUrl} alt=\"apple\" style={{ width: '10rem' }} />\n <br />\n <img src={appleImg} alt=\"apple\" style={{ width: '10rem' }} />\n <p>Photo by Louis Hansel @shotsoflouis on Unsplash</p>\n <h2>process.env tests</h2>\n <p>Test process.env variable: {process.env.TEST_VARIABLE}</p>\n <p>Non-existent process.env variable (nothing here is good): {process.env.I_AM_NOT_HERE}</p>\n <h2>env.config.js tests</h2>\n <p><span>env.config.js boolean test: </span>\n {config.FALSE_VALUE === false ? config.CORRECT_BOOL_VALUE : config.INCORRECT_BOOL_VALUE}\n </p>\n <p>env.config.js integer test: {Number.isInteger(config.INTEGER_VALUE) ? 'It was an integer. Great.' : 'It was not an integer! Why not? '}</p>\n <h2>Right-to-left language handling tests</h2>\n <p className=\"text-align-right\">I'm aligned right, but left in RTL.</p>\n </div>\n );\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
4
4
|
var _App = _interopRequireDefault(require("./App"));
|
|
5
5
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
6
|
-
function _interopRequireDefault(
|
|
6
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
7
7
|
// This line is to emulate what frontend-platform does when i18n initializes.
|
|
8
8
|
// It's necessary because our stylesheet is generated with `[dir="ltr"]` as a prefix on all
|
|
9
9
|
// direction-sensitive CSS classes. Without this line, those classes wouldn't be applied to the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_reactDom","_interopRequireDefault","require","_App","_jsxRuntime","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_reactDom","_interopRequireDefault","require","_App","_jsxRuntime","e","__esModule","global","document","getElementsByTagName","setAttribute","ReactDOM","render","jsx","getElementById"],"sources":["../../src/index.jsx"],"sourcesContent":["import ReactDOM from 'react-dom';\nimport App from './App';\n\n// This line is to emulate what frontend-platform does when i18n initializes.\n// It's necessary because our stylesheet is generated with `[dir=\"ltr\"]` as a prefix on all\n// direction-sensitive CSS classes. Without this line, those classes wouldn't be applied to the\n// document. See: https://github.com/openedx/frontend-platform/blob/master/src/i18n/lib.js#L186\nglobal.document.getElementsByTagName('html')[0].setAttribute('dir', 'ltr');\n\nReactDOM.render(\n <App />,\n document.getElementById('root'),\n);\n"],"mappings":";;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAwB,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAExB;AACA;AACA;AACA;AACAE,MAAM,CAACC,QAAQ,CAACC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAACC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC;AAE1EC,oBAAQ,CAACC,MAAM,eACb,IAAAR,WAAA,CAAAS,GAAA,EAACV,IAAA,WAAG,IAAE,CAAC,EACPK,QAAQ,CAACM,cAAc,CAAC,MAAM,CAChC,CAAC","ignoreList":[]}
|
package/example/dist/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<!doctype html><html lang="en-us"><head><title>Test</title><link rel="shortcut icon" href="" type="image/x-icon"/><script>;window.NREUM||(NREUM={});NREUM.init={privacy:{cookies_enabled:true},ajax:{deny_list:["bam-cell.nr-data.net"]}};
|
|
2
2
|
window.NREUM||(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var o=e[n]={exports:{}};t[n][0].call(o.exports,function(e){var o=t[n][1][e];return r(o||e)},o,o.exports)}return e[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<n.length;o++)r(n[o]);return r}({1:[function(t,e,n){function r(t){try{s.console&&console.log(t)}catch(e){}}var o,i=t("ee"),a=t(32),s={};try{o=localStorage.getItem("__nr_flags").split(","),console&&"function"==typeof console.log&&(s.console=!0,o.indexOf("dev")!==-1&&(s.dev=!0),o.indexOf("nr_dev")!==-1&&(s.nrDev=!0))}catch(c){}s.nrDev&&i.on("internal-error",function(t){r(t.stack)}),s.dev&&i.on("fn-err",function(t,e,n){r(n.stack)}),s.dev&&(r("NR AGENT IN DEVELOPMENT MODE"),r("flags: "+a(s,function(t,e){return t}).join(", ")))},{}],2:[function(t,e,n){function r(t,e,n,r,s){try{l?l-=1:o(s||new UncaughtException(t,e,n),!0)}catch(f){try{i("ierr",[f,c.now(),!0])}catch(d){}}return"function"==typeof u&&u.apply(this,a(arguments))}function UncaughtException(t,e,n){this.message=t||"Uncaught error with no additional information",this.sourceURL=e,this.line=n}function o(t,e){var n=e?null:c.now();i("err",[t,n])}var i=t("handle"),a=t(33),s=t("ee"),c=t("loader"),f=t("gos"),u=window.onerror,d=!1,p="nr@seenError";if(!c.disabled){var l=0;c.features.err=!0,t(1),window.onerror=r;try{throw new Error}catch(h){"stack"in h&&(t(14),t(13),"addEventListener"in window&&t(7),c.xhrWrappable&&t(15),d=!0)}s.on("fn-start",function(t,e,n){d&&(l+=1)}),s.on("fn-err",function(t,e,n){d&&!n[p]&&(f(n,p,function(){return!0}),this.thrown=!0,o(n))}),s.on("fn-end",function(){d&&!this.thrown&&l>0&&(l-=1)}),s.on("internal-error",function(t){i("ierr",[t,c.now(),!0])})}},{}],3:[function(t,e,n){var r=t("loader");r.disabled||(r.features.ins=!0)},{}],4:[function(t,e,n){function r(){U++,L=g.hash,this[u]=y.now()}function o(){U--,g.hash!==L&&i(0,!0);var t=y.now();this[h]=~~this[h]+t-this[u],this[d]=t}function i(t,e){E.emit("newURL",[""+g,e])}function a(t,e){t.on(e,function(){this[e]=y.now()})}var s="-start",c="-end",f="-body",u="fn"+s,d="fn"+c,p="cb"+s,l="cb"+c,h="jsTime",m="fetch",v="addEventListener",w=window,g=w.location,y=t("loader");if(w[v]&&y.xhrWrappable&&!y.disabled){var x=t(11),b=t(12),E=t(9),R=t(7),O=t(14),T=t(8),P=t(15),S=t(10),M=t("ee"),N=M.get("tracer"),C=t(23);t(17),y.features.spa=!0;var L,U=0;M.on(u,r),b.on(p,r),S.on(p,r),M.on(d,o),b.on(l,o),S.on(l,o),M.buffer([u,d,"xhr-resolved"]),R.buffer([u]),O.buffer(["setTimeout"+c,"clearTimeout"+s,u]),P.buffer([u,"new-xhr","send-xhr"+s]),T.buffer([m+s,m+"-done",m+f+s,m+f+c]),E.buffer(["newURL"]),x.buffer([u]),b.buffer(["propagate",p,l,"executor-err","resolve"+s]),N.buffer([u,"no-"+u]),S.buffer(["new-jsonp","cb-start","jsonp-error","jsonp-end"]),a(T,m+s),a(T,m+"-done"),a(S,"new-jsonp"),a(S,"jsonp-end"),a(S,"cb-start"),E.on("pushState-end",i),E.on("replaceState-end",i),w[v]("hashchange",i,C(!0)),w[v]("load",i,C(!0)),w[v]("popstate",function(){i(0,U>1)},C(!0))}},{}],5:[function(t,e,n){function r(){var t=new PerformanceObserver(function(t,e){var n=t.getEntries();s(v,[n])});try{t.observe({entryTypes:["resource"]})}catch(e){}}function o(t){if(s(v,[window.performance.getEntriesByType(w)]),window.performance["c"+p])try{window.performance[h](m,o,!1)}catch(t){}else try{window.performance[h]("webkit"+m,o,!1)}catch(t){}}function i(t){}if(window.performance&&window.performance.timing&&window.performance.getEntriesByType){var a=t("ee"),s=t("handle"),c=t(14),f=t(13),u=t(6),d=t(23),p="learResourceTimings",l="addEventListener",h="removeEventListener",m="resourcetimingbufferfull",v="bstResource",w="resource",g="-start",y="-end",x="fn"+g,b="fn"+y,E="bstTimer",R="pushState",O=t("loader");if(!O.disabled){O.features.stn=!0,t(9),"addEventListener"in window&&t(7);var T=NREUM.o.EV;a.on(x,function(t,e){var n=t[0];n instanceof T&&(this.bstStart=O.now())}),a.on(b,function(t,e){var n=t[0];n instanceof T&&s("bst",[n,e,this.bstStart,O.now()])}),c.on(x,function(t,e,n){this.bstStart=O.now(),this.bstType=n}),c.on(b,function(t,e){s(E,[e,this.bstStart,O.now(),this.bstType])}),f.on(x,function(){this.bstStart=O.now()}),f.on(b,function(t,e){s(E,[e,this.bstStart,O.now(),"requestAnimationFrame"])}),a.on(R+g,function(t){this.time=O.now(),this.startPath=location.pathname+location.hash}),a.on(R+y,function(t){s("bstHist",[location.pathname+location.hash,this.startPath,this.time])}),u()?(s(v,[window.performance.getEntriesByType("resource")]),r()):l in window.performance&&(window.performance["c"+p]?window.performance[l](m,o,d(!1)):window.performance[l]("webkit"+m,o,d(!1))),document[l]("scroll",i,d(!1)),document[l]("keypress",i,d(!1)),document[l]("click",i,d(!1))}}},{}],6:[function(t,e,n){e.exports=function(){return"PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver}},{}],7:[function(t,e,n){function r(t){for(var e=t;e&&!e.hasOwnProperty(u);)e=Object.getPrototypeOf(e);e&&o(e)}function o(t){s.inPlace(t,[u,d],"-",i)}function i(t,e){return t[1]}var a=t("ee").get("events"),s=t("wrap-function")(a,!0),c=t("gos"),f=XMLHttpRequest,u="addEventListener",d="removeEventListener";e.exports=a,"getPrototypeOf"in Object?(r(document),r(window),r(f.prototype)):f.prototype.hasOwnProperty(u)&&(o(window),o(f.prototype)),a.on(u+"-start",function(t,e){var n=t[1];if(null!==n&&("function"==typeof n||"object"==typeof n)){var r=c(n,"nr@wrapped",function(){function t(){if("function"==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)}var e={object:t,"function":n}[typeof n];return e?s(e,"fn-",null,e.name||"anonymous"):n});this.wrapped=t[1]=r}}),a.on(d+"-start",function(t){t[1]=this.wrapped||t[1]})},{}],8:[function(t,e,n){function r(t,e,n){var r=t[e];"function"==typeof r&&(t[e]=function(){var t=i(arguments),e={};o.emit(n+"before-start",[t],e);var a;e[m]&&e[m].dt&&(a=e[m].dt);var s=r.apply(this,t);return o.emit(n+"start",[t,a],s),s.then(function(t){return o.emit(n+"end",[null,t],s),t},function(t){throw o.emit(n+"end",[t],s),t})})}var o=t("ee").get("fetch"),i=t(33),a=t(32);e.exports=o;var s=window,c="fetch-",f=c+"body-",u=["arrayBuffer","blob","json","text","formData"],d=s.Request,p=s.Response,l=s.fetch,h="prototype",m="nr@context";d&&p&&l&&(a(u,function(t,e){r(d[h],e,f),r(p[h],e,f)}),r(s,"fetch",c),o.on(c+"end",function(t,e){var n=this;if(e){var r=e.headers.get("content-length");null!==r&&(n.rxSize=r),o.emit(c+"done",[null,e],n)}else o.emit(c+"done",[t],n)}))},{}],9:[function(t,e,n){var r=t("ee").get("history"),o=t("wrap-function")(r);e.exports=r;var i=window.history&&window.history.constructor&&window.history.constructor.prototype,a=window.history;i&&i.pushState&&i.replaceState&&(a=i),o.inPlace(a,["pushState","replaceState"],"-")},{}],10:[function(t,e,n){function r(t){function e(){f.emit("jsonp-end",[],l),t.removeEventListener("load",e,c(!1)),t.removeEventListener("error",n,c(!1))}function n(){f.emit("jsonp-error",[],l),f.emit("jsonp-end",[],l),t.removeEventListener("load",e,c(!1)),t.removeEventListener("error",n,c(!1))}var r=t&&"string"==typeof t.nodeName&&"script"===t.nodeName.toLowerCase();if(r){var o="function"==typeof t.addEventListener;if(o){var a=i(t.src);if(a){var d=s(a),p="function"==typeof d.parent[d.key];if(p){var l={};u.inPlace(d.parent,[d.key],"cb-",l),t.addEventListener("load",e,c(!1)),t.addEventListener("error",n,c(!1)),f.emit("new-jsonp",[t.src],l)}}}}}function o(){return"addEventListener"in window}function i(t){var e=t.match(d);return e?e[1]:null}function a(t,e){var n=t.match(l),r=n[1],o=n[3];return o?a(o,e[r]):e[r]}function s(t){var e=t.match(p);return e&&e.length>=3?{key:e[2],parent:a(e[1],window)}:{key:t,parent:window}}var c=t(23),f=t("ee").get("jsonp"),u=t("wrap-function")(f);if(e.exports=f,o()){var d=/[?&](?:callback|cb)=([^&#]+)/,p=/(.*)\.([^.]+)/,l=/^(\w+)(\.|$)(.*)$/,h=["appendChild","insertBefore","replaceChild"];Node&&Node.prototype&&Node.prototype.appendChild?u.inPlace(Node.prototype,h,"dom-"):(u.inPlace(HTMLElement.prototype,h,"dom-"),u.inPlace(HTMLHeadElement.prototype,h,"dom-"),u.inPlace(HTMLBodyElement.prototype,h,"dom-")),f.on("dom-start",function(t){r(t[0])})}},{}],11:[function(t,e,n){var r=t("ee").get("mutation"),o=t("wrap-function")(r),i=NREUM.o.MO;e.exports=r,i&&(window.MutationObserver=function(t){return this instanceof i?new i(o(t,"fn-")):i.apply(this,arguments)},MutationObserver.prototype=i.prototype)},{}],12:[function(t,e,n){function r(t){var e=i.context(),n=s(t,"executor-",e,null,!1),r=new f(n);return i.context(r).getCtx=function(){return e},r}var o=t("wrap-function"),i=t("ee").get("promise"),a=t("ee").getOrSetContext,s=o(i),c=t(32),f=NREUM.o.PR;e.exports=i,f&&(window.Promise=r,["all","race"].forEach(function(t){var e=f[t];f[t]=function(n){function r(t){return function(){i.emit("propagate",[null,!o],a,!1,!1),o=o||!t}}var o=!1;c(n,function(e,n){Promise.resolve(n).then(r("all"===t),r(!1))});var a=e.apply(f,arguments),s=f.resolve(a);return s}}),["resolve","reject"].forEach(function(t){var e=f[t];f[t]=function(t){var n=e.apply(f,arguments);return t!==n&&i.emit("propagate",[t,!0],n,!1,!1),n}}),f.prototype["catch"]=function(t){return this.then(null,t)},f.prototype=Object.create(f.prototype,{constructor:{value:r}}),c(Object.getOwnPropertyNames(f),function(t,e){try{r[e]=f[e]}catch(n){}}),o.wrapInPlace(f.prototype,"then",function(t){return function(){var e=this,n=o.argsToArray.apply(this,arguments),r=a(e);r.promise=e,n[0]=s(n[0],"cb-",r,null,!1),n[1]=s(n[1],"cb-",r,null,!1);var c=t.apply(this,n);return r.nextPromise=c,i.emit("propagate",[e,!0],c,!1,!1),c}}),i.on("executor-start",function(t){t[0]=s(t[0],"resolve-",this,null,!1),t[1]=s(t[1],"resolve-",this,null,!1)}),i.on("executor-err",function(t,e,n){t[1](n)}),i.on("cb-end",function(t,e,n){i.emit("propagate",[n,!0],this.nextPromise,!1,!1)}),i.on("propagate",function(t,e,n){this.getCtx&&!e||(this.getCtx=function(){if(t instanceof Promise)var e=i.context(t);return e&&e.getCtx?e.getCtx():this})}),r.toString=function(){return""+f})},{}],13:[function(t,e,n){var r=t("ee").get("raf"),o=t("wrap-function")(r),i="equestAnimationFrame";e.exports=r,o.inPlace(window,["r"+i,"mozR"+i,"webkitR"+i,"msR"+i],"raf-"),r.on("raf-start",function(t){t[0]=o(t[0],"fn-")})},{}],14:[function(t,e,n){function r(t,e,n){t[0]=a(t[0],"fn-",null,n)}function o(t,e,n){this.method=n,this.timerDuration=isNaN(t[1])?0:+t[1],t[0]=a(t[0],"fn-",this,n)}var i=t("ee").get("timer"),a=t("wrap-function")(i),s="setTimeout",c="setInterval",f="clearTimeout",u="-start",d="-";e.exports=i,a.inPlace(window,[s,"setImmediate"],s+d),a.inPlace(window,[c],c+d),a.inPlace(window,[f,"clearImmediate"],f+d),i.on(c+u,r),i.on(s+u,o)},{}],15:[function(t,e,n){function r(t,e){d.inPlace(e,["onreadystatechange"],"fn-",s)}function o(){var t=this,e=u.context(t);t.readyState>3&&!e.resolved&&(e.resolved=!0,u.emit("xhr-resolved",[],t)),d.inPlace(t,y,"fn-",s)}function i(t){x.push(t),m&&(E?E.then(a):w?w(a):(R=-R,O.data=R))}function a(){for(var t=0;t<x.length;t++)r([],x[t]);x.length&&(x=[])}function s(t,e){return e}function c(t,e){for(var n in t)e[n]=t[n];return e}t(7);var f=t("ee"),u=f.get("xhr"),d=t("wrap-function")(u),p=t(23),l=NREUM.o,h=l.XHR,m=l.MO,v=l.PR,w=l.SI,g="readystatechange",y=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],x=[];e.exports=u;var b=window.XMLHttpRequest=function(t){var e=new h(t);try{u.emit("new-xhr",[e],e),e.addEventListener(g,o,p(!1))}catch(n){try{u.emit("internal-error",[n])}catch(r){}}return e};if(c(h,b),b.prototype=h.prototype,d.inPlace(b.prototype,["open","send"],"-xhr-",s),u.on("send-xhr-start",function(t,e){r(t,e),i(e)}),u.on("open-xhr-start",r),m){var E=v&&v.resolve();if(!w&&!v){var R=1,O=document.createTextNode(R);new m(a).observe(O,{characterData:!0})}}else f.on("fn-end",function(t){t[0]&&t[0].type===g||a()})},{}],16:[function(t,e,n){function r(t){if(!s(t))return null;var e=window.NREUM;if(!e.loader_config)return null;var n=(e.loader_config.accountID||"").toString()||null,r=(e.loader_config.agentID||"").toString()||null,f=(e.loader_config.trustKey||"").toString()||null;if(!n||!r)return null;var h=l.generateSpanId(),m=l.generateTraceId(),v=Date.now(),w={spanId:h,traceId:m,timestamp:v};return(t.sameOrigin||c(t)&&p())&&(w.traceContextParentHeader=o(h,m),w.traceContextStateHeader=i(h,v,n,r,f)),(t.sameOrigin&&!u()||!t.sameOrigin&&c(t)&&d())&&(w.newrelicHeader=a(h,m,v,n,r,f)),w}function o(t,e){return"00-"+e+"-"+t+"-01"}function i(t,e,n,r,o){var i=0,a="",s=1,c="",f="";return o+"@nr="+i+"-"+s+"-"+n+"-"+r+"-"+t+"-"+a+"-"+c+"-"+f+"-"+e}function a(t,e,n,r,o,i){var a="btoa"in window&&"function"==typeof window.btoa;if(!a)return null;var s={v:[0,1],d:{ty:"Browser",ac:r,ap:o,id:t,tr:e,ti:n}};return i&&r!==i&&(s.d.tk=i),btoa(JSON.stringify(s))}function s(t){return f()&&c(t)}function c(t){var e=!1,n={};if("init"in NREUM&&"distributed_tracing"in NREUM.init&&(n=NREUM.init.distributed_tracing),t.sameOrigin)e=!0;else if(n.allowed_origins instanceof Array)for(var r=0;r<n.allowed_origins.length;r++){var o=h(n.allowed_origins[r]);if(t.hostname===o.hostname&&t.protocol===o.protocol&&t.port===o.port){e=!0;break}}return e}function f(){return"init"in NREUM&&"distributed_tracing"in NREUM.init&&!!NREUM.init.distributed_tracing.enabled}function u(){return"init"in NREUM&&"distributed_tracing"in NREUM.init&&!!NREUM.init.distributed_tracing.exclude_newrelic_header}function d(){return"init"in NREUM&&"distributed_tracing"in NREUM.init&&NREUM.init.distributed_tracing.cors_use_newrelic_header!==!1}function p(){return"init"in NREUM&&"distributed_tracing"in NREUM.init&&!!NREUM.init.distributed_tracing.cors_use_tracecontext_headers}var l=t(29),h=t(18);e.exports={generateTracePayload:r,shouldGenerateTrace:s}},{}],17:[function(t,e,n){function r(t){var e=this.params,n=this.metrics;if(!this.ended){this.ended=!0;for(var r=0;r<p;r++)t.removeEventListener(d[r],this.listener,!1);e.aborted||(n.duration=a.now()-this.startTime,this.loadCaptureCalled||4!==t.readyState?null==e.status&&(e.status=0):i(this,t),n.cbTime=this.cbTime,s("xhr",[e,n,this.startTime,this.endTime,"xhr"],this))}}function o(t,e){var n=c(e),r=t.params;r.hostname=n.hostname,r.port=n.port,r.protocol=n.protocol,r.host=n.hostname+":"+n.port,r.pathname=n.pathname,t.parsedOrigin=n,t.sameOrigin=n.sameOrigin}function i(t,e){t.params.status=e.status;var n=v(e,t.lastSize);if(n&&(t.metrics.rxSize=n),t.sameOrigin){var r=e.getResponseHeader("X-NewRelic-App-Data");r&&(t.params.cat=r.split(", ").pop())}t.loadCaptureCalled=!0}var a=t("loader");if(a.xhrWrappable&&!a.disabled){var s=t("handle"),c=t(18),f=t(16).generateTracePayload,u=t("ee"),d=["load","error","abort","timeout"],p=d.length,l=t("id"),h=t(24),m=t(22),v=t(19),w=t(23),g=NREUM.o.REQ,y=window.XMLHttpRequest;a.features.xhr=!0,t(15),t(8),u.on("new-xhr",function(t){var e=this;e.totalCbs=0,e.called=0,e.cbTime=0,e.end=r,e.ended=!1,e.xhrGuids={},e.lastSize=null,e.loadCaptureCalled=!1,e.params=this.params||{},e.metrics=this.metrics||{},t.addEventListener("load",function(n){i(e,t)},w(!1)),h&&(h>34||h<10)||t.addEventListener("progress",function(t){e.lastSize=t.loaded},w(!1))}),u.on("open-xhr-start",function(t){this.params={method:t[0]},o(this,t[1]),this.metrics={}}),u.on("open-xhr-end",function(t,e){"loader_config"in NREUM&&"xpid"in NREUM.loader_config&&this.sameOrigin&&e.setRequestHeader("X-NewRelic-ID",NREUM.loader_config.xpid);var n=f(this.parsedOrigin);if(n){var r=!1;n.newrelicHeader&&(e.setRequestHeader("newrelic",n.newrelicHeader),r=!0),n.traceContextParentHeader&&(e.setRequestHeader("traceparent",n.traceContextParentHeader),n.traceContextStateHeader&&e.setRequestHeader("tracestate",n.traceContextStateHeader),r=!0),r&&(this.dt=n)}}),u.on("send-xhr-start",function(t,e){var n=this.metrics,r=t[0],o=this;if(n&&r){var i=m(r);i&&(n.txSize=i)}this.startTime=a.now(),this.listener=function(t){try{"abort"!==t.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==t.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof e.onload))&&o.end(e)}catch(n){try{u.emit("internal-error",[n])}catch(r){}}};for(var s=0;s<p;s++)e.addEventListener(d[s],this.listener,w(!1))}),u.on("xhr-cb-time",function(t,e,n){this.cbTime+=t,e?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof n.onload||this.end(n)}),u.on("xhr-load-added",function(t,e){var n=""+l(t)+!!e;this.xhrGuids&&!this.xhrGuids[n]&&(this.xhrGuids[n]=!0,this.totalCbs+=1)}),u.on("xhr-load-removed",function(t,e){var n=""+l(t)+!!e;this.xhrGuids&&this.xhrGuids[n]&&(delete this.xhrGuids[n],this.totalCbs-=1)}),u.on("xhr-resolved",function(){this.endTime=a.now()}),u.on("addEventListener-end",function(t,e){e instanceof y&&"load"===t[0]&&u.emit("xhr-load-added",[t[1],t[2]],e)}),u.on("removeEventListener-end",function(t,e){e instanceof y&&"load"===t[0]&&u.emit("xhr-load-removed",[t[1],t[2]],e)}),u.on("fn-start",function(t,e,n){e instanceof y&&("onload"===n&&(this.onload=!0),("load"===(t[0]&&t[0].type)||this.onload)&&(this.xhrCbStart=a.now()))}),u.on("fn-end",function(t,e){this.xhrCbStart&&u.emit("xhr-cb-time",[a.now()-this.xhrCbStart,this.onload,e],e)}),u.on("fetch-before-start",function(t){function e(t,e){var n=!1;return e.newrelicHeader&&(t.set("newrelic",e.newrelicHeader),n=!0),e.traceContextParentHeader&&(t.set("traceparent",e.traceContextParentHeader),e.traceContextStateHeader&&t.set("tracestate",e.traceContextStateHeader),n=!0),n}var n,r=t[1]||{};"string"==typeof t[0]?n=t[0]:t[0]&&t[0].url?n=t[0].url:window.URL&&t[0]&&t[0]instanceof URL&&(n=t[0].href),n&&(this.parsedOrigin=c(n),this.sameOrigin=this.parsedOrigin.sameOrigin);var o=f(this.parsedOrigin);if(o&&(o.newrelicHeader||o.traceContextParentHeader))if("string"==typeof t[0]||window.URL&&t[0]&&t[0]instanceof URL){var i={};for(var a in r)i[a]=r[a];i.headers=new Headers(r.headers||{}),e(i.headers,o)&&(this.dt=o),t.length>1?t[1]=i:t.push(i)}else t[0]&&t[0].headers&&e(t[0].headers,o)&&(this.dt=o)}),u.on("fetch-start",function(t,e){this.params={},this.metrics={},this.startTime=a.now(),this.dt=e,t.length>=1&&(this.target=t[0]),t.length>=2&&(this.opts=t[1]);var n,r=this.opts||{},i=this.target;"string"==typeof i?n=i:"object"==typeof i&&i instanceof g?n=i.url:window.URL&&"object"==typeof i&&i instanceof URL&&(n=i.href),o(this,n);var s=(""+(i&&i instanceof g&&i.method||r.method||"GET")).toUpperCase();this.params.method=s,this.txSize=m(r.body)||0}),u.on("fetch-done",function(t,e){this.endTime=a.now(),this.params||(this.params={}),this.params.status=e?e.status:0;var n;"string"==typeof this.rxSize&&this.rxSize.length>0&&(n=+this.rxSize);var r={txSize:this.txSize,rxSize:n,duration:a.now()-this.startTime};s("xhr",[this.params,r,this.startTime,this.endTime,"fetch"],this)})}},{}],18:[function(t,e,n){var r={};e.exports=function(t){if(t in r)return r[t];var e=document.createElement("a"),n=window.location,o={};e.href=t,o.port=e.port;var i=e.href.split("://");!o.port&&i[1]&&(o.port=i[1].split("/")[0].split("@").pop().split(":")[1]),o.port&&"0"!==o.port||(o.port="https"===i[0]?"443":"80"),o.hostname=e.hostname||n.hostname,o.pathname=e.pathname,o.protocol=i[0],"/"!==o.pathname.charAt(0)&&(o.pathname="/"+o.pathname);var a=!e.protocol||":"===e.protocol||e.protocol===n.protocol,s=e.hostname===document.domain&&e.port===n.port;return o.sameOrigin=a&&(!e.hostname||s),"/"===o.pathname&&(r[t]=o),o}},{}],19:[function(t,e,n){function r(t,e){var n=t.responseType;return"json"===n&&null!==e?e:"arraybuffer"===n||"blob"===n||"json"===n?o(t.response):"text"===n||""===n||void 0===n?o(t.responseText):void 0}var o=t(22);e.exports=r},{}],20:[function(t,e,n){function r(){}function o(t,e,n,r){return function(){return u.recordSupportability("API/"+e+"/called"),i(t+e,[f.now()].concat(s(arguments)),n?null:this,r),n?void 0:this}}var i=t("handle"),a=t(32),s=t(33),c=t("ee").get("tracer"),f=t("loader"),u=t(25),d=NREUM;"undefined"==typeof window.newrelic&&(newrelic=d);var p=["setPageViewName","setCustomAttribute","setErrorHandler","finished","addToTrace","inlineHit","addRelease"],l="api-",h=l+"ixn-";a(p,function(t,e){d[e]=o(l,e,!0,"api")}),d.addPageAction=o(l,"addPageAction",!0),d.setCurrentRouteName=o(l,"routeName",!0),e.exports=newrelic,d.interaction=function(){return(new r).get()};var m=r.prototype={createTracer:function(t,e){var n={},r=this,o="function"==typeof e;return i(h+"tracer",[f.now(),t,n],r),function(){if(c.emit((o?"":"no-")+"fn-start",[f.now(),r,o],n),o)try{return e.apply(this,arguments)}catch(t){throw c.emit("fn-err",[arguments,this,t],n),t}finally{c.emit("fn-end",[f.now()],n)}}}};a("actionText,setName,setAttribute,save,ignore,onEnd,getContext,end,get".split(","),function(t,e){m[e]=o(h,e)}),newrelic.noticeError=function(t,e){"string"==typeof t&&(t=new Error(t)),u.recordSupportability("API/noticeError/called"),i("err",[t,f.now(),!1,e])}},{}],21:[function(t,e,n){function r(t){if(NREUM.init){for(var e=NREUM.init,n=t.split("."),r=0;r<n.length-1;r++)if(e=e[n[r]],"object"!=typeof e)return;return e=e[n[n.length-1]]}}e.exports={getConfiguration:r}},{}],22:[function(t,e,n){e.exports=function(t){if("string"==typeof t&&t.length)return t.length;if("object"==typeof t){if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&t.byteLength)return t.byteLength;if("undefined"!=typeof Blob&&t instanceof Blob&&t.size)return t.size;if(!("undefined"!=typeof FormData&&t instanceof FormData))try{return JSON.stringify(t).length}catch(e){return}}}},{}],23:[function(t,e,n){var r=!1;try{var o=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}catch(i){}e.exports=function(t){return r?{passive:!0,capture:!!t}:!!t}},{}],24:[function(t,e,n){var r=0,o=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);o&&(r=+o[1]),e.exports=r},{}],25:[function(t,e,n){function r(t,e){var n=[a,t,{name:t},e];return i("storeMetric",n,null,"api"),n}function o(t,e){var n=[s,t,{name:t},e];return i("storeEventMetrics",n,null,"api"),n}var i=t("handle"),a="sm",s="cm";e.exports={constants:{SUPPORTABILITY_METRIC:a,CUSTOM_METRIC:s},recordSupportability:r,recordCustom:o}},{}],26:[function(t,e,n){function r(){return s.exists&&performance.now?Math.round(performance.now()):(i=Math.max((new Date).getTime(),i))-a}function o(){return i}var i=(new Date).getTime(),a=i,s=t(34);e.exports=r,e.exports.offset=a,e.exports.getLastTimestamp=o},{}],27:[function(t,e,n){function r(t){return!(!t||!t.protocol||"file:"===t.protocol)}e.exports=r},{}],28:[function(t,e,n){function r(t,e){var n=t.getEntries();n.forEach(function(t){"first-paint"===t.name?p("timing",["fp",Math.floor(t.startTime)]):"first-contentful-paint"===t.name&&p("timing",["fcp",Math.floor(t.startTime)])})}function o(t,e){var n=t.getEntries();if(n.length>0){var r=n[n.length-1];if(c&&c<r.startTime)return;p("lcp",[r])}}function i(t){t.getEntries().forEach(function(t){t.hadRecentInput||p("cls",[t])})}function a(t){if(t instanceof v&&!g){var e=Math.round(t.timeStamp),n={type:t.type};e<=l.now()?n.fid=l.now()-e:e>l.offset&&e<=Date.now()?(e-=l.offset,n.fid=l.now()-e):e=l.now(),g=!0,p("timing",["fi",e,n])}}function s(t){"hidden"===t&&(c=l.now(),p("pageHide",[c]))}if(!("init"in NREUM&&"page_view_timing"in NREUM.init&&"enabled"in NREUM.init.page_view_timing&&NREUM.init.page_view_timing.enabled===!1)){var c,f,u,d,p=t("handle"),l=t("loader"),h=t(31),m=t(23),v=NREUM.o.EV;if("PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver){f=new PerformanceObserver(r);try{f.observe({entryTypes:["paint"]})}catch(w){}u=new PerformanceObserver(o);try{u.observe({entryTypes:["largest-contentful-paint"]})}catch(w){}d=new PerformanceObserver(i);try{d.observe({type:"layout-shift",buffered:!0})}catch(w){}}if("addEventListener"in document){var g=!1,y=["click","keydown","mousedown","pointerdown","touchstart"];y.forEach(function(t){document.addEventListener(t,a,m(!1))})}h(s)}},{}],29:[function(t,e,n){function r(){function t(){return e?15&e[n++]:16*Math.random()|0}var e=null,n=0,r=window.crypto||window.msCrypto;r&&r.getRandomValues&&(e=r.getRandomValues(new Uint8Array(31)));for(var o,i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",a="",s=0;s<i.length;s++)o=i[s],"x"===o?a+=t().toString(16):"y"===o?(o=3&t()|8,a+=o.toString(16)):a+=o;return a}function o(){return a(16)}function i(){return a(32)}function a(t){function e(){return n?15&n[r++]:16*Math.random()|0}var n=null,r=0,o=window.crypto||window.msCrypto;o&&o.getRandomValues&&Uint8Array&&(n=o.getRandomValues(new Uint8Array(31)));for(var i=[],a=0;a<t;a++)i.push(e().toString(16));return i.join("")}e.exports={generateUuid:r,generateSpanId:o,generateTraceId:i}},{}],30:[function(t,e,n){function r(t,e){if(!o)return!1;if(t!==o)return!1;if(!e)return!0;if(!i)return!1;for(var n=i.split("."),r=e.split("."),a=0;a<r.length;a++)if(r[a]!==n[a])return!1;return!0}var o=null,i=null,a=/Version\/(\S+)\s+Safari/;if(navigator.userAgent){var s=navigator.userAgent,c=s.match(a);c&&s.indexOf("Chrome")===-1&&s.indexOf("Chromium")===-1&&(o="Safari",i=c[1])}e.exports={agent:o,version:i,match:r}},{}],31:[function(t,e,n){function r(t){function e(){t(s&&document[s]?document[s]:document[i]?"hidden":"visible")}"addEventListener"in document&&a&&document.addEventListener(a,e,o(!1))}var o=t(23);e.exports=r;var i,a,s;"undefined"!=typeof document.hidden?(i="hidden",a="visibilitychange",s="visibilityState"):"undefined"!=typeof document.msHidden?(i="msHidden",a="msvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(i="webkitHidden",a="webkitvisibilitychange",s="webkitVisibilityState")},{}],32:[function(t,e,n){function r(t,e){var n=[],r="",i=0;for(r in t)o.call(t,r)&&(n[i]=e(r,t[r]),i+=1);return n}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],33:[function(t,e,n){function r(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,o=n-e||0,i=Array(o<0?0:o);++r<o;)i[r]=t[e+r];return i}e.exports=r},{}],34:[function(t,e,n){e.exports={exists:"undefined"!=typeof window.performance&&window.performance.timing&&"undefined"!=typeof window.performance.timing.navigationStart}},{}],ee:[function(t,e,n){function r(){}function o(t){function e(t){return t&&t instanceof r?t:t?f(t,c,a):a()}function n(n,r,o,i,a){if(a!==!1&&(a=!0),!l.aborted||i){t&&a&&t(n,r,o);for(var s=e(o),c=m(n),f=c.length,u=0;u<f;u++)c[u].apply(s,r);var p=d[y[n]];return p&&p.push([x,n,r,s]),s}}function i(t,e){g[t]=m(t).concat(e)}function h(t,e){var n=g[t];if(n)for(var r=0;r<n.length;r++)n[r]===e&&n.splice(r,1)}function m(t){return g[t]||[]}function v(t){return p[t]=p[t]||o(n)}function w(t,e){l.aborted||u(t,function(t,n){e=e||"feature",y[n]=e,e in d||(d[e]=[])})}var g={},y={},x={on:i,addEventListener:i,removeEventListener:h,emit:n,get:v,listeners:m,context:e,buffer:w,abort:s,aborted:!1};return x}function i(t){return f(t,c,a)}function a(){return new r}function s(){(d.api||d.feature)&&(l.aborted=!0,d=l.backlog={})}var c="nr@context",f=t("gos"),u=t(32),d={},p={},l=e.exports=o();e.exports.getOrSetContext=i,l.backlog=d},{}],gos:[function(t,e,n){function r(t,e,n){if(o.call(t,e))return t[e];var r=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!1}),r}catch(i){}return t[e]=r,r}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],handle:[function(t,e,n){function r(t,e,n,r){o.buffer([t],r),o.emit(t,e,n)}var o=t("ee").get("handle");e.exports=r,r.ee=o},{}],id:[function(t,e,n){function r(t){var e=typeof t;return!t||"object"!==e&&"function"!==e?-1:t===window?0:a(t,i,function(){return o++})}var o=1,i="nr@id",a=t("gos");e.exports=r},{}],loader:[function(t,e,n){function r(){if(!P++){var t=T.info=NREUM.info,e=v.getElementsByTagName("script")[0];if(setTimeout(f.abort,3e4),!(t&&t.licenseKey&&t.applicationID&&e))return f.abort();c(R,function(e,n){t[e]||(t[e]=n)});var n=a();s("mark",["onload",n+T.offset],null,"api"),s("timing",["load",n]);var r=v.createElement("script");0===t.agent.indexOf("http://")||0===t.agent.indexOf("https://")?r.src=t.agent:r.src=h+"://"+t.agent,e.parentNode.insertBefore(r,e)}}function o(){"complete"===v.readyState&&i()}function i(){s("mark",["domContent",a()+T.offset],null,"api")}var a=t(26),s=t("handle"),c=t(32),f=t("ee"),u=t(30),d=t(27),p=t(21),l=t(23),h=p.getConfiguration("ssl")===!1?"http":"https",m=window,v=m.document,w="addEventListener",g="attachEvent",y=m.XMLHttpRequest,x=y&&y.prototype,b=!d(m.location);NREUM.o={ST:setTimeout,SI:m.setImmediate,CT:clearTimeout,XHR:y,REQ:m.Request,EV:m.Event,PR:m.Promise,MO:m.MutationObserver};var E=""+location,R={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-spa-1212.min.js"},O=y&&x&&x[w]&&!/CriOS/.test(navigator.userAgent),T=e.exports={offset:a.getLastTimestamp(),now:a,origin:E,features:{},xhrWrappable:O,userAgent:u,disabled:b};if(!b){t(20),t(28),v[w]?(v[w]("DOMContentLoaded",i,l(!1)),m[w]("load",r,l(!1))):(v[g]("onreadystatechange",o),m[g]("onload",r)),s("mark",["firstbyte",a.getLastTimestamp()],null,"api");var P=0}},{}],"wrap-function":[function(t,e,n){function r(t,e){function n(e,n,r,c,f){function nrWrapper(){var i,a,u,p;try{a=this,i=d(arguments),u="function"==typeof r?r(i,a):r||{}}catch(l){o([l,"",[i,a,c],u],t)}s(n+"start",[i,a,c],u,f);try{return p=e.apply(a,i)}catch(h){throw s(n+"err",[i,a,h],u,f),h}finally{s(n+"end",[i,a,p],u,f)}}return a(e)?e:(n||(n=""),nrWrapper[p]=e,i(e,nrWrapper,t),nrWrapper)}function r(t,e,r,o,i){r||(r="");var s,c,f,u="-"===r.charAt(0);for(f=0;f<e.length;f++)c=e[f],s=t[c],a(s)||(t[c]=n(s,u?c+r:r,o,c,i))}function s(n,r,i,a){if(!h||e){var s=h;h=!0;try{t.emit(n,r,i,e,a)}catch(c){o([c,n,r,i],t)}h=s}}return t||(t=u),n.inPlace=r,n.flag=p,n}function o(t,e){e||(e=u);try{e.emit("internal-error",t)}catch(n){}}function i(t,e,n){if(Object.defineProperty&&Object.keys)try{var r=Object.keys(t);return r.forEach(function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){return t[n]=e,e}})}),e}catch(i){o([i],n)}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return e}function a(t){return!(t&&t instanceof Function&&t.apply&&!t[p])}function s(t,e){var n=e(t);return n[p]=t,i(t,n,u),n}function c(t,e,n){var r=t[e];t[e]=s(r,n)}function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;++n)e[n]=arguments[n];return e}var u=t("ee"),d=t(33),p="nr@original",l=Object.prototype.hasOwnProperty,h=!1;e.exports=r,e.exports.wrapFunction=s,e.exports.wrapInPlace=c,e.exports.argsToArray=f},{}]},{},["loader",2,17,5,3,4]);
|
|
3
3
|
;NREUM.loader_config={accountID:"undefined_account_id",trustKey:"undefined_trust_key",agentID:"undefined_agent_id",licenseKey:"undefined_license_key",applicationID:"undefined_application_id"}
|
|
4
|
-
;NREUM.info={beacon:"bam-cell.nr-data.net",errorBeacon:"bam-cell.nr-data.net",licenseKey:"undefined_license_key",applicationID:"undefined_application_id",sa:1}</script><script defer="defer" src="/runtime.40856db71d718a3e9d37.js"></script><script defer="defer" src="/652.70be34739115e11aaeb3.js"></script><script defer="defer" src="/app.
|
|
4
|
+
;NREUM.info={beacon:"bam-cell.nr-data.net",errorBeacon:"bam-cell.nr-data.net",licenseKey:"undefined_license_key",applicationID:"undefined_application_id",sa:1}</script><script defer="defer" src="/runtime.40856db71d718a3e9d37.js"></script><script defer="defer" src="/652.70be34739115e11aaeb3.js"></script><script defer="defer" src="/app.09a2e8d2732091b5c03c.js"></script><link href="/app.09a2e8d2732091b5c03c.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
package/example/dist/report.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>example [
|
|
6
|
+
<title>example [11 Jun 2024 at 09:17]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<body>
|
|
32
32
|
<div id="app"></div>
|
|
33
33
|
<script>
|
|
34
|
-
window.chartData = [{"label":"652.70be34739115e11aaeb3.js","isAsset":true,"statSize":135464,"parsedSize":129314,"gzipSize":40766,"groups":[{"label":"node_modules","path":"./node_modules","statSize":135464,"groups":[{"label":"object-assign","path":"./node_modules/object-assign","statSize":2108,"groups":[{"id":758,"label":"index.js","path":"./node_modules/object-assign/index.js","statSize":2108,"parsedSize":911,"gzipSize":503}],"parsedSize":911,"gzipSize":503},{"label":"react-dom","path":"./node_modules/react-dom","statSize":120100,"groups":[{"label":"cjs","path":"./node_modules/react-dom/cjs","statSize":118737,"groups":[{"id":73,"label":"react-dom.production.min.js","path":"./node_modules/react-dom/cjs/react-dom.production.min.js","statSize":118737,"parsedSize":116458,"gzipSize":36375}],"parsedSize":116458,"gzipSize":36375},{"id":799,"label":"index.js","path":"./node_modules/react-dom/index.js","statSize":1363,"parsedSize":231,"gzipSize":162}],"parsedSize":116689,"gzipSize":36434},{"label":"react","path":"./node_modules/react","statSize":8017,"groups":[{"label":"cjs","path":"./node_modules/react/cjs","statSize":7613,"groups":[{"id":238,"label":"react-jsx-runtime.production.min.js","path":"./node_modules/react/cjs/react-jsx-runtime.production.min.js","statSize":938,"parsedSize":613,"gzipSize":400},{"id":785,"label":"react.production.min.js","path":"./node_modules/react/cjs/react.production.min.js","statSize":6675,"parsedSize":6171,"gzipSize":2463}],"parsedSize":6784,"gzipSize":2600},{"id":318,"label":"index.js","path":"./node_modules/react/index.js","statSize":190,"parsedSize":27,"gzipSize":47},{"id":182,"label":"jsx-runtime.js","path":"./node_modules/react/jsx-runtime.js","statSize":214,"parsedSize":27,"gzipSize":47}],"parsedSize":6838,"gzipSize":2621},{"label":"scheduler","path":"./node_modules/scheduler","statSize":5239,"groups":[{"label":"cjs","path":"./node_modules/scheduler/cjs","statSize":5041,"groups":[{"id":601,"label":"scheduler.production.min.js","path":"./node_modules/scheduler/cjs/scheduler.production.min.js","statSize":5041,"parsedSize":4585,"gzipSize":1803}],"parsedSize":4585,"gzipSize":1803},{"id":228,"label":"index.js","path":"./node_modules/scheduler/index.js","statSize":198,"parsedSize":27,"gzipSize":47}],"parsedSize":4612,"gzipSize":1821}],"parsedSize":129050,"gzipSize":40566}],"isInitialByEntrypoint":{"app":true}},{"label":"app.
|
|
34
|
+
window.chartData = [{"label":"652.70be34739115e11aaeb3.js","isAsset":true,"statSize":135464,"parsedSize":129314,"gzipSize":40766,"groups":[{"label":"node_modules","path":"./node_modules","statSize":135464,"groups":[{"label":"object-assign","path":"./node_modules/object-assign","statSize":2108,"groups":[{"id":758,"label":"index.js","path":"./node_modules/object-assign/index.js","statSize":2108,"parsedSize":911,"gzipSize":503}],"parsedSize":911,"gzipSize":503},{"label":"react-dom","path":"./node_modules/react-dom","statSize":120100,"groups":[{"label":"cjs","path":"./node_modules/react-dom/cjs","statSize":118737,"groups":[{"id":73,"label":"react-dom.production.min.js","path":"./node_modules/react-dom/cjs/react-dom.production.min.js","statSize":118737,"parsedSize":116458,"gzipSize":36375}],"parsedSize":116458,"gzipSize":36375},{"id":799,"label":"index.js","path":"./node_modules/react-dom/index.js","statSize":1363,"parsedSize":231,"gzipSize":162}],"parsedSize":116689,"gzipSize":36434},{"label":"react","path":"./node_modules/react","statSize":8017,"groups":[{"label":"cjs","path":"./node_modules/react/cjs","statSize":7613,"groups":[{"id":238,"label":"react-jsx-runtime.production.min.js","path":"./node_modules/react/cjs/react-jsx-runtime.production.min.js","statSize":938,"parsedSize":613,"gzipSize":400},{"id":785,"label":"react.production.min.js","path":"./node_modules/react/cjs/react.production.min.js","statSize":6675,"parsedSize":6171,"gzipSize":2463}],"parsedSize":6784,"gzipSize":2600},{"id":318,"label":"index.js","path":"./node_modules/react/index.js","statSize":190,"parsedSize":27,"gzipSize":47},{"id":182,"label":"jsx-runtime.js","path":"./node_modules/react/jsx-runtime.js","statSize":214,"parsedSize":27,"gzipSize":47}],"parsedSize":6838,"gzipSize":2621},{"label":"scheduler","path":"./node_modules/scheduler","statSize":5239,"groups":[{"label":"cjs","path":"./node_modules/scheduler/cjs","statSize":5041,"groups":[{"id":601,"label":"scheduler.production.min.js","path":"./node_modules/scheduler/cjs/scheduler.production.min.js","statSize":5041,"parsedSize":4585,"gzipSize":1803}],"parsedSize":4585,"gzipSize":1803},{"id":228,"label":"index.js","path":"./node_modules/scheduler/index.js","statSize":198,"parsedSize":27,"gzipSize":47}],"parsedSize":4612,"gzipSize":1821}],"parsedSize":129050,"gzipSize":40566}],"isInitialByEntrypoint":{"app":true}},{"label":"app.09a2e8d2732091b5c03c.js","isAsset":true,"statSize":11145,"parsedSize":8079,"gzipSize":3797,"groups":[{"id":280,"label":"env.config.js","path":"./env.config.js","statSize":211,"parsedSize":188,"gzipSize":158},{"label":"src","path":"./src","statSize":10934,"groups":[{"id":882,"label":"index.jsx + 5 modules (concatenated)","path":"./src/index.jsx + 5 modules (concatenated)","statSize":10832,"parsedSize":7709,"gzipSize":3593,"concatenated":true,"groups":[{"label":"src","path":"./src/index.jsx + 5 modules (concatenated)/src","statSize":10832,"groups":[{"id":null,"label":"index.jsx","path":"./src/index.jsx + 5 modules (concatenated)/src/index.jsx","statSize":627,"parsedSize":446,"gzipSize":207,"inaccurateSizes":true},{"id":null,"label":"App.jsx","path":"./src/index.jsx + 5 modules (concatenated)/src/App.jsx","statSize":2954,"parsedSize":2102,"gzipSize":979,"inaccurateSizes":true},{"id":null,"label":"Image.tsx","path":"./src/index.jsx + 5 modules (concatenated)/src/Image.tsx","statSize":2554,"parsedSize":1817,"gzipSize":847,"inaccurateSizes":true},{"id":null,"label":"apple.svg","path":"./src/index.jsx + 5 modules (concatenated)/src/apple.svg","statSize":4559,"parsedSize":3244,"gzipSize":1512,"inaccurateSizes":true},{"id":null,"label":"apple.jpg","path":"./src/index.jsx + 5 modules (concatenated)/src/apple.jpg","statSize":80,"parsedSize":56,"gzipSize":26,"inaccurateSizes":true},{"id":null,"label":"style.scss","path":"./src/index.jsx + 5 modules (concatenated)/src/style.scss","statSize":58,"parsedSize":41,"gzipSize":19,"inaccurateSizes":true}],"parsedSize":7709,"gzipSize":3593,"inaccurateSizes":true}]},{"id":null,"label":"style.scss","path":"./src/style.scss","statSize":102}],"parsedSize":7709,"gzipSize":3593}],"isInitialByEntrypoint":{"app":true}},{"label":"runtime.40856db71d718a3e9d37.js","isAsset":true,"statSize":1302,"parsedSize":1302,"gzipSize":780,"groups":[],"isInitialByEntrypoint":{"app":true}}];
|
|
35
35
|
window.entrypoints = ["app"];
|
|
36
36
|
window.defaultSizes = "parsed";
|
|
37
37
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openedx/frontend-build",
|
|
3
|
-
"version": "15.0.0-alpha.
|
|
3
|
+
"version": "15.0.0-alpha.5",
|
|
4
4
|
"description": "Build tools, setup and config for frontend apps",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/openedx/frontend-build#readme",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@babel/cli": "7.
|
|
29
|
-
"@babel/core": "7.
|
|
28
|
+
"@babel/cli": "7.24.7",
|
|
29
|
+
"@babel/core": "7.24.7",
|
|
30
30
|
"@babel/eslint-parser": "7.22.9",
|
|
31
31
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
32
32
|
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
33
33
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
34
|
-
"@babel/preset-env": "7.
|
|
35
|
-
"@babel/preset-react": "7.
|
|
34
|
+
"@babel/preset-env": "7.24.7",
|
|
35
|
+
"@babel/preset-react": "7.24.7",
|
|
36
36
|
"@edx/eslint-config": "4.0.0",
|
|
37
37
|
"@edx/new-relic-source-map-webpack-plugin": "2.1.0",
|
|
38
38
|
"@edx/typescript-config": "1.0.1",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkexample=self.webpackChunkexample||[]).push([[524],{882:(e,t,r)=>{"use strict";var n=r(799),s=r(280),a=r.n(s),i=r(318),c=r(182);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var l=["alt"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var u=function(e){var t=e.alt,r=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,l);return(0,c.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){var n,s,a,i;n=e,s=t,a=r[t],i=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(s),(s="symbol"==o(i)?i:i+"")in n?Object.defineProperty(n,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[s]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({alt:t},r))};u.defaultProps={alt:void 0,style:void 0};const f=u;var h,d,b,m,g;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(this,arguments)}var y=function(e){return i.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg","data-name":"\\u0421\\u043B\\u043E\\u0439 1",viewBox:"0 0 100 125"},e),h||(h=i.createElement("path",{d:"m48.292 20.913 1.258 7.637a30 30 0 0 0 3.912-.378c2.385-.533 4.713-1.327 7.102-1.839.664-.142 1.459.326 2.194.514-.514.487-.947 1.22-1.556 1.423a42.6 42.6 0 0 1-15.177 2.408 20.86 20.86 0 0 1-11.076-3.712 2.8 2.8 0 0 1-.517-.49 1.7 1.7 0 0 1-.175-.423c.86-1.194 1.826-.492 2.778-.115a47 47 0 0 0 5.506 2.102c2.142.548 2.496.112 2.158-2.033-.158-1.002-.454-1.983-.7-2.971a2.1 2.1 0 0 0-2.205-1.717 16.7 16.7 0 0 0-8.18 1.666c-1.214.596-2.445 1.795-4.573.26l1.822-1.04a19.6 19.6 0 0 1 8.767-2.946c3.644-.188 3.354-.397 4.832-3.62a43 43 0 0 1 4.924-7.44 27 27 0 0 1 3.394-3.432c.887-.828 2.1-1.14 2.86-.149a2.95 2.95 0 0 1 .252 2.678 17.6 17.6 0 0 1-3.252 3.777 11.94 11.94 0 0 0-3.691 7.016 9.6 9.6 0 0 0-.01 1.43c4.673-.532 8.678 1.55 12.912 2.71 1.424.391 3.072-.1 4.616-.076 7.752.122 15.007 1.705 20.628 7.564a16.2 16.2 0 0 1 2.477 3.902 33.48 33.48 0 0 1 3.617 18.76 57.4 57.4 0 0 1-3.119 15.243c-2.933 7.717-6.358 15.172-13.498 20.072a43.4 43.4 0 0 1-12.244 6.257c-1.145.335-2.265.757-3.397 1.136-4.8 1.61-9.576.768-14.373-.074-3.176-.558-6.38-.956-9.579-1.38a29.9 29.9 0 0 1-10.196-3.692c-4.505-2.401-8.054-5.781-11.477-9.377a25.7 25.7 0 0 1-6.8-13.015 81 81 0 0 1-1.564-23.374c.52-5.428 2.032-10.596 5.905-14.452 2.3-2.288 5.553-3.653 8.47-5.268a12.9 12.9 0 0 1 4.23-1.427c.715-.11 1.559.623 2.344.975a7.7 7.7 0 0 1-1.972 1.11c-4.793 1.025-9.263 2.823-12.294 6.772a24.4 24.4 0 0 0-4.743 13.49 78.6 78.6 0 0 0 .417 16.109c1.07 7.837 3.758 14.72 10.052 20.008a65.6 65.6 0 0 0 10.197 7.573c4.092 2.268 8.61 2.834 13.12 3.43 3.115.413 6.236.428 9.38 1.053 2.951.587 6.323-.085 9.339-.865a43.9 43.9 0 0 0 14.436-7.078 23.05 23.05 0 0 0 8.217-10.002c1.844-4.472 3.651-8.96 5.358-13.486 1.728-4.581 1.364-9.434 1.628-14.204.26-4.707-1.328-8.914-3.338-13.026-2.82-5.77-7.844-8.549-13.78-9.914a63 63 0 0 0-7.3-.857c-.297-.033-.663-.138-.888-.013-3.433 1.911-6.273-.39-9.332-1.24-2.507-.695-5.06-1.226-8.096-1.95"})),d||(d=i.createElement("path",{d:"M18.806 79.422a94 94 0 0 1-4.432-8.44c-2.234-5.48-2.678-11.377-3.27-17.194-.464-4.56.356-9.056 1.4-13.494a1.92 1.92 0 0 1 .548-1.103 5.3 5.3 0 0 1 1.501-.48c.07.488.372 1.121.172 1.443-3.97 6.397-2.759 13.274-2.045 20.147a39.8 39.8 0 0 0 4.424 14.103c.794 1.554 1.703 3.05 2.559 4.573zM71.066 81.567c-1.856 2.462-3.676 4.954-5.606 7.357-.294.366-1.096.325-1.663.473.114-.534.059-1.214.371-1.578a134 134 0 0 1 5.06-5.533 7.5 7.5 0 0 1 1.615-.999ZM64.625 58.938 63.58 70.015l-.563-.026c.047-.932.14-1.864.133-2.795-.019-2.38-.13-4.761-.09-7.14.007-.513.49-1.018.755-1.527Z"})),b||(b=i.createElement("path",{d:"M16.307 54.974c-.114-.165-.333-.335-.337-.51a546 546 0 0 1-.187-9.589 2.17 2.17 0 0 1 .442-1.148.83.83 0 0 1 .736-.271.78.78 0 0 1 .38.671c-1.248 3.5-1.022 7.1-.793 10.704.002.024-.089.055-.241.143M73.758 52.915c-.484-1.653-1.011-3.295-1.409-4.967-.067-.285.424-.703.657-1.059.35.258.972.483 1.007.779.205 1.713.272 3.443.386 5.167ZM53.81 71.398l.793-7.98.473.045c.73 2.756-.035 5.38-.746 8.008ZM50.797 89.664l1.357-1.745a6.2 6.2 0 0 1 1.017 1.96c.062.547-.48 1.163-.754 1.749zM79.708 75.525l1.242-3.701c.906 2.101.708 2.914-1.242 3.701M44.125 88.245a10 10 0 0 1 1.022-.915 6 6 0 0 1 1.238 1.307c.065.1-.568.825-.615.798a16 16 0 0 1-1.645-1.19M52.803 79.592l.47-4.388.683.083-.579 4.43Z"})),m||(m=i.createElement("text",{y:115,fontFamily:"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif",fontSize:5,fontWeight:"bold"},"Created by Roman")),g||(g=i.createElement("text",{y:120,fontFamily:"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif",fontSize:5,fontWeight:"bold"},"from the Noun Project")))};const v=r.p+"cb28cdb1468c915e27e5cec9af64f22f.svg",O=r.p+"1382e1cbf8d733d7301cdd212192bfea.jpg";function x(){var e=[].concat(["macintosh","granny smith"],["fuji","golden delicious"]);return(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{children:"Test page"}),(0,c.jsx)("h2",{children:"SCSS parsing tests"}),(0,c.jsx)("h3",{children:"The Apples"}),' ("The Apples" should be red)',(0,c.jsx)("h2",{children:"ES6 parsing tests"}),(0,c.jsx)("ul",{children:e.map((function(e){return(0,c.jsx)("li",{children:e},e)}))}),(0,c.jsx)("h2",{children:"JSX parsing tests"}),(0,c.jsx)(y,{style:{width:"10rem"}}),(0,c.jsx)("h2",{children:"TSX parsing tests"}),(0,c.jsx)(f,{src:v,alt:"appleFromTsx",style:{width:"10rem"}}),(0,c.jsx)("h2",{children:"Asset import tests"}),(0,c.jsx)("img",{src:v,alt:"apple",style:{width:"10rem"}}),(0,c.jsx)("img",{src:v,alt:"apple",style:{width:"10rem"}}),(0,c.jsx)("br",{}),(0,c.jsx)("img",{src:O,alt:"apple",style:{width:"10rem"}}),(0,c.jsx)("p",{children:"Photo by Louis Hansel @shotsoflouis on Unsplash"}),(0,c.jsx)("h2",{children:"process.env tests"}),(0,c.jsxs)("p",{children:["Test process.env variable: ","MISSING_ENV_VAR".TEST_VARIABLE]}),(0,c.jsxs)("p",{children:["Non-existent process.env variable (nothing here is good): ","MISSING_ENV_VAR".I_AM_NOT_HERE]}),(0,c.jsx)("h2",{children:"env.config.js tests"}),(0,c.jsxs)("p",{children:[(0,c.jsx)("span",{children:"env.config.js boolean test: "}),!1===a().FALSE_VALUE?a().CORRECT_BOOL_VALUE:a().INCORRECT_BOOL_VALUE]}),(0,c.jsxs)("p",{children:["env.config.js integer test: ",Number.isInteger(a().INTEGER_VALUE)?"It was an integer. Great.":"It was not an integer! Why not? "]}),(0,c.jsx)("h2",{children:"Right-to-left language handling tests"}),(0,c.jsx)("p",{className:"text-align-right",children:"I'm aligned right, but left in RTL."})]})}r.g.document.getElementsByTagName("html")[0].setAttribute("dir","ltr"),n.render((0,c.jsx)(x,{}),document.getElementById("root"))},280:e=>{e.exports={FALSE_VALUE:!1,CORRECT_BOOL_VALUE:"Good, false meant false. We did not cast a boolean to a string.",INCORRECT_BOOL_VALUE:"Why was a false boolean true?",INTEGER_VALUE:123}}},e=>{e.O(0,[652],(()=>(882,e(e.s=882)))),e.O()}]);
|
|
2
|
-
//# sourceMappingURL=app.9b26aa9c728d62e6064d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.9b26aa9c728d62e6064d.js","mappings":"mmBAQA,IAAMA,EAAQ,SAAHC,GAAA,IAAMC,EAAGD,EAAHC,IAAQC,E,kXAAIC,CAAAH,EAAAI,GAAA,OAAkBC,EAAAA,EAAAA,KAAA,M,ysBAAAC,CAAA,CAAKL,IAAKA,GAASC,GAAQ,EAM1EH,EAAMQ,aAJe,CACnBN,SAAKO,EACLC,WAAOD,GAGT,UCfA,IAAIE,EAAOC,EAAQC,EAAQC,EAAOC,EAClC,SAASC,IAAiS,OAApRA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAASF,UAAUD,GAAI,IAAK,IAAII,KAAOD,EAAcP,OAAOS,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQL,EAAOK,GAAOD,EAAOC,GAAU,CAAE,OAAOL,CAAQ,EAAUJ,EAASa,MAAMC,KAAMR,UAAY,CAElV,IAAIS,EAAW,SAAkBC,GAC/B,OAAoB,gBAAoB,MAAOhB,EAAS,CACtDiB,MAAO,6BACP,YAAa,iCACbC,QAAS,eACRF,GAAQrB,IAAUA,EAAqB,gBAAoB,OAAQ,CACpEwB,EAAG,03DACAvB,IAAWA,EAAsB,gBAAoB,OAAQ,CAChEuB,EAAG,gkBACAtB,IAAWA,EAAsB,gBAAoB,OAAQ,CAChEsB,EAAG,orBACArB,IAAUA,EAAqB,gBAAoB,OAAQ,CAC9DsB,EAAG,IACHC,WAAY,gEACZC,SAAU,EACVC,WAAY,QACX,qBAAsBxB,IAAWA,EAAsB,gBAAoB,OAAQ,CACpFqB,EAAG,IACHC,WAAY,gEACZC,SAAU,EACVC,WAAY,QACX,0BACL,EAEA,QAAe,IAA0B,uCC3BzC,EAAe,IAA0B,uCCQ1B,SAASC,IACtB,IACMC,EAAY,GAAHC,OADU,CAAC,YAAa,gBACC,QAAQ,qBAChD,OACEC,EAAAA,EAAAA,MAAA,OAAAC,SAAA,EACEtC,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,eACJtC,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,wBACJtC,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,eAAe,iCACnBtC,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,uBACJtC,EAAAA,EAAAA,KAAA,MAAAsC,SACGH,EAAUI,KAAI,SAAAC,GAAK,OAAIxC,EAAAA,EAAAA,KAAA,MAAAsC,SAAiBE,GAARA,EAAmB,OAEtDxC,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,uBACJtC,EAAAA,EAAAA,KAACyC,EAAK,CAACrC,MAAO,CAAEsC,MAAO,YACvB1C,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,uBACJtC,EAAAA,EAAAA,KAACN,EAAK,CAACiD,IAAKC,EAAUhD,IAAI,eAAeQ,MAAO,CAAEsC,MAAO,YACzD1C,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,wBACJtC,EAAAA,EAAAA,KAAA,OAAK2C,IAAKC,EAAUhD,IAAI,QAAQQ,MAAO,CAAEsC,MAAO,YAChD1C,EAAAA,EAAAA,KAAA,OAAK2C,IAAKC,EAAUhD,IAAI,QAAQQ,MAAO,CAAEsC,MAAO,YAChD1C,EAAAA,EAAAA,KAAA,UACAA,EAAAA,EAAAA,KAAA,OAAK2C,IAAKE,EAAUjD,IAAI,QAAQQ,MAAO,CAAEsC,MAAO,YAChD1C,EAAAA,EAAAA,KAAA,KAAAsC,SAAG,qDACHtC,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,uBACJD,EAAAA,EAAAA,MAAA,KAAAC,SAAA,CAAG,8BAA4BQ,kBAAYC,kBAC3CV,EAAAA,EAAAA,MAAA,KAAAC,SAAA,CAAG,6DAA2DQ,kBAAYE,kBAC1EhD,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,yBACJD,EAAAA,EAAAA,MAAA,KAAAC,SAAA,EAAGtC,EAAAA,EAAAA,KAAA,QAAAsC,SAAM,kCACiB,IAAvBW,IAAAA,YAA+BA,IAAAA,mBAA4BA,IAAAA,yBAE9DZ,EAAAA,EAAAA,MAAA,KAAAC,SAAA,CAAG,+BAA6BY,OAAOC,UAAUF,IAAAA,eAAwB,4BAA8B,uCACvGjD,EAAAA,EAAAA,KAAA,MAAAsC,SAAI,2CACJtC,EAAAA,EAAAA,KAAA,KAAGoD,UAAU,mBAAkBd,SAAC,0CAGtC,CCnCAe,EAAAA,EAAOC,SAASC,qBAAqB,QAAQ,GAAGC,aAAa,MAAO,OAEpEC,EAAAA,QACEzD,EAAAA,EAAAA,KAACkC,EAAG,IACJoB,SAASI,eAAe,Q,UCX1BC,EAAOC,QAAU,CACfC,aAAa,EACbC,mBAAoB,mEACpBC,qBAAsB,gCACtBC,cAAe,I","sources":["webpack://example/./src/Image.tsx","webpack://example/./src/apple.svg","webpack://example/./src/apple.jpg","webpack://example/./src/App.jsx","webpack://example/./src/index.jsx","webpack://example/./env.config.js"],"sourcesContent":["import React, { CSSProperties } from 'react';\n\ntype ImageProps = {\n src: string;\n alt?: string;\n style?: CSSProperties;\n};\n\nconst Image = ({ alt, ...rest }:ImageProps) => <img alt={alt} {...rest} />;\n\nconst defaultProps = {\n alt: undefined,\n style: undefined,\n};\nImage.defaultProps = defaultProps;\nexport default Image;\n","var _path, _path2, _path3, _text, _text2;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nvar SvgApple = function SvgApple(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n \"data-name\": \"\\\\u0421\\\\u043B\\\\u043E\\\\u0439 1\",\n viewBox: \"0 0 100 125\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"m48.292 20.913 1.258 7.637a30 30 0 0 0 3.912-.378c2.385-.533 4.713-1.327 7.102-1.839.664-.142 1.459.326 2.194.514-.514.487-.947 1.22-1.556 1.423a42.6 42.6 0 0 1-15.177 2.408 20.86 20.86 0 0 1-11.076-3.712 2.8 2.8 0 0 1-.517-.49 1.7 1.7 0 0 1-.175-.423c.86-1.194 1.826-.492 2.778-.115a47 47 0 0 0 5.506 2.102c2.142.548 2.496.112 2.158-2.033-.158-1.002-.454-1.983-.7-2.971a2.1 2.1 0 0 0-2.205-1.717 16.7 16.7 0 0 0-8.18 1.666c-1.214.596-2.445 1.795-4.573.26l1.822-1.04a19.6 19.6 0 0 1 8.767-2.946c3.644-.188 3.354-.397 4.832-3.62a43 43 0 0 1 4.924-7.44 27 27 0 0 1 3.394-3.432c.887-.828 2.1-1.14 2.86-.149a2.95 2.95 0 0 1 .252 2.678 17.6 17.6 0 0 1-3.252 3.777 11.94 11.94 0 0 0-3.691 7.016 9.6 9.6 0 0 0-.01 1.43c4.673-.532 8.678 1.55 12.912 2.71 1.424.391 3.072-.1 4.616-.076 7.752.122 15.007 1.705 20.628 7.564a16.2 16.2 0 0 1 2.477 3.902 33.48 33.48 0 0 1 3.617 18.76 57.4 57.4 0 0 1-3.119 15.243c-2.933 7.717-6.358 15.172-13.498 20.072a43.4 43.4 0 0 1-12.244 6.257c-1.145.335-2.265.757-3.397 1.136-4.8 1.61-9.576.768-14.373-.074-3.176-.558-6.38-.956-9.579-1.38a29.9 29.9 0 0 1-10.196-3.692c-4.505-2.401-8.054-5.781-11.477-9.377a25.7 25.7 0 0 1-6.8-13.015 81 81 0 0 1-1.564-23.374c.52-5.428 2.032-10.596 5.905-14.452 2.3-2.288 5.553-3.653 8.47-5.268a12.9 12.9 0 0 1 4.23-1.427c.715-.11 1.559.623 2.344.975a7.7 7.7 0 0 1-1.972 1.11c-4.793 1.025-9.263 2.823-12.294 6.772a24.4 24.4 0 0 0-4.743 13.49 78.6 78.6 0 0 0 .417 16.109c1.07 7.837 3.758 14.72 10.052 20.008a65.6 65.6 0 0 0 10.197 7.573c4.092 2.268 8.61 2.834 13.12 3.43 3.115.413 6.236.428 9.38 1.053 2.951.587 6.323-.085 9.339-.865a43.9 43.9 0 0 0 14.436-7.078 23.05 23.05 0 0 0 8.217-10.002c1.844-4.472 3.651-8.96 5.358-13.486 1.728-4.581 1.364-9.434 1.628-14.204.26-4.707-1.328-8.914-3.338-13.026-2.82-5.77-7.844-8.549-13.78-9.914a63 63 0 0 0-7.3-.857c-.297-.033-.663-.138-.888-.013-3.433 1.911-6.273-.39-9.332-1.24-2.507-.695-5.06-1.226-8.096-1.95\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.806 79.422a94 94 0 0 1-4.432-8.44c-2.234-5.48-2.678-11.377-3.27-17.194-.464-4.56.356-9.056 1.4-13.494a1.92 1.92 0 0 1 .548-1.103 5.3 5.3 0 0 1 1.501-.48c.07.488.372 1.121.172 1.443-3.97 6.397-2.759 13.274-2.045 20.147a39.8 39.8 0 0 0 4.424 14.103c.794 1.554 1.703 3.05 2.559 4.573zM71.066 81.567c-1.856 2.462-3.676 4.954-5.606 7.357-.294.366-1.096.325-1.663.473.114-.534.059-1.214.371-1.578a134 134 0 0 1 5.06-5.533 7.5 7.5 0 0 1 1.615-.999ZM64.625 58.938 63.58 70.015l-.563-.026c.047-.932.14-1.864.133-2.795-.019-2.38-.13-4.761-.09-7.14.007-.513.49-1.018.755-1.527Z\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M16.307 54.974c-.114-.165-.333-.335-.337-.51a546 546 0 0 1-.187-9.589 2.17 2.17 0 0 1 .442-1.148.83.83 0 0 1 .736-.271.78.78 0 0 1 .38.671c-1.248 3.5-1.022 7.1-.793 10.704.002.024-.089.055-.241.143M73.758 52.915c-.484-1.653-1.011-3.295-1.409-4.967-.067-.285.424-.703.657-1.059.35.258.972.483 1.007.779.205 1.713.272 3.443.386 5.167ZM53.81 71.398l.793-7.98.473.045c.73 2.756-.035 5.38-.746 8.008ZM50.797 89.664l1.357-1.745a6.2 6.2 0 0 1 1.017 1.96c.062.547-.48 1.163-.754 1.749zM79.708 75.525l1.242-3.701c.906 2.101.708 2.914-1.242 3.701M44.125 88.245a10 10 0 0 1 1.022-.915 6 6 0 0 1 1.238 1.307c.065.1-.568.825-.615.798a16 16 0 0 1-1.645-1.19M52.803 79.592l.47-4.388.683.083-.579 4.43Z\"\n })), _text || (_text = /*#__PURE__*/React.createElement(\"text\", {\n y: 115,\n fontFamily: \"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif\",\n fontSize: 5,\n fontWeight: \"bold\"\n }, \"Created by Roman\")), _text2 || (_text2 = /*#__PURE__*/React.createElement(\"text\", {\n y: 120,\n fontFamily: \"'Helvetica Neue', Helvetica, Arial-Unicode, Arial, Sans-serif\",\n fontSize: 5,\n fontWeight: \"bold\"\n }, \"from the Noun Project\")));\n};\nexport { SvgApple as ReactComponent };\nexport default __webpack_public_path__ + \"cb28cdb1468c915e27e5cec9af64f22f.svg\";","export default __webpack_public_path__ + \"1382e1cbf8d733d7301cdd212192bfea.jpg\";","import config from 'env.config';\nimport Image from './Image';\nimport appleUrl, { ReactComponent as Apple } from './apple.svg';\nimport appleImg from './apple.jpg';\n\nimport './style.scss';\n\n// eslint-disable-next-line react/function-component-definition\nexport default function App() {\n const newEnglandApples = ['macintosh', 'granny smith'];\n const allApples = [...newEnglandApples, 'fuji', 'golden delicious'];\n return (\n <div>\n <h1>Test page</h1>\n <h2>SCSS parsing tests</h2>\n <h3>The Apples</h3> ("The Apples" should be red)\n <h2>ES6 parsing tests</h2>\n <ul>\n {allApples.map(apple => <li key={apple}>{apple}</li>)}\n </ul>\n <h2>JSX parsing tests</h2>\n <Apple style={{ width: '10rem' }} />\n <h2>TSX parsing tests</h2>\n <Image src={appleUrl} alt=\"appleFromTsx\" style={{ width: '10rem' }} />\n <h2>Asset import tests</h2>\n <img src={appleUrl} alt=\"apple\" style={{ width: '10rem' }} />\n <img src={appleUrl} alt=\"apple\" style={{ width: '10rem' }} />\n <br />\n <img src={appleImg} alt=\"apple\" style={{ width: '10rem' }} />\n <p>Photo by Louis Hansel @shotsoflouis on Unsplash</p>\n <h2>process.env tests</h2>\n <p>Test process.env variable: {process.env.TEST_VARIABLE}</p>\n <p>Non-existent process.env variable (nothing here is good): {process.env.I_AM_NOT_HERE}</p>\n <h2>env.config.js tests</h2>\n <p><span>env.config.js boolean test: </span>\n {config.FALSE_VALUE === false ? config.CORRECT_BOOL_VALUE : config.INCORRECT_BOOL_VALUE}\n </p>\n <p>env.config.js integer test: {Number.isInteger(config.INTEGER_VALUE) ? 'It was an integer. Great.' : 'It was not an integer! Why not? '}</p>\n <h2>Right-to-left language handling tests</h2>\n <p className=\"text-align-right\">I'm aligned right, but left in RTL.</p>\n </div>\n );\n}\n","import ReactDOM from 'react-dom';\nimport App from './App';\n\n// This line is to emulate what frontend-platform does when i18n initializes.\n// It's necessary because our stylesheet is generated with `[dir=\"ltr\"]` as a prefix on all\n// direction-sensitive CSS classes. Without this line, those classes wouldn't be applied to the\n// document. See: https://github.com/openedx/frontend-platform/blob/master/src/i18n/lib.js#L186\nglobal.document.getElementsByTagName('html')[0].setAttribute('dir', 'ltr');\n\nReactDOM.render(\n <App />,\n document.getElementById('root'),\n);\n","module.exports = {\n FALSE_VALUE: false,\n CORRECT_BOOL_VALUE: 'Good, false meant false. We did not cast a boolean to a string.',\n INCORRECT_BOOL_VALUE: 'Why was a false boolean true?',\n INTEGER_VALUE: 123,\n};\n"],"names":["Image","_ref","alt","rest","_objectWithoutProperties","_excluded","_jsx","_objectSpread","defaultProps","undefined","style","_path","_path2","_path3","_text","_text2","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","SvgApple","props","xmlns","viewBox","d","y","fontFamily","fontSize","fontWeight","App","allApples","concat","_jsxs","children","map","apple","Apple","width","src","appleUrl","appleImg","process","TEST_VARIABLE","I_AM_NOT_HERE","config","Number","isInteger","className","global","document","getElementsByTagName","setAttribute","ReactDOM","getElementById","module","exports","FALSE_VALUE","CORRECT_BOOL_VALUE","INCORRECT_BOOL_VALUE","INTEGER_VALUE"],"sourceRoot":""}
|