?
Current Path : /opt/wp/plugins/bluehost-wordpress-plugin/build/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //opt/wp/plugins/bluehost-wordpress-plugin/build/editortours-dcbd0e586f4c209cf4ec.js |
window.bluehostPlugin=window.bluehostPlugin||{},window.bluehostPlugin.editortours=(window.webpackJsonp_bluehost_wordpress_plugin=window.webpackJsonp_bluehost_wordpress_plugin||[]).push([[4],{0:function(e,t){e.exports=window.React},1:function(e,t){e.exports=window.wp.element},12:function(e,t){e.exports=window.wp.data},129:function(e,t,r){},13:function(e,t){e.exports=window.wp.components},132:function(e,t,r){"use strict";r.r(t);var n=r(1),o=(r(23),r(129),r(17)),i=r.n(o),l=r(59),c=r(20),a=r(12),u=r(34),s=Object(n.lazy)((function(){return Promise.all([r.e(0),r.e(23)]).then(r.bind(null,255))})),d=Object(n.lazy)((function(){return Promise.all([r.e(0),r.e(24)]).then(r.bind(null,256))})),p=Object(n.lazy)((function(){return Promise.all([r.e(0),r.e(25)]).then(r.bind(null,257))}));Object(l.registerPlugin)("newfold-editor-placeholders",{render:u.a});var f=function(){Object(a.select)("core/edit-post").isFeatureActive("welcomeGuide")&&(Object(a.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),window.suppressedCore=!0),Object(u.d)();var e=void 0!==window.nfTourContext&&window.nfTourContext,t=Object(n.createElement)(n.Fragment,null);switch(e){case"about":t=s;break;case"contact":t=d;break;case"home":t=p;break;default:t=n.Fragment}return Object(n.createElement)(c.ErrorBoundary,{FallbackComponent:Object(n.createElement)("div",null)},Object(n.createElement)(n.Suspense,{fallback:Object(n.createElement)("div",null)},Object(n.createElement)(t,null)))};i()((function(){Object(n.render)(Object(n.createElement)(f,null),document.getElementById("newfold-editortours"))}))},15:function(e,t){e.exports=window.wp.url},16:function(e,t){e.exports=window.wp.apiFetch},17:function(e,t){e.exports=window.wp.domReady},18:function(e,t){e.exports=window.regeneratorRuntime},19:function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},2:function(e,t){e.exports=window.wp.i18n},20:function(e,t,r){!function(e,t){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var n={error:null},o=function(e){var o,i;function l(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).state=n,t.updatedWithError=!1,t.resetErrorBoundary=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}i=e,(o=l).prototype=Object.create(i.prototype),o.prototype.constructor=o,r(o,i),l.getDerivedStateFromError=function(e){return{error:e}};var c=l.prototype;return c.reset=function(){this.updatedWithError=!1,this.setState(n)},c.componentDidCatch=function(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)},c.componentDidMount=function(){null!==this.state.error&&(this.updatedWithError=!0)},c.componentDidUpdate=function(e){var t,r,n,o,i=this.state.error,l=this.props.resetKeys;null===i||this.updatedWithError?null!==i&&(void 0===(n=e.resetKeys)&&(n=[]),void 0===(o=l)&&(o=[]),n.length!==o.length||n.some((function(e,t){return!Object.is(e,o[t])})))&&(null==(t=(r=this.props).onResetKeysChange)||t.call(r,e.resetKeys,l),this.reset()):this.updatedWithError=!0},c.render=function(){var e=this.state.error,r=this.props,n=r.fallbackRender,o=r.FallbackComponent,i=r.fallback;if(null!==e){var l={error:e,resetErrorBoundary:this.resetErrorBoundary};if(t.isValidElement(i))return i;if("function"==typeof n)return n(l);if(o)return t.createElement(o,l);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},l}(t.Component);e.ErrorBoundary=o,e.useErrorHandler=function(e){var r=t.useState(null),n=r[0],o=r[1];if(e)throw e;if(n)throw n;return o},e.withErrorBoundary=function(e,r){var n=function(n){return t.createElement(o,r,t.createElement(e,n))},i=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+i+")",n},Object.defineProperty(e,"__esModule",{value:!0})}(t,r(0))},23:function(e,t,r){void 0!==window.bluehostPluginPublicPath&&(r.p=window.bluehostPluginPublicPath)},27:function(e,t,r){var n=r(28);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},28:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.default=e.exports,e.exports.__esModule=!0},31:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},32:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],_n=!0,n=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(_n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);_n=!0);}catch(e){n=!0,o=e}finally{try{_n||null==l.return||l.return()}finally{if(n)throw o}}return r}},e.exports.default=e.exports,e.exports.__esModule=!0},33:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},34:function(e,t,r){"use strict";r.d(t,"d",(function(){return v})),r.d(t,"c",(function(){return x})),r.d(t,"a",(function(){return P})),r.d(t,"b",(function(){return S}));var n=r(9),o=r.n(n),i=r(4),l=r.n(i),c=r(19),a=r.n(c),u=r(1),s=r(12),d=r(13),p=r(40),f=r(5),h=r(2),b=r(0);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return g(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw i}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v=function(){-1!==window.navigator.userAgent.indexOf("Trident")||document.addEventListener("selectionchange",(function(e){var t=(document.getSelection().baseNode||0).parentNode,r=document.lastNode;t!==r&&(r&&r.dispatchEvent(new Event("caretOut")),(document.lastNode=t).dispatchEvent(new Event("caretIn")))}))},O=function(e){var t=e.target.id,r=document.getElementById("style-"+t);null===r&&((r=document.createElement("style")).type="text/css",r.id="style-"+t,r.innerText="span#"+t+".nf-placeholder.nf-highlight, span#"+t+".nf-placeholder.nf-highlight[data-rich-text-format-boundary] { background-color: inherit !important; color: inherit !important; }",document.getElementsByTagName("head")[0].appendChild(r))},j=function(e){var t=document.getElementById("style-"+e);null!==t&&t.parentNode.removeChild(t)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(s.select)("core/block-editor").getBlocks(),r=window,n=r.nfPlaceholders,o=[];if(t.length){var i=new DOMParser;return t.forEach((function(t){switch(t.name){case"core/heading":case"core/paragraph":var r=i.parseFromString(t.attributes.content,"text/html").querySelectorAll(".nf-placeholder");if(r.length){var l,c=y(r=Array.from(r));try{for(c.s();!(l=c.n()).done;){var u=l.value;"object"===a()(n)&&n.hasOwnProperty(u.id)&&u.innerText!==n[u.id]||e?(j(u.id),Object(s.dispatch)("core/block-editor").updateBlock(t.clientId,{attributes:{content:Object(f.replace)(t.attributes.content,u.outerHTML,u.innerHTML)}})):o.push(u.id)}}catch(e){c.e(e)}finally{c.f()}}}})),!o.length||o}return null},E=function(){return Object(u.createElement)(d.Button,{isSecondary:!0,onClick:function(){void 0!==window.nfTour&&window.nfTour.start()},className:"relaunch-tour"},Object(h.__)("Relaunch Tour","bluehost-wordpress-plugin"))},_=function(){var e=Object(u.useState)([]),t=l()(e,2),r=t[0],n=t[1],o=Object(u.useState)(!0),i=l()(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){n(x()),a(!1)}),[]),!c&&(r.length?(r.forEach((function(e){return j(e)})),Object(u.createElement)(b.Fragment,null,Object(u.createElement)(d.Notice,{status:"warning",isDismissible:!1},Object(h.sprintf)(Object(h._n)("We found %s placeholder still in on this page.","We found %s placeholders still in on this page.",r.length,"bluehost-wordpress-plugin"),r.length)),Object(u.createElement)("h4",null,Object(h.__)("These placeholders haven't been edited","bluehost-wordpress-plugin"),":"),Object(u.createElement)("ul",{id:"unedited"},r.map((function(e){return void 0===window.nfPlaceholders||void 0===window.nfPlaceholders[e]?Object(u.createElement)("li",null,Object(h.__)("Oops, we couldn't find this placeholder, please double check the content","bluehost-wordpress-plugin")):Object(u.createElement)("li",{key:e},window.nfPlaceholders[e])}))),Object(u.createElement)(E,null))):Object(u.createElement)(b.Fragment,null,Object(u.createElement)(d.Notice,{status:"success",isDismissible:!1},Object(h.__)("This page looks great! Time to share it with your visitors.","bluehost-wordpress-plugin")),Object(u.createElement)(E,null)))},P=function(){return Object(u.createElement)(p.PluginPrePublishPanel,{className:"newfold-default-content-validation",title:Object(h.__)("Bluehost","bluehost-wordpress-plugin"),opened:!0,initialOpen:!0,icon:Object(u.createElement)("span",null)},Object(u.createElement)(_,null))},S=function(){var e=document.querySelectorAll(".nf-placeholder"),t=!1;if(void 0!==window.nfPlaceholders?t=!0:window.nfPlaceholders={},e.length&&(e=Array.from(e)),Array.isArray(e)&&(e.forEach((function(e){t||(window.nfPlaceholders[e.id]=e.innerText),e.addEventListener("click",O),e.addEventListener("caretIn",O)})),!t)){var r=wp.data.select("core/editor").getEditedPostAttribute("meta");wp.data.dispatch("core/editor").editPost({meta:m(m({},r),{},{nf_dc_placeholders:JSON.stringify(window.nfPlaceholders)})})}}},4:function(e,t,r){var n=r(31),o=r(32),i=r(27),l=r(33);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||l()},e.exports.default=e.exports,e.exports.__esModule=!0},40:function(e,t){e.exports=window.wp.editPost},5:function(e,t){e.exports=window.lodash},59:function(e,t){e.exports=window.wp.plugins},9:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0}},[[132,7]]]);