public_html/layouts/basic/components/MediaModal.min.js.map
{"version":3,"file":"MediaModal.min.js","sources":["MediaModal.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\nwindow.AppComponents_MediaModal_Js = class {\n\t/**\n\t * Set page\n\t * @param {int} page\n\t */\n\tsetPage(page = 1) {\n\t\tlet min = (page - 1) * this.pageLimit;\n\t\tlet max = page * this.pageLimit;\n\t\tlet tab = this.getActiveTab();\n\t\tlet elements = tab.find('.js-icon-item:not(.not-match)');\n\t\ttab.find('.js-icon-item').addClass('d-none');\n\t\telements.slice(min, max).removeClass('d-none');\n\t\tthis.container.find('.js-page--set').data('id', page).find('.page-link').text(page);\n\t\tif (elements.eq(max + 1).length) {\n\t\t\tthis.container.find('.js-page--next,.js-page--last').removeClass('disabled');\n\t\t} else {\n\t\t\tthis.container.find('.js-page--next,.js-page--last').addClass('disabled');\n\t\t}\n\t\tif (min !== 0 && elements.eq(min - 1).length) {\n\t\t\tthis.container.find('.js-page--previous,.js-page--first').removeClass('disabled');\n\t\t} else {\n\t\t\tthis.container.find('.js-page--previous,.js-page--first').addClass('disabled');\n\t\t}\n\t}\n\t/**\n\t * Get active tab\n\t * @returns\n\t */\n\tgetActiveTab() {\n\t\treturn this.container.find('.js-tab.active');\n\t}\n\t/**\n\t * Register pagination events\n\t */\n\tregisterPaginationEvents() {\n\t\tthis.container.on('click', '.js-page--next:not(.disabled)', () => {\n\t\t\tlet currentPage = this.container.find('.js-page--set.active').data('id');\n\t\t\tthis.setPage(parseInt(currentPage) + 1);\n\t\t});\n\t\tthis.container.on('click', '.js-page--previous:not(.disabled)', () => {\n\t\t\tlet currentPage = this.container.find('.js-page--set.active').data('id');\n\t\t\tif (currentPage !== 1) {\n\t\t\t\tthis.setPage(currentPage - 1);\n\t\t\t}\n\t\t});\n\t\tthis.container.on('click', '.js-page--first:not(.disabled)', () => {\n\t\t\tthis.setPage(1);\n\t\t});\n\t\tthis.container.on('click', '.js-page--last:not(.disabled)', () => {\n\t\t\tlet elements = this.container.find('.js-icon-item:not(.not-match)');\n\t\t\tlet totalPages = Math.ceil(elements.length / this.pageLimit);\n\t\t\tthis.setPage(totalPages);\n\t\t});\n\t}\n\t/**\n\t * Register Icon Search\n\t */\n\tregisterSearchIcon() {\n\t\tthis.searchField.on('keyup', (e) => {\n\t\t\tlet tab = this.getActiveTab();\n\t\t\ttab.find('.js-icon-item.not-match').removeClass('not-match');\n\t\t\tlet value = e.currentTarget.value.toString().replace('\"', '').toLowerCase();\n\t\t\tif (value.length) {\n\t\t\t\ttab.find(`.js-icon-item:not([data-icon-search*=\"${value}\"])`).addClass('not-match');\n\t\t\t}\n\t\t\tthis.setPage(1);\n\t\t});\n\t}\n\t/**\n\t * Remove image item\n\t * @param {Event} e\n\t */\n\tremoveItem(e) {\n\t\tlet url = e.currentTarget.dataset.url;\n\t\tlet progressIndicatorElement = $.progressIndicator({ position: 'html', blockInfo: { enabled: true } });\n\t\tAppConnector.request({\n\t\t\tasync: false,\n\t\t\turl: url,\n\t\t\ttype: 'POST',\n\t\t\tdata: {}\n\t\t})\n\t\t\t.done((data) => {\n\t\t\t\tif (data.result) {\n\t\t\t\t\te.currentTarget.closest('.js-icon-item').remove();\n\t\t\t\t}\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t})\n\t\t\t.fail(function (error, err) {\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\tapp.errorLog(error, err);\n\t\t\t});\n\t}\n\tregisterImageEvents() {\n\t\tlet fileInput = this.container.find('.js-icon-file');\n\t\tif (fileInput.length) {\n\t\t\tlet fieldInfo = fileInput.data('fieldinfo') || {};\n\t\t\tthis.container.find('.js-image-add').on('click', () => {\n\t\t\t\tfileInput.trigger('click');\n\t\t\t});\n\t\t\tlet file = App.File.register(fileInput, {\n\t\t\t\tfileupload: {\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\treplaceFileInput: false,\n\t\t\t\t\tautoUpload: false,\n\t\t\t\t\tdone: (e, data) => {\n\t\t\t\t\t\tconst attach = data.result.result.attach;\n\t\t\t\t\t\tattach.forEach((fileAttach) => {\n\t\t\t\t\t\t\tif (typeof fileAttach.key === 'undefined') {\n\t\t\t\t\t\t\t\treturn file.uploadError(e, data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfile.filesActive--;\n\t\t\t\t\t\t\tthis.addImage(fileAttach);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfile.fileInput.val('');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tformats: fieldInfo.formats,\n\t\t\t\tlimit: fieldInfo.limit,\n\t\t\t\tmaxFileSize: fieldInfo.maxFileSize,\n\t\t\t\tmaxFileSizeDisplay: fieldInfo.maxFileSizeDisplay || ''\n\t\t\t});\n\t\t}\n\n\t\tthis.container.find('.js-image-remove').on('click', (e) => {\n\t\t\te.stopPropagation();\n\t\t\tapp.showConfirmModal({\n\t\t\t\ttext: app.vtranslate('JS_LBL_ARE_YOU_SURE_YOU_WANT_TO_DELETE'),\n\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\tthis.removeItem(e);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Add image to container\n\t * @param {Object} data\n\t */\n\taddImage(data) {\n\t\tconst item = document.createElement('article');\n\t\titem.setAttribute('class', 'w-100 position-relative js-icon-item');\n\t\titem.setAttribute('data-icon-search', data.name.toLowerCase());\n\t\titem.setAttribute('data-name', data.name);\n\t\titem.setAttribute('data-type', 'image');\n\t\titem.setAttribute('data-src', data.src);\n\t\titem.setAttribute('data-key', data.key);\n\n\t\tconst button = document.createElement('button');\n\t\tbutton.setAttribute('class', 'btn btn-light w-100 h-100');\n\n\t\tconst image = document.createElement('img');\n\t\timage.setAttribute('class', 'icon-img--list');\n\t\timage.setAttribute('src', data.src);\n\n\t\tconst span = document.createElement('span');\n\t\tspan.setAttribute('class', 'c-grid-item--signature u-fs-xs');\n\t\tspan.appendChild(document.createTextNode(data.name));\n\n\t\tbutton.appendChild(image);\n\t\tbutton.appendChild(span);\n\t\titem.appendChild(button);\n\n\t\tthis.getActiveTab().find('#icons-results').append(item);\n\t}\n\t/**\n\t * Register events\n\t */\n\tregisterEvents(container) {\n\t\tthis.container = container;\n\t\tthis.pageLimit = parseInt(this.container.find('.js-page-size').val());\n\t\tthis.searchField = this.container.find('.js-icon-search');\n\t\tthis.setPage();\n\t\tthis.registerPaginationEvents();\n\t\tthis.registerSearchIcon();\n\t\tthis.container.on('shown.bs.tab', 'a[data-toggle=\"tab\"]', () => {\n\t\t\tthis.searchField.trigger('keyup');\n\t\t});\n\t\tthis.registerImageEvents();\n\t}\n};\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","descriptor","i","length","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","res","call","Number","window","AppComponents_MediaModal_Js","_class","value","setPage","page","arguments","min","pageLimit","max","tab","getActiveTab","elements","find","addClass","slice","removeClass","container","data","text","eq","registerPaginationEvents","_this","on","currentPage","parseInt","totalPages","Math","ceil","registerSearchIcon","_this2","searchField","e","currentTarget","toString","replace","toLowerCase","concat","removeItem","url","dataset","progressIndicatorElement","$","progressIndicator","position","blockInfo","enabled","AppConnector","request","async","type","done","result","closest","remove","mode","fail","error","err","app","errorLog","registerImageEvents","_this3","fileInput","fieldInfo","trigger","file","App","File","register","fileupload","dataType","replaceFileInput","autoUpload","attach","forEach","fileAttach","uploadError","filesActive","addImage","val","formats","limit","maxFileSize","maxFileSizeDisplay","stopPropagation","showConfirmModal","vtranslate","confirmedCallback","item","document","createElement","setAttribute","name","src","button","image","span","appendChild","createTextNode","append","registerEvents","_this4"],"mappings":";;AAAA,kKACA,YAAY,CAAC,SAAAA,OAAAC,CAAAA,CAA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