(()=>{var t={57208:t=>{"use strict";t.exports=JSON.parse('{"base_url":"","routes":{"admin_common_notifications":{"tokens":[["text","/common/notifications"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_product_form":{"tokens":[["variable","/","\\\\d+","id"],["text","/sell/catalog/products"]],"defaults":[],"requirements":{"id":"\\\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_feature_get_feature_values":{"tokens":[["variable","/","\\\\d+","idFeature"],["text","/sell/catalog/products/features"]],"defaults":{"idFeature":0},"requirements":{"idFeature":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations":{"tokens":[["text","/combinations"],["variable","/","[^/]++","productId"],["text","/sell/catalog/products-v2"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations_ids":{"tokens":[["text","/combinations/ids"],["variable","/","[^/]++","productId"],["text","/sell/catalog/products-v2"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations_update_combination_from_listing":{"tokens":[["text","/update-combination-from-listing"],["variable","/","\\\\d+","combinationId"],["text","/sell/catalog/products-v2/combinations"]],"defaults":[],"requirements":{"combinationId":"\\\\d+"},"hosttokens":[],"methods":["PATCH"],"schemes":[]},"admin_products_combinations_edit_combination":{"tokens":[["text","/edit"],["variable","/","\\\\d+","combinationId"],["text","/sell/catalog/products-v2/combinations"]],"defaults":[],"requirements":{"combinationId":"\\\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_products_combinations_remove_combination":{"tokens":[["text","/remove"],["variable","/","\\\\d+","combinationId"],["text","/sell/catalog/products-v2/combinations"]],"defaults":[],"requirements":{"combinationId":"\\\\d+"},"hosttokens":[],"methods":["DELETE"],"schemes":[]},"admin_products_attribute_groups":{"tokens":[["text","/attribute-groups"],["variable","/","[^/]++","productId"],["text","/sell/catalog/products-v2"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_all_attribute_groups":{"tokens":[["text","/sell/catalog/products-v2/all-attribute-groups"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_combinations_generate":{"tokens":[["variable","/","[^/]++","productId"],["text","/sell/catalog/products-v2/generate-combinations"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_v2_get_images":{"tokens":[["text","/images"],["variable","/","\\\\d+","productId"],["text","/sell/catalog/products-v2"]],"defaults":[],"requirements":{"productId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_products_v2_add_image":{"tokens":[["text","/sell/catalog/products-v2/images/add"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_products_v2_update_image":{"tokens":[["text","/update"],["variable","/","\\\\d+","productImageId"],["text","/sell/catalog/products-v2/images"]],"defaults":[],"requirements":{"productImageId":"\\\\d+"},"hosttokens":[],"methods":["PATCH"],"schemes":[]},"admin_products_v2_delete_image":{"tokens":[["text","/delete"],["variable","/","\\\\d+","productImageId"],["text","/sell/catalog/products-v2/images"]],"defaults":[],"requirements":{"productImageId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_categories_get_categories_tree":{"tokens":[["text","/sell/catalog/categories/tree"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_cart_rules_search":{"tokens":[["text","/sell/catalog/cart-rules/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_customers_view":{"tokens":[["text","/view"],["variable","/","\\\\d+","customerId"],["text","/sell/customers"]],"defaults":[],"requirements":{"customerId":"\\\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_customers_search":{"tokens":[["text","/sell/customers/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_customers_carts":{"tokens":[["text","/carts"],["variable","/","\\\\d+","customerId"],["text","/sell/customers"]],"defaults":[],"requirements":{"customerId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_customers_orders":{"tokens":[["text","/orders"],["variable","/","\\\\d+","customerId"],["text","/sell/customers"]],"defaults":[],"requirements":{"customerId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_addresses_create":{"tokens":[["text","/sell/addresses/new"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_addresses_edit":{"tokens":[["text","/edit"],["variable","/","\\\\d+","addressId"],["text","/sell/addresses"]],"defaults":[],"requirements":{"addressId":"\\\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_order_addresses_edit":{"tokens":[["text","/edit"],["variable","/","delivery|invoice","addressType"],["variable","/","\\\\d+","orderId"],["text","/sell/addresses/order"]],"defaults":[],"requirements":{"orderId":"\\\\d+","addressType":"delivery|invoice"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_cart_addresses_edit":{"tokens":[["text","/edit"],["variable","/","delivery|invoice","addressType"],["variable","/","\\\\d+","cartId"],["text","/sell/addresses/cart"]],"defaults":[],"requirements":{"cartId":"\\\\d+","addressType":"delivery|invoice"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_carts_view":{"tokens":[["text","/view"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_carts_info":{"tokens":[["text","/info"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_carts_create":{"tokens":[["text","/sell/orders/carts/new"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_addresses":{"tokens":[["text","/addresses"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_carrier":{"tokens":[["text","/carrier"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_currency":{"tokens":[["text","/currency"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_language":{"tokens":[["text","/language"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_set_delivery_settings":{"tokens":[["text","/rules/delivery-settings"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_add_cart_rule":{"tokens":[["text","/cart-rules"],["variable","/","[^/]++","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_delete_cart_rule":{"tokens":[["text","/delete"],["variable","/","[^/]++","cartRuleId"],["text","/cart-rules"],["variable","/","[^/]++","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_add_product":{"tokens":[["text","/products"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_product_price":{"tokens":[["text","/price"],["variable","/","\\\\d+","productId"],["text","/products"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+","productId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_edit_product_quantity":{"tokens":[["text","/quantity"],["variable","/","\\\\d+","productId"],["text","/products"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+","productId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_carts_delete_product":{"tokens":[["text","/delete-product"],["variable","/","\\\\d+","cartId"],["text","/sell/orders/carts"]],"defaults":[],"requirements":{"cartId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_place":{"tokens":[["text","/sell/orders/place"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_view":{"tokens":[["text","/view"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET","POST"],"schemes":[]},"admin_orders_duplicate_cart":{"tokens":[["text","/duplicate-cart"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_update_product":{"tokens":[["variable","/","\\\\d+","orderDetailId"],["text","/products"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+","orderDetailId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_partial_refund":{"tokens":[["text","/partial-refund"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_standard_refund":{"tokens":[["text","/standard-refund"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_return_product":{"tokens":[["text","/return-product"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_send_process_order_email":{"tokens":[["text","/sell/orders/process-order-email"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_add_product":{"tokens":[["text","/products"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_delete_product":{"tokens":[["text","/delete"],["variable","/","\\\\d+","orderDetailId"],["text","/products"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+","orderDetailId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_get_discounts":{"tokens":[["text","/discounts"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_prices":{"tokens":[["text","/prices"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_payments":{"tokens":[["text","/payments"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_products":{"tokens":[["text","/products"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_invoices":{"tokens":[["text","/invoices"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_documents":{"tokens":[["text","/documents"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_get_shipping":{"tokens":[["text","/shipping"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_cancellation":{"tokens":[["text","/cancellation"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_configure_product_pagination":{"tokens":[["text","/sell/orders/configure-product-pagination"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["POST"],"schemes":[]},"admin_orders_product_prices":{"tokens":[["text","/products/prices"],["variable","/","\\\\d+","orderId"],["text","/sell/orders"]],"defaults":[],"requirements":{"orderId":"\\\\d+"},"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_orders_products_search":{"tokens":[["text","/sell/orders/products/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]},"admin_shops_search":{"tokens":[["variable","/","[^/]++","searchTerm"],["text","/configure/advanced/shops/search"]],"defaults":[],"requirements":[],"hosttokens":[],"methods":["GET"],"schemes":[]}},"prefix":"","host":"localhost","port":"","scheme":"http","locale":""}')},50066:(t,e)=>{"use strict";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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ var n=e.showGrowl=function(t,e,n){var r=void 0!==n?n:2e3;"success"===t?window.$.growl({title:"",size:"large",message:e,duration:r}):window.$.growl[t]({title:"",size:"large",message:e,duration:r})};e.default=n},43284:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(99663)),i=l(n(22600)),o=l(n(72100)),a=n(76544),s=l(n(25121));function l(t){return t&&t.__esModule?t:{default:t}}var c=window.$,u=function(){function t(e,n){if((0,r.default)(this,t),0!==c(e.container).length){if(this.originalUrl=n,this.useMultiLang=void 0!==e.multiLanguageInput||void 0!==e.multiLanguageField,this.useMultiLang){var i=[];e.multiLanguageInput&&i.push(e.multiLanguageInput),e.multiLanguageField&&i.push(e.multiLanguageField),this.multiLangSelector=i.join(","),this.attachMultiLangEvents()}this.data={url:n,title:"",description:""},this.vm=new o.default({el:e.container,template:'',components:{serp:s.default},data:this.data}),this.initializeSelectors(e),this.attachInputEvents()}}return(0,i.default)(t,[{key:"attachMultiLangEvents",value:function(t){var e=this;c("body").on("click",t,(function(){e.checkTitle(),e.checkDesc(),e.checkUrl()})),a.EventEmitter.on("languageSelected",(function(){e.checkTitle(),e.checkDesc(),e.checkUrl()}))}},{key:"initializeSelectors",value:function(t){this.defaultTitle=c(t.defaultTitle),this.watchedTitle=c(t.watchedTitle),this.defaultDescription=c(t.defaultDescription),this.watchedDescription=c(t.watchedDescription),this.watchedMetaUrl=c(t.watchedMetaUrl)}},{key:"attachInputEvents",value:function(){var t=this;c(this.defaultTitle).on("keyup change",(function(){return t.checkTitle()})),c(this.watchedTitle).on("keyup change",(function(){return t.checkTitle()})),c(this.defaultDescription).on("keyup change",(function(){return t.checkDesc()})),c(this.watchedDescription).on("keyup change",(function(){return t.checkDesc()})),this.watchedMetaUrl.on("keyup change",(function(){return t.checkUrl()})),this.checkTitle(),this.checkDesc(),this.checkUrl()}},{key:"setTitle",value:function(t){this.data.title=t}},{key:"setDescription",value:function(t){this.data.description=t}},{key:"setUrl",value:function(t){this.data.url=this.originalUrl.replace("{friendy-url}",t),this.data.url=this.data.url.replace("{friendly-url}",t)}},{key:"checkTitle",value:function(){var t=this.defaultTitle,e=this.watchedTitle;this.useMultiLang&&(e=e.closest(this.multiLangSelector).find("input"),t=t.closest(this.multiLangSelector).find("input"));var n=e.length?e.val():"",r=t.length?t.val():"";this.setTitle(""===n?r:n),this.checkUrl()}},{key:"checkDesc",value:function(){var t=this.watchedDescription,e=this.defaultDescription;this.useMultiLang&&(t=t.closest(this.multiLangSelector).find(this.watchedDescription.is("input")?"input":"textarea"),e=e.closest(this.multiLangSelector).find(this.defaultDescription.is("input")?"input":"textarea"));var n=t.length?t.val().innerText||t.val():"",r=e.length?c(e.val()).text()||e.val():"";this.setDescription(""===n?r:n)}},{key:"checkUrl",value:function(){var t=this.watchedMetaUrl;this.useMultiLang&&(t=t.closest(this.multiLangSelector).find("input")),this.setUrl(t.val())}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=u},73481:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(88239)),i=a(n(99663)),o=a(n(22600));function a(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var s=function(){function t(e,n){var o=this;(0,i.default)(this,t),this.$searchInput=e,this.searchInputId=this.$searchInput.prop("id");var a=n||{};this.config=(0,r.default)({minLength:2,highlight:!0,cache:!1,hint:!1},a),this.dataSetConfig=(0,r.default)({display:"name",value:"id",limit:20,dataLimit:0,onSelect:function(t,e){return!0},onClose:function(t){}},a);var s={suggestion:function(t){var e=t;return"function"==typeof o.dataSetConfig.display?o.dataSetConfig.display(t):Object.prototype.hasOwnProperty.call(t,o.dataSetConfig.display)&&(e=t[o.dataSetConfig.display]),'
'+e+"
"},pending:function(t){return'
Searching for "'+t.query+'"
'},notFound:function(t){return'
No results found for "'+t.query+'"
'}};Object.prototype.hasOwnProperty.call(a,"templates")?this.dataSetConfig.templates=(0,r.default)({},s,a.templates):this.dataSetConfig.templates=s,this.buildTypeahead()}return(0,o.default)(t,[{key:"buildTypeahead",value:function(){var t=this;this.$searchInput.typeahead(this.config,this.dataSetConfig).bind("typeahead:select",(function(e,n){return t.config.onSelect(n,e,t.$searchInput)})).bind("typeahead:close",(function(e){t.config.onClose(e,t.$searchInput)}))}}]),t}();e.default=s},62893:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.letters=void 0;var r=o(n(96486)),i=o(n(53943));function o(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var a,s=e.letters=function(t){var e=i.default.tokenizers.nonword(t);return e.forEach((function(t){for(var n=0;n+11?e-1:0),i=1;i{"use strict";var r=n(73609);Object.defineProperty(e,"__esModule",{value:!0});var i=c(n(88239)),o=c(n(99663)),a=c(n(22600)),s=c(n(73481)),l=c(n(53943));function c(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var u=function(){function t(e,n){(0,o.default)(this,t),this.$entitySearchInput=e,this.entitySearchInputId=this.$entitySearchInput.prop("id"),this.$autoCompleteSearchContainer=this.$entitySearchInput.closest(".autocomplete-search"),this.$selectionContainer=r("#"+this.entitySearchInputId+"-data"),this.searchInputFullName=this.$autoCompleteSearchContainer.data("fullname");var a=n||{};this.options=(0,i.default)({value:"id",dataLimit:1},a),this.buildRemoteSource(),this.buildAutoCompleteSearch()}return(0,a.default)(t,[{key:"setRemoteUrl",value:function(t){this.entityRemoteSource.remote.url=t}},{key:"setValue",value:function(t){var e=this;this.clearSelectedItems(),!t||t.length<=0||t.each((function(t){e.appendSelectedItem(t)}))}},{key:"buildAutoCompleteSearch",value:function(){var t=this,e={source:this.entityRemoteSource,dataLimit:this.options.dataLimit,templates:{suggestion:function(t){var e=void 0;return Object.prototype.hasOwnProperty.call(t,"image")&&(e=' '),'
'+e+t.name+"
"}},onClose:function(e){t.onSelectionClose(e)},onSelect:function(e,n){return 1===t.options.dataLimit?t.replaceSelectedItem(e):t.appendSelectedItem(e)}};void 0!==this.options.value&&(e.value=this.options.value),this.autoSearch=new s.default(this.$entitySearchInput,e)}},{key:"buildRemoteSource",value:function(){var t={mappingValue:this.$autoCompleteSearchContainer.data("mappingvalue"),remoteUrl:this.$autoCompleteSearchContainer.data("remoteurl")};this.entityRemoteSource=new l.default({datumTokenizer:l.default.tokenizers.whitespace,queryTokenizer:l.default.tokenizers.whitespace,identify:function(e){return e[t.mappingValue]},remote:{url:t.remoteUrl,cache:!1,wildcard:"__QUERY__",transform:function(t){return t||[]}}})}},{key:"onSelectionClose",value:function(t){r(t.target).val("")}},{key:"clearSelectedItems",value:function(){r("li",this.$selectionContainer).remove()}},{key:"replaceSelectedItem",value:function(t){return this.clearSelectedItems(),this.addSelectedContentToContainer(t),!0}},{key:"appendSelectedItem",value:function(t){var e=r("li",this.$selectionContainer);return!(0!==this.options.dataLimit&&e.length>=this.options.dataLimit)&&(this.addSelectedContentToContainer(t),!0)}},{key:"addSelectedContentToContainer",value:function(t){var e=void 0;e="function"==typeof this.options.value?this.options.value(t):t[this.options.value];var n=this.renderSelected(t),i=r(n),o=r('');i.append(o),this.$selectionContainer.append(i),o.trigger("change")}},{key:"renderSelected",value:function(t){var e=r("#tplcollection-"+this.entitySearchInputId).html().replace("%s",t.name);return'
  • \n
    \n \n
    \n
    \n '+e+"\n
    \n
  • "}}]),t}();e.default=u},76544:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventEmitter=void 0;var r,i=n(17187),o=(r=i)&&r.__esModule?r:{default:r};var a=e.EventEmitter=new o.default; /** * 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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=a},79979:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(88902)),i=s(n(99663)),o=s(n(22600)),a=s(n(96486));function s(t){return t&&t.__esModule?t:{default:t}}var l=window.$,c=function(){function t(e,n,r,o){var a=this;(0,i.default)(this,t),this.$form=e,this.fullModelMapping=n,this.eventEmitter=r;var s=o||{};return this.updateModelEventName=s.updateModel||"updateModel",this.modelUpdatedEventName=s.modelUpdated||"modelUpdated",this.modelFieldUpdatedEventName=s.modelFieldUpdated||"modelFieldUpdated",this.watchedProperties={},this.initFormMapping(),this.updateFullObject(),this.watchUpdates(),{getModel:function(){return a.model},getInputsFor:function(t){if(Object.prototype.hasOwnProperty.call(a.fullModelMapping,t)){var e=a.fullModelMapping[t],n=[],r=a.$form.get(0);return e.forEach((function(t){var e=r.querySelectorAll('[name="'+t+'"]');e.length&&e.forEach((function(t){n.push(t)}))})),n.length?l(n):void 0}},set:function(t,e){Object.prototype.hasOwnProperty.call(a.modelMapping,t)&&e!==a.getValue(t)&&(a.updateInputValue(t,e),a.updateObjectByKey(t,e),a.eventEmitter.emit(a.modelUpdatedEventName,a.model))},watch:function(t,e){Object.prototype.hasOwnProperty.call(a.watchedProperties,t)||(a.watchedProperties[t]=[]),a.watchedProperties[t].push(e)}}}return(0,o.default)(t,[{key:"getValue",value:function(t){var e=t.split(".");return l.serializeJSON.deepGet(this.model,e)}},{key:"watchUpdates",value:function(){var t=this;this.$form.on("keyup change dp.change",":input",a.default.debounce((function(e){return t.inputUpdated(e)}),350,{maxWait:1500})),this.eventEmitter.on(this.updateModelEventName,(function(){return t.updateFullObject()}))}},{key:"inputUpdated",value:function(t){var e=t.currentTarget;if(Object.prototype.hasOwnProperty.call(this.formMapping,e.name)){var n=l(e).val(),r=this.formMapping[e.name];this.updateInputValue(r,n,e.name),this.updateObjectByKey(r,n),this.eventEmitter.emit(this.modelUpdatedEventName,this.model)}}},{key:"updateInputValue",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.fullModelMapping[t];Array.isArray(i)?i.forEach((function(t){r!==t&&n.updateInputByName(t,e)})):r!==i&&this.updateInputByName(i,e)}},{key:"updateInputByName",value:function(t,e){var n=l('[name="'+t+'"]',this.$form);n.length?n.val()!=e&&(n.val(e),"select2"===n.data("toggle")&&n.trigger("change")):console.error("Input with name "+t+" is not present in form.")}},{key:"updateFullObject",value:function(){var t=this,e=this.$form.serializeJSON();this.model={},(0,r.default)(this.modelMapping).forEach((function(n){var r=t.modelMapping[n],i=l.serializeJSON.splitInputNameIntoKeysArray(r),o=l.serializeJSON.deepGet(e,i);t.updateObjectByKey(n,o)})),this.eventEmitter.emit(this.modelUpdatedEventName,this.model)}},{key:"updateObjectByKey",value:function(t,e){var n=t.split("."),r=l.serializeJSON.deepGet(this.model,n);if(r!==e){l.serializeJSON.deepSet(this.model,n,e);var i={object:this.model,modelKey:t,value:e,previousValue:r};if(this.eventEmitter.emit(this.modelFieldUpdatedEventName,i),Object.prototype.hasOwnProperty.call(this.watchedProperties,t))this.watchedProperties[t].forEach((function(t){t(i)}))}}},{key:"initFormMapping",value:function(){var t=this;this.modelMapping={},this.formMapping={},(0,r.default)(this.fullModelMapping).forEach((function(e){var n=t.fullModelMapping[e];Array.isArray(n)?n.forEach((function(n){t.addFormMapping(n,e)})):t.addFormMapping(n,e)}))}},{key:"addFormMapping",value:function(t,e){Object.prototype.hasOwnProperty.call(this.formMapping,t)?console.error("The form element "+t+" is already mapped to "+this.formMapping[t]):(this.formMapping[t]=e,this.modelMapping[e]=t)}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=c},16985:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(88902)),i=s(n(99663)),o=s(n(22600)),a=n(50066);function s(t){return t&&t.__esModule?t:{default:t}}var l=window.$,c=function(){function t(e,n){return(0,i.default)(this,t),this.inputSelector=".submittable-input",this.callback=n,this.wrapperSelector=e,this.buttonSelector=".check-button",this.init(),{}}return(0,o.default)(t,[{key:"init",value:function(){var t=this,e=this.wrapperSelector+" "+this.inputSelector,n=this;l(document).on("focus",e,(function(e){t.refreshButtonState(e.currentTarget,!0)})),l(document).on("input blur",e,(function(e){t.refreshButtonState(e.currentTarget)})),l(document).on("click",this.wrapperSelector+" "+this.buttonSelector,(function(){n.submitInput(this)})),l(document).on("keyup",e,(function(e){if(13===e.keyCode){e.preventDefault();var n=t.findButton(e.target);t.submitInput(n)}}))}},{key:"submitInput",value:function(t){var e=this,n=this.findInput(t);this.toggleLoading(t,!0),this.callback(n).then((function(r){l(n).data("initial-value",n.value),e.toggleButtonVisibility(t,!1),r.message&&(0,a.showGrowl)("success",r.message),e.toggleLoading(t,!1)})).catch((function(n){if(e.toggleError(t,!0),e.toggleButtonVisibility(t,!1),e.toggleLoading(t,!1),void 0!==n.responseJSON.errors){var i=n.responseJSON.errors;(0,r.default)(i).forEach((function(t){(0,a.showGrowl)("error",i[t])}))}}))}},{key:"refreshButtonState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.findButton(t),r=this.inputValueChanged(t);this.toggleButtonActivity(n,r),null!==e?this.toggleButtonVisibility(n,e):this.toggleButtonVisibility(n,r)}},{key:"toggleButtonActivity",value:function(t,e){l(t).toggleClass("active",e)}},{key:"toggleButtonVisibility",value:function(t,e){l(t).toggleClass("d-none",!e)}},{key:"toggleLoading",value:function(t,e){e?l(t).html(''):l(t).html('check')}},{key:"toggleError",value:function(t,e){var n=this.findInput(t);l(n).toggleClass("is-invalid",e)}},{key:"findButton",value:function(t){return l(t).closest(this.wrapperSelector).find(this.buttonSelector)[0]}},{key:"findInput",value:function(t){return l(t).closest(this.wrapperSelector).find(this.inputSelector)[0]}},{key:"inputValueChanged",value:function(t){var e=l(t).data("initial-value"),n=l(t).val();return l(t).hasClass("is-invalid")&&l(t).removeClass("is-invalid"),"number"==typeof e&&(n=Number(n)),e!==n}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=c},68840:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(85315),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){var r=this,i=t.id,s=t.closable;this.modal=function(t){var e,n=t.id,r=void 0===n?"confirm-modal":n,i=t.confirmTitle,a=t.confirmMessage,s=void 0===a?"":a,l=t.closeButtonLabel,c=void 0===l?"Close":l,u=t.confirmButtonLabel,p=void 0===u?"Accept":u,m=t.confirmButtonClass,d=void 0===m?"btn-primary":m,f=t.customButtons,h=void 0===f?[]:f,g={};g.container=document.createElement("div"),g.container.classList.add("modal","fade"),g.container.id=r,g.dialog=document.createElement("div"),g.dialog.classList.add("modal-dialog"),g.content=document.createElement("div"),g.content.classList.add("modal-content"),g.header=document.createElement("div"),g.header.classList.add("modal-header"),i&&(g.title=document.createElement("h4"),g.title.classList.add("modal-title"),g.title.innerHTML=i);g.closeIcon=document.createElement("button"),g.closeIcon.classList.add("close"),g.closeIcon.setAttribute("type","button"),g.closeIcon.dataset.dismiss="modal",g.closeIcon.innerHTML="×",g.body=document.createElement("div"),g.body.classList.add("modal-body","text-left","font-weight-normal"),g.message=document.createElement("p"),g.message.classList.add("confirm-message"),g.message.innerHTML=s,g.footer=document.createElement("div"),g.footer.classList.add("modal-footer"),g.closeButton=document.createElement("button"),g.closeButton.setAttribute("type","button"),g.closeButton.classList.add("btn","btn-outline-secondary","btn-lg"),g.closeButton.dataset.dismiss="modal",g.closeButton.innerHTML=c,g.confirmButton=document.createElement("button"),g.confirmButton.setAttribute("type","button"),g.confirmButton.classList.add("btn",d,"btn-lg","btn-confirm-submit"),g.confirmButton.dataset.dismiss="modal",g.confirmButton.innerHTML=p,i?g.header.append(g.title,g.closeIcon):g.header.appendChild(g.closeIcon);return g.body.appendChild(g.message),(e=g.footer).append.apply(e,[g.closeButton].concat((0,o.default)(h),[g.confirmButton])),g.content.append(g.header,g.body,g.footer),g.dialog.appendChild(g.content),g.container.appendChild(g.dialog),g}(t),this.$modal=a(this.modal.container),this.show=function(){r.$modal.modal()},this.modal.confirmButton.addEventListener("click",e),this.$modal.modal({backdrop:!!s||"static",keyboard:void 0===s||s,closable:void 0===s||s,show:!1}),this.$modal.on("hidden.bs.modal",(function(){document.querySelector("#"+i).remove(),n&&n()})),document.body.appendChild(this.modal.container)}; /** * 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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ var a=window.$},49551:(t,e,n)=>{"use strict";var r=n(73609);Object.defineProperty(e,"__esModule",{value:!0});var i=a(n(99663)),o=a(n(22600));function a(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var s=function(){function t(e,n){(0,i.default)(this,t),this.tabPrefix=n||"tab-",this.$navigationContainer=e,this.watchNavbar(),this.watchTabLinks(),this.switchOnPageLoad()}return(0,o.default)(t,[{key:"switchToTarget",value:function(t){if(t){var e=r('[href="'+t+'"]',this.$navigationContainer);if(!(e.length<=0)){var n=e.first();this.switchToTab(n)}}}},{key:"switchToTab",value:function(t){t.click(),this.updateBrowserHash(t.attr("href"))}},{key:"updateBrowserHash",value:function(t){var e=t.replace("#","#"+this.tabPrefix);window.history.pushState?window.history.pushState(null,null,e):window.location.hash=e}},{key:"watchNavbar",value:function(){var t=this;r(this.$navigationContainer).on("shown.bs.tab",(function(e){e.target.hash&&t.updateBrowserHash(e.target.hash)}))}},{key:"watchTabLinks",value:function(){var t=this;r(".tab-link").click((function(e){e.preventDefault();var n=r(e.target).attr("href");n&&t.switchToTarget(""+n)}))}},{key:"switchOnPageLoad",value:function(){var t=r(".has-error",this.$navigationContainer);if(t.length){var e=r('a[role="tab"]',t.first()).first();this.switchToTab(e)}else{var n=document.location.hash.replace("#"+this.tabPrefix,"#");this.switchToTarget(n)}}}]),t}();e.default=s},40253:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(94942)),i=s(n(36803)),o=s(n(99663)),a=s(n(22600));function s(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var l=window.$,c=function(){function t(e,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,o.default)(this,t),this.$paginationContainer=l(e),this.paginationService=n,this.renderer=r,this.setSelectorsMap(s),this.init(),this.currentPage=1,null!==a&&this.paginate(a),{paginate:function(t){return i.paginate(t)},getCurrentPage:function(){return i.currentPage}}}var e;return(0,a.default)(t,[{key:"init",value:function(){var t=this;this.$paginationContainer.on("click",this.selectorsMap.pageLink,(function(e){t.paginate(Number(l(e.currentTarget).data("page")))})),this.$paginationContainer.find(this.selectorsMap.jumpToPageInput).keypress((function(e){if(13===e.which){e.preventDefault();var n=t.getValidPageNumber(Number(e.currentTarget.value));t.paginate(n)}})),this.$paginationContainer.on("change",this.selectorsMap.limitSelect,(function(){t.paginate(1)}))}},{key:"paginate",value:(e=(0,i.default)(r.default.mark((function t(e){var n,i;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.currentPage=e,this.renderer.toggleLoading(!0),n=this.getLimit(),t.next=5,this.paginationService.fetch(this.calculateOffset(e,n),n);case 5:i=t.sent,l(this.selectorsMap.jumpToPageInput).val(e),this.countPages(i.total),this.refreshButtonsData(e),this.refreshInfoLabel(e,i.total),this.toggleTargetAvailability(this.selectorsMap.firstPageItem,e>1),this.toggleTargetAvailability(this.selectorsMap.previousPageItem,e>1),this.toggleTargetAvailability(this.selectorsMap.nextPageItem,ethis.pagesCount?this.pagesCount:t<1?1:t}},{key:"setSelectorsMap",value:function(t){this.selectorsMap=t||{jumpToPageInput:'input[name="paginator-jump-page"]',firstPageBtn:"button.page-link.first",firstPageItem:"li.page-item.first",nextPageBtn:"button.page-link.next",nextPageItem:"li.page-item.next",previousPageBtn:"button.page-link.previous",previousPageItem:"li.page-item.previous",lastPageItem:"li.page-item.last",lastPageBtn:"button.page-link.last",pageLink:"button.page-link",limitSelect:"#paginator-limit",paginationInfoLabel:"#pagination-info"}}}]),t}();e.default=c},95778:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(52945)),i=l(n(99663)),o=l(n(22600)),a=l(n(2564)),s=l(n(57208));function l(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var c=window.$,u=function(){function t(){return(0,i.default)(this,t),window.prestashop&&window.prestashop.customRoutes&&(0,r.default)(s.default.routes,window.prestashop.customRoutes),a.default.setData(s.default),a.default.setBaseUrl(c(document).find("body").data("base-url")),this}return(0,o.default)(t,[{key:"generate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.default)(e,{_token:c(document).find("body").data("token")});return a.default.generate(t,n)}}]),t}();e.default=u},57661:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=f(n(94942)),i=f(n(36803)),o=f(n(99663)),a=f(n(22600)),s=f(n(53943)),l=f(n(96486)),c=f(n(73481)),u=f(n(62893)),p=f(n(26141)),m=f(n(2341)),d=n(13014);function f(t){return t&&t.__esModule?t:{default:t}}var h=window.$,g=p.default.categories,v=function(){function t(e){return(0,o.default)(this,t),this.eventEmitter=e,this.categoriesContainer=document.querySelector(g.categoriesContainer),this.categories=[],this.typeaheadDatas=[],this.categoryTree=this.categoriesContainer.querySelector(g.categoryTree),this.prototypeTemplate=this.categoryTree.dataset.prototype,this.prototypeName=this.categoryTree.dataset.prototypeName,this.expandAllButton=this.categoriesContainer.querySelector(g.expandAllButton),this.reduceAllButton=this.categoriesContainer.querySelector(g.reduceAllButton),this.initCategories(),{}}var e;return(0,a.default)(t,[{key:"initCategories",value:(e=(0,i.default)(r.default.mark((function t(){var e;return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,d.getCategories)();case 2:this.categories=t.sent,e=g.checkboxName("__REGEXP__"),e=l.default.escapeRegExp(e).replace("__REGEXP__","([0-9]+)"),this.checkboxIdRegexp=new RegExp(e),e=g.radioName("__REGEXP__"),e=l.default.escapeRegExp(e).replace("__REGEXP__","([0-9]+)"),this.radioIdRegexp=new RegExp(e),this.initTypeaheadData(this.categories,""),this.initTypeahead(),this.initTree(),this.updateCategoriesTags();case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"initTree",value:function(){var t=this,e={};this.categoryTree.querySelectorAll(g.treeElement).forEach((function(n){var r=n.querySelector(g.checkboxInput),i=t.getIdFromCheckbox(r);e[i]=n})),this.categories.forEach((function(n){var r=t.generateCategoryTree(n,e);t.categoryTree.append(r)})),this.expandAllButton.addEventListener("click",(function(){t.toggleAll(!0)})),this.reduceAllButton.addEventListener("click",(function(){t.toggleAll(!1)})),this.categoryTree.querySelectorAll(g.checkboxInput).forEach((function(e){e.addEventListener("change",(function(e){var n=e.currentTarget;n.parentNode.closest(g.treeElement).querySelector(g.radioInput).checked?(e.preventDefault(),e.stopImmediatePropagation(),t.updateCheckbox(n,!0)):t.updateCategoriesTags()}))})),this.categoryTree.querySelectorAll(g.radioInput).forEach((function(e){e.addEventListener("click",(function(){t.selectedDefaultCategory(e)})),e.checked&&t.updateDefaultCheckbox(e)})),this.categoriesContainer.querySelector(g.fieldset).classList.remove("d-none"),this.categoriesContainer.querySelector(g.loader).classList.add("d-none")}},{key:"generateCategoryTree",value:function(t,e){var n=this,r=this.generateTreeElement(t,e),i=r.querySelector(g.childrenList);i.classList.add("d-none");var o=t.children&&t.children.length>0;(r.classList.toggle("more",o),o)&&(r.querySelector(g.treeElementInputs).addEventListener("click",(function(t){if(t.target===t.currentTarget){var e=!i.classList.contains("d-none");r.classList.toggle("less",!e),r.classList.toggle("more",e),i.classList.toggle("d-none",e)}})),t.children.forEach((function(t){var r=n.generateCategoryTree(t,e);i.append(r)})));return r}},{key:"generateTreeElement",value:function(t,e){var n=void 0;if(Object.prototype.hasOwnProperty.call(e,t.id))n=e[t.id];else{var r=this.prototypeTemplate.replace(new RegExp(this.prototypeName,"g"),t.id);n=document.createRange().createContextualFragment(r.trim()).firstChild}var i=n.querySelector(g.checkboxInput);return i.parentNode.insertBefore(document.createTextNode(t.name),i),n}},{key:"selectedDefaultCategory",value:function(t){this.categoryTree.querySelectorAll(g.radioInput).forEach((function(e){e!==t&&(e.checked=!1)})),this.categoryTree.querySelectorAll(g.checkboxInput).forEach((function(t){t.parentNode.closest(g.materialCheckbox).classList.remove("disabled")})),this.updateDefaultCheckbox(t)}},{key:"updateDefaultCheckbox",value:function(t){var e=t.parentNode.closest(g.treeElement).querySelector(g.checkboxInput);e.parentNode.closest(g.materialCheckbox).classList.add("disabled"),this.updateCheckbox(e,!0),this.updateCategoriesTags(),this.eventEmitter.emit(m.default.updateSubmitButtonState)}},{key:"toggleAll",value:function(t){this.expandAllButton.style.display=t?"none":"block",this.reduceAllButton.style.display=t?"block":"none",this.categoriesContainer.querySelectorAll(g.childrenList).forEach((function(e){e.classList.toggle("d-none",!t)})),this.categoriesContainer.querySelectorAll(g.everyItems).forEach((function(e){e.classList.toggle("more",!t),e.classList.toggle("less",t)}))}},{key:"selectCategory",value:function(t){var e=this.categoriesContainer.querySelector('[name="'+g.checkboxName(t)+'"]');e&&(this.updateCheckbox(e,!0),this.openCategoryParents(e),this.updateCategoriesTags())}},{key:"openCategoryParents",value:function(t){var e=t.closest(g.treeElement);for(null!==e&&(e=e.parentNode.closest(g.treeElement));null!==e&&this.categoryTree.contains(e);){e.querySelector(g.childrenList).childNodes.length&&(e.classList.add("less"),e.classList.remove("more"),e.querySelector(g.childrenList).classList.remove("d-none")),e=e.parentNode.closest(g.treeElement)}}},{key:"unselectCategory",value:function(t){var e=this.categoriesContainer.querySelector('[name="'+g.checkboxName(t)+'"]');e&&(this.updateCheckbox(e,!1),this.openCategoryParents(e),this.updateCategoriesTags())}},{key:"initTypeaheadData",value:function(t,e){var n=this;t.forEach((function(t){t.breadcrumb=e?e+" > "+t.name:t.name,n.typeaheadDatas.push(t),t.children&&n.initTypeaheadData(t.children,t.breadcrumb)}))}},{key:"initTypeahead",value:function(){var t=this,e={source:new s.default({datumTokenizer:u.default.obj.letters("name","breadcrumb"),queryTokenizer:s.default.tokenizers.nonword,local:this.typeaheadDatas}),display:"breadcrumb",value:"id",onSelect:function(e,n,r){t.selectCategory(e.id),r.typeahead("val","")},onClose:function(t,e){return e.typeahead("val",""),!0},templates:{suggestion:function(t){return'
    '+t.breadcrumb+"
    "}}};new c.default(h(g.searchInput),e)}},{key:"updateCategoriesTags",value:function(){var t=this,e=this.categoryTree.querySelectorAll(g.checkedCheckboxInputs),n=this.categoriesContainer.querySelector(g.tagsContainer);n.innerHTML="";var r=this.getDefaultCategoryId();e.forEach((function(e){var i=t.getIdFromCheckbox(e),o=t.getCategoryById(i);if(o){var a=r!==i?'x':"",s='\n \n '+o.name+"\n "+a+"\n \n ",l=document.createRange().createContextualFragment(s.trim());n.append(l.firstChild)}})),n.querySelectorAll(".pstaggerClosingCross").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),e.stopImmediatePropagation();var n=Number(e.currentTarget.dataset.id);n!==r&&t.unselectCategory(n)}))})),n.classList.toggle("d-block",e.length>0)}},{key:"getCategoryById",value:function(t){return this.searchCategory(t,this.categories)}},{key:"searchCategory",value:function(t,e){var n=this,r=null;return e.forEach((function(e){t===e.id&&(r=e),null===r&&e.children&&e.children.length>0&&(r=n.searchCategory(t,e.children))})),r}},{key:"getDefaultCategoryId",value:function(){var t=this.categoryTree.querySelector(g.defaultRadioInput);if(t)return this.getIdFromRadio(t)}},{key:"getIdFromRadio",value:function(t){var e=t.name.match(this.radioIdRegexp);return Number(e[1])}},{key:"getIdFromCheckbox",value:function(t){var e=t.name.match(this.checkboxIdRegexp);return Number(e[1])}},{key:"updateCheckbox",value:function(t,e){t.checked!==e&&(t.checked=e,this.eventEmitter.emit(m.default.updateSubmitButtonState))}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=v},25923:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var s=document.querySelector(t),l=s.dataset.emptyImage;if(!s)return null;var c=JSON.parse(s.dataset.translations),u=new i.default({locale:"en",formatter:new o.default,messages:{en:c}});return new r.default({el:t,template:'',components:{CombinationModal:a.default},i18n:u,data:{productId:e,eventEmitter:n,emptyImage:l}})};var r=s(n(72100)),i=s(n(17152)),o=s(n(42157)),a=s(n(1535));function s(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */r.default.use(i.default)},47154:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=document.querySelector(t),n=JSON.parse(e.dataset.translations),s=new i.default({locale:"en",formatter:new o.default,messages:{en:n}}),l=Number(e.dataset.productId),c=JSON.parse(e.dataset.locales);return new r.default({el:t,template:"",components:{Dropzone:a.default},i18n:s,data:{locales:c,productId:l,token:e.dataset.token,formName:e.dataset.formName}})};var r=s(n(72100)),i=s(n(17152)),o=s(n(42157)),a=s(n(95075));function s(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */r.default.use(i.default)},4312:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var s=document.querySelector(t),l=JSON.parse(s.dataset.translations),c=new o.default({locale:"en",formatter:new a.default,messages:{en:l}});return new r.default({el:t,template:"",components:{Filters:i.default},i18n:c,data:{filters:n,eventEmitter:e}})};var r=s(n(72100)),i=s(n(4205)),o=s(n(17152)),a=s(n(42157));function s(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */r.default.use(o.default)},2984:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var s=document.querySelector(t),l=JSON.parse(s.dataset.translations),c=new i.default({locale:"en",formatter:new o.default,messages:{en:l}});return new r.default({el:t,template:"",components:{CombinationGenerator:a.default},i18n:c,data:{productId:n,eventEmitter:e}})};var r=s(n(72100)),i=s(n(17152)),o=s(n(42157)),a=s(n(83510));function s(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */r.default.use(i.default)},20259:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t,e=a(o.default.jsArrow),n=a(o.default.jsTabs),r=a(o.default.jsNavTabs),i=void 0,s=0,l=0,c=35;r.find("li").each((function(t,e){c+=a(e).width()})),t=c+70,r.width(t),r.find(o.default.toggleTab).on("click",(function(t){a(t.target).hasClass("active")||a(o.default.formContentTab).removeClass("active")})),e.on("click",(function(t){e.is(":visible")&&(l=n.width(),i=r.position(),s="-=0",a(t.currentTarget).hasClass("right-arrow")?l-i.left * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */},96720:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(99663)),i=a(n(22600)),o=a(n(26141));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.$,l=function(){function t(){var e=this;return(0,r.default)(this,t),this.$combinationsTable=s(o.default.combinations.combinationsTable),this.$combinationsTableBody=s(o.default.combinations.combinationsTableBody),this.$loadingSpinner=s(o.default.combinations.loadingSpinner),this.prototypeTemplate=this.$combinationsTable.data("prototype"),this.prototypeName=this.$combinationsTable.data("prototypeName"),{render:function(t){return e.render(t)},toggleLoading:function(t){return e.toggleLoading(t)}}}return(0,i.default)(t,[{key:"render",value:function(t){this.renderCombinations(t.combinations)}},{key:"toggleLoading",value:function(t){this.$loadingSpinner.toggle(t)}},{key:"renderCombinations",value:function(t){var e=this;this.$combinationsTableBody.empty();var n=0;t.forEach((function(t){var r=s(e.getPrototypeRow(n)),i=s(o.default.combinations.tableRow.combinationCheckbox(n),r),a=s(o.default.combinations.tableRow.combinationIdInput(n),r),l=s(o.default.combinations.tableRow.combinationNameInput(n),r),c=s(o.default.combinations.tableRow.quantityInput(n),r),u=s(o.default.combinations.tableRow.impactOnPriceInput(n),r),p=s(o.default.combinations.tableRow.referenceInput(n),r),m=s(o.default.combinations.tableRow.finalPriceTeInput(n),r);a.val(t.id),l.val(t.name),i.closest("label").append(t.id),l.closest("td").append(t.name),m.closest("td").append(t.finalPriceTe),p.val(t.reference),p.data("initial-value",t.reference),c.val(t.quantity),c.data("initial-value",t.quantity),u.val(t.impactOnPrice),u.data("initial-value",t.impactOnPrice),s(o.default.combinations.tableRow.editButton(n),r).data("id",t.id),s(o.default.combinations.tableRow.deleteButton(n),r).data("id",t.id),s(o.default.combinations.tableRow.combinationImg,r).attr("src",t.imageUrl).attr("alt",t.name),t.isDefault&&s(o.default.combinations.tableRow.isDefaultInput(n),r).prop("checked",!0),e.$combinationsTableBody.append(r),n+=1}))}},{key:"getPrototypeRow",value:function(t){return this.prototypeTemplate.replace(new RegExp(this.prototypeName,"g"),t)}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=l},40734:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(n(88106)),i=y(n(88902)),o=y(n(94942)),a=y(n(36803)),s=y(n(99663)),l=y(n(22600)),c=y(n(26141)),u=y(n(96720)),p=y(n(73927)),m=y(n(40253)),d=y(n(16985)),f=y(n(2341)),h=y(n(25923)),g=y(n(4312)),v=y(n(68840)),b=y(n(2984)),x=n(57867);function y(t){return t&&t.__esModule?t:{default:t}}var _=window.$,w=f.default.combinations,k=c.default.combinations,C=function(){function t(e){return(0,s.default)(this,t),this.productId=e,this.eventEmitter=window.prestashop.instance.eventEmitter,this.$productForm=_(c.default.productForm),this.$combinationsContainer=_(c.default.combinations.combinationsContainer),this.combinationIdInputsSelector=c.default.combinations.combinationIdInputsSelector,this.$externalCombinationTab=_(c.default.combinations.externalCombinationTab),this.$preloader=_(c.default.combinations.preloader),this.$paginatedList=_(k.combinationsPaginatedList),this.$emptyState=_(k.emptyState),this.paginator=null,this.combinationsRenderer=null,this.filtersApp=null,this.combinationModalApp=null,this.combinationGeneratorApp=null,this.initialized=!1,this.combinationsService=new p.default(this.productId),this.productAttributeGroups=[],this.init(),{}}var e,n,f;return(0,l.default)(t,[{key:"init",value:function(){var t=this;this.$productForm.find(k.navigationTab).on("shown.bs.tab",(function(){return t.showCombinationTab()})),this.$productForm.find(k.navigationTab).on("hidden.bs.tab",(function(){return t.hideCombinationTab()})),this.watchEvents()}},{key:"showCombinationTab",value:function(){this.$externalCombinationTab.removeClass("d-none"),this.firstInit()}},{key:"hideCombinationTab",value:function(){this.$externalCombinationTab.addClass("d-none")}},{key:"firstInit",value:function(){this.initialized||(this.initialized=!0,this.combinationGeneratorApp=(0,b.default)(k.combinationsGeneratorContainer,this.eventEmitter,this.productId),this.combinationModalApp=(0,h.default)(k.editModal,this.productId,this.eventEmitter),this.filtersApp=(0,g.default)(k.combinationsFiltersContainer,this.eventEmitter,this.productAttributeGroups),this.initPaginatedList(),this.refreshCombinationList(!0))}},{key:"refreshCombinationList",value:(f=(0,a.default)(o.default.mark((function t(e){var n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$preloader.toggleClass("d-none",!e),this.$paginatedList.toggleClass("d-none",e),this.$emptyState.addClass("d-none"),this.paginator.paginate(1),t.next=6,(0,x.getProductAttributeGroups)(this.productId);case 6:this.productAttributeGroups=t.sent,this.filtersApp.filters=this.productAttributeGroups,this.eventEmitter.emit(w.clearFilters),this.$preloader.addClass("d-none"),n=this.productAttributeGroups&&this.productAttributeGroups.length,this.$paginatedList.toggleClass("d-none",!n),n||(this.combinationsRenderer.render({combinations:[]}),this.$emptyState.removeClass("d-none"));case 13:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"refreshPage",value:function(){this.paginator.paginate(this.paginator.getCurrentPage())}},{key:"initPaginatedList",value:function(){var t,e,n=this;this.combinationsRenderer=new u.default,this.paginator=new m.default(k.paginationContainer,this.combinationsService,this.combinationsRenderer),this.initSubmittableInputs(),this.$combinationsContainer.on("change",k.isDefaultInputsSelector,(t=(0,a.default)(o.default.mark((function t(e){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.currentTarget.checked){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,n.updateDefaultCombination(e.currentTarget);case 4:case"end":return t.stop()}}),t,n)}))),function(e){return t.apply(this,arguments)})),this.$combinationsContainer.on("click",k.removeCombinationSelector,(e=(0,a.default)(o.default.mark((function t(e){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.removeCombination(e.currentTarget);case 2:case"end":return t.stop()}}),t,n)}))),function(t){return e.apply(this,arguments)})),this.initSortingColumns(),this.paginator.paginate(1)}},{key:"watchEvents",value:function(){var t=this;this.eventEmitter.on(w.refreshCombinationList,(function(){return t.refreshCombinationList(!1)})),this.eventEmitter.on(w.refreshPage,(function(){return t.refreshPage()})),this.eventEmitter.on(w.updateAttributeGroups,(function(e){var n=t.combinationsService.getFilters();n.attributes={},(0,i.default)(e).forEach((function(t){n.attributes[t]=[],e[t].forEach((function(e){n.attributes[t].push(e.id)}))})),t.combinationsService.setFilters(n),t.paginator.paginate(1)})),this.eventEmitter.on(w.combinationGeneratorReady,(function(){_(c.default.combinations.generateCombinationsButton).prop("disabled",!1),_("body").on("click",c.default.combinations.generateCombinationsButton,(function(e){e.stopImmediatePropagation(),t.eventEmitter.emit(w.openCombinationsGenerator)}))}))}},{key:"initSubmittableInputs",value:function(){var t=this,e=this.getCombinationToken(),n=k.combinationItemForm.quantityKey,i=k.combinationItemForm.impactOnPriceKey,o=k.combinationItemForm.referenceKey,a=k.combinationItemForm.tokenKey;new d.default(k.quantityInputWrapper,(function(i){var o;return t.combinationsService.updateListedCombination(t.findCombinationId(i),(o={},(0,r.default)(o,n,i.value),(0,r.default)(o,a,e),o))})),new d.default(k.impactOnPriceInputWrapper,(function(n){var o;return t.combinationsService.updateListedCombination(t.findCombinationId(n),(o={},(0,r.default)(o,i,n.value),(0,r.default)(o,a,e),o))})),new d.default(k.referenceInputWrapper,(function(n){var i;return t.combinationsService.updateListedCombination(t.findCombinationId(n),(i={},(0,r.default)(i,o,n.value),(0,r.default)(i,a,e),i))}))}},{key:"initSortingColumns",value:function(){var t=this;this.$combinationsContainer.on("click",k.sortableColumns,(function(e){var n=_(e.currentTarget),r=n.data("sortColName");if(r){var i=n.data("sortDirection");i=i&&"desc"!==i?"desc":"asc",_(k.sortableColumns,t.$combinationsContainer).removeData("sortIsCurrent"),_(k.sortableColumns,t.$combinationsContainer).removeData("sortDirection"),_(k.sortableColumns,t.$combinationsContainer).removeAttr("data-sort-is-current"),_(k.sortableColumns,t.$combinationsContainer).removeAttr("data-sort-direction"),n.data("sortIsCurrent","true"),n.data("sortDirection",i),n.attr("data-sort-is-current","true"),n.attr("data-sort-direction",i),t.combinationsService.setOrderBy(r,i),t.paginator.paginate(1)}}))}},{key:"removeCombination",value:(n=(0,a.default)(o.default.mark((function t(e){var n,r,i=this;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{n=_(e),new v.default({id:"modal-confirm-delete-combination",confirmTitle:n.data("modal-title"),confirmMessage:n.data("modal-message"),confirmButtonLabel:n.data("modal-apply"),closeButtonLabel:n.data("modal-cancel"),confirmButtonClass:"btn-danger",closable:!0},(0,a.default)(o.default.mark((function t(){var n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.combinationsService.removeCombination(i.findCombinationId(e));case 2:n=t.sent,_.growl({message:n.message}),i.eventEmitter.emit(w.refreshCombinationList);case 5:case"end":return t.stop()}}),t,i)})))).show()}catch(t){r=t.responseJSON?t.responseJSON.error:t,_.growl.error({message:r})}case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"updateDefaultCombination",value:(e=(0,a.default)(o.default.mark((function t(e){var n,r,i=this;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.$combinationsContainer.find(k.isDefaultInputsSelector+":checked"),r=this.findCombinationId(e),t.next=4,this.combinationsService.updateListedCombination(r,{"combination_item[is_default]":e.value,"combination_item[_token]":this.getCombinationToken()});case 4:_.each(n,(function(t,e){i.findCombinationId(e)!==r&&_(e).prop("checked",!1)}));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"getCombinationToken",value:function(){return _(k.combinationsContainer).data("combinationToken")}},{key:"findCombinationId",value:function(t){return _(t).closest("tr").find(this.combinationIdInputsSelector).val()}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=C},51588:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(99663)),i=l(n(22600)),o=l(n(26141)),a=l(n(2341)),s=l(n(68840));function l(t){return t&&t.__esModule?t:{default:t}}var c=window.$,u=function(){function t(){(0,r.default)(this,t),this.$customizationsContainer=c(o.default.customizations.customizationsContainer),this.$customizationFieldsList=c(o.default.customizations.customizationFieldsList),this.eventEmitter=window.prestashop.instance.eventEmitter,this.prototypeTemplate=this.$customizationFieldsList.data("prototype"),this.prototypeName=this.$customizationFieldsList.data("prototypeName"),this.init()}return(0,i.default)(t,[{key:"init",value:function(){var t=this;this.$customizationsContainer.on("click",o.default.customizations.addCustomizationBtn,(function(){t.addCustomizationField()})),this.$customizationsContainer.on("click",o.default.customizations.removeCustomizationBtn,(function(e){t.removeCustomizationField(e)}))}},{key:"addCustomizationField",value:function(){var t=this.getIndex(),e=this.prototypeTemplate.replace(new RegExp(this.prototypeName,"g"),this.getIndex());this.$customizationFieldsList.append(e),window.prestaShopUiKit.initToolTips(),window.prestashop.instance.translatableInput.refreshFormInputs(this.$customizationsContainer.closest("form")),this.eventEmitter.emit(a.default.customizations.rowAdded,{index:t})}},{key:"removeCustomizationField",value:function(t){var e=this,n=c(t.currentTarget);new s.default({id:"modal-confirm-delete-customization",confirmTitle:n.data("modal-title"),confirmMessage:n.data("modal-message"),confirmButtonLabel:n.data("modal-apply"),closeButtonLabel:n.data("modal-cancel"),confirmButtonClass:"btn-danger",closable:!0},(function(){n.closest(o.default.customizations.customizationFieldRow).remove(),e.eventEmitter.emit(a.default.customizations.rowRemoved)})).show()}},{key:"getIndex",value:function(){return this.$customizationFieldsList.find(o.default.customizations.customizationFieldRow).length}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=u},22386:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(99663)),i=c(n(22600)),o=c(n(26141)),a=c(n(95778)),s=c(n(68840)),l=c(n(2341));function c(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var u=window.$,p=function(){function t(e){(0,r.default)(this,t),this.router=new a.default,this.eventEmitter=e,this.$collectionContainer=u(o.default.featureValues.collectionContainer),this.$collectionRowsContainer=u(o.default.featureValues.collectionRowsContainer),this.watchFeatureSelectors(),this.watchCustomInputs(),this.watchDeleteButtons(),this.watchAddButton()}return(0,i.default)(t,[{key:"watchAddButton",value:function(){var t=this;u(o.default.featureValues.addFeatureValue).on("click",(function(){var e=t.$collectionContainer.data("prototype"),n=t.$collectionContainer.data("prototypeName"),r=u(o.default.featureValues.collectionRow,t.$collectionContainer).length,i=u(e.replace(new RegExp(n,"g"),r));t.$collectionRowsContainer.append(i),u('select[data-toggle="select2"]',i).select2()}))}},{key:"watchDeleteButtons",value:function(){var t=this;u(this.$collectionContainer).on("click",o.default.featureValues.deleteFeatureValue,(function(e){var n=u(e.currentTarget),r=n.closest(o.default.featureValues.collectionRow);new s.default({id:"modal-confirm-delete-feature-value",confirmTitle:n.data("modal-title"),confirmMessage:n.data("modal-message"),confirmButtonLabel:n.data("modal-apply"),closeButtonLabel:n.data("modal-cancel"),confirmButtonClass:"btn-danger",closable:!0},(function(){r.remove(),t.eventEmitter.emit(l.default.updateSubmitButtonState)})).show()}))}},{key:"watchCustomInputs",value:function(){u(this.$collectionContainer).on("keyup change",o.default.featureValues.customValueInput,(function(t){var e=u(t.target).closest(o.default.featureValues.collectionRow),n=!1;u(o.default.featureValues.customValueInput,e).each((function(t,e){""!==u(e).val()&&(n=!0)}));var r=u(o.default.featureValues.featureValueSelect,e).first();r.prop("disabled",n),n&&r.val("")}))}},{key:"watchFeatureSelectors",value:function(){var t=this;u(this.$collectionContainer).on("change",o.default.featureValues.featureSelect,(function(e){var n=u(e.target),r=n.val(),i=n.closest(o.default.featureValues.collectionRow),a=u(o.default.featureValues.featureValueSelect,i).first(),s=u(o.default.featureValues.customValueInput,i),l=u(o.default.featureValues.customFeatureIdInput,i);s.val(""),a.val(""),l.val(""),u.get(t.router.generate("admin_feature_get_feature_values",{idFeature:r})).then((function(t){a.prop("disabled",0===t.length),a.empty(),u.each(t,(function(t,e){"0"===e.id&&(e.id=""),a.append(u("").attr("value",e.id).text(e.value))}))}))}))}}]),t}();e.default=p},59150:(t,e,n)=>{"use strict";var r=n(73609);Object.defineProperty(e,"__esModule",{value:!0});var i=l(n(99663)),o=l(n(22600)),a=l(n(68840)),s=l(n(26141));function l(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var c=function(){function t(){var e=this;(0,i.default)(this,t),this.$deleteProductButton=r(s.default.footer.deleteProductButton),this.$deleteProductButton.click((function(){return e.deleteProduct()}))}return(0,o.default)(t,[{key:"deleteProduct",value:function(){var t=this;new a.default({id:"modal-confirm-delete-product",confirmTitle:this.$deleteProductButton.data("modal-title"),confirmMessage:this.$deleteProductButton.data("modal-message"),confirmButtonLabel:this.$deleteProductButton.data("modal-apply"),closeButtonLabel:this.$deleteProductButton.data("modal-cancel"),confirmButtonClass:"btn-danger",closable:!0},(function(){var e=t.$deleteProductButton.data("removeUrl");r(s.default.productFormSubmitButton).prop("disabled",!0),window.location=e})).show()}}]),t}();e.default=c},85177:(t,e)=>{"use strict";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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ e.default={"product.stock.quantity":["product[stock][quantities][quantity]","product[shortcuts][stock][quantity]"],"product.price.priceTaxExcluded":["product[pricing][retail_price][price_tax_excluded]","product[shortcuts][retail_price][price_tax_excluded]"],"product.price.priceTaxIncluded":["product[pricing][retail_price][price_tax_included]","product[shortcuts][retail_price][price_tax_included]"],"product.price.taxRulesGroupId":["product[pricing][tax_rules_group_id]","product[shortcuts][retail_price][tax_rules_group_id]"],"product.stock.hasVirtualProductFile":"product[stock][virtual_product_file][has_file]"}},30975:(t,e,n)=>{"use strict";var r=n(73609);Object.defineProperty(e,"__esModule",{value:!0});var i=u(n(99663)),o=u(n(22600)),a=u(n(44431)),s=u(n(79979)),l=u(n(85177)),c=u(n(2341));function u(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var p=function(){function t(e,n){var r=this;(0,i.default)(this,t),this.eventEmitter=n,this.mapper=new s.default(e,l.default,n,{modelUpdated:c.default.productModelUpdated,updateModel:c.default.updatedProductModel,modelFieldUpdated:c.default.updatedProductField});var o=this.mapper.getInputsFor("product.price.priceTaxExcluded");return this.precision=o.data("displayPricePrecision"),this.eventEmitter.on(c.default.updatedProductField,(function(t){return r.productFieldUpdated(t)})),{getProduct:function(){return r.getProduct()},watch:function(t,e){return r.watchProductModel(t,e)}}}return(0,o.default)(t,[{key:"getProduct",value:function(){return this.mapper.getModel().product}},{key:"watchProductModel",value:function(t,e){this.mapper.watch("product."+t,e)}},{key:"productFieldUpdated",value:function(t){this.updateProductPrices(t)}},{key:"updateProductPrices",value:function(t){if(["product.price.priceTaxIncluded","product.price.priceTaxExcluded","product.price.taxRulesGroupId"].includes(t.modelKey)){var e=this.mapper.getInputsFor("product.price.taxRulesGroupId"),n=r(":selected",e),i=void 0;try{i=new a.default(n.data("taxRate"))}catch(t){i=a.default.NaN}i.isNaN()&&(i=new a.default(0));var o=i.dividedBy(100).plus(1);if("product.price.priceTaxIncluded"===t.modelKey){var s=new a.default(this.getProduct().price.priceTaxIncluded);this.mapper.set("product.price.priceTaxExcluded",s.dividedBy(o).toFixed(this.precision))}else{var l=new a.default(this.getProduct().price.priceTaxExcluded);this.mapper.set("product.price.priceTaxIncluded",l.times(o).toFixed(this.precision))}}}}]),t}();e.default=p},85682:(t,e,n)=>{"use strict";var r=n(73609);Object.defineProperty(e,"__esModule",{value:!0});var i=s(n(99663)),o=s(n(22600)),a=s(n(26141));function s(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(){return(0,i.default)(this,t),this.$previewContainer=r(a.default.modules.previewContainer),this.$selectorContainer=r(a.default.modules.selectorContainer),this.$contentContainer=r(a.default.modules.contentContainer),this.$moduleSelector=r(a.default.modules.moduleSelector),this.$selectorPreviews=r(a.default.modules.selectorPreviews),this.$moduleContents=r(a.default.modules.moduleContents),this.init(),{}}return(0,o.default)(t,[{key:"init",value:function(){var t=this;this.$previewContainer.removeClass("d-none"),this.$selectorContainer.addClass("d-none"),this.$contentContainer.addClass("d-none"),this.$selectorPreviews.addClass("d-none"),this.$moduleContents.addClass("d-none"),this.$previewContainer.on("click",a.default.modules.previewButton,(function(e){var n=r(e.target);t.selectModule(n.data("target"))})),this.$moduleSelector.on("change",(function(){return t.showSelectedModule()}))}},{key:"selectModule",value:function(t){this.$previewContainer.addClass("d-none"),this.$selectorContainer.removeClass("d-none"),this.$contentContainer.removeClass("d-none"),this.$moduleSelector.val(t),this.$moduleSelector.trigger("change")}},{key:"showSelectedModule",value:function(){this.$selectorPreviews.addClass("d-none"),this.$moduleContents.addClass("d-none");var t=this.$moduleSelector.val();r(a.default.modules.selectorPreview(t)).removeClass("d-none"),r(a.default.modules.moduleContent(t)).removeClass("d-none")}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=l},10093:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(88902)),i=l(n(99663)),o=l(n(22600)),a=l(n(96486)),s=l(n(2341));function l(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var c=window.$,u=function(){function t(e,n,r){(0,i.default)(this,t),this.eventEmitter=e,this.$productForm=n,this.$productFormSubmitButton=r}return(0,o.default)(t,[{key:"watch",value:function(){var t=this;this.$productForm.keypress((function(t){return 13!==t.which})),this.$productFormSubmitButton.prop("disabled",!0),this.initialData=this.getFormDataAsObject(),this.$productForm.submit((function(){return t.updatePartialForm()})),this.$productForm.on("keyup change dp.change",":input",(function(){return t.updateSubmitButtonState()})),this.eventEmitter.on(s.default.updateSubmitButtonState,(function(){return t.updateSubmitButtonState()})),this.watchCustomizations(),this.initFormattedTextarea()}},{key:"watchCustomizations",value:function(){var t=this;this.eventEmitter.on(s.default.customizations.rowAdded,(function(){return t.updateSubmitButtonState()})),this.eventEmitter.on(s.default.customizations.rowRemoved,(function(){return t.updateSubmitButtonState()}))}},{key:"initFormattedTextarea",value:function(){var t=this;this.eventEmitter.on("tinymceEditorSetup",(function(e){e.editor.on("change",(function(){return t.updateSubmitButtonState()}))}))}},{key:"updatePartialForm",value:function(){var t=this.getUpdatedFormData();if(null!==t){var e=this.$productForm.prop("method");if(Object.prototype.hasOwnProperty.call(t,"_method")&&(e=t._method),"PATCH"!==e)return!0;this.submitUpdatedData(t)}else alert("no fields updated");return!1}},{key:"submitUpdatedData",value:function(t){this.$productFormSubmitButton.prop("disabled",!0);var e=this.createShadowForm(t);e.appendTo("body"),e.submit()}},{key:"createShadowForm",value:function(t){var e=this,n=this.$productForm.clone();return n.empty(),n.prop("class",""),(0,r.default)(t).forEach((function(r){Array.isArray(t[r])?t[r].forEach((function(t){e.appendInputToForm(n,r,t)})):e.appendInputToForm(n,r,t[r])})),n}},{key:"updateSubmitButtonState",value:function(){var t=this.getUpdatedFormData();this.$productFormSubmitButton.prop("disabled",null===t)}},{key:"getUpdatedFormData",value:function(){var t=this,e=this.getFormDataAsObject();if((0,r.default)(this.initialData).forEach((function(n){var r=t.initialData[n];Object.prototype.hasOwnProperty.call(e,n)?a.default.isEqual(e[n],r)&&delete e[n]:e[n]=""})),0===(0,r.default)(e).length)return null;return["product[_token]","_method"].forEach((function(n){Object.prototype.hasOwnProperty.call(t.initialData,n)&&(e[n]=t.initialData[n])})),e}},{key:"getFormDataAsObject",value:function(){var t=this.$productForm.serializeArray(),e={};return t.forEach((function(t){var n=t.value;if(t.name.endsWith("[]")){var r=[];Object.prototype.hasOwnProperty.call(e,t.name)&&(r=e[t.name]),r.push(t.value),n=r}e[t.name]=n})),c('input[type="file"]',this.$productForm).each((function(t,n){c.each(c(n)[0].files,(function(t,r){e[n.name]=r}))})),e}},{key:"appendInputToForm",value:function(t,e,n){c("").attr({name:e,type:"hidden",value:n}).appendTo(t)}}]),t}();e.default=u},10318:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(99663)),i=l(n(22600)),o=l(n(43284)),a=l(n(44451)),s=l(n(26141));function l(t){return t&&t.__esModule?t:{default:t}}var c=window.$,u=function(){function t(){return(0,r.default)(this,t),this.$previewButton=c(s.default.footer.previewUrlButton),this.init(),{}}return(0,i.default)(t,[{key:"init",value:function(){var t=c(s.default.seo.redirectOption.typeInput),e=c(s.default.seo.redirectOption.targetInput);new a.default(t,e);var n=window.prestashop.instance,r=n.translatableInput,i=n.translatableField,l=this.$previewButton.data("seoUrl");l||(l=""),new o.default({container:s.default.seo.container,defaultTitle:s.default.seo.defaultTitle,watchedTitle:s.default.seo.watchedTitle,defaultDescription:s.default.seo.defaultDescription,watchedDescription:s.default.seo.watchedDescription,watchedMetaUrl:s.default.seo.watchedMetaUrl,multiLanguageInput:r.localeInputSelector+":not(.d-none)",multiLanguageField:i.translationFieldSelector+".active"},l)}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=u},8690:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(85861)),i=s(n(99663)),o=s(n(22600)),a=s(n(67285));function s(t){return t&&t.__esModule?t:{default:t}}var l=window.$,c=function(){function t(e,n){return(0,i.default)(this,t),this.forceUpdateDefault=n,this.suppliersMap=(0,a.default)(e),this.$productSuppliersCollection=l(this.suppliersMap.productSuppliersCollection),this.$supplierIdsGroup=l(this.suppliersMap.supplierIdsInput).closest(".form-group"),this.$defaultSupplierGroup=l(this.suppliersMap.defaultSupplierInput).closest(".form-group"),this.$productsTable=l(this.suppliersMap.productSuppliersTable),this.$productsTableBody=l(this.suppliersMap.productsSuppliersTableBody),this.suppliers=[],this.prototypeTemplate=this.$productSuppliersCollection.data("prototype"),this.prototypeName=this.$productSuppliersCollection.data("prototypeName"),this.defaultDataForSupplier=this.getDefaultDataForSupplier(),this.init(),{}}return(0,o.default)(t,[{key:"init",value:function(){var t=this;this.memorizeCurrentSuppliers(),this.toggleTableVisibility(),this.refreshDefaultSupplierBlock(),this.$initialDefault=this.$defaultSupplierGroup.find("input:checked").first(),this.$initialDefault.length&&this.$initialDefault.closest(this.suppliersMap.checkboxContainer).addClass(this.suppliersMap.defaultSupplierClass),this.$productsTable.on("change","input",(function(){t.memorizeCurrentSuppliers()})),this.$supplierIdsGroup.on("change","input",(function(e){var n=e.currentTarget;n.checked?t.addSupplier({supplierId:n.value,supplierName:n.dataset.label}):t.removeSupplier(n.value),t.renderSuppliers(),t.toggleTableVisibility(),t.refreshDefaultSupplierBlock()}))}},{key:"toggleTableVisibility",value:function(){0!==this.getSelectedSuppliers().length?this.showTable():this.hideTable()}},{key:"addSupplier",value:function(t){if(void 0===this.suppliers[t.supplierId]){var e=(0,r.default)(this.defaultDataForSupplier);e.supplierId=t.supplierId,e.supplierName=t.supplierName,this.suppliers[t.supplierId]=e}else this.suppliers[t.supplierId].removed=!1}},{key:"removeSupplier",value:function(t){this.suppliers[t].removed=!0}},{key:"renderSuppliers",value:function(){var t=this;this.$productsTableBody.empty(),this.getSelectedSuppliers().forEach((function(e){var n=t.suppliers[e.supplierId];if(!n.removed){var r=t.prototypeTemplate.replace(new RegExp(t.prototypeName,"g"),n.supplierId);t.$productsTableBody.append(r);var i=t.suppliersMap.productSupplierRow;l(i.supplierIdInput(n.supplierId)).val(n.supplierId),l(i.supplierNamePreview(n.supplierId)).html(n.supplierName),l(i.supplierNameInput(n.supplierId)).val(n.supplierName),l(i.productSupplierIdInput(n.supplierId)).val(n.productSupplierId),l(i.referenceInput(n.supplierId)).val(n.reference),l(i.priceInput(n.supplierId)).val(n.price),l(i.currencyIdInput(n.supplierId)).val(n.currencyId)}}))}},{key:"getSelectedSuppliers",value:function(){var t=[];return this.$supplierIdsGroup.find("input:checked").each((function(e,n){t.push({supplierName:n.dataset.label,supplierId:n.value})})),t}},{key:"refreshDefaultSupplierBlock",value:function(){var t=this,e=this.getSelectedSuppliers();if(0===e.length)return this.forceUpdateDefault&&this.$defaultSupplierGroup.find("input").prop("checked",!1),void this.hideDefaultSuppliers();this.showDefaultSuppliers();var n=e.map((function(t){return t.supplierId}));this.$defaultSupplierGroup.find("input").each((function(e,r){var i=n.includes(r.value);t.forceUpdateDefault&&!i&&(r.checked=!1),r.disabled=!i})),0===this.$defaultSupplierGroup.find("input:checked").length&&this.forceUpdateDefault&&this.checkFirstAvailableDefaultSupplier(n)}},{key:"hideDefaultSuppliers",value:function(){this.$defaultSupplierGroup.addClass("d-none")}},{key:"showDefaultSuppliers",value:function(){this.$defaultSupplierGroup.removeClass("d-none")}},{key:"checkFirstAvailableDefaultSupplier",value:function(t){var e=t[0];this.$defaultSupplierGroup.find('input[value="'+e+'"]').prop("checked",!0)}},{key:"showTable",value:function(){this.$productsTable.removeClass("d-none")}},{key:"hideTable",value:function(){this.$productsTable.addClass("d-none")}},{key:"memorizeCurrentSuppliers",value:function(){var t=this;this.getSelectedSuppliers().forEach((function(e){t.suppliers[e.supplierId]={supplierId:e.supplierId,productSupplierId:l(t.suppliersMap.productSupplierRow.productSupplierIdInput(e.supplierId)).val(),supplierName:l(t.suppliersMap.productSupplierRow.supplierNameInput(e.supplierId)).val(),reference:l(t.suppliersMap.productSupplierRow.referenceInput(e.supplierId)).val(),price:l(t.suppliersMap.productSupplierRow.priceInput(e.supplierId)).val(),currencyId:l(t.suppliersMap.productSupplierRow.currencyIdInput(e.supplierId)).val(),removed:!1}}))}},{key:"getDefaultDataForSupplier",value:function(){var t=(new DOMParser).parseFromString(this.prototypeTemplate,"text/html");return{removed:!1,productSupplierId:this.getDataFromRow(this.suppliersMap.productSupplierRow.productSupplierIdInput,t),reference:this.getDataFromRow(this.suppliersMap.productSupplierRow.referenceInput,t),price:this.getDataFromRow(this.suppliersMap.productSupplierRow.priceInput,t),currencyId:this.getDataFromRow(this.suppliersMap.productSupplierRow.currencyIdInput,t)}}},{key:"getDataFromRow",value:function(t,e){return e.querySelector(t(this.prototypeName)).value}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=c},92950:(t,e,n)=>{"use strict";var r=n(73609);Object.defineProperty(e,"__esModule",{value:!0});var i=l(n(99663)),o=l(n(22600)),a=l(n(68840)),s=l(n(26141));function l(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var c=function(){function t(e,n){var r=this;return(0,i.default)(this,t),this.$typeSelector=e,this.$productForm=n,this.productId=parseInt(n.data("productId"),10),this.initialType=e.val(),this.$typeSelector.on("change",(function(t){return r.confirmTypeSubmit(t)})),{}}return(0,o.default)(t,[{key:"confirmTypeSubmit",value:function(){var t=this,e=this.$typeSelector.data("confirm-message"),n="";if(this.productId)switch(this.initialType){case s.default.productType.COMBINATIONS:n=this.$typeSelector.data("combinations-warning");break;case s.default.productType.PACK:n=this.$typeSelector.data("pack-warning");break;case s.default.productType.VIRTUAL:n=this.$typeSelector.data("virtual-warning");break;case s.default.productType.STANDARD:default:n=""}n&&(n='
    '+n+"
    "),e='
    '+e+"
    ",new a.default({id:"modal-confirm-product-type",confirmTitle:this.$typeSelector.data("modal-title"),confirmMessage:e+" "+n,confirmButtonLabel:this.$typeSelector.data("modal-apply"),closeButtonLabel:this.$typeSelector.data("modal-cancel"),closable:!1},(function(){r(s.default.productFormSubmitButton).prop("disabled",!0),t.$productForm.submit()}),(function(){t.$typeSelector.val(t.initialType)})).show()}}]),t}();e.default=c},44451:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(99663)),i=a(n(22600)),o=a(n(23026));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.$,l=function(){function t(e,n){(0,r.default)(this,t),this.$redirectTypeInput=e,this.$redirectTargetInput=n,this.$redirectTargetRow=this.$redirectTargetInput.closest(".form-group"),this.$redirectTargetLabel=s(".form-control-label",this.$redirectTargetRow).first(),this.$redirectTargetHint=s(".typeahead-hint",this.$redirectTargetRow),this.buildAutoCompleteSearchInput(),this.watchRedirectType()}return(0,i.default)(t,[{key:"watchRedirectType",value:function(){var t=this;this.lastSelectedType=this.$redirectTypeInput.val(),this.$redirectTypeInput.change((function(){switch(t.$redirectTypeInput.val()){case"301-category":case"302-category":t.entitySearchInput.setRemoteUrl(t.$redirectTargetInput.data("categorySearchUrl")),t.$redirectTargetInput.prop("placeholder",t.$redirectTargetInput.data("categoryPlaceholder")),t.$redirectTargetLabel.html(t.$redirectTargetInput.data("categoryLabel")),"301-category"!==t.lastSelectedType&&"302-category"!==t.lastSelectedType&&t.entitySearchInput.setValue(null),t.$redirectTargetHint.html(t.$redirectTargetInput.data("categoryHelp")),t.showTarget();break;case"301-product":case"302-product":t.entitySearchInput.setRemoteUrl(t.$redirectTargetInput.data("productSearchUrl")),t.$redirectTargetInput.prop("placeholder",t.$redirectTargetInput.data("productPlaceholder")),t.$redirectTargetLabel.html(t.$redirectTargetInput.data("productLabel")),"301-product"!==t.lastSelectedType&&"302-product"!==t.lastSelectedType&&t.entitySearchInput.setValue(null),t.$redirectTargetHint.html(t.$redirectTargetInput.data("productHelp")),t.showTarget();break;default:t.entitySearchInput.setValue(null),t.hideTarget()}t.lastSelectedType=t.$redirectTypeInput.val()}))}},{key:"buildAutoCompleteSearchInput",value:function(){this.entitySearchInput=new o.default(this.$redirectTargetInput)}},{key:"showTarget",value:function(){this.$redirectTargetRow.removeClass("d-none")}},{key:"hideTarget",value:function(){this.$redirectTargetRow.addClass("d-none")}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=l},40720:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(99663)),i=a(n(22600)),o=a(n(26141));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.$,l=function(){function t(e){return(0,r.default)(this,t),this.productFormModel=e,this.$virtualProductContainer=s(o.default.virtualProduct.container),this.$fileContentContainer=s(o.default.virtualProduct.fileContentContainer),this.init(),{}}return(0,i.default)(t,[{key:"init",value:function(){var t=this;this.productFormModel.watch("stock.hasVirtualProductFile",(function(){return t.toggleContentVisibility()})),this.toggleContentVisibility()}},{key:"toggleContentVisibility",value:function(){var t=1===Number(this.productFormModel.getProduct().stock.hasVirtualProductFile),e=0!==this.$virtualProductContainer.find(o.default.invalidField).length;t||e?this.showContent():this.hideContent()}},{key:"hideContent",value:function(){this.$fileContentContainer.addClass("d-none")}},{key:"showContent",value:function(){this.$fileContentContainer.removeClass("d-none")}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=l},34508:(t,e)=>{"use strict";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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ e.default={methods:{isSelected:function(t,e,n){return!!Object.prototype.hasOwnProperty.call(n,e.id)&&n[e.id].attributes.includes(t)}}}},2341:(t,e)=>{"use strict";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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ e.default={productModelUpdated:"productModelUpdated",updatedProductModel:"updatedProductModel",updatedProductField:"updatedProductField",updateSubmitButtonState:"updateSubmitButtonState",customizations:{rowRemoved:"customizationRowRemoved",rowAdded:"customizationRowAdded"},dropzone:{addedFile:"addedfile",error:"error",success:"success",languageSelected:"languageSelected",photoswipe:{destroy:"destroy",closeGallery:"closeGallery"}},combinations:{refreshPage:"refreshPage",refreshCombinationList:"refreshCombinationList",updateAttributeGroups:"updateAttributeGroups",combinationGeneratorReady:"combinationGeneratorReady",openCombinationsGenerator:"openCombinationsGenerator",clearFilters:"clearFilters",selectCombination:"selectCombination"}}},26141:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={productForm:"form[name=product]",productTypeSelector:"#product_header_type",productType:{STANDARD:"standard",PACK:"pack",VIRTUAL:"virtual",COMBINATIONS:"combinations"},invalidField:".is-invalid",productFormSubmitButton:".product-form-save-button",navigationBar:"#form-nav",dropzoneImagesContainer:".product-image-dropzone",featureValues:{collectionContainer:".feature-values-collection",collectionRowsContainer:".feature-values-collection > .col-sm",collectionRow:"div.row.product-feature",featureSelect:"select.feature-selector",featureValueSelect:"select.feature-value-selector",customValueInput:".custom-values input",customFeatureIdInput:"input.custom-value-id",deleteFeatureValue:"button.delete-feature-value",addFeatureValue:".feature-value-add-button"},customizations:{customizationsContainer:".product-customizations-collection",customizationFieldsList:".product-customizations-collection ul",addCustomizationBtn:".add-customization-btn",removeCustomizationBtn:".remove-customization-btn",customizationFieldRow:".customization-field-row"},combinations:{navigationTab:"#combinations-tab-nav",externalCombinationTab:"#external-combination-tab",preloader:"#combinations-preloader",emptyState:"#combinations-empty-state",combinationsPaginatedList:"#combinations-paginated-list",combinationsContainer:"#combination_list",combinationsFiltersContainer:"#combinations_filters",combinationsGeneratorContainer:"#product_combinations_generator",combinationsTable:"#combination_list table",combinationsTableBody:"#combination_list table tbody",combinationIdInputsSelector:".combination-id-input",isDefaultInputsSelector:".combination-is-default-input",removeCombinationSelector:".remove-combination-item",combinationName:"form .card-header span",paginationContainer:"#combinations-pagination",loadingSpinner:"#productCombinationsLoading",quantityInputWrapper:".combination-quantity",impactOnPriceInputWrapper:".combination-impact-on-price",referenceInputWrapper:".combination-reference",sortableColumns:".ps-sortable-column",combinationItemForm:{quantityKey:"combination_item[quantity][value]",impactOnPriceKey:"combination_item[impact_on_price][value]",referenceKey:"combination_item[reference][value]",tokenKey:"combination_item[_token]"},editionForm:'form[name="combination_form"]',editionFormInputs:'form[name="combination_form"] input, form[name="combination_form"] textarea, form[name="combination_form"] select',editCombinationButtons:".edit-combination-item",tableRow:{combinationImg:".combination-image",combinationCheckbox:function(t){return"#combination_list_combinations_"+t+"_is_selected"},combinationIdInput:function(t){return"#combination_list_combinations_"+t+"_combination_id"},combinationNameInput:function(t){return"#combination_list_combinations_"+t+"_name"},referenceInput:function(t){return"#combination_list_combinations_"+t+"_reference_value"},impactOnPriceInput:function(t){return"#combination_list_combinations_"+t+"_impact_on_price_value"},finalPriceTeInput:function(t){return"#combination_list_combinations_"+t+"_final_price_te"},quantityInput:function(t){return"#combination_list_combinations_"+t+"_quantity_value"},isDefaultInput:function(t){return"#combination_list_combinations_"+t+"_is_default"},editButton:function(t){return"#combination_list_combinations_"+t+"_edit"},deleteButton:function(t){return"#combination_list_combinations_"+t+"_delete"}},editModal:"#combination-edit-modal",images:{selectorContainer:".combination-images-selector",imageChoice:".combination-image-choice",checkboxContainer:".form-check",checkbox:"input[type=checkbox]"},scrollBar:".attributes-list-overflow",searchInput:"#product-combinations-generate .attributes-search",generateCombinationsButton:".generate-combinations-button"},virtualProduct:{container:".virtual-product-file-container",fileContentContainer:".virtual-product-file-content"},dropzone:{configuration:{fileManager:".openfilemanager"},photoswipe:{element:".pswp"},dzTemplate:".dz-template",dzPreview:".dz-preview",sortableContainer:"#product-images-dropzone",sortableItems:"div.dz-preview:not(.disabled)",dropzoneContainer:".dropzone-container",checkbox:".md-checkbox input",shownTooltips:".tooltip.show",savedImageContainer:function(t){return'.dz-preview[data-id="'+t+'"]'},savedImage:function(t){return'.dz-preview[data-id="'+t+'"] img'},coveredPreview:".dz-preview.is-cover",windowFileManager:".dropzone-window-filemanager"},suppliers:{productSuppliers:"#product_options_suppliers",combinationSuppliers:"#combination_form_suppliers"},seo:{container:"#product_seo_serp",defaultTitle:".serp-default-title:input",watchedTitle:".serp-watched-title:input",defaultDescription:".serp-default-description",watchedDescription:".serp-watched-description",watchedMetaUrl:".serp-watched-url:input",redirectOption:{typeInput:"#product_seo_redirect_option_type",targetInput:"#product_seo_redirect_option_target"}},jsTabs:".js-tabs",jsArrow:".js-arrow",jsNavTabs:".js-nav-tabs",toggleTab:'[data-toggle="tab"]',formContentTab:"#form_content > .form-contenttab",leftArrow:".left-arrow",rightArrow:".right-arrow",footer:{previewUrlButton:".preview-url-button",deleteProductButton:".delete-product-button"},categories:{categoriesContainer:".js-categories-container",categoryTree:".js-categories-tree",treeElement:".category-tree-element",treeElementInputs:".category-tree-inputs",checkboxInput:"[type=checkbox]",checkedCheckboxInputs:"[type=checkbox]:checked",checkboxName:function(t){return"product[categories][product_categories]["+t+"][is_associated]"},materialCheckbox:".md-checkbox",radioInput:"[type=radio]",defaultRadioInput:"[type=radio]:checked",radioName:function(t){return"product[categories][product_categories]["+t+"][is_default]"},tagsContainer:"#categories-tags-container",searchInput:"#ps-select-product-category",fieldset:".tree-fieldset",loader:".categories-tree-loader",childrenList:".children-list",everyItems:".less, .more",expandAllButton:"#categories-tree-expand",reduceAllButton:"#categories-tree-reduce"},modules:{previewContainer:".module-render-container.all-modules",previewButton:".modules-list-button",selectorContainer:".module-selection",moduleSelector:".modules-list-select",selectorPreviews:".module-selection .module-render-container",selectorPreview:function(t){return".module-selection .module-render-container."+t},contentContainer:".module-contents",moduleContents:".module-contents .module-render-container",moduleContent:function(t){return".module-contents .module-render-container."+t}}}},57867:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllAttributeGroups=e.getProductAttributeGroups=void 0;var r=o(n(94942)),i=o(n(36803));function o(t){return t&&t.__esModule?t:{default:t}}var a,s,l=new(o(n(95778)).default),c=window.$,u=e.getProductAttributeGroups=(a=(0,i.default)(r.default.mark((function t(e){return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",c.get(l.generate("admin_products_attribute_groups",{productId:e})));case 1:case"end":return t.stop()}}),t,void 0)}))),function(t){return a.apply(this,arguments)}),p=e.getAllAttributeGroups=(s=(0,i.default)(r.default.mark((function t(){return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",c.get(l.generate("admin_all_attribute_groups")));case 1:case"end":return t.stop()}}),t,void 0)}))),function(){return s.apply(this,arguments)}); /** * 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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default={getProductAttributeGroups:u,getAllAttributeGroups:p}},13014:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCategories=void 0;var r=o(n(94942)),i=o(n(36803));function o(t){return t&&t.__esModule?t:{default:t}}var a,s=new(o(n(95778)).default),l=window.$,c=e.getCategories=(a=(0,i.default)(r.default.mark((function t(){return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l.get(s.generate("admin_categories_get_categories_tree")));case 1:case"end":return t.stop()}}),t,void 0)}))),function(){return a.apply(this,arguments)}); /** * 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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default={getCategories:c}},73927:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(99663)),i=a(n(22600)),o=a(n(95778));function a(t){return t&&t.__esModule?t:{default:t}}var s=window.$,l=function(){function t(e){(0,r.default)(this,t),this.productId=e,this.router=new o.default,this.filters={},this.orderBy=null,this.orderWay=null}return(0,i.default)(t,[{key:"fetch",value:function(t,e){var n="product_combinations_"+this.productId,r={};return r.productId=this.productId,r[n]={},r[n].offset=t,r[n].limit=e,r[n].filters=this.filters,null!==this.orderBy&&(r[n].orderBy=this.orderBy),null!==this.orderWay&&(r[n].sortOrder=this.orderWay),s.get(this.router.generate("admin_products_combinations",r))}},{key:"removeCombination",value:function(t){return s.ajax({url:this.router.generate("admin_products_combinations_remove_combination",{combinationId:t}),type:"DELETE"})}},{key:"updateListedCombination",value:function(t,e){return s.ajax({url:this.router.generate("admin_products_combinations_update_combination_from_listing",{combinationId:t}),data:e,type:"PATCH"})}},{key:"generateCombinations",value:function(t){return s.ajax({url:this.router.generate("admin_products_combinations_generate",{productId:this.productId}),data:t,method:"POST"})}},{key:"getCombinationIds",value:function(){return s.get(this.router.generate("admin_products_combinations_ids",{productId:this.productId}))}},{key:"setOrderBy",value:function(t,e){this.orderBy=t,this.orderWay="desc"===e.toLowerCase()?"DESC":"ASC"}},{key:"getFilters",value:function(){return this.filters}},{key:"setFilters",value:function(t){this.filters=t}}]),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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default=l},86211:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeProductImage=e.saveImagePosition=e.replaceImage=e.saveImageInformations=e.getProductImages=void 0;var r=a(n(88902)),i=a(n(94942)),o=a(n(36803));function a(t){return t&&t.__esModule?t:{default:t}}var s,l,c,u,p,m=new(a(n(95778)).default),d=window.$,f=e.getProductImages=(s=(0,o.default)(i.default.mark((function t(e){var n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=m.generate("admin_products_v2_get_images",{productId:e}),t.abrupt("return",d.get(n));case 2:case"end":return t.stop()}}),t,void 0)}))),function(t){return s.apply(this,arguments)}),h=e.saveImageInformations=(l=(0,o.default)(i.default.mark((function t(e,n,o){var a,s;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=m.generate("admin_products_v2_update_image",{productImageId:e.image_id}),(s={})[o+"[is_cover]"]=e.is_cover?1:0,(0,r.default)(e.legends).forEach((function(t){s[o+"[legend]["+t+"]"]=e.legends[t]})),s[o+"[_token]"]=n,t.abrupt("return",d.ajax(a,{method:"PATCH",data:s}));case 6:case"end":return t.stop()}}),t,void 0)}))),function(t,e,n){return l.apply(this,arguments)}),g=e.replaceImage=(c=(0,o.default)(i.default.mark((function t(e,n,r,o){var a,s;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=m.generate("admin_products_v2_update_image",{productImageId:e.image_id}),(s=new FormData).append(r+"[file]",n),s.append(r+"[_token]",o),s.append("_method","PATCH"),t.abrupt("return",d.ajax(a,{method:"POST",data:s,processData:!1,contentType:!1}));case 6:case"end":return t.stop()}}),t,void 0)}))),function(t,e,n,r){return c.apply(this,arguments)}),v=e.saveImagePosition=(u=(0,o.default)(i.default.mark((function t(e,n,r,o){var a,s;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=m.generate("admin_products_v2_update_image",{productImageId:e}),(s={})[r+"[position]"]=n,s[r+"[_token]"]=o,t.abrupt("return",d.ajax(a,{method:"PATCH",data:s}));case 5:case"end":return t.stop()}}),t,void 0)}))),function(t,e,n,r){return u.apply(this,arguments)}),b=e.removeProductImage=(p=(0,o.default)(i.default.mark((function t(e){var n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=m.generate("admin_products_v2_delete_image",{productImageId:e}),t.abrupt("return",d.post(n));case 2:case"end":return t.stop()}}),t,void 0)}))),function(t){return p.apply(this,arguments)}); /** * 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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */e.default={getProductImages:f,saveImageInformations:h,replaceImage:g,saveImagePosition:v,removeProductImage:b}},67285:(t,e)=>{"use strict";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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ e.default=function(t){var e=t+"_product_suppliers",n=function(t,n){return e+"_"+t+"_"+n};return{productSuppliersCollection:""+e,supplierIdsInput:t+"_supplier_ids",defaultSupplierInput:t+"_default_supplier_id",productSuppliersTable:e+" table",productsSuppliersTableBody:e+" table tbody",defaultSupplierClass:"default-supplier",productSupplierRow:{supplierIdInput:function(t){return n(t,"supplier_id")},supplierNameInput:function(t){return n(t,"supplier_name")},productSupplierIdInput:function(t){return n(t,"product_supplier_id")},referenceInput:function(t){return n(t,"reference")},priceInput:function(t){return n(t,"price_tax_excluded")},currencyIdInput:function(t){return n(t,"currency_id")},supplierNamePreview:function(t){return"#product_supplier_row_"+t+" .supplier_name .preview"}},checkboxContainer:".form-check"}}},32517:(t,e,n)=>{"use strict";var r,i=n(72100),o=(r=i)&&r.__esModule?r:{default:r};var a=[]; /** * 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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */function s(t){a.forEach((function(e){if(t.path&&t.path.length){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(88902)),i=a(n(99663)),o=a(n(22600));function a(t){return t&&t.__esModule?t:{default: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 * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */var s=function(){function t(){(0,i.default)(this,t)}return(0,o.default)(t,[{key:"interpolate",value:function(t,e){if(!e)return[t];var n=t;return(0,r.default)(e).forEach((function(t){var r=t;-1===r.indexOf("%")&&-1===r.indexOf("{")&&(r="{"+r+"}"),n=n.replace(r,e[t])})),[n]}}]),t}();e.default=s},66313:(t,e)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z={name:"Serp",props:{url:{type:String,default:"https://www.example.com/"},description:{type:String,default:""},title:{type:String,default:""}},computed:{displayedTitle:function(){return this.title.length>70?this.title.substring(0,70)+"...":this.title},displayedDescription:function(){return this.description.length>150?this.description.substring(0,150)+"...":this.description}}}},13517:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r=p(n(94942)),i=p(n(36803)),o=p(n(73927)),a=p(n(26141)),s=p(n(2341)),l=p(n(56995)),c=p(n(95778)),u=p(n(36125));function p(t){return t&&t.__esModule?t:{default:t}}var m,d=window.$,f=s.default.combinations,h=new c.default;e.Z={name:"CombinationModal",components:{Modal:l.default,History:u.default},data:function(){return{combinationsService:null,combinationIds:[],selectedCombinationId:null,selectedCombinationName:null,previousCombinationId:null,nextCombinationId:null,editCombinationUrl:"",loadingCombinationForm:!1,submittingCombinationForm:!1,combinationList:null,hasSubmittedCombinations:!1,combinationsHistory:[],showConfirm:!1,temporarySelection:null,isFormUpdated:!1,isClosing:!1}},props:{productId:{type:Number,required:!0},eventEmitter:{type:Object,required:!0},emptyImageUrl:{type:String,required:!0}},mounted:function(){var t=this;this.combinationList=d(a.default.combinations.combinationsContainer),this.combinationsService=new o.default(this.productId),this.initCombinationIds(),this.watchEditButtons(),this.eventEmitter.on(f.refreshCombinationList,(function(){return t.initCombinationIds()}))},methods:{watchEditButtons:function(){var t=this;this.combinationList.on("click",a.default.combinations.editCombinationButtons,(function(e){e.stopImmediatePropagation();var n=d(e.target).closest("tr");t.selectedCombinationId=Number(n.find(a.default.combinations.combinationIdInputsSelector).val()),t.hasSubmittedCombinations=!1}))},initCombinationIds:(m=(0,i.default)(r.default.mark((function t(){return r.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.combinationsService.getCombinationIds();case 2:this.combinationIds=t.sent;case 3:case"end":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)}),frameLoading:function(){this.applyIframeStyling()},onFrameLoaded:function(){var t=this;this.loadingCombinationForm=!1,this.submittingCombinationForm=!1;var e=this.$refs.iframe.contentDocument.body;this.applyIframeStyling(),this.selectedCombinationName=e.querySelector(a.default.combinations.combinationName).innerHTML,e.querySelectorAll(a.default.combinations.editionFormInputs).forEach((function(e){e.addEventListener("keyup",(function(){t.isFormUpdated=!0})),e.addEventListener("change",(function(){t.isFormUpdated=!0})),t.$refs.iframe.contentDocument.addEventListener("datepickerChange",(function(){t.isFormUpdated=!0}))}))},applyIframeStyling:function(){this.$refs.iframe.contentDocument.body.style.overflowX="hidden"},tryClose:function(){this.isFormUpdated?(this.isClosing=!0,this.showConfirmModal()):this.closeModal()},closeModal:function(){this.submittingCombinationForm||(this.hasSubmittedCombinations&&this.eventEmitter.emit(f.refreshPage),this.hasSubmittedCombinations=!1,this.selectedCombinationId=null,this.combinationsHistory=[])},navigateToCombination:function(t){null!==t&&(this.isFormUpdated?(this.temporarySelection=t,this.showConfirmModal()):this.selectedCombinationId=t)},showPrevious:function(){this.navigateToCombination(this.previousCombinationId)},showNext:function(){this.navigateToCombination(this.nextCombinationId)},selectCombination:function(t){this.navigateToCombination(t.id)},confirmSelection:function(){this.isClosing?(this.closeModal(),this.isClosing=!1,this.hideConfirmModal()):(this.selectedCombinationId=this.temporarySelection,this.hideConfirmModal())},submitForm:function(){this.submittingCombinationForm=!0;var t=this.$refs.iframe.contentDocument.body;t.querySelector(a.default.combinations.editionForm).submit(),this.hasSubmittedCombinations=!0;var e={id:this.selectedCombinationId,title:t.querySelector(a.default.combinations.combinationName).innerHTML};(this.combinationsHistory[0]&&this.combinationsHistory[0].id!==e.id||!this.combinationsHistory.length)&&(this.combinationsHistory=this.combinationsHistory.filter((function(t){return t.id!==e.id})),this.combinationsHistory.unshift(e)),this.isFormUpdated=!1},showConfirmModal:function(){this.showConfirm=!0},hideConfirmModal:function(){this.isClosing=!1,this.showConfirm=!1},preventClose:function(t){t.stopPropagation(),t.preventDefault()}},watch:{selectedCombinationId:function(t){if(this.isFormUpdated=!1,null===t)return this.previousCombinationId=null,this.nextCombinationId=null,void(this.editCombinationUrl=null);this.loadingCombinationForm=!0,this.editCombinationUrl=h.generate("admin_products_combinations_edit_combination",{combinationId:t,liteDisplaying:1});var e=this.combinationIds.indexOf(t);-1===e?(this.previousCombinationId=null,this.nextCombinationId=null):(this.previousCombinationId=0===e?null:this.combinationIds[e-1],this.nextCombinationId=e===this.combinationIds.length-1?null:this.combinationIds[e+1])}}}},19177:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r=o(n(2341)),i=o(n(51063));function o(t){return t&&t.__esModule?t:{default:t}}var a=r.default.combinations;e.Z={name:"CombinationHistory",data:function(){return{paginatedDatas:[],currentPage:1}},components:{Pagination:i.default},props:{combinationsList:{type:Array,default:function(){return[]}},selectedCombination:{type:Number,required:!0},emptyImageUrl:{type:String,required:!0}},computed:{areCombinationsNotEmpty:function(){return this.combinationsList.length>0}},mounted:function(){var t=this;this.$parent.$on(a.selectCombination,(function(e){t.selectedCombination={id:e}}))},methods:{selectCombination:function(t){this.$emit(a.selectCombination,t)},preventClose:function(t){t.stopPropagation(),t.preventDefault()},constructDatas:function(t){this.paginatedDatas=t.paginatedDatas,this.currentPage=t.currentPage},isSelected:function(t){return this.selectedCombination===t||1===this.combinationsList.length?"selected":null}}}},76182:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r=d(n(46593)),i=d(n(94942)),o=d(n(36803)),a=d(n(95778)),s=n(86211),l=d(n(26141)),c=d(n(2341)),u=d(n(56995)),p=d(n(69671)),m=d(n(9080));function d(t){return t&&t.__esModule?t:{default:t}}var f,h,g,v,b,x=window.$,y=new a.default,_=l.default.dropzone,w=c.default.dropzone;e.Z={name:"Dropzone",data:function(){return{dropzone:null,configuration:{url:y.generate("admin_products_v2_add_image"),clickable:_.configuration.fileManager,previewTemplate:null,thumbnailWidth:130,thumbnailHeight:130,thumbnailMethod:"crop"},files:[],selectedFiles:[],translations:[],loading:!0,selectedLocale:null,buttonLoading:!1,isModalShown:!1,galleryOpened:!1}},props:{productId:{type:Number,required:!0},locales:{type:Array,required:!0},formName:{type:String,required:!0},token:{type:String,required:!0}},components:{DropzoneWindow:p.default,Modal:u.default,DropzonePhotoSwipe:m.default},computed:{},mounted:function(){this.watchLocaleChanges(),this.initProductImages()},methods:{watchLocaleChanges:function(){var t=this;this.selectedLocale=this.locales[0],window.prestashop.instance.eventEmitter.on(w.languageSelected,(function(e){var n=e.selectedLocale;t.locales.forEach((function(e){e.iso_code===n&&(t.selectedLocale=e)}))}))},initProductImages:(b=(0,o.default)(i.default.mark((function t(){var e,n=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,s.getProductImages)(this.productId);case 3:e=t.sent,this.loading=!1,this.initDropZone(),e.forEach((function(t){n.dropzone.displayExistingFile(t,t.image_url)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),window.$.growl.error({message:t.t0});case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(){return b.apply(this,arguments)}),initDropZone:function(){var t=this;this.configuration.previewTemplate=document.querySelector(_.dzTemplate).innerHTML,this.configuration.paramName=this.formName+"[file]",this.configuration.method="POST",this.configuration.params={},this.configuration.params[this.formName+"[product_id]"]=this.productId,this.configuration.params[this.formName+"[_token]"]=this.token,this.sortableContainer=x("#product-images-dropzone"),this.dropzone=new window.Dropzone(_.dropzoneContainer,this.configuration),this.sortableContainer.sortable({items:_.sortableItems,opacity:.9,containment:"parent",distance:32,tolerance:"pointer",cursorAt:{left:64,top:64},cancel:".disabled",stop:function(e,n){var r=n.item.index()-1;t.updateImagePosition(n.item.data("id"),r)},start:function(e,n){t.sortableContainer.find(_.dzPreview).css("zIndex",1),n.item.css("zIndex",10)}}),this.dropzone.on(w.addedFile,(function(e){e.previewElement.dataset.id=e.image_id,e.is_cover&&e.previewElement.classList.add("is-cover"),e.previewElement.addEventListener("click",(function(){var n=e.previewElement.querySelector(_.checkbox);n.checked=!n.checked,n.checked?t.selectedFiles.includes(e)||(t.selectedFiles.push(e),e.previewElement.classList.toggle("selected")):(t.selectedFiles=t.selectedFiles.filter((function(t){return t!==e})),e.previewElement.classList.toggle("selected"))})),t.files.push(e)})),this.dropzone.on(w.error,(function(e,n){x.growl.error({message:n.error}),t.dropzone.removeFile(e)})),this.dropzone.on(w.success,(function(t,e){t.image_id=e.image_id,t.is_cover=e.is_cover,t.legends=e.legends,t.previewElement.dataset.id=t.image_id,t.is_cover&&t.previewElement.classList.add("is-cover")}))},selectAll:function(){this.selectedFiles=this.files,this.editCheckboxes(!0)},unselectAll:function(){this.editCheckboxes(!1),this.selectedFiles=[],this.removeTooltips()},removeSelection:(v=(0,o.default)(i.default.mark((function t(){var e,n,a,l=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!1,n=!1,a=this.selectedFiles.length,t.next=5,r.default.all(this.selectedFiles.map(function(){var t=(0,o.default)(i.default.mark((function t(r){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,s.removeProductImage)(r.image_id);case 3:l.dropzone.removeFile(r),l.files=l.files.filter((function(t){return r!==t})),l.selectedFiles=l.selectedFiles.filter((function(t){return r!==t})),r.is_cover&&(n=!0),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),e=t.t0.responseJSON?t.t0.responseJSON.error:t.t0;case 12:case"end":return t.stop()}}),t,l,[[0,9]])})));return function(e){return t.apply(this,arguments)}}()));case 5:this.removeTooltips(),e?x.growl.error({message:e}):x.growl({message:this.$t("delete.success",{"%filesNb%":a})}),n&&this.resetDropzone(),this.hideModal();case 9:case"end":return t.stop()}}),t,this)}))),function(){return v.apply(this,arguments)}),editCheckboxes:function(t){this.selectedFiles.forEach((function(e){var n=e.previewElement.querySelector(_.checkbox);n.checked=void 0!==t?t:!n.checked,e.previewElement.classList.toggle("selected",t)}))},removeTooltips:function(){x(_.shownTooltips).each((function(t,e){x(e).remove()}))},saveSelectedFile:(g=(0,o.default)(i.default.mark((function t(e,n){var r,o,a,l;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.selectedFiles.length){t.next=2;break}return t.abrupt("return");case 2:return this.buttonLoading=!0,(r=this.selectedFiles[0]).is_cover=n,r.legends=e,t.prev=6,t.next=9,(0,s.saveImageInformations)(r,this.token,this.formName);case 9:o=t.sent,a=document.querySelector(_.savedImageContainer(o.image_id)),o.is_cover&&(a.classList.contains("is-cover")||((l=document.querySelector(_.coveredPreview))&&l.classList.remove("is-cover"),a.classList.add("is-cover"),this.files=this.files.map((function(t){return t.image_id!==o.image_id&&t.is_cover&&(t.is_cover=!1),t})))),x.growl({message:this.$t("window.settingsUpdated")}),this.buttonLoading=!1,t.next=20;break;case 16:t.prev=16,t.t0=t.catch(6),x.growl.error({message:t.t0.error}),this.buttonLoading=!1;case 20:case"end":return t.stop()}}),t,this,[[6,16]])}))),function(t,e){return g.apply(this,arguments)}),manageReplacedFile:(h=(0,o.default)(i.default.mark((function t(e){var n,r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.selectedFiles[0],this.buttonLoading=!0,t.prev=2,t.next=5,(0,s.replaceImage)(n,e.target.files[0],this.formName,this.token);case 5:r=t.sent,document.querySelector(_.savedImage(r.image_id)).src=r.image_url,x.growl({message:this.$t("window.imageReplaced")}),this.buttonLoading=!1,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(2),x.growl.error({message:t.t0.responseJSON.error}),this.buttonLoading=!1;case 16:case"end":return t.stop()}}),t,this,[[2,12]])}))),function(t){return h.apply(this,arguments)}),updateImagePosition:(f=(0,o.default)(i.default.mark((function t(e,n){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,s.saveImagePosition)(e,n,this.formName,this.token);case 3:t.next=9;break;case 5:t.prev=5,t.t0=t.catch(0),this.sortableContainer.sortable("cancel"),x.growl.error({message:t.t0.responseJSON.error});case 9:case"end":return t.stop()}}),t,this,[[0,5]])}))),function(t,e){return f.apply(this,arguments)}),resetDropzone:function(){var t=this;this.loading=!0,this.files.forEach((function(e){t.dropzone.removeFile(e)})),this.dropzone.destroy(),this.dropzone=null,this.initProductImages()},showModal:function(){this.isModalShown=!0},hideModal:function(){this.isModalShown=!1},toggleGallery:function(){this.galleryOpened=!this.galleryOpened}}}},99681:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r=s(n(58832)),i=s(n(38411)),o=s(n(26141)),a=s(n(2341));function s(t){return t&&t.__esModule?t:{default:t}}var l=o.default.dropzone.photoswipe,c=a.default.dropzone.photoswipe;e.Z={name:"DropzonePhotoSwipe",props:{files:{type:Array,default:function(){return[]}}},mounted:function(){var t=this,e=document.querySelector(l.element);if(e){var n={index:0,shareButtons:[{id:"download",label:this.$t("window.downloadImage"),url:"{{raw_image_url}}",download:!0}]},o=this.files.map((function(t){return t.src=t.dataURL,t.h=t.height,t.w=t.width,t})),a=new r.default(e,i.default,o,n);a.init(),a.listen(c.destroy,(function(){t.$emit(c.closeGallery)}))}},methods:{}}},30356:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r,i=n(26141);var o=((r=i)&&r.__esModule?r:{default:r}).default.dropzone;e.Z={name:"DropzoneWindow",props:{selectedFiles:{type:Array,default:function(){return[]}},files:{type:Array,default:function(){return[]}},locales:{type:Array,required:!0},selectedLocale:{type:Object,default:function(){}},loading:{type:Boolean,default:!1}},data:function(){return{captionValue:{},coverData:!1}},watch:{selectedFiles:function(t){var e=this;t.length>1?(this.captionValue={},this.locales.forEach((function(t){e.captionValue[t]=""}))):(this.captionValue=this.selectedFile.legends,this.coverData=this.selectedFile.is_cover)}},computed:{selectedFile:function(){return 1===this.selectedFiles.length?this.selectedFiles[0]:null},isCover:function(){return!(!this.selectedFile||!this.selectedFile.is_cover)},showCoverTooltip:function(){return!!this.isCover&&"pstooltip"}},mounted:function(){window.prestaShopUiKit.initToolTips(),this.captionValue=this.selectedFile.legends,this.coverData=this.selectedFile.is_cover},updated:function(){window.prestaShopUiKit.initToolTips()},methods:{watchFiles:function(t){this.$emit("replacedFile",t)},openFileManager:function(){document.querySelector(o.windowFileManager).click()},coverChanged:function(t){this.coverData=t.target.value},prevent:function(t){t.preventDefault(),t.stopPropagation()}}}},84813:(t,e)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z={name:"FilterDropdown",data:function(){return{selectedFilters:[]}},props:{parentId:{type:Number,required:!0},children:{type:Array,required:!0},label:{type:String,required:!0}},mounted:function(){this.$parent.$on("clearAll",this.clear)},computed:{nbFiles:function(){return this.selectedFilters.length>0?"("+this.selectedFilters.length+")":null}},methods:{isChecked:function(t){return this.selectedFilters.includes(t)},toggleFilter:function(t){this.selectedFilters.includes(t)?(this.$emit("removeFilter",t,this.parentId),this.selectedFilters=this.selectedFilters.filter((function(e){return e.id!==t.id}))):(this.$emit("addFilter",t,this.parentId),this.selectedFilters.push(t))},preventClose:function(t){t.stopPropagation()},clear:function(){this.selectedFilters=[]}}}},80003:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r=o(n(47518)),i=o(n(93858));function o(t){return t&&t.__esModule?t:{default:t}}var a=o(n(2341)).default.combinations;e.Z={name:"Filters",data:function(){return{selectedFilters:{}}},props:{filters:{type:Array,required:!0},eventEmitter:{type:Object,required:!0}},components:{FilterDropdown:i.default},computed:{selectedFiltersNumber:function(){return this.selectedFilters?(0,r.default)(this.selectedFilters).reduce((function(t,e){return t+e.length}),0):0}},mounted:function(){var t=this;this.eventEmitter.on(a.clearFilters,(function(){return t.clearAll()}))},methods:{addFilter:function(t,e){this.selectedFilters[e]||this.$set(this.selectedFilters,e,[]),this.selectedFilters[e].push(t),this.updateFilters()},removeFilter:function(t,e){this.selectedFilters[e]&&(this.selectedFilters[e]=this.selectedFilters[e].filter((function(e){return t.id!==e.id})),this.updateFilters())},clearAll:function(){this.selectedFilters=[],this.$emit("clearAll"),this.eventEmitter.emit(a.updateAttributeGroups,this.selectedFilters)},updateFilters:function(){this.eventEmitter.emit(a.updateAttributeGroups,this.selectedFilters)}}}},58530:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r=c(n(88902)),i=c(n(34508)),o=c(n(26141)),a=c(n(84772)),s=c(n(53943)),l=c(n(73481));function c(t){return t&&t.__esModule?t:{default:t}}var u=window.$,p=o.default.combinations;e.Z={name:"AttributesSelector",props:{attributeGroups:{type:Array,default:function(){return[]}},selectedAttributeGroups:{type:Object,default:function(){}}},mixins:[i.default],data:function(){return{dataSetConfig:{},searchSource:{},scrollbar:null,hasGeneratedCombinations:!1,checkboxList:[]}},mounted:function(){this.initDataSetConfig(),this.scrollbar=new a.default(p.scrollBar);var t=u(p.searchInput);new l.default(t,this.dataSetConfig)},watch:{selectedAttributeGroups:function(t){(0,r.default)(t).length<=0&&(this.checkboxList=[])}},methods:{initDataSetConfig:function(){var t=this,e=this.getSearchableAttributes();this.searchSource=new s.default({datumTokenizer:s.default.tokenizers.obj.whitespace("name","value","color","group_name"),queryTokenizer:s.default.tokenizers.whitespace,local:e});var n={source:this.searchSource,display:"name",value:"name",minLength:1,onSelect:function(e,n,r){var i={id:e.group_id,name:e.group_name};t.sendAddEvent(e,i),r.typeahead("val","")},onClose:function(t,e){return e.typeahead("val",""),!0},templates:{suggestion:function(t){return'
    '+t.group_name+": "+t.name+"
    "}}};this.dataSetConfig=n},getSearchableAttributes:function(){var t=this,e=[];return this.attributeGroups.forEach((function(n){n.attributes.forEach((function(r){t.isSelected(r,n,t.selectedAttributeGroups)||(r.group_name=n.name,r.group_id=n.id,e.push(r))}))})),e},getSelectedClass:function(t,e){return this.isSelected(t,e,this.selectedAttributeGroups)?"selected":"unselected"},sendRemoveEvent:function(t,e){this.$emit("removeSelected",{selectedAttribute:t,selectedAttributeGroup:e}),this.updateSearchableAttributes(),this.updateCheckboxes(e)},sendChangeEvent:function(t,e){this.$emit("changeSelected",{selectedAttribute:t,attributeGroup:e}),this.updateSearchableAttributes(),this.updateCheckboxes(e)},sendAddEvent:function(t,e){this.$emit("addSelected",{selectedAttribute:t,attributeGroup:e}),this.updateSearchableAttributes(),this.updateCheckboxes(e)},updateSearchableAttributes:function(){var t=this.getSearchableAttributes();this.searchSource.clear(),this.searchSource.add(t)},toggleAll:function(t){this.checkboxList.includes(t)?this.checkboxList=this.checkboxList.filter((function(e){return e.id!==t.id})):this.checkboxList.push(t),this.$emit("toggleAll",{attributeGroup:t,select:this.checkboxList.includes(t)})},updateCheckboxes:function(t){this.selectedAttributeGroups[t.id]&&!this.checkboxList.includes(t)&&this.selectedAttributeGroups[t.id].attributes.length===t.attributes.length?this.checkboxList.push(t):this.checkboxList=this.checkboxList.filter((function(e){return e.id!==t.id}))}}}},60054:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0});var r=f(n(88239)),i=f(n(88106)),o=f(n(94942)),a=f(n(36803)),s=f(n(88902)),l=f(n(73927)),c=f(n(23681)),u=f(n(34508)),p=n(57867),m=f(n(56995)),d=f(n(2341));function f(t){return t&&t.__esModule?t:{default:t}}var h,g,v=window.$,b=d.default.combinations;e.Z={name:"CombinationGenerator",data:function(){return{attributeGroups:[],selectedAttributeGroups:{},combinationsService:new l.default(this.productId),isModalShown:!1,preLoading:!0,loading:!1,scrollbar:null,hasGeneratedCombinations:!1}},props:{productId:{type:Number,required:!0},eventEmitter:{type:Object,required:!0}},mixins:[u.default],components:{Modal:m.default,AttributesSelector:c.default},computed:{generatedCombinationsNb:function(){var t=this,e=(0,s.default)(this.selectedAttributeGroups),n=0;return e.forEach((function(e){t.selectedAttributeGroups[e].attributes.length&&(0===n&&(n=1),n*=t.selectedAttributeGroups[e].attributes.length)})),n}},mounted:function(){var t=this;this.initAttributeGroups(),this.eventEmitter.on(b.openCombinationsGenerator,(function(){return t.showModal()}))},methods:{initAttributeGroups:(g=(0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,p.getAllAttributeGroups)();case 3:this.attributeGroups=t.sent,window.prestaShopUiKit.init(),this.preLoading=!1,this.eventEmitter.emit(b.combinationGeneratorReady),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),window.$.growl.error({message:t.t0});case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(){return g.apply(this,arguments)}),showModal:function(){this.preLoading||(document.querySelector("body").classList.add("overflow-hidden"),this.hasGeneratedCombinations=!1,this.selectedAttributeGroups={},this.isModalShown=!0)},closeModal:function(){this.isModalShown=!1,document.querySelector("body").classList.remove("overflow-hidden"),this.hasGeneratedCombinations&&this.eventEmitter.emit(b.refreshCombinationList)},generateCombinations:(h=(0,a.default)(o.default.mark((function t(){var e,n,r=this;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.loading=!0,e={attributes:{}},(0,s.default)(this.selectedAttributeGroups).forEach((function(t){e.attributes[t]=[],r.selectedAttributeGroups[t].attributes.forEach((function(n){e.attributes[t].push(n.id)}))})),t.prev=3,t.next=6,this.combinationsService.generateCombinations(e);case 6:n=t.sent,v.growl({message:this.$t("generator.success",{"%combinationsNb%":n.combination_ids.length})}),this.selectedAttributeGroups={},this.hasGeneratedCombinations=!0,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(3),t.t0.responseJSON&&t.t0.responseJSON.error?v.growl.error({message:t.t0.responseJSON.error}):v.growl.error({message:t.t0});case 15:this.loading=!1;case 16:case"end":return t.stop()}}),t,this,[[3,12]])}))),function(){return h.apply(this,arguments)}),changeSelected:function(t){var e=t.selectedAttribute,n=t.attributeGroup;this.isSelected(e,n,this.selectedAttributeGroups)?this.removeSelected({selectedAttribute:e,selectedAttributeGroup:n}):this.addSelected({selectedAttribute:e,attributeGroup:n})},addSelected:function(t){var e=t.selectedAttribute,n=t.attributeGroup;if(!this.isSelected(e,n,this.selectedAttributeGroups)){if(!this.selectedAttributeGroups[n.id]){var o=(0,i.default)({},n.id,{id:n.id,name:n.name,attributes:[]});this.selectedAttributeGroups=(0,r.default)({},this.selectedAttributeGroups,o)}this.selectedAttributeGroups[n.id].attributes.push(e)}},removeSelected:function(t){var e=t.selectedAttribute,n=t.selectedAttributeGroup;if(Object.prototype.hasOwnProperty.call(this.selectedAttributeGroups,n.id)){var r=this.selectedAttributeGroups[n.id];r.attributes=r.attributes.filter((function(t){return t.id!==e.id}))}},toggleAll:function(t){var e=this,n=t.attributeGroup;t.select?n.attributes.forEach((function(t){e.addSelected({selectedAttribute:t,attributeGroup:n})})):n.attributes.forEach((function(t){e.removeSelected({selectedAttribute:t,selectedAttributeGroup:n})}))}}}},59845:(t,e,n)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),n(32517),e.Z={name:"Modal",props:{confirmation:{type:Boolean,required:!1,default:!1},cancelLabel:{type:String,required:!1,default:function(){return this.$t("modal.cancel")}},confirmLabel:{type:String,required:!1,default:function(){return this.$t("modal.apply")}},closeLabel:{type:String,required:!1,default:function(){return this.$t("modal.close")}},modalTitle:{type:String,required:!1,default:function(){return""}}},methods:{close:function(){this.$emit("close")},confirm:function(){this.$emit("confirm")}}}},93356:(t,e)=>{"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z={name:"Pagination",data:function(){return{paginatedDatas:[],currentPage:1}},props:{datas:{type:Array,default:function(){return[]}},paginationLength:{type:Number,default:14}},methods:{goToPage:function(t){this.paginatedDatas[t-1]&&(this.currentPage=t,this.$emit("paginated",{paginatedDatas:this.paginatedDatas,currentPage:this.currentPage}))},constructDatas:function(t){this.paginatedDatas=[];for(var e=0;e{t.exports={default:n(47185),__esModule:!0}},52945:(t,e,n)=>{t.exports={default:n(56981),__esModule:!0}},85861:(t,e,n)=>{t.exports={default:n(45627),__esModule:!0}},32242:(t,e,n)=>{t.exports={default:n(33391),__esModule:!0}},88902:(t,e,n)=>{t.exports={default:n(98613),__esModule:!0}},47518:(t,e,n)=>{t.exports={default:n(48056),__esModule:!0}},46593:(t,e,n)=>{t.exports={default:n(80112),__esModule:!0}},36803:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(46593),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default((function(t,n){return function r(i,a){try{var s=e[i](a),l=s.value}catch(t){return void n(t)}if(!s.done)return o.default.resolve(l).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(l)}("next")}))}}},99663:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},22600:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(32242),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(){function t(t,e){for(var n=0;n{"use strict";e.__esModule=!0;var r,i=n(32242),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},88239:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(52945),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e{"use strict";e.__esModule=!0;var r,i=n(24043),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e{t.exports=n(20205)},44431:function(t,e,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,c="[BigNumber Error] ",u=c+"Number primitive has more than 15 significant digits: ",p=1e14,m=14,d=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,g=1e9;function v(t){var e=0|t;return t>0||t===e?e:e-1}function b(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rc^n?1:-1;for(s=(l=i.length)<(c=o.length)?l:c,a=0;ao[a]^n?1:-1;return l==c?0:l>c^n?1:-1}function y(t,e,n,r){if(tn||t!==l(t))throw Error(c+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function _(t){var e=t.c.length-1;return v(t.e/m)==e&&t.c[e]%2!=0}function w(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function k(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(++e>(r=t.length)){for(i=n,e-=r;--e;i+=n);t+=i}else eD?v.c=v.e=null:t.e=10;p/=10,c++);return void(c>D?v.c=v.e=null:(v.e=c,v.c=[t]))}g=String(t)}else{if(!a.test(g=String(t)))return i(v,g,f);v.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(c=g.indexOf("."))>-1&&(g=g.replace(".","")),(p=g.search(/e/i))>0?(c<0&&(c=p),c+=+g.slice(p+1),g=g.substring(0,p)):c<0&&(c=g.length)}else{if(y(e,2,q.length,"Base"),10==e)return V(v=new U(t),L+v.e+1,j);if(g=String(t),f="number"==typeof t){if(0*t!=0)return i(v,g,f,e);if(v.s=1/t<0?(g=g.slice(1),-1):1,U.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+t)}else v.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=q.slice(0,e),c=p=0,h=g.length;pc){c=h;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,p=-1,c=0;continue}return i(v,String(t),f,e)}f=!1,(c=(g=r(g,e,10,v.s)).indexOf("."))>-1?g=g.replace(".",""):c=g.length}for(p=0;48===g.charCodeAt(p);p++);for(h=g.length;48===g.charCodeAt(--h););if(g=g.slice(p,++h)){if(h-=p,f&&U.DEBUG&&h>15&&(t>d||t!==l(t)))throw Error(u+v.s*t);if((c=c-p-1)>D)v.c=v.e=null;else if(c=F)?w(l,a):k(l,a,"0");else if(o=(t=V(new U(t),e,n)).e,s=(l=b(t.c)).length,1==r||2==r&&(e<=o||o<=M)){for(;ss){if(--e>0)for(l+=".";e--;l+="0");}else if((e+=o-s)>0)for(o+1==s&&(l+=".");e--;l+="0");return t.s<0&&i?"-"+l:l}function W(t,e){for(var n,r=1,i=new U(t[0]);r=10;i/=10,r++);return(n=r+n*m-1)>D?t.c=t.e=null:n=10;c/=10,i++);if((o=e-i)<0)o+=m,a=e,h=(u=g[d=0])/v[i-a-1]%10|0;else if((d=s((o+1)/m))>=g.length){if(!r)break t;for(;g.length<=d;g.push(0));u=h=0,i=1,a=(o%=m)-m+1}else{for(u=c=g[d],i=1;c>=10;c/=10,i++);h=(a=(o%=m)-m+i)<0?0:u/v[i-a-1]%10|0}if(r=r||e<0||null!=g[d+1]||(a<0?u:u%v[i-a-1]),r=n<4?(h||r)&&(0==n||n==(t.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?u/v[i-a]:0:g[d-1])%10&1||n==(t.s<0?8:7)),e<1||!g[0])return g.length=0,r?(e-=t.e+1,g[0]=v[(m-e%m)%m],t.e=-e||0):g[0]=t.e=0,t;if(0==o?(g.length=d,c=1,d--):(g.length=d+1,c=v[m-o],g[d]=a>0?l(u/v[i-a]%v[a])*c:0),r)for(;;){if(0==d){for(o=1,a=g[0];a>=10;a/=10,o++);for(a=g[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(t.e++,g[0]==p&&(g[0]=1));break}if(g[d]+=c,g[d]!=p)break;g[d--]=0,c=1}for(o=g.length;0===g[--o];g.pop());}t.e>D?t.c=t.e=null:t.e=F?w(e,n):k(e,n,"0"),t.s<0?"-"+e:e)}return U.clone=t,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(c+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(y(n=t[e],0,g,e),L=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(y(n=t[e],0,8,e),j=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((n=t[e])&&n.pop?(y(n[0],-g,0,e),y(n[1],0,g,e),M=n[0],F=n[1]):(y(n,-g,g,e),M=-(F=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if((n=t[e])&&n.pop)y(n[0],-g,-1,e),y(n[1],1,g,e),P=n[0],D=n[1];else{if(y(n,-g,g,e),!n)throw Error(c+e+" cannot be zero: "+n);P=-(D=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if((n=t[e])!==!!n)throw Error(c+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw R=!n,Error(c+"crypto unavailable");R=n}else R=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(y(n=t[e],0,9,e),z=n),t.hasOwnProperty(e="POW_PRECISION")&&(y(n=t[e],0,g,e),N=n),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(n=t[e]))throw Error(c+e+" not an object: "+n);B=n}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(n=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+e+" invalid: "+n);q=n}}return{DECIMAL_PLACES:L,ROUNDING_MODE:j,EXPONENTIAL_AT:[M,F],RANGE:[P,D],CRYPTO:R,MODULO_MODE:z,POW_PRECISION:N,FORMAT:B,ALPHABET:q}},U.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!U.DEBUG)return!0;var e,n,r=t.c,i=t.e,o=t.s;t:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-g&&i<=g&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((e=(i+1)%m)<1&&(e+=m),String(r[0]).length==e){for(e=0;e=p||n!==l(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+t)},U.maximum=U.max=function(){return W(arguments,E.lt)},U.minimum=U.min=function(){return W(arguments,E.gt)},U.random=(o=9007199254740992,C=Math.random()*o&2097151?function(){return l(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,n,r,i,o,a=0,u=[],p=new U(O);if(null==t?t=L:y(t,0,g),i=s(t/m),R)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));a>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),e[a]=n[0],e[a+1]=n[1]):(u.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw R=!1,Error(c+"crypto unavailable");for(e=crypto.randomBytes(i*=7);a=9e15?crypto.randomBytes(7).copy(e,a):(u.push(o%1e14),a+=7);a=i/7}if(!R)for(;a=10;o/=10,a++);an-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var l,c,u,p,m,d,f,h,g=r.indexOf("."),v=L,x=j;for(g>=0&&(p=N,N=0,r=r.replace(".",""),d=(h=new U(i)).pow(r.length-g),N=p,h.c=e(k(b(d.c),d.e,"0"),10,o,t),h.e=h.c.length),u=p=(f=e(r,i,o,s?(l=q,t):(l=t,q))).length;0==f[--p];f.pop());if(!f[0])return l.charAt(0);if(g<0?--u:(d.c=f,d.e=u,d.s=a,f=(d=n(d,h,v,x,o)).c,m=d.r,u=d.e),g=f[c=u+v+1],p=o/2,m=m||c<0||null!=f[c+1],m=x<4?(null!=g||m)&&(0==x||x==(d.s<0?3:2)):g>p||g==p&&(4==x||m||6==x&&1&f[c-1]||x==(d.s<0?8:7)),c<1||!f[0])r=m?k(l.charAt(1),-v,l.charAt(0)):l.charAt(0);else{if(f.length=c,m)for(--o;++f[--c]>o;)f[c]=0,c||(++u,f=[1].concat(f));for(p=f.length;!f[--p];);for(g=0,r="";g<=p;r+=l.charAt(f[g++]));r=k(r,u,l.charAt(0))}return r}}(),n=function(){function t(t,e,n){var r,i,o,a,s=0,l=t.length,c=e%h,u=e/h|0;for(t=t.slice();l--;)s=((i=c*(o=t[l]%h)+(r=u*o+(a=t[l]/h|0)*c)%h*h+s)/n|0)+(r/h|0)+u*a,t[l]=i%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,a,s){var c,u,d,f,h,g,b,x,y,_,w,k,C,S,I,T,$,A=r.s==i.s?1:-1,E=r.c,O=i.c;if(!(E&&E[0]&&O&&O[0]))return new U(r.s&&i.s&&(E?!O||E[0]!=O[0]:O)?E&&0==E[0]||!O?0*A:A/0:NaN);for(y=(x=new U(A)).c=[],A=o+(u=r.e-i.e)+1,s||(s=p,u=v(r.e/m)-v(i.e/m),A=A/m|0),d=0;O[d]==(E[d]||0);d++);if(O[d]>(E[d]||0)&&u--,A<0)y.push(1),f=!0;else{for(S=E.length,T=O.length,d=0,A+=2,(h=l(s/(O[0]+1)))>1&&(O=t(O,h,s),E=t(E,h,s),T=O.length,S=E.length),C=T,w=(_=E.slice(0,T)).length;w=s/2&&I++;do{if(h=0,(c=e(O,_,T,w))<0){if(k=_[0],T!=w&&(k=k*s+(_[1]||0)),(h=l(k/I))>1)for(h>=s&&(h=s-1),b=(g=t(O,h,s)).length,w=_.length;1==e(g,_,b,w);)h--,n(g,T=10;A/=10,d++);V(x,o+(x.e=d+u*m-1)+1,a,f)}else x.e=u,x.r=+f;return x}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,T=/^\.([^.]+)$/,$=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,n,r){var i,o=n?e:e.replace(A,"");if($.test(o))t.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(S,(function(t,e,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?t:e})),r&&(i=r,o=o.replace(I,"$1").replace(T,"0.$1")),e!=o))return new U(o,i);if(U.DEBUG)throw Error(c+"Not a"+(r?" base "+r:"")+" number: "+e);t.s=null}t.c=t.e=null},E.absoluteValue=E.abs=function(){var t=new U(this);return t.s<0&&(t.s=1),t},E.comparedTo=function(t,e){return x(this,new U(t,e))},E.decimalPlaces=E.dp=function(t,e){var n,r,i,o=this;if(null!=t)return y(t,0,g),null==e?e=j:y(e,0,8),V(new U(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-v(this.e/m))*m,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(t,e){return n(this,new U(t,e),L,j)},E.dividedToIntegerBy=E.idiv=function(t,e){return n(this,new U(t,e),0,1)},E.exponentiatedBy=E.pow=function(t,e){var n,r,i,o,a,u,p,d,f=this;if((t=new U(t)).c&&!t.isInteger())throw Error(c+"Exponent not an integer: "+X(t));if(null!=e&&(e=new U(e)),a=t.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!t.c||!t.c[0])return d=new U(Math.pow(+X(f),a?2-_(t):+X(t))),e?d.mod(e):d;if(u=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new U(NaN);(r=!u&&f.isInteger()&&e.isInteger())&&(f=f.mod(e))}else{if(t.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||a&&f.c[1]>=24e7:f.c[0]<8e13||a&&f.c[0]<=9999975e7)))return o=f.s<0&&_(t)?-0:0,f.e>-1&&(o=1/o),new U(u?1/o:o);N&&(o=s(N/m+2))}for(a?(n=new U(.5),u&&(t.s=1),p=_(t)):p=(i=Math.abs(+X(t)))%2,d=new U(O);;){if(p){if(!(d=d.times(f)).c)break;o?d.c.length>o&&(d.c.length=o):r&&(d=d.mod(e))}if(i){if(0===(i=l(i/2)))break;p=i%2}else if(V(t=t.times(n),t.e+1,1),t.e>14)p=_(t);else{if(0===(i=+X(t)))break;p=i%2}f=f.times(f),o?f.c&&f.c.length>o&&(f.c.length=o):r&&(f=f.mod(e))}return r?d:(u&&(d=O.div(d)),e?d.mod(e):o?V(d,N,j,undefined):d)},E.integerValue=function(t){var e=new U(this);return null==t?t=j:y(t,0,8),V(e,e.e+1,t)},E.isEqualTo=E.eq=function(t,e){return 0===x(this,new U(t,e))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(t,e){return x(this,new U(t,e))>0},E.isGreaterThanOrEqualTo=E.gte=function(t,e){return 1===(e=x(this,new U(t,e)))||0===e},E.isInteger=function(){return!!this.c&&v(this.e/m)>this.c.length-2},E.isLessThan=E.lt=function(t,e){return x(this,new U(t,e))<0},E.isLessThanOrEqualTo=E.lte=function(t,e){return-1===(e=x(this,new U(t,e)))||0===e},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(t,e){var n,r,i,o,a=this,s=a.s;if(e=(t=new U(t,e)).s,!s||!e)return new U(NaN);if(s!=e)return t.s=-e,a.plus(t);var l=a.e/m,c=t.e/m,u=a.c,d=t.c;if(!l||!c){if(!u||!d)return u?(t.s=-e,t):new U(d?a:NaN);if(!u[0]||!d[0])return d[0]?(t.s=-e,t):new U(u[0]?a:3==j?-0:0)}if(l=v(l),c=v(c),u=u.slice(),s=l-c){for((o=s<0)?(s=-s,i=u):(c=l,i=d),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(r=(o=(s=u.length)<(e=d.length))?s:e,s=e=0;e0)for(;e--;u[n++]=0);for(e=p-1;r>s;){if(u[--r]=0;){for(n=0,f=k[i]%y,g=k[i]/y|0,o=i+(a=l);o>i;)n=((c=f*(c=w[--a]%y)+(s=g*c+(u=w[a]/y|0)*f)%y*y+b[o]+n)/x|0)+(s/y|0)+g*u,b[o--]=c%x;b[o]=n}return n?++r:b.splice(0,1),G(t,b,r)},E.negated=function(){var t=new U(this);return t.s=-t.s||null,t},E.plus=function(t,e){var n,r=this,i=r.s;if(e=(t=new U(t,e)).s,!i||!e)return new U(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/m,a=t.e/m,s=r.c,l=t.c;if(!o||!a){if(!s||!l)return new U(i/0);if(!s[0]||!l[0])return l[0]?t:new U(s[0]?r:0*i)}if(o=v(o),a=v(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=l):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(e=l.length)<0&&(n=l,l=s,s=n,e=i),i=0;e;)i=(s[--e]=s[e]+l[e]+i)/p|0,s[e]=p===s[e]?0:s[e]%p;return i&&(s=[i].concat(s),++a),G(t,s,a)},E.precision=E.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return y(t,1,g),null==e?e=j:y(e,0,8),V(new U(o),t,e);if(!(n=o.c))return null;if(r=(i=n.length-1)*m+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},E.shiftedBy=function(t){return y(t,-9007199254740991,d),this.times("1e"+t)},E.squareRoot=E.sqrt=function(){var t,e,r,i,o,a=this,s=a.c,l=a.s,c=a.e,u=L+4,p=new U("0.5");if(1!==l||!s||!s[0])return new U(!l||l<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(l=Math.sqrt(+X(a)))||l==1/0?(((e=b(s)).length+c)%2==0&&(e+="0"),l=Math.sqrt(+e),c=v((c+1)/2)-(c<0||c%2),r=new U(e=l==1/0?"5e"+c:(e=l.toExponential()).slice(0,e.indexOf("e")+1)+c)):r=new U(l+""),r.c[0])for((l=(c=r.e)+u)<3&&(l=0);;)if(o=r,r=p.times(o.plus(n(a,o,u,1))),b(o.c).slice(0,l)===(e=b(r.c)).slice(0,l)){if(r.e0&&h>0){for(o=h%s||s,p=f.substr(0,o);o0&&(p+=u+f.slice(o)),d&&(p="-"+p)}r=m?p+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?m.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):m):p}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(t){var e,r,i,o,a,s,l,u,p,d,h,g,v=this,x=v.c;if(null!=t&&(!(l=new U(t)).isInteger()&&(l.c||1!==l.s)||l.lt(O)))throw Error(c+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+X(l));if(!x)return new U(v);for(e=new U(O),p=r=new U(O),i=u=new U(O),g=b(x),a=e.e=g.length-v.e-1,e.c[0]=f[(s=a%m)<0?m+s:s],t=!t||l.comparedTo(e)>0?a>0?e:p:l,s=D,D=1/0,l=new U(g),u.c[0]=0;d=n(l,e,0,1),1!=(o=r.plus(d.times(i))).comparedTo(t);)r=i,i=o,p=u.plus(d.times(o=p)),u=o,e=l.minus(d.times(o=e)),l=o;return o=n(t.minus(r),i,0,1),u=u.plus(o.times(p)),r=r.plus(o.times(i)),u.s=p.s=v.s,h=n(p,i,a*=2,j).minus(v).abs().comparedTo(n(u,r,a,j).minus(v).abs())<1?[p,i]:[u,r],D=s,h},E.toNumber=function(){return+X(this)},E.toPrecision=function(t,e){return null!=t&&y(t,1,g),H(this,t,e,2)},E.toString=function(t){var e,n=this,i=n.s,o=n.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=M||o>=F?w(b(n.c),o):k(b(n.c),o,"0"):10===t?e=k(b((n=V(new U(n),L+o+1,j)).c),n.e,"0"):(y(t,2,q.length,"Base"),e=r(k(b(n.c),o,"0"),10,t,i,!0)),i<0&&n.c[0]&&(e="-"+e)),e},E.valueOf=E.toJSON=function(){return X(this)},E._isBigNumber=!0,null!=e&&U.set(e),U}(),o.default=o.BigNumber=o,void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},47185:(t,e,n)=>{n(91867),n(2586),t.exports=n(34579).Array.from},56981:(t,e,n)=>{n(72699),t.exports=n(34579).Object.assign},45627:(t,e,n)=>{n(86760);var r=n(34579).Object;t.exports=function(t,e){return r.create(t,e)}},33391:(t,e,n)=>{n(31477);var r=n(34579).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},98613:(t,e,n)=>{n(40961),t.exports=n(34579).Object.keys},48056:(t,e,n)=>{n(21013),t.exports=n(34579).Object.values},80112:(t,e,n)=>{n(94058),n(91867),n(73871),n(32878),n(95971),n(22526),t.exports=n(34579).Promise},85663:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},79003:t=>{t.exports=function(){}},29142:t=>{t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},12159:(t,e,n)=>{var r=n(36727);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},57428:(t,e,n)=>{var r=n(7932),i=n(78728),o=n(16531);t.exports=function(t){return function(e,n,a){var s,l=r(e),c=i(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},14677:(t,e,n)=>{var r=n(32894),i=n(22939)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},32894:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},34579:t=>{var e=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},52445:(t,e,n)=>{"use strict";var r=n(4743),i=n(83101);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},19216:(t,e,n)=>{var r=n(85663);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,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},8333:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},89666:(t,e,n)=>{t.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(t,e,n)=>{var r=n(36727),i=n(33938).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},73338:t=>{t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},83856:(t,e,n)=>{var r=n(33938),i=n(34579),o=n(19216),a=n(41818),s=n(27069),l=function(t,e,n){var c,u,p,m=t&l.F,d=t&l.G,f=t&l.S,h=t&l.P,g=t&l.B,v=t&l.W,b=d?i:i[e]||(i[e]={}),x=b.prototype,y=d?r:f?r[e]:(r[e]||{}).prototype;for(c in d&&(n=e),n)(u=!m&&y&&void 0!==y[c])&&s(b,c)||(p=u?y[c]:n[c],b[c]=d&&"function"!=typeof y[c]?n[c]:g&&u?o(p,r):v&&y[c]==p?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}(p):h&&"function"==typeof p?o(Function.call,p):p,h&&((b.virtual||(b.virtual={}))[c]=p,t&l.R&&x&&!x[c]&&a(x,c,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},7929:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},45576:(t,e,n)=>{var r=n(19216),i=n(95602),o=n(45991),a=n(12159),s=n(78728),l=n(83728),c={},u={},p=t.exports=function(t,e,n,p,m){var d,f,h,g,v=m?function(){return t}:l(t),b=r(n,p,e?2:1),x=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(d=s(t.length);d>x;x++)if((g=e?b(a(f=t[x])[0],f[1]):b(t[x]))===c||g===u)return g}else for(h=v.call(t);!(f=h.next()).done;)if((g=i(h,b,f.value,e))===c||g===u)return g};p.BREAK=c,p.RETURN=u},33938:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},27069:t=>{var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},41818:(t,e,n)=>{var r=n(4743),i=n(83101);t.exports=n(89666)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},54881:(t,e,n)=>{var r=n(33938).document;t.exports=r&&r.documentElement},33758:(t,e,n)=>{t.exports=!n(89666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(97467)("div"),"a",{get:function(){return 7}}).a}))},46778:t=>{t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},50799:(t,e,n)=>{var r=n(32894);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},45991:(t,e,n)=>{var r=n(15449),i=n(22939)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},36727:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},95602:(t,e,n)=>{var r=n(12159);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},33945:(t,e,n)=>{"use strict";var r=n(98989),i=n(83101),o=n(25378),a={};n(41818)(a,n(22939)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},45700:(t,e,n)=>{"use strict";var r=n(16227),i=n(83856),o=n(57470),a=n(41818),s=n(15449),l=n(33945),c=n(25378),u=n(95089),p=n(22939)("iterator"),m=!([].keys&&"next"in[].keys()),d="keys",f="values",h=function(){return this};t.exports=function(t,e,n,g,v,b,x){l(n,e,g);var y,_,w,k=function(t){if(!m&&t in T)return T[t];switch(t){case d:case f:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",S=v==f,I=!1,T=t.prototype,$=T[p]||T["@@iterator"]||v&&T[v],A=$||k(v),E=v?S?k("entries"):A:void 0,O="Array"==e&&T.entries||$;if(O&&(w=u(O.call(new t)))!==Object.prototype&&w.next&&(c(w,C,!0),r||"function"==typeof w[p]||a(w,p,h)),S&&$&&$.name!==f&&(I=!0,A=function(){return $.call(this)}),r&&!x||!m&&!I&&T[p]||a(T,p,A),s[e]=A,s[C]=h,v)if(y={values:S?A:k(f),keys:b?A:k(d),entries:E},x)for(_ in y)_ in T||o(T,_,y[_]);else i(i.P+i.F*(m||I),e,y);return y}},96630:(t,e,n)=>{var r=n(22939)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},85084:t=>{t.exports=function(t,e){return{value:e,done:!!t}}},15449:t=>{t.exports={}},16227:t=>{t.exports=!0},81601:(t,e,n)=>{var r=n(33938),i=n(62569).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n(32894)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(l&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var p=!0,m=document.createTextNode("");new o(c).observe(m,{characterData:!0}),n=function(){m.data=p=!p}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},59304:(t,e,n)=>{"use strict";var r=n(85663);function i(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},88082:(t,e,n)=>{"use strict";var r=n(89666),i=n(46162),o=n(48195),a=n(86274),s=n(66530),l=n(50799),c=Object.assign;t.exports=!c||n(7929)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,p=o.f,m=a.f;c>u;)for(var d,f=l(arguments[u++]),h=p?i(f).concat(p(f)):i(f),g=h.length,v=0;g>v;)d=h[v++],r&&!m.call(f,d)||(n[d]=f[d]);return n}:c},98989:(t,e,n)=>{var r=n(12159),i=n(57856),o=n(73338),a=n(58989)("IE_PROTO"),s=function(){},l=function(){var t,e=n(97467)("iframe"),r=o.length;for(e.style.display="none",n(54881).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("