151. Araxis Merge File Comparison Report

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.

151.1 Files compared

#LocationFileLast Modified
12023-07-12 04:42:41 +0000
2Porto v4.0.6/Theme Files/Porto Theme/app/code/Smartwave/Filterproducts/view/adminhtml/web/js/content-type/filterproducts/mass-convertersidelist-widget-directive.js2023-06-29 12:05:17 +0000

151.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged00
Changed00
Inserted178
Removed00

151.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

151.4 Active regular expressions

No regular expressions were active.

151.5 Comparison detail

    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