1define([ 2 'jquery', 3 'Magento_Ui/js/modal/modal', 4 'mage/translate' 5], function ($, modal) { 6 'use strict'; 7 8 $.widget('mage.cookieStatus', { 9 options: { 10 type: 'popup', 11 responsive: true, 12 innerScroll: true, 13 autoOpen: true, 14 buttons: [{ 15 text: $.mage.__('Close'), 16 class: 'cookie-status', 17 18 /** 19 * Callback for click event 20 */ 21 click: function () { 22 this.closeModal(); 23 } 24 }] 25 }, 26 27 /** 28 * Init object 29 * @private 30 */ 31 _init: function () { 32 33 if (!navigator.cookieEnabled) { 34 modal(this.options, $('#cookie-status')); 35 } 36 } 37 }); 38 39 return $.mage.cookieStatus; 40});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.