AlkantarClanX12

Your IP : 3.145.33.230


Current Path : /home/thanudqk/128shen.com/wp-content/plugins/embedpress/Gutenberg/dist/
Upload File :
Current File : /home/thanudqk/128shen.com/wp-content/plugins/embedpress/Gutenberg/dist/blocks.build.js

!function(e){function t(r){if(n[r])return n[r].exports;var l=n[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,t),l.l=!0,l.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=29)}([function(e,t,n){"use strict";n.d(t,"n",function(){return i}),n.d(t,"s",function(){return s}),n.d(t,"r",function(){return c}),n.d(t,"p",function(){return u}),n.d(t,"o",function(){return p}),n.d(t,"q",function(){return d}),n.d(t,"t",function(){return m}),n.d(t,"u",function(){return f}),n.d(t,"v",function(){return b}),n.d(t,"b",function(){return h}),n.d(t,"g",function(){return w}),n.d(t,"e",function(){return g}),n.d(t,"a",function(){return y}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return E}),n.d(t,"f",function(){return _}),n.d(t,"l",function(){return C}),n.d(t,"h",function(){return k}),n.d(t,"m",function(){return L}),n.d(t,"j",function(){return S}),n.d(t,"k",function(){return O}),n.d(t,"i",function(){return x});var r=wp.components,l=r.G,o=r.Path,a=(r.Polygon,r.SVG),i=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"}," ",wp.element.createElement(l,null,wp.element.createElement(o,{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(o,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(o,{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(l,null,wp.element.createElement(o,{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(o,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(o,{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(o,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(o,{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(o,{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(o,{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(o,{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(l,null,wp.element.createElement(o,{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(o,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{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 "}))),u=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(l,null,wp.element.createElement(o,{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(o,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),p=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(l,null,wp.element.createElement(o,{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(o,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(o,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(o,{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(o,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),d=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(l,null,wp.element.createElement(o,{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(o,{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(o,{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(o,{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(o,{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(o,{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(o,{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(o,{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 "}))),m=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(l,null,wp.element.createElement(o,{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(o,{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(o,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(o,{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(l,null,wp.element.createElement(o,{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(o,{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"}))),b=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(o,{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"})),h=(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"}))),g=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"})),y=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"})),v=wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",id:"Layer_1",x:0,y:0,style:{enableBackground:"new 0 0 70 70"},viewBox:"0 0 70 70"},wp.element.createElement("style",null,".st0{fill:#5b4e96}"),wp.element.createElement("path",{d:"M4 4.4h9.3V1.1H.7v12.7H4zM65.7 56.8v9.3h-9.4v3.3H68.9V56.8zM59 41.8c.3-.2.7-.3 1-.5 8.2-4.5 11.1-14.8 6.6-22.9-2.6-4.7-7.4-7.9-12.8-8.5-3.1-.4-6.3.2-9.2 1.5-.3.2-.7.3-1 .5-3.9 2.2-6.8 5.8-8 9.9L26.4 48c-.8 2.4-2.3 4.3-4.3 5.4-.2.1-.3.2-.5.3-1.5.7-3.2 1-4.9.8-2.9-.3-5.5-2-6.9-4.6-1.2-2.1-1.4-4.5-.8-6.9.7-2.3 2.2-4.3 4.3-5.4.2-.1.4-.2.5-.3 1.5-.7 3.2-1 5-.8h.2L17.1 42c-.1.4.1.8.5.9l4.9 1.6c.4.1.8-.1.9-.4l4.2-12c.1-.3.1-.6-.1-.9-.1-.3-.4-.5-.7-.6l-4.4-1.3c-.1 0-.2 0-.3-.1l-.4-.1c-.6-.1-1.3-.3-1.9-.3-3.2-.4-6.3.2-9.2 1.5-.3.2-.7.3-1 .5-4 2.2-6.8 5.8-8.1 10.1-1.3 4.4-.7 9 1.5 12.9 2.6 4.7 7.4 7.9 12.8 8.5 3.1.4 6.3-.2 9.2-1.5.3-.2.7-.3 1-.5 3.9-2.2 6.8-5.8 8-9.9l9.2-26.2v-.1c1-2.6 2.4-4.3 4.3-5.4.2-.1.4-.2.5-.3 1.5-.7 3.2-1 4.9-.8 2.9.3 5.5 2 6.9 4.6 2.4 4.4.8 9.9-3.5 12.3-.2.1-.4.2-.5.3-1.6.7-3.2 1-5 .8-.5-.1-1-.2-1.6-.3l-2.8-.8c-.3-.1-.6.1-.7.4L43.3 41c-.1.3.1.7.4.8l3.5 1c.8.2 1.7.4 2.6.5 3.1.4 6.3-.2 9.2-1.5z",className:"st0"})),E=wp.element.createElement("svg",{width:"25",height:"25",viewBox:"0 0 48 48",version:"1",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("circle",{fill:"#2196F3",cx:"24",cy:"24",r:"21"}),wp.element.createElement("path",{fill:"#fff",d:"M22 22h4v11h-4z"}),wp.element.createElement("circle",{fill:"#fff",cx:"24",cy:"16.5",r:"2.5"})),_=wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},wp.element.createElement("path",{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),C=function(){return wp.element.createElement("div",{className:"ep-doc-popup-icon"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",xmlSpace:"preserve"},wp.element.createElement("path",{fill:"#fff",d:"M5 3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6l-2-2v8H5V5h8l-2-2H5zm9 0 2.7 2.7-7.5 7.5 1.7 1.7 7.5-7.5L21 10V3h-7z"}),wp.element.createElement("path",{style:{fill:"none"},d:"M0 0h24v24H0z"})))},k=function(){return wp.element.createElement("div",{className:"ep-doc-download-icon"},wp.element.createElement("svg",{width:20,height:20,viewBox:"0 0 0.6 0.6",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M.525.4A.025.025 0 0 1 .55.422v.053A.075.075 0 0 1 .479.55H.125A.075.075 0 0 1 .05.479V.425A.025.025 0 0 1 .1.422v.053A.025.025 0 0 0 .122.5h.353A.025.025 0 0 0 .5.478V.425A.025.025 0 0 1 .525.4ZM.3.05a.025.025 0 0 1 .025.025v.24L.357.283A.025.025 0 0 1 .39.281l.002.002a.025.025 0 0 1 .002.033L.392.318.317.393.316.394.314.395.311.397.308.398.305.399.301.4H.295L.292.399.289.398.287.397.285.395A.025.025 0 0 1 .283.393L.208.318A.025.025 0 0 1 .241.281l.002.002.032.032v-.24A.025.025 0 0 1 .3.05Z"})))},L=function(){return wp.element.createElement("div",{className:"ep-doc-print-icon"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z",fill:"#fff"})))},S=function(){return wp.element.createElement("div",{className:"ep-doc-fullscreen-icon"},wp.element.createElement("svg",{width:20,height:20,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m3 15 .117.007a1 1 0 0 1 .876.876L4 16v4h4l.117.007a1 1 0 0 1 0 1.986L8 22H3l-.117-.007a1 1 0 0 1-.876-.876L2 21v-5l.007-.117a1 1 0 0 1 .876-.876L3 15Zm18 0a1 1 0 0 1 .993.883L22 16v5a1 1 0 0 1-.883.993L21 22h-5a1 1 0 0 1-.117-1.993L16 20h4v-4a1 1 0 0 1 .883-.993L21 15ZM8 2a1 1 0 0 1 .117 1.993L8 4H4v4a1 1 0 0 1-.883.993L3 9a1 1 0 0 1-.993-.883L2 8V3a1 1 0 0 1 .883-.993L3 2h5Zm13 0 .117.007a1 1 0 0 1 .876.876L22 3v5l-.007.117a1 1 0 0 1-.876.876L21 9l-.117-.007a1 1 0 0 1-.876-.876L20 8V4h-4l-.117-.007a1 1 0 0 1 0-1.986L16 2h5Z",fill:"#fff"})))},O=function(){return wp.element.createElement("div",{className:"ep-doc-minimize-icon",style:{display:"none"}},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{enableBackground:"new 0 0 385.331 385.331"},xmlSpace:"preserve",width:20,height:20},wp.element.createElement("path",{fill:"#fff",d:"M13.751 8.131h5.62c0.355 0 0.619 -0.28 0.619 -0.634 0 -0.355 -0.265 -0.615 -0.619 -0.614h-4.995V1.878c0 -0.355 -0.27 -0.624 -0.624 -0.624s-0.624 0.27 -0.624 0.624v5.62c0 0.002 0.001 0.003 0.001 0.004 0 0.002 -0.001 0.003 -0.001 0.005 0 0.348 0.276 0.625 0.624 0.624zM6.244 1.259c-0.354 0 -0.614 0.265 -0.614 0.619v4.995H0.624c-0.355 0 -0.624 0.27 -0.624 0.624 0 0.355 0.27 0.624 0.624 0.624h5.62c0.002 0 0.003 -0.001 0.004 -0.001 0.002 0 0.003 0.001 0.005 0.001 0.348 0 0.624 -0.276 0.624 -0.624V1.878c0 -0.354 -0.28 -0.619 -0.634 -0.619zm0.005 10.61H0.629c-0.355 0.001 -0.619 0.28 -0.619 0.634 0 0.355 0.265 0.615 0.619 0.614h4.995v5.005c0 0.355 0.27 0.624 0.624 0.624 0.355 0 0.624 -0.27 0.624 -0.624V12.502c0 -0.002 -0.001 -0.003 -0.001 -0.004 0 -0.002 0.001 -0.003 0.001 -0.005 0 -0.348 -0.276 -0.624 -0.624 -0.624zm13.127 0H13.756c-0.002 0 -0.003 0.001 -0.004 0.001 -0.002 0 -0.003 -0.001 -0.005 -0.001 -0.348 0 -0.624 0.276 -0.624 0.624v5.62c0 0.355 0.28 0.619 0.634 0.619 0.354 0.001 0.614 -0.265 0.614 -0.619v-4.995H19.376c0.355 0 0.624 -0.27 0.624 -0.624s-0.27 -0.624 -0.624 -0.625z"})," ",wp.element.createElement("g",null),wp.element.createElement("g",null),wp.element.createElement("g",null),wp.element.createElement("g",null),wp.element.createElement("g",null),wp.element.createElement("g",null)))},x=function(){return wp.element.createElement("div",{className:"ep-doc-draw-icon"},wp.element.createElement("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"m15 7.5 2.5 2.5m-10 10L19.25 8.25c0.69 -0.69 0.69 -1.81 0 -2.5v0c-0.69 -0.69 -1.81 -0.69 -2.5 0L5 17.5V20h2.5Zm0 0h8.379C17.05 20 18 19.05 18 17.879v0c0 -0.563 -0.224 -1.103 -0.621 -1.5L17 16M4.5 5c2 -2 5.5 -1 5.5 1 0 2.5 -6 2.5 -6 5 0 0.876 0.533 1.526 1.226 2",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"k",function(){return l}),n.d(t,"j",function(){return o}),n.d(t,"l",function(){return a}),n.d(t,"b",function(){return i}),n.d(t,"q",function(){return s}),n.d(t,"o",function(){return c}),n.d(t,"m",function(){return p}),n.d(t,"p",function(){return d}),n.d(t,"g",function(){return m}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return b}),n.d(t,"h",function(){return h}),n.d(t,"f",function(){return y}),n.d(t,"n",function(){return v}),n.d(t,"e",function(){return E}),n.d(t,"i",function(){return _});var r=function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")},l=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"})},o=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},a=function(){document.querySelector(".tips__alert__wrap")&&document.querySelector(".tips__alert__wrap .tips__alert__card .button").addEventListener("click",function(e){document.querySelector(".tips__alert__wrap").style.display="none"})},i=function(e){document.querySelector(".tips__alert__wrap").style.display="block"},s=function(){var e=document.createElement("div");return e.innerHTML='\n\t\t<div class="tips__alert__wrap" style="display: none;">\n\t\t\t<div class="tips__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/idea.svg" alt=""/>\n\t\t\t\t\t<h2>Simply add "/live" to the channel\'s URL to embed a live video.</h2>\n\t\t\t\t\t<p>Note: If there are multiple live videos on the channel, just the most recent ones will be seen. </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',e},c=function(e,t){var n=new XMLHttpRequest;n.open("POST",ajaxurl),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){200===n.status?console.log("Request successful:",n.responseText):console.error("Request failed:",n.statusText)},n.onerror=function(){console.error("Request failed:",n.statusText)};var r={action:"save_source_data",block_id:e,source_url:t,_source_nonce:embedpressObj.source_nonce},l=Object.keys(r).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(r[e])}).join("&");n.send(l)},u=function(e){var t=new XMLHttpRequest;t.open("POST",ajaxurl),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.onload=function(){200===t.status?console.log("Request successful:",t.responseText):console.error("Request failed:",t.statusText)},t.onerror=function(){console.error("Request failed:",t.statusText)};var n={action:"delete_source_data",block_id:e,_source_nonce:embedpressObj.source_nonce},r=Object.keys(n).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])}).join("&");t.send(r)},p=function(){var e=function(){return wp.data.select("core/block-editor").getBlocks()},t=e();wp.data.subscribe(function(){var n=e(),r=t.filter(function(e){return!n.includes(e)});if(r.length&&n.length<t.length){var l=r.map(function(e){return e.attributes.clientId});console.log("Blocks with IDs "+l+" were removed"),u(l)}t=n})},d=function(e){return'<div class="ep-social-share share-position-'+e+'">\n\t\t<a href="#" class="ep-social-icon facebook" target="_blank">\n\t\t\t<svg width="64px" height="64px" viewBox="0 -6 512 512" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0" /><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" /><g id="SVGRepo_iconCarrier"><path fill="#475a96" d="M0 0h512v500H0z" /><path d="M375.717 112.553H138.283c-8.137 0-14.73 6.594-14.73 14.73v237.434c0 8.135 6.594 14.73 14.73 14.73h127.826V276.092h-34.781v-40.28h34.781v-29.705c0-34.473 21.055-53.244 51.807-53.244 14.73 0 27.391 1.097 31.08 1.587v36.026l-21.328.01c-16.725 0-19.963 7.947-19.963 19.609v25.717h39.887l-5.193 40.28h-34.693v103.355h68.012c8.135 0 14.73-6.596 14.73-14.73V127.283c-.001-8.137-6.596-14.73-14.731-14.73z" fill="#ffffff" /></g></svg>\n\t\t</a>\n\t\t<a href="#" class="ep-social-icon twitter" target="_blank">\n\t\t\t<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 248 204">\n\t\t\t\t<path fill="#ffffff"\n\t\t\t\t\td="M221.95 51.29c.15 2.17.15 4.34.15 6.53 0 66.73-50.8 143.69-143.69 143.69v-.04c-27.44.04-54.31-7.82-77.41-22.64 3.99.48 8 .72 12.02.73 22.74.02 44.83-7.61 62.72-21.66-21.61-.41-40.56-14.5-47.18-35.07 7.57 1.46 15.37 1.16 22.8-.87-23.56-4.76-40.51-25.46-40.51-49.5v-.64c7.02 3.91 14.88 6.08 22.92 6.32C11.58 63.31 4.74 33.79 18.14 10.71c25.64 31.55 63.47 50.73 104.08 52.76-4.07-17.54 1.49-35.92 14.61-48.25 20.34-19.12 52.33-18.14 71.45 2.19 11.31-2.23 22.15-6.38 32.07-12.26-3.77 11.69-11.66 21.62-22.2 27.93 10.01-1.18 19.79-3.86 29-7.95-6.78 10.16-15.32 19.01-25.2 26.16z" />\n\t\t\t</svg>\n\t\t</a>\n\t\t<a href="#" class="ep-social-icon pinterest" target="_blank">\n\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="800" width="1200" viewBox="-36.42015 -60.8 315.6413 364.8">\n\t\t\t\t<path\n\t\t\t\t\td="M121.5 0C54.4 0 0 54.4 0 121.5 0 173 32 217 77.2 234.7c-1.1-9.6-2-24.4.4-34.9 2.2-9.5 14.2-60.4 14.2-60.4s-3.6-7.3-3.6-18c0-16.9 9.8-29.5 22-29.5 10.4 0 15.4 7.8 15.4 17.1 0 10.4-6.6 26-10.1 40.5-2.9 12.1 6.1 22 18 22 21.6 0 38.2-22.8 38.2-55.6 0-29.1-20.9-49.4-50.8-49.4-34.6 0-54.9 25.9-54.9 52.7 0 10.4 4 21.6 9 27.7 1 1.2 1.1 2.3.8 3.5-.9 3.8-3 12.1-3.4 13.8-.5 2.2-1.8 2.7-4.1 1.6-15.2-7.1-24.7-29.2-24.7-47.1 0-38.3 27.8-73.5 80.3-73.5 42.1 0 74.9 30 74.9 70.2 0 41.9-26.4 75.6-63 75.6-12.3 0-23.9-6.4-27.8-14 0 0-6.1 23.2-7.6 28.9-2.7 10.6-10.1 23.8-15.1 31.9 11.4 3.5 23.4 5.4 36 5.4 67.1 0 121.5-54.4 121.5-121.5C243 54.4 188.6 0 121.5 0z"\n\t\t\t\t\tfill="#fff" />\n\t\t\t</svg>\n\t\t</a>\n\t\t<a href="#" class="ep-social-icon linkedin" target="_blank">\n\t\t\t<svg fill="#ffffff" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 310 310" xml:space="preserve"><g id="XMLID_801_"><path id="XMLID_802_" d="M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73\n\t\tC77.16,101.969,74.922,99.73,72.16,99.73z"/><path id="XMLID_803_" d="M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4\n\t\tc22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z"/><path id="XMLID_804_" d="M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599\n\t\tc-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319\n\t\tc25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995\n\t\tC310,145.43,300.549,94.761,230.454,94.761z"/></g></svg>\n\t\t</a>\n\t</div>'},m=function(e){return/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/i.test(e)},f=function(e){var t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16),l=Math.max(t,n,r),o=Math.min(t,n,r),a=(l+o)/2;return Math.round(a/255*100)},b=function(e,t){var n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),l=parseInt(e.slice(5,7),16),o=Math.round(t/100*255);return"#"+((1<<24)+(Math.max(Math.min(n+o,255),0)<<16)+(Math.max(Math.min(r+o,255),0)<<8)+Math.max(Math.min(l+o,255),0)).toString(16).slice(1)},h=function(e){return/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/(?:[a-zA-Z0-9_\.]+\/?|explore\/tags\/[a-zA-Z0-9_\-]+\/?)$/.test(e)},w=/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/(?:[a-zA-Z0-9_\.]+\/?|explore\/tags\/[a-zA-Z0-9_\-]+\/?)$/,g=w.test("your-instagram-url-here");console.log(g);var y=function(e){var t=e.attributes;if(!t.customPlayer)return"";var n=t.playerPreset,r=t.playerColor,l=t.posterThumbnail,o=t.playerPip,a=t.playerRestart,i=t.playerRewind,s=t.playerFastForward,c=t.playerTooltip,u=t.playerHideControls,p=t.playerDownload,d=t.starttime,m=t.endtime,f=t.relatedvideos,b=t.fullscreen,h=t.vstarttime,w=t.vautoplay,g=t.vautopause,y=t.vdnt,v=Object.assign({rewind:i,restart:a,pip:o,poster_thumbnail:l,player_color:r,player_preset:n,fast_forward:s,player_tooltip:c,hide_controls:u,download:p},d&&{start:d},m&&{end:m},f&&{rel:f},b&&{start:b},h&&{t:h},w&&{autoplay:w},g&&{autopause:g},y&&{dnt:y});return JSON.stringify(v)},v=function(e){if(e.startsWith("/")||e.startsWith("#"))return e;try{var t=new URL(e);if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(t.protocol))throw new Error("Invalid protocol");return t.toString()}catch(e){return console.error("Error sanitizing URL:",e.message),"/404"}},E=function(e){var t=e.attributes,n=t.instaLayout,r=t.slidesShow,l=(t.slidesScroll,t.carouselAutoplay),o=t.autoplaySpeed,a=t.transitionSpeed,i=t.carouselLoop,s=t.carouselArrows,c=t.carouselSpacing;if("insta-carousel"!==n)return"";var u={layout:n,slideshow:r,autoplay:l,autoplayspeed:o,transitionspeed:a,loop:i,arrows:s,spacing:c};return JSON.stringify(u)},_=function(e){return/^https?:\/\/(?:www\.)?instagram\.com\/explore\/tags\/([^/]+)\/?$/i.test(e)}},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.components.Spinner,l=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=l},function(e,t,n){"use strict";function r(e){var t=e.classname,n=e.headerText;return wp.element.createElement("h4",{className:t||"ep-control-header"},n)}t.a=r},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.element.Fragment,l=wp.components,o=l.Button,a=l.Toolbar,i=wp.blockEditor.BlockControls,s=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(r,null,wp.element.createElement(i,null,wp.element.createElement(a,null,t&&wp.element.createElement(o,{className:"components-toolbar__control",label:__("Edit URL"),icon:"edit",onClick:n}))))};t.a=s},function(e,t,n){"use strict";var r=n(34),l=n.n(r),o=wp.i18n,__=o.__,_x=o._x,a=wp.components,i=a.Button,s=a.Placeholder,c=a.ExternalLink,u=wp.blockEditor.BlockIcon,p=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,p=e.cannotEmbed,d=e.docLink,m=e.DocTitle,f=l()("wp-block-embed",{});return wp.element.createElement("div",{className:"ep__components-placeholder"},wp.element.createElement(s,{icon:wp.element.createElement(u,{icon:t,showColors:!0}),label:n,className:f},wp.element.createElement("form",{onSubmit:o},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(i,{isSmall:!0,type:"submit"},_x("Embed","button label")),p&&wp.element.createElement("p",{className:"components-placeholder__error"},__("Sorry, we could not embed that content."),wp.element.createElement("br",null))),d&&wp.element.createElement("div",{className:"components-placeholder__learn-more"},wp.element.createElement(c,{href:d},m))))};t.a=p},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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),i=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}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return o(t,e),c(t,[{key:"componentDidMount",value:function(){i.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}(u);t.a=p},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"d",function(){return i}),n.d(t,"g",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return p});var r=wp.element,l=(r.useState,r.useEffect,wp.isShallowEqual.isShallowEqualObjects,function(e,t){var n={};return Object.keys(e).forEach(function(r){n[r]=r in t?t[r]:e[r]}),n}),o=function(e,t,n){var r=l(n,t);return Object.assign({},e,r)},a=function(e){return e.match(/\.(mp4|mov|avi|wmv|flv|mkv|webm|mpeg|mpg)$/i)},i=function(e){return e.match(/\.(mp3|wav|ogg|aac)$/i)},s=function(e){return null!==e.match(/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/@[\w.-]+\/video\/([\w.-]+)$/i)},c=function(e){return/^https?:\/\/(www\.)?spreaker\.com\/(show|user|podcast|episode)\/[^/]+/.test(e)},u=function(e,t){var n=t.url,r=t.posterThumbnail,l=(t.customPlayer,t.playerTooltip),o=t.playerHideControls,s=(t.playerPreset,t.playerColor,t.playerPip,t.playerRestart,t.playerRewind,t.playerFastForward,t.fullscreen,t.vautopause,t.vdnt,t.vstarttime,i(n)),c=(a(n),setInterval(function(){var t=document.querySelector('[data-playerid="'+e+'"] .ose-embedpress-responsive');if(a(n)?t=document.querySelector('[data-playerid="'+e+'"] .ose-embedpress-responsive video'):i(n)&&(t=document.querySelector('[data-playerid="'+e+'"] .ose-embedpress-responsive audio')),t){clearInterval(c);var u=document.querySelector('[data-playerid="'+e+'"]').getAttribute("data-options");u=JSON.parse(u),document.querySelector('[data-playerid="'+e+'"]').style.opacity="1";new Plyr(t,{controls:["play-large","restart","rewind","play","fast-forward","progress","current-time","duration","mute","volume","captions","settings",s?"":"pip","airplay",u.download?"download":"",s?"":"fullscreen"],hideControls:o,tooltips:{controls:l,seek:l},youtube:Object.assign({},u.autoplay&&{autoplay:u.autoplay},u.start&&{start:u.start},u.end&&{end:u.end},u.rel&&{rel:u.rel},u.fullscreen&&{fs:u.fullscreen}),vimeo:Object.assign({byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,controls:!1},u.t&&{t:u.t},u.vautoplay&&{autoplay:u.vautoplay},u.autopause&&{autopause:u.autopause},u.dnt&&{dnt:u.dnt})}).poster=r}},200))},p=function(e,t){var n=(t.url,t.instaLayout),r=t.slidesShow,l=(t.slidesScroll,t.carouselAutoplay),o=t.autoplaySpeed,a=t.transitionSpeed,i=t.carouselLoop,s=t.carouselArrows,c=t.carouselSpacing,u={layout:n,slidesPerView:r,spacing:c,loop:i,autoplay:l,autoplaySpeed:o,transitionSpeed:a,arrows:s,breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:4}}},p=setInterval(function(){if(document.querySelector('[data-carouselid="'+e+'"] .embedpress-insta-container')){clearInterval(p);var t=new CgCarousel('[data-carouselid="'+e+'"] .embedpress-insta-container',u,{});s?document.querySelector('[data-carouselid="'+e+'"] .cg-carousel__btns').classList.remove("hidden"):document.querySelector('[data-carouselid="'+e+'"] .cg-carousel__btns').classList.add("hidden"),document.querySelector('[data-carouselid="'+e+'"] #js-carousel__next-1').addEventListener("click",function(){return t.next()}),document.querySelector('[data-carouselid="'+e+'"] #js-carousel__prev-1').addEventListener("click",function(){return t.prev()})}},200)}},function(e,t){e.exports=wp.blockEditor},function(e,t){e.exports=React},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes;t.customlogo,t.logoX,t.logoY,t.customlogoUrl,t.logoOpacity,embedpressObj.is_pro_plugin_active;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(l.j)("none")),Object(l.k)());var r=Object(o.applyFilters)("embedpress.uploadPlaceholder",[]);return wp.element.createElement(c,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},a.c," ",__("Custom Branding","embedpress")),initialOpen:!1},Object(o.applyFilters)("embedpress.customLogoSettings",[r],t,n))}t.a=r;var l=n(1),o=n(11),a=(n.n(o),n(0)),i=n(8),__=(n.n(i),wp.i18n.__),s=wp.components,c=(s.TextControl,s.RangeControl,s.PanelBody);s.Button},function(e,t){e.exports=wp.hooks},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.customTitle,a=t.customDescription,d=t.contentShare,m=t.sharePosition;return wp.element.createElement(p,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},o.c," ",__("Social Share","embedpress")),initialOpen:!1},wp.element.createElement("div",{className:"content-share-toggle"},wp.element.createElement(c,{label:__("Enable Social Share"),checked:d,onChange:function(e){return n({contentShare:e})}})),d&&wp.element.createElement("div",{className:"content-share-controls"},wp.element.createElement(i,{label:__("Title"),value:r,onChange:function(e){return n({customTitle:e})},placeholder:__("Enter Title")}),wp.element.createElement(s,{label:__("Description"),placeholder:__("Enter description"),value:a,onChange:function(e){return n({customDescription:e})}}),wp.element.createElement(u,{label:__("Position"),value:m,options:[{label:"Top",value:"top"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"}],onChange:function(e){return n({sharePosition:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(l.a,{attributes:t,setAttributes:n}),wp.element.createElement("div",{className:"ep-documentation "},o.c,wp.element.createElement("a",{href:"https://embedpress.com/docs/ep-social-share-option-with-embedded-content/",target:"_blank"}," Need Help? "))))}t.a=r;var l=n(84),o=n(0),__=wp.i18n.__,a=wp.components,i=a.TextControl,s=a.TextareaControl,c=a.ToggleControl,u=a.SelectControl,p=a.PanelBody},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isYTChannel,l=e.isYTVideo,c=e.isYTLive,u=e.isYTShorts,p=(t.url,t.ispagination),d=t.pagesize,m=t.ytChannelLayout,b=t.columns,h=t.gapbetweenvideos,_=(t.videosize,t.starttime),C=t.endtime,k=t.autoplay,L=t.controls,S=t.fullscreen,O=t.videoannotations,x=t.progressbarcolor,T=(t.closedcaptions,t.modestbranding,t.relatedvideos),P=t.customPlayer,F=embedpressObj.is_pro_plugin_active;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(o.j)("none")),Object(o.k)()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Object(o.q)("none")),Object(o.l)());var j=f("embedpress.togglePlaceholder",[],__("Closed Captions","embedpress"),!0),B=f("embedpress.selectPlaceholder",[],__("Modest Branding","embedpress"),"display","Display");"grid"===m&&1===b&&n({columns:3}),"list"===m&&n({columns:1});var U="Video per page";"carousel"===m&&(U="Number of videos (max 50)");var M=" (Pro)";return F&&(M=""),F||"grid"!=m&&"carousel"!=m||(Object(o.a)(null,F),n({ytChannelLayout:"gallery"})),wp.element.createElement("div",null,r&&!c&&wp.element.createElement("div",{className:"ep__channel-yt-video-options"},wp.element.createElement(g,{label:__("Layout"),value:m,options:[{label:"Gallery",value:"gallery"},{label:"List",value:"list"},{label:"Grid"+M,value:"grid"},{label:"Carousel"+M,value:"carousel"}],onChange:function(e){return n({ytChannelLayout:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(w,{label:__(U),value:d,onChange:function(e){return n({pagesize:e})}}),wp.element.createElement("p",null,"Specify the number of videos you wish to show on each page."),"list"!==m&&"carousel"!==m&&wp.element.createElement(g,{label:__("Column"),value:b,options:[{label:"Auto",value:"auto"},{label:"1",value:"1"},{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}),"carousel"!==m&&wp.element.createElement("div",null,wp.element.createElement(y,{label:__("Gap Between Videos"),value:h,onChange:function(e){return n({gapbetweenvideos:e})},min:1,max:100}),wp.element.createElement("p",null,"Specify the gap between youtube videos.")),"carousel"!=m&&wp.element.createElement(v,{label:__("Pagination"),checked:p,onChange:function(e){return n({ispagination:e})}}),wp.element.createElement("div",{className:"ep-tips-and-tricks"},a.c,wp.element.createElement("a",{href:"#",target:"_blank",onClick:function(e){e.preventDefault(),Object(o.b)(e)}}," ",__("Tips & Tricks","embedpress")," "))),(l||c||u)&&wp.element.createElement("div",{className:"ep__single-yt-video-options"},wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},a.c," ",__("Video Controls","embedpress")),initialOpen:!1},wp.element.createElement(v,{label:__("Enable Custom Player","embedpress"),checked:P,onChange:function(e){return n({customPlayer:e})}}),P?wp.element.createElement("div",{className:"ep-video-controlers"},wp.element.createElement(s.a,{attributes:t,setAttributes:n,isYTVideo:l,isYTLive:c})):wp.element.createElement("div",{className:"ep-video-controlers"},wp.element.createElement(w,{label:__("Start Time (in seconds)"),value:_,onChange:function(e){return n({starttime:e})},type:"number",className:"ep-control-field"}),wp.element.createElement(w,{label:__("End Time (in seconds)"),value:C,onChange:function(e){return n({endtime:e})},type:"number",className:"ep-control-field"}),wp.element.createElement(v,{label:__("Auto Play"),checked:k,onChange:function(e){return n({autoplay:e})}}),wp.element.createElement(g,{label:__("Controls","embedpress"),value:L,options:[{label:"Display immediately",value:"1"},{label:"Hide controls",value:"0"},{label:"Display after user initiation immediately",value:"2"}],onChange:function(e){return n({controls:e})},className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),wp.element.createElement(v,{label:__("Fullscreen Button"),checked:S,onChange:function(e){return n({fullscreen:e})}}),wp.element.createElement(v,{label:__("Video Annotations"),checked:O,onChange:function(e){return n({videoannotations:e})}}),wp.element.createElement(g,{label:__("Progress Bar Color","embedpress"),value:x,options:[{label:"Red",value:"red"},{label:"White",value:"white"}],onChange:function(e){return n({progressbarcolor:e})},className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),f("embedpress.youtubeControls",[j],t,n,"closedCaptions"),f("embedpress.youtubeControls",[B],t,n,"modestBranding"),wp.element.createElement("div",{className:"ep-yt-related-videos"},wp.element.createElement(v,{label:__("Related Videos"),checked:T,onChange:function(e){return n({relatedvideos:e})}}),wp.element.createElement("p",null,"Enable to display related videos from all channels. Otherwise, related videos will show from the same channel.")))),wp.element.createElement(i.a,{attributes:t,setAttributes:n})))}n.d(t,"b",function(){return _}),n.d(t,"c",function(){return k}),n.d(t,"d",function(){return L}),n.d(t,"e",function(){return S}),n.d(t,"f",function(){return O}),n.d(t,"g",function(){return T}),n.d(t,"h",function(){return P}),t.a=r;var l=n(7),o=n(1),a=n(0),i=n(10),s=n(16),c=function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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=wp.isShallowEqual.isShallowEqualObjects,p=wp.element,d=p.useState,m=p.useEffect,f=wp.hooks.applyFilters,__=wp.i18n.__,b=wp.hooks.addFilter,h=wp.components,w=h.TextControl,g=h.SelectControl,y=h.RangeControl,v=h.ToggleControl,E=h.PanelBody,_=function(){b("embedpress_block_rest_param","embedpress",C,10)},C=function(e,t){if(!t.url)return e;var n={},r={};(O(t.url)||L(t.url)||S(t.url))&&(n={videosize:"fixed",starttime:"",endtime:"",autoplay:!1,controls:"2",fullscreen:!0,videoannotations:!0,progressbarcolor:"red",closedcaptions:!1,modestbranding:"0",relatedvideos:!0,customPlayer:!1,posterThumbnail:"",playerPreset:"",playerColor:"",playerRestart:!1,playerRewind:!1,playerFastForward:!1,playerTooltip:!1,playerHideControls:!1}),k(t.url)&&!L(t.url)&&(r={pagesize:6,ytChannelLayout:"gallery"});var o=Object.assign({},n,r);return Object(l.a)(e,t,o)},k=function(e){return!!e.match(/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/(?:c\/|channel\/|user\/|@)([^\/\?]+)/i)},L=function(e){return!!e.match(/^https?:\/\/(?:www\.)?youtube\.com\/(?:channel\/[\w-]+|@[\w-]+)\/live$/)},S=function(e){return/^https:\/\/www\.youtube\.com\/shorts\/[A-Za-z0-9_-]+$/.test(e)},O=function(e){var t=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/i,n=e.match(t);return!!n&&11===n[7].length},x=function(e){var t={pagesize:null,ytChannelLayout:null},n=Object(l.a)({},e,t),r=d(n),o=c(r,2),a=o[0],i=o[1];return m(function(){var n=Object(l.a)(a,e,t);u(a||{},n)||i(n)},[e]),a},T=function(e){var t={videosize:null,starttime:null,endtime:null,autoplay:null,controls:null,fullscreen:null,videoannotations:null,progressbarcolor:null,closedcaptions:null,modestbranding:null,relatedvideos:null,customPlayer:null,posterThumbnail:null,playerPreset:null,playerColor:null,playerRestart:null,playerRewind:null,playerFastForward:null,playerTooltip:null,playerHideControls:null},n=Object(l.a)({},e,t),r=d(n),o=c(r,2),a=o[0],i=o[1];return m(function(){var n=Object(l.a)(a,e,t);u(a||{},n)||i(n)},[e]),a},P=function(e,t){return _(),{youtubeParams:k(t)?x(e):T(e),isYTChannel:k(t),isYTVideo:O(t),isYTLive:L(t)}}},function(e,t){e.exports=wp.components},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.lockContent,l=(t.lockHeading,t.lockSubHeading,t.lockErrorMessage,t.passwordPlaceholder,t.submitButtonText,t.submitUnlockingText,t.enableFooterMessage,t.footerMessage,t.contentPassword,Object(o.applyFilters)("embedpress.togglePlaceholder",[],"Enable Content Protection",!1));return wp.element.createElement(s,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},a.c," ",__("Content Protection","embedpress")),initialOpen:!1,className:r?"":"disabled-content-protection"},Object(o.applyFilters)("embedpress.toggleContentProtection",[l],t,n),Object(o.applyFilters)("embedpress.lockContentControllers",[],t,n))}t.a=r;var l=n(9),o=(n.n(l),n(11)),a=(n.n(o),n(1),n(0)),__=wp.i18n.__,i=wp.components,s=(i.TextControl,i.TextareaControl,i.ToggleControl,i.PanelBody)},function(e,t,n){"use strict";var r=n(1),l=n(8),o=(n.n(l),n(3)),a=n(7),__=wp.i18n.__,i=wp.hooks.applyFilters,s=wp.components,c=(s.SelectControl,s.ToggleControl),u=(s.ColorPalette,s.Button,s.TextControl),p=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#5b4e96"},{name:"",color:"#0000FF"},{name:"",color:"#FFA500"}],d=function(e){var t=e.attributes,n=e.setAttributes,l=e.isYTVideo,s=e.isYTLive,d=e.isYTShorts,m=e.isVimeoVideo,f=e.isSelfHostedAudio,b=t.url,h=t.customPlayer,w=t.starttime,g=t.endtime,y=t.autoplay,v=t.fullscreen,E=t.relatedvideos,_=t.vautoplay,C=(t.vautopause,t.vdnt,t.posterThumbnail,t.playerPip,t.playerRestart),k=t.playerRewind,L=t.playerFastForward;t.playerPreset,t.playerColor,t.playerTooltip,t.playerHideControls,t.playerDownload;Object(a.e)(b);document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(r.j)("none")),Object(r.k)()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Object(r.q)("none")),Object(r.l)());var S=i("embedpress.togglePlaceholder",[],__("Tooltip","embedpress"),!0),O=i("embedpress.togglePlaceholder",[],__("Auto Hide Controls","embedpress"),!0),x=i("embedpress.togglePlaceholder",[],__("Source Link","embedpress"),!0),T=i("embedpress.togglePlaceholder",[],__("Sticky Video","embedpress"),!1),P=i("embedpress.uploadPlaceholder",[],__("Sticky Video","embedpress"),!1),F=i("embedpress.selectPlaceholder",[],__("Preset","embedpress"),"default","Default"),j=i("embedpress.colorPlatePlaceholder",[],__("Player Color","embedpress"),"#5b4e96",p),B=i("embedpress.togglePlaceholder",[],__("Auto Paause","embedpress"),!1),U=i("embedpress.togglePlaceholder",[],__("DNT","embedpress"),!1);return wp.element.createElement("div",{className:"ep-custom-player-controls"},i("embedpress.youtubeControls",[F],t,n,"preset",e),(s||l||d)&&wp.element.createElement("div",{className:"youtube-player-controls"},wp.element.createElement(u,{label:__("Start Time (in seconds)"),value:w,onChange:function(e){return n({starttime:e})},type:"number",className:"ep-control-field"}),wp.element.createElement(u,{label:__("End Time (in seconds)"),value:g,onChange:function(e){return n({endtime:e})},type:"number",className:"ep-control-field"}),!h&&wp.element.createElement("div",null,wp.element.createElement(c,{label:__("Auto Play"),checked:y,onChange:function(e){return n({autoplay:e})}}),wp.element.createElement(c,{label:__("Fullscreen Button"),checked:v,onChange:function(e){return n({fullscreen:e})}}))),i("embedpress.youtubeControls",[j],t,n,"playerColor"),h&&(s||l)&&wp.element.createElement("div",{className:"remove-last-child-margin"},wp.element.createElement(c,{label:__("Auto Play"),checked:y,onChange:function(e){return n({autoplay:e})}}),wp.element.createElement(c,{label:__("Fullscreen Button"),checked:v,onChange:function(e){return n({fullscreen:e})}})),m&&wp.element.createElement("div",{className:"vimeo-player-controls"},wp.element.createElement(c,{label:__("Auto Play"),checked:_,onChange:function(e){return n({vautoplay:e})}}),i("embedpress.vimeoControls",[B],t,n,"autoPause"),i("embedpress.vimeoControls",[U],t,n,"dnt")),wp.element.createElement(c,{label:__("Restart"),checked:C,onChange:function(e){return n({playerRestart:e})}}),wp.element.createElement(c,{label:__("Rewind"),checked:k,onChange:function(e){return n({playerRewind:e})}}),wp.element.createElement(c,{label:__("Fast Forward"),checked:L,onChange:function(e){return n({playerFastForward:e})}}),i("embedpress.youtubeControls",[S],t,n,"tooltip"),i("embedpress.youtubeControls",[O],t,n,"autoHide"),i("embedpress.youtubeControls",[x],t,n,"sourceLink"),i("embedpress.youtubeControls",[T],t,n,"stickyVideo"),(s||l)&&wp.element.createElement("div",{className:"ep-yt-related-videos"},wp.element.createElement(c,{label:__("Related Videos"),checked:E,onChange:function(e){return n({relatedvideos:e})}}),wp.element.createElement("p",null,"Enable to display related videos from all channels. Otherwise, related videos will show from the same channel.")),!f&&wp.element.createElement("div",null,wp.element.createElement(o.a,{headerText:"Thumbnail"}),i("embedpress.youtubeControls",P,t,n,"thumbnail",e)))};t.a=d},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isOpensea,l=e.isOpenseaSingle,a=t.limit,p=(t.itemperpage,t.loadmore),d=(t.loadmorelabel,t.orderby),m=t.layout,f=t.preset,b=t.nftperrow,h=t.gapbetweenitem,w=t.collectionname,L=t.nftimage,S=t.nftcreator,O=(t.prefix_nftcreator,t.nfttitle),x=t.nftprice,T=(t.prefix_nftprice,t.nftlastsale),P=(t.prefix_nftlastsale,t.nftbutton),F=t.nftrank,j=(t.label_nftrank,t.nftdetails),B=(t.label_nftdetails,t.label_nftbutton,t.alignment,t.itemBGColor),U=t.collectionNameColor,M=t.collectionNameFZ,N=t.titleColor,R=t.titleFontsize,z=t.creatorColor,A=t.creatorFontsize,I=t.creatorLinkColor,D=t.creatorLinkFontsize,H=t.priceLabelColor,V=t.priceLabelFontsize,q=t.priceColor,G=t.priceFontsize,Z=t.priceUSDColor,Y=t.priceUSDFontsize,W=t.lastSaleLabelColor,$=t.lastSaleLabelFontsize,X=t.lastSaleColor,J=t.lastSaleFontsize,Q=t.lastSaleUSDColor,K=t.lastSaleUSDFontsize,ee=t.buttonTextColor,te=t.buttonBackgroundColor,ne=t.buttonFontSize,re=(t.loadmoreTextColor,t.loadmoreBackgroundColor,t.loadmoreTextFontsize,t.rankBtnColor),le=t.rankBtnFZ,oe=t.rankBtnBorderColor,ae=t.rankLabelColor,ie=t.rankLabelFZ,se=t.detialTitleColor,ce=t.detialTitleFZ,ue=t.detailTextColor,pe=t.detailTextLinkColor,de=t.detailTextFZ;embedpressObj.is_pro_plugin_active;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 me=[{name:__("Small"),slug:"small",size:16},{name:__("Medium"),slug:"medium",size:18},{name:__("Large"),slug:"big",size:26}],fe=[{name:"",color:"red"},{name:"",color:"green"},{name:"",color:"blue"},{name:"",color:"yellow"},{name:"",color:"orange"}],be=(k("embedpress.uploadPlaceholder",[],__("Sticky Video","embedpress"),!1),k("embedpress.textControlPlaceholder",[],__("Creator Prefix","embedpress"),"")),he=k("embedpress.textControlPlaceholder",[],__("Price Prefix","embedpress"),""),we=k("embedpress.textControlPlaceholder",[],__("Last Sale Prefix","embedpress"),""),ge=k("embedpress.textControlPlaceholder",[],__("Button Label","embedpress"),""),ye=k("embedpress.textControlPlaceholder",[],__("Rank Label","embedpress"),""),ve=k("embedpress.textControlPlaceholder",[],__("Details Label","embedpress"),""),Ee=k("embedpress.togglePlaceholder",[],__("Load More","embedpress"),!1);return(r||l)&&wp.element.createElement("div",null,r&&wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},u.c," ",__("Query","embedpress")),initialOpen:!0,className:"ep-opensea-options"},wp.element.createElement("div",null,wp.element.createElement(y,{label:__("Limit","embedpress"),value:a,onChange:function(e){return n({limit:e})},min:1,max:100}),wp.element.createElement(g,{label:__("Order By","embedpress"),value:d,options:[{label:"Oldest",value:"asc"},{label:"Newest",value:"desc"}],onChange:function(e){return n({orderby:e})},__nextHasNoMarginBottom:!0}))),r&&wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},u.c," ",__("Layout","embedpress")),initialOpen:!1,className:"ep-opensea-options"},wp.element.createElement("div",null,wp.element.createElement(g,{label:__("Layout","embedpress"),value:m,options:[{label:"List",value:"ep-list"},{label:"Grid",value:"ep-grid"}],onChange:function(e){return n({layout:e})}}),"ep-grid"==m&&wp.element.createElement(g,{label:__("Preset","embedpress"),value:f,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(y,{label:__("Item Per Row","embedpress"),value:b||3,onChange:function(e){return n({nftperrow:e})},min:1,max:6}),wp.element.createElement(y,{label:__("Gap Between Item","embedpress"),value:h,onChange:function(e){return n({gapbetweenitem:e})},min:1,max:100}))),wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},u.c," ",__("Content","embedpress")),initialOpen:!1,className:"ep-opensea-options"},l&&wp.element.createElement(v,{label:__("Collection Name","embedpress"),checked:w,onChange:function(e){return n({collectionname:e})}}),wp.element.createElement(v,{label:__("Thumbnail","embedpress"),checked:L,onChange:function(e){return n({nftimage:e})}}),wp.element.createElement(v,{label:__("Title","embedpress"),checked:O,onChange:function(e){return n({nfttitle:e})}}),wp.element.createElement(v,{label:__("Creator","embedpress"),checked:S,onChange:function(e){return n({nftcreator:e})}}),S&&k("embedpress.openseaControls",[be],t,n,"creatorPrefix"),wp.element.createElement(v,{label:__("Show Price","embedpress"),checked:x,onChange:function(e){return n({nftprice:e})}}),x&&k("embedpress.openseaControls",[he],t,n,"pricePrefix"),wp.element.createElement(v,{label:__("Last Sale","embedpress"),checked:T,onChange:function(e){return n({nftlastsale:e})}}),T&&k("embedpress.openseaControls",[we],t,n,"lastSalePrefix"),wp.element.createElement(v,{label:__("Show Button","embedpress"),checked:P,onChange:function(e){return n({nftbutton:e})}}),P&&k("embedpress.openseaControls",[ge],t,n,"buttonLabel"),l&&wp.element.createElement("div",null,wp.element.createElement(v,{label:__("Rank","embedpress"),checked:F,onChange:function(e){return n({nftrank:e})}}),F&&k("embedpress.openseaControls",[ye],t,n,"rankLabel"),wp.element.createElement(v,{label:__("Details","embedpress"),checked:j,onChange:function(e){return n({nftdetails:e})}}),j&&k("embedpress.openseaControls",[ve],t,n,"detailsLabel"))),r&&wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},u.c," ",__("Load More","embedpress")),initialOpen:!1,className:"ep-opensea-options"},k("embedpress.openseaControls",[Ee],t,n,"loadMore")),wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},u.c," ",__("Color and Typography","embedpress")),initialOpen:!1,className:"ep-colors-typography"},wp.element.createElement("p",null,__("You can adjust the color and typography of embedded content.")),wp.element.createElement("div",{className:"ep-opensea-sub-controls"},wp.element.createElement(E,{title:__("Item"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(_,{label:__("Background Color"),colors:fe,value:B,onChange:function(e){return n({itemBGColor:e})}})),wp.element.createElement(E,{title:__("Collection Name"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:U,onChange:function(e){return n({collectionNameColor:e})}}),wp.element.createElement(o.a,{headerText:"Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:M,fallbackFontSize:16,onChange:function(e){return n({collectionNameFZ:e})}})),wp.element.createElement(E,{title:__("Title"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:N,onChange:function(e){return n({titleColor:e})}}),wp.element.createElement(o.a,{headerText:"Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:R,fallbackFontSize:16,onChange:function(e){return n({titleFontsize:e})}})),wp.element.createElement(E,{title:__("Creator"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:z,onChange:function(e){return n({creatorColor:e})}}),wp.element.createElement(o.a,{headerText:"Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:A,fallbackFontSize:16,onChange:function(e){return n({creatorFontsize:e})}}),wp.element.createElement(o.a,{headerText:"Link Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:I,onChange:function(e){return n({creatorLinkColor:e})}}),wp.element.createElement(o.a,{headerText:"Link Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:D,fallbackFontSize:16,onChange:function(e){return n({creatorLinkFontsize:e})}})),wp.element.createElement(E,{title:__("Current Price"),initialOpen:!1},l&&wp.element.createElement("div",null,wp.element.createElement(o.a,{headerText:"Label Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:H,onChange:function(e){return n({priceLabelColor:e})}}),wp.element.createElement(o.a,{headerText:"Label Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:V,fallbackFontSize:16,onChange:function(e){return n({priceLabelFontsize:e})}})),wp.element.createElement(o.a,{headerText:"ETH Price Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:q,onChange:function(e){return n({priceColor:e})}}),wp.element.createElement(o.a,{headerText:"ETH Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:G,fallbackFontSize:16,onChange:function(e){return n({priceFontsize:e})}}),l&&wp.element.createElement("div",null,wp.element.createElement(o.a,{headerText:"USD Price Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:Z,onChange:function(e){return n({priceUSDColor:e})}}),wp.element.createElement(o.a,{headerText:"USD Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:Y,fallbackFontSize:16,onChange:function(e){return n({priceUSDFontsize:e})}}))),wp.element.createElement(E,{title:__("Last Sale Price"),initialOpen:!1},l&&wp.element.createElement("div",null,wp.element.createElement(o.a,{headerText:"Label Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:W,onChange:function(e){return n({lastSaleLabelColor:e})}}),wp.element.createElement(o.a,{headerText:"Label Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:$,fallbackFontSize:16,onChange:function(e){return n({lastSaleLabelFontsize:e})}})),wp.element.createElement(o.a,{headerText:"ETH Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:X,onChange:function(e){return n({lastSaleColor:e})}}),wp.element.createElement(o.a,{headerText:"ETH Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:J,fallbackFontSize:16,onChange:function(e){return n({lastSaleFontsize:e})}}),l&&wp.element.createElement("div",null,wp.element.createElement(o.a,{headerText:"USD Price Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:Q,onChange:function(e){return n({lastSaleUSDColor:e})}}),wp.element.createElement(o.a,{headerText:"USD Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:K,fallbackFontSize:16,onChange:function(e){return n({lastSaleUSDFontsize:e})}}))),wp.element.createElement(E,{title:__("Button"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:ee,onChange:function(e){return n({buttonTextColor:e})}}),wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:te,onChange:function(e){return n({buttonBackgroundColor:e})}}),wp.element.createElement(o.a,{headerText:"Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:ne,fallbackFontSize:16,onChange:function(e){return n({buttonFontSize:e})}})),p&&k("embedpress.openseaControls",[],t,n,"loadmorePanelBody"),l&&wp.element.createElement(E,{title:__("Rank"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Label Color"}),wp.element.createElement(_,{label:__("Label Color"),colors:fe,value:ae,onChange:function(e){return n({rankLabelColor:e})}}),wp.element.createElement(o.a,{headerText:"Label Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:ie,fallbackFontSize:16,onChange:function(e){return n({rankLabelFZ:e})}}),wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(_,{label:__("Title Color"),colors:fe,value:re,onChange:function(e){return n({rankBtnColor:e})}}),wp.element.createElement(o.a,{headerText:"Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:le,fallbackFontSize:16,onChange:function(e){return n({rankBtnFZ:e})}}),wp.element.createElement(o.a,{headerText:"Border Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:oe,onChange:function(e){return n({rankBtnBorderColor:e})}})),l&&wp.element.createElement(E,{title:__("Details"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Title Color"}),wp.element.createElement(_,{label:__("Title Color"),colors:fe,value:se,onChange:function(e){return n({detialTitleColor:e})}}),wp.element.createElement(o.a,{headerText:"Title Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:ce,fallbackFontSize:16,onChange:function(e){return n({detialTitleFZ:e})}}),wp.element.createElement(o.a,{headerText:"Content Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:ue,onChange:function(e){return n({detailTextColor:e})}}),wp.element.createElement(o.a,{headerText:"Link Color"}),wp.element.createElement(_,{label:__("Color"),colors:fe,value:pe,onChange:function(e){return n({detailTextLinkColor:e})}}),wp.element.createElement(o.a,{headerText:"Content Font Size"}),wp.element.createElement(C,{__nextHasNoMarginBottom:!0,fontSizes:me,value:de,fallbackFontSize:16,onChange:function(e){return n({detailTextFZ:e})}})))),wp.element.createElement(c.a,{attributes:t,setAttributes:n}),wp.element.createElement(i.a,{attributes:t,setAttributes:n}),wp.element.createElement(s.a,{attributes:t,setAttributes:n}))}n.d(t,"b",function(){return L}),n.d(t,"c",function(){return O}),n.d(t,"d",function(){return x}),n.d(t,"e",function(){return T}),t.a=r;var l=n(9),o=(n.n(l),n(3)),a=n(7),i=n(15),s=n(12),c=n(21),u=n(0),p=function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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=wp.isShallowEqual.isShallowEqualObjects,m=wp.element,f=m.useState,b=m.useEffect,__=wp.i18n.__,h=wp.hooks.addFilter,w=wp.components,g=w.SelectControl,y=w.RangeControl,v=w.ToggleControl,E=(w.TextControl,w.PanelBody),_=w.ColorPalette,C=w.FontSizePicker,k=(wp.blockEditor.InspectorControls,wp.hooks.applyFilters),L=function(){h("embedpress_block_rest_param","embedpress",S,10)},S=function(e,t){if(!t.url||!O(t.url)&&!x(t.url))return e;var n={limit:20,itemperpage:9,loadmore:!1,loadmorelabel:"Load More",orderby:"desc",layout:x?"ep-list":"ep-grid",preset:"ep-preset-1",nftperrow:"3",gapbetweenitem:30,collectionname:!1,nftrank:!1,label_nftrank:"",nftdetails:!1,label_nftdetails:"",nftimage:!1,nftcreator:!1,prefix_nftcreator:"",nfttitle:!1,nftprice:!1,prefix_nftprice:"",nftlastsale:!1,prefix_nftlastsale:"",nftbutton:!1,label_nftbutton:"",itemBGColor:"",collectionNameColor:"",collectionNameFZ:"",titleColor:"",titleFontsize:"",creatorColor:"",creatorFontsize:"",creatorLinkColor:"",creatorLinkFontsize:"",priceLabelColor:"",priceLabelFontsize:"",priceColor:"",priceFontsize:"",priceUSDColor:"",priceUSDFontsize:"",lastSaleLabelColor:"",lastSaleLabelFontsize:"",lastSaleColor:"",lastSaleFontsize:"",lastSaleUSDColor:"",lastSaleUSDFontsize:"",buttonTextColor:"",buttonBackgroundColor:"",buttonFontSize:"",loadmoreTextColor:"",loadmoreBackgroundColor:"",loadmoreTextFontsize:"",rankBtnColor:"",rankBtnFZ:"",rankBtnBorderColor:"",rankLabelColor:"",rankLabelFZ:"",detialTitleColor:"",detialTitleFZ:"",detailTextColor:"",detailTextLinkColor:"",detailTextFZ:""};return Object(a.a)(e,t,n)},O=function(e){return e.match(/\/collection\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.com\/)(\w+)[^?\/]*$/i)},x=function(e){return e.match(/\/assets\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.io\/)(\w+)[^?\/]*$/i)},T=function(e){var t={limit:null,itemperpage:null,loadmore:null,loadmorelabel:null,layout:null,preset:null,orderby:null,collectionname:null,nftimage:null,nfttitle:null,nftprice:null,prefix_nftprice:null,nftlastsale:null,prefix_nftlastsale:null,nftperrow:null,gapbetweenitem:null,nftbutton:null,nftrank:null,label_nftrank:null,nftdetails:null,label_nftdetails:null,label_nftbutton:null,nftcreator:null,prefix_nftcreator:null,itemBGColor:null,collectionNameColor:null,collectionNameFZ:null,titleColor:null,titleFontsize:null,creatorColor:null,creatorFontsize:null,creatorLinkColor:null,creatorLinkFontsize:null,priceLabelColor:null,priceLabelFontsize:null,priceColor:null,priceFontsize:null,priceUSDColor:null,priceUSDFontsize:null,lastSaleLabelColor:null,lastSaleLabelFontsize:null,lastSaleColor:null,lastSaleFontsize:null,lastSaleUSDColor:null,lastSaleUSDFontsize:null,buttonTextColor:null,buttonBackgroundColor:null,buttonFontSize:null,loadmoreTextColor:null,loadmoreBackgroundColor:null,loadmoreTextFontsize:null,rankBtnColor:null,rankBtnFZ:null,rankBtnBorderColor:null,rankLabelColor:null,rankLabelFZ:null,detialTitleColor:null,detialTitleFZ:null,detailTextColor:null,detailTextLinkColor:null,detailTextFZ:null},n=Object(a.a)({},e,t),r=f(n),l=p(r,2),o=l[0],i=l[1];return b(function(){var n=Object(a.a)(o,e,t);d(o||{},n)||i(n)},[e]),o}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isVimeoVideo,l=t.vstarttime,c=t.vautoplay,p=t.vscheme,d=t.vtitle,m=t.vauthor,f=t.vavatar,b=(t.vloop,t.vautopause,t.vdnt,t.customPlayer);t.customlogo,t.logoX,t.logoY,t.customlogoUrl,t.logoOpacity,embedpressObj.is_pro_plugin_active;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(o.j)("none")),Object(o.k)());var h=g("embedpress.togglePlaceholder",[],__("Loop","embedpress"),!1),w=g("embedpress.togglePlaceholder",[],__("Auto Paause","embedpress"),!1),y=g("embedpress.togglePlaceholder",[],__("DNT","embedpress"),!1);return wp.element.createElement("div",null,r&&wp.element.createElement("div",{className:"ep__vimeo-video-options"},wp.element.createElement(_,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},u.c," ",__("Video Controls","embedpress")),initialOpen:!1},wp.element.createElement(E,{label:__("Enable Custom Player","embedpress"),checked:b,onChange:function(e){return n({customPlayer:e})}}),b?wp.element.createElement("div",{className:"ep-video-controlers"},wp.element.createElement(s.a,{attributes:t,setAttributes:n,isVimeoVideo:r})):wp.element.createElement("div",{className:"ep-video-controlers"},wp.element.createElement(v,{label:__("Start Time (In Seconds)"),value:l,onChange:function(e){return n({vstarttime:e})},type:"number",className:"ep-control-field"}),wp.element.createElement(E,{label:__("Auto Play"),checked:c,onChange:function(e){return n({vautoplay:e})}}),wp.element.createElement(a.a,{headerText:"Scheme"}),wp.element.createElement(C,{label:__("Scheme"),colors:L,value:p,onChange:function(e){return n({vscheme:e})}}),wp.element.createElement(E,{label:__("Title"),checked:d,onChange:function(e){return n({vtitle:e})}}),wp.element.createElement(E,{label:__("Author"),checked:m,onChange:function(e){return n({vauthor:e})}}),wp.element.createElement(E,{label:__("Avatar"),checked:f,onChange:function(e){return n({vavatar:e})}}),g("embedpress.vimeoControls",[h],t,n,"loop"),g("embedpress.vimeoControls",[w],t,n,"autoPause"),g("embedpress.vimeoControls",[y],t,n,"dnt"))),wp.element.createElement(i.a,{attributes:t,setAttributes:n})))}n.d(t,"b",function(){return k}),n.d(t,"c",function(){return O}),n.d(t,"d",function(){return x}),t.a=r;var l=n(7),o=n(1),a=n(3),i=n(10),s=n(16),c=n(8),u=(n.n(c),n(0)),p=function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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=wp.isShallowEqual.isShallowEqualObjects,m=wp.element,f=m.useState,b=m.useEffect,__=wp.i18n.__,h=wp.hooks,w=h.addFilter,g=h.applyFilters,y=wp.components,v=y.TextControl,E=(y.SelectControl,y.RangeControl,y.ToggleControl),_=y.PanelBody,C=(y.Button,y.ColorPalette),k=function(){w("embedpress_block_rest_param","embedpress",S,10)},L=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],S=function(e,t){if(!t.url)return e;var n={};O(t.url)&&(n={vstarttime:"",vautoplay:!1,vscheme:"#00ADEF",vtitle:!0,vauthor:!0,vavatar:!0,vloop:!1,vautopause:!1,vdnt:!1});var r=Object.assign({},n);return Object(l.a)(e,t,r)},O=function(e){return e.match(/https?:\/\/(www\.)?vimeo\.com\/\d+/)},x=function(e){var t={vstarttime:null,vautoplay:null,vscheme:null,vtitle:null,vauthor:null,vavatar:null,vloop:null,vautopause:null,vdnt:null},n=Object(l.a)({},e,t),r=f(n),o=p(r,2),a=o[0],i=o[1];return b(function(){var n=Object(l.a)(a,e,t);d(a||{},n)||i(n)},[e]),a}},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 o=t.cta_url?t.cta_url:null,a=t.logo_xpos?t.logo_xpos+"%":"10%",i=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: "+i+";\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",o&&""!==o&&(r+="<a href="+o+">"),r+='<img class="watermark" alt="" src="'+t.logo_url+'"/>',o&&""!==o&&(r+="</a>"),wp.element.createElement(l,null,wp.element.createElement("style",{dangerouslySetInnerHTML:{__html:n}}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}return""}var l=wp.element.Fragment;t.a=r},function(e,t,n){"use strict";var r=n(9),l=(n.n(r),function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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")}}()),o=function(e){var t=e.attributes,n=e.setAttributes,o=e.deleteIcon,a=e.inEditor,i=e.progressBar,s=t.adSource,c=t.adContent,u=t.adFileUrl,p=t.adSkipButton,d=Object(r.useState)(!1),m=l(d,2),f=m[0],b=m[1],h=Object(r.useState)(0),w=l(h,2),g=w[0],y=w[1],v=Object(r.useRef)(null),E=t.adWidth,_=t.adHeight,C=function(){n({adFileUrl:""})},k=0;c&&(k=c.fileLength?function(e){var t=e.split(":"),n=l(t,2),r=n[0],o=n[1];return 60*parseInt(r,10)+parseInt(o,10)}(c.fileLength):0);var L=function(){var e=v.current;if(e){var t=e.currentTime;y(t),t>=3&&b(!0)}};Object(r.useEffect)(function(){if("video"!==s){var e=setTimeout(function(){b(!0)},3e3);return function(){clearTimeout(e)}}v.current.addEventListener("timeupdate",L)},[s,c,u]);var S=function(){n({adFileUrl:""})},O={width:E+"px",height:_+"px"},x=!1;return a||(O={},x=!0),wp.element.createElement("div",{className:"main-ad-template",style:O},wp.element.createElement("div",{className:"ep-ad-container"},wp.element.createElement("div",{className:"ep__custom-logo",style:{position:"relative"}},o||!a&&wp.element.createElement("button",{title:"Remove Image",className:"ep-remove__image",type:"button",onClick:C},wp.element.createElement("span",{className:"dashicon dashicons dashicons-trash"})),"video"===s?wp.element.createElement("div",null,wp.element.createElement("video",{ref:v,className:"ep-ad",autoPlay:!0,muted:x},wp.element.createElement("source",{src:u}),"Your browser does not support the video tag.")):wp.element.createElement("div",null,wp.element.createElement("img",{src:u})),i||!("image"===s)&&wp.element.createElement("div",{className:"progress-bar-container"},wp.element.createElement("div",{className:"progress-bar",style:{background:"#5be82a",height:"4px",marginTop:"-4px",width:("video"===s?g/k*100:100)+"%",maxWidth:"100%"}})),p&&f&&wp.element.createElement("button",{title:"Skip Ad",className:"skip-ad-button",onClick:S},"Skip Ad"))))};t.a=o},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.adManager,i=(t.adSource,t.adContent,t.adFileUrl);t.adWidth,t.adHeight,t.adXPosition,t.adYPosition,t.adUrl,t.adStart,t.adSkipButton,t.adSkipButtonAfter,Object(l.useRef)(null);var s=Object(o.applyFilters)("embedpress.togglePlaceholder",[],"Ads Settings",!0),c=Object(o.applyFilters)("embedpress.adsPlaceholder",[]);return wp.element.createElement(u,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},a.c," ",__("Ads Settings","embedpress")),initialOpen:!1,className:r?"":"disabled-content-protection"},Object(o.applyFilters)("embedpress.adsSettings",[s],t,n),Object(o.applyFilters)("embedpress.adManagerSettings",[c],t,n),wp.element.createElement("div",{className:"ep-documentation ads-help"},a.c,wp.element.createElement("a",{href:"https://embedpress.com/docs/add-ep-content-protection-in-embedded-content/",target:"_blank"}," ",__("Need Help?","emebdpress")," ")))}t.a=r;var l=n(9),o=(n.n(l),n(11)),a=(n.n(o),n(1),n(0)),i=n(8),s=(n.n(i),n(20),n(14)),__=(n.n(s),wp.i18n.__),c=wp.components,u=(c.TextControl,c.RangeControl,c.SelectControl,c.ToggleControl,c.PanelBody);c.Button},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isWistiaVideo,i=t.wstarttime,s=t.wautoplay,u=t.scheme,p=(t.captions,t.playbar),d=t.wfullscreen,m=(t.playbutton,t.smallplaybutton),f=(t.resumable,t.wistiafocus,t.volumecontrol);t.volume,t.rewind,t.customlogo,t.logoX,t.logoY,t.customlogoUrl,t.logoOpacity,embedpressObj.is_pro_plugin_active;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(l.j)("none")),Object(l.k)());var b=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],h=w("embedpress.togglePlaceholder",[],__("Captions","embedpress"),!0),g=w("embedpress.togglePlaceholder",[],__("Volume Control","embedpress"),!0),C=w("embedpress.rangeControlPlaceholder",[],__("Volume"),50,0,100,!0);return wp.element.createElement("div",null,r&&wp.element.createElement("div",{className:"ep__single-yt-video-options"},wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},c.c," ",__("Wistia Video Controls","embedpress")),initialOpen:!1},wp.element.createElement("div",{className:"ep-video-controlers"},wp.element.createElement(y,{label:__("Start Time (In Seconds)"),value:i,onChange:function(e){return n({wstarttime:e})},type:"number",className:"ep-control-field"}),wp.element.createElement(v,{label:__("Auto Play"),checked:s,onChange:function(e){return n({wautoplay:e})}}),wp.element.createElement(o.a,{headerText:"Scheme"}),wp.element.createElement(_,{label:__("Scheme"),colors:b,value:u,onChange:function(e){return n({scheme:e})}}),wp.element.createElement("hr",null),wp.element.createElement(v,{label:__("Fullscreen Button"),checked:d,onChange:function(e){return n({wfullscreen:e})}}),wp.element.createElement(v,{label:__("Small Play Button"),checked:m,onChange:function(e){return n({smallplaybutton:e})}}),w("embedpress.wistiaControls",[h],t,n,"captions"),wp.element.createElement(v,{label:__("Playbar"),checked:p,onChange:function(e){return n({playbar:e})}}),w("embedpress.wistiaControls",[g],t,n,"volume"),f&&w("embedpress.wistiaControls",[C],t,n,"volumeRange"))),wp.element.createElement(a.a,{attributes:t,setAttributes:n})))}n.d(t,"b",function(){return C}),n.d(t,"c",function(){return L}),n.d(t,"d",function(){return S}),t.a=r;var l=n(1),o=n(3),a=n(10),i=n(7),s=n(8),c=(n.n(s),n(0)),u=function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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")}}(),__=wp.i18n.__,p=wp.isShallowEqual.isShallowEqualObjects,d=wp.element,m=d.useState,f=d.useEffect,b=wp.hooks,h=b.addFilter,w=b.applyFilters,g=wp.components,y=g.TextControl,v=(g.SelectControl,g.RangeControl,g.ToggleControl),E=g.PanelBody,_=(g.Button,g.ColorPalette),C=function(){h("embedpress_block_rest_param","embedpress",k,10)},k=function(e,t){if(!t.url)return e;var n={};L(t.url)&&(n={wstarttime:"",wautoplay:!1,scheme:"",captions:!0,playbar:!0,wfullscreen:!0,playbutton:!0,smallplaybutton:!0,resumable:!0,wistiafocus:!0,volumecontrol:!0,volume:100,rewind:!0,customlogo:"",logoX:5,logoY:10,customlogoUrl:"",logoOpacity:.6});var r=Object.assign({},n);return Object(i.a)(e,t,r)},L=function(e){return e.match(/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i)},S=function(e){var t={wstarttime:null,wautoplay:null,scheme:null,captions:null,playbar:null,wfullscreen:null,playbutton:null,smallplaybutton:null,resumable:null,wistiafocus:null,volumecontrol:null,volume:null,rewind:null,customlogo:null,logoX:null,logoY:null,customlogoUrl:null,logoOpacity:null},n=Object(i.a)({},e,t),r=m(n),l=u(r,2),o=l[0],a=l[1];return f(function(){var n=Object(i.a)(o,e,t);p(o||{},n)||a(n)},[e]),o}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.url,a=t.instaLayout,s=t.instafeedFeedType,c=t.instafeedAccountType,u=t.instafeedColumns,p=t.instafeedColumnsGap,d=t.instafeedPostsPerPage,m=(t.instafeedTab,t.instafeedCommentsCount,t.instafeedLikesCount,t.instafeedPopup),b=t.instafeedPopupFollowBtn,h=t.instafeedPopupFollowBtnLabel,_=t.instafeedLoadmore,C=t.instafeedLoadmoreLabel,k=t.slidesShow,L=(t.slidesScroll,t.carouselAutoplay),S=t.autoplaySpeed,O=t.transitionSpeed,x=t.carouselLoop,T=t.carouselArrows,P=t.carouselSpacing,F=(t.carouselDots,t.instafeedProfileImage),j=t.instafeedProfileImageUrl,B=t.instafeedFollowBtn,U=t.instafeedFollowBtnLabel,M=t.instafeedPostsCount,N=t.instafeedPostsCountText,R=t.instafeedFollowersCount,z=t.instafeedFollowersCountText,A=t.instafeedAccName,I=Object(l.h)(r),D=function(e){n({instafeedProfileImageUrl:""})};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(l.j)("none")),Object(l.k)());var H=[{label:"Auto",value:"auto"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"}];"insta-carousel"===a&&n({instafeedLoadmore:!1});var V=f("embedpress.uploadPlaceholder",[]),q=f("embedpress.togglePlaceholder",[],__("Feed Tab","embedpress"),!1),G=f("embedpress.togglePlaceholder",[],__("Likes Count","embedpress"),!1),Z=f("embedpress.togglePlaceholder",[],__("Comments Count","embedpress"),!1);return wp.element.createElement("div",null,I&&wp.element.createElement("div",{className:"ep__instafeed-options"},wp.element.createElement(v,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},i.c," ",__("Profile Settings","embedpress")),initialOpen:!1},wp.element.createElement(y,{label:__("Profile Image","embedpress"),checked:F,onChange:function(e){n({instafeedProfileImage:e}),console.log({instafeedProfileImage:e})}}),j&&wp.element.createElement("div",{className:"ep__custom-logo",style:{position:"relative"}},wp.element.createElement("button",{title:"Remove Image",className:"ep-remove__image",type:"button",onClick:D},wp.element.createElement("span",{class:"dashicon dashicons dashicons-trash"})),wp.element.createElement("img",{src:j,alt:"John"})),F&&f("embedpress.instafeedControls",[V],t,n,"profileImage"),wp.element.createElement(y,{label:__("Follow Button","embedpress"),checked:B,onChange:function(e){return n({instafeedFollowBtn:e})}}),B&&wp.element.createElement(w,{label:__("Button Label","embedpress"),value:U,onChange:function(e){return n({instafeedFollowBtnLabel:e})}}),wp.element.createElement(y,{label:__("Posts Count","embedpress"),checked:M,onChange:function(e){return n({instafeedPostsCount:e})}}),M&&wp.element.createElement(w,{label:__("Count Text","embedpress"),value:N,onChange:function(e){return n({instafeedPostsCountText:e})}}),"business"===c&&wp.element.createElement(y,{label:__("Followers Count","embedpress"),checked:R,onChange:function(e){return n({instafeedFollowersCount:e})}}),R&&"business"===c&&wp.element.createElement(w,{label:__("Count Text","embedpress"),value:z,onChange:function(e){return n({instafeedFollowersCountText:e})}}),"business"===c&&wp.element.createElement(y,{label:__("Account Name","embedpress"),checked:A,onChange:function(e){return n({instafeedAccName:e})}})),wp.element.createElement(v,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},i.c," ",__("Feed Settings","embedpress")),initialOpen:!1},I&&wp.element.createElement("div",{className:"instafeed-controls"},wp.element.createElement(g,{label:__("Layout"),value:a,options:[{label:"Grid",value:"insta-grid"},{label:"Masonry",value:"insta-masonry"},{label:"Carousel",value:"insta-carousel"}],onChange:function(e){return n({instaLayout:e})},__nextHasNoMarginBottom:!0}),"insta-carousel"===a&&wp.element.createElement(E,{className:"elementor-panel-alert elementor-panel-warning-info margin-bottom-10"},"Changes will apply in frontend."),("insta-grid"===a||"insta-masonry"===a)&&wp.element.createElement("div",null,wp.element.createElement(g,{label:__("Columns","embedpress"),value:u,options:H,onChange:function(e){return n({instafeedColumns:e})}}),wp.element.createElement(w,{label:__("Column Gap","embedpress"),value:p,onChange:function(e){return n({instafeedColumnsGap:e})}})),"insta-carousel"===a&&wp.element.createElement("div",null,wp.element.createElement(g,{label:__("Slides to Show","embedpress"),value:k,options:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"10",value:"10"}],onChange:function(e){return n({slidesShow:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(y,{label:__("Autoplay","embedpress"),checked:L,onChange:function(e){return n({carouselAutoplay:e})}}),wp.element.createElement(w,{label:__("Autoplay Speed(ms)","embedpress"),value:S,onChange:function(e){return n({autoplaySpeed:e})}}),wp.element.createElement(w,{label:__("Transition Speed(ms)","embedpress"),value:O,onChange:function(e){return n({transitionSpeed:e})}}),wp.element.createElement(y,{label:__("Loop","embedpress"),checked:x,onChange:function(e){return n({carouselLoop:e})}}),wp.element.createElement(w,{label:__("Space","embedpress"),value:P,onChange:function(e){return n({carouselSpacing:e})}}),wp.element.createElement(y,{label:__("Arrows","embedpress"),checked:T,onChange:function(e){return n({carouselArrows:e})}})),wp.element.createElement(w,{label:__("Posts Per Page","embedpress"),value:d,onChange:function(e){return n({instafeedPostsPerPage:e})}}),f("embedpress.instafeedControls",[q],t,n,"feedTab"),("business"===c||"hashtag_type"===s)&&f("embedpress.instafeedControls",[G],t,n,"likesCount"),("business"===c||"hashtag_type"===s)&&f("embedpress.instafeedControls",[Z],t,n,"commentsCount"),wp.element.createElement(y,{label:__("Popup","embedpress"),checked:m,onChange:function(e){return n({instafeedPopup:e})}}),m&&wp.element.createElement("div",null,wp.element.createElement(y,{label:__("Popup Follow Button","embedpress"),checked:b,onChange:function(e){return n({instafeedPopupFollowBtn:e})}}),b&&wp.element.createElement(w,{label:__("Follow Button Label","embedpress"),value:h,onChange:function(e){return n({instafeedPopupFollowBtnLabel:e})}})),("insta-grid"===a||"insta-masonry"===a)&&wp.element.createElement(y,{label:__("Load More","embedpress"),checked:_,onChange:function(e){return n({instafeedLoadmore:e})}}),_&&wp.element.createElement(w,{label:__("Load More Button Label","embedpress"),value:C,onChange:function(e){return n({instafeedLoadmoreLabel:e})}}))),wp.element.createElement(o.a,{attributes:t,setAttributes:n})))}n.d(t,"b",function(){return _}),n.d(t,"c",function(){return k}),t.a=r;var l=n(1),o=(n(3),n(10)),a=n(7),i=n(0),s=n(8),c=(n.n(s),function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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=wp.isShallowEqual.isShallowEqualObjects,p=wp.element,d=p.useState,m=p.useEffect,f=wp.hooks.applyFilters,__=wp.i18n.__,b=wp.hooks.addFilter,h=wp.components,w=h.TextControl,g=h.SelectControl,y=(h.RangeControl,h.ToggleControl),v=h.PanelBody,E=(h.Button,h.ColorPalette,h.PanelRow),_=function(){b("embedpress_block_rest_param","embedpress",C,10)},C=function(e,t){if(!t.url||!Object(l.h)(t.url))return e;var n={width:"900",instafeedAccName:!0,instafeedProfileImage:!0,instafeedProfileImageUrl:"",instafeedFollowBtn:!0,instafeedFollowBtnLabel:"Follow",instafeedPostsCount:!0,instafeedPostsCountText:"[count] posts",instafeedFollowersCount:!0,instafeedFollowersCountText:"[count] followers",instaLayout:"insta-grid",instafeedFeedType:"user_account_type",instafeedAccountType:"personal",instafeedColumns:"3",instafeedColumnsGap:"5",instafeedPostsPerPage:!0,instafeedTab:!0,instafeedCommentsCount:!1,instafeedLikesCount:!1,instafeedPopup:!0,instafeedPopupFollowBtn:!0,instafeedPopupFollowBtnLabel:"Follow",instafeedLoadmore:!0,instafeedLoadmoreLabel:"Load More",slidesShow:"4",slidesScroll:"4",carouselAutoplay:!1,autoplaySpeed:"3000",transitionSpeed:"1000",carouselLoop:!0,carouselArrows:!0,carouselSpacing:"0",carouselDots:!1};return Object(a.a)(e,t,n)},k=function(e){var t={width:null,instaLayout:null,instafeedFeedType:null,instafeedAccountType:null,slidesShow:null,slidesScroll:null,carouselAutoplay:null,autoplaySpeed:null,transitionSpeed:null,carouselLoop:null,carouselArrows:null,carouselSpacing:null,instafeedProfileImage:null,instafeedProfileImageUrl:null,instafeedFollowBtn:null,instafeedFollowBtnLabel:null,instafeedPostsCount:null,instafeedPostsCountText:null,instafeedFollowersCount:null,instafeedFollowersCountText:null,instafeedAccName:null,instafeedColumns:null,instafeedColumnsGap:null,instafeedPostsPerPage:null,instafeedTab:null,instafeedCommentsCount:null,instafeedLikesCount:null,instafeedPopup:null,instafeedPopupFollowBtn:null,instafeedPopupFollowBtnLabel:null,instafeedLoadmore:null,instafeedLoadmoreLabel:null},n=Object(a.a)({},e,t),r=d(n),l=c(r,2),o=l[0],i=l[1];return m(function(){var n=Object(a.a)(o,e,t);u(o||{},n)||i(n)},[e]),o}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isCalendly,l=t.cEmbedType,a=t.calendlyData,s=t.hideCookieBanner,c=t.hideEventTypeDetails,u=t.cBackgroundColor,p=t.cTextColor,d=t.cButtonLinkColor,f=t.cPopupButtonText,b=t.cPopupButtonBGColor,E=t.cPopupButtonTextColor;t.cPopupLinkText,embedpressObj.is_pro_plugin_active;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 _=(__("Small"),__("Medium"),__("Large"),[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}]),C=m("embedpress.togglePlaceholder",[],__("Calendly Data","embedpress"),!1);return r&&wp.element.createElement("div",null,wp.element.createElement(y,{title:__("Calendly Controls"),initialOpen:!1,className:"ep-calendly-options"},wp.element.createElement("div",null,wp.element.createElement(h,{label:__("Embed Type","embedpress"),value:l,options:[{label:"Inline",value:"inline"},{label:"Popup Button",value:"popup_button"}],onChange:function(e){return n({cEmbedType:e})}}),m("embedpress.calendlyControls",[C],t,n,"calendlyData"),a&&wp.element.createElement("div",{className:"ep-calendly-data-link"},i.f,wp.element.createElement("a",{href:"/wp-admin/admin.php?page=embedpress&page_type=calendly",target:"_blank"}," ",__("View Calendly Data","embedpress")," ")),wp.element.createElement(w,{label:"Hide Cookie Banner",checked:s,onChange:function(e){return n({hideCookieBanner:e})}}),wp.element.createElement(w,{label:"Hide Event Type Details",checked:c,onChange:function(e){return n({hideEventTypeDetails:e})}}),wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(v,{label:__("Background Color"),colors:_,value:u,onChange:function(e){return n({cBackgroundColor:e})}}),wp.element.createElement(o.a,{headerText:"Text Color"}),wp.element.createElement(v,{label:__("Text Color"),colors:_,value:p,onChange:function(e){return n({cTextColor:e})}}),wp.element.createElement(o.a,{headerText:"Button & Link Color"}),wp.element.createElement(v,{label:__("Button & Link Color"),colors:_,value:d,onChange:function(e){return n({cButtonLinkColor:e})}}))),wp.element.createElement("div",null,"popup_button"===l&&wp.element.createElement(y,{title:__("Popup Settings"),initialOpen:!1,className:"ep-calendly-options"},wp.element.createElement("div",null,wp.element.createElement(g,{label:"Button Text",value:f,onChange:function(e){return n({cPopupButtonText:e})}}),wp.element.createElement(o.a,{headerText:"Text Color"}),wp.element.createElement(v,{label:__("Text Color"),colors:_,value:E,onChange:function(e){return n({cPopupButtonTextColor:e})}}),wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(v,{label:__("Background Color"),colors:_,value:b,onChange:function(e){return n({cPopupButtonBGColor:e})}})))))}n.d(t,"b",function(){return E}),n.d(t,"c",function(){return C}),n.d(t,"d",function(){return k}),t.a=r;var l=n(9),o=(n.n(l),n(3)),a=n(7),i=(n(15),n(12),n(0)),s=function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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")}}(),c=wp.isShallowEqual.isShallowEqualObjects,u=wp.element,p=u.useState,d=u.useEffect,m=wp.hooks.applyFilters,__=wp.i18n.__,f=wp.hooks.addFilter,b=wp.components,h=b.SelectControl,w=(b.RangeControl,b.ToggleControl),g=b.TextControl,y=b.PanelBody,v=b.ColorPalette,E=(b.FontSizePicker,wp.blockEditor.InspectorControls,function(){f("embedpress_block_rest_param","embedpress",_,10)}),_=function(e,t){if(!t.url)return e;var n={cEmbedType:"inline",calendlyData:0,hideCookieBanner:0,hideEventTypeDetails:0,cBackgroundColor:"ffffff",cTextColor:"2cff2c",cButtonLinkColor:"0000FF",cPopupButtonText:"Schedule time with me",cPopupButtonBGColor:"#0000FF",cPopupButtonTextColor:"#FFFFFF",cPopupLinkText:"Schedule time with me"};return Object(a.a)(e,t,n)},C=function(e){return e.match(/^https:\/\/calendly\.com\/[a-zA-Z0-9_-]+\/.*/)},k=function(e){var t={cEmbedType:null,calendlyData:null,hideCookieBanner:null,hideEventTypeDetails:null,cBackgroundColor:null,cTextColor:null,cButtonLinkColor:null,cPopupButtonText:null,cPopupButtonBGColor:null,cPopupButtonTextColor:null,cPopupLinkText:null},n=Object(a.a)({},e,t),r=p(n),l=s(r,2),o=l[0],i=l[1];return d(function(){var n=Object(a.a)(o,e,t);c(o||{},n)||i(n)},[e]),o}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.url,c=t.theme,u=t.color,p=(t.coverImageUrl,t.playlist),d=(t.playlistContinuous,t.playlistLoop,t.playlistAutoupdate),m=t.chaptersImage,f=t.episodeImagePosition,b=t.hideLikes,h=t.hideComments,g=t.hideSharing,C=t.hideLogo,k=t.hideEpisodeDescription,L=t.hidePlaylistDescriptions,S=t.hidePlaylistImages;t.hideDownload,embedpressObj.is_pro_plugin_active;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(o.j)("none")),Object(o.k)());var O=[{name:"Red",color:"#FF0000"},{name:"Green",color:"#00FF00"},{name:"Blue",color:"#0000FF"},{name:"Yellow",color:"#FFFF00"},{name:"Orange",color:"#FFA500"},{name:"Purple",color:"#800080"}],x=w("embedpress.togglePlaceholder",[],__("Disable Download","embedpress"),!1),T=w("embedpress.togglePlaceholder",[],__("Continuous Playlist","embedpress"),!1),P=w("embedpress.togglePlaceholder",[],__("Loop Playlist","embedpress"),!1),F=w("embedpress.uploadPlaceholder",[]);return wp.element.createElement("div",null,Object(l.f)(r)&&wp.element.createElement("div",{className:"ep__vimeo-video-options"},wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},s.c," ",__("Spreaker Controls","embedpress")),initialOpen:!1},wp.element.createElement(y,{label:__("Theme","embedpress"),value:c,options:[{label:__("Light","embedpress"),value:"light"},{label:__("Dark","embedpress"),value:"dark"}],onChange:function(e){return n({theme:e})}}),wp.element.createElement(a.a,{headerText:"Main Color "}),wp.element.createElement(_,{colors:O,value:u,onChange:function(e){return n({color:e})}}),wp.element.createElement(a.a,{headerText:"Cover Image"}),w("embedpress.spreakerControls",[F],t,n,"coverImage"),w("embedpress.spreakerControls",[x],t,n,"hideDownload"),wp.element.createElement(v,{label:__("Enable Playlist","embedpress"),help:__("This option is for podcast playlists and doesn\u2019t affect individual episodes.","embedpress"),checked:p,onChange:function(e){return n({playlist:e})}}),p&&wp.element.createElement("div",null,w("embedpress.spreakerControls",[T],t,n,"playlistContinuous"),w("embedpress.spreakerControls",[P],t,n,"playlistLoop"),wp.element.createElement(v,{label:__("Playlist Autoupdate","embedpress"),checked:d,onChange:function(e){return n({playlistAutoupdate:e})}}),wp.element.createElement(v,{label:__("Hide Playlist Descriptions","embedpress"),checked:L,onChange:function(e){return n({hidePlaylistDescriptions:e})}}),wp.element.createElement(v,{label:__("Hide Playlist Images","embedpress"),checked:S,onChange:function(e){return n({hidePlaylistImages:e})}})),wp.element.createElement(y,{label:__("Episode Image Position","embedpress"),value:f,options:[{label:__("Right","embedpress"),value:"right"},{label:__("Left","embedpress"),value:"left"}],onChange:function(e){return n({episodeImagePosition:e})}}),wp.element.createElement(v,{label:__("Show Chapters Images","embedpress"),checked:m,onChange:function(e){return n({chaptersImage:e})},help:__("Only applies if the podcast includes chapter images.","embedpress")}),wp.element.createElement(v,{label:__("Hide Likes","embedpress"),checked:b,onChange:function(e){return n({hideLikes:e})}}),wp.element.createElement(v,{label:__("Hide Comments","embedpress"),checked:h,onChange:function(e){return n({hideComments:e})}}),wp.element.createElement(v,{label:__("Hide Sharing","embedpress"),checked:g,onChange:function(e){return n({hideSharing:e})}}),wp.element.createElement(v,{label:__("Hide Logo","embedpress"),checked:C,onChange:function(e){return n({hideLogo:e})},help:__("Hide the Spreaker logo and branding in the player. Requires Broadcaster plan or higher.","embedpress")}),wp.element.createElement(v,{label:__("Hide Episode Description","embedpress"),checked:k,onChange:function(e){return n({hideEpisodeDescription:e})}})),wp.element.createElement(i.a,{attributes:t,setAttributes:n})))}n.d(t,"b",function(){return C}),n.d(t,"c",function(){return L}),t.a=r;var l=n(7),o=n(1),a=n(3),i=n(10),s=(n(16),n(0)),c=n(8),u=(n.n(c),function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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")}}()),p=wp.isShallowEqual.isShallowEqualObjects,d=wp.element,m=d.useState,f=d.useEffect,__=wp.i18n.__,b=wp.hooks,h=b.addFilter,w=b.applyFilters,g=wp.components,y=(g.TextControl,g.SelectControl),v=(g.RangeControl,g.ToggleControl),E=g.PanelBody,_=(g.Button,g.ColorPalette),C=function(){h("embedpress_block_rest_param","embedpress",k,10)},k=function(e,t){if(!t.url||!Object(l.f)(t.url))return e;var n={theme:"light",color:"",coverImageUrl:"",playlist:!1,playlistContinuous:!1,playlistLoop:!1,playlistAutoupdate:!0,chaptersImage:!0,episodeImagePosition:"right",hideLikes:!1,hideComments:!1,hideSharing:!1,hideLogo:!1,hideEpisodeDescription:!1,hidePlaylistDescriptions:!1,hidePlaylistImages:!1,hideDownload:!0};return Object(l.a)(e,t,n)},L=function(e){var t={theme:null,color:null,coverImageUrl:null,playlist:null,playlistContinuous:null,playlistLoop:null,playlistAutoupdate:null,chaptersImage:null,episodeImagePosition:null,hideLikes:null,hideComments:null,hideSharing:null,hideLogo:null,hideEpisodeDescription:null,hidePlaylistDescriptions:null,hidePlaylistImages:null,hideDownload:null},n=Object(l.a)({},e,t),r=m(n),o=u(r,2),a=o[0],i=o[1];return f(function(){var n=Object(l.a)(a,e,t);p(a||{},n)||i(n)},[e]),a}},function(e,t){e.exports=ReactDOM},function(e,t,n){!function(){var t=n(81),r=n(28).utf8,l=n(82),o=n(28).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):l(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var i=t.bytesToWords(e),s=8*e.length,c=1732584193,u=-271733879,p=-1732584194,d=271733878,m=0;m<i.length;m++)i[m]=16711935&(i[m]<<8|i[m]>>>24)|4278255360&(i[m]<<24|i[m]>>>8);i[s>>>5]|=128<<s%32,i[14+(s+64>>>9<<4)]=s;for(var f=a._ff,b=a._gg,h=a._hh,w=a._ii,m=0;m<i.length;m+=16){var g=c,y=u,v=p,E=d;c=f(c,u,p,d,i[m+0],7,-680876936),d=f(d,c,u,p,i[m+1],12,-389564586),p=f(p,d,c,u,i[m+2],17,606105819),u=f(u,p,d,c,i[m+3],22,-1044525330),c=f(c,u,p,d,i[m+4],7,-176418897),d=f(d,c,u,p,i[m+5],12,1200080426),p=f(p,d,c,u,i[m+6],17,-1473231341),u=f(u,p,d,c,i[m+7],22,-45705983),c=f(c,u,p,d,i[m+8],7,1770035416),d=f(d,c,u,p,i[m+9],12,-1958414417),p=f(p,d,c,u,i[m+10],17,-42063),u=f(u,p,d,c,i[m+11],22,-1990404162),c=f(c,u,p,d,i[m+12],7,1804603682),d=f(d,c,u,p,i[m+13],12,-40341101),p=f(p,d,c,u,i[m+14],17,-1502002290),u=f(u,p,d,c,i[m+15],22,1236535329),c=b(c,u,p,d,i[m+1],5,-165796510),d=b(d,c,u,p,i[m+6],9,-1069501632),p=b(p,d,c,u,i[m+11],14,643717713),u=b(u,p,d,c,i[m+0],20,-373897302),c=b(c,u,p,d,i[m+5],5,-701558691),d=b(d,c,u,p,i[m+10],9,38016083),p=b(p,d,c,u,i[m+15],14,-660478335),u=b(u,p,d,c,i[m+4],20,-405537848),c=b(c,u,p,d,i[m+9],5,568446438),d=b(d,c,u,p,i[m+14],9,-1019803690),p=b(p,d,c,u,i[m+3],14,-187363961),u=b(u,p,d,c,i[m+8],20,1163531501),c=b(c,u,p,d,i[m+13],5,-1444681467),d=b(d,c,u,p,i[m+2],9,-51403784),p=b(p,d,c,u,i[m+7],14,1735328473),u=b(u,p,d,c,i[m+12],20,-1926607734),c=h(c,u,p,d,i[m+5],4,-378558),d=h(d,c,u,p,i[m+8],11,-2022574463),p=h(p,d,c,u,i[m+11],16,1839030562),u=h(u,p,d,c,i[m+14],23,-35309556),c=h(c,u,p,d,i[m+1],4,-1530992060),d=h(d,c,u,p,i[m+4],11,1272893353),p=h(p,d,c,u,i[m+7],16,-155497632),u=h(u,p,d,c,i[m+10],23,-1094730640),c=h(c,u,p,d,i[m+13],4,681279174),d=h(d,c,u,p,i[m+0],11,-358537222),p=h(p,d,c,u,i[m+3],16,-722521979),u=h(u,p,d,c,i[m+6],23,76029189),c=h(c,u,p,d,i[m+9],4,-640364487),d=h(d,c,u,p,i[m+12],11,-421815835),p=h(p,d,c,u,i[m+15],16,530742520),u=h(u,p,d,c,i[m+2],23,-995338651),c=w(c,u,p,d,i[m+0],6,-198630844),d=w(d,c,u,p,i[m+7],10,1126891415),p=w(p,d,c,u,i[m+14],15,-1416354905),u=w(u,p,d,c,i[m+5],21,-57434055),c=w(c,u,p,d,i[m+12],6,1700485571),d=w(d,c,u,p,i[m+3],10,-1894986606),p=w(p,d,c,u,i[m+10],15,-1051523),u=w(u,p,d,c,i[m+1],21,-2054922799),c=w(c,u,p,d,i[m+8],6,1873313359),d=w(d,c,u,p,i[m+15],10,-30611744),p=w(p,d,c,u,i[m+6],15,-1560198380),u=w(u,p,d,c,i[m+13],21,1309151649),c=w(c,u,p,d,i[m+4],6,-145523070),d=w(d,c,u,p,i[m+11],10,-1120210379),p=w(p,d,c,u,i[m+2],15,718787259),u=w(u,p,d,c,i[m+9],21,-343485551),c=c+g>>>0,u=u+y>>>0,p=p+v>>>0,d=d+E>>>0}return t.endian([c,u,p,d])};a._ff=function(e,t,n,r,l,o,a){var i=e+(t&n|~t&r)+(l>>>0)+a;return(i<<o|i>>>32-o)+t},a._gg=function(e,t,n,r,l,o,a){var i=e+(t&r|n&~r)+(l>>>0)+a;return(i<<o|i>>>32-o)+t},a._hh=function(e,t,n,r,l,o,a){var i=e+(t^n^r)+(l>>>0)+a;return(i<<o|i>>>32-o)+t},a._ii=function(e,t,n,r,l,o,a){var i=e+(n^(t|~r))+(l>>>0)+a;return(i<<o|i>>>32-o)+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?o.bytesToString(r):t.bytesToHex(r)}}()},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(30),n(35),n(39),n(43),n(47),n(51),n(55),n(59),n(63),n(67),n(73),n(87),n(92),n(96);!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(31),l=(n.n(r),n(32)),o=(n.n(l),n(33)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-docs-block"]&&i("embedpress/google-docs-block",{title:__("Google Docs"),icon:a.n,category:"embedpress",keywords:[__("embedpress"),__("google"),__("docs")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(1),p=n(0),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.__,m=wp.element.Component,f=function(e){function t(){r(this,t);var e=l(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 o(t,e),d(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),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=l.exec(r),a=o[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:"isGoogleService",value:function(e){return/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,d=t.interactive,m=this.props.attributes.iframeSrc;if(m&&!this.isGoogleService(m))return"Invalid URL.";var f=__("Google Docs URL");return!m||r?wp.element.createElement("div",null,wp.element.createElement(s.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:p.n,DocTitle:__("Learn more about Google doc embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})):wp.element.createElement("div",null,l?wp.element.createElement(i.a,null):null,wp.element.createElement(c.a,{src:Object(u.n)(m),onMouseUp:this.hideOverlay,onLoad:this.onLoad,style:{display:l?"none":""},frameBorder:"0",width:"600",height:"450"}),!d&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(m);t.a=f},function(e,t,n){var r,l;!function(){"use strict";function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)i.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(l=function(){return n}.apply(t,r))&&(e.exports=l))}()},function(e,t,n){"use strict";var r=n(36),l=(n.n(r),n(37)),o=(n.n(l),n(38)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-slides-block"]&&i("embedpress/google-slides-block",{title:__("Google Slides"),icon:a.s,category:"embedpress",keywords:[__("embedpress"),__("google"),__("slides")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(1),p=n(0),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.__,m=wp.element,f=m.Component,b=m.Fragment,h=function(e){function t(){r(this,t);var e=l(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 o(t,e),d(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),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=l.exec(r),a=o[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:"isGoogleService",value:function(e){return/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,d=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Slides URL");return m&&!this.isGoogleService(m)?"Invalid URL.":!m||r?wp.element.createElement(s.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:p.s,DocTitle:__("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"}):wp.element.createElement(b,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement(c.a,{src:Object(u.n)(m),onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450"}),!d&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(40),l=(n.n(r),n(41)),o=(n.n(l),n(42)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-sheets-block"]&&i("embedpress/google-sheets-block",{title:__("Google Sheets"),icon:a.r,category:"embedpress",keywords:[__("embedpress"),__("google"),__("sheets")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(1),p=n(0),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.__,m=wp.element,f=m.Component,b=m.Fragment,h=function(e){function t(){r(this,t);var e=l(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 o(t,e),d(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),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=l.exec(r),a=o[1];if(a&&"spreadsheets"==a){if(r.indexOf("?")>-1){var i=r.split("?");if(i=i[1],i=i.split("&"),i.length>0){var s=!1,c=!1;i.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:"isGoogleService",value:function(e){return/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,d=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Sheets URL");return m&&!this.isGoogleService(m)?"Invalid URL.":!m||r?wp.element.createElement(s.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:p.r,DocTitle:__("Learn more about Google sheet embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"}):wp.element.createElement(b,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement(c.a,{src:Object(u.n)(m),onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450"}),!d&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(44),l=(n.n(r),n(45)),o=(n.n(l),n(46)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-forms-block"]&&i("embedpress/google-forms-block",{title:__("Google Forms"),icon:a.p,category:"embedpress",keywords:[__("embedpress"),__("google"),__("forms")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(0),p=n(1),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.__,m=wp.element,f=m.Component,b=m.Fragment,h=(wp.components.Disabled,function(e){function t(){r(this,t);var e=l(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 o(t,e),d(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),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=l.exec(r),a=o[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:"isGoogleService",value:function(e){return/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,d=t.interactive,m=this.props.attributes.iframeSrc;if(m&&!this.isGoogleService(m))return"Invalid URL.";var f=__("Google Forms URL");return!m||r?wp.element.createElement(s.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.p,DocTitle:__("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"}):wp.element.createElement(b,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement(c.a,{src:Object(p.n)(m),onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450"}),!d&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f));t.a=h},function(e,t,n){"use strict";var r=n(48),l=(n.n(r),n(49)),o=(n.n(l),n(50)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-drawings-block"]&&i("embedpress/google-drawings-block",{title:__("Google Drawings"),icon:a.o,category:"embedpress",keywords:[__("embedpress"),__("google"),__("drawings")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(1),u=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.__,d=wp.element,m=d.Component,f=d.Fragment,b=function(e){function t(){r(this,t);var e=l(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 o(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),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=l.exec(r),a=o[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:"isGoogleService",value:function(e){return/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,p=this.props.attributes.iframeSrc;if(p&&!this.isGoogleService(p))return"Invalid URL.";var d=__("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!p||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.o,DocTitle:__("Learn more about Google drawing embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"}):wp.element.createElement(f,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement("img",{src:Object(c.n)(p),onLoad:this.onLoad,style:{display:l?"none":""},width:"960",height:"720"}),wp.element.createElement(a.a,{showEditButton:p&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=b},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 l=n(52),o=(n.n(l),n(53)),a=(n.n(o),n(54)),i=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:i.q,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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(1),p=n(0),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.__,m=wp.element,f=m.Component,b=m.Fragment,h=function(e){function t(){r(this,t);var e=l(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 o(t,e),d(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 l=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,o=l.exec(r);o&&o.length>1&&o[1]&&o[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+o[1]+"&spn="+o[1]+"&t=m&z="+Math.round(parseInt(o[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:"isGoogleService",value:function(e){return/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,d=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Maps URL");return m&&!this.isGoogleService(m)?"Invalid URL.":!m||r?wp.element.createElement(s.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:p.q,DocTitle:__("Learn more about Google map embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"}):wp.element.createElement(b,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement(c.a,{src:Object(u.n)(m),onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450"}),!d&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(56),l=(n.n(r),n(57)),o=(n.n(l),n(58)),a=n(0),i=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.t,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:o.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs,l=n+"&parent="+embedpressObj.twitch_host;return wp.element.createElement("figure",{className:"ose-twitch-presentation"},wp.element.createElement("iframe",i({src:l},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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(0),p=n(1),d=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.__,f=wp.element,b=f.Component,h=f.Fragment,w=function(e){function t(){r(this,t);var e=l(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 o(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 l,o=this.decodeHTMLEntities(t),a=r.exec(o),i=a[1],s="channel";switch(t.indexOf("clips.twitch.tv")>-1?s="clip":t.indexOf("/videos/")>-1?s="video":t.indexOf("#/chat$#")>-1&&(s="chat"),s){case"channel":o="https://player.twitch.tv/?channel="+i,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":o="https://clips.twitch.tv/embed?clip="+i+"&autoplay=false",l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":i=a[2],o="https://player.twitch.tv/?video="+i,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":o="http://www.twitch.tv/embed/"+i+"/chat",l={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+i+"'"}}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:"isTwitch",value:function(e){return/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,m=t.interactive,f=this.props.attributes,b=f.iframeSrc,w=f.attrs;if(b&&!this.isTwitch(b))return"Invalid Twitch URL.";var g=__("Twitch URL");if(!b||r)return wp.element.createElement(s.a,{label:g,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.t,DocTitle:__("Learn more about twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-streams-chat/"});var y=b+"&parent="+embedpressObj.twitch_host;return wp.element.createElement(h,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement(c.a,d({src:Object(p.n)(y)},w,{onLoad:this.onLoad,style:{display:l?"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:b&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(b);t.a=w},function(e,t,n){"use strict";var r=n(60),l=(n.n(r),n(61)),o=(n.n(l),n(62)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["wistia-block"]&&i("embedpress/wistia-block",{title:__("Wistia"),icon:a.u,category:"embedpress",keywords:[__("embedpress"),__("wistia")],supports:{align:["wide","full","right","left"],default:""},edit:o.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(0),p=n(1),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.__,m=wp.element,f=m.Component,b=m.Fragment,h=function(e){function t(){r(this,t);var e=l(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 o(t,e),d(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\/(.*)/),l=r[1],o="//fast.wistia.net/embed/iframe/"+l;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:l}),n({iframeSrc:o})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"isWistia",value:function(e){return/^\/\/fast\.wistia\.net\/embed\/iframe\//.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,d=t.interactive,m=this.props.attributes.iframeSrc,f=__("Wistia URL");return m&&!this.isWistia(m)?"Invalid Wistia Url.":!m||r?wp.element.createElement(s.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.u,DocTitle:__("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-videos-wordpress/"}):wp.element.createElement(b,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(c.a,{src:Object(p.n)(m),onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"330"})),!d&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(64),l=(n.n(r),n(65)),o=(n.n(l),n(66)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["youtube-block"]&&i("embedpress/youtube-block",{title:__("YouTube"),icon:a.v,category:"embedpress",keywords:[__("embedpress"),__("youtube")],supports:{align:["wide","full","right","left"],default:""},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(2),s=n(5),c=n(6),u=n(0),p=n(1),d=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.__,f=wp.element,b=f.Component,h=f.Fragment,w=function(e){function t(){r(this,t);var e=l(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 o(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 l=r[1],o="https://www.youtube.com/embed/"+l,a=new URL(o);if("undefined"!==typeof embedpressProObj)for(var i in embedpressProObj.youtubeParams)a.searchParams.set(i,embedpressProObj.youtubeParams[i]);this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:a.href,mediaId:l})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"isYoutube",value:function(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/.test(e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,o=t.cannotEmbed,m=t.interactive,f=this.props.attributes,b=f.iframeSrc,w=f.attrs,g=__("YouTube URL");return b&&!this.isYoutube(b)?(console.log(b),"Invalid YouTube URL"):!b||r?wp.element.createElement(s.a,{label:g,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.v,DocTitle:__("Learn More About YouTube Embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"}):wp.element.createElement(h,null,l?wp.element.createElement(i.a,null):null,wp.element.createElement(c.a,d({src:Object(p.n)(b)},w,{onLoad:this.onLoad,style:{display:l?"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:b&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(b);t.a=w},function(e,t,n){"use strict";var r=n(68),l=(n.n(r),n(69)),o=(n.n(l),n(70)),a=n(0),i=n(1),s=n(19),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj.can_upload_media;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.document&&c("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"},width:{type:"number",default:parseInt(embedpressObj.iframe_width)||600},height:{type:"number",default:parseInt(embedpressObj.iframe_height)||600},fileName:{type:"string"},mime:{type:"string"},powered_by:{type:"boolean",default:!0},presentation:{type:"boolean",default:!0},docViewer:{type:"string",default:"custom"},themeMode:{type:"string",default:"default"},customColor:{type:"string",default:"#403A81"},position:{type:"string",default:"top"},download:{type:"boolean",default:!0},open:{type:"boolean",default:!1},copy_text:{type:"boolean",default:!0},draw:{type:"boolean",default:!0},toolbar:{type:"boolean",default:!0},doc_rotation:{type:"boolean",default:!0}},edit:o.a,save:function(e){var t=e.attributes,n=t.href,r=t.mime,l=t.id,o=t.width,c=t.height,u=t.powered_by,p=t.docViewer,d=t.themeMode,m=t.customColor,f=t.presentation,b=t.position,h=t.download,w=t.draw,g=t.toolbar,y=(t.doc_rotation,e.attributes,Object.assign({theme_mode:d},"custom"===d&&{custom_color:m||"#343434"},{presentation:f||!0,position:b||"bottom",download:h||!0,draw:w||!0})),v=new URLSearchParams(y),E=(v.toString()," enabled-file-download");h||(E="");var _="//view.officeapps.live.com/op/embed.aspx?src="+n;return"google"===p&&(_="//docs.google.com/gview?embedded=true&url="+n),wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+l,style:{height:c,width:o}},"application/pdf"===r&&wp.element.createElement("div",{style:{height:c,width:o},className:"embedpress-embed-document-pdf "+l,"data-emid":l,"data-emsrc":n}),"application/pdf"!==r&&wp.element.createElement("div",{className:("custom"===p?"ep-file-download-option-masked ":"")+"ep-gutenberg-file-doc ep-powered-by-enabled "+E,"data-theme-mode":d,"data-custom-color":m,"data-id":l},wp.element.createElement("iframe",{style:{height:c,width:o},src:_,mozallowfullscreen:"true",webkitallowfullscreen:"true"}),w&&"custom"===p&&wp.element.createElement("canvas",{class:"ep-doc-canvas",width:o,height:c}),g&&"custom"===p&&wp.element.createElement("div",{class:"ep-external-doc-icons "},!Object(i.g)(n)&&Object(a.l)(),h&&Object(i.g)(n)&&Object(a.m)(),h&&Object(i.g)(n)&&Object(a.h)(),w&&Object(a.i)(),f&&Object(a.j)(),f&&Object(a.k)())),u&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),embedpressObj.embedpress_pro&&wp.element.createElement(s.a,{id:l}))}})},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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=(n(6),n(19)),i=n(2),s=n(1),c=n(0),u=n(71),p=n(72),d=function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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")}}(),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.__,f=wp.blob,b=f.getBlobByURL,h=f.isBlobURL,w=f.revokeBlobURL,g=wp.blockEditor,y=g.BlockIcon,v=g.MediaPlaceholder,E=g.InspectorControls,_=wp.element,C=_.Component,k=_.Fragment,L=wp.components,S=L.RangeControl,O=L.PanelBody,x=L.ExternalLink,T=(L.ToggleControl,L.ToolbarButton),P=wp.blockEditor.BlockControls,F=["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","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],j=function(e){function t(){r(this,t);var e=l(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 o(t,e),m(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,l=t.noticeOperations,o=n.href;if(h(o)){r({filesList:[b(o)],onFileChange:function(t){var n=d(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),l.createErrorNotice(t)}}),w(o)}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))),this.props.clientId&&this.props.attributes.href&&Object(s.o)(this.props.clientId,this.props.attributes.href)}},{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,l=t.href,o=t.mime,d=t.id,m=t.width,f=t.height,b=t.docViewer,h=t.themeMode,w=t.customColor,g=t.presentation,_=t.position,C=t.download,L=t.draw,j=t.toolbar,B=(t.copy_text,t.doc_rotation,t.powered_by),U=this.state,M=U.hasError,N=U.interactive,R=U.fetching,z=U.loadPdf,A=d,I=Object.assign({theme_mode:h},"custom"===h&&{custom_color:w||"#343434"},{presentation:g||!0,position:_||"bottom",download:C||!0,draw:L||!0}),D=new URLSearchParams(I),H=(D.toString()," enabled-file-download");if(C||(H=""),!l||M)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(v,{icon:wp.element.createElement(y,{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:F,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 V="//view.officeapps.live.com/op/embed.aspx?src="+l;return"google"===b&&(V="//docs.google.com/gview?embedded=true&url="+l),wp.element.createElement(k,null,wp.element.createElement(P,null,wp.element.createElement(T,{className:"components-edit-button",icon:"edit",label:__("Re Upoload","embedpress"),onClick:function(){return r({href:""})}})),R&&"application/pdf"!==o?wp.element.createElement(i.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+d,style:{height:f,width:m}},"application/pdf"===o&&wp.element.createElement("div",{style:{height:f,width:m},className:"embedpress-embed-document-pdf "+d,"data-emid":d},wp.element.createElement("embed",{style:{height:f,width:m},onLoad:this.onLoad,src:Object(s.n)(l)})),"application/pdf"!==o&&wp.element.createElement("div",{className:("custom"===b?"ep-file-download-option-masked ":"")+"ep-gutenberg-file-doc ep-powered-by-enabled "+H,"data-theme-mode":h,"data-custom-color":w,"data-id":A},wp.element.createElement("iframe",{title:"",onMouseUponMouseUp:this.hideOverlay,style:{height:f,width:m,display:R||!z?"none":""},onLoad:this.onLoad,src:Object(s.n)(V)}),L&&"custom"===b&&wp.element.createElement("canvas",{class:"ep-doc-canvas",width:m,height:f}),j&&"custom"===b&&wp.element.createElement("div",{class:"ep-external-doc-icons"},!Object(s.g)(l)&&Object(c.l)(),C&&Object(s.g)(l)&&Object(c.m)(),C&&Object(s.g)(l)&&Object(c.h)(),L&&Object(c.i)(),g&&Object(c.j)(),g&&Object(c.k)())),!N&&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"),!R&&wp.element.createElement(a.a,{id:d}),wp.element.createElement(u.a,{attributes:t})),wp.element.createElement(E,{key:"inspector"},wp.element.createElement(O,{className:"embedpress-documents-control",title:wp.element.createElement("div",{className:"ep-pannel-icon"},c.c," ",__("Embed Size","embedpress"))},wp.element.createElement(S,{label:__("Width","embedpress"),value:m||720,onChange:function(e){return r({width:e})},max:1e3,min:1}),wp.element.createElement(S,{label:__("Height","embedpress"),value:f,onChange:function(e){return r({height:e})},max:1e3,min:1})),wp.element.createElement(p.a,{attributes:t,setAttributes:r})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(C);t.a=j},function(e,t,n){"use strict";var r=n(1),l=function(e){var t=e.attributes,n=t.id,l=t.themeMode,o=t.customColor,a="#f2f2f6";if(o){Object(r.d)(o)>60&&(a="#343434")}return wp.element.createElement("style",null,"custom"===l&&"\n\t\t\t\t\t[data-id='"+n+"'][data-theme-mode='custom'] {\n\t\t\t\t\t\t--viewer-primary-color: "+o+";\n\t\t\t\t\t\t--viewer-icons-color: "+a+";\n\t\t\t\t\t\t--viewer-icons-hover-bgcolor: "+Object(r.c)(o,-10)+";\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t")};t.a=l},function(e,t,n){"use strict";var r=n(3),l=n(14),o=(n.n(l),n(1)),a=n(0),__=wp.i18n.__,i=wp.element.Fragment,s=wp.hooks.applyFilters,c=wp.components,u=c.PanelBody,p=c.ToggleControl,d=c.SelectControl,m=c.TextControl,f=c.ColorPalette,b=function(e){var t=e.attributes,n=e.setAttributes,l=t.docViewer,c=t.themeMode,b=t.customColor,h=t.presentation,w=(t.position,t.download,t.draw),g=t.toolbar,y=(t.copy_text,t.doc_rotation,t.powered_by),v=t.href;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(o.j)("none")),Object(o.k)());var E=[{name:"",color:"#823535"},{name:"",color:"#008000"},{name:"",color:"#403A81"},{name:"",color:"#333333"},{name:"",color:"#000264"}],_=s("embedpress.togglePlaceholder",[],__("Toolbar","embedpress"),!0),C=s("embedpress.togglePlaceholder",[],__("Print/Download","embedpress"),!0);return wp.element.createElement(u,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},a.c," ",__("Document Controls","embedpress")),initialOpen:!1},wp.element.createElement(m,{label:__("Document URL","embedpress"),type:"text",value:v||"",onChange:function(e){return n({href:e})}}),wp.element.createElement(d,{label:"Viewer",value:l,options:[{label:"Custom",value:"custom"},{label:"MS Office",value:"office"},{label:"Google",value:"google"}],onChange:function(e){return n({docViewer:e})},__nextHasNoMarginBottom:!0}),"custom"===l&&wp.element.createElement(d,{label:"Theme",value:c,options:[{label:"System Default",value:"default"},{label:"Dark",value:"dark"},{label:"Light",value:"light"},{label:"Custom",value:"custom"}],onChange:function(e){return n({themeMode:e})},__nextHasNoMarginBottom:!0}),"custom"===c&&"custom"===l&&wp.element.createElement("div",{className:"ep-docs-viewer-colors"},wp.element.createElement(r.a,{headerText:"Color"}),wp.element.createElement(f,{label:__("Color"),colors:E,value:b,onChange:function(e){return n({customColor:e})}})),"custom"===l&&s("embedpress.documentControls",[_],t,n,"toolbar"),g&&"custom"===l&&wp.element.createElement(i,null,wp.element.createElement(p,{label:__("Fullscreen","embedpress"),onChange:function(e){return n({presentation:e})},checked:h}),s("embedpress.documentControls",[C],t,n,"print"),wp.element.createElement(p,{label:__("Draw","embedpress"),onChange:function(e){return n({draw:e})},checked:w}),wp.element.createElement(p,{label:__("Powered By"),onChange:function(e){return n({powered_by:e})},checked:y})))};t.a=b},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 l=n(74),o=(n.n(l),n(75)),a=(n.n(o),n(76)),i=n(0),s=n(23),c=n(17),u=n(24),p=n(13),d=n(22),m=n(18),f=n(25),__=wp.i18n.__,b=wp.blocks.registerBlockType;if(embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.embedpress){var h;b("embedpress/embedpress",{title:__("EmbedPress"),icon:i.g,category:"embedpress",keywords:["embedpress","embed","google","youtube","docs"],supports:{align:["right","left","center"],default:"center",lightBlockWrapper:!0},attributes:(h={clientId:{type:"string"},url:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:embedpressObj.iframe_height||"450"},width:{type:"string",default:embedpressObj.iframe_width||"600"},lockContent:{type:"boolean",default:!1},contentPassword:{type:"string",default:""},lockHeading:{type:"string",default:"Content Locked"},lockSubHeading:{type:"string",default:"Content is locked and requires password to access it."},lockErrorMessage:{type:"string",default:"Oops, that wasn't the right password. Try again."},passwordPlaceholder:{type:"string",default:"Password"},submitButtonText:{type:"string",default:"Unlock"},submitUnlockingText:{type:"string",default:"Unlocking"},enableFooterMessage:{type:"boolean",default:!1},footerMessage:{type:"string",default:"In case you don't have the password, kindly reach out to content owner or administrator to request access."},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},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},ytChannelLayout:{type:"string",default:"gallery"},pagesize:{type:"string",default:"6"},columns:{type:"string",default:"3"},gapbetweenvideos:{type:"number",default:30},limit:{type:"number",default:20},itemperpage:{type:"number",default:9},loadmore:{type:"boolean",default:!1},loadmorelabel:{type:"text",default:"Load More"},orderby:{type:"string",default:"desc"},gapbetweenitem:{type:"number",default:30},layout:{type:"string",default:"ep-grid"},preset:{type:"string",default:"preset-default"},nftperrow:{type:"number",default:3},collectionname:{type:"boolean",default:!0},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:"Current Price"},nftlastsale:{type:"boolean",default:!0},prefix_nftlastsale:{type:"string",default:"Last Sale"},nftbutton:{type:"boolean",default:!0},nftrank:{type:"boolean",default:!0},label_nftrank:{type:"string",default:"Rank"},nftdetails:{type:"boolean",default:!0},label_nftdetails:{type:"string",default:"Details"},label_nftbutton:{type:"string",default:"See Details"},alignment:{type:"string",default:"ep-item-center"},itemBGColor:{type:"string"},collectionNameColor:{type:"string"},collectionNameFZ:{type:"number"},titleColor:{type:"string"},titleFontsize:{type:"number"},creatorColor:{type:"string"},creatorFontsize:{type:"number"},creatorLinkColor:{type:"string"},creatorLinkFontsize:{type:"number"},priceLabelColor:{type:"string"},priceLabelFontsize:{type:"number"},priceColor:{type:"string"},priceFontsize:{type:"number"},priceUSDColor:{type:"string"},priceUSDFontsize:{type:"number"},lastSaleLabelColor:{type:"string"},lastSaleLabelFontsize:{type:"number"},lastSaleColor:{type:"string"},lastSaleFontsize:{type:"number"},lastSaleUSDColor:{type:"string"},lastSaleUSDFontsize:{type:"number"},buttonTextColor:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextFontsize:{type:"number"},loadmoreTextColor:{type:"string"},loadmoreBackgroundColor:{type:"string"},loadmoreTextFontsize:{type:"number"},rankBtnColor:{type:"string"},rankBtnBorderColor:{type:"string"},rankBtnFZ:{type:"number"},rankLabelColor:{type:"string"},rankLabelFZ:{type:"number"},detialTitleColor:{type:"string"},detialTitleFZ:{type:"number"},detailTextColor:{type:"string"},detailTextLinkColor:{type:"string"},detailTextFZ:{type:"number"},videosize:{type:"string",default:"fixed"},starttime:{type:"string"},endtime:{type:"string"},autoplay:{type:"boolean",default:!1},controls:{type:"string"},fullscreen:{type:"boolean",default:!0},videoannotations:{type:"boolean",default:!0},progressbarcolor:{type:"string",default:"red"},closedcaptions:{type:"boolean",default:!0},modestbranding:{type:"string"},relatedvideos:{type:"boolean",default:!0},wstarttime:{type:"string"},wautoplay:{type:"boolean",default:!0},scheme:{type:"string"},captions:{type:"boolean",default:!0},playbutton:{type:"boolean",default:!0},smallplaybutton:{type:"boolean",default:!0},playbar:{type:"boolean",default:!0},resumable:{type:"boolean",default:!0},wistiafocus:{type:"boolean",default:!0},volumecontrol:{type:"boolean",default:!0},volume:{type:"number",default:100},rewind:{type:"boolean",default:!1},wfullscreen:{type:"boolean",default:!0},vstarttime:{type:"string"},vautoplay:{type:"boolean",default:!1},vscheme:{type:"string"},vtitle:{type:"boolean",default:!0},vauthor:{type:"boolean",default:!0},vavatar:{type:"boolean",default:!0},vloop:{type:"boolean",default:!1},vautopause:{type:"boolean",default:!1},vdnt:{type:"boolean",default:!1},autoPause:{type:"boolean",default:!1},customPlayer:{type:"boolean",default:!1}},r(h,"customPlayer",{type:"boolean",default:!1}),r(h,"posterThumbnail",{type:"string",default:""}),r(h,"playerPreset",{type:"string",default:"preset-default"}),r(h,"playerColor",{type:"string",default:"#5b4e96"}),r(h,"playerPip",{type:"boolean",default:!1}),r(h,"playerRestart",{type:"boolean",default:!0}),r(h,"playerRewind",{type:"boolean",default:!0}),r(h,"playerFastForward",{type:"boolean",default:!0}),r(h,"playerFastForward",{type:"boolean",default:!0}),r(h,"playerTooltip",{type:"boolean",default:!0}),r(h,"playerHideControls",{type:"boolean",default:!0}),r(h,"playerDownload",{type:"boolean",default:!0}),r(h,"pVolume",{type:"number",default:1}),r(h,"playbackSpeed",{type:"number",default:1}),r(h,"showProgress",{type:"boolean",default:!0}),r(h,"showCurrentTime",{type:"boolean",default:!0}),r(h,"showDuration",{type:"boolean",default:!0}),r(h,"showMute",{type:"boolean",default:!0}),r(h,"showVolume",{type:"boolean",default:!0}),r(h,"showCaptions",{type:"boolean",default:!0}),r(h,"showFullscreen",{type:"boolean",default:!0}),r(h,"showPictureInPicture",{type:"boolean",default:!0}),r(h,"showSettings",{type:"boolean",default:!0}),r(h,"showPlaybackSpeed",{type:"boolean",default:!0}),r(h,"showRestart",{type:"boolean",default:!0}),r(h,"showSeek",{type:"boolean",default:!0}),r(h,"showLoop",{type:"boolean",default:!0}),r(h,"instafeedFeedType",{type:"string",default:"user_account_type"}),r(h,"instafeedAccountType",{type:"string",default:"personal"}),r(h,"instafeedProfileImage",{type:"boolean",default:!0}),r(h,"instafeedProfileImageUrl",{type:"string",default:""}),r(h,"instafeedFollowBtn",{type:"boolean",default:!0}),r(h,"instafeedFollowBtnLabel",{type:"string",default:"Follow"}),r(h,"instafeedPostsCount",{type:"boolean",default:!0}),r(h,"instafeedPostsCountText",{type:"string",default:"[count] posts"}),r(h,"instafeedFollowersCount",{type:"boolean",default:!0}),r(h,"instafeedFollowersCountText",{type:"string",default:"[count] followers"}),r(h,"instafeedAccName",{type:"boolean",default:!0}),r(h,"instaLayout",{type:"string",default:"insta-grid"}),r(h,"instafeedColumns",{type:"string",default:"3"}),r(h,"instafeedColumnsGap",{type:"string",default:"5"}),r(h,"instafeedPostsPerPage",{type:"string",default:"12"}),r(h,"instafeedTab",{type:"boolean",default:!0}),r(h,"instafeedLikesCount",{type:"boolean",default:!0}),r(h,"instafeedCommentsCount",{type:"boolean",default:!0}),r(h,"instafeedPopup",{type:"boolean",default:!0}),r(h,"instafeedPopupFollowBtn",{type:"boolean",default:!0}),r(h,"instafeedPopupFollowBtnLabel",{type:"string",default:"Follow"}),r(h,"instafeedLoadmore",{type:"boolean",default:!0}),r(h,"instafeedLoadmoreLabel",{type:"string",default:"Load More"}),r(h,"slidesShow",{type:"string",default:"4"}),r(h,"slidesScroll",{type:"string",default:"4"}),r(h,"carouselAutoplay",{type:"boolean",default:!1}),r(h,"autoplaySpeed",{type:"string",default:"3000"}),r(h,"transitionSpeed",{type:"string",default:"1000"}),r(h,"carouselLoop",{type:"boolean",default:!0}),r(h,"carouselArrows",{type:"boolean",default:!0}),r(h,"carouselSpacing",{type:"string",default:"0"}),r(h,"carouselDots",{type:"boolean",default:!1}),r(h,"cEmbedType",{type:"string",default:"inline"}),r(h,"calendlyData",{type:"boolean",default:!1}),r(h,"hideCookieBanner",{type:"boolean",default:!1}),r(h,"hideEventTypeDetails",{type:"boolean",default:!1}),r(h,"cBackgroundColor",{type:"string",default:"ffffff"}),r(h,"cTextColor",{type:"string",default:"1A1A1A"}),r(h,"cButtonLinkColor",{type:"string",default:"0000FF"}),r(h,"cPopupButtonText",{type:"string",default:"Schedule time with me"}),r(h,"cPopupButtonBGColor",{type:"string",default:"0000FF"}),r(h,"cPopupButtonTextColor",{type:"string",default:"FFFFFF"}),r(h,"cPopupLinkText",{type:"string",default:"Schedule time with me"}),r(h,"theme",{type:"string",default:"light"}),r(h,"color",{type:"string",default:""}),r(h,"coverImageUrl",{type:"string",default:""}),r(h,"playlist",{type:"boolean",default:!1}),r(h,"playlistContinuous",{type:"boolean",default:!1}),r(h,"playlistLoop",{type:"boolean",default:!1}),r(h,"playlistAutoupdate",{type:"boolean",default:!0}),r(h,"chaptersImage",{type:"boolean",default:!0}),r(h,"episodeImagePosition",{type:"string",default:"right"}),r(h,"hideLikes",{type:"boolean",default:!1}),r(h,"hideComments",{type:"boolean",default:!1}),r(h,"hideSharing",{type:"boolean",default:!1}),r(h,"hideLogo",{type:"boolean",default:!1}),r(h,"hideEpisodeDescription",{type:"boolean",default:!1}),r(h,"hidePlaylistDescriptions",{type:"boolean",default:!1}),r(h,"hidePlaylistImages",{type:"boolean",default:!1}),r(h,"hideDownload",{type:"boolean",default:!1}),r(h,"customlogo",{type:"string",default:""}),r(h,"logoX",{type:"number",default:5}),r(h,"logoY",{type:"number",default:10}),r(h,"customlogoUrl",{type:"string"}),r(h,"logoOpacity",{type:"number",default:.6}),r(h,"adManager",{type:"boolean",default:!1}),r(h,"adSource",{type:"string",default:"video"}),r(h,"adContent",{type:"object"}),r(h,"adFileUrl",{type:"string",default:""}),r(h,"adWidth",{type:"string",default:"300"}),r(h,"adHeight",{type:"string",default:"200"}),r(h,"adXPosition",{type:"number",default:25}),r(h,"adYPosition",{type:"number",default:10}),r(h,"adUrl",{type:"string",default:""}),r(h,"adStart",{type:"string",default:"10"}),r(h,"adSkipButton",{type:"boolean",default:!0}),r(h,"adSkipButtonAfter",{type:"string",default:"5"}),h),edit:a.a,save:function(){return null}}),Object(s.b)(),Object(p.b)(),Object(c.b)(),Object(d.b)(),Object(m.b)(),Object(u.b)(),Object(f.b)()}},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(l,o){try{var a=t[l](o),i=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(i).then(function(e){r("next",e)},function(e){r("throw",e)});e(i)}return r("next")})}}function l(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 o(e){function t(){P({editingURL:!0})}function n(){var e=z.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);e=[].concat(l(e));var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;if(i&&"undefined"!=typeof i[1]){var s=i[1],c=h()(s),u=document.getElementById(c);u&&u.remove();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}}}function o(e){var t=this;if(e&&e.preventDefault(),j){P({fetching:!0}),P({clientId:G});(function(){var e=r(i.a.mark(function e(n){var r,l,o;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={url:n,width:I,height:A},r=Object(s.applyFilters)("embedpress_block_rest_param",r,a),l=embedpressObj.site_url+"/wp-json/embedpress/v1/oembed/embedpress",o={url:l,method:"POST",data:r},e.next=6,T(o).then(function(e){return e}).catch(function(e){return console.error(e)});case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,t)}));return function(_x){return e.apply(this,arguments)}})()(j).then(function(e){P({fetching:!1}),e.data&&404===e.data.status||!e.embed?P({cannotEmbed:!0,editingURL:!0}):(P({embedHTML:e.embed,cannotEmbed:!1,editingURL:!1}),n())})}else P({cannotEmbed:!0,fetching:!1,editingURL:!0});G&&j&&Object(m.o)(G,j),Z&&Object(S.c)(se,a),"insta-carousel"===Y&&Object(S.b)(se,a)}var a=e.attributes,b=e.className,P=e.setAttributes,j=a.url,M=a.editingURL,N=a.fetching,R=a.cannotEmbed,z=(a.interactive,a.embedHTML),A=a.height,I=a.width,D=a.contentShare,H=a.sharePosition,V=a.lockContent,q=a.customlogo,G=(a.logoX,a.logoY,a.customlogoUrl,a.logoOpacity,a.clientId),Z=a.customPlayer,Y=a.instaLayout,W=a.playerPreset,$=a.cEmbedType,X=(a.cButtonLinkColor,a.cPopupButtonText),J=a.cPopupButtonBGColor,Q=a.cPopupButtonTextColor,K=(a.cPopupLinkText,a.adManager),ee=a.adSource,te=a.adFileUrl,ne=(a.adWidth,a.adHeight,a.adXPosition),re=a.adYPosition,le=a.coverImageUrl,oe=a.playlist;U(function(){j.includes("youtube.com")||j.includes("youtu.be")?P({customlogo:embedpressObj.youtube_brand_logo_url||""}):j.includes("vimeo.com")?P({customlogo:embedpressObj.vimeo_brand_logo_url||""}):j.includes("wistia.com")?P({customlogo:embedpressObj.wistia_brand_logo_url||""}):j.includes("twitch.com")?P({customlogo:embedpressObj.twitch_brand_logo_url||""}):j.includes("dailymotion.com")&&P({customlogo:embedpressObj.dailymotion_brand_logo_url||""})},[j]);var ae=Object(S.e)(j),ie=Object(S.d)(j);null!=G&&void 0!=G||P({clientId:e.clientId});var se=h()(G||e.clientId),ce="";Z&&(ce=W);var ue="";Object(_.c)(j)&&(ue="embedded-youtube-channel"),U(function(){!Object(S.f)(j)||le||oe||P({height:200}),Object(S.f)(j)&&oe&&P({height:450})},[j,le,oe]),U(function(){(Be||Ue||Object(S.e)(j)||_e||Ee)&&M&&P({height:340})},[j,M]);var pe="",de="",me=H||"right";D&&(pe="ep-content-share-enabled",de="ep-share-position-"+me);var fe="",be="";if("popup_button"==$){var he=Q,we=J;Q&&!Q.startsWith("#")&&(he="#"+Q,P({cPopupButtonTextColor:he})),J&&!J.startsWith("#")&&(we="#"+J,P({cPopupButtonBGColor:we})),'\n\t\t\t<div class="cbutton-preview-wrapper" style="margin-top:-'+A+'px">\n\t\t\t<h4 class="cbutton-preview-text">Preview Popup Button</h4>\n\t\t\t<div style="position: static" class="calendly-badge-widget"><div class="calendly-badge-content" style="color: '+he+"; background: "+we+';">'+X+"</div></div>\n\t\t\t</div>\n\t\t"}fe=Object(s.applyFilters)("embedpress.customLogoComponent",[],a),Object(C.c)(j)&&(be="<span class='ep-wistia-message'> Changes will be affected in frontend. </span>");var ge="";D&&(ge=Object(m.p)(H));var ye=F?F():[],ve=Object(_.e)(j),Ee=Object(C.c)(j),_e=Object(k.c)(j),Ce=Object(m.h)(j),ke=Object(S.f)(j),Le=Object(v.c)(j),Se=Object(v.d)(j),Oe=Object(O.c)(j),xe=Object(S.g)(j),Te=Object(v.e)(a),Pe=Object(_.h)(a,j),Fe=Pe.youtubeParams,je=Pe.isYTChannel,Be=Pe.isYTVideo,Ue=Pe.isYTLive,Me=Object(C.d)(a),Ne=Object(_.g)(a),Re=Object(k.d)(a),ze=Object(E.c)(a),Ae=Object(O.d)(a),Ie=Object(L.c)(a),De="";(Le||Se)&&(De=" source-opensea");var He="";return Ce&&(He=Y),U(function(){!z||M||N||n()},[z]),G||P({clientId:e.clientId}),U(function(){var e=setTimeout(function(){(z&&!M||N)&&o()},1500);return function(){clearTimeout(e)}},[Te,Fe,Ne,Me,Re,ze,Ae,D,V,Ie]),wp.element.createElement(B,null,wp.element.createElement(w.a,{attributes:a,setAttributes:P,isYTChannel:je,isYTVideo:Be,isYTLive:Ue,isYTShorts:ve,isOpensea:Le,isOpenseaSingle:Se,isWistiaVideo:Ee,isVimeoVideo:_e,isSelfHostedVideo:ae,isSelfHostedAudio:ie,isCalendly:Oe,isTikTok:xe,isSpreaker:ke}),(!z||!!M)&&!N&&wp.element.createElement("div",ye,wp.element.createElement(p.a,{label:__("EmbedPress - Embed anything from 150+ sites"),onSubmit:o,value:j,cannotEmbed:R,onChange:function(e){return P({url:e.target.value})},icon:y.g,DocTitle:__("Learn more about EmbedPress"),docLink:"https://embedpress.com/docs/"})),(!Le||!!M||0===M)&&(!Se||!!M||0===M)&&(!Be&&!Ue&&!ve||!!M||0===M)&&(!je||!!M||0===M)&&(!Ee||!!M||0===M)&&(!_e||!!M||0===M)&&(!Oe||!!M||0===M)&&(!Ce||!!M||0===M)&&(!ke||!!M||0===M)&&N&&wp.element.createElement("div",{className:b},wp.element.createElement(u.a,null)," "),z&&!M&&(!N||Le||Se||je||Be||ve||Ee||_e||Oe||Ce||ke)&&wp.element.createElement("figure",x({},ye,{"data-source-id":"source-"+G}),wp.element.createElement("div",{className:"gutenberg-block-wraper "+pe+" "+de+De},wp.element.createElement(d.a,x({className:"position-"+H+"-wraper ep-embed-content-wraper "+ue+" "+ce+" "+He,style:{display:!N||Le||Se||je||Be||Ue||ve||Ee||_e||Oe||Ce?Le||Se?"block":"inline-block":"none",position:"relative"}},Z?{"data-playerid":h()(G)}:{},Z?{"data-options":Object(m.f)({attributes:a})}:{},"insta-carousel"===Y?{"data-carouselid":h()(G)}:{},"insta-carousel"===Y?{"data-carousel-options":Object(m.e)({attributes:a})}:{},{dangerouslySetInnerHTML:{__html:z+fe+be+ge}})),K&&"image"===ee&&te&&wp.element.createElement(f.a,{attributes:a,setAttributes:P,deleteIcon:!1,progressBar:!1,inEditor:!0}),N&&wp.element.createElement("div",{style:{filter:"grayscale(1)",backgroundColor:"#fffafa",opacity:"0.7"},className:"block-library-embed__interactive-overlay",onMouseUp:P({interactive:!0})}),!Le&&!Se&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:P({interactive:!0})}),wp.element.createElement(c.a,{showEditButton:z&&!R,switchBackToURLInput:t}))),wp.element.createElement(g.a,{attributes:a}),q&&wp.element.createElement("style",{style:{display:"none"}},'\n\t\t\t\t\t\t\t[data-source-id="source-'+G+'"] img.watermark{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t'),!q&&wp.element.createElement("style",{style:{display:"none"}},'\n\t\t\t\t\t\t\t[data-source-id="source-'+G+'"] img.watermark{\n\t\t\t\t\t\t\t\tdisplay: none;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t'),K&&"image"===ee&&wp.element.createElement("style",{style:{display:"none"}},'\n\t\t\t\t\t\t\t[data-source-id="source-'+G+'"] .main-ad-template div, .main-ad-template div img{\n\t\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t[data-source-id="source-'+G+'"] .main-ad-template {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tbottom: '+re+"%;\n\t\t\t\t\t\t\t\tleft: "+ne+"%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"))}t.a=o;var a=n(77),i=n.n(a),s=n(11),c=(n.n(s),n(4)),u=n(2),p=n(5),d=n(80),m=n(1),f=n(20),b=n(27),h=n.n(b),w=n(83),g=n(86),y=n(0),v=n(17),E=n(23),_=n(13),C=n(22),k=n(18),L=n(25),S=(n(12),n(7)),O=n(24),x=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},T=wp.apiFetch,P=wp.data,__=(P.select,P.subscribe,wp.i18n.__),F=wp.blockEditor.useBlockProps,j=wp.element,B=j.Fragment,U=j.useEffect;Object(m.m)()},function(e,t,n){e.exports=n(78)},function(e,t,n){var r=function(){return this}()||Function("return this")(),l=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=l&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(79),l)r.regeneratorRuntime=o;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 o=t&&t.prototype instanceof l?t:l,a=Object.create(o.prototype),i=new m(r||[]);return a._invoke=c(e,n,i),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function l(){}function o(){}function a(){}function i(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,l,o,a){var i=r(e[n],e,l);if("throw"!==i.type){var s=i.arg,c=s.value;return c&&"object"===typeof c&&g.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){s.value=e,o(s)},a)}a(i.arg)}function n(e,n){function r(){return new Promise(function(r,l){t(e,n,r,l)})}return l=l?l.then(r,r):r()}var l;this._invoke=n}function c(e,t,n){var l=L;return function(o,a){if(l===O)throw new Error("Generator is already running");if(l===x){if("throw"===o)throw a;return b()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=u(i,n);if(s){if(s===T)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(l===L)throw l=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);l=O;var c=r(e,t,n);if("normal"===c.type){if(l=n.done?x:S,c.arg===T)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(l=x,n.method="throw",n.arg=c.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===h){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=h,u(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 l=r(n,e.iterator,t.arg);if("throw"===l.type)return t.method="throw",t.arg=l.arg,t.delegate=null,T;var o=l.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=h),t.delegate=null,T):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,T)}function p(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 d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function m(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,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(g.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=h,t.done=!0,t};return r.next=r}}return{next:b}}function b(){return{value:h,done:!0}}var h,w=Object.prototype,g=w.hasOwnProperty,y="function"===typeof Symbol?Symbol:{},v=y.iterator||"@@iterator",E=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag",C="object"===typeof e,k=t.regeneratorRuntime;if(k)return void(C&&(e.exports=k));k=t.regeneratorRuntime=C?e.exports:{},k.wrap=n;var L="suspendedStart",S="suspendedYield",O="executing",x="completed",T={},P={};P[v]=function(){return this};var F=Object.getPrototypeOf,j=F&&F(F(f([])));j&&j!==w&&g.call(j,v)&&(P=j);var B=a.prototype=l.prototype=Object.create(P);o.prototype=B.constructor=a,a.constructor=o,a[_]=o.displayName="GeneratorFunction",k.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===o||"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(B),e},k.awrap=function(e){return{__await:e}},i(s.prototype),s.prototype[E]=function(){return this},k.AsyncIterator=s,k.async=function(e,t,r,l){var o=new s(n(e,t,r,l));return k.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},i(B),B[_]="Generator",B[v]=function(){return this},B.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,m.prototype={constructor:m,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,this.tryEntries.forEach(d),!e)for(var t in this)"t"===t.charAt(0)&&g.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=h)},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 o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=h),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var l=this.tryEntries[r],o=l.completion;if("root"===l.tryLoc)return t("end");if(l.tryLoc<=this.prev){var a=g.call(l,"catchLoc"),i=g.call(l,"finallyLoc");if(a&&i){if(this.prev<l.catchLoc)return t(l.catchLoc,!0);if(this.prev<l.finallyLoc)return t(l.finallyLoc)}else if(a){if(this.prev<l.catchLoc)return t(l.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return t(l.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&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var l=r;break}}l&&("break"===e||"continue"===e)&&l.tryLoc<=t&&t<=l.finallyLoc&&(l=null);var o=l?l.completion:{};return o.type=e,o.arg=t,l?(this.method="next",this.next=l.finallyLoc,T):this.complete(o)},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),d(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 l=r.arg;d(n)}return l}}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=h),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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(26),i=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}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return o(t,e),c(t,[{key:"componentDidMount",value:function(){i.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("div",s({className:this.props.className,ref:this.myRef},this.props))}}]),t}(u);t.a=p},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 l=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?n.push(t.charAt(l>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,l=0;r<e.length;l=++r%4)0!=l&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*l+8)-1)<<2*l|t.indexOf(e.charAt(r))>>>6-2*l);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,y=e.isYTVideo,L=e.isYTLive,S=e.isYTShorts,O=e.isOpensea,x=e.isOpenseaSingle,T=e.isWistiaVideo,P=e.isVimeoVideo,F=e.isSelfHostedVideo,j=e.isSelfHostedAudio,B=e.isCalendly,U=e.isTikTok,M=(e.isSpreaker,t.url),N=t.width,R=t.height,z=t.videosize,A=(t.instaLayout,t.instafeedFeedType),I=t.instafeedAccountType,D=(t.slidesShow,t.slidesScroll,t.carouselAutoplay,t.autoplaySpeed,t.transitionSpeed,t.carouselLoop,t.carouselArrows,t.carouselSpacing,t.lockContent,t.contentPassword,t.editingURL),H=t.embedHTML,V=embedpressObj.is_pro_plugin_active,q=(Object(l.useRef)(null),function(e){return 5*Math.round(e/5)});return document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(o.j)("none")),Object(o.k)()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Object(o.q)("none")),Object(o.l)()),(y||L||P)&&"600"===N&&"450"===R&&n({height:"340"}),j&&n({height:"48"}),B&&"600"===N&&"450"===R&&n({height:"950"}),U&&"600"===N&&"450"===R&&(n({width:"350"}),n({height:"580"})),Object(o.i)(M)&&"600"===N&&(n({instafeedFeedType:"hashtag_type"}),n({width:"900"})),!D&&H&&wp.element.createElement(k,null,!O&&!x&&wp.element.createElement("div",{className:"embedpress-gutenberg-controls"},wp.element.createElement(E,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},m.c," ",__("General","embedpress"))},wp.element.createElement("div",{className:"ep-controls-margin"},Object(o.h)(M)&&wp.element.createElement(C,null,wp.element.createElement("div",{style:{marginBottom:"10px",backgroundColor:"#ebe4ff",padding:"8px",borderRadius:"8px",fontWeight:500},className:"elementor-panel-alert elementor-panel-warning-info"},"To enable full Instagram embedding experience, please add your access token ",wp.element.createElement("a",{href:"/wp-admin/admin.php?page=embedpress&page_type=instagram",target:"_blank"},"here"),".")),L&&wp.element.createElement("p",{className:"ep-live-video-info"},m.d," ","The most recent live video will be seen."),(y||P||L||F)&&wp.element.createElement(_,{label:__("Video Size"),labelPosition:"side",value:z,options:[{label:"Fixed",value:"fixed"},{label:"Responsive",value:"responsive"}],onChange:function(e){return n({videosize:e})},__nextHasNoMarginBottom:!0}),(!y&&!L&&!P&&!F||"fixed"==z)&&wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.")),(y||P||L||F)&&"responsive"==z&&wp.element.createElement("p",null,__("You can adjust the width of embedded content.","embedpress")),wp.element.createElement(v,{label:__("Width"),value:N,onChange:function(e){n(P||y||L||F?{width:""+Math.round(e),height:""+q(Math.round(9*e/16))}:{width:e})}}),!Object(o.h)(M)&&!Object(o.i)(M)&&!r&&(!y&&!P&&!L&&!F||"fixed"==z)&&wp.element.createElement(v,{label:__("Height"),value:R,onChange:function(e){n(P||y||L||F?{height:""+Math.round(e),width:""+q(Math.round(16*e/9))}:{height:e})}}),y&&wp.element.createElement("div",{className:"ep-tips-and-tricks"},m.c,wp.element.createElement("a",{href:"#",target:"_blank",onClick:function(e){e.preventDefault(),Object(o.b)(e)}}," ",__("Tips & Tricks","embedpress")," "))),!L&&!S&&wp.element.createElement(s.a,{attributes:t,setAttributes:n,isYTChannel:r}),Object(o.h)(M)&&wp.element.createElement("div",null,wp.element.createElement(_,{label:"Feed Type",value:A,options:[{label:"User Account",value:"user_account_type"},{label:"Hashtag",value:"hashtag_type"},{label:"Tagged(Coming Soon)",value:"tagged_type"},{label:"Mixed(Coming Soon)",value:"mixed_type"}],onChange:function(e){return n({instafeedFeedType:e})}}),!V&&"hashtag_type"===A&&wp.element.createElement(C,{className:"elementor-panel-alert elementor-panel-warning-info"},wp.element.createElement("a",{style:{color:"red"},target:"_blank",href:"https://wpdeveloper.com/in/upgrade-embedpress"},__("Only Available in Pro Version!","embedpress"))),"user_account_type"===A&&wp.element.createElement(_,{label:"Account Type",value:I,options:[{label:"Personal",value:"personal"},{label:"Business",value:"business"}],onChange:function(e){return n({instafeedAccountType:e})}}),"hashtag_type"===A&&applyFilters("embedpress.commonControls",[],t,n,"warningInfo"))),wp.element.createElement(f.a,{attributes:t,setAttributes:n}),wp.element.createElement(s.a,{attributes:t,setAttributes:n,isYTVideo:y,isYTLive:L,isYTShorts:S}),wp.element.createElement(s.a,{attributes:t,setAttributes:n}),wp.element.createElement(d.a,{attributes:t,setAttributes:n}),wp.element.createElement(g.a,{attributes:t,setAttributes:n}),wp.element.createElement(u.a,{attributes:t,setAttributes:n,isWistiaVideo:T}),wp.element.createElement(p.a,{attributes:t,setAttributes:n,isVimeoVideo:P}),wp.element.createElement(b.a,{attributes:t,setAttributes:n,isCalendly:B}),r&&!L&&wp.element.createElement(w.a,{attributes:t,setAttributes:n}),wp.element.createElement(h.a,{attributes:t,setAttributes:n}),wp.element.createElement(a.a,{attributes:t,setAttributes:n}),wp.element.createElement(i.a,{attributes:t,setAttributes:n})),wp.element.createElement(c.a,{attributes:t,setAttributes:n,isOpensea:O,isOpenseaSingle:x}))}t.a=r;var l=n(9),o=(n.n(l),n(1)),a=n(15),i=n(12),s=n(13),c=n(17),u=n(22),p=n(18),d=n(85),m=n(0),f=n(23),b=n(24),h=n(21),w=n(10),g=n(25),__=wp.i18n.__,y=wp.components,v=y.TextControl,E=(y.NumberControl,y.PanelBody),_=y.SelectControl,C=(y.ToggleControl,y.PanelRow),k=wp.blockEditor.InspectorControls},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.customThumbnail,o=function(e){n({customThumbnail:e.sizes.full.url})},i=function(e){n({customThumbnail:""})};return wp.element.createElement("div",null,wp.element.createElement("label",{class:"custom-share-thumbnail-label"},"Thumbnail"),r&&wp.element.createElement("div",{className:"ep__custom-logo",style:{position:"relative"}},wp.element.createElement("button",{title:"Remove Image",className:"ep-remove__image",type:"button",onClick:i},wp.element.createElement("span",{class:"dashicon dashicons dashicons-trash"})),wp.element.createElement("img",{src:r,alt:"John"})),wp.element.createElement("div",{className:"ep-custom-logo-button"},wp.element.createElement(l.MediaUpload,{onSelect:o,allowedTypes:["image"],value:r,render:function(e){var t=e.open;return wp.element.createElement(a,{className:"ep-logo-upload-button",icon:r?"update":"upload",onClick:t},r?"Change Image":"Upload Image")}})))}t.a=r;var l=(n(1),n(3),n(8)),o=(n.n(l),wp.i18n.__,wp.components),a=(o.TextControl,o.RangeControl,o.PanelBody,o.Button)},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.url,c=(t.vstarttime,t.vautoplay,t.vscheme,t.vtitle,t.vauthor,t.vavatar,t.vloop,t.vautopause,t.vdnt,t.customPlayer),u=(t.customlogo,t.logoX,t.logoY,t.customlogoUrl,t.logoOpacity,t.autoPause),m=Object(l.e)(r),f=Object(l.d)(r);embedpressObj.is_pro_plugin_active;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Object(o.j)("none")),Object(o.k)());var b="Video Controls";return f&&(b="Audio Controls"),wp.element.createElement("div",null,(Object(l.e)(r)||Object(l.d)(r))&&wp.element.createElement("div",{className:"ep__vimeo-video-options"},wp.element.createElement(d,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},s.c," ",__(b,"embedpress")),initialOpen:!1},wp.element.createElement(p,{label:__("Auto-Pause","embedpress"),checked:u,onChange:function(e){return n({autoPause:e})}}),wp.element.createElement("p",{className:"control-description"},"Pauses other players when a new one starts."),wp.element.createElement(p,{label:__("Enable Custom Player","embedpress"),checked:c,onChange:function(e){return n({customPlayer:e})}}),c&&wp.element.createElement(i.a,{attributes:t,setAttributes:n,isSelfHostedVideo:m,isSelfHostedAudio:f})),wp.element.createElement(a.a,{attributes:t,setAttributes:n})))}t.a=r;var l=n(7),o=n(1),a=(n(3),n(10)),i=n(16),s=n(0),c=(wp.isShallowEqual.isShallowEqualObjects,wp.element),__=(c.useState,c.useEffect,wp.i18n.__),u=(wp.hooks.addFilter,wp.components),p=(u.TextControl,u.SelectControl,u.RangeControl,u.ToggleControl),d=u.PanelBody;u.Button,u.ColorPalette},function(e,t,n){"use strict";var r=n(9),l=(n.n(r),n(17)),o=n(13),a=n(18),i=n(1),s=n(27),c=n.n(s),u=function(e){var t=e.attributes,n=t.url,r=t.clientId,s=t.width,u=t.height,p=t.videosize,d=t.ispagination,m=t.gapbetweenvideos,f=(t.ytChannelLayout,t.columns),b=t.customlogo,h=t.loadmore,w=t.itemperpage,g=(t.loadmorelabel,t.limit),y=t.customPlayer,v=t.fullscreen,E=t.posterThumbnail,_=(t.playerPreset,t.playerColor),C=t.playerPip,k=t.playerRestart,L=t.playerRewind,S=t.playerFastForward,O=t.playerDownload,x=t.instaLayout,T=c()(r||""),P=C?"block":"none",F=k?"block":"none",j=L?"block":"none",B=S?"block":"none",U=v?"block":"none",M=O?"block":"none",N=n.match(/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i),R="repeat(auto-fit, minmax(250px, 1fr))";f>0&&(R="repeat(auto-fit, minmax(calc("+100/f+"% - "+m+"px), 1fr))");var z="flex";!d&&(z="none");var A="";b&&(A='\n            [data-source-id="source-'+r+'"] img.watermark.ep-custom-logo {\n                display: block !important;\n            }\n        ');var I="none";"insta-carousel"===x&&(I="block");return wp.element.createElement(React.Fragment,null,Object(o.c)(n)&&wp.element.createElement("style",{style:{display:"none"}},'\n                    [data-source-id="source-'+r+'"] .ep-youtube__content__block .youtube__content__body .content__wrap:not(.youtube-carousel){\n                        gap: '+m+"px!important;\n                        margin-top: "+m+"px!important;\n                        display: grid!important;\n                        grid-template-columns: "+R+'!important;\n                    }\n\n                    [data-source-id="source-'+r+'"] .ose-youtube{\n                        width: '+s+'px!important;\n                    }\n                    [data-source-id="source-'+r+'"] .ose-youtube .ep-first-video iframe{\n                        max-height: '+u+'px!important;\n                    }\n\n                    [data-source-id="source-'+r+'"] .ose-youtube > iframe{\n                        height: '+u+"px!important;\n                        width: "+s+'px!important;\n                    }\n\n                    [data-source-id="source-'+r+'"] .ep-youtube__content__block .ep-youtube__content__pagination{\n                        display: '+z+'!important;\n                    }\n                    [data-source-id="source-'+r+'"] img.watermark{\n                        display: none;\n                    }\n\n                    [data-source-id="source-'+r+'"] .layout-list .ep-youtube__content__block .youtube__content__body .content__wrap{\n                        grid-template-columns: repeat(auto-fit, minmax(calc(100% - 30px), 1fr))!important;\n                    }\n                    '+A+"\n                    "),!Object(o.c)(n)&&!Object(l.c)(n)&&!Object(l.d)(n)&&wp.element.createElement("style",{style:{display:"none"}},'\n                    [data-source-id="source-'+r+'"] .ose-embedpress-responsive{\n                        width: '+s+"px!important;\n                        height: "+u+"px!important;\n                        max-height: "+u+'px!important;\n                    }\n                    [data-source-id="source-'+r+'"] iframe{\n                        width: '+s+"px!important;\n                        height: "+u+"px!important;\n                        max-height: "+u+'px!important;\n\n                    }\n                    [data-source-id="source-'+r+'"] .embedpress-yt-subscribe iframe{\n                        height: 100%!important;\n                    }\n                    [data-source-id="source-'+r+'"] .ose-youtube > iframe{\n                        height: '+u+"px!important;\n                        width: "+s+'px!important;\n                    }\n                    [data-source-id="source-'+r+'"] .ose-youtube{\n                        height: '+u+"px!important;\n                        width: "+s+'px!important;\n                    }\n                    [data-source-id="source-'+r+'"] .ose-giphy img{\n                        height: '+u+"px!important;\n                        width: "+s+"px!important;\n                    }\n                    \n                    \n                "),Object(l.c)(n)&&wp.element.createElement("style",{style:{display:"none"}},'\n                                [data-source-id="source-'+r+'"]{\n                                    width: 900px;\n                                    max-width: 100%!important;\n                                }\n                \n                                [data-source-id="source-'+r+'"] .ose-opensea {\n                                    width: calc(100% - 40px)!important;\n                                    height: 100%!important;\n                                }\n                                [data-source-id="source-'+r+'"] .ose-opensea .ep_nft_item{\n                                    display: none!important;\n                                }\n                                [data-source-id="source-'+r+'"] .ose-opensea .ep_nft_item:nth-of-type(-n+'+(h?w:g)+") {\n                                    display: block !important;\n                                }\n\n                            "),N&&wp.element.createElement("style",{style:{display:"none"}},'\n\t\t\t\t\t\t\t\t[data-source-id="source-'+r+'"] .ose-wistia{\n\t\t\t\t\t\t\t\t\twidth: '+s+"px!important;\n\t\t\t\t\t\t\t\t\theight: "+u+'px!important;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t.wistia_embed{\n\t\t\t\t\t\t\t\t\twidth: 100%!important;\n\t\t\t\t\t\t\t\t\theight: 100%!important;\n\t\t\t\t\t\t\t\t}\n                                [data-source-id="source-'+r+'"] img.watermark{\n                                    display: none;\n                                }\n                                '+A+"\n\t\t\t\t\t\t\t"),(Object(o.f)(n)||Object(a.c)(n)||Object(o.d)(n))&&wp.element.createElement("style",{style:{display:"none"}},'\n                            [data-source-id="source-'+r+'"] img.watermark{\n                                display: none;\n                            }\n                                '+A+"\n\t\t\t\t\t\t\t"),"responsive"===p&&(Object(o.f)(n)||Object(o.d)(n))&&wp.element.createElement("style",{style:{display:"none"}},'\n                                [data-source-id="source-'+r+'"] .ose-youtube {\n                                    width: '+s+'px!important;\n                                    position: relative;\n                                    padding: 0;\n                                    padding-top: 56.5%;\n                                    height: 100%!important;\n                                }\n                                \n                                [data-source-id="source-'+r+'"] .ose-youtube iframe {\n                                    position: absolute;\n                                    top: 0;\n                                    left: 0;\n                                    width: 100%;\n                                    height: 100%!important;\n                                }\n\t\t\t\t\t\t\t'),y&&wp.element.createElement("style",{style:{display:"none"}},'\n                            [data-source-id="source-'+r+'"] {\n                            --plyr-color-main: '+(_&&7===_.length?"rgba("+parseInt(_.slice(1,3),16)+", "+parseInt(_.slice(3,5),16)+", "+parseInt(_.slice(5,7),16)+", .8)":"rgba(0, 0, 0, .8)")+'; /* Transparent with dynamic color */\n                            }\n                            [data-source-id="source-'+r+'"] .custom-player-preset-1, [data-source-id="source-'+r+'"] .custom-player-preset-3, [data-source-id="source-'+r+'"] .custom-player-preset-4{\n                            --plyr-color-main: '+(_&&7===_.length?"rgb("+parseInt(_.slice(1,3),16)+", "+parseInt(_.slice(3,5),16)+", "+parseInt(_.slice(5,7),16)+")":"rgba(0, 0, 0, .8)")+'; /* Transparent with dynamic color */\n                            --plyr-range-fill-background: #fff;\n\n                            }\n                        \n                            [data-source-id="source-'+r+'"] [data-plyr="restart"] {\n                            display: '+F+'!important;\n                            }\n                            [data-source-id="source-'+r+'"] [data-plyr="rewind"] {\n                            display: '+j+'!important;\n                            }\n                            [data-source-id="source-'+r+'"] [data-plyr="fast-forward"] {\n                            display: '+B+'!important;\n                            }\n                            [data-source-id="source-'+r+'"] [data-plyr="pip"] {\n                            display: '+P+'!important;\n                            }\n                            [data-source-id="source-'+r+'"] [data-plyr="fullscreen"] {\n                            display: '+U+'!important;\n                            }\n                            [data-source-id="source-'+r+'"] [data-plyr="download"] {\n                            display: '+M+'!important;\n                            }\n                        \n                            [data-playerid="'+T+'"] > .plyr {\n                            width: '+s+"px!important;\n                            height: "+u+"px!important;\n                            max-height: "+u+"px!important;\n                            }\n\n                            "+(E&&E.length>=0?'[data-playerid="'+T+'"] .plyr__poster {\n                                background-image: url("'+E+'")!important;\n                                opacity: 1!important;\n                            }':"")+"\n                            \n                        "),Object(i.h)(n)&&wp.element.createElement("style",{style:{display:"none"}},'\n                            [data-carouselid="'+r+'"] .cg-carousel__btns{\n                                display: '+I+"\n                            };\n                            \n                        "))};t.a=u},function(e,t,n){"use strict";var r=n(88),l=(n.n(r),n(89)),o=(n.n(l),n(90)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj.can_upload_media;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-pdf"]&&i("embedpress/embedpress-pdf",{title:__("EmbedPress PDF","embedpress"),icon:a.e,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("document")],supports:{align:["left","center","right","wide","full"],default:"center"},attributes:{id:{type:"string"},clientId:{type:"string"},lockContent:{type:"boolean",default:!1},contentPassword:{type:"string",default:""},lockHeading:{type:"string",default:"Content Locked"},lockSubHeading:{type:"string",default:"Content is locked and requires password to access it."},lockErrorMessage:{type:"string",default:"Oops, that wasn't the right password. Try again."},passwordPlaceholder:{type:"string",default:"Password"},submitButtonText:{type:"string",default:"Unlock"},submitUnlockingText:{type:"string",default:"Unlocking"},enableFooterMessage:{type:"boolean",default:!1},footerMessage:{type:"string",default:"In case you don't have the password, kindly reach out to content owner or administrator to request access."},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},href:{type:"string"},powered_by:{type:"boolean",default:!0},presentation:{type:"boolean",default:!0},lazyLoad:{type:"boolean",default:!1},themeMode:{type:"string",default:"default"},customColor:{type:"string",default:embedpressObj.pdf_custom_color||"#403A81"},position:{type:"string",default:"top"},flipbook_toolbar_position:{type:"string",default:"bottom"},download:{type:"boolean",default:!0},open:{type:"boolean",default:!1},copy_text:{type:"boolean",default:!0},add_text:{type:"boolean",default:!0},draw:{type:"boolean",default:!0},add_image:{type:"boolean",default:!0},selection_tool:{type:"string",default:"0"},scrolling:{type:"string",default:"0"},spreads:{type:"string",default:"0"},toolbar:{type:"boolean",default:!0},doc_details:{type:"boolean",default:!0},doc_rotation:{type:"boolean",default:!0},unitoption:{type:"string",default:"%"},viewerStyle:{type:"string",default:"modern"},zoomIn:{type:"boolean",default:!0},zoomOut:{type:"boolean",default:!0},fitView:{type:"boolean",default:!0},bookmark:{type:"boolean",default:!0},width:{type:"number",default:parseInt(embedpressObj.iframe_width)||600},height:{type:"number",default:parseInt(embedpressObj.iframe_height)||600},fileName:{type:"string"},mime:{type:"string"},adManager:{type:"boolean",default:!1},adSource:{type:"string",default:"video"},adContent:{type:"object"},adFileUrl:{type:"string",default:""},adWidth:{type:"string",default:"300"},adHeight:{type:"string",default:"200"},adXPosition:{type:"number",default:25},adYPosition:{type:"number",default:20},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"}},edit:o.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 l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(6),i=n(3),s=n(19),c=n(2),u=n(1),p=n(15),d=n(12),m=n(91),f=n(0),b=n(14),h=(n.n(b),n(21)),w=n(20),g=function(){function e(e,t){var n=[],_n=!0,r=!1,l=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,l=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw l}}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")}}(),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=wp.blockEditor.BlockControls,E=wp.components.ToolbarButton,__=wp.i18n.__,_=wp.blob,C=_.getBlobByURL,k=_.isBlobURL,L=_.revokeBlobURL,S=wp.blockEditor,O=S.BlockIcon,x=S.MediaPlaceholder,T=S.InspectorControls,P=wp.element,F=P.Component,j=P.Fragment,B=(P.useEffect,wp.hooks.applyFilters),U=wp.components,M=U.RangeControl,N=U.PanelBody,R=U.ExternalLink,z=U.ToggleControl,A=U.TextControl,I=U.SelectControl,D=U.RadioControl,H=U.ColorPalette,V=["application/pdf"],q=function(e){function t(){r(this,t);var e=l(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.isPro=e.isPro.bind(e),e.addProAlert=e.addProAlert.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return o(t,e),y(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,l=t.noticeOperations,o=n.href;if(k(o)){r({filesList:[C(o)],onFileChange:function(t){var n=g(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),l.createErrorNotice(t)}}),L(o)}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})),this.props.clientId&&this.props.attributes.href&&Object(u.o)(this.props.clientId,this.props.attributes.href)}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{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(){function e(e){var t="",n={};"custom"===S&&(n={customColor:P&&"default"!==P?P:"#403A81"});var r=Object.assign({themeMode:S||"default"},n,{presentation:F||!1,lazyLoad:U||!1,position:q||"top",flipbook_toolbar_position:G||"bottom",download:Z||!1,toolbar:$||!1,copy_text:X||!1,add_text:Y||!1,draw:W||!1,toolbar_position:J||"top",doc_details:Q||!1,doc_rotation:K||!1,add_image:ee||!1,zoom_in:me||!1,zoom_out:fe||!1,fit_view:be||!1,bookmark:he||!1,selection_tool:te||"0",scrolling:ne||"-1",spreads:re||"0"}),l=new URLSearchParams(r).toString();t="key="+btoa(encodeURIComponent(l).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}));var o=e.split("#");return o=encodeURIComponent(o[0]),"flip-book"===de?o+"&"+t:o+"#"+t}var t=this.props,n=t.attributes,r=t.noticeUI,l=t.setAttributes,o=n.href,g=n.mime,y=n.id,_=n.unitoption,C=n.width,k=n.height,L=n.powered_by,S=n.themeMode,P=n.customColor,F=n.presentation,U=n.lazyLoad,q=n.position,G=n.flipbook_toolbar_position,Z=n.download,Y=n.add_text,W=n.draw,$=(n.open,n.toolbar),X=n.copy_text,J=n.toolbar_position,Q=n.doc_details,K=n.doc_rotation,ee=n.add_image,te=n.selection_tool,ne=n.scrolling,re=n.spreads,le=n.clientId,oe=n.sharePosition,ae=n.contentShare,ie=n.adManager,se=n.adSource,ce=n.adFileUrl,ue=(n.adWidth,n.adHeight,n.adXPosition),pe=n.adYPosition,de=n.viewerStyle,me=n.zoomIn,fe=n.zoomOut,be=n.fitView,he=n.bookmark;le||l({clientId:this.props.clientId});var we=this.state,ge=we.hasError,ye=we.interactive,ve=we.fetching,Ee=we.loadPdf,_e="";_e="%"==_?"ep-percentage-width":"ep-fixed-width";var Ce="",ke="",Le=oe||"right";ae&&(Ce="ep-content-share-enabled",ke="ep-share-position-"+Le);var Se=[{name:"",color:"#823535"},{name:"",color:"#008000"},{name:"",color:"#403A81"},{name:"",color:"#333333"},{name:"",color:"#000264"}],Oe=100;"px"==_&&(Oe=1500);embedpressObj.is_pro_plugin_active||(l({download:!0}),l({copy_text:!0}),l({draw:!1}),l({selection_tool:"0"}),l({scrolling:"-1"})),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(this.isPro("none")),this.removeAlert());var xe=B("embedpress.togglePlaceholder",[],__("Toolbar","embedpress"),!0),Te=B("embedpress.togglePlaceholder",[],__("Print/Download","embedpress"),!0),Pe=B("embedpress.togglePlaceholder",[],__("Draw","embedpress"),!1),Fe=B("embedpress.togglePlaceholder",[],__("Copy Text","embedpress"),!0),je=B("embedpress.selectPlaceholder",[],__("Default Scrolling","embedpress"),"-1","Page Scrolling"),Be=B("embedpress.selectPlaceholder",[],__("Default Selection Tool","embedpress"),"0","Text Tool");if(!o||ge)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(x,{icon:wp.element.createElement(O,{icon:f.e}),labels:{title:__("EmbedPress PDF"),instructions:__("Upload a PDF file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:r,allowedTypes:V,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(R,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var Ue="//view.officeapps.live.com/op/embed.aspx?src="+e(o),Me=embedpressObj.pdf_renderer+(-1===embedpressObj.pdf_renderer.indexOf("?")?"?":"&")+"scrolling="+ne+"&selection_tool="+te+"&spreads="+re+"&file="+e(o);return"flip-book"===de&&(Me=embedpressObj.EMBEDPRESS_URL_ASSETS+"pdf-flip-book/viewer.html?file="+e(o)),wp.element.createElement(j,null,wp.element.createElement(v,null,wp.element.createElement(E,{className:"components-edit-button",icon:"edit",label:__("Re Upoload","embedpress"),onClick:function(){return l({href:""})}})),ve&&"application/pdf"!==g?wp.element.createElement(c.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+y+" "+Ce+" "+ke+" "+_e,style:{width:C+_,maxWidth:"100%"},id:"ep-doc-"+this.props.clientId,"data-source-id":"source-"+le},wp.element.createElement("div",{className:"gutenberg-wraper"},wp.element.createElement("div",{className:"position-"+oe+"-wraper gutenberg-pdf-wraper"},"application/pdf"===g&&wp.element.createElement("iframe",{title:"",powered_by:L,style:{height:k,width:"100%"},className:"embedpress-embed-document-pdf "+y,"data-emid":y,src:Object(u.n)(Me)}),"application/pdf"!==g&&wp.element.createElement(a.a,{title:"",onMouseUponMouseUp:this.hideOverlay,style:{height:k,width:C,display:ve||!Ee?"none":""},onLoad:this.onLoad,src:Object(u.n)(Ue)}),!ye&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),L&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!ve&&wp.element.createElement(s.a,{id:y})),ae&&wp.element.createElement(m.a,{attributes:n})),ie&&"image"===se&&ce&&wp.element.createElement(w.a,{attributes:n,setAttributes:l,deleteIcon:!1,progressBar:!1,inEditor:!0})),wp.element.createElement(T,{key:"inspector"},wp.element.createElement(N,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},f.c," ",__("Embed Size","embedpress"))},wp.element.createElement("div",{className:"ep-pdf-width-contol"},wp.element.createElement(i.a,{classname:"ep-control-header",headerText:"WIDTH"}),wp.element.createElement(D,{selected:_,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:function(e){return l({unitoption:e})},className:"ep-unit-choice-option"}),wp.element.createElement(M,{value:C,onChange:function(e){return l({width:e})},max:Oe,min:0})),wp.element.createElement(M,{label:__("Height","embedpress"),value:k,onChange:function(e){return l({height:e})},max:1e3,min:1})),wp.element.createElement(N,{title:wp.element.createElement("div",{className:"ep-pannel-icon"},f.c," ",__("Document Controls","embedpress")),initialOpen:!1},wp.element.createElement(A,{label:__("Document URL","embedpress"),type:"text",value:n.href||"",onChange:function(e){return l({href:e})}}),wp.element.createElement(I,{label:"Viewer Style",value:de,options:[{label:"Modern",value:"modern"},{label:"Flip Book",value:"flip-book"}],onChange:function(e){return l({viewerStyle:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(I,{label:"Theme",value:S,options:[{label:"System Default",value:"default"},{label:"Dark",value:"dark"},{label:"Light",value:"light"},{label:"Custom",value:"custom"}],onChange:function(e){return l({themeMode:e})},__nextHasNoMarginBottom:!0}),"custom"===S&&wp.element.createElement("div",null,wp.element.createElement(i.a,{headerText:"Color"}),wp.element.createElement(H,{label:__("Color"),colors:Se,value:P,onChange:function(e){return l({customColor:e})}})),B("embedpress.pdfControls",[xe],n,l,"toolbar"),$&&wp.element.createElement(j,null,"flip-book"===de?wp.element.createElement(b.__experimentalToggleGroupControl,{label:"Toolbar Position",value:G,onChange:function(e){return l({flipbook_toolbar_position:e})}},wp.element.createElement(b.__experimentalToggleGroupControlOption,{value:"top",label:"Top"}),wp.element.createElement(b.__experimentalToggleGroupControlOption,{value:"bottom",label:"Bottom"})):wp.element.createElement(b.__experimentalToggleGroupControl,{label:"Toolbar Position",value:q,onChange:function(e){return l({position:e})}},wp.element.createElement(b.__experimentalToggleGroupControlOption,{value:"top",label:"Top"}),wp.element.createElement(b.__experimentalToggleGroupControlOption,{value:"bottom",label:"Bottom"})),wp.element.createElement(z,{label:__("Presentation Mode","embedpress"),onChange:function(e){return l({presentation:e})},checked:F}),wp.element.createElement(z,{label:__("Lazy Load","embedpress"),onChange:function(e){return l({lazyLoad:e})},checked:U}),B("embedpress.pdfControls",[Te],n,l,"print"),"modern"===de?wp.element.createElement(j,null,wp.element.createElement(z,{label:__("Add Text","embedpress"),onChange:function(e){return l({add_text:e})},checked:Y}),B("embedpress.pdfControls",[Pe],n,l,"draw"),B("embedpress.pdfControls",[Fe],n,l,"copyText"),wp.element.createElement(z,{label:__("Add Image","embedpress"),onChange:function(e){return l({add_image:e})},checked:ee}),wp.element.createElement(z,{label:__("Rotation","embedpress"),onChange:function(e){return l({doc_rotation:e})},checked:K}),wp.element.createElement(z,{label:__("Properties","embedpress"),onChange:function(e){return l({doc_details:e})},checked:Q}),B("embedpress.pdfControls",[Be],n,l,"selectionTool"),B("embedpress.pdfControls",[je],n,l,"scrolling"),"1"!==ne&&wp.element.createElement(I,{label:"Default Spreads",value:re,options:[{label:"No Spreads",value:"0"},{label:"Odd Spreads",value:"1"},{label:"Even Spreads",value:"2"}],onChange:function(e){return l({spreads:e})},__nextHasNoMarginBottom:!0})):wp.element.createElement(j,null,wp.element.createElement(z,{label:__("Zoom In","embedpress"),onChange:function(e){return l({zoomIn:e})},checked:me}),wp.element.createElement(z,{label:__("Zoom Out","embedpress"),onChange:function(e){return l({zoomOut:e})},checked:fe}),wp.element.createElement(z,{label:__("Fit View","embedpress"),onChange:function(e){return l({fitView:e})},checked:be}),wp.element.createElement(z,{label:__("Bookmark","embedpress"),onChange:function(e){return l({bookmark:e})},checked:he})),wp.element.createElement(z,{label:__("Powered By","embedpress"),onChange:function(e){return l({powered_by:e})},checked:L}))),wp.element.createElement(h.a,{attributes:n,setAttributes:l}),wp.element.createElement(p.a,{attributes:n,setAttributes:l}),wp.element.createElement(d.a,{attributes:n,setAttributes:l})),wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+this.props.clientId+" {\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: "+C+"\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.presentationModeEnabledIosDevice {\n\t\t\t\t\t\t\t\tposition: fixed;\n\t\t\t\t\t\t\t\tleft: 0;\n\t\t\t\t\t\t\t\ttop: 0;\n\t\t\t\t\t\t\t\tborder: 0;\n\t\t\t\t\t\t\t\theight: 100%!important;\n\t\t\t\t\t\t\t\twidth: 100%!important;\n\t\t\t\t\t\t\t\tz-index: 999999;\n\t\t\t\t\t\t\t\tmin-width: 100%!important;\n\t\t\t\t\t\t\t\tmin-height: 100%!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"),ie&&"image"===se&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+this.props.clientId+" .main-ad-template div, .main-ad-template div img{\n\t\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+this.props.clientId+" .main-ad-template {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tbottom: "+pe+"%;\n\t\t\t\t\t\t\t\tleft: "+ue+"%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(F);t.a=q},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=t.sharePosition;return wp.element.createElement("div",{className:"ep-social-share share-position-"+n},wp.element.createElement("a",{href:"#",className:"ep-social-icon facebook",target:"_blank"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 -6 512 512"},wp.element.createElement("g",null,wp.element.createElement("path",{fill:"#475a96",d:"M0 0h512v500H0z"}),wp.element.createElement("path",{fill:"#fff",d:"M375.717 112.553H138.283c-8.137 0-14.73 6.594-14.73 14.73v237.434c0 8.135 6.594 14.73 14.73 14.73h127.826V276.092h-34.781v-40.28h34.781v-29.705c0-34.473 21.055-53.244 51.807-53.244 14.73 0 27.391 1.097 31.08 1.587v36.026l-21.328.01c-16.725 0-19.963 7.947-19.963 19.609v25.717h39.887l-5.193 40.28h-34.693v103.355h68.012c8.135 0 14.73-6.596 14.73-14.73V127.283c-.001-8.137-6.596-14.73-14.731-14.73z"})))),wp.element.createElement("a",{href:"#",className:"ep-social-icon twitter",target:"_blank"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 248 204"},wp.element.createElement("path",{fill:"#fff",d:"M221.95 51.29c.15 2.17.15 4.34.15 6.53 0 66.73-50.8 143.69-143.69 143.69v-.04c-27.44.04-54.31-7.82-77.41-22.64 3.99.48 8 .72 12.02.73 22.74.02 44.83-7.61 62.72-21.66-21.61-.41-40.56-14.5-47.18-35.07a50.338 50.338 0 0022.8-.87C27.8 117.2 10.85 96.5 10.85 72.46v-.64a50.18 50.18 0 0022.92 6.32C11.58 63.31 4.74 33.79 18.14 10.71a143.333 143.333 0 00104.08 52.76 50.532 50.532 0 0114.61-48.25c20.34-19.12 52.33-18.14 71.45 2.19 11.31-2.23 22.15-6.38 32.07-12.26a50.69 50.69 0 01-22.2 27.93c10.01-1.18 19.79-3.86 29-7.95a102.594 102.594 0 01-25.2 26.16z"}))),wp.element.createElement("a",{href:"#",className:"ep-social-icon pinterest",target:"_blank"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1200",height:"800",viewBox:"-36.42 -60.8 315.641 364.8"},wp.element.createElement("path",{fill:"#fff",d:"M121.5 0C54.4 0 0 54.4 0 121.5 0 173 32 217 77.2 234.7c-1.1-9.6-2-24.4.4-34.9 2.2-9.5 14.2-60.4 14.2-60.4s-3.6-7.3-3.6-18c0-16.9 9.8-29.5 22-29.5 10.4 0 15.4 7.8 15.4 17.1 0 10.4-6.6 26-10.1 40.5-2.9 12.1 6.1 22 18 22 21.6 0 38.2-22.8 38.2-55.6 0-29.1-20.9-49.4-50.8-49.4-34.6 0-54.9 25.9-54.9 52.7 0 10.4 4 21.6 9 27.7 1 1.2 1.1 2.3.8 3.5-.9 3.8-3 12.1-3.4 13.8-.5 2.2-1.8 2.7-4.1 1.6-15.2-7.1-24.7-29.2-24.7-47.1 0-38.3 27.8-73.5 80.3-73.5 42.1 0 74.9 30 74.9 70.2 0 41.9-26.4 75.6-63 75.6-12.3 0-23.9-6.4-27.8-14 0 0-6.1 23.2-7.6 28.9-2.7 10.6-10.1 23.8-15.1 31.9 11.4 3.5 23.4 5.4 36 5.4 67.1 0 121.5-54.4 121.5-121.5C243 54.4 188.6 0 121.5 0z"}))),wp.element.createElement("a",{href:"#",className:"ep-social-icon linkedin",target:"_blank"},wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"#fff",version:"1.1",viewBox:"0 0 310 310",xmlSpace:"preserve"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M72.16 99.73H9.927a5 5 0 00-5 5v199.928a5 5 0 005 5H72.16a5 5 0 005-5V104.73a5 5 0 00-5-5z"}),wp.element.createElement("path",{d:"M41.066.341C18.422.341 0 18.743 0 41.362 0 63.991 18.422 82.4 41.066 82.4c22.626 0 41.033-18.41 41.033-41.038C82.1 18.743 63.692.341 41.066.341z"}),wp.element.createElement("path",{d:"M230.454 94.761c-24.995 0-43.472 10.745-54.679 22.954V104.73a5 5 0 00-5-5h-59.599a5 5 0 00-5 5v199.928a5 5 0 005 5h62.097a5 5 0 005-5V205.74c0-33.333 9.054-46.319 32.29-46.319 25.306 0 27.317 20.818 27.317 48.034v97.204a5 5 0 005 5H305a5 5 0 005-5V194.995c0-49.565-9.451-100.234-79.546-100.234z"})))))}t.a=r},function(e,t,n){"use strict";var r=n(93),l=(n.n(r),n(94)),o=(n.n(l),n(95)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-calendar"]&&i("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:parseInt(embedpressObj.iframe_width)||600},height:{type:"string",default:parseInt(embedpressObj.iframe_height)||600},url:{type:"string",default:""},embedHTML:{type:"string",default:""}},edit:o.a,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){g({editingURL:!0,is_public:!0})}function n(e){e&&e.preventDefault(),y?(g({fetching:!0}),setTimeout(function(){g({fetching:!1,cannotEmbed:!1,editingURL:!1,embedHTML:"ready"})},500)):g({cannotEmbed:!0,fetching:!1,editingURL:!0})}function r(e){return/^https:\/\/calendar\.google\.com\/calendar\/embed\?.*$/.test(e)}var u=e.attributes,f=e.className,g=e.setAttributes,y=u.url,v=u.editingURL,E=u.fetching,_=u.cannotEmbed,C=u.embedHTML,k=u.height,L=u.width,S=u.powered_by,O=u.is_public,x=u.align,T=h?h({className:"align"+x,style:{width:L+"px",height:k+"px"}}):[];return wp.element.createElement(w,null,wp.element.createElement(b,null,wp.element.createElement(d,{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 g({width:e})}}),!Object(s.h)(y)&&!Object(s.i)(y)&&wp.element.createElement(p,{label:__("Height","embedpress"),value:k,onChange:function(e){return g({height:e})}})),wp.element.createElement(d,{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 g({powered_by:e})},checked:S}),wp.element.createElement(m,{label:__("Embedding Public Calendar","embedpress"),onChange:function(e){return g({is_public:e})},checked:O}))),(!C||v)&&!E&&O&&wp.element.createElement("div",T,wp.element.createElement(o.a,{label:__("Public Calendar Link"),onSubmit:n,value:y,cannotEmbed:_,onChange:function(e){return g({url:e.target.value})},icon:a.a,DocTitle:__("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})),E?wp.element.createElement("div",{className:f},wp.element.createElement(l.a,null)," "):null,C&&O&&!v&&!E&&wp.element.createElement("figure",T,O&&r(y)&&wp.element.createElement("iframe",{style:{display:E?"none":""},src:Object(s.n)(y),width:L,height:k}),S&&r(y)&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!r(y)&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Invalid Calendar Link"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:g({interactive:!0})}),wp.element.createElement(i.a,{showEditButton:C&&!_,switchBackToURLInput:t})),!O&&wp.element.createElement("figure",c({className:"testing"},T),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.")),S&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:g({interactive:!0})}),wp.element.createElement(i.a,{showEditButton:C&&!_,switchBackToURLInput:t})))}t.a=r;var l=n(2),o=n(5),a=n(0),i=n(4),s=n(1),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},u=wp.components,p=u.TextControl,d=u.PanelBody,m=u.ToggleControl,f=wp.blockEditor,b=f.InspectorControls,h=f.useBlockProps,w=wp.element.Fragment,__=wp.i18n.__},function(e,t,n){"use strict";var r=n(11),l=(n.n(r),n(8)),o=(n.n(l),n(14)),a=(n.n(o),n(3)),i=n(1),__=wp.i18n.__,s=embedpressObj.is_pro_plugin_active,c=function(e,t){return wp.element.createElement("div",null,e,t&&wp.element.createElement("span",{className:"isPro"},"pro"))};s||(console.log("This is called from placeholder"),Object(r.addFilter)("embedpress.uploadPlaceholder","embedpress/uploadPlaceholder",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.push(wp.element.createElement("div",{className:"pro-control ep-custom-logo-button",onClick:function(e){Object(i.a)(e,s)}},wp.element.createElement(l.MediaUpload,{render:function(){return wp.element.createElement(o.Button,{className:"ep-logo-upload-button",icon:"upload"},__("Upload Image","embedpress"))}}),c(null,t))),e}),Object(r.addFilter)("embedpress.togglePlaceholder","embedpress/togglePlaceholder",function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.push(wp.element.createElement("div",{className:"pro-control",onClick:function(e){Object(i.a)(e,s)}},wp.element.createElement(o.ToggleControl,{label:__(t),checked:n}),c(null,r))),e}),Object(r.addFilter)("embedpress.selectPlaceholder","embedpress/selectPlaceholder",function(e,t,n,r){var l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return e.push(wp.element.createElement("div",{className:"pro-control",onClick:function(e){Object(i.a)(e,s)}},wp.element.createElement(o.SelectControl,{label:__(t,"embedpress"),value:n,options:[{label:r,value:n}],className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),c(null,l))),e}),Object(r.addFilter)("embedpress.colorPlatePlaceholder","embedpress/colorPlatePlaceholder",function(e,t,n,r){var l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return e.push(wp.element.createElement("div",{className:"pro-control",onClick:function(e){Object(i.a)(e,s)}},wp.element.createElement(a.a,{headerText:t}),wp.element.createElement(o.ColorPalette,{label:__(t),colors:r,value:n}),c(null,l))),e}),Object(r.addFilter)("embedpress.textControlPlaceholder","embedpress/textControlPlaceholder",function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.push(wp.element.createElement("div",{className:"pro-control",onClick:function(e){Object(i.a)(e,s)}},wp.element.createElement(o.TextControl,{label:__(t,"embedpress"),value:n}),c(null,r))),e}),Object(r.addFilter)("embedpress.rangeControlPlaceholder","embedpress/rangeControlPlaceholder",function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return e.push(wp.element.createElement("div",{className:"pro-control",onClick:function(e){Object(i.a)(e,s)}},wp.element.createElement(o.RangeControl,{label:__(t,"embedpress"),value:n,min:r,max:l}),c(null,a))),e}),Object(r.addFilter)("embedpress.adsPlaceholder","embedpress/adsPlaceholder",function(e){return e.push(wp.element.createElement("div",{className:"ad-manager-controllers opacity"},Object(r.applyFilters)("embedpress.selectPlaceholder",[],__("Ad Source"),"video","Upload Video",!1),wp.element.createElement("div",{className:"ad-upload"},wp.element.createElement("label",{className:"custom-share-thumbnail-label"},"Ad Label"),Object(r.applyFilters)("embedpress.uploadPlaceholder",[],!1)),wp.element.createElement("div",null,Object(r.applyFilters)("embedpress.textControlPlaceholder",[],__("Ad Width"),"",!1),Object(r.applyFilters)("embedpress.textControlPlaceholder",[],__("Ad Height"),"",!1),Object(r.applyFilters)("embedpress.rangeControlPlaceholder",[],__("Ad X position(%)"),50,0,100,!1),Object(r.applyFilters)("embedpress.rangeControlPlaceholder",[],__("Ad Y position(%)"),50,0,100,!1)),Object(r.applyFilters)("embedpress.textControlPlaceholder",[],__("Ad URL"),"",!1),Object(r.applyFilters)("embedpress.textControlPlaceholder",[],__("Ad Start After (sec)"),"",!1),Object(r.applyFilters)("embedpress.togglePlaceholder",[],__("Ad Skip Button"),!1,!1),Object(r.applyFilters)("embedpress.textControlPlaceholder",[],__("Skip Button After (sec)"),"",!1))),e}))}]);