diff --git a/.circleci/config.yml b/.circleci/config.yml index 45b0fd56..652b1605 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: build: docker: # specify the version you desire here - - image: node:carbon + - image: node:erbium # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 00000000..feeca24e --- /dev/null +++ b/babel.config.js @@ -0,0 +1,9 @@ +module.exports = { + sourceType: 'unambiguous', + presets: ['@babel/preset-env', '@babel/preset-react'], + plugins: [ + '@babel/plugin-transform-runtime', + '@babel/plugin-proposal-object-rest-spread', + '@babel/plugin-syntax-dynamic-import' + ] +}; diff --git a/build/bundle.js b/build/bundle.js index 16294a32..666b7483 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -1,2 +1,2 @@ "use strict"; -module.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=0)}([function(n,e,t){var r=t(1),o=t(2),i=t(10),a=t(5),s=r.createServer(function(n,e){return i.info("Starting Account Link Extension - Version:","2.6.4"),i.info(" > WT_URL:",n("WT_URL")),i.info(" > PUBLIC_WT_URL:",n("PUBLIC_WT_URL")),o(n,e)});n.exports=function(n,e,t){e.x_wt&&e.x_wt.ectx&&e.x_wt.ectx.PUBLIC_WT_URL||!1||a.setValue("PUBLIC_WT_URL",r.urlHelpers.getWebtaskUrl(e)),s(n,e,t)}},function(n,e){n.exports=require("auth0-extension-hapi-tools@1.3.1")},function(n,e,t){(function(e){var r=t(3),o=t(4),i=o.FileStorageContext,a=o.WebtaskStorageContext,s=t(5),c=t(6),u=t(10),l=t(101).init,f=function(n){n?(u.error("Hapi initialization failed."),u.error(n)):u.info("Hapi initialization completed.")};n.exports=function(n,t,o){return s.setProvider(function(e){return n(e)||Object({NODE_ENV:"production",CLIENT_VERSION:"2.6.4"})[e]}),l(t?new a(t,{force:1}):new i(r.join(e,"../data.json"))),c(o||f)}}).call(this,"/")},function(n,e){n.exports=require("path")},function(n,e){n.exports=require("auth0-extension-tools@1.3.1")},function(n,e,t){var r=t(4).config;n.exports=r()},function(n,e,t){(function(e){var r=t(3),o=t(7),i=t(8),a=t(9),s=t(5),c=t(10),u=t(12),l=t(171),f=t(172);n.exports=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,d=new o.Server;return d.connection({host:"localhost",port:s("PORT"),routes:{cors:!0,validate:{},files:{relativeTo:r.join(e,"../public")}}}),d.register([a,i],function(){}),d.route({method:"GET",path:"/js/{file*}",config:{auth:!1},handler:{directory:{path:r.join(e,"../public/js")}}}),d.route({method:"GET",path:"/css/{file*}",config:{auth:!1},handler:{directory:{path:r.join(e,"../public/css")}}}),d.register([f,t,u],function(e){c.debug=function(){for(var n=arguments.length,e=new Array(n),t=0;t0?[o[0].identities[0]]:[]).map(function(n){return n.provider}).map(l),c=f(i,n("or"));e(s({dynamicSettings:y,stylesheetTag:v,currentUser:r,matchingUsers:o,customCSSTag:m,locale:a,identities:c,params:g,token:t}))})})}).catch(function(r){var o=n.query.state;c.error("An error was encountered: ",r),c.info(`Redirecting to failed link to /continue: ${t.iss}continue?state=${n.query.state}`),e.redirect(`${t.iss}continue?state=${o}`)})}).catch(function(n){c.error("An invalid token was provided",n),s({dynamicSettings:y,stylesheetTag:v,currentUser:null,matchingUsers:[],customCSSTag:m}).then(function(n){e(n).code(400)})})}}}}},function(n,e){n.exports=require("jsonwebtoken@7.1.9")},function(n,e){n.exports=require("lodash@3.10.1")},function(n,e,t){var r=t(17);n.exports=function(n){return r({path:"users-by-email",qs:{email:n}})}},function(n,e,t){"use strict";t.r(e),function(n){var e=t(19),r=t.n(e),o=t(39),i=t.n(o);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),t.push.apply(t,r)}return t}var s=t(4).managementApi,c=t(79),u=t(5),l=t(10),f={base:void 0,getBaseUrl(){return this.base||(this.base=`https://${u("AUTH0_DOMAIN")}/api/v2`),this.base},endpoint(n){return`${this.getBaseUrl()}/${n}`}};n.exports=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.path,t=i()(n,["path"]);return s.getAccessTokenCached(u("AUTH0_DOMAIN"),u("AUTH0_CLIENT_ID"),u("AUTH0_CLIENT_SECRET")).then(function(n){return new Promise(function(o,i){c(function(n){for(var e=1;e=300?(l.error("API call failed: ",e.status,t),i(new Error(t))):o(e.body)})})})}}.call(this,t(18)(n))},function(n,e){n.exports=function(n){if(!n.webpackPolyfill){var e=Object.create(n);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(n,e,t){var r=t(20);n.exports=function(n,e,t){return e in n?r(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}},function(n,e,t){n.exports=t(21)},function(n,e,t){t(22);var r=t(25).Object;n.exports=function(n,e,t){return r.defineProperty(n,e,t)}},function(n,e,t){var r=t(23);r(r.S+r.F*!t(33),"Object",{defineProperty:t(29).f})},function(n,e,t){var r=t(24),o=t(25),i=t(26),a=t(28),s=t(38),c=function(n,e,t){var u,l,f,d=n&c.F,p=n&c.G,h=n&c.S,v=n&c.P,m=n&c.B,g=n&c.W,y=p?o:o[e]||(o[e]={}),b=y.prototype,x=p?r:h?r[e]:(r[e]||{}).prototype;for(u in p&&(t=e),t)(l=!d&&x&&void 0!==x[u])&&s(y,u)||(f=l?x[u]:t[u],y[u]=p&&"function"!=typeof x[u]?t[u]:m&&l?i(f,r):g&&x[u]==f?function(n){var e=function(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,t)}return new n(e,t,r)}return n.apply(this,arguments)};return e.prototype=n.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[u]=f,n&c.R&&b&&!b[u]&&a(b,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,n.exports=c},function(n,e){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n,e){var t=n.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)},function(n,e,t){var r=t(27);n.exports=function(n,e,t){if(r(n),void 0===e)return n;switch(t){case 1:return function(t){return n.call(e,t)};case 2:return function(t,r){return n.call(e,t,r)};case 3:return function(t,r,o){return n.call(e,t,r,o)}}return function(){return n.apply(e,arguments)}}},function(n,e){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,e,t){var r=t(29),o=t(37);n.exports=t(33)?function(n,e,t){return r.f(n,e,o(1,t))}:function(n,e,t){return n[e]=t,n}},function(n,e,t){var r=t(30),o=t(32),i=t(36),a=Object.defineProperty;e.f=t(33)?Object.defineProperty:function(n,e,t){if(r(n),e=i(e,!0),r(t),o)try{return a(n,e,t)}catch(n){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(n[e]=t.value),n}},function(n,e,t){var r=t(31);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n,e){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n,e,t){n.exports=!t(33)&&!t(34)(function(){return 7!=Object.defineProperty(t(35)("div"),"a",{get:function(){return 7}}).a})},function(n,e,t){n.exports=!t(34)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n,e){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,e,t){var r=t(31),o=t(24).document,i=r(o)&&r(o.createElement);n.exports=function(n){return i?o.createElement(n):{}}},function(n,e,t){var r=t(31);n.exports=function(n,e){if(!r(n))return n;var t,o;if(e&&"function"==typeof(t=n.toString)&&!r(o=t.call(n)))return o;if("function"==typeof(t=n.valueOf)&&!r(o=t.call(n)))return o;if(!e&&"function"==typeof(t=n.toString)&&!r(o=t.call(n)))return o;throw TypeError("Can't convert object to primitive value")}},function(n,e){n.exports=function(n,e){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:e}}},function(n,e){var t={}.hasOwnProperty;n.exports=function(n,e){return t.call(n,e)}},function(n,e,t){var r=t(40),o=t(75);n.exports=function(n,e){if(null==n)return{};var t,i,a={},s=o(n);for(i=0;i=0||(a[t]=n[t]);if(r){var c=r(n);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(a[t]=n[t])}return a}},function(n,e,t){n.exports=t(41)},function(n,e,t){t(42),n.exports=t(25).Object.getOwnPropertySymbols},function(n,e,t){"use strict";var r=t(24),o=t(38),i=t(33),a=t(23),s=t(43),c=t(44).KEY,u=t(34),l=t(46),f=t(48),d=t(45),p=t(49),h=t(50),v=t(51),m=t(52),g=t(67),y=t(30),b=t(31),x=t(68),w=t(55),k=t(36),_=t(37),O=t(69),L=t(72),S=t(74),j=t(65),T=t(29),E=t(53),C=S.f,A=T.f,P=L.f,U=r.Symbol,$=r.JSON,I=$&&$.stringify,N=p("_hidden"),q=p("toPrimitive"),M={}.propertyIsEnumerable,R=l("symbol-registry"),D=l("symbols"),F=l("op-symbols"),B=Object.prototype,G="function"==typeof U&&!!j.f,W=r.QObject,z=!W||!W.prototype||!W.prototype.findChild,H=i&&u(function(){return 7!=O(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(n,e,t){var r=C(B,e);r&&delete B[e],A(n,e,t),r&&n!==B&&A(B,e,r)}:A,J=function(n){var e=D[n]=O(U.prototype);return e._k=n,e},V=G&&"symbol"==typeof U.iterator?function(n){return"symbol"==typeof n}:function(n){return n instanceof U},Y=function(n,e,t){return n===B&&Y(F,e,t),y(n),e=k(e,!0),y(t),o(D,e)?(t.enumerable?(o(n,N)&&n[N][e]&&(n[N][e]=!1),t=O(t,{enumerable:_(0,!1)})):(o(n,N)||A(n,N,_(1,{})),n[N][e]=!0),H(n,e,t)):A(n,e,t)},K=function(n,e){y(n);for(var t,r=m(e=w(e)),o=0,i=r.length;i>o;)Y(n,t=r[o++],e[t]);return n},Z=function(n){var e=M.call(this,n=k(n,!0));return!(this===B&&o(D,n)&&!o(F,n))&&(!(e||!o(this,n)||!o(D,n)||o(this,N)&&this[N][n])||e)},X=function(n,e){if(n=w(n),e=k(e,!0),n!==B||!o(D,e)||o(F,e)){var t=C(n,e);return!t||!o(D,e)||o(n,N)&&n[N][e]||(t.enumerable=!0),t}},Q=function(n){for(var e,t=P(w(n)),r=[],i=0;t.length>i;)o(D,e=t[i++])||e==N||e==c||r.push(e);return r},nn=function(n){for(var e,t=n===B,r=P(t?F:w(n)),i=[],a=0;r.length>a;)!o(D,e=r[a++])||t&&!o(B,e)||i.push(D[e]);return i};G||(s((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var n=d(arguments.length>0?arguments[0]:void 0),e=function(t){this===B&&e.call(F,t),o(this,N)&&o(this[N],n)&&(this[N][n]=!1),H(this,n,_(1,t))};return i&&z&&H(B,n,{configurable:!0,set:e}),J(n)}).prototype,"toString",function(){return this._k}),S.f=X,T.f=Y,t(73).f=L.f=Q,t(66).f=Z,j.f=nn,i&&!t(47)&&s(B,"propertyIsEnumerable",Z,!0),h.f=function(n){return J(p(n))}),a(a.G+a.W+a.F*!G,{Symbol:U});for(var en="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tn=0;en.length>tn;)p(en[tn++]);for(var rn=E(p.store),on=0;rn.length>on;)v(rn[on++]);a(a.S+a.F*!G,"Symbol",{for:function(n){return o(R,n+="")?R[n]:R[n]=U(n)},keyFor:function(n){if(!V(n))throw TypeError(n+" is not a symbol!");for(var e in R)if(R[e]===n)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!G,"Object",{create:function(n,e){return void 0===e?O(n):K(O(n),e)},defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:nn});var an=u(function(){j.f(1)});a(a.S+a.F*an,"Object",{getOwnPropertySymbols:function(n){return j.f(x(n))}}),$&&a(a.S+a.F*(!G||u(function(){var n=U();return"[null]"!=I([n])||"{}"!=I({a:n})||"{}"!=I(Object(n))})),"JSON",{stringify:function(n){for(var e,t,r=[n],o=1;arguments.length>o;)r.push(arguments[o++]);if(t=e=r[1],(b(e)||void 0!==n)&&!V(n))return g(e)||(e=function(n,e){if("function"==typeof t&&(e=t.call(this,n,e)),!V(e))return e}),r[1]=e,I.apply($,r)}}),U.prototype[q]||t(28)(U.prototype,q,U.prototype.valueOf),f(U,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(n,e,t){n.exports=t(28)},function(n,e,t){var r=t(45)("meta"),o=t(31),i=t(38),a=t(29).f,s=0,c=Object.isExtensible||function(){return!0},u=!t(34)(function(){return c(Object.preventExtensions({}))}),l=function(n){a(n,r,{value:{i:"O"+ ++s,w:{}}})},f=n.exports={KEY:r,NEED:!1,fastKey:function(n,e){if(!o(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!i(n,r)){if(!c(n))return"F";if(!e)return"E";l(n)}return n[r].i},getWeak:function(n,e){if(!i(n,r)){if(!c(n))return!0;if(!e)return!1;l(n)}return n[r].w},onFreeze:function(n){return u&&f.NEED&&c(n)&&!i(n,r)&&l(n),n}}},function(n,e){var t=0,r=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++t+r).toString(36))}},function(n,e,t){var r=t(25),o=t(24),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(n.exports=function(n,e){return i[n]||(i[n]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:t(47)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(n,e){n.exports=!0},function(n,e,t){var r=t(29).f,o=t(38),i=t(49)("toStringTag");n.exports=function(n,e,t){n&&!o(n=t?n:n.prototype,i)&&r(n,i,{configurable:!0,value:e})}},function(n,e,t){var r=t(46)("wks"),o=t(45),i=t(24).Symbol,a="function"==typeof i;(n.exports=function(n){return r[n]||(r[n]=a&&i[n]||(a?i:o)("Symbol."+n))}).store=r},function(n,e,t){e.f=t(49)},function(n,e,t){var r=t(24),o=t(25),i=t(47),a=t(50),s=t(29).f;n.exports=function(n){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==n.charAt(0)||n in e||s(e,n,{value:a.f(n)})}},function(n,e,t){var r=t(53),o=t(65),i=t(66);n.exports=function(n){var e=r(n),t=o.f;if(t)for(var a,s=t(n),c=i.f,u=0;s.length>u;)c.call(n,a=s[u++])&&e.push(a);return e}},function(n,e,t){var r=t(54),o=t(64);n.exports=Object.keys||function(n){return r(n,o)}},function(n,e,t){var r=t(38),o=t(55),i=t(59)(!1),a=t(63)("IE_PROTO");n.exports=function(n,e){var t,s=o(n),c=0,u=[];for(t in s)t!=a&&r(s,t)&&u.push(t);for(;e.length>c;)r(s,t=e[c++])&&(~i(u,t)||u.push(t));return u}},function(n,e,t){var r=t(56),o=t(58);n.exports=function(n){return r(o(n))}},function(n,e,t){var r=t(57);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n,e){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n,e){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n}},function(n,e,t){var r=t(55),o=t(60),i=t(62);n.exports=function(n){return function(e,t,a){var s,c=r(e),u=o(c.length),l=i(a,u);if(n&&t!=t){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((n||l in c)&&c[l]===t)return n||l||0;return!n&&-1}}},function(n,e,t){var r=t(61),o=Math.min;n.exports=function(n){return n>0?o(r(n),9007199254740991):0}},function(n,e){var t=Math.ceil,r=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?r:t)(n)}},function(n,e,t){var r=t(61),o=Math.max,i=Math.min;n.exports=function(n,e){return(n=r(n))<0?o(n+e,0):i(n,e)}},function(n,e,t){var r=t(46)("keys"),o=t(45);n.exports=function(n){return r[n]||(r[n]=o(n))}},function(n,e){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,e){e.f=Object.getOwnPropertySymbols},function(n,e){e.f={}.propertyIsEnumerable},function(n,e,t){var r=t(57);n.exports=Array.isArray||function(n){return"Array"==r(n)}},function(n,e,t){var r=t(58);n.exports=function(n){return Object(r(n))}},function(n,e,t){var r=t(30),o=t(70),i=t(64),a=t(63)("IE_PROTO"),s=function(){},c=function(){var n,e=t(35)("iframe"),r=i.length;for(e.style.display="none",t(71).appendChild(e),e.src="javascript:",(n=e.contentWindow.document).open(),n.write("