Produced by Araxis Merge on 2023-07-12 04:42:41 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | 2023-07-12 04:42:41 +0000 | ||
| 2 | Porto v4.0.6/Theme Files/Porto Theme/app/code/Smartwave/Filterproducts/view/adminhtml/web/js/content-type/filterproducts/mass-converter | sidelist-widget-directive.js | 2023-06-29 12:05:17 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 78 |
| Removed | 0 | 0 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | /*eslint-disable */ | |||||
| 2 | /* jscs:disable */ | |||||
| 3 | ||||||
| 4 | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); } | |||||
| 5 | ||||||
| 6 | function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | |||||
| 7 | ||||||
| 8 | define(["Magento_PageBuilder/js/mass-converter/widget-directive-abstract", "Magento_PageBuilder/js/utils/object"], function (_widgetDirectiveAbstract, _object) { | |||||
| 9 | /** | |||||
| 10 | * Copyright © Magento, Inc. All rights reserved. | |||||
| 11 | * See COPYING.txt for license details. | |||||
| 12 | */ | |||||
| 13 | ||||||
| 14 | /** | |||||
| 15 | * @api | |||||
| 16 | */ | |||||
| 17 | var WidgetDirective = /*#__PURE__*/function (_widgetDirectiveAbstr) { | |||||
| 18 | "use strict"; | |||||
| 19 | ||||||
| 20 | _inheritsLoose(WidgetDirective, _widgetDirectiveAbstr); | |||||
| 21 | ||||||
| 22 | function WidgetDirective() { | |||||
| 23 | return _widgetDirectiveAbstr.apply(this, arguments) || this; | |||||
| 24 | } | |||||
| 25 | ||||||
| 26 | var _proto = WidgetDirective.prototype; | |||||
| 27 | ||||||
| 28 | /** | |||||
| 29 | * Convert value to internal format | |||||
| 30 | * | |||||
| 31 | * @param {object} data | |||||
| 32 | * @param {object} config | |||||
| 33 | * @returns {object} | |||||
| 34 | */ | |||||
| 35 | _proto.fromDom = function fromDom(data, config) { | |||||
| 36 | var attributes = _widgetDirectiveAbstr.prototype.fromDom.call(this, data, config); | |||||
| 37 | ||||||
| 38 | data.display_type = attributes.display_type; | |||||
| 39 | data.category_ids = attributes.category_ids; | |||||
| 40 | data.product_count = attributes.product_count; | |||||
| 41 | data.enable_autoplay = attributes.enable_autoplay; | |||||
| 42 | data.show_slide_nav = attributes.show_slide_nav; | |||||
| 43 | data.show_slide_page = attributes.show_slide_page; | |||||
| 44 | ||||||
| 45 | return data; | |||||
| 46 | } | |||||
| 47 | /** | |||||
| 48 | * Convert value to knockout format | |||||
| 49 | * | |||||
| 50 | * @param {object} data | |||||
| 51 | * @param {object} config | |||||
| 52 | * @returns {object} | |||||
| 53 | */ | |||||
| 54 | ; | |||||
| 55 | ||||||
| 56 | _proto.toDom = function toDom(data, config) { | |||||
| 57 | var attributes = { | |||||
| 58 | type: "Smartwave\\Filterproducts\\Block\\Widget\\Products", | |||||
| 59 | template: "Smartwave_Filterproducts::widget/side_list.phtml", | |||||
| 60 | show_pager: 0, | |||||
| 61 | display_type: data.display_type, | |||||
| 62 | category_ids: data.category_ids, | |||||
| 63 | product_count: data.product_count, | |||||
| 64 | enable_autoplay: data.enable_autoplay, | |||||
| 65 | show_slide_nav: data.show_slide_nav, | |||||
| 66 | show_slide_page: data.show_slide_page | |||||
| 67 | }; | |||||
| 68 | ||||||
| 69 | (0, _object.set)(data, config.html_variable, this.buildDirective(attributes)); | |||||
| 70 | return data; | |||||
| 71 | } | |||||
| 72 | ||||||
| 73 | return WidgetDirective; | |||||
| 74 | }(_widgetDirectiveAbstract); | |||||
| 75 | ||||||
| 76 | return WidgetDirective; | |||||
| 77 | }); | |||||
| 78 | //# sourceMappingURL=widget-directive.js.map |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.