Skip to content

Instantly share code, notes, and snippets.

@hxii
Created August 13, 2020 06:45
Show Gist options
  • Save hxii/d74dcec24220c19fdea9590070d291a5 to your computer and use it in GitHub Desktop.
Save hxii/d74dcec24220c19fdea9590070d291a5 to your computer and use it in GitHub Desktop.
/*! block-builder - v1.0.1 - 06-11-2018 */
/* Limit of 100 removed */
!function(t,e){for(var n in e)t[n]=e[n]}(this,function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=164)}([function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){!function(){t.exports=this.wp.i18n}()},function(t,e,n){var r=n(3),o=n(0),i=n(64),u=n(14),c=n(10),f=function(t,e,n){var a,s,l,p=t&f.F,y=t&f.G,v=t&f.S,m=t&f.P,h=t&f.B,b=t&f.W,d=y?o:o[e]||(o[e]={}),g=d.prototype,x=y?r:v?r[e]:(r[e]||{}).prototype;for(a in y&&(n=e),n)(s=!p&&x&&void 0!==x[a])&&c(d,a)||(l=s?x[a]:n[a],d[a]=y&&"function"!=typeof x[a]?n[a]:h&&s?i(l,r):b&&x[a]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((d.virtual||(d.virtual={}))[a]=l,t&f.R&&g&&!g[a]&&u(g,a,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){!function(){t.exports=this.wp.components}()},function(t,e){!function(){t.exports=this.wp.element}()},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(24),o=n(65),i=n(42),u=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(72),o=n(30);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(26),o=n(58);t.exports=n(13)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=!n(38)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(47)("wks"),o=n(32),i=n(3).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var r=n(68);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}},function(t,e,n){var r=n(114),o=n(138);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e,n){var r=n(139),o=n(77);function i(e){return t.exports=i=o?r:function(t){return t.__proto__||r(t)},i(e)}t.exports=i},function(t,e,n){var r=n(145),o=n(148);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=r(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}},function(t,e,n){var r=n(55)("wks"),o=n(36),i=n(6).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(37);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(15);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(71),o=n(48);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(23),o=n(88),i=n(89),u=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(6),o=n(12),i=n(28),u=n(36)("src"),c=Function.toString,f=(""+c).split("toString");n(35).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var a="function"==typeof n;a&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(a&&(i(n,u)||o(n,u,t[e]?""+t[e]:f.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(30);t.exports=function(t){return Object(r(t))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports={}},function(t,e,n){var r=n(91),o=n(59);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(55)("keys"),o=n(36);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(15);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(24),o=n(120),i=n(48),u=n(46)("IE_PROTO"),c=function(){},f=function(){var t,e=n(66)("iframe"),r=i.length;for(e.style.display="none",n(124).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=f(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(47)("keys"),o=n(32);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=n(3),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(7).f,o=n(10),i=n(16)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(16)},function(t,e,n){var r=n(3),o=n(0),i=n(31),u=n(50),c=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(34),o=n(29),i=n(11),u=n(42),c=n(10),f=n(65),a=Object.getOwnPropertyDescriptor;e.f=n(8)?a:function(t,e){if(t=i(t),e=u(e,!0),f)try{return a(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(2),o=n(0),i=n(9);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(35),o=n(6),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(56)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,n){var r=n(37),o=n(6).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(100),o=n(62);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(26).f,o=n(28),i=n(22)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(109);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){t.exports=!n(8)&&!n(9)(function(){return 7!=Object.defineProperty(n(66)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(15),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){t.exports=n(112)},function(t,e,n){"use strict";var r=n(31),o=n(2),i=n(70),u=n(14),c=n(44),f=n(119),a=n(49),s=n(74),l=n(16)("iterator"),p=!([].keys&&"next"in[].keys()),y=function(){return this};t.exports=function(t,e,n,v,m,h,b){f(n,e,v);var d,g,x,O=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",w="values"==m,_=!1,j=t.prototype,E=j[l]||j["@@iterator"]||m&&j[m],k=E||O(m),P=m?w?O("entries"):k:void 0,T="Array"==e&&j.entries||E;if(T&&(x=s(T.call(new t)))!==Object.prototype&&x.next&&(a(x,S,!0),r||"function"==typeof x[l]||u(x,l,y)),w&&E&&"values"!==E.name&&(_=!0,k=function(){return E.call(this)}),r&&!b||!p&&!_&&j[l]||u(j,l,k),c[e]=k,c[S]=y,m)if(d={values:w?k:O("values"),keys:h?k:O("keys"),entries:P},b)for(g in d)g in j||i(j,g,d[g]);else o(o.P+o.F*(p||_),e,d);return d}},function(t,e,n){t.exports=n(14)},function(t,e,n){var r=n(10),o=n(11),i=n(121)(!1),u=n(46)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){var r=n(73);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(10),o=n(33),i=n(46)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(3),o=n(10),i=n(8),u=n(2),c=n(70),f=n(131).KEY,a=n(9),s=n(47),l=n(49),p=n(32),y=n(16),v=n(50),m=n(51),h=n(132),b=n(133),d=n(24),g=n(15),x=n(11),O=n(42),S=n(29),w=n(45),_=n(134),j=n(53),E=n(7),k=n(25),P=j.f,T=E.f,L=_.f,M=r.Symbol,F=r.JSON,C=F&&F.stringify,D=y("_hidden"),N=y("toPrimitive"),A={}.propertyIsEnumerable,I=s("symbol-registry"),R=s("symbols"),B=s("op-symbols"),G=Object.prototype,H="function"==typeof M,V=r.QObject,W=!V||!V.prototype||!V.prototype.findChild,z=i&&a(function(){return 7!=w(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(G,e);r&&delete G[e],T(t,e,n),r&&t!==G&&T(G,e,r)}:T,J=function(t){var e=R[t]=w(M.prototype);return e._k=t,e},U=H&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},q=function(t,e,n){return t===G&&q(B,e,n),d(t),e=O(e,!0),d(n),o(R,e)?(n.enumerable?(o(t,D)&&t[D][e]&&(t[D][e]=!1),n=w(n,{enumerable:S(0,!1)})):(o(t,D)||T(t,D,S(1,{})),t[D][e]=!0),z(t,e,n)):T(t,e,n)},K=function(t,e){d(t);for(var n,r=h(e=x(e)),o=0,i=r.length;i>o;)q(t,n=r[o++],e[n]);return t},Y=function(t){var e=A.call(this,t=O(t,!0));return!(this===G&&o(R,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(R,t)||o(this,D)&&this[D][t])||e)},Q=function(t,e){if(t=x(t),e=O(e,!0),t!==G||!o(R,e)||o(B,e)){var n=P(t,e);return!n||!o(R,e)||o(t,D)&&t[D][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=L(x(t)),r=[],i=0;n.length>i;)o(R,e=n[i++])||e==D||e==f||r.push(e);return r},$=function(t){for(var e,n=t===G,r=L(n?B:x(t)),i=[],u=0;r.length>u;)!o(R,e=r[u++])||n&&!o(G,e)||i.push(R[e]);return i};H||(c((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(B,n),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),z(this,t,S(1,n))};return i&&W&&z(G,t,{configurable:!0,set:e}),J(t)}).prototype,"toString",function(){return this._k}),j.f=Q,E.f=q,n(76).f=_.f=X,n(34).f=Y,n(52).f=$,i&&!n(31)&&c(G,"propertyIsEnumerable",Y,!0),v.f=function(t){return J(y(t))}),u(u.G+u.W+u.F*!H,{Symbol:M});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)y(Z[tt++]);for(var et=k(y.store),nt=0;et.length>nt;)m(et[nt++]);u(u.S+u.F*!H,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=M(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!H,"Object",{create:function(t,e){return void 0===e?w(t):K(w(t),e)},defineProperty:q,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:$}),F&&u(u.S+u.F*(!H||a(function(){var t=M();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!U(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!U(e))return e}),r[1]=e,C.apply(F,r)}}),M.prototype[N]||n(14)(M.prototype,N,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(71),o=n(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){t.exports=n(142)},function(t,e,n){"use strict";var r=n(23);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){t.exports=n(107)},function(t,e){!function(){t.exports=this.wp.blocks}()},function(t,e){!function(){t.exports=this.wp.editor}()},function(t,e){!function(){t.exports=this.wp.data}()},function(t,e,n){var r=n(149);function o(){return t.exports=o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}t.exports=o},function(t,e,n){var r=n(153),o=n(156),i=n(158),u=n(161);t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},c=i(n);"function"==typeof o&&(c=c.concat(o(n).filter(function(t){return r(n,t).enumerable}))),c.forEach(function(e){u(t,e,n[e])})}return t}},function(t,e,n){for(var r=n(86),o=n(60),i=n(27),u=n(6),c=n(12),f=n(39),a=n(22),s=a("iterator"),l=a("toStringTag"),p=f.Array,y={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(y),m=0;m<v.length;m++){var h,b=v[m],d=y[b],g=u[b],x=g&&g.prototype;if(x&&(x[s]||c(x,s,p),x[l]||c(x,l,b),f[b]=p,d))for(h in r)x[h]||i(x,h,r[h],!0)}},function(t,e,n){"use strict";var r=n(87),o=n(90),i=n(39),u=n(40);t.exports=n(93)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(22)("unscopables"),o=Array.prototype;void 0==o[r]&&n(12)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){t.exports=!n(13)&&!n(38)(function(){return 7!=Object.defineProperty(n(57)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(37);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(92);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(56),o=n(94),i=n(27),u=n(12),c=n(39),f=n(97),a=n(63),s=n(105),l=n(22)("iterator"),p=!([].keys&&"next"in[].keys()),y=function(){return this};t.exports=function(t,e,n,v,m,h,b){f(n,e,v);var d,g,x,O=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",w="values"==m,_=!1,j=t.prototype,E=j[l]||j["@@iterator"]||m&&j[m],k=E||O(m),P=m?w?O("entries"):k:void 0,T="Array"==e&&j.entries||E;if(T&&(x=s(T.call(new t)))!==Object.prototype&&x.next&&(a(x,S,!0),r||"function"==typeof x[l]||u(x,l,y)),w&&E&&"values"!==E.name&&(_=!0,k=function(){return E.call(this)}),r&&!b||!p&&!_&&j[l]||u(j,l,k),c[e]=k,c[S]=y,m)if(d={values:w?k:O("values"),keys:h?k:O("keys"),entries:P},b)for(g in d)g in j||i(j,g,d[g]);else o(o.P+o.F*(p||_),e,d);return d}},function(t,e,n){var r=n(6),o=n(35),i=n(12),u=n(27),c=n(95),f=function(t,e,n){var a,s,l,p,y=t&f.F,v=t&f.G,m=t&f.S,h=t&f.P,b=t&f.B,d=v?r:m?r[e]||(r[e]={}):(r[e]||{}).prototype,g=v?o:o[e]||(o[e]={}),x=g.prototype||(g.prototype={});for(a in v&&(n=e),n)l=((s=!y&&d&&void 0!==d[a])?d:n)[a],p=b&&s?c(l,r):h&&"function"==typeof l?c(Function.call,l):l,d&&u(d,a,l,t&f.U),g[a]!=l&&i(g,a,p),h&&x[a]!=l&&(x[a]=l)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e,n){var r=n(96);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(98),o=n(58),i=n(63),u={};n(12)(u,n(22)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(23),o=n(99),i=n(62),u=n(41)("IE_PROTO"),c=function(){},f=function(){var t,e=n(57)("iframe"),r=i.length;for(e.style.display="none",n(104).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=f(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(26),o=n(23),i=n(60);t.exports=n(13)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,f=0;c>f;)r.f(t,n=u[f++],e[n]);return t}},function(t,e,n){var r=n(28),o=n(40),i=n(101)(!1),u=n(41)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){var r=n(40),o=n(102),i=n(103);t.exports=function(t){return function(e,n,u){var c,f=r(e),a=o(f.length),s=i(u,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(61),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(61),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(6).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(28),o=n(106),i=n(41)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(59);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(108),t.exports=n(0).parseInt},function(t,e,n){var r=n(2),o=n(110);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(3).parseInt,o=n(111).trim,i=n(67),u=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(u.test(n)?16:10))}:r},function(t,e,n){var r=n(2),o=n(30),i=n(9),u=n(67),c="["+u+"]",f=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$"),s=function(t,e,n){var o={},c=i(function(){return!!u[t]()||"​…"!="​…"[t]()}),f=o[t]=c?e(l):u[t];n&&(o[n]=f),r(r.P+r.F*c,"String",o)},l=s.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(f,"")),2&e&&(t=t.replace(a,"")),t};t.exports=s},function(t,e,n){n(113);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(2);r(r.S+r.F*!n(8),"Object",{defineProperty:n(7).f})},function(t,e,n){var r=n(115),o=n(129);function i(t){return(i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t})(t)}function u(e){return"function"==typeof o&&"symbol"===i(r)?t.exports=u=function(t){return i(t)}:t.exports=u=function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":i(t)},u(e)}t.exports=u},function(t,e,n){t.exports=n(116)},function(t,e,n){n(117),n(125),t.exports=n(50).f("iterator")},function(t,e,n){"use strict";var r=n(118)(!0);n(69)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(43),o=n(30);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),f=r(n),a=c.length;return f<0||f>=a?t?"":void 0:(i=c.charCodeAt(f))<55296||i>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(45),o=n(29),i=n(49),u={};n(14)(u,n(16)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(7),o=n(24),i=n(25);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,f=0;c>f;)r.f(t,n=u[f++],e[n]);return t}},function(t,e,n){var r=n(11),o=n(122),i=n(123);t.exports=function(t){return function(e,n,u){var c,f=r(e),a=o(f.length),s=i(u,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(43),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(43),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(3).document;t.exports=r&&r.documentElement},function(t,e,n){n(126);for(var r=n(3),o=n(14),i=n(44),u=n(16)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var a=c[f],s=r[a],l=s&&s.prototype;l&&!l[u]&&o(l,u,a),i[a]=i.Array}},function(t,e,n){"use strict";var r=n(127),o=n(128),i=n(44),u=n(11);t.exports=n(69)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports=n(130)},function(t,e,n){n(75),n(135),n(136),n(137),t.exports=n(0).Symbol},function(t,e,n){var r=n(32)("meta"),o=n(15),i=n(10),u=n(7).f,c=0,f=Object.isExtensible||function(){return!0},a=!n(9)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!e)return"E";s(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!f(t))return!0;if(!e)return!1;s(t)}return t[r].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!i(t,r)&&s(t),t}}},function(t,e,n){var r=n(25),o=n(52),i=n(34);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),f=i.f,a=0;c.length>a;)f.call(t,u=c[a++])&&e.push(u);return e}},function(t,e,n){var r=n(73);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(11),o=n(76).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e){},function(t,e,n){n(51)("asyncIterator")},function(t,e,n){n(51)("observable")},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){t.exports=n(140)},function(t,e,n){n(141),t.exports=n(0).Object.getPrototypeOf},function(t,e,n){var r=n(33),o=n(74);n(54)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){n(143),t.exports=n(0).Object.setPrototypeOf},function(t,e,n){var r=n(2);r(r.S,"Object",{setPrototypeOf:n(144).set})},function(t,e,n){var r=n(15),o=n(24),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(64)(Function.call,n(53).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){t.exports=n(146)},function(t,e,n){n(147);var r=n(0).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(2);r(r.S,"Object",{create:n(45)})},function(t,e,n){var r=n(77);function o(e,n){return t.exports=o=r||function(t,e){return t.__proto__=e,t},o(e,n)}t.exports=o},function(t,e,n){t.exports=n(150)},function(t,e,n){n(151),t.exports=n(0).Object.assign},function(t,e,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(152)})},function(t,e,n){"use strict";var r=n(25),o=n(52),i=n(34),u=n(33),c=n(72),f=Object.assign;t.exports=!f||n(9)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=u(t),f=arguments.length,a=1,s=o.f,l=i.f;f>a;)for(var p,y=c(arguments[a++]),v=s?r(y).concat(s(y)):r(y),m=v.length,h=0;m>h;)l.call(y,p=v[h++])&&(n[p]=y[p]);return n}:f},function(t,e,n){t.exports=n(154)},function(t,e,n){n(155);var r=n(0).Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var r=n(11),o=n(53).f;n(54)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){t.exports=n(157)},function(t,e,n){n(75),t.exports=n(0).Object.getOwnPropertySymbols},function(t,e,n){t.exports=n(159)},function(t,e,n){n(160),t.exports=n(0).Object.keys},function(t,e,n){var r=n(33),o=n(25);n(54)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(68);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";n(163);var r=n(23),o=n(78),i=n(13),u=/./.toString,c=function(t){n(27)(RegExp.prototype,"toString",t,!0)};n(38)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,e,n){n(13)&&"g"!=/./g.flags&&n(26).f(RegExp.prototype,"flags",{configurable:!0,get:n(78)})},function(t,e,n){"use strict";n.r(e);n(85);var r=n(79),o=n.n(r),i=n(80),u=n(81),c=n(82),f=n(1),a=n(4),s=n(17),l=n.n(s),p=n(18),y=n.n(p),v=n(19),m=n.n(v),h=n(20),b=n.n(h),d=n(21),g=n.n(d),x=n(5),O=n(83),S=n.n(O),w=n(84),_=n.n(w),j=(n(162),function(t){function e(){return l()(this,e),m()(this,b()(e).apply(this,arguments))}return g()(e,t),y()(e,[{key:"createRandomString",value:function(t){for(var e="";e.length<t;)e+=Math.random().toString(36).substr(2);return e.substr(0,t)}},{key:"render",value:function(){var t="elementorGradient-"+this.createRandomString(5);return wp.element.createElement("svg",{viewBox:"0 0 448 512"},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:t,gradientTransform:"rotate(150)",x1:"0",y1:"75%",x2:"100%",y2:"25%"},wp.element.createElement("stop",{offset:"0%",stopColor:"#ED345D",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#362B74",stopOpacity:"1"}))),wp.element.createElement("path",{d:"M425.6 32H22.4C10 32 0 42 0 54.4v403.2C0 470 10 480 22.4 480h403.2c12.4 0 22.4-10 22.4-22.4V54.4C448 42 438 32 425.6 32M164.3 355.5h-39.8v-199h39.8v199zm159.3 0H204.1v-39.8h119.5v39.8zm0-79.6H204.1v-39.8h119.5v39.8zm0-79.7H204.1v-39.8h119.5v39.8z",fill:"url(#"+t+")"}))}}]),e}(x.Component)),E=function(t){function e(){return l()(this,e),m()(this,b()(e).apply(this,arguments))}return g()(e,t),y()(e,[{key:"render",value:function(){var t=Object(f.__)("Select a template from your library or","block-builder"),e=Object(f.__)("create a new one.","block-builder"),n=_()({},this.props),r=t+" "+e;return this.props.withLink&&(r=Object(x.createElement)("div",{},t+" ",Object(x.createElement)("a",{target:"_blank",href:elementorBlockBuilderConfig.create_new_post_url},e))),delete n.withLink,this.props.instructions&&(r=this.props.instructions,delete n.instructions),wp.element.createElement(a.Placeholder,S()({icon:j.prototype.render(),label:Object(f.__)("Elementor Library","block-builder"),instructions:r},n))}}],[{key:"defaultProps",get:function(){return{withLink:!1}}}]),e}(x.Component),k=function(t){function e(){var t;return l()(this,e),(t=m()(this,b()(e).call(this))).state={iFrameHeight:"0px",iFrameDisplay:!1,transformScale:1},t}return g()(e,t),y()(e,[{key:"componentDidUpdate",value:function(t){t.srcDoc!==this.props.srcDoc&&(this.nodeElement.parentElement.style="height: initial",this.setState({iFrameDisplay:!1}))}},{key:"render",value:function(){var t=this,e={transform:"scale( "+this.state.transformScale+" )",display:this.state.iFrameDisplay?"block":"none"};return wp.element.createElement("div",{className:"elementor-preview-wrapper",ref:function(e){t.nodeElement=e}},wp.element.createElement("iframe",{src:this.props.srcDoc,scrolling:"no",node:this.nodeElement,frameBorder:0,height:this.state.iFrameHeight,style:e,onLoad:function(){return setTimeout(function(){t.setState({iFrameHeight:"1000px",iFrameDisplay:!0});var e=t.nodeElement,n=e.children[0],r=e.children[1],o=e.parentElement,i=o.offsetWidth/1170;if(n){var u=n.contentWindow.document.body.scrollHeight,c=u*i+"px";t.setState({iFrameHeight:"10px"}),t.setState({iFrameHeight:u+"px",transformScale:i}),o.style="height: "+c,r.style="height: "+c+"; top: -"+(u+10)+"px;"}},550)}}),wp.element.createElement("div",{id:"elementor-overlay-"+this.props.templateId,className:"elementor-block-preview-overlay",style:{display:this.state.iFrameDisplay?"block":"none"}}),wp.element.createElement("div",{id:"elementor-preview-loader-"+this.props.templateId,className:"elementor-block-preview-loader",style:{display:this.state.iFrameDisplay?"none":"block",minHeight:"200px"}},wp.element.createElement(E,{instructions:""},wp.element.createElement(a.Spinner,null))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return t.srcDoc!==e.srcDoc?{srcDoc:t.srcDoc}:null}}]),e}(x.Component);Object(i.registerBlockType)("elementor/template",{title:Object(f.__)("Elementor Library","block-builder"),icon:j,description:Object(f.__)("Add Elementor templates to your Gutenberg content.","block-builder"),category:"common",attributes:{selectedTemplate:{type:"number",default:0},title:{type:"string",default:""}},edit:Object(c.withSelect)(function(t){return{templates:(0,t("core").getEntityRecords)("postType","elementor_library",{per_page:-1})}})(function(t){var e=React.createRef();if(!t.templates)return wp.element.createElement("div",{className:t.className},wp.element.createElement(E,null,Object(f.__)("Loading...","block-builder")));if(0===t.templates.length)return wp.element.createElement("div",{className:t.className},wp.element.createElement(E,null,wp.element.createElement(a.Button,{isDefault:!0,target:"_blank",href:elementorBlockBuilderConfig.create_new_post_url},Object(f.__)("Create Your First Template","block-builder"))));var n=[{value:0,label:"— "+Object(f.__)("Select a Template","block-builder")+" —"}],r=t.className,i="",c="",s=wp.element.createElement(a.SelectControl,{value:t.attributes.selectedTemplate,onChange:function(e){return t.setAttributes({selectedTemplate:o()(e)})},options:n});t.templates.length>0&&t.templates.forEach(function(r){n.push({label:r.title.rendered,value:r.id}),t.attributes.selectedTemplate===r.id&&(i=wp.element.createElement(a.Button,{isDefault:!0,target:"_blank",href:elementorBlockBuilderConfig.edit_url_pattern+r.id},Object(f.__)("Edit Template with Elementor","block-builder")),c=wp.element.createElement("div",{id:"elementor-template-block-inner-"+r.id},wp.element.createElement(k,{ref:e,srcDoc:elementorBlockBuilderConfig.preview_url_pattern+r.id,id:"elementor-template-"+r.id,templateId:r.id,className:"elementor-block-preview-frame",iFrameDisplay:!1})))}),""===c&&(c=wp.element.createElement(E,{withLink:!0},s));var l=wp.element.createElement(u.InspectorControls,{key:"inspector"},wp.element.createElement(a.PanelBody,{title:Object(f.__)("Settings","block-builder"),initialOpen:!0},s,i));return wp.element.createElement("div",{className:r},l,c)}),save:function(){return null}})}]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment