window.cms_page=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=315)}({1:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},10:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n ")),t=t.concat(i)}),t}}]),e}();t.default=a},11:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n",{action:t.data("url"),method:i?r:"POST"}).appendTo("body");i||a.append(o("",{type:"_hidden",name:"_method",value:r})),a.submit()}})}}]),e}();t.default=a},13:function(e,t,n){"use strict";(function(e){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ var n=e.$,r=function(e,t){n.post(e).then(function(){return window.location.assign(t)})};t.default=r}).call(t,n(1))},15:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n",{action:e,method:"POST"}).appendTo("body").submit()}}]),e}();t.default=o}).call(t,n(1))},17:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitter=void 0;var r=n(19),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.EventEmitter=new i.default},18:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,r(u)}return e}function l(){for(var e=[],t=0;t0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)g(l,this,t);else for(var s=l.length,u=d(l,s),n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():f(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return u(this,e,!0)},i.prototype.rawListeners=function(e){return u(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):c.call(e,t)},i.prototype.listenerCount=c,i.prototype.eventNames=function(){return this._eventsCount>0?p(this._events):[]}},243:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n",{action:e,method:r?n:"POST"}).appendTo("body"),o=t.positions.length,l=void 0,s=0;s",{type:"hidden",name:"positions["+s+"][rowId]",value:l.rowId}),a("",{type:"hidden",name:"positions["+s+"][oldPosition]",value:l.oldPosition}),a("",{type:"hidden",name:"positions["+s+"][newPosition]",value:l.newPosition}));r||i.append(a("",{type:"hidden",name:"_method",value:n})),i.submit()}}]),e}();t.default=l},27:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ var i=window.$,o=function e(t){var n=t.tokenFieldSelector,o=t.options,a=void 0===o?{}:o;r(this,e),i(n).tokenfield(a)};t.default=o},3:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ (0,window.$)(function(){var e=new o.default("cms_page_category");e.addExtension(new h.default),e.addExtension(new v.default),e.addExtension(new d.default),e.addExtension(new l.default),e.addExtension(new b.default),e.addExtension(new m.default),e.addExtension(new _.default),e.addExtension(new u.default),e.addExtension(new C.default),e.addExtension(new x.default);var t=new E.default;(0,S.default)({sourceElementSelector:'input[name^="cms_page_category[name]"]',destinationElementSelector:t.localeInputSelector+':not(.d-none) input[name^="cms_page_category[friendly_url]"]'}),new T.default("#cms_page_category_parent_category"),new T.default("#cms_page_category_shop_association").enableAutoCheckChildren(),new A.default({tokenFieldSelector:'input[name^="cms_page_category[meta_keywords]"]',options:{createTokensOnBlur:!0}});var n=new o.default("cms_page");n.addExtension(new h.default),n.addExtension(new v.default),n.addExtension(new d.default),n.addExtension(new l.default),n.addExtension(new C.default),n.addExtension(new _.default),n.addExtension(new m.default),n.addExtension(new u.default),n.addExtension(new x.default),n.addExtension(new b.default),new I.default("cms-pages-showcase-card").addExtension(new $.default)})},4:function(e,t){!function(){e.exports=window.jQuery}()},42:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});/** * 2007-2019 PrestaShop and Contributors * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ var r=window.$,i=function(e){var t=e.sourceElementSelector,n=e.destinationElementSelector,i=e.options,o=void 0===i?{eventName:"input"}:i;r(document).on(o.eventName,""+t,function(e){r(n).val(str2url(r(e.currentTarget).val(),"UTF-8"))})};t.default=i},5:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n ',autoWidthAdjust:t(this).data("autowidthadjust")||!0,autoCleanRelations:t(this).data("autocleanrelations")||!0,jsonPretifySeparator:t(this).data("jsonpretifyseparator")||"\t",serializeRegexp:t(this).data("serializeregexp")&&new RegExp(t(this).data("serializeregexp"))||/[^\-]*$/,serializeParamName:t(this).data("serializeparamname")||!1,dragHandle:t(this).data("draghandle")||null})})}),e.tableDnD={currentTable:null,dragObject:null,mouseOffset:null,oldX:0,oldY:0,build:function(e){return this.each(function(){this.tableDnDConfig=t.extend({onDragStyle:null,onDropStyle:null,onDragClass:"tDnD_whileDrag",onDrop:null,onDragStart:null,onDragStop:null,scrollAmount:5,sensitivity:10,hierarchyLevel:0,indentArtifact:'
 
',autoWidthAdjust:!0,autoCleanRelations:!0,jsonPretifySeparator:"\t",serializeRegexp:/[^\-]*$/,serializeParamName:!1,dragHandle:null},e||{}),t.tableDnD.makeDraggable(this),this.tableDnDConfig.hierarchyLevel&&t.tableDnD.makeIndented(this)}),this},makeIndented:function(e){var n,r,i=e.tableDnDConfig,o=e.rows,a=t(o).first().find("td:first")[0],l=0,s=0;if(t(e).hasClass("indtd"))return null;r=t(e).addClass("indtd").attr("style"),t(e).css({whiteSpace:"nowrap"});for(var u=0;ue.vertical&&this.dragObject.parentNode.insertBefore(this.dragObject,t.nextSibling)||00&&t(n).find("td:first").children(":first").remove()&&t(n).data("level",--r),0>e.horizontal&&r=r&&t(n).children(":first").prepend(i.indentArtifact)&&t(n).data("level",++r)},mousemove:function(e){var n,r,i,o,a,l=t(t.tableDnD.dragObject),s=t.tableDnD.currentTable.tableDnDConfig;return e&&e.preventDefault(),!!t.tableDnD.dragObject&&("touchmove"===e.type&&event.preventDefault(),s.onDragClass&&l.addClass(s.onDragClass)||l.css(s.onDragStyle),r=t.tableDnD.mouseCoords(e),o=r.x-t.tableDnD.mouseOffset.x,a=r.y-t.tableDnD.mouseOffset.y,t.tableDnD.autoScroll(r),n=t.tableDnD.findDropTargetRow(l,a),i=t.tableDnD.findDragDirection(o,a),t.tableDnD.moveVerticle(i,n),t.tableDnD.moveHorizontal(i,n),!1)},findDragDirection:function(e,t){var n=this.currentTable.tableDnDConfig.sensitivity,r=this.oldX,i=this.oldY,o=r-n,a=r+n,l=i-n,s=i+n,u={horizontal:e>=o&&e<=a?0:e>r?-1:1,vertical:t>=l&&t<=s?0:t>i?-1:1};return 0!==u.horizontal&&(this.oldX=e),0!==u.vertical&&(this.oldY=t),u},findDropTargetRow:function(e,n){for(var r=0,i=this.currentTable.rows,o=this.currentTable.tableDnDConfig,a=0,l=null,s=0;sa-r&&n1&&t(this.currentTable.rows).each(function(){if((o=t(this).data("level"))>1)for(i=t(this).prev().data("level");o>i+1;)t(this).find("td:first").children(":first").remove(),t(this).data("level",--o)}),e.onDragClass&&t(n).removeClass(e.onDragClass)||t(n).css(e.onDropStyle),this.dragObject=null,e.onDrop&&this.originalOrder!==this.currentOrder()&&t(n).hide().fadeIn("fast")&&e.onDrop(this.currentTable,n),e.onDragStop&&e.onDragStop(this.currentTable,n),this.currentTable=null},mouseup:function(e){return e&&e.preventDefault(),t.tableDnD.processMouseup(),!1},jsonize:function(e){var t=this.currentTable;return e?JSON.stringify(this.tableData(t),null,t.tableDnDConfig.jsonPretifySeparator):JSON.stringify(this.tableData(t))},serialize:function(){return t.param(this.tableData(this.currentTable))},serializeTable:function(e){for(var t="",n=e.tableDnDConfig.serializeParamName||e.id,r=e.rows,i=0;i0&&(t+="&");var o=r[i].id;o&&e.tableDnDConfig&&e.tableDnDConfig.serializeRegexp&&(o=o.match(e.tableDnDConfig.serializeRegexp)[0],t+=n+"[]="+o)}return t},serializeTables:function(){var e=[];return t("table").each(function(){this.id&&e.push(t.param(t.tableDnD.tableData(this)))}),e.join("&")},tableData:function(e){var n,r,i,o,a=e.tableDnDConfig,l=[],s=0,u=0,c=null,d={};if(e||(e=this.currentTable),!e||!e.rows||!e.rows.length)return{error:{code:500,message:"Not a valid table."}};if(!e.id&&!a.serializeParamName)return{error:{code:500,message:"No serializable unique id provided."}};o=a.autoCleanRelations&&e.rows||t.makeArray(e.rows),r=a.serializeParamName||e.id,i=r,n=function(e){return e&&a&&a.serializeRegexp?e.match(a.serializeRegexp)[0]:e},d[i]=[],!a.autoCleanRelations&&t(o[0]).data("level")&&o.unshift({id:"undefined"});for(var f=0;fs)l.push([i,s]),i=n(o[f-1].id);else if(u=s&&(l[h][1]=0);s=u,t.isArray(d[i])||(d[i]=[]),(c=n(o[f].id))&&d[i].push(c)}else(c=n(o[f].id))&&d[i].push(c);return d}},e.fn.extend({tableDnD:t.tableDnD.build,tableDnDUpdate:t.tableDnD.updateTables,tableDnDSerialize:t.proxy(t.tableDnD.serialize,t.tableDnD),tableDnDSerializeAll:t.tableDnD.serializeTables,tableDnDData:t.proxy(t.tableDnD.tableData,t.tableDnD)})}(e,window,window.document)}).call(t,n(4))},8:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0?t._enableBulkActionsBtn(e):t._disableBulkActionsBtn(e)})}},{key:"_enableBulkActionsBtn",value:function(e){e.getContainer().find(".js-bulk-actions-btn").prop("disabled",!1)}},{key:"_disableBulkActionsBtn",value:function(e){e.getContainer().find(".js-bulk-actions-btn").prop("disabled",!0)}}]),e}();t.default=a}});