Files
bio-concept-pharma/web/admin516uevaoi/themes/new-theme/public/webservice.bundle.js
2019-11-17 19:14:07 +01:00

27 lines
11 KiB
JavaScript

/******/!function(n){function t(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return n[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}// webpackBootstrap
/******/
var e={};t.m=n,t.c=e,t.i=function(n){return n},t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:o})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=420)}({10:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),i=window.$,a=function(){function n(){o(this,n)}return r(n,[{key:"extend",value:function(n){this._handleBulkActionCheckboxSelect(n),this._handleBulkActionSelectAllCheckbox(n)}},{key:"_handleBulkActionSelectAllCheckbox",value:function(n){var t=this;n.getContainer().on("change",".js-bulk-action-select-all",function(e){var o=i(e.currentTarget),r=o.is(":checked");r?t._enableBulkActionsBtn(n):t._disableBulkActionsBtn(n),n.getContainer().find(".js-bulk-action-checkbox").prop("checked",r)})}},{key:"_handleBulkActionCheckboxSelect",value:function(n){var t=this;n.getContainer().on("change",".js-bulk-action-checkbox",function(){n.getContainer().find(".js-bulk-action-checkbox:checked").length>0?t._enableBulkActionsBtn(n):t._disableBulkActionsBtn(n)})}},{key:"_enableBulkActionsBtn",value:function(n){n.getContainer().find(".js-bulk-actions-btn").prop("disabled",!1)}},{key:"_disableBulkActionsBtn",value:function(n){n.getContainer().find(".js-bulk-actions-btn").prop("disabled",!0)}}]),n}();t.a=a},11:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),i=window.$,a=function(){function n(){o(this,n)}return r(n,[{key:"extend",value:function(n){var t=this;n.getContainer().on("click",".js-common_show_query-grid-action",function(){return t._onShowSqlQueryClick(n)}),n.getContainer().on("click",".js-common_export_sql_manager-grid-action",function(){return t._onExportSqlManagerClick(n)})}},{key:"_onShowSqlQueryClick",value:function(n){var t=i("#"+n.getId()+"_common_show_query_modal_form");this._fillExportForm(t,n);var e=i("#"+n.getId()+"_grid_common_show_query_modal");e.modal("show"),e.on("click",".btn-sql-submit",function(){return t.submit()})}},{key:"_onExportSqlManagerClick",value:function(n){var t=i("#"+n.getId()+"_common_show_query_modal_form");this._fillExportForm(t,n),t.submit()}},{key:"_fillExportForm",value:function(n,t){var e=t.getContainer().find(".js-grid-table").data("query");n.find('textarea[name="sql"]').val(e),n.find('input[name="name"]').val(this._getNameFromBreadcrumb())}},{key:"_getNameFromBreadcrumb",value:function(){var n=i(".header-toolbar").find(".breadcrumb-item"),t="";return n.each(function(n,e){var o=i(e),r=0<o.find("a").length?o.find("a").text():o.text();0<t.length&&(t=t.concat(" > ")),t=t.concat(r)}),t}}]),n}();t.a=a},12:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=e(9),i=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),a=window.$,u=function(){function n(){o(this,n)}return i(n,[{key:"extend",value:function(n){n.getContainer().on("click",".js-reset-search",function(n){e.i(r.a)(a(n.currentTarget).data("url"),a(n.currentTarget).data("redirect"))})}}]),n}();t.a=u},13:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),i=function(){function n(){o(this,n)}return r(n,[{key:"extend",value:function(n){n.getContainer().on("click",".js-common_refresh_list-grid-action",function(){location.reload()})}}]),n}();t.a=i},14:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=e(7),i=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),a=function(){function n(){o(this,n)}return i(n,[{key:"extend",value:function(n){var t=n.getContainer().find("table.table");new r.a(t).attach()}}]),n}();t.a=a},15:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),i=window.$,a=function(){function n(){var t=this;return o(this,n),{extend:function(n){return t.extend(n)}}}return r(n,[{key:"extend",value:function(n){var t=this;n.getContainer().on("click",".js-bulk-action-submit-btn",function(e){t.submit(e,n)})}},{key:"submit",value:function(n,t){var e=i(n.currentTarget),o=e.data("confirm-message");if(!(void 0!==o&&0<o.length)||confirm(o)){var r=i("#"+t.getId()+"_filter_form");r.attr("action",e.data("form-url")),r.attr("method",e.data("form-method")),r.submit()}}}]),n}();t.a=a},2:function(n,t){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(e=window)}n.exports=e},208:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e(8),r=e(12),i=e(13),a=e(11),u=e(10),c=e(15),l=e(14),f=e(23),s=e(233);(0,window.$)(function(){var n=new o.a("webservice_key");n.addExtension(new i.a),n.addExtension(new a.a),n.addExtension(new r.a),n.addExtension(new s.a),n.addExtension(new l.a),n.addExtension(new c.a),n.addExtension(new f.a),n.addExtension(new u.a)})},23:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),i=window.$,a=function(){function n(){o(this,n)}return r(n,[{key:"extend",value:function(n){n.getContainer().on("click",".js-submit-row-action",function(n){n.preventDefault();var t=i(n.currentTarget),e=t.data("confirm-message");if(!e.length||confirm(e)){var o=t.data("method"),r=["GET","POST"].includes(o),a=i("<form>",{action:t.data("url"),method:r?o:"POST"}).appendTo("body");r||a.append(i("<input>",{type:"_hidden",name:"_method",value:o})),a.submit()}})}}]),n}();t.a=a},233:function(n,t,e){"use strict";(function(n){function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),r=n.$,i=function(){function n(){e(this,n)}return o(n,[{key:"extend",value:function(n){var t=this;n.getContainer().find("table.table").find(".ps-togglable-row").on("click",function(n){n.preventDefault(),t._toggleValue(r(n.delegateTarget))})}},{key:"_toggleValue",value:function(n){var t=n.data("toggleUrl");this._submitAsForm(t)}},{key:"_submitAsForm",value:function(n){r("<form>",{action:n,method:"POST"}).appendTo("body").submit()}}]),n}();t.a=i}).call(t,e(2))},420:function(n,t,e){n.exports=e(208)},7:function(n,t,e){"use strict";(function(n){function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),r=n.$,i=function(){function n(t){e(this,n),this.selector=".ps-sortable-column",this.columns=r(t).find(this.selector)}return o(n,[{key:"attach",value:function(){var n=this;this.columns.on("click",function(t){var e=r(t.delegateTarget);n._sortByColumn(e,n._getToggledSortDirection(e))})}},{key:"sortBy",value:function(n,t){var e=this.columns.is('[data-sort-col-name="'+n+'"]');if(!e)throw new Error('Cannot sort by "'+n+'": invalid column');this._sortByColumn(e,t)}},{key:"_sortByColumn",value:function(n,t){window.location=this._getUrl(n.data("sortColName"),"desc"===t?"desc":"asc")}},{key:"_getToggledSortDirection",value:function(n){return"asc"===n.data("sortDirection")?"desc":"asc"}},{key:"_getUrl",value:function(n,t){var e=new URL(window.location.href),o=e.searchParams;return o.set("orderBy",n),o.set("sortOrder",t),e.toString()}}]),n}();t.a=i}).call(t,e(2))},8:function(n,t,e){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function n(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}}(),i=window.$,a=function(){function n(t){o(this,n),this.id=t,this.$container=i("#"+this.id+"_grid")}return r(n,[{key:"getId",value:function(){return this.id}},{key:"getContainer",value:function(){return this.$container}},{key:"addExtension",value:function(n){n.extend(this)}}]),n}();t.a=a},9:function(n,t,e){"use strict";(function(n){/**
* 2007-2018 PrestaShop
*
* 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 http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
var e=n.$,o=function(n,t){e.post(n).then(function(){return window.location.assign(t)})};t.a=o}).call(t,e(2))}});