EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor - Version 3.6.1

Version Description

Download this release

Release Info

Developer wpdevteam
Plugin Icon wp plugin EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor
Version 3.6.1
Comparing to
See all releases

Code changes from version 3.6.0 to 3.6.1

Gutenberg/dist/blocks.build.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.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=8)}([function(e,t,n){"use strict";n.d(t,"e",function(){return l}),n.d(t,"j",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return u}),n.d(t,"h",function(){return m}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return f}),n.d(t,"m",function(){return h}),n.d(t,"b",function(){return b}),n.d(t,"d",function(){return w}),n.d(t,"c",function(){return y}),n.d(t,"a",function(){return g});var r=wp.components,o=r.G,i=r.Path,a=(r.Polygon,r.SVG),l=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#2196F3"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "}))),s=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24"},wp.element.createElement(o,null,wp.element.createElement(i,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z",style:{fill:"#FFC720"}}),wp.element.createElement(i,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(i,{d:"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z",style:{opacity:"0.1"}}),wp.element.createElement(i,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(i,{d:"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z",style:{opacity:"0.1"}}),wp.element.createElement(i,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),wp.element.createElement(i,{d:"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z",style:{fill:"#FFFFFF"}}),wp.element.createElement(i,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z",style:{fill:"url(#SVGID_2_)"}}))),c=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#43A047"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "}))),p=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#7850C1"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),u=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#DE5245"},d:"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z"}),wp.element.createElement(i,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(i,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z"}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),m=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#1C9957"},d:"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z "}),wp.element.createElement(i,{style:{fill:"#3E7BF1"},d:"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z "}),wp.element.createElement(i,{style:{fill:"#CBCCC9"},d:"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z "}),wp.element.createElement(i,{style:{fill:"#EFEFEF"},d:"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z "}),wp.element.createElement(i,{style:{fill:"#FFD73D"},d:"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z "}),wp.element.createElement(i,{style:{fill:"#D73F35"},d:"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z "}),wp.element.createElement(i,{style:{fill:"#752622"},d:"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "}))),d=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "}))),f=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#148ee0"},d:"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z"}),wp.element.createElement(i,{style:{fill:"#54bbff"},d:"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z"}))),h=wp.element.createElement(a,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement(i,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})),b=(wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 23"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{style:{fill:"#DA2B28"},className:"st0",d:"M55.4,3.7c-0.2-0.9-0.6-1.6-1.3-2.2c-0.7-0.6-1.4-0.9-2.3-1c-2.7-0.3-6.8-0.4-12.3-0.4 c-5.5,0-9.6,0.1-12.3,0.4c-0.9,0.1-1.6,0.5-2.3,1c-0.7,0.6-1.1,1.3-1.3,2.2c-0.4,1.7-0.6,4.3-0.6,7.8c0,3.5,0.2,6.1,0.6,7.8 c0.2,0.9,0.6,1.6,1.3,2.2c0.7,0.6,1.4,0.9,2.3,1c2.7,0.3,6.8,0.5,12.3,0.5c5.5,0,9.6-0.2,12.3-0.5c0.9-0.1,1.6-0.4,2.3-1 c0.7-0.6,1.1-1.3,1.3-2.2c0.4-1.7,0.6-4.3,0.6-7.8C56,8,55.8,5.4,55.4,3.7L55.4,3.7z M32.5,6h-2.4v12.6h-2.2V6h-2.3V3.9h6.9V6z M38.5,18.6h-2v-1.2c-0.8,0.9-1.6,1.4-2.3,1.4c-0.7,0-1.1-0.3-1.3-0.8c-0.1-0.4-0.2-0.9-0.2-1.6V7.6h2v8.1c0,0.5,0,0.7,0,0.8 c0,0.3,0.2,0.5,0.5,0.5c0.4,0,0.8-0.3,1.3-0.9V7.6h2V18.6z M46.1,15.3c0,1.1-0.1,1.8-0.2,2.2c-0.3,0.8-0.8,1.2-1.6,1.2 c-0.7,0-1.4-0.4-2.1-1.2v1.1h-2V3.9h2v4.8c0.6-0.8,1.3-1.2,2.1-1.2c0.8,0,1.3,0.4,1.6,1.2c0.1,0.4,0.2,1.1,0.2,2.2V15.3z M53.5,13.5h-4v1.9c0,1,0.3,1.5,1,1.5c0.5,0,0.8-0.3,0.9-0.8c0-0.1,0-0.6,0-1.4h2v0.3c0,0.7,0,1.2,0,1.3c0,0.4-0.2,0.8-0.5,1.2 c-0.5,0.8-1.3,1.2-2.4,1.2c-1,0-1.8-0.4-2.4-1.1c-0.4-0.5-0.6-1.4-0.6-2.6v-3.8c0-1.2,0.2-2,0.6-2.6c0.6-0.8,1.4-1.1,2.4-1.1 c1,0,1.8,0.4,2.3,1.1c0.4,0.5,0.6,1.4,0.6,2.6V13.5z M53.5,13.5"}),wp.element.createElement("path",{className:"st0",d:"M43.2,9.3c-0.3,0-0.7,0.2-1,0.5v6.7c0.3,0.3,0.7,0.5,1,0.5c0.6,0,0.9-0.5,0.9-1.5v-4.7 C44.1,9.8,43.8,9.3,43.2,9.3L43.2,9.3z M43.2,9.3"}),wp.element.createElement("path",{className:"st0",d:"M50.6,9.3c-0.7,0-1,0.5-1,1.5v1h2v-1C51.6,9.8,51.2,9.3,50.6,9.3L50.6,9.3z M50.6,9.3"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2.8,12.8v6h2.2v-6L7.7,4H5.5L4,9.8L2.4,4H0.1c0.4,1.2,0.9,2.6,1.4,4.1C2.2,10.2,2.6,11.7,2.8,12.8L2.8,12.8z M2.8,12.8"}),wp.element.createElement("path",{d:"M10.7,19c1,0,1.8-0.4,2.3-1.1c0.4-0.5,0.6-1.4,0.6-2.6v-3.9c0-1.2-0.2-2-0.6-2.6c-0.5-0.8-1.3-1.1-2.3-1.1 c-1,0-1.8,0.4-2.3,1.1C8,9.3,7.8,10.2,7.8,11.4v3.9c0,1.2,0.2,2.1,0.6,2.6C8.9,18.6,9.7,19,10.7,19L10.7,19z M9.8,11 c0-1,0.3-1.5,1-1.5c0.6,0,1,0.5,1,1.5v4.7c0,1-0.3,1.6-1,1.6c-0.6,0-1-0.5-1-1.6V11z M9.8,11"}),wp.element.createElement("path",{d:"M16.8,19c0.7,0,1.5-0.5,2.3-1.4v1.2h2V7.8h-2v8.4c-0.4,0.6-0.9,1-1.3,1c-0.3,0-0.4-0.2-0.5-0.5c0,0,0-0.3,0-0.8V7.8h-2 v8.7c0,0.8,0.1,1.3,0.2,1.7C15.7,18.7,16.1,19,16.8,19L16.8,19z M16.8,19"})))),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 276 340"},wp.element.createElement("path",{d:"M196.7.6H24.3C11.1.6.4 11.3.4 24.6v292.9c0 12.3 10 22.2 22.2 22.2H252c13.3 0 23.9-10.7 23.9-23.9V80.9L196.7.6z",fill:"#e94848"}),wp.element.createElement("path",{d:"M196.7 57c0 13.3 10.7 23.9 23.9 23.9H276L196.7.6V57z",fill:"#f19191"}),wp.element.createElement("linearGradient",{id:"A",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"77.111",x2:"116.568",y2:"77.111"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M113 84.5H48.3c-1.9 0-3.5-1.6-3.5-3.5v-7.7c0-1.9 1.6-3.5 3.5-3.5H113c1.9 0 3.5 1.6 3.5 3.5V81c.1 1.9-1.5 3.5-3.5 3.5z",fill:"url(#A)"}),wp.element.createElement("linearGradient",{id:"B",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.016",x2:"233.927",y2:"136.016"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",opacity:".8",fill:"url(#B)"}),wp.element.createElement("linearGradient",{id:"C",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.993",x2:"233.927",y2:"135.993"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"33.6",opacity:".7",fill:"url(#C)"}),wp.element.createElement("linearGradient",{id:"D",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.969",x2:"233.927",y2:"135.969"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"67.2",opacity:".6",fill:"url(#D)"}),wp.element.createElement("linearGradient",{id:"E",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.045",x2:"233.927",y2:"136.045"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"100.7",opacity:".4",fill:"url(#E)"}),wp.element.createElement("linearGradient",{id:"F",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"270.322",x2:"174.778",y2:"270.322"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M171.9 277.7H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9h124.3c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z",opacity:".3",fill:"url(#F)"}),wp.element.createElement("defs",null,wp.element.createElement("path",{id:"H",d:"M231 143.4H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9H231c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z"})))),w=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270",role:"img",focusable:"false"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"}))),y=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512"},wp.element.createElement("path",{fill:"#E2E5E7",d:"M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"}),wp.element.createElement("path",{fill:"#B0B7BD",d:"M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"}),wp.element.createElement("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 "}),wp.element.createElement("path",{fill:"#F15642",d:"M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16 V416z"}),wp.element.createElement("g",null,wp.element.createElement("path",{fill:"#FFFFFF",d:"M101.744,303.152c0-4.224,3.328-8.832,8.688-8.832h29.552c16.64,0,31.616,11.136,31.616,32.48 c0,20.224-14.976,31.488-31.616,31.488h-21.36v16.896c0,5.632-3.584,8.816-8.192,8.816c-4.224,0-8.688-3.184-8.688-8.816V303.152z M118.624,310.432v31.872h21.36c8.576,0,15.36-7.568,15.36-15.504c0-8.944-6.784-16.368-15.36-16.368H118.624z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M196.656,384c-4.224,0-8.832-2.304-8.832-7.92v-72.672c0-4.592,4.608-7.936,8.832-7.936h29.296 c58.464,0,57.184,88.528,1.152,88.528H196.656z M204.72,311.088V368.4h21.232c34.544,0,36.08-57.312,0-57.312H204.72z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M303.872,312.112v20.336h32.624c4.608,0,9.216,4.608,9.216,9.072c0,4.224-4.608,7.68-9.216,7.68 h-32.624v26.864c0,4.48-3.184,7.92-7.664,7.92c-5.632,0-9.072-3.44-9.072-7.92v-72.672c0-4.592,3.456-7.936,9.072-7.936h44.912 c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z"})),wp.element.createElement("path",{fill:"#CAD1D8",d:"M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"})),g=wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"186 38 76 76"},wp.element.createElement("path",{fill:"#fff",d:"M244 56h-40v40h40V56z"}),wp.element.createElement("path",{fill:"#EA4335",d:"M244 114l18-18h-18v18z"}),wp.element.createElement("path",{fill:"#FBBC04",d:"M262 56h-18v40h18V56z"}),wp.element.createElement("path",{fill:"#34A853",d:"M244 96h-40v18h40V96z"}),wp.element.createElement("path",{fill:"#188038",d:"M186 96v12c0 3.315 2.685 6 6 6h12V96h-18z"}),wp.element.createElement("path",{fill:"#1967D2",d:"M262 56V44c0-3.315-2.685-6-6-6h-12v18h18z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M244 38h-52c-3.315 0 -6 2.685-6 6v52h18V56h40V38z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M212.205 87.03c-1.495-1.01-2.53-2.485-3.095-4.435l3.47-1.43c.315 1.2.865 2.13 1.65 2.79.78.66 1.73.985 2.84.985 1.135 0 2.11-.345 2.925-1.035s1.225-1.57 1.225-2.635c0-1.09-.43-1.98-1.29-2.67-.86-.69-1.94-1.035-3.23-1.035h-2.005V74.13h1.8c1.11 0 2.045-.3 2.805-.9.76-.6 1.14-1.42 1.14-2.465 0 -.93-.34-1.67-1.02-2.225-.68-.555-1.54-.835-2.585-.835-1.02 0 -1.83.27-2.43.815a4.784 4.784 0 0 0 -1.31 2.005l-3.435-1.43c.455-1.29 1.29-2.43 2.515-3.415 1.225-.985 2.79-1.48 4.69-1.48 1.405 0 2.67.27 3.79.815 1.12.545 2 1.3 2.635 2.26.635.965.95 2.045.95 3.245 0 1.225-.295 2.26-.885 3.11-.59.85-1.315 1.5-2.175 1.955v.205a6.605 6.605 0 0 1 2.79 2.175c.725.975 1.09 2.14 1.09 3.5 0 1.36-.345 2.575-1.035 3.64s-1.645 1.905-2.855 2.515c-1.215.61-2.58.92-4.095.92-1.755.005-3.375-.5-4.87-1.51zM233.52 69.81l-3.81 2.755-1.905-2.89 6.835-4.93h2.62V88h-3.74V69.81z"}))},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.components.Spinner,o=function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading text-center"},wp.element.createElement(r,null),wp.element.createElement("p",null,__("Embedding\u2026")))};t.a=o},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.element.Fragment,o=wp.components,i=o.Button,a=o.Toolbar,l=wp.blockEditor.BlockControls,s=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(r,null,wp.element.createElement(l,null,wp.element.createElement(a,null,t&&wp.element.createElement(i,{className:"components-toolbar__control",label:__("Edit URL"),icon:"edit",onClick:n}))))};t.a=s},function(e,t,n){"use strict";var r=n(13),o=n.n(r),i=wp.i18n,__=i.__,_x=i._x,a=wp.components,l=a.Button,s=a.Placeholder,c=a.ExternalLink,p=wp.blockEditor.BlockIcon,u=function(e){var t=e.icon,n=e.label,r=e.value,i=e.onSubmit,a=e.onChange,u=e.cannotEmbed,m=e.docLink,d=e.DocTitle,f=o()("wp-block-embed",{});return wp.element.createElement("div",{className:"ep__components-placeholder"},wp.element.createElement(s,{icon:wp.element.createElement(p,{icon:t,showColors:!0}),label:n,className:f},wp.element.createElement("form",{onSubmit:i},wp.element.createElement("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:__("Enter URL to embed here\u2026"),onChange:a}),wp.element.createElement(l,{isSmall:!0,type:"submit"},_x("Embed","button label")),u&&wp.element.createElement("p",{className:"components-placeholder__error"},__("Sorry, we could not embed that content."),wp.element.createElement("br",null))),m&&wp.element.createElement("div",{className:"components-placeholder__learn-more"},wp.element.createElement(c,{href:m},d))))};t.a=u},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 o(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 i(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(6),l=n.n(a),s=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},c=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}}(),p=wp.element.Component,u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return i(t,e),c(t,[{key:"componentDidMount",value:function(){l.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("iframe",s({ref:this.myRef},this.props))}}]),t}(p);t.a=u},function(e,t,n){"use strict";function r(e){var t=embedpressObj.document_cta,n="",r="";if(embedpressObj.embedpress_pro&&t&&t.logo_url){var i=t.cta_url?t.cta_url:null,a=t.logo_xpos?t.logo_xpos+"%":"10%",l=t.logo_ypos?t.logo_ypos+"%":"10%",s=t.logo_opacity?t.logo_opacity/100:"10%",c=".ep-doc-"+e.id;return n="\n "+c+"{\n text-align: left;\n position: relative;\n }\n "+c+" .watermark {\n \t\tdisplay:inline-block;\n border: 0;\n position: absolute;\n bottom: "+l+";\n right: "+a+";\n max-width: 150px;\n max-height: 75px;\n opacity: "+s+";\n z-index: 5;\n -o-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -webkit-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n }\n "+c+" .watermark:hover {\n\t\t\t\t\t opacity: 1;\n\t\t\t\t }\n\t\t",i&&""!==i&&(r+="<a href="+i+">"),r+='<img class="watermark" alt="" src="'+t.logo_url+'"/>',i&&""!==i&&(r+="</a>"),wp.element.createElement(o,null,wp.element.createElement("style",{dangerouslySetInnerHTML:{__html:n}}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}return""}var o=wp.element.Fragment;t.a=r},function(e,t){e.exports=ReactDOM},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(9),n(14),n(18),n(22),n(26),n(30),n(34),n(38),n(42),n(46),n(50),n(65),n(71);!function(){var e=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})));wp.blocks.updateCategory("embedpress",{icon:e})}()},function(e,t,n){"use strict";var r=n(10),o=(n.n(r),n(11)),i=(n.n(o),n(12)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-docs-block"]&&l("embedpress/google-docs-block",{title:__("Google Docs"),icon:a.e,category:"embedpress",keywords:[__("embedpress"),__("google"),__("docs")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("figure",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element.Component,d=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.updateAlignment=e.updateAlignment.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"updateAlignment",value:function(e){var t=this.props.setAttributes,n=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};t(Object.assign({},n,{align:e}))}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),a=i[1];a&&"document"===a?(r.match(/([?&])embedded=true/i)||(r.indexOf("?")>-1?r+="&embedded=true":r+="?embedded=true"),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Docs URL");return!m||r?wp.element.createElement("div",null,wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.e,DocTitle:__("Learn more about Google doc embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})):wp.element.createElement("div",null,o?wp.element.createElement(l.a,null):null,wp.element.createElement(c.a,{src:m,onMouseUp:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameBorder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(m);t.a=d},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var l in r)i.call(r,l)&&r[l]&&e.push(l)}}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";var r=n(15),o=(n.n(r),n(16)),i=(n.n(o),n(17)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-slides-block"]&&l("embedpress/google-slides-block",{title:__("Google Slides"),icon:a.j,category:"embedpress",keywords:[__("embedpress"),__("google"),__("slides")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-presentation"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),a=i[1];a&&"presentation"==a?(r.match(/pub\?/i)&&(r=r.replace("/pub?","/embed?")),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Slides URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.j,DocTitle:__("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(19),o=(n.n(r),n(20)),i=(n.n(o),n(21)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-sheets-block"]&&l("embedpress/google-sheets-block",{title:__("Google Sheets"),icon:a.i,category:"embedpress",keywords:[__("embedpress"),__("google"),__("sheets")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),a=i[1];if(a&&"spreadsheets"==a){if(r.indexOf("?")>-1){var l=r.split("?");if(l=l[1],l=l.split("&"),console.log(l),l.length>0){var s=!1,c=!1;l.map(function(e){e.indexOf("widget=")?c=!0:e.indexOf("headers=")&&(s=!0)}),c||(r+="&widget=true"),s||(r+="&headers=false")}}else r+="?widget=true&headers=false";this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Sheets URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.i,DocTitle:__("Learn more about Google sheet embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(23),o=(n.n(r),n(24)),i=(n.n(o),n(25)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-forms-block"]&&l("embedpress/google-forms-block",{title:__("Google Forms"),icon:a.g,category:"embedpress",keywords:[__("embedpress"),__("google"),__("forms")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-forms"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=(wp.components.Disabled,function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),a=i[1];a&&"forms"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Forms URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.g,DocTitle:__("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d));t.a=h},function(e,t,n){"use strict";var r=n(27),o=(n.n(r),n(28)),i=(n.n(o),n(29)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-drawings-block"]&&l("embedpress/google-drawings-block",{title:__("Google Drawings"),icon:a.f,category:"embedpress",keywords:[__("embedpress"),__("google"),__("drawings")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-drawings"},wp.element.createElement("img",{src:t,width:"960",height:"720"}))}})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(0),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}}(),__=wp.i18n.__,u=wp.element,m=u.Component,d=u.Fragment,f=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),p(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),a=i[1];a&&"drawings"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,p=this.props.attributes.iframeSrc,u=__("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!p||r?wp.element.createElement(s.a,{label:u,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:c.f,DocTitle:__("Learn more about Google drawing embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"}):wp.element.createElement(d,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement("img",{src:p,onLoad:this.onLoad,style:{display:o?"none":""},width:"960",height:"720"}),wp.element.createElement(a.a,{showEditButton:p&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=f},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(31),i=(n.n(o),n(32)),a=(n.n(i),n(33)),l=n(0),__=wp.i18n.__,s=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-maps-block"]&&s("embedpress/google-maps-block",{title:__("Google Maps"),icon:l.h,category:"embedpress",keywords:[__("embedpress"),__("google"),__("maps")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:a.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-maps"},wp.element.createElement("iframe",r({src:t,frameborder:"0",width:"600",height:"450"},"frameborder","0")))}})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var r=this.decodeHTMLEntities(t);if(t.match("~(maps/embed|output=embed)~i"));else{var o=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,i=o.exec(r);i&&i.length>1&&i[1]&&i[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+i[1]+"&spn="+i[1]+"&t=m&z="+Math.round(parseInt(i[2]))+"&output=embed":this.setState({cannotEmbed:!0,editingURL:!0})}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Maps URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.h,DocTitle:__("Learn more about Google map embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(35),o=(n.n(r),n(36)),i=(n.n(o),n(37)),a=n(0),l=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},__=wp.i18n.__,s=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["twitch-block"]&&s("embedpress/twitch-block",{title:__("Twitch"),icon:a.k,category:"embedpress",keywords:[__("embedpress"),__("twitch")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs,o=n+"&parent="+embedpressObj.twitch_host;return wp.element.createElement("figure",{className:"ose-twitch-presentation"},wp.element.createElement("iframe",l({src:o},r,{frameborder:"0",width:"600",height:"450"})))}})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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},m=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}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(t&&t.match(r)){var o=this.decodeHTMLEntities(t),i=r.exec(o),a=i[1];console.log(a);var l,s="channel";switch(t.indexOf("clips.twitch.tv")>-1?s="clip":t.indexOf("/videos/")>-1?s="video":t.indexOf("#/chat$#")>-1&&(s="chat"),console.log(s),s){case"channel":o="https://player.twitch.tv/?channel="+a,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":o="https://clips.twitch.tv/embed?clip="+a+"&autoplay=false",l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":a=i[2],o="https://player.twitch.tv/?video="+a,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":o="http://www.twitch.tv/embed/"+a+"/chat",l={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+a+"'"}}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:o,attrs:l})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("Twitch URL");if(!f||r)return wp.element.createElement(s.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.k,DocTitle:__("Learn more about twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-streams-chat/"});var y=f+"&parent="+embedpressObj.twitch_host;return wp.element.createElement(h,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement(c.a,u({src:y},b,{onLoad:this.onLoad,style:{display:o?"none":""},onFocus:this.hideOverlay,width:"600",height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:f&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(39),o=(n.n(r),n(40)),i=(n.n(o),n(41)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["wistia-block"]&&l("embedpress/wistia-block",{title:__("Wistia"),icon:a.l,category:"embedpress",keywords:[__("embedpress"),__("wistia")],supports:{align:["wide","full","right","left"],default:""},edit:i.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-wistia"},wp.element.createElement("iframe",{src:t,allowtransparency:"true",frameborder:"0",class:"wistia_embed",name:"wistia_embed",width:"600",height:"330"}))}}]})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1,mediaId:null},e.setUrl(),e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentDidMount",value:function(){if(this.props.attributes.url){var e=this.props.attributes.url.match(/medias\/(.*)/),t=e[1];this.setState(Object.assign({},this.state,{mediaId:t}))}}},{key:"onLoad",value:function(){if(this.setState({fetching:!1}),embedpressObj.wisita_options){var e=Object.assign({},this.state);setTimeout(function(){var e=document.createElement("script");e.src="https://fast.wistia.com/assets/external/E-v1.js",e.charset="ISO-8859-1",document.body.appendChild(e)},100),setTimeout(function(){var t=document.createElement("script");t.type="text/javascript",t.innerHTML="window.pp_embed_wistia_labels = "+embedpressObj.wistia_labels,document.body.appendChild(t),t=document.createElement("script"),t.type="text/javascript",t.innerHTML='wistiaEmbed = Wistia.embed( "'+e.mediaId+'", '+embedpressObj.wisita_options+" );",document.body.appendChild(t)},400)}}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&(t.match(/^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i)||t.match(/^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp))){var r=t.match(/medias\/(.*)/),o=r[1],i="//fast.wistia.net/embed/iframe/"+o;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:o}),n({iframeSrc:i})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Wistia URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.l,DocTitle:__("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-videos-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"330"})),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(43),o=(n.n(r),n(44)),i=(n.n(o),n(45)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["youtube-block"]&&l("embedpress/youtube-block",{title:__("YouTube"),icon:a.m,category:"embedpress",keywords:[__("embedpress"),__("youtube")],supports:{align:["wide","full","right","left"],default:""},edit:i.a,save:function(){return null}})},function(e,t){},function(e,t){},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 o(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 i(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(2),l=n(1),s=n(3),c=n(4),p=n(0),u=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},m=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}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentWillMount",value:function(){this.state.url&&this.setUrl()}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(t&&r){var o=r[1],i="https://www.youtube.com/embed/"+o,a=new URL(i);if("undefined"!==typeof embedpressProObj)for(var l in embedpressProObj.youtubeParams)a.searchParams.set(l,embedpressProObj.youtubeParams[l]);this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:a.href,mediaId:o})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("YouTube URL");return!f||r?wp.element.createElement(s.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.m,DocTitle:__("Learn More About YouTube Embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"}):wp.element.createElement(h,null,o?wp.element.createElement(l.a,null):null,wp.element.createElement(c.a,u({src:f},b,{onLoad:this.onLoad,style:{display:o?"none":""},width:"640",onFocus:this.hideOverlay,height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:f&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(47),o=(n.n(r),n(48)),i=(n.n(o),n(49)),a=n(0),l=n(5),__=wp.i18n.__,s=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.document&&s("embedpress/document",{title:__("Document"),icon:a.b,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("ppt")],supports:{align:["wide","full","right","left"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:600},fileName:{type:"string"},mime:{type:"string"}},edit:i.a,save:function(e){var t=e.attributes,n=t.href,r=t.mime,o=t.id,i=t.width,a=t.height,s=t.powered_by,c="//view.officeapps.live.com/op/embed.aspx?src="+n;return wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+o,style:{height:a,width:i}},"application/pdf"===r&&wp.element.createElement("div",{style:{height:a,width:i},className:"embedpress-embed-document-pdf "+o,"data-emid":o,"data-emsrc":n}),"application/pdf"!==r&&wp.element.createElement("iframe",{style:{height:a,width:i},src:c,mozallowfullscreen:"true",webkitallowfullscreen:"true"}),s&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),embedpressObj.embedpress_pro&&wp.element.createElement(l.a,{id:o}))}})},function(e,t){},function(e,t){},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 o(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 i(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(4),l=n(5),s=n(1),c=n(0),p=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)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")}}(),u=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}}(),__=wp.i18n.__,m=wp.blob,d=m.getBlobByURL,f=m.isBlobURL,h=m.revokeBlobURL,b=wp.blockEditor,w=b.BlockIcon,y=b.MediaPlaceholder,g=b.InspectorControls,v=wp.element,E=v.Component,_=v.Fragment,L=wp.components,k=L.RangeControl,O=L.PanelBody,S=L.ExternalLink,x=L.ToggleControl,C=["application/pdf","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation"],U=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return i(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,i=n.href;if(f(i)){r({filesList:[d(i)],onFileChange:function(t){var n=p(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),h(i)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&(this.setState({loadPdf:!1}),PDFObject.embed(this.props.attributes.href,"."+this.props.attributes.id))}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),embedpressObj.embedpress_pro&&this.props.setAttributes({powered_by:!1}),"application/pdf"===e.mime&&(this.setState({loadPdf:!1}),PDFObject.embed(e.url,"."+this.props.attributes.id)))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.noticeUI,r=e.setAttributes,o=t.href,i=t.mime,p=t.id,u=t.width,m=t.height,d=t.powered_by,f=this.state,h=f.hasError,b=f.interactive,v=f.fetching,E=f.loadPdf;if(!o||h)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(y,{icon:wp.element.createElement(w,{icon:c.b}),labels:{title:__("Document"),instructions:__("Upload a file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:n,allowedTypes:C,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(S,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var L="//view.officeapps.live.com/op/embed.aspx?src="+o;return wp.element.createElement(_,null,v&&"application/pdf"!==i?wp.element.createElement(s.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+p,style:{height:m,width:u}},"application/pdf"===i&&wp.element.createElement("div",{style:{height:m,width:u},className:"embedpress-embed-document-pdf "+p,"data-emid":p,"data-emsrc":o}),"application/pdf"!==i&&wp.element.createElement(a.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:m,width:u,display:v||!E?"none":""},onLoad:this.onLoad,src:L}),!b&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),d&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!v&&wp.element.createElement(l.a,{id:p})),wp.element.createElement(g,{key:"inspector"},wp.element.createElement(O,{title:__("Embed Size","embedpress")},wp.element.createElement(k,{label:__("Width","embedpress"),value:u||720,onChange:function(e){return r({width:e})},max:1e3,min:1}),wp.element.createElement(k,{label:__("Height","embedpress"),value:m,onChange:function(e){return r({height:e})},max:1e3,min:1}),wp.element.createElement(x,{label:__("Powered By"),onChange:function(e){return r({powered_by:e})},checked:d}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(E);t.a=U},function(e,t,n){"use strict";var r=n(51),o=(n.n(r),n(52)),i=(n.n(o),n(53)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.embedpress&&l("embedpress/embedpress",{title:__("EmbedPress"),icon:a.d,category:"embedpress",keywords:["embedpress","embed","google","youtube","docs"],supports:{align:["right","left","center"],default:"center",lightBlockWrapper:!0},attributes:{url:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"450"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:0},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"},ispagination:{type:"boolean",default:!0},pagesize:{type:"number",default:6},columns:{type:"string",default:"2"},gapbetweenvideos:{type:"number",default:30},limit:{type:"number",default:9},orderby:{type:"string",default:"desc"},gapbetweenitem:{type:"number",default:30},layout:{type:"string",default:"ep-grid"},preset:{type:"string",default:"ep-preset-1"},nftperrow:{type:"number",default:3},nftimage:{type:"boolean",default:!0},nfttitle:{type:"boolean",default:!0},nftcreator:{type:"boolean",default:!0},prefix_nftcreator:{type:"string",default:"Created By"},nftprice:{type:"boolean",default:!0},prefix_nftprice:{type:"string",default:"Price"},nftlastsale:{type:"boolean",default:!0},prefix_nftlastsale:{type:"string",default:"Last Sale"},nftbutton:{type:"boolean",default:!0},label_nftbutton:{type:"string",default:"See Details"},alignment:{type:"string",default:"ep-item-center"},itemBGColor:{type:"string"},titleColor:{type:"string"},titleFontsize:{type:"number"},creatorColor:{type:"string"},creatorFontsize:{type:"number"},creatorLinkColor:{type:"string"},creatorLinkFontsize:{type:"number"},priceColor:{type:"string"},priceFontsize:{type:"number"},lastSaleColor:{type:"string"},lastSaleFontsize:{type:"number"},buttonTextColor:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextFontsize:{type:"number"}},edit:i.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then(function(e){r("next",e)},function(e){r("throw",e)});e(l)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){function t(){w({editingURL:!0})}function n(e){var t=this;if(e&&e.preventDefault(),v){w({fetching:!0});(function(){var e=r(l.a.mark(function e(n){var r,o,i,a,s;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="",o="",se&&(i={pagesize:C||6,gapbetweenvideos:10,ispagination:x||!1,columns:U||"3"},r="&"+new URLSearchParams(i).toString()),ce&&(a={limit:j||20,orderby:M||"desc",layout:B||"ep-grid",preset:R||"ep-preset-1",nftperrow:P||"3",gapbetweenitem:F||30,nftimage:D||!1,nftcreator:z||!1,prefix_nftcreator:I||"",nfttitle:N||!1,nftprice:A||!1,prefix_nftprice:H||"",nftlastsale:V||!1,prefix_nftlastsale:G||"",nftbutton:Z||!1,label_nftbutton:W||"",itemBGColor:Y||"",titleColor:$||"",titleFontsize:q||"",creatorColor:K||"",creatorFontsize:J||"",creatorLinkColor:Q||"",creatorLinkFontsize:X||"",priceColor:ee||"",priceFontsize:te||"",lastSaleColor:ne||"",lastSaleFontsize:re||"",buttonTextColor:oe||"",buttonBackgroundColor:ie||"",buttonFontSize:ae||""},o="&"+new URLSearchParams(a).toString()),s=n.split("#"),s=encodeURIComponent(s[0]),e.next=8,fetch(embedpressObj.site_url+"/wp-json/embedpress/v1/oembed/embedpress?url="+s+"&width="+S+"&height="+O+r+o).then(function(e){return e.json()});case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,t)}));return function(_x){return e.apply(this,arguments)}})()(v).then(function(e){w({fetching:!1}),w(e.data&&404===e.data.status||!e.embed?{cannotEmbed:!0,editingURL:!0}:{embedHTML:e.embed,cannotEmbed:!1,editingURL:!1})})}else w({cannotEmbed:!0,fetching:!1,editingURL:!0})}var i=e.clientId,a=e.attributes,m=e.className,w=e.setAttributes,v=a.url,E=a.editingURL,_=a.fetching,L=a.cannotEmbed,k=(a.interactive,a.embedHTML),O=a.height,S=a.width,x=a.ispagination,C=a.pagesize,U=a.columns,T=a.gapbetweenvideos,j=a.limit,B=a.layout,R=a.preset,M=a.orderby,P=a.nftperrow,F=a.gapbetweenitem,D=a.nftimage,z=a.nftcreator,I=a.prefix_nftcreator,N=a.nfttitle,A=a.nftprice,H=a.prefix_nftprice,V=a.nftlastsale,G=a.prefix_nftlastsale,Z=a.nftbutton,W=a.label_nftbutton,Y=(a.alignment,a.itemBGColor),$=a.titleColor,q=a.titleFontsize,K=a.creatorColor,J=a.creatorFontsize,Q=a.creatorLinkColor,X=a.creatorLinkFontsize,ee=a.priceColor,te=a.priceFontsize,ne=a.lastSaleColor,re=a.lastSaleFontsize,oe=a.buttonTextColor,ie=a.buttonBackgroundColor,ae=a.buttonFontSize,le=b?b():[],se=v.match(/\/channel\/|\/c\/|\/user\/|(?:https?:\/\/)?(?:www\.)?(?:youtube.com\/)(\w+)[^?\/]*$/i),ce=v.match(/\/collection\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.com\/)(\w+)[^?\/]*$/i);g(function(){if(k&&!E&&!_){var e=k.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);e=[].concat(o(e));var t=!0,n=!1,r=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var l=i.value;if(l&&"undefined"!=typeof l[1]){var s=l[1],c=d()(s);if(document.getElementById(c))continue;var p=document.createElement("script");p.type="text/javascript",p.setAttribute("id",c),p.setAttribute("src",s),document.body.appendChild(p)}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}}},[k]),g(function(){var e=setTimeout(function(){(k&&!E||_)&&n()},300);return function(){return clearTimeout(e)}},[C,j,B,R,M,D,N,A,H,V,G,P,Z,W,z,I,Y,$,q,K,J,Q,X,ee,te,ne,re,oe,ie,ae]);var pe="repeat(auto-fit, minmax(250px, 1fr))";return U>0&&(pe="repeat(auto-fit, minmax(calc("+100/U+"% - "+T+"px), 1fr))"),wp.element.createElement(y,null,wp.element.createElement(f.a,{attributes:a,setAttributes:w,isYTChannel:se,isOpensea:ce}),(!k||!!E)&&!_&&wp.element.createElement("div",le,wp.element.createElement(p.a,{label:__("EmbedPress - Embed anything from 150+ sites"),onSubmit:n,value:v,cannotEmbed:L,onChange:function(e){return w({url:e.target.value})},icon:h.d,DocTitle:__("Learn more about EmbedPress"),docLink:"https://embedpress.com/docs/"})),(!ce||!!E||0===E)&&_&&wp.element.createElement("div",{className:m},wp.element.createElement(c.a,null)," "),k&&!E&&(!_||ce)&&wp.element.createElement("figure",le,wp.element.createElement(u.a,{style:{display:_&&!ce?"none":""},dangerouslySetInnerHTML:{__html:k}}),_&&wp.element.createElement("div",{style:{filter:"grayscale(1))",backgroundColor:"#fffafa",opacity:"0.7"},className:"block-library-embed__interactive-overlay",onMouseUp:w({interactive:!0})}),!ce&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:w({interactive:!0})}),wp.element.createElement(s.a,{showEditButton:k&&!L,switchBackToURLInput:t})),se&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+" .ep-youtube__content__block .youtube__content__body .content__wrap{\n\t\t\t\t\t\t\t\tgap: "+T+"px!important;\n\t\t\t\t\t\t\t\tmargin-top: "+T+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube .ep-first-video iframe{\n\t\t\t\t\t\t\t\tmax-height: "+O+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube > iframe{\n\t\t\t\t\t\t\t\theight: "+O+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ep-youtube__content__block .youtube__content__body .content__wrap {\n\t\t\t\t\t\t\t\tgrid-template-columns: "+pe+";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ep-youtube__content__block .ep-youtube__content__pagination{\n\t\t\t\t\t\t\t\tdisplay: flex!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"+(!x&&"#block-"+i+" .ep-youtube__content__block .ep-youtube__content__pagination{\n\t\t\t\t\t\t\t\t\tdisplay: none!important;\n\t\t\t\t\t\t\t\t}")+"\n\n\t\t\t\t\t\t\t"),!se&&!ce&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+" .ose-embedpress-responsive{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t\theight: "+O+"px!important\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" iframe{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t\theight: "+O+"px!important\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube > iframe{\n\t\t\t\t\t\t\t\theight: "+O+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube{\n\t\t\t\t\t\t\t\theight: "+O+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"),ce&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+"{\n\t\t\t\t\t\t\t\twidth: 900px;\n\t\t\t\t\t\t\t\tmax-width: 100%!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"))}t.a=i;var a=n(54),l=n.n(a),s=n(2),c=n(1),p=n(3),u=n(57),m=n(58),d=n.n(m),f=n(61),h=n(0),__=(n(63),wp.i18n.__),b=wp.blockEditor.useBlockProps,w=wp.element,y=w.Fragment,g=w.useEffect},function(e,t,n){e.exports=n(55)},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(56),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),l=new d(r||[]);return a._invoke=c(e,n,l),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,o,i,a){var l=r(e[n],e,o);if("throw"!==l.type){var s=l.arg,c=s.value;return c&&"object"===typeof c&&y.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},a)}a(l.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function c(e,t,n){var o=O;return function(i,a){if(o===x)throw new Error("Generator is already running");if(o===C){if("throw"===i)throw a;return h()}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var s=p(l,n);if(s){if(s===U)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===O)throw o=C,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=x;var c=r(e,t,n);if("normal"===c.type){if(o=n.done?C:S,c.arg===U)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=C,n.method="throw",n.arg=c.arg)}}}function p(e,t){var n=e.iterator[t.method];if(n===b){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=b,p(e,t),"throw"===t.method))return U;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return U}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,U;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=b),t.delegate=null,U):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,U)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){if(e){var t=e[v];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=b,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:b,done:!0}}var b,w=Object.prototype,y=w.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},v=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",_=g.toStringTag||"@@toStringTag",L="object"===typeof e,k=t.regeneratorRuntime;if(k)return void(L&&(e.exports=k));k=t.regeneratorRuntime=L?e.exports:{},k.wrap=n;var O="suspendedStart",S="suspendedYield",x="executing",C="completed",U={},T={};T[v]=function(){return this};var j=Object.getPrototypeOf,B=j&&j(j(f([])));B&&B!==w&&y.call(B,v)&&(T=B);var R=a.prototype=o.prototype=Object.create(T);i.prototype=R.constructor=a,a.constructor=i,a[_]=i.displayName="GeneratorFunction",k.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},k.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,_ in e||(e[_]="GeneratorFunction")),e.prototype=Object.create(R),e},k.awrap=function(e){return{__await:e}},l(s.prototype),s.prototype[E]=function(){return this},k.AsyncIterator=s,k.async=function(e,t,r,o){var i=new s(n(e,t,r,o));return k.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},l(R),R[_]="Generator",R[v]=function(){return this},R.toString=function(){return"[object Generator]"},k.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},k.values=f,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(m),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=b)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=b),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),l=y.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,U):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),U},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),m(n),U}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;m(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=b),U}}}(function(){return this}()||Function("return this")())},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 o(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 i(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(6),l=n.n(a),s=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},c=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}}(),p=wp.element.Component,u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return i(t,e),c(t,[{key:"componentDidMount",value:function(){l.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("div",s({ref:this.myRef},this.props))}}]),t}(p);t.a=u},function(e,t,n){!function(){var t=n(59),r=n(7).utf8,o=n(60),i=n(7).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?i.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var l=t.bytesToWords(e),s=8*e.length,c=1732584193,p=-271733879,u=-1732584194,m=271733878,d=0;d<l.length;d++)l[d]=16711935&(l[d]<<8|l[d]>>>24)|4278255360&(l[d]<<24|l[d]>>>8);l[s>>>5]|=128<<s%32,l[14+(s+64>>>9<<4)]=s;for(var f=a._ff,h=a._gg,b=a._hh,w=a._ii,d=0;d<l.length;d+=16){var y=c,g=p,v=u,E=m;c=f(c,p,u,m,l[d+0],7,-680876936),m=f(m,c,p,u,l[d+1],12,-389564586),u=f(u,m,c,p,l[d+2],17,606105819),p=f(p,u,m,c,l[d+3],22,-1044525330),c=f(c,p,u,m,l[d+4],7,-176418897),m=f(m,c,p,u,l[d+5],12,1200080426),u=f(u,m,c,p,l[d+6],17,-1473231341),p=f(p,u,m,c,l[d+7],22,-45705983),c=f(c,p,u,m,l[d+8],7,1770035416),m=f(m,c,p,u,l[d+9],12,-1958414417),u=f(u,m,c,p,l[d+10],17,-42063),p=f(p,u,m,c,l[d+11],22,-1990404162),c=f(c,p,u,m,l[d+12],7,1804603682),m=f(m,c,p,u,l[d+13],12,-40341101),u=f(u,m,c,p,l[d+14],17,-1502002290),p=f(p,u,m,c,l[d+15],22,1236535329),c=h(c,p,u,m,l[d+1],5,-165796510),m=h(m,c,p,u,l[d+6],9,-1069501632),u=h(u,m,c,p,l[d+11],14,643717713),p=h(p,u,m,c,l[d+0],20,-373897302),c=h(c,p,u,m,l[d+5],5,-701558691),m=h(m,c,p,u,l[d+10],9,38016083),u=h(u,m,c,p,l[d+15],14,-660478335),p=h(p,u,m,c,l[d+4],20,-405537848),c=h(c,p,u,m,l[d+9],5,568446438),m=h(m,c,p,u,l[d+14],9,-1019803690),u=h(u,m,c,p,l[d+3],14,-187363961),p=h(p,u,m,c,l[d+8],20,1163531501),c=h(c,p,u,m,l[d+13],5,-1444681467),m=h(m,c,p,u,l[d+2],9,-51403784),u=h(u,m,c,p,l[d+7],14,1735328473),p=h(p,u,m,c,l[d+12],20,-1926607734),c=b(c,p,u,m,l[d+5],4,-378558),m=b(m,c,p,u,l[d+8],11,-2022574463),u=b(u,m,c,p,l[d+11],16,1839030562),p=b(p,u,m,c,l[d+14],23,-35309556),c=b(c,p,u,m,l[d+1],4,-1530992060),m=b(m,c,p,u,l[d+4],11,1272893353),u=b(u,m,c,p,l[d+7],16,-155497632),p=b(p,u,m,c,l[d+10],23,-1094730640),c=b(c,p,u,m,l[d+13],4,681279174),m=b(m,c,p,u,l[d+0],11,-358537222),u=b(u,m,c,p,l[d+3],16,-722521979),p=b(p,u,m,c,l[d+6],23,76029189),c=b(c,p,u,m,l[d+9],4,-640364487),m=b(m,c,p,u,l[d+12],11,-421815835),u=b(u,m,c,p,l[d+15],16,530742520),p=b(p,u,m,c,l[d+2],23,-995338651),c=w(c,p,u,m,l[d+0],6,-198630844),m=w(m,c,p,u,l[d+7],10,1126891415),u=w(u,m,c,p,l[d+14],15,-1416354905),p=w(p,u,m,c,l[d+5],21,-57434055),c=w(c,p,u,m,l[d+12],6,1700485571),m=w(m,c,p,u,l[d+3],10,-1894986606),u=w(u,m,c,p,l[d+10],15,-1051523),p=w(p,u,m,c,l[d+1],21,-2054922799),c=w(c,p,u,m,l[d+8],6,1873313359),m=w(m,c,p,u,l[d+15],10,-30611744),u=w(u,m,c,p,l[d+6],15,-1560198380),p=w(p,u,m,c,l[d+13],21,1309151649),c=w(c,p,u,m,l[d+4],6,-145523070),m=w(m,c,p,u,l[d+11],10,-1120210379),u=w(u,m,c,p,l[d+2],15,718787259),p=w(p,u,m,c,l[d+9],21,-343485551),c=c+y>>>0,p=p+g>>>0,u=u+v>>>0,m=m+E>>>0}return t.endian([c,p,u,m])};a._ff=function(e,t,n,r,o,i,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<i|l>>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}};e.exports=n}()},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isYTChannel,s=e.isOpensea,c=t.width,p=t.height,u=t.editingURL,m=t.embedHTML;return!u&&m&&wp.element.createElement(l,null,!s&&wp.element.createElement(a,{title:__("Embeded Options")},wp.element.createElement("div",null,wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.")),wp.element.createElement(i,{label:__("Width"),value:c,onChange:function(e){return n({width:e})}}),wp.element.createElement(i,{label:__("Height"),value:p,onChange:function(e){return n({height:e})}})),r&&wp.element.createElement(o.a,{attributes:t,setAttributes:n})),s&&wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__InspectorControl_OpenSea___default.a,{attributes:t,setAttributes:n}))}t.a=r;var o=n(62);throw new Error('Cannot find module "./InspectorControl/OpenSea"');var __,i,a,l},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.ispagination,o=t.pagesize,c=t.columns,p=t.gapbetweenvideos;return wp.element.createElement("div",null,wp.element.createElement(i,{label:__("Video Per Page"),value:o,onChange:function(e){return n({pagesize:e})},type:"number",max:50}),wp.element.createElement("p",null,"Specify the number of videos you wish to show on each page."),wp.element.createElement(a,{label:__("Column"),value:c,options:[{label:"Auto",value:"auto"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"}],onChange:function(e){return n({columns:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(l,{label:__("Gap Between Videos"),value:p,onChange:function(e){return n({gapbetweenvideos:e})},min:1,max:100}),wp.element.createElement("p",null,"Specify the gap between youtube videos."),wp.element.createElement(s,{label:__("Pagination"),checked:r,onChange:function(e){return n({ispagination:e})}}))}t.a=r;var __=wp.i18n.__,o=wp.components,i=o.TextControl,a=o.SelectControl,l=o.RangeControl,s=o.ToggleControl},function(e,t,n){"use strict";n(64),wp.i18n.__},function(e,t,n){"use strict";function r(){return wp.element.createElement("div",{class:"ep_nft_item"},wp.element.createElement("svg",{id:"ejvt20hDbyT1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 345",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"ejvt20hDbyT9-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT9-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT9-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"})),wp.element.createElement("linearGradient",{id:"ejvt20hDbyT10-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT10-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT10-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"})),wp.element.createElement("linearGradient",{id:"ejvt20hDbyT11-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT11-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT11-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"}))),wp.element.createElement("rect",{width:320,height:189,rx:3,ry:3,fill:"#e8efff"}),wp.element.createElement("rect",{width:320,height:20,rx:3,ry:3,transform:"translate(0 219)",fill:"#e8efff"}),wp.element.createElement("rect",{width:271,height:20,rx:3,ry:3,transform:"translate(0 249)",fill:"#e8efff"}),wp.element.createElement("rect",{width:130,height:46,rx:3,ry:3,transform:"translate(0 299)",fill:"#e8efff"}),wp.element.createElement("rect",{width:80,height:12,rx:3,ry:3,transform:"translate(25 316)",fill:"#ced9f0"}),wp.element.createElement("g",{mask:"url(#ejvt20hDbyT12)"},wp.element.createElement("rect",{id:"ejvt20hDbyT9",width:79.455,height:58.345,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29575 -195.005 288.679)",fill:"url(#ejvt20hDbyT9-fill)",strokeWidth:0}),wp.element.createElement("rect",{id:"ejvt20hDbyT10",width:79.455,height:57.876,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29575 -194.736 204.238)",fill:"url(#ejvt20hDbyT10-fill)",strokeWidth:0}),wp.element.createElement("rect",{id:"ejvt20hDbyT11",width:79.455,height:164.549,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29574 -194.029 -17.716)",fill:"url(#ejvt20hDbyT11-fill)",strokeWidth:0}),wp.element.createElement("mask",{id:"ejvt20hDbyT12",maskType:"luminance"},wp.element.createElement("rect",{width:320,height:189,rx:3,ry:3,fill:"#e8efff"}),wp.element.createElement("rect",{width:320,height:20,rx:3,ry:3,transform:"translate(0 219)",fill:"#e8efff"}),wp.element.createElement("rect",{width:271,height:20,rx:3,ry:3,transform:"translate(0 249)",fill:"#e8efff"}),wp.element.createElement("rect",{width:130,height:46,rx:3,ry:3,transform:"translate(0 299)",fill:"#e8efff"}),wp.element.createElement("rect",{width:80,height:12,rx:3,ry:3,transform:"translate(25 316)",fill:"#ced9f0"}))),wp.element.createElement("script",null)))}t.a=r},function(e,t,n){"use strict";var r=n(66),o=(n.n(r),n(67)),i=(n.n(o),n(68)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-pdf"]&&l("embedpress/embedpress-pdf",{title:__("EmbedPress PDF"),icon:a.c,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("document")],supports:{align:["left","center","right"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},presentation:{type:"boolean",default:!0},position:{type:"string",default:"top"},download:{type:"boolean",default:!0},open:{type:"boolean",default:!1},copy_text:{type:"boolean",default:!0},toolbar:{type:"boolean",default:!0},doc_details:{type:"boolean",default:!0},doc_rotation:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:450},fileName:{type:"string"},mime:{type:"string"}},edit:i.a,save:function(e){return null}})},function(e,t){},function(e,t){},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 o(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 i(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(4),l=n(5),s=n(1),c=n(69),p=(n.n(c),n(70)),u=(n.n(p),n(0)),m=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)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")}}(),d=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}}(),__=wp.i18n.__,f=wp.blob,h=f.getBlobByURL,b=f.isBlobURL,w=f.revokeBlobURL,y=wp.blockEditor,g=y.BlockIcon,v=y.MediaPlaceholder,E=y.InspectorControls,_=wp.element,L=_.Component,k=_.Fragment,O=wp.components,S=O.RangeControl,x=O.PanelBody,C=O.ExternalLink,U=O.ToggleControl,T=["application/pdf"],j=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.iframeManupulate=e.iframeManupulate.bind(e),e.isPro=e.isPro.bind(e),e.addProAlert=e.addProAlert.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return i(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,i=n.href;if(b(i)){r({filesList:[h(i)],onFileChange:function(t){var n=m(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),w(i)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&this.setState({loadPdf:!1})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),void 0!==embedpressObj.branding&&void 0!==embedpressObj.branding.powered_by&&this.props.setAttributes({powered_by:embedpressObj.branding.powered_by}),"application/pdf"===e.mime&&this.setState({loadPdf:!1}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"isDisplay",value:function(e){return e=e?"block":"none"}},{key:"iframeManupulate",value:function(e,t,n,r,o,i,a,l,s,c){var p=this,u=setInterval(function(){var m="",d=document.querySelector(e).contentWindow.document,f=d.getElementsByTagName("head")[0],h=d.createElement("style");h.setAttribute("id","EBiframeStyleID"),!1===i&&(t=!1,r=!0,o=!1,a=!0,l=!1,s=!1,c=!1),i=p.isDisplay(i),t=p.isDisplay(t),r=p.isDisplay(r),o=p.isDisplay(o),a=p.isDisplay(a),"block"===a&&(a="all"),s=p.isDisplay(s),c=p.isDisplay(c),"top"===n?(n="top:0;bottom:auto;",m=""):(n="bottom:0;top:auto;",m="\n\t\t\t\t.findbar, .secondaryToolbar {\n\t\t\t\t\ttop: auto;bottom: 32px;\n\t\t\t\t}\n\t\t\t\t.doorHangerRight:after{\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t\tbottom: -16px;\n\t\t\t\t}\n\t\t\t\t .doorHangerRight:before {\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t\tbottom: -18px;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.findbar.doorHanger:before {\n\t\t\t\t\tbottom: -18px;\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t}\n\t\t\t\t.findbar.doorHanger:after {\n\t\t\t\t\tbottom: -16px;\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t}\n\t\t\t"),h.textContent="\n\t\t\t.toolbar{\n\t\t\t\tdisplay: "+i+"!important;\n\t\t\t\tposition: absolute;\n\t\t\t\t"+n+"\n\n\t\t\t}\n\n\t\t\t#secondaryToolbar{\n\t\t\t\tdisplay: "+i+";\n\t\t\t}\n\t\t\t#secondaryPresentationMode, #toolbarViewerRight #presentationMode{\n\t\t\t\tdisplay: "+t+"!important;\n\t\t\t}\n\t\t\t#secondaryOpenFile, #toolbarViewerRight #openFile{\n\t\t\t\tdisplay: "+o+"!important;\n\t\t\t}\n\t\t\t#secondaryDownload, #secondaryPrint, #toolbarViewerRight #print, #toolbarViewerRight #download{\n\t\t\t\tdisplay: "+r+"!important;\n\t\t\t}\n\t\t\t#pageRotateCw{\n\t\t\t\tdisplay: "+c+"!important;\n\t\t\t}\n\t\t\t#pageRotateCcw{\n\t\t\t\tdisplay: "+c+"!important;\n\t\t\t}\n\t\t\t#documentProperties{\n\t\t\t\tdisplay: "+s+"!important;\n\t\t\t}\n\t\t\t.textLayer{\n\t\t\t\tuser-select: "+a+"!important;\n\t\t\t}\n\t\t\t\n\t\t\t"+m+"\n\t\t\t\n\t\t",f&&(d.getElementById("EBiframeStyleID")&&d.getElementById("EBiframeStyleID").remove(),f.appendChild(h),clearInterval(u))},100)}},{key:"addProAlert",value:function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")}},{key:"removeAlert",value:function(){document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",function(e){document.querySelector(".pro__alert__wrap").style.display="none"})}},{key:"isPro",value:function(e){var t=document.createElement("div");return t.innerHTML='\n\t\t<div class="pro__alert__wrap" style="display: none;">\n\t\t\t<div class="pro__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>\n\t\t\t\t\t<h2>Opps...</h2>\n\t\t\t\t\t<p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p>\n\t\t\t\t\t<a href="#" class="button radius-10">Close</a>\n\t\t\t</div>\n\t\t</div>\n\t\t',t}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeUI,o=t.setAttributes,i=t.clientId,c=n.href,m=n.mime,d=n.id,f=n.width,h=n.height,b=n.powered_by,w=n.presentation,y=n.position,_=n.download,L=n.open,O=n.toolbar,j=n.copy_text,B=n.toolbar_position,R=n.doc_details,M=n.doc_rotation,P=this.state,F=P.hasError,D=P.interactive,z=P.fetching,I=P.loadPdf,N=embedpressObj.is_pro_plugin_active;if(N||(o({download:!0}),o({copy_text:!0})),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(this.isPro("none")),this.removeAlert()),!c||F)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(v,{icon:wp.element.createElement(g,{icon:u.c}),labels:{title:__("EmbedPress PDF"),instructions:__("Upload a PDF file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:r,allowedTypes:T,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(C,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var A="//view.officeapps.live.com/op/embed.aspx?src="+c,H=embedpressObj.pdf_renderer+"?file="+c;return this.iframeManupulate("."+d,w,y,_,L,O,j,B,R,M),wp.element.createElement(k,null,z&&"application/pdf"!==m?wp.element.createElement(s.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+d,style:{width:f,maxWidth:"100%"},id:"ep-doc-"+this.props.clientId},"application/pdf"===m&&wp.element.createElement("iframe",{powered_by:b,style:{height:h,width:f},className:"embedpress-embed-document-pdf "+d,"data-emid":d,"data-emsrc":c,src:H}),"application/pdf"!==m&&wp.element.createElement(a.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:h,width:f,display:z||!I?"none":""},onLoad:this.onLoad,src:A}),!D&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),b&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!z&&wp.element.createElement(l.a,{id:d})),wp.element.createElement(E,{key:"inspector"},wp.element.createElement(x,{title:__("Embed Size(px)","embedpress")},wp.element.createElement(S,{label:__("Width","embedpress"),value:f,onChange:function(e){return o({width:e})},max:1e3,min:1}),wp.element.createElement(S,{label:__("Height","embedpress"),value:h,onChange:function(e){return o({height:e})},max:1e3,min:1})),wp.element.createElement(x,{title:__("PDF Control Settings","embedpress"),initialOpen:!1},wp.element.createElement("div",{className:N?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,N)}},wp.element.createElement(U,{label:__("Toolbar","embedpress"),description:__("Show or Hide toolbar. Note: If you disable toolbar access then every toolbar options will be disabled","embedpress"),onChange:function(e){return o({toolbar:e})},checked:O,style:{marginTop:"30px"}}),!N&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),O&&wp.element.createElement(k,null,wp.element.createElement(p.__experimentalToggleGroupControl,{label:"Toolbar Position",value:y,onChange:function(e){return o({position:e})}},wp.element.createElement(p.__experimentalToggleGroupControlOption,{value:"top",label:"Top"}),wp.element.createElement(p.__experimentalToggleGroupControlOption,{value:"bottom",label:"Bottom"})),wp.element.createElement(U,{label:__("Presentation Mode","embedpress"),onChange:function(e){return o({presentation:e})},checked:w}),wp.element.createElement("div",{className:N?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,N)}},wp.element.createElement(U,{label:__("Print/Download","embedpress"),onChange:function(e){return o({download:e})},checked:_}),!N&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement("div",{className:N?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,N)}},wp.element.createElement(U,{label:__("Copy Text","embedpress"),onChange:function(e){return o({copy_text:e})},checked:j,className:"disabled"}),!N&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(U,{label:__("Rotation","embedpress"),onChange:function(e){return o({doc_rotation:e})},checked:M}),wp.element.createElement(U,{label:__("Properties","embedpress"),onChange:function(e){return o({doc_details:e})},checked:R}),wp.element.createElement(U,{label:__("Powered By","embedpress"),onChange:function(e){return o({powered_by:e})},checked:b})))),wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+" {\n\t\t\t\t\t\t\t\twidth:-webkit-fill-available;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t.embedpress-el-powered{\n\t\t\t\t\t\t\t\tmax-width: "+f+"\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.alignright .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: right!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.alignleft .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: left;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(L);t.a=j},function(e,t){e.exports=wp.apiFetch},function(e,t){e.exports=wp.components},function(e,t,n){"use strict";var r=n(72),o=(n.n(r),n(73)),i=(n.n(o),n(74)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-calendar"]&&l("embedpress/embedpress-calendar",{title:__("Google Calendar"),icon:a.a,category:"embedpress",keywords:["embedpress","embed","calendar","calender","google","cal","events","task","birthday"],supports:{align:["left","center","right"],default:"center",lightBlockWrapper:!0},attributes:{id:{type:"string"},powered_by:{type:"boolean",default:!0},is_public:{type:"boolean",default:!0},width:{type:"string",default:600},height:{type:"string",default:600},url:{type:"string",default:""},embedHTML:{type:"string",default:""}},edit:i.a,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){d({editingURL:!0,is_public:!0})}function n(e){e&&e.preventDefault(),w?(d({fetching:!0}),setTimeout(function(){d({fetching:!1,cannotEmbed:!1,editingURL:!1,embedHTML:"ready"})},500)):d({cannotEmbed:!0,fetching:!1,editingURL:!0})}var r=e.attributes,c=e.className,d=e.setAttributes,w=r.url,y=r.editingURL,g=r.fetching,v=r.cannotEmbed,E=r.embedHTML,_=r.height,L=r.width,k=r.powered_by,O=r.is_public,S=r.align,x=h?h({className:"align"+S,style:{width:L+"px",height:_+"px"}}):[];return wp.element.createElement(b,null,wp.element.createElement(f,null,wp.element.createElement(u,{title:__("Customize Embedded Calendar","embedpress")},wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.","embedpress")),wp.element.createElement(p,{label:__("Width","embedpress"),value:L,onChange:function(e){return d({width:e})}}),wp.element.createElement(p,{label:__("Height","embedpress"),value:_,onChange:function(e){return d({height:e})}})),wp.element.createElement(u,{title:__("Calendar Type and other options","embedpress")},wp.element.createElement("p",null,__("You can show public calendar without any API key","embedpress")),wp.element.createElement(m,{label:__("Powered By","embedpress"),onChange:function(e){return d({powered_by:e})},checked:k}),wp.element.createElement(m,{label:__("Embedding Public Calendar","embedpress"),onChange:function(e){return d({is_public:e})},checked:O}))),(!E||y)&&!g&&O&&wp.element.createElement("div",x,wp.element.createElement(i.a,{label:__("Public Calendar Link"),onSubmit:n,value:w,cannotEmbed:v,onChange:function(e){return d({url:e.target.value})},icon:a.a,DocTitle:__("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})),g?wp.element.createElement("div",{className:c},wp.element.createElement(o.a,null)," "):null,E&&O&&!y&&!g&&wp.element.createElement("figure",x,O&&wp.element.createElement("iframe",{style:{display:g?"none":""},src:w,width:L,height:_}),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(l.a,{showEditButton:E&&!v,switchBackToURLInput:t})),!O&&wp.element.createElement("figure",s({className:"testing"},x),wp.element.createElement("p",null,"Private Calendar will show in the frontend only.",wp.element.createElement("br",null),wp.element.createElement("strong",null,"Note: Private calendar needs EmbedPress Pro.")),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(l.a,{showEditButton:E&&!v,switchBackToURLInput:t})))}t.a=r;var o=n(1),i=n(3),a=n(0),l=n(2),s=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},c=wp.components,p=c.TextControl,u=c.PanelBody,m=c.ToggleControl,d=wp.blockEditor,f=d.InspectorControls,h=d.useBlockProps,b=wp.element.Fragment,__=wp.i18n.__}]);
1
+ !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.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=8)}([function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"j",function(){return c}),n.d(t,"i",function(){return s}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return u}),n.d(t,"h",function(){return m}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return f}),n.d(t,"m",function(){return h}),n.d(t,"b",function(){return b}),n.d(t,"d",function(){return w}),n.d(t,"c",function(){return y}),n.d(t,"a",function(){return g});var r=wp.components,o=r.G,i=r.Path,l=(r.Polygon,r.SVG),a=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#2196F3"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "}))),c=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24"},wp.element.createElement(o,null,wp.element.createElement(i,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z",style:{fill:"#FFC720"}}),wp.element.createElement(i,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(i,{d:"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z",style:{opacity:"0.1"}}),wp.element.createElement(i,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(i,{d:"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z",style:{opacity:"0.1"}}),wp.element.createElement(i,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),wp.element.createElement(i,{d:"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z",style:{fill:"#FFFFFF"}}),wp.element.createElement(i,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z",style:{fill:"url(#SVGID_2_)"}}))),s=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#43A047"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "}))),p=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#7850C1"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),u=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#DE5245"},d:"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z"}),wp.element.createElement(i,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(i,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z"}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),m=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#1C9957"},d:"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z "}),wp.element.createElement(i,{style:{fill:"#3E7BF1"},d:"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z "}),wp.element.createElement(i,{style:{fill:"#CBCCC9"},d:"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z "}),wp.element.createElement(i,{style:{fill:"#EFEFEF"},d:"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z "}),wp.element.createElement(i,{style:{fill:"#FFD73D"},d:"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z "}),wp.element.createElement(i,{style:{fill:"#D73F35"},d:"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z "}),wp.element.createElement(i,{style:{fill:"#752622"},d:"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "}))),d=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "}))),f=wp.element.createElement(l,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(i,{style:{fill:"#148ee0"},d:"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z"}),wp.element.createElement(i,{style:{fill:"#54bbff"},d:"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z"}))),h=wp.element.createElement(l,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement(i,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})),b=(wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 23"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{style:{fill:"#DA2B28"},className:"st0",d:"M55.4,3.7c-0.2-0.9-0.6-1.6-1.3-2.2c-0.7-0.6-1.4-0.9-2.3-1c-2.7-0.3-6.8-0.4-12.3-0.4 c-5.5,0-9.6,0.1-12.3,0.4c-0.9,0.1-1.6,0.5-2.3,1c-0.7,0.6-1.1,1.3-1.3,2.2c-0.4,1.7-0.6,4.3-0.6,7.8c0,3.5,0.2,6.1,0.6,7.8 c0.2,0.9,0.6,1.6,1.3,2.2c0.7,0.6,1.4,0.9,2.3,1c2.7,0.3,6.8,0.5,12.3,0.5c5.5,0,9.6-0.2,12.3-0.5c0.9-0.1,1.6-0.4,2.3-1 c0.7-0.6,1.1-1.3,1.3-2.2c0.4-1.7,0.6-4.3,0.6-7.8C56,8,55.8,5.4,55.4,3.7L55.4,3.7z M32.5,6h-2.4v12.6h-2.2V6h-2.3V3.9h6.9V6z M38.5,18.6h-2v-1.2c-0.8,0.9-1.6,1.4-2.3,1.4c-0.7,0-1.1-0.3-1.3-0.8c-0.1-0.4-0.2-0.9-0.2-1.6V7.6h2v8.1c0,0.5,0,0.7,0,0.8 c0,0.3,0.2,0.5,0.5,0.5c0.4,0,0.8-0.3,1.3-0.9V7.6h2V18.6z M46.1,15.3c0,1.1-0.1,1.8-0.2,2.2c-0.3,0.8-0.8,1.2-1.6,1.2 c-0.7,0-1.4-0.4-2.1-1.2v1.1h-2V3.9h2v4.8c0.6-0.8,1.3-1.2,2.1-1.2c0.8,0,1.3,0.4,1.6,1.2c0.1,0.4,0.2,1.1,0.2,2.2V15.3z M53.5,13.5h-4v1.9c0,1,0.3,1.5,1,1.5c0.5,0,0.8-0.3,0.9-0.8c0-0.1,0-0.6,0-1.4h2v0.3c0,0.7,0,1.2,0,1.3c0,0.4-0.2,0.8-0.5,1.2 c-0.5,0.8-1.3,1.2-2.4,1.2c-1,0-1.8-0.4-2.4-1.1c-0.4-0.5-0.6-1.4-0.6-2.6v-3.8c0-1.2,0.2-2,0.6-2.6c0.6-0.8,1.4-1.1,2.4-1.1 c1,0,1.8,0.4,2.3,1.1c0.4,0.5,0.6,1.4,0.6,2.6V13.5z M53.5,13.5"}),wp.element.createElement("path",{className:"st0",d:"M43.2,9.3c-0.3,0-0.7,0.2-1,0.5v6.7c0.3,0.3,0.7,0.5,1,0.5c0.6,0,0.9-0.5,0.9-1.5v-4.7 C44.1,9.8,43.8,9.3,43.2,9.3L43.2,9.3z M43.2,9.3"}),wp.element.createElement("path",{className:"st0",d:"M50.6,9.3c-0.7,0-1,0.5-1,1.5v1h2v-1C51.6,9.8,51.2,9.3,50.6,9.3L50.6,9.3z M50.6,9.3"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2.8,12.8v6h2.2v-6L7.7,4H5.5L4,9.8L2.4,4H0.1c0.4,1.2,0.9,2.6,1.4,4.1C2.2,10.2,2.6,11.7,2.8,12.8L2.8,12.8z M2.8,12.8"}),wp.element.createElement("path",{d:"M10.7,19c1,0,1.8-0.4,2.3-1.1c0.4-0.5,0.6-1.4,0.6-2.6v-3.9c0-1.2-0.2-2-0.6-2.6c-0.5-0.8-1.3-1.1-2.3-1.1 c-1,0-1.8,0.4-2.3,1.1C8,9.3,7.8,10.2,7.8,11.4v3.9c0,1.2,0.2,2.1,0.6,2.6C8.9,18.6,9.7,19,10.7,19L10.7,19z M9.8,11 c0-1,0.3-1.5,1-1.5c0.6,0,1,0.5,1,1.5v4.7c0,1-0.3,1.6-1,1.6c-0.6,0-1-0.5-1-1.6V11z M9.8,11"}),wp.element.createElement("path",{d:"M16.8,19c0.7,0,1.5-0.5,2.3-1.4v1.2h2V7.8h-2v8.4c-0.4,0.6-0.9,1-1.3,1c-0.3,0-0.4-0.2-0.5-0.5c0,0,0-0.3,0-0.8V7.8h-2 v8.7c0,0.8,0.1,1.3,0.2,1.7C15.7,18.7,16.1,19,16.8,19L16.8,19z M16.8,19"})))),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 276 340"},wp.element.createElement("path",{d:"M196.7.6H24.3C11.1.6.4 11.3.4 24.6v292.9c0 12.3 10 22.2 22.2 22.2H252c13.3 0 23.9-10.7 23.9-23.9V80.9L196.7.6z",fill:"#e94848"}),wp.element.createElement("path",{d:"M196.7 57c0 13.3 10.7 23.9 23.9 23.9H276L196.7.6V57z",fill:"#f19191"}),wp.element.createElement("linearGradient",{id:"A",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"77.111",x2:"116.568",y2:"77.111"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M113 84.5H48.3c-1.9 0-3.5-1.6-3.5-3.5v-7.7c0-1.9 1.6-3.5 3.5-3.5H113c1.9 0 3.5 1.6 3.5 3.5V81c.1 1.9-1.5 3.5-3.5 3.5z",fill:"url(#A)"}),wp.element.createElement("linearGradient",{id:"B",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.016",x2:"233.927",y2:"136.016"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",opacity:".8",fill:"url(#B)"}),wp.element.createElement("linearGradient",{id:"C",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.993",x2:"233.927",y2:"135.993"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"33.6",opacity:".7",fill:"url(#C)"}),wp.element.createElement("linearGradient",{id:"D",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.969",x2:"233.927",y2:"135.969"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"67.2",opacity:".6",fill:"url(#D)"}),wp.element.createElement("linearGradient",{id:"E",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.045",x2:"233.927",y2:"136.045"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"100.7",opacity:".4",fill:"url(#E)"}),wp.element.createElement("linearGradient",{id:"F",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"270.322",x2:"174.778",y2:"270.322"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M171.9 277.7H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9h124.3c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z",opacity:".3",fill:"url(#F)"}),wp.element.createElement("defs",null,wp.element.createElement("path",{id:"H",d:"M231 143.4H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9H231c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z"})))),w=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270",role:"img",focusable:"false"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"}))),y=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512"},wp.element.createElement("path",{fill:"#E2E5E7",d:"M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"}),wp.element.createElement("path",{fill:"#B0B7BD",d:"M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"}),wp.element.createElement("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 "}),wp.element.createElement("path",{fill:"#F15642",d:"M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16 V416z"}),wp.element.createElement("g",null,wp.element.createElement("path",{fill:"#FFFFFF",d:"M101.744,303.152c0-4.224,3.328-8.832,8.688-8.832h29.552c16.64,0,31.616,11.136,31.616,32.48 c0,20.224-14.976,31.488-31.616,31.488h-21.36v16.896c0,5.632-3.584,8.816-8.192,8.816c-4.224,0-8.688-3.184-8.688-8.816V303.152z M118.624,310.432v31.872h21.36c8.576,0,15.36-7.568,15.36-15.504c0-8.944-6.784-16.368-15.36-16.368H118.624z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M196.656,384c-4.224,0-8.832-2.304-8.832-7.92v-72.672c0-4.592,4.608-7.936,8.832-7.936h29.296 c58.464,0,57.184,88.528,1.152,88.528H196.656z M204.72,311.088V368.4h21.232c34.544,0,36.08-57.312,0-57.312H204.72z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M303.872,312.112v20.336h32.624c4.608,0,9.216,4.608,9.216,9.072c0,4.224-4.608,7.68-9.216,7.68 h-32.624v26.864c0,4.48-3.184,7.92-7.664,7.92c-5.632,0-9.072-3.44-9.072-7.92v-72.672c0-4.592,3.456-7.936,9.072-7.936h44.912 c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z"})),wp.element.createElement("path",{fill:"#CAD1D8",d:"M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"})),g=wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"186 38 76 76"},wp.element.createElement("path",{fill:"#fff",d:"M244 56h-40v40h40V56z"}),wp.element.createElement("path",{fill:"#EA4335",d:"M244 114l18-18h-18v18z"}),wp.element.createElement("path",{fill:"#FBBC04",d:"M262 56h-18v40h18V56z"}),wp.element.createElement("path",{fill:"#34A853",d:"M244 96h-40v18h40V96z"}),wp.element.createElement("path",{fill:"#188038",d:"M186 96v12c0 3.315 2.685 6 6 6h12V96h-18z"}),wp.element.createElement("path",{fill:"#1967D2",d:"M262 56V44c0-3.315-2.685-6-6-6h-12v18h18z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M244 38h-52c-3.315 0 -6 2.685-6 6v52h18V56h40V38z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M212.205 87.03c-1.495-1.01-2.53-2.485-3.095-4.435l3.47-1.43c.315 1.2.865 2.13 1.65 2.79.78.66 1.73.985 2.84.985 1.135 0 2.11-.345 2.925-1.035s1.225-1.57 1.225-2.635c0-1.09-.43-1.98-1.29-2.67-.86-.69-1.94-1.035-3.23-1.035h-2.005V74.13h1.8c1.11 0 2.045-.3 2.805-.9.76-.6 1.14-1.42 1.14-2.465 0 -.93-.34-1.67-1.02-2.225-.68-.555-1.54-.835-2.585-.835-1.02 0 -1.83.27-2.43.815a4.784 4.784 0 0 0 -1.31 2.005l-3.435-1.43c.455-1.29 1.29-2.43 2.515-3.415 1.225-.985 2.79-1.48 4.69-1.48 1.405 0 2.67.27 3.79.815 1.12.545 2 1.3 2.635 2.26.635.965.95 2.045.95 3.245 0 1.225-.295 2.26-.885 3.11-.59.85-1.315 1.5-2.175 1.955v.205a6.605 6.605 0 0 1 2.79 2.175c.725.975 1.09 2.14 1.09 3.5 0 1.36-.345 2.575-1.035 3.64s-1.645 1.905-2.855 2.515c-1.215.61-2.58.92-4.095.92-1.755.005-3.375-.5-4.87-1.51zM233.52 69.81l-3.81 2.755-1.905-2.89 6.835-4.93h2.62V88h-3.74V69.81z"}))},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.components.Spinner,o=function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading text-center"},wp.element.createElement(r,null),wp.element.createElement("p",null,__("Embedding\u2026")))};t.a=o},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.element.Fragment,o=wp.components,i=o.Button,l=o.Toolbar,a=wp.blockEditor.BlockControls,c=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(r,null,wp.element.createElement(a,null,wp.element.createElement(l,null,t&&wp.element.createElement(i,{className:"components-toolbar__control",label:__("Edit URL"),icon:"edit",onClick:n}))))};t.a=c},function(e,t,n){"use strict";var r=n(13),o=n.n(r),i=wp.i18n,__=i.__,_x=i._x,l=wp.components,a=l.Button,c=l.Placeholder,s=l.ExternalLink,p=wp.blockEditor.BlockIcon,u=function(e){var t=e.icon,n=e.label,r=e.value,i=e.onSubmit,l=e.onChange,u=e.cannotEmbed,m=e.docLink,d=e.DocTitle,f=o()("wp-block-embed",{});return wp.element.createElement("div",{className:"ep__components-placeholder"},wp.element.createElement(c,{icon:wp.element.createElement(p,{icon:t,showColors:!0}),label:n,className:f},wp.element.createElement("form",{onSubmit:i},wp.element.createElement("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:__("Enter URL to embed here\u2026"),onChange:l}),wp.element.createElement(a,{isSmall:!0,type:"submit"},_x("Embed","button label")),u&&wp.element.createElement("p",{className:"components-placeholder__error"},__("Sorry, we could not embed that content."),wp.element.createElement("br",null))),m&&wp.element.createElement("div",{className:"components-placeholder__learn-more"},wp.element.createElement(s,{href:m},d))))};t.a=u},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 o(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 i(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 l=n(6),a=n.n(l),c=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},s=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}}(),p=wp.element.Component,u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){a.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("iframe",c({ref:this.myRef},this.props))}}]),t}(p);t.a=u},function(e,t,n){"use strict";function r(e){var t=embedpressObj.document_cta,n="",r="";if(embedpressObj.embedpress_pro&&t&&t.logo_url){var i=t.cta_url?t.cta_url:null,l=t.logo_xpos?t.logo_xpos+"%":"10%",a=t.logo_ypos?t.logo_ypos+"%":"10%",c=t.logo_opacity?t.logo_opacity/100:"10%",s=".ep-doc-"+e.id;return n="\n "+s+"{\n text-align: left;\n position: relative;\n }\n "+s+" .watermark {\n \t\tdisplay:inline-block;\n border: 0;\n position: absolute;\n bottom: "+a+";\n right: "+l+";\n max-width: 150px;\n max-height: 75px;\n opacity: "+c+";\n z-index: 5;\n -o-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -webkit-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n }\n "+s+" .watermark:hover {\n\t\t\t\t\t opacity: 1;\n\t\t\t\t }\n\t\t",i&&""!==i&&(r+="<a href="+i+">"),r+='<img class="watermark" alt="" src="'+t.logo_url+'"/>',i&&""!==i&&(r+="</a>"),wp.element.createElement(o,null,wp.element.createElement("style",{dangerouslySetInnerHTML:{__html:n}}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}return""}var o=wp.element.Fragment;t.a=r},function(e,t){e.exports=ReactDOM},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(9),n(14),n(18),n(22),n(26),n(30),n(34),n(38),n(42),n(46),n(50),n(67),n(73);!function(){var e=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})));wp.blocks.updateCategory("embedpress",{icon:e})}()},function(e,t,n){"use strict";var r=n(10),o=(n.n(r),n(11)),i=(n.n(o),n(12)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-docs-block"]&&a("embedpress/google-docs-block",{title:__("Google Docs"),icon:l.e,category:"embedpress",keywords:[__("embedpress"),__("google"),__("docs")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("figure",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element.Component,d=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.updateAlignment=e.updateAlignment.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"updateAlignment",value:function(e){var t=this.props.setAttributes,n=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};t(Object.assign({},n,{align:e}))}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),l=i[1];l&&"document"===l?(r.match(/([?&])embedded=true/i)||(r.indexOf("?")>-1?r+="&embedded=true":r+="?embedded=true"),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Docs URL");return!m||r?wp.element.createElement("div",null,wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.e,DocTitle:__("Learn more about Google doc embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})):wp.element.createElement("div",null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(s.a,{src:m,onMouseUp:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameBorder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(m);t.a=d},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var l=n.apply(null,r);l&&e.push(l)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";var r=n(15),o=(n.n(r),n(16)),i=(n.n(o),n(17)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-slides-block"]&&a("embedpress/google-slides-block",{title:__("Google Slides"),icon:l.j,category:"embedpress",keywords:[__("embedpress"),__("google"),__("slides")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-presentation"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),l=i[1];l&&"presentation"==l?(r.match(/pub\?/i)&&(r=r.replace("/pub?","/embed?")),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Slides URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.j,DocTitle:__("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(19),o=(n.n(r),n(20)),i=(n.n(o),n(21)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-sheets-block"]&&a("embedpress/google-sheets-block",{title:__("Google Sheets"),icon:l.i,category:"embedpress",keywords:[__("embedpress"),__("google"),__("sheets")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),l=i[1];if(l&&"spreadsheets"==l){if(r.indexOf("?")>-1){var a=r.split("?");if(a=a[1],a=a.split("&"),console.log(a),a.length>0){var c=!1,s=!1;a.map(function(e){e.indexOf("widget=")?s=!0:e.indexOf("headers=")&&(c=!0)}),s||(r+="&widget=true"),c||(r+="&headers=false")}}else r+="?widget=true&headers=false";this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Sheets URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.i,DocTitle:__("Learn more about Google sheet embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(23),o=(n.n(r),n(24)),i=(n.n(o),n(25)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-forms-block"]&&a("embedpress/google-forms-block",{title:__("Google Forms"),icon:l.g,category:"embedpress",keywords:[__("embedpress"),__("google"),__("forms")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-forms"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=(wp.components.Disabled,function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),l=i[1];l&&"forms"==l?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Forms URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.g,DocTitle:__("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d));t.a=h},function(e,t,n){"use strict";var r=n(27),o=(n.n(r),n(28)),i=(n.n(o),n(29)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-drawings-block"]&&a("embedpress/google-drawings-block",{title:__("Google Drawings"),icon:l.f,category:"embedpress",keywords:[__("embedpress"),__("google"),__("drawings")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-drawings"},wp.element.createElement("img",{src:t,width:"960",height:"720"}))}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(0),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}}(),__=wp.i18n.__,u=wp.element,m=u.Component,d=u.Fragment,f=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),p(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=o.exec(r),l=i[1];l&&"drawings"==l?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,p=this.props.attributes.iframeSrc,u=__("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!p||r?wp.element.createElement(c.a,{label:u,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:s.f,DocTitle:__("Learn more about Google drawing embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"}):wp.element.createElement(d,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement("img",{src:p,onLoad:this.onLoad,style:{display:o?"none":""},width:"960",height:"720"}),wp.element.createElement(l.a,{showEditButton:p&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=f},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(31),i=(n.n(o),n(32)),l=(n.n(i),n(33)),a=n(0),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-maps-block"]&&c("embedpress/google-maps-block",{title:__("Google Maps"),icon:a.h,category:"embedpress",keywords:[__("embedpress"),__("google"),__("maps")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-maps"},wp.element.createElement("iframe",r({src:t,frameborder:"0",width:"600",height:"450"},"frameborder","0")))}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var r=this.decodeHTMLEntities(t);if(t.match("~(maps/embed|output=embed)~i"));else{var o=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,i=o.exec(r);i&&i.length>1&&i[1]&&i[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+i[1]+"&spn="+i[1]+"&t=m&z="+Math.round(parseInt(i[2]))+"&output=embed":this.setState({cannotEmbed:!0,editingURL:!0})}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Maps URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.h,DocTitle:__("Learn more about Google map embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(35),o=(n.n(r),n(36)),i=(n.n(o),n(37)),l=n(0),a=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},__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["twitch-block"]&&c("embedpress/twitch-block",{title:__("Twitch"),icon:l.k,category:"embedpress",keywords:[__("embedpress"),__("twitch")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs,o=n+"&parent="+embedpressObj.twitch_host;return wp.element.createElement("figure",{className:"ose-twitch-presentation"},wp.element.createElement("iframe",a({src:o},r,{frameborder:"0",width:"600",height:"450"})))}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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},m=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}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(t&&t.match(r)){var o=this.decodeHTMLEntities(t),i=r.exec(o),l=i[1];console.log(l);var a,c="channel";switch(t.indexOf("clips.twitch.tv")>-1?c="clip":t.indexOf("/videos/")>-1?c="video":t.indexOf("#/chat$#")>-1&&(c="chat"),console.log(c),c){case"channel":o="https://player.twitch.tv/?channel="+l,a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":o="https://clips.twitch.tv/embed?clip="+l+"&autoplay=false",a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":l=i[2],o="https://player.twitch.tv/?video="+l,a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":o="http://www.twitch.tv/embed/"+l+"/chat",a={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+l+"'"}}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:o,attrs:a})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("Twitch URL");if(!f||r)return wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.k,DocTitle:__("Learn more about twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-streams-chat/"});var y=f+"&parent="+embedpressObj.twitch_host;return wp.element.createElement(h,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(s.a,u({src:y},b,{onLoad:this.onLoad,style:{display:o?"none":""},onFocus:this.hideOverlay,width:"600",height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:f&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(39),o=(n.n(r),n(40)),i=(n.n(o),n(41)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["wistia-block"]&&a("embedpress/wistia-block",{title:__("Wistia"),icon:l.l,category:"embedpress",keywords:[__("embedpress"),__("wistia")],supports:{align:["wide","full","right","left"],default:""},edit:i.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-wistia"},wp.element.createElement("iframe",{src:t,allowtransparency:"true",frameborder:"0",class:"wistia_embed",name:"wistia_embed",width:"600",height:"330"}))}}]})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1,mediaId:null},e.setUrl(),e}return i(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentDidMount",value:function(){if(this.props.attributes.url){var e=this.props.attributes.url.match(/medias\/(.*)/),t=e[1];this.setState(Object.assign({},this.state,{mediaId:t}))}}},{key:"onLoad",value:function(){if(this.setState({fetching:!1}),embedpressObj.wisita_options){var e=Object.assign({},this.state);setTimeout(function(){var e=document.createElement("script");e.src="https://fast.wistia.com/assets/external/E-v1.js",e.charset="ISO-8859-1",document.body.appendChild(e)},100),setTimeout(function(){var t=document.createElement("script");t.type="text/javascript",t.innerHTML="window.pp_embed_wistia_labels = "+embedpressObj.wistia_labels,document.body.appendChild(t),t=document.createElement("script"),t.type="text/javascript",t.innerHTML='wistiaEmbed = Wistia.embed( "'+e.mediaId+'", '+embedpressObj.wisita_options+" );",document.body.appendChild(t)},400)}}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&(t.match(/^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i)||t.match(/^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp))){var r=t.match(/medias\/(.*)/),o=r[1],i="//fast.wistia.net/embed/iframe/"+o;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:o}),n({iframeSrc:i})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Wistia URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.l,DocTitle:__("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-videos-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"330"})),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:m&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(43),o=(n.n(r),n(44)),i=(n.n(o),n(45)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["youtube-block"]&&a("embedpress/youtube-block",{title:__("YouTube"),icon:l.m,category:"embedpress",keywords:[__("embedpress"),__("youtube")],supports:{align:["wide","full","right","left"],default:""},edit:i.a,save:function(){return null}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(2),a=n(1),c=n(3),s=n(4),p=n(0),u=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},m=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}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return i(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentWillMount",value:function(){this.state.url&&this.setUrl()}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(t&&r){var o=r[1],i="https://www.youtube.com/embed/"+o,l=new URL(i);if("undefined"!==typeof embedpressProObj)for(var a in embedpressProObj.youtubeParams)l.searchParams.set(a,embedpressProObj.youtubeParams[a]);this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:l.href,mediaId:o})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,i=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("YouTube URL");return!f||r?wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})},icon:p.m,DocTitle:__("Learn More About YouTube Embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"}):wp.element.createElement(h,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(s.a,u({src:f},b,{onLoad:this.onLoad,style:{display:o?"none":""},width:"640",onFocus:this.hideOverlay,height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(l.a,{showEditButton:f&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(47),o=(n.n(r),n(48)),i=(n.n(o),n(49)),l=n(0),a=n(5),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.document&&c("embedpress/document",{title:__("Document"),icon:l.b,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("ppt")],supports:{align:["wide","full","right","left"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:600},fileName:{type:"string"},mime:{type:"string"}},edit:i.a,save:function(e){var t=e.attributes,n=t.href,r=t.mime,o=t.id,i=t.width,l=t.height,c=t.powered_by,s="//view.officeapps.live.com/op/embed.aspx?src="+n;return wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+o,style:{height:l,width:i}},"application/pdf"===r&&wp.element.createElement("div",{style:{height:l,width:i},className:"embedpress-embed-document-pdf "+o,"data-emid":o,"data-emsrc":n}),"application/pdf"!==r&&wp.element.createElement("iframe",{style:{height:l,width:i},src:s,mozallowfullscreen:"true",webkitallowfullscreen:"true"}),c&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),embedpressObj.embedpress_pro&&wp.element.createElement(a.a,{id:o}))}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(4),a=n(5),c=n(1),s=n(0),p=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(_n=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&l.return&&l.return()}finally{if(r)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")}}(),u=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}}(),__=wp.i18n.__,m=wp.blob,d=m.getBlobByURL,f=m.isBlobURL,h=m.revokeBlobURL,b=wp.blockEditor,w=b.BlockIcon,y=b.MediaPlaceholder,g=b.InspectorControls,v=wp.element,E=v.Component,_=v.Fragment,L=wp.components,k=L.RangeControl,C=L.PanelBody,S=L.ExternalLink,O=L.ToggleControl,x=["application/pdf","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation"],T=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return i(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,i=n.href;if(f(i)){r({filesList:[d(i)],onFileChange:function(t){var n=p(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),h(i)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&(this.setState({loadPdf:!1}),PDFObject.embed(this.props.attributes.href,"."+this.props.attributes.id))}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),embedpressObj.embedpress_pro&&this.props.setAttributes({powered_by:!1}),"application/pdf"===e.mime&&(this.setState({loadPdf:!1}),PDFObject.embed(e.url,"."+this.props.attributes.id)))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.noticeUI,r=e.setAttributes,o=t.href,i=t.mime,p=t.id,u=t.width,m=t.height,d=t.powered_by,f=this.state,h=f.hasError,b=f.interactive,v=f.fetching,E=f.loadPdf;if(!o||h)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(y,{icon:wp.element.createElement(w,{icon:s.b}),labels:{title:__("Document"),instructions:__("Upload a file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:n,allowedTypes:x,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(S,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var L="//view.officeapps.live.com/op/embed.aspx?src="+o;return wp.element.createElement(_,null,v&&"application/pdf"!==i?wp.element.createElement(c.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+p,style:{height:m,width:u}},"application/pdf"===i&&wp.element.createElement("div",{style:{height:m,width:u},className:"embedpress-embed-document-pdf "+p,"data-emid":p,"data-emsrc":o}),"application/pdf"!==i&&wp.element.createElement(l.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:m,width:u,display:v||!E?"none":""},onLoad:this.onLoad,src:L}),!b&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),d&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!v&&wp.element.createElement(a.a,{id:p})),wp.element.createElement(g,{key:"inspector"},wp.element.createElement(C,{title:__("Embed Size","embedpress")},wp.element.createElement(k,{label:__("Width","embedpress"),value:u||720,onChange:function(e){return r({width:e})},max:1e3,min:1}),wp.element.createElement(k,{label:__("Height","embedpress"),value:m,onChange:function(e){return r({height:e})},max:1e3,min:1}),wp.element.createElement(O,{label:__("Powered By"),onChange:function(e){return r({powered_by:e})},checked:d}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(E);t.a=T},function(e,t,n){"use strict";var r=n(51),o=(n.n(r),n(52)),i=(n.n(o),n(53)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.embedpress&&a("embedpress/embedpress",{title:__("EmbedPress"),icon:l.d,category:"embedpress",keywords:["embedpress","embed","google","youtube","docs"],supports:{align:["right","left","center"],default:"center",lightBlockWrapper:!0},attributes:{url:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"450"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:0},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"},ispagination:{type:"boolean",default:!0},pagesize:{type:"number",default:6},columns:{type:"string",default:"2"},gapbetweenvideos:{type:"number",default:30},limit:{type:"number",default:9},orderby:{type:"string",default:"desc"},gapbetweenitem:{type:"number",default:30},layout:{type:"string",default:"ep-grid"},preset:{type:"string",default:"ep-preset-1"},nftperrow:{type:"number",default:3},nftimage:{type:"boolean",default:!0},nfttitle:{type:"boolean",default:!0},nftcreator:{type:"boolean",default:!0},prefix_nftcreator:{type:"string",default:"Created By"},nftprice:{type:"boolean",default:!0},prefix_nftprice:{type:"string",default:"Price"},nftlastsale:{type:"boolean",default:!0},prefix_nftlastsale:{type:"string",default:"Last Sale"},nftbutton:{type:"boolean",default:!0},label_nftbutton:{type:"string",default:"See Details"},alignment:{type:"string",default:"ep-item-center"},itemBGColor:{type:"string"},titleColor:{type:"string"},titleFontsize:{type:"number"},creatorColor:{type:"string"},creatorFontsize:{type:"number"},creatorLinkColor:{type:"string"},creatorLinkFontsize:{type:"number"},priceColor:{type:"string"},priceFontsize:{type:"number"},lastSaleColor:{type:"string"},lastSaleFontsize:{type:"number"},buttonTextColor:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextFontsize:{type:"number"}},edit:i.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var l=t[o](i),a=l.value}catch(e){return void n(e)}if(!l.done)return Promise.resolve(a).then(function(e){r("next",e)},function(e){r("throw",e)});e(a)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){function t(){w({editingURL:!0})}function n(e){var t=this;if(e&&e.preventDefault(),v){w({fetching:!0});(function(){var e=r(a.a.mark(function e(n){var r,o,i,l,c;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="",o="",ce&&(i={pagesize:x||6,gapbetweenvideos:10,ispagination:O||!1,columns:T||"3"},r="&"+new URLSearchParams(i).toString()),se&&(l={limit:j||20,orderby:P||"desc",layout:B||"ep-grid",preset:F||"ep-preset-1",nftperrow:M||"3",gapbetweenitem:R||30,nftimage:z||!1,nftcreator:D||!1,prefix_nftcreator:N||"",nfttitle:I||!1,nftprice:A||!1,prefix_nftprice:H||"",nftlastsale:V||!1,prefix_nftlastsale:G||"",nftbutton:Z||!1,label_nftbutton:W||"",itemBGColor:q||"",titleColor:Y||"",titleFontsize:$||"",creatorColor:J||"",creatorFontsize:K||"",creatorLinkColor:Q||"",creatorLinkFontsize:X||"",priceColor:ee||"",priceFontsize:te||"",lastSaleColor:ne||"",lastSaleFontsize:re||"",buttonTextColor:oe||"",buttonBackgroundColor:ie||"",buttonFontSize:le||""},o="&"+new URLSearchParams(l).toString()),c=n.split("#"),c=encodeURIComponent(c[0]),e.next=8,fetch(embedpressObj.site_url+"/wp-json/embedpress/v1/oembed/embedpress?url="+c+"&width="+S+"&height="+C+r+o).then(function(e){return e.json()});case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,t)}));return function(_x){return e.apply(this,arguments)}})()(v).then(function(e){w({fetching:!1}),w(e.data&&404===e.data.status||!e.embed?{cannotEmbed:!0,editingURL:!0}:{embedHTML:e.embed,cannotEmbed:!1,editingURL:!1})})}else w({cannotEmbed:!0,fetching:!1,editingURL:!0})}var i=e.clientId,l=e.attributes,m=e.className,w=e.setAttributes,v=l.url,E=l.editingURL,_=l.fetching,L=l.cannotEmbed,k=(l.interactive,l.embedHTML),C=l.height,S=l.width,O=l.ispagination,x=l.pagesize,T=l.columns,U=l.gapbetweenvideos,j=l.limit,B=l.layout,F=l.preset,P=l.orderby,M=l.nftperrow,R=l.gapbetweenitem,z=l.nftimage,D=l.nftcreator,N=l.prefix_nftcreator,I=l.nfttitle,A=l.nftprice,H=l.prefix_nftprice,V=l.nftlastsale,G=l.prefix_nftlastsale,Z=l.nftbutton,W=l.label_nftbutton,q=(l.alignment,l.itemBGColor),Y=l.titleColor,$=l.titleFontsize,J=l.creatorColor,K=l.creatorFontsize,Q=l.creatorLinkColor,X=l.creatorLinkFontsize,ee=l.priceColor,te=l.priceFontsize,ne=l.lastSaleColor,re=l.lastSaleFontsize,oe=l.buttonTextColor,ie=l.buttonBackgroundColor,le=l.buttonFontSize,ae=b?b():[],ce=v.match(/\/channel\/|\/c\/|\/user\/|(?:https?:\/\/)?(?:www\.)?(?:youtube.com\/)(\w+)[^?\/]*$/i),se=v.match(/\/collection\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.com\/)(\w+)[^?\/]*$/i);g(function(){if(k&&!E&&!_){var e=k.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);e=[].concat(o(e));var t=!0,n=!1,r=void 0;try{for(var i,l=e[Symbol.iterator]();!(t=(i=l.next()).done);t=!0){var a=i.value;if(a&&"undefined"!=typeof a[1]){var c=a[1],s=d()(c);if(document.getElementById(s))continue;var p=document.createElement("script");p.type="text/javascript",p.setAttribute("id",s),p.setAttribute("src",c),document.body.appendChild(p)}}}catch(e){n=!0,r=e}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}},[k]),g(function(){var e=setTimeout(function(){(k&&!E||_)&&n()},300);return function(){return clearTimeout(e)}},[x,j,B,F,P,z,I,A,H,V,G,M,Z,W,D,N,q,Y,$,J,K,Q,X,ee,te,ne,re,oe,ie,le]);var pe="repeat(auto-fit, minmax(250px, 1fr))";return T>0&&(pe="repeat(auto-fit, minmax(calc("+100/T+"% - "+U+"px), 1fr))"),wp.element.createElement(y,null,wp.element.createElement(f.a,{attributes:l,setAttributes:w,isYTChannel:ce,isOpensea:se}),(!k||!!E)&&!_&&wp.element.createElement("div",ae,wp.element.createElement(p.a,{label:__("EmbedPress - Embed anything from 150+ sites"),onSubmit:n,value:v,cannotEmbed:L,onChange:function(e){return w({url:e.target.value})},icon:h.d,DocTitle:__("Learn more about EmbedPress"),docLink:"https://embedpress.com/docs/"})),(!se||!!E||0===E)&&_&&wp.element.createElement("div",{className:m},wp.element.createElement(s.a,null)," "),k&&!E&&(!_||se)&&wp.element.createElement("figure",ae,wp.element.createElement(u.a,{style:{display:_&&!se?"none":""},dangerouslySetInnerHTML:{__html:k}}),_&&wp.element.createElement("div",{style:{filter:"grayscale(1))",backgroundColor:"#fffafa",opacity:"0.7"},className:"block-library-embed__interactive-overlay",onMouseUp:w({interactive:!0})}),!se&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:w({interactive:!0})}),wp.element.createElement(c.a,{showEditButton:k&&!L,switchBackToURLInput:t})),ce&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+" .ep-youtube__content__block .youtube__content__body .content__wrap{\n\t\t\t\t\t\t\t\tgap: "+U+"px!important;\n\t\t\t\t\t\t\t\tmargin-top: "+U+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube .ep-first-video iframe{\n\t\t\t\t\t\t\t\tmax-height: "+C+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube > iframe{\n\t\t\t\t\t\t\t\theight: "+C+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ep-youtube__content__block .youtube__content__body .content__wrap {\n\t\t\t\t\t\t\t\tgrid-template-columns: "+pe+";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+i+" .ep-youtube__content__block .ep-youtube__content__pagination{\n\t\t\t\t\t\t\t\tdisplay: flex!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"+(!O&&"#block-"+i+" .ep-youtube__content__block .ep-youtube__content__pagination{\n\t\t\t\t\t\t\t\t\tdisplay: none!important;\n\t\t\t\t\t\t\t\t}")+"\n\n\t\t\t\t\t\t\t"),!ce&&!se&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+" .ose-embedpress-responsive{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t\theight: "+C+"px!important\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" iframe{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t\theight: "+C+"px!important\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube > iframe{\n\t\t\t\t\t\t\t\theight: "+C+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+i+" .ose-youtube{\n\t\t\t\t\t\t\t\theight: "+C+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"),se&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+"{\n\t\t\t\t\t\t\t\twidth: 900px;\n\t\t\t\t\t\t\t\tmax-width: 100%!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"))}t.a=i;var l=n(54),a=n.n(l),c=n(2),s=n(1),p=n(3),u=n(57),m=n(58),d=n.n(m),f=n(61),h=n(0),__=(n(65),wp.i18n.__),b=wp.blockEditor.useBlockProps,w=wp.element,y=w.Fragment,g=w.useEffect},function(e,t,n){e.exports=n(55)},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(56),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,l=Object.create(i.prototype),a=new d(r||[]);return l._invoke=s(e,n,a),l}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function l(){}function a(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(e){function t(n,o,i,l){var a=r(e[n],e,o);if("throw"!==a.type){var c=a.arg,s=c.value;return s&&"object"===typeof s&&y.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,l)},function(e){t("throw",e,i,l)}):Promise.resolve(s).then(function(e){c.value=e,i(c)},l)}l(a.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(e,t,n){var o=C;return function(i,l){if(o===O)throw new Error("Generator is already running");if(o===x){if("throw"===i)throw l;return h()}for(n.method=i,n.arg=l;;){var a=n.delegate;if(a){var c=p(a,n);if(c){if(c===T)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===C)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=O;var s=r(e,t,n);if("normal"===s.type){if(o=n.done?x:S,s.arg===T)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=x,n.method="throw",n.arg=s.arg)}}}function p(e,t){var n=e.iterator[t.method];if(n===b){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=b,p(e,t),"throw"===t.method))return T;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,T;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=b),t.delegate=null,T):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,T)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){if(e){var t=e[v];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=b,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:b,done:!0}}var b,w=Object.prototype,y=w.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},v=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",_=g.toStringTag||"@@toStringTag",L="object"===typeof e,k=t.regeneratorRuntime;if(k)return void(L&&(e.exports=k));k=t.regeneratorRuntime=L?e.exports:{},k.wrap=n;var C="suspendedStart",S="suspendedYield",O="executing",x="completed",T={},U={};U[v]=function(){return this};var j=Object.getPrototypeOf,B=j&&j(j(f([])));B&&B!==w&&y.call(B,v)&&(U=B);var F=l.prototype=o.prototype=Object.create(U);i.prototype=F.constructor=l,l.constructor=i,l[_]=i.displayName="GeneratorFunction",k.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},k.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,_ in e||(e[_]="GeneratorFunction")),e.prototype=Object.create(F),e},k.awrap=function(e){return{__await:e}},a(c.prototype),c.prototype[E]=function(){return this},k.AsyncIterator=c,k.async=function(e,t,r,o){var i=new c(n(e,t,r,o));return k.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},a(F),F[_]="Generator",F[v]=function(){return this},F.toString=function(){return"[object Generator]"},k.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},k.values=f,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(m),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=b)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=b),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var l=y.call(o,"catchLoc"),a=y.call(o,"finallyLoc");if(l&&a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,T):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),T},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),m(n),T}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;m(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=b),T}}}(function(){return this}()||Function("return this")())},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 o(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 i(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 l=n(6),a=n.n(l),c=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},s=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}}(),p=wp.element.Component,u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){a.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("div",c({ref:this.myRef},this.props))}}]),t}(p);t.a=u},function(e,t,n){!function(){var t=n(59),r=n(7).utf8,o=n(60),i=n(7).bin,l=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?i.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var a=t.bytesToWords(e),c=8*e.length,s=1732584193,p=-271733879,u=-1732584194,m=271733878,d=0;d<a.length;d++)a[d]=16711935&(a[d]<<8|a[d]>>>24)|4278255360&(a[d]<<24|a[d]>>>8);a[c>>>5]|=128<<c%32,a[14+(c+64>>>9<<4)]=c;for(var f=l._ff,h=l._gg,b=l._hh,w=l._ii,d=0;d<a.length;d+=16){var y=s,g=p,v=u,E=m;s=f(s,p,u,m,a[d+0],7,-680876936),m=f(m,s,p,u,a[d+1],12,-389564586),u=f(u,m,s,p,a[d+2],17,606105819),p=f(p,u,m,s,a[d+3],22,-1044525330),s=f(s,p,u,m,a[d+4],7,-176418897),m=f(m,s,p,u,a[d+5],12,1200080426),u=f(u,m,s,p,a[d+6],17,-1473231341),p=f(p,u,m,s,a[d+7],22,-45705983),s=f(s,p,u,m,a[d+8],7,1770035416),m=f(m,s,p,u,a[d+9],12,-1958414417),u=f(u,m,s,p,a[d+10],17,-42063),p=f(p,u,m,s,a[d+11],22,-1990404162),s=f(s,p,u,m,a[d+12],7,1804603682),m=f(m,s,p,u,a[d+13],12,-40341101),u=f(u,m,s,p,a[d+14],17,-1502002290),p=f(p,u,m,s,a[d+15],22,1236535329),s=h(s,p,u,m,a[d+1],5,-165796510),m=h(m,s,p,u,a[d+6],9,-1069501632),u=h(u,m,s,p,a[d+11],14,643717713),p=h(p,u,m,s,a[d+0],20,-373897302),s=h(s,p,u,m,a[d+5],5,-701558691),m=h(m,s,p,u,a[d+10],9,38016083),u=h(u,m,s,p,a[d+15],14,-660478335),p=h(p,u,m,s,a[d+4],20,-405537848),s=h(s,p,u,m,a[d+9],5,568446438),m=h(m,s,p,u,a[d+14],9,-1019803690),u=h(u,m,s,p,a[d+3],14,-187363961),p=h(p,u,m,s,a[d+8],20,1163531501),s=h(s,p,u,m,a[d+13],5,-1444681467),m=h(m,s,p,u,a[d+2],9,-51403784),u=h(u,m,s,p,a[d+7],14,1735328473),p=h(p,u,m,s,a[d+12],20,-1926607734),s=b(s,p,u,m,a[d+5],4,-378558),m=b(m,s,p,u,a[d+8],11,-2022574463),u=b(u,m,s,p,a[d+11],16,1839030562),p=b(p,u,m,s,a[d+14],23,-35309556),s=b(s,p,u,m,a[d+1],4,-1530992060),m=b(m,s,p,u,a[d+4],11,1272893353),u=b(u,m,s,p,a[d+7],16,-155497632),p=b(p,u,m,s,a[d+10],23,-1094730640),s=b(s,p,u,m,a[d+13],4,681279174),m=b(m,s,p,u,a[d+0],11,-358537222),u=b(u,m,s,p,a[d+3],16,-722521979),p=b(p,u,m,s,a[d+6],23,76029189),s=b(s,p,u,m,a[d+9],4,-640364487),m=b(m,s,p,u,a[d+12],11,-421815835),u=b(u,m,s,p,a[d+15],16,530742520),p=b(p,u,m,s,a[d+2],23,-995338651),s=w(s,p,u,m,a[d+0],6,-198630844),m=w(m,s,p,u,a[d+7],10,1126891415),u=w(u,m,s,p,a[d+14],15,-1416354905),p=w(p,u,m,s,a[d+5],21,-57434055),s=w(s,p,u,m,a[d+12],6,1700485571),m=w(m,s,p,u,a[d+3],10,-1894986606),u=w(u,m,s,p,a[d+10],15,-1051523),p=w(p,u,m,s,a[d+1],21,-2054922799),s=w(s,p,u,m,a[d+8],6,1873313359),m=w(m,s,p,u,a[d+15],10,-30611744),u=w(u,m,s,p,a[d+6],15,-1560198380),p=w(p,u,m,s,a[d+13],21,1309151649),s=w(s,p,u,m,a[d+4],6,-145523070),m=w(m,s,p,u,a[d+11],10,-1120210379),u=w(u,m,s,p,a[d+2],15,718787259),p=w(p,u,m,s,a[d+9],21,-343485551),s=s+y>>>0,p=p+g>>>0,u=u+v>>>0,m=m+E>>>0}return t.endian([s,p,u,m])};l._ff=function(e,t,n,r,o,i,l){var a=e+(t&n|~t&r)+(o>>>0)+l;return(a<<i|a>>>32-i)+t},l._gg=function(e,t,n,r,o,i,l){var a=e+(t&r|n&~r)+(o>>>0)+l;return(a<<i|a>>>32-i)+t},l._hh=function(e,t,n,r,o,i,l){var a=e+(t^n^r)+(o>>>0)+l;return(a<<i|a>>>32-i)+t},l._ii=function(e,t,n,r,o,i,l){var a=e+(n^(t|~r))+(o>>>0)+l;return(a<<i|a>>>32-i)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(l(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}};e.exports=n}()},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isYTChannel,l=e.isOpensea,p=t.width,u=t.height,m=t.editingURL,d=t.embedHTML;return!m&&d&&wp.element.createElement(s,null,!l&&wp.element.createElement(c,{title:__("Embeded Options")},wp.element.createElement("div",null,wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.")),wp.element.createElement(a,{label:__("Width"),value:p,onChange:function(e){return n({width:e})}}),wp.element.createElement(a,{label:__("Height"),value:u,onChange:function(e){return n({height:e})}})),r&&wp.element.createElement(o.a,{attributes:t,setAttributes:n})),l&&wp.element.createElement(i.a,{attributes:t,setAttributes:n}))}t.a=r;var o=n(62),i=n(63),__=wp.i18n.__,l=wp.components,a=l.TextControl,c=l.PanelBody,s=wp.blockEditor.InspectorControls},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.ispagination,o=t.pagesize,s=t.columns,p=t.gapbetweenvideos;return wp.element.createElement("div",null,wp.element.createElement(i,{label:__("Video Per Page"),value:o,onChange:function(e){return n({pagesize:e})},type:"number",max:50}),wp.element.createElement("p",null,"Specify the number of videos you wish to show on each page."),wp.element.createElement(l,{label:__("Column"),value:s,options:[{label:"Auto",value:"auto"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"}],onChange:function(e){return n({columns:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(a,{label:__("Gap Between Videos"),value:p,onChange:function(e){return n({gapbetweenvideos:e})},min:1,max:100}),wp.element.createElement("p",null,"Specify the gap between youtube videos."),wp.element.createElement(c,{label:__("Pagination"),checked:r,onChange:function(e){return n({ispagination:e})}}))}t.a=r;var __=wp.i18n.__,o=wp.components,i=o.TextControl,l=o.SelectControl,a=o.RangeControl,c=o.ToggleControl},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.limit,i=t.orderby,f=t.layout,h=t.preset,b=t.nftperrow,w=t.nftimage,y=t.nftcreator,g=t.prefix_nftcreator,v=t.nfttitle,E=t.nftprice,_=t.prefix_nftprice,L=t.nftlastsale,k=t.prefix_nftlastsale,C=t.nftbutton,S=t.label_nftbutton,O=(t.alignment,t.itemBGColor),x=t.titleColor,T=t.titleFontsize,U=t.creatorColor,j=t.creatorFontsize,B=t.creatorLinkColor,F=t.creatorLinkFontsize,P=t.priceColor,M=t.priceFontsize,R=t.lastSaleColor,z=t.lastSaleFontsize,D=t.buttonTextColor,N=t.buttonBackgroundColor,I=t.buttonFontSize,A=embedpressObj.is_pro_plugin_active,H=function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(function(e){var t=document.createElement("div");return t.innerHTML='\n\t\t<div class="pro__alert__wrap" style="display: none;">\n\t\t\t<div class="pro__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>\n\t\t\t\t\t<h2>Opps...</h2>\n\t\t\t\t\t<p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p>\n\t\t\t\t\t<a href="#" class="button radius-10">Close</a>\n\t\t\t</div>\n\t\t</div>\n\t\t',t}()),function(){document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",function(e){document.querySelector(".pro__alert__wrap").style.display="none"})}());var V=[{name:__("Small"),slug:"small",size:16},{name:__("Medium"),slug:"medium",size:18},{name:__("Big"),slug:"big",size:26}],G=[{name:"",color:"red"},{name:"",color:"green"},{name:"",color:"blue"},{name:"",color:"yellow"},{name:"",color:"orange"}];return wp.element.createElement("div",null,wp.element.createElement(p,{title:__("Opensea Options"),initialOpen:!0},wp.element.createElement("div",null,wp.element.createElement(a,{label:__("Limit","embedpress"),value:r,onChange:function(e){return n({limit:e})},min:1,max:100}),wp.element.createElement(l,{label:__("Order By","embedpress"),value:i,options:[{label:"Oldest",value:"asc"},{label:"Newest",value:"desc"}],onChange:function(e){return n({orderby:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(l,{label:__("Layout","embedpress"),value:f,options:[{label:"Grid",value:"ep-grid"},{label:"List",value:"ep-list"}],onChange:function(e){return n({layout:e})}}),"ep-grid"==f&&wp.element.createElement(l,{label:__("Preset","embedpress"),value:h,options:[{label:"Preset 1",value:"ep-preset-1"},{label:"Preset 2",value:"ep-preset-2"}],onChange:function(e){return n({preset:e})}}),wp.element.createElement(a,{label:__("Item Per Row","embedpress"),value:b||3,onChange:function(e){return n({nftperrow:e})},min:1,max:6}),wp.element.createElement(c,{label:__("Thumbnail","embedpress"),checked:w,onChange:function(e){return n({nftimage:e})}}),wp.element.createElement(c,{label:__("Title","embedpress"),checked:v,onChange:function(e){return n({nfttitle:e})}}),wp.element.createElement(c,{label:__("Creator","embedpress"),checked:y,onChange:function(e){return n({nftcreator:e})}}),y&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(s,{label:__("Creator Prefix","embedpress"),value:g,onChange:function(e){return n({prefix_nftcreator:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(c,{label:__("Show Price","embedpress"),checked:E,onChange:function(e){return n({nftprice:e})}}),E&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(s,{label:__("Price Prefix","embedpress"),value:_,onChange:function(e){return n({prefix_nftprice:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(c,{label:__("Last Sale","embedpress"),checked:L,onChange:function(e){return n({nftlastsale:e})}}),L&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(s,{label:__("Last Sale Prefix","embedpress"),value:k,onChange:function(e){return n({prefix_nftlastsale:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(c,{label:__("Show Button","embedpress"),checked:C,onChange:function(e){return n({nftbutton:e})}}),C&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(s,{label:__("Button Label","embedpress"),value:S,onChange:function(e){return n({label_nftbutton:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))))),wp.element.createElement(p,{title:__("Color and Typography"),initialOpen:!1},wp.element.createElement("p",null,__("You can adjust the color and typography of embedded content.")),wp.element.createElement(d,null,wp.element.createElement(p,{title:__("NFT Item"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(u,{label:__("Background Color"),colors:G,value:O,onChange:function(e){return n({itemBGColor:e})}})),wp.element.createElement(p,{title:__("Title"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:x,onChange:function(e){return n({titleColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:T,fallbackFontSize:16,onChange:function(e){return n({titleFontsize:e})}})),wp.element.createElement(p,{title:__("Creator"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:U,onChange:function(e){return n({creatorColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:j,fallbackFontSize:16,onChange:function(e){return n({creatorFontsize:e})}}),wp.element.createElement(o.a,{headerText:"Link Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:B,onChange:function(e){return n({creatorLinkColor:e})}}),wp.element.createElement(o.a,{headerText:"Link FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:F,fallbackFontSize:16,onChange:function(e){return n({creatorLinkFontsize:e})}})),wp.element.createElement(p,{title:__("Current Price"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:P,onChange:function(e){return n({priceColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:M,fallbackFontSize:16,onChange:function(e){return n({priceFontsize:e})}})),wp.element.createElement(p,{title:__("Last Sale Price"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:R,onChange:function(e){return n({lastSaleColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:z,fallbackFontSize:16,onChange:function(e){return n({lastSaleFontsize:e})}})),wp.element.createElement(p,{title:__("Button"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:D,onChange:function(e){return n({buttonTextColor:e})}}),wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:N,onChange:function(e){return n({buttonBackgroundColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:I,fallbackFontSize:16,onChange:function(e){return n({buttonFontSize:e})}})))))}t.a=r;var o=n(64),__=wp.i18n.__,i=wp.components,l=i.SelectControl,a=i.RangeControl,c=i.ToggleControl,s=i.TextControl,p=i.PanelBody,u=i.ColorPalette,m=i.FontSizePicker,d=wp.blockEditor.InspectorControls},function(e,t,n){"use strict";function r(e){var t=e.headerText;return wp.element.createElement("h4",null,t)}t.a=r},function(e,t,n){"use strict";n(66),wp.i18n.__},function(e,t,n){"use strict";function r(){return wp.element.createElement("div",{class:"ep_nft_item"},wp.element.createElement("svg",{id:"ejvt20hDbyT1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 345",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"ejvt20hDbyT9-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT9-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT9-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"})),wp.element.createElement("linearGradient",{id:"ejvt20hDbyT10-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT10-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT10-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"})),wp.element.createElement("linearGradient",{id:"ejvt20hDbyT11-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT11-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT11-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"}))),wp.element.createElement("rect",{width:320,height:189,rx:3,ry:3,fill:"#e8efff"}),wp.element.createElement("rect",{width:320,height:20,rx:3,ry:3,transform:"translate(0 219)",fill:"#e8efff"}),wp.element.createElement("rect",{width:271,height:20,rx:3,ry:3,transform:"translate(0 249)",fill:"#e8efff"}),wp.element.createElement("rect",{width:130,height:46,rx:3,ry:3,transform:"translate(0 299)",fill:"#e8efff"}),wp.element.createElement("rect",{width:80,height:12,rx:3,ry:3,transform:"translate(25 316)",fill:"#ced9f0"}),wp.element.createElement("g",{mask:"url(#ejvt20hDbyT12)"},wp.element.createElement("rect",{id:"ejvt20hDbyT9",width:79.455,height:58.345,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29575 -195.005 288.679)",fill:"url(#ejvt20hDbyT9-fill)",strokeWidth:0}),wp.element.createElement("rect",{id:"ejvt20hDbyT10",width:79.455,height:57.876,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29575 -194.736 204.238)",fill:"url(#ejvt20hDbyT10-fill)",strokeWidth:0}),wp.element.createElement("rect",{id:"ejvt20hDbyT11",width:79.455,height:164.549,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29574 -194.029 -17.716)",fill:"url(#ejvt20hDbyT11-fill)",strokeWidth:0}),wp.element.createElement("mask",{id:"ejvt20hDbyT12",maskType:"luminance"},wp.element.createElement("rect",{width:320,height:189,rx:3,ry:3,fill:"#e8efff"}),wp.element.createElement("rect",{width:320,height:20,rx:3,ry:3,transform:"translate(0 219)",fill:"#e8efff"}),wp.element.createElement("rect",{width:271,height:20,rx:3,ry:3,transform:"translate(0 249)",fill:"#e8efff"}),wp.element.createElement("rect",{width:130,height:46,rx:3,ry:3,transform:"translate(0 299)",fill:"#e8efff"}),wp.element.createElement("rect",{width:80,height:12,rx:3,ry:3,transform:"translate(25 316)",fill:"#ced9f0"}))),wp.element.createElement("script",null)))}t.a=r},function(e,t,n){"use strict";var r=n(68),o=(n.n(r),n(69)),i=(n.n(o),n(70)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-pdf"]&&a("embedpress/embedpress-pdf",{title:__("EmbedPress PDF"),icon:l.c,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("document")],supports:{align:["left","center","right"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},presentation:{type:"boolean",default:!0},position:{type:"string",default:"top"},download:{type:"boolean",default:!0},open:{type:"boolean",default:!1},copy_text:{type:"boolean",default:!0},toolbar:{type:"boolean",default:!0},doc_details:{type:"boolean",default:!0},doc_rotation:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:450},fileName:{type:"string"},mime:{type:"string"}},edit:i.a,save:function(e){return null}})},function(e,t){},function(e,t){},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 o(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 i(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 l=n(4),a=n(5),c=n(1),s=n(71),p=(n.n(s),n(72)),u=(n.n(p),n(0)),m=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(_n=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&l.return&&l.return()}finally{if(r)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")}}(),d=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}}(),__=wp.i18n.__,f=wp.blob,h=f.getBlobByURL,b=f.isBlobURL,w=f.revokeBlobURL,y=wp.blockEditor,g=y.BlockIcon,v=y.MediaPlaceholder,E=y.InspectorControls,_=wp.element,L=_.Component,k=_.Fragment,C=wp.components,S=C.RangeControl,O=C.PanelBody,x=C.ExternalLink,T=C.ToggleControl,U=["application/pdf"],j=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.iframeManupulate=e.iframeManupulate.bind(e),e.isPro=e.isPro.bind(e),e.addProAlert=e.addProAlert.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return i(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,i=n.href;if(b(i)){r({filesList:[h(i)],onFileChange:function(t){var n=m(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),w(i)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&this.setState({loadPdf:!1})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),void 0!==embedpressObj.branding&&void 0!==embedpressObj.branding.powered_by&&this.props.setAttributes({powered_by:embedpressObj.branding.powered_by}),"application/pdf"===e.mime&&this.setState({loadPdf:!1}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"isDisplay",value:function(e){return e=e?"block":"none"}},{key:"iframeManupulate",value:function(e,t,n,r,o,i,l,a,c,s){var p=this,u=setInterval(function(){var m="",d=document.querySelector(e).contentWindow.document,f=d.getElementsByTagName("head")[0],h=d.createElement("style");h.setAttribute("id","EBiframeStyleID"),!1===i&&(t=!1,r=!0,o=!1,l=!0,a=!1,c=!1,s=!1),i=p.isDisplay(i),t=p.isDisplay(t),r=p.isDisplay(r),o=p.isDisplay(o),l=p.isDisplay(l),"block"===l&&(l="all"),c=p.isDisplay(c),s=p.isDisplay(s),"top"===n?(n="top:0;bottom:auto;",m=""):(n="bottom:0;top:auto;",m="\n\t\t\t\t.findbar, .secondaryToolbar {\n\t\t\t\t\ttop: auto;bottom: 32px;\n\t\t\t\t}\n\t\t\t\t.doorHangerRight:after{\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t\tbottom: -16px;\n\t\t\t\t}\n\t\t\t\t .doorHangerRight:before {\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t\tbottom: -18px;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.findbar.doorHanger:before {\n\t\t\t\t\tbottom: -18px;\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t}\n\t\t\t\t.findbar.doorHanger:after {\n\t\t\t\t\tbottom: -16px;\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t}\n\t\t\t"),h.textContent="\n\t\t\t.toolbar{\n\t\t\t\tdisplay: "+i+"!important;\n\t\t\t\tposition: absolute;\n\t\t\t\t"+n+"\n\n\t\t\t}\n\n\t\t\t#secondaryToolbar{\n\t\t\t\tdisplay: "+i+";\n\t\t\t}\n\t\t\t#secondaryPresentationMode, #toolbarViewerRight #presentationMode{\n\t\t\t\tdisplay: "+t+"!important;\n\t\t\t}\n\t\t\t#secondaryOpenFile, #toolbarViewerRight #openFile{\n\t\t\t\tdisplay: "+o+"!important;\n\t\t\t}\n\t\t\t#secondaryDownload, #secondaryPrint, #toolbarViewerRight #print, #toolbarViewerRight #download{\n\t\t\t\tdisplay: "+r+"!important;\n\t\t\t}\n\t\t\t#pageRotateCw{\n\t\t\t\tdisplay: "+s+"!important;\n\t\t\t}\n\t\t\t#pageRotateCcw{\n\t\t\t\tdisplay: "+s+"!important;\n\t\t\t}\n\t\t\t#documentProperties{\n\t\t\t\tdisplay: "+c+"!important;\n\t\t\t}\n\t\t\t.textLayer{\n\t\t\t\tuser-select: "+l+"!important;\n\t\t\t}\n\t\t\t\n\t\t\t"+m+"\n\t\t\t\n\t\t",f&&(d.getElementById("EBiframeStyleID")&&d.getElementById("EBiframeStyleID").remove(),f.appendChild(h),clearInterval(u))},100)}},{key:"addProAlert",value:function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")}},{key:"removeAlert",value:function(){document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",function(e){document.querySelector(".pro__alert__wrap").style.display="none"})}},{key:"isPro",value:function(e){var t=document.createElement("div");return t.innerHTML='\n\t\t<div class="pro__alert__wrap" style="display: none;">\n\t\t\t<div class="pro__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>\n\t\t\t\t\t<h2>Opps...</h2>\n\t\t\t\t\t<p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p>\n\t\t\t\t\t<a href="#" class="button radius-10">Close</a>\n\t\t\t</div>\n\t\t</div>\n\t\t',t}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeUI,o=t.setAttributes,i=t.clientId,s=n.href,m=n.mime,d=n.id,f=n.width,h=n.height,b=n.powered_by,w=n.presentation,y=n.position,_=n.download,L=n.open,C=n.toolbar,j=n.copy_text,B=n.toolbar_position,F=n.doc_details,P=n.doc_rotation,M=this.state,R=M.hasError,z=M.interactive,D=M.fetching,N=M.loadPdf,I=embedpressObj.is_pro_plugin_active;if(I||(o({download:!0}),o({copy_text:!0})),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(this.isPro("none")),this.removeAlert()),!s||R)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(v,{icon:wp.element.createElement(g,{icon:u.c}),labels:{title:__("EmbedPress PDF"),instructions:__("Upload a PDF file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:r,allowedTypes:U,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(x,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var A="//view.officeapps.live.com/op/embed.aspx?src="+s,H=embedpressObj.pdf_renderer+"?file="+s;return this.iframeManupulate("."+d,w,y,_,L,C,j,B,F,P),wp.element.createElement(k,null,D&&"application/pdf"!==m?wp.element.createElement(c.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+d,style:{width:f,maxWidth:"100%"},id:"ep-doc-"+this.props.clientId},"application/pdf"===m&&wp.element.createElement("iframe",{powered_by:b,style:{height:h,width:f},className:"embedpress-embed-document-pdf "+d,"data-emid":d,"data-emsrc":s,src:H}),"application/pdf"!==m&&wp.element.createElement(l.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:h,width:f,display:D||!N?"none":""},onLoad:this.onLoad,src:A}),!z&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),b&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!D&&wp.element.createElement(a.a,{id:d})),wp.element.createElement(E,{key:"inspector"},wp.element.createElement(O,{title:__("Embed Size(px)","embedpress")},wp.element.createElement(S,{label:__("Width","embedpress"),value:f,onChange:function(e){return o({width:e})},max:1e3,min:1}),wp.element.createElement(S,{label:__("Height","embedpress"),value:h,onChange:function(e){return o({height:e})},max:1e3,min:1})),wp.element.createElement(O,{title:__("PDF Control Settings","embedpress"),initialOpen:!1},wp.element.createElement("div",{className:I?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,I)}},wp.element.createElement(T,{label:__("Toolbar","embedpress"),description:__("Show or Hide toolbar. Note: If you disable toolbar access then every toolbar options will be disabled","embedpress"),onChange:function(e){return o({toolbar:e})},checked:C,style:{marginTop:"30px"}}),!I&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),C&&wp.element.createElement(k,null,wp.element.createElement(p.__experimentalToggleGroupControl,{label:"Toolbar Position",value:y,onChange:function(e){return o({position:e})}},wp.element.createElement(p.__experimentalToggleGroupControlOption,{value:"top",label:"Top"}),wp.element.createElement(p.__experimentalToggleGroupControlOption,{value:"bottom",label:"Bottom"})),wp.element.createElement(T,{label:__("Presentation Mode","embedpress"),onChange:function(e){return o({presentation:e})},checked:w}),wp.element.createElement("div",{className:I?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,I)}},wp.element.createElement(T,{label:__("Print/Download","embedpress"),onChange:function(e){return o({download:e})},checked:_}),!I&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement("div",{className:I?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,I)}},wp.element.createElement(T,{label:__("Copy Text","embedpress"),onChange:function(e){return o({copy_text:e})},checked:j,className:"disabled"}),!I&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(T,{label:__("Rotation","embedpress"),onChange:function(e){return o({doc_rotation:e})},checked:P}),wp.element.createElement(T,{label:__("Properties","embedpress"),onChange:function(e){return o({doc_details:e})},checked:F}),wp.element.createElement(T,{label:__("Powered By","embedpress"),onChange:function(e){return o({powered_by:e})},checked:b})))),wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+i+" {\n\t\t\t\t\t\t\t\twidth:-webkit-fill-available;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t.embedpress-el-powered{\n\t\t\t\t\t\t\t\tmax-width: "+f+"\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.alignright .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: right!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.alignleft .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: left;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(L);t.a=j},function(e,t){e.exports=wp.apiFetch},function(e,t){e.exports=wp.components},function(e,t,n){"use strict";var r=n(74),o=(n.n(r),n(75)),i=(n.n(o),n(76)),l=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-calendar"]&&a("embedpress/embedpress-calendar",{title:__("Google Calendar"),icon:l.a,category:"embedpress",keywords:["embedpress","embed","calendar","calender","google","cal","events","task","birthday"],supports:{align:["left","center","right"],default:"center",lightBlockWrapper:!0},attributes:{id:{type:"string"},powered_by:{type:"boolean",default:!0},is_public:{type:"boolean",default:!0},width:{type:"string",default:600},height:{type:"string",default:600},url:{type:"string",default:""},embedHTML:{type:"string",default:""}},edit:i.a,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){d({editingURL:!0,is_public:!0})}function n(e){e&&e.preventDefault(),w?(d({fetching:!0}),setTimeout(function(){d({fetching:!1,cannotEmbed:!1,editingURL:!1,embedHTML:"ready"})},500)):d({cannotEmbed:!0,fetching:!1,editingURL:!0})}var r=e.attributes,s=e.className,d=e.setAttributes,w=r.url,y=r.editingURL,g=r.fetching,v=r.cannotEmbed,E=r.embedHTML,_=r.height,L=r.width,k=r.powered_by,C=r.is_public,S=r.align,O=h?h({className:"align"+S,style:{width:L+"px",height:_+"px"}}):[];return wp.element.createElement(b,null,wp.element.createElement(f,null,wp.element.createElement(u,{title:__("Customize Embedded Calendar","embedpress")},wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.","embedpress")),wp.element.createElement(p,{label:__("Width","embedpress"),value:L,onChange:function(e){return d({width:e})}}),wp.element.createElement(p,{label:__("Height","embedpress"),value:_,onChange:function(e){return d({height:e})}})),wp.element.createElement(u,{title:__("Calendar Type and other options","embedpress")},wp.element.createElement("p",null,__("You can show public calendar without any API key","embedpress")),wp.element.createElement(m,{label:__("Powered By","embedpress"),onChange:function(e){return d({powered_by:e})},checked:k}),wp.element.createElement(m,{label:__("Embedding Public Calendar","embedpress"),onChange:function(e){return d({is_public:e})},checked:C}))),(!E||y)&&!g&&C&&wp.element.createElement("div",O,wp.element.createElement(i.a,{label:__("Public Calendar Link"),onSubmit:n,value:w,cannotEmbed:v,onChange:function(e){return d({url:e.target.value})},icon:l.a,DocTitle:__("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})),g?wp.element.createElement("div",{className:s},wp.element.createElement(o.a,null)," "):null,E&&C&&!y&&!g&&wp.element.createElement("figure",O,C&&wp.element.createElement("iframe",{style:{display:g?"none":""},src:w,width:L,height:_}),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(a.a,{showEditButton:E&&!v,switchBackToURLInput:t})),!C&&wp.element.createElement("figure",c({className:"testing"},O),wp.element.createElement("p",null,"Private Calendar will show in the frontend only.",wp.element.createElement("br",null),wp.element.createElement("strong",null,"Note: Private calendar needs EmbedPress Pro.")),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(a.a,{showEditButton:E&&!v,switchBackToURLInput:t})))}t.a=r;var o=n(1),i=n(3),l=n(0),a=n(2),c=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},s=wp.components,p=s.TextControl,u=s.PanelBody,m=s.ToggleControl,d=wp.blockEditor,f=d.InspectorControls,h=d.useBlockProps,b=wp.element.Fragment,__=wp.i18n.__}]);
embedpress.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 150+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.com
8
- * Version: 3.6.0
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 150+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.com
8
+ * Version: 3.6.1
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
includes.php CHANGED
@@ -22,7 +22,7 @@ if ( ! defined('EMBEDPRESS_PLG_NAME')) {
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
- define('EMBEDPRESS_VERSION', "3.6.0");
26
  /**
27
  * @deprecated 2.2.0
28
  */
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
+ define('EMBEDPRESS_VERSION', "3.6.1");
26
  /**
27
  * @deprecated 2.2.0
28
  */
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: embed, embed youtube, gutenberg embed, pdf, doc, docs, ppt, elementor embe
6
  Requires at least: 4.6
7
  Tested up to: 6.1
8
  Requires PHP: 5.6
9
- Stable tag: 3.6.0
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
@@ -382,13 +382,16 @@ Not at all. You can set up everything your team needs without any coding knowled
382
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
383
  and this project adheres to [Semantic Versioning](http://semver.org/).
384
 
 
 
 
385
  = [3.6.0] - 2022-11-09 =
386
  * Added: OpenSea embed with advanced controls.
387
  * Few minor bug fixes and improvements.
388
 
389
  = [3.5.3] - 2022-10-27 =
390
  * Fixed: PDF layout breaking issues in Gutenberg.
391
- * Fixed: Height-width controller isn't working in Gutenberg.
392
  * Few minor bug fixes and improvements.
393
 
394
  = [3.5.2] - 2022-10-20 =
6
  Requires at least: 4.6
7
  Tested up to: 6.1
8
  Requires PHP: 5.6
9
+ Stable tag: 3.6.1
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
382
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
383
  and this project adheres to [Semantic Versioning](http://semver.org/).
384
 
385
+ = [3.6.1] - 2022-11-09 =
386
+ * Fixed: Build error.
387
+
388
  = [3.6.0] - 2022-11-09 =
389
  * Added: OpenSea embed with advanced controls.
390
  * Few minor bug fixes and improvements.
391
 
392
  = [3.5.3] - 2022-10-27 =
393
  * Fixed: PDF layout breaking issues in Gutenberg.
394
+ * Fixed: Height-width controller isn't working in Gutenberg.
395
  * Few minor bug fixes and improvements.
396
 
397
  = [3.5.2] - 2022-10-20 =