HEX
Server: Apache
System: Linux webd011.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: ezpgggd (105871)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/ezpgggd/www/wp-content/plugins/wallsio/block/dist/blocks.build.js
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=23)}([function(e,t){e.exports=wp.element},function(e,t,n){"use strict";function r(e,t){return function(n){var r=e(n),o=n.displayName,a=void 0===o?n.name||"Component":o;return r.displayName="".concat(Object(i.upperFirst)(Object(i.camelCase)(t)),"(").concat(a,")"),r}}var i=n(6);n.n(i);t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.a=r},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}t.a=i},function(e,t){e.exports=wp.components},function(e,t){e.exports=wp.i18n},function(e,t){e.exports=lodash},function(e,t,n){"use strict";function r(e,t){return!t||"object"!==Object(i.a)(t)&&"function"!==typeof t?Object(o.a)(e):t}t.a=r;var i=n(42),o=n(10)},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.a=r},function(e,t,n){"use strict";function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(i.a)(e,t)}t.a=r;var i=n(43)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.a=r},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}t.a=r},function(e,t,n){"use strict";function r(e){if(!Object(m.b)(e))return null;var t=e.wallIdentifier;return t?"https://my.walls.io/"+t+"?"+i(e).join("&"):null}function i(e){var t=[];if(e.hasOwnProperty("showHeader")){var n="show_header="+Object(m.a)(e.showHeader);t.push(n)}if(e.hasOwnProperty("showBackground")){var r="nobackground="+Object(m.a)(!e.showBackground);t.push(r)}if(e.width){var i="embedwidth="+e.width;t.push(i)}else{t.push("embedwidth=auto")}if(e.hasOwnProperty("height")){var o="embedheight="+e.height;t.push(o)}return t}function o(e){var t=a(e);if(!c(t.host))return{};var n={};if(n.wallIdentifier=s(t.pathname),!n.wallIdentifier)return{};var r=l(t.search);return r.hasOwnProperty("embedheight")&&(n.height=r.embedheight),r.hasOwnProperty("embedwidth")&&(n.width=r.embedwidth),r.hasOwnProperty("show_header")&&(n.showHeader="1"===r.show_header),r.hasOwnProperty("nobackground")&&(n.showBackground="1"!==r.nobackground),n}function a(e){var t=document.createElement("a");t.href=e;var n=["host","hostname","hash","href","pathname","port","protocol","search"],r={},i=!0,o=!1,a=void 0;try{for(var l,c=n[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var s=l.value;r[s]=u(t,s)}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}var f=r.pathname.replace(/^[\/]?/,"/");return f.startsWith("/")||(r.pathname="/"+f),r}function u(e,t){return"host"===t?e.host.replace(/(:443)|(:80)$/,""):"pathname"===t?e.pathname.replace(/^[\/]?/,"/"):e[t]}function l(e){var t=e||"",n=t.match(/[?](.+)/);if(!n)return{};var r=n[1],i=r.split("&"),o={},a=!0,u=!1,l=void 0;try{for(var c,s=i[Symbol.iterator]();!(a=(c=s.next()).done);a=!0){var f=c.value,p=f.split("="),h=d(p,2),b=h[0],m=h[1];o[b]=void 0===m?null:m}}catch(e){u=!0,l=e}finally{try{!a&&s.return&&s.return()}finally{if(u)throw l}}return o}function c(e){return"walls.io"===e||"my.walls.io"===e}function s(e){e=e.replace(/\/$/,"");var t=e.match(/^\/([\w-]{2,})$/i);return t?t[1]:null}function f(e){return r({wallIdentifier:o(e).wallIdentifier})}function p(e){return h(e,b.a)}function h(e,t){return t.wallIdentifier=e,r(t)}t.a=r,t.d=o,t.e=f,t.b=p,t.c=h;var b=n(19),m=n(13),d=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";function r(e,t){var n=parseInt(e,10);return isNaN(n)?t:n}function i(e){return e?1:0}function o(e){return e===Object(e)}t.c=r,t.a=i,t.b=o},function(e,t){e.exports=wp.blocks},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};e.exports=n(30)(i,!0)}else e.exports=n(33)()}).call(t,n(16))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(s===setTimeout)return setTimeout(e,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(e,0);try{return s(e,0)}catch(t){try{return s.call(null,e,0)}catch(t){return s.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&h&&(m=!1,h.length?b=h.concat(b):d=-1,b.length&&u())}function u(){if(!m){var e=i(a);m=!0;for(var t=b.length;t;){for(h=b,b=[];++d<t;)h&&h[d].run();d=-1,t=b.length}h=null,m=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var s,f,p=e.exports={};!function(){try{s="function"===typeof setTimeout?setTimeout:n}catch(e){s=n}try{f="function"===typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var h,b=[],m=!1,d=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];b.push(new l(e,t)),1!==b.length||m||i(u)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=wp.editor},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r={minHeight:200,maxHeight:2500},i={height:600,showHeader:!1,showBackground:!0}},function(e,t,n){"use strict";t.a=wp.element.createElement("svg",{viewBox:"0 0 613.78 613.78",fill:"#00222d",color:"#f3b200",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fill:"#00222d",d:"M254 603.48a141.07 141.07 0 0 0 152.59-30.8l166.07-166.09a141.66 141.66 0 0 0 .22-199.53L406.78 41a141.79 141.79 0 0 0-199.65.09L41 207.15a141.19 141.19 0 0 0 .22 199.34l166.12 166.1A140 140 0 0 0 254 603.48zm116.36-67a89.57 89.57 0 0 1-126.67 0L77.19 370a89.57 89.57 0 0 1 0-126.67L243.67 76.9a89.57 89.57 0 0 1 126.67 0l166.47 166.48a89.57 89.57 0 0 1 0 126.67z"}),wp.element.createElement("path",{fill:"#00222d",d:"M287 307l120.12 120.13.21.21 92.84-92.84c15-15 15.21-39.77.22-54.77l-93.06-93.06z"}),wp.element.createElement("path",{fill:"#f3b200",className:"wallsio-logo-secondary-color",d:"M250.79 270.81l120.34-120.33-36.84-36.84c-15-15-39.9-14.9-54.89.09l-92.85 92.85z"}),wp.element.createElement("path",{fill:"#00222d",d:"M334.07 500.59l37.06-37.06-220.77-220.76-37.05 37.05c-15 15-14.78 39.59.22 54.58l166.09 166.09a38.59 38.59 0 0 0 54.45.1z"}))},function(e,t,n){"use strict";function r(e){return"string"!==typeof e?"":e.length<2?e:i(e)||e.trim()}function i(e){return"string"!==typeof e?null:(e=e.trim(),o(e)||f(e))}function o(e){if("string"!==typeof e)return null;if(e=e.trim(),E(e)){var t="http://walls.io/ab".length;return e.length<t?null:y(e)}var n="walls.io/ab".length;return e.length<n?null:d(e)}function a(e){var t=!0,n=!1,r=void 0;try{for(var i,o=T[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){e=u(i.value,x,e)}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return e}function u(e,t,n){return n=l(e,t,n),n=c(e,t,n)}function l(e,t,n){var r=new RegExp("^"+s(e));return n.replace(r,t)}function c(e,t,n){var r=s("//"),i="(?<="+r+")",o=s(e),a=new RegExp(i+o);return n.replace(a,t)}function s(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}function f(e){return p(e)||b(e)}function p(e){return h(e)?o(Object(k.parseWithAttributeSchema)(e,{source:"attribute",selector:"iframe[src]",attribute:"src"})):null}function h(e){return/^<iframe/.test(e)}function b(e){return m(e)?o(Object(k.parseWithAttributeSchema)(e,{source:"attribute",selector:"script[data-wallurl][src^='https://walls.io']",attribute:"data-wallurl"})):null}function m(e){return/^<script/.test(e)}function d(e){return y("https://"+e)}function y(e){e=a(e);try{return v(new URL(e,w()))}catch(e){return null}}function w(){return"https://"+x}function v(e){if(e.hostname!==x)return null;var t=O(e.pathname);return g(t)?t:null}function g(e){return/^[\w-]{2,126}$/.test(e)}function O(e){return j(e).split("/").shift()}function j(e){return e.replace(/^[\/]/,"")}function E(e){return new RegExp("^https?://").test(e)}function _(e){if(!e||!e.textContent)return null;var t=e.textContent;if("string"!==typeof t)return null;var n=t.trim();return o(n)||f(n)}t.b=r,t.c=i,t.d=o,t.a=_;var k=n(14),x=(n.n(k),"my.walls.io"),T=["walls.io","www.walls.io"]},function(e,t,n){var r,i;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)o.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(i=function(){return n}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(24)},function(e,t,n){"use strict";var r=n(25),i=(n.n(r),n(26)),o=(n.n(i),n(12)),a=n(20),u=n(27),l=n(28),c=n(21),s=n(14),f=(n.n(s),n(38)),p=(n.n(f),n(39)),h=n(5);n.n(h);Object(s.registerBlockType)("wallsio/wallsio",{title:Object(h._x)("Walls.io","block title","wallsio"),description:Object(h._x)("Embed your social wall","block description","wallsio"),icon:a.a,category:"embed",keywords:[Object(h._x)("social wall","block keyword","wallsio"),Object(h._x)("wallsio: twitter instagram feed","block keyword","wallsio"),Object(h._x)("social media aggregator","block keyword","wallsio")],attributes:{wallUrl:{type:"string",source:"text",default:""}},edit:Object(p.a)(Object(f.withSelect)(function(e,t){var n=t.attributes.wallUrl,r=Object(o.e)(n),i=e("core"),a=i.getEmbedPreview,u=i.isRequestingEmbedPreview,l=r?a(r):null,c=!!r&&u(r);return{preview:!l||"rich"!==l.type||!l.html?null:l,isFetching:c}}),Object(f.withDispatch)(function(e,t){var n=e("core/data"),r=t.attributes.wallUrl,i=Object(o.e)(r);return{tryAgain:function(){n.invalidateResolution("core","getEmbedPreview",[i])}}}))(l.a),supports:{customClassName:!1,align:!1},save:function(e){var t=e.attributes.wallUrl;return wp.element.createElement("figure",{className:"wp-block-embed is-type-rich is-provider-walls-io wallsio-is-plugin-used"},"\n"+t+"\n")},transforms:{from:[{type:"raw",priority:1,isMatch:function(e){return!!Object(c.a)(e)},transform:function(e){var t=Object(c.a)(e);return Object(u.a)(t)}},{type:"block",priority:1,blocks:["core/code","core/html","core/paragraph"],isMatch:function(e){var t=e.content;return!!Object(c.c)(t)},transform:function(e){var t=e.content,n=Object(c.c)(t);return Object(u.a)(n)}},{type:"block",priority:1,blocks:["core/embed"],isMatch:function(e){var t=e.url;return!!Object(c.d)(t)},transform:function(e){var t=e.url,n=Object(c.d)(t);return Object(u.a)(n)}}]}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){var t=Object(o.b)(e);return Object(i.createBlock)("wallsio/wallsio",{wallUrl:t})}t.a=r;var i=n(14),o=(n.n(i),n(12))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(19),u=n(21),l=n(20),c=n(29),s=n(12),f=n(35),p=n(36),h=n(37),b=n(0),m=(n.n(b),n(18)),d=(n.n(m),n(4)),y=(n.n(d),n(5)),w=(n.n(y),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),v=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.className="wp-block-wallsio-wallsio",e.state={tmpWallIdentifier:null,isWallChanged:!1,isEditing:!1,details:Object(s.d)(e.props.attributes.wallUrl)},e}return o(t,e),w(t,[{key:"changeDetail",value:function(e,t){var n=Object(s.d)(this.props.attributes.wallUrl);n[e]=t;var r=Object(s.a)(n);this.props.setAttributes({wallUrl:r})}},{key:"onWallChange",value:function(e){e&&e.preventDefault();var t=e.target.value,n=Object(u.b)(t);this.setState({tmpWallIdentifier:n})}},{key:"getPropsWallIdentifier",value:function(){return Object(s.d)(this.props.attributes.wallUrl).wallIdentifier||null}},{key:"switchToUrlInput",value:function(){this.setState({isEditing:!0,tmpWallIdentifier:this.getPropsWallIdentifier()})}},{key:"getNewWallUrl",value:function(){var e=this.state.tmpWallIdentifier;if(this.props.attributes.wallUrl){var t=Object(s.d)(this.props.attributes.wallUrl);return Object(s.c)(e,t)}return Object(s.b)(e)}},{key:"onSubmit",value:function(e){if(e&&e.preventDefault(),this.state.tmpWallIdentifier){var t=this.getNewWallUrl();this.props.setAttributes({wallUrl:t}),this.props.tryAgain(),this.setState({tmpWallIdentifier:null,isEditing:!1})}}},{key:"tryAgain",value:function(e){e&&e.preventDefault(),this.props.tryAgain()}},{key:"hasError",value:function(){return!(null!==this.state.tmpWallIdentifier)&&this.props.attributes.wallUrl&&!this.props.preview}},{key:"render",value:function(){var e=this;if(this.props.isFetching)return wp.element.createElement(f.a,null);var t=null===this.state.tmpWallIdentifier?this.getPropsWallIdentifier():this.state.tmpWallIdentifier;if(this.state.isEditing||!this.props.preview)return wp.element.createElement(c.a,{className:this.className,hasError:this.hasError(),icon:l.a,label:"Embed a Walls.io wall",onSubmit:function(t){return e.onSubmit(t)},value:t,onChange:function(t){return e.onWallChange(t)}});var n=Object(s.d)(this.props.attributes.wallUrl);return wp.element.createElement(b.Fragment,null,wp.element.createElement(m.BlockControls,null,wp.element.createElement(d.Toolbar,null,wp.element.createElement(d.IconButton,{className:"components-toolbar__control",label:Object(y._x)("Change Wall","icon label","wallsio"),icon:"edit",onClick:function(){return e.switchToUrlInput()}}))),wp.element.createElement(p.a,{details:n,changeDetail:function(t,n){return e.changeDetail(t,n)},minHeight:a.b.minHeight,maxHeight:a.b.maxHeight,defaultHeight:a.a.height}),wp.element.createElement(h.a,{className:this.className,details:n,preview:this.props.preview,changeDetail:function(t,n){return e.changeDetail(t,n)},toggleSelection:this.props.toggleSelection,isSelected:this.props.isSelected,minHeight:a.b.minHeight,maxHeight:a.b.maxHeight,defaultHeight:a.a.height,wallUrl:this.props.attributes.wallUrl}))}}]),t}(b.Component);t.a=v},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(15),u=n.n(a),l=n(22),c=n.n(l),s=n(34),f=n(4),p=(n.n(f),n(18)),h=(n.n(p),n(0)),b=(n.n(h),n(5)),m=(n.n(b),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),d=function(e){function t(){var e,n,o,a;r(this,t);for(var u=arguments.length,l=Array(u),c=0;c<u;c++)l[c]=arguments[c];return n=o=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.state={inputId:Object(s.a)("wallsio-wallidentifier-input"),wallIdentifier:""},a=n,i(o,a)}return o(t,e),m(t,[{key:"render",value:function(){var e=this.props,t=e.icon,n=e.label,r=e.value,i=e.onSubmit,o=e.onChange,a=c()(this.props.className,{"wallsio-has-error":this.props.hasError});return wp.element.createElement(f.Placeholder,{className:a,icon:wp.element.createElement(p.BlockIcon,{icon:t,showColors:!0}),label:n},wp.element.createElement("form",{onSubmit:i},wp.element.createElement("div",{className:"wallsio-input-section"},wp.element.createElement("div",{className:"wallsio-input-group wallsio-input-group-left"},wp.element.createElement("label",{htmlFor:this.state.inputId,className:"wallsio-input-group-addon wallsio-input-group-addon-left"},"my.walls.io /"),wp.element.createElement("input",{type:"text",className:"wallsio-input wallsio-input-right wallsio-url-input",id:this.state.inputId,value:r,placeholder:Object(b._x)("Enter Wall URL here\u2026","input placeholder","wallsio"),onChange:o}))),wp.element.createElement(f.Button,{isLarge:!0,isPrimary:!0,type:"submit"},Object(b._x)("Embed","button label"))),wp.element.createElement("div",{className:"wallsio-wallsio-input-info"},this.renderError(),this.renderSignupHint()))}},{key:"renderSignupHint",value:function(){return wp.element.createElement("div",{className:"wallsio-hint components-placeholder__instructions"},Object(b._x)("If you don't have a wall yet, create one at Walls.io.","signup instruction","wallsio"),wp.element.createElement("br",null),wp.element.createElement("a",{href:"https://walls.io/sign-up?utm_source=plugin&utm_medium=cta&utm_campaign=wordpress",target:"_blank",rel:"noopener noreferrer"},Object(b._x)("Sign up here","link text","wallsio")),Object(b._x)(" \u2013 we offer a free trial","signup instruction","wallsio"))}},{key:"renderError",value:function(){return this.props.hasError?wp.element.createElement(h.Fragment,null,wp.element.createElement("p",{className:"components-placeholder__error"},Object(b.__)("Sorry, this wall doesn't exist or is not public.","wallsio"),wp.element.createElement("br",null))):null}}]),t}(h.Component);d.propTypes={icon:u.a.element.isRequired,label:u.a.string.isRequired,value:u.a.string.isRequired,onChange:u.a.func.isRequired,onSubmit:u.a.func.isRequired,className:u.a.string},t.a=d},function(e,t,n){"use strict";(function(t){function r(){return null}var i=n(31),o=n(17),a=n(32),u=function(){};"production"!==t.env.NODE_ENV&&(u=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function l(e){var t=e&&(x&&e[x]||e[T]);if("function"===typeof t)return t}function c(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function s(e){this.message=e,this.stack=""}function f(e){function r(r,l,c,f,p,h,b){if(f=f||S,h=h||c,b!==o){if(n){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var d=f+":"+c;!i[d]&&a<3&&(u("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+f+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),i[d]=!0,a++)}}return null==l[c]?r?new s(null===l[c]?"The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+p+" `"+h+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(l,c,f,p,h)}if("production"!==t.env.NODE_ENV)var i={},a=0;var l=r.bind(null,!1);return l.isRequired=r.bind(null,!0),l}function p(e){function t(t,n,r,i,o,a){var u=t[n];if(j(u)!==e)return new s("Invalid "+i+" `"+o+"` of type `"+E(u)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return f(t)}function h(e){function t(t,n,r,i,a){if("function"!==typeof e)return new s("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=t[n];if(!Array.isArray(u)){return new s("Invalid "+i+" `"+a+"` of type `"+j(u)+"` supplied to `"+r+"`, expected an array.")}for(var l=0;l<u.length;l++){var c=e(u,l,r,i,a+"["+l+"]",o);if(c instanceof Error)return c}return null}return f(t)}function b(e){function t(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||S;return new s("Invalid "+i+" `"+o+"` of type `"+k(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return f(t)}function m(e){function n(t,n,r,i,o){for(var a=t[n],u=0;u<e.length;u++)if(c(a,e[u]))return null;return new s("Invalid "+i+" `"+o+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV&&u("Invalid argument supplied to oneOf, expected an instance of array."),r)}function d(e){function t(t,n,r,i,a){if("function"!==typeof e)return new s("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=t[n],l=j(u);if("object"!==l)return new s("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var c in u)if(u.hasOwnProperty(c)){var f=e(u,c,r,i,a+"."+c,o);if(f instanceof Error)return f}return null}return f(t)}function y(e){function n(t,n,r,i,a){for(var u=0;u<e.length;u++){if(null==(0,e[u])(t,n,r,i,a,o))return null}return new s("Invalid "+i+" `"+a+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&u("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var i=0;i<e.length;i++){var a=e[i];if("function"!==typeof a)return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(a)+" at index "+i+"."),r}return f(n)}function w(e){function t(t,n,r,i,a){var u=t[n],l=j(u);if("object"!==l)return new s("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var f=e[c];if(f){var p=f(u,c,r,i,a+"."+c,o);if(p)return p}}return null}return f(t)}function v(e){function t(t,n,r,a,u){var l=t[n],c=j(l);if("object"!==c)return new s("Invalid "+a+" `"+u+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var f=i({},t[n],e);for(var p in f){var h=e[p];if(!h)return new s("Invalid "+a+" `"+u+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var b=h(l,p,r,a,u+"."+p,o);if(b)return b}return null}return f(t)}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=l(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!g(r.value))return!1}else for(;!(r=i.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function O(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function j(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":O(t,e)?"symbol":t}function E(e){if("undefined"===typeof e||null===e)return""+e;var t=j(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=E(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function k(e){return e.constructor&&e.constructor.name?e.constructor.name:S}var x="function"===typeof Symbol&&Symbol.iterator,T="@@iterator",S="<<anonymous>>",P={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:function(){return f(r)}(),arrayOf:h,element:function(){function t(t,n,r,i,o){var a=t[n];if(!e(a)){return new s("Invalid "+i+" `"+o+"` of type `"+j(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return f(t)}(),instanceOf:b,node:function(){function e(e,t,n,r,i){return g(e[t])?null:new s("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}return f(e)}(),objectOf:d,oneOf:m,oneOfType:y,shape:w,exact:v};return s.prototype=Error.prototype,P.checkPropTypes=a,P.PropTypes=P,P}}).call(t,n(16))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,l=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var s in n)o.call(n,s)&&(l[s]=n[s]);if(i){u=i(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(l[u[f]]=n[u[f]])}}return l}},function(e,t,n){"use strict";(function(t){function r(e,n,r,u,l){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var s;try{if("function"!==typeof e[c]){var f=Error((u||"React class")+": "+r+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.");throw f.name="Invariant Violation",f}s=e[c](n,c,u,r,null,o)}catch(e){s=e}if(!s||s instanceof Error||i((u||"React class")+": type specification of "+r+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in a)){a[s.message]=!0;var p=l?l():"";i("Failed "+r+" type: "+s.message+(null!=p?p:""))}}}var i=function(){};if("production"!==t.env.NODE_ENV){var o=n(17),a={};i=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}e.exports=r}).call(t,n(16))},function(e,t,n){"use strict";function r(){}var i=n(17);e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return e+"-"+i()}function i(){return Math.floor(Math.random()*o())}function o(){return Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1}t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),u=(n.n(a),n(4)),l=(n.n(u),n(5)),c=(n.n(l),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),s=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),c(t,[{key:"render",value:function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading"},wp.element.createElement(u.Spinner,null),wp.element.createElement("p",null,Object(l.__)("Embedding\u2026","default")))}}]),t}(a.Component);t.a=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(15),u=n.n(a),l=n(13),c=n(0),s=(n.n(c),n(18)),f=(n.n(s),n(4)),p=(n.n(f),n(5)),h=(n.n(p),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),h(t,[{key:"onHeightChange",value:function(e){var t=Object(l.c)(e);this.props.changeDetail("height",t)}},{key:"render",value:function(){var e=this;return wp.element.createElement(s.InspectorControls,null,wp.element.createElement(f.PanelBody,{title:Object(p._x)("Walls.io settings","panel headline","wallsio"),className:"wallsio-components-panel__body"},wp.element.createElement(f.PanelRow,null,wp.element.createElement(f.TextControl,{label:Object(p._x)("Height in pixels","input label","wallsio"),value:this.props.details.height,type:"number",min:this.props.minHeight,max:this.props.maxHeight,step:"10",onChange:function(t){return e.onHeightChange(t)}})),wp.element.createElement(f.PanelRow,null,wp.element.createElement(f.ToggleControl,{label:Object(p._x)("Show background","input label","wallsio"),checked:this.props.details.showBackground,onChange:function(t){return e.props.changeDetail("showBackground",t)}})),wp.element.createElement(f.PanelRow,null,wp.element.createElement(f.ToggleControl,{label:Object(p._x)("Show header","input label","wallsio"),checked:this.props.details.showHeader,onChange:function(t){return e.props.changeDetail("showHeader",t)}}))))}}]),t}(c.Component);b.propTypes={changeDetail:u.a.func.isRequired,defaultHeight:u.a.number.isRequired,minHeight:u.a.number.isRequired,maxHeight:u.a.number.isRequired,details:u.a.shape({height:u.a.number}).isRequired},t.a=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(15),u=n.n(a),l=n(22),c=n.n(l),s=n(13),f=n(0),p=(n.n(f),n(4)),h=(n.n(p),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),h(t,[{key:"getHeight",value:function(){var e=this.props.details.height;return this.toValidHeight(e)}},{key:"toValidHeight",value:function(e){return e=Object(s.c)(e,this.props.defaultHeight),e<this.props.minHeight?this.props.minHeight:e>this.props.maxHeight?this.props.maxHeight:e}},{key:"onResizeStop",value:function(e,t,n,r){var i=Object(s.c)(r.height,0),o=this.getHeight()+i;this.props.changeDetail("height",o),this.props.toggleSelection(!0)}},{key:"iframeUrl",value:function(){return this.props.wallUrl.replace(/embedheight=[0-9]+[&]?/,"")}},{key:"render",value:function(){var e=this,t=wp.blocks.parseWithAttributeSchema(this.props.preview.html,{source:"attribute",selector:"iframe",attribute:"title"}),n=c()(this.props.className,"wallsio-wallsio-block-preview",{"is-selected":this.props.isSelected});return wp.element.createElement(p.ResizableBox,{className:n,size:{height:this.getHeight()},minHeight:this.props.minHeight,enable:{bottom:!0},onResizeStop:function(){return e.onResizeStop.apply(e,arguments)},onResizeStart:function(){return e.props.toggleSelection(!1)}},wp.element.createElement(p.FocusableIframe,{src:this.iframeUrl(),allowfullscreen:"allowfullscreen",frameborder:"0",title:t,border:"0",allow:"camera"}))}}]),t}(f.Component);b.propTypes={minHeight:u.a.number.isRequired,maxHeight:u.a.number.isRequired,defaultHeight:u.a.number.isRequired,preview:u.a.shape({html:u.a.string.isRequired}).isRequired,details:u.a.shape({height:u.a.number}).isRequired,changeDetail:u.a.func.isRequired,toggleSelection:u.a.func.isRequired,className:u.a.string.isRequired,wallUrl:u.a.string.isRequired},t.a=b},function(e,t){e.exports=wp.data},function(e,t,n){"use strict";var r=n(6);n.n(r),n(1),n(40),n(41),n(47),n(49),n(50),n(51);n.o(r,"flowRight")&&n.d(t,"a",function(){return r.flowRight})},function(e,t,n){"use strict";var r=n(0);n.n(r),n(1)},function(e,t,n){"use strict";var r=n(2),i=n(3),o=n(7),a=n(8),u=n(9),l=n(0),c=(n.n(l),n(44)),s=n.n(c),f=n(1);Object(f.a)(function(e){return e.prototype instanceof l.Component?function(e){function t(){return Object(r.a)(this,t),Object(o.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(i.a)(t,[{key:"shouldComponentUpdate",value:function(e,t){return!s()(e,this.props)||!s()(t,this.state)}}]),t}(e):function(t){function n(){return Object(r.a)(this,n),Object(o.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(i.a)(n,[{key:"shouldComponentUpdate",value:function(e){return!s()(e,this.props)}},{key:"render",value:function(){return Object(l.createElement)(e,this.props)}}]),n}(l.Component)},"pure")},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}t.a=i},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.a=r},function(e,t,n){"use strict";function r(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return i(e,t);if(a(e)&&a(t))return o(e,t)}return e===t}var i=n(45),o=n(46),a=Array.isArray;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r,o,a;if(e===t)return!0;if(n=i(e),r=i(t),n.length!==r.length)return!1;for(o=0;o<n.length;){if(a=n[o],e[a]!==t[a])return!1;o++}return!0}var i=Object.keys;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n;if(e===t)return!0;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}e.exports=r},function(e,t,n){"use strict";var r=(n(11),n(2),n(3),n(7),n(8),n(9),n(10),n(0)),i=(n.n(r),n(6)),o=(n.n(i),n(1),n(48));new o.a},function(e,t,n){"use strict";var r=n(2),i=n(3),o=n(6),a=(n.n(o),function(){function e(){Object(r.a)(this,e),this.listeners={},this.handleEvent=this.handleEvent.bind(this)}return Object(i.a)(e,[{key:"add",value:function(e,t){this.listeners[e]||(window.addEventListener(e,this.handleEvent),this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"remove",value:function(e,t){this.listeners[e]=Object(o.without)(this.listeners[e],t),this.listeners[e].length||(window.removeEventListener(e,this.handleEvent),delete this.listeners[e])}},{key:"handleEvent",value:function(e){Object(o.forEach)(this.listeners[e.type],function(t){t.handleEvent(e)})}}]),e}());t.a=a},function(e,t,n){"use strict";var r=n(11),i=n(2),o=n(3),a=n(7),u=n(8),l=n(9),c=n(0),s=(n.n(c),n(1));Object(s.a)(function(e){var t=0;return function(n){function s(){var e;return Object(i.a)(this,s),e=Object(a.a)(this,Object(u.a)(s).apply(this,arguments)),e.instanceId=t++,e}return Object(l.a)(s,n),Object(o.a)(s,[{key:"render",value:function(){return Object(c.createElement)(e,Object(r.a)({},this.props,{instanceId:this.instanceId}))}}]),s}(c.Component)},"withInstanceId")},function(e,t,n){"use strict";var r=n(11),i=n(2),o=n(3),a=n(7),u=n(8),l=n(9),c=n(10),s=n(0),f=(n.n(s),n(6)),p=(n.n(f),n(1));Object(p.a)(function(e){return function(t){function n(){var e;return Object(i.a)(this,n),e=Object(a.a)(this,Object(u.a)(n).apply(this,arguments)),e.timeouts=[],e.setTimeout=e.setTimeout.bind(Object(c.a)(Object(c.a)(e))),e.clearTimeout=e.clearTimeout.bind(Object(c.a)(Object(c.a)(e))),e}return Object(l.a)(n,t),Object(o.a)(n,[{key:"componentWillUnmount",value:function(){this.timeouts.forEach(clearTimeout)}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){var n=this,r=setTimeout(function(){e(),n.clearTimeout(r)},t);return this.timeouts.push(r),r})},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){clearTimeout(e),this.timeouts=Object(f.without)(this.timeouts,e)})},{key:"render",value:function(){return Object(s.createElement)(e,Object(r.a)({},this.props,{setTimeout:this.setTimeout,clearTimeout:this.clearTimeout}))}}]),n}(s.Component)},"withSafeTimeout")},function(e,t,n){"use strict";var r=(n(11),n(2),n(3),n(7),n(8),n(9),n(10),n(0));n.n(r),n(1)}]);