@vendure/admin-ui-plugin 2.0.0-next.24 → 2.0.0-next.25
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/lib/admin-ui/625.a3f9b49f4b9723db.js +2 -0
- package/lib/admin-ui/625.a3f9b49f4b9723db.js.map +1 -0
- package/lib/admin-ui/index.html +1 -1
- package/lib/admin-ui/{main.ffdd095fc63390e2.js → main.ababafd376eafebb.js} +2 -2
- package/lib/admin-ui/{main.ffdd095fc63390e2.js.map → main.ababafd376eafebb.js.map} +1 -1
- package/lib/admin-ui/{runtime.2d88c9597f145c74.js → runtime.8da96dfa2596505b.js} +2 -2
- package/lib/admin-ui/{runtime.2d88c9597f145c74.js.map → runtime.8da96dfa2596505b.js.map} +1 -1
- package/lib/src/plugin.js +1 -1
- package/lib/src/plugin.js.map +1 -1
- package/package.json +4 -4
- package/lib/admin-ui/625.ce0752367b2918a3.js +0 -2
- package/lib/admin-ui/625.ce0752367b2918a3.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,
|
|
2
|
-
//# sourceMappingURL=runtime.
|
|
1
|
+
(()=>{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,d)=>{if(!t){var a=1/0;for(i=0;i<e.length;i++){for(var[t,f,d]=e[i],c=!0,o=0;o<t.length;o++)(!1&d||a>=d)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(c=!1,d<a&&(a=d));if(c){e.splice(i--,1);var l=f();void 0!==l&&(n=l)}}return n}d=d||0;for(var i=e.length;i>0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,f,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>(592===e?"common":e)+"."+{26:"6407e52b6e31b210",165:"6aeb6ecf722558ee",239:"bc59928cd01c7e91",316:"d7ad74308299e698",356:"35ca041b6f7a6cc0",430:"827b68efffc7eada",496:"e4c426e8cc0f3034",592:"8d822adf80a60465",625:"a3f9b49f4b9723db",654:"d4c38af0c765576f"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="vendure-admin:";r.l=(t,f,d,i)=>{if(e[t])e[t].push(f);else{var a,c;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l<o.length;l++){var u=o[l];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==n+d){a=u;break}}a||(c=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+d),a.src=r.tu(t)),e[t]=[f];var s=(g,b)=>{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,d)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)d.push(i[2]);else if(666!=f){var a=new Promise((u,s)=>i=e[f]=[u,s]);d.push(i[2]=a);var c=r.p+r.u(f),o=new Error;r.l(c,u=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;o.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",o.name="ChunkLoadError",o.type=s,o.request=p,i[1](o)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,d)=>{var o,l,[i,a,c]=d,u=0;if(i.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var s=c(r)}for(f&&f(d);u<i.length;u++)l=i[u],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(s)},t=self.webpackChunkvendure_admin=self.webpackChunkvendure_admin||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
|
|
2
|
+
//# sourceMappingURL=runtime.8da96dfa2596505b.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"uBAAAA,OCCAC,KAGA,cAEA,WACA,cACA,iBAGA,YACAC,KACAC,UACAC,YAIA,0CAGAC,YAGAA,UAIAC,MD5BAN,KACAM,gBACA,OAOA,IADAC,MACA,QAAiBC,WAAqBA,KAGtC,QAFAH,YACAI,KACAC,IAAkBA,WAAqBA,MACvC,oDACAL,iBAEAI,KACAE,YAGA,MACAX,gBACA,eACA,cAGA,SAvBAW,OACA,mBAA+BH,iBAAwCA,gBACvER,cEJAM,QACA,sBACA,cACA,MACA,cAAiCC,MACjCK,GCLAN,YACA,eACAA,qBACAO,2BAAyCC,0BCJzCR,OAGAA,OACAS,4CACAT,YACAM,GACE,KCNFN,QAEA,yBAA6D,sOAAyPN,SCFtTM,iBCDAA,2DCAA,SACAM,mBAEAN,gBACA,QAAuBN,iBAAvB,CACA,QACA,cAEA,QADAU,0CACAM,IAAiBA,WAAoBA,KACrC,WACA,kEAAmGT,IAAY,OAG/GA,IACAE,MACAF,oCACAU,cACAV,kBACAA,cACAD,MACAC,6BAEAA,mCACAA,eAEAP,SACA,cAEAO,wBACAW,gBACA,WAIA,UAHAlB,KACAO,0CACAY,sBACAC,eAGAC,iCAAmEJ,0BAAiC,MACpGV,iCACAA,+BACAE,sCCvCAH,QACA,gDACAO,4CAAuDS,iBAEvDT,sCAAgDS,YCLhDhB,UACAN,WACAA,4BACAA,SCHA,MACAM,eAEA,QACAN,GACAuB,sBAEA,8DACAvB,mDAGAA,OCXAM,kCCAAA,aCKA,OACA,OAGAA,cAEA,2BACA,SAGA,KACAK,qBAEA,QAEA,uCACAA,eAGA,iBAEAD,YAgBAJ,MAfAkB,IACA,cAEA,KADAhB,UACAR,aACAQ,IACA,4CACAa,4BACAX,wDACAA,wBACAA,SACAA,YACAF,UAIA,mBACMR,QAaNM,kBAGA,cACA,IAGAI,KAHAF,SAGAgB,IACA,wBACA,WACAlB,WACAA,aAGA,gBAGA,IADAmB,QACMD,WAAqBA,IAC3BR,OACAV,gBACAN,UAEAA,OAEA,eAGAK,oEACAA,0BACAA","names":["e","m","id","loaded","exports","t","r","a","f","c","o","d","n","Object","enumerable","Promise","l","type","clearTimeout","_","g","p","value","createScriptURL","u","i"],"sources":["webpack/runtime/chunk loaded","webpack/bootstrap","webpack/runtime/compat get default export","webpack/runtime/define property getters","webpack/runtime/ensure chunk","webpack/runtime/get javascript chunk filename","webpack/runtime/get mini-css chunk filename","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/load script","webpack/runtime/make namespace object","webpack/runtime/node module decorator","webpack/runtime/trusted types policy","webpack/runtime/trusted types script url","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + (chunkId === 592 ? \"common\" : chunkId) + \".\" + {\"26\":\"6407e52b6e31b210\",\"165\":\"6aeb6ecf722558ee\",\"239\":\"bc59928cd01c7e91\",\"316\":\"d7ad74308299e698\",\"356\":\"35ca041b6f7a6cc0\",\"430\":\"827b68efffc7eada\",\"496\":\"e4c426e8cc0f3034\",\"592\":\"8d822adf80a60465\",\"625\":\"ce0752367b2918a3\",\"654\":\"d4c38af0c765576f\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"vendure-admin:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\t\tscript.type = \"module\";\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = __webpack_require__.tu(url);\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","var policy;\n__webpack_require__.tt = () => {\n\t// Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.\n\tif (policy === undefined) {\n\t\tpolicy = {\n\t\t\tcreateScriptURL: (url) => (url)\n\t\t};\n\t\tif (typeof trustedTypes !== \"undefined\" && trustedTypes.createPolicy) {\n\t\t\tpolicy = trustedTypes.createPolicy(\"angular#bundler\", policy);\n\t\t}\n\t}\n\treturn policy;\n};","__webpack_require__.tu = (url) => (__webpack_require__.tt().createScriptURL(url));","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t666: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(666 != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkvendure_admin\"] = self[\"webpackChunkvendure_admin\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));"],"sourceRoot":"webpack:///","file":"runtime.2d88c9597f145c74.js"}
|
|
1
|
+
{"version":3,"mappings":"uBAAAA,OCCAC,KAGA,cAEA,WACA,cACA,iBAGA,YACAC,KACAC,UACAC,YAIA,0CAGAC,YAGAA,UAIAC,MD5BAN,KACAM,gBACA,OAOA,IADAC,MACA,QAAiBC,WAAqBA,KAGtC,QAFAH,YACAI,KACAC,IAAkBA,WAAqBA,MACvC,oDACAL,iBAEAI,KACAE,YAGA,MACAX,gBACA,eACA,cAGA,SAvBAW,OACA,mBAA+BH,iBAAwCA,gBACvER,cEJAM,QACA,sBACA,cACA,MACA,cAAiCC,MACjCK,GCLAN,YACA,eACAA,qBACAO,2BAAyCC,0BCJzCR,OAGAA,OACAS,4CACAT,YACAM,GACE,KCNFN,QAEA,yBAA6D,sOAAyPN,SCFtTM,iBCDAA,2DCAA,SACAM,mBAEAN,gBACA,QAAuBN,iBAAvB,CACA,QACA,cAEA,QADAU,0CACAM,IAAiBA,WAAoBA,KACrC,WACA,kEAAmGT,IAAY,OAG/GA,IACAE,MACAF,oCACAU,cACAV,kBACAA,cACAD,MACAC,6BAEAA,mCACAA,eAEAP,SACA,cAEAO,wBACAW,gBACA,WAIA,UAHAlB,KACAO,0CACAY,sBACAC,eAGAC,iCAAmEJ,0BAAiC,MACpGV,iCACAA,+BACAE,sCCvCAH,QACA,gDACAO,4CAAuDS,iBAEvDT,sCAAgDS,YCLhDhB,UACAN,WACAA,4BACAA,SCHA,MACAM,eAEA,QACAN,GACAuB,sBAEA,8DACAvB,mDAGAA,OCXAM,kCCAAA,aCKA,OACA,OAGAA,cAEA,2BACA,SAGA,KACAK,qBAEA,QAEA,uCACAA,eAGA,iBAEAD,YAgBAJ,MAfAkB,IACA,cAEA,KADAhB,UACAR,aACAQ,IACA,4CACAa,4BACAX,wDACAA,wBACAA,SACAA,YACAF,UAIA,mBACMR,QAaNM,kBAGA,cACA,IAGAI,KAHAF,SAGAgB,IACA,wBACA,WACAlB,WACAA,aAGA,gBAGA,IADAmB,QACMD,WAAqBA,IAC3BR,OACAV,gBACAN,UAEAA,OAEA,eAGAK,oEACAA,0BACAA","names":["e","m","id","loaded","exports","t","r","a","i","c","o","d","n","Object","enumerable","Promise","l","type","clearTimeout","_","g","p","value","createScriptURL","u","f"],"sources":["webpack/runtime/chunk loaded","webpack/bootstrap","webpack/runtime/compat get default export","webpack/runtime/define property getters","webpack/runtime/ensure chunk","webpack/runtime/get javascript chunk filename","webpack/runtime/get mini-css chunk filename","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/load script","webpack/runtime/make namespace object","webpack/runtime/node module decorator","webpack/runtime/trusted types policy","webpack/runtime/trusted types script url","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + (chunkId === 592 ? \"common\" : chunkId) + \".\" + {\"26\":\"6407e52b6e31b210\",\"165\":\"6aeb6ecf722558ee\",\"239\":\"bc59928cd01c7e91\",\"316\":\"d7ad74308299e698\",\"356\":\"35ca041b6f7a6cc0\",\"430\":\"827b68efffc7eada\",\"496\":\"e4c426e8cc0f3034\",\"592\":\"8d822adf80a60465\",\"625\":\"a3f9b49f4b9723db\",\"654\":\"d4c38af0c765576f\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var inProgress = {};\nvar dataWebpackPrefix = \"vendure-admin:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\t\tscript.type = \"module\";\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = __webpack_require__.tu(url);\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","var policy;\n__webpack_require__.tt = () => {\n\t// Create Trusted Type policy if Trusted Types are available and the policy doesn't exist yet.\n\tif (policy === undefined) {\n\t\tpolicy = {\n\t\t\tcreateScriptURL: (url) => (url)\n\t\t};\n\t\tif (typeof trustedTypes !== \"undefined\" && trustedTypes.createPolicy) {\n\t\t\tpolicy = trustedTypes.createPolicy(\"angular#bundler\", policy);\n\t\t}\n\t}\n\treturn policy;\n};","__webpack_require__.tu = (url) => (__webpack_require__.tt().createScriptURL(url));","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t666: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(666 != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkvendure_admin\"] = self[\"webpackChunkvendure_admin\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));"],"sourceRoot":"webpack:///","file":"runtime.8da96dfa2596505b.js"}
|
package/lib/src/plugin.js
CHANGED
|
@@ -163,7 +163,7 @@ let AdminUiPlugin = AdminUiPlugin_1 = class AdminUiPlugin {
|
|
|
163
163
|
brand: (_b = AdminUiPlugin_1.options.adminUiConfig) === null || _b === void 0 ? void 0 : _b.brand,
|
|
164
164
|
hideVendureBranding: propOrDefault('hideVendureBranding', ((_c = AdminUiPlugin_1.options.adminUiConfig) === null || _c === void 0 ? void 0 : _c.hideVendureBranding) || false),
|
|
165
165
|
hideVersion: propOrDefault('hideVersion', ((_d = AdminUiPlugin_1.options.adminUiConfig) === null || _d === void 0 ? void 0 : _d.hideVersion) || false),
|
|
166
|
-
|
|
166
|
+
loginImageUrl: (_e = AdminUiPlugin_1.options.adminUiConfig) === null || _e === void 0 ? void 0 : _e.loginImageUrl,
|
|
167
167
|
cancellationReasons: propOrDefault('cancellationReasons', undefined),
|
|
168
168
|
};
|
|
169
169
|
}
|
package/lib/src/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,2EAAqF;AAOrF,wCAQuB;AACvB,sDAA8B;AAC9B,wDAA0B;AAC1B,gDAAwB;AAExB,2CAMqB;AA0CrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAKH,IAAa,aAAa,qBAA1B,MAAa,aAAa;IAGtB,YAAoB,aAA4B,EAAU,cAA8B;QAApE,kBAAa,GAAb,aAAa,CAAe;QAAU,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE5F;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,OAA6B;QACrC,IAAI,C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|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/express": "^4.17.8",
|
|
23
23
|
"@types/fs-extra": "^9.0.1",
|
|
24
|
-
"@vendure/common": "^2.0.0-next.
|
|
25
|
-
"@vendure/core": "^2.0.0-next.
|
|
24
|
+
"@vendure/common": "^2.0.0-next.25",
|
|
25
|
+
"@vendure/core": "^2.0.0-next.25",
|
|
26
26
|
"express": "^4.17.1",
|
|
27
27
|
"rimraf": "^3.0.2",
|
|
28
28
|
"typescript": "4.5.5"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"fs-extra": "^10.0.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "1f9b6192a269ef4242da0143ea460a512af964d4"
|
|
34
34
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkvendure_admin=self.webpackChunkvendure_admin||[]).push([[625],{2625:(L,h,i)=>{i.r(h),i.d(h,{LoginComponent:()=>c,LoginGuard:()=>p,LoginModule:()=>s,loginRoutes:()=>u});var a=i(9950),n=i(3184),d=i(9720),f=i(8784),C=i(6362),g=i(587),w=i(7890),l=i(2748),M=i(7514);function _(o,t){if(1&o&&(n.TgZ(0,"p",22),n._uU(1),n.qZA()),2&o){const e=n.oxw();n.xp6(1),n.hij("Photo by ",e.imageCreator," on Unsplash")}}function x(o,t){if(1&o&&(n.TgZ(0,"p",23),n._uU(1),n.qZA()),2&o){const e=n.oxw();n.xp6(1),n.Oqu(e.imageLocation)}}function O(o,t){if(1&o&&n._UZ(0,"img",24),2&o){const e=n.oxw();n.Q6J("src",e.imageUrl,n.LSH)("alt",e.imageUrl)}}function P(o,t){1&o&&(n.TgZ(0,"span"),n._uU(1,"-"),n.qZA())}function v(o,t){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,P,2,0,"span",20),n.qZA()),2&o){const e=n.oxw();n.xp6(1),n.hij("",e.brand," "),n.xp6(1),n.Q6J("ngIf",!e.hideVendureBranding||!e.hideVersion)}}function b(o,t){1&o&&(n.TgZ(0,"span"),n._uU(1,"vendure"),n.qZA())}function y(o,t){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const e=n.oxw();n.xp6(1),n.hij("v",e.version,"")}}class c{constructor(t,e,r){this.authService=t,this.router=e,this.httpClient=r,this.username="",this.password="",this.rememberMe=!1,this.version=a.s5M,this.brand=(0,a.hq7)().brand,this.hideVendureBranding=(0,a.hq7)().hideVendureBranding,this.hideVersion=(0,a.hq7)().hideVersion,this.customImageUrl=(0,a.hq7)().loginImage,this.imageUrl="",this.imageLocation="",this.imageCreator="",this.customImageUrl?this.imageUrl=this.customImageUrl:this.loadImage()}logIn(){this.errorMessage=void 0,this.authService.logIn(this.username,this.password,this.rememberMe).subscribe(t=>{switch(t.__typename){case"CurrentUser":const e=this.getRedirectRoute();this.router.navigateByUrl(e||"/");break;case"InvalidCredentialsError":case"NativeAuthStrategyError":this.errorMessage=t.message}})}loadImage(){this.httpClient.get("https://login-image.vendure.io").toPromise().then(t=>{this.updateImage(t)})}updateImage(t){const e=t.user,r=t.location;this.imageUrl=t.urls.regular,this.imageCreator=e.name,this.imageLocation=r.name}getRedirectRoute(){let t;const e=new RegExp(`${a.ONw}=(.*)`);try{const r=window.location.search.match(e);r&&1<r.length&&(t=atob(decodeURIComponent(r[1])))}catch(r){}return t}}c.\u0275fac=function(t){return new(t||c)(n.Y36(a.e80),n.Y36(d.F0),n.Y36(f.eN))},c.\u0275cmp=n.Xpm({type:c,selectors:[["vdr-login"]],decls:38,vars:33,consts:[[1,"login-wrapper"],[1,"login-wrapper-inner"],[1,"login-wrapper-image"],[1,"login-wrapper-image-content"],[1,"login-wrapper-image-title"],[1,"login-wrapper-image-copyright"],["class","creator",4,"ngIf"],["class","location",4,"ngIf"],[3,"src","alt",4,"ngIf"],[1,"login-wrapper-form"],[1,"login-title"],[1,"login-form"],[1,"login-group"],["type","text","name","username","id","login_username",1,"username",3,"ngModel","placeholder","ngModelChange"],["name","password","type","password","id","login_password",1,"password",3,"ngModel","placeholder","ngModelChange"],[1,"login-error",3,"clrAlertType","clrAlertClosable"],[1,"alert-text"],["type","checkbox","clrCheckbox","","id","rememberme","name","rememberme",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary",3,"disabled","click"],[1,"version"],[4,"ngIf"],["src","assets/logo-300px.png",1,"login-wrapper-logo"],[1,"creator"],[1,"location"],[3,"src","alt"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div",5),n.YNc(8,_,2,1,"p",6),n.YNc(9,x,2,1,"p",7),n.qZA()(),n.YNc(10,O,1,2,"img",8),n.qZA(),n.TgZ(11,"div",9)(12,"p",10),n._uU(13),n.ALo(14,"translate"),n.qZA(),n.TgZ(15,"form",11)(16,"div",12)(17,"input",13),n.NdJ("ngModelChange",function(m){return e.username=m}),n.ALo(18,"translate"),n.qZA(),n.TgZ(19,"input",14),n.NdJ("ngModelChange",function(m){return e.password=m}),n.ALo(20,"translate"),n.qZA(),n.TgZ(21,"clr-alert",15)(22,"clr-alert-item")(23,"span",16),n._uU(24),n.qZA()()(),n.TgZ(25,"clr-checkbox-wrapper")(26,"input",17),n.NdJ("ngModelChange",function(m){return e.rememberMe=m}),n.qZA(),n.TgZ(27,"label"),n._uU(28),n.ALo(29,"translate"),n.qZA()(),n.TgZ(30,"button",18),n.NdJ("click",function(){return e.logIn()}),n._uU(31),n.ALo(32,"translate"),n.qZA()(),n.TgZ(33,"div",19),n.YNc(34,v,3,2,"span",20),n.YNc(35,b,2,0,"span",20),n.YNc(36,y,2,1,"span",20),n.qZA()()(),n._UZ(37,"img",21),n.qZA()()),2&t&&(n.xp6(5),n.hij(" ",n.lcZ(6,21,"common.login-image-title")," "),n.xp6(3),n.Q6J("ngIf",e.imageCreator),n.xp6(1),n.Q6J("ngIf",e.imageLocation),n.xp6(1),n.Q6J("ngIf",e.imageUrl),n.xp6(3),n.hij(" ",n.lcZ(14,23,"common.login-title")," "),n.xp6(4),n.Q6J("ngModel",e.username)("placeholder",n.lcZ(18,25,"common.username")),n.xp6(2),n.Q6J("ngModel",e.password)("placeholder",n.lcZ(20,27,"common.password")),n.xp6(2),n.ekj("visible",e.errorMessage),n.Q6J("clrAlertType","danger")("clrAlertClosable",!1),n.xp6(3),n.hij(" ",e.errorMessage," "),n.xp6(2),n.Q6J("ngModel",e.rememberMe),n.xp6(2),n.Oqu(n.lcZ(29,29,"common.remember-me")),n.xp6(2),n.Q6J("disabled",!e.username||!e.password),n.xp6(1),n.hij(" ",n.lcZ(32,31,"common.login")," "),n.xp6(3),n.Q6J("ngIf",e.brand),n.xp6(1),n.Q6J("ngIf",!e.hideVendureBranding),n.xp6(1),n.Q6J("ngIf",!e.hideVersion))},directives:[C.O5,g._Y,g.JL,g.F,w.y,g.Fj,g.JJ,g.On,l.TIm,l.CyW,l.I9z,l.PEh,g.Wl,l.KKC,l.MgK],pipes:[M.X$],styles:[".login-wrapper[_ngcontent-%COMP%]{background:#f0f2f5;background-image:none;height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%]{background:#fff;width:1120px;height:590px;display:flex;justify-content:flex-start;align-items:stretch;position:relative;border-radius:3px;overflow:hidden}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%]{flex-direction:column;height:auto;width:100%}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%]{height:100%;flex-grow:1;position:relative}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%]{height:300px}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;object-fit:cover;object-position:center;position:relative;z-index:1}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;left:0;bottom:0;z-index:10;background:#020024;background:linear-gradient(180deg,rgba(2,0,36,0) 0%,rgba(0,0,0,.75) 100%);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;padding:30px}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;color:#fff;margin-bottom:20px}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-title[_ngcontent-%COMP%]{font-size:1.2rem}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%]{opacity:.8}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-image[_ngcontent-%COMP%] .login-wrapper-image-content[_ngcontent-%COMP%] .login-wrapper-image-copyright[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.6rem;color:#fff;margin:0!important}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%]{height:100%;width:400px;padding:40px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;box-shadow:0 20px 25px #0000001a;overflow:hidden;border-radius:5px;flex-shrink:0}@media (max-width: 992px){.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%]{height:auto;width:100%;padding:20px}}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.2rem;margin-bottom:20px;color:#afafaf}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] input.username[_ngcontent-%COMP%], .login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] input.password[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:15px;padding:12px 16px!important;background:#fff;font-size:14px;line-height:22px;color:#52667a;outline:none;-webkit-appearance:none}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-form[_ngcontent-%COMP%] .login-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{width:100%!important;margin-top:20px!important}.login-wrapper[_ngcontent-%COMP%] .login-wrapper-inner[_ngcontent-%COMP%] .login-wrapper-logo[_ngcontent-%COMP%]{width:60px;height:auto;position:absolute;right:20px;top:20px}.version[_ngcontent-%COMP%]{flex:1;flex-grow:1;display:flex;align-items:flex-end;justify-content:center;color:var(--color-grey-300)}.version[_ngcontent-%COMP%] span[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{margin-left:5px}.login-error[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.login-error.visible[_ngcontent-%COMP%]{max-height:46px;transition:max-height .2s;animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;animation-delay:.2s;transform:translate(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate(-1px)}20%,80%{transform:translate(2px)}30%,50%,70%{transform:translate(-4px)}40%,60%{transform:translate(4px)}}"]});var Z=i(635);class p{constructor(t,e){this.router=t,this.authService=e}canActivate(t){return this.authService.checkAuthenticatedStatus().pipe((0,Z.U)(e=>(e&&this.router.navigate(["/"]),!e)))}}p.\u0275fac=function(t){return new(t||p)(n.LFG(d.F0),n.LFG(a.e80))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"});const u=[{path:"",component:c,pathMatch:"full",canActivate:[p]}];class s{}s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[a.m81,d.Bz.forChild(u)]]})}}]);
|
|
2
|
-
//# sourceMappingURL=625.ce0752367b2918a3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"mappings":"6TAQoBA,gBAAwCA,SAAwCA,8BAAxCA,oFACxCA,gBAA0CA,SAAmBA,8BAAnBA,yDAGlDA,uCAAsBA,8BAAgB,yCAmDEA,gBAAmDA,aAACA,kCAApFA,gBAAoBA,SAAYA,yBAA2DA,8BAAvEA,+BAAmBA,qFACvCA,gBAAmCA,mBAAOA,kCAC1CA,gBAA2BA,SAAcA,8BAAdA,kCCvDxC,QAcHC,YAAoBC,EAAkCC,EAAwBC,GAA1DC,mBAAkCA,cAAwBA,kBAb9EA,cAAW,GACXA,cAAW,GACXA,iBAAa,EACbA,aAAUC,MAEVD,YAAQ,WAAeE,MACvBF,0BAAsB,WAAeG,oBACrCH,kBAAc,WAAeI,YAC7BJ,uBAAiBC,SAAeI,WAChCL,cAAW,GACXA,mBAAgB,GAChBA,kBAAe,GAGXA,KAASM,eACLN,KAAKO,SAAWP,KAAKM,eAErBN,KAAKQ,YAIbC,QACIT,KAAKU,kBAAe,EACpBV,KAAKW,YAAYF,MAAMT,KAAKY,SAAUZ,KAAKa,SAAUb,KAAKc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DAIGA,+BACAA,8CACAA,igKErDpB,QACHC,YAAoBC,EAAwBC,GAAxBE,cAAwBA,mBAE5C0C,YAAY7C,GACR,OAAOG,KAAKW,YAAYgC,2BAA2BC,QAC/CC,KAAI/C,IACIA,GACAE,KAAKkB,OAAO4B,SAAS,CAAC,OAElBhD,4CATXiD,GAAUpD,qDAAVoD,EAAUC,QAAVD,EAAU,qBAFP,SCLT,MAAME,EAAsB,CAC/B,CACIC,KAAM,GACNC,UAAWX,EACXY,UAAW,OACXV,YAAa,CAACK,KCEf,+CAAMM,4DAJA,CAACpD,MAAcqD,cAAsBL","names":["n","constructor","t","e","r","this","a","brand","hideVendureBranding","hideVersion","loginImage","customImageUrl","imageUrl","loadImage","logIn","errorMessage","authService","username","password","rememberMe","subscribe","__typename","getRedirectRoute","router","navigateByUrl","message","httpClient","get","toPromise","then","updateImage","user","location","urls","regular","imageCreator","name","imageLocation","RegExp","window","search","match","length","atob","decodeURIComponent","c","selectors","canActivate","checkAuthenticatedStatus","pipe","Z","navigate","p","factory","u","path","component","pathMatch","s","d"],"sources":["./src/lib/login/src/components/login/login.component.html","./src/lib/login/src/components/login/login.component.ts","./src/lib/login/src/providers/login.guard.ts","./src/lib/login/src/login.routes.ts","./src/lib/login/src/login.module.ts"],"sourcesContent":["<div class=\"login-wrapper\">\r\n <div class=\"login-wrapper-inner\">\r\n <div class=\"login-wrapper-image\">\r\n <div class=\"login-wrapper-image-content\">\r\n <div class=\"login-wrapper-image-title\">\r\n {{ 'common.login-image-title' | translate }}\r\n </div>\r\n <div class=\"login-wrapper-image-copyright\">\r\n <p *ngIf=\"imageCreator\" class=\"creator\">Photo by {{ imageCreator }} on Unsplash</p>\r\n <p *ngIf=\"imageLocation\" class=\"location\">{{ imageLocation }}</p>\r\n </div>\r\n </div>\r\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" [alt]=\"imageUrl\">\r\n </div>\r\n <div class=\"login-wrapper-form\">\r\n <p class=\"login-title\">\r\n {{ 'common.login-title' | translate }}\r\n </p>\r\n <form class=\"login-form\">\r\n <div class=\"login-group\">\r\n <input\r\n class=\"username\"\r\n type=\"text\"\r\n name=\"username\"\r\n id=\"login_username\"\r\n [(ngModel)]=\"username\"\r\n [placeholder]=\"'common.username' | translate\"\r\n />\r\n <input\r\n class=\"password\"\r\n name=\"password\"\r\n type=\"password\"\r\n id=\"login_password\"\r\n [(ngModel)]=\"password\"\r\n [placeholder]=\"'common.password' | translate\"\r\n />\r\n <clr-alert [clrAlertType]=\"'danger'\" [clrAlertClosable]=\"false\" [class.visible]=\"errorMessage\" class=\"login-error\">\r\n <clr-alert-item>\r\n <span class=\"alert-text\">\r\n {{ errorMessage }}\r\n </span>\r\n </clr-alert-item>\r\n </clr-alert>\r\n <clr-checkbox-wrapper>\r\n <input\r\n type=\"checkbox\"\r\n clrCheckbox\r\n id=\"rememberme\"\r\n name=\"rememberme\"\r\n [(ngModel)]=\"rememberMe\"\r\n />\r\n <label>{{ 'common.remember-me' | translate }}</label>\r\n </clr-checkbox-wrapper>\r\n <button\r\n type=\"submit\"\r\n class=\"btn btn-primary\"\r\n (click)=\"logIn()\"\r\n [disabled]=\"!username || !password\"\r\n >\r\n {{ 'common.login' | translate }}\r\n </button>\r\n </div>\r\n <div class=\"version\">\r\n <span *ngIf=\"brand\">{{ brand }} <span *ngIf=\"!hideVendureBranding || !hideVersion\">-</span></span>\r\n <span *ngIf=\"!hideVendureBranding\">vendure</span>\r\n <span *ngIf=\"!hideVersion\">v{{ version }}</span>\r\n </div>\r\n </form>\r\n </div>\r\n <img class=\"login-wrapper-logo\" src=\"assets/logo-300px.png\" />\r\n </div>\r\n</div>\r\n","import { HttpClient, HttpParams } from '@angular/common/http';\r\nimport { Component } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { ADMIN_UI_VERSION, AuthService, AUTH_REDIRECT_PARAM, getAppConfig } from '@vendure/admin-ui/core';\r\n\r\n@Component({\r\n selector: 'vdr-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.scss'],\r\n})\r\nexport class LoginComponent {\r\n username = '';\r\n password = '';\r\n rememberMe = false;\r\n version = ADMIN_UI_VERSION;\r\n errorMessage: string | undefined;\r\n brand = getAppConfig().brand;\r\n hideVendureBranding = getAppConfig().hideVendureBranding;\r\n hideVersion = getAppConfig().hideVersion;\r\n customImageUrl = getAppConfig().loginImage;\r\n imageUrl = '';\r\n imageLocation = '';\r\n imageCreator = '';\r\n\r\n constructor(private authService: AuthService, private router: Router, private httpClient: HttpClient) {\r\n if (this.customImageUrl) {\r\n this.imageUrl = this.customImageUrl;\r\n } else {\r\n this.loadImage();\r\n }\r\n }\r\n\r\n logIn(): void {\r\n this.errorMessage = undefined;\r\n this.authService.logIn(this.username, this.password, this.rememberMe).subscribe(result => {\r\n switch (result.__typename) {\r\n case 'CurrentUser':\r\n const redirect = this.getRedirectRoute();\r\n this.router.navigateByUrl(redirect ? redirect : '/');\r\n break;\r\n case 'InvalidCredentialsError':\r\n case 'NativeAuthStrategyError':\r\n this.errorMessage = result.message;\r\n break;\r\n }\r\n });\r\n }\r\n\r\n loadImage() {\r\n this.httpClient\r\n .get('https://login-image.vendure.io')\r\n .toPromise()\r\n .then(res => {\r\n this.updateImage(res);\r\n });\r\n }\r\n\r\n updateImage(res) {\r\n const user: any = (res as any).user;\r\n const location: any = (res as any).location;\r\n\r\n this.imageUrl = (res as any).urls.regular;\r\n this.imageCreator = user.name;\r\n this.imageLocation = location.name;\r\n }\r\n\r\n /**\r\n * Attempts to read a redirect param from the current url and parse it into a\r\n * route from which the user was redirected after a 401 error.\r\n */\r\n private getRedirectRoute(): string | undefined {\r\n let redirectTo: string | undefined;\r\n const re = new RegExp(`${AUTH_REDIRECT_PARAM}=(.*)`);\r\n try {\r\n const redirectToParam = window.location.search.match(re);\r\n if (redirectToParam && 1 < redirectToParam.length) {\r\n redirectTo = atob(decodeURIComponent(redirectToParam[1]));\r\n }\r\n } catch (e: any) {\r\n // ignore\r\n }\r\n return redirectTo;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router';\r\nimport { AuthService } from '@vendure/admin-ui/core';\r\nimport { Observable } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\n\r\n/**\r\n * This guard prevents loggen-in users from navigating to the login screen.\r\n */\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class LoginGuard implements CanActivate {\r\n constructor(private router: Router, private authService: AuthService) {}\r\n\r\n canActivate(route: ActivatedRouteSnapshot): Observable<boolean> {\r\n return this.authService.checkAuthenticatedStatus().pipe(\r\n map(authenticated => {\r\n if (authenticated) {\r\n this.router.navigate(['/']);\r\n }\r\n return !authenticated;\r\n }),\r\n );\r\n }\r\n}\r\n","import { Routes } from '@angular/router';\r\n\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { LoginGuard } from './providers/login.guard';\r\n\r\nexport const loginRoutes: Routes = [\r\n {\r\n path: '',\r\n component: LoginComponent,\r\n pathMatch: 'full',\r\n canActivate: [LoginGuard],\r\n },\r\n];\r\n","import { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { SharedModule } from '@vendure/admin-ui/core';\r\n\r\nimport { LoginComponent } from './components/login/login.component';\r\nimport { loginRoutes } from './login.routes';\r\n\r\n@NgModule({\r\n imports: [SharedModule, RouterModule.forChild(loginRoutes)],\r\n exports: [],\r\n declarations: [LoginComponent],\r\n})\r\nexport class LoginModule {}\r\n"],"sourceRoot":"webpack:///","file":"625.ce0752367b2918a3.js"}
|