diff --git a/.gitignore b/.gitignore index 9a640a5b..b543eda6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,8 @@ server/config.json server/config.test.json coverage .env -dist/* -!dist/.gitkeep +dist/*.js +dist/assets/*.css tags TAGS data.json diff --git a/build/bundle.js b/build/bundle.js index dceeebb5..af617fe6 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -1 +1 @@ -module.exports=function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:r})},e.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e.w={},e(e.s=0)}([function(n,t,e){"use strict";var r=e(1),o=e(2),i=e(10),a=e(5),s=r.createServer(function(n,t){return i.info("Starting Account Link Extension - Version:","2.3.4"),i.info(" > WT_URL:",n("WT_URL")),i.info(" > PUBLIC_WT_URL:",n("PUBLIC_WT_URL")),o(n,t)});n.exports=function(n,t,e){t.x_wt&&t.x_wt.ectx&&t.x_wt.ectx.PUBLIC_WT_URL||!1||a.setValue("PUBLIC_WT_URL",r.urlHelpers.getWebtaskUrl(t)),s(n,t,e)}},function(n,t){n.exports=require("auth0-extension-hapi-tools@1.3.1")},function(n,t,e){"use strict";(function(t){var r=e(3),o=e(4),i=o.FileStorageContext,a=o.WebtaskStorageContext,s=e(5),c=e(6),u=e(10),l=e(125).init,f=function(n){n?(u.error("Hapi initialization failed."),u.error(n)):u.info("Hapi initialization completed.")};n.exports=function(n,e,o){return s.setProvider(function(t){return n(t)||Object({NODE_ENV:"production",CLIENT_VERSION:"2.3.4"})[t]}),l(e?new a(e,{force:1}):new i(r.join(t,"../data.json"))),c(o||f)}}).call(this,"/")},function(n,t){n.exports=require("path")},function(n,t){n.exports=require("auth0-extension-tools@1.3.1")},function(n,t,e){"use strict";var r=e(4).config;n.exports=r()},function(n,t,e){"use strict";(function(t){var r=e(3),o=e(7),i=e(8),a=e(9),s=e(5),c=e(10),u=e(12),l=e(180),f=e(181);n.exports=function(n){var e=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(t,"../public")}}}),d.register([a,i],function(){}),d.route({method:"GET",path:"/js/{file*}",config:{auth:!1},handler:{directory:{path:r.join(t,"../public/js")}}}),d.route({method:"GET",path:"/css/{file*}",config:{auth:!1},handler:{directory:{path:r.join(t,"../public/css")}}}),d.register([f,e,u],function(t){c.debug=function(){for(var n=arguments.length,t=new Array(n),e=0;e0?r[0].identities:[]).map(function(n){return n.provider}).map(f),a=d(i,n("or"));t(c({dynamicSettings:y,stylesheetTag:m,currentUser:e,matchingUsers:r,customCSSTag:g,locale:o,identities:a}))})})}).catch(function(r){var o=n.query.state;u.error("An error was encountered: ",r),u.info(`Redirecting to failed link to /continue: ${e.iss}continue?state=${n.query.state}`),t.redirect(`${e.iss}continue?state=${o}`)})}).catch(function(n){u.error("An invalid token was provided",n),c({dynamicSettings:y,stylesheetTag:m,currentUser:null,matchingUsers:[],customCSSTag:g}).then(function(n){t(n).code(400)})})}}}}},function(n,t){n.exports=function(n){return n&&n.__esModule?n:{default:n}}},function(n,t,e){n.exports=e(16)},function(n,t,e){e(17),e(18),e(62),e(66),e(83),e(84),n.exports=e(26).Promise},function(n,t){},function(n,t,e){"use strict";var r=e(19)(!0);e(22)(String,"String",function(n){this._t=String(n),this._i=0},function(){var n,t=this._t,e=this._i;return e>=t.length?{value:void 0,done:!0}:(n=r(t,e),this._i+=n.length,{value:n,done:!1})})},function(n,t,e){var r=e(20),o=e(21);n.exports=function(n){return function(t,e){var i,a,s=String(o(t)),c=r(e),u=s.length;return c<0||c>=u?n?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?n?s.charAt(c):i:n?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(n,t){var e=Math.ceil,r=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?r:e)(n)}},function(n,t){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n}},function(n,t,e){"use strict";var r=e(23),o=e(24),i=e(40),a=e(29),s=e(41),c=e(42),u=e(58),l=e(60),f=e(59)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};n.exports=function(n,t,e,p,v,m,g){c(e,t,p);var y,b,x,w=function(n){if(!d&&n in S)return S[n];switch(n){case"keys":case"values":return function(){return new e(this,n)}}return function(){return new e(this,n)}},k=t+" Iterator",_="values"==v,L=!1,S=n.prototype,j=S[f]||S["@@iterator"]||v&&S[v],T=j||w(v),E=v?_?w("entries"):T:void 0,C="Array"==t&&S.entries||j;if(C&&(x=l(C.call(new n)))!==Object.prototype&&x.next&&(u(x,k,!0),r||"function"==typeof x[f]||a(x,f,h)),_&&j&&"values"!==j.name&&(L=!0,T=function(){return j.call(this)}),r&&!g||!d&&!L&&S[f]||a(S,f,T),s[t]=T,s[k]=h,v)if(y={values:_?T:w("values"),keys:m?T:w("keys"),entries:E},g)for(b in y)b in S||i(S,b,y[b]);else o(o.P+o.F*(d||L),t,y);return y}},function(n,t){n.exports=!0},function(n,t,e){var r=e(25),o=e(26),i=e(27),a=e(29),s=e(39),c=function(n,t,e){var u,l,f,d=n&c.F,h=n&c.G,p=n&c.S,v=n&c.P,m=n&c.B,g=n&c.W,y=h?o:o[t]||(o[t]={}),b=y.prototype,x=h?r:p?r[t]:(r[t]||{}).prototype;for(u in h&&(e=t),e)(l=!d&&x&&void 0!==x[u])&&s(y,u)||(f=l?x[u]:e[u],y[u]=h&&"function"!=typeof x[u]?e[u]:m&&l?i(f,r):g&&x[u]==f?function(n){var t=function(t,e,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,r)}return n.apply(this,arguments)};return t.prototype=n.prototype,t}(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,t){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(n,t){var e=n.exports={version:"2.5.5"};"number"==typeof __e&&(__e=e)},function(n,t,e){var r=e(28);n.exports=function(n,t,e){if(r(n),void 0===t)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,o){return n.call(t,e,r,o)}}return function(){return n.apply(t,arguments)}}},function(n,t){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,e){var r=e(30),o=e(38);n.exports=e(34)?function(n,t,e){return r.f(n,t,o(1,e))}:function(n,t,e){return n[t]=e,n}},function(n,t,e){var r=e(31),o=e(33),i=e(37),a=Object.defineProperty;t.f=e(34)?Object.defineProperty:function(n,t,e){if(r(n),t=i(t,!0),r(e),o)try{return a(n,t,e)}catch(n){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(n[t]=e.value),n}},function(n,t,e){var r=e(32);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n,t,e){n.exports=!e(34)&&!e(35)(function(){return 7!=Object.defineProperty(e(36)("div"),"a",{get:function(){return 7}}).a})},function(n,t,e){n.exports=!e(35)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n,t){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,e){var r=e(32),o=e(25).document,i=r(o)&&r(o.createElement);n.exports=function(n){return i?o.createElement(n):{}}},function(n,t,e){var r=e(32);n.exports=function(n,t){if(!r(n))return n;var e,o;if(t&&"function"==typeof(e=n.toString)&&!r(o=e.call(n)))return o;if("function"==typeof(e=n.valueOf)&&!r(o=e.call(n)))return o;if(!t&&"function"==typeof(e=n.toString)&&!r(o=e.call(n)))return o;throw TypeError("Can't convert object to primitive value")}},function(n,t){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n,t){var e={}.hasOwnProperty;n.exports=function(n,t){return e.call(n,t)}},function(n,t,e){n.exports=e(29)},function(n,t){n.exports={}},function(n,t,e){"use strict";var r=e(43),o=e(38),i=e(58),a={};e(29)(a,e(59)("iterator"),function(){return this}),n.exports=function(n,t,e){n.prototype=r(a,{next:o(1,e)}),i(n,t+" Iterator")}},function(n,t,e){var r=e(31),o=e(44),i=e(56),a=e(53)("IE_PROTO"),s=function(){},c=function(){var n,t=e(36)("iframe"),r=i.length;for(t.style.display="none",e(57).appendChild(t),t.src="javascript:",(n=t.contentWindow.document).open(),n.write("