Changeset 3185159
- Timestamp:
- 11/10/2024 03:44:03 PM (16 months ago)
- Location:
- attribute-stock-for-woocommerce/trunk
- Files:
-
- 30 edited
-
assets/dist/admin/attributes.js (modified) (2 diffs)
-
assets/dist/admin/stock-edit.css (modified) (3 diffs)
-
assets/dist/admin/stock-edit.js (modified) (38 diffs)
-
assets/dist/admin/stock-edit.min.css (modified) (1 diff)
-
assets/dist/admin/stock-edit.min.js (modified) (1 diff)
-
assets/dist/admin/stock-list.css (modified) (3 diffs)
-
assets/dist/admin/stock-list.js (modified) (8 diffs)
-
assets/dist/admin/stock-list.min.css (modified) (1 diff)
-
attribute-stock-for-woocommerce.php (modified) (3 diffs)
-
languages/woocommerce-attribute-stock.pot (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
-
src/Aspects/Admin/Attributes/AttributeTermEdit.php (modified) (1 diff)
-
src/Aspects/Admin/Stock/StockList.php (modified) (3 diffs)
-
src/Aspects/Admin/Stock/StockSave.php (modified) (1 diff)
-
src/Aspects/Common/CleanUp.php (modified) (1 diff)
-
src/Aspects/Common/StockNotifications.php (modified) (3 diffs)
-
src/Classes/AttributeStockReport.php (modified) (1 diff)
-
src/Classes/RestApiController.php (modified) (4 diffs)
-
src/Compatibility/Aspects/Polylang.php (modified) (1 diff)
-
src/Compatibility/Aspects/WPML.php (modified) (5 diffs)
-
src/Core/Loader.php (modified) (2 diffs)
-
src/Models/AttributeStock.php (modified) (3 diffs)
-
src/Util/Attributes.php (modified) (1 diff)
-
src/Util/Export.php (modified) (1 diff)
-
src/Util/Matches.php (modified) (2 diffs)
-
src/Util/Products.php (modified) (2 diffs)
-
templates/admin/stock/list-chips.php (modified) (2 diffs)
-
templates/admin/stock/panel-settings.php (modified) (5 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
-
vendor/mewz/framework/languages/mewz-framework.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
attribute-stock-for-woocommerce/trunk/assets/dist/admin/attributes.js
r3106385 r3185159 1 1 /******/ (() => { // webpackBootstrap 2 var __webpack_exports__ = {}; 3 // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules. 2 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules. 4 3 (() => { 5 4 const $ = jQuery; … … 64 63 })(); 65 64 66 // This entry need to be wrapped in an IIFE because it needto be in strict mode.65 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode. 67 66 (() => { 68 67 "use strict"; -
attribute-stock-for-woocommerce/trunk/assets/dist/admin/stock-edit.css
r3106385 r3185159 175 175 margin-left: -4px; 176 176 } 177 .post-type-attribute_stock #poststuff .woocommerce-help-tip { 178 font-size: 16.8px; 179 } 180 .post-type-attribute_stock #poststuff .form-field .description .woocommerce-help-tip { 181 vertical-align: text-top; 182 transform: translate(-3px, 1px); 183 } 177 184 .post-type-attribute_stock #poststuff .help-icon-link { 178 185 display: inline-block; … … 770 777 } 771 778 .mewz-wcas-match-rule .match-rule-options label { 779 display: flex; 780 align-items: center; 772 781 min-width: 100px; 773 782 margin-right: 15px; … … 776 785 } 777 786 .mewz-wcas-match-rule .match-rule-options label .woocommerce-help-tip { 778 margin: 0;787 margin: 2px 0 0 3px; 779 788 } 780 789 .mewz-wcas-match-rule .match-rule-options input, -
attribute-stock-for-woocommerce/trunk/assets/dist/admin/stock-edit.js
r3135163 r3185159 1 1 /******/ (() => { // webpackBootstrap 2 2 /******/ "use strict"; 3 var __webpack_exports__ = {}; 4 // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules. 3 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules. 5 4 (() => { 6 5 7 ;// CONCATENATED MODULE:../../packages/framework/assets/src/lib/util.js6 ;// ../../packages/framework/assets/src/lib/util.js 8 7 let selectWooInit = false; 9 8 jQuery(document.body).one('wc-enhanced-select-init', () => { … … 48 47 return JSON.stringify(values); 49 48 } 50 ;// CONCATENATED MODULE:./admin/stock-edit/ui/form-fields.js49 ;// ./admin/stock-edit/ui/form-fields.js 51 50 52 51 const $ = jQuery; … … 65 64 const $this = $('#mewz_wcas_internal'); 66 65 const internal = $this.prop('checked') || $this.prop('disabled'); 66 $('#mewz_wcas_backorders').prop('disabled', internal); 67 67 $('#mewz_wcas_product_sku').prop('disabled', internal); 68 68 $('#mewz_wcas_product_image').prop('disabled', internal); 69 69 } 70 ;// CONCATENATED MODULE:./admin/stock-edit/ui/header-actions.js70 ;// ./admin/stock-edit/ui/header-actions.js 71 71 const header_actions_$ = jQuery; 72 72 const headerActions = window.mewzWcas && mewzWcas.headerActions || {}; … … 77 77 } 78 78 } 79 ;// CONCATENATED MODULE:./admin/stock-edit/ui/tab-indicators.js79 ;// ./admin/stock-edit/ui/tab-indicators.js 80 80 const tab_indicators_$ = jQuery; 81 81 let tab_indicators_form; … … 116 116 setTabIndicator(tab, indicator); 117 117 } 118 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/utils.js118 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/utils.js 119 119 /** @returns {void} */ 120 120 function utils_noop() {} … … 409 409 const utils_contenteditable_truthy_values = (/* unused pure expression or super */ null && (['', true, 1, 'true', 'contenteditable'])); 410 410 411 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/environment.js411 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/environment.js 412 412 413 413 … … 430 430 } 431 431 432 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/loop.js432 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/loop.js 433 433 434 434 … … 477 477 } 478 478 479 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/globals.js479 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/globals.js 480 480 /** @type {typeof globalThis} */ 481 481 const globals = … … 487 487 global; 488 488 489 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js489 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js 490 490 491 491 … … 550 550 ResizeObserverSingleton.entries = "WeakMap" in globals ? new WeakMap() : undefined; 551 551 552 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/dom.js552 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/dom.js 553 553 554 554 … … 1803 1803 */ 1804 1804 1805 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/style_manager.js1805 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/style_manager.js 1806 1806 1807 1807 … … 1904 1904 } 1905 1905 1906 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/animations.js1906 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/animations.js 1907 1907 1908 1908 … … 2006 2006 } 2007 2007 2008 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/lifecycle.js2008 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/lifecycle.js 2009 2009 2010 2010 … … 2191 2191 } 2192 2192 2193 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/scheduler.js2193 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/scheduler.js 2194 2194 2195 2195 … … 2328 2328 } 2329 2329 2330 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/transitions.js2330 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/transitions.js 2331 2331 2332 2332 … … 2791 2791 */ 2792 2792 2793 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/await_block.js2793 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/await_block.js 2794 2794 2795 2795 … … 2893 2893 } 2894 2894 2895 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/each.js2895 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/each.js 2896 2896 2897 2897 … … 3038 3038 } 3039 3039 3040 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/shared/boolean_attributes.js3040 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/shared/boolean_attributes.js 3041 3041 const _boolean_attributes = /** @type {const} */ ([ 3042 3042 'allowfullscreen', … … 3077 3077 /** @typedef {typeof _boolean_attributes[number]} BooleanAttributes */ 3078 3078 3079 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/ssr.js 3079 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/ssr.js 3080 3081 3080 3082 3081 3083 … … 3147 3149 } 3148 3150 3149 const ATTR_REGEX = /[&"]/g;3150 const CONTENT_REGEX = /[&<]/g;3151 3152 /**3153 * Note: this method is performance sensitive and has been optimized3154 * https://github.com/sveltejs/svelte/pull/57013155 * @param {unknown} value3156 * @returns {string}3157 */3158 function ssr_escape(value, is_attr = false) {3159 const str = String(value);3160 const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;3161 pattern.lastIndex = 0;3162 let escaped = '';3163 let last = 0;3164 while (pattern.test(str)) {3165 const i = pattern.lastIndex - 1;3166 const ch = str[i];3167 escaped += str.substring(last, i) + (ch === '&' ? '&' : ch === '"' ? '"' : '<');3168 last = i + 1;3169 }3170 return escaped + str.substring(last);3171 }3172 3173 3151 function escape_attribute_value(value) { 3174 3152 // keep booleans, null, and undefined for the sake of `spread` 3175 3153 const should_escape = typeof value === 'string' || (value && typeof value === 'object'); 3176 return should_escape ? ssr_escape(value, true) : value;3154 return should_escape ? escape(value, true) : value; 3177 3155 } 3178 3156 … … 3261 3239 function add_attribute(name, value, boolean) { 3262 3240 if (value == null || (boolean && !value)) return ''; 3263 const assignment = boolean && value === true ? '' : `="${ ssr_escape(value, true)}"`;3241 const assignment = boolean && value === true ? '' : `="${escape(value, true)}"`; 3264 3242 return ` ${name}${assignment}`; 3265 3243 } … … 3284 3262 } 3285 3263 3286 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/Component.js3264 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/Component.js 3287 3265 3288 3266 … … 3789 3767 */ 3790 3768 3791 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/dev.js3769 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/dev.js 3792 3770 3793 3771 … … 4147 4125 } 4148 4126 4149 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/index.js4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/shared/version.js4127 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/index.js 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/shared/version.js 4167 4145 // generated during release, do not modify 4168 4146 … … 4173 4151 * @type {string} 4174 4152 */ 4175 const version_VERSION = '4.2.1 8';4153 const version_VERSION = '4.2.19'; 4176 4154 const PUBLIC_VERSION = '4'; 4177 4155 4178 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/disclose-version/index.js4156 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/internal/disclose-version/index.js 4179 4157 4180 4158 … … 4183 4161 (window.__svelte || (window.__svelte = { v: new Set() })).v.add(PUBLIC_VERSION); 4184 4162 4185 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/index.js4186 4187 4188 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/easing/index.js4163 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/index.js 4164 4165 4166 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/easing/index.js 4189 4167 /* 4190 4168 Adapted from https://github.com/mattdesl … … 4497 4475 } 4498 4476 4499 ;// CONCATENATED MODULE:../../packages/framework/assets/src/lib/transitions.js4477 ;// ../../packages/framework/assets/src/lib/transitions.js 4500 4478 4501 4479 function shift(node, { … … 4544 4522 }; 4545 4523 } 4546 ;// CONCATENATED MODULE:../../packages/framework/assets/src/lib/Select2.svelte4547 /* packages/framework/assets/src/lib/Select2.svelte generated by Svelte v4.2.1 8*/4524 ;// ../../packages/framework/assets/src/lib/Select2.svelte 4525 /* packages/framework/assets/src/lib/Select2.svelte generated by Svelte v4.2.19 */ 4548 4526 4549 4527 … … 4770 4748 4771 4749 /* harmony default export */ const Select2_svelte = (Select2); 4772 ;// CONCATENATED MODULE:./admin/stock-edit/ui/ComponentsField.svelte4773 /* assets/src/admin/stock-edit/ui/ComponentsField.svelte generated by Svelte v4.2.1 8*/4750 ;// ./admin/stock-edit/ui/ComponentsField.svelte 4751 /* assets/src/admin/stock-edit/ui/ComponentsField.svelte generated by Svelte v4.2.19 */ 4774 4752 4775 4753 … … 5322 5300 5323 5301 /* harmony default export */ const ComponentsField_svelte = (ComponentsField); 5324 ;// CONCATENATED MODULE:./admin/stock-edit/ui/Components.svelte5325 /* assets/src/admin/stock-edit/ui/Components.svelte generated by Svelte v4.2.1 8*/5302 ;// ./admin/stock-edit/ui/Components.svelte 5303 /* assets/src/admin/stock-edit/ui/Components.svelte generated by Svelte v4.2.19 */ 5326 5304 5327 5305 … … 5541 5519 5542 5520 /* harmony default export */ const Components_svelte = (Components); 5543 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/transition/index.js5521 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/transition/index.js 5544 5522 5545 5523 … … 5798 5776 } 5799 5777 5800 ;// CONCATENATED MODULE: ../../node_modules/.pnpm/[email protected]/node_modules/svelte-collapse/src/collapse.js5778 ;// ../../node_modules/.pnpm/[email protected]/node_modules/svelte-collapse/src/collapse.js 5801 5779 5802 5780 function collapse (node, params) { … … 5814 5792 let transitionEndReject = noop 5815 5793 5816 const listener = node.addEventListener('transitionend', () => { 5817 transitionEndResolve() 5818 transitionEndResolve = noop 5819 transitionEndReject = noop 5820 }) 5794 const listener = () => { 5795 transitionEndResolve(); 5796 transitionEndResolve = noop; 5797 transitionEndReject = noop; 5798 }; 5799 5800 node.addEventListener('transitionend', listener); 5821 5801 5822 5802 // convenience functions … … 5906 5886 5907 5887 } 5908 ;// CONCATENATED MODULE: ../../packages/framework/assets/src/lib/drag-action.js 5888 5889 ;// ../../packages/framework/assets/src/lib/drag-action.js 5909 5890 /** 5910 5891 * @param {HTMLElement} node … … 6084 6065 return null; 6085 6066 } 6086 ;// CONCATENATED MODULE:./admin/stock-edit/ui/MatchRule.svelte6087 /* assets/src/admin/stock-edit/ui/MatchRule.svelte generated by Svelte v4.2.1 8*/6067 ;// ./admin/stock-edit/ui/MatchRule.svelte 6068 /* assets/src/admin/stock-edit/ui/MatchRule.svelte generated by Svelte v4.2.19 */ 6088 6069 6089 6070 … … 7434 7415 7435 7416 /* harmony default export */ const MatchRule_svelte = (MatchRule); 7436 ;// CONCATENATED MODULE:./admin/stock-edit/ui/MatchRules.svelte7437 /* assets/src/admin/stock-edit/ui/MatchRules.svelte generated by Svelte v4.2.1 8*/7417 ;// ./admin/stock-edit/ui/MatchRules.svelte 7418 /* assets/src/admin/stock-edit/ui/MatchRules.svelte generated by Svelte v4.2.19 */ 7438 7419 7439 7420 … … 8065 8046 8066 8047 /* harmony default export */ const MatchRules_svelte = (MatchRules); 8067 ;// CONCATENATED MODULE:./admin/stock-edit/index.js8048 ;// ./admin/stock-edit/index.js 8068 8049 8069 8050 … … 8088 8069 })(); 8089 8070 8090 // This entry need to be wrapped in an IIFE because it needto be isolated against other entry modules.8071 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules. 8091 8072 (() => { 8092 8073 // extracted by mini-css-extract-plugin -
attribute-stock-for-woocommerce/trunk/assets/dist/admin/stock-edit.min.css
r3106385 r3185159 1 .mewz-wcas-match-rule .icon-button{background:none;border:0;box-shadow:none;cursor:pointer;display:inline-block;font-size:30px;height:30px;line-height:30px;margin:0;outline:none;padding:0;text-align:center;transition:color .15s;vertical-align:bottom;width:30px}.mewz-wcas-match-rule .icon-button:before{display:inline;font-family:dashicons}.mewz-wcas-match-rule .icon-button:disabled{color:#00000026!important;cursor:auto}.mewz-wcas-status-metabox .toggle-switch{display:inline-block;font-size:24px;height:1em;position:relative;-webkit-user-select:none;user-select:none;width:2em;-webkit-user-drag:none}.mewz-wcas-status-metabox .toggle-switch .checkbox{display:none!important}.mewz-wcas-status-metabox .toggle-switch .switch{background-clip:initial;background-color:#fff;border:2px solid #6c7781;border-radius:100em;bottom:0;cursor:pointer;display:inline-block;left:0;position:absolute;right:0;top:0;transition-duration:.15s;transition-property:background-color,border-color}.mewz-wcas-status-metabox .toggle-switch .switch:before{background-color:#6c7781;border-radius:100em;box-sizing:initial;content:"";display:inline-block;height:calc(1em - 10px);left:-2px;margin:5px;position:absolute;top:-2px;transition-duration:inherit;transition-property:left,background-color;width:calc(1em - 10px)}.mewz-wcas-status-metabox .toggle-switch .checkbox:checked~.switch{background-color:#e0f1ff;border-color:#2271b1}.mewz-wcas-status-metabox .toggle-switch .checkbox:checked~.switch:before{background-color:#2271b1;left:calc(100% - 1em + 2px)}.mewz-wcas-status-metabox .toggle-switch .checkbox:disabled~.switch{cursor:default;opacity:.5}#tagsdiv-product_tag .tagchecklist{margin-bottom:0}#tagsdiv-product_tag .inside>p:last-child{display:none}.mewz-wcas-metabox-tabbed{display:flex;--ui-border-color:#ddd}.mewz-wcas-metabox-tabbed .panel{display:none;min-height:0}.mewz-wcas-metabox-tabbed .woocommerce_options_panel{float:left;width:80%}.mewz-wcas-metabox-tabbed ul.wc-tabs{border-right-color:var(--ui-border-color)!important}.mewz-wcas-metabox-tabbed ul.wc-tabs:after{display:none!important}.mewz-wcas-metabox-tabbed ul.wc-tabs li a{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.mewz-wcas-metabox-tabbed ul.wc-tabs li a:before{position:relative;top:1px}.mewz-wcas-metabox-tabbed ul.wc-tabs li a:after{color:#bbb;content:attr(data-indicator);display:inline-block;float:right;font-size:11px;font-weight:600}.mewz-wcas-metabox-tabbed ul.wc-tabs li.components_options a:before{content:"\f533"!important}.mewz-wcas-metabox-tabbed ul.wc-tabs li.attributes_options a:before{content:"\f175"}.mewz-wcas-metabox-tabbed ul.wc-tabs li.filters_options a:before{content:"\f536"}.mewz-wcas-metabox-tabbed .options_group{border-top:0}#mewz-wcas-details-metabox .inside,#mewz-wcas-matches-metabox .inside{margin:0;padding:0}#mewz-wcas-details-metabox .panel{min-height:195px}.post-type-attribute_stock #poststuff [hidden]{display:none!important}.post-type-attribute_stock #poststuff input::placeholder,.post-type-attribute_stock #poststuff textarea::placeholder{color:#888}.post-type-attribute_stock #poststuff input[type=text]{height:30px}.post-type-attribute_stock #poststuff textarea{height:auto}.post-type-attribute_stock #poststuff .panel-wrap .panel .button{line-height:28px;margin:0;vertical-align:middle}.post-type-attribute_stock #poststuff .button:before{display:inline-block;font-family:dashicons;font-size:16px;line-height:inherit;vertical-align:bottom}.post-type-attribute_stock #poststuff .button:not(.icon-only):before{margin-left:-4px;padding-right:5px}.post-type-attribute_stock #poststuff . help-icon-link{display:inline-block;font-size:16px;font-style:normal;font-weight:400;height:1em;line-height:1;vertical-align:text-bottom;width:1em}.post-type-attribute_stock #poststuff .help-icon-link:before{content:"\f223";display:inline-block;font-family:dashicons;vertical-align:top}.post-type-attribute_stock #poststuff .mewz-wcas-pro-required label{align-items:center;color:#ea4c51;display:flex}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta{background:#ffefef;border:1px solid #ea4c51;border-radius:3px;box-shadow:0 0 3px #fe5a5f80;color:#ea4c51;display:inline-block;font-size:9px;font-weight:700;letter-spacing:.5px;line-height:1;margin:1px 0 0 6px;padding:1px 3px;-webkit-text-decoration:none;text-decoration:none}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta:hover{background:#ffe6e7}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta:focus{box-shadow:0 0 4px #fe5a5f}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta:active{background:#ffdedf}.post-type-attribute_stock #poststuff .upgrade-hint{color:#ea4c51;display:block;font-size:12px;line-height:18px}.post-type-attribute_stock #poststuff .upgrade-hint a{color:inherit;font-weight:600}.post-type-attribute_stock #poststuff .select2-container{display:inline-block;min-width:50%;position:relative;z-index:1}.post-type-attribute_stock #poststuff .select2-container.select2-container.select2-container--disabled{z-index:0}.post-type-attribute_stock #poststuff .select2-container.select2-container--focus:not(.select2-container--disabled){z-index:3}.post-type-attribute_stock #poststuff .select2-container.select2-container--open:not(.select2-container--disabled){z-index:4}.post-type-attribute_stock #poststuff .select2-container .select2-selection__rendered{padding-right:5px}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered{--padding:2px;box-sizing:border-box;padding:0 0 var(--padding) var(--padding);vertical-align:bottom}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li{box-sizing:border-box;font-size:12px;height:24px;margin:var(--padding) var(--padding) 0 0}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline{overflow:hidden}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered .select2-search__field{height:100%;max-width:100%;min-height:0;min-width:0}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline:only-child{width:100%}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline:only-child .select2-search__field{padding:0 6px;width:100%!important}.post-type-attribute_stock #poststuff .select2-container:not(.select2-container--focus):not(.select2-container--open) .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline:not(:only-child){height:0;overflow:hidden;pointer-events:none;position:absolute;width:0;z-index:-999}.post-type-attribute_stock #poststuff .select2-container.select2-container--disabled .select2-selection--multiple{background:#ffffff80;border-color:#dededebf;box-shadow:inset 0 1px 2px #0000000a;cursor:default}.post-type-attribute_stock .select2-dropdown{transform:translateY(-1px);--faded-border:#0000001a}.post-type-attribute_stock .select2-dropdown:after{background:#fff;box-shadow:0 1px var(--faded-border);z-index:10}.post-type-attribute_stock .select2-dropdown.select2-dropdown--above{transform:translateY(1px)}.post-type-attribute_stock .select2-dropdown.select2-dropdown--above:after{box-shadow:0 -1px var(--faded-border)}.post-type-attribute_stock .select2-dropdown .select2-results>.select2-results__options{background:#fff;max-height:240px;position:relative;z-index:2}.post-type-attribute_stock .select2-dropdown .select2-results{background:var(--wp-admin-theme-color,#007cba);overflow:hidden}.post-type-attribute_stock .select2-dropdown.select2-dropdown--below .select2-results{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.post-type-attribute_stock .select2-dropdown.select2-dropdown--above .select2-results:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__group,.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__option{line-height:18px;padding:6px 8px}.post-type-attribute_stock .select2-dropdown .select2-search--dropdown{padding:0;position:relative;z-index:10}.post-type-attribute_stock .select2-dropdown .select2-search__field{background:none;border:0;border-radius:0!important;box-shadow:0 1px var(--faded-border);font-size:12px;line-height:20px;margin:0;padding:0 8px;position:relative;z-index:1}#postimagediv .inside img{border:0}@media screen and (max-width:1280px){.post-type-attribute_stock #poststuff .form-field .select2-container{width:80%!important}}@media screen and (max-width:1200px){.mewz-wcas-metabox-tabbed li a:after{display:none!important}}@media screen and (max-width:900px){.mewz-wcas-metabox-tabbed .wc-metaboxes-wrapper,.mewz-wcas-metabox-tabbed .woocommerce_options_panel{width:90%}.mewz-wcas-metabox-tabbed ul.wc-tabs{width:10%}.mewz-wcas-metabox-tabbed ul.wc-tabs li a{padding:10px;position:relative;text-indent:-999px}.mewz-wcas-metabox-tabbed ul.wc-tabs li a:before{bottom:0;height:40px;left:0;line-height:40px;position:absolute;right:0;text-align:center;text-indent:0;top:0;width:100%}}@media screen and (max-width:782px){.post-type-attribute_stock #poststuff .panel-wrap input[type=number],.post-type-attribute_stock #poststuff .panel-wrap input[type=text]{height:40px}.post-type-attribute_stock #poststuff .select2-container--default .select2-selection--multiple ul.select2-selection__rendered{--padding:4px;min-height:38px}.post-type-attribute_stock #poststuff .select2-container--default .select2-selection--multiple ul.select2-selection__rendered li{font-size:15px;height:30px;line-height:24px}.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__group,.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__option{line-height:22px;padding:9px 8px}}.mewz-wcas-attribute-rules .main-toolbar{background:#fff;box-shadow:0 1px var(--ui-border-color);display:flex;position:relative;width:100%;z-index:2}.mewz-wcas-attribute-rules .main-toolbar .toolbar-left,.mewz-wcas-attribute-rules .main-toolbar .toolbar-right{align-items:center;display:flex;padding:12px 14px;text-align:left;vertical-align:middle;white-space:nowrap}.mewz-wcas-attribute-rules .main-toolbar .toolbar-right{margin-left:auto;padding-left:0}.mewz-wcas-attribute-rules .main-toolbar .add-button:before{content:"\f502"}.mewz-wcas-attribute-rules .main-toolbar .toggle-button:before{margin:0 -1px 0 -5px}.mewz-wcas-attribute-rules .main-toolbar .toggle-button.expand:before{content:"\f132";transform:translateY(1px)}.mewz-wcas-attribute-rules .main-toolbar .toggle-button.collapse:before{content:"\f460"}.mewz-wcas-attribute-rules .main-toolbar .restore-button{background:none;border:0;box-shadow:none;color:#c4c4c4;height:30px;margin-right:3px;padding:0;width:30px}.mewz-wcas-attribute-rules .main-toolbar .restore-button:before{content:"\f171";margin:0}.mewz-wcas-attribute-rules .main-toolbar .restore-button:hover{color:#6b6b6b}.mewz-wcas-attribute-rules .main-toolbar .restore-button:active{color:#5f5f5f}.mewz-wcas-attribute-rules .main-toolbar .woocommerce-help-tip{margin-left:7px}.mewz-wcas-attribute-rules .match-rules-list{background:#fafafa;overflow:hidden;position:relative;z-index:1}.mewz-wcas-match-rule{--border-shadow:0 1px var(--ui-border-color);background:#fff;border-top:1px solid var(--ui-border-color);box-shadow:var(--border-shadow);position:relative;width:100%;z-index:1}.mewz-wcas-match-rule input,.mewz-wcas-match-rule label,.mewz-wcas-match-rule select{float:none;margin:0;vertical-align:initial;width:auto}.mewz-wcas-match-rule .icon-button.expand-button{color:#777;font-size:20px}.mewz-wcas-match-rule .icon-button.expand-button:hover{color:#6b6b6b}.mewz-wcas-match-rule .icon-button.expand-button:active{color:#535353}.mewz-wcas-match-rule .icon-button.expand-button:before{content:"\f140"}.mewz-wcas-match-rule .icon-button.drag-button{color:#777;cursor:row-resize;font-size:20px}.mewz-wcas-match-rule .icon-button.drag-button:hover{color:#6b6b6b}.mewz-wcas-match-rule .icon-button.drag-button:active{color:#535353}.mewz-wcas-match-rule .icon-button.drag-button:before{content:"\f333"}.mewz-wcas-match-rule .icon-button.duplicate-button{color:#777;font-size:18px}.mewz-wcas-match-rule .icon-button.duplicate-button:hover{color:#6b6b6b}.mewz-wcas-match-rule .icon-button.duplicate-button:active{color:#535353}.mewz-wcas-match-rule .icon-button.duplicate-button:before{content:"\f105"}.mewz-wcas-match-rule .icon-button.remove-button{color:#e46363;font-size:24px}.mewz-wcas-match-rule .icon-button.remove-button:hover{color:#df4747}.mewz-wcas-match-rule .icon-button.remove-button:active{color:#c32222}.mewz-wcas-match-rule .icon-button.remove-button:before{content:"\f335"}.mewz-wcas-match-rule .icon-button.row-remove-button{color:#dd8080;font-size:20px}.mewz-wcas-match-rule .icon-button.row-remove-button:before{content:"\f14f"}.mewz-wcas-match-rule .icon-button.row-remove-button:hover{color:#e46363}.mewz-wcas-match-rule .icon-button.row-remove-button:active{color:#da2b2b}.mewz-wcas-match-rule .match-rule-toolbar{background-color:#fff;box-sizing:border-box;cursor:pointer;display:flex;padding:9px 5px 9px 14px;-webkit-user-select:none;user-select:none;width:100%;-webkit-user-drag:none}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-labels{align-items:center;display:flex;font-size:11px;font-weight:600;margin:0;position:relative;vertical-align:middle;white-space:nowrap}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label{display:block}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label+.toolbar-label{margin-left:7px}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-title{color:#1d2327;font-size:14px;font-weight:600;line-height:20px}.mewz-wcas-match-rule .match-rule-toolbar .sep{margin:0 7px 0 6px}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute{align-items:center;background:#fff;border:1px solid #c2c4c9;border-radius:4px;box-shadow:0 1px 1px #0000000d;color:#3d4043;display:inline-flex;line-height:22px;overflow:hidden}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute span{display:block;padding:0 7px;white-space:nowrap}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute .name{background:#f6f6f6;border-right:inherit}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute .value{font-weight:400}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-multiplier{color:#3d4043;font-size:12px;font-weight:700}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-multiplier.inherited{color:#999}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-stop{color:#cf5f5f;font-family:dashicons;font-size:14px;line-height:1}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-stop:before{content:"\f474"}.mewz-wcas-match-rule.zero-multiplier .match-rule-toolbar .toolbar-label-multiplier{color:#cf5f5f}.mewz-wcas-match-rule.stop-rule .sep,.mewz-wcas-match-rule.stop-rule .toolbar-label-title{color:#c43b3b}.mewz-wcas-match-rule.stop-rule .match-rule-toolbar{background-color:#fff6f5}.mewz-wcas-match-rule .match-rule-toolbar-actions{font-size:0;margin-left:auto;vertical-align:middle;white-space:nowrap}.mewz-wcas-match-rule .match-rule-body-inner{background:#fbfbfc;border-top:1px solid var(--ui-border-color);display:flex;flex-wrap:wrap;padding:9px 14px 14px}.mewz-wcas-match-rule .attribute-list{margin-top:6px;max-width:75%;min-width:600px}.mewz-wcas-match-rule .attribute-list .attribute-row{background:#fbfbfc;position:relative}.mewz-wcas-match-rule .attribute-list .attribute-row:after{content:"";display:block;height:0;margin-bottom:-1px}.mewz-wcas-match-rule .attribute-list .attribute-row-inner{display:flex}.mewz-wcas-match-rule .attribute-list select{display:block;height:30px;visibility:hidden}.mewz-wcas-match-rule .attribute-list .select2-container{display:block!important;height:100%;min-height:30px;min-width:100%!important}.mewz-wcas-match-rule .attribute-list .select-attribute{flex-shrink:0;max-width:250px}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-container{max-width:100%!important;min-width:170px!important;z-index:2}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-selection{align-items:center;display:flex;height:100%}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-selection__arrow{margin-left:auto;position:static}.mewz-wcas-match-rule .attribute-list .select-terms{flex:1;margin-left:-1px}.mewz-wcas-match-rule .attribute-list .select-terms .select2-container{width:100%!important}.mewz-wcas-match-rule .attribute-list .select2-selection{border-radius:0}.mewz-wcas-match-rule .attribute-list .attribute-row:first-child .select-attribute .select2-container:not(.select2-container--above.select2-container--open) .select2-selection{border-top-left-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row:first-child .select-terms .select2-container:not(.select2-container--above.select2-container--open) .select2-selection{border-top-right-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row:last-child .select-attribute .select2-container:not(.select2-container--below.select2-container--open) .select2-selection{border-bottom-left-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row:last-child .select-terms .select2-container:not(.select2-container--below.select2-container--open) .select2-selection{border-bottom-right-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row-actions{align-self:center}.mewz-wcas-match-rule .attribute-list .attribute-list-actions{margin-bottom:-7px;margin-top:1px}.mewz-wcas-match-rule .attribute-list .row-add-button{align-items:center;background:none;border:0;color:#0009;cursor:pointer;display:inline-flex;font-size:11px;line-height:14px;padding:6px 2px 6px 0;vertical-align:bottom}.mewz-wcas-match-rule .attribute-list .row-add-button:before{color:#008ec5;content:"\f502";display:inline-block;font-family:dashicons;font-size:14px;margin:0 2.5px 0 -1.5px}.mewz-wcas-match-rule .attribute-list .row-add-button:hover{color:#000000bf}.mewz-wcas-match-rule .attribute-list .row-add-button:hover:before{color:#0080b1}.mewz-wcas-match-rule .attribute-list .row-add-button:active{color:#000000e6}.mewz-wcas-match-rule .attribute-list .row-add-button:active:before{color:#00729e}.mewz-wcas-match-rule .match-rule-options{margin-left:auto;margin-top:6px;padding-left:10px}.mewz-wcas-match-rule .match-rule-options .option{align-items:center;display:flex;white-space:nowrap}.mewz-wcas-match-rule .match-rule-options label{line-height:30px;margin-right:15px;min-width:100px;text-align:right}.mewz-wcas-match-rule .match-rule-options label .woocommerce-help-tip{margin:0}.mewz-wcas-match-rule .match-rule-options input,.mewz-wcas-match-rule .match-rule-options select{position:relative;width:120px;z-index:1}.mewz-wcas-match-rule.open .match-rule-toolbar .expand-button:before{content:"\f142"}.mewz-wcas-match-rule:not(.dragging):not(:hover) .match-rule-toolbar-actions .toolbar-action{color:var(--ui-border-color)}.mewz-wcas-attribute-rules.dragging .match-rules-list:after,.mewz-wcas-attribute-rules.dragging:not(.released):after{content:"";cursor:row-resize;display:block;inset:0;position:fixed;z-index:999999999}.mewz-wcas-attribute-rules.dragging .match-rules-list:after{position:absolute}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule{pointer-events:none!important;transition-duration:.2s}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule.dragging{z-index:999}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule.dragging:not(.released){box-shadow:var(--border-shadow),0 2px 10px #0000000f;transition:box-shadow .2s ease}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule.dragging.released,.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule:not(.dragging){box-shadow:0 1px #ddd;transform:translateY(0);transition-property:transform,box-shadow;transition-timing-function:ease-out}@media screen and (max-width:1500px){.mewz-wcas-match-rule .attribute-list{max-width:100%;min-width:0;width:100%}.mewz-wcas-match-rule .attribute-list .select-attribute{max-width:40%}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-container{min-width:130px!important}.mewz-wcas-match-rule .attribute-list .select-terms{max-width:none;min-width:0;width:auto}.mewz-wcas-match-rule .attribute-row-actions{margin-right:-7px}.mewz-wcas-match-rule .match-rule-options{padding:0}}@media screen and (max-width:782px){.mewz-wcas-attribute-rules.main-toolbar .button{line-height:38px}.mewz-wcas-match-rule .icon-button.remove-button{font-size:30px}.mewz-wcas-match-rule .icon-button.drag-button,.mewz-wcas-match-rule .icon-button.expand-button{font-size:24px}.mewz-wcas-match-rule .match-rule-toolbar{padding-bottom:12px;padding-top:12px}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-title{line-height:40px}.mewz-wcas-match-rule .match-rule-options{margin-top:15px}.mewz-wcas-match-rule .match-rule-options label{line-height:40px}.mewz-wcas-match-rule .match-rule-options input,.mewz-wcas-match-rule .match-rule-options select{height:40px}.mewz-wcas-match-rule .attribute-list .select2-container{min-height:40px}.mewz-wcas-match-rule .attribute-list .row-add-button{font-size:14px;line-height:20px;margin-top:8px}.mewz-wcas-match-rule .attribute-list .row-add-button:before{font-size:20px}.mewz-wcas-match-rule .attribute-list .attribute-row-actions{margin-left:3px;margin-right:-8px}.mewz-wcas-match-rule .attribute-list .row-remove-button{font-size:26px;height:36px;line-height:36px;width:36px}}#components_panel .select2-container,.mewz-wcas-components-section .component-list{max-width:80%;min-width:50%;width:400px!important}.mewz-wcas-components-section{margin:9px 20px 14px 162px}.mewz-wcas-components-section .component-list{border:1px solid var(--border-dark);border-radius:4px;box-sizing:border-box;transition:opacity,margin-bottom;transition-duration:.17s;--item-height:44px;--border-light:#ddd;--border-dark:#7e8993}.mewz-wcas-components-section.empty .component-list{margin-bottom:-16px;opacity:0}.mewz-wcas-components-section .component-list-inner{border-radius:6px;overflow:hidden}.mewz-wcas-components-section .component-list-inner:before{content:"";display:block;height:0;margin-bottom:-1px;visibility:hidden}.mewz-wcas-components-section .component-item{align-items:center;background:#fff;border-top:1px solid var(--border-light);box-shadow:0 1px var(--border-light);display:flex;height:var(--item-height);padding-left:9px;position:relative}.mewz-wcas-components-section .component-item .component-image{background-color:#00000005;border-radius:3px;flex-shrink:0;height:26px;margin-right:7px;overflow:hidden;width:26px}.mewz-wcas-components-section .component-item .component-image img{height:100%;width:100%}.mewz-wcas-components-section .component-item .component-sku,.mewz-wcas-components-section .component-item .component-title{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mewz-wcas-components-section .component-item .component-sku{color:#999;font-size:10px;font-weight:600;margin-left:10px}.mewz-wcas-components-section .component-item .component-status{margin-left:10px}.mewz-wcas-components-section .component-item .component-disabled{color:#dd8080;font-family:WooCommerce;font-size:16px}.mewz-wcas-components-section .component-item .component-disabled:before{content:"\e602"}.mewz-wcas-components-section .component-item .component-quantity{margin-left:auto;max-width:85px;min-width:50px;padding-left:10px;width:25%}.mewz-wcas-components-section .component-item .component-quantity input{display:block;width:100%}.mewz-wcas-components-section .component-item .component-quantity input:not(:focus){border-color:var(--border-light)}.mewz-wcas-components-section .component-item .component-quantity input:not(:focus):hover{border-color:var(--border-dark)}.mewz-wcas-components-section .component-item .component-quantity input::placeholder{color:#aaa!important}.mewz-wcas-components-section .component-item .component-actions{margin:0 4px}.mewz-wcas-components-section .component-item .remove-component-button{background:none;border:0;color:#e46363;cursor:pointer;font-family:dashicons;font-size:20px;height:30px;padding:0;transition:color .13s ease;vertical-align:bottom;width:30px}.mewz-wcas-components-section .component-item .remove-component-button:hover{color:#df4747}.mewz-wcas-components-section .component-item .remove-component-button:active{color:#c32222}.mewz-wcas-components-section .component-item .remove-component-button:before{content:"\f14f"}.mewz-wcas-components-section .component-item .remove-component-button:not(:hover){color:var(--ui-border-color)}.mewz-wcas-components-section .component-item.disabled .component-image img{filter:saturate(0)}.mewz-wcas-components-section .component-item.disabled .component-title{color:#8f8f8f}@media screen and (max-width:1200px){.mewz-wcas-components-section{margin-left:14px;margin-right:14px}.mewz-wcas-components-section .component-list{max-width:100%;min-width:0;width:100%!important}}@media screen and (max-width:782px){.mewz-wcas-components-section .component-item .component-quantity{max-width:none;min-width:0;width:90px}.mewz-wcas-components-section .component-item .component-quantity input{height:36px!important;min-height:0}.mewz-wcas-components-section .component-item .remove-component-button{font-size:26px;height:36px;line-height:36px;width:36px}}@media screen and (max-width:500px){.mewz-wcas-components-section{margin-left:20px;margin-right:20px}}#mewz-wcas-status-metabox .inside{margin:0;padding:0}.mewz-wcas-status-metabox section{padding:10px}.mewz-wcas-status-metabox .status-row{display:table;width:100%}.mewz-wcas-status-metabox .status-row+.status-row{margin-top:10px}.mewz-wcas-status-metabox .row-content,.mewz-wcas-status-metabox .row-label{display:table-cell;text-align:left;vertical-align:middle}.mewz-wcas-status-metabox .row-label{white-space:nowrap;width:1%}.mewz-wcas-status-metabox .row-label:not(label){cursor:default}.mewz-wcas-status-metabox .row-label:before{color:#82878c;content:"";display:inline-block;font:normal 20px/1 Dashicons;margin-left:-1px;padding-right:6px;vertical-align:bottom}.mewz-wcas-status-metabox .row-content{font-weight:600;height:22px;text-align:right}.mewz-wcas-status-metabox .row-enabled .row-label:before{content:"\f108"}.mewz-wcas-status-metabox .row-date .row-label{white-space:nowrap;width:1%}.mewz-wcas-status-metabox .row-date .row-content{width:100%}.mewz-wcas-status-metabox .row-created .row-label:before{content:"\f145"}.mewz-wcas-status-metabox .row-modified .row-label:before{content:"\f469"}.mewz-wcas-status-metabox .status-metabox-foot{background:#f5f5f5;border-top:1px solid #ddd;box-sizing:border-box;display:table;width:100%}.mewz-wcas-status-metabox .status-metabox-foot .foot-left,.mewz-wcas-status-metabox .status-metabox-foot .foot-right{display:table-cell;text-align:left;vertical-align:middle}.mewz-wcas-status-metabox .status-metabox-foot .foot-right{text-align:right;white-space:nowrap;width:1%}.mewz-wcas-status-metabox .status-metabox-foot .spinner{display:inline-block;float:none;margin:0 .5em 0 0}.mewz-wcas-status-metabox .status-metabox-foot .button{vertical-align:middle}1 .mewz-wcas-match-rule .icon-button{background:none;border:0;box-shadow:none;cursor:pointer;display:inline-block;font-size:30px;height:30px;line-height:30px;margin:0;outline:none;padding:0;text-align:center;transition:color .15s;vertical-align:bottom;width:30px}.mewz-wcas-match-rule .icon-button:before{display:inline;font-family:dashicons}.mewz-wcas-match-rule .icon-button:disabled{color:#00000026!important;cursor:auto}.mewz-wcas-status-metabox .toggle-switch{display:inline-block;font-size:24px;height:1em;position:relative;-webkit-user-select:none;user-select:none;width:2em;-webkit-user-drag:none}.mewz-wcas-status-metabox .toggle-switch .checkbox{display:none!important}.mewz-wcas-status-metabox .toggle-switch .switch{background-clip:initial;background-color:#fff;border:2px solid #6c7781;border-radius:100em;bottom:0;cursor:pointer;display:inline-block;left:0;position:absolute;right:0;top:0;transition-duration:.15s;transition-property:background-color,border-color}.mewz-wcas-status-metabox .toggle-switch .switch:before{background-color:#6c7781;border-radius:100em;box-sizing:initial;content:"";display:inline-block;height:calc(1em - 10px);left:-2px;margin:5px;position:absolute;top:-2px;transition-duration:inherit;transition-property:left,background-color;width:calc(1em - 10px)}.mewz-wcas-status-metabox .toggle-switch .checkbox:checked~.switch{background-color:#e0f1ff;border-color:#2271b1}.mewz-wcas-status-metabox .toggle-switch .checkbox:checked~.switch:before{background-color:#2271b1;left:calc(100% - 1em + 2px)}.mewz-wcas-status-metabox .toggle-switch .checkbox:disabled~.switch{cursor:default;opacity:.5}#tagsdiv-product_tag .tagchecklist{margin-bottom:0}#tagsdiv-product_tag .inside>p:last-child{display:none}.mewz-wcas-metabox-tabbed{display:flex;--ui-border-color:#ddd}.mewz-wcas-metabox-tabbed .panel{display:none;min-height:0}.mewz-wcas-metabox-tabbed .woocommerce_options_panel{float:left;width:80%}.mewz-wcas-metabox-tabbed ul.wc-tabs{border-right-color:var(--ui-border-color)!important}.mewz-wcas-metabox-tabbed ul.wc-tabs:after{display:none!important}.mewz-wcas-metabox-tabbed ul.wc-tabs li a{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.mewz-wcas-metabox-tabbed ul.wc-tabs li a:before{position:relative;top:1px}.mewz-wcas-metabox-tabbed ul.wc-tabs li a:after{color:#bbb;content:attr(data-indicator);display:inline-block;float:right;font-size:11px;font-weight:600}.mewz-wcas-metabox-tabbed ul.wc-tabs li.components_options a:before{content:"\f533"!important}.mewz-wcas-metabox-tabbed ul.wc-tabs li.attributes_options a:before{content:"\f175"}.mewz-wcas-metabox-tabbed ul.wc-tabs li.filters_options a:before{content:"\f536"}.mewz-wcas-metabox-tabbed .options_group{border-top:0}#mewz-wcas-details-metabox .inside,#mewz-wcas-matches-metabox .inside{margin:0;padding:0}#mewz-wcas-details-metabox .panel{min-height:195px}.post-type-attribute_stock #poststuff [hidden]{display:none!important}.post-type-attribute_stock #poststuff input::placeholder,.post-type-attribute_stock #poststuff textarea::placeholder{color:#888}.post-type-attribute_stock #poststuff input[type=text]{height:30px}.post-type-attribute_stock #poststuff textarea{height:auto}.post-type-attribute_stock #poststuff .panel-wrap .panel .button{line-height:28px;margin:0;vertical-align:middle}.post-type-attribute_stock #poststuff .button:before{display:inline-block;font-family:dashicons;font-size:16px;line-height:inherit;vertical-align:bottom}.post-type-attribute_stock #poststuff .button:not(.icon-only):before{margin-left:-4px;padding-right:5px}.post-type-attribute_stock #poststuff .woocommerce-help-tip{font-size:16.8px}.post-type-attribute_stock #poststuff .form-field .description .woocommerce-help-tip{transform:translate(-3px,1px);vertical-align:text-top}.post-type-attribute_stock #poststuff .help-icon-link{display:inline-block;font-size:16px;font-style:normal;font-weight:400;height:1em;line-height:1;vertical-align:text-bottom;width:1em}.post-type-attribute_stock #poststuff .help-icon-link:before{content:"\f223";display:inline-block;font-family:dashicons;vertical-align:top}.post-type-attribute_stock #poststuff .mewz-wcas-pro-required label{align-items:center;color:#ea4c51;display:flex}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta{background:#ffefef;border:1px solid #ea4c51;border-radius:3px;box-shadow:0 0 3px #fe5a5f80;color:#ea4c51;display:inline-block;font-size:9px;font-weight:700;letter-spacing:.5px;line-height:1;margin:1px 0 0 6px;padding:1px 3px;-webkit-text-decoration:none;text-decoration:none}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta:hover{background:#ffe6e7}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta:focus{box-shadow:0 0 4px #fe5a5f}.post-type-attribute_stock #poststuff .mewz-wcas-pro-cta:active{background:#ffdedf}.post-type-attribute_stock #poststuff .upgrade-hint{color:#ea4c51;display:block;font-size:12px;line-height:18px}.post-type-attribute_stock #poststuff .upgrade-hint a{color:inherit;font-weight:600}.post-type-attribute_stock #poststuff .select2-container{display:inline-block;min-width:50%;position:relative;z-index:1}.post-type-attribute_stock #poststuff .select2-container.select2-container.select2-container--disabled{z-index:0}.post-type-attribute_stock #poststuff .select2-container.select2-container--focus:not(.select2-container--disabled){z-index:3}.post-type-attribute_stock #poststuff .select2-container.select2-container--open:not(.select2-container--disabled){z-index:4}.post-type-attribute_stock #poststuff .select2-container .select2-selection__rendered{padding-right:5px}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered{--padding:2px;box-sizing:border-box;padding:0 0 var(--padding) var(--padding);vertical-align:bottom}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li{box-sizing:border-box;font-size:12px;height:24px;margin:var(--padding) var(--padding) 0 0}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline{overflow:hidden}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered .select2-search__field{height:100%;max-width:100%;min-height:0;min-width:0}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline:only-child{width:100%}.post-type-attribute_stock #poststuff .select2-container .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline:only-child .select2-search__field{padding:0 6px;width:100%!important}.post-type-attribute_stock #poststuff .select2-container:not(.select2-container--focus):not(.select2-container--open) .select2-selection--multiple ul.select2-selection__rendered li.select2-search--inline:not(:only-child){height:0;overflow:hidden;pointer-events:none;position:absolute;width:0;z-index:-999}.post-type-attribute_stock #poststuff .select2-container.select2-container--disabled .select2-selection--multiple{background:#ffffff80;border-color:#dededebf;box-shadow:inset 0 1px 2px #0000000a;cursor:default}.post-type-attribute_stock .select2-dropdown{transform:translateY(-1px);--faded-border:#0000001a}.post-type-attribute_stock .select2-dropdown:after{background:#fff;box-shadow:0 1px var(--faded-border);z-index:10}.post-type-attribute_stock .select2-dropdown.select2-dropdown--above{transform:translateY(1px)}.post-type-attribute_stock .select2-dropdown.select2-dropdown--above:after{box-shadow:0 -1px var(--faded-border)}.post-type-attribute_stock .select2-dropdown .select2-results>.select2-results__options{background:#fff;max-height:240px;position:relative;z-index:2}.post-type-attribute_stock .select2-dropdown .select2-results{background:var(--wp-admin-theme-color,#007cba);overflow:hidden}.post-type-attribute_stock .select2-dropdown.select2-dropdown--below .select2-results{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.post-type-attribute_stock .select2-dropdown.select2-dropdown--above .select2-results:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__group,.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__option{line-height:18px;padding:6px 8px}.post-type-attribute_stock .select2-dropdown .select2-search--dropdown{padding:0;position:relative;z-index:10}.post-type-attribute_stock .select2-dropdown .select2-search__field{background:none;border:0;border-radius:0!important;box-shadow:0 1px var(--faded-border);font-size:12px;line-height:20px;margin:0;padding:0 8px;position:relative;z-index:1}#postimagediv .inside img{border:0}@media screen and (max-width:1280px){.post-type-attribute_stock #poststuff .form-field .select2-container{width:80%!important}}@media screen and (max-width:1200px){.mewz-wcas-metabox-tabbed li a:after{display:none!important}}@media screen and (max-width:900px){.mewz-wcas-metabox-tabbed .wc-metaboxes-wrapper,.mewz-wcas-metabox-tabbed .woocommerce_options_panel{width:90%}.mewz-wcas-metabox-tabbed ul.wc-tabs{width:10%}.mewz-wcas-metabox-tabbed ul.wc-tabs li a{padding:10px;position:relative;text-indent:-999px}.mewz-wcas-metabox-tabbed ul.wc-tabs li a:before{bottom:0;height:40px;left:0;line-height:40px;position:absolute;right:0;text-align:center;text-indent:0;top:0;width:100%}}@media screen and (max-width:782px){.post-type-attribute_stock #poststuff .panel-wrap input[type=number],.post-type-attribute_stock #poststuff .panel-wrap input[type=text]{height:40px}.post-type-attribute_stock #poststuff .select2-container--default .select2-selection--multiple ul.select2-selection__rendered{--padding:4px;min-height:38px}.post-type-attribute_stock #poststuff .select2-container--default .select2-selection--multiple ul.select2-selection__rendered li{font-size:15px;height:30px;line-height:24px}.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__group,.post-type-attribute_stock .select2-dropdown .select2-results .select2-results__option{line-height:22px;padding:9px 8px}}.mewz-wcas-attribute-rules .main-toolbar{background:#fff;box-shadow:0 1px var(--ui-border-color);display:flex;position:relative;width:100%;z-index:2}.mewz-wcas-attribute-rules .main-toolbar .toolbar-left,.mewz-wcas-attribute-rules .main-toolbar .toolbar-right{align-items:center;display:flex;padding:12px 14px;text-align:left;vertical-align:middle;white-space:nowrap}.mewz-wcas-attribute-rules .main-toolbar .toolbar-right{margin-left:auto;padding-left:0}.mewz-wcas-attribute-rules .main-toolbar .add-button:before{content:"\f502"}.mewz-wcas-attribute-rules .main-toolbar .toggle-button:before{margin:0 -1px 0 -5px}.mewz-wcas-attribute-rules .main-toolbar .toggle-button.expand:before{content:"\f132";transform:translateY(1px)}.mewz-wcas-attribute-rules .main-toolbar .toggle-button.collapse:before{content:"\f460"}.mewz-wcas-attribute-rules .main-toolbar .restore-button{background:none;border:0;box-shadow:none;color:#c4c4c4;height:30px;margin-right:3px;padding:0;width:30px}.mewz-wcas-attribute-rules .main-toolbar .restore-button:before{content:"\f171";margin:0}.mewz-wcas-attribute-rules .main-toolbar .restore-button:hover{color:#6b6b6b}.mewz-wcas-attribute-rules .main-toolbar .restore-button:active{color:#5f5f5f}.mewz-wcas-attribute-rules .main-toolbar .woocommerce-help-tip{margin-left:7px}.mewz-wcas-attribute-rules .match-rules-list{background:#fafafa;overflow:hidden;position:relative;z-index:1}.mewz-wcas-match-rule{--border-shadow:0 1px var(--ui-border-color);background:#fff;border-top:1px solid var(--ui-border-color);box-shadow:var(--border-shadow);position:relative;width:100%;z-index:1}.mewz-wcas-match-rule input,.mewz-wcas-match-rule label,.mewz-wcas-match-rule select{float:none;margin:0;vertical-align:initial;width:auto}.mewz-wcas-match-rule .icon-button.expand-button{color:#777;font-size:20px}.mewz-wcas-match-rule .icon-button.expand-button:hover{color:#6b6b6b}.mewz-wcas-match-rule .icon-button.expand-button:active{color:#535353}.mewz-wcas-match-rule .icon-button.expand-button:before{content:"\f140"}.mewz-wcas-match-rule .icon-button.drag-button{color:#777;cursor:row-resize;font-size:20px}.mewz-wcas-match-rule .icon-button.drag-button:hover{color:#6b6b6b}.mewz-wcas-match-rule .icon-button.drag-button:active{color:#535353}.mewz-wcas-match-rule .icon-button.drag-button:before{content:"\f333"}.mewz-wcas-match-rule .icon-button.duplicate-button{color:#777;font-size:18px}.mewz-wcas-match-rule .icon-button.duplicate-button:hover{color:#6b6b6b}.mewz-wcas-match-rule .icon-button.duplicate-button:active{color:#535353}.mewz-wcas-match-rule .icon-button.duplicate-button:before{content:"\f105"}.mewz-wcas-match-rule .icon-button.remove-button{color:#e46363;font-size:24px}.mewz-wcas-match-rule .icon-button.remove-button:hover{color:#df4747}.mewz-wcas-match-rule .icon-button.remove-button:active{color:#c32222}.mewz-wcas-match-rule .icon-button.remove-button:before{content:"\f335"}.mewz-wcas-match-rule .icon-button.row-remove-button{color:#dd8080;font-size:20px}.mewz-wcas-match-rule .icon-button.row-remove-button:before{content:"\f14f"}.mewz-wcas-match-rule .icon-button.row-remove-button:hover{color:#e46363}.mewz-wcas-match-rule .icon-button.row-remove-button:active{color:#da2b2b}.mewz-wcas-match-rule .match-rule-toolbar{background-color:#fff;box-sizing:border-box;cursor:pointer;display:flex;padding:9px 5px 9px 14px;-webkit-user-select:none;user-select:none;width:100%;-webkit-user-drag:none}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-labels{align-items:center;display:flex;font-size:11px;font-weight:600;margin:0;position:relative;vertical-align:middle;white-space:nowrap}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label{display:block}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label+.toolbar-label{margin-left:7px}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-title{color:#1d2327;font-size:14px;font-weight:600;line-height:20px}.mewz-wcas-match-rule .match-rule-toolbar .sep{margin:0 7px 0 6px}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute{align-items:center;background:#fff;border:1px solid #c2c4c9;border-radius:4px;box-shadow:0 1px 1px #0000000d;color:#3d4043;display:inline-flex;line-height:22px;overflow:hidden}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute span{display:block;padding:0 7px;white-space:nowrap}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute .name{background:#f6f6f6;border-right:inherit}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-attribute .value{font-weight:400}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-multiplier{color:#3d4043;font-size:12px;font-weight:700}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-multiplier.inherited{color:#999}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-stop{color:#cf5f5f;font-family:dashicons;font-size:14px;line-height:1}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-label-stop:before{content:"\f474"}.mewz-wcas-match-rule.zero-multiplier .match-rule-toolbar .toolbar-label-multiplier{color:#cf5f5f}.mewz-wcas-match-rule.stop-rule .sep,.mewz-wcas-match-rule.stop-rule .toolbar-label-title{color:#c43b3b}.mewz-wcas-match-rule.stop-rule .match-rule-toolbar{background-color:#fff6f5}.mewz-wcas-match-rule .match-rule-toolbar-actions{font-size:0;margin-left:auto;vertical-align:middle;white-space:nowrap}.mewz-wcas-match-rule .match-rule-body-inner{background:#fbfbfc;border-top:1px solid var(--ui-border-color);display:flex;flex-wrap:wrap;padding:9px 14px 14px}.mewz-wcas-match-rule .attribute-list{margin-top:6px;max-width:75%;min-width:600px}.mewz-wcas-match-rule .attribute-list .attribute-row{background:#fbfbfc;position:relative}.mewz-wcas-match-rule .attribute-list .attribute-row:after{content:"";display:block;height:0;margin-bottom:-1px}.mewz-wcas-match-rule .attribute-list .attribute-row-inner{display:flex}.mewz-wcas-match-rule .attribute-list select{display:block;height:30px;visibility:hidden}.mewz-wcas-match-rule .attribute-list .select2-container{display:block!important;height:100%;min-height:30px;min-width:100%!important}.mewz-wcas-match-rule .attribute-list .select-attribute{flex-shrink:0;max-width:250px}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-container{max-width:100%!important;min-width:170px!important;z-index:2}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-selection{align-items:center;display:flex;height:100%}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-selection__arrow{margin-left:auto;position:static}.mewz-wcas-match-rule .attribute-list .select-terms{flex:1;margin-left:-1px}.mewz-wcas-match-rule .attribute-list .select-terms .select2-container{width:100%!important}.mewz-wcas-match-rule .attribute-list .select2-selection{border-radius:0}.mewz-wcas-match-rule .attribute-list .attribute-row:first-child .select-attribute .select2-container:not(.select2-container--above.select2-container--open) .select2-selection{border-top-left-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row:first-child .select-terms .select2-container:not(.select2-container--above.select2-container--open) .select2-selection{border-top-right-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row:last-child .select-attribute .select2-container:not(.select2-container--below.select2-container--open) .select2-selection{border-bottom-left-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row:last-child .select-terms .select2-container:not(.select2-container--below.select2-container--open) .select2-selection{border-bottom-right-radius:4px}.mewz-wcas-match-rule .attribute-list .attribute-row-actions{align-self:center}.mewz-wcas-match-rule .attribute-list .attribute-list-actions{margin-bottom:-7px;margin-top:1px}.mewz-wcas-match-rule .attribute-list .row-add-button{align-items:center;background:none;border:0;color:#0009;cursor:pointer;display:inline-flex;font-size:11px;line-height:14px;padding:6px 2px 6px 0;vertical-align:bottom}.mewz-wcas-match-rule .attribute-list .row-add-button:before{color:#008ec5;content:"\f502";display:inline-block;font-family:dashicons;font-size:14px;margin:0 2.5px 0 -1.5px}.mewz-wcas-match-rule .attribute-list .row-add-button:hover{color:#000000bf}.mewz-wcas-match-rule .attribute-list .row-add-button:hover:before{color:#0080b1}.mewz-wcas-match-rule .attribute-list .row-add-button:active{color:#000000e6}.mewz-wcas-match-rule .attribute-list .row-add-button:active:before{color:#00729e}.mewz-wcas-match-rule .match-rule-options{margin-left:auto;margin-top:6px;padding-left:10px}.mewz-wcas-match-rule .match-rule-options .option{align-items:center;display:flex;white-space:nowrap}.mewz-wcas-match-rule .match-rule-options label{align-items:center;display:flex;line-height:30px;margin-right:15px;min-width:100px;text-align:right}.mewz-wcas-match-rule .match-rule-options label .woocommerce-help-tip{margin:2px 0 0 3px}.mewz-wcas-match-rule .match-rule-options input,.mewz-wcas-match-rule .match-rule-options select{position:relative;width:120px;z-index:1}.mewz-wcas-match-rule.open .match-rule-toolbar .expand-button:before{content:"\f142"}.mewz-wcas-match-rule:not(.dragging):not(:hover) .match-rule-toolbar-actions .toolbar-action{color:var(--ui-border-color)}.mewz-wcas-attribute-rules.dragging .match-rules-list:after,.mewz-wcas-attribute-rules.dragging:not(.released):after{content:"";cursor:row-resize;display:block;inset:0;position:fixed;z-index:999999999}.mewz-wcas-attribute-rules.dragging .match-rules-list:after{position:absolute}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule{pointer-events:none!important;transition-duration:.2s}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule.dragging{z-index:999}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule.dragging:not(.released){box-shadow:var(--border-shadow),0 2px 10px #0000000f;transition:box-shadow .2s ease}.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule.dragging.released,.mewz-wcas-attribute-rules.dragging .mewz-wcas-match-rule:not(.dragging){box-shadow:0 1px #ddd;transform:translateY(0);transition-property:transform,box-shadow;transition-timing-function:ease-out}@media screen and (max-width:1500px){.mewz-wcas-match-rule .attribute-list{max-width:100%;min-width:0;width:100%}.mewz-wcas-match-rule .attribute-list .select-attribute{max-width:40%}.mewz-wcas-match-rule .attribute-list .select-attribute .select2-container{min-width:130px!important}.mewz-wcas-match-rule .attribute-list .select-terms{max-width:none;min-width:0;width:auto}.mewz-wcas-match-rule .attribute-row-actions{margin-right:-7px}.mewz-wcas-match-rule .match-rule-options{padding:0}}@media screen and (max-width:782px){.mewz-wcas-attribute-rules.main-toolbar .button{line-height:38px}.mewz-wcas-match-rule .icon-button.remove-button{font-size:30px}.mewz-wcas-match-rule .icon-button.drag-button,.mewz-wcas-match-rule .icon-button.expand-button{font-size:24px}.mewz-wcas-match-rule .match-rule-toolbar{padding-bottom:12px;padding-top:12px}.mewz-wcas-match-rule .match-rule-toolbar .toolbar-title{line-height:40px}.mewz-wcas-match-rule .match-rule-options{margin-top:15px}.mewz-wcas-match-rule .match-rule-options label{line-height:40px}.mewz-wcas-match-rule .match-rule-options input,.mewz-wcas-match-rule .match-rule-options select{height:40px}.mewz-wcas-match-rule .attribute-list .select2-container{min-height:40px}.mewz-wcas-match-rule .attribute-list .row-add-button{font-size:14px;line-height:20px;margin-top:8px}.mewz-wcas-match-rule .attribute-list .row-add-button:before{font-size:20px}.mewz-wcas-match-rule .attribute-list .attribute-row-actions{margin-left:3px;margin-right:-8px}.mewz-wcas-match-rule .attribute-list .row-remove-button{font-size:26px;height:36px;line-height:36px;width:36px}}#components_panel .select2-container,.mewz-wcas-components-section .component-list{max-width:80%;min-width:50%;width:400px!important}.mewz-wcas-components-section{margin:9px 20px 14px 162px}.mewz-wcas-components-section .component-list{border:1px solid var(--border-dark);border-radius:4px;box-sizing:border-box;transition:opacity,margin-bottom;transition-duration:.17s;--item-height:44px;--border-light:#ddd;--border-dark:#7e8993}.mewz-wcas-components-section.empty .component-list{margin-bottom:-16px;opacity:0}.mewz-wcas-components-section .component-list-inner{border-radius:6px;overflow:hidden}.mewz-wcas-components-section .component-list-inner:before{content:"";display:block;height:0;margin-bottom:-1px;visibility:hidden}.mewz-wcas-components-section .component-item{align-items:center;background:#fff;border-top:1px solid var(--border-light);box-shadow:0 1px var(--border-light);display:flex;height:var(--item-height);padding-left:9px;position:relative}.mewz-wcas-components-section .component-item .component-image{background-color:#00000005;border-radius:3px;flex-shrink:0;height:26px;margin-right:7px;overflow:hidden;width:26px}.mewz-wcas-components-section .component-item .component-image img{height:100%;width:100%}.mewz-wcas-components-section .component-item .component-sku,.mewz-wcas-components-section .component-item .component-title{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mewz-wcas-components-section .component-item .component-sku{color:#999;font-size:10px;font-weight:600;margin-left:10px}.mewz-wcas-components-section .component-item .component-status{margin-left:10px}.mewz-wcas-components-section .component-item .component-disabled{color:#dd8080;font-family:WooCommerce;font-size:16px}.mewz-wcas-components-section .component-item .component-disabled:before{content:"\e602"}.mewz-wcas-components-section .component-item .component-quantity{margin-left:auto;max-width:85px;min-width:50px;padding-left:10px;width:25%}.mewz-wcas-components-section .component-item .component-quantity input{display:block;width:100%}.mewz-wcas-components-section .component-item .component-quantity input:not(:focus){border-color:var(--border-light)}.mewz-wcas-components-section .component-item .component-quantity input:not(:focus):hover{border-color:var(--border-dark)}.mewz-wcas-components-section .component-item .component-quantity input::placeholder{color:#aaa!important}.mewz-wcas-components-section .component-item .component-actions{margin:0 4px}.mewz-wcas-components-section .component-item .remove-component-button{background:none;border:0;color:#e46363;cursor:pointer;font-family:dashicons;font-size:20px;height:30px;padding:0;transition:color .13s ease;vertical-align:bottom;width:30px}.mewz-wcas-components-section .component-item .remove-component-button:hover{color:#df4747}.mewz-wcas-components-section .component-item .remove-component-button:active{color:#c32222}.mewz-wcas-components-section .component-item .remove-component-button:before{content:"\f14f"}.mewz-wcas-components-section .component-item .remove-component-button:not(:hover){color:var(--ui-border-color)}.mewz-wcas-components-section .component-item.disabled .component-image img{filter:saturate(0)}.mewz-wcas-components-section .component-item.disabled .component-title{color:#8f8f8f}@media screen and (max-width:1200px){.mewz-wcas-components-section{margin-left:14px;margin-right:14px}.mewz-wcas-components-section .component-list{max-width:100%;min-width:0;width:100%!important}}@media screen and (max-width:782px){.mewz-wcas-components-section .component-item .component-quantity{max-width:none;min-width:0;width:90px}.mewz-wcas-components-section .component-item .component-quantity input{height:36px!important;min-height:0}.mewz-wcas-components-section .component-item .remove-component-button{font-size:26px;height:36px;line-height:36px;width:36px}}@media screen and (max-width:500px){.mewz-wcas-components-section{margin-left:20px;margin-right:20px}}#mewz-wcas-status-metabox .inside{margin:0;padding:0}.mewz-wcas-status-metabox section{padding:10px}.mewz-wcas-status-metabox .status-row{display:table;width:100%}.mewz-wcas-status-metabox .status-row+.status-row{margin-top:10px}.mewz-wcas-status-metabox .row-content,.mewz-wcas-status-metabox .row-label{display:table-cell;text-align:left;vertical-align:middle}.mewz-wcas-status-metabox .row-label{white-space:nowrap;width:1%}.mewz-wcas-status-metabox .row-label:not(label){cursor:default}.mewz-wcas-status-metabox .row-label:before{color:#82878c;content:"";display:inline-block;font:normal 20px/1 Dashicons;margin-left:-1px;padding-right:6px;vertical-align:bottom}.mewz-wcas-status-metabox .row-content{font-weight:600;height:22px;text-align:right}.mewz-wcas-status-metabox .row-enabled .row-label:before{content:"\f108"}.mewz-wcas-status-metabox .row-date .row-label{white-space:nowrap;width:1%}.mewz-wcas-status-metabox .row-date .row-content{width:100%}.mewz-wcas-status-metabox .row-created .row-label:before{content:"\f145"}.mewz-wcas-status-metabox .row-modified .row-label:before{content:"\f469"}.mewz-wcas-status-metabox .status-metabox-foot{background:#f5f5f5;border-top:1px solid #ddd;box-sizing:border-box;display:table;width:100%}.mewz-wcas-status-metabox .status-metabox-foot .foot-left,.mewz-wcas-status-metabox .status-metabox-foot .foot-right{display:table-cell;text-align:left;vertical-align:middle}.mewz-wcas-status-metabox .status-metabox-foot .foot-right{text-align:right;white-space:nowrap;width:1%}.mewz-wcas-status-metabox .status-metabox-foot .spinner{display:inline-block;float:none;margin:0 .5em 0 0}.mewz-wcas-status-metabox .status-metabox-foot .button{vertical-align:middle} -
attribute-stock-for-woocommerce/trunk/assets/dist/admin/stock-edit.min.js
r3135163 r3185159 1 (()=>{"use strict";(()=>{let t=!1;function e(e){e&&!t||jQuery(document.body).trigger("wc-enhanced-select-init")}function n(t){jQuery(t).tipTip({fadeIn:50,fadeOut:50,delay:200})}function o(t,e,n){const o=t.closest("form");o?setTimeout((()=>{const t=i(o,e);o.addEventListener("submit",(()=>{const s=i(o,e)!==t;n(s)}))}),300):n(!0)}function i(t,e){const n=new FormData(t),o=[];for(const t of n.entries())t[0].startsWith(e)&&o.push(t[0],t[1]);return JSON.stringify(o)}jQuery(document.body).one("wc-enhanced-select-init",(()=>{t=!0}));const s=jQuery;function r(){const t=s("#mewz_wcas_internal"),e=t.prop("checked")||t.prop("disabled");s("#mewz_wcas_ product_sku").prop("disabled",e),s("#mewz_wcas_product_image").prop("disabled",e)}const l=jQuery,a=window.mewzWcas&&mewzWcas.headerActions||{},c=jQuery;let u;function d(t,e){const n=u.querySelector(`.wc-tabs > .${t}_tab a`);n&&(e?n.dataset.indicator=e:delete n.dataset.indicator)}function p(t){const e=c(`#${t}_panel`);e.on("change input",(()=>{f(t,e)})),f(t,e)}function f(t,e){const n=e.find(":input:not(:disabled, .select2-search__field)");let o=0;n.each((function(){const t=c(this),e="checkbox"===t.attr("type")?t.prop("checked"):t.val();Array.isArray(e)?o+=e.length:e&&o++})),d(t,o)}function h(){}const m=t=>t;function $(t,e){for(const n in e)t[n]=e[n];return t}function g(t){return t()}function b(){return Object.create(null)}function v(t){t.forEach(g)}function y(t){return"function"==typeof t}function w(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function _(t,e){return t!=t?e==e:t!==e}function x(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function k(t){return t&&y(t.destroy)?t.destroy:h}const E="undefined"!=typeof window;let L=E?()=>window.performance.now():()=>Date.now(),T=E?t=>requestAnimationFrame(t):h;const z=new Set;function A(t){z.forEach((e=>{e.c(t)||(z.delete(e),e.f())})),0!==z.size&&T(A)}function M(t){let e;return 0===z.size&&T(A),{promise:new Promise((n=>{z.add(e={c:t,f:n})})),abort(){z.delete(e)}}}const O="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class C{_listeners="WeakMap"in O?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((t=>{for(const e of t)C.entries.set(e.target,e),this._listeners.get(e.target)?.(e)})))}}C.entries="WeakMap"in O?new WeakMap:void 0;let I=!1;function S(t,e){t.appendChild(e)}function j(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function W(t){const e=R("style");return e.textContent="/* empty */",function(t,e){S(t.head||t,e),e.sheet}(j(t),e),e.sheet}function N(t,e,n){t.insertBefore(e,n||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function R(t){return document.createElement(t)}function q(t){return document.createTextNode(t)}function F(){return q(" ")}function Y(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function X(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t){return""===t?null:+t}function D(t,e){e=""+e,t.data!==e&&(t.data=e)}function H(t,e){t.value=null==e?"":e}function Q(t,e,n){t.classList.toggle(e,!!n)}function J(t,e,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:o})}const U=new Map;let V,G=0;function K(t,e,n,o,i,s,r,l=0){const a=16.666/o;let c="{\n";for(let t=0;t<=1;t+=a){const o=e+(n-e)*s(t);c+=100*t+`%{${r(o,1-o)}}\n`}const u=c+`100% {${r(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,p=j(t),{stylesheet:f,rules:h}=U.get(p)||function(t,e){const n={stylesheet:W(e),rules:{}};return U.set(t,n),n}(p,t);h[d]||(h[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${o}ms linear ${i}ms 1 both`,G+=1,d}function Z(t,e){const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-o.length;i&&(t.style.animation=o.join(", "),G-=i,G||T((()=>{G||(U.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&P(e)})),U.clear())})))}function tt(t){V=t}function et(){if(!V)throw new Error("Function called outside component initialization");return V}function nt(t){et().$$.on_mount.push(t)}function ot(){const t=et();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const s=J(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,s)})),!s.defaultPrevented}return!0}}function it(t,e){return et().$$.context.set(t,e),e}function st(t){return et().$$.context.get(t)}const rt=[],lt=[];let at=[];const ct=[],ut=Promise.resolve();let dt=!1;function pt(t){at.push(t)}function ft(t){ct.push(t)}const ht=new Set;let mt,$t=0;function gt(){if(0!==$t)return;const t=V;do{try{for(;$t<rt.length;){const t=rt[$t];$t++,tt(t),bt(t.$$)}}catch(t){throw rt.length=0,$t=0,t}for(tt(null),rt.length=0,$t=0;lt.length;)lt.pop()();for(let t=0;t<at.length;t+=1){const e=at[t];ht.has(e)||(ht.add(e),e())}at.length=0}while(rt.length);for(;ct.length;)ct.pop()();dt=!1,ht.clear(),tt(t)}function bt(t){if(null!==t.fragment){t.update(),v(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(pt)}}function vt(){return mt||(mt=Promise.resolve(),mt.then((()=>{mt=null}))),mt}function yt(t,e,n){t.dispatchEvent(J(`${e?"intro":"outro"}${n}`))}const wt=new Set;let _t;function xt(){_t={r:0,c:[],p:_t}}function kt(){_t.r||v(_t.c),_t=_t.p}function Et(t,e){t&&t.i&&(wt.delete(t),t.i(e))}function Lt(t,e,n,o){if(t&&t.o){if(wt.has(t))return;wt.add(t),_t.c.push((()=>{wt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}const Tt={duration:0};function zt(t,e,n,o){let i,s=e(t,n,{direction:"both"}),r=o?0:1,l=null,a=null,c=null;function u(){c&&Z(t,c)}function d(t,e){const n=t.b-r;return e*=Math.abs(n),{a:r,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function p(e){const{delay:n=0,duration:o=300,easing:p=m,tick:f=h,css:$}=s||Tt,g={start:L()+n,b:e};e||(g.group=_t,_t.r+=1),"inert"in t&&(e?void 0!==i&&(t.inert=i):(i=t.inert,t.inert=!0)),l||a?a=g:($&&(u(),c=K(t,r,e,o,n,p,$)),e&&f(0,1),l=d(g,o),pt((()=>yt(t,e,"start"))),M((e=>{if(a&&e>a.start&&(l=d(a,o),a=null,yt(t,l.b,"start"),$&&(u(),c=K(t,r,l.b,l.duration,0,p,s.css))),l)if(e>=l.end)f(r=l.b,1-r),yt(t,l.b,"end"),a||(l.b?u():--l.group.r||v(l.group.c)),l=null;else if(e>=l.start){const t=e-l.start;r=l.a+l.d*p(t/l.duration),f(r,1-r)}return!(!l&&!a)})))}return{run(t){y(s)?vt().then((()=>{s=s({direction:t?"in":"out"}),p(t)})):p(t)},end(){u(),l=a=null}}}function At(t){return void 0!==t?.length?t:Array.from(t)}function Mt(t,e){t.d(1),e.delete(t.key)}function Ot(t,e){Lt(t,1,1,(()=>{e.delete(t.key)}))}function Ct(t,e,n,o,i,s,r,l,a,c,u,d){let p=t.length,f=s.length,h=p;const m={};for(;h--;)m[t[h].key]=h;const $=[],g=new Map,b=new Map,y=[];for(h=f;h--;){const t=d(i,s,h),l=n(t);let a=r.get(l);a?o&&y.push((()=>a.p(t,e))):(a=c(l,t),a.c()),g.set(l,$[h]=a),l in m&&b.set(l,Math.abs(h-m[l]))}const w=new Set,_=new Set;function x(t){Et(t,1),t.m(l,u),r.set(t.key,t),u=t.first,f--}for(;p&&f;){const e=$[f-1],n=t[p-1],o=e.key,i=n.key;e===n?(u=e.first,p--,f--):g.has(i)?!r.has(o)||w.has(o)?x(e):_.has(i)?p--:b.get(o)>b.get(i)?(_.add(o),x(e)):(w.add(i),p--):(a(n,r),p--)}for(;p--;){const e=t[p];g.has(e.key)||a(e,r)}for(;f;)x($[f-1]);return v(y),$}let It;function St(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function jt(t){t&&t.c()}function Wt(t,e,n){const{fragment:o,after_update:i}=t.$$;o&&o.m(e,n),pt((()=>{const e=t.$$.on_mount.map(g).filter(y);t.$$.on_destroy?t.$$.on_destroy.push(...e):v(e),t.$$.on_mount=[]})),i.forEach(pt)}function Nt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];at.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),at=e}(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Pt(t,e,n,o,i,s,r=null,l=[-1]){const a=V;tt(t);const c=t.$$={fragment:null,ctx:[],props:s,update:h,not_equal:i,bound:b(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:b(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};r&&r(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...o)=>{const s=o.length?o[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=s)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](s),u&&function(t,e){-1===t.$$.dirty[0]&&(rt.push(t),dt||(dt=!0,ut.then(gt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,v(c.before_update),c.fragment=!!o&&o(c.ctx),e.target){if(e.hydrate){I=!0;const t=(d=e.target,Array.from(d.childNodes));c.fragment&&c.fragment.l(t),t.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&Et(t.$$.fragment),Wt(t,e.target,e.anchor),I=!1,gt()}var d;tt(a)}function Rt(t,e,n,o){const i=n[t]?.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!o||!n[t])return e;if("toAttribute"===o)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(It=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(t){return()=>{let e;return{c:function(){e=R("slot"),"default"!==t&&X(e,"name",t)},m:function(t,n){N(t,e,n)},d:function(t){t&&P(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=Rt(r,s.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)l in this.$$d||void 0===this[l]||(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Rt(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const a in this.$$l)for(const c of this.$$l[a]){const u=this.$$c.$on(a,c);this.$$l_u.set(c,u)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Rt(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class qt{$$=void 0;$$set=void 0;$destroy(){Nt(this,1),this.$destroy=h}$on(t,e){if(!y(e))return h;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Ft(t){const e=t-1;return e*e*e+1}function Yt(t,{delay:e=0,duration:n=200,easing:o=Ft,side:i="bottom"}){if(n<=0)return!1;const s=getComputedStyle(t),r=t.offsetHeight;if(r<=0)return!1;let l;switch(i){case"top":l=[s.marginTop,s.marginBottom];break;case"bottom":l=[s.marginBottom,s.marginTop];break;case"left":l=[s.marginLeft,s.marginRight];break;case"right":l=[s.marginRight,s.marginLeft];break;default:return!1}l[0]=parseFloat(l[0])||0,l[1]=parseFloat(l[1])||0;const a=r+l[0]+l[1];return{delay:e,duration:n,easing:o,css:function(t,e){const n=l[0]-a*e;return`margin-${i}: ${n}px; opacity: ${t}; z-index: 0;`}}}function Xt(t){let e;return{c(){e=R("select"),X(e,"name",t[0]),e.multiple=t[1],e.disabled=t[2]},m(n,o){N(n,e,o),t[8](e)},p(t,[n]){1&n&&X(e,"name",t[0]),2&n&&(e.multiple=t[1]),4&n&&(e.disabled=t[2])},i:h,o:h,d(n){n&&P(e),t[8](null)}}}function Bt(t,n,o){let{handler:i}=n,{name:s=null}=n,{data:r=[]}=n,{multiple:l=!1}=n,{disabled:a=!1}=n,{placeholder:c=null}=n,{options:u={}}=n;const d=ot();let p,f=!1;var h;return nt((()=>{if(o(4,i=jQuery(p)),i.addClass("wc-enhanced-select"),i.data("data",r),i.data("placeholder",c),i.data("width","resolve"),u&&i.data(u),!1!==u.init&&e(!0!==u.init),i.on("change",(t=>{d("change",{handler:i,event:t})})),i.on("select2:close",(()=>{i.data("select2").$container.removeClass("select2-container--above"),i.data("select2").$dropdown.find("> .select2-dropdown").removeClass("select2-dropdown--above")})),l||i.on("select2:open",(()=>{const t=i.data("select2").$dropdown.find(".select2-search__field");t.one("blur",(()=>{setTimeout((()=>t.focus()),10)}))})),u.fixPosition){let t=!1;i.on("select2:open",(()=>{t||(i.selectWoo("close"),t=!0,i.selectWoo("open"),t=!1)}))}setTimeout((()=>{f=!0}))})),h=()=>{i.selectWoo("destroy"),i.remove()},et().$$.on_destroy.push(h),t.$$set=t=>{"handler"in t&&o(4,i=t.handler),"name"in t&&o(0,s=t.name),"data"in t&&o(5,r=t.data),"multiple"in t&&o(1,l=t.multiple),"disabled"in t&&o(2,a=t.disabled),"placeholder"in t&&o(6,c=t.placeholder),"options"in t&&o(7,u=t.options)},t.$$.update=()=>{var e;32&t.$$.dirty&&function(t){if(!f)return;if(u.replaceData||!t||!i.data("data")||t.length!==i.data("data").length||t.length&&t[0].id!==i.data("data")[0].id)return i.empty().trigger("change.select2"),i.data("data",t),void i.selectWoo();let e=!1;i.find("option").each(((n,o)=>{if(!t[n])return!1;const i=jQuery(o),s=!0===t[n].selected,r=!0===t[n].disabled;i.prop("selected")!==s&&(i.prop("selected",s),e=!0),i.prop("disabled")!==r&&(i.prop("disabled",r),e=!0)})),e&&(i.trigger("change.select2"),i.selectWoo())}(r),64&t.$$.dirty&&(e=c,f&&(i.data("placeholder",e),i.selectWoo())),128&t.$$.dirty&&function(t){f&&t&&(i.data(t),i.selectWoo())}(u)},[s,l,a,p,i,r,c,u,function(t){lt[t?"unshift":"push"]((()=>{p=t,o(3,p)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const Dt=class extends qt{constructor(t){super(),Pt(this,t,Bt,Xt,_,{handler:4,name:0,data:5,multiple:1,disabled:2,placeholder:6,options:7})}};function Ht(t,e,n){const o=t.slice();return o[13]=e[n],o[15]=n,o}function Qt(t){let e,n=t[13].image+"";return{c(){e=R("div"),X(e,"class","component-image")},m(t,o){N(t,e,o),e.innerHTML=n},p(t,o){4&o&&n!==(n=t[13].image+"")&&(e.innerHTML=n)},d(t){t&&P(e)}}}function Jt(t){let e,n,o=t[13].sku+"";return{c(){e=R("div"),n=q(o),X(e,"class","component-sku")},m(t,o){N(t,e,o),S(e,n)},p(t,e){4&e&&o!==(o=t[13].sku+"")&&D(n,o)},d(t){t&&P(e)}}}function Ut(t){let e,n,o;return{c(){e=R("div"),n=R("span"),X(n,"class","component-disabled"),X(n,"title",o=t[5].disabled),X(e,"class","component-status")},m(t,o){N(t,e,o),S(e,n)},p:h,d(t){t&&P(e)}}}function Vt(t,e){let n,o,i,s,r,l,a,c,u,d,p,f,h,m,$,g,b,y,w,_,x,k=e[13].title+"",E=e[13].image&&Qt(e),L=e[13].sku&&Jt(e),T=!e[13].enabled&&Ut(e);function z(){return e[9](e[13])}return{key:t,first:null,c(){n=R("div"),E&&E.c(),o=F(),i=R("div"),s=q(k),r=F(),L&&L.c(),l=F(),T&&T.c(),a=F(),c=R("div"),u=R("input"),h=F(),m=R("div"),$=R("button"),b=F(),X(i,"class","component-title"),X(u,"type","number"),X(u,"name",d=e[4].name+"["+e[1]+"]["+e[13].id+"]"),u.value=p=e[0][e[13].id],X(u,"step","any"),X(u,"min","0"),X(u,"placeholder",e[6]),X(u,"title",f=e[5][e[1]].quantityTip),X(c,"class","component-quantity"),X($,"type","button"),X($,"class","remove-component-button"),X($,"title",g=e[5].remove),X(m,"class","component-actions"),X(n,"class","component-item"),Q(n,"disabled",!e[13].enabled),this.first=n},m(t,e){N(t,n,e),E&&E.m(n,null),S(n,o),S(n,i),S(i,s),S(n,r),L&&L.m(n,null),S(n,l),T&&T.m(n,null),S(n,a),S(n,c),S(c,u),S(n,h),S(n,m),S(m,$),S(n,b),w=!0,_||(x=[Y(u,"change",Zt),Y($,"click",z),Y(n,"introend",Kt)],_=!0)},p(t,i){(e=t)[13].image?E?E.p(e,i):(E=Qt(e),E.c(),E.m(n,o)):E&&(E.d(1),E=null),(!w||4&i)&&k!==(k=e[13].title+"")&&D(s,k),e[13].sku?L?L.p(e,i):(L=Jt(e),L.c(),L.m(n,l)):L&&(L.d(1),L=null),e[13].enabled?T&&(T.d(1),T=null):T?T.p(e,i):(T=Ut(e),T.c(),T.m(n,a)),(!w||6&i&&d!==(d=e[4].name+"["+e[1]+"]["+e[13].id+"]"))&&X(u,"name",d),(!w||5&i&&p!==(p=e[0][e[13].id])&&u.value!==p)&&(u.value=p),(!w||2&i&&f!==(f=e[5][e[1]].quantityTip))&&X(u,"title",f),(!w||4&i)&&Q(n,"disabled",!e[13].enabled)},i(t){w||(t&&pt((()=>{w&&(y||(y=zt(n,Yt,{duration:170},!0)),y.run(1))})),w=!0)},o(t){t&&(y||(y=zt(n,Yt,{duration:170},!1)),y.run(0)),w=!1},d(t){t&&P(n),E&&E.d(),L&&L.d(),T&&T.d(),t&&y&&y.end(),_=!1,v(x)}}}function Gt(t){let e,n,o,i,s,r,l,a,c,u,d,p,f,h,m,$=t[5][t[1]].label+"",g=[],b=new Map;a=new Dt({props:{multiple:!0,data:t[3],placeholder:t[5][t[1]].addPlaceholder,options:{width:"auto"}}}),a.$on("change",t[7]);let v=At(t[2]);const y=t=>t[13].id;for(let e=0;e<v.length;e+=1){let n=Ht(t,v,e),o=y(n);b.set(o,g[e]=Vt(o,n))}return{c(){e=R("p"),n=R("label"),o=q($),i=F(),s=R("span"),l=F(),jt(a.$$.fragment),u=F(),d=R("div"),p=R("div"),f=R("div");for(let t=0;t<g.length;t+=1)g[t].c();X(n,"for",""),X(s,"class","woocommerce-help-tip"),X(s,"title",r=t[5][t[1]].fieldTip),X(e,"class",c="form-field mewz_wcas_"+t[1]+"_components_field"),X(f,"class","component-list-inner"),X(p,"class",h="component-list "+t[1]+"-component-list"),X(d,"class","mewz-wcas-components-section"),Q(d,"empty",!t[2].length)},m(t,r){N(t,e,r),S(e,n),S(n,o),S(e,i),S(e,s),S(e,l),Wt(a,e,null),N(t,u,r),N(t,d,r),S(d,p),S(p,f);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(f,null);m=!0},p(t,[n]){(!m||2&n)&&$!==($=t[5][t[1]].label+"")&&D(o,$),(!m||2&n&&r!==(r=t[5][t[1]].fieldTip))&&X(s,"title",r);const i={};8&n&&(i.data=t[3]),2&n&&(i.placeholder=t[5][t[1]].addPlaceholder),a.$set(i),(!m||2&n&&c!==(c="form-field mewz_wcas_"+t[1]+"_components_field"))&&X(e,"class",c),375&n&&(v=At(t[2]),xt(),g=Ct(g,n,y,1,t,v,b,f,Ot,Vt,null,Ht),kt()),(!m||2&n&&h!==(h="component-list "+t[1]+"-component-list"))&&X(p,"class",h),(!m||4&n)&&Q(d,"empty",!t[2].length)},i(t){if(!m){Et(a.$$.fragment,t);for(let t=0;t<v.length;t+=1)Et(g[t]);m=!0}},o(t){Lt(a.$$.fragment,t);for(let t=0;t<g.length;t+=1)Lt(g[t]);m=!1},d(t){t&&(P(e),P(u),P(d)),Nt(a);for(let t=0;t<g.length;t+=1)g[t].d()}}}function Kt(t){t.target.scrollIntoView({behavior:"smooth",block:"nearest"})}function Zt(t){+t.target.value<=0&&(t.target.value="")}function te(t,e,n){let o,i,{type:s}=e,{components:r}=e;const l=st("data"),{i18n:a}=l,c=ot(),u=1..toLocaleString(l.locale,{minimumFractionDigits:2});function d(t){delete r[t],n(0,r)}return t.$$set=t=>{"type"in t&&n(1,s=t.type),"components"in t&&n(0,r=t.components)},t.$$.update=()=>{1&t.$$.dirty&&n(3,o=function(t){const e=[];for(const n of l.stockList){let o=n.title;n.sku&&(o+=` [${n.sku}]`),n.enabled||(o=`🛇 ${o}`);const i={id:n.id,text:o};n.id in t&&(i.disabled=!0),e.push(i)}return e}(r)),1&t.$$.dirty&&n(2,i=l.stockList.filter((t=>t.id in r)))},[r,s,i,o,l,a,u,function(t){const e=t.detail.handler,o=e.val();var i;o&&o.length&&((i=+o[0])in r||(n(0,r[i]=["",""],r),c("added",{type:s,id:i})),setTimeout((()=>e.focus())))},d,t=>d(t.id)]}const ee=class extends qt{constructor(t){super(),Pt(this,t,te,Gt,w,{type:1,components:0})}};function ne(t){let e;return{c(){e=R("input"),X(e,"type","hidden"),X(e,"name","mewz_wcas_noupdate[components]"),e.value="1"},m(t,n){N(t,e,n)},d(t){t&&P(e)}}}function oe(t){let e,n,o,i,s,r,l,a,c,u=!t[1]&&ne();function d(e){t[3](e)}let p={type:"parent"};function f(e){t[4](e)}void 0!==t[0].parent&&(p.components=t[0].parent),o=new ee({props:p}),lt.push((()=>St(o,"components",d))),o.$on("added",t[2]);let h={type:"child"};return void 0!==t[0].child&&(h.components=t[0].child),l=new ee({props:h}),lt.push((()=>St(l,"components",f))),l.$on("added",t[2]),{c(){u&&u.c(),e=F(),n=R("div"),jt(o.$$.fragment),s=F(),r=R("div"),jt(l.$$.fragment),X(n,"class","options_group"),X(r,"class","options_group")},m(t,i){u&&u.m(t,i),N(t,e,i),N(t,n,i),Wt(o,n,null),N(t,s,i),N(t,r,i),Wt(l,r,null),c=!0},p(t,[n]){t[1]?u&&(u.d(1),u=null):u||(u=ne(),u.c(),u.m(e.parentNode,e));const s={};!i&&1&n&&(i=!0,s.components=t[0].parent,ft((()=>i=!1))),o.$set(s);const r={};!a&&1&n&&(a=!0,r.components=t[0].child,ft((()=>a=!1))),l.$set(r)},i(t){c||(Et(o.$$.fragment,t),Et(l.$$.fragment,t),c=!0)},o(t){Lt(o.$$.fragment,t),Lt(l.$$.fragment,t),c=!1},d(t){t&&(P(e),P(n),P(s),P(r)),u&&u.d(t),Nt(o),Nt(l)}}}function ie(t,e,i){const s=e.data,r=s.components;it("data",s);let l=!1;s.stockItems={};for(const t of s.stockList)s.stockItems[t.id]=t;return nt((()=>{setTimeout((()=>{n("#components_panel .woocommerce-help-tip"),o(document.getElementById("components_panel"),s.name+"[",(t=>i(1,l=t)))}))})),t.$$set=t=>{i(6,e=$($({},e),x(t)))},t.$$.update=()=>{1&t.$$.dirty&&mewzWcas.setTabIndicator("components",Object.values(r.child).length)},e=x(e),[r,l,function(t){const{type:e,id:n}=t.detail;delete r["parent"===e?"child":"parent"][n]},function(e){t.$$.not_equal(r.parent,e)&&(r.parent=e,i(0,r))},function(e){t.$$.not_equal(r.child,e)&&(r.child=e,i(0,r))}]}function se(t,{delay:e=0,duration:n=400,easing:o=Ft,axis:i="y"}={}){const s=getComputedStyle(t),r=+s.opacity,l="y"===i?"height":"width",a=parseFloat(s[l]),c="y"===i?["top","bottom"]:["left","right"],u=c.map((t=>`${t[0].toUpperCase()}${t.slice(1)}`)),d=parseFloat(s[`padding${u[0]}`]),p=parseFloat(s[`padding${u[1]}`]),f=parseFloat(s[`margin${u[0]}`]),h=parseFloat(s[`margin${u[1]}`]),m=parseFloat(s[`border${u[0]}Width`]),$=parseFloat(s[`border${u[1]}Width`]);return{delay:e,duration:n,easing:o,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*r};${l}: ${t*a}px;padding-${c[0]}: ${t*d}px;padding-${c[1]}: ${t*p}px;margin-${c[0]}: ${t*f}px;margin-${c[1]}: ${t*h}px;border-${c[0]}-width: ${t*m}px;border-${c[1]}-width: ${t*$}px;`}}function re(t,e){e=Object.assign({open:!0,duration:.2,easing:"ease"},e);const n=()=>{};let o=n,i=n;const s=t.addEventListener("transitionend",(()=>{o(),o=n,i=n}));async function r(){return new Promise(requestAnimationFrame)}function l(){return`height ${e.duration}s ${e.easing}`}return t.style.transition=l(),t.style.height=e.open?"auto":"0px",e.open?t.style.overflow="visible":t.style.overflow="hidden",{update:function(n){(e=Object.assign(e,n)).open?async function(){t.style.height=t.scrollHeight+"px";try{await async function(){return new Promise(((t,e)=>{o=t,i=e}))}(),t.style.height="auto",t.style.overflow="visible"}catch(t){}}():async function(){"auto"===t.style.height?(t.style.transition="none",await r(),t.style.height=t.scrollHeight+"px",t.style.transition=l(),await r(),t.style.overflow="hidden",t.style.height="0px"):(i(),t.style.overflow="hidden",t.style.height="0px")}()},destroy:function(){t.removeEventListener("transitionend",s)}}}function le(t,{dragStart:e,dragMove:n,dragEnd:o,exclude:i,enabled:s=!0}){function r(t){if(!s||i&&t.target.closest(i))return;const r=ae(t);r&&(t.preventDefault(),function(t,e,{dragStart:n,dragMove:o,dragEnd:i}){let s,r=t,l=e.clientX,a=e.clientY,c=l+window.scrollX,u=a+window.scrollY,d=0,p=0;function f(t){const e=ae(t);e&&(r=t,l=e.clientX,a=e.clientY,d=l+window.scrollX-c,p=a+window.scrollY-u,o&&o({event:t,pointer:e,x:l,y:top,startX:c,startY:u,moveX:d,moveY:p}))}function h(t){const e=ae(t,s);e&&(r=t,"mouseup"===t.type?(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",h)):(window.removeEventListener("touchmove",f),window.removeEventListener("touchend",h)),window.removeEventListener("scroll",m),i&&i({event:t,pointer:e,x:l,y:top,startX:c,startY:u,moveX:d,moveY:p}))}function m(){d=l+window.scrollX-c,p=a+window.scrollY-u,o({event:r,pointer:e,x:l,y:top,startX:c,startY:u,moveX:d,moveY:p})}"mousedown"===t.type?(window.addEventListener("mousemove",f),window.addEventListener("mouseup",h)):(s=e.identifier,window.addEventListener("touchmove",f),window.addEventListener("touchend",h)),window.addEventListener("scroll",m),n&&n({event:t,pointer:e,x:l,y:top,startX:c,startY:u})}(t,r,{dragStart:e,dragMove:n,dragEnd:o}))}return t.addEventListener("mousedown",r),t.addEventListener("touchstart",r,{passive:!1}),{update(t){i=t.exclude,s=t.enabled},destroy(){t.removeEventListener("mousedown",r),t.removeEventListener("touchstart",r)}}}function ae(t,e){return t instanceof MouseEvent?0===t.button?t:null:void 0===e?1===t.touches.length?t.touches[0]:null:function(t,e){for(const n of t)if(n.identifier===e)return n;return null}(t.changedTouches,e)}function ce(t,e,n){const o=t.slice();o[43]=e[n],o[45]=e,o[46]=n;const i=`${o[8].name}[${o[3]}][attributes][${o[43][0]}]`;return o[44]=i,o}function ue(t,e,n){const o=t.slice();return o[47]=e[n],o[49]=n,o}function de(t){let e,n,o,i,s=t[9].ruleTitle.replace("%s",t[3]+1)+"";return{c(){e=R("span"),n=q(s),o=F(),i=R("span"),i.textContent="—",X(e,"class","toolbar-label toolbar-label-title"),X(i,"class","sep")},m(t,s){N(t,e,s),S(e,n),N(t,o,s),N(t,i,s)},p(t,e){8&e[0]&&s!==(s=t[9].ruleTitle.replace("%s",t[3]+1)+"")&&D(n,s)},d(t){t&&(P(e),P(o),P(i))}}}function pe(t){let e,n,o=t[47].name+"";return{c(){e=R("span"),n=q(o),X(e,"class","name")},m(t,o){N(t,e,o),S(e,n)},p(t,e){3&e[0]&&o!==(o=t[47].name+"")&&D(n,o)},d(t){t&&P(e)}}}function fe(t,e){let n,o,i,s,r,l,a,c,u=(e[47].value||"")+"",d=e[47].name&&pe(e);return{key:t,first:null,c(){n=R("span"),d&&d.c(),o=F(),i=R("span"),s=q(u),r=F(),X(i,"class","value"),X(n,"class",l="toolbar-label toolbar-label-"+e[47].type+(e[47].class?" "+e[47].class:"")),X(n,"title",a=e[47].title),X(n,"rel",c=e[47].title?"tiptip":null),this.first=n},m(t,e){N(t,n,e),d&&d.m(n,null),S(n,o),S(n,i),S(i,s),S(n,r)},p(t,i){(e=t)[47].name?d?d.p(e,i):(d=pe(e),d.c(),d.m(n,o)):d&&(d.d(1),d=null),3&i[0]&&u!==(u=(e[47].value||"")+"")&&D(s,u),3&i[0]&&l!==(l="toolbar-label toolbar-label-"+e[47].type+(e[47].class?" "+e[47].class:""))&&X(n,"class",l),3&i[0]&&a!==(a=e[47].title)&&X(n,"title",a),3&i[0]&&c!==(c=e[47].title?"tiptip":null)&&X(n,"rel",c)},d(t){t&&P(n),d&&d.d()}}}function he(t,e){let n,o,i,s,r,l,a,c,u,d,p,f,h,m,$,g,b,v,y,w;function _(){return e[28](e[46])}return s=new Dt({props:{data:e[12](e[43][0]),placeholder:{id:"",text:e[9].attributePlaceholder},options:{init:!0,fixPosition:!0}}}),s.$on("change",(function(...t){return e[26](e[43],e[45],e[46],...t)})),d=new Dt({props:{name:e[44]+"[]",multiple:!0,data:e[13](e[43]),placeholder:e[43][0]?e[9].anyOption.replace("%s",e[8].attributes[e[43][0]].label):e[9].termPlaceholder,disabled:!e[43][0],options:{init:!0,width:"auto",fixPosition:!0}}}),d.$on("change",(function(...t){return e[27](e[43],e[45],e[46],...t)})),{key:t,first:null,c(){n=R("div"),o=R("div"),i=R("div"),jt(s.$$.fragment),r=F(),l=R("div"),a=R("input"),u=F(),jt(d.$$.fragment),p=F(),f=R("div"),h=R("button"),g=F(),X(i,"class","select-attribute"),X(a,"type","hidden"),X(a,"name",c=e[44]),a.value="",X(l,"class","select-terms"),X(h,"type","button"),X(h,"class","icon-button row-remove-button"),X(h,"title",m=e[9].removeAttribute),h.disabled=$=1===e[0].length&&!e[43].attribute,X(f,"class","attribute-row-actions"),X(o,"class","attribute-row-inner"),X(n,"class","attribute-row"),this.first=n},m(t,e){N(t,n,e),S(n,o),S(o,i),Wt(s,i,null),S(o,r),S(o,l),S(l,a),S(l,u),Wt(d,l,null),S(o,p),S(o,f),S(f,h),S(n,g),v=!0,y||(w=Y(h,"click",_),y=!0)},p(t,n){e=t;const o={};1&n[0]&&(o.data=e[12](e[43][0])),s.$set(o),(!v||9&n[0]&&c!==(c=e[44]))&&X(a,"name",c);const i={};9&n[0]&&(i.name=e[44]+"[]"),1&n[0]&&(i.data=e[13](e[43])),1&n[0]&&(i.placeholder=e[43][0]?e[9].anyOption.replace("%s",e[8].attributes[e[43][0]].label):e[9].termPlaceholder),1&n[0]&&(i.disabled=!e[43][0]),d.$set(i),(!v||1&n[0]&&$!==($=1===e[0].length&&!e[43].attribute))&&(h.disabled=$)},i(t){v||(Et(s.$$.fragment,t),Et(d.$$.fragment,t),t&&pt((()=>{v&&(b||(b=zt(n,Yt,{duration:130},!0)),b.run(1))})),v=!0)},o(t){Lt(s.$$.fragment,t),Lt(d.$$.fragment,t),t&&(b||(b=zt(n,Yt,{duration:130},!1)),b.run(0)),v=!1},d(t){t&&P(n),Nt(s),Nt(d),t&&b&&b.end(),y=!1,w()}}}function me(t){let e,n,o,i,s,r;return{c(){e=R("div"),n=R("button"),n.textContent="Add attribute",X(n,"type","button"),X(n,"class","row-add-button"),X(e,"class","attribute-list-actions")},m(o,l){N(o,e,l),S(e,n),i=!0,s||(r=Y(n,"click",t[29]),s=!0)},p:h,i(t){i||(t&&pt((()=>{i&&(o||(o=zt(e,se,{duration:100},!0)),o.run(1))})),i=!0)},o(t){t&&(o||(o=zt(e,se,{duration:100},!1)),o.run(0)),i=!1},d(t){t&&P(e),t&&o&&o.end(),s=!1,r()}}}function $e(t){let e,n,o,i,s,r,l,a,c,u,d,p,f,$,g,b,w,_,x,E,T,z,A,O,C,I,j,W,D,J,U,V,G,tt,et,nt,ot,it,st,rt,lt,at,ct,ut=[],dt=new Map,ft=[],ht=new Map,mt=t[9].multiplierLabel+"",$t=t[5]>1&&de(t),gt=At(t[14](t[0],t[1]));const bt=t=>t[49]+t[47].type;for(let e=0;e<gt.length;e+=1){let n=ue(t,gt,e),o=bt(n);dt.set(o,ut[e]=fe(o,n))}let wt=At(t[0]);const zt=t=>t[43];for(let e=0;e<wt.length;e+=1){let n=ce(t,wt,e),o=zt(n);ht.set(o,ft[e]=he(o,n))}let It=t[0].length<t[10]&&me(t);return{c(){e=R("div"),n=R("div"),o=R("div"),$t&&$t.c(),i=F();for(let t=0;t<ut.length;t+=1)ut[t].c();s=F(),r=R("span"),l=R("span"),a=F(),c=R("button"),p=F(),f=R("button"),g=F(),b=R("button"),_=F(),x=R("div"),E=R("div"),T=R("div"),z=R("div");for(let t=0;t<ft.length;t+=1)ft[t].c();A=F(),It&&It.c(),O=F(),C=R("div"),I=R("div"),j=R("label"),W=q(mt),D=F(),J=R("span"),V=F(),G=R("input"),X(o,"class","toolbar-labels"),X(l,"class","toolbar-action icon-button expand-button"),X(c,"type","button"),X(c,"class","toolbar-action icon-button drag-button"),X(c,"title",u=t[9].dragTip),X(f,"type","button"),X(f,"class","toolbar-action icon-button duplicate-button"),X(f,"title",$=t[9].duplicateRule),X(b,"type","button"),X(b,"class","toolbar-action icon-button remove-button"),X(b,"title",w=t[9].removeRule),X(r,"class","match-rule-toolbar-actions"),X(n,"class","match-rule-toolbar"),X(z,"class","attribute-rows"),X(T,"class","attribute-list"),X(J,"class","woocommerce-help-tip"),X(J,"title",U=t[9].multiplierTip),X(G,"type","number"),X(G,"name",tt=t[17](t[3],"multiplier")),X(G,"step","any"),X(G,"min","-1"),X(G,"placeholder",et=t[22](t[0])),X(G,"lang",nt=t[8].locale),X(I,"class","option option-multiplier"),X(C,"class","match-rule-options"),X(E,"class","match-rule-body-inner"),X(x,"class","match-rule-body"),X(e,"class","mewz-wcas-match-rule"),X(e,"style",it=ge(t[7])),Q(e,"zero-multiplier",null!=t[1]&&""!==t[1]&&0==+t[1]),Q(e,"stop-rule",+t[1]<0),Q(e,"open",t[2]),Q(e,"dragging",t[7]),Q(e,"released",t[7]&&t[7].released)},m(u,h){N(u,e,h),S(e,n),S(n,o),$t&&$t.m(o,null),S(o,i);for(let t=0;t<ut.length;t+=1)ut[t]&&ut[t].m(o,null);S(n,s),S(n,r),S(r,l),S(r,a),S(r,c),S(r,p),S(r,f),S(r,g),S(r,b),S(e,_),S(e,x),S(x,E),S(E,T),S(T,z);for(let t=0;t<ft.length;t+=1)ft[t]&&ft[t].m(z,null);S(T,A),It&&It.m(T,null),S(E,O),S(E,C),S(C,I),S(I,j),S(j,W),S(j,D),S(j,J),S(I,V),S(I,G),H(G,t[1]),t[31](e),lt=!0,at||(ct=[k(d=le.call(null,c,{dragStart:t[19],dragMove:t[20],dragEnd:t[21],enabled:t[4]})),Y(f,"click",t[24]),Y(b,"click",t[25]),Y(n,"click",t[18]),Y(G,"input",t[30]),k(ot=re.call(null,x,{open:t[2],duration:.17}))],at=!0)},p(t,n){t[5]>1?$t?$t.p(t,n):($t=de(t),$t.c(),$t.m(o,i)):$t&&($t.d(1),$t=null),16387&n[0]&&(gt=At(t[14](t[0],t[1])),ut=Ct(ut,n,bt,1,t,gt,dt,o,Mt,fe,null,ue)),d&&y(d.update)&&16&n[0]&&d.update.call(null,{dragStart:t[19],dragMove:t[20],dragEnd:t[21],enabled:t[4]}),78601&n[0]&&(wt=At(t[0]),xt(),ft=Ct(ft,n,zt,1,t,wt,ht,z,Ot,he,null,ce),kt()),t[0].length<t[10]?It?(It.p(t,n),1&n[0]&&Et(It,1)):(It=me(t),It.c(),Et(It,1),It.m(T,null)):It&&(xt(),Lt(It,1,1,(()=>{It=null})),kt()),(!lt||8&n[0]&&tt!==(tt=t[17](t[3],"multiplier")))&&X(G,"name",tt),(!lt||1&n[0]&&et!==(et=t[22](t[0])))&&X(G,"placeholder",et),2&n[0]&&B(G.value)!==t[1]&&H(G,t[1]),ot&&y(ot.update)&&4&n[0]&&ot.update.call(null,{open:t[2],duration:.17}),(!lt||128&n[0]&&it!==(it=ge(t[7])))&&X(e,"style",it),(!lt||2&n[0])&&Q(e,"zero-multiplier",null!=t[1]&&""!==t[1]&&0==+t[1]),(!lt||2&n[0])&&Q(e,"stop-rule",+t[1]<0),(!lt||4&n[0])&&Q(e,"open",t[2]),(!lt||128&n[0])&&Q(e,"dragging",t[7]),(!lt||128&n[0])&&Q(e,"released",t[7]&&t[7].released)},i(t){if(!lt){for(let t=0;t<wt.length;t+=1)Et(ft[t]);Et(It),t&&pt((()=>{lt&&(rt&&rt.end(1),st=function(t,e,n){const o={direction:"in"};let i,s,r=e(t,{duration:170},o),l=!1,a=0;function c(){i&&Z(t,i)}function u(){const{delay:e=0,duration:n=300,easing:o=m,tick:u=h,css:d}=r||Tt;d&&(i=K(t,0,1,n,e,o,d,a++)),u(0,1);const p=L()+e,f=p+n;s&&s.abort(),l=!0,pt((()=>yt(t,!0,"start"))),s=M((e=>{if(l){if(e>=f)return u(1,0),yt(t,!0,"end"),c(),l=!1;if(e>=p){const t=o((e-p)/n);u(t,1-t)}}return l}))}let d=!1;return{start(){d||(d=!0,Z(t),y(r)?(r=r(o),vt().then(u)):u())},invalidate(){d=!1},end(){l&&(c(),l=!1)}}}(e,Yt),st.start())})),lt=!0}},o(t){for(let t=0;t<ft.length;t+=1)Lt(ft[t]);Lt(It),st&&st.invalidate(),t&&(rt=function(t,e,n){const o={direction:"out"};let i,s=e(t,{duration:170},o),r=!0;const l=_t;let a;function c(){const{delay:e=0,duration:n=300,easing:o=m,tick:c=h,css:u}=s||Tt;u&&(i=K(t,1,0,n,e,o,u));const d=L()+e,p=d+n;pt((()=>yt(t,!1,"start"))),"inert"in t&&(a=t.inert,t.inert=!0),M((e=>{if(r){if(e>=p)return c(0,1),yt(t,!1,"end"),--l.r||v(l.c),!1;if(e>=d){const t=o((e-d)/n);c(1-t,t)}}return r}))}return l.r+=1,y(s)?vt().then((()=>{s=s(o),c()})):c(),{end(e){e&&"inert"in t&&(t.inert=a),e&&s.tick&&s.tick(1,0),r&&(i&&Z(t,i),r=!1)}}}(e,Yt)),lt=!1},d(n){n&&P(e),$t&&$t.d();for(let t=0;t<ut.length;t+=1)ut[t].d();for(let t=0;t<ft.length;t+=1)ft[t].d();It&&It.d(),t[31](null),n&&rt&&rt.end(),at=!1,v(ct)}}}function ge(t){if(t)return`transform: translateY(${t.offset}px);`}function be(t,e,o){let i,{index:s}=e,{attributes:r}=e,{multiplier:l=""}=e,{mounted:a=!1}=e,{open:c=!0}=e,{draggable:u=!0}=e,{ruleCount:d=1}=e;const p=st("data"),f=p.i18n,h=Object.keys(p.attributes).length,m=ot(),$=k(1,!0);let g,b=!1;function v(){const t=[0,[]];r?(r.push(t),o(0,r)):o(0,r=[t]),a&&setTimeout((()=>{const t=g.querySelector(".attribute-row:last-child .select-attribute select");t&&jQuery(t).focus()}),150)}function y(t){r.splice(t,1),r.length?o(0,r):v()}function w(t){if(!t||t.target===g){b.released&&g.removeEventListener("transitionend",w);for(const t of b.list)t.el.style.transform="";m("dragging",[s,!1]),b.targetIndex!==s&&m("action",["shift",s,b.targetIndex]),o(7,b=!1)}}function _(){const t=g.parentNode.querySelectorAll(".mewz-wcas-match-rule"),e=[];let n=0;for(const o of t){const t=o.offsetHeight;e.push({el:o,height:t,mid:n+Math.round(t/2),offset:0}),n+=t}return e}function x(t){const e={};for(const n of t)e[n[0]]=n[1];for(const[t]of p.attributeOptions){const n=e[t];if(!n)continue;const o=p.attributes[t];if(1===n.length){for(const t of o.terms)if(t[0]===n[0]&&null!=t[2])return+t[2]}else{let t=[1/0,0],e=!1;for(const i of o.terms){if(n.length&&!n.includes(i[0]))continue;if(null==i[2]){e=!0;continue}const o=+i[2];o<t[0]&&(t[0]=o),o>t[1]&&(t[1]=o)}if(t[0]!==1/0)return e&&t[0]>1&&(t[0]=1),t[0]===t[1]?t[0]:t}}return null}function k(t,e){const n=e&&t<10?{minimumFractionDigits:2}:{maximumSignificantDigits:20,maximumFractionDigits:20};return t.toLocaleString(p.locale,n)}return nt((()=>{n(".mewz-wcas-match-rule .woocommerce-help-tip")})),t.$$set=t=>{"index"in t&&o(3,s=t.index),"attributes"in t&&o(0,r=t.attributes),"multiplier"in t&&o(1,l=t.multiplier),"mounted"in t&&o(23,a=t.mounted),"open"in t&&o(2,c=t.open),"draggable"in t&&o(4,u=t.draggable),"ruleCount"in t&&o(5,d=t.ruleCount)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r.length||v()),1&t.$$.dirty[0]&&(i=function(t){const e={};for(const n of t)n[0]&&(e[n[0]]=!0);return e}(r))},[r,l,c,s,u,d,g,b,p,f,h,m,function(t){const e=[{id:"",text:""}];for(const[n,o]of p.attributeOptions){const s={id:n,text:o};n===t?s.selected=!0:i[n]&&(s.disabled=!0),e.push(s)}return e},function(t){if(!t[0])return[];const e=p.attributes[t[0]].terms,n=[],o={};for(const e of t[1])o[e]=!0;for(const[t,i]of e){const e={id:t,text:i};o[t]&&(e.selected=!0),n.push(e)}return n},function(t,e){const o=[];for(const[e,n]of t){if(!e||!n)continue;const t=[];if(n.length)for(const o of p.attributes[e].terms)if(n.includes(o[0])&&(t.push(o[1]),t.length===n.length))break;o.push({type:"attribute",name:p.attributes[e].label,value:t.length?t.join(", "):f.any})}if(o.length||o.push({type:"attribute",value:"..."}),null!=e&&""!==e&&1!=+e)+e<0?(o.push({type:"stop",title:f.stopRuleTip}),setTimeout((()=>n('.mewz-wcas-match-rule [rel="tiptip"]')))):o.push({type:"multiplier",value:`×${k(+e)}`});else if(1!=+e){const e=x(t);if(null!=e){let t;t=Array.isArray(e)?`×${k(e[0])}–${k(e[1])}`:`×${k(e)}`,o.push({type:"multiplier",class:"inherited",title:f.multiplierInherited,value:t})}}return o},v,y,function(t,e){return`${p.name}[${t}][${e}]`},function(t){b||t&&t.target.closest("button")||o(2,c=!c)},function(t){b||(o(7,b={height:g.offsetHeight,start:g.offsetTop,offset:0,end:g.parentNode.offsetHeight,list:_(),targetIndex:s,animatedIndex:s,released:!1}),m("dragging",[s,{released:!1}]))},function(t){b&&!b.released&&(o(7,b.offset=Math.max(-b.start,t.moveY),b),o(7,b.offset=Math.min(b.offset,b.end-b.start-b.height),b),o(7,b.targetIndex=function(){let t=s;const e=b.start+b.offset;for(let n=0;n<b.list.length;n++){const o=b.list[n].mid;if(n<s){if(e<o)return n}else n>s&&e+b.height>o&&(t=n)}return t}(),b),function(){if(b.targetIndex===b.animatedIndex)return;const t=b.targetIndex;for(let e=0;e<b.list.length;e++){const n=b.list[e];let o=0;t<s?e>=t&&e<s&&(o=b.height):t>s&&e<=t&&e>s&&(o=-b.height),n.offset!==o&&(n.el.style.transform=`translateY(${o}px)`,n.offset=o,null==n.animating&&n.el.addEventListener("transitionend",(()=>{n.animating=!1})),n.animating=!0)}o(7,b.animatedIndex=t,b)}())},function(){if(!b||b.released)return;const t=function(){const t=b.targetIndex;let e=0;if(t<s)for(let n=t;n<s;n++)e-=b.list[n].height;else if(t>s)for(let n=t;n>s;n--)e+=b.list[n].height;return e}();b.offset===t?b.targetIndex===s?(m("dragging",[s,!1]),o(7,b=!1)):b.list.some((t=>!0===t.animating))?(setTimeout(w,200),m("dragging",[s,{released:!0}])):w():(g.addEventListener("transitionend",w),o(7,b.offset=t,b),o(7,b.released=!0,b),m("dragging",[s,{released:!0}]))},function(t){const e=x(t);return null==e?$:Array.isArray(e)?k(e[0])+" – "+k(e[1]):k(e,!0)},a,()=>m("action",["duplicate",s]),()=>m("action",["remove",s]),(t,e,n,i)=>o(0,e[n][0]=+i.detail.handler.val(),r),(t,e,n,i)=>o(0,e[n][1]=i.detail.handler.val().map(Number),r),t=>y(t),()=>v(),function(){l=B(this.value),o(1,l)},function(t){lt[t?"unshift":"push"]((()=>{g=t,o(6,g)}))}]}const ve=class extends qt{constructor(t){super(),Pt(this,t,be,$e,w,{index:3,attributes:0,multiplier:1,mounted:23,open:2,draggable:4,ruleCount:5},null,[-1,-1])}};function ye(t,e,n){const o=t.slice();return o[26]=e[n],o[27]=e,o[28]=n,o}function we(t){let e,n,o,i;return{c(){e=R("button"),X(e,"type","button"),X(e,"class","button restore-button"),X(e,"title",n=t[1].i18n.restoreRule)},m(n,s){N(n,e,s),o||(i=Y(e,"click",t[11]),o=!0)},p(t,o){2&o&&n!==(n=t[1].i18n.restoreRule)&&X(e,"title",n)},d(t){t&&P(e),o=!1,i()}}}function _e(t,e){let n,o,i,s,r,l,a;function c(t){e[14](t)}function u(t){e[15](t,e[26])}function d(t){e[16](t,e[26])}function p(t){e[17](t,e[26])}let f={index:e[28],draggable:!e[6],ruleCount:e[0].length};return void 0!==e[5]&&(f.mounted=e[5]),void 0!==e[26].attributes&&(f.attributes=e[26].attributes),void 0!==e[26].multiplier&&(f.multiplier=e[26].multiplier),void 0!==e[26].open&&(f.open=e[26].open),o=new ve({props:f}),lt.push((()=>St(o,"mounted",c))),lt.push((()=>St(o,"attributes",u))),lt.push((()=>St(o,"multiplier",d))),lt.push((()=>St(o,"open",p))),o.$on("action",e[10]),o.$on("dragging",e[9]),{key:t,first:null,c(){n=q(""),jt(o.$$.fragment),this.first=n},m(t,e){N(t,n,e),Wt(o,t,e),a=!0},p(t,n){e=t;const a={};1&n&&(a.index=e[28]),64&n&&(a.draggable=!e[6]),1&n&&(a.ruleCount=e[0].length),!i&&32&n&&(i=!0,a.mounted=e[5],ft((()=>i=!1))),!s&&1&n&&(s=!0,a.attributes=e[26].attributes,ft((()=>s=!1))),!r&&1&n&&(r=!0,a.multiplier=e[26].multiplier,ft((()=>r=!1))),!l&&1&n&&(l=!0,a.open=e[26].open,ft((()=>l=!1))),o.$set(a)},i(t){a||(Et(o.$$.fragment,t),a=!0)},o(t){Lt(o.$$.fragment,t),a=!1},d(t){t&&P(n),Nt(o,t)}}}function xe(t){let e;return{c(){e=R("input"),X(e,"type","hidden"),X(e,"name","mewz_wcas_noupdate[rules]"),e.value="1"},m(t,n){N(t,e,n)},d(t){t&&P(e)}}}function ke(t){let e,n,o,i,s,r,l,a,c,u,d,p,f,h,m,$,g,b,y,w,_=t[1].i18n.newRule+"",x=(Ee(t[0])?t[1].i18n.closeAll:t[1].i18n.expandAll)+"",k=[],E=new Map,L=t[4].length&&we(t),T=At(t[0]);const z=t=>t[26];for(let e=0;e<T.length;e+=1){let n=ye(t,T,e),o=z(n);E.set(o,k[e]=_e(o,n))}let A=!t[7]&&xe();return{c(){e=R("div"),n=R("div"),o=R("div"),i=R("button"),s=q(_),r=F(),l=R("span"),c=F(),u=R("div"),L&&L.c(),d=F(),p=R("button"),f=q(x),m=F(),$=R("div");for(let t=0;t<k.length;t+=1)k[t].c();g=F(),A&&A.c(),X(i,"type","button"),X(i,"class","button add-button"),X(l,"class","woocommerce-help-tip"),X(l,"title",a=t[1].i18n.newRuleTip),X(o,"class","toolbar-left"),X(p,"type","button"),X(p,"class",h="button toggle-button "+(Ee(t[0])?"collapse":"expand")),X(u,"class","toolbar-right"),X(n,"class","main-toolbar"),X($,"class","match-rules-list"),X(e,"class","mewz-wcas-attribute-rules"),Q(e,"dragging",t[6]),Q(e,"released",t[6]&&t[6].released)},m(a,h){N(a,e,h),S(e,n),S(n,o),S(o,i),S(i,s),S(o,r),S(o,l),S(n,c),S(n,u),L&&L.m(u,null),S(u,d),S(u,p),S(p,f),S(e,m),S(e,$);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m($,null);t[18]($),S(e,g),A&&A.m(e,null),t[19](e),b=!0,y||(w=[Y(i,"click",t[13]),Y(p,"click",t[12])],y=!0)},p(t,[n]){(!b||2&n)&&_!==(_=t[1].i18n.newRule+"")&&D(s,_),(!b||2&n&&a!==(a=t[1].i18n.newRuleTip))&&X(l,"title",a),t[4].length?L?L.p(t,n):(L=we(t),L.c(),L.m(u,d)):L&&(L.d(1),L=null),(!b||3&n)&&x!==(x=(Ee(t[0])?t[1].i18n.closeAll:t[1].i18n.expandAll)+"")&&D(f,x),(!b||1&n&&h!==(h="button toggle-button "+(Ee(t[0])?"collapse":"expand")))&&X(p,"class",h),1633&n&&(T=At(t[0]),xt(),k=Ct(k,n,z,1,t,T,E,$,Ot,_e,null,ye),kt()),t[7]?A&&(A.d(1),A=null):A||(A=xe(),A.c(),A.m(e,null)),(!b||64&n)&&Q(e,"dragging",t[6]),(!b||64&n)&&Q(e,"released",t[6]&&t[6].released)},i(t){if(!b){for(let t=0;t<T.length;t+=1)Et(k[t]);b=!0}},o(t){for(let t=0;t<k.length;t+=1)Lt(k[t]);b=!1},d(n){n&&P(e),L&&L.d();for(let t=0;t<k.length;t+=1)k[t].d();t[18](null),A&&A.d(),t[19](null),y=!1,v(w)}}}function Ee(t){return t.every((t=>t.open))}function Le(t){for(const e of t.attributes)if(e[0])return!0;return!1}function Te(t,e,i){const s=e.data;let r,l;it("data",s);let a=[],c=[],u=!1,d=!1,p=!1;const f=s.rules;if(f.length){if(1===f.length)f[0].open=!0;else for(let t of f)t.open=!1;a=f}else m();const h=[];for(let t in s.attributes){const e=s.attributes[t];h.push([+t,e.label])}function m(){const t={attributes:[],multiplier:"",open:!0};return a.push(t),i(0,a),t}return s.attributeOptions=h.sort(((t,e)=>t[1].localeCompare(e[1]))),nt((()=>{n(".mewz-wcas-attribute-rules .main-toolbar .woocommerce-help-tip"),o(r,s.name+"[",(t=>i(7,p=t))),i(5,u=!0)})),t.$$set=t=>{i(25,e=$($({},e),x(t)))},t.$$.update=()=>{1&t.$$.dirty&&mewzWcas.setTabIndicator("attributes",a.filter(Le).length)},e=x(e),[a,s,r,l,c,u,d,p,m,function(t){const[e,n]=t.detail;i(6,d=n)},function(t){const[e,n,o]=t.detail;"duplicate"===e?function(t){const e=JSON.parse(JSON.stringify(a[t]));e.open=!0,a.splice(t+1,0,e),i(0,a)}(n):"remove"===e?function(t){const e=a.splice(t,1)[0];e&&(Le(e)&&(e.lastIndex=t,c.push(e),i(4,c)),a.length?i(0,a):m())}(n):"shift"===e&&function(t,e){const n=a.splice(t,1)[0];a.splice(e,0,n),i(0,a)}(n,o)},function(){const t=c.pop();t&&(1!==a.length||Le(a[0])?a.splice(t.lastIndex,0,t):i(0,a[0]=t,a),delete t.lastIndex,i(4,c),i(0,a))},function(){const t=Ee(a);a.forEach((e=>e.open=!t)),i(0,a)},()=>m(),function(t){u=t,i(5,u)},function(e,n){t.$$.not_equal(n.attributes,e)&&(n.attributes=e,i(0,a))},function(e,n){t.$$.not_equal(n.multiplier,e)&&(n.multiplier=e,i(0,a))},function(e,n){t.$$.not_equal(n.open,e)&&(n.open=e,i(0,a))},function(t){lt[t?"unshift":"push"]((()=>{l=t,i(3,l)}))},function(t){lt[t?"unshift":"push"]((()=>{r=t,i(2,r)}))}]}s("#post").on("submit",(function(){const t=s("#mewz-wcas-stock-status");t.find(".spinner").addClass("is-active"),t.find("#submit").prop("disabled",!0)})),s("#mewz_wcas_internal").on("change",r),r(),setTimeout(e),a.html&&l(a.html).insertAfter(".wrap > .page-title-action"),u=document.getElementById("post"),mewzWcas.setTabIndicator=d,p("settings"),p("filters"),new class extends qt{constructor(t){super(),Pt(this,t,ie,oe,w,{})}}({target:document.getElementById("components_panel"),props:{data:mewzWcas.components}}),new class extends qt{constructor(t){super(),Pt(this,t,Te,ke,w,{})}}({target:document.getElementById("attributes_panel"),props:{data:mewzWcas.matchRules}})})()})();1 (()=>{"use strict";(()=>{let t=!1;function e(e){e&&!t||jQuery(document.body).trigger("wc-enhanced-select-init")}function n(t){jQuery(t).tipTip({fadeIn:50,fadeOut:50,delay:200})}function o(t,e,n){const o=t.closest("form");o?setTimeout((()=>{const t=i(o,e);o.addEventListener("submit",(()=>{const s=i(o,e)!==t;n(s)}))}),300):n(!0)}function i(t,e){const n=new FormData(t),o=[];for(const t of n.entries())t[0].startsWith(e)&&o.push(t[0],t[1]);return JSON.stringify(o)}jQuery(document.body).one("wc-enhanced-select-init",(()=>{t=!0}));const s=jQuery;function r(){const t=s("#mewz_wcas_internal"),e=t.prop("checked")||t.prop("disabled");s("#mewz_wcas_backorders").prop("disabled",e),s("#mewz_wcas_product_sku").prop("disabled",e),s("#mewz_wcas_product_image").prop("disabled",e)}const l=jQuery,a=window.mewzWcas&&mewzWcas.headerActions||{},c=jQuery;let u;function d(t,e){const n=u.querySelector(`.wc-tabs > .${t}_tab a`);n&&(e?n.dataset.indicator=e:delete n.dataset.indicator)}function p(t){const e=c(`#${t}_panel`);e.on("change input",(()=>{f(t,e)})),f(t,e)}function f(t,e){const n=e.find(":input:not(:disabled, .select2-search__field)");let o=0;n.each((function(){const t=c(this),e="checkbox"===t.attr("type")?t.prop("checked"):t.val();Array.isArray(e)?o+=e.length:e&&o++})),d(t,o)}function h(){}const m=t=>t;function $(t,e){for(const n in e)t[n]=e[n];return t}function g(t){return t()}function b(){return Object.create(null)}function v(t){t.forEach(g)}function y(t){return"function"==typeof t}function w(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function _(t,e){return t!=t?e==e:t!==e}function x(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function k(t){return t&&y(t.destroy)?t.destroy:h}const E="undefined"!=typeof window;let L=E?()=>window.performance.now():()=>Date.now(),T=E?t=>requestAnimationFrame(t):h;const z=new Set;function A(t){z.forEach((e=>{e.c(t)||(z.delete(e),e.f())})),0!==z.size&&T(A)}function M(t){let e;return 0===z.size&&T(A),{promise:new Promise((n=>{z.add(e={c:t,f:n})})),abort(){z.delete(e)}}}const O="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class C{_listeners="WeakMap"in O?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver((t=>{for(const e of t)C.entries.set(e.target,e),this._listeners.get(e.target)?.(e)})))}}C.entries="WeakMap"in O?new WeakMap:void 0;let I=!1;function S(t,e){t.appendChild(e)}function j(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function W(t){const e=R("style");return e.textContent="/* empty */",function(t,e){S(t.head||t,e),e.sheet}(j(t),e),e.sheet}function N(t,e,n){t.insertBefore(e,n||null)}function P(t){t.parentNode&&t.parentNode.removeChild(t)}function R(t){return document.createElement(t)}function q(t){return document.createTextNode(t)}function F(){return q(" ")}function Y(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function X(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function B(t){return""===t?null:+t}function D(t,e){e=""+e,t.data!==e&&(t.data=e)}function H(t,e){t.value=null==e?"":e}function Q(t,e,n){t.classList.toggle(e,!!n)}function J(t,e,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:o})}const U=new Map;let V,G=0;function K(t,e,n,o,i,s,r,l=0){const a=16.666/o;let c="{\n";for(let t=0;t<=1;t+=a){const o=e+(n-e)*s(t);c+=100*t+`%{${r(o,1-o)}}\n`}const u=c+`100% {${r(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,p=j(t),{stylesheet:f,rules:h}=U.get(p)||function(t,e){const n={stylesheet:W(e),rules:{}};return U.set(t,n),n}(p,t);h[d]||(h[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${o}ms linear ${i}ms 1 both`,G+=1,d}function Z(t,e){const n=(t.style.animation||"").split(", "),o=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-o.length;i&&(t.style.animation=o.join(", "),G-=i,G||T((()=>{G||(U.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&P(e)})),U.clear())})))}function tt(t){V=t}function et(){if(!V)throw new Error("Function called outside component initialization");return V}function nt(t){et().$$.on_mount.push(t)}function ot(){const t=et();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const s=J(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,s)})),!s.defaultPrevented}return!0}}function it(t,e){return et().$$.context.set(t,e),e}function st(t){return et().$$.context.get(t)}const rt=[],lt=[];let at=[];const ct=[],ut=Promise.resolve();let dt=!1;function pt(t){at.push(t)}function ft(t){ct.push(t)}const ht=new Set;let mt,$t=0;function gt(){if(0!==$t)return;const t=V;do{try{for(;$t<rt.length;){const t=rt[$t];$t++,tt(t),bt(t.$$)}}catch(t){throw rt.length=0,$t=0,t}for(tt(null),rt.length=0,$t=0;lt.length;)lt.pop()();for(let t=0;t<at.length;t+=1){const e=at[t];ht.has(e)||(ht.add(e),e())}at.length=0}while(rt.length);for(;ct.length;)ct.pop()();dt=!1,ht.clear(),tt(t)}function bt(t){if(null!==t.fragment){t.update(),v(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(pt)}}function vt(){return mt||(mt=Promise.resolve(),mt.then((()=>{mt=null}))),mt}function yt(t,e,n){t.dispatchEvent(J(`${e?"intro":"outro"}${n}`))}const wt=new Set;let _t;function xt(){_t={r:0,c:[],p:_t}}function kt(){_t.r||v(_t.c),_t=_t.p}function Et(t,e){t&&t.i&&(wt.delete(t),t.i(e))}function Lt(t,e,n,o){if(t&&t.o){if(wt.has(t))return;wt.add(t),_t.c.push((()=>{wt.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}const Tt={duration:0};function zt(t,e,n,o){let i,s=e(t,n,{direction:"both"}),r=o?0:1,l=null,a=null,c=null;function u(){c&&Z(t,c)}function d(t,e){const n=t.b-r;return e*=Math.abs(n),{a:r,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function p(e){const{delay:n=0,duration:o=300,easing:p=m,tick:f=h,css:$}=s||Tt,g={start:L()+n,b:e};e||(g.group=_t,_t.r+=1),"inert"in t&&(e?void 0!==i&&(t.inert=i):(i=t.inert,t.inert=!0)),l||a?a=g:($&&(u(),c=K(t,r,e,o,n,p,$)),e&&f(0,1),l=d(g,o),pt((()=>yt(t,e,"start"))),M((e=>{if(a&&e>a.start&&(l=d(a,o),a=null,yt(t,l.b,"start"),$&&(u(),c=K(t,r,l.b,l.duration,0,p,s.css))),l)if(e>=l.end)f(r=l.b,1-r),yt(t,l.b,"end"),a||(l.b?u():--l.group.r||v(l.group.c)),l=null;else if(e>=l.start){const t=e-l.start;r=l.a+l.d*p(t/l.duration),f(r,1-r)}return!(!l&&!a)})))}return{run(t){y(s)?vt().then((()=>{s=s({direction:t?"in":"out"}),p(t)})):p(t)},end(){u(),l=a=null}}}function At(t){return void 0!==t?.length?t:Array.from(t)}function Mt(t,e){t.d(1),e.delete(t.key)}function Ot(t,e){Lt(t,1,1,(()=>{e.delete(t.key)}))}function Ct(t,e,n,o,i,s,r,l,a,c,u,d){let p=t.length,f=s.length,h=p;const m={};for(;h--;)m[t[h].key]=h;const $=[],g=new Map,b=new Map,y=[];for(h=f;h--;){const t=d(i,s,h),l=n(t);let a=r.get(l);a?o&&y.push((()=>a.p(t,e))):(a=c(l,t),a.c()),g.set(l,$[h]=a),l in m&&b.set(l,Math.abs(h-m[l]))}const w=new Set,_=new Set;function x(t){Et(t,1),t.m(l,u),r.set(t.key,t),u=t.first,f--}for(;p&&f;){const e=$[f-1],n=t[p-1],o=e.key,i=n.key;e===n?(u=e.first,p--,f--):g.has(i)?!r.has(o)||w.has(o)?x(e):_.has(i)?p--:b.get(o)>b.get(i)?(_.add(o),x(e)):(w.add(i),p--):(a(n,r),p--)}for(;p--;){const e=t[p];g.has(e.key)||a(e,r)}for(;f;)x($[f-1]);return v(y),$}let It;function St(t,e,n){const o=t.$$.props[e];void 0!==o&&(t.$$.bound[o]=n,n(t.$$.ctx[o]))}function jt(t){t&&t.c()}function Wt(t,e,n){const{fragment:o,after_update:i}=t.$$;o&&o.m(e,n),pt((()=>{const e=t.$$.on_mount.map(g).filter(y);t.$$.on_destroy?t.$$.on_destroy.push(...e):v(e),t.$$.on_mount=[]})),i.forEach(pt)}function Nt(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];at.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),at=e}(n.after_update),v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Pt(t,e,n,o,i,s,r=null,l=[-1]){const a=V;tt(t);const c=t.$$={fragment:null,ctx:[],props:s,update:h,not_equal:i,bound:b(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:b(),dirty:l,skip_bound:!1,root:e.target||a.$$.root};r&&r(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...o)=>{const s=o.length?o[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=s)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](s),u&&function(t,e){-1===t.$$.dirty[0]&&(rt.push(t),dt||(dt=!0,ut.then(gt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,v(c.before_update),c.fragment=!!o&&o(c.ctx),e.target){if(e.hydrate){I=!0;const t=(d=e.target,Array.from(d.childNodes));c.fragment&&c.fragment.l(t),t.forEach(P)}else c.fragment&&c.fragment.c();e.intro&&Et(t.$$.fragment),Wt(t,e.target,e.anchor),I=!1,gt()}var d;tt(a)}function Rt(t,e,n,o){const i=n[t]?.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!o||!n[t])return e;if("toAttribute"===o)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(It=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(t){return()=>{let e;return{c:function(){e=R("slot"),"default"!==t&&X(e,"name",t)},m:function(t,n){N(t,e,n)},d:function(t){t&&P(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const i of this.$$s)i in n&&(e[i]=[t(i)]);for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=Rt(r,s.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)l in this.$$d||void 0===this[l]||(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Rt(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const a in this.$$l)for(const c of this.$$l[a]){const u=this.$$c.$on(a,c);this.$$l_u.set(c,u)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Rt(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class qt{$$=void 0;$$set=void 0;$destroy(){Nt(this,1),this.$destroy=h}$on(t,e){if(!y(e))return h;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Ft(t){const e=t-1;return e*e*e+1}function Yt(t,{delay:e=0,duration:n=200,easing:o=Ft,side:i="bottom"}){if(n<=0)return!1;const s=getComputedStyle(t),r=t.offsetHeight;if(r<=0)return!1;let l;switch(i){case"top":l=[s.marginTop,s.marginBottom];break;case"bottom":l=[s.marginBottom,s.marginTop];break;case"left":l=[s.marginLeft,s.marginRight];break;case"right":l=[s.marginRight,s.marginLeft];break;default:return!1}l[0]=parseFloat(l[0])||0,l[1]=parseFloat(l[1])||0;const a=r+l[0]+l[1];return{delay:e,duration:n,easing:o,css:function(t,e){const n=l[0]-a*e;return`margin-${i}: ${n}px; opacity: ${t}; z-index: 0;`}}}function Xt(t){let e;return{c(){e=R("select"),X(e,"name",t[0]),e.multiple=t[1],e.disabled=t[2]},m(n,o){N(n,e,o),t[8](e)},p(t,[n]){1&n&&X(e,"name",t[0]),2&n&&(e.multiple=t[1]),4&n&&(e.disabled=t[2])},i:h,o:h,d(n){n&&P(e),t[8](null)}}}function Bt(t,n,o){let{handler:i}=n,{name:s=null}=n,{data:r=[]}=n,{multiple:l=!1}=n,{disabled:a=!1}=n,{placeholder:c=null}=n,{options:u={}}=n;const d=ot();let p,f=!1;var h;return nt((()=>{if(o(4,i=jQuery(p)),i.addClass("wc-enhanced-select"),i.data("data",r),i.data("placeholder",c),i.data("width","resolve"),u&&i.data(u),!1!==u.init&&e(!0!==u.init),i.on("change",(t=>{d("change",{handler:i,event:t})})),i.on("select2:close",(()=>{i.data("select2").$container.removeClass("select2-container--above"),i.data("select2").$dropdown.find("> .select2-dropdown").removeClass("select2-dropdown--above")})),l||i.on("select2:open",(()=>{const t=i.data("select2").$dropdown.find(".select2-search__field");t.one("blur",(()=>{setTimeout((()=>t.focus()),10)}))})),u.fixPosition){let t=!1;i.on("select2:open",(()=>{t||(i.selectWoo("close"),t=!0,i.selectWoo("open"),t=!1)}))}setTimeout((()=>{f=!0}))})),h=()=>{i.selectWoo("destroy"),i.remove()},et().$$.on_destroy.push(h),t.$$set=t=>{"handler"in t&&o(4,i=t.handler),"name"in t&&o(0,s=t.name),"data"in t&&o(5,r=t.data),"multiple"in t&&o(1,l=t.multiple),"disabled"in t&&o(2,a=t.disabled),"placeholder"in t&&o(6,c=t.placeholder),"options"in t&&o(7,u=t.options)},t.$$.update=()=>{var e;32&t.$$.dirty&&function(t){if(!f)return;if(u.replaceData||!t||!i.data("data")||t.length!==i.data("data").length||t.length&&t[0].id!==i.data("data")[0].id)return i.empty().trigger("change.select2"),i.data("data",t),void i.selectWoo();let e=!1;i.find("option").each(((n,o)=>{if(!t[n])return!1;const i=jQuery(o),s=!0===t[n].selected,r=!0===t[n].disabled;i.prop("selected")!==s&&(i.prop("selected",s),e=!0),i.prop("disabled")!==r&&(i.prop("disabled",r),e=!0)})),e&&(i.trigger("change.select2"),i.selectWoo())}(r),64&t.$$.dirty&&(e=c,f&&(i.data("placeholder",e),i.selectWoo())),128&t.$$.dirty&&function(t){f&&t&&(i.data(t),i.selectWoo())}(u)},[s,l,a,p,i,r,c,u,function(t){lt[t?"unshift":"push"]((()=>{p=t,o(3,p)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const Dt=class extends qt{constructor(t){super(),Pt(this,t,Bt,Xt,_,{handler:4,name:0,data:5,multiple:1,disabled:2,placeholder:6,options:7})}};function Ht(t,e,n){const o=t.slice();return o[13]=e[n],o[15]=n,o}function Qt(t){let e,n=t[13].image+"";return{c(){e=R("div"),X(e,"class","component-image")},m(t,o){N(t,e,o),e.innerHTML=n},p(t,o){4&o&&n!==(n=t[13].image+"")&&(e.innerHTML=n)},d(t){t&&P(e)}}}function Jt(t){let e,n,o=t[13].sku+"";return{c(){e=R("div"),n=q(o),X(e,"class","component-sku")},m(t,o){N(t,e,o),S(e,n)},p(t,e){4&e&&o!==(o=t[13].sku+"")&&D(n,o)},d(t){t&&P(e)}}}function Ut(t){let e,n,o;return{c(){e=R("div"),n=R("span"),X(n,"class","component-disabled"),X(n,"title",o=t[5].disabled),X(e,"class","component-status")},m(t,o){N(t,e,o),S(e,n)},p:h,d(t){t&&P(e)}}}function Vt(t,e){let n,o,i,s,r,l,a,c,u,d,p,f,h,m,$,g,b,y,w,_,x,k=e[13].title+"",E=e[13].image&&Qt(e),L=e[13].sku&&Jt(e),T=!e[13].enabled&&Ut(e);function z(){return e[9](e[13])}return{key:t,first:null,c(){n=R("div"),E&&E.c(),o=F(),i=R("div"),s=q(k),r=F(),L&&L.c(),l=F(),T&&T.c(),a=F(),c=R("div"),u=R("input"),h=F(),m=R("div"),$=R("button"),b=F(),X(i,"class","component-title"),X(u,"type","number"),X(u,"name",d=e[4].name+"["+e[1]+"]["+e[13].id+"]"),u.value=p=e[0][e[13].id],X(u,"step","any"),X(u,"min","0"),X(u,"placeholder",e[6]),X(u,"title",f=e[5][e[1]].quantityTip),X(c,"class","component-quantity"),X($,"type","button"),X($,"class","remove-component-button"),X($,"title",g=e[5].remove),X(m,"class","component-actions"),X(n,"class","component-item"),Q(n,"disabled",!e[13].enabled),this.first=n},m(t,e){N(t,n,e),E&&E.m(n,null),S(n,o),S(n,i),S(i,s),S(n,r),L&&L.m(n,null),S(n,l),T&&T.m(n,null),S(n,a),S(n,c),S(c,u),S(n,h),S(n,m),S(m,$),S(n,b),w=!0,_||(x=[Y(u,"change",Zt),Y($,"click",z),Y(n,"introend",Kt)],_=!0)},p(t,i){(e=t)[13].image?E?E.p(e,i):(E=Qt(e),E.c(),E.m(n,o)):E&&(E.d(1),E=null),(!w||4&i)&&k!==(k=e[13].title+"")&&D(s,k),e[13].sku?L?L.p(e,i):(L=Jt(e),L.c(),L.m(n,l)):L&&(L.d(1),L=null),e[13].enabled?T&&(T.d(1),T=null):T?T.p(e,i):(T=Ut(e),T.c(),T.m(n,a)),(!w||6&i&&d!==(d=e[4].name+"["+e[1]+"]["+e[13].id+"]"))&&X(u,"name",d),(!w||5&i&&p!==(p=e[0][e[13].id])&&u.value!==p)&&(u.value=p),(!w||2&i&&f!==(f=e[5][e[1]].quantityTip))&&X(u,"title",f),(!w||4&i)&&Q(n,"disabled",!e[13].enabled)},i(t){w||(t&&pt((()=>{w&&(y||(y=zt(n,Yt,{duration:170},!0)),y.run(1))})),w=!0)},o(t){t&&(y||(y=zt(n,Yt,{duration:170},!1)),y.run(0)),w=!1},d(t){t&&P(n),E&&E.d(),L&&L.d(),T&&T.d(),t&&y&&y.end(),_=!1,v(x)}}}function Gt(t){let e,n,o,i,s,r,l,a,c,u,d,p,f,h,m,$=t[5][t[1]].label+"",g=[],b=new Map;a=new Dt({props:{multiple:!0,data:t[3],placeholder:t[5][t[1]].addPlaceholder,options:{width:"auto"}}}),a.$on("change",t[7]);let v=At(t[2]);const y=t=>t[13].id;for(let e=0;e<v.length;e+=1){let n=Ht(t,v,e),o=y(n);b.set(o,g[e]=Vt(o,n))}return{c(){e=R("p"),n=R("label"),o=q($),i=F(),s=R("span"),l=F(),jt(a.$$.fragment),u=F(),d=R("div"),p=R("div"),f=R("div");for(let t=0;t<g.length;t+=1)g[t].c();X(n,"for",""),X(s,"class","woocommerce-help-tip"),X(s,"title",r=t[5][t[1]].fieldTip),X(e,"class",c="form-field mewz_wcas_"+t[1]+"_components_field"),X(f,"class","component-list-inner"),X(p,"class",h="component-list "+t[1]+"-component-list"),X(d,"class","mewz-wcas-components-section"),Q(d,"empty",!t[2].length)},m(t,r){N(t,e,r),S(e,n),S(n,o),S(e,i),S(e,s),S(e,l),Wt(a,e,null),N(t,u,r),N(t,d,r),S(d,p),S(p,f);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(f,null);m=!0},p(t,[n]){(!m||2&n)&&$!==($=t[5][t[1]].label+"")&&D(o,$),(!m||2&n&&r!==(r=t[5][t[1]].fieldTip))&&X(s,"title",r);const i={};8&n&&(i.data=t[3]),2&n&&(i.placeholder=t[5][t[1]].addPlaceholder),a.$set(i),(!m||2&n&&c!==(c="form-field mewz_wcas_"+t[1]+"_components_field"))&&X(e,"class",c),375&n&&(v=At(t[2]),xt(),g=Ct(g,n,y,1,t,v,b,f,Ot,Vt,null,Ht),kt()),(!m||2&n&&h!==(h="component-list "+t[1]+"-component-list"))&&X(p,"class",h),(!m||4&n)&&Q(d,"empty",!t[2].length)},i(t){if(!m){Et(a.$$.fragment,t);for(let t=0;t<v.length;t+=1)Et(g[t]);m=!0}},o(t){Lt(a.$$.fragment,t);for(let t=0;t<g.length;t+=1)Lt(g[t]);m=!1},d(t){t&&(P(e),P(u),P(d)),Nt(a);for(let t=0;t<g.length;t+=1)g[t].d()}}}function Kt(t){t.target.scrollIntoView({behavior:"smooth",block:"nearest"})}function Zt(t){+t.target.value<=0&&(t.target.value="")}function te(t,e,n){let o,i,{type:s}=e,{components:r}=e;const l=st("data"),{i18n:a}=l,c=ot(),u=1..toLocaleString(l.locale,{minimumFractionDigits:2});function d(t){delete r[t],n(0,r)}return t.$$set=t=>{"type"in t&&n(1,s=t.type),"components"in t&&n(0,r=t.components)},t.$$.update=()=>{1&t.$$.dirty&&n(3,o=function(t){const e=[];for(const n of l.stockList){let o=n.title;n.sku&&(o+=` [${n.sku}]`),n.enabled||(o=`🛇 ${o}`);const i={id:n.id,text:o};n.id in t&&(i.disabled=!0),e.push(i)}return e}(r)),1&t.$$.dirty&&n(2,i=l.stockList.filter((t=>t.id in r)))},[r,s,i,o,l,a,u,function(t){const e=t.detail.handler,o=e.val();var i;o&&o.length&&((i=+o[0])in r||(n(0,r[i]=["",""],r),c("added",{type:s,id:i})),setTimeout((()=>e.focus())))},d,t=>d(t.id)]}const ee=class extends qt{constructor(t){super(),Pt(this,t,te,Gt,w,{type:1,components:0})}};function ne(t){let e;return{c(){e=R("input"),X(e,"type","hidden"),X(e,"name","mewz_wcas_noupdate[components]"),e.value="1"},m(t,n){N(t,e,n)},d(t){t&&P(e)}}}function oe(t){let e,n,o,i,s,r,l,a,c,u=!t[1]&&ne();function d(e){t[3](e)}let p={type:"parent"};function f(e){t[4](e)}void 0!==t[0].parent&&(p.components=t[0].parent),o=new ee({props:p}),lt.push((()=>St(o,"components",d))),o.$on("added",t[2]);let h={type:"child"};return void 0!==t[0].child&&(h.components=t[0].child),l=new ee({props:h}),lt.push((()=>St(l,"components",f))),l.$on("added",t[2]),{c(){u&&u.c(),e=F(),n=R("div"),jt(o.$$.fragment),s=F(),r=R("div"),jt(l.$$.fragment),X(n,"class","options_group"),X(r,"class","options_group")},m(t,i){u&&u.m(t,i),N(t,e,i),N(t,n,i),Wt(o,n,null),N(t,s,i),N(t,r,i),Wt(l,r,null),c=!0},p(t,[n]){t[1]?u&&(u.d(1),u=null):u||(u=ne(),u.c(),u.m(e.parentNode,e));const s={};!i&&1&n&&(i=!0,s.components=t[0].parent,ft((()=>i=!1))),o.$set(s);const r={};!a&&1&n&&(a=!0,r.components=t[0].child,ft((()=>a=!1))),l.$set(r)},i(t){c||(Et(o.$$.fragment,t),Et(l.$$.fragment,t),c=!0)},o(t){Lt(o.$$.fragment,t),Lt(l.$$.fragment,t),c=!1},d(t){t&&(P(e),P(n),P(s),P(r)),u&&u.d(t),Nt(o),Nt(l)}}}function ie(t,e,i){const s=e.data,r=s.components;it("data",s);let l=!1;s.stockItems={};for(const t of s.stockList)s.stockItems[t.id]=t;return nt((()=>{setTimeout((()=>{n("#components_panel .woocommerce-help-tip"),o(document.getElementById("components_panel"),s.name+"[",(t=>i(1,l=t)))}))})),t.$$set=t=>{i(6,e=$($({},e),x(t)))},t.$$.update=()=>{1&t.$$.dirty&&mewzWcas.setTabIndicator("components",Object.values(r.child).length)},e=x(e),[r,l,function(t){const{type:e,id:n}=t.detail;delete r["parent"===e?"child":"parent"][n]},function(e){t.$$.not_equal(r.parent,e)&&(r.parent=e,i(0,r))},function(e){t.$$.not_equal(r.child,e)&&(r.child=e,i(0,r))}]}function se(t,{delay:e=0,duration:n=400,easing:o=Ft,axis:i="y"}={}){const s=getComputedStyle(t),r=+s.opacity,l="y"===i?"height":"width",a=parseFloat(s[l]),c="y"===i?["top","bottom"]:["left","right"],u=c.map((t=>`${t[0].toUpperCase()}${t.slice(1)}`)),d=parseFloat(s[`padding${u[0]}`]),p=parseFloat(s[`padding${u[1]}`]),f=parseFloat(s[`margin${u[0]}`]),h=parseFloat(s[`margin${u[1]}`]),m=parseFloat(s[`border${u[0]}Width`]),$=parseFloat(s[`border${u[1]}Width`]);return{delay:e,duration:n,easing:o,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*r};${l}: ${t*a}px;padding-${c[0]}: ${t*d}px;padding-${c[1]}: ${t*p}px;margin-${c[0]}: ${t*f}px;margin-${c[1]}: ${t*h}px;border-${c[0]}-width: ${t*m}px;border-${c[1]}-width: ${t*$}px;`}}function re(t,e){e=Object.assign({open:!0,duration:.2,easing:"ease"},e);const n=()=>{};let o=n,i=n;const s=()=>{o(),o=n,i=n};async function r(){return new Promise(requestAnimationFrame)}function l(){return`height ${e.duration}s ${e.easing}`}return t.addEventListener("transitionend",s),t.style.transition=l(),t.style.height=e.open?"auto":"0px",e.open?t.style.overflow="visible":t.style.overflow="hidden",{update:function(n){(e=Object.assign(e,n)).open?async function(){t.style.height=t.scrollHeight+"px";try{await async function(){return new Promise(((t,e)=>{o=t,i=e}))}(),t.style.height="auto",t.style.overflow="visible"}catch(t){}}():async function(){"auto"===t.style.height?(t.style.transition="none",await r(),t.style.height=t.scrollHeight+"px",t.style.transition=l(),await r(),t.style.overflow="hidden",t.style.height="0px"):(i(),t.style.overflow="hidden",t.style.height="0px")}()},destroy:function(){t.removeEventListener("transitionend",s)}}}function le(t,{dragStart:e,dragMove:n,dragEnd:o,exclude:i,enabled:s=!0}){function r(t){if(!s||i&&t.target.closest(i))return;const r=ae(t);r&&(t.preventDefault(),function(t,e,{dragStart:n,dragMove:o,dragEnd:i}){let s,r=t,l=e.clientX,a=e.clientY,c=l+window.scrollX,u=a+window.scrollY,d=0,p=0;function f(t){const e=ae(t);e&&(r=t,l=e.clientX,a=e.clientY,d=l+window.scrollX-c,p=a+window.scrollY-u,o&&o({event:t,pointer:e,x:l,y:top,startX:c,startY:u,moveX:d,moveY:p}))}function h(t){const e=ae(t,s);e&&(r=t,"mouseup"===t.type?(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",h)):(window.removeEventListener("touchmove",f),window.removeEventListener("touchend",h)),window.removeEventListener("scroll",m),i&&i({event:t,pointer:e,x:l,y:top,startX:c,startY:u,moveX:d,moveY:p}))}function m(){d=l+window.scrollX-c,p=a+window.scrollY-u,o({event:r,pointer:e,x:l,y:top,startX:c,startY:u,moveX:d,moveY:p})}"mousedown"===t.type?(window.addEventListener("mousemove",f),window.addEventListener("mouseup",h)):(s=e.identifier,window.addEventListener("touchmove",f),window.addEventListener("touchend",h)),window.addEventListener("scroll",m),n&&n({event:t,pointer:e,x:l,y:top,startX:c,startY:u})}(t,r,{dragStart:e,dragMove:n,dragEnd:o}))}return t.addEventListener("mousedown",r),t.addEventListener("touchstart",r,{passive:!1}),{update(t){i=t.exclude,s=t.enabled},destroy(){t.removeEventListener("mousedown",r),t.removeEventListener("touchstart",r)}}}function ae(t,e){return t instanceof MouseEvent?0===t.button?t:null:void 0===e?1===t.touches.length?t.touches[0]:null:function(t,e){for(const n of t)if(n.identifier===e)return n;return null}(t.changedTouches,e)}function ce(t,e,n){const o=t.slice();o[43]=e[n],o[45]=e,o[46]=n;const i=`${o[8].name}[${o[3]}][attributes][${o[43][0]}]`;return o[44]=i,o}function ue(t,e,n){const o=t.slice();return o[47]=e[n],o[49]=n,o}function de(t){let e,n,o,i,s=t[9].ruleTitle.replace("%s",t[3]+1)+"";return{c(){e=R("span"),n=q(s),o=F(),i=R("span"),i.textContent="—",X(e,"class","toolbar-label toolbar-label-title"),X(i,"class","sep")},m(t,s){N(t,e,s),S(e,n),N(t,o,s),N(t,i,s)},p(t,e){8&e[0]&&s!==(s=t[9].ruleTitle.replace("%s",t[3]+1)+"")&&D(n,s)},d(t){t&&(P(e),P(o),P(i))}}}function pe(t){let e,n,o=t[47].name+"";return{c(){e=R("span"),n=q(o),X(e,"class","name")},m(t,o){N(t,e,o),S(e,n)},p(t,e){3&e[0]&&o!==(o=t[47].name+"")&&D(n,o)},d(t){t&&P(e)}}}function fe(t,e){let n,o,i,s,r,l,a,c,u=(e[47].value||"")+"",d=e[47].name&&pe(e);return{key:t,first:null,c(){n=R("span"),d&&d.c(),o=F(),i=R("span"),s=q(u),r=F(),X(i,"class","value"),X(n,"class",l="toolbar-label toolbar-label-"+e[47].type+(e[47].class?" "+e[47].class:"")),X(n,"title",a=e[47].title),X(n,"rel",c=e[47].title?"tiptip":null),this.first=n},m(t,e){N(t,n,e),d&&d.m(n,null),S(n,o),S(n,i),S(i,s),S(n,r)},p(t,i){(e=t)[47].name?d?d.p(e,i):(d=pe(e),d.c(),d.m(n,o)):d&&(d.d(1),d=null),3&i[0]&&u!==(u=(e[47].value||"")+"")&&D(s,u),3&i[0]&&l!==(l="toolbar-label toolbar-label-"+e[47].type+(e[47].class?" "+e[47].class:""))&&X(n,"class",l),3&i[0]&&a!==(a=e[47].title)&&X(n,"title",a),3&i[0]&&c!==(c=e[47].title?"tiptip":null)&&X(n,"rel",c)},d(t){t&&P(n),d&&d.d()}}}function he(t,e){let n,o,i,s,r,l,a,c,u,d,p,f,h,m,$,g,b,v,y,w;function _(){return e[28](e[46])}return s=new Dt({props:{data:e[12](e[43][0]),placeholder:{id:"",text:e[9].attributePlaceholder},options:{init:!0,fixPosition:!0}}}),s.$on("change",(function(...t){return e[26](e[43],e[45],e[46],...t)})),d=new Dt({props:{name:e[44]+"[]",multiple:!0,data:e[13](e[43]),placeholder:e[43][0]?e[9].anyOption.replace("%s",e[8].attributes[e[43][0]].label):e[9].termPlaceholder,disabled:!e[43][0],options:{init:!0,width:"auto",fixPosition:!0}}}),d.$on("change",(function(...t){return e[27](e[43],e[45],e[46],...t)})),{key:t,first:null,c(){n=R("div"),o=R("div"),i=R("div"),jt(s.$$.fragment),r=F(),l=R("div"),a=R("input"),u=F(),jt(d.$$.fragment),p=F(),f=R("div"),h=R("button"),g=F(),X(i,"class","select-attribute"),X(a,"type","hidden"),X(a,"name",c=e[44]),a.value="",X(l,"class","select-terms"),X(h,"type","button"),X(h,"class","icon-button row-remove-button"),X(h,"title",m=e[9].removeAttribute),h.disabled=$=1===e[0].length&&!e[43].attribute,X(f,"class","attribute-row-actions"),X(o,"class","attribute-row-inner"),X(n,"class","attribute-row"),this.first=n},m(t,e){N(t,n,e),S(n,o),S(o,i),Wt(s,i,null),S(o,r),S(o,l),S(l,a),S(l,u),Wt(d,l,null),S(o,p),S(o,f),S(f,h),S(n,g),v=!0,y||(w=Y(h,"click",_),y=!0)},p(t,n){e=t;const o={};1&n[0]&&(o.data=e[12](e[43][0])),s.$set(o),(!v||9&n[0]&&c!==(c=e[44]))&&X(a,"name",c);const i={};9&n[0]&&(i.name=e[44]+"[]"),1&n[0]&&(i.data=e[13](e[43])),1&n[0]&&(i.placeholder=e[43][0]?e[9].anyOption.replace("%s",e[8].attributes[e[43][0]].label):e[9].termPlaceholder),1&n[0]&&(i.disabled=!e[43][0]),d.$set(i),(!v||1&n[0]&&$!==($=1===e[0].length&&!e[43].attribute))&&(h.disabled=$)},i(t){v||(Et(s.$$.fragment,t),Et(d.$$.fragment,t),t&&pt((()=>{v&&(b||(b=zt(n,Yt,{duration:130},!0)),b.run(1))})),v=!0)},o(t){Lt(s.$$.fragment,t),Lt(d.$$.fragment,t),t&&(b||(b=zt(n,Yt,{duration:130},!1)),b.run(0)),v=!1},d(t){t&&P(n),Nt(s),Nt(d),t&&b&&b.end(),y=!1,w()}}}function me(t){let e,n,o,i,s,r;return{c(){e=R("div"),n=R("button"),n.textContent="Add attribute",X(n,"type","button"),X(n,"class","row-add-button"),X(e,"class","attribute-list-actions")},m(o,l){N(o,e,l),S(e,n),i=!0,s||(r=Y(n,"click",t[29]),s=!0)},p:h,i(t){i||(t&&pt((()=>{i&&(o||(o=zt(e,se,{duration:100},!0)),o.run(1))})),i=!0)},o(t){t&&(o||(o=zt(e,se,{duration:100},!1)),o.run(0)),i=!1},d(t){t&&P(e),t&&o&&o.end(),s=!1,r()}}}function $e(t){let e,n,o,i,s,r,l,a,c,u,d,p,f,$,g,b,w,_,x,E,T,z,A,O,C,I,j,W,D,J,U,V,G,tt,et,nt,ot,it,st,rt,lt,at,ct,ut=[],dt=new Map,ft=[],ht=new Map,mt=t[9].multiplierLabel+"",$t=t[5]>1&&de(t),gt=At(t[14](t[0],t[1]));const bt=t=>t[49]+t[47].type;for(let e=0;e<gt.length;e+=1){let n=ue(t,gt,e),o=bt(n);dt.set(o,ut[e]=fe(o,n))}let wt=At(t[0]);const zt=t=>t[43];for(let e=0;e<wt.length;e+=1){let n=ce(t,wt,e),o=zt(n);ht.set(o,ft[e]=he(o,n))}let It=t[0].length<t[10]&&me(t);return{c(){e=R("div"),n=R("div"),o=R("div"),$t&&$t.c(),i=F();for(let t=0;t<ut.length;t+=1)ut[t].c();s=F(),r=R("span"),l=R("span"),a=F(),c=R("button"),p=F(),f=R("button"),g=F(),b=R("button"),_=F(),x=R("div"),E=R("div"),T=R("div"),z=R("div");for(let t=0;t<ft.length;t+=1)ft[t].c();A=F(),It&&It.c(),O=F(),C=R("div"),I=R("div"),j=R("label"),W=q(mt),D=F(),J=R("span"),V=F(),G=R("input"),X(o,"class","toolbar-labels"),X(l,"class","toolbar-action icon-button expand-button"),X(c,"type","button"),X(c,"class","toolbar-action icon-button drag-button"),X(c,"title",u=t[9].dragTip),X(f,"type","button"),X(f,"class","toolbar-action icon-button duplicate-button"),X(f,"title",$=t[9].duplicateRule),X(b,"type","button"),X(b,"class","toolbar-action icon-button remove-button"),X(b,"title",w=t[9].removeRule),X(r,"class","match-rule-toolbar-actions"),X(n,"class","match-rule-toolbar"),X(z,"class","attribute-rows"),X(T,"class","attribute-list"),X(J,"class","woocommerce-help-tip"),X(J,"title",U=t[9].multiplierTip),X(G,"type","number"),X(G,"name",tt=t[17](t[3],"multiplier")),X(G,"step","any"),X(G,"min","-1"),X(G,"placeholder",et=t[22](t[0])),X(G,"lang",nt=t[8].locale),X(I,"class","option option-multiplier"),X(C,"class","match-rule-options"),X(E,"class","match-rule-body-inner"),X(x,"class","match-rule-body"),X(e,"class","mewz-wcas-match-rule"),X(e,"style",it=ge(t[7])),Q(e,"zero-multiplier",null!=t[1]&&""!==t[1]&&0==+t[1]),Q(e,"stop-rule",+t[1]<0),Q(e,"open",t[2]),Q(e,"dragging",t[7]),Q(e,"released",t[7]&&t[7].released)},m(u,h){N(u,e,h),S(e,n),S(n,o),$t&&$t.m(o,null),S(o,i);for(let t=0;t<ut.length;t+=1)ut[t]&&ut[t].m(o,null);S(n,s),S(n,r),S(r,l),S(r,a),S(r,c),S(r,p),S(r,f),S(r,g),S(r,b),S(e,_),S(e,x),S(x,E),S(E,T),S(T,z);for(let t=0;t<ft.length;t+=1)ft[t]&&ft[t].m(z,null);S(T,A),It&&It.m(T,null),S(E,O),S(E,C),S(C,I),S(I,j),S(j,W),S(j,D),S(j,J),S(I,V),S(I,G),H(G,t[1]),t[31](e),lt=!0,at||(ct=[k(d=le.call(null,c,{dragStart:t[19],dragMove:t[20],dragEnd:t[21],enabled:t[4]})),Y(f,"click",t[24]),Y(b,"click",t[25]),Y(n,"click",t[18]),Y(G,"input",t[30]),k(ot=re.call(null,x,{open:t[2],duration:.17}))],at=!0)},p(t,n){t[5]>1?$t?$t.p(t,n):($t=de(t),$t.c(),$t.m(o,i)):$t&&($t.d(1),$t=null),16387&n[0]&&(gt=At(t[14](t[0],t[1])),ut=Ct(ut,n,bt,1,t,gt,dt,o,Mt,fe,null,ue)),d&&y(d.update)&&16&n[0]&&d.update.call(null,{dragStart:t[19],dragMove:t[20],dragEnd:t[21],enabled:t[4]}),78601&n[0]&&(wt=At(t[0]),xt(),ft=Ct(ft,n,zt,1,t,wt,ht,z,Ot,he,null,ce),kt()),t[0].length<t[10]?It?(It.p(t,n),1&n[0]&&Et(It,1)):(It=me(t),It.c(),Et(It,1),It.m(T,null)):It&&(xt(),Lt(It,1,1,(()=>{It=null})),kt()),(!lt||8&n[0]&&tt!==(tt=t[17](t[3],"multiplier")))&&X(G,"name",tt),(!lt||1&n[0]&&et!==(et=t[22](t[0])))&&X(G,"placeholder",et),2&n[0]&&B(G.value)!==t[1]&&H(G,t[1]),ot&&y(ot.update)&&4&n[0]&&ot.update.call(null,{open:t[2],duration:.17}),(!lt||128&n[0]&&it!==(it=ge(t[7])))&&X(e,"style",it),(!lt||2&n[0])&&Q(e,"zero-multiplier",null!=t[1]&&""!==t[1]&&0==+t[1]),(!lt||2&n[0])&&Q(e,"stop-rule",+t[1]<0),(!lt||4&n[0])&&Q(e,"open",t[2]),(!lt||128&n[0])&&Q(e,"dragging",t[7]),(!lt||128&n[0])&&Q(e,"released",t[7]&&t[7].released)},i(t){if(!lt){for(let t=0;t<wt.length;t+=1)Et(ft[t]);Et(It),t&&pt((()=>{lt&&(rt&&rt.end(1),st=function(t,e){const n={direction:"in"};let o,i,s=e(t,{duration:170},n),r=!1,l=0;function a(){o&&Z(t,o)}function c(){const{delay:e=0,duration:n=300,easing:c=m,tick:u=h,css:d}=s||Tt;d&&(o=K(t,0,1,n,e,c,d,l++)),u(0,1);const p=L()+e,f=p+n;i&&i.abort(),r=!0,pt((()=>yt(t,!0,"start"))),i=M((e=>{if(r){if(e>=f)return u(1,0),yt(t,!0,"end"),a(),r=!1;if(e>=p){const t=c((e-p)/n);u(t,1-t)}}return r}))}let u=!1;return{start(){u||(u=!0,Z(t),y(s)?(s=s(n),vt().then(c)):c())},invalidate(){u=!1},end(){r&&(a(),r=!1)}}}(e,Yt),st.start())})),lt=!0}},o(t){for(let t=0;t<ft.length;t+=1)Lt(ft[t]);Lt(It),st&&st.invalidate(),t&&(rt=function(t,e){const n={direction:"out"};let o,i=e(t,{duration:170},n),s=!0;const r=_t;let l;function a(){const{delay:e=0,duration:n=300,easing:a=m,tick:c=h,css:u}=i||Tt;u&&(o=K(t,1,0,n,e,a,u));const d=L()+e,p=d+n;pt((()=>yt(t,!1,"start"))),"inert"in t&&(l=t.inert,t.inert=!0),M((e=>{if(s){if(e>=p)return c(0,1),yt(t,!1,"end"),--r.r||v(r.c),!1;if(e>=d){const t=a((e-d)/n);c(1-t,t)}}return s}))}return r.r+=1,y(i)?vt().then((()=>{i=i(n),a()})):a(),{end(e){e&&"inert"in t&&(t.inert=l),e&&i.tick&&i.tick(1,0),s&&(o&&Z(t,o),s=!1)}}}(e,Yt)),lt=!1},d(n){n&&P(e),$t&&$t.d();for(let t=0;t<ut.length;t+=1)ut[t].d();for(let t=0;t<ft.length;t+=1)ft[t].d();It&&It.d(),t[31](null),n&&rt&&rt.end(),at=!1,v(ct)}}}function ge(t){if(t)return`transform: translateY(${t.offset}px);`}function be(t,e,o){let i,{index:s}=e,{attributes:r}=e,{multiplier:l=""}=e,{mounted:a=!1}=e,{open:c=!0}=e,{draggable:u=!0}=e,{ruleCount:d=1}=e;const p=st("data"),f=p.i18n,h=Object.keys(p.attributes).length,m=ot(),$=k(1,!0);let g,b=!1;function v(){const t=[0,[]];r?(r.push(t),o(0,r)):o(0,r=[t]),a&&setTimeout((()=>{const t=g.querySelector(".attribute-row:last-child .select-attribute select");t&&jQuery(t).focus()}),150)}function y(t){r.splice(t,1),r.length?o(0,r):v()}function w(t){if(!t||t.target===g){b.released&&g.removeEventListener("transitionend",w);for(const t of b.list)t.el.style.transform="";m("dragging",[s,!1]),b.targetIndex!==s&&m("action",["shift",s,b.targetIndex]),o(7,b=!1)}}function _(){const t=g.parentNode.querySelectorAll(".mewz-wcas-match-rule"),e=[];let n=0;for(const o of t){const t=o.offsetHeight;e.push({el:o,height:t,mid:n+Math.round(t/2),offset:0}),n+=t}return e}function x(t){const e={};for(const n of t)e[n[0]]=n[1];for(const[t]of p.attributeOptions){const n=e[t];if(!n)continue;const o=p.attributes[t];if(1===n.length){for(const t of o.terms)if(t[0]===n[0]&&null!=t[2])return+t[2]}else{let t=[1/0,0],e=!1;for(const i of o.terms){if(n.length&&!n.includes(i[0]))continue;if(null==i[2]){e=!0;continue}const o=+i[2];o<t[0]&&(t[0]=o),o>t[1]&&(t[1]=o)}if(t[0]!==1/0)return e&&t[0]>1&&(t[0]=1),t[0]===t[1]?t[0]:t}}return null}function k(t,e){const n=e&&t<10?{minimumFractionDigits:2}:{maximumSignificantDigits:20,maximumFractionDigits:20};return t.toLocaleString(p.locale,n)}return nt((()=>{n(".mewz-wcas-match-rule .woocommerce-help-tip")})),t.$$set=t=>{"index"in t&&o(3,s=t.index),"attributes"in t&&o(0,r=t.attributes),"multiplier"in t&&o(1,l=t.multiplier),"mounted"in t&&o(23,a=t.mounted),"open"in t&&o(2,c=t.open),"draggable"in t&&o(4,u=t.draggable),"ruleCount"in t&&o(5,d=t.ruleCount)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r.length||v()),1&t.$$.dirty[0]&&(i=function(t){const e={};for(const n of t)n[0]&&(e[n[0]]=!0);return e}(r))},[r,l,c,s,u,d,g,b,p,f,h,m,function(t){const e=[{id:"",text:""}];for(const[n,o]of p.attributeOptions){const s={id:n,text:o};n===t?s.selected=!0:i[n]&&(s.disabled=!0),e.push(s)}return e},function(t){if(!t[0])return[];const e=p.attributes[t[0]].terms,n=[],o={};for(const e of t[1])o[e]=!0;for(const[t,i]of e){const e={id:t,text:i};o[t]&&(e.selected=!0),n.push(e)}return n},function(t,e){const o=[];for(const[e,n]of t){if(!e||!n)continue;const t=[];if(n.length)for(const o of p.attributes[e].terms)if(n.includes(o[0])&&(t.push(o[1]),t.length===n.length))break;o.push({type:"attribute",name:p.attributes[e].label,value:t.length?t.join(", "):f.any})}if(o.length||o.push({type:"attribute",value:"..."}),null!=e&&""!==e&&1!=+e)+e<0?(o.push({type:"stop",title:f.stopRuleTip}),setTimeout((()=>n('.mewz-wcas-match-rule [rel="tiptip"]')))):o.push({type:"multiplier",value:`×${k(+e)}`});else if(1!=+e){const e=x(t);if(null!=e){let t;t=Array.isArray(e)?`×${k(e[0])}–${k(e[1])}`:`×${k(e)}`,o.push({type:"multiplier",class:"inherited",title:f.multiplierInherited,value:t})}}return o},v,y,function(t,e){return`${p.name}[${t}][${e}]`},function(t){b||t&&t.target.closest("button")||o(2,c=!c)},function(t){b||(o(7,b={height:g.offsetHeight,start:g.offsetTop,offset:0,end:g.parentNode.offsetHeight,list:_(),targetIndex:s,animatedIndex:s,released:!1}),m("dragging",[s,{released:!1}]))},function(t){b&&!b.released&&(o(7,b.offset=Math.max(-b.start,t.moveY),b),o(7,b.offset=Math.min(b.offset,b.end-b.start-b.height),b),o(7,b.targetIndex=function(){let t=s;const e=b.start+b.offset;for(let n=0;n<b.list.length;n++){const o=b.list[n].mid;if(n<s){if(e<o)return n}else n>s&&e+b.height>o&&(t=n)}return t}(),b),function(){if(b.targetIndex===b.animatedIndex)return;const t=b.targetIndex;for(let e=0;e<b.list.length;e++){const n=b.list[e];let o=0;t<s?e>=t&&e<s&&(o=b.height):t>s&&e<=t&&e>s&&(o=-b.height),n.offset!==o&&(n.el.style.transform=`translateY(${o}px)`,n.offset=o,null==n.animating&&n.el.addEventListener("transitionend",(()=>{n.animating=!1})),n.animating=!0)}o(7,b.animatedIndex=t,b)}())},function(){if(!b||b.released)return;const t=function(){const t=b.targetIndex;let e=0;if(t<s)for(let n=t;n<s;n++)e-=b.list[n].height;else if(t>s)for(let n=t;n>s;n--)e+=b.list[n].height;return e}();b.offset===t?b.targetIndex===s?(m("dragging",[s,!1]),o(7,b=!1)):b.list.some((t=>!0===t.animating))?(setTimeout(w,200),m("dragging",[s,{released:!0}])):w():(g.addEventListener("transitionend",w),o(7,b.offset=t,b),o(7,b.released=!0,b),m("dragging",[s,{released:!0}]))},function(t){const e=x(t);return null==e?$:Array.isArray(e)?k(e[0])+" – "+k(e[1]):k(e,!0)},a,()=>m("action",["duplicate",s]),()=>m("action",["remove",s]),(t,e,n,i)=>o(0,e[n][0]=+i.detail.handler.val(),r),(t,e,n,i)=>o(0,e[n][1]=i.detail.handler.val().map(Number),r),t=>y(t),()=>v(),function(){l=B(this.value),o(1,l)},function(t){lt[t?"unshift":"push"]((()=>{g=t,o(6,g)}))}]}const ve=class extends qt{constructor(t){super(),Pt(this,t,be,$e,w,{index:3,attributes:0,multiplier:1,mounted:23,open:2,draggable:4,ruleCount:5},null,[-1,-1])}};function ye(t,e,n){const o=t.slice();return o[26]=e[n],o[27]=e,o[28]=n,o}function we(t){let e,n,o,i;return{c(){e=R("button"),X(e,"type","button"),X(e,"class","button restore-button"),X(e,"title",n=t[1].i18n.restoreRule)},m(n,s){N(n,e,s),o||(i=Y(e,"click",t[11]),o=!0)},p(t,o){2&o&&n!==(n=t[1].i18n.restoreRule)&&X(e,"title",n)},d(t){t&&P(e),o=!1,i()}}}function _e(t,e){let n,o,i,s,r,l,a;function c(t){e[14](t)}function u(t){e[15](t,e[26])}function d(t){e[16](t,e[26])}function p(t){e[17](t,e[26])}let f={index:e[28],draggable:!e[6],ruleCount:e[0].length};return void 0!==e[5]&&(f.mounted=e[5]),void 0!==e[26].attributes&&(f.attributes=e[26].attributes),void 0!==e[26].multiplier&&(f.multiplier=e[26].multiplier),void 0!==e[26].open&&(f.open=e[26].open),o=new ve({props:f}),lt.push((()=>St(o,"mounted",c))),lt.push((()=>St(o,"attributes",u))),lt.push((()=>St(o,"multiplier",d))),lt.push((()=>St(o,"open",p))),o.$on("action",e[10]),o.$on("dragging",e[9]),{key:t,first:null,c(){n=q(""),jt(o.$$.fragment),this.first=n},m(t,e){N(t,n,e),Wt(o,t,e),a=!0},p(t,n){e=t;const a={};1&n&&(a.index=e[28]),64&n&&(a.draggable=!e[6]),1&n&&(a.ruleCount=e[0].length),!i&&32&n&&(i=!0,a.mounted=e[5],ft((()=>i=!1))),!s&&1&n&&(s=!0,a.attributes=e[26].attributes,ft((()=>s=!1))),!r&&1&n&&(r=!0,a.multiplier=e[26].multiplier,ft((()=>r=!1))),!l&&1&n&&(l=!0,a.open=e[26].open,ft((()=>l=!1))),o.$set(a)},i(t){a||(Et(o.$$.fragment,t),a=!0)},o(t){Lt(o.$$.fragment,t),a=!1},d(t){t&&P(n),Nt(o,t)}}}function xe(t){let e;return{c(){e=R("input"),X(e,"type","hidden"),X(e,"name","mewz_wcas_noupdate[rules]"),e.value="1"},m(t,n){N(t,e,n)},d(t){t&&P(e)}}}function ke(t){let e,n,o,i,s,r,l,a,c,u,d,p,f,h,m,$,g,b,y,w,_=t[1].i18n.newRule+"",x=(Ee(t[0])?t[1].i18n.closeAll:t[1].i18n.expandAll)+"",k=[],E=new Map,L=t[4].length&&we(t),T=At(t[0]);const z=t=>t[26];for(let e=0;e<T.length;e+=1){let n=ye(t,T,e),o=z(n);E.set(o,k[e]=_e(o,n))}let A=!t[7]&&xe();return{c(){e=R("div"),n=R("div"),o=R("div"),i=R("button"),s=q(_),r=F(),l=R("span"),c=F(),u=R("div"),L&&L.c(),d=F(),p=R("button"),f=q(x),m=F(),$=R("div");for(let t=0;t<k.length;t+=1)k[t].c();g=F(),A&&A.c(),X(i,"type","button"),X(i,"class","button add-button"),X(l,"class","woocommerce-help-tip"),X(l,"title",a=t[1].i18n.newRuleTip),X(o,"class","toolbar-left"),X(p,"type","button"),X(p,"class",h="button toggle-button "+(Ee(t[0])?"collapse":"expand")),X(u,"class","toolbar-right"),X(n,"class","main-toolbar"),X($,"class","match-rules-list"),X(e,"class","mewz-wcas-attribute-rules"),Q(e,"dragging",t[6]),Q(e,"released",t[6]&&t[6].released)},m(a,h){N(a,e,h),S(e,n),S(n,o),S(o,i),S(i,s),S(o,r),S(o,l),S(n,c),S(n,u),L&&L.m(u,null),S(u,d),S(u,p),S(p,f),S(e,m),S(e,$);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m($,null);t[18]($),S(e,g),A&&A.m(e,null),t[19](e),b=!0,y||(w=[Y(i,"click",t[13]),Y(p,"click",t[12])],y=!0)},p(t,[n]){(!b||2&n)&&_!==(_=t[1].i18n.newRule+"")&&D(s,_),(!b||2&n&&a!==(a=t[1].i18n.newRuleTip))&&X(l,"title",a),t[4].length?L?L.p(t,n):(L=we(t),L.c(),L.m(u,d)):L&&(L.d(1),L=null),(!b||3&n)&&x!==(x=(Ee(t[0])?t[1].i18n.closeAll:t[1].i18n.expandAll)+"")&&D(f,x),(!b||1&n&&h!==(h="button toggle-button "+(Ee(t[0])?"collapse":"expand")))&&X(p,"class",h),1633&n&&(T=At(t[0]),xt(),k=Ct(k,n,z,1,t,T,E,$,Ot,_e,null,ye),kt()),t[7]?A&&(A.d(1),A=null):A||(A=xe(),A.c(),A.m(e,null)),(!b||64&n)&&Q(e,"dragging",t[6]),(!b||64&n)&&Q(e,"released",t[6]&&t[6].released)},i(t){if(!b){for(let t=0;t<T.length;t+=1)Et(k[t]);b=!0}},o(t){for(let t=0;t<k.length;t+=1)Lt(k[t]);b=!1},d(n){n&&P(e),L&&L.d();for(let t=0;t<k.length;t+=1)k[t].d();t[18](null),A&&A.d(),t[19](null),y=!1,v(w)}}}function Ee(t){return t.every((t=>t.open))}function Le(t){for(const e of t.attributes)if(e[0])return!0;return!1}function Te(t,e,i){const s=e.data;let r,l;it("data",s);let a=[],c=[],u=!1,d=!1,p=!1;const f=s.rules;if(f.length){if(1===f.length)f[0].open=!0;else for(let t of f)t.open=!1;a=f}else m();const h=[];for(let t in s.attributes){const e=s.attributes[t];h.push([+t,e.label])}function m(){const t={attributes:[],multiplier:"",open:!0};return a.push(t),i(0,a),t}return s.attributeOptions=h.sort(((t,e)=>t[1].localeCompare(e[1]))),nt((()=>{n(".mewz-wcas-attribute-rules .main-toolbar .woocommerce-help-tip"),o(r,s.name+"[",(t=>i(7,p=t))),i(5,u=!0)})),t.$$set=t=>{i(25,e=$($({},e),x(t)))},t.$$.update=()=>{1&t.$$.dirty&&mewzWcas.setTabIndicator("attributes",a.filter(Le).length)},e=x(e),[a,s,r,l,c,u,d,p,m,function(t){const[e,n]=t.detail;i(6,d=n)},function(t){const[e,n,o]=t.detail;"duplicate"===e?function(t){const e=JSON.parse(JSON.stringify(a[t]));e.open=!0,a.splice(t+1,0,e),i(0,a)}(n):"remove"===e?function(t){const e=a.splice(t,1)[0];e&&(Le(e)&&(e.lastIndex=t,c.push(e),i(4,c)),a.length?i(0,a):m())}(n):"shift"===e&&function(t,e){const n=a.splice(t,1)[0];a.splice(e,0,n),i(0,a)}(n,o)},function(){const t=c.pop();t&&(1!==a.length||Le(a[0])?a.splice(t.lastIndex,0,t):i(0,a[0]=t,a),delete t.lastIndex,i(4,c),i(0,a))},function(){const t=Ee(a);a.forEach((e=>e.open=!t)),i(0,a)},()=>m(),function(t){u=t,i(5,u)},function(e,n){t.$$.not_equal(n.attributes,e)&&(n.attributes=e,i(0,a))},function(e,n){t.$$.not_equal(n.multiplier,e)&&(n.multiplier=e,i(0,a))},function(e,n){t.$$.not_equal(n.open,e)&&(n.open=e,i(0,a))},function(t){lt[t?"unshift":"push"]((()=>{l=t,i(3,l)}))},function(t){lt[t?"unshift":"push"]((()=>{r=t,i(2,r)}))}]}s("#post").on("submit",(function(){const t=s("#mewz-wcas-stock-status");t.find(".spinner").addClass("is-active"),t.find("#submit").prop("disabled",!0)})),s("#mewz_wcas_internal").on("change",r),r(),setTimeout(e),a.html&&l(a.html).insertAfter(".wrap > .page-title-action"),u=document.getElementById("post"),mewzWcas.setTabIndicator=d,p("settings"),p("filters"),new class extends qt{constructor(t){super(),Pt(this,t,ie,oe,w,{})}}({target:document.getElementById("components_panel"),props:{data:mewzWcas.components}}),new class extends qt{constructor(t){super(),Pt(this,t,Te,ke,w,{})}}({target:document.getElementById("attributes_panel"),props:{data:mewzWcas.matchRules}})})()})(); -
attribute-stock-for-woocommerce/trunk/assets/dist/admin/stock-list.css
r3108898 r3185159 479 479 content: '\f323'; 480 480 } 481 .post-type-attribute_stock .wp-list-table .mewz-wcas-chips.exclude .mewz-wcas-chip, 481 482 .post-type-attribute_stock .wp-list-table .mewz-wcas-chip.exclude { 482 483 --accent: #df7575; … … 628 629 font-size: 11px; 629 630 font-weight: 700; 630 color: # 777;631 color: #5f5f5f; 631 632 cursor: help; 632 633 } … … 647 648 color: #e97800; 648 649 } 650 .post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-backorders-yes, 651 .post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-backorders-notify { 652 color: #7941b5; 653 } 649 654 .post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-internal { 650 655 color: #009b1c; -
attribute-stock-for-woocommerce/trunk/assets/dist/admin/stock-list.js
r3108898 r3185159 1 1 /******/ (() => { // webpackBootstrap 2 2 /******/ "use strict"; 3 var __webpack_exports__ = {}; 4 // This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules. 3 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules. 5 4 (() => { 6 5 7 ;// CONCATENATED MODULE:./admin/stock-list/ui/header-actions.js6 ;// ./admin/stock-list/ui/header-actions.js 8 7 const $ = jQuery; 9 8 const headerActions = window.mewzWcas && mewzWcas.headerActions || {}; … … 26 25 $importFileInput[0].click(); 27 26 } 28 ;// CONCATENATED MODULE:./admin/stock-list/ui/filter-attribute.js27 ;// ./admin/stock-list/ui/filter-attribute.js 29 28 const filter_attribute_$ = jQuery; 30 29 const attributeOptions = window.mewzWcas && mewzWcas.attributeOptions || {}; … … 63 62 return options; 64 63 } 65 ;// CONCATENATED MODULE:./admin/stock-list/ui/inline-edit.js64 ;// ./admin/stock-list/ui/inline-edit.js 66 65 const inline_edit_$ = jQuery; 67 66 const { … … 206 205 return $nextRow; 207 206 } 208 ;// CONCATENATED MODULE:./admin/stock-list/ui/chips.js207 ;// ./admin/stock-list/ui/chips.js 209 208 function chips_load() { 210 209 const table = document.querySelector('.wp-list-table'); … … 221 220 }); 222 221 } 223 ;// CONCATENATED MODULE:./admin/stock-list/ui/confirmations.js222 ;// ./admin/stock-list/ui/confirmations.js 224 223 const confirmations_$ = jQuery; 225 224 const { … … 240 239 } 241 240 } 242 ;// CONCATENATED MODULE:./admin/stock-list/ui/tooltips.js241 ;// ./admin/stock-list/ui/tooltips.js 243 242 function tooltips_load() { 244 243 jQuery('[rel="tiptip"]').tipTip({ … … 248 247 }); 249 248 } 250 ;// CONCATENATED MODULE:./admin/stock-list/index.js249 ;// ./admin/stock-list/index.js 251 250 252 251 … … 263 262 })(); 264 263 265 // This entry need to be wrapped in an IIFE because it needto be isolated against other entry modules.264 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules. 266 265 (() => { 267 266 // extracted by mini-css-extract-plugin -
attribute-stock-for-woocommerce/trunk/assets/dist/admin/stock-list.min.css
r3108898 r3185159 1 .post-type-attribute_stock .tablenav .actions .select2{float:left;margin:0 6px 0 1px;max-width:12.5rem;width:200px!important}.post-type-attribute_stock .select2-container--default .select2-selection--single{border-radius:3px;font-size:14px}.post-type-attribute_stock .select2-container--default .select2-selection--single .select2-selection__placeholder{color:#2c3338}.post-type-attribute_stock .select2-search--dropdown{padding:4px 6px}.post-type-attribute_stock .select2-container--default .select2-search--dropdown .select2-search__field{margin:0}.post-type-attribute_stock .select2-results .select2-results__message,.post-type-attribute_stock .select2-results .select2-results__option.loading-results{color:#5c5c5e;font-size:12px;padding:1px 6px 6px}.post-type-attribute_stock select.list-filter-product-id{width:200px}.post-type-attribute_stock .wp-list-table{table-layout:auto}.post-type-attribute_stock .wp-list-table .column-sku,.post-type-attribute_stock .wp-list-table td,.post-type-attribute_stock .wp-list-table th{width:1%}.post-type-attribute_stock .wp-list-table tbody td{height:32px;line-height:20px;vertical-align:middle}.post-type-attribute_stock .wp-list-table th.sortable>a{align-items:center;display:flex}.post-type-attribute_stock .wp-list-table th.sortable>a span{float:none}.post-type-attribute_stock .wp-list-table th.sortable>a .sorting-indicator.asc{margin-top:1px}.post-type-attribute_stock .wp-list-table tbody tr{transition:background .15s ease-out}.post-type-attribute_stock .wp-list-table tbody tr:has(.check-column input:checked){background:#fbf4df}.post-type-attribute_stock .wp-list-table tbody tr:has(.check-column input:checked):nth-child(odd){background:#f9f0d6}.post-type-attribute_stock .wp-list-table .check-column{line-height:0;padding:0 10px;text-align:center;vertical-align:middle;width:.0001%}.post-type-attribute_stock .wp-list-table .check-column input{margin:0}.post-type-attribute_stock .wp-list-table .check-column .locked-indicator{margin:0 0 0 -2px}.post-type-attribute_stock .wp-list-table .check-column input:hover+label,.post-type-attribute_stock .wp-list-table .check-column label:hover{background:none}.post-type-attribute_stock .wp-list-table .column-image{width:.0001%}.post-type-attribute_stock .wp-list-table th.column-image{font-size:0!important;padding:0;text-indent:-100vw}.post-type-attribute_stock .wp-list-table td.column-image{padding:5px 2px}.post-type-attribute_stock .wp-list-table td.column-image .stock-image{background-color:#00000005;border-radius:3px;display:block;height:32px;margin-right:auto;overflow:hidden;width:32px}.post-type-attribute_stock .wp-list-table td.column-image img{height:100%;vertical-align:bottom;width:100%}.post-type-attribute_stock .wp-list-table td.column-image .stock-image.disabled img{filter:saturate(0)}.post-type-attribute_stock .wp-list-table td.column-image:before{content:""!important;display:none!important}.post-type-attribute_stock .wp-list-table .column-title{width:.7%}.post-type-attribute_stock .wp-list-table td.column-title{padding-bottom:5px;padding-top:5px}.post-type-attribute_stock .wp-list-table td.column-title strong{display:inline-block;margin-bottom:0;max-width:18vw;width:max-content}.post-type-attribute_stock .wp-list-table td.column-title .row-actions{display:none!important}.post-type-attribute_stock .wp-list-table .column-actions{padding-left:0;width:.0001%}.post-type-attribute_stock .wp-list-table th.column-actions{text-indent:-999em}.post-type-attribute_stock .wp-list-table td.column-actions{text-align:right;white-space:nowrap}.post-type-attribute_stock .wp-list-table td.column-sku{white-space:nowrap}.post-type-attribute_stock .wp-list-table td.column-quantity{position:relative;white-space:nowrap}.post-type-attribute_stock .wp-list-table .stock-quantity{color:#00b540;font-size:14px;font-weight:600}.post-type-attribute_stock .wp-list-table .stock-quantity.low-stock{color:#de5959}.post-type-attribute_stock .wp-list-table td.inline-editing .stock-quantity{visibility:hidden}.post-type-attribute_stock .wp-list-table td.inline-edit-pending .stock-quantity{color:#0006}.post-type-attribute_stock .wp-list-table td.column-notes .notes-text{color:#6d7178;display:block;font-size:11px;line-height:normal;max-width:15vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:max-content}.post-type-attribute_stock .wp-list-table .column-created,.post-type-attribute_stock .wp-list-table .column-modified{white-space:nowrap;width:.3%}.post-type-attribute_stock .wp-list-table td.inline-editing .inline-edit-controls{contain:paint}.post-type-attribute_stock .wp-list-table abbr{cursor:help}.post-type-attribute_stock .wp-list-table .action-button{background:none;border:0;border-radius:3px;contain:paint;cursor:pointer;display:inline-block;font-size:20px;height:1em;line-height:1;opacity:0;outline:none;padding:0;text-align:center;vertical-align:bottom;visibility:hidden;width:1em}.post-type-attribute_stock .wp-list-table .action-button+.action-button{margin-left:5px}.post-type-attribute_stock .wp-list-table tr:hover .action-button{opacity:.1;visibility:visible}.post-type-attribute_stock .wp-list-table td.column-title:hover+td .action-button,.post-type-attribute_stock .wp-list-table td:hover .action-button{opacity:.5;visibility:visible}.post-type-attribute_stock .wp-list-table .action-button:active,.post-type-attribute_stock .wp-list-table .action-button:hover{opacity:1!important}.post-type-attribute_stock .wp-list-table .action-button:focus{box-shadow:none!important}.post-type-attribute_stock .wp-list-table .action-button:before{display:block;font-family:dashicons;text-indent:0}.post-type-attribute_stock .wp-list-table .action-button.action-trash{color:#ef6c6c}.post-type-attribute_stock .wp-list-table .action-button.action-trash:hover{color:#ec4d4d}.post-type-attribute_stock .wp-list-table .action-button.action-trash:active{color:#db1818}.post-type-attribute_stock .wp-list-table .action-button.action-trash:before{content:"\f182"}.post-type-attribute_stock .wp-list-table .action-button.action-untrash{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.action-untrash:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.action-untrash:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.action-untrash:before{content:"\f171"}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate:before{content:"\f105"}.post-type-attribute_stock .wp-list-table .action-button.edit-button{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.edit-button:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.edit-button:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.edit-button:before{content:"\f464"}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button:before{content:"\f132";transform:translateY(1px)}.post-type-attribute_stock .wp-list-table .inline-edit-controls{display:inline-block;margin-left:7px}.post-type-attribute_stock .wp-list-table td.inline-edit-pending .action-button,.post-type-attribute_stock .wp-list-table td.inline-edit-pending .inline-edit-controls,.post-type-attribute_stock .wp-list-table td.inline-editing .action-button,.post-type-attribute_stock .wp-list-table td.inline-editing .inline-edit-controls{visibility:hidden!important}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap{display:block;height:30px;left:0;position:absolute;right:0;text-align:left;top:50%;transform:translateY(-50%);width:100%}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap .icon{align-items:center;background:#007cba;border-radius:100%;color:#fff;contain:paint;display:flex;font-family:dashicons;font-size:12px;height:1em;justify-content:center;left:-6px;line-height:1;pointer-events:none;position:absolute;text-align:center;text-indent:0;top:-6px;width:1em;z-index:2}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap .icon:before{display:inline-block}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.edit .icon:before{content:"\f464";font-size:10px}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.adjust .inline-edit-input:focus{border-color:#00b540;box-shadow:0 0 0 1px #00b540}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.adjust .icon{background-color:#00b540}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.adjust .icon:before{content:"\f132";transform:translate(-.3px,1px)}.post-type-attribute_stock .wp-list-table .inline-edit-input{display:block;height:100%;margin:0;width:100%}.post-type-attribute_stock .wp-list-table .inline-edit-input::placeholder{color:#999}.post-type-attribute_stock .wp-list-table td.column-quantity .inline-edit-input{font-weight:600}.post-type-attribute_stock .wp-list-table td.column-attributes,.post-type-attribute_stock .wp-list-table td.column-components,.post-type-attribute_stock .wp-list-table td.column-filters,.post-type-attribute_stock .wp-list-table td.column-taglist{contain:paint;letter-spacing:-1em;line-height:0;padding:3px 6px 1px 10px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip{background:#fff;border:0;border-radius:3px;color:#555;contain:paint;cursor:default;display:inline-block;font-size:11px;font-weight:400;height:20px;letter-spacing:normal;line-height:20px;margin:0 3px 2px 0;outline:none;overflow:hidden;padding:0 5px 0 4px;position:relative;vertical-align:top;white-space:nowrap;--accent:#407fbf;--shadow-top:0 -1px #f6f7f780;--shadow-bottom:0 1px 1.5px #0000002b}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip:before{color:var(--accent);display:inline-block;font-family:dashicons;font-size:12px;font-synthesis:none;font-weight:400;margin-right:3px;vertical-align:top;width:12px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip .chip-label{background:#f5f5f5;display:inline-block;font-weight:600;margin:0 5px 0 -4px;padding:0 5px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip .hidden-text{font-size:0!important;line-height:0!important;text-indent:-100vw}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip:not(:focus){box-shadow:var(--shadow-top),var(--shadow-bottom)}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip{cursor:pointer}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:focus,.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover{color:#1d2327}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:focus:before,.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover:before{filter:var(--hover-filter,brightness(.85))}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover{background:#fafafa}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:focus{box-shadow:0 0 0 2px var(--accent);z-index:1}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover .chip-label{background:#f2f2f2}.post-type-attribute_stock .wp-list-table button.mewz-wcas-chip{cursor:pointer}.post-type-attribute_stock .wp-list-table tr:has(.check-column input:checked) .mewz-wcas-chip:not(:focus){box-shadow:var(--shadow-bottom)}.post-type-attribute_stock .wp-list-table tr:nth-child(odd) .mewz-wcas-chip .label{background:#f2f2f2}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product{--accent:#4b8bcb}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product:before{content:"\e006";font-family:WooCommerce;font-size:11.5px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-category{--accent:#bb77ae}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-category:before{content:"\f18f";font-size:12.5px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product-type{--accent:#4eb356}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product-type:before{content:"\e003";font-family:WooCommerce}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-component{--accent:#f39e6d;--hover-filter:brightness(0.88) saturate(1.3)}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-component:before{content:"\f533"}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-tag{--accent:#40bfb3}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-tag:before{content:"\f323"}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip.exclude {--accent:#df7575;--hover-filter:brightness(0.9)}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip.show-more{font-size:9px;font-weight:700;padding:0 4px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip.hidden{display:none!important}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip .chip-meta{background:#eee;border-radius:2px;display:inline-block;font-size:9px;font-weight:550;height:14px;line-height:14px;margin:3px -2px 0 0;padding:0 3px;vertical-align:top}@media screen and (max-width:782px){.post-type-attribute_stock .wp-list-table{table-layout:fixed}.post-type-attribute_stock .wp-list-table tbody tr{position:relative}.post-type-attribute_stock .wp-list-table .toggle-row{top:6px}.post-type-attribute_stock .wp-list-table .toggle-row:before{top:10px}.post-type-attribute_stock .wp-list-table tbody td{height:45px}.post-type-attribute_stock .wp-list-table .check-column{padding-right:2px;width:26px}.post-type-attribute_stock .wp-list-table tbody .check-column{padding-top:15px;vertical-align:top}.post-type-attribute_stock .wp-list-table .column-image{display:none;width:34px}.post-type-attribute_stock .wp-list-table tbody .column-image{padding:15px 10px}.post-type-attribute_stock .wp-list-table .column-title{position:static!important;width:auto}.post-type-attribute_stock .wp-list-table thead .column-title a{padding-left:10px}.post-type-attribute_stock .wp-list-table td.column-title strong{max-width:100%}.post-type-attribute_stock .wp-list-table tr.is-expanded td{height:auto;min-height:20px}.post-type-attribute_stock .wp-list-table tr.is-expanded td:before{letter-spacing:normal;line-height:20px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-image,.post-type-attribute_stock .wp-list-table tr.is-expanded .column-title{clear:none!important;float:left;padding-bottom:5px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-title{max-width:calc(100% - 110px);padding-top:17px;white-space:normal}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-image{overflow:visible;padding-right:0;padding-top:12px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-actions,.post-type-attribute_stock .wp-list-table tr.is-expanded .column-image:has(.no-image){display:none!important}.post-type-attribute_stock .wp-list-table tr.is-expanded .mewz-wcas-settings-badges{margin-top:1px}.post-type-attribute_stock .wp-list-table tr.is-expanded .mewz-wcas-chips{margin-bottom:-2px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-modified{padding-bottom:12px!important}.post-type-attribute_stock .wp-list-table td.inline-editing{overflow:visible}.post-type-attribute_stock .wp-list-table td.inline-editing>span:not(.inline-edit-input-wrap){display:none!important}.post-type-attribute_stock .wp-list-table .inline-edit-controls{float:right;margin-right:10px}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap{height:auto;position:relative;top:auto;transform:none;width:auto}.post-type-attribute_stock .wp-list-table .action-button{opacity:1!important;visibility:visible!important}.post-type-attribute_stock .wp-list-table .action-button+.action-button{margin-left:15px}}.post-type-attribute_stock .wp-list-table td.column-settings{contain:paint}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badges{display:block;letter-spacing:-1em;line-height:0;white-space:nowrap}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge{border-radius:50%;color:#777;cursor:help;display:inline-block;font-size:11px;font-weight:700;letter-spacing:normal;line-height:18px;overflow:hidden;position:relative;text-align:center;width:18px}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge+.mewz-wcas-settings-badge{margin-left:3px}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge:before{background:currentColor;content:"";display:block;filter:brightness(1.2) saturate(1.2);inset:0;opacity:.1;position:absolute;z-index:0}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-component{color:#e97800}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-internal{color:#009b1c}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-multiplex{color:#0073aa}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-lock-multipliers{color:#cd519f}1 .post-type-attribute_stock .tablenav .actions .select2{float:left;margin:0 6px 0 1px;max-width:12.5rem;width:200px!important}.post-type-attribute_stock .select2-container--default .select2-selection--single{border-radius:3px;font-size:14px}.post-type-attribute_stock .select2-container--default .select2-selection--single .select2-selection__placeholder{color:#2c3338}.post-type-attribute_stock .select2-search--dropdown{padding:4px 6px}.post-type-attribute_stock .select2-container--default .select2-search--dropdown .select2-search__field{margin:0}.post-type-attribute_stock .select2-results .select2-results__message,.post-type-attribute_stock .select2-results .select2-results__option.loading-results{color:#5c5c5e;font-size:12px;padding:1px 6px 6px}.post-type-attribute_stock select.list-filter-product-id{width:200px}.post-type-attribute_stock .wp-list-table{table-layout:auto}.post-type-attribute_stock .wp-list-table .column-sku,.post-type-attribute_stock .wp-list-table td,.post-type-attribute_stock .wp-list-table th{width:1%}.post-type-attribute_stock .wp-list-table tbody td{height:32px;line-height:20px;vertical-align:middle}.post-type-attribute_stock .wp-list-table th.sortable>a{align-items:center;display:flex}.post-type-attribute_stock .wp-list-table th.sortable>a span{float:none}.post-type-attribute_stock .wp-list-table th.sortable>a .sorting-indicator.asc{margin-top:1px}.post-type-attribute_stock .wp-list-table tbody tr{transition:background .15s ease-out}.post-type-attribute_stock .wp-list-table tbody tr:has(.check-column input:checked){background:#fbf4df}.post-type-attribute_stock .wp-list-table tbody tr:has(.check-column input:checked):nth-child(odd){background:#f9f0d6}.post-type-attribute_stock .wp-list-table .check-column{line-height:0;padding:0 10px;text-align:center;vertical-align:middle;width:.0001%}.post-type-attribute_stock .wp-list-table .check-column input{margin:0}.post-type-attribute_stock .wp-list-table .check-column .locked-indicator{margin:0 0 0 -2px}.post-type-attribute_stock .wp-list-table .check-column input:hover+label,.post-type-attribute_stock .wp-list-table .check-column label:hover{background:none}.post-type-attribute_stock .wp-list-table .column-image{width:.0001%}.post-type-attribute_stock .wp-list-table th.column-image{font-size:0!important;padding:0;text-indent:-100vw}.post-type-attribute_stock .wp-list-table td.column-image{padding:5px 2px}.post-type-attribute_stock .wp-list-table td.column-image .stock-image{background-color:#00000005;border-radius:3px;display:block;height:32px;margin-right:auto;overflow:hidden;width:32px}.post-type-attribute_stock .wp-list-table td.column-image img{height:100%;vertical-align:bottom;width:100%}.post-type-attribute_stock .wp-list-table td.column-image .stock-image.disabled img{filter:saturate(0)}.post-type-attribute_stock .wp-list-table td.column-image:before{content:""!important;display:none!important}.post-type-attribute_stock .wp-list-table .column-title{width:.7%}.post-type-attribute_stock .wp-list-table td.column-title{padding-bottom:5px;padding-top:5px}.post-type-attribute_stock .wp-list-table td.column-title strong{display:inline-block;margin-bottom:0;max-width:18vw;width:max-content}.post-type-attribute_stock .wp-list-table td.column-title .row-actions{display:none!important}.post-type-attribute_stock .wp-list-table .column-actions{padding-left:0;width:.0001%}.post-type-attribute_stock .wp-list-table th.column-actions{text-indent:-999em}.post-type-attribute_stock .wp-list-table td.column-actions{text-align:right;white-space:nowrap}.post-type-attribute_stock .wp-list-table td.column-sku{white-space:nowrap}.post-type-attribute_stock .wp-list-table td.column-quantity{position:relative;white-space:nowrap}.post-type-attribute_stock .wp-list-table .stock-quantity{color:#00b540;font-size:14px;font-weight:600}.post-type-attribute_stock .wp-list-table .stock-quantity.low-stock{color:#de5959}.post-type-attribute_stock .wp-list-table td.inline-editing .stock-quantity{visibility:hidden}.post-type-attribute_stock .wp-list-table td.inline-edit-pending .stock-quantity{color:#0006}.post-type-attribute_stock .wp-list-table td.column-notes .notes-text{color:#6d7178;display:block;font-size:11px;line-height:normal;max-width:15vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:max-content}.post-type-attribute_stock .wp-list-table .column-created,.post-type-attribute_stock .wp-list-table .column-modified{white-space:nowrap;width:.3%}.post-type-attribute_stock .wp-list-table td.inline-editing .inline-edit-controls{contain:paint}.post-type-attribute_stock .wp-list-table abbr{cursor:help}.post-type-attribute_stock .wp-list-table .action-button{background:none;border:0;border-radius:3px;contain:paint;cursor:pointer;display:inline-block;font-size:20px;height:1em;line-height:1;opacity:0;outline:none;padding:0;text-align:center;vertical-align:bottom;visibility:hidden;width:1em}.post-type-attribute_stock .wp-list-table .action-button+.action-button{margin-left:5px}.post-type-attribute_stock .wp-list-table tr:hover .action-button{opacity:.1;visibility:visible}.post-type-attribute_stock .wp-list-table td.column-title:hover+td .action-button,.post-type-attribute_stock .wp-list-table td:hover .action-button{opacity:.5;visibility:visible}.post-type-attribute_stock .wp-list-table .action-button:active,.post-type-attribute_stock .wp-list-table .action-button:hover{opacity:1!important}.post-type-attribute_stock .wp-list-table .action-button:focus{box-shadow:none!important}.post-type-attribute_stock .wp-list-table .action-button:before{display:block;font-family:dashicons;text-indent:0}.post-type-attribute_stock .wp-list-table .action-button.action-trash{color:#ef6c6c}.post-type-attribute_stock .wp-list-table .action-button.action-trash:hover{color:#ec4d4d}.post-type-attribute_stock .wp-list-table .action-button.action-trash:active{color:#db1818}.post-type-attribute_stock .wp-list-table .action-button.action-trash:before{content:"\f182"}.post-type-attribute_stock .wp-list-table .action-button.action-untrash{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.action-untrash:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.action-untrash:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.action-untrash:before{content:"\f171"}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.action-duplicate:before{content:"\f105"}.post-type-attribute_stock .wp-list-table .action-button.edit-button{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.edit-button:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.edit-button:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.edit-button:before{content:"\f464"}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button{color:#008ec5}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button:hover{color:#0080b1}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button:active{color:#00638a}.post-type-attribute_stock .wp-list-table .action-button.adjust-quantity-button:before{content:"\f132";transform:translateY(1px)}.post-type-attribute_stock .wp-list-table .inline-edit-controls{display:inline-block;margin-left:7px}.post-type-attribute_stock .wp-list-table td.inline-edit-pending .action-button,.post-type-attribute_stock .wp-list-table td.inline-edit-pending .inline-edit-controls,.post-type-attribute_stock .wp-list-table td.inline-editing .action-button,.post-type-attribute_stock .wp-list-table td.inline-editing .inline-edit-controls{visibility:hidden!important}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap{display:block;height:30px;left:0;position:absolute;right:0;text-align:left;top:50%;transform:translateY(-50%);width:100%}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap .icon{align-items:center;background:#007cba;border-radius:100%;color:#fff;contain:paint;display:flex;font-family:dashicons;font-size:12px;height:1em;justify-content:center;left:-6px;line-height:1;pointer-events:none;position:absolute;text-align:center;text-indent:0;top:-6px;width:1em;z-index:2}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap .icon:before{display:inline-block}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.edit .icon:before{content:"\f464";font-size:10px}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.adjust .inline-edit-input:focus{border-color:#00b540;box-shadow:0 0 0 1px #00b540}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.adjust .icon{background-color:#00b540}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap.adjust .icon:before{content:"\f132";transform:translate(-.3px,1px)}.post-type-attribute_stock .wp-list-table .inline-edit-input{display:block;height:100%;margin:0;width:100%}.post-type-attribute_stock .wp-list-table .inline-edit-input::placeholder{color:#999}.post-type-attribute_stock .wp-list-table td.column-quantity .inline-edit-input{font-weight:600}.post-type-attribute_stock .wp-list-table td.column-attributes,.post-type-attribute_stock .wp-list-table td.column-components,.post-type-attribute_stock .wp-list-table td.column-filters,.post-type-attribute_stock .wp-list-table td.column-taglist{contain:paint;letter-spacing:-1em;line-height:0;padding:3px 6px 1px 10px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip{background:#fff;border:0;border-radius:3px;color:#555;contain:paint;cursor:default;display:inline-block;font-size:11px;font-weight:400;height:20px;letter-spacing:normal;line-height:20px;margin:0 3px 2px 0;outline:none;overflow:hidden;padding:0 5px 0 4px;position:relative;vertical-align:top;white-space:nowrap;--accent:#407fbf;--shadow-top:0 -1px #f6f7f780;--shadow-bottom:0 1px 1.5px #0000002b}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip:before{color:var(--accent);display:inline-block;font-family:dashicons;font-size:12px;font-synthesis:none;font-weight:400;margin-right:3px;vertical-align:top;width:12px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip .chip-label{background:#f5f5f5;display:inline-block;font-weight:600;margin:0 5px 0 -4px;padding:0 5px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip .hidden-text{font-size:0!important;line-height:0!important;text-indent:-100vw}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip:not(:focus){box-shadow:var(--shadow-top),var(--shadow-bottom)}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip{cursor:pointer}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:focus,.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover{color:#1d2327}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:focus:before,.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover:before{filter:var(--hover-filter,brightness(.85))}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover{background:#fafafa}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:focus{box-shadow:0 0 0 2px var(--accent);z-index:1}.post-type-attribute_stock .wp-list-table a.mewz-wcas-chip:hover .chip-label{background:#f2f2f2}.post-type-attribute_stock .wp-list-table button.mewz-wcas-chip{cursor:pointer}.post-type-attribute_stock .wp-list-table tr:has(.check-column input:checked) .mewz-wcas-chip:not(:focus){box-shadow:var(--shadow-bottom)}.post-type-attribute_stock .wp-list-table tr:nth-child(odd) .mewz-wcas-chip .label{background:#f2f2f2}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product{--accent:#4b8bcb}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product:before{content:"\e006";font-family:WooCommerce;font-size:11.5px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-category{--accent:#bb77ae}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-category:before{content:"\f18f";font-size:12.5px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product-type{--accent:#4eb356}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-product-type:before{content:"\e003";font-family:WooCommerce}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-component{--accent:#f39e6d;--hover-filter:brightness(0.88) saturate(1.3)}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-component:before{content:"\f533"}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-tag{--accent:#40bfb3}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip-tag:before{content:"\f323"}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip.exclude,.post-type-attribute_stock .wp-list-table .mewz-wcas-chips.exclude .mewz-wcas-chip{--accent:#df7575;--hover-filter:brightness(0.9)}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip.show-more{font-size:9px;font-weight:700;padding:0 4px}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip.hidden{display:none!important}.post-type-attribute_stock .wp-list-table .mewz-wcas-chip .chip-meta{background:#eee;border-radius:2px;display:inline-block;font-size:9px;font-weight:550;height:14px;line-height:14px;margin:3px -2px 0 0;padding:0 3px;vertical-align:top}@media screen and (max-width:782px){.post-type-attribute_stock .wp-list-table{table-layout:fixed}.post-type-attribute_stock .wp-list-table tbody tr{position:relative}.post-type-attribute_stock .wp-list-table .toggle-row{top:6px}.post-type-attribute_stock .wp-list-table .toggle-row:before{top:10px}.post-type-attribute_stock .wp-list-table tbody td{height:45px}.post-type-attribute_stock .wp-list-table .check-column{padding-right:2px;width:26px}.post-type-attribute_stock .wp-list-table tbody .check-column{padding-top:15px;vertical-align:top}.post-type-attribute_stock .wp-list-table .column-image{display:none;width:34px}.post-type-attribute_stock .wp-list-table tbody .column-image{padding:15px 10px}.post-type-attribute_stock .wp-list-table .column-title{position:static!important;width:auto}.post-type-attribute_stock .wp-list-table thead .column-title a{padding-left:10px}.post-type-attribute_stock .wp-list-table td.column-title strong{max-width:100%}.post-type-attribute_stock .wp-list-table tr.is-expanded td{height:auto;min-height:20px}.post-type-attribute_stock .wp-list-table tr.is-expanded td:before{letter-spacing:normal;line-height:20px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-image,.post-type-attribute_stock .wp-list-table tr.is-expanded .column-title{clear:none!important;float:left;padding-bottom:5px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-title{max-width:calc(100% - 110px);padding-top:17px;white-space:normal}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-image{overflow:visible;padding-right:0;padding-top:12px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-image:has(.no-image){display:none!important}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-actions{display:none!important}.post-type-attribute_stock .wp-list-table tr.is-expanded .mewz-wcas-settings-badges{margin-top:1px}.post-type-attribute_stock .wp-list-table tr.is-expanded .mewz-wcas-chips{margin-bottom:-2px}.post-type-attribute_stock .wp-list-table tr.is-expanded .column-modified{padding-bottom:12px!important}.post-type-attribute_stock .wp-list-table td.inline-editing{overflow:visible}.post-type-attribute_stock .wp-list-table td.inline-editing>span:not(.inline-edit-input-wrap){display:none!important}.post-type-attribute_stock .wp-list-table .inline-edit-controls{float:right;margin-right:10px}.post-type-attribute_stock .wp-list-table .inline-edit-input-wrap{height:auto;position:relative;top:auto;transform:none;width:auto}.post-type-attribute_stock .wp-list-table .action-button{opacity:1!important;visibility:visible!important}.post-type-attribute_stock .wp-list-table .action-button+.action-button{margin-left:15px}}.post-type-attribute_stock .wp-list-table td.column-settings{contain:paint}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badges{display:block;letter-spacing:-1em;line-height:0;white-space:nowrap}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge{border-radius:50%;color:#5f5f5f;cursor:help;display:inline-block;font-size:11px;font-weight:700;letter-spacing:normal;line-height:18px;overflow:hidden;position:relative;text-align:center;width:18px}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge+.mewz-wcas-settings-badge{margin-left:3px}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge:before{background:currentColor;content:"";display:block;filter:brightness(1.2) saturate(1.2);inset:0;opacity:.1;position:absolute;z-index:0}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-component{color:#e97800}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-backorders-notify,.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-backorders-yes{color:#7941b5}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-internal{color:#009b1c}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-multiplex{color:#0073aa}.post-type-attribute_stock .wp-list-table .mewz-wcas-settings-badge.setting-lock-multipliers{color:#cd519f} -
attribute-stock-for-woocommerce/trunk/attribute-stock-for-woocommerce.php
r3135163 r3185159 4 4 * Plugin URI: https://codecanyon.net/item/woocommerce-attribute-stock/25796765 5 5 * Description: Take your stock to the next level. Set up complex stock configurations with ease. Shared stock, variable quantities, the possibilities are endless. 6 * Version: 2. 0.36 * Version: 2.1.0 7 7 * Author: Mewz 8 8 * Author URI: https://mewz.dev/ … … 14 14 * Requires Plugins: woocommerce 15 15 * WC requires at least: 6.0 16 * WC tested up to: 9. 116 * WC tested up to: 9.3 17 17 */ 18 18 … … 23 23 } 24 24 25 const MEWZ_WCAS_VERSION = '2. 0.3';25 const MEWZ_WCAS_VERSION = '2.1.0'; 26 26 const MEWZ_WCAS_NAME = 'WooCommerce Attribute Stock'; 27 27 const MEWZ_WCAS_SLUG = 'woocommerce-attribute-stock'; -
attribute-stock-for-woocommerce/trunk/languages/woocommerce-attribute-stock.pot
r3135163 r3185159 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Attribute Stock 2. 0.3\n"5 "Project-Id-Version: WooCommerce Attribute Stock 2.1.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-attribute-stock\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024- 08-13T23:48:50+02:00\n"12 "POT-Creation-Date: 2024-11-10T17:30:48+02:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 0.0\n"14 "X-Generator: WP-CLI 2.11.0\n" 15 15 "X-Domain: woocommerce-attribute-stock\n" 16 16 … … 116 116 msgstr "" 117 117 118 #: src/Aspects/Admin/Settings/InventorySettings.php:74 119 msgid "This setting can be overridden per attribute stock item." 120 msgstr "" 121 118 122 #: src/Aspects/Admin/Settings/InventorySettings.php:81 119 123 msgid "Product stock format" … … 260 264 261 265 #: src/Aspects/Admin/Stock/StockEdit.php:226 262 #: src/Aspects/Admin/Stock/StockList.php:3 57266 #: src/Aspects/Admin/Stock/StockList.php:374 263 267 #: src/Util/Attributes.php:197 264 268 msgid "Any" … … 448 452 msgstr "" 449 453 450 #: src/Aspects/Admin/Stock/StockList.php:2 67454 #: src/Aspects/Admin/Stock/StockList.php:271 451 455 msgid "Edit Stock" 452 456 msgstr "" 453 457 454 #: src/Aspects/Admin/Stock/StockList.php:2 69458 #: src/Aspects/Admin/Stock/StockList.php:273 455 459 msgid "Add/Subtract Stock" 456 460 msgstr "" 457 461 458 #: src/Aspects/Admin/Stock/StockList.php:280 462 #: src/Aspects/Admin/Stock/StockList.php:284 463 msgid "Backorders: %s" 464 msgstr "" 465 466 #: src/Aspects/Admin/Stock/StockList.php:287 459 467 msgid "Component stock" 460 468 msgstr "" 461 469 462 #: src/Aspects/Admin/Stock/StockList.php:2 81463 #: templates/admin/stock/panel-settings.php: 35470 #: src/Aspects/Admin/Stock/StockList.php:291 471 #: templates/admin/stock/panel-settings.php:52 464 472 msgid "Internal stock" 465 473 msgstr "" 466 474 467 #: src/Aspects/Admin/Stock/StockList.php:2 82468 #: templates/admin/stock/panel-settings.php: 46475 #: src/Aspects/Admin/Stock/StockList.php:292 476 #: templates/admin/stock/panel-settings.php:63 469 477 msgid "Multiplex matching" 470 478 msgstr "" 471 479 472 #: src/Aspects/Admin/Stock/StockList.php:2 83473 #: templates/admin/stock/panel-settings.php: 55480 #: src/Aspects/Admin/Stock/StockList.php:293 481 #: templates/admin/stock/panel-settings.php:72 474 482 msgid "Lock multipliers" 475 483 msgstr "" … … 496 504 msgstr "" 497 505 498 #: src/Aspects/Common/StockNotifications.php: 66506 #: src/Aspects/Common/StockNotifications.php:70 499 507 msgid "Low in stock - %s" 500 508 msgstr "" 501 509 502 #: src/Aspects/Common/StockNotifications.php: 67510 #: src/Aspects/Common/StockNotifications.php:71 503 511 msgid "%s is low in stock. There is %f left." 504 512 msgid_plural "%s is low in stock. There are %f left." … … 522 530 msgstr "" 523 531 524 #: src/Aspects/Front/CartItems.php:2 53532 #: src/Aspects/Front/CartItems.php:268 525 533 msgid "%d (Shared)" 526 534 msgstr "" … … 572 580 msgstr "" 573 581 574 #: src/Util/Export.php:4 2582 #: src/Util/Export.php:43 575 583 msgid "Request headers have already been sent. This usually happens when PHP warnings or notices are being displayed. Please fix these and try again." 576 584 msgstr "" 577 585 578 #: src/Util/Export.php:4 8586 #: src/Util/Export.php:49 579 587 msgid "Writing to PHP's output stream (php://output) has been disabled. Unable to output CSV file download." 580 588 msgstr "" … … 722 730 msgstr "" 723 731 724 #: templates/admin/stock/panel-settings.php:1 3725 msgid "Full version required— Click to upgrade"726 msgstr "" 727 728 #: templates/admin/stock/panel-settings.php:2 4732 #: templates/admin/stock/panel-settings.php:14 733 msgid "Full version only — Click to upgrade" 734 msgstr "" 735 736 #: templates/admin/stock/panel-settings.php:27 729 737 msgid "When stock reaches this amount or less, you will be notified by email (if enabled)." 730 738 msgstr "" 731 739 732 #: templates/admin/stock/panel-settings.php:38 740 #: templates/admin/stock/panel-settings.php:37 741 msgid "Allow or disallow backorders on matched products that do not have stock management enabled. Defaults to the global \"%s\" setting." 742 msgstr "" 743 744 #: templates/admin/stock/panel-settings.php:55 733 745 msgid "Internal stock is ignored when determining the stock availability of matched products" 734 746 msgstr "" 735 747 736 #: templates/admin/stock/panel-settings.php: 49748 #: templates/admin/stock/panel-settings.php:66 737 749 msgid "Deduct stock for multiple matching rules simultaneously (instead of only the first matched rule)" 738 750 msgstr "" 739 751 740 #: templates/admin/stock/panel-settings.php: 58752 #: templates/admin/stock/panel-settings.php:75 741 753 msgid "Prevent this item's stock multipliers from being overridden by products" 742 754 msgstr "" 743 755 744 #: templates/admin/stock/panel-settings.php: 68756 #: templates/admin/stock/panel-settings.php:85 745 757 msgid "Product SKU" 746 758 msgstr "" 747 759 748 #: templates/admin/stock/panel-settings.php: 71760 #: templates/admin/stock/panel-settings.php:88 749 761 msgid "Allow matched products to inherit this stock item's SKU" 750 762 msgstr "" 751 763 752 #: templates/admin/stock/panel-settings.php:79 764 #: templates/admin/stock/panel-settings.php:88 765 #: templates/admin/stock/panel-settings.php:99 766 msgid "Only inherited if not already set on the product/variation." 767 msgstr "" 768 769 #: templates/admin/stock/panel-settings.php:96 753 770 msgid "Product image" 754 771 msgstr "" 755 772 756 #: templates/admin/stock/panel-settings.php: 82773 #: templates/admin/stock/panel-settings.php:99 757 774 msgid "Allow matched products to inherit this stock item's image" 758 775 msgstr "" -
attribute-stock-for-woocommerce/trunk/readme.txt
r3145368 r3185159 3 3 Tags: attribute stock, shared stock, variable stock, woocommerce, stock 4 4 Requires at least: 5.4 5 Tested up to: 6. 65 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 2. 0.37 Stable tag: 2.1.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 110 110 == Changelog == 111 111 112 = 2.1.0 (2024-11-10) = 113 - WordPress 6.7 compatibility. 114 - WooCommerce 9.3 compatibility. 115 - Added a backorders setting for individual stock items. 116 - Added filters to easily disable stock emails for specific stock items. 117 - Improved compatibility with WooCommerce blocks. 118 - Fixed term meta cache not being cleared when adding a new term. 119 - Fixed programmatically created products sometimes being set out of stock. 120 - Fixed products not using the correct stock status when on backorder. 121 - Fixed PHP error in attribute stock report. 122 - Fixed some issues with WPML compatibility in newer versions. 123 - Various tweaks and improvements. 124 112 125 = 2.0.3 (2024-08-13) = 113 126 - WordPress 6.6 compatibility. -
attribute-stock-for-woocommerce/trunk/src/Aspects/Admin/Attributes/AttributeTermEdit.php
r3106385 r3185159 13 13 { 14 14 $taxonomy = $this->context->taxonomy; 15 15 16 add_action($taxonomy . '_add_form_fields', [$this, 'display_add_term_fields']); 16 17 add_action($taxonomy . '_edit_form_fields', [$this, 'display_edit_term_fields']); -
attribute-stock-for-woocommerce/trunk/src/Aspects/Admin/Stock/StockList.php
r3108898 r3185159 134 134 ->left_join('postmeta', 'pm')->on('pm.post_id = p.ID') 135 135 ->left_join(Components::TABLE, 'c')->on('c.child_id = p.ID') 136 ->where("(pm.meta_key IN ? AND pm.meta_value = '1') OR c.child_id IS NOT NULL", ['_internal', '_multiplex', '_lock_multipliers']), 136 ->where(" 137 (pm.meta_key = '_backorders' AND pm.meta_value != '') 138 OR (pm.meta_key IN ('_internal', '_multiplex', '_lock_multipliers') AND pm.meta_value = '1') 139 OR c.child_id IS NOT NULL 140 "), 137 141 138 142 'components' => (clone $qb) … … 277 281 278 282 if ($titles === null) { 283 $backorder_options = wc_get_product_backorder_options(); 284 $backorders_title = __('Backorders: %s', 'woocommerce-attribute-stock'); 285 279 286 $titles = apply_filters('mewz_wcas_stock_settings_badge_titles', [ 280 'component' => __('Component stock', 'woocommerce-attribute-stock'), 281 'internal' => __('Internal stock', 'woocommerce-attribute-stock'), 282 'multiplex' => __('Multiplex matching', 'woocommerce-attribute-stock'), 283 'lock-multipliers' => __('Lock multipliers', 'woocommerce-attribute-stock'), 287 'component' => __('Component stock', 'woocommerce-attribute-stock'), 288 'backorders-no' => sprintf($backorders_title, $backorder_options['no']), 289 'backorders-yes' => sprintf($backorders_title, $backorder_options['yes']), 290 'backorders-notify' => sprintf($backorders_title, $backorder_options['notify']), 291 'internal' => __('Internal stock', 'woocommerce-attribute-stock'), 292 'multiplex' => __('Multiplex matching', 'woocommerce-attribute-stock'), 293 'lock-multipliers' => __('Lock multipliers', 'woocommerce-attribute-stock'), 284 294 ], $stock); 285 295 } 296 297 $internal = $stock->internal(); 298 $backorders = $internal ? '' : $stock->backorders(); 299 $backorders_key = 'backorders-' . ($backorders ?: 'default'); 286 300 287 301 $settings = apply_filters('mewz_wcas_stock_settings_badges', [ 288 302 'component' => isset($this->columns['components']) && !empty($stock->components()['parent']), 289 'internal' => $stock->internal(), 303 $backorders_key => (bool)$backorders, 304 'internal' => $internal, 290 305 'multiplex' => $stock->multiplex(), 291 306 'lock-multipliers' => $stock->lock_multipliers(), … … 296 311 297 312 foreach ($settings as $key => $_) { 298 $letter = strtoupper($titles[$key][0]); 299 echo '<span class="mewz-wcas-settings-badge setting-' . $key . '" title="' . esc_attr($titles[$key]) . '" rel="tiptip">' . $letter . '</span>'; 313 $title = $titles[$key]; 314 $letter = strtoupper($title[0]); 315 316 echo '<span class="mewz-wcas-settings-badge setting-' . $key . '" title="' . esc_attr($title) . '" rel="tiptip">' . $letter . '</span>'; 300 317 } 301 318 -
attribute-stock-for-woocommerce/trunk/src/Aspects/Admin/Stock/StockSave.php
r3135163 r3185159 50 50 $data['lock_multipliers'] = !empty($data['lock_multipliers']); 51 51 52 // only save limit product stock optionin full version52 // only save settings that require stock limits in full version 53 53 if (!MEWZ_WCAS_LITE) { 54 54 $data['internal'] = !empty($data['internal']); -
attribute-stock-for-woocommerce/trunk/src/Aspects/Common/CleanUp.php
r3106385 r3185159 19 19 add_action('mewz_wcas_match_rules_saved', [$this, 'clear_match_rules_cache']); 20 20 add_action('mewz_wcas_components_saved', [$this, 'clear_components_cache']); 21 add_action('added_term_meta', [$this, 'clear_term_meta_cache'], 10, 4); 21 22 add_action('updated_term_meta', [$this, 'clear_term_meta_cache'], 10, 4); 22 23 add_action('deleted_term_meta', [$this, 'clear_term_meta_cache'], 10, 4); -
attribute-stock-for-woocommerce/trunk/src/Aspects/Common/StockNotifications.php
r3106385 r3185159 22 22 } 23 23 24 // get the exact quantity to account forrounding in view context24 // get the raw quantity to account for possible rounding in view context 25 25 $quantity = $stock->get_contextual('quantity', 'edit'); 26 26 $low_stock = $stock->low_stock(); … … 55 55 $args = apply_filters('mewz_wcas_no_stock_email_args', $args, $stock); 56 56 57 if (!apply_filters('mewz_wcas_allow_no_stock_email', true, $stock, $args)) { 58 return false; 59 } 60 57 61 return wp_mail($args['recipient'], $args['subject'], $args['message'], $args['headers'], $args['attachments']); 58 62 } … … 71 75 72 76 $args = apply_filters('mewz_wcas_low_stock_email_args', $args, $stock); 77 78 if (!apply_filters('mewz_wcas_allow_low_stock_email', true, $stock, $args)) { 79 return false; 80 } 73 81 74 82 return wp_mail($args['recipient'], $args['subject'], $args['message'], $args['headers'], $args['attachments']); -
attribute-stock-for-woocommerce/trunk/src/Classes/AttributeStockReport.php
r3106385 r3185159 63 63 switch ($column_name) { 64 64 case 'title': 65 $output = esc_html($item ['title']);65 $output = esc_html($item->title); 66 66 break; 67 67 68 68 case 'sku': 69 $output = esc_html($item ['sku']);69 $output = esc_html($item->sku); 70 70 break; 71 71 72 72 case 'quantity': 73 $output = $item ['quantity'];73 $output = $item->quantity; 74 74 break; 75 75 76 76 case 'wc_actions': 77 $stock = new AttributeStock($item ['id'], 'object');77 $stock = new AttributeStock($item->id, 'object'); 78 78 $referer = ['_wp_http_referer' => $_SERVER['REQUEST_URI']]; 79 79 -
attribute-stock-for-woocommerce/trunk/src/Classes/RestApiController.php
r3135163 r3185159 124 124 'type' => ['number', 'string'], 125 125 'context' => ['view', 'edit'], 126 ], 127 'backorders' => [ 128 'type' => 'string', 129 'context' => ['view', 'edit'], 130 'default' => '', 131 'enum' => ['', 'no', 'notify', 'yes'], 126 132 ], 127 133 'internal' => [ … … 449 455 { 450 456 $schema = $this->get_item_schema(); 457 $components = null; 451 458 $match_rules = null; 452 459 $tags = null; … … 459 466 if ($value === null) continue; 460 467 461 if ($key === 'match_rules') { 468 if ($key === 'components') { 469 $components = $value; 470 } elseif ($key === 'match_rules') { 462 471 $match_rules = $value; 463 472 } elseif ($key === 'tags') { … … 476 485 $stock->save(); 477 486 478 if ($match_rules && $stock->exists()) { 479 $stock->save_match_rules($match_rules); 487 if ($stock->exists()) { 488 if ($components !== null) { 489 $stock->save_components($components); 490 } 491 492 if ($match_rules !== null) { 493 $stock->save_match_rules($match_rules); 494 } 480 495 } 481 496 -
attribute-stock-for-woocommerce/trunk/src/Compatibility/Aspects/Polylang.php
r3106385 r3185159 10 10 public $stock; 11 11 12 public function __ run()12 public function __load() 13 13 { 14 14 $this->stock = PLLWC()->stock; -
attribute-stock-for-woocommerce/trunk/src/Compatibility/Aspects/WPML.php
r3108898 r3185159 3 3 4 4 use Mewz\Framework\Base\Aspect; 5 use Mewz\WCAS\Aspects\Front\ProductLimits; 5 6 use Mewz\WCAS\Aspects\Workers\AutoProductLimits; 6 7 use Mewz\WCAS\Util\Limits; 7 8 9 /** 10 * Prevent WPML syncing overridden stock values to translated products during stock changes. 11 */ 8 12 class WPML extends Aspect 9 13 { … … 11 15 public $removed_hooks = false; 12 16 13 public function __ run()17 public function __hooks() 14 18 { 15 /** @var \woocommerce_wpml $woocommerce_wpml */ 19 add_action('init', [$this, 'init']); 20 } 21 22 public function init() 23 { 16 24 global $woocommerce_wpml; 17 25 … … 19 27 $this->sync = $woocommerce_wpml->sync_product_data; 20 28 } else { 21 return false;29 return; 22 30 } 23 }24 31 25 public function __hooks()26 {27 // prevent WPML syncing overridden stock values to translated products during stock changes28 add_action('init', [$this, 'init']);29 add_action('mewz_wcas_task_trigger_product_stock_changes', [$this, 'before_task_trigger_product_stock_changes'], 0);30 }31 32 public function init()33 {34 32 if (!Limits::product_limits_active() && !class_exists(AutoProductLimits::class, false)) { 35 33 return; 36 34 } 37 38 35 if (has_action('woocommerce_product_set_stock_status', [$this->sync, 'sync_stock_status_for_translations'])) { 39 36 remove_action('woocommerce_product_set_stock_status', [$this->sync, 'sync_stock_status_for_translations'], 100); … … 47 44 48 45 add_filter('mewz_wcas_limit_product_stock_quantity', [$this, 'limit_product_stock_quantity'], 10, 3); 46 add_action('mewz_wcas_task_trigger_product_stock_changes', [$this, 'before_task_trigger_product_stock_changes'], 0); 47 add_action('wcml_before_sync_product_data', [$this, 'wcml_before_sync_product_data']); 49 48 } 50 49 … … 89 88 return $limit; 90 89 } 90 91 public function wcml_before_sync_product_data() 92 { 93 if (Limits::product_limits_active()) { 94 ProductLimits::$enabled = false; 95 add_action('wcml_after_sync_product_data', [$this, 'wcml_after_sync_product_data']); 96 } 97 } 98 99 public function wcml_after_sync_product_data() 100 { 101 ProductLimits::$enabled = true; 102 } 91 103 } -
attribute-stock-for-woocommerce/trunk/src/Core/Loader.php
r3135163 r3185159 90 90 // load frontend actions 91 91 if ($this->context->front) { 92 add_action('w p_loaded', [$this, 'wp_loaded_front'], 0);92 add_action('woocommerce_cart_loaded_from_session', [$this, 'cart_loaded_from_session'], 0); 93 93 add_action('wc_ajax_get_variation', [$this, 'wc_ajax_get_variation'], 0); 94 94 … … 268 268 } 269 269 270 public function wp_loaded_front() 271 { 272 if (WC()->cart) { 273 $this->aspects->load(Aspects\Front\CartItems::class); 274 } 270 public function cart_loaded_from_session() 271 { 272 $this->aspects->load(Aspects\Front\CartItems::class); 275 273 } 276 274 -
attribute-stock-for-woocommerce/trunk/src/Models/AttributeStock.php
r3135163 r3185159 10 10 { 11 11 const POST_TYPE = 'attribute_stock'; 12 const MODEL_TYPE = self::POST_TYPE;12 const MODEL_TYPE = 'attribute_stock'; 13 13 14 14 protected static $props = [ … … 17 17 'quantity' => '', 18 18 'low_stock' => '', 19 'backorders' => '', 19 20 'internal' => false, 20 21 'multiplex' => false, … … 142 143 143 144 /** 145 * @return string '' | 'no' | 'yes' | 'notify' 146 */ 147 public function backorders() 148 { 149 return $this->get('backorders'); 150 } 151 152 /** 153 * @param string $value 154 */ 155 public function set_backorders($value) 156 { 157 if (!in_array($value, ['', 'no', 'yes', 'notify'], true)) { 158 $value = ''; 159 } 160 161 $this->set('backorders', $value); 162 } 163 164 /** 144 165 * @return string 145 166 */ -
attribute-stock-for-woocommerce/trunk/src/Util/Attributes.php
r3108898 r3185159 231 231 * @param array<int, int[]> $filter_ids 232 232 * 233 * @return array |void233 * @return array 234 234 */ 235 235 public static function get_term_options($attributes, $filter_ids = null) -
attribute-stock-for-woocommerce/trunk/src/Util/Export.php
r3135163 r3185159 13 13 'quantity' => '', 14 14 'low_stock' => '', 15 'backorders' => '', 15 16 'enabled' => '', 16 17 'internal' => '', -
attribute-stock-for-woocommerce/trunk/src/Util/Matches.php
r3135163 r3185159 1296 1296 $max_quantity = 0; 1297 1297 1298 $inherit_backorders = apply_filters('mewz_wcas_inherit_product_backorders', true, $parent); 1298 1299 $inherit_sku = apply_filters('mewz_wcas_inherit_product_sku', true, $parent); 1299 1300 $inherit_image = apply_filters('mewz_wcas_inherit_product_image', true, $parent); … … 1351 1352 if ($stock->lock_multipliers()) { 1352 1353 $match['l'] = true; 1354 } 1355 1356 if ($inherit_backorders && $backorders = $stock->backorders()) { 1357 $match['b'] = $backorders; 1353 1358 } 1354 1359 -
attribute-stock-for-woocommerce/trunk/src/Util/Products.php
r3135163 r3185159 36 36 } 37 37 38 if (!$product->get_id() || $product->get_status('edit') == 'auto-draft') { 39 return false; 40 } 41 38 42 return true; 39 }40 41 /**42 * This is a modified version of `WC_Product::validate_props()` that uses 'edit' context so as not to43 * save data that's been modified by filters in 'view' context.44 *45 * It also fixes the original method not respecting the 'woocommerce_stock_amount' filter to allow46 * decimal stock quantities.47 *48 * @see \WC_Product::validate_props()49 *50 * @param \WC_Product $product51 */52 public static function validate_stock_props($product)53 {54 if ($manage_stock = $product->get_manage_stock('edit')) {55 if ($manage_stock === 'parent' && method_exists($product, 'get_parent_data')) {56 $parent_data = $product->get_parent_data();57 $stock_quantity = $parent_data['stock_quantity'];58 } else {59 $stock_quantity = $product->get_stock_quantity('edit');60 }61 62 $multiplier = self::get_multiplier($product, 'product');63 $stock_quantity = Matches::calc_limit_qty($stock_quantity, $multiplier);64 65 $no_stock_amount = max(0, (int)get_option('woocommerce_notify_no_stock_amount', 0));66 67 if ($stock_quantity > $no_stock_amount) {68 $new_stock_status = 'instock';69 } elseif ($product->get_backorders('edit') !== 'no') {70 $new_stock_status = 'onbackorder';71 } else {72 $new_stock_status = 'outofstock';73 }74 75 $product->set_stock_status($new_stock_status);76 } else {77 // set 'stock_status' back to what it was before `$product->validate_props()` changed it with 'view' context78 if ($original_stock_status = self::get_prop($product, 'original_stock_status')) {79 $product->set_stock_status($original_stock_status);80 }81 82 $product->set_stock_quantity('');83 $product->set_backorders('no');84 $product->set_low_stock_amount('');85 }86 43 } 87 44 … … 206 163 if (!self::use_multiplier($product, $type)) { 207 164 $value = ''; 208 } elseif (!empty($parent)) {209 $value = self::get_option('multiplier', $product, $parent);210 165 } else { 211 $value = self::get_option('multiplier', $product );166 $value = self::get_option('multiplier', $product, !empty($parent) ? $parent : null); 212 167 } 213 168 -
attribute-stock-for-woocommerce/trunk/templates/admin/stock/list-chips.php
r3108898 r3185159 9 9 * @var bool $wrap 10 10 * @var int $show_max 11 * @var int $collapsed_max12 11 */ 13 12 … … 25 24 26 25 <?php if ($wrap): ?> 27 <div class="mewz-wcas-chips ">26 <div class="mewz-wcas-chips mewz-wcas-chips-<?= $type . $class; ?>"> 28 27 <?php endif; ?> 29 28 30 29 <?php foreach ($chips as $chip): ?> 30 <?php $chip_class = !empty($chip['class']) ? ' ' . $chip['class'] : ''; ?> 31 31 32 <?= !empty($chip['url']) ? '<a href="' . esc_url($chip['url']) . '"' : '<span' ?> class="mewz-wcas-chip mewz-wcas-chip-<?= $type . $c lass; ?>"<?= isset($chip['title']) ? ' title="' . esc_attr($chip['title']) . '"' : '' ?>><?php32 <?= !empty($chip['url']) ? '<a href="' . esc_url($chip['url']) . '"' : '<span' ?> class="mewz-wcas-chip mewz-wcas-chip-<?= $type . $chip_class; ?>"<?= isset($chip['title']) ? ' title="' . esc_attr($chip['title']) . '"' : '' ?>><?php 33 33 34 34 if (isset($chip['label'])) { -
attribute-stock-for-woocommerce/trunk/templates/admin/stock/panel-settings.php
r3135163 r3185159 1 1 <?php 2 2 use Mewz\Framework\Util\Number; 3 use Mewz\WCAS\Util\Settings; 3 4 4 5 defined('ABSPATH') or die; … … 11 12 $lang = str_replace('_', '-', get_bloginfo('language')); 12 13 13 $pro_cta = MEWZ_WCAS_LITE ? '<a href="' . esc_url($this->plugin->sale_url()) . '" class="mewz-wcas-pro-cta" title="' . esc_attr__('Full version required — Click to upgrade', 'woocommerce-attribute-stock') . '" target="_blank">PRO</a>' : ''; 14 $pro_cta = MEWZ_WCAS_LITE ? '<a href="' . esc_url($this->plugin->sale_url()) . '" class="mewz-wcas-pro-cta" title="' . esc_attr__('Full version only — Click to upgrade', 'woocommerce-attribute-stock') . '" target="_blank">PRO</a>' : ''; 15 16 $backorder_options = wc_get_product_backorder_options(); 14 17 ?> 15 18 … … 22 25 'type' => 'number', 23 26 'placeholder' => get_option('woocommerce_notify_low_stock_amount', '0'), 24 'description' => __('When stock reaches this amount or less, you will be notified by email (if enabled).', 'woocommerce-attribute-stock') ,27 'description' => __('When stock reaches this amount or less, you will be notified by email (if enabled).', 'woocommerce-attribute-stock'), 25 28 'desc_tip' => true, 26 29 'value' => Number::safe_decimal($stock->low_stock()), 27 30 'custom_attributes' => ['step' => 'any', 'lang' => $lang], 31 ]); 32 33 woocommerce_wp_select([ 34 'label' => $backorders_label = trim(__('Allow backorders?', 'woocommerce'), '?¿') . $pro_cta, 35 'id' => 'mewz_wcas_backorders', 36 'name' => 'mewz_wcas[backorders]', 37 'description' => sprintf(__('Allow or disallow backorders on matched products that do not have stock management enabled. Defaults to the global "%s" setting.', 'woocommerce-attribute-stock'), $backorders_label), 38 'desc_tip' => true, 39 'options' => [ 40 '' => sprintf(_x('Default: %s', 'color'), $backorder_options[Settings::allow_backorders()]) 41 ] + $backorder_options, 42 'value' => MEWZ_WCAS_LITE ? '' : $stock->backorders(), 43 'custom_attributes' => MEWZ_WCAS_LITE ? ['disabled' => 'disabled'] : [], 44 'wrapper_class' => MEWZ_WCAS_LITE ? 'mewz-wcas-pro-required' : '', 28 45 ]); 29 46 ?> … … 69 86 'id' => 'mewz_wcas_product_sku', 70 87 'name' => 'mewz_wcas[product_sku]', 71 'description' => __('Allow matched products to inherit this stock item\'s SKU', 'woocommerce-attribute-stock') ,88 'description' => __('Allow matched products to inherit this stock item\'s SKU', 'woocommerce-attribute-stock') . ' ' . wc_help_tip(__('Only inherited if not already set on the product/variation.', 'woocommerce-attribute-stock')), 72 89 'cbvalue' => 1, 73 'value' => (int)$stock->product_sku(),90 'value' => MEWZ_WCAS_LITE ? 0 : (int)$stock->product_sku(), 74 91 'custom_attributes' => MEWZ_WCAS_LITE ? ['disabled' => 'disabled'] : [], 75 92 'wrapper_class' => MEWZ_WCAS_LITE ? 'mewz-wcas-pro-required' : '', … … 80 97 'id' => 'mewz_wcas_product_image', 81 98 'name' => 'mewz_wcas[product_image]', 82 'description' => __('Allow matched products to inherit this stock item\'s image', 'woocommerce-attribute-stock') ,99 'description' => __('Allow matched products to inherit this stock item\'s image', 'woocommerce-attribute-stock') . ' ' . wc_help_tip(__('Only inherited if not already set on the product/variation.', 'woocommerce-attribute-stock')), 83 100 'cbvalue' => 1, 84 'value' => (int)$stock->product_image(),101 'value' => MEWZ_WCAS_LITE ? 0 : (int)$stock->product_image(), 85 102 'custom_attributes' => MEWZ_WCAS_LITE ? ['disabled' => 'disabled'] : [], 86 103 'wrapper_class' => MEWZ_WCAS_LITE ? 'mewz-wcas-pro-required' : '', -
attribute-stock-for-woocommerce/trunk/vendor/composer/installed.php
r3135163 r3185159 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' e1823a99e74b6923d0d463c04101ad94ae7b4a84',6 'reference' => '95e58a506f70f45661cc6920b78ae2a26e400b42', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' e1823a99e74b6923d0d463c04101ad94ae7b4a84',34 'reference' => '95e58a506f70f45661cc6920b78ae2a26e400b42', 35 35 'type' => 'wordpress-plugin', 36 36 'install_path' => __DIR__ . '/../../', -
attribute-stock-for-woocommerce/trunk/vendor/mewz/framework/languages/mewz-framework.pot
r3135163 r3185159 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 9 "Content-Transfer-Encoding: 8bit\n" 10 "POT-Creation-Date: 2024- 08-13T23:48:50+02:00\n"10 "POT-Creation-Date: 2024-11-10T17:30:48+02:00\n" 11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12 "X-Generator: WP-CLI 2.1 0.0\n"12 "X-Generator: WP-CLI 2.11.0\n" 13 13 "X-Domain: mewz-framework\n" 14 14
Note: See TracChangeset
for help on using the changeset viewer.