':'',ns.innerHTML.indexOf(\"
\")>0}var as=!!V&&os(!1),ss=!!V&&os(!0),cs=g(function(e){var t=Qn(e);return t&&t.innerHTML}),us=Cn.prototype.$mount;return Cn.prototype.$mount=function(e,t){if((e=e&&Qn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if(\"string\"==typeof r)\"#\"===r.charAt(0)&&(r=cs(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement(\"div\");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=is(r,{outputSourceRange:!1,shouldDecodeNewlines:as,shouldDecodeNewlinesForHref:ss,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return us.call(this,e,t)},Cn.compile=is,Cn});","// 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\t// no module.id needed\n\t\t// no module.loaded needed\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// Return the exports of the module\n\treturn module.exports;\n}\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__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\n import API from \"!../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../css-loader/dist/cjs.js!../../sass-loader/dist/cjs.js!./material-icons.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../css-loader/dist/cjs.js!../../sass-loader/dist/cjs.js!./material-icons.css\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../../../css-loader/dist/cjs.js!../../../../sass-loader/dist/cjs.js!./classic.min.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../../../css-loader/dist/cjs.js!../../../../sass-loader/dist/cjs.js!./classic.min.css\";\n export default content && content.locals ? content.locals : undefined;\n","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./back.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./back.scss\";\n export default content && content.locals ? content.locals : undefined;\n","/**\n * 2007-2019 PrestaShop.\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Academic Free License 3.0 (AFL-3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * https://opensource.org/licenses/AFL-3.0\n * If you did not receive a copy of the license and are unable to\n * obtain it through the world-wide-web, please send an email\n * to license@prestashop.com so we can send you a copy immediately.\n *\n * DISCLAIMER\n *\n * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n * versions in the future. If you wish to customize PrestaShop for your\n * needs please refer to http://www.prestashop.com for more information.\n *\n * @author PrestaShop SA \n * @copyright 2007-2019 PrestaShop SA\n * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)\n * International Registered Trademark & Property of PrestaShop SA\n */\nimport Pickr from '@simonwep/pickr';\nimport Vue from 'vue/dist/vue.min';\n\nimport 'material-design-icons/iconfont/material-icons.css';\nimport '@simonwep/pickr/dist/themes/classic.min.css';\nimport './back.scss';\n\nwindow.Vue = Vue;\n\n$(window).ready(() => {\n // Tab Content\n let imgSelected;\n // Tab Content : Change position\n $('.listing-body').sortable({\n update() {\n const blocks = [];\n $('.listing-general-rol').each(function () {\n blocks.push($(this).attr('data-block'));\n });\n\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: window.psr_controller_block_url,\n data: {\n ajax: true,\n action: 'UpdatePosition',\n blocks,\n },\n success(data) {\n if (data === 'success') {\n window.showSuccessMessage(window.successPosition);\n } else {\n window.showErrorMessage(window.errorPosition);\n }\n },\n });\n },\n });\n\n // Tab Content : Set active/inactive\n $(document).on('click', '.listing-row .switch-input', (e) => {\n const switchIsOn = $(e.target).hasClass('-checked');\n const status = switchIsOn ? 1 : 0;\n\n $(e.target).parent().find('.switch_text').hide();\n if (switchIsOn) {\n $('input', e.target).attr('checked', false);\n $(e.target).removeClass('-checked');\n $(e.target).parent().find('.switch-off').show();\n } else {\n $('input', e.target).attr('checked', true);\n $(e.target).addClass('-checked');\n $(e.target).parent().find('.switch-on').show();\n }\n\n $.ajax({\n url: window.psr_controller_block_url,\n type: 'POST',\n dataType: 'JSON',\n async: false,\n data: {\n controller: window.psr_controller_block,\n action: 'changeBlockStatus',\n idpsr: $(e.target).parent().attr('data-cart_psreassurance_id'),\n status,\n ajax: true,\n },\n success: (data) => {\n if (data === 'success') {\n window.showNoticeMessage(window.block_updated);\n } else {\n window.showErrorMessage(window.active_error);\n }\n },\n });\n });\n\n // Tab Content : Add\n $(document).on('click', '.psre-add', () => {\n $('.landscape').show();\n\n $('#reminder_listing').removeClass('active').addClass('inactive');\n $('#blockDisplay').removeClass('inactive').addClass('active');\n $('.show-rea-block').removeClass('active').addClass('inactive');\n\n $('.panel-body-0').removeClass('inactive').addClass('active');\n $('#saveContentConfiguration').attr('data-id', '');\n\n $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type=\"text\"]').val().length);\n $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length);\n\n const landscape = $('.panel-body-0 .psr-picto').attr('src');\n\n if (typeof landscape === 'undefined') {\n $('.psr-picto:visible').hide();\n $('.svg_chosed_here:visible').hide();\n $('.landscape').show();\n }\n });\n\n // Tab Content : Delete\n $(document).on('click', '.psre-delete', function deleteTabContent() {\n const idBlock = $(this).data('id');\n\n if (!window.confirm(window.txtConfirmRemoveBlock)) {\n return;\n }\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: window.psr_controller_block_url,\n data: {\n ajax: true,\n action: 'DeleteBlock',\n idBlock,\n },\n success(data) {\n if (data === 'success') {\n // Remove line\n $(`div[data-block=\"${idBlock}\"]`).remove();\n } else {\n window.showErrorMessage(window.errorRemove);\n }\n },\n error(err) {\n console.log(err);\n },\n });\n });\n\n // Tab Content : Edit\n $(document).on('click', '.psre-edit', function editTabContent() {\n $('.landscape').hide();\n\n $('#reminder_listing').removeClass('active').addClass('inactive');\n $('#blockDisplay').removeClass('inactive').addClass('active');\n $('.show-rea-block').removeClass('active').addClass('inactive');\n\n const id = $(this).data('id');\n $(`.panel-body-${id}`).removeClass('inactive').addClass('active');\n $('#saveContentConfiguration').attr('data-id', id);\n\n $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type=\"text\"]').val().length);\n $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length);\n\n const landscape = $(`.panel-body-${id} .psr-picto`).attr('src');\n\n if (typeof landscape === 'undefined' || landscape === 'undefined') {\n $('.psr-picto:visible').hide();\n $('.svg_chosed_here:visible').hide();\n $('.landscape').show();\n }\n });\n\n // Tab Content : Edit : Language\n $(document).on('change', 'select[name=\"psr-language\"]', (e) => {\n const lang = $(e.target).val();\n\n $('.content_by_lang').removeClass('active').addClass('inactive');\n $(`.content_by_lang.lang-${lang}`).addClass('active');\n $('.limit_text:visible').text($('.show-rea-block.active .content_by_lang:visible input[type=\"text\"]').val().length);\n $('.limit_description:visible').text($('.show-rea-block.active .content_by_lang:visible textarea').val().length);\n });\n\n // Tab Content : Edit : Modify icon\n $(document).on('click', '.modify_icon', (e) => {\n const position = $(e.target).offset();\n const offset = $(e.target).width();\n const top = position.top / 2;\n const left = position.left / 2 - offset;\n\n $('#reassurance_block')\n .show().css('top', `${top}px`).css('left', `${left}px`);\n });\n\n // Tab Content : Edit : Modify icon : Click outside\n $(document).on('click', 'body', (e) => {\n const isInside = $(e.target).closest('.modify_icon').length;\n const isPopin = $(e.target).closest('#reassurance_block').length;\n\n if (!isInside && !isPopin) {\n $('#reassurance_block').fadeOut(300);\n }\n });\n\n // Tab Content : Edit : Modify icon : Tabs\n $(document).on('click', '#reassurance_block .category_select div img', (e) => {\n const category = $(e.target).attr('data-id');\n // Change the tab\n $('#reassurance_block .category_select div').removeClass('active');\n $(e.target).parent().addClass('active');\n // Change the tab content\n $('#reassurance_block .category_reassurance').removeClass('active');\n $(`#reassurance_block .cat_${category}`).addClass('active');\n });\n\n // Tab Content : Edit : Select icon\n $(document).on('click', '#reassurance_block .category_reassurance .svg', (e) => {\n const svg = $(e.target)[0].outerHTML;\n\n // Popin : select the icon\n $('#reassurance_block .category_reassurance img.svg.selected').removeClass('selected');\n $(e.target).addClass('selected');\n // Hide the initial icon\n $('.landscape').hide();\n $('.psr-picto').hide();\n // Show the image\n $('.svg_chosed_here').show();\n $('.svg_chosed_here:visible').html(svg);\n // Popin : hide it\n $('#reassurance_block').fadeOut(300);\n });\n\n // Tab Content : Edit : Select none\n $(document).on('click', '#reassurance_block .select_none', () => {\n const psrPicto = $('.psr-picto:visible');\n psrPicto.attr('src', 'undefined').hide();\n\n // Un-select icon in the popin\n $('#reassurance_block .category_reassurance img.svg').removeClass('selected');\n // Hide the icon seected\n $('.svg_chosed_here:visible').hide();\n // Display the landscape icon\n $('.landscape').show();\n // Hide the popin\n $('#reassurance_block').fadeOut(300);\n });\n\n // Tab Content : Edit : Custom Icon\n $(document).on('change', '.show-rea-block.active input[type=\"file\"]', function editTabContentCustomIcon() {\n const {files} = $(this)[0];\n // Change the label\n const jqLabel = $(this).parents('.input-group').find('label.file_label');\n let label = jqLabel.attr('data-label');\n\n if (files.length === 1) {\n label = `${files.length} file selected`;\n }\n jqLabel.html(label);\n\n // Preview the image\n const idPreview = $(this).attr('data-preview');\n\n if (files && files[0]) {\n const reader = new FileReader();\n reader.onload = (e) => {\n const jqPreview = $(`.${idPreview}`);\n\n if (jqPreview.hasClass('hide')) {\n jqPreview.removeClass('hide');\n }\n jqPreview.attr('src', e.target.result);\n };\n reader.readAsDataURL(files[0]);\n\n [imgSelected] = files;\n\n // Hide the initial icon\n $('.landscape').hide();\n $('.psr-picto').hide();\n $('.picto_by_module').hide();\n // Show the image\n $('.svg_chosed_here').show();\n }\n });\n\n // Tab Content : Edit : MaxLength\n $(document).on('keyup keydown', '.show-rea-block.active .content_by_lang input[type=\"text\"], .show-rea-block.active .content_by_lang textarea', function editTabContentMaxLength() {\n const maxLength = 100;\n const val = $(this).val();\n let valLength = val.length;\n\n if (val.length > maxLength) {\n $(this).val(val.substring(0, maxLength - 1));\n valLength = $(this).val().length;\n }\n if ($(this).is('input:text')) {\n $('.limit_text:visible').text(valLength);\n } else {\n $('.limit_description:visible').text(valLength);\n }\n });\n\n // Tab Content : Edit : Return\n $(document).on('click', '#blockDisplay .refreshPage', () => {\n window.location.reload();\n });\n\n // Tab Content : Edit : Redirect\n $(document).on('change', 'input[name^=\"PSR_REDIRECTION_\"]', (e) => {\n function setEnabledPSR(psr, state) {\n if (state) {\n $(`.psr-${psr}`).removeClass('inactive').addClass('active');\n } else {\n $(`.psr-${psr}`).removeClass('active').addClass('inactive');\n }\n }\n\n switch ($(e.target).val()) {\n case '0':\n setEnabledPSR('cms', false);\n setEnabledPSR('url', false);\n break;\n case '1':\n setEnabledPSR('cms', true);\n setEnabledPSR('url', false);\n break;\n case '2':\n setEnabledPSR('cms', false);\n setEnabledPSR('url', true);\n break;\n default:\n break;\n }\n });\n\n // Tab Content : Edit : Redirect : URL\n $(document).on('keyup', '.block_url:visible', (e) => {\n const url = $(e.target).val();\n const patternForUrl = /(http(s)?:\\/\\/.)?(www\\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g;\n const patternForHttp = /(http(s)?:\\/\\/)/g;\n\n // If it is a real URL :\n if (patternForUrl.test(url)) {\n $(e.target).css('background', '#fff');\n if (!patternForHttp.test(url)) {\n $(e.target).val(`http://${url}`);\n }\n } else {\n $(e.target).css('background', '#ffecec');\n }\n });\n\n // Tab Content : Edit : Save\n $(document).on('click', '#saveContentConfiguration', function editTabContentSave() {\n const dataToSave = {};\n const blockId = $(this).attr('data-id');\n const imgIcon = $('.psr_picto_showing:visible img.psr-picto');\n let iconSrc = imgIcon.attr('src');\n const iconReplaced = $('.svg_chosed_here img.svg').attr('src');\n\n if (typeof iconReplaced !== 'undefined') {\n iconSrc = iconReplaced;\n }\n\n let minimalData = false;\n $('.show-rea-block.active .content_by_lang').each((index, elem) => {\n const lang = parseInt($(elem).attr('data-lang'), 10);\n const dataType = $(elem).attr('data-type');\n\n if (!Object.prototype.hasOwnProperty.call(dataToSave, lang)) {\n dataToSave[lang] = {};\n }\n if (!Object.prototype.hasOwnProperty.call(dataToSave[lang], dataType)) {\n dataToSave[lang][dataType] = '';\n }\n if (dataType === 'description') {\n dataToSave[lang][dataType] = $('textarea', elem).val();\n } else if (typeof ($('input', elem).val()) !== 'undefined') {\n dataToSave[lang][dataType] = $('input', elem).val();\n }\n\n if (!minimalData && lang === window.psr_lang && dataType === 'title' && dataToSave[lang][dataType].length > 0) {\n minimalData = true;\n }\n });\n\n if (!minimalData) {\n window.showErrorMessage(window.min_field_error);\n return;\n }\n\n const formData = new FormData();\n formData.append('ajax', true);\n formData.append('action', 'SaveBlockContent');\n formData.append('file', imgSelected);\n formData.append('id_block', blockId);\n formData.append('lang_values', JSON.stringify(dataToSave));\n formData.append('picto', iconSrc);\n formData.append('typelink', $(`input[name=\"PSR_REDIRECTION_${blockId}\"]:checked`).val());\n formData.append('id_cms', $(`select[name=\"ID_CMS_${blockId}\"]`).val());\n\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: window.psr_controller_block_url,\n contentType: false,\n processData: false,\n data: formData,\n success() {\n window.showSuccessMessage(window.psre_success);\n setTimeout(window.location.reload(), 1800);\n },\n });\n });\n\n // Tab Display\n new Vue({\n el: '#menu',\n data: {\n selectedTabName: window.currentPage,\n },\n methods: {\n makeActive(item) {\n this.selectedTabName = item;\n window.history.pushState({}, '', `${window.moduleAdminLink.replace(/amp;/g, '')}&page=${item}`);\n },\n isActive(item) {\n if (this.selectedTabName !== item) {\n return false;\n }\n $('.psr_menu').addClass('addons-hide');\n $(`.psr_menu#${item}`).removeClass('addons-hide');\n\n return true;\n },\n },\n });\n\n // Tab Display : Save Position\n $(document).on(\n 'change',\n 'input[name=\"PSR_HOOK_CHECKOUT\"],input[name=\"PSR_HOOK_HEADER\"],input[name=\"PSR_HOOK_FOOTER\"],input[name=\"PSR_HOOK_PRODUCT\"]',\n function updatePosition() {\n let selector;\n\n switch ($(this).attr('name')) {\n case 'PSR_HOOK_CHECKOUT':\n selector = 'checkout';\n break;\n case 'PSR_HOOK_HEADER':\n selector = 'header';\n break;\n case 'PSR_HOOK_FOOTER':\n selector = 'footer';\n break;\n case 'PSR_HOOK_PRODUCT':\n selector = 'product';\n break;\n default:\n selector = '';\n }\n\n $(`.psr-${selector}-grey`).addClass('active');\n $(`.psr-${selector}-color`).removeClass('active');\n\n $(this).nextAll(`.psr-${selector}-grey`).removeClass('active');\n $(this).nextAll(`.psr-${selector}-color`).addClass('active');\n savePositionByHook($(this).attr('name'), $(this).val());\n },\n );\n function savePositionByHook(hook, value) {\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: window.psr_controller_block_url,\n data: {\n ajax: true,\n action: 'SavePositionByHook',\n hook,\n value,\n },\n success(data) {\n if (data === 'success') {\n window.showSuccessMessage(window.successPosition);\n } else {\n window.showErrorMessage(window.errorPosition);\n }\n },\n });\n }\n\n // Tab Appearance\n const pickrComponents = {\n // Main components\n preview: true,\n opacity: false,\n hue: true,\n\n // Input / output Options\n interaction: {\n hex: false,\n rgba: false,\n hsla: false,\n hsva: false,\n cmyk: false,\n input: true,\n clear: false,\n save: true,\n },\n };\n const pickr1 = Pickr.create({\n el: '.ps_colorpicker1',\n default: window.psr_icon_color,\n defaultRepresentation: 'HEX',\n closeWithKey: 'Escape',\n adjustableNumbers: true,\n components: pickrComponents,\n });\n pickr1.on('change', () => {\n const pickrColor = pickr1.getColor();\n const hexaColor = pickrColor.toHEXA().toString();\n $('.psr_icon_color').val(hexaColor);\n });\n\n const pickr2 = Pickr.create({\n el: '.ps_colorpicker2',\n default: window.psr_text_color,\n defaultRepresentation: 'HEX',\n closeWithKey: 'Escape',\n adjustableNumbers: true,\n components: pickrComponents,\n });\n pickr2.on('change', () => {\n const pickrColor = pickr2.getColor();\n const hexaColor = pickrColor.toHEXA().toString();\n $('.psr_text_color').val(hexaColor);\n });\n\n // Tab Appearance : Save Color\n $(document).on('click', '#saveConfiguration', () => {\n const color1 = $('#color_1').val();\n const color2 = $('#color_2').val();\n $.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: window.psr_controller_block_url,\n data: {\n ajax: true,\n action: 'SaveColor',\n color1,\n color2,\n },\n success(data) {\n if (data === 'success') {\n window.showSuccessMessage(window.psre_success);\n } else {\n window.showErrorMessage(window.active_error);\n }\n },\n });\n });\n});\n"],"names":["self","module","exports","t","d","e","o","n","Object","defineProperty","enumerable","get","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","default","L","i","HTMLCollection","NodeList","Array","from","isArray","s","capture","slice","arguments","adjustableInputNumbers","p","createElementFromString","createFromTemplate","a","eventPath","l","off","on","resolveElement","c","bind","document","createElement","innerHTML","trim","firstElementChild","getAttribute","removeAttribute","children","push","keys","length","path","composedPath","target","parentElement","window","Element","split","reduce","querySelector","shadowRoot","Number","shiftKey","ctrlKey","deltaY","selectionStart","replace","focus","setSelectionRange","preventDefault","dispatchEvent","Event","passive","min","u","max","h","floor","round","m","Math","f","v","b","y","g","isNaN","_","match","map","parseInt","A","toFixed","toHSVA","toString","toHSLA","toRGBA","toCMYK","toHEXA","padStart","toUpperCase","join","clone","C","$","options","assign","lock","onchange","onstop","_keyboard","type","key","activeElement","wrapper","update","cache","x","startsWith","_tapstart","_tapstop","_tapmove","cancelable","element","getBoundingClientRect","touches","clientX","clientY","left","width","top","height","style","offsetWidth","offsetHeight","trigger","destroy","k","className","elements","forEach","classList","stopPropagation","S","variantFlipOrder","start","middle","end","positionFlipOrder","right","bottom","position","margin","E","configurable","writable","constructor","this","init","save","hide","show","clear","change","changestop","cancel","swatchselect","DEFAULT_OPTIONS","swatches","components","theme","sliders","lockOpacity","padding","includes","interaction","preview","opacity","hue","palette","_preBuild","_buildComponents","_bindEvents","_finalBuild","addSwatch","button","app","_root","_nanopop","HTMLElement","reference","popper","Error","container","documentElement","vs","vm","ve","hs","hm","he","w","O","setAttribute","_t","_setupAnimationFrame","requestAnimationFrame","setColor","_rePositioningPicker","defaultRepresentation","_representation","setColorRepresentation","showAlways","_initializingActive","_emit","useAsButton","inline","appClass","input","hex","rgba","hsla","hsva","cmyk","find","hidden","add","contains","el","appendChild","root","removeChild","nextSibling","insertBefore","remove","parentNode","replaceChild","disabled","disable","comparison","transition","lastColor","repeat","_color","_lastColor","picker","currentColor","_recalc","_updateOutput","background","setProperty","color","_swatchColors","slider","backgroundColor","selectable","_components","_clearColor","setHSVA","applyColor","result","stopImmediatePropagation","closeWithKey","isOpen","code","some","adjustableNumbers","getColorRepresentation","toLowerCase","toPrecision","autoReposition","closeOnScroll","setTimeout","clearTimeout","_eventBindings","body","innerHeight","innerWidth","outputPrecision","_parseLocalColor","values","getContext","fillStyle","hexa","test","exec","substring","i18n","I18N_DEFAULTS","_eventListener","indexOf","splice","removeSwatch","cancelAnimationFrame","destroyAndRemove","click","getColor","getSelectedColor","getRoot","enable","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","list","idCountMap","identifiers","item","id","base","count","concat","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","api","domAPI","newObj","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","styleTarget","HTMLIFrameElement","contentDocument","head","getTarget","setAttributes","attributes","styleElement","nonce","insertStyleElement","needLayer","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","freeze","parseFloat","String","isFinite","then","catch","create","charAt","Function","_length","T","N","every","Date","getTime","j","D","I","M","F","optionMergeStrategies","silent","productionTip","devtools","performance","errorHandler","warnHandler","ignoredElements","keyCodes","isReservedTag","isReservedAttr","isUnknownElement","getTagNamespace","parsePlatformTagName","mustUseProp","async","_lifecycleHooks","P","R","B","H","RegExp","source","U","V","z","WXEnvironment","platform","K","J","navigator","userAgent","q","W","Z","G","X","Y","watch","Q","ee","addEventListener","te","process","env","VUE_ENV","ne","__VUE_DEVTOOLS_GLOBAL_HOOK__","re","ie","oe","Reflect","ownKeys","Set","set","has","ae","se","ce","subs","addSub","removeSub","depend","addDep","notify","ue","le","fe","pop","pe","tag","data","text","elm","ns","context","fnContext","fnOptions","fnScopeId","componentOptions","componentInstance","parent","raw","isStatic","isRootInsert","isComment","isCloned","isOnce","asyncFactory","asyncMeta","isAsyncPlaceholder","de","child","defineProperties","me","ye","ge","__ob__","observeArray","dep","_e","getOwnPropertyNames","be","$e","we","vmCount","__proto__","walk","Ce","isExtensible","_isVue","xe","getOwnPropertyDescriptor","ke","Ae","Oe","Se","Te","Ne","Ee","props","methods","inject","computed","provide","je","De","directives","_base","extends","mixins","Le","Ie","Re","Boolean","$options","propsData","_props","Fe","Me","Pe","He","$parent","errorCaptured","Ue","Be","_handled","Ve","console","error","ze","Ke","Je","qe","We","Promise","Ze","resolve","MutationObserver","setImmediate","Ge","Xe","Ye","observe","characterData","Qe","et","tt","isFrozen","nt","name","once","rt","fns","it","params","ot","hook","merged","at","st","ct","shift","_isVList","ut","_provided","lt","attrs","slot","ft","pt","dt","$stable","$key","_normalized","$hasNormal","vt","ht","proxy","mt","iterator","next","done","yt","$scopedSlots","$slots","$createElement","gt","bt","$t","domProps","wt","_staticTrees","xt","staticRenderFns","_renderProxy","Ct","kt","At","Ot","fn","St","Tt","Nt","_o","_n","_s","_l","_q","_m","_f","_k","_b","_v","_u","_g","_d","_p","Et","_original","_compiled","listeners","injections","slots","scopedSlots","_scopeId","_c","Ht","jt","Dt","Lt","_isDestroyed","keepAlive","prepatch","_isComponent","_parentVnode","inlineTemplate","render","Ctor","Zt","$mount","_renderChildren","$vnode","_vnode","$attrs","$listeners","_propKeys","_parentListeners","Wt","$forceUpdate","_isMounted","Qt","_inactive","tn","Yt","_directInactive","Xt","$children","$destroy","It","Mt","extend","cid","errorComp","resolved","Ut","owners","loading","loadingComp","$on","Vt","component","delay","timeout","wn","model","prop","event","callback","functional","nativeOn","abstract","_merged","Ft","is","pre","class","Bt","__esModule","zt","Kt","Jt","$off","qt","Gt","_hasHookEvent","$emit","en","nn","rn","an","sn","cn","now","un","createEvent","timeStamp","ln","sort","before","run","_watcher","emit","pn","_watchers","deep","user","lazy","sync","cb","active","dirty","deps","newDeps","depIds","newDepIds","expression","getter","cleanupDeps","evaluate","teardown","_isBeingDestroyed","dn","vn","mn","yn","gn","_computedWatchers","bn","handler","$watch","$n","super","superOptions","sealedOptions","extendOptions","Cn","_init","kn","An","On","Sn","_uid","_componentTag","_self","$root","$refs","_events","_data","charCodeAt","hn","$set","$delete","immediate","$once","_update","$el","__patch__","__vue__","$nextTick","_render","Tn","Nn","KeepAlive","include","exclude","cacheVNode","vnodeToCache","keyToCache","created","destroyed","mounted","updated","util","warn","mergeOptions","defineReactive","delete","nextTick","observable","use","_installedPlugins","unshift","install","mixin","_Ctor","xn","ssrContext","version","En","jn","Dn","Ln","In","Fn","Pn","Rn","Hn","Bn","Vn","staticClass","zn","Kn","Jn","svg","math","qn","Wn","Zn","Gn","Xn","Yn","Qn","er","multiple","createElementNS","createComment","tagName","setTextContent","textContent","setStyleScope","tr","nr","ref","refInFor","rr","ir","or","ar","sr","cr","lr","oldValue","oldArg","arg","pr","def","componentUpdated","inserted","ur","modifiers","fr","rawName","dr","vr","inheritAttrs","hr","removeAttributeNS","mr","Mn","setAttributeNS","__ieph","removeEventListener","yr","gr","Un","_transitionClasses","_prevClass","_r","br","$r","wr","Cr","xr","kr","Ar","Or","Sr","Tr","Nr","filter","Er","Hr","dynamic","plain","jr","dynamicAttrs","Dr","attrsMap","attrsList","Lr","isDynamicArg","Ir","Mr","native","nativeEvents","events","Fr","Pr","Rr","Br","number","Ur","lastIndexOf","exp","zr","Kr","Vr","qr","Jr","Wr","Zr","Xr","ei","Yr","Qr","_wrapper","currentTarget","ownerDocument","ti","ni","ri","ii","childNodes","_value","oi","composing","_vModifiers","ai","si","ci","ui","staticStyle","li","fi","pi","di","hi","vi","mi","normalizedStyle","yi","gi","bi","$i","wi","enterClass","enterToClass","enterActiveClass","leaveClass","leaveToClass","leaveActiveClass","Ci","xi","ki","Ai","Oi","Si","Ti","ontransitionend","onwebkittransitionend","onanimationend","onwebkitanimationend","Ni","Ei","ji","Di","Li","Mi","propCount","Ii","getComputedStyle","Fi","hasTransform","Pi","Ri","_leaveCb","cancelled","_enterCb","nodeType","appearClass","appearToClass","appearActiveClass","beforeEnter","enter","afterEnter","enterCancelled","beforeAppear","appear","afterAppear","appearCancelled","duration","Ui","_pending","Bi","Hi","beforeLeave","leave","afterLeave","leaveCancelled","delayLeave","Vi","zi","modules","nodeOps","activate","pendingInsert","postpatch","hasChildNodes","hasAttribute","vmodel","Yi","Ki","_vOptions","Ji","Zi","Gi","Xi","Wi","qi","selected","selectedIndex","initEvent","Qi","eo","__vOriginalDisplay","display","unbind","to","mode","no","ro","io","oo","ao","so","_leaving","co","moveClass","uo","_moveCb","lo","newPos","fo","pos","moved","transform","WebkitTransform","transitionDuration","po","Transition","TransitionGroup","beforeMount","kept","prevChildren","removed","hasMove","_reflow","propertyName","_hasMove","cloneNode","config","HTMLUnknownElement","go","vo","ho","mo","yo","staticKeys","transformNode","classBinding","genData","styleBinding","$o","wo","Co","xo","ko","Ao","Oo","So","To","No","Eo","jo","Do","Lo","Io","Mo","Fo","Po","Ro","Ho","Bo","Uo","Vo","zo","Ko","Jo","qo","Wo","Zo","Go","Xo","Yo","Qo","ea","ta","na","ra","ia","oa","aa","sa","ca","ua","la","ya","rawAttrsMap","pa","for","slotScope","slotTarget","slotTargetDynamic","ha","slotName","hasBindings","ma","camel","da","alias","iterator1","iterator2","va","ifConditions","ga","_a","ba","wa","Ca","$a","preTransformNode","processed","if","block","else","elseif","xa","expectHTML","html","isPreTag","isUnaryTag","canBeLeftOpenTag","ka","Oa","Sa","Ta","Na","esc","tab","space","up","down","Ea","ja","Da","stop","prevent","ctrl","alt","meta","La","Ia","Ma","Fa","wrapListeners","wrapData","cloak","Pa","transforms","dataGenFns","maybeComponent","onceId","Ra","Ha","staticRoot","staticProcessed","Ba","onceProcessed","Ua","forProcessed","za","ifProcessed","Va","Wa","Xa","Ka","staticInFor","Ja","qa","Za","Ga","Ya","Qa","err","es","delimiters","ts","rs","preserveWhitespace","whitespace","forbidden","chars","shouldKeepComment","comment","unarySlash","shouldDecodeNewlinesForHref","shouldDecodeNewlines","lowerCasedTag","comments","outputSourceRange","placeholder","lastIndex","tokens","fa","optimize","static","Aa","ast","errors","tips","compile","compileToFunctions","os","as","ss","cs","us","template","outerHTML","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","definition","globalThis","Vue","ready","imgSelected","sortable","blocks","each","attr","ajax","dataType","url","psr_controller_block_url","action","success","showSuccessMessage","successPosition","showErrorMessage","errorPosition","switchIsOn","hasClass","status","removeClass","addClass","controller","psr_controller_block","idpsr","showNoticeMessage","block_updated","active_error","val","idBlock","confirm","txtConfirmRemoveBlock","errorRemove","log","landscape","lang","offset","isInside","closest","isPopin","fadeOut","category","files","jqLabel","parents","label","idPreview","reader","FileReader","onload","jqPreview","readAsDataURL","valLength","maxLength","location","reload","setEnabledPSR","psr","state","dataToSave","blockId","iconSrc","iconReplaced","minimalData","elem","psr_lang","min_field_error","formData","FormData","append","contentType","processData","psre_success","selectedTabName","currentPage","makeActive","history","pushState","moduleAdminLink","isActive","selector","nextAll","pickrComponents","pickr1","Pickr","psr_icon_color","hexaColor","pickr2","psr_text_color","color1","color2"],"sourceRoot":""}
\ No newline at end of file
diff --git a/views/dist/front.js b/views/dist/front.js
index 43085010..d90162bb 100644
--- a/views/dist/front.js
+++ b/views/dist/front.js
@@ -1,3 +1,3 @@
/*! For license information please see front.js.LICENSE.txt */
-(()=>{var e={267:()=>{},379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,s&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(379),t=r.n(e),n=r(795),s=r.n(n),a=r(569),o=r.n(a),i=r(565),c=r.n(i),l=r(216),u=r.n(l),d=r(589),p=r.n(d),f=r(267),v=r.n(f),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=o().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=u(),t()(v(),m),v()&&v().locals&&v().locals,$(window).ready((()=>{$(".blockreassurance_product img.svg, .blockreassurance img.svg").each((function(){const e=$(this),t=e.attr("id"),r=e.attr("class"),n=e.attr("src");$.ajax({url:n,type:"GET",success(s){if($.isXMLDoc(s)){let a=$(s).find("svg");a=void 0!==t?a.attr("id",t):a,a=void 0!==r?a.attr("class",`${r} replaced-svg`):a.attr("class"," replaced-svg"),a.removeClass("invisible"),a=a.attr("data-img-url",n),a=a.removeAttr("xmlns:a"),a.find("path[fill]").attr("fill",window.psr_icon_color),a.find("path:not([fill])").css("fill",window.psr_icon_color),e.replaceWith(a)}e.removeClass("invisible")}})}))}))})()})();
+(()=>{var e={267:()=>{},379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,s&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(379),t=r.n(e),n=r(795),s=r.n(n),a=r(569),o=r.n(a),i=r(565),c=r.n(i),l=r(216),u=r.n(l),d=r(589),p=r.n(d),f=r(267),v=r.n(f),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=o().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=u(),t()(v(),m),v()&&v().locals&&v().locals,$(window).ready((()=>{const e=$(".blockreassurance_product img.svg, .blockreassurance img.svg").map((function(){return $(this).attr("src")})).toArray();e.filter(((t,r)=>e.indexOf(t)===r)).forEach((function(e){const t=$(`.blockreassurance_product img.svg.invisible[src="${e}"], .blockreassurance img.svg.invisible[src="${e}"]`);0!==t.length&&$.ajax({url:e,type:"GET",success(r){if($.isXMLDoc(r)){let n=$(r).find("svg");n=n.attr("data-img-url",e),n=n.removeAttr("xmlns:a"),n.find("path[fill]").attr("fill",window.psr_icon_color),n.find("path:not([fill])").css("fill",window.psr_icon_color),t.each((function(){const e=$(this).attr("id"),t=$(this).attr("class");let r=n.clone();r=void 0!==e?r.attr("id",e):r,r=void 0!==t?r.attr("class",`${t} replaced-svg`):r.attr("class"," replaced-svg"),r.removeClass("invisible"),$(this).replaceWith(r)}))}}})}))}))})()})();
//# sourceMappingURL=front.js.map
\ No newline at end of file
diff --git a/views/dist/front.js.map b/views/dist/front.js.map
index 023f4eb8..026df09d 100644
--- a/views/dist/front.js.map
+++ b/views/dist/front.js.map
@@ -1 +1 @@
-{"version":3,"file":"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oBAAoBpG,IAAI,OAAQ+B,OAAOwE,gBAEjDhB,EAAUiB,YAAYL,GAExBZ,EAAUc,YAAY","sources":["webpack://blockreassurance/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://blockreassurance/webpack/bootstrap","webpack://blockreassurance/webpack/runtime/compat get default export","webpack://blockreassurance/webpack/runtime/define property getters","webpack://blockreassurance/webpack/runtime/hasOwnProperty shorthand","webpack://blockreassurance/./_dev/front/front.scss?7b81","webpack://blockreassurance/./_dev/front/index.js"],"sourcesContent":["\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./front.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./front.scss\";\n export default content && content.locals ? content.locals : undefined;\n","/**\n * 2007-2019 PrestaShop\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Academic Free License (AFL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * http://opensource.org/licenses/afl-3.0.php\n * If you did not receive a copy of the license and are unable to\n * obtain it through the world-wide-web, please send an email\n * to license@prestashop.com so we can send you a copy immediately.\n *\n * DISCLAIMER\n *\n * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n * versions in the future. If you wish to customize PrestaShop for your\n * needs please refer to http://www.prestashop.com for more information.\n *\n * @author PrestaShop SA \n * @copyright 2007-2019 PrestaShop SA\n * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\n * International Registered Trademark & Property of PrestaShop SA\n */\n\nimport './front.scss';\n\n$(window).ready(() => {\n function styleSVG() {\n const imgObject = $(this);\n const imgID = imgObject.attr('id');\n const imgClass = imgObject.attr('class');\n const imgURL = imgObject.attr('src');\n\n $.ajax({\n url: imgURL,\n type: 'GET',\n success(data) {\n if ($.isXMLDoc(data)) {\n // Get the SVG tag, ignore the rest\n let $svg = $(data).find('svg');\n // Add replaced image's ID to the new SVG\n $svg = typeof imgID !== 'undefined' ? $svg.attr('id', imgID) : $svg;\n // Add replaced image's classes to the new SVG\n $svg = typeof imgClass !== 'undefined' ? $svg.attr('class', `${imgClass} replaced-svg`) : $svg.attr('class', ' replaced-svg');\n $svg.removeClass('invisible');\n // Add URL in data\n $svg = $svg.attr('data-img-url', imgURL);\n // Remove any invalid XML tags as per http://validator.w3.org\n $svg = $svg.removeAttr('xmlns:a');\n // Set color defined in backoffice\n $svg.find('path[fill]').attr('fill', window.psr_icon_color);\n $svg.find('path:not([fill])').css('fill', window.psr_icon_color);\n // Replace image with new SVG\n imgObject.replaceWith($svg);\n }\n imgObject.removeClass('invisible');\n },\n });\n }\n\n $('.blockreassurance_product img.svg, .blockreassurance img.svg').each(styleSVG);\n});\n"],"names":["stylesInDOM","getIndexByIdentifier","identifier","result","i","length","modulesToDom","list","options","idCountMap","identifiers","item","id","base","count","concat","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","push","api","domAPI","update","newObj","remove","module","exports","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","needLayer","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","$","ready","each","imgObject","this","imgID","attr","imgClass","imgURL","ajax","url","type","success","data","isXMLDoc","$svg","find","removeClass","removeAttr","psr_icon_color","replaceWith"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"front.js","mappings":";6CAEA,IAAIA,EAAc,GAElB,SAASC,EAAqBC,GAG5B,IAFA,IAAIC,GAAU,EAELC,EAAI,EAAGA,EAAIJ,EAAYK,OAAQD,IACtC,GAAIJ,EAAYI,GAAGF,aAAeA,EAAY,CAC5CC,EAASC,EACT,MAIJ,OAAOD,EAGT,SAASG,EAAaC,EAAMC,GAI1B,IAHA,IAAIC,EAAa,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S,iBACtHsB,EAAQE,YAAY,aACpB7B,EAAEI,MAAM0B,YAAYH","sources":["webpack://blockreassurance/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://blockreassurance/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://blockreassurance/webpack/bootstrap","webpack://blockreassurance/webpack/runtime/compat get default export","webpack://blockreassurance/webpack/runtime/define property getters","webpack://blockreassurance/webpack/runtime/hasOwnProperty shorthand","webpack://blockreassurance/./_dev/front/front.scss?7b81","webpack://blockreassurance/./_dev/front/index.js"],"sourcesContent":["\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\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__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\n import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./front.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./front.scss\";\n export default content && content.locals ? content.locals : undefined;\n","/**\n * 2007-2019 PrestaShop\n *\n * NOTICE OF LICENSE\n *\n * This source file is subject to the Academic Free License (AFL 3.0)\n * that is bundled with this package in the file LICENSE.txt.\n * It is also available through the world-wide-web at this URL:\n * http://opensource.org/licenses/afl-3.0.php\n * If you did not receive a copy of the license and are unable to\n * obtain it through the world-wide-web, please send an email\n * to license@prestashop.com so we can send you a copy immediately.\n *\n * DISCLAIMER\n *\n * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n * versions in the future. If you wish to customize PrestaShop for your\n * needs please refer to http://www.prestashop.com for more information.\n *\n * @author PrestaShop SA \n * @copyright 2007-2019 PrestaShop SA\n * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\n * International Registered Trademark & Property of PrestaShop SA\n */\n\nimport './front.scss';\n\n$(window).ready(() => {\n /**\n * @param {String} imgSrc\n */\n function styleSVG(imgSrc) {\n const imgTarget = $(`.blockreassurance_product img.svg.invisible[src=\"${imgSrc}\"], .blockreassurance img.svg.invisible[src=\"${imgSrc}\"]`);\n\n if (imgTarget.length === 0) {\n return;\n }\n\n // Fetch the image\n $.ajax({\n url: imgSrc,\n type: 'GET',\n success(data) {\n if ($.isXMLDoc(data)) {\n // Get the SVG tag, ignore the rest\n let $svg = $(data).find('svg');\n // Add URL in data\n $svg = $svg.attr('data-img-url', imgSrc);\n // Remove any invalid XML tags as per http://validator.w3.org\n $svg = $svg.removeAttr('xmlns:a');\n // Set color defined in backoffice\n $svg.find('path[fill]').attr('fill', window.psr_icon_color);\n $svg.find('path:not([fill])').css('fill', window.psr_icon_color);\n // For each element, replace the svg with specific ID & CSS class\n imgTarget.each(function () {\n const imgID = $(this).attr('id');\n const imgClass = $(this).attr('class');\n let $imgSvg = $svg.clone();\n // Add replaced image's ID to the new SVG\n $imgSvg = typeof imgID !== 'undefined' ? $imgSvg.attr('id', imgID) : $imgSvg;\n // Add replaced image's classes to the new SVG\n $imgSvg = typeof imgClass !== 'undefined' ? $imgSvg.attr('class', `${imgClass} replaced-svg`) : $imgSvg.attr('class', ' replaced-svg');\n $imgSvg.removeClass('invisible');\n $(this).replaceWith($imgSvg);\n });\n }\n },\n });\n }\n\n const imgSrcSvg = $('.blockreassurance_product img.svg, .blockreassurance img.svg').map(function () {\n return $(this).attr('src');\n }).toArray();\n imgSrcSvg\n .filter((el, pos) => imgSrcSvg.indexOf(el) === pos)\n .forEach(styleSVG);\n});\n"],"names":["stylesInDOM","getIndexByIdentifier","identifier","result","i","length","modulesToDom","list","options","idCountMap","identifiers","item","id","base","count","concat","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","push","api","domAPI","update","newObj","remove","module","exports","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","needLayer","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","prop","prototype","hasOwnProperty","call","$","ready","imgSrcSvg","map","this","attr","toArray","filter","el","pos","indexOf","forEach","imgSrc","imgTarget","ajax","url","type","success","data","isXMLDoc","$svg","find","removeAttr","psr_icon_color","each","imgID","imgClass","$imgSvg","clone","removeClass","replaceWith"],"sourceRoot":""}
\ No newline at end of file
diff --git a/views/templates/admin/tabs/content/config_elements/description.tpl b/views/templates/admin/tabs/content/config_elements/description.tpl
index 14a1c472..a9b6fa7b 100644
--- a/views/templates/admin/tabs/content/config_elements/description.tpl
+++ b/views/templates/admin/tabs/content/config_elements/description.tpl
@@ -39,8 +39,8 @@
name="description-{$language.id_lang|escape:'htmlall':'UTF-8'}"
max="100"
class="form-control"
- value="{if isset($block)}{$allblockByShop[{$language.id_lang}][$block['id_psreassurance']]['description']}{/if}"
- >{if isset($block)}{$allblockByShop[{$language.id_lang}][$block['id_psreassurance']]['description']}{/if}
+ value="{if isset($block)}{$allblock[$block['id_psreassurance']]['description'][{$language.id_lang}]}{/if}"
+ >{if isset($block)}{$allblock[$block['id_psreassurance']]['description'][{$language.id_lang}]}{/if}