|
- (self["webpackChunk"] = self["webpackChunk"] || []).push([["adminlte-field-filemanager"],{
-
- /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/field/filemanager/app.filemanager.js":
- /*!****************************************************************************************************!*\
- !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/field/filemanager/app.filemanager.js ***!
- \****************************************************************************************************/
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.function.bind.js */ "./node_modules/core-js/modules/es.function.bind.js");
- /* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony import */ var _form_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./form.scss */ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/field/filemanager/form.scss");
-
-
- $(document).ready(function () {
- initFileManager();
- });
- $('.field-collection').bind('collection-add-item', function () {
- initFileManager();
- });
-
- function initFileManager() {
- $('.lc-filemanager-delete').off('click');
- $('.lc-filemanager-delete').on('click', function (e) {
- var $field = $(this);
- $('#' + $field.data('id')).val("");
- $('#' + $field.data('id') + '_preview').prop('src', "");
- $('#' + $field.data('id') + '_preview_text').html('Aucun fichier');
- });
- $('.lc-filemanager-open').off('click');
- $('.lc-filemanager-open').on('click', function (e) {
- var $field = $(this);
- $('#lc-filemanager-frame').off('load');
- $("#lc-filemanager-frame").on('load', function () {
- $('#lc-filemanager-frame').contents().on('click', '.select', function () {
- var path = $(this).attr('data-path');
- $('#' + $field.data('id')).val(path);
- $('#' + $field.data('id') + '_preview').prop('src', path);
- $('#' + $field.data('id') + '_preview_text').html(path);
- $('#lc-filemanager-modal').modal('hide');
- });
- });
- $("#lc-filemanager-frame").prop('src', $field.data('target'));
- $('#lc-filemanager-modal').modal('show');
- });
- }
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/a-function.js":
- /*!******************************************************!*\
- !*** ./node_modules/core-js/internals/a-function.js ***!
- \******************************************************/
- /***/ ((module) => {
-
- module.exports = function (it) {
- if (typeof it != 'function') {
- throw TypeError(String(it) + ' is not a function');
- } return it;
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/an-object.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/an-object.js ***!
- \*****************************************************/
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
-
- module.exports = function (it) {
- if (!isObject(it)) {
- throw TypeError(String(it) + ' is not an object');
- } return it;
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/descriptors.js":
- /*!*******************************************************!*\
- !*** ./node_modules/core-js/internals/descriptors.js ***!
- \*******************************************************/
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
-
- // Detect IE8's incomplete defineProperty implementation
- module.exports = !fails(function () {
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
- });
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/document-create-element.js":
- /*!*******************************************************************!*\
- !*** ./node_modules/core-js/internals/document-create-element.js ***!
- \*******************************************************************/
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
-
- var document = global.document;
- // typeof document.createElement is 'object' in old IE
- var EXISTS = isObject(document) && isObject(document.createElement);
-
- module.exports = function (it) {
- return EXISTS ? document.createElement(it) : {};
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/fails.js":
- /*!*************************************************!*\
- !*** ./node_modules/core-js/internals/fails.js ***!
- \*************************************************/
- /***/ ((module) => {
-
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (error) {
- return true;
- }
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/function-bind.js":
- /*!*********************************************************!*\
- !*** ./node_modules/core-js/internals/function-bind.js ***!
- \*********************************************************/
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
- "use strict";
-
- var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
-
- var slice = [].slice;
- var factories = {};
-
- var construct = function (C, argsLength, args) {
- if (!(argsLength in factories)) {
- for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
- // eslint-disable-next-line no-new-func -- we have no proper alternatives, IE8- only
- factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
- } return factories[argsLength](C, args);
- };
-
- // `Function.prototype.bind` method implementation
- // https://tc39.es/ecma262/#sec-function.prototype.bind
- module.exports = Function.bind || function bind(that /* , ...args */) {
- var fn = aFunction(this);
- var partArgs = slice.call(arguments, 1);
- var boundFunction = function bound(/* args... */) {
- var args = partArgs.concat(slice.call(arguments));
- return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);
- };
- if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;
- return boundFunction;
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/global.js":
- /*!**************************************************!*\
- !*** ./node_modules/core-js/internals/global.js ***!
- \**************************************************/
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
- var check = function (it) {
- return it && it.Math == Math && it;
- };
-
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- module.exports =
- // eslint-disable-next-line es/no-global-this -- safe
- check(typeof globalThis == 'object' && globalThis) ||
- check(typeof window == 'object' && window) ||
- // eslint-disable-next-line no-restricted-globals -- safe
- check(typeof self == 'object' && self) ||
- check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
- // eslint-disable-next-line no-new-func -- fallback
- (function () { return this; })() || Function('return this')();
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/ie8-dom-define.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
- \**********************************************************/
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
- var createElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js");
-
- // Thank's IE8 for his funny defineProperty
- module.exports = !DESCRIPTORS && !fails(function () {
- // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
- return Object.defineProperty(createElement('div'), 'a', {
- get: function () { return 7; }
- }).a != 7;
- });
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/is-object.js":
- /*!*****************************************************!*\
- !*** ./node_modules/core-js/internals/is-object.js ***!
- \*****************************************************/
- /***/ ((module) => {
-
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/object-define-property.js":
- /*!******************************************************************!*\
- !*** ./node_modules/core-js/internals/object-define-property.js ***!
- \******************************************************************/
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
-
- var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
- var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./node_modules/core-js/internals/ie8-dom-define.js");
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
- var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js");
-
- // eslint-disable-next-line es/no-object-defineproperty -- safe
- var $defineProperty = Object.defineProperty;
-
- // `Object.defineProperty` method
- // https://tc39.es/ecma262/#sec-object.defineproperty
- exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return $defineProperty(O, P, Attributes);
- } catch (error) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/internals/to-primitive.js":
- /*!********************************************************!*\
- !*** ./node_modules/core-js/internals/to-primitive.js ***!
- \********************************************************/
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
- var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
-
- // `ToPrimitive` abstract operation
- // https://tc39.es/ecma262/#sec-toprimitive
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (input, PREFERRED_STRING) {
- if (!isObject(input)) return input;
- var fn, val;
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
-
-
- /***/ }),
-
- /***/ "./node_modules/core-js/modules/es.function.bind.js":
- /*!**********************************************************!*\
- !*** ./node_modules/core-js/modules/es.function.bind.js ***!
- \**********************************************************/
- /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
-
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
- var bind = __webpack_require__(/*! ../internals/function-bind */ "./node_modules/core-js/internals/function-bind.js");
-
- // `Function.prototype.bind` method
- // https://tc39.es/ecma262/#sec-function.prototype.bind
- $({ target: 'Function', proto: true }, {
- bind: bind
- });
-
-
- /***/ }),
-
- /***/ "../LaClicBundle/SovBundle/Resources/assets/app/adminlte/field/filemanager/form.scss":
- /*!*******************************************************************************************!*\
- !*** ../LaClicBundle/SovBundle/Resources/assets/app/adminlte/field/filemanager/form.scss ***!
- \*******************************************************************************************/
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // extracted by mini-css-extract-plugin
-
-
- /***/ })
-
- },
- /******/ __webpack_require__ => { // webpackRuntimeModules
- /******/ "use strict";
- /******/
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
- /******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_export_js"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/field/filemanager/app.filemanager.js")));
- /******/ var __webpack_exports__ = __webpack_require__.O();
- /******/ }
- ]);
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9maWVsZC9maWxlbWFuYWdlci9hcHAuZmlsZW1hbmFnZXIuanMiLCJ3ZWJwYWNrOi8vLy4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2EtZnVuY3Rpb24uanMiLCJ3ZWJwYWNrOi8vLy4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2FuLW9iamVjdC5qcyIsIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvZGVzY3JpcHRvcnMuanMiLCJ3ZWJwYWNrOi8vLy4vb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uICAgIGluaXRGaWxlTWFuYWdlcigpO1xufSk7XG5cbiQoJy5maWVsZC1jb2xsZWN0aW9uJykuYmluZCgnY29sbGVjdGlvbi1hZGQtaXRlbScsIGZ1bmN0aW9uICgpe1xuICAgIGluaXRGaWxlTWFuYWdlcigpO1xufSk7XG5cbmZ1bmN0aW9uIGluaXRGaWxlTWFuYWdlcigpIHtcbiAgICAkKCcubGMtZmlsZW1hbmFnZXItZGVsZXRlJykub2ZmKCdjbGljaycpO1xuICAgICQoJy5sYy1maWxlbWFuYWdlci1kZWxldGUnKS5vbignY2xpY2snLCBmdW5jdGlvbiAoZSkge1xuICAgICAgICBsZXQgJGZpZWxkID0gJCh0aGlzKTtcbiAgICAgICAgJCgnIycgKyAkZmllbGQuZGF0YSgnaWQnKSkudmFsKFwiXCIpO1xuICAgICAgICAkKCcjJyArICRmaWVsZC5kYXRhKCdpZCcpICsgJ19wcmV2aWV3JykucHJvcCgnc3JjJyxcIlwiKTtcbiAgICAgICAgJCgnIycgKyAkZmllbGQuZGF0YSgnaWQnKSArICdfcHJldmlld190ZXh0JykuaHRtbCgnQXVjdW4gZmljaGllcicpO1xuICAgIH0pO1xuICAgICQoJy5sYy1maWxlbWFuYWdlci1vcGVuJykub2ZmKCdjbGljaycpO1xuICAgICQoJy5sYy1maWxlbWFuYWdlci1vcGVuJykub24oJ2NsaWNrJywgZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgbGV0ICRmaWVsZCA9ICQodGhpcyk7XG4gICAgICAgICQoJyNsYy1maWxlbWFuYWdlci1mcmFtZScpLm9mZignbG9hZCcpO1xuICAgICAgICAkKFwiI2xjLWZpbGVtYW5hZ2VyLWZyYW1lXCIpLm9uKCdsb2FkJywgZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgJCgnI2xjLWZpbGVtYW5hZ2VyLWZyYW1lJykuY29udGVudHMoKS5vbignY2xpY2snLCAnLnNlbGVjdCcsIGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICB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