153. 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.

153.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-converterwidget-directive.js2023-06-27 05:48:32 +0000

153.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged00
Changed00
Inserted176
Removed00

153.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

153.4 Active regular expressions

No regular expressions were active.

153.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.column_count = attributes.column_count;
    42       data.product_type = attributes.product_type;
    43 
    44       return data;
    45     }
    46     /**
    47      * Convert value to knockout format
    48      *
    49      * @param {object} data
    50      * @param {object} config
    51      * @returns {object}
    52      */
    53     ;
    54 
    55     _proto.toDom = function toDom(data, config) {
    56       var attributes = {
    57         type: "Smartwave\\Filterproducts\\Block\\Widget\\Products",
    58         template: "Smartwave_Filterproducts::widget/grid.phtml",
    59         show_pager: 0,
    60         display_type: data.display_type,
    61         category_ids: data.category_ids,
    62         product_count: data.product_count,
    63         column_count: data.column_count,
    64         product_type: data.product_type
    65       };
    66 
    67       (0, _object.set)(data, config.html_variable, this.buildDirective(attributes));
    68       return data;
    69     }
    70 
    71     return WidgetDirective;
    72   }(_widgetDirectiveAbstract);
    73 
    74   return WidgetDirective;
    75 });
    76 //# sourceMappingURL=widget-directive.js.map