Files
b2b.redline.com.pl/admin086k8e6t9/themes/new-theme/public/monitoring.bundle.js
2025-06-24 14:14:35 +02:00

49 lines
17 KiB
JavaScript

window.monitoring=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=506)}({0:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},1:function(t,e,n){"use strict";e.__esModule=!0;var r=n(19),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},10:function(t,e,n){var r=n(6),o=n(12);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},11:function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},12:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},13:function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},15:function(t,e,n){var r=n(18);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},16:function(t,e,n){var r=n(4),o=n(5).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},17:function(t,e,n){t.exports=!n(2)&&!n(7)(function(){return 7!=Object.defineProperty(n(16)("div"),"a",{get:function(){return 7}}).a})},18:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},187:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(){var e=this;return(0,i.default)(this,t),{extend:function(t){return e.extend(t)}}}return(0,a.default)(t,[{key:"extend",value:function(t){t.getContainer().on("click",".js-delete-category-row-action",function(e){e.preventDefault();var n=c("#"+t.getId()+"_grid_delete_categories_modal");n.modal("show"),n.on("click",".js-submit-delete-categories",function(){var t=c(e.currentTarget),r=t.data("category-id"),o=c("#delete_categories_categories_to_delete"),i=o.data("prototype").replace(/__name__/g,o.children().length),u=c(c.parseHTML(i)[0]);u.val(r),o.append(u);var a=n.find("form");a.attr("action",t.data("category-delete-url")),a.submit()})})}}]),t}();e.default=f},188:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(){var e=this;return(0,i.default)(this,t),{extend:function(t){return e.extend(t)}}}return(0,a.default)(t,[{key:"extend",value:function(t){var e=this;t.getContainer().find(".js-grid-table").on("click",".ps-togglable-row",function(t){t.preventDefault();var n=c(t.currentTarget);c.post({url:n.data("toggle-url")}).then(function(t){if(t.status)return showSuccessMessage(t.message),void e._toggleButtonDisplay(n);showErrorMessage(t.message)}).catch(function(t){var e=t.responseJSON;showErrorMessage(e.message)})})}},{key:"_toggleButtonDisplay",value:function(t){var e=t.hasClass("grid-toggler-icon-valid"),n=e?"grid-toggler-icon-not-valid":"grid-toggler-icon-valid",r=e?"grid-toggler-icon-valid":"grid-toggler-icon-not-valid",o=e?"clear":"check";t.removeClass(r),t.addClass(n),t.text(o)}}]),t}();e.default=f},19:function(t,e,n){t.exports={default:n(20),__esModule:!0}},2:function(t,e,n){t.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},20:function(t,e,n){n(21);var r=n(3).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},21:function(t,e,n){var r=n(8);r(r.S+r.F*!n(2),"Object",{defineProperty:n(6).f})},23:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(e){(0,i.default)(this,t),this.id=e,this.$container=c("#"+this.id+"_grid")}return(0,a.default)(t,[{key:"getId",value:function(){return this.id}},{key:"getContainer",value:function(){return this.$container}},{key:"getHeaderContainer",value:function(){return this.$container.closest(".js-grid-panel").find(".js-grid-header")}},{key:"addExtension",value:function(t){t.extend(this)}}]),t}();e.default=f},24:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=n(42),f=r(c),d=window.$,l=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){t.getContainer().on("click",".js-reset-search",function(t){(0,f.default)(d(t.currentTarget).data("url"),d(t.currentTarget).data("redirect"))})}}]),t}();e.default=l},25:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=n(40),f=r(c),d=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){var e=t.getContainer().find("table.table");new f.default(e).attach()}}]),t}();/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* 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.md.
* 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://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
e.default=d},26:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){t.getHeaderContainer().on("click",".js-common_refresh_list-grid-action",function(){location.reload()})}}]),t}();e.default=c},28:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){var e=this;t.getHeaderContainer().on("click",".js-common_show_query-grid-action",function(){return e._onShowSqlQueryClick(t)}),t.getHeaderContainer().on("click",".js-common_export_sql_manager-grid-action",function(){return e._onExportSqlManagerClick(t)})}},{key:"_onShowSqlQueryClick",value:function(t){var e=c("#"+t.getId()+"_common_show_query_modal_form");this._fillExportForm(e,t);var n=c("#"+t.getId()+"_grid_common_show_query_modal");n.modal("show"),n.on("click",".btn-sql-submit",function(){return e.submit()})}},{key:"_onExportSqlManagerClick",value:function(t){var e=c("#"+t.getId()+"_common_show_query_modal_form");this._fillExportForm(e,t),e.submit()}},{key:"_fillExportForm",value:function(t,e){var n=e.getContainer().find(".js-grid-table").data("query");t.find('textarea[name="sql"]').val(n),t.find('input[name="name"]').val(this._getNameFromBreadcrumb())}},{key:"_getNameFromBreadcrumb",value:function(){var t=c(".header-toolbar").find(".breadcrumb-item"),e="";return t.each(function(t,n){var r=c(n),o=0<r.find("a").length?r.find("a").text():r.text();0<e.length&&(e=e.concat(" > ")),e=e.concat(o)}),e}}]),t}();e.default=f},3:function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},30:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){var e=t.getContainer().find(".column-filters");e.find(".grid-search-button").prop("disabled",!0),e.find("input:not(.js-bulk-action-select-all), select").on("input dp.change",function(){e.find(".grid-search-button").prop("disabled",!1),e.find(".js-grid-reset-button").prop("hidden",!1)})}}]),t}();e.default=c},33:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){this.initRowLinks(t),this.initConfirmableActions(t)}},{key:"initConfirmableActions",value:function(t){t.getContainer().on("click",".js-link-row-action",function(t){var e=c(t.currentTarget).data("confirm-message");e.length&&!confirm(e)&&t.preventDefault()})}},{key:"initRowLinks",value:function(t){c("tr",t.getContainer()).each(function(){var t=c(this);c(".js-link-row-action[data-clickable-row=1]:first",t).each(function(){var e=c(this),n=e.closest("td");c("td.clickable",t).not(n).addClass("cursor-pointer").click(function(){var t=e.data("confirm-message");t.length&&!confirm(t)||(document.location=e.attr("href"))})})})}}]),t}();e.default=f},35:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){t.getContainer().on("click",".js-submit-row-action",function(t){t.preventDefault();var e=c(t.currentTarget),n=e.data("confirm-message");if(!n.length||confirm(n)){var r=e.data("method"),o=["GET","POST"].includes(r),i=c("<form>",{action:e.data("url"),method:o?r:"POST"}).appendTo("body");o||i.append(c("<input>",{type:"_hidden",name:"_method",value:r})),i.submit()}})}}]),t}();e.default=f},4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},40:function(t,e,n){"use strict";(function(t){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=t.$,f=function(){function t(e){(0,i.default)(this,t),this.selector=".ps-sortable-column",this.columns=c(e).find(this.selector)}return(0,a.default)(t,[{key:"attach",value:function(){var t=this;this.columns.on("click",function(e){var n=c(e.delegateTarget);t._sortByColumn(n,t._getToggledSortDirection(n))})}},{key:"sortBy",value:function(t,e){var n=this.columns.is('[data-sort-col-name="'+t+'"]');if(!n)throw new Error('Cannot sort by "'+t+'": invalid column');this._sortByColumn(n,e)}},{key:"_sortByColumn",value:function(t,e){window.location=this._getUrl(t.data("sortColName"),"desc"===e?"desc":"asc",t.data("sortPrefix"))}},{key:"_getToggledSortDirection",value:function(t){return"asc"===t.data("sortDirection")?"desc":"asc"}},{key:"_getUrl",value:function(t,e,n){var r=new URL(window.location.href),o=r.searchParams;return n?(o.set(n+"[orderBy]",t),o.set(n+"[sortOrder]",e)):(o.set("orderBy",t),o.set("sortOrder",e)),r.toString()}}]),t}();e.default=f}).call(e,n(9))},42:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* 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.md.
* 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://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
var n=t.$,r=function(t,e){n.post(t).then(function(){return window.location.assign(e)})};e.default=r}).call(e,n(9))},5:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},506:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(23),i=r(o),u=n(24),a=r(u),c=n(25),f=r(c),d=n(35),l=r(d),s=n(33),_=r(s),v=n(187),p=r(v),g=n(188),h=r(g),y=n(30),w=r(y),m=n(26),b=r(m),x=n(28),k=r(x),M=n(78),j=r(M),E=n(77),C=r(E);(0,window.$)(function(){var t=new i.default("empty_category");t.addExtension(new a.default),t.addExtension(new f.default),t.addExtension(new b.default),t.addExtension(new l.default),t.addExtension(new _.default),t.addExtension(new h.default),t.addExtension(new p.default),t.addExtension(new w.default),["no_qty_product_with_combination","no_qty_product_without_combination","disabled_product","product_without_image","product_without_description","product_without_price"].forEach(function(t){var e=new i.default(t);e.addExtension(new f.default),e.addExtension(new k.default),e.addExtension(new b.default),e.addExtension(new a.default),e.addExtension(new h.default),e.addExtension(new _.default),e.addExtension(new w.default)}),new j.default("monitoringShowcaseCard").addExtension(new C.default)})},6:function(t,e,n){var r=n(11),o=n(17),i=n(13),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},77:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(){(0,i.default)(this,t)}return(0,a.default)(t,[{key:"extend",value:function(t){var e=t.getContainer();e.on("click",".js-remove-helper-block",function(t){e.remove();var n=c(t.target),r=n.data("closeUrl"),o=n.data("cardName");r&&c.post(r,{close:1,name:o})})}}]),t}();e.default=f},78:function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),u=n(1),a=r(u),c=window.$,f=function(){function t(e){(0,i.default)(this,t),this.id=e,this.$container=c("#"+this.id)}return(0,a.default)(t,[{key:"getContainer",value:function(){return this.$container}},{key:"addExtension",value:function(t){t.extend(this)}}]),t}();e.default=f},8:function(t,e,n){var r=n(5),o=n(3),i=n(15),u=n(10),a=function(t,e,n){var c,f,d,l=t&a.F,s=t&a.G,_=t&a.S,v=t&a.P,p=t&a.B,g=t&a.W,h=s?o:o[e]||(o[e]={}),y=h.prototype,w=s?r:_?r[e]:(r[e]||{}).prototype;s&&(n=e);for(c in n)(f=!l&&w&&void 0!==w[c])&&c in h||(d=f?w[c]:n[c],h[c]=s&&"function"!=typeof w[c]?n[c]:p&&f?i(d,r):g&&w[c]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):v&&"function"==typeof d?i(Function.call,d):d,v&&((h.virtual||(h.virtual={}))[c]=d,t&a.R&&y&&!y[c]&&u(y,c,d)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},9:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}});