{"version":3,"sources":["webpack:///epsilon-framework-previewer.js","webpack:///webpack/bootstrap a681de69b81e7b7df894?d8e1","webpack:///./assets/vendors/epsilon-framework/utils/epsilon-ajax-request.ts?ff3a","webpack:///./assets/vendors/epsilon-framework/previewer/color-schemes/color-schemes.ts","webpack:///./assets/vendors/epsilon-framework/previewer/partial-refresh/partial-refresh.ts","webpack:///./assets/vendors/epsilon-framework/previewer/section-editor/section-editor.ts","webpack:///./assets/vendors/epsilon-framework/previewer/typography/typography.ts","webpack:///./assets/vendors/epsilon-framework/previewer/previewer.ts"],"names":["modules","__webpack_require__","moduleId","installedModules","exports","module","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","0","EpsilonAjaxRequest","args","this","request","self","jQuery","ajax","type","data","action","dataType","url","EpsilonWPUrls","ajaxurl","success","result","trigger","error","jqXHR","textStatus","errorThrown","console","log","29","epsilon_ajax_request_1","EpsilonColorSchemesPreviewer","wp","customize","preview","bind","Ajax","class","nonce","ajax_nonce","id","on","e","sufix","style","length","append","find","html","css","30","EpsilonPartialRefresh","sections","registerSections","handleEvents","$sections","attr","section","parseInt","push","_","debounce","changeSection","control","postId","index","standBySection","liveSection","document","animate","opacity","sectionIndex","replaceWith","31","EpsilonSectionEditorPreviewer","preventDefault","parents","customizerSection","send","32","EpsilonTypographyPreviewer","stylesheet","fonts","45","color_schemes_1","typography_1","section_editor_1","partial_refresh_1"],"mappings":"CAAS,SAAUA,GCInB,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAE,OAGA,IAAAC,GAAAF,EAAAD,IACAI,EAAAJ,EACAK,GAAA,EACAH,WAUA,OANAJ,GAAAE,GAAAM,KAAAH,EAAAD,QAAAC,IAAAD,QAAAH,GAGAI,EAAAE,GAAA,EAGAF,EAAAD,QAvBA,GAAAD,KA4BAF,GAAAQ,EAAAT,EAGAC,EAAAS,EAAAP,EAGAF,EAAA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ACAsB,EAAA3B,UACAE,OAAAyB,GAAAK,GAAA,oCAAAC,GACAE,EAAAjC,OAAA,IAAAyB,EAAAf,OAAA4D,WAAA,eACArC,EAAAC,SACAD,EAAAjC,OAAA,QAAAmC,OAAA,8BAAAV,EAAAf,OAAA4D,WAAA,mBAAAlC,KAAA,IAAAX,EAAAf,OAAA4D,WAAA,eAEA,QAAAnG,GAAA,EAA+BA,EAAAsD,EAAAf,OAAA6D,MAAArC,OAA8B/D,IAC7D6B,OAAA,sDAAAyB,EAAAf,OAAA6D,MAAApG,GAAA,MAAA+D,QACAlC,OAAA,QAAAmC,OAAA,uDAAAV,EAAAf,OAAA6D,MAAApG,GAAA,sBAGA8D,GAAAI,KAAAZ,EAAAf,OAAA4B,SAIA,MAAA+B,KAEApG,GAAAoG,8BNqSMG,GACA,SAAUtG,EAAQD,EAASH,GAEjC,YOzUAe,QAAAC,eAAAb,EAAA,cAA8CO,OAAA,GAC9C,IAAAiG,GAAA3G,EAAA,IACA4G,EAAA5G,EAAA,IACA6G,EAAA7G,EAAA,IACA8G,EAAA9G,EAAA,GACAuD,IAAAC,UAAAE,KAAA,2BACA,GAAAiD,GAAArD,6BACA,GAAAsD,GAAAL,2BACA,GAAAM,GAAAZ,8BACA,GAAAa,GAAApC","file":"epsilon-framework-previewer.js","sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/assets/js/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 45);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 0:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Ajax request class\r\n */\r\nvar EpsilonAjaxRequest = /** @class */ (function () {\r\n /**\r\n * Constructor\r\n * @param {Object} args\r\n */\r\n function EpsilonAjaxRequest(args) {\r\n this.args = args;\r\n }\r\n /**\r\n * Init Request\r\n */\r\n EpsilonAjaxRequest.prototype.request = function () {\r\n var self = this;\r\n jQuery.ajax({\r\n type: 'POST',\r\n data: { action: 'epsilon_framework_ajax_action', args: self.args },\r\n dataType: 'json',\r\n url: EpsilonWPUrls.ajaxurl,\r\n success: function (data) {\r\n self.result = data;\r\n jQuery(self).trigger('epsilon-received-success');\r\n },\r\n /**\r\n * Throw errors\r\n *\r\n * @param jqXHR\r\n * @param textStatus\r\n * @param errorThrown\r\n */\r\n error: function (jqXHR, textStatus, errorThrown) {\r\n console.log(jqXHR + ' :: ' + textStatus + ' :: ' + errorThrown);\r\n }\r\n });\r\n };\r\n return EpsilonAjaxRequest;\r\n}());\r\nexports.EpsilonAjaxRequest = EpsilonAjaxRequest;\r\n\n\n/***/ }),\n\n/***/ 29:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar epsilon_ajax_request_1 = __webpack_require__(0);\r\nvar EpsilonColorSchemesPreviewer = /** @class */ (function () {\r\n /**\r\n * Constructor\r\n */\r\n function EpsilonColorSchemesPreviewer() {\r\n var self = this;\r\n wp.customize.preview.bind('update-inline-color-schemes-css', function (object) {\r\n var data = {\r\n action: [object.class, object.action],\r\n nonce: EpsilonWPUrls.ajax_nonce,\r\n args: object.data,\r\n id: object.id\r\n }, Ajax;\r\n Ajax = new epsilon_ajax_request_1.EpsilonAjaxRequest(data);\r\n Ajax.request();\r\n jQuery(Ajax).on('epsilon-received-success', function (e) {\r\n var sufix = object.action + object.id, style = jQuery('#epsilon-stylesheet-' + sufix);\r\n if (!style.length) {\r\n style = jQuery('body').\r\n append('').\r\n find('#epsilon-stylesheet-' + sufix);\r\n }\r\n if (style.html() !== Ajax.result.css) {\r\n style.html(Ajax.result.css);\r\n }\r\n });\r\n });\r\n }\r\n return EpsilonColorSchemesPreviewer;\r\n}());\r\nexports.EpsilonColorSchemesPreviewer = EpsilonColorSchemesPreviewer;\r\n\n\n/***/ }),\n\n/***/ 30:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar epsilon_ajax_request_1 = __webpack_require__(0);\r\nvar EpsilonPartialRefresh = /** @class */ (function () {\r\n /**\r\n * Handle the section partial refresh\r\n */\r\n function EpsilonPartialRefresh() {\r\n /**\r\n * Frontend sections\r\n */\r\n this.sections = [];\r\n /**\r\n * Register sections\r\n */\r\n this.registerSections();\r\n this.handleEvents();\r\n }\r\n /**\r\n * Register sectiosn\r\n */\r\n EpsilonPartialRefresh.prototype.registerSections = function () {\r\n var self = this;\r\n var $sections = jQuery('[data-customizer-section-id]');\r\n for (var i = 0; i < $sections.length; i++) {\r\n var id = jQuery($sections[i]).attr('data-section');\r\n var section = {\r\n id: parseInt(id),\r\n section: jQuery($sections[i]),\r\n };\r\n self.sections.push(section);\r\n }\r\n };\r\n /**\r\n * Handle events\r\n */\r\n EpsilonPartialRefresh.prototype.handleEvents = function () {\r\n var self = this;\r\n wp.customize.preview.bind('updated-section-repeater', _.debounce(function (object) {\r\n self.changeSection(object);\r\n }, 300));\r\n };\r\n /**\r\n * Change the section\r\n * @param object\r\n */\r\n EpsilonPartialRefresh.prototype.changeSection = function (object) {\r\n var self = this;\r\n var args = {\r\n action: ['Epsilon_Page_Generator', 'generate_partial_section'],\r\n nonce: EpsilonWPUrls.ajax_nonce,\r\n args: {\r\n control: object.control,\r\n postId: object.postId,\r\n id: object.index,\r\n value: object.value,\r\n }\r\n }, Ajax;\r\n Ajax = new epsilon_ajax_request_1.EpsilonAjaxRequest(args);\r\n Ajax.request();\r\n this.standBySection(self.sections[object.index].section);\r\n jQuery(Ajax).on('epsilon-received-success', function (e) {\r\n self.liveSection(object.index, self.sections[object.index].section, Ajax.result.section);\r\n jQuery(document).trigger('epsilon-selective-refresh-ready');\r\n });\r\n };\r\n /**\r\n * Stand by section\r\n * @param {JQuery} section\r\n */\r\n EpsilonPartialRefresh.prototype.standBySection = function (section) {\r\n section.animate({ opacity: .5 });\r\n };\r\n /**\r\n *\r\n * @param {JQuery} section\r\n */\r\n EpsilonPartialRefresh.prototype.liveSection = function (sectionIndex, section, result) {\r\n var self = this;\r\n section.replaceWith(result);\r\n self.sections = [];\r\n self.registerSections();\r\n section.animate({ opacity: 1 });\r\n };\r\n return EpsilonPartialRefresh;\r\n}());\r\nexports.EpsilonPartialRefresh = EpsilonPartialRefresh;\r\n\n\n/***/ }),\n\n/***/ 31:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar EpsilonSectionEditorPreviewer = /** @class */ (function () {\r\n /**\r\n * Class constructor\r\n */\r\n function EpsilonSectionEditorPreviewer() {\r\n jQuery(document).on('click', '.epsilon-section-editor', function (e) {\r\n e.preventDefault();\r\n var object = {\r\n section: jQuery(this).parents('[data-section]').attr('data-section'),\r\n customizerSection: jQuery(this).parents('[data-section]').attr('data-customizer-section-id')\r\n };\r\n wp.customize.preview.send('epsilon-section-edit', object);\r\n });\r\n }\r\n return EpsilonSectionEditorPreviewer;\r\n}());\r\nexports.EpsilonSectionEditorPreviewer = EpsilonSectionEditorPreviewer;\r\n\n\n/***/ }),\n\n/***/ 32:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar epsilon_ajax_request_1 = __webpack_require__(0);\r\nvar EpsilonTypographyPreviewer = /** @class */ (function () {\r\n /**\r\n * Constructor\r\n */\r\n function EpsilonTypographyPreviewer() {\r\n var self = this;\r\n wp.customize.preview.bind('update-inline-typography-css', function (object) {\r\n var style, data = {\r\n action: [object.class, object.action],\r\n nonce: EpsilonWPUrls.ajax_nonce,\r\n args: object.data,\r\n id: object.id\r\n }, Ajax;\r\n Ajax = new epsilon_ajax_request_1.EpsilonAjaxRequest(data);\r\n Ajax.request();\r\n jQuery(Ajax).on('epsilon-received-success', function (e) {\r\n style = jQuery('#' + Ajax.result.stylesheet + '-inline-css');\r\n if (!style.length) {\r\n style = jQuery('body').append('').find('#' + Ajax.result.stylesheet + '-inline-css');\r\n }\r\n for (var i = 0; i < Ajax.result.fonts.length; i++) {\r\n if (!jQuery('link[href=\"https://fonts.googleapis.com/css?family=' + Ajax.result.fonts[i] + '\"]').length) {\r\n jQuery('head').append('');\r\n }\r\n }\r\n style.html(Ajax.result.css);\r\n });\r\n });\r\n }\r\n return EpsilonTypographyPreviewer;\r\n}());\r\nexports.EpsilonTypographyPreviewer = EpsilonTypographyPreviewer;\r\n\n\n/***/ }),\n\n/***/ 45:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar color_schemes_1 = __webpack_require__(29);\r\nvar typography_1 = __webpack_require__(32);\r\nvar section_editor_1 = __webpack_require__(31);\r\nvar partial_refresh_1 = __webpack_require__(30);\r\nwp.customize.bind('preview-ready', function () {\r\n new color_schemes_1.EpsilonColorSchemesPreviewer();\r\n new typography_1.EpsilonTypographyPreviewer();\r\n new section_editor_1.EpsilonSectionEditorPreviewer();\r\n new partial_refresh_1.EpsilonPartialRefresh();\r\n});\r\n\n\n/***/ })\n\n/******/ });\n\n\n// WEBPACK FOOTER //\n// epsilon-framework-previewer.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/assets/js/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 45);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap a681de69b81e7b7df894","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Ajax request class\r\n */\r\nvar EpsilonAjaxRequest = /** @class */ (function () {\r\n /**\r\n * Constructor\r\n * @param {Object} args\r\n */\r\n function EpsilonAjaxRequest(args) {\r\n this.args = args;\r\n }\r\n /**\r\n * Init Request\r\n */\r\n EpsilonAjaxRequest.prototype.request = function () {\r\n var self = this;\r\n jQuery.ajax({\r\n type: 'POST',\r\n data: { action: 'epsilon_framework_ajax_action', args: self.args },\r\n dataType: 'json',\r\n url: EpsilonWPUrls.ajaxurl,\r\n success: function (data) {\r\n self.result = data;\r\n jQuery(self).trigger('epsilon-received-success');\r\n },\r\n /**\r\n * Throw errors\r\n *\r\n * @param jqXHR\r\n * @param textStatus\r\n * @param errorThrown\r\n */\r\n error: function (jqXHR, textStatus, errorThrown) {\r\n console.log(jqXHR + ' :: ' + textStatus + ' :: ' + errorThrown);\r\n }\r\n });\r\n };\r\n return EpsilonAjaxRequest;\r\n}());\r\nexports.EpsilonAjaxRequest = EpsilonAjaxRequest;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./assets/vendors/epsilon-framework/utils/epsilon-ajax-request.ts\n// module id = 0\n// module chunks = 0 1 2","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar epsilon_ajax_request_1 = require(\"../../utils/epsilon-ajax-request\");\r\nvar EpsilonColorSchemesPreviewer = /** @class */ (function () {\r\n /**\r\n * Constructor\r\n */\r\n function EpsilonColorSchemesPreviewer() {\r\n var self = this;\r\n wp.customize.preview.bind('update-inline-color-schemes-css', function (object) {\r\n var data = {\r\n action: [object.class, object.action],\r\n nonce: EpsilonWPUrls.ajax_nonce,\r\n args: object.data,\r\n id: object.id\r\n }, Ajax;\r\n Ajax = new epsilon_ajax_request_1.EpsilonAjaxRequest(data);\r\n Ajax.request();\r\n jQuery(Ajax).on('epsilon-received-success', function (e) {\r\n var sufix = object.action + object.id, style = jQuery('#epsilon-stylesheet-' + sufix);\r\n if (!style.length) {\r\n style = jQuery('body').\r\n append('').\r\n find('#epsilon-stylesheet-' + sufix);\r\n }\r\n if (style.html() !== Ajax.result.css) {\r\n style.html(Ajax.result.css);\r\n }\r\n });\r\n });\r\n }\r\n return EpsilonColorSchemesPreviewer;\r\n}());\r\nexports.EpsilonColorSchemesPreviewer = EpsilonColorSchemesPreviewer;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./assets/vendors/epsilon-framework/previewer/color-schemes/color-schemes.ts\n// module id = 29\n// module chunks = 1","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar epsilon_ajax_request_1 = require(\"../../utils/epsilon-ajax-request\");\r\nvar EpsilonPartialRefresh = /** @class */ (function () {\r\n /**\r\n * Handle the section partial refresh\r\n */\r\n function EpsilonPartialRefresh() {\r\n /**\r\n * Frontend sections\r\n */\r\n this.sections = [];\r\n /**\r\n * Register sections\r\n */\r\n this.registerSections();\r\n this.handleEvents();\r\n }\r\n /**\r\n * Register sectiosn\r\n */\r\n EpsilonPartialRefresh.prototype.registerSections = function () {\r\n var self = this;\r\n var $sections = jQuery('[data-customizer-section-id]');\r\n for (var i = 0; i < $sections.length; i++) {\r\n var id = jQuery($sections[i]).attr('data-section');\r\n var section = {\r\n id: parseInt(id),\r\n section: jQuery($sections[i]),\r\n };\r\n self.sections.push(section);\r\n }\r\n };\r\n /**\r\n * Handle events\r\n */\r\n EpsilonPartialRefresh.prototype.handleEvents = function () {\r\n var self = this;\r\n wp.customize.preview.bind('updated-section-repeater', _.debounce(function (object) {\r\n self.changeSection(object);\r\n }, 300));\r\n };\r\n /**\r\n * Change the section\r\n * @param object\r\n */\r\n EpsilonPartialRefresh.prototype.changeSection = function (object) {\r\n var self = this;\r\n var args = {\r\n action: ['Epsilon_Page_Generator', 'generate_partial_section'],\r\n nonce: EpsilonWPUrls.ajax_nonce,\r\n args: {\r\n control: object.control,\r\n postId: object.postId,\r\n id: object.index,\r\n value: object.value,\r\n }\r\n }, Ajax;\r\n Ajax = new epsilon_ajax_request_1.EpsilonAjaxRequest(args);\r\n Ajax.request();\r\n this.standBySection(self.sections[object.index].section);\r\n jQuery(Ajax).on('epsilon-received-success', function (e) {\r\n self.liveSection(object.index, self.sections[object.index].section, Ajax.result.section);\r\n jQuery(document).trigger('epsilon-selective-refresh-ready');\r\n });\r\n };\r\n /**\r\n * Stand by section\r\n * @param {JQuery} section\r\n */\r\n EpsilonPartialRefresh.prototype.standBySection = function (section) {\r\n section.animate({ opacity: .5 });\r\n };\r\n /**\r\n *\r\n * @param {JQuery} section\r\n */\r\n EpsilonPartialRefresh.prototype.liveSection = function (sectionIndex, section, result) {\r\n var self = this;\r\n section.replaceWith(result);\r\n self.sections = [];\r\n self.registerSections();\r\n section.animate({ opacity: 1 });\r\n };\r\n return EpsilonPartialRefresh;\r\n}());\r\nexports.EpsilonPartialRefresh = EpsilonPartialRefresh;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./assets/vendors/epsilon-framework/previewer/partial-refresh/partial-refresh.ts\n// module id = 30\n// module chunks = 1","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar EpsilonSectionEditorPreviewer = /** @class */ (function () {\r\n /**\r\n * Class constructor\r\n */\r\n function EpsilonSectionEditorPreviewer() {\r\n jQuery(document).on('click', '.epsilon-section-editor', function (e) {\r\n e.preventDefault();\r\n var object = {\r\n section: jQuery(this).parents('[data-section]').attr('data-section'),\r\n customizerSection: jQuery(this).parents('[data-section]').attr('data-customizer-section-id')\r\n };\r\n wp.customize.preview.send('epsilon-section-edit', object);\r\n });\r\n }\r\n return EpsilonSectionEditorPreviewer;\r\n}());\r\nexports.EpsilonSectionEditorPreviewer = EpsilonSectionEditorPreviewer;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./assets/vendors/epsilon-framework/previewer/section-editor/section-editor.ts\n// module id = 31\n// module chunks = 1","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar epsilon_ajax_request_1 = require(\"../../utils/epsilon-ajax-request\");\r\nvar EpsilonTypographyPreviewer = /** @class */ (function () {\r\n /**\r\n * Constructor\r\n */\r\n function EpsilonTypographyPreviewer() {\r\n var self = this;\r\n wp.customize.preview.bind('update-inline-typography-css', function (object) {\r\n var style, data = {\r\n action: [object.class, object.action],\r\n nonce: EpsilonWPUrls.ajax_nonce,\r\n args: object.data,\r\n id: object.id\r\n }, Ajax;\r\n Ajax = new epsilon_ajax_request_1.EpsilonAjaxRequest(data);\r\n Ajax.request();\r\n jQuery(Ajax).on('epsilon-received-success', function (e) {\r\n style = jQuery('#' + Ajax.result.stylesheet + '-inline-css');\r\n if (!style.length) {\r\n style = jQuery('body').append('').find('#' + Ajax.result.stylesheet + '-inline-css');\r\n }\r\n for (var i = 0; i < Ajax.result.fonts.length; i++) {\r\n if (!jQuery('link[href=\"https://fonts.googleapis.com/css?family=' + Ajax.result.fonts[i] + '\"]').length) {\r\n jQuery('head').append('');\r\n }\r\n }\r\n style.html(Ajax.result.css);\r\n });\r\n });\r\n }\r\n return EpsilonTypographyPreviewer;\r\n}());\r\nexports.EpsilonTypographyPreviewer = EpsilonTypographyPreviewer;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./assets/vendors/epsilon-framework/previewer/typography/typography.ts\n// module id = 32\n// module chunks = 1","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar color_schemes_1 = require(\"./color-schemes/color-schemes\");\r\nvar typography_1 = require(\"./typography/typography\");\r\nvar section_editor_1 = require(\"./section-editor/section-editor\");\r\nvar partial_refresh_1 = require(\"./partial-refresh/partial-refresh\");\r\nwp.customize.bind('preview-ready', function () {\r\n new color_schemes_1.EpsilonColorSchemesPreviewer();\r\n new typography_1.EpsilonTypographyPreviewer();\r\n new section_editor_1.EpsilonSectionEditorPreviewer();\r\n new partial_refresh_1.EpsilonPartialRefresh();\r\n});\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./assets/vendors/epsilon-framework/previewer/previewer.ts\n// module id = 45\n// module chunks = 1"],"sourceRoot":""}