This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
divi/includes/builder/frontend-builder/build/frontend-builder-preview.js

1 line
2.4 KiB
JavaScript

!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=1447)}({1447:function(e,t,n){"use strict";(function(e){!function(t){t("body").on("click","a",(function(e){var n=t(this).attr("href"),i=void 0!==n?n.substr(0,1):"";"#"!==i&&""!==i&&(e.preventDefault(),t(".link-disabled").addClass("active"))})),t("body").on("click",".et_pb_prompt_proceed",(function(){t(".link-disabled").removeClass("active")}));window.addEventListener("message",(function(e){var n=t('<form id="preview-data-submission" method="POST" style="display: none;"></form>'),i=e.data,r=document.documentMode;if(e.origin===et_preview_params.preview_origin){if(void 0!==r&&r<10&&(i=JSON.parse(i)),i&&i.et_pb_preview_nonce){for(var o in i){t("<textarea />",{name:o,style:"display: none; "}).val(i[o]).appendTo(n)}n.append('<input type="submit" value="submit" style="display: none;" />'),n.appendTo(".container"),t("#preview-data-submission").trigger("submit")}}else t(".et-pb-preview-loading").replaceWith(t("<h4 />",{style:"text-align: center;"}).html(et_preview_params.alert_origin_not_matched))}),!1),1!==t("#content > .content .et-pb-preview-loading").length&&"undefined"!=typeof parent&&setTimeout((function(){var n={html:t("#content > .content").html(),stylesheets:[]};e.each(window.location.search.substr(1).split("&"),(function(e,t){var i=t.split("=");void 0!==i[0]&&void 0!==i[1]&&"iframe_id"===i[0]&&(n.iframe_id=i[1])})),t('link[rel="stylesheet"]').each((function(e,i){n.stylesheets.push(t(i).attr("href"))})),parent.postMessage(n,window.location.origin)}),2e3)}(e)}).call(this,n(9))},9:function(e,t){e.exports=window.jQuery}}));