diff --git a/Phraseanet-production-client/config/config.js b/Phraseanet-production-client/config/config.js index 4e819a9324..dc285393cf 100644 --- a/Phraseanet-production-client/config/config.js +++ b/Phraseanet-production-client/config/config.js @@ -13,5 +13,5 @@ module.exports = { setupDir: _root + 'tests/setup/node.js', karmaConf: _root + 'config/karma.conf.js', // change this version when you change JS file for lazy loading - jsFileVersion: 8 + jsFileVersion: 9 }; diff --git a/Phraseanet-production-client/dist/authenticate.js b/Phraseanet-production-client/dist/authenticate.js index 8a763c0621..9fcf14e16d 100644 --- a/Phraseanet-production-client/dist/authenticate.js +++ b/Phraseanet-production-client/dist/authenticate.js @@ -96,7 +96,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } -/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=8"; +/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=9"; /******/ var timeout = setTimeout(onScriptComplete, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ function onScriptComplete() { diff --git a/Phraseanet-production-client/dist/authenticate.min.js b/Phraseanet-production-client/dist/authenticate.min.js index 463480d99d..b74eaf9efb 100644 --- a/Phraseanet-production-client/dist/authenticate.min.js +++ b/Phraseanet-production-client/dist/authenticate.min.js @@ -96,7 +96,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } -/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=8"; +/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=9"; /******/ var timeout = setTimeout(onScriptComplete, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ function onScriptComplete() { diff --git a/Phraseanet-production-client/dist/commons.js b/Phraseanet-production-client/dist/commons.js index 0f06dc62f5..988ceb8cd6 100644 --- a/Phraseanet-production-client/dist/commons.js +++ b/Phraseanet-production-client/dist/commons.js @@ -91,7 +91,7 @@ /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } -/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=8"; +/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".js?v=9"; /******/ var timeout = setTimeout(onScriptComplete, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ function onScriptComplete() { diff --git a/Phraseanet-production-client/dist/commons.min.js b/Phraseanet-production-client/dist/commons.min.js index 8e0b5a382d..f84e62c9aa 100644 --- a/Phraseanet-production-client/dist/commons.min.js +++ b/Phraseanet-production-client/dist/commons.min.js @@ -91,7 +91,7 @@ /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } -/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=8"; +/******/ script.src = __webpack_require__.p + "lazy-" + ({}[chunkId]||chunkId) + ".min.js?v=9"; /******/ var timeout = setTimeout(onScriptComplete, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ function onScriptComplete() { diff --git a/Phraseanet-production-client/dist/lazy-3.js b/Phraseanet-production-client/dist/lazy-3.js index 7b25e7a0f4..b31c269451 100644 --- a/Phraseanet-production-client/dist/lazy-3.js +++ b/Phraseanet-production-client/dist/lazy-3.js @@ -27569,7 +27569,7 @@ MapboxTokens.prototype.listScopes = function(callback) { /* 450 */ /***/ (function(module, exports) { -module.exports = {"_args":[["mapbox-gl-circle@1.6.5","/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client"]],"_from":"mapbox-gl-circle@1.6.5","_id":"mapbox-gl-circle@1.6.5","_inBundle":false,"_integrity":"sha512-VHA6lgxZE/WFtBXmMveU2zt7ZeVcBHe42k4U4b8xGEnrDSQs4/++EBPVywEMNqi01XQrbf1eiAhsIDZasR4drw==","_location":"/mapbox-gl-circle","_phantomChildren":{"@mapbox/geojson-area":"0.2.2","@mapbox/gl-matrix":"0.0.1","@mapbox/mapbox-gl-supported":"1.4.0","@mapbox/point-geometry":"0.1.0","@mapbox/shelf-pack":"3.2.0","@mapbox/tiny-sdf":"1.1.0","@mapbox/unitbezier":"0.0.0","@mapbox/vector-tile":"1.3.1","@mapbox/whoots-js":"3.1.0","brfs":"1.6.1","bubleify":"0.7.0","concat-stream":"1.6.2","csscolorparser":"1.0.3","earcut":"2.1.3","geojson-vt":"3.2.1","gray-matter":"3.1.1","grid-index":"1.1.0","jsonlint-lines-primitives":"1.6.0","minimist":"0.0.8","package-json-versionify":"1.0.4","pbf":"3.2.0","quickselect":"1.1.1","rw":"1.3.3","sharkdown":"0.1.1","shuffle-seed":"1.1.6","sort-object":"0.3.2","through2":"2.0.3","tinyqueue":"1.2.3","unassertify":"2.1.1","unflowify":"1.0.1","vt-pbf":"3.1.1","webworkify":"1.5.0"},"_requested":{"type":"version","registry":true,"raw":"mapbox-gl-circle@1.6.5","name":"mapbox-gl-circle","escapedName":"mapbox-gl-circle","rawSpec":"1.6.5","saveSpec":null,"fetchSpec":"1.6.5"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/mapbox-gl-circle/-/mapbox-gl-circle-1.6.5.tgz","_spec":"1.6.5","_where":"/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client","author":{"name":"Smith Micro Software, Inc."},"browserify":{"transform":["babelify"]},"bugs":{"url":"https://github.com/smithmicro/mapbox-gl-circle/issues"},"dependencies":{"@turf/bbox":"^4.7.3","@turf/bbox-polygon":"^4.7.3","@turf/bearing":"^4.5.2","@turf/circle":"^4.7.3","@turf/destination":"^4.7.3","@turf/distance":"^4.7.3","@turf/helpers":"^4.7.3","@turf/truncate":"^4.7.3","core-util-is":"^1.0.2","debug":"^3.0.0","events":"^1.1.1","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","lodash":"^4.17.5","lodash.debounce":"^4.0.8","mapbox-gl":"^0.44.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"description":"A google.maps.Circle replacement for Mapbox GL JS API","devDependencies":{"async-each":"^1.0.1","babel-preset-es2015":"^6.24.1","babelify":"^7.3.0","brfs":"^1.4.4","browserify":"^14.5.0","buble":"^0.15.2","budo":"^10.0.4","documentation":"^5.1.0","eslint":"^4.18.1","eslint-config-google":"^0.9.1","esutils":"^2.0.2","magic-string":"^0.22.4","uglify-js":"^3.3.12","vlq":"^0.2.3","watchify":"^3.10.0"},"directories":{"example":"example","lib":"lib"},"engines":{"node":">=7.6.0","npm":">=5.3.0"},"files":["lib/","example/","dist/"],"homepage":"https://github.com/smithmicro/mapbox-gl-circle#readme","keywords":["mapbox","circle","osm","gl"],"license":"ISC","main":"lib/main.js","name":"mapbox-gl-circle","optionalDependencies":{"core-util-is":"^1.0.2","debug":"^3.0.0","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/smithmicro/mapbox-gl-circle.git"},"scripts":{"browserify":"mkdir -p dist && browserify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug --delay=0 -v","docs":"documentation lint lib/main.js && documentation readme lib/main.js --access public --section=Usage","lint":"eslint lib","prepare":"mkdir -p dist && browserify --standalone MapboxCircle -t [ babelify --presets [ es2015 ] ] lib/main.js | uglifyjs -c -m > dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js && cp -f dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js dist/mapbox-gl-circle.min.js","start":"budo example/index.js --live --force-default-index --title budo/mapbox-gl-circle --verbose -- -t brfs","watchify":"mkdir -p dist && watchify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug -v"},"version":"1.6.5"} +module.exports = {"_args":[["mapbox-gl-circle@1.6.5","/var/alchemy/Phraseanet/Phraseanet-production-client"]],"_from":"mapbox-gl-circle@1.6.5","_id":"mapbox-gl-circle@1.6.5","_inBundle":false,"_integrity":"sha512-VHA6lgxZE/WFtBXmMveU2zt7ZeVcBHe42k4U4b8xGEnrDSQs4/++EBPVywEMNqi01XQrbf1eiAhsIDZasR4drw==","_location":"/mapbox-gl-circle","_phantomChildren":{"@mapbox/geojson-area":"0.2.2","@mapbox/gl-matrix":"0.0.1","@mapbox/mapbox-gl-supported":"1.4.0","@mapbox/point-geometry":"0.1.0","@mapbox/shelf-pack":"3.2.0","@mapbox/tiny-sdf":"1.1.0","@mapbox/unitbezier":"0.0.0","@mapbox/vector-tile":"1.3.1","@mapbox/whoots-js":"3.1.0","brfs":"1.6.1","bubleify":"0.7.0","concat-stream":"1.6.2","csscolorparser":"1.0.3","earcut":"2.1.3","geojson-vt":"3.2.1","gray-matter":"3.1.1","grid-index":"1.1.0","jsonlint-lines-primitives":"1.6.0","minimist":"0.0.8","package-json-versionify":"1.0.4","pbf":"3.2.0","quickselect":"1.1.1","rw":"1.3.3","sharkdown":"0.1.1","shuffle-seed":"1.1.6","sort-object":"0.3.2","through2":"2.0.3","tinyqueue":"1.2.3","unassertify":"2.1.1","unflowify":"1.0.1","vt-pbf":"3.1.1","webworkify":"1.5.0"},"_requested":{"type":"version","registry":true,"raw":"mapbox-gl-circle@1.6.5","name":"mapbox-gl-circle","escapedName":"mapbox-gl-circle","rawSpec":"1.6.5","saveSpec":null,"fetchSpec":"1.6.5"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/mapbox-gl-circle/-/mapbox-gl-circle-1.6.5.tgz","_spec":"1.6.5","_where":"/var/alchemy/Phraseanet/Phraseanet-production-client","author":{"name":"Smith Micro Software, Inc."},"browserify":{"transform":["babelify"]},"bugs":{"url":"https://github.com/smithmicro/mapbox-gl-circle/issues"},"dependencies":{"@turf/bbox":"^4.7.3","@turf/bbox-polygon":"^4.7.3","@turf/bearing":"^4.5.2","@turf/circle":"^4.7.3","@turf/destination":"^4.7.3","@turf/distance":"^4.7.3","@turf/helpers":"^4.7.3","@turf/truncate":"^4.7.3","core-util-is":"^1.0.2","debug":"^3.0.0","events":"^1.1.1","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","lodash":"^4.17.5","lodash.debounce":"^4.0.8","mapbox-gl":"^0.44.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"description":"A google.maps.Circle replacement for Mapbox GL JS API","devDependencies":{"async-each":"^1.0.1","babel-preset-es2015":"^6.24.1","babelify":"^7.3.0","brfs":"^1.4.4","browserify":"^14.5.0","buble":"^0.15.2","budo":"^10.0.4","documentation":"^5.1.0","eslint":"^4.18.1","eslint-config-google":"^0.9.1","esutils":"^2.0.2","magic-string":"^0.22.4","uglify-js":"^3.3.12","vlq":"^0.2.3","watchify":"^3.10.0"},"directories":{"example":"example","lib":"lib"},"engines":{"node":">=7.6.0","npm":">=5.3.0"},"files":["lib/","example/","dist/"],"homepage":"https://github.com/smithmicro/mapbox-gl-circle#readme","keywords":["mapbox","circle","osm","gl"],"license":"ISC","main":"lib/main.js","name":"mapbox-gl-circle","optionalDependencies":{"core-util-is":"^1.0.2","debug":"^3.0.0","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/smithmicro/mapbox-gl-circle.git"},"scripts":{"browserify":"mkdir -p dist && browserify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug --delay=0 -v","docs":"documentation lint lib/main.js && documentation readme lib/main.js --access public --section=Usage","lint":"eslint lib","prepare":"mkdir -p dist && browserify --standalone MapboxCircle -t [ babelify --presets [ es2015 ] ] lib/main.js | uglifyjs -c -m > dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js && cp -f dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js dist/mapbox-gl-circle.min.js","start":"budo example/index.js --live --force-default-index --title budo/mapbox-gl-circle --verbose -- -t brfs","watchify":"mkdir -p dist && watchify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug -v"},"version":"1.6.5"} /***/ }), /* 451 */ diff --git a/Phraseanet-production-client/dist/lazy-3.min.js b/Phraseanet-production-client/dist/lazy-3.min.js index 7b25e7a0f4..b31c269451 100644 --- a/Phraseanet-production-client/dist/lazy-3.min.js +++ b/Phraseanet-production-client/dist/lazy-3.min.js @@ -27569,7 +27569,7 @@ MapboxTokens.prototype.listScopes = function(callback) { /* 450 */ /***/ (function(module, exports) { -module.exports = {"_args":[["mapbox-gl-circle@1.6.5","/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client"]],"_from":"mapbox-gl-circle@1.6.5","_id":"mapbox-gl-circle@1.6.5","_inBundle":false,"_integrity":"sha512-VHA6lgxZE/WFtBXmMveU2zt7ZeVcBHe42k4U4b8xGEnrDSQs4/++EBPVywEMNqi01XQrbf1eiAhsIDZasR4drw==","_location":"/mapbox-gl-circle","_phantomChildren":{"@mapbox/geojson-area":"0.2.2","@mapbox/gl-matrix":"0.0.1","@mapbox/mapbox-gl-supported":"1.4.0","@mapbox/point-geometry":"0.1.0","@mapbox/shelf-pack":"3.2.0","@mapbox/tiny-sdf":"1.1.0","@mapbox/unitbezier":"0.0.0","@mapbox/vector-tile":"1.3.1","@mapbox/whoots-js":"3.1.0","brfs":"1.6.1","bubleify":"0.7.0","concat-stream":"1.6.2","csscolorparser":"1.0.3","earcut":"2.1.3","geojson-vt":"3.2.1","gray-matter":"3.1.1","grid-index":"1.1.0","jsonlint-lines-primitives":"1.6.0","minimist":"0.0.8","package-json-versionify":"1.0.4","pbf":"3.2.0","quickselect":"1.1.1","rw":"1.3.3","sharkdown":"0.1.1","shuffle-seed":"1.1.6","sort-object":"0.3.2","through2":"2.0.3","tinyqueue":"1.2.3","unassertify":"2.1.1","unflowify":"1.0.1","vt-pbf":"3.1.1","webworkify":"1.5.0"},"_requested":{"type":"version","registry":true,"raw":"mapbox-gl-circle@1.6.5","name":"mapbox-gl-circle","escapedName":"mapbox-gl-circle","rawSpec":"1.6.5","saveSpec":null,"fetchSpec":"1.6.5"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/mapbox-gl-circle/-/mapbox-gl-circle-1.6.5.tgz","_spec":"1.6.5","_where":"/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client","author":{"name":"Smith Micro Software, Inc."},"browserify":{"transform":["babelify"]},"bugs":{"url":"https://github.com/smithmicro/mapbox-gl-circle/issues"},"dependencies":{"@turf/bbox":"^4.7.3","@turf/bbox-polygon":"^4.7.3","@turf/bearing":"^4.5.2","@turf/circle":"^4.7.3","@turf/destination":"^4.7.3","@turf/distance":"^4.7.3","@turf/helpers":"^4.7.3","@turf/truncate":"^4.7.3","core-util-is":"^1.0.2","debug":"^3.0.0","events":"^1.1.1","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","lodash":"^4.17.5","lodash.debounce":"^4.0.8","mapbox-gl":"^0.44.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"description":"A google.maps.Circle replacement for Mapbox GL JS API","devDependencies":{"async-each":"^1.0.1","babel-preset-es2015":"^6.24.1","babelify":"^7.3.0","brfs":"^1.4.4","browserify":"^14.5.0","buble":"^0.15.2","budo":"^10.0.4","documentation":"^5.1.0","eslint":"^4.18.1","eslint-config-google":"^0.9.1","esutils":"^2.0.2","magic-string":"^0.22.4","uglify-js":"^3.3.12","vlq":"^0.2.3","watchify":"^3.10.0"},"directories":{"example":"example","lib":"lib"},"engines":{"node":">=7.6.0","npm":">=5.3.0"},"files":["lib/","example/","dist/"],"homepage":"https://github.com/smithmicro/mapbox-gl-circle#readme","keywords":["mapbox","circle","osm","gl"],"license":"ISC","main":"lib/main.js","name":"mapbox-gl-circle","optionalDependencies":{"core-util-is":"^1.0.2","debug":"^3.0.0","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/smithmicro/mapbox-gl-circle.git"},"scripts":{"browserify":"mkdir -p dist && browserify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug --delay=0 -v","docs":"documentation lint lib/main.js && documentation readme lib/main.js --access public --section=Usage","lint":"eslint lib","prepare":"mkdir -p dist && browserify --standalone MapboxCircle -t [ babelify --presets [ es2015 ] ] lib/main.js | uglifyjs -c -m > dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js && cp -f dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js dist/mapbox-gl-circle.min.js","start":"budo example/index.js --live --force-default-index --title budo/mapbox-gl-circle --verbose -- -t brfs","watchify":"mkdir -p dist && watchify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug -v"},"version":"1.6.5"} +module.exports = {"_args":[["mapbox-gl-circle@1.6.5","/var/alchemy/Phraseanet/Phraseanet-production-client"]],"_from":"mapbox-gl-circle@1.6.5","_id":"mapbox-gl-circle@1.6.5","_inBundle":false,"_integrity":"sha512-VHA6lgxZE/WFtBXmMveU2zt7ZeVcBHe42k4U4b8xGEnrDSQs4/++EBPVywEMNqi01XQrbf1eiAhsIDZasR4drw==","_location":"/mapbox-gl-circle","_phantomChildren":{"@mapbox/geojson-area":"0.2.2","@mapbox/gl-matrix":"0.0.1","@mapbox/mapbox-gl-supported":"1.4.0","@mapbox/point-geometry":"0.1.0","@mapbox/shelf-pack":"3.2.0","@mapbox/tiny-sdf":"1.1.0","@mapbox/unitbezier":"0.0.0","@mapbox/vector-tile":"1.3.1","@mapbox/whoots-js":"3.1.0","brfs":"1.6.1","bubleify":"0.7.0","concat-stream":"1.6.2","csscolorparser":"1.0.3","earcut":"2.1.3","geojson-vt":"3.2.1","gray-matter":"3.1.1","grid-index":"1.1.0","jsonlint-lines-primitives":"1.6.0","minimist":"0.0.8","package-json-versionify":"1.0.4","pbf":"3.2.0","quickselect":"1.1.1","rw":"1.3.3","sharkdown":"0.1.1","shuffle-seed":"1.1.6","sort-object":"0.3.2","through2":"2.0.3","tinyqueue":"1.2.3","unassertify":"2.1.1","unflowify":"1.0.1","vt-pbf":"3.1.1","webworkify":"1.5.0"},"_requested":{"type":"version","registry":true,"raw":"mapbox-gl-circle@1.6.5","name":"mapbox-gl-circle","escapedName":"mapbox-gl-circle","rawSpec":"1.6.5","saveSpec":null,"fetchSpec":"1.6.5"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/mapbox-gl-circle/-/mapbox-gl-circle-1.6.5.tgz","_spec":"1.6.5","_where":"/var/alchemy/Phraseanet/Phraseanet-production-client","author":{"name":"Smith Micro Software, Inc."},"browserify":{"transform":["babelify"]},"bugs":{"url":"https://github.com/smithmicro/mapbox-gl-circle/issues"},"dependencies":{"@turf/bbox":"^4.7.3","@turf/bbox-polygon":"^4.7.3","@turf/bearing":"^4.5.2","@turf/circle":"^4.7.3","@turf/destination":"^4.7.3","@turf/distance":"^4.7.3","@turf/helpers":"^4.7.3","@turf/truncate":"^4.7.3","core-util-is":"^1.0.2","debug":"^3.0.0","events":"^1.1.1","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","lodash":"^4.17.5","lodash.debounce":"^4.0.8","mapbox-gl":"^0.44.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"description":"A google.maps.Circle replacement for Mapbox GL JS API","devDependencies":{"async-each":"^1.0.1","babel-preset-es2015":"^6.24.1","babelify":"^7.3.0","brfs":"^1.4.4","browserify":"^14.5.0","buble":"^0.15.2","budo":"^10.0.4","documentation":"^5.1.0","eslint":"^4.18.1","eslint-config-google":"^0.9.1","esutils":"^2.0.2","magic-string":"^0.22.4","uglify-js":"^3.3.12","vlq":"^0.2.3","watchify":"^3.10.0"},"directories":{"example":"example","lib":"lib"},"engines":{"node":">=7.6.0","npm":">=5.3.0"},"files":["lib/","example/","dist/"],"homepage":"https://github.com/smithmicro/mapbox-gl-circle#readme","keywords":["mapbox","circle","osm","gl"],"license":"ISC","main":"lib/main.js","name":"mapbox-gl-circle","optionalDependencies":{"core-util-is":"^1.0.2","debug":"^3.0.0","fsevents":"^1.1.2","glob":"^7.1.2","inflight":"^1.0.6","inherits":"^2.0.3","jsonparse":"^1.3.1","minimatch":"^3.0.4","once":"^1.4.0","punycode":"^2.1.0","readable-stream":"^2.3.3","string_decoder":"^1.0.3","through2":"^2.0.3","util-deprecate":"^1.0.2","wrappy":"^1.0.2","xtend":"^4.0.1","yarn":"^0.27.5"},"repository":{"type":"git","url":"git+ssh://git@github.com/smithmicro/mapbox-gl-circle.git"},"scripts":{"browserify":"mkdir -p dist && browserify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug --delay=0 -v","docs":"documentation lint lib/main.js && documentation readme lib/main.js --access public --section=Usage","lint":"eslint lib","prepare":"mkdir -p dist && browserify --standalone MapboxCircle -t [ babelify --presets [ es2015 ] ] lib/main.js | uglifyjs -c -m > dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js && cp -f dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.min.js dist/mapbox-gl-circle.min.js","start":"budo example/index.js --live --force-default-index --title budo/mapbox-gl-circle --verbose -- -t brfs","watchify":"mkdir -p dist && watchify lib/main.js -o dist/mapbox-gl-circle-${BUILD_VERSION:-dev}.js --debug -v"},"version":"1.6.5"} /***/ }), /* 451 */ diff --git a/Phraseanet-production-client/dist/production.js b/Phraseanet-production-client/dist/production.js index 871910f4df..4f68596d43 100644 --- a/Phraseanet-production-client/dist/production.js +++ b/Phraseanet-production-client/dist/production.js @@ -8634,7 +8634,7 @@ module.exports = { /* 87 */ /***/ (function(module, exports) { -module.exports = {"_args":[["mapbox.js@2.4.0","/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client"]],"_from":"mapbox.js@2.4.0","_id":"mapbox.js@2.4.0","_inBundle":false,"_integrity":"sha1-xDsISl3XEzTIPuHfKPpnRD1zwpw=","_location":"/mapbox.js","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"mapbox.js@2.4.0","name":"mapbox.js","escapedName":"mapbox.js","rawSpec":"2.4.0","saveSpec":null,"fetchSpec":"2.4.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/mapbox.js/-/mapbox.js-2.4.0.tgz","_spec":"2.4.0","_where":"/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client","author":{"name":"Mapbox"},"bugs":{"url":"https://github.com/mapbox/mapbox.js/issues"},"dependencies":{"corslite":"0.0.6","isarray":"0.0.1","leaflet":"0.7.7","mustache":"2.2.1","sanitize-caja":"0.1.3"},"description":"mapbox javascript api","devDependencies":{"browserify":"^13.0.0","clean-css":"~2.0.7","eslint":"^0.23.0","expect.js":"0.3.1","happen":"0.1.3","leaflet-fullscreen":"0.0.4","leaflet-hash":"0.2.1","marked":"~0.3.0","minifyify":"^6.1.0","minimist":"0.0.5","mocha":"2.4.5","mocha-phantomjs":"4.0.2","sinon":"1.10.2"},"engines":{"node":"*"},"homepage":"http://mapbox.com/","license":"BSD-3-Clause","main":"src/index.js","name":"mapbox.js","optionalDependencies":{},"repository":{"type":"git","url":"git://github.com/mapbox/mapbox.js.git"},"scripts":{"test":"eslint --no-eslintrc -c .eslintrc src && mocha-phantomjs test/index.html"},"version":"2.4.0"} +module.exports = {"_args":[["mapbox.js@2.4.0","/var/alchemy/Phraseanet/Phraseanet-production-client"]],"_from":"mapbox.js@2.4.0","_id":"mapbox.js@2.4.0","_inBundle":false,"_integrity":"sha1-xDsISl3XEzTIPuHfKPpnRD1zwpw=","_location":"/mapbox.js","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"mapbox.js@2.4.0","name":"mapbox.js","escapedName":"mapbox.js","rawSpec":"2.4.0","saveSpec":null,"fetchSpec":"2.4.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/mapbox.js/-/mapbox.js-2.4.0.tgz","_spec":"2.4.0","_where":"/var/alchemy/Phraseanet/Phraseanet-production-client","author":{"name":"Mapbox"},"bugs":{"url":"https://github.com/mapbox/mapbox.js/issues"},"dependencies":{"corslite":"0.0.6","isarray":"0.0.1","leaflet":"0.7.7","mustache":"2.2.1","sanitize-caja":"0.1.3"},"description":"mapbox javascript api","devDependencies":{"browserify":"^13.0.0","clean-css":"~2.0.7","eslint":"^0.23.0","expect.js":"0.3.1","happen":"0.1.3","leaflet-fullscreen":"0.0.4","leaflet-hash":"0.2.1","marked":"~0.3.0","minifyify":"^6.1.0","minimist":"0.0.5","mocha":"2.4.5","mocha-phantomjs":"4.0.2","sinon":"1.10.2"},"engines":{"node":"*"},"homepage":"http://mapbox.com/","license":"BSD-3-Clause","main":"src/index.js","name":"mapbox.js","optionalDependencies":{},"repository":{"type":"git","url":"git://github.com/mapbox/mapbox.js.git"},"scripts":{"test":"eslint --no-eslintrc -c .eslintrc src && mocha-phantomjs test/index.html"},"version":"2.4.0"} /***/ }), /* 88 */ @@ -10229,14 +10229,21 @@ var workzone = function workzone(services) { extraClass: 'tooltip_flat' }); - (0, _jquery2.default)('#idFrameC .tabs').tabs({ + (0, _jquery2.default)('#idFrameC .tabs').data('hash', null) // unknowk for now + .tabs({ + create: function activate(event, ui) { + (0, _jquery2.default)(this).data('hash', ui.tab.context.hash); + }, activate: function activate(event, ui) { + (0, _jquery2.default)(this).data('hash', ui.newTab.context.hash); if (ui.newTab.context.hash === '#thesaurus_tab') { appEvents.emit('thesaurus.show'); } workzoneOptions.open(); + console.log("tab is " + (0, _jquery2.default)('#idFrameC .tabs').data("hash")); } }); + (0, _jquery2.default)('.basket_refresher').on('click', function () { return workzoneOptions.refresh('current'); }); @@ -10566,6 +10573,12 @@ var workzone = function workzone(services) { (0, _jquery2.default)('.bloc', cache).droppable({ accept: function accept(elem) { + // return false; + var currentTab = (0, _jquery2.default)('#idFrameC .tabs').data('hash'); + if (currentTab !== '#baskets_wrapper' && currentTab !== '#baskets') { + return false; // can't drop on baskets if the baskets tab is not front + } + if ((0, _jquery2.default)(elem).hasClass('grouping') && !(0, _jquery2.default)(elem).hasClass('SSTT')) { return true; } @@ -10589,6 +10602,12 @@ var workzone = function workzone(services) { hoverClass: 'baskDrop', tolerance: 'pointer', accept: function accept(elem) { + // return false; + var currentTab = (0, _jquery2.default)('#idFrameC .tabs').data('hash'); + if (currentTab !== '#baskets_wrapper' && currentTab !== '#baskets') { + return false; // can't drop on baskets if the baskets tab is not front + } + if ((0, _jquery2.default)(elem).hasClass('CHIM')) { if ((0, _jquery2.default)(elem).closest('.content').prev()[0] === (0, _jquery2.default)(this)[0]) { return false; @@ -10636,6 +10655,12 @@ var workzone = function workzone(services) { hoverClass: 'baskDrop', tolerance: 'pointer', accept: function accept(elem) { + // return false; + var currentTab = (0, _jquery2.default)('#idFrameC .tabs').data('hash'); + if (currentTab !== '#baskets_wrapper') { + return false; // can't drop on baskets if the baskets tab is not front + } + if ((0, _jquery2.default)(elem).hasClass('CHIM')) { if ((0, _jquery2.default)(elem).closest('.content').prev()[0] === (0, _jquery2.default)(this)[0]) { return false; @@ -10883,6 +10908,12 @@ var workzone = function workzone(services) { dest.droppable({ accept: function accept(elem) { + // return false; + var currentTab = (0, _jquery2.default)('#idFrameC .tabs').data('hash'); + if (currentTab !== '#baskets_wrapper' && currentTab !== '#baskets') { + return false; // can't drop on baskets if the baskets tab is not front + } + if ((0, _jquery2.default)(elem).hasClass('CHIM')) { if ((0, _jquery2.default)(elem).closest('.content')[0] === (0, _jquery2.default)(this)[0]) { return false; @@ -11371,6 +11402,15 @@ var thesaurusService = function thesaurusService(services) { var sbas = void 0; var bas2sbas = void 0; var trees = void 0; // @TODO remove global + + var dragging = false; // true when an object is dragged over the th zone + var dragTarget = null; // the target where the mouse is over + var dragUniqueSbid = null; // will end-up as : null (nothing dragged) ; false (many sbids) ; sbid (same sbid for all) + var dragLstRecords = ''; // list or records, format as expected for RecordsRequest::fromRequest + var url = configService.get('baseUrl'); + + var searchSelection = { asArray: [], serialized: '' }; + var initialize = function initialize(params) { var $container = params.$container; @@ -11387,6 +11427,7 @@ var thesaurusService = function thesaurusService(services) { } startThesaurus(); + console.log("hello from thesaurus ! container=", $container); var cclicks = 0; var cDelay = 350; var cTimer = null; @@ -11444,9 +11485,187 @@ var thesaurusService = function thesaurusService(services) { T_Gfilter(event.currentTarget); }); + /** + * drag/drop on terms : we will not set each term as droppable (costly), but the whole tx zone. + */ + (0, _jquery2.default)('#THPD_T_tree').droppable({ + accept: function accept(elem) { + var lstbr = searchSelection.asArray; + console.log("lstbr", lstbr); + + dragUniqueSbid = null; + lstbr.forEach(function (sbid_rid) { + sbid_rid = sbid_rid.split('_'); + var sbid = sbid_rid[0]; + var rid = sbid_rid[1]; + dragUniqueSbid = dragUniqueSbid === null ? sbid : sbid === dragUniqueSbid ? sbid : false; + }); + dragLstRecords = lstbr.join(';'); // a list as expected for RecordsRequest::fromRequest + + (0, _jquery2.default)(this).removeClass('draggingOver'); + console.log("accept", elem); + // if ($(elem).hasClass('grouping') && !$(elem).hasClass('SSTT')) { + // return true; + // } + dragging = false; // == not yet dragging something over th + + + // the th zone can accet drags only when in front (activated tab) + // 'hash' is set by the 'workzone' js code. + // return $('#idFrameC .tabs').data('hash') === '#thesaurus_tab'; + + if ((0, _jquery2.default)('#idFrameC .tabs').data('hash') !== '#thesaurus_tab') { + return false; // can't drop on th if the th tab is not front + } + + // by using classes on both main container AND the (unique) acceptable thesaurus zone + // we can have custom drag/drop css for both ok / reject + (0, _jquery2.default)('#THPD_T_tree', $container).removeClass('draggingOver'); // the container + (0, _jquery2.default)('#THPD_T_tree>LI', $container).removeClass('draggingOver'); // all thesaurus + + if (dragUniqueSbid === null || dragUniqueSbid === false) { + // many sbids + // return false; // don't return false, as it will prevent "over" and will not apply css (no "not-allowed" cursor) + } + + return true; + }, + scope: 'objects', + hoverClass: 'groupDrop', + tolerance: 'pointer', + over: function over(event, ui) { + console.log("over", event, ui, event.toElement); + + (0, _jquery2.default)('#THPD_T_tree', $container).addClass('draggingOver'); + if (dragUniqueSbid !== null && dragUniqueSbid !== false) { + (0, _jquery2.default)('#TX_P\\.' + dragUniqueSbid + '\\.T', $container).addClass('draggingOver'); + } + /* + $(this).addClass('draggingOver'); + if(dragTarget) { + // something was already hilighted (should no happen) + dragTarget.removeClass('dragOver'); + } + dragging = true; // == dragging something over th + dragTarget = null; + // for now, target can only be a term (which has a sbas_id and tx_term_id props) + const target = $(event.toElement); + const sbas_id = target.data('sbas_id'); + const tx_term_id = target.data('tx_term_id'); + if(sbas_id && tx_term_id) { + dragTarget = target; + dragTarget.addClass('dragOver'); + console.log("IN : " + dragTarget.attr('id')); + } + */ + }, + out: function out(event, ui) { + console.log("out", event, ui, event.toElement); + (0, _jquery2.default)('#THPD_T_tree', $container).removeClass('draggingOver'); + (0, _jquery2.default)('#THPD_T_tree>LI', $container).removeClass('draggingOver'); + /* + $(this).removeClass('draggingOver'); + if(dragTarget) { + // something was hilighted + dragTarget.removeClass('dragOver'); + } + dragging = false; // == no more dragging something over th + dragTarget = null; + */ + }, + drop: function drop(event, ui) { + console.log("drop", event, ui); + (0, _jquery2.default)('#THPD_T_tree', $container).removeClass('draggingOver'); + (0, _jquery2.default)('#THPD_T_tree>LI', $container).removeClass('draggingOver'); + + var target = (0, _jquery2.default)(event.toElement); + var sbas_id = target.data('sbas_id').toString(); // set on html by ThesaurusXmlHttpController.php + var tx_term_id = target.data('tx_term_id').toString(); // set on html by ThesaurusXmlHttpController.php + + if (sbas_id === dragUniqueSbid) { + dropRecordsOnTerm(sbas_id, tx_term_id, dragLstRecords); + } + + /* + $(this).removeClass('draggingOver'); + if(dragTarget) { + // const tid = $(event.toElement).data('tx_term_id'); + console.log("DROP ON id=" + dragTarget.attr('id')); + dragTarget.removeClass('dragOver'); + // appEvents.emit('searchAdvancedForm.activateDatabase', { databases: [sbid] }); + } + dragging = false; // == no more dragging something over th + dragTarget = null; + */ + } + }) + // track the mouse + .mousemove(function (event) { + return; + if (dragging) { + var target = (0, _jquery2.default)(event.toElement); + var sbas_id = target.data('sbas_id'); // set on html by ThesaurusXmlHttpController.php + var tx_term_id = target.data('tx_term_id'); // set on html by ThesaurusXmlHttpController.php + var oldTarget = dragTarget; + dragTarget = sbas_id && tx_term_id ? target : null; + + // const oldTargetId = oldTarget ? oldTarget.attr('id') : null; + // const dragTargetId = dragTarget ? dragTarget.attr('id') : null; + // console.log("oldTargetId="+oldTargetId+" ; dragTargetId="+dragTargetId); + + if (oldTarget && !oldTarget.is(dragTarget)) { + // the mouse has quit a overed term (oldTargetId) + oldTarget.removeClass('dragOver'); + console.log("OUT : " + oldTarget.attr('id')); + } + + if (dragTarget && !dragTarget.is(oldTarget)) { + // the mouse just overs a new term + dragTarget.addClass('dragOver'); + console.log("IN : " + dragTarget.attr('id')); + } + } + }); + searchValue = _underscore2.default.debounce(searchValue, 300); }; + function dropRecordsOnTerm(sbas_id, tx_term_id, lstRecords) { + var dlg = _dialog2.default.create(services, { + size: 'Custom', + customWidth: 770, + customHeight: 400, + // title: localeService.t('add data'), + loading: true + }, 0); + // dlg.setContent(""); + + // let parms = { + // url: '/thesaurus/drop_records.php', + // data: { + // 'sbas_id': sbas_id, + // 'tx_term_id': tx_term_id, + // 'lst': lstRecords + // }, + // async: true, + // cache: false, + // dataType: 'json', + // // timeout: 10 * 60 * 1000, // 10 minutes ! + // success: function (result, textStatus) { + // dlg.setContent(result); + // } + // }; + + _jquery2.default.get(url + 'prod/thesaurus/droprecords', { + 'dlg_level': 0, + 'sbas_id': sbas_id, + 'tx_term_id': tx_term_id, + 'lst': lstRecords + }, function (data, textStatus) { + dlg.setContent(data); + }); + } + function show() { // first show of thesaurus if (options.currentWizard === '???') { @@ -12544,6 +12763,12 @@ var thesaurusService = function thesaurusService(services) { }); } + appEvents.listenAll({ + 'broadcast.searchResultSelection': function broadcastSearchResultSelection(selection) { + searchSelection = selection; + } + }); + return { initialize: initialize, show: show }; }; @@ -50210,7 +50435,7 @@ module.exports = VTTRegion; /* 148 */ /***/ (function(module, exports) { -module.exports = {"_args":[["videojs-swf@5.4.1","/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client"]],"_from":"videojs-swf@5.4.1","_id":"videojs-swf@5.4.1","_inBundle":false,"_integrity":"sha1-IHfvccdJ8seCPvSbq65N0qywj4c=","_location":"/videojs-swf","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"videojs-swf@5.4.1","name":"videojs-swf","escapedName":"videojs-swf","rawSpec":"5.4.1","saveSpec":null,"fetchSpec":"5.4.1"},"_requiredBy":["/videojs-flash"],"_resolved":"https://registry.npmjs.org/videojs-swf/-/videojs-swf-5.4.1.tgz","_spec":"5.4.1","_where":"/home/esokia-6/work/work41/Phraseanet/Phraseanet-production-client","author":{"name":"Brightcove"},"bugs":{"url":"https://github.com/videojs/video-js-swf/issues"},"copyright":"Copyright 2014 Brightcove, Inc. https://github.com/videojs/video-js-swf/blob/master/LICENSE","description":"The Flash-fallback video player for video.js (http://videojs.com)","devDependencies":{"async":"~0.2.9","chg":"^0.3.2","flex-sdk":"4.6.0-0","grunt":"~0.4.0","grunt-bumpup":"~0.5.0","grunt-cli":"~0.1.0","grunt-connect":"~0.2.0","grunt-contrib-jshint":"~0.4.3","grunt-contrib-qunit":"~0.2.1","grunt-contrib-watch":"~0.1.4","grunt-npm":"~0.0.2","grunt-prompt":"~0.1.2","grunt-shell":"~0.6.1","grunt-tagrelease":"~0.3.1","qunitjs":"~1.12.0","video.js":"^5.9.2"},"homepage":"http://videojs.com","keywords":["flash","video","player"],"name":"videojs-swf","repository":{"type":"git","url":"git+https://github.com/videojs/video-js-swf.git"},"scripts":{"version":"chg release -y && grunt dist && git add -f dist/ && git add CHANGELOG.md"},"version":"5.4.1"} +module.exports = {"_args":[["videojs-swf@5.4.1","/var/alchemy/Phraseanet/Phraseanet-production-client"]],"_from":"videojs-swf@5.4.1","_id":"videojs-swf@5.4.1","_inBundle":false,"_integrity":"sha1-IHfvccdJ8seCPvSbq65N0qywj4c=","_location":"/videojs-swf","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"videojs-swf@5.4.1","name":"videojs-swf","escapedName":"videojs-swf","rawSpec":"5.4.1","saveSpec":null,"fetchSpec":"5.4.1"},"_requiredBy":["/videojs-flash"],"_resolved":"https://registry.npmjs.org/videojs-swf/-/videojs-swf-5.4.1.tgz","_spec":"5.4.1","_where":"/var/alchemy/Phraseanet/Phraseanet-production-client","author":{"name":"Brightcove"},"bugs":{"url":"https://github.com/videojs/video-js-swf/issues"},"copyright":"Copyright 2014 Brightcove, Inc. https://github.com/videojs/video-js-swf/blob/master/LICENSE","description":"The Flash-fallback video player for video.js (http://videojs.com)","devDependencies":{"async":"~0.2.9","chg":"^0.3.2","flex-sdk":"4.6.0-0","grunt":"~0.4.0","grunt-bumpup":"~0.5.0","grunt-cli":"~0.1.0","grunt-connect":"~0.2.0","grunt-contrib-jshint":"~0.4.3","grunt-contrib-qunit":"~0.2.1","grunt-contrib-watch":"~0.1.4","grunt-npm":"~0.0.2","grunt-prompt":"~0.1.2","grunt-shell":"~0.6.1","grunt-tagrelease":"~0.3.1","qunitjs":"~1.12.0","video.js":"^5.9.2"},"homepage":"http://videojs.com","keywords":["flash","video","player"],"name":"videojs-swf","repository":{"type":"git","url":"git+https://github.com/videojs/video-js-swf.git"},"scripts":{"version":"chg release -y && grunt dist && git add -f dist/ && git add CHANGELOG.md"},"version":"5.4.1"} /***/ }), /* 149 */ diff --git a/Phraseanet-production-client/dist/production.min.js b/Phraseanet-production-client/dist/production.min.js deleted file mode 100644 index 871910f4df..0000000000 --- a/Phraseanet-production-client/dist/production.min.js +++ /dev/null @@ -1,69270 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("jQuery")); - else if(typeof define === 'function' && define.amd) - define(["jQuery"], factory); - else if(typeof exports === 'object') - exports["app"] = factory(require("jQuery")); - else - root["app"] = factory(root["jQuery"]); -})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__) { -return webpackJsonpapp([4],[ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_0__; - -/***/ }), -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */, -/* 5 */, -/* 6 */, -/* 7 */, -/* 8 */, -/* 9 */, -/* 10 */, -/* 11 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.userModule = exports.utilsModule = exports.commonModule = exports.dialogModule = undefined; - -var _common = __webpack_require__(96); - -var _common2 = _interopRequireDefault(_common); - -var _dialog = __webpack_require__(1); - -var _dialog2 = _interopRequireDefault(_dialog); - -var _user = __webpack_require__(47); - -var _user2 = _interopRequireDefault(_user); - -var _utils = __webpack_require__(58); - -var _utils2 = _interopRequireDefault(_utils); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.dialogModule = _dialog2.default; -exports.commonModule = _common2.default; -exports.utilsModule = _utils2.default; -exports.userModule = _user2.default; - -/***/ }), -/* 12 */, -/* 13 */, -/* 14 */, -/* 15 */, -/* 16 */, -/* 17 */, -/* 18 */, -/* 19 */, -/* 20 */, -/* 21 */, -/* 22 */, -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -var _rx = __webpack_require__(7); - -var Rx = _interopRequireWildcard(_rx); - -var _phraseanetCommon = __webpack_require__(11); - -var appCommons = _interopRequireWildcard(_phraseanetCommon); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var Selectable = function Selectable(services, $container, options) { - var configService = services.configService, - localeService = services.localeService, - appEvents = services.appEvents; - - var defaults = { - allow_multiple: false, - selector: '', - callbackSelection: null, - selectStart: null, - selectStop: null, - limit: null, - localeService: localeService - }; - options = (typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object' ? options : {}; - - var $this = this; - - if ($container.data('selectionnable')) { - /* this container is already selectionnable */ - if (window.console) { - console.error('Trying to apply new selection to existing one'); - } - - return $container.data('selectionnable'); - } - - this.stream = new Rx.Subject(); - this.$container = $container; - this.options = _jquery2.default.extend(defaults, options); - this.datas = []; - - this.$container.data('selectionnable', this); - this.$container.addClass('selectionnable'); - this.$container.on('click', this.options.selector, function (event) { - event.preventDefault(); - if (typeof $this.options.selectStart === 'function') { - $this.options.selectStart(_jquery2.default.extend(_jquery2.default.Event('selectStart'), event), $this); - } - - var $that = (0, _jquery2.default)(this); - - var k = get_value($that, $this); - - if (appCommons.utilsModule.is_shift_key(event) && (0, _jquery2.default)('.last_selected', this.$container).filter($this.options.selector).length !== 0) { - var lst = (0, _jquery2.default)($this.options.selector, this.$container); - - var index1 = _jquery2.default.inArray((0, _jquery2.default)('.last_selected', this.$container).filter($this.options.selector)[0], lst); - var index2 = _jquery2.default.inArray($that[0], lst); - - if (index2 < index1) { - var tmp = index1; - index1 = index2 - 1 < 0 ? index2 : index2 - 1; - index2 = tmp; - } - - var stopped = false; - - if (index2 !== -1 && index1 !== -1) { - var exp = $this.options.selector + ':gt(' + index1 + '):lt(' + (index2 - index1) + ')'; - - _jquery2.default.each((0, _jquery2.default)(exp, this.$container), function (i, n) { - if (!(0, _jquery2.default)(n).hasClass('selected') && stopped === false) { - if (!$this.hasReachLimit()) { - var contain = get_value((0, _jquery2.default)(n), $this); - $this.push(contain); - (0, _jquery2.default)(n).addClass('selected'); - } else { - alert(localeService.t('max_record_selected')); - stopped = true; - } - } - }); - } - - if ($this.has(k) === false && stopped === false) { - if (!$this.hasReachLimit()) { - $this.push(k); - $that.addClass('selected'); - } else { - alert(localeService.t('max_record_selected')); - } - } - } else { - if (!appCommons.utilsModule.is_ctrl_key(event)) { - $this.empty().push(k); - (0, _jquery2.default)('.selected', this.$container).filter($this.options.selector).removeClass('selected'); - $that.addClass('selected'); - } else { - if ($this.has(k) === true) { - $this.remove(k); - $that.removeClass('selected'); - } else { - if (!$this.hasReachLimit()) { - $this.push(k); - $that.addClass('selected'); - } else { - alert(localeService.t('max_record_selected')); - } - } - } - } - - (0, _jquery2.default)('.last_selected', this.$container).removeClass('last_selected'); - $that.addClass('last_selected'); - - $this.stream.onNext({ - asArray: $this.datas, - serialized: $this.serialize() - }); - if (typeof $this.options.selectStop === 'function') { - $this.options.selectStop(_jquery2.default.extend(_jquery2.default.Event('selectStop'), event), $this); - } - }); - - return this; -}; - -function get_value(element, Selectable) { - if (typeof Selectable.options.callbackSelection === 'function') { - return Selectable.options.callbackSelection((0, _jquery2.default)(element)); - } else { - return (0, _jquery2.default)('input[name="id"]', (0, _jquery2.default)(element)).val(); - } -} - -Selectable.prototype = { - push: function push(element) { - if (this.options.allow_multiple === true || !this.has(element)) { - this.datas.push(element); - } - - return this; - }, - hasReachLimit: function hasReachLimit() { - if (this.options.limit !== null && this.options.limit <= this.datas.length) { - return true; - } - return false; - }, - remove: function remove(element) { - this.datas = _jquery2.default.grep(this.datas, function (n) { - return n !== element; - }); - - return this; - }, - has: function has(element) { - - return _jquery2.default.inArray(element, this.datas) >= 0; - }, - get: function get() { - return this.datas; - }, - empty: function empty() { - var $this = this; - this.datas = []; - - (0, _jquery2.default)(this.options.selector, this.$container).filter('.selected:visible').removeClass('selected'); - - if (typeof $this.options.selectStop === 'function') { - $this.options.selectStop(_jquery2.default.Event('selectStop'), $this); - } - - return this; - }, - length: function length() { - - return this.datas.length; - }, - size: function size() { - - return this.datas.length; - }, - serialize: function serialize(separator) { - - separator = separator || ';'; - - return this.datas.join(separator); - }, - selectAll: function selectAll() { - this.select('*'); - - return this; - }, - select: function select(selector) { - var $this = this; - var stopped = false; - - (0, _jquery2.default)(this.options.selector, this.$container).filter(selector).not('.selected').filter(':visible').each(function () { - if (!$this.hasReachLimit()) { - $this.push(get_value(this, $this)); - (0, _jquery2.default)(this).addClass('selected'); - } else { - if (stopped === false) { - alert($this.options.localeService.t('max_record_selected')); - } - stopped = true; - } - }); - - $this.stream.onNext({ - asArray: $this.datas, - serialized: $this.serialize() - }); - - if (typeof $this.options.selectStop === 'function') { - $this.options.selectStop(_jquery2.default.Event('selectStop'), $this); - } - - return this; - } -}; - -exports.default = Selectable; - -/***/ }), -/* 24 */, -/* 25 */, -/* 26 */, -/* 27 */, -/* 28 */, -/* 29 */, -/* 30 */, -/* 31 */, -/* 32 */, -/* 33 */, -/* 34 */, -/* 35 */, -/* 36 */, -/* 37 */ -/***/ (function(module, exports) { - -module.exports = extend - -var hasOwnProperty = Object.prototype.hasOwnProperty; - -function extend() { - var target = {} - - for (var i = 0; i < arguments.length; i++) { - var source = arguments[i] - - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - target[key] = source[key] - } - } - } - - return target -} - - -/***/ }), -/* 38 */, -/* 39 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(jQuery) {/*** IMPORTS FROM imports-loader ***/ -(function() { - -(function(window, $) { - 'use strict'; - - // Builds a 4 characters unique id - var uniqId = function(prefix) { - prefix = prefix || ''; - - return prefix + ("0000" + (Math.random() * Math.pow(36, 4) << 0).toString(36)).substr(-4); - }; - - // Builds query parameters from a geoname object - var RequestDataBuilder = function(geo, datas) { - this.datas = datas || {}; - - if (!geo instanceof GeotoCompleter) { - throw 'You must provide an instance of GeotoCompleter'; - } - - if (geo.getOption('sort')) { - this.datas.sort = geo.getOption('sort'); - } - if (geo.getOption('client-ip')) { - this.datas.sortParams = geo.getOption('sortParams'); - } - if (geo.getOption('country')) { - this.datas.country = geo.getOption('country'); - } - if (geo.getOption('name')) { - this.datas.name = geo.getOption('name'); - } - if (geo.getOption('limit')) { - this.datas.limit = geo.getOption('limit'); - } - }; - - RequestDataBuilder.prototype.getRequestDatas = function() { - return this.datas; - }; - - // Handles request to the remote Geonames Server - var RequestManager = function(server) { - var _request = false; - var _endpoint = server; - - this.search = function(resource, datas, errorCallback, parseresults) { - _request = $.ajax({ - type: "GET", - dataType: "jsonp", - jsonpCallback: "parseresults", - url: _endpoint + resource, - beforeSend: function() { - if (_request && typeof _request.abort === 'function') { - _request.abort(); - } - }, - error: errorCallback, - data: datas - }) - .done(parseresults) - .always(function() { - _request = false; - }); - }; - }; - - var GeotoCompleter = function(el, serverEndpoint, options) { - if (typeof $.ui === 'undefined') { - throw 'jQuery UI must be loaded'; - } - - if($(el).data('geocompleter')) { - return $(el).data('geocompleter'); - } - - var _serverEndpoint = serverEndpoint.substr(serverEndpoint.length - 1) === '/' ? serverEndpoint : serverEndpoint + '/'; - - this._requestManager = new RequestManager(_serverEndpoint); - - this.$el = $(el); - - this._opts = $.extend({ - "name": null, - "sort": null, - "client-ip": null, - "country": null, - "limit": null, - "init-input": true - }, options); - - this.$input = null; - - this.$el.data('geocompleter', this); - }; - - GeotoCompleter.prototype.getOption = function(name) { - if (!(name in this._opts)) { - return null; - } - - return this._opts[name]; - }; - - GeotoCompleter.prototype.setOption = function(name, value) { - if (!(name in this._opts)) { - return this; - } - - this._opts[name] = value; - - return this; - }; - - GeotoCompleter.prototype.getAutocompleter = function() { - return this.$input; - }; - - GeotoCompleter.prototype.destroy = function() { - if (this.$input) { - this.$input.remove(); - this.$el.show(); - this.$el.val(''); - this.$el.data('geocompleter', null); - } - }; - - GeotoCompleter.prototype.init = function() { - if (null !== this.$input) { - return; - } - - var self = this; - - var updateGeonameField = function(value) { - self.$el.val(value); - }; - - var updateCityField = function(value) { - self.$input.val(value); - }; - - var resetGeonameField = function() { - self.$el.val(''); - }; - - var resetCityField = function() { - self.$input.val(''); - }; - - var isGeonameFieldSetted = function() { - return self.$el.val() !== ''; - }; - - var highlight = function (s, t) { - var matcher = new RegExp("("+$.ui.autocomplete.escapeRegex(t)+")", "ig" ); - return s.replace(matcher, "$1"); - }; - - // Creates city input - this.$input = $('') - .attr('name', uniqId(this.$el.attr('name'))) - .attr('id', uniqId(this.$el.attr('id'))) - .attr('type', 'text') - .attr('class', this.$el.attr('class')) - .addClass("geocompleter-input"); - - // Prevents form submission when pressing ENTER - this.$input.keypress(function(event) { - var code = (event.keyCode ? event.keyCode : event.which); - if(code === $.ui.keyCode.ENTER ) { - event.preventDefault(); - return false; - } - }); - - // On any keyup except (esc, up, down, enter) fields are desynchronised, reset geonames field - this.$input.keyup(function(event) { - var code = (event.keyCode ? event.keyCode : event.which); - var unBindKeys = [ - $.ui.keyCode.ESCAPE, - $.ui.keyCode.UP, - $.ui.keyCode.DOWN, - $.ui.keyCode.LEFT, - $.ui.keyCode.RIGHT, - $.ui.keyCode.ENTER - ]; - - if (-1 === $.inArray(code, unBindKeys)){ - resetGeonameField(); - } - }); - - this.$el.hide(); - this.$el.after(this.$input); - - // Overrides prototype to render values without autoescape, useful to highlight values - $.ui.autocomplete.prototype._renderItem = function( ul, item) { - return $( "
  • " ) - .data( "item.autocomplete", item ) - .append( $( "" ).html( item.label ) ) - .appendTo( ul ); - }; - - // Saves response content - var responseContent; - - // Builds a jquery autocompleter - this.$input.autocomplete({ - create: function(event) { - if(self.$el.val() !== "" && self.getOption("init-input")) { - self._requestManager.search( - "city/" + parseInt(self.$el.val(), 10), - {}, - function(jqXhr, status, error) { - return; - }, function (data) { - var country = data.country.name || ""; - self.$input.val(data.name + ("" !== country ? "," + country : "")); - } - ); - } - }, - source: function(request, response) { - var name, country, terms = ''; - - terms = request.term.split(','); - - if (terms.length === 2) { - country = terms.pop(); - } - - name = terms.pop(); - - self.setOption('name', $.trim(name)); - self.setOption('country', $.trim(country)); - - var requestDataBuilder = new RequestDataBuilder(self); - - self._requestManager.search( - "city", - requestDataBuilder.getRequestDatas(), - function(jqXhr, status, error) { - if (jqXhr.status !== 0 && jqXhr.statusText !== 'abort') { - response([]); - self.$input.trigger('geotocompleter.request.error', [jqXhr, status, error]); - } - }, function(data) { - response($.map(data || [], function(item) { - var country = country ? country : name; - var labelName = highlight(item.name, name); - var labelCountry = highlight((item.country ? item.country.name || '' : ''), country); - var labelRegion = highlight((item.region ? item.region.name || '' : ''), name); - - return { - label: labelName + ("" !== labelCountry ? ", " + labelCountry : "") + ("" !== labelRegion ? " " + labelRegion + "" : ""), - value: item.name + (item.country ? ", " + item.country.name : ''), - geonameid: item.geonameid - }; - })); - } - ); - }, - messages: { - noResults: '', - results: function() {} - }, - response: function (event, ui) { - responseContent = []; - if (ui.content) { - responseContent = ui.content; - // Sets geoname id if values are re synchronized - if (ui.content.length > 0) { - var items = $.grep(ui.content, function(item) { - return item.value === self.$input.val() ? item : null; - }); - - if (items.length > 0) { - updateGeonameField(items[0].geonameid); - } - } - } - }, - select: function(event, ui) { - if (ui.item) { - updateGeonameField(ui.item.geonameid); - } - }, - focus: function (event, ui) { - var code = (event.keyCode ? event.keyCode : event.which); - // Updates geoname ID only if key up and key down are pressed - if (ui.item && -1 !== $.inArray(code, [$.ui.keyCode.DOWN, $.ui.keyCode.UP])) { - updateGeonameField(ui.item.geonameid); - } - }, - close : function (event, ui) { - var ev = event.originalEvent; - - if ("undefined" === typeof ev) { - return false; - } - - var code = (ev.keyCode ? ev.keyCode : ev.which); - // If esc key is pressed or user leaves the input - if ((ev.type === "keydown" && code === $.ui.keyCode.ESCAPE) || ev.type === "blur") { - if (isGeonameFieldSetted() && responseContent.length > 0) { - var geonameId = self.$el.val(); - // Update city input according to the setted geonameId - var responseValues = $.grep(responseContent, function(item) { - return item.geonameid === geonameId ? item : null; - }); - - if (responseValues.length > 0) { - self.$input.val(responseValues[0].value); - } - - return false; - } - - // Resets both field as nothing is no more sychronized - resetGeonameField(); - resetCityField(); - } - } - }).autocomplete("widget").addClass("geocompleter-menu"); - - var onInit = self.getOption('onInit'); - - // On Initialization callback - if (onInit !== null && typeof onInit === 'function') { - onInit(this.$el, this.$input); - } - }; - - var methods = { - init: function(options) { - var settings = $.extend({ - server: '' - }, options); - - if ('' === settings.server) { - throw '"server" must be set'; - } - - return this.each(function() { - var geocompleter = new GeotoCompleter(this, settings.server, settings); - geocompleter.init(); - }); - }, - destroy: function() { - return this.each(function() { - var geocompleter = $(this).data('geocompleter'); - if (geocompleter) { - geocompleter.destroy(); - } - }); - }, - autocompleter: function() { - var args = arguments; - return this.each(function() { - var geocompleter = $(this).data('geocompleter'); - if (args[0] === "on" && typeof args[1] === "string" && typeof args[2] === "function") { - // Bind addition events - geocompleter.getAutocompleter().on(args[1], args[2]); - } else { - $.fn.autocomplete.apply(geocompleter.getAutocompleter(),args); - } - }); - } - }; - - $.fn.geocompleter = function(method) { - if (methods[method]) { - return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); - } else if (typeof method === 'object' || !method) { - return methods.init.apply(this, arguments); - } else { - $.error('Method ' + method + ' does not exist on jQuery.geocompleter'); - } - }; -})(window, jQuery); - -}.call(window)); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) - -/***/ }), -/* 40 */ -/***/ (function(module, exports) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -// css base code, injected by the css-loader -module.exports = function(useSourceMap) { - var list = []; - - // return the list of modules as css string - list.toString = function toString() { - return this.map(function (item) { - var content = cssWithMappingToString(item, useSourceMap); - if(item[2]) { - return "@media " + item[2] + "{" + content + "}"; - } else { - return content; - } - }).join(""); - }; - - // import a list of modules into the list - list.i = function(modules, mediaQuery) { - if(typeof modules === "string") - modules = [[null, modules, ""]]; - var alreadyImportedModules = {}; - for(var i = 0; i < this.length; i++) { - var id = this[i][0]; - if(typeof id === "number") - alreadyImportedModules[id] = true; - } - for(i = 0; i < modules.length; i++) { - var item = modules[i]; - // skip already imported module - // this implementation is not 100% perfect for weird media query combinations - // when a module is imported multiple times with different media queries. - // I hope this will never occur (Hey this way we have smaller bundles) - if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { - if(mediaQuery && !item[2]) { - item[2] = mediaQuery; - } else if(mediaQuery) { - item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; - } - list.push(item); - } - } - }; - return list; -}; - -function cssWithMappingToString(item, useSourceMap) { - var content = item[1] || ''; - var cssMapping = item[3]; - if (!cssMapping) { - return content; - } - - if (useSourceMap && typeof btoa === 'function') { - var sourceMapping = toComment(cssMapping); - var sourceURLs = cssMapping.sources.map(function (source) { - return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */' - }); - - return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); - } - - return [content].join('\n'); -} - -// Adapted from convert-source-map (MIT) -function toComment(sourceMap) { - // eslint-disable-next-line no-undef - var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); - var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; - - return '/*# ' + data + ' */'; -} - - -/***/ }), -/* 41 */ -/***/ (function(module, exports, __webpack_require__) { - -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ - -var stylesInDom = {}; - -var memoize = function (fn) { - var memo; - - return function () { - if (typeof memo === "undefined") memo = fn.apply(this, arguments); - return memo; - }; -}; - -var isOldIE = memoize(function () { - // Test for IE <= 9 as proposed by Browserhacks - // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 - // Tests for existence of standard globals is to allow style-loader - // to operate correctly into non-standard environments - // @see https://github.com/webpack-contrib/style-loader/issues/177 - return window && document && document.all && !window.atob; -}); - -var getElement = (function (fn) { - var memo = {}; - - return function(selector) { - if (typeof memo[selector] === "undefined") { - memo[selector] = fn.call(this, selector); - } - - return memo[selector] - }; -})(function (target) { - return document.querySelector(target) -}); - -var singleton = null; -var singletonCounter = 0; -var stylesInsertedAtTop = []; - -var fixUrls = __webpack_require__(186); - -module.exports = function(list, options) { - if (typeof DEBUG !== "undefined" && DEBUG) { - if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); - } - - options = options || {}; - - options.attrs = typeof options.attrs === "object" ? options.attrs : {}; - - // Force single-tag solution on IE6-9, which has a hard limit on the # of