1import{j as e,g as wl,R as vl}from"./chunks/index-DOwIfqLg.js";const{G:mo,Path:R,Polygon:Im,SVG:Ke}=wp.components,Yt=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",children:[" ",e.jsxs(mo,{children:[e.jsx(R,{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 "}),e.jsx(R,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),e.jsx(R,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),e.jsx(R,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),e.jsx(R,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),e.jsx(R,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),e.jsx(R,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "})]})]}),Cl=e.jsx(Ke,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24",children:e.jsxs(mo,{children:[e.jsx(R,{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"}}),e.jsx(R,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),e.jsx(R,{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"}}),e.jsx(R,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),e.jsx(R,{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"}}),e.jsx(R,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),e.jsx(R,{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"}}),e.jsx(R,{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_)"}})]})}),jl=e.jsx(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:e.jsxs(mo,{children:[e.jsx(R,{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 "}),e.jsx(R,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),e.jsx(R,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),e.jsx(R,{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 3
11 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "})]})}),_l=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(mo,{children:[e.jsx(R,{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 "}),e.jsx(R,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),e.jsx(R,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),e.jsx(R,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),e.jsx(R,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),e.jsx(R,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),e.jsx(R,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),e.jsx(R,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),e.jsx(R,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "})]})]}),kl=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(mo,{children:[e.jsx(R,{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"}),e.jsx(R,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),e.jsx(R,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),e.jsx(R,{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"}),e.jsx(R,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"})]})]}),$l=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(mo,{children:[e.jsx(R,{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 "}),e.jsx(R,{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 "}),e.jsx(R,{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 "}),e.jsx(R,{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 "}),e.jsx(R,{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 "}),e.jsx(R,{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 "}),e.jsx(R,{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 "}),e.jsx(R,{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 "})]})]}),Pl=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(mo,{children:[e.jsx(R,{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 "}),e.jsx(R,{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 "}),e.jsx(R,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),e.jsx(R,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "})]})]}),Sl=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1",children:[" ",e.jsxs(mo,{children:[e.jsx(R,{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"}),e.jsx(R,{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"})]})]}),Ll=e.jsx(Ke,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false",children:e.jsx(R,{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"})}),Bl=e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 276 340",children:[e.jsx("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"}),e.jsx("path",{d:"M196.7 57c0 13.3 10.7 23.9 23.9 23.9H276L196.7.6V57z",fill:"#f19191"}),e.jsxs("linearGradient",{id:"A",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"77.111",x2:"116.568",y2:"77.111",children:[e.jsx("stop",{offset:"0",stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff0f0"})]}),e.jsx("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)"}),e.jsxs("linearGradient",{id:"B",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.016",x2:"233.927",y2:"136.016",children:[e.jsx("stop",{offset:"0",stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff0f0"})]}),e.jsx("use",{href:"#H",opacity:".8",fill:"url(#B)"}),e.jsxs("linearGradient",{id:"C",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.993",x2:"233.927",y2:"135.993",children:[e.jsx("stop",{offset:"0",stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff0f0"})]}),e.jsx("use",{href:"#H",y:"33.6",opacity:".7",fill:"url(#C)"}),e.jsxs("linearGradient",{id:"D",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.969",x2:"233.927",y2:"135.969",children:[e.jsx("stop",{offset:"0",stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff0f0"})]}),e.jsx("use",{href:"#H",y:"67.2",opacity:".6",fill:"url(#D)"}),e.jsxs("linearGradient",{id:"E",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.045",x2:"233.927",y2:"136.045",children:[e.jsx("stop",{offset:"0",stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff0f0"})]}),e.jsx("use",{href:"#H",y:"100.7",opacity:".4",fill:"url(#E)"}),e.jsxs("linearGradient",{id:"F",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"270.322",x2:"174.778",y2:"270.322",children:[e.jsx("stop",{offset:"0",stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff0f0"})]}),e.jsx("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)"}),e.jsx("defs",{children:e.jsx("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"})})]}),Tl=e.jsxs("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512",children:[e.jsx("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"}),e.jsx("path",{fill:"#B0B7BD",d:"M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"}),e.jsx("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 "}),e.jsx("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 2 V416z`}),e.jsxs("g",{children:[e.jsx("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 3 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 4 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`}),e.jsx("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 5 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`}),e.jsx("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 6 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 7 c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z`})]}),e.jsx("path",{fill:"#CAD1D8",d:"M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"})]}),Fl=e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"186 38 76 76",children:[e.jsx("path",{fill:"#fff",d:"M244 56h-40v40h40V56z"}),e.jsx("path",{fill:"#EA4335",d:"M244 114l18-18h-18v18z"}),e.jsx("path",{fill:"#FBBC04",d:"M262 56h-18v40h18V56z"}),e.jsx("path",{fill:"#34A853",d:"M244 96h-40v18h40V96z"}),e.jsx("path",{fill:"#188038",d:"M186 96v12c0 3.315 2.685 6 6 6h12V96h-18z"}),e.jsx("path",{fill:"#1967D2",d:"M262 56V44c0-3.315-2.685-6-6-6h-12v18h18z"}),e.jsx("path",{fill:"#4285F4",d:"M244 38h-52c-3.315 0 -6 2.685-6 6v52h18V56h40V38z"}),e.jsx("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.
7035-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"})]}),G=e.jsxs("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",children:[e.jsx("style",{children:".st0{fill:#5b4e96}"}),e.jsx("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"})]}),mn=e.jsxs("svg",{width:"25",height:"25",viewBox:"0 0 48 48",version:"1",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{fill:"#2196F3",cx:"24",cy:"24",r:"21"}),e.jsx("path",{fill:"#fff",d:"M22 22h4v11h-4z"}),e.jsx("circle",{fill:"#fff",cx:"24",cy:"16.5",r:"2.5"})]}),hn=e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:e.jsx("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"})}),gn=()=>e.jsx("div",{className:"ep-doc-popup-icon",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",xmlSpace:"preserve",children:[e.jsx("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"}),e.jsx("path",{style:{fill:"none"},d:"M0 0h24v24H0z"})]})}),fn=()=>e.jsx("div",{className:"ep-doc-download-icon",children:e.jsx("svg",{width:20,height:20,viewBox:"0 0 0.6 0.6",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("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"})})}),bn=()=>e.jsx("div",{className:"ep-doc-print-icon",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 24 24",children:e.jsx("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"})})}),yn=()=>e.jsx("div",{className:"ep-doc-fullscreen-icon",children:e.jsx("svg",{width:20,height:20,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("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"})})}),xn=()=>e.jsx("div",{className:"ep-doc-minimize-icon",style:{display:"none"},children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{enableBackgroun
7d:"new 0 0 385.331 385.331"},xmlSpace:"preserve",width:20,height:20,children:[e.jsx("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"})," ",e.jsx("g",{}),e.jsx("g",{}),e.jsx("g",{}),e.jsx("g",{}),e.jsx("g",{}),e.jsx("g",{})]})}),wn=()=>e.jsx("div",{className:"ep-doc-draw-icon",children:e.jsx("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("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"})})});var El={exports:{}},Ml={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o={rotl:function(s,l){return s<<l|s>>>32-l},rotr:function(s,l){return s<<32-l|s>>>l},endian:function(s){if(s.constructor==Number)return o.rotl(s,8)&16711935|o.rotl(s,24)&4278255360;for(var l=0;l<s.length;l++)s[l]=o.endian(s[l]);return s},randomBytes:function(s){for(var l=[];s>0;s--)l.push(Math.floor(Math.random()*256));return l},bytesToWords:function(s){for(var l=[],a=0,n=0;a<s.length;a++,n+=8)l[n>>>5]|=s[a]<<24-n%32;return l},wordsToBytes:function(s){for(var l=[],a=0;a<s.length*32;a+=8)l.push(s[a>>>5]>>>24-a%32&255);return l},bytesToHex:function(s){for(var l=[],a=0;a<s.length;a++)l.push((s[a]>>>4).toString(16)),l.push((s[a]&15).toString(16));return l.join("")},hexToBytes:function(s){for(var l=[],a=0;a<s.length;a+=2)l.push(parseInt(s.substr(a,2),16));return l},bytesToBase64:function(s){for(var l=[],a=0;a<s.length;a+=3)for(var n=s[a]<<16|s[a+1]<<8|s[a+2],p=0;p<4;p++)a*8+p*6<=s.length*8?l.push(t.charAt(n>>>6*(3-p)&63)):l.push("=");return l.join("")},base64ToBytes:function(s){s=s.replace(/[^A-Z0-9+\/]/ig,"");for(var l=[],a=0,n=0;a<s.length;n=++a%4)n!=0&&l.push((t.indexOf(s.charAt(a-1))&Math.pow(2,-2*n+8)-1)<<n*2|t.indexOf(s.charAt(a))>>>6-n*2);return l}};Ml.exports=o})();var vn=Ml.exports,It={utf8:{stringToBytes:function(t){return It.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(It.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var o=[],s=0;s<t.length;s++)o.push(t.charCodeAt(s)&255);return o},bytesToString:function(t){for(var o=[],s=0;s<t.length;s++)o.push(String.fromCharCode(t[s]));return o.join("")}}},Qt=It;/*! 8 * Determine if an object is a Buffer 9 * 10 * @author Feross Aboukhadijeh <https://feross.org> 11 * @license MIT 12 */var Cn=function(t){return t!=null&&(Nl(t)||jn(t)||!!t._isBuffer)};function Nl(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function jn(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Nl(t.slice(0,0))}(function(){var t=vn,o=Qt.utf8,s=Cn,l=Qt.bin,a=function(n,p){n.constructor==String?p&&p.encoding==="binary"?n=l.stringToBytes(n):n=o.stringToBytes(n):s(n)?n=Array.prototype.slice.call(n,0):!Array.isArray(n)&&n.constructor!==Uint8Array&&(n=n.toString());
12for(var d=t.bytesToWords(n),f=n.length*8,r=1732584193,i=-271733879,u=-1732584194,c=271733878,m=0;m<d.length;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;d[f>>>5]|=128<<f%32,d[(f+64>>>9<<4)+14]=f;for(var C=a._ff,y=a._gg,v=a._hh,x=a._ii,m=0;m<d.length;m+=16){var b=r,k=i,_=u,P=c;r=C(r,i,u,c,d[m+0],7,-680876936),c=C(c,r,i,u,d[m+1],12,-389564586),u=C(u,c,r,i,d[m+2],17,606105819),i=C(i,u,c,r,d[m+3],22,-1044525330),r=C(r,i,u,c,d[m+4],7,-176418897),c=C(c,r,i,u,d[m+5],12,1200080426),u=C(u,c,r,i,d[m+6],17,-1473231341),i=C(i,u,c,r,d[m+7],22,-45705983),r=C(r,i,u,c,d[m+8],7,1770035416),c=C(c,r,i,u,d[m+9],12,-1958414417),u=C(u,c,r,i,d[m+10],17,-42063),i=C(i,u,c,r,d[m+11],22,-1990404162),r=C(r,i,u,c,d[m+12],7,1804603682),c=C(c,r,i,u,d[m+13],12,-40341101),u=C(u,c,r,i,d[m+14],17,-1502002290),i=C(i,u,c,r,d[m+15],22,1236535329),r=y(r,i,u,c,d[m+1],5,-165796510),c=y(c,r,i,u,d[m+6],9,-1069501632),u=y(u,c,r,i,d[m+11],14,643717713),i=y(i,u,c,r,d[m+0],20,-373897302),r=y(r,i,u,c,d[m+5],5,-701558691),c=y(c,r,i,u,d[m+10],9,38016083),u=y(u,c,r,i,d[m+15],14,-660478335),i=y(i,u,c,r,d[m+4],20,-405537848),r=y(r,i,u,c,d[m+9],5,568446438),c=y(c,r,i,u,d[m+14],9,-1019803690),u=y(u,c,r,i,d[m+3],14,-187363961),i=y(i,u,c,r,d[m+8],20,1163531501),r=y(r,i,u,c,d[m+13],5,-1444681467),c=y(c,r,i,u,d[m+2],9,-51403784),u=y(u,c,r,i,d[m+7],14,1735328473),i=y(i,u,c,r,d[m+12],20,-1926607734),r=v(r,i,u,c,d[m+5],4,-378558),c=v(c,r,i,u,d[m+8],11,-2022574463),u=v(u,c,r,i,d[m+11],16,1839030562),i=v(i,u,c,r,d[m+14],23,-35309556),r=v(r,i,u,c,d[m+1],4,-1530992060),c=v(c,r,i,u,d[m+4],11,1272893353),u=v(u,c,r,i,d[m+7],16,-155497632),i=v(i,u,c,r,d[m+10],23,-1094730640),r=v(r,i,u,c,d[m+13],4,681279174),c=v(c,r,i,u,d[m+0],11,-358537222),u=v(u,c,r,i,d[m+3],16,-722521979),i=v(i,u,c,r,d[m+6],23,76029189),r=v(r,i,u,c,d[m+9],4,-640364487),c=v(c,r,i,u,d[m+12],11,-421815835),u=v(u,c,r,i,d[m+15],16,530742520),i=v(i,u,c,r,d[m+2],23,-995338651),r=x(r,i,u,c,d[m+0],6,-198630844),c=x(c,r,i,u,d[m+7],10,1126891415),u=x(u,c,r,i,d[m+14],15,-1416354905),i=x(i,u,c,r,d[m+5],21,-57434055),r=x(r,i,u,c,d[m+12],6,1700485571),c=x(c,r,i,u,d[m+3],10,-1894986606),u=x(u,c,r,i,d[m+10],15,-1051523),i=x(i,u,c,r,d[m+1],21,-2054922799),r=x(r,i,u,c,d[m+8],6,1873313359),c=x(c,r,i,u,d[m+15],10,-30611744),u=x(u,c,r,i,d[m+6],15,-1560198380),i=x(i,u,c,r,d[m+13],21,1309151649),r=x(r,i,u,c,d[m+4],6,-145523070),c=x(c,r,i,u,d[m+11],10,-1120210379),u=x(u,c,r,i,d[m+2],15,718787259),i=x(i,u,c,r,d[m+9],21,-343485551),r=r+b>>>0,i=i+k>>>0,u=u+_>>>0,c=c+P>>>0}return t.endian([r,i,u,c])};a._ff=function(n,p,d,f,r,i,u){var c=n+(p&d|~p&f)+(r>>>0)+u;return(c<<i|c>>>32-i)+p},a._gg=function(n,p,d,f,r,i,u){var c=n+(p&f|d&~f)+(r>>>0)+u;return(c<<i|c>>>32-i)+p},a._hh=function(n,p,d,f,r,i,u){var c=n+(p^d^f)+(r>>>0)+u;return(c<<i|c>>>32-i)+p},a._ii=function(n,p,d,f,r,i,u){var c=n+(d^(p|~f))+(r>>>0)+u;return(c<<i|c>>>32-i)+p},a._blocksize=16,a._digestsize=16,El.exports=function(n,p){if(n==null)throw new Error("Illegal argument "+n);var d=t.wordsToBytes(a(n,p));return p&&p.asBytes?d:p&&p.asString?l.bytesToString(d):t.bytesToHex(d)}})();var _n=El.exports;const _o=wl(_n),kn=(t,o)=>{if(typeof embedpressGutenbergData>"u"||!embedpressGutenbergData.ajax_url)return;const s=new XMLHttpRequest;s.open("POST",embedpressGutenbergData.ajax_url),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){s.status===200?console.log("EmbedPress: Source data saved successfully"):console.error("EmbedPress: Failed to save source data:",s.statusText)},s.onerror=function(){console.error("EmbedPress: Request failed:",s.statusText)};const l={action:"save_source_data",block_id:t,source_url:o,_source_nonce:embedpressGutenbergData.source_nonce||""},a=Object.keys(l).map(n=>`${encodeURIComponent(n)}=${encodeURIComponent(l[n])}`).join("&");s.send(a)},$n=t=>{if(typeof embedpressGutenbergData>"u"||!embedpressGutenbergData.ajax_url)return;const o=new XMLHttpRequest;o.open("POST",embedpressGutenbergData.ajax_url),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){o.status===200?console.log("EmbedPress: Source data deleted successfully"):console.error("EmbedPress: Failed to delete source data:",o.statusText)},o.onerror=function(){console.error("EmbedPress: Request failed:",o.statusText)};const s={action:"delete_source_data",block_id:t,_source_nonce:embedpressGutenbergData.source_nonce||""},l=Object.keys(s).map(a=>`${encodeURIComponent(a)}
12=${encodeURIComponent(s[a])}`).join("&");o.send(l)},Pn=()=>{if(typeof wp>"u"||!wp.data)return;const t=()=>wp.data.select("core/block-editor").getBlocks();let o=t();wp.data.subscribe(()=>{const s=t(),l=o.filter(a=>!s.includes(a));if(l.length&&s.length<o.length){const a=l.filter(n=>n.name==="embedpress/embedpress"&&n.attributes.clientId).map(n=>n.attributes.clientId);a.length>0&&a.forEach(n=>{$n(n);const p=_o(n);if(typeof window.embedpressPlayers<"u"&&window.embedpressPlayers[p])try{window.embedpressPlayers[p].destroy(),delete window.embedpressPlayers[p]}catch(d){console.warn("EmbedPress: Error destroying player on block removal:",d)}})}o=s})},Ul=({attributes:t})=>{const{customPlayer:o}=t;if(!o)return"";const{playerPreset:s,playerColor:l,posterThumbnail:a,playerPip:n,playerRestart:p,playerRewind:d,playerFastForward:f,playerTooltip:r,playerHideControls:i,playerDownload:u,starttime:c,endtime:m,relatedvideos:C,muteVideo:y,fullscreen:v,vstarttime:x,vautoplay:b,vautopause:k,vdnt:_}=t,{selfhosted:P,format:$}=En(t.url),w={rewind:d,restart:p,pip:n,poster_thumbnail:a,player_color:l,player_preset:s,fast_forward:f,player_tooltip:r,hide_controls:i,download:u,...c&&{start:c},...m&&{end:m},...C&&{rel:C},...y&&{mute:y},...v&&{fullscreen:v},...x&&{t:x},...b&&{autoplay:b},...k&&{autopause:k},..._&&{dnt:_},...P&&{self_hosted:P},...$&&{hosted_format:$}};return JSON.stringify(w)},Dl=({attributes:t})=>{const{instaLayout:o,slidesShow:s,slidesScroll:l,carouselAutoplay:a,autoplaySpeed:n,transitionSpeed:p,carouselLoop:d,carouselArrows:f,carouselSpacing:r}=t;return o!=="insta-carousel"?"":JSON.stringify({layout:o,slideshow:s,autoplay:a,autoplayspeed:n,transitionspeed:p,loop:d,arrows:f,spacing:r})},zt=t=>t.match(/\.(mp4|mov|avi|wmv|flv|mkv|webm|mpeg|mpg)$/i),Ht=t=>t.match(/\.(mp3|wav|ogg|aac)$/i),yt=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/(?:c\/|channel\/|user\/|@)[\w.-]+\/?$/i.test(t),Gt=t=>/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)[\w-]+/i.test(t)&&!yt(t)&&!xt(t)&&!Rl(t),xt=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/(?:c\/|channel\/|user\/|@)[\w-]+\/live\/?$/i.test(t),Rl=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/shorts\/[\w-]+/i.test(t),Il=t=>/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/\d+/i.test(t),zl=t=>/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i.test(t),Hl=t=>/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/[\w.-]+\/?$/i.test(t),Vt=t=>/^(?:https?:\/\/)?(?:www\.)?opensea\.io\/collection\/[\w.-]+\/?$/i.test(t),Gl=t=>/^(?:https?:\/\/)?(?:www\.)?opensea\.io\/assets\/[\w.-]+\/[\w.-]+\/?$/i.test(t),Sn=t=>/^(?:https?:\/\/)?(?:www\.)?calendly\.com\/[\w.-]+/i.test(t),Ln=t=>/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/@[\w.-]+\/video\/([\w.-]+)$/i.test(t),Bn=t=>/^https?:\/\/(www\.)?spreaker\.com\/(show|user|podcast|episode)\/[^/]+/.test(t),Tn=t=>/^https:\/\/(photos\.app\.goo\.gl|photos\.google\.com)\/.*$/i.test(t);typeof window.embedpressPlayers>"u"&&(window.embedpressPlayers={});const At=(t,o)=>{const{url:s,posterThumbnail:l,customPlayer:a,playerTooltip:n,playerHideControls:p,playerPreset:d,playerColor:f,playerPip:r,playerRestart:i,playerRewind:u,playerFastForward:c,fullscreen:m,vautopause:C,vdnt:y,vstarttime:v}=o,x=Ht(s);if(zt(s),window.embedpressPlayers[t])try{window.embedpressPlayers[t].destroy(),delete window.embedpressPlayers[t]}catch(k){console.warn("EmbedPress: Error destroying player:",k)}const b=setInterval(()=>
12{let k=document.querySelector(`[data-playerid="${t}"] .ose-embedpress-responsive`);if(zt(s)?k=document.querySelector(`[data-playerid="${t}"] .ose-embedpress-responsive video`):Ht(s)&&(k=document.querySelector(`[data-playerid="${t}"] .ose-embedpress-responsive audio`)),k&&typeof Plyr<"u"){clearInterval(b);let _=document.querySelector(`[data-playerid="${t}"]`).getAttribute("data-options");_=JSON.parse(_),document.querySelector(`[data-playerid="${t}"]`).style.opacity="1";const P=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,$=document.querySelector(`[data-playerid='${t}'] iframe[src*="youtube"]`)!==null,w=P&&$,h=new Plyr(k,{controls:["play-large","restart","rewind","play","fast-forward","progress","current-time","duration","mute","volume","captions","settings",x?"":"pip","airplay",_.download?"download":"",x?"":"fullscreen"],hideControls:p,tooltips:{controls:n,seek:n},fullscreen:{enabled:!0,fallback:!0,iosNative:!w},playsinline:!0,youtube:{..._.autoplay&&{autoplay:_.autoplay},..._.start&&{start:_.start},..._.end&&{end:_.end},..._.rel&&{rel:_.rel},..._.fullscreen&&{fs:_.fullscreen}},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,controls:!1,..._.t&&{t:_.t},..._.vautoplay&&{autoplay:_.vautoplay},..._.autopause&&{autopause:_.autopause},..._.dnt&&{dnt:_.dnt}}});if(window.embedpressPlayers[t]=h,w){const g=document.querySelector(`[data-
12playerid='${t}'] iframe[src*="youtube"]`);g&&(g.setAttribute("allowfullscreen",""),g.setAttribute("webkitallowfullscreen",""),g.setAttribute("mozallowfullscreen",""),g.classList.add("ios-youtube-iframe"),h.on("enterfullscreen",()=>{const E=document.querySelector('meta[name="viewport"]');if(E){const B=E.getAttribute("content");E.setAttribute("data-original-content",B),E.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover")}}),h.on("exitfullscreen",()=>{const E=document.querySelector('meta[name="viewport"]');E&&E.hasAttribute("data-original-content")&&(E.setAttribute("content",E.getAttribute("data-original-content")),E.removeAttribute("data-original-content"))}))}l&&(h.poster=l)}},200)},Fn=(t,o)=>{const{url:s,instaLayout:l,slidesShow:a,slidesScroll:n,carouselAutoplay:p,autoplaySpeed:d,transitionSpeed:f,carouselLoop:r,carouselArrows:i,carouselSpacing:u}=o,c={layout:l,slidesPerView:a,spacing:u,loop:r,autoplay:p,autoplaySpeed:d,transitionSpeed:f,arrows:i,breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:4}}},m=setInterval(()=>{if(document.querySelector(`[data-carouselid="${t}"] .embedpress-insta-container`)&&typeof CgCarousel<"u"){clearInterval(m);const y=new CgCarousel(`[data-carouselid="${t}"] .embedpress-insta-container`,c,{});if(i){const b=document.querySelector(`[data-carouselid="${t}
12"] .cg-carousel__btns`);b&&b.classList.remove("hidden")}else{const b=document.querySelector(`[data-carouselid="${t}"] .cg-carousel__btns`);b&&b.classList.add("hidden")}const v=document.querySelector(`[data-carouselid="${t}"] #js-carousel__next-1`);v&&v.addEventListener("click",()=>y.next());const x=document.querySelector(`[data-carouselid="${t}"] #js-carousel__prev-1`);x&&x.addEventListener("click",()=>y.prev())}},200)};function En(t){const o=/\.(mp4|mov|avi|wmv|flv|mkv|webm|mpeg|mpg)$/i,s=/\.(mp3|wav|ogg|aac)$/i,l=o.test(t),a=s.test(t);let n=!1,p="";return(l||a)&&(n=!0,l?p="video":a&&(p="audio")),n?{selfhosted:!0,format:p}:{selfhosted:!1}}const{Fragment:Mn}=wp.element;function Vl({attributes:t}){const{url:o,clientId:s,width:l,height:a,videosize:n,ispagination:p,gapbetweenvideos:d,ytChannelLayout:f,columns:r,customlogo:i,loadmore:u,itemperpage:c,limit:m,customPlayer:C,fullscreen:y,posterThumbnail:v,playerPreset:x,playerColor:b,playerPip:k,playerRestart:_,playerRewind:P,playerFastForward:$,playerDownload:w,instaLayout:h}=t,g=_o(s||""),E=k?"block":"none",B=_?"block":"none",N=P?"block":"none",T=$?"block":"none",S=y?"block":"none",Z=w?"block":"none";let V="repeat(auto-fit, minmax(250px, 1fr))";r>0&&(V=`repeat(auto-fit, minmax(calc(${100/r}% - ${d}px), 1fr))`);let W="flex";p||(W="none");let q="";i&&(q=` 13 [data-source-id="source-${s}"] img.watermark.ep-custom-logo { 14 display: block !important; 15 } 16 `);let H="none";return h==="insta-carousel"&&(H="block"),e.jsxs(Mn,{children:[yt(o)&&e.jsx("style",{children:` 17 [data-source-id="source-${s}"] .ep-youtube__content__block .youtube__content__body .content__wrap:not(.youtube-carousel){ 18 gap: ${d}px!important; 19 margin-top: ${d}px!important; 20 display: grid!important; 21 grid-template-columns: ${V}!important; 22 } 23 24 [data-source-id="source-${s}"] .ose-youtube{ 25 width: ${l}px!important; 26 } 27 [data-source-id="source-${s}"] .ose-youtube .ep-first-video iframe{ 28 max-height: ${a}px!important; 29 } 30 31 [data-source-id="source-${s}"] .ose-youtube > iframe{ 32 height: ${a}px!important; 33 width: ${l}px!important; 34 } 35 36 [data-source-id="source-${s}"] .ep-youtube__content__block .ep-youtube__content__pagination{ 37 display: ${W}!important; 38 } 39 [data-source-id="source-${s}"] img.watermark{ 40 display: none; 41 } 42 43 [data-source-id="source-${s}"] .layout-list .ep-youtube__content__block .youtube__content__body .content__wrap{ 44 grid-template-columns: repeat(auto-fit, minmax(calc(100% - 30px), 1fr))!important; 45 } 46 ${q} 47 `}),!yt(o)&&!Vt(o)&&!Gl(o)&&e.jsx("style",{children:` 48 [data-source-id="source-${s}"] .ose-embedpress-responsive{ 49 width: ${l}px!important; 50 height: ${a}px!important; 51 max-height: ${a}px!important; 52 } 53 [data-source-id="source-${s}"] iframe{ 54 width: ${l}px!important; 55 height: ${a}px!important; 56 max-height: ${a}px!important; 57 } 58 [data-source-id="source-${s}"] .embedpress-yt-subscribe iframe{ 59 height: 100%!important; 60 } 61 [data-source-id="source-${s}"] .ose-youtube > iframe{ 62 height: ${a}px!important; 63 width: ${l}px!important; 64 } 65 [data-source-id="source-${s}"] .ose-youtube{ 66 height: ${a}px!important; 67 width: ${l}px!important; 68 } 69 [data-source-id="source-${s}"] .ose-giphy img{ 70 height: ${a}px!important; 71 width: ${l}px!important; 72 } 73 [data-source-id="source-${s}"] .ose-google-docs img{ 74 height: ${a}px!important; 75 width: ${l}px!important; 76 } 77 [data-source-id="source-${s}"] .ose-embedpress-responsive.ose-google-photos{ 78 height: 100% !important; 79 max-height: 100% !important; 80 } 81 82 [data-source-id="source-${s}"] .embera-embed-responsive-provider-gettyimages, 83 [data-source-id="source-${s}"] .embera-embed-responsive-provider-gettyimages iframe, 84 [data-source-id="source-${s}"] .getty{ 85 width: ${l}px!important; 86 height: ${a}px!important; 87 max-height: ${a}px!important; 88 max-width: 100%!important; 89 } 90 `}),Vt(o)&&e.jsx("style",{children:` 91 [data-source-id="source-${s}"]{ 92 width: 900px; 93 max-width: 100%!important; 94 } 95 96 [data-source-id="source-${s}"] .ose-opensea { 97 width: calc(100% - 40px)!important; 98 height: 100%!important; 99 } 100 [data-source-id="source-${s}"] .ose-opensea .ep_nft_item{
101 display: none!important; 102 } 103 [data-source-id="source-${s}"] .ose-opensea .ep_nft_item:nth-of-type(-n+${u?c:m}) { 104 display: block !important; 105 } 106 `}),zl(o)&&e.jsx("style",{children:` 107 [data-source-id="source-${s}"] .ose-wistia{ 108 width: ${l}px!important; 109 height: ${a}px!important; 110 } 111 .wistia_embed{ 112 width: 100%!important; 113 height: 100%!important; 114 } 115 [data-source-id="source-${s}"] img.watermark{ 116 display: none; 117 } 118 ${q} 119 `}),(Gt(o)||Il(o)||xt(o))&&e.jsx("style",{children:` 120 [data-source-id="source-${s}"] img.watermark{ 121 display: none; 122 } 123 ${q} 124 `}),n==="responsive"&&(Gt(o)||xt(o))&&e.jsx("style",{children:` 125 [data-source-id="source-${s}"] .ose-youtube { 126 width: ${l}px!important; 127 position: relative; 128 padding: 0; 129 padding-top: 56.5%; 130 height: 100%!important; 131 } 132 133 [data-source-id="source-${s}"] .ose-youtube iframe { 134 position: absolute; 135 top: 0; 136 left: 0; 137 width: 100%; 138 height: 100%!important; 139 } 140 `}),C&&e.jsx("style",{children:` 141 [data-source-id="source-${s}"] { 142 --plyr-color-main: ${b&&b.length===7?`rgba(${parseInt(b.slice(1,3),16)}, ${parseInt(b.slice(3,5),16)}, ${parseInt(b.slice(5,7),16)}, .8)`:"rgba(0, 0, 0, .8)"}; 143 } 144 [data-source-id="source-${s}"] .custom-player-preset-1, 145 [data-source-id="source-${s}"] .custom-player-preset-3, 146 [data-source-id="source-${s}"] .custom-player-preset-4{ 147 --plyr-color-main: ${b&&b.length===7?`rgb(${parseInt(b.slice(1,3),16)}, ${parseInt(b.slice(3,5),16)}, ${parseInt(b.slice(5,7),16)})`:"rgba(0, 0, 0, .8)"}; 148 --plyr-range-fill-background: #fff; 149 } 150 151 [data-source-id="source-${s}"] [data-plyr="restart"] { 152 display: ${B}!important; 153 } 154 [data-source-id="source-${s}"] [data-plyr="rewind"] { 155 display: ${N}!important; 156 } 157 [data-source-id="source-${s}"] [data-plyr="fast-forward"] { 158 display: ${T}!important; 159 } 160 [data-source-id="source-${s}"] [data-plyr="pip"] { 161 display: ${E}!important; 162 } 163 [data-source-id="source-${s}"] [data-plyr="fullscreen"] { 164 display: ${S}!important; 165 } 166 [data-source-id="source-${s}"] [data-plyr="download"] { 167 display: ${Z}!important; 168 } 169 170 [data-playerid="${g}"] > .plyr { 171 width: ${l}px!important; 172 height: ${a}px!important; 173 max-height: ${a}px!important; 174 } 175 176 /* Custom player fullscreen fixes */ 177 [data-playerid="${g}"] > .plyr.plyr--fullscreen-fallback { 178 -webkit-user-select: none; 179 user-select: none; 180 -webkit-touch-callout: none; 181 touch-action: manipulation; 182 width: 100vw!important; 183 height: 100vh!important; 184 max-height: 100vh!important; 185 } 186 187 [data-playerid="${g}"] > .plyr.plyr--fullscreen-fallback iframe{ 188 width: 100vw!important; 189 height: 100vh!important; 190 max-height: 100vh!important; 191 } 192 193 .plyr--fullscreen-fallback .plyr__controls { 194 bottom: 40px !important; 195 } 196 197 198 ${v&&v.length>=0?`[data-playerid="${g}"] .plyr--paused .plyr__poster { 199 background-image: url("${v}")!important; 200 opacity: 1!important; 201 }`:""} 202 `}),Hl(o)&&e.jsx("style",{children:` 203 [data-carouselid="${s}
203"] .cg-carousel__btns{ 204 display: ${H}; 205 } 206 `})]})}const uo=(t,o)=>{o||(document.querySelector(".pro__alert__wrap").style.display="block")},De=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",t=>{document.querySelector(".pro__alert__wrap").style.display="none"})},Re=t=>{const o=` 207 <div class="pro__alert__wrap" style="display: none;"> 208 <div class="pro__alert__card"> 209 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 210 <h2>Opps...</h2> 211 <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> 212 <a href="#" class="button radius-10">Close</a> 213 </div> 214 </div> 215 `,s=document.createElement("div");return s.innerHTML=o,s},Xt=()=>{document.querySelector(".tips__alert__wrap")&&document.querySelector(".tips__alert__wrap .tips__alert__card .button").addEventListener("click",t=>{document.querySelector(".tips__alert__wrap").style.display="none"})},Ol=t=>{document.querySelector(".tips__alert__wrap").style.display="block"},Jt=()=>{const t=` 216 <div class="tips__alert__wrap" style="display: none;"> 217 <div class="tips__alert__card"> 218 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/idea.svg" alt=""/> 219 <h2>Simply add "/live" to the channel's URL to embed a live video.</h2> 220 <p>Note: If there are multiple live videos on the channel, just the most recent ones will be seen. </p> 221 <a href="#" class="button radius-10">Close</a> 222 </div> 223 </div> 224 `,o=document.createElement("div");return o.innerHTML=t,o},vt=(t,o)=>{const s=new XMLHttpRequest;s.open("POST",ajaxurl),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){s.status===200?console.log("Request successful:",s.responseText):console.error("Request failed:",s.statusText)},s.onerror=function(){console.error("Request failed:",s.statusText)};const l={action:"save_source_data",block_id:t,source_url:o,_source_nonce:embedpressGutenbergData.sourceNonce},a=Object.keys(l).map(n=>`${encodeURIComponent(n)}=${encodeURIComponent(l[n])}`).join("&");s.send(a)},ql=(t,o,s,l,a)=>{let n=`<div class="ep-social-share share-position-${t}">`;return o&&(n+=` 225 <a href="#" class="ep-social-icon facebook" target="_blank"> 226 <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> 227 </a>`),s&&(n+=` 228 <a href="#" class="ep-social-icon twitter" target="_blank"> 229 <svg viewBox="0 0 24 24" aria-hidden="true" fill="#fff" class="r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-lrvibr r-m6rgpd r-lrsllp r-1nao33i r-16y2uox r-8kz0gk"><g><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></g></svg> 230 </a>`),l&&(n+=` 231 <a href="#" class="ep-social-icon pinterest" target="_blank"> 232 <svg xmlns="http://www.w3.org/2000/svg" height="800" width="1200" viewBox="-36.42015 -60.8 315.6413 364.8"> 233 <path 234 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" 235 fill="#fff" /> 236 </svg> 237 </a>`),a&&(n+=` 238 <a href="#" class="ep-social-icon linkedin" target="_blank"> 239 <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" viewB
239ox="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 240 C77.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 241 c22.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 242 c-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 243 c25.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 244 C310,145.43,300.549,94.761,230.454,94.761z"/></g></svg> 245 </a>`),n+="</div>",n},jt=t=>/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/i.test(t),Nn=t=>{const o=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),l=parseInt(t.slice(5,7),16),a=Math.max(o,s,l),n=Math.min(o,s,l),p=(a+n)/2;return Math.round(p/255*100)},Un=(t,o)=>{const s=parseInt(t.slice(1,3),16),l=parseInt(t.slice(3,5),16),a=parseInt(t.slice(5,7),16),n=Math.round(o/100*255),p=Math.max(Math.min(s+n,255),0),d=Math.max(Math.min(l+n,255),0),f=Math.max(Math.min(a+n,255),0);return"#"+((1<<24)+(p<<16)+(d<<8)+f).toString(16).slice(1)},No=t=>/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/(?:[a-zA-Z0-9_\.]+\/?|explore\/tags\/[a-zA-Z0-9_\-]+\/?)$/.test(t),de=t=>{if(t.startsWith("/")||t.startsWith("#"))return t;try{const o=new URL(t);
245if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(o.protocol))throw new Error("Invalid protocol");return o.toString()}catch(o){return console.error("Error sanitizing URL:",o.message),"/404"}},Ot=t=>/^https?:\/\/(?:www\.)?instagram\.com\/explore\/tags\/([^/]+)\/?$/i.test(t),{useBlockProps:Dn}=wp.blockEditor,{applyFilters:Rn}=wp.hooks;function In({attributes:t}){const o=Dn.save(),{url:s,embedHTML:l,width:a,height:n,contentShare:p,sharePosition:d,customPlayer:f,playerPreset:r,customlogo:i,logoX:u,logoY:c,logoOpacity:m,clientId:C,adManager:y,adSource:v,adFileUrl:x,adWidth:b,adHeight:k,adXPosition:_,adYPosition:P,shareFacebook:$,shareTwitter:w,sharePinterest:h,shareLinkedin:g,instaLayout:E,cEmbedType:B,cPopupButtonText:N,cPopupButtonBGColor:T,cPopupButtonTextColor:S,coverImageUrl:Z,playlist:V}=t;if(!s||zn(s))return null;const W=s&&(s.includes("youtube.com/channel/")||s.includes("youtube.com/c/")||s.includes("youtube.com/user/")),q=s&&s.includes("instagram.com"),H=s&&s.includes("opensea.io")&&!s.includes("/assets/"),z=s&&s.includes("opensea.io")&&s.includes("/assets/"),D=s&&s.includes("wistia.com");s&&s.includes("spreaker.com");let I="",ee="",O=d||"right";p&&(I="ep-content-share-enabled",ee="ep-share-position-"+O);let oe="";f&&(oe=r||"preset-default");let L="";W&&(L="embedded-youtube-channel");let fe="";q&&(fe=E);let le="";(H||z)&&(le=" source-opensea");const be={position:"relative",display:"inline-block"},ne=_o(C||"");let ae="";if(B==="popup_button"){let He=S,Xe=T;S&&!S.startsWith("#")&&(He="#"+S),T&&!T.startsWith("#")&&(Xe="#"+T),ae=` 246 <div class="cbutton-preview-wrapper" style="margin-top:-${n}px"> 247 <h4 class="cbutton-preview-text">Preview Popup Button</h4> 248 <div style="position: static" class="calendly-badge-widget"> 249 <div class="calendly-badge-content" style="color: ${He}; background: ${Xe};"> 250 ${N} 251 </div> 252 </div> 253 </div> 254 `}let re="";D&&(re="<span class='ep-wistia-message'> Changes will be affected in frontend. </span>");let ce="";p&&(ce=ql(d,$,w,h,g));const pe=Rn("embedpress.customLogoComponent","",t),ye=`${a?`width:${a}px;`:""}${n?`height:${n}px;`:""}max-width:100%;`;let U=l||"";l&&(a||n)?U=l.replace(/<iframe([^>]*)>/gi,`<iframe$1 style="${ye}">`):!l&&s&&(U=` 255 <div class="embedpress-placeholder" data-url="${s}" data-width="${a||600}" data-height="${n||400}"> 256 <!-- EmbedPress content will be loaded here --> 257 </div>`);const fo=f?Ul({attributes:t}):"",ve=E==="insta-carousel"?Dl({attributes:t}):"";return e.jsxs("figure",{...o,"data-source-id":`source-${C}`,"data-embed-type":t.providerName||"",children:[e.jsxs("div",{className:`gutenberg-block-wraper ${I} ${ee}${le}`,children:[e.jsx("div",{className:`position-${O}-wraper ep-embed-content-wraper ${L} ${oe} ${fe}`,style:be,...f?{"data-playerid":ne}:{},...f?{"data-options":fo}:{},...E==="insta-carousel"?{"data-carouselid":ne}:{},...E==="insta-carousel"?{"data-carousel-options":ve}:{},dangerouslySetInnerHTML:{__html:U+pe+re+ce+ae}}),y&&v==="image"&&x&&e.jsx("div",{className:"main-ad-template",style:{position:"absolute",bottom:`${P}%`,left:`${_}%`,width:`${b}px`,height:`${k}px`,backgroundImage:`url(${x})`,backgroundSize:"cover",backgroundPosition:"center",zIndex:10},children:e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx("img",{src:x,alt:"Advertisement",style:{width:"100%",height:"100%",objectFit:"cover"}})})})]}),y&&v==="image"&&e.jsx("style",{dangerouslySetInnerHTML:{__html:` 258 [data-source-id="source-${C}"] .main-ad-template div, 259 .main-ad-template div img { 260 height: 100%; 261 } 262 [data-source-id="source-${C}"] .main-ad-template { 263 position: absolute; 264 bottom: ${P}%; 265 left: ${_}%; 266 } 267 `}}),e.jsx(Vl,{attributes:t})]})}function zn(t){return t?["photos.app.goo.gl","photos.google.com","instagram.com","opensea.io"].some(s=>t.includes(s)):!1}const{useRef:zm}=wp.element,{applyFilters:_t}=wp.hooks,{__:Hn}=wp.i18n,{TextControl:Hm,TextareaControl:Gm,ToggleControl:Vm,PanelBody:Gn}=wp.components;function Uo({attributes:t,setAttributes:o}){const{lockContent:s,protectionType:l,userRole:a,lockHeading:n,lockSubHeading:p,lockErrorMessage:d,passwordPlaceholder:f,submitButtonText:r,submitUnlockingText:i,enableFooterMessage:u,footerMessage:c,contentPassword:m}=t,C=_t("embedpress.togglePlaceholder",[],"Enable Content Protection",!1);return e.jsxs(Gn,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Hn("Content Protection","embedpress")]}),initialOpen:!1,className:s?"":"disabled-content-protection",children:[_t("embedpress.toggleContentProtection",[C],t,o),_t("embedpress.lockContentControllers",[],t,o)]})}function M({classname:t,headerText:o}){return e.jsx("h4",{className:t||"ep-control-header",children:o})}const{__:Om}=wp.i18n,{TextControl:qm,RangeControl:Wm,PanelBody:Zm,Button:Vn}=wp.components,{MediaUpload:On}=wp.blockEditor;function qn({attributes:t,setAttributes:o}){const{customThumbnail:s}=t,l=n=>{o({customThumbnail:n.sizes.full.url})},a=n=>{o({customThumbnail:""})};return e.jsxs("div",{children:[e.jsx("label",{class:"custom-share-thumbnail-label",children:"Thumbnail"}),s&&e.jsxs("div",{className:"ep__custom-logo",style:{position:"relative"},children:[e.jsx("button",{title:"Remove Image",className:"ep-remove__image",type:"button",onClick:a,children:e.jsx("span",{class:"dashicon dashicons dashicons-trash"})}),e.jsx("img",{src:s,alt:"John"})]}),e.jsx("div",{className:"ep-custom-logo-button",children:e.jsx(On,{onSelect:l,allowedTypes:["image"],value:s,render:({open:n})=>e.jsx(Vn,{className:"ep-logo-upload-button",icon:s?"update":"upload",onClick:n,children:s?"Change Image":"Upload Image"})})})]})}const{__:Be}=wp.i18n,{TextControl:Wn,TextareaControl:Zn,ToggleControl:Ho,SelectControl:Yn,PanelBody:Xn}=wp.components;function Do({attributes:t,setAttributes:o}){const{customTitle:s,customDescription:l,contentShare:a,sharePosition:n,shareFacebook:p,shareTwitter:d,sharePinterest:f,shareLinkedin:r}=t;return e.jsxs(Xn,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Be("Social Share","embedpress")]}),initialOpen:!1,children:[e.jsx("div",{className:"content-share-toggle",children:e.jsx(Ho,{label:Be("Enable Social Share"),checked:a,onChange:i=>o({contentShare:i})})}
267),a&&e.jsxs("div",{className:"content-share-controls",children:[e.jsx(Wn,{label:Be("Title"),value:s,onChange:i=>o({customTitle:i}),placeholder:Be("Enter Title")}),e.jsx(Zn,{label:Be("Description"),placeholder:Be("Enter description"),value:l,onChange:i=>o({customDescription:i})}),e.jsx(Yn,{label:Be("Position"),value:n,options:[{label:"Top",value:"top"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"}],onChange:i=>o({sharePosition:i}),__nextHasNoMarginBottom:!0}),e.jsx(qn,{attributes:t,setAttributes:o}),e.jsx("h3",{children:Be("Share Platforms","embedpress")}),e.jsx(Ho,{label:Be("Facebook"),checked:p!==!1,onChange:i=>o({shareFacebook:i})}),e.jsx(Ho,{label:Be("Twitter"),checked:d!==!1,onChange:i=>o({shareTwitter:i})}),e.jsx(Ho,{label:Be("Pinterest"),checked:f!==!1,onChange:i=>o({sharePinterest:i})}),e.jsx(Ho,{label:Be("LinkedIn"),checked:r!==!1,onChange:i=>o({shareLinkedin:i})}),e.jsxs("div",{className:"ep-documentation ",children:[G,e.jsx("a",{href:"https://embedpress.com/docs/ep-social-share-option-with-embedded-content/",target:"_blank",children:" Need Help? "})]})]})]})}const{useState:Ym,useEffect:Xm}=wp.element,{isShallowEqualObjects:Jm}=wp.isShallowEqual,Jn=(t,o)=>{const s={};return Object.keys(t).forEach(l=>{l in o?s[l]=o[l]:s[l]=t[l]}),s},J=(t,o,s)=>{const l=Jn(s,o);return{...t,...l}},qt=t=>t.match(/\.(mp4|mov|avi|wmv|flv|mkv|webm|mpeg|mpg)$/i),es=t=>t.match(/\.(mp3|wav|ogg|aac)$/i),Wl=t=>/^https?:\/\/(www\.)?spreaker\.com\/(show|user|podcast|episode)\/[^/]+/.test(t),wt=t=>/^https:\/\/(photos\.app\.goo\.gl|photos\.google\.com)\/.*$/i.test(t),{__:Kn}=wp.i18n,{applyFilters:os}=wp.hooks,{TextControl:Km,RangeControl:Qm,PanelBody:Qn,Button:Am}=wp.components;function An({attributes:t,setAttributes:o}){const{customlogo:s,logoX:l,logoY:a,customlogoUrl:n,logoOpacity:p}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());const d=os("embedpress.uploadPlaceholder",[]);return e.jsx(Qn,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Kn("Custom Branding","embedpress")]}),initialOpen:!1,children:os("embedpress.customLogoSettings",[d],t,o)})}const{__:se}=wp.i18n,{applyFilters:ge}=wp.hooks,{SelectControl:eh,ToggleControl:Ve,ColorPalette:oh,Button:th,TextControl:ts}=wp.components,ea=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#5b4e96"},{name:"",color:"#0000FF"},{name:"",color:"#FFA500"}],{MediaUpload:sh}=wp.blockEditor,Kt=t=>{const{attributes:o,setAttributes:s,isYTVideo:l,isYTLive:a,isYTShorts:n,isVimeoVideo:p,isSelfHostedAudio:d}=t,{url:f,customPlayer:r,starttime:i,endtime:u,autoplay:c,muteVideo:m,fullscreen:C,relatedvideos:y,vautoplay:v,vautopause:x,vdnt:b,posterThumbnail:k,playerPip:_,playerRestart:P,playerRewind:$,playerFastForward:w,playerPreset:h,playerColor:g,playerTooltip:E,playerHideControls:B,playerDownload:N}=o;qt(f),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt());const T=ge("embedpress.togglePlaceholder",[],se("Tooltip","embedpress"),!0),S=ge("embedpress.togglePlaceholder",[],se("Auto Hide Controls","embedpress"),!0),Z=ge("embedpress.togglePlaceholder",[],se("Source Link","embedpress"),!0),V=ge("embedpress.togglePlaceholder",[],se("Sticky Video","embedpress"),!1),W=ge("embedpress.uploadPlaceholder",[],se("Sticky Video","embedpress"),!1),q=ge("embedpress.selectPlaceholder",[],se("Preset","embedpress"),"default","Default"),H=ge("embedpress.colorPlatePlaceholder",[],se("Player Color","embedpress"),"#5b4e96",ea),z=ge("embedpress.togglePlaceholder",[],se("Auto Paause","embedpress"),!1),D=ge("embedpress.togglePlaceholder",[],se("DNT","embedpress"),!1);return e.jsxs("div",{className:"ep-custom-player-controls",children:[ge("embedpress.youtubeControls",[q],o,s,"preset",t),(a||l||n)&&e.jsxs("div",{className:"youtube-player-controls",children:[e.jsx(ts,{label:se("Start Time (in seconds)"),value:i,onChange:I=>s({starttime:I}),type:"number",className:"ep-control-field"}),e.jsx(ts,{label:se("End Time (in seconds)"),value:u,onChange:I=>s({endtime:I}),type:"number",className:"ep-control-field"}),!r&&e.jsxs("div",{children:[e.jsx(Ve,{label:se("Auto Play"),checked:c,onChange:I=>s({autoplay:I})}),e.jsx(Ve,{label:se("Fullscreen Button"),checked:C,onChange:I=>s({fullscreen:I})})]})]}),ge("embedpress.youtubeControls",[H],o,s,"playerColor"),r&&(a||l)&&e.jsxs("div",{className:"remove-last-child-margin",children:[e.jsx(Ve,{label:se("Auto Play"),checked:c,onChange:I=>s({autoplay:I})}),c&&e.jsx(Ve,{label:se("Mute"),checked:m,onChange:I=>s({muteVideo:I})}),e.jsx(Ve,{label:se("Fullscreen Button"),checked:C,onChange:I=>s({fullscreen:I})})]}
267),p&&e.jsxs("div",{className:"vimeo-player-controls",children:[e.jsx(Ve,{label:se("Auto Play"),checked:v,onChange:I=>s({vautoplay:I})}),ge("embedpress.vimeoControls",[z],o,s,"autoPause"),ge("embedpress.vimeoControls",[D],o,s,"dnt")]}),e.jsx(Ve,{label:se("Restart"),checked:P,onChange:I=>s({playerRestart:I})}),e.jsx(Ve,{label:se("Rewind"),checked:$,onChange:I=>s({playerRewind:I})}),e.jsx(Ve,{label:se("Fast Forward"),checked:w,onChange:I=>s({playerFastForward:I})}),ge("embedpress.youtubeControls",[T],o,s,"tooltip"),ge("embedpress.youtubeControls",[S],o,s,"autoHide"),ge("embedpress.youtubeControls",[Z],o,s,"sourceLink"),ge("embedpress.youtubeControls",[V],o,s,"stickyVideo"),(a||l)&&e.jsxs("div",{className:"ep-yt-related-videos",children:[e.jsx(Ve,{label:se("Related Videos"),checked:y,onChange:I=>s({relatedvideos:I})}),e.jsx("p",{children:"Enable to display related videos from all channels. Otherwise, related videos will show from the same channel."})]}),!d&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Thumbnail"}),ge("embedpress.youtubeControls",W,o,s,"thumbnail",t)]})]})},{isShallowEqualObjects:Zl}=wp.isShallowEqual,{useState:Yl,useEffect:Xl}=wp.element,{applyFilters:Jo}=wp.hooks,{__:me}=wp.i18n,{addFilter:oa}=wp.hooks,{TextControl:kt,SelectControl:Ko,RangeControl:ta,ToggleControl:vo,PanelBody:sa}=wp.components,la=()=>{oa("embedpress_block_rest_param","embedpress",na,10)},na=(t,o)=>{if(!o.url)return t;let s={},l={};(Jl(o.url)||Zt(o.url)||aa(o.url))&&(s={videosize:"fixed",starttime:"",endtime:"",autoplay:!1,muteVideo:!0,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}),Wt(o.url)&&!Zt(o.url)&&(l={pagesize:6,ytChannelLayout:"gallery"});const a={...s,...l};return J(t,o,a)},Wt=t=>!!t.match(/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/(?:c\/|channel\/|user\/|@)([^\/\?]+)/i),Zt=t=>!!t.match(/^https?:\/\/(?:www\.)?youtube\.com\/(?:channel\/[\w-]+|@[\w-]+)\/live$/),aa=t=>/^https:\/\/www\.youtube\.com\/shorts\/[A-Za-z0-9_-]+$/.test(t),Jl=t=>{const o=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/i,s=t.match(o);return s?s[7].length===11:!1},Kl=t=>{const o={pagesize:null,ytChannelLayout:null},s=J({},t,o),[l,a]=Yl(s);return Xl(()=>{const n=J(l,t,o);Zl(l||{},n)||a(n)},[t]),l},Ql=t=>{const o={videosize:null,starttime:null,endtime:null,autoplay:null,muteVideo: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},s=J({},t,o),[l,a]=Yl(s);return Xl(()=>{const n=J(l,t,o);Zl(l||{},n)||a(n)},[t]),l},ra=(t,o)=>({youtubeParams:Wt(o)?Kl(t):Ql(t),isYTChannel:Wt(o),isYTVideo:Jl(o),isYTLive:Zt(o)});function $t({attributes:t,setAttributes:o,isYTChannel:s,isYTVideo:l,isYTLive:a,isYTShorts:n}){const{url:p,ispagination:d,pagesize:f,ytChannelLayout:r,columns:i,gapbetweenvideos:u,videosize:c,starttime:m,endtime:C,autoplay:y,muteVideo:v,controls:x,fullscreen:b,videoannotations:k,progressbarcolor:_,closedcaptions:P,modestbranding:$,relatedvideos:w,customPlayer:h}=t,g=embedpressGutenbergData.isProPluginActive;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt());const E=Jo("embedpress.togglePlaceholder",[],me("Closed Captions","embedpress"),!0),B=Jo("embedpress.selectPlaceholder",[],me("Modest Branding","embedpress"),"display","Display");r==="grid"&&i===1&&o({columns:3}),r==="list"&&o({columns:1});let N="Video per page";r==="carousel"&&(N="Number of videos (max 50)");let T=" (Pro)";return g&&(T=""),!g&&(r=="grid"||r=="carousel")&&(uo(null,g),o({ytChannelLayout:"gallery"})),e.jsxs("div",{children:[s&&!a&&e.jsxs("div",{className:"ep__channel-yt-video-options",children:[e.jsx(Ko,{label:me("Layout"),value:r,options:[{label:"Gallery",value:"gallery"},{label:"List",value:"list"},{label:"Grid"+T,value:"grid"},{label:"Carousel"+T,value:"carousel"}],onChange:S=>o({ytChannelLayout:S}),__nextHasNoMarginBottom:!0}),e.jsx(kt,{label:me(N),value:f,onChange:S=>o({pagesize:S})}),e.jsx("p",{children:"Specify the number of videos you wish to
267show on each page."}),r!=="list"&&r!=="carousel"&&e.jsx(Ko,{label:me("Column"),value:i,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:S=>o({columns:S}),__nextHasNoMarginBottom:!0}),r!=="carousel"&&e.jsxs("div",{children:[e.jsx(ta,{label:me("Gap Between Videos"),value:u,onChange:S=>o({gapbetweenvideos:S}),min:1,max:100}),e.jsx("p",{children:"Specify the gap between youtube videos."})]}),r!="carousel"&&e.jsx(vo,{label:me("Pagination"),checked:d,onChange:S=>o({ispagination:S})}),e.jsxs("div",{className:"ep-tips-and-tricks",children:[G,e.jsxs("a",{href:"#",target:"_blank",onClick:S=>{S.preventDefault(),Ol()},children:[" ",me("Tips & Tricks","embedpress")," "]})]})]}),(l||a||n)&&e.jsx("div",{className:"ep__single-yt-video-options",children:e.jsxs(sa,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",me("Video Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(vo,{label:me("Enable Custom Player","embedpress"),checked:h,onChange:S=>o({customPlayer:S})}),h?e.jsx("div",{className:"ep-video-controlers",children:e.jsx(Kt,{attributes:t,setAttributes:o,isYTVideo:l,isYTLive:a})}):e.jsxs("div",{className:"ep-video-controlers",children:[e.jsx(kt,{label:me("Start Time (in seconds)"),value:m,onChange:S=>o({starttime:S}),type:"number",className:"ep-control-field"}),e.jsx(kt,{label:me("End Time (in seconds)"),value:C,onChange:S=>o({endtime:S}),type:"number",className:"ep-control-field"}),e.jsx(vo,{label:me("Auto Play"),checked:y,onChange:S=>o({autoplay:S})}),y&&e.jsxs("div",{className:"ep-yt-mute-videos",children:[e.jsx(vo,{label:me("Mute"),checked:v,onChange:S=>o({muteVideo:S})}),e.jsx("p",{children:"Mute the video to ensure autoplay works smoothly across all browsers. Recommended for autoplay-enabled videos."})]}),e.jsx(Ko,{label:me("Controls","embedpress"),value:x,options:[{label:"Display immediately",value:"1"},{label:"Hide controls",value:"0"},{label:"Display after user initiation immediately",value:"2"}],onChange:S=>o({controls:S}),className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),e.jsx(vo,{label:me("Fullscreen Button"),checked:b,onChange:S=>o({fullscreen:S})}),e.jsx(vo,{label:me("Video Annotations"),checked:k,onChange:S=>o({videoannotations:S})}),e.jsx(Ko,{label:me("Progress Bar Color","embedpress"),value:_,options:[{label:"Red",value:"red"},{label:"White",value:"white"}],onChange:S=>o({progressbarcolor:S}),className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),Jo("embedpress.youtubeControls",[E],t,o,"closedCaptions"),Jo("embedpress.youtubeControls",[B],t,o,"modestBranding"),e.jsxs("div",{className:"ep-yt-related-videos",children:[e.jsx(vo,{label:me("Related Videos"),checked:w,onChange:S=>o({relatedvideos:S})}),e.jsx("p",{children:"Enable to display related videos from all channels. Otherwise, related videos will show from the same channel."})]})]})]})})]})}const{useState:ss,useEffect:ia,useRef:da}=wp.element,ho=({attributes:t,setAttributes:o,deleteIcon:s,inEditor:l,progressBar:a})=>{const{adSource:n,adContent:p,adFileUrl:d,adSkipButton:f}=t,[r,i]=ss(!1),[u,c]=ss(0),m=da(null),{adWidth:C,adHeight:y}=t,v=()=>{o({adFileUrl:""})},x=w=>{const[h,g]=w.split(":");return parseInt(h,10)*60+parseInt(g,10)};let b=0;p&&(b=p.fileLength?x(p.fileLength):0);const k=()=>{const w=m.current;if(w){const{currentTime:h}=w;c(h),h>=3&&i(!0)}};ia(()=>{if(n==="video")m.current.addEventListener("timeupdate",k);else{const w=setTimeout(()=>{i(!0)},3e3);return()=>{clearTimeout(w)}}},[n,p,d]);const _=()=>{o({adFileUrl:""})};let P={width:C+"px",height:y+"px"},$=!1;return l||(P={},$=!0),e.jsx("div",{className:"main-ad-template",style:P,children:e.jsx("div",{className:"ep-ad-container",children:e.jsxs("div",{className:"ep__custom-logo",style:{position:"relative"},children:[s||!l&&e.jsx("button",{title:"Remove Image",className:"ep-remove__image",type:"button",onClick:v,children:e.jsx("span",{className:"dashicon dashicons dashicons-trash"})}),n==="video"?e.jsx("div",{children:e.jsxs("video",{ref:m,className:"ep-ad",autoPlay:!0,muted:$,children:[e.jsx("source",{src:d}),"Your browser does not support the video tag."]})}):e.jsx("div",{children:e.jsx("img",{src:d})}),a||n!=="image"&&e.jsx("div",{className:"progress-bar-container",children:e.jsx("div",{className:"progress-bar",style:{background:"#5be82a",height:"4px",marginTop:"-4px",width:`${n==="video"?u/b*100:100}%`,maxWidth:"100%"}})}),f&&r&&e.jsx("button",{title:"Skip Ad",className:"skip-ad-button",onClick:_,children:"Skip Ad"})]})})})},{useRef:ca}=wp.element,{applyFilters:Qo}=wp.hooks,{__:ls}=wp.i18n,{TextControl:lh,RangeControl:nh,SelectControl:ah,ToggleControl:rh,PanelBody:pa,Button:ih}=wp.components,{MediaUpload:dh}=wp.blockEditor;function Ro({attributes:t,setAttributes:o}){const{adManager:s,adSource:l,adContent:a,adFileUrl:n,adWidth:p,adHeight:d,adXPosition:f,adYPosition:r,adUrl:i,adStart:u,adSkipButton:c,adSkipButtonAfter:m}=t;ca(null);const C=Qo("embedpress.togglePlaceholder",[],"Ads Settings",!0),y=Qo("embedpress.adsPlaceholder",[]);return e.jsxs(pa,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",ls("Ads Settings","embedpress")]}),initialOpen:!1,className:s?"":"disabled-content-protection",children:[Qo("embedpress.adsSettings",[C],t,o),Qo("embedpress.adManagerSettings",[y],t,o),e.jsxs("div",{className:"ep-documentation ads-help",children:[G,e.jsxs("a",{href:"https://embedpress.com/docs/add-ep-content-protection-in-embedded-content/",target:"_blank",children:[" ",ls("Need Help?","emebdpress")," "]})]})]})}const{isShallowEqualObjects:ua}=wp.isShallowEqual,{useState:ma,useEffect:ha}=wp.element,{__:F}=wp.i18n,{addFilter:ga}=wp.hooks,{SelectControl:Pt,RangeControl:St,ToggleControl:Je,TextControl:ch,PanelBody:ke,ColorPalette:he,FontSizePicker:Ce}=wp.components,{InspectorControls:ph}=wp.blockEditor,{applyFilters:we}=wp.hooks,fa=()=>{ga("embedpress_block_rest_param","embedpress",ba,10)},ba=(t,o)=>!o.url||!(ya(o.url)||ns(o.url))?t:J(t,o,{limit:20,itemperpage:9,loadmore:!1,loadmorelabel:"Load More",orderby:"desc",layout:ns?"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:"",buttonBackgroun
267dColor:"",buttonFontSize:"",loadmoreTextColor:"",loadmoreBackgroundColor:"",loadmoreTextFontsize:"",rankBtnColor:"",rankBtnFZ:"",rankBtnBorderColor:"",rankLabelColor:"",rankLabelFZ:"",detialTitleColor:"",detialTitleFZ:"",detailTextColor:"",detailTextLinkColor:"",detailTextFZ:""}),ya=t=>t.match(/\/collection\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.com\/)(\w+)[^?\/]*$/i),ns=t=>t.match(/\/assets\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.io\/)(\w+)[^?\/]*$/i),xa=t=>{const o={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,loadmoreBackgroun
267dColor:null,loadmoreTextFontsize:null,rankBtnColor:null,rankBtnFZ:null,rankBtnBorderColor:null,rankLabelColor:null,rankLabelFZ:null,detialTitleColor:null,detialTitleFZ:null,detailTextColor:null,detailTextLinkColor:null,detailTextFZ:null},s=J({},t,o),[l,a]=ma(s);return ha(()=>{const n=J(l,t,o);ua(l||{},n)||a(n)},[t]),l};function wa({attributes:t,setAttributes:o,isOpensea:s,isOpenseaSingle:l}){const{limit:a,itemperpage:n,loadmore:p,loadmorelabel:d,orderby:f,layout:r,preset:i,nftperrow:u,gapbetweenitem:c,collectionname:m,nftimage:C,nftcreator:y,prefix_nftcreator:v,nfttitle:x,nftprice:b,prefix_nftprice:k,nftlastsale:_,prefix_nftlastsale:P,nftbutton:$,nftrank:w,label_nftrank:h,nftdetails:g,label_nftdetails:E,label_nftbutton:B,alignment:N,itemBGColor:T,collectionNameColor:S,collectionNameFZ:Z,titleColor:V,titleFontsize:W,creatorColor:q,creatorFontsize:H,creatorLinkColor:z,creatorLinkFontsize:D,priceLabelColor:I,priceLabelFontsize:ee,priceColor:O,priceFontsize:oe,priceUSDColor:L,priceUSDFontsize:fe,lastSaleLabelColor:le,lastSaleLabelFontsize:be,lastSaleColor:ne,lastSaleFontsize:ae,lastSaleUSDColor:re,lastSaleUSDFontsize:ce,buttonTextColor:pe,buttonBackgroundColor:ye,buttonFontSize:U,loadmoreTextColor:fo,loadmoreBackgroun
267dColor:ve,loadmoreTextFontsize:He,rankBtnColor:Xe,rankBtnFZ:Zo,rankBtnBorderColor:bo,rankLabelColor:ko,rankLabelFZ:$o,detialTitleColor:Po,detialTitleFZ:So,detailTextColor:Yo,detailTextLinkColor:Lo,detailTextFZ:yo}=t;embedpressGutenbergData.isProPluginActive;const xo=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",j=>{document.querySelector(".pro__alert__wrap").style.display="none"})},wo=j=>{const zo=` 268 <div class="pro__alert__wrap" style="display: none;"> 269 <div class="pro__alert__card"> 270 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 271 <h2>Opps...</h2> 272 <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> 273 <a href="#" class="button radius-10">Close</a> 274 </div> 275 </div> 276 `,eo=document.createElement("div");return eo.innerHTML=zo,eo};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(wo()),xo());const ie=[{name:F("Small"),slug:"small",size:16},{name:F("Medium"),slug:"medium",size:18},{name:F("Large"),slug:"big",size:26}],K=[{name:"",color:"red"},{name:"",color:"green"},{name:"",color:"blue"},{name:"",color:"yellow"},{name:"",color:"orange"}],ue=16;we("embedpress.uploadPlaceholder",[],F("Sticky Video","embedpress"),!1);const Ae=we("embedpress.textControlPlaceholder",[],F("Creator Prefix","embedpress"),""),Q=we("embedpress.textControlPlaceholder",[],F("Price Prefix","embedpress"),""),xe=we("embedpress.textControlPlaceholder",[],F("Last Sale Prefix","embedpress"),""),Ee=we("embedpress.textControlPlaceholder",[],F("Button Label","embedpress"),""),Bo=we("embedpress.textControlPlaceholder",[],F("Rank Label","embedpress"),""),Io=we("embedpress.textControlPlaceholder",[],F("Details Label","embedpress"),""),Xo=we("embedpress.togglePlaceholder",[],F("Load More","embedpress"),!1);return(s||l)&&e.jsxs("div",{children:[s&&e.jsx(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",F("Query","embedpress")]}),initialOpen:!0,className:"ep-opensea-options",children:e.jsxs("div",{children:[e.jsx(St,{label:F("Limit","embedpress"),value:a,onChange:j=>o({limit:j}),min:1,max:100}),e.jsx(Pt,{label:F("Order By","embedpress"),value:f,options:[{label:"Oldest",value:"asc"},{label:"Newest",value:"desc"}],onChange:j=>o({orderby:j}),__nextHasNoMarginBottom:!0})]})}),s&&e.jsx(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",F("Layout","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:e.jsxs("div",{children:[e.jsx(Pt,{label:F("Layout","embedpress"),value:r,options:[{label:"List",value:"ep-list"},{label:"Grid",value:"ep-grid"}],onChange:j=>o({layout:j})}),r=="ep-grid"&&e.jsx(Pt,{label:F("Preset","embedpress"),value:i,options:[{label:"Preset 1",value:"ep-preset-1"},{label:"Preset 2",value:"ep-preset-2"}],onChange:j=>o({preset:j})}),e.jsx(St,{label:F("Item Per Row","embedpress"),value:u||3,onChange:j=>o({nftperrow:j}),min:1,max:6}),e.jsx(St,{label:F("Gap Between Item","embedpress"),value:c,onChange:j=>o({gapbetweenitem:j}),min:1,max:100})]})}),e.jsxs(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",F("Content","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:[l&&e.jsx(Je,{label:F("Collection Name","embedpress"),checked:m,onChange:j=>o({collectionname:j})}),e.jsx(Je,{label:F("Thumbnail","embedpress"),checked:C,onChange:j=>o({nftimage:j})}),e.jsx(Je,{label:F("Title","embedpress"),checked:x,onChange:j=>o({nfttitle:j})}),e.jsx(Je,{label:F("Creator","embedpress"),checked:y,onChange:j=>o({nftcreator:j})}),y&&we("embedpress.openseaControls",[Ae],t,o,"creatorPrefix"),e.jsx(Je,{label:F("Show Price","embedpress"),checked:b,onChange:j=>o({nftprice:j})}),b&&we("embedpress.openseaControls",[Q],t,o,"pricePrefix"),e.jsx(Je,{label:F("Last Sale","embedpress"),checked:_,onChange:j=>o({nftlastsale:j})}),_&&we("embedpress.openseaControls",[xe],t,o,"lastSalePrefix"),e.jsx(Je,{label:F("Show Button","embedpress"),checked:$,onChange:j=>o({nftbutton:j})}),$&&we("embedpress.openseaControls",[Ee],t,o,"buttonLabel"),l&&e.jsxs("div",{children:[e.jsx(Je,{label:F("Rank","embedpress"),checked:w,onChange:j=>o({nftrank:j})}),w&&we("embedpress.openseaControls",[Bo],t,o,"rankLabel"),e.jsx(Je,{label:F("Details","embedpress"),checked:g,onChange:j=>o({nftdetails:j})}),g&&we("embedpress.openseaControls",[Io],t,o,"detailsLabel")]})]}),s&&e.jsx(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",F("Load More","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:we("embedpress.openseaControls",[Xo],t,o,"loadMore")}),e.jsxs(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",F("Color and Typography","embedpress")]}),initialOpen:!1,className:"ep-colors-typography",children:[e.jsx("p",{children:F("You can adjust the color and typography of embedded content.")}
276),e.jsxs("div",{className:"ep-opensea-sub-controls",children:[e.jsxs(ke,{title:F("Item"),initialOpen:!1,children:[e.jsx(M,{headerText:"Background Color"}),e.jsx(he,{label:F("Background Color"),colors:K,value:T,onChange:j=>o({itemBGColor:j})})]}),e.jsxs(ke,{title:F("Collection Name"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:F("Color"),colors:K,value:S,onChange:j=>o({collectionNameColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:Z,fallbackFontSize:ue,onChange:j=>o({collectionNameFZ:j})})]}),e.jsxs(ke,{title:F("Title"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:F("Color"),colors:K,value:V,onChange:j=>o({titleColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:W,fallbackFontSize:ue,onChange:j=>o({titleFontsize:j})})]}),e.jsxs(ke,{title:F("Creator"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:F("Color"),colors:K,value:q,onChange:j=>o({creatorColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:H,fallbackFontSize:ue,onChange:j=>o({creatorFontsize:j})}),e.jsx(M,{headerText:"Link Color"}),e.jsx(he,{label:F("Color"),colors:K,value:z,onChange:j=>o({creatorLinkColor:j})}),e.jsx(M,{headerText:"Link Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:D,fallbackFontSize:ue,onChange:j=>o({creatorLinkFontsize:j})})]}),e.jsxs(ke,{title:F("Current Price"),initialOpen:!1,children:[l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:F("Color"),colors:K,value:I,onChange:j=>o({priceLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ee,fallbackFontSize:ue,onChange:j=>o({priceLabelFontsize:j})})]}),e.jsx(M,{headerText:"ETH Price Color"}),e.jsx(he,{label:F("Color"),colors:K,value:O,onChange:j=>o({priceColor:j})}),e.jsx(M,{headerText:"ETH Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:oe,fallbackFontSize:ue,onChange:j=>o({priceFontsize:j})}),l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"USD Price Color"}),e.jsx(he,{label:F("Color"),colors:K,value:L,onChange:j=>o({priceUSDColor:j})}),e.jsx(M,{headerText:"USD Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:fe,fallbackFontSize:ue,onChange:j=>o({priceUSDFontsize:j})})]})]}),e.jsxs(ke,{title:F("Last Sale Price"),initialOpen:!1,children:[l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:F("Color"),colors:K,value:le,onChange:j=>o({lastSaleLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:be,fallbackFontSize:ue,onChange:j=>o({lastSaleLabelFontsize:j})})]}),e.jsx(M,{headerText:"ETH Color"}),e.jsx(he,{label:F("Color"),colors:K,value:ne,onChange:j=>o({lastSaleColor:j})}),e.jsx(M,{headerText:"ETH Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ae,fallbackFontSize:ue,onChange:j=>o({lastSaleFontsize:j})}),l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"USD Price Color"}),e.jsx(he,{label:F("Color"),colors:K,value:re,onChange:j=>o({lastSaleUSDColor:j})}),e.jsx(M,{headerText:"USD Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ce,fallbackFontSize:ue,onChange:j=>o({lastSaleUSDFontsize:j})})]})]}),e.jsxs(ke,{title:F("Button"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:F("Color"),colors:K,value:pe,onChange:j=>o({buttonTextColor:j})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(he,{label:F("Color"),colors:K,value:ye,onChange:j=>o({buttonBackgroundColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:U,fallbackFontSize:ue,onChange:j=>o({buttonFontSize:j})})]}),p&&we("embedpress.openseaControls",[],t,o,"loadmorePanelBody"),l&&e.jsxs(ke,{title:F("Rank"),initialOpen:!1,children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:F("Label Color"),colors:K,value:ko,onChange:j=>o({rankLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:$o,fallbackFontSize:ue,onChange:j=>o({rankLabelFZ:j})}),e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:F("Title Color"),colors:K,value:Xe,onChange:j=>o({rankBtnColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:Zo,fallbackFontSize:ue,onChange:j=>o({rankBtnFZ:j})}),e.jsx(M,{headerText:"Border Color"}),e.jsx(he,{label:F("Color"),colors:K,value:bo,onChange:j=>o({rankBtnBorderColor:j})})]}),l&&e.jsxs(ke,{title:F("Details"),initialOpen:!1,children:[e.jsx(M,{headerText:"Title Color"}),e.jsx(he,{label:F("Title Color"),colors:K,value:Po,onChange:j=>o({detialTitleColor:j})}),e.jsx(M,{headerText:"Title Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:So,fallbackFontSize:ue,onChange:j=>o({detialTitleFZ:j})}),e.jsx(M,{headerText:"Content Color"}),e.jsx(he,{label:F("Color"),colors:K,value:Yo,onChange:j=>o({detailTextColor:j})}),e.jsx(M,{headerText:"Link Color"}),e.jsx(he,{label:F("Color"),colors:K,value:Lo,onChange:j=>o({detailTextLinkColor:j})}),e.jsx(M,{headerText:"Content Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:yo,fallbackFontSize:ue,onChange:j=>o({detailTextFZ:j})})]})]})]}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o})]})}const{__:Oe}=wp.i18n,{isShallowEqualObjects:va}=wp.isShallowEqual,{useState:Ca,useEffect:ja}=wp.element,{addFilter:_a,applyFilters:To}=wp.hooks,{TextControl:ka,SelectControl:uh,RangeControl:mh,ToggleControl:Ao,PanelBody:$a,Button:hh,ColorPalette:Pa}=wp.components,Sa=()=>{_a("embedpress_block_rest_param","embedpress",La,10)},La=(t,o)=>{if(!o.url)return t;let s={};Ba(o.url)&&(s={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});const l={...s};return J(t,o,l)},Ba=t=>t.match(/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i),Ta=t=>{const o={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},s=J({},t,o),[l,a]=Ca(s);return ja(()=>{const n=J(l,t,o);va(l||{},n)||a(n)},[t]),l};function Fa({attributes:t,setAttributes:o,isWistiaVideo:s}){const{wstarttime:l,wautoplay:a,scheme:n,captions:p,playbar:d,wfullscreen:f,playbutton:r,smallplaybutton:i,resumable:u,wistiafocus:c,volumecontrol:m,volume:C,rewind:y,customlogo:v,logoX:x,logoY:b,customlogoUrl:k,logoOpacity:_}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());const P=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],$=To("embedpress.togglePlaceholder",[],Oe("Captions","embedpress"),!0),w=To("embedpress.togglePlaceholder",[],Oe("Volume Control","embedpress"),!0),h=To("embedpress.rangeControlPlaceholder",[],Oe("Volume"),50,0,100,!0);return e.jsx("div",{children:s&&e.jsx("div",{className:"ep__single-yt-video-options",children:e.jsx($a,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Oe("Wistia Video Controls","embedpress")]}),initialOpen:!1,children:e.jsxs("div",{className:"ep-video-controlers",children:[e.jsx(ka,{label:Oe("Start Time (In Seconds)"),value:l,onCh
276ange:g=>o({wstarttime:g}),type:"number",className:"ep-control-field"}),e.jsx(Ao,{label:Oe("Auto Play"),checked:a,onChange:g=>o({wautoplay:g})}),e.jsx(M,{headerText:"Scheme"}),e.jsx(Pa,{label:Oe("Scheme"),colors:P,value:n,onChange:g=>o({scheme:g})}),e.jsx("hr",{}),e.jsx(Ao,{label:Oe("Fullscreen Button"),checked:f,onChange:g=>o({wfullscreen:g})}),e.jsx(Ao,{label:Oe("Small Play Button"),checked:i,onChange:g=>o({smallplaybutton:g})}),To("embedpress.wistiaControls",[$],t,o,"captions"),e.jsx(Ao,{label:Oe("Playbar"),checked:d,onChange:g=>o({playbar:g})}),To("embedpress.wistiaControls",[w],t,o,"volume"),m&&To("embedpress.wistiaControls",[h],t,o,"volumeRange")]})})})})}const{isShallowEqualObjects:Ea}=wp.isShallowEqual,{useState:Ma,useEffect:Na}=wp.element,{__:Me}=wp.i18n,{addFilter:Ua,applyFilters:Fo}=wp.hooks,{TextControl:Da,SelectControl:gh,RangeControl:fh,ToggleControl:Go,PanelBody:Ra,Button:bh,ColorPalette:Ia}=wp.components,za=()=>{Ua("embedpress_block_rest_param","embedpress",Ga,10)},Ha=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],Ga=(t,o)=>{if(!o.url)return t;let s={};Va(o.url)&&(s={vstarttime:"",vautoplay:!1,vscheme:"#00ADEF",vtitle:!0,vauthor:!0,vavatar:!0,vloop:!1,vautopause:!1,vdnt:!1});const l={...s};return J(t,o,l)},Va=t=>t.match(/https?:\/\/(www\.)?vimeo\.com\/\d+/),Oa=t=>{const o={vstarttime:null,vautoplay:null,vscheme:null,vtitle:null,vauthor:null,vavatar:null,vloop:null,vautopause:null,vdnt:null},s=J({},t,o),[l,a]=Ma(s);return Na(()=>{const n=J(l,t,o);Ea(l||{},n)||a(n)},[t]),l};function qa({attributes:t,setAttributes:o,isVimeoVideo:s}){const{vstarttime:l,vautoplay:a,vscheme:n,vtitle:p,vauthor:d,vavatar:f,vloop:r,vautopause:i,vdnt:u,customPlayer:c,customlogo:m,logoX:C,logoY:y,customlogoUrl:v,logoOpacity:x}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());const b=Fo("embedpress.togglePlaceholder",[],Me("Loop","embedpress"),!1),k=Fo("embedpress.togglePlaceholder",[],Me("Auto Paause","embedpress"),!1),_=Fo("embedpress.togglePlaceholder",[],Me("DNT","embedpress"),!1);return e.jsx("div",{children:s&&e.jsx("div",{className:"ep__vimeo-video-options",children:e.jsxs(Ra,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Me("Video Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(Go,{label:Me("Enable Custom Player","embedpress"),checked:c,onChange:P=>o({customPlayer:P})}),c?e.jsx("div",{className:"ep-video-controlers",children:e.jsx(Kt,{attributes:t,setAttributes:o,isVimeoVideo:s})}):e.jsxs("div",{className:"ep-video-controlers",children:[e.jsx(Da,{label:Me("Start Time (In Seconds)"),value:l,onChange:P=>o({vstarttime:P}),type:"number",className:"ep-control-field"}),e.jsx(Go,{label:Me("Auto Play"),checked:a,onChange:P=>o({vautoplay:P})}),e.jsx(M,{headerText:"Scheme"}),e.jsx(Ia,{label:Me("Scheme"),colors:Ha,value:n,onChange:P=>o({vscheme:P})}),e.jsx(Go,{label:Me("Title"),checked:p,onChange:P=>o({vtitle:P})}),e.jsx(Go,{label:Me("Author"),checked:d,onChange:P=>o({vauthor:P})}),e.jsx(Go,{label:Me("Avatar"),checked:f,onChange:P=>o({vavatar:P})}),Fo("embedpress.vimeoControls",[b],t,o,"loop"),Fo("embedpress.vimeoControls",[k],t,o,"autoPause"),Fo("embedpress.vimeoControls",[_],t,o,"dnt")]})]})})})}const{isShallowEqualObjects:yh}=wp.isShallowEqual,{useState:xh,useEffect:wh}=wp.element,{__:Lt}=wp.i18n,{addFilter:vh}=wp.hooks,{TextControl:Ch,SelectControl:jh,RangeControl:_h,ToggleControl:as,PanelBody:Wa,Button:kh,ColorPalette:$h}=wp.components;function Za({attributes:t,setAttributes:o}){const{url:s,vstarttime:l,vautoplay:a,vscheme:n,vtitle:p,vauthor:d,vavatar:f,vloop:r,vautopause:i,vdnt:u,customPlayer:c,customlogo:m,logoX:C,logoY:y,customlogoUrl:v,logoOpacity:x,autoPause:b}=t,k=qt(s),_=es(s);embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());let P="Video Controls";return _&&(P="Audio Controls"),e.jsx("div",{children:(qt(s)||es(s))&&e.jsx("div",{className:"ep__vimeo-video-options",children:e.jsxs(Wa,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Lt(P,"embedpress")]}),initialOpen:!1,children:[e.jsx(as,{label:Lt("Auto-Pause","embedpress"),checked:b,onChange:$=>o({autoPause:$})}),e.jsx("p",{className:"control-description",children:"Pauses other players when a new one starts."}),e.jsx(as,{label:Lt("Enable Custom Player","embedpress"),checked:c,onChange:$=>o({customPlayer:$})}),c&&e.jsx(Kt,{attributes:t,setAttributes:o,isSelfHostedVideo:k,isSelfHostedAudio:_})]})})})}const{isShallowEqualObjects:Ya}=wp.isShallowEqual,{useState:Xa,useEffect:Ja}=wp.element,{applyFilters:so}=wp.hooks,{__:Y}=wp.i18n,{addFilter:Ka}=wp.hooks,{TextControl:qe,SelectControl:Bt,RangeControl:Ph,ToggleControl:Ne,PanelBody:rs,Button:Sh,ColorPalette:Lh,PanelRow:Qa}=wp.components,Aa=()=>{Ka("embedpress_block_rest_param","embedpress",er,10)},er=(t,o)=>!o.url||!No(o.url)?t:J(t,o,{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}),or=t=>{const o={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},s=J({},t,o),[l,a]=Xa(s);return Ja(()=>{const n=J(l,t,o);Ya(l||{},n)||a(n)},[t]),l};function tr({attributes:t,setAttributes:o}){const{url:s,instaLayout:l,instafeedFeedType:a,instafeedAccountType:n,instafeedColumns:p,instafeedColumnsGap:d,instafeedPostsPerPage:f,instafeedTab:r,instafeedCommentsCount:i,instafeedLikesCount:u,instafeedPopup:c,instafeedPopupFollowBtn:m,instafeedPopupFollowBtnLabel:C,instafeedLoadmore:y,instafeedLoadmoreLabel:v,slidesShow:x,slidesScroll:b,carouselAutoplay:k,autoplaySpeed:_,transitionSpeed:P,carouselLoop:$,carouselArrows:w,carouselSpacing:h,carouselDots:g,instafeedProfileImage:E,instafeedProfileImageUrl:B,instafeedFollowBtn:N,instafeedFollowBtnLabel:T,instafeedPostsCount:S,instafeedPostsCountText:Z,instafeedFollowersCount:V,instafeedFollowersCountText:W,instafeedAccName:q}=t,H=No(s),z=L=>{o({instafeedProfileImageUrl:""})};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());const D=[{label:"Auto",value:"auto"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"}];l==="insta-carousel"&&o({instafeedLoadmore:!1});const I=so("embedpress.uploadPlaceholder",[]),ee=so("embedpress.togglePlaceholder",[],Y("Feed Tab","embedpress"),!1),O=so("embedpress.togglePlaceholder",[],Y("Likes Count","embedpress"),!1),oe=so("embedpress.togglePlaceholder",[],Y("Comments Count","embedpress"),!1);return e.jsx("div",{children:H&&e.jsxs("div",{className:"ep__instafeed-options",children:[e.jsxs(rs,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Y("Profile Settings","embedpress")]}),initialOpen:!1,children:[e.jsx(Ne,{label:Y("Profile Image","embedpress"),checked:E,onChange:L=>{o({instafeedProfileImage:L})}}),B&&e.jsxs("div",{className:"ep__custom-logo",style:{position:"relative"},children:[e.jsx("button",{title:"Remove Image",className:"ep-remove__image",type:"button",onClick:z,children:e.jsx("span",{class:"dashicon dashicons dashicons-trash"})}),e.jsx("img",{src:B,alt:"John"})]}),E&&so("embedpress.instafeedControls",[I],t,o,"profileImage"),e.jsx(Ne,{label:Y("Follow Button","embedpress"),checked:N,onChange:L=>o({instafeedFollowBtn:L}
276)}),N&&e.jsx(qe,{label:Y("Button Label","embedpress"),value:T,onChange:L=>o({instafeedFollowBtnLabel:L})}),e.jsx(Ne,{label:Y("Posts Count","embedpress"),checked:S,onChange:L=>o({instafeedPostsCount:L})}),S&&e.jsx(qe,{label:Y("Count Text","embedpress"),value:Z,onChange:L=>o({instafeedPostsCountText:L})}),n==="business"&&e.jsx(Ne,{label:Y("Followers Count","embedpress"),checked:V,onChange:L=>o({instafeedFollowersCount:L})}),V&&n==="business"&&e.jsx(qe,{label:Y("Count Text","embedpress"),value:W,onChange:L=>o({instafeedFollowersCountText:L})}),n==="business"&&e.jsx(Ne,{label:Y("Account Name","embedpress"),checked:q,onChange:L=>o({instafeedAccName:L})})]}),e.jsx(rs,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Y("Feed Settings","embedpress")]}),initialOpen:!1,children:H&&e.jsxs("div",{className:"instafeed-controls",children:[e.jsx(Bt,{label:Y("Layout"),value:l,options:[{label:"Grid",value:"insta-grid"},{label:"Masonry",value:"insta-masonry"},{label:"Carousel",value:"insta-carousel"}],onChange:L=>o({instaLayout:L}),__nextHasNoMarginBottom:!0}),l==="insta-carousel"&&e.jsx(Qa,{className:"elementor-panel-alert elementor-panel-warning-info margin-bottom-10",children:"Changes will apply in frontend."}),(l==="insta-grid"||l==="insta-masonry")&&e.jsxs("div",{children:[e.jsx(Bt,{label:Y("Columns","embedpress"),value:p,options:D,onChange:L=>o({instafeedColumns:L})}),e.jsx(qe,{label:Y("Column Gap","embedpress"),value:d,onChange:L=>o({instafeedColumnsGap:L})})]}),l==="insta-carousel"&&e.jsxs("div",{children:[e.jsx(Bt,{label:Y("Slides to Show","embedpress"),value:x,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:L=>o({slidesShow:L}),__nextHasNoMarginBottom:!0}),e.jsx(Ne,{label:Y("Autoplay","embedpress"),checked:k,onChange:L=>o({carouselAutoplay:L})}),e.jsx(qe,{label:Y("Autoplay Speed(ms)","embedpress"),value:_,onChange:L=>o({autoplaySpeed:L})}),e.jsx(qe,{label:Y("Transition Speed(ms)","embedpress"),value:P,onChange:L=>o({transitionSpeed:L})}),e.jsx(Ne,{label:Y("Loop","embedpress"),checked:$,onChange:L=>o({carouselLoop:L})}),e.jsx(qe,{label:Y("Space","embedpress"),value:h,onChange:L=>o({carouselSpacing:L})}),e.jsx(Ne,{label:Y("Arrows","embedpress"),checked:w,onChange:L=>o({carouselArrows:L})})]}),e.jsx(qe,{label:Y("Posts Per Page","embedpress"),value:f,onChange:L=>o({instafeedPostsPerPage:L})}),so("embedpress.instafeedControls",[ee],t,o,"feedTab"),(n==="business"||a==="hashtag_type")&&so("embedpress.instafeedControls",[O],t,o,"likesCount"),(n==="business"||a==="hashtag_type")&&so("embedpress.instafeedControls",[oe],t,o,"commentsCount"),e.jsx(Ne,{label:Y("Popup","embedpress"),checked:c,onChange:L=>o({instafeedPopup:L})}),c&&e.jsxs("div",{children:[e.jsx(Ne,{label:Y("Popup Follow Button","embedpress"),checked:m,onChange:L=>o({instafeedPopupFollowBtn:L})}),m&&e.jsx(qe,{label:Y("Follow Button Label","embedpress"),value:C,onChange:L=>o({instafeedPopupFollowBtnLabel:L})})]}),(l==="insta-grid"||l==="insta-masonry")&&e.jsx(Ne,{label:Y("Load More","embedpress"),checked:y,onChange:L=>o({instafeedLoadmore:L})}),y&&e.jsx(qe,{label:Y("Load More Button Label","embedpress"),value:v,onChange:L=>o({instafeedLoadmoreLabel:L})})]})})]})})}const{isShallowEqualObjects:sr}=wp.isShallowEqual,{useState:lr,useEffect:nr}=wp.element,{applyFilters:is}=wp.hooks,{__:Se}=wp.i18n,{addFilter:ar}=wp.hooks,{SelectControl:rr,RangeControl:Bh,ToggleControl:ds,TextControl:ir,PanelBody:cs,ColorPalette:Vo,FontSizePicker:Th}=wp.components,{InspectorControls:Fh}=wp.blockEditor,dr=()=>{ar("embedpress_block_rest_param","embedpress",cr,10)},cr=(t,o)=>o.url?J(t,o,{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"}):t,pr=t=>{const o={cEmbedType:null,calendlyData:null,hideCookieBanner:null,hideEventTypeDetails:null,cBackgroun
276dColor:null,cTextColor:null,cButtonLinkColor:null,cPopupButtonText:null,cPopupButtonBGColor:null,cPopupButtonTextColor:null,cPopupLinkText:null},s=J({},t,o),[l,a]=lr(s);return nr(()=>{const n=J(l,t,o);sr(l||{},n)||a(n)},[t]),l};function ur({attributes:t,setAttributes:o,isCalendly:s}){const{cEmbedType:l,calendlyData:a,hideCookieBanner:n,hideEventTypeDetails:p,cBackgroundColor:d,cTextColor:f,cButtonLinkColor:r,cPopupButtonText:i,cPopupButtonBGColor:u,cPopupButtonTextColor:c,cPopupLinkText:m}=t;embedpressGutenbergData.isProPluginActive;const C=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",b=>{document.querySelector(".pro__alert__wrap").style.display="none"})},y=b=>{const k=` 277 <div class="pro__alert__wrap" style="display: none;"> 278 <div class="pro__alert__card"> 279 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 280 <h2>Opps...</h2> 281 <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> 282 <a href="#" class="button radius-10">Close</a> 283 </div> 284 </div> 285 `,_=document.createElement("div");return _.innerHTML=k,_};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(y()),C()),Se("Small"),Se("Medium"),Se("Large");const v=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],x=is("embedpress.togglePlaceholder",[],Se("Calendly Data","embedpress"),!1);return s&&e.jsxs("div",{children:[e.jsx(cs,{title:Se("Calendly Controls"),initialOpen:!1,className:"ep-calendly-options",children:e.jsxs("div",{children:[e.jsx(rr,{label:Se("Embed Type","embedpress"),value:l,options:[{label:"Inline",value:"inline"},{label:"Popup Button",value:"popup_button"}],onChange:b=>o({cEmbedType:b})}),is("embedpress.calendlyControls",[x],t,o,"calendlyData"),a&&e.jsxs("div",{className:"ep-calendly-data-link",children:[hn,e.jsxs("a",{href:"/wp-admin/admin.php?page=embedpress&page_type=calendly",target:"_blank",children:[" ",Se("View Calendly Data","embedpress")," "]})]}),e.jsx(ds,{label:"Hide Cookie Banner",checked:n,onChange:b=>o({hideCookieBanner:b})}),e.jsx(ds,{label:"Hide Event Type Details",checked:p,onChange:b=>o({hideEventTypeDetails:b})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(Vo,{label:Se("Background Color"),colors:v,value:d,onChange:b=>o({cBackgroundColor:b})}),e.jsx(M,{headerText:"Text Color"}),e.jsx(Vo,{label:Se("Text Color"),colors:v,value:f,onChange:b=>o({cTextColor:b})}),e.jsx(M,{headerText:"Button & Link Color"}),e.jsx(Vo,{label:Se("Button & Link Color"),colors:v,value:r,onChange:b=>o({cButtonLinkColor:b})})]})}),e.jsx("div",{children:l==="popup_button"&&e.jsx(cs,{title:Se("Popup Settings"),initialOpen:!1,className:"ep-calendly-options",children:e.jsxs("div",{children:[e.jsx(ir,{label:"Button Text",value:i,onChange:b=>o({cPopupButtonText:b})}),e.jsx(M,{headerText:"Text Color"}),e.jsx(Vo,{label:Se("Text Color"),colors:v,value:c,onChange:b=>o({cPopupButtonTextColor:b})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(Vo,{label:Se("Background Color"),colors:v,value:u,onChange:b=>o({cPopupButtonBGColor:b})})]})})})]})}const{isShallowEqualObjects:mr}=wp.isShallowEqual,{useState:hr,useEffect:gr}=wp.element,{__:A}=wp.i18n,{addFilter:fr,applyFilters:lo}=wp.hooks,{TextControl:Eh,SelectControl:ps,RangeControl:Mh,ToggleControl:We,PanelBody:br,Button:Nh,ColorPalette:yr}=wp.components,xr=()=>{fr("embedpress_block_rest_param","embedpress",wr,10)},wr=(t,o)=>!o.url||!Wl(o.url)?t:J(t,o,{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}),vr=t=>{const o={theme:null,color:null,coverImageUrl:null,playlist:null,playlistContinuous:null,playlistLoop:null,playlistAutoupdate:null,chaptersImage:null,episodeImagePosition:null,hideLikes:null,hideComments:null,hideSharing:null,hideL
285ogo:null,hideEpisodeDescription:null,hidePlaylistDescriptions:null,hidePlaylistImages:null,hideDownload:null},s=J({},t,o),[l,a]=hr(s);return gr(()=>{const n=J(l,t,o);mr(l||{},n)||a(n)},[t]),l};function Cr({attributes:t,setAttributes:o}){const{url:s,theme:l,color:a,coverImageUrl:n,playlist:p,playlistContinuous:d,playlistLoop:f,playlistAutoupdate:r,chaptersImage:i,episodeImagePosition:u,hideLikes:c,hideComments:m,hideSharing:C,hideLogo:y,hideEpisodeDescription:v,hidePlaylistDescriptions:x,hidePlaylistImages:b,hideDownload:k}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());const _=[{name:"Red",color:"#FF0000"},{name:"Green",color:"#00FF00"},{name:"Blue",color:"#0000FF"},{name:"Yellow",color:"#FFFF00"},{name:"Orange",color:"#FFA500"},{name:"Purple",color:"#800080"}],P=lo("embedpress.togglePlaceholder",[],A("Disable Download","embedpress"),!1),$=lo("embedpress.togglePlaceholder",[],A("Continuous Playlist","embedpress"),!1),w=lo("embedpress.togglePlaceholder",[],A("Loop Playlist","embedpress"),!1),h=lo("embedpress.uploadPlaceholder",[]);return e.jsx("div",{children:Wl(s)&&e.jsx("div",{className:"ep__vimeo-video-options",children:e.jsxs(br,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",A("Spreaker Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(ps,{label:A("Theme","embedpress"),value:l,options:[{label:A("Light","embedpress"),value:"light"},{label:A("Dark","embedpress"),value:"dark"}],onChange:g=>o({theme:g})}),e.jsx(M,{headerText:"Main Color "}),e.jsx(yr,{colors:_,value:a,onChange:g=>o({color:g})}),e.jsx(M,{headerText:"Cover Image"}),lo("embedpress.spreakerControls",[h],t,o,"coverImage"),lo("embedpress.spreakerControls",[P],t,o,"hideDownload"),e.jsx(We,{label:A("Enable Playlist","embedpress"),help:A("This option is for podcast playlists and doesn’t affect individual episodes.","embedpress"),checked:p,onChange:g=>o({playlist:g})}),p&&e.jsxs("div",{children:[lo("embedpress.spreakerControls",[$],t,o,"playlistContinuous"),lo("embedpress.spreakerControls",[w],t,o,"playlistLoop"),e.jsx(We,{label:A("Playlist Autoupdate","embedpress"),checked:r,onChange:g=>o({playlistAutoupdate:g})}),e.jsx(We,{label:A("Hide Playlist Descriptions","embedpress"),checked:x,onChange:g=>o({hidePlaylistDescriptions:g})}),e.jsx(We,{label:A("Hide Playlist Images","embedpress"),checked:b,onChange:g=>o({hidePlaylistImages:g})})]}),e.jsx(ps,{label:A("Episode Image Position","embedpress"),value:u,options:[{label:A("Right","embedpress"),value:"right"},{label:A("Left","embedpress"),value:"left"}],onChange:g=>o({episodeImagePosition:g})}),e.jsx(We,{label:A("Show Chapters Images","embedpress"),checked:i,onChange:g=>o({chaptersImage:g}),help:A("Only applies if the podcast includes chapter images.","embedpress")}),e.jsx(We,{label:A("Hide Likes","embedpress"),checked:c,onChange:g=>o({hideLikes:g})}),e.jsx(We,{label:A("Hide Comments","embedpress"),checked:m,onChange:g=>o({hideComments:g})}),e.jsx(We,{label:A("Hide Sharing","embedpress"),checked:C,onChange:g=>o({hideSharing:g})}),e.jsx(We,{label:A("Hide Logo","embedpress"),checked:y,onChange:g=>o({hideLogo:g}),help:A("Hide the Spreaker logo and branding in the player. Requires Broadcaster plan or higher.","embedpress")}),e.jsx(We,{label:A("Hide Episode Description","embedpress"),checked:v,onChange:g=>o({hideEpisodeDescription:g})})]})})})}const{isShallowEqualObjects:jr}=wp.isShallowEqual,{useState:_r,useEffect:kr}=wp.element,{addFilter:$r}=wp.hooks,{__:$e}=wp.i18n,{TextControl:Uh,SelectControl:Pr,RangeControl:us,ToggleControl:Tt,PanelBody:Sr,ColorPalette:Lr}=wp.components,Br=()=>{$r("embedpress_block_rest_param","embedpress",Tr,10)},Tr=(t,o)=>!o.url||!wt(o.url)?t:J(t,o,{mode:"carousel",imageWidth:800,imageHeight:600,playerAutoplay:!1,delay:5,repeat:!0,mediaitemsAspectRatio:!0,mediaitemsEnlarge:!1,mediaitemsStretch:!1,mediaitemsCover:!1,backgroundColor:"",expiration:0,photos_link:!0}),Fr=t=>{const o={mode:null,imageWidth:null,imageHeight:null,playerAutoplay:null,delay:null,repeat:null,mediaitemsAspectRatio:null,mediaitemsEnlarge:null,mediaitemsStretch:null,mediaitemsCover:null,backgroundColor:null,expiration:null,photos_link:null},s=J({},t,o),[l,a]=_r(s);return kr(()=>{const n=J(l,t,o);jr(l||{},n)||a(n)},[t]),l};function Er({attributes:t,setAttributes:o}){const{url:s,mode:l,imageWidth:a,imageHeight:n,playerAutoplay:p,delay:d,repeat:f,mediaitemsAspectRatio:r,mediaitemsEnlarge:i,mediaitemsStretch:u,mediaitemsCover:c,backgroundColor:m,expiration:C,photos_link:y}=t,v=[{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=embedpressGutenbergData.isProPluginActive;let b=" (Pro)";return x&&(b=""),e.jsx("div",{children:wt(s)&&e.jsx("div",{className:"ep__google-photos-options",children:e.jsxs(Sr,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",$e("GooglePhotos Controls","embedpress")]}),initialOpen:!0,children:[e.jsx(Pr,{label:$e("Album Mode","embedpress"),value:l,options:[{label:$e("Carousel","embedpress"),value:"carousel"},{label:$e("Gallery Player","embedpress"),value:"gallery-player"},{label:$e("Grid"+b,"embedpress"),value:"gallery-grid"},{label:$e("Masonry "+b,"embedpress"),value:"gallery-masonary"},{label:$e("Justify "+b,"embedpress"),value:"gallery-justify"}],onChange:k=>{(k==="gallery-justify"||k==="gallery-grid"||k==="gallery-masonary")&&!x?uo(null,x):o({mode:k}
285)}}),l=="gallery-player"&&e.jsxs("frameElement",{children:[e.jsx(Tt,{label:$e("Autoplay","embedpress"),checked:p,onChange:k=>o({playerAutoplay:k})}),e.jsx(us,{label:$e("Delay","embedpress"),value:d,onChange:k=>o({delay:k}),min:1,max:60}),e.jsx(Tt,{label:$e("Repeat","embedpress"),checked:f,onChange:k=>o({repeat:k})})]}),l=="gallery-player"||l=="carousel"&&e.jsx(Lr,{label:$e("Background Color","embedpress"),colors:v,value:m,onChange:k=>o({backgroundColor:k})}),e.jsx(us,{label:$e("Sync after (minutes)","embedpress"),value:C,onChange:k=>o({expiration:k}),min:0,max:1440}),(l==="gallery-player"||l==="carousel")&&e.jsx(Tt,{label:$e("Enable Visit Google Photos Link","embedpress"),checked:y,onChange:k=>o({photos_link:k}),help:$e("Enable an external link icon to visit the original Google Photos album","embedpress")})]})})})}const{useState:no,useEffect:Dh,useRef:Mr}=wp.element,Nr=()=>{embedpressGutenbergData.is_embedpress_feedback_submited;const t=!!Number(embedpressGutenbergData.turn_off_rating_help),[o,s]=no(()=>localStorage.getItem("ratingClosed")==="true"),[l,a]=no(5),[n,p]=no(!1),[d,f]=no(!1),[r,i]=no(!1),[u,c]=no(0),[m,C]=no(!1),[y,v]=no("");Mr(null),embedpressGutenbergData.currentUser;const x=embedpressGutenbergData.isProPluginActive;return!t&&x?null:e.jsxs("div",{className:`plugin-rating${t?"":" turn_off_ratting_help"}`,children:[t&&!1,e.jsxs("frameElement",{children:[e.jsx("p",{children:"Need help? We're here"}),e.jsxs("a",{href:"https://embedpress.com/?support=chat",target:"_blank",className:"chat-button",children:[e.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("g",{"clip-path":"url(#a)",fill:"#fff",children:[e.jsx("path",{d:"M7.93.727H1.555C.97.727.5 1.198.5 1.782V6c0 .584.471 1.055 1.055 1.055h.351V8.11c0 .254.263.438.52.31.008-.008.022-.008.029-.015 1.934-1.297 1.5-1.008 1.933-1.294a.35.35 0 0 1 .19-.056H7.93c.583 0 1.054-.47 1.054-1.055V1.782c0-.584-.47-1.055-1.054-1.055M5.117 4.946h-2.86c-.463 0-.465-.703 0-.703h2.86c.464 0 .466.703 0 .703m2.11-1.406h-4.97c-.463 0-.465-.704 0-.704h4.97c.463 0 .465.704 0 .704"}),e.jsx("path",{d:"M11.445 3.54H9.687V6c0 .97-.787 1.758-1.757 1.758H4.684l-.668.443v.612c0 .584.47 1.055 1.054 1.055h3.457l2.018 1.35c.276.153.549-.033.549-.296V9.868h.351c.584 0 1.055-.471 1.055-1.055V4.594c0-.583-.471-1.054-1.055-1.054"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{fill:"#fff",d:"M.5 0h12v12H.5z"})})})]}),"Let’s Chat"]})]}),!x&&e.jsxs("div",{className:"upgrade-box",children:[e.jsx("h5",{children:"Want to explore more?"}),e.jsx("p",{children:"Dive in and discover all the premium features"}),e.jsx("a",{href:"https://embedpress.com/#pricing",target:"_blank",className:"upgrade-link",children:"Upgrade to PRO"})]})]})},{useRef:Ur}=wp.element,{applyFilters:Dr}=wp.hooks,{__:ao}=wp.i18n,{TextControl:ms,NumberControl:Rh,PanelBody:Rr,SelectControl:Ft,ToggleControl:Ih,PanelRow:hs}=wp.components,{InspectorControls:Ir}=wp.blockEditor;function zr({attributes:t,setAttributes:o,isYTChannel:s,isYTVideo:l,isYTLive:a,isYTShorts:n,isOpensea:p,isOpenseaSingle:d,isWistiaVideo:f,isVimeoVideo:r,isSelfHostedVideo:i,isSelfHostedAudio:u,isCalendly:c,isTikTok:m,isSpreaker:C}){const{url:y,width:v,height:x,videosize:b,instaLayout:k,instafeedFeedType:_,instafeedAccountType:P,slidesShow:$,slidesScroll:w,carouselAutoplay:h,autoplaySpeed:g,transitionSpeed:E,carouselLoop:B,carouselArrows:N,carouselSpacing:T,lockContent:S,contentPassword:Z,editingURL:V,embedHTML:W,mode:q}=t,H=embedpressGutenbergData.isProPluginActive;Ur(null);const z=D=>Math.round(D/5)*5;return document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt()),(l||a||r)&&v==="600"&&x==="600"&&o({height:"340"}),u&&o({height:"48"}),c&&v==="600"&&x==="600"&&o({height:"950"}),m&&v==="600"&&x==="600"&&(o({width:"350"}),o({height:"580"})),Ot(y)&&v==="600"&&(o({instafeedFeedType:"hashtag_type"}),o({width:"900"}
285)),!V&&W&&e.jsxs(Ir,{children:[!p&&!d&&e.jsxs("div",{className:"embedpress-gutenberg-controls",children:[e.jsxs(Rr,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",ao("General","embedpress")]}),children:[e.jsxs("div",{className:"ep-controls-margin",children:[No(y)&&e.jsx(hs,{children:e.jsxs("div",{style:{marginBottom:"10px",backgroundColor:"#ebe4ff",padding:"8px",borderRadius:"8px",fontWeight:500},className:"elementor-panel-alert elementor-panel-warning-info",children:["To enable full Instagram embedding experience, please add your access token ",e.jsx("a",{href:"/wp-admin/admin.php?page=embedpress&page_type=instagram",target:"_blank",children:"here"}),"."]})}),a&&e.jsxs("p",{className:"ep-live-video-info",children:[mn," ","The most recent live video will be seen."]}),(l||r||a||i)&&e.jsx(Ft,{label:ao("Video Size"),labelPosition:"side",value:b,options:[{label:"Fixed",value:"fixed"},{label:"Responsive",value:"responsive"}],onChange:D=>o({videosize:D}),__nextHasNoMarginBottom:!0}),(!l&&!a&&!r&&!i||b=="fixed")&&e.jsx("p",{children:ao("You can adjust the width and height of embedded content.")}),(l||r||a||i)&&b=="responsive"&&e.jsx("p",{children:ao("You can adjust the width of embedded content.","embedpress")}),e.jsx(ms,{label:ao("Width"),value:v,onChange:D=>{o(r||l||a||i||s?{width:`${Math.round(D)}`,height:`${z(Math.round(D*9/16))}`}:{width:D})}}),!wt(y)&&!No(y)&&!Ot(y)&&(!l&&!r&&!a&&!i&&!s||b=="fixed")||wt(y)&&(q==="carousel"||q==="gallery-player")?e.jsx(ms,{label:ao("Height"),value:x,onChange:D=>{o(r||l||a||i||s?{height:`${Math.round(D)}`,width:`${z(Math.round(D*16/9))}`}:{height:D})}}):null,l&&e.jsxs("div",{className:"ep-tips-and-tricks",children:[G,e.jsxs("a",{href:"#",target:"_blank",onClick:D=>{D.preventDefault(),Ol()},children:[" ",ao("Tips & Tricks","embedpress")," "]})]})]}),!a&&!n&&e.jsx($t,{attributes:t,setAttributes:o,isYTChannel:s}),No(y)&&e.jsxs("div",{children:[e.jsx(Ft,{label:"Feed Type",value:_,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:D=>o({instafeedFeedType:D})}),!H&&_==="hashtag_type"&&e.jsx(hs,{className:"elementor-panel-alert elementor-panel-warning-info",children:e.jsx("a",{style:{color:"red"},target:"_blank",href:"https://wpdeveloper.com/in/upgrade-embedpress",children:ao("Only Available in Pro Version!","embedpress")})}),_==="user_account_type"&&e.jsx(Ft,{label:"Account Type",value:P,options:[{label:"Personal",value:"personal"},{label:"Business",value:"business"}],onChange:D=>o({instafeedAccountType:D})}),_==="hashtag_type"&&Dr("embedpress.commonControls",[],t,o,"warningInfo")]})]}),e.jsx(tr,{attributes:t,setAttributes:o}),e.jsx($t,{attributes:t,setAttributes:o,isYTVideo:l,isYTLive:a,isYTShorts:n}),e.jsx($t,{attributes:t,setAttributes:o}),e.jsx(Za,{attributes:t,setAttributes:o}),e.jsx(Cr,{attributes:t,setAttributes:o}),e.jsx(Fa,{attributes:t,setAttributes:o,isWistiaVideo:f}),e.jsx(qa,{attributes:t,setAttributes:o,isVimeoVideo:r}),e.jsx(ur,{attributes:t,setAttributes:o,isCalendly:c}),e.jsx(Er,{attributes:t,setAttributes:o}),e.jsx(An,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o})]}),e.jsx(wa,{attributes:t,setAttributes:o,isOpensea:p,isOpenseaSingle:d}),e.jsx(Nr,{})]})}const{__:Hr}=wp.i18n,{Fragment:Gr}=wp.element,{Button:Vr,Toolbar:Or}=wp.components,{BlockControls:qr}=wp.blockEditor,Fe=t=>{const{showEditButton:o,switchBackToURLInput:s}=t;return e.jsx(Gr,{children:e.jsx(qr,{children:e.jsx(Or,{children:o&&e.jsx(Vr,{className:"components-toolbar__control",label:Hr("Edit URL"),icon:"edit",onClick:s})})})})},{__:Wr}=wp.i18n,{Spinner:Zr}=wp.components,Le=()=>e.jsxs("div",{className:"wp-block-embed is-loading text-center",children:[e.jsx(Zr,{}),e.jsx("p",{children:Wr("Embedding…")})]});var Al={exports:{}};/*! 286 Copyright (c) 2018 Jed Watson. 287 Licensed under the MIT License (MIT), see 288 http://jedwatson.github.io/classnames 289*/(function(t){(function(){var o={}.hasOwnProperty;function s(){for(var n="",p=0;p<arguments.length;p++){var d=arguments[p];d&&(n=a(n,l(d)))}return n}function l(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return s.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var p="";for(var d in n)o.call(n,d)&&n[d]&&(p=a(p,d));return p}function a(n,p){return p?n?n+" "+p:n+p:n}
289t.exports?(s.default=s,t.exports=s):window.classNames=s})()})(Al);var Yr=Al.exports;const Xr=wl(Yr),{__:gs,_x:Jr}=wp.i18n,{Button:Kr,Placeholder:Qr,ExternalLink:Ar}=wp.components,{BlockIcon:ei}=wp.blockEditor,Ie=t=>{const{icon:o,label:s,value:l,onSubmit:a,onChange:n,cannotEmbed:p,docLink:d,DocTitle:f}=t,r=Xr("wp-block-embed",{});return e.jsx("div",{className:"ep__components-placeholder",children:e.jsxs(Qr,{icon:e.jsx(ei,{icon:o,showColors:!0}),label:s,className:r,children:[e.jsxs("form",{onSubmit:a,children:[e.jsx("input",{type:"url",value:l||"",className:"components-placeholder__input","aria-label":s,placeholder:gs("Enter URL to embed here…"),onChange:n}),e.jsx(Kr,{isSmall:!0,type:"submit",children:Jr("Embed","button label")}),p&&e.jsxs("p",{className:"components-placeholder__error",children:[gs("Sorry, we could not embed that content."),e.jsx("br",{})]})]}),d&&e.jsx("div",{className:"components-placeholder__learn-more",children:e.jsx(Ar,{href:d,children:f})})]})})},{Component:oi}=wp.element;class ti extends oi{constructor(o){super(o),this.myRef=React.createRef()}componentDidMount(){vl.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}render(){return e.jsx("div",{className:this.props.className,ref:this.myRef,...this.props})}}const fs=t=>{if(!t)return"";const o=[{regex:/(?:youtube\.com|youtu\.be)/i,provider:"YouTube"},{regex:/vimeo\.com/i,provider:"Vimeo"},{regex:/wistia\.(?:com|net)/i,provider:"Wistia"},{regex:/twitch\.tv/i,provider:"Twitch"},{regex:/dailymotion\.com/i,provider:"Dailymotion"},{regex:/docs\.google\.com/i,provider:"Google Docs"},{regex:/sheets\.google\.com/i,provider:"Google Sheets"},{regex:/slides\.google\.com/i,provider:"Google Slides"},{regex:/forms\.google\.com/i,provider:"Google Forms"},{regex:/drive\.google\.com/i,provider:"Google Drive"},{regex:/(?:maps\.google\.com|goo\.gl)/i,provider:"Google Maps"},{regex:/(?:photos\.google\.com|photos\.app\.goo\.gl)/i,provider:"Google Photos"},{regex:/instagram\.com/i,provider:"Instagram"},{regex:/(?:twitter\.com|x\.com)/i,provider:"Twitter"},{regex:/linkedin\.com/i,provider:"LinkedIn"},{regex:/facebook\.com/i,provider:"Facebook"},{regex:/soundcloud\.com/i,provider:"SoundCloud"},{regex:/spotify\.com/i,provider:"Spotify"},{regex:/spreaker\.com/i,provider:"Spreaker"},{regex:/boomplay\.com/i,provider:"Boomplay"},{regex:/calendly\.com/i,provider:"Calendly"},{regex:/airtable\.com/i,provider:"Airtable"},{regex:/canva\.com/i,provider:"Canva"},{regex:/github\.com/i,provider:"GitHub"},{regex:/opensea\.io/i,provider:"OpenSea"},{regex:/gumroad\.com/i,provider:"Gumroad"},{regex:/giphy\.com/i,provider:"GIPHY"},{regex:/(?:radio\.nrk\.no|nrk\.no)/i,provider:"NRK Radio"},{regex:/\.pdf$/i,provider:"PDF Document"}];for(const{regex:l,provider:a}of o)if(l.test(t))return a;const s=t.match(/https?:\/\/(?:www\.)?([^.\/]+)\.(?:com|net|org|io|tv|co|fm|ly)/i);if(s!=null&&s[1]){const l=s[1];return l.charAt(0).toUpperCase()+l.slice(1)}return""},{__:bs}=wp.i18n,{Fragment:si,useEffect:ro}=wp.element,{useBlockProps:li}=wp.blockEditor,{apiFetch:ni}=wp,{applyFilters:ys}=wp.hooks;Pn();function ai(t){const{attributes:o,setAttributes:s,clientId:l}=t,{url:a,editingURL:n,fetching:p,cannotEmbed:d,interactive:f,embedHTML:r,height:i,width:u,contentShare:c,sharePosition:m,lockContent:C,customlogo:y,logoX:v,logoY:x,customlogoUrl:b,logoOpacity:k,customPlayer:_,playerPreset:P,adManager:$,adSource:w,adFileUrl:h,adWidth:g,adHeight:E,adXPosition:B,adYPosition:N,shareFacebook:T,shareTwitter:S,sharePinterest:Z,shareLinkedin:V,instaLayout:W,cEmbedType:q,cPopupButtonText:H,cPopupButtonBGColor:z,cPopupButtonTextColor:D,coverImageUrl:I,playlist:ee}=o;ro(()=>{(!o.clientId||o.clientId!==l)&&s({clientId:l})},[l,o.clientId,s]),ro(()=>{if(a&&(!o.providerName||o.providerName==="")){let X=fs(a);if(!X){const Pe=a.match(/https?:\/\/(?:www\.)?([^.\/]+)\.(?:com|net|org|io|tv|co|fm|ly)/i);if(Pe!=null&&Pe[1]){const _e=Pe[1];X=_e.charAt(0).toUpperCase()+_e.slice(1)}}X&&s({providerName:X})}},[a,o.providerName,s]);const O=_o(o.clientId||l),oe=zt(a),L=Ht(a),fe=yt(a),le=Gt(a),be=xt(a),ne=Rl(a),ae=Il(a),re=zl(a),ce=Hl(a),pe=Vt(a),ye=Gl(a),U=Sn(a),fo=Ln(a),ve=Bn(a),He
289=Tn(a),Xe=xa(o),{youtubeParams:Zo}=ra(o,a),bo=Ta(o),ko=Kl(o),$o=Ql(o),Po=Oa(o),So=or(o),Yo=pr(o),Lo=vr(o),yo=Fr(o);ro(()=>{if(typeof window.embedpressGutenbergData<"u"&&!y){const X=window.embedpressGutenbergData;a.includes("youtube.com")||a.includes("youtu.be")?s({customlogo:X.youtube_brand_logo_url||""}):a.includes("vimeo.com")?s({customlogo:X.vimeo_brand_logo_url||""}):a.includes("wistia.com")?s({customlogo:X.wistia_brand_logo_url||""}):a.includes("twitch.com")?s({customlogo:X.twitch_brand_logo_url||""}):a.includes("dailymotion.com")&&s({customlogo:X.dailymotion_brand_logo_url||""})}},[a,y]),ro(()=>{ve&&!I&&!ee&&s({height:"200"}),ve&&ee&&s({height:"450"})},[a,I,ee,ve,s]),ro(()=>{(le||be||oe||ae||re)&&n&&s({height:"340"})},[a,n,le,be,oe,ae,re,s]);let xo="",wo="",ie=m||"right";c&&(xo="ep-content-share-enabled",wo="ep-share-position-"+ie);let K="";_&&(K=P||"preset-default");let ue="";fe&&(ue="embedded-youtube-channel");let Ae="";ce&&(Ae=W);let Q="";(pe||ye)&&(Q=" source-opensea");let xe="";if(q==="popup_button"){let X=D,Pe=z;D&&!D.startsWith("#")&&(X="#"+D,s({cPopupButtonTextColor:X})),z&&!z.startsWith("#")&&(Pe="#"+z,s({cPopupButtonBGColor:Pe})),xe=` 290 <div class="cbutton-preview-wrapper" style="margin-top:-${i}px"> 291 <h4 class="cbutton-preview-text">Preview Popup Button</h4> 292 <div style="position: static" class="calendly-badge-widget"> 293 <div class="calendly-badge-content" style="color: ${X}; background: ${Pe};"> 294 ${H} 295 </div> 296 </div> 297 </div> 298 `}let Ee="";re&&(Ee="<span class='ep-wistia-message'> Changes will be affected in frontend. </span>");let Bo="";c&&(Bo=ql(m,T,S,Z,V));const Io=ys("embedpress.customLogoComponent","",o);function Xo(){s({editingURL:!0})}function j(){if(!r)return;let X=r.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);X=[...X];for(const Pe of X)if(Pe&&typeof Pe[1]<"u"){const _e=Pe[1],Ge=_o(_e),oo=document.getElementById(Ge);oo&&oo.remove();const to=document.createElement("script");to.type="text/javascript",to.setAttribute("id",Ge),to.setAttribute("src",_e),document.body.appendChild(to)}}function zo(X){X&&X.preventDefault(),a?(s({fetching:!0}),(async _e=>{let Ge={url:_e,width:u,height:i};Ge=ys("embedpress_block_rest_param",Ge,o);const un={url:`${(window.embedpressGutenbergData||{}).siteUrl||window.location.origin}/wp-json/embedpress/v1/oembed/embedpress`,method:"POST",data:Ge};return await ni(un).then(Ct=>Ct).catch(Ct=>(console.error("EmbedPress API Error:",Ct),{error:!0}))})(a).then(_e=>{if(s({fetching:!1}),_e.data&&_e.data.status===404||!_e.embed||_e.error)s({cannotEmbed:!0,editingURL:!0});else{let Ge=_e.provider_name||fs(a);if(!Ge){const oo=a.match(/https?:\/\/(?:www\.)?([^.\/]+)\.(?:com|net|org|io|tv|co|fm|ly)/i);if(oo!=null&&oo[1]){const to=oo[1];Ge=to.charAt(0).toUpperCase()+to.slice(1)}}s({embedHTML:_e.embed,cannotEmbed:!1,editingURL:!1,providerName:Ge||""}),j()}})):s({cannotEmbed:!0,fetching:!1,editingURL:!0}),o.clientId&&a&&kn(o.clientId,a),_&&At(O,o),W==="insta-carousel"&&Fn(O,o)}ro(()=>{r&&!n&&!p&&j()},[r,n,p]),ro(()=>{if(r&&!n&&!p&&_&&o.clientId){const X=setTimeout(()=>{At(O,o)},300);return()=>clearTimeout(X)}},[O,_,r,n,p]),ro(()=>{const X=setTimeout(()=>{(!r||n)&&!p||zo()},1500);return()=>{clearTimeout(X)}},[Xe,Zo,ko,$o,bo,Po,So,Yo,c,C,Lo,yo]);const eo=li();return e.jsxs(si,{children:[e.jsx(zr,{attributes:o,setAttributes:s,isYTChannel:fe,isYTVideo:le,isYTLive:be,isYTShorts:ne,isOpensea:pe,isOpenseaSingle:ye,isWistiaVideo:re,isVimeoVideo:ae,isSelfHostedVideo:oe,isSelfHostedAudio:L,isCalendly:U,isTikTok:fo,isSpreaker:ve,isGooglePhotos:He}),(!r||!!n)&&!p&&e.jsx("div",{...eo,children:e.jsx(Ie,{label:bs("EmbedPress - Embed anything from 150+ sites","embedpress"),onSubmit:zo,value:a,cannotEmbed:d,onChange:X=>s({url:X.target.value}),icon:G,DocTitle:bs("Learn more about EmbedPress","embedpress"),docLink:"https://embedpress.com/docs/"})}),(!pe||!!n||n===0)&&(!ye||!!n||n===0)&&(!le&&!be&&!ne||!!n||n===0)&&(!fe||!!n||n===0)&&(!re||!!n||n===0)&&(!ae||!!n||n===0)&&(!U||!!n||n===0)&&(!ce||!!n||n===0)&&(!ve||!!n||n===0)&&(!He||!!n||n===0)&&p&&e.jsx("div",{className:eo.className,children:e.jsx(Le,{})}),r&&!n&&(!p||pe||ye||fe||le||ne||re||ae||U||ce||ve||He)&&e.jsx("figure",{...eo,"data-source-id":"source-"+o.clientId,children:e.jsxs("div",{className:`gutenberg-block-wraper ${xo} ${wo}${Q}`,children:[e.jsx(ti,{className:`position-${ie}-wraper ep-embed-content-wraper ${ue} ${K} ${Ae}`,style:{display:p&&!pe&&!ye&&!fe&&!le&&!be&&!ne&&!re&&!ae&&!U&&!ce&&!He?"none":pe||ye?"block":"inl
298ine-block",position:"relative"},..._?{"data-playerid":_o(o.clientId)}:{},..._?{"data-options":Ul({attributes:o})}:{},...W==="insta-carousel"?{"data-carouselid":_o(o.clientId)}:{},...W==="insta-carousel"?{"data-carousel-options":Dl({attributes:o})}:{},dangerouslySetInnerHTML:{__html:r+Io+Ee+Bo+xe}}),$&&w==="image"&&h&&e.jsx("div",{className:"main-ad-template",style:{position:"absolute",bottom:`${N}%`,left:`${B}%`,width:`${g}px`,height:`${E}px`,backgroundImage:`url(${h})`,backgroundSize:"cover",backgroundPosition:"center",zIndex:10},children:e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx("img",{src:h,alt:"Advertisement",style:{width:"100%",height:"100%",objectFit:"cover"}})})}),p&&e.jsx("div",{style:{filter:"grayscale(1)",backgroundColor:"#fffafa",opacity:"0.7"},className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),!pe&&!ye&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),e.jsx(Fe,{showEditButton:r&&!d,switchBackToURLInput:Xo})]})}),e.jsx(Vl,{attributes:o}),$&&w==="image"&&e.jsx("style",{children:` 299 [data-source-id="source-${o.clientId}"] .main-ad-template div, 300 .main-ad-template div img { 301 height: 100%; 302 } 303 [data-source-id="source-${o.clientId}"] .main-ad-template { 304 position: absolute; 305 bottom: ${N}%; 306 left: ${B}%; 307 } 308 `})]})}const ri="https://schemas.wp.org/trunk/block.json",ii="EmbedPress",di="embedpress/embedpress",ci="embedpress",pi="Embed content from 150+ providers with advanced customization options including YouTube, Vimeo, Google Docs, social media, and more.",ui=3,mi="embedpress",hi="embedpress-blocks-editor",gi="embedpress-blocks-editor-style",fi="embedpress-blocks-style",bi={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},yi={$schema:ri,title:ii,name:di,category:ci,description:pi,apiVersion:ui,textdomain:mi,editorScript:hi,editorStyle:gi,style:fi,supports:bi},xi={clientId:{type:"string"},url:{type:"string",default:""},providerName:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"600"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:!0},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"},customPlayer:{type:"boolean",default:!1},playerPreset:{type:"string",default:"preset-default"},playerColor:{type:"string",default:"#5b4e96"},autoPause:{type:"boolean",default:!1},posterThumbnail:{type:"string",default:""},playerPip:{type:"boolean",default:!0},playerRestart:{type:"boolean",default:!0},playerRewind:{type:"boolean",default:!1},playerFastForward:{type:"boolean",default:!1},playerTooltip:{type:"boolean",default:!0},playerHideControls:{type:"boolean",default:!1},playerDownload:{type:"boolean",default:!0},pVolume:{type:"number",default:1},playbackSpeed:{type:"number",default:1},showProgress:{type:"boolean",default:!0},showCurrentTime:{type:"boolean",default:!0},showDuration:{type:"boolean",default:!0},showMute:{type:"boolean",default:!0},showVolume:{type:"boolean",default:!0},showCaptions:{type:"boolean",default:!0},showFullscreen:{type:"boolean",default:!0},showPictureInPicture:{type:"boolean",default:!0},showSettings:{type:"boolean",default:!0},showPlaybackSpeed:{type:"boolean",default:!0},showRestart:{type:"boolean",default:!0},showSeek:{type:"boolean",default:!0},showLoop:{type:"boolean",default:!0},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},videosize:{type:"string",default:"fixed"},starttime:{type:"string"},endtime:{type:"string"},autoplay:{type:"boolean",default:!1},muteVideo:{type:"boolean",default:!0},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},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},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},instafeedFeedType:{type:"string",default:"user_account_type"},instafeedAccountType:{type:"string",default:"personal"},instafeedProfileImage:{type:"boolean",default:!0},instafeedProfileImageUrl:{type:"string",default:""},instafeedFollowBtn:{type:"boolean",default:!0},instafeedFollowBtnLabel:{type:"string",default:"Follow"},instafeedPostsCount:{type:"boolean",default:!0},instafeedPostsCountText:{type:"string",default:"[count] posts"},instafeedFollowersCount:{type:"boolean",default:!0},instafeedFollowersCountText:{type:"string",default:"[count] followers"},instafeedAccName:{type:"boolean",default:!0},instaLayout:{type:"string",default:"insta-grid"},instafeedColumns:{type:"string",default:"3"},instafeedColumnsGap:{type:"string",default:"5"},instafeedPostsPerPage:{type:"string",default:"12"},instafeedTab:{type:"boolean",default:!0},instafeedLikesCount:{type:"boolean",default:!0},instafeedCommentsCount:{type:"boolean",default:!0},instafeedPopup:{type:"boolean",default:!0},instafeedPopupFollowBtn:{type:"boolean",default:!0},instafeedPopupFollowBtnLabel:{type:"string",default:"Follow"},instafeedLoadmore:{type:"boolean",default:!0},instafeedLoadmoreLabel:{type:"string",default:"Load More"},slidesShow:{type:"string",default:"4"},slidesScroll:{type:"string",default:"4"},carouselAutoplay:{type:"boolean",default:!1},autoplaySpeed:{type:"string",default:"3000"},transitionSpeed:{type:"string",default:"1000"},carouselLoop:{type:"boolean",default:!0},carouselArrows:{type:"boolean",default:!0},carouselSpacing:{type:"string",default:"0"},carouselDots:{type:"boolean",default:!1},cEmbedType:{type:"string",default:"inline"},calendlyData:{type:"boolean",default:!1},hideCookieBanner:{type:"boolean",default:!1},hideEventTypeDetails:{type:"boolean",default:!1}
308,cBackgroundColor:{type:"string",default:"ffffff"},cTextColor:{type:"string",default:"1A1A1A"},cButtonLinkColor:{type:"string",default:"0000FF"},cPopupButtonText:{type:"string",default:"Schedule time with me"},cPopupButtonBGColor:{type:"string",default:"0000FF"},cPopupButtonTextColor:{type:"string",default:"FFFFFF"},cPopupLinkText:{type:"string",default:"Schedule time with me"},theme:{type:"string",default:"light"},color:{type:"string",default:""},coverImageUrl:{type:"string",default:""},playlist:{type:"boolean",default:!1},playlistContinuous:{type:"boolean",default:!1},playlistLoop:{type:"boolean",default:!1},playlistAutoupdate:{type:"boolean",default:!0},chaptersImage:{type:"boolean",default:!0},episodeImagePosition:{type:"string",default:"right"},hideLikes:{type:"boolean",default:!1},hideComments:{type:"boolean",default:!1},hideSharing:{type:"boolean",default:!1},hideLogo:{type:"boolean",default:!1},hideEpisodeDescription:{type:"boolean",default:!1},hidePlaylistDescriptions:{type:"boolean",default:!1},hidePlaylistImages:{type:"boolean",default:!1},hideDownload:{type:"boolean",default:!1},mode:{type:"string",default:"carousel"},imageWidth:{type:"number",default:800},imageHeight:{type:"number",default:600},playerAutoplay:{type:"boolean",default:!1},delay:{type:"number",default:5},repeat:{type:"boolean",default:!0},mediaitemsAspectRatio:{type:"boolean",default:!0},mediaitemsEnlarge:{type:"boolean",default:!1},mediaitemsStretch:{type:"boolean",default:!1},mediaitemsCover:{type:"boolean",default:!1},backgroundColor:{type:"string",default:"#000000"},expiration:{type:"number",default:60},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"}
308,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"},customlogo:{type:"string",default:""},logoX:{type:"number",default:5},logoY:{type:"number",default:10},customlogoUrl:{type:"string"},logoOpacity:{type:"number",default:.6},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},shareFacebook:{type:"boolean",default:!0},shareTwitter:{type:"boolean",default:!0},sharePinterest:{type:"boolean",default:!0},shareLinkedin:{type:"boolean",default:!0},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:10},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"},lockContent:{type:"boolean",default:!1},protectionType:{type:"string",default:"password"},userRole:{type:"array",default:[]},protectionMessage:{type:"string",default:"You do not have access to this content. Only users with the following roles can view it: [user_roles]"},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."}},{registerBlockType:wi}=wp.blocks,Wo=(t,o)=>{typeof embedpressGutenbergData<"u"&&embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks.embedpress||typeof embedpressGutenbergData>"u"||typeof embedpressGutenbergData<"u"&&!embedpressGutenbergData.activeBlocks?wi(t.name,{...t,...o}):console.warn("EmbedPress: Block not registered - disabled in settings",t.name)},{__:io}=wp.i18n;Wo(yi,{icon:G,attributes:xi,keywords:[io("embed","embedpress"),io("embedpress","embedpress"),io("video","embedpress"),io("social","embedpress"),io("youtube","embedpress"),io("vimeo","embedpress"),io("google docs","embedpress"),io("pdf","embedpress")],edit:ai,save:In});Aa();la();fa();Sa();za();dr();xr();Br();const{Fragment:zh}=wp.element;function go({attributes:t}){const{sharePosition:o,shareFacebook:s,shareTwitter:l,sharePinterest:a,shareLinkedin:n,pageUrl:p,customTitle:d="",customDescription:f="",customThumbnail:r=""}=t,i=encodeURIComponent(p||window.location.href),u=encodeURIComponent(d),c=encodeURIComponent(f),m=encodeURIComponent(r),C=`https://www.facebook.com/sharer/sharer.php?u=${i}`,y=`https://twitter.com/intent/tweet?url=${i}&text=${u}`,v=`http://pinterest.com/pin/create/button/?url=${i}&media=${m}&description=${c}`,x=`https://www.linkedin.com/shareArticle?mini=true&url=${i}`;return e.jsxs("div",{className:`ep-social-share share-position-${o}`,children:[s!==!1&&e.jsx("a",{href:C,className:"ep-social-icon facebook",target:"_blank",rel:"noopener noreferrer",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 -6 512 512",children:e.jsxs("g",{children:[e.jsx("path",{fill:"#475a96",d:"M0 0h512v500H0z"}),e.jsx("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"})]})})}),l!==!1&&e.jsx("a",{href:y,className:"ep-social-icon twitter",target:"_blank",rel:"noopener noreferrer",children:e.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",fill:"#fff",class:"r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-lrvibr r-m6rgpd r-lrsllp r-1nao33i r-16y2uox r-8kz0gk",children:e.jsx("g",{children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})}),a!==!1&&e.jsx("a",{href:v,className:"ep-social-icon pinterest",target:"_blank",rel:"noopener noreferrer",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1200",height:"800",viewBox:"-36.42 -60.8 315.641 364.8",children:e.jsx("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"})})}),n!==!1&&e.jsx("a",{href:x,className:"ep-social-icon linkedin",target:"_blank",rel:"noopener noreferrer",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"#fff",version:"1.1",viewBox:"0 0 310 310",xmlSpace:"preserve",children:e.jsxs("g",{children:[e.jsx("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"}),e.jsx("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"}),e.jsx("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"})]})})})]})}
308const{useState:co,useEffect:Hh,useRef:vi}=wp.element,ze=()=>{embedpressGutenbergData.is_embedpress_feedback_submited;const t=!!Number(embedpressGutenbergData.turn_off_rating_help),[o,s]=co(()=>localStorage.getItem("ratingClosed")==="true"),[l,a]=co(5),[n,p]=co(!1),[d,f]=co(!1),[r,i]=co(!1),[u,c]=co(0),[m,C]=co(!1),[y,v]=co("");vi(null),embedpressGutenbergData.currentUser;const x=embedpressGutenbergData.isProPluginActive;return!t&&x?null:e.jsxs("div",{className:`plugin-rating${t?"":" turn_off_ratting_help"}`,children:[t&&!1,e.jsxs("frameElement",{children:[e.jsx("p",{children:"Need help? We're here"}),e.jsxs("a",{href:"https://embedpress.com/?support=chat",target:"_blank",className:"chat-button",children:[e.jsxs("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("g",{"clip-path":"url(#a)",fill:"#fff",children:[e.jsx("path",{d:"M7.93.727H1.555C.97.727.5 1.198.5 1.782V6c0 .584.471 1.055 1.055 1.055h.351V8.11c0 .254.263.438.52.31.008-.008.022-.008.029-.015 1.934-1.297 1.5-1.008 1.933-1.294a.35.35 0 0 1 .19-.056H7.93c.583 0 1.054-.47 1.054-1.055V1.782c0-.584-.47-1.055-1.054-1.055M5.117 4.946h-2.86c-.463 0-.465-.703 0-.703h2.86c.464 0 .466.703 0 .703m2.11-1.406h-4.97c-.463 0-.465-.704 0-.704h4.97c.463 0 .465.704 0 .704"}),e.jsx("path",{d:"M11.445 3.54H9.687V6c0 .97-.787 1.758-1.757 1.758H4.684l-.668.443v.612c0 .584.47 1.055 1.054 1.055h3.457l2.018 1.35c.276.153.549-.033.549-.296V9.868h.351c.584 0 1.055-.471 1.055-1.055V4.594c0-.583-.471-1.054-1.055-1.054"})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"a",children:e.jsx("path",{fill:"#fff",d:"M.5 0h12v12H.5z"})})})]}),"Let’s Chat"]})]}),!x&&e.jsxs("div",{className:"upgrade-box",children:[e.jsx("h5",{children:"Want to explore more?"}),e.jsx("p",{children:"Dive in and discover all the premium features"}),e.jsx("a",{href:"https://embedpress.com/#pricing",target:"_blank",className:"upgrade-link",children:"Upgrade to PRO"})]})]})},{__:Ci}=wp.i18n,{applyFilters:xs}=wp.hooks,{TextControl:Gh,RangeControl:Vh,PanelBody:ji,Button:Oh}=wp.components,{MediaUpload:qh}=wp.blockEditor;function en({attributes:t,setAttributes:o}){const{customlogo:s,logoX:l,logoY:a,customlogoUrl:n,logoOpacity:p}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());const d=xs("embedpress.uploadPlaceholder",[]);return e.jsx(ji,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Ci("Custom Branding","embedpress")]}),initialOpen:!1,children:xs("embedpress.customLogoSettings",[d],t,o)})}const{__:po}=wp.i18n,{Fragment:_i}=wp.element,{applyFilters:et}=wp.hooks,{PanelBody:ki,ToggleControl:Et,SelectControl:ws,TextControl:$i,ColorPalette:Pi}=wp.components,Si=({attributes:t,setAttributes:o})=>{const{docViewer:s,themeMode:l,customColor:a,presentation:n,position:p,download:d,draw:f,toolbar:r,copy_text:i,doc_rotation:u,powered_by:c,href:m}=t;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),De());const C=[{name:"",color:"#823535"},{name:"",color:"#008000"},{name:"",color:"#403A81"},{name:"",color:"#333333"},{name:"",color:"#000264"}],y=et("embedpress.togglePlaceholder",[],po("Toolbar","embedpress"),!0),v=et("embedpress.togglePlaceholder",[],po("Print/Download","embedpress"),!0);return e.jsxs(ki,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",po("Document Controls","embedpress")]}),initialOpen:!1,children:[e.jsx($i,{label:po("Document URL","embedpress"),type:"text",value:m||"",onChange:x=>o({href:x})}),e.jsx(ws,{label:"Viewer",value:s,options:[{label:"Custom",value:"custom"},{label:"MS Office",value:"office"},{label:"Google",value:"google"}],onChange:x=>o({docViewer:x}),__nextHasNoMarginBottom:!0}),s==="custom"&&e.jsx(ws,{label:"Theme",value:l,options:[{label:"System Default",value:"default"},{label:"Dark",value:"dark"},{label:"Light",value:"light"},{label:"Custom",value:"custom"}],onChange:x=>o({themeMode:x}),__nextHasNoMarginBottom:!0}),l==="custom"&&s==="custom"&&e.jsxs("div",{className:"ep-docs-viewer-colors",children:[e.jsx(M,{headerText:"Color"}),e.jsx(Pi,{label:po("Color"),colors:C,value:a,onChange:x=>o({customColor:x})})]}),s==="custom"&&et("embedpress.documentControls",[y],t,o,"toolbar"),r&&s==="custom"&&e.jsxs(_i,{children:[e.jsx(Et,{label:po("Fullscreen","embedpress"),onChange:x=>o({presentation:x}),checked:n}),et("embedpress.documentControls",[v],t,o,"print"),e.jsx(Et,{label:po("Draw","embedpress"),onChange:x=>o({draw:x}),checked:f}),e.jsx(Et,{label:po("Powered By"),onChange:x=>o({powered_by:x}),checked:c})]})]})},{__:Mt}=wp.i18n,{useState:Wh,useEffect:Zh,Fragment:Yh}=wp.element,{BlockControls:Xh,BlockIcon:Jh,MediaPlaceholder:Kh,InspectorControls:Li,useBlockProps:Qh}=wp.blockEditor,{ToolbarButton:Ah,RangeControl:vs,PanelBody:Bi,ExternalLink:eg,ToggleControl:og,TextControl:tg,SelectControl:sg,RadioControl:lg,ColorPalette:ng}=wp.components,Ti=({attributes:t,setAttributes:o})=>{const{width:s,height:l}=t,a=1,n=1e3;return e.jsxs(Li,{children:[e.jsxs(Bi,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Mt("Embed Size","embedpress")]}),className:"embedpress-documents-control",children:[e.jsx(vs,{label:Mt("Width","embedpress"),value:s||720,onChange:p=>o({width:p}),min:a,max:n}
308),e.jsx(vs,{label:Mt("Height","embedpress"),value:l,onChange:p=>o({height:p}),min:a,max:n})]}),e.jsx(Si,{attributes:t,setAttributes:o}),e.jsx(en,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(ze,{})]})},on=({attributes:t})=>{const{id:o,themeMode:s,customColor:l}=t;let a="#f2f2f6";return l&&Nn(l)>60&&(a="#343434"),e.jsx("style",{children:s==="custom"&&` 309 [data-id='${o}'][data-theme-mode='custom'] { 310 --viewer-primary-color: ${l}; 311 --viewer-icons-color: ${a}; 312 --viewer-icons-hover-bgcolor: ${Un(l,-10)}; 313 314 } 315 `})},tn=({href:t,id:o,width:s,height:l,setFetching:a})=>e.jsx("div",{className:`embedpress-embed-document-pdf ${o}`,style:{height:l,width:s},"data-emid":o,children:e.jsx("embed",{src:de(t),style:{height:l,width:s},onLoad:()=>a(!1)})}),sn=({href:t,url:o,docViewer:s,width:l,height:a,themeMode:n,customColor:p,id:d,download:f,draw:r,toolbar:i,presentation:u,setShowOverlay:c,setFetching:m,loadPdf:C,fetching:y})=>e.jsxs("div",{className:`${s==="custom"?"ep-file-download-option-masked ":""}ep-gutenberg-file-doc ep-powered-by-enabled${f?" enabled-file-download":""}`,"data-theme-mode":n,"data-custom-color":p,"data-id":d,children:[e.jsx("iframe",{src:de(o),style:{height:a,width:l},onLoad:()=>m(!1),onMouseUp:()=>c(!1)}),r&&s==="custom"&&e.jsx("canvas",{className:"ep-doc-canvas",width:l,height:a}),i&&s==="custom"&&e.jsxs("div",{className:"ep-external-doc-icons",children:[!jt(t)&&gn(),f&&jt(t)&&bn(),f&&jt(t)&&fn(),r&&wn(),u&&yn(),u&&xn()]})]}),{BlockIcon:Fi,MediaPlaceholder:Ei}=wp.blockEditor,{ExternalLink:Mi}=wp.components,{__:Cs}=wp.i18n,Ni=["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"],Ui=({onSelect:t,onError:o,notices:s})=>e.jsx("div",{className:"embedpress-document-editmode",children:e.jsx(Ei,{icon:e.jsx(Fi,{icon:Bl}),labels:{title:Cs("Document","embedpress"),instructions:Cs("Upload a file or pick one from your media library for embed.","embedpress")},onSelect:t,notices:s,allowedTypes:Ni,onError:o,children:e.jsx("div",{className:"components-placeholder__learn-more embedpress-doc-link",children:e.jsx(Mi,{href:"https://embedpress.com/docs/embed-document/",children:"Learn more about Embedded document"})})})}),{useState:ot,useEffect:js}=wp.element,{__:Di}=wp.i18n,{getBlobByURL:Ri,isBlobURL:Ii,revokeBlobURL:zi}=wp.blob,{useBlockProps:Hi,BlockIcon:ag,MediaPlaceholder:rg,InspectorControls:ig,BlockControls:Gi}=wp.blockEditor,{ExternalLink:dg,ToolbarButton:Vi}=wp.components,{applyFilters:Oi}=wp.hooks,qi=({attributes:t,mediaUpload:o,noticeOperations:s,isSelected:l,setAttributes:a,clientId:n,noticeUI:p})=>{const{href:d,mime:f,id:r,width:i,height:u,docViewer:c,themeMode:m,customColor:C,presentation:y=!0,position:v="bottom",download:x=!0,draw:b=!0,toolbar:k,powered_by:_,adManager:P,adSource:$,adFileUrl:w,sharePosition:h,contentShare:g,customlogo:E}=t,[B,N]=ot(!1),[T,S]=ot(!1),[Z,V]=ot(!0),[W,q]=ot(!0),H=Hi();js(()=>{if(Ii(d)){const O=Ri(d);o({filesList:[O],onFileChange:([oe])=>z(oe),onError:oe=>{N(!0),s.createErrorNotice(oe)}}),zi(d)}d&&f==="application/pdf"&&W&&(q(!1),typeof PDFObject<"u"&&PDFObject.embed(d,`.${r}`))},[d,f,r]),js(()=>{l||V(!0)},[l]);const z=O=>{O!=null&&O.url&&(N(!1),a({href:O.url,fileName:O.title,id:"embedpress-pdf-"+Date.now(),mime:O.mime,powered_by:embedpressGutenbergData!=null&&embedpressGutenbergData.embedpress_pro?!1:_}),O.mime==="application/pdf"&&(q(!1),typeof PDFObject<"u"&&PDFObject.embed(O.url,`.${r}`)),n&&O.url&&vt(n,O.url))},D=O=>{s.removeAllNotices(),s.createErrorNotice(O)},I=()=>c==="google"?`//docs.google.com/gview?embedded=true&url=${d}`:`//view.officeapps.live.com/op/embed.aspx?src=${d}`;if(!d||B)return e.jsx("div",{...H,children:e.jsx(Ui,{onSelect:z,onError:D,notices:p})});const ee=Oi("embedpress.customLogoComponent","",t);return e.jsxs("div",{...H,children:[e.jsx(Gi,{children:e.jsx(Vi,{icon:"edit",label:Di("Re Upload","embedpress"),onClick:()=>a({href:""})})}),T&&f!=="application/pdf"&&e.jsx(Le,{}),e.jsxs("div",{className:`embedpress-document-embed ep-doc-${r}`,style:{height:u,width:i},children:[e.jsxs("div",{className:`position-${h}-wraper gutenberg-doc-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[f==="application/pdf"?e.jsx(tn,{href:d,id:r,width:i,height:u,setFetching:S}):e.jsx(sn,{href:d,url:I(),docViewer:c,width:i,height:u,themeMode:m,customColor:C,id:r,download:x,draw:b,toolbar:k,presentation:y,setShowOverlay:V,setFetching:S,loadPdf:W,fetching:T}),g&&e.jsx(go,{attributes:t})]}),ee&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:ee}}),_&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),Z&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>V(!1)}),e.jsx(on,{attributes:t})]}),P&&$==="image"&&w&&e.jsx(ho,{attributes:t,setAttributes:a,deleteIcon:!0,progressBar:!0,inEditor:!0})]}),e.jsx(Ti,{attributes:t,setAttributes:a})]})},Wi="https://schemas.wp.org/trunk/block.json",Zi="EmbedPress Document",Yi="embedpress/document",Xi="embedpress",Ji="Embed documents like PDF, DOC, PPT, XLS with advanced customization options including viewer styles, toolbar controls, and content protection.",Ki=2,Qi="embedpress",Ai="embedpress-blocks-editor",ed="embedpress-blocks-editor-style",od="embedpress-blocks-style",td={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},sd={$schema:Wi,title:Zi,name:Yi,category:Xi,description:Ji,apiVersion:Ki,textdomain:Qi,editorScript:Ai,editorStyle:ed,style:od,supports:td},ld={id:{type:"string"},href:{type:"string"},width:{type:"number",default:parseInt(embedpressGutenbergData==null?void 0:embedpressGutenbergData.iframe_width)||
315600},height:{type:"number",default:parseInt(embedpressGutenbergData==null?void 0:embedpressGutenbergData.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},customlogo:{type:"string",default:""},logoX:{type:"number",default:5},logoY:{type:"number",default:10},customlogoUrl:{type:"string"},logoOpacity:{type:"number",default:.6},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},shareFacebook:{type:"boolean",default:!0},shareTwitter:{type:"boolean",default:!0},sharePinterest:{type:"boolean",default:!0},shareLinkedin:{type:"boolean",default:!0},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:10},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"},lockContent:{type:"boolean",default:!1},protectionType:{type:"string",default:"password"},userRole:{type:"array",default:[]},protectionMessage:{type:"string",default:"You do not have access to this content. Only users with the following roles can view it: [user_roles]"},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."}},nd={attributes:{href:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",fileName:"Sample Document",mime:"application/pdf",width:600,height:600,unitoption:"%",docViewer:"custom",themeMode:"default",toolbar:!0,presentation:!0,download:!0,copy_text:!0,draw:!0,powered_by:!0,viewerStyle:"modern",position:"top",doc_rotation:!0,add_text:!0,add_image:!0,doc_details:!0}},{useBlockProps:ad}=wp.blockEditor,{applyFilters:rd}=wp.hooks,id=({attributes:t,setAttributes:o})=>{const s=ad.save(),{href:l,mime:a,id:n,unitoption:p,width:d,height:f,powered_by:r,docViewer:i,themeMode:u,customColor:c,presentation:m=!0,position:C="bottom",download:y=!0,draw:v=!0,toolbar:x,doc_rotation:b,clientId:k,sharePosition:_,contentShare:P,adManager:$,adSource:w,adFileUrl:h,adXPosition:g,adYPosition:E,customlogo:B}=t;if(!l)return null;new URLSearchParams({theme_mode:u,...u==="custom"&&{custom_color:c||"#343434"},presentation:m,position:C,download:y,draw:v}).toString();const N=rd("embedpress.customLogoComponent","",t),T=()=>i==="google"?`//docs.google.com/gview?embedded=true&url=${l}`:`//view.officeapps.live.com/op/embed.aspx?src=${l}`;return e.jsx("div",{...s,children:e.jsx("div",{className:`embedpress-document-embed ep-doc-${n}`,style:{height:f,width:d},"data-embed-type":"Document",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${_}-wraper gutenberg-doc-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[a==="application/pdf"?e.jsx(tn,{href:l,id:n,width:d,height:f,setFetching:!1}):e.jsx(sn,{href:l,url:T(),docViewer:i,width:d,height:f,themeMode:u,customColor:c,id:n,download:y,draw:v,toolbar:x,presentation:m,setFetching:!1}),P&&e.jsx(go,{attributes:t})]}),N&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:N}}),r&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),e.jsx(on,{attributes:t})]}),$&&w==="image"&&h&&e.jsx(ho,{attributes:t,setAttributes:o,deleteIcon:!0,progressBar:!0,inEditor:!0})]})})})},{__:Eo}=wp.i18n;Wo(sd,{icon:Bl,attributes:ld,example:nd,keywords:[Eo("embedpress","embedpress"),Eo("document","embedpress"),Eo("pdf","embedpress"),Eo("doc","embedpress"),Eo("ppt","embedpress"),Eo("xls","embedpress")],edit:qi,save:id});const{TextControl:_s,PanelBody:ks,ToggleControl:$s}=wp.components,{InspectorControls:dd,useBlockProps:Ps}=wp.blockEditor,{Fragment:cd}=wp.element,{__:Ze}=wp.i18n;function pd({attributes:t,className:o,setAttributes:s}){const{url:l,editingURL:a,fetching:n,cannotEmbed:p,embedHTML:d,height:f,width:r,powered_by:i,is_public:u,align:c,interactive:m}=t,C=Ps?Ps({className:"align"+c,style:{width:r+"px",height:f+"px"}}):[];function y(){s({editingURL:!0,is_public:!0})}function v(b){b&&b.preventDefault(),l?(s({fetching:!0}),setTimeout(()=>{s({fetching:!1,cannotEmbed:!1,editingURL:!1,embedHTML:"ready"})},500)):s({cannotEmbed:!0,fetching:!1,editingURL:!0})}function x(b){return/^https:\/\/calendar\.google\.com\/calendar\/embed\?.*$/.test(b)}return e.jsxs(cd,{children:[e.jsxs(dd,{children:[e.jsxs(ks,{title:Ze("Customize Embedded Calendar","embedpress"),children:[e.jsx("p",{children:Ze("You can adjust the width and height of embedded content.","embedpress")}),e.jsx(_s,{label:Ze("Width","embedpress"),value:r,onChange:b=>s({width:b})}),!No(l)&&!Ot(l)&&e.jsx(_s,{label:Ze("Height","embedpress"),value:f,onChange:b=>s({height:b})})]}),e.jsxs(ks,{title:Ze("Calendar Type and other options","embedpress"),children:[e.jsx("p",{children:Ze("You can show public calendar without any API key","embedpress")}),e.jsx($s,{label:Ze("Powered By","embedpress"),onChange:b=>s({powered_by:b}),checked:i}),e.jsx($s,{label:Ze("Embedding Public Calendar","embedpress"),onChange:b=>s({is_public:b}),checked:u})]})]}),(!d||a)&&!n&&u&&e.jsx("div",{...C,children:e.jsx(Ie,{label:Ze("Public Calendar Link"),onSubmit:v,value:l,cannotEmbed:p,onChange:b=>s({url:b.target.value}
315),icon:Fl,DocTitle:Ze("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})}),n?e.jsxs("div",{className:o,children:[e.jsx(Le,{})," "]}):null,d&&u&&!a&&!n&&e.jsxs("figure",{...C,children:[u&&x(l)&&e.jsx("iframe",{style:{display:n?"none":""},src:de(l),width:r,height:f}),i&&x(l)&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),!x(l)&&e.jsx("p",{className:"embedpress-el-powered",children:"Invalid Calendar Link"}),!m&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),e.jsx(Fe,{showEditButton:d&&!p,switchBackToURLInput:y})]}),!u&&e.jsxs("figure",{className:"testing",...C,children:[e.jsxs("p",{children:["Private Calendar will show in the frontend only.",e.jsx("br",{}),e.jsx("strong",{children:"Note: Private calendar needs EmbedPress Pro."})]}),i&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),!m&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),e.jsx(Fe,{showEditButton:d&&!p,switchBackToURLInput:y})]})]})}const ud=t=>null,md={id:{type:"string"},powered_by:{type:"boolean",default:!0},is_public:{type:"boolean",default:!0},width:{type:"string",default:parseInt(embedpressGutenbergData==null?void 0:embedpressGutenbergData.iframe_width)||600},height:{type:"string",default:parseInt(embedpressGutenbergData==null?void 0:embedpressGutenbergData.iframe_height)||600},url:{type:"string",default:""},embedHTML:{type:"string",default:""},interactive:{type:"boolean",default:!1}},{__:hd}=wp.i18n,{registerBlockType:gd}=wp.blocks;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["embedpress-calendar"]&&gd("embedpress/embedpress-calendar",{title:hd("Google Calendar"),icon:Fl,category:"embedpress",keywords:["embedpress","embed","calendar","calender","google","cal","events","task","birthday"],supports:{align:["left","center","right"],default:"center",lightBlockWrapper:!0},attributes:md,Edit:pd,Save:ud});const{applyFilters:fd}=wp.hooks,{useBlockProps:bd}=wp.blockEditor,{Fragment:cg}=wp.element,yd=({attributes:t})=>{const o=bd.save(),{href:s,mime:l,id:a,unitoption:n,width:p,height:d,powered_by:f,themeMode:r,customColor:i,presentation:u,lazyLoad:c,position:m,flipbook_toolbar_position:C,download:y,add_text:v,draw:x,toolbar:b,copy_text:k,doc_details:_,doc_rotation:P,add_image:$,selection_tool:w,scrolling:h,spreads:g,clientId:E,sharePosition:B,contentShare:N,adManager:T,adSource:S,adFileUrl:Z,adXPosition:V,adYPosition:W,viewerStyle:q,zoomIn:H,zoomOut:z,fitView:D,bookmark:I,customlogo:ee}=t;if(!s)return null;let O="";n==="%"?O="ep-percentage-width":O="ep-fixed-width";let oe="",L="",fe=B||"right";N&&(oe="ep-content-share-enabled",L="ep-share-position-"+fe);function le(re){let ce="",pe={};r==="custom"&&(pe={customColor:i&&i!=="default"?i:"#403A81"});let ye={themeMode:r||"default",...pe,presentation:u||!1,lazyLoad:c||!1,position:m||"top",flipbook_toolbar_position:C||"bottom",download:y||!1,toolbar:b||!1,copy_text:k||!1,add_text:v||!1,draw:x||!1,doc_details:_||!1,doc_rotation:P||!1,add_image:$||!1,zoom_in:H||!1,zoom_out:z||!1,fit_view:D||!1,bookmark:I||!1,selection_tool:w||"0",scrolling:h||"-1",spreads:g||"0"};const U=new URLSearchParams(ye).toString();ce="key="+btoa(encodeURIComponent(U).replace(/%([0-9A-F]{2})/g,function(He,Xe){return String.fromCharCode(parseInt(Xe,16))}));let ve=re.split("#");return ve=encodeURIComponent(ve[0]),q==="flip-book"?`${ve}&${ce}`:`${ve}#${ce}`}const be="//view.officeapps.live.com/op/embed.aspx?src="+le(s);let ne="";typeof embedpressGutenbergData<"u"&&embedpressGutenbergData.pdfRenderer&&(ne=embedpressGutenbergData.pdfRenderer+(embedpressGutenbergData.pdfRenderer.indexOf("?")===-1?"?":"&")+"scrolling="+h+"&selection_tool="+w+"&spreads="+g+"&file="+le(s)),q==="flip-book"&&typeof embedpressGutenbergData<"u"&&embedpressGutenbergData.assetsUrl&&(ne=embedpressGutenbergData.assetsUrl+"pdf-flip-book/viewer.html?file="+le(s));const ae=fd("embedpress.customLogoComponent","",t);return e.jsx("div",{...o,children:e.jsx("div",{className:"embedpress-document-embed ep-doc-"+a+" "+oe+" "+L+" "+O,style:{width:p+n,maxWidth:"100%"},id:`ep-doc-${E}`,"data-source-id":"source-"+E,"data-embed-type":"PDF",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${B}-wraper gutenberg-pdf-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[l==="application/pdf"&&ne&&e.jsx("iframe",{title:"",powered_by:f,style:{height:d,width:"100%"},className:"embedpress-embed-document-pdf "+a,"data-emid":a,src:de(ne)}),l!=="application/pdf"&&e.jsx("iframe",{title:"",style:{height:d,width:"100%"},src:de(be)}),N&&e.jsx(go,{attributes:t})]}),ae&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:ae}}),f&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),T&&S==="image"&&Z&&e.jsx(ho,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{Component:xd}=wp.element;
315class Qe extends xd{constructor(o){super(o),this.myRef=React.createRef()}componentDidMount(){vl.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}render(){return e.jsx("iframe",{ref:this.myRef,...this.props})}}const{__:te}=wp.i18n,{useState:pg,useEffect:ug,Fragment:Nt}=wp.element,{BlockControls:mg,BlockIcon:hg,MediaPlaceholder:gg,InspectorControls:wd,useBlockProps:fg}=wp.blockEditor,{__experimentalToggleGroupControl:Ss,__experimentalToggleGroupControlOption:tt}=wp.components,{ToolbarButton:bg,RangeControl:Ls,PanelBody:Bs,ExternalLink:yg,ToggleControl:Ue,TextControl:vd,SelectControl:Ut,RadioControl:Cd,ColorPalette:jd}=wp.components,{applyFilters:Te}=wp.hooks,_d=({attributes:t,setAttributes:o})=>{const{href:s,mime:l,id:a,unitoption:n,width:p,height:d,powered_by:f,themeMode:r,customColor:i,presentation:u,lazyLoad:c,position:m,flipbook_toolbar_position:C,download:y,add_text:v,draw:x,open:b,toolbar:k,copy_text:_,toolbar_position:P,doc_details:$,doc_rotation:w,add_image:h,selection_tool:g,scrolling:E,spreads:B,sharePosition:N,contentShare:T,adManager:S,adSource:Z,adFileUrl:V,adWidth:W,adHeight:q,adXPosition:H,adYPosition:z,viewerStyle:D,zoomIn:I,zoomOut:ee,fitView:O,bookmark:oe}=t,L=1,fe=1e3;let le=0,be=100;n=="px"&&(be=1500);const ne=Te("embedpress.togglePlaceholder",[],te("Toolbar","embedpress"),!0),ae=Te("embedpress.togglePlaceholder",[],te("Print/Download","embedpress"),!0),re=Te("embedpress.togglePlaceholder",[],te("Draw","embedpress"),!1),ce=Te("embedpress.togglePlaceholder",[],te("Copy Text","embedpress"),!0),pe=Te("embedpress.selectPlaceholder",[],te("Default Scrolling","embedpress"),"-1","Page Scrolling"),ye=Te("embedpress.selectPlaceholder",[],te("Default Selection Tool","embedpress"),"0","Text Tool");return e.jsxs(wd,{children:[e.jsxs(Bs,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",te("Embed Size","embedpress")]}),children:[e.jsxs("div",{className:"ep-pdf-width-contol",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(Cd,{selected:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:U=>o({unitoption:U}),className:"ep-unit-choice-option"}),e.jsx(Ls,{value:p,onChange:U=>o({width:U}),max:be,min:le})]}),e.jsx(Ls,{label:te("Height","embedpress"),value:d,onChange:U=>o({height:U}),max:fe,min:L})]}),e.jsxs(Bs,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",te("Document Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(vd,{label:te("Document URL","embedpress"),type:"text",value:t.href||"",onChange:U=>o({href:U})}),e.jsx(Ut,{label:"Viewer Style",value:D,options:[{label:"Modern",value:"modern"},{label:"Flip Book",value:"flip-book"}],onChange:U=>o({viewerStyle:U}),__nextHasNoMarginBottom:!0}),e.jsx(Ut,{label:"Theme",value:r,options:[{label:"System Default",value:"default"},{label:"Dark",value:"dark"},{label:"Light",value:"light"},{label:"Custom",value:"custom"}],onChange:U=>o({themeMode:U}),__nextHasNoMarginBottom:!0}),r==="custom"&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Color"}),e.jsx(jd,{label:te("Color"),colors,value:i,onChange:U=>o({customColor:U})})]}),Te("embedpress.pdfControls",[ne],t,o,"toolbar"),k&&e.jsxs(Nt,{children:[D==="flip-book"?e.jsxs(Ss,{label:"Toolbar Position",value:C,onChange:U=>o({flipbook_toolbar_position:U}),children:[e.jsx(tt,{value:"top",label:"Top"}),e.jsx(tt,{value:"bottom",label:"Bottom"})]}):e.jsxs(Ss,{label:"Toolbar Position",value:m,onChange:U=>o({position:U}),children:[e.jsx(tt,{value:"top",label:"Top"}),e.jsx(tt,{value:"bottom",label:"Bottom"})]}),e.jsx(Ue,{label:te("Presentation Mode","embedpress"),onChange:U=>o({presentation:U}),checked:u}),e.jsx(Ue,{label:te("Lazy Load","embedpress"),onChange:U=>o({lazyLoad:U}),checked:c}),Te("embedpress.pdfControls",[ae],t,o,"print"),D==="modern"?e.jsxs(Nt,{children:[e.jsx(Ue,{label:te("Add Text","embedpress"),onChange:U=>o({add_text:U}),checked:v}),Te("embedpress.pdfControls",[re],t,o,"draw"),Te("embedpress.pdfControls",[ce],t,o,"copyText"),e.jsx(Ue,{label:te("Add Image","embedpress"),onChange:U=>o({add_image:U}),checked:h}),e.jsx(Ue,{label:te("Rotation","embedpress"),onChange:U=>o({doc_rotation:U}),checked:w}),e.jsx(Ue,{label:te("Properties","embedpress"),onChange:U=>o({doc_details:U}),checked:$}),Te("embedpress.pdfControls",[ye],t,o,"selectionTool"),Te("embedpress.pdfControls",[pe],t,o,"scrolling"),E!=="1"&&e.jsx(Ut,{label:"Default Spreads",value:
315B,options:[{label:"No Spreads",value:"0"},{label:"Odd Spreads",value:"1"},{label:"Even Spreads",value:"2"}],onChange:U=>o({spreads:U}),__nextHasNoMarginBottom:!0})]}):e.jsxs(Nt,{children:[e.jsx(Ue,{label:te("Zoom In","embedpress"),onChange:U=>o({zoomIn:U}),checked:I}),e.jsx(Ue,{label:te("Zoom Out","embedpress"),onChange:U=>o({zoomOut:U}),checked:ee}),e.jsx(Ue,{label:te("Fit View","embedpress"),onChange:U=>o({fitView:U}),checked:O}),e.jsx(Ue,{label:te("Bookmark","embedpress"),onChange:U=>o({bookmark:U}),checked:oe})]}),e.jsx(Ue,{label:te("Powered By","embedpress"),onChange:U=>o({powered_by:U}),checked:f})]})]}),e.jsx(en,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(ze,{})]},"inspector")},{__:Dt}=wp.i18n,{useState:st,useEffect:Rt,Fragment:kd}=wp.element,{BlockControls:$d,BlockIcon:Pd,MediaPlaceholder:Sd,useBlockProps:Ld}=wp.blockEditor,{ToolbarButton:Bd,ExternalLink:Td}=wp.components,{getBlobByURL:Fd,isBlobURL:Ed,revokeBlobURL:Md}=wp.blob,{applyFilters:Nd}=wp.hooks,Ud=["application/pdf"];function Dd(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:a,noticeUI:n,mediaUpload:p,noticeOperations:d}=t,[f,r]=st(!1),[i,u]=st(!1),[c,m]=st(!1),[C,y]=st(!0),v=Ld();Rt(()=>{!a&&c&&m(!1)},[a,c]),Rt(()=>{const{href:Q}=o;if(Ed(Q)){const xe=Fd(Q);p({filesList:[xe],onFileChange:([Ee])=>k(Ee),onError:Ee=>{r(!0),d.createErrorNotice(Ee)}}),Md(Q)}o.href&&o.mime==="application/pdf"&&C&&y(!1)},[]);const x=()=>{m(!0)},b=()=>{u(!1)},k=Q=>{Q&&Q.url&&(r(!1),s({href:Q.url,fileName:Q.title,id:"embedpress-pdf-"+Date.now(),mime:Q.mime}),embedpressGutenbergData.branding!==void 0&&embedpressGutenbergData.branding.powered_by!==void 0&&s({powered_by:embedpressGutenbergData.branding.powered_by}),Q.mime==="application/pdf"&&y(!1)),l&&o.href&&vt(l,o.href)},_=Q=>{d.removeAllNotices(),d.createErrorNotice(Q)},P=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",()=>{document.querySelector(".pro__alert__wrap").style.display="none"})},$=()=>{const Q=` 316 <div class="pro__alert__wrap" style="display: none;"> 317 <div class="pro__alert__card"> 318 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 319 <h2>Opps...</h2> 320 <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> 321 <a href="#" class="button radius-10">Close</a> 322 </div> 323 </div> 324 `,xe=document.createElement("div");return xe.innerHTML=Q,xe};Rt(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{href:w,mime:h,id:g,unitoption:E,width:B,height:N,powered_by:T,themeMode:S,customColor:Z,presentation:V,lazyLoad:W,position:q,flipbook_toolbar_position:H,download:z,add_text:D,draw:I,open:ee,toolbar:O,copy_text:oe,toolbar_position:L,doc_details:fe,doc_rotation:le,add_image:be,selection_tool:ne,scrolling:ae,spreads:re,sharePosition:ce,contentShare:pe,adManager:ye,adSource:U,adFileUrl:fo,adWidth:ve,adHeight:He,adXPosition:Xe,adYPosition:Zo,viewerStyle:bo,zoomIn:ko,zoomOut:$o,fitView:Po,bookmark:So,customlogo:Yo}=o,Lo=Nd("embedpress.customLogoComponent",null,o);let yo="";E=="%"?yo="ep-percentage-width":yo="ep-fixed-width";let xo="",wo="",ie=ce||"right";pe&&(xo="ep-content-share-enabled",wo="ep-share-position-"+ie);const K="https://embedpress.com/docs/embed-document/";embedpressGutenbergData.isProPluginActive||(s({download:!0}),s({copy_text:!0}),s({draw:!1}),s({selection_tool:"0"}),s({scrolling:"-1"})),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append($()),P());function Ae(Q){let xe="",Ee={};S==="custom"&&(Ee={customColor:Z&&Z!=="default"?Z:"#403A81"});let Bo={themeMode:S||"default",...Ee,presentation:V||!1,lazyLoad:W||!1,position:q||"top",flipbook_toolbar_position:H||"bottom",download:z||!1,toolbar:O||!1,copy_text:oe||!1,add_text:D||!1,draw:I||!1,toolbar_position:L||"top",doc_details:fe||!1,doc_rotation:le||!1,add_image:be||!1,zoom_in:ko||!1,zoom_out:$o||!1,fit_view:Po||!1,bookmark:So||!1,selection_tool:ne||"0",scrolling:ae||"-1",spreads:re||"0"};const Io=new URLSearchParams(Bo).toString();xe="key="+btoa(encodeURIComponent(Io).replace(/%([0-9A-F]{2})/g,function(zo,eo){return String.fromCharCode(parseInt(eo,16))}));let j=Q.split("#");return j=encodeURIComponent(j[0]),bo==="flip-book"?`${j}&${xe}`:`${j}#${xe}`}if(!w||f)return e.jsx("div",{className:"embedpress-document-editmode",children:e.jsx(Sd,{icon:e.jsx(Pd,{icon:Tl}),labels:{title:Dt("EmbedPress PDF"),instructions:Dt("Upload a PDF file or pick one from your media library for embed.")},onSelect:k,notices:n,allowedTypes:Ud,onError:_,children:e.jsx("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link",children:e.jsx(Td,{href:K,children:"Learn more about Embedded document "})})})});{const Q="//view.officeapps.live.com/op/embed.aspx?src="+Ae(w);let xe=embedpressGutenbergData.pdfRenderer+(embedpressGutenbergData.pdfRenderer.indexOf("?")===-1?"?":"&")+"scrolling="+ae+"&selection_tool="+ne+"&spreads="+re+"&file="+Ae(w);return bo==="flip-book"&&(xe=embedpressGutenbergData.assetsUrl+"pdf-flip-book/viewer.html?file="+Ae(w)),e.jsxs(kd,{children:[e.jsx($d,{children:e.jsx(Bd,{className:"components-edit-button",icon:"edit",label:Dt("Re Upload","embedpress"),onClick:()=>s({href:""})})}),i&&h!=="application/pdf"?e.jsx(Le,{}):null,e.jsx("div",{...v,children:e.jsx("div",{className:"embedpress-document-embed ep-doc-"+g+" "+xo+" "+wo+" "+yo,style:{width:B+E,maxWidth:"100%"},id:`ep-doc-${o.clientId||l}`,"data-source-id":"source-"+(o.clientId||l),children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${ce}-wraper gutenberg-pdf-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[h==="application/pdf"&&(bo==="modern"?e.jsx("iframe",{title:"",powered_by:T,style:{height:N,width:"100%"},className:"embedpress-embed-document-pdf "+g,"data-emid":g,src:de(xe)}):e.jsx("iframe",{title:"",powered_by:T,style:{height:N,width:"100%"},className:"embedpress-embed-document-pdf "+g,"data-emid":g,src:de(xe)})),h!=="application/pdf"&&e.jsx(Qe,{title:"",onMouseUponMouseUp:x,style:{height:N,width:B,display:i||!C?"none":""},onLoad:b,src:de(Q)}),pe&&e.jsx(go,{attributes:o})]}),Lo&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:Lo}}),T&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})})]}),ye&&U==="image"&&fo&&e.jsx(ho,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(_d,{attributes:o,setAttributes:s})]})}}const Rd="https://schemas.wp.org/trunk/block.json",Id="EmbedPress PDF",zd="embedpress/embedpress-pdf",Hd="embedpress",Gd="Embed PDF documents with advanced customization options including viewer styles, toolbar controls, and content protection.",Vd=2,Od="embedpress",qd="embedpress-blocks-editor",Wd="embedpress-blocks-editor-style",Zd="embedpress-blocks-style",Yd={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Xd={$schema:Rd,title:Id,name:zd,category:Hd,description:Gd,apiVersion:Vd,textdomain:Od,editorScript:qd,editorStyle:Wd,style:Zd,supports:Yd},Jd={id:{type:"string"},clientId:{type:"string"},href:{type:"string"},fileName:{type:"string"},mime:{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:"#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:"%"},width:{type:"number",default:600},height:{type:"number",default:600}
324,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},customlogo:{type:"string",default:""},logoX:{type:"number",default:5},logoY:{type:"number",default:10},customlogoUrl:{type:"string"},logoOpacity:{type:"number",default:.6},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},shareFacebook:{type:"boolean",default:!0},shareTwitter:{type:"boolean",default:!0},sharePinterest:{type:"boolean",default:!0},shareLinkedin:{type:"boolean",default:!0},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:10},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"},lockContent:{type:"boolean",default:!1},protectionType:{type:"string",default:"password"},userRole:{type:"array",default:[]},protectionMessage:{type:"string",default:"You do not have access to this content. Only users with the following roles can view it: [user_roles]"},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."}},{__:lt}=wp.i18n;Wo(Xd,{icon:Tl,attributes:Jd,keywords:[lt("embedpress","embedpress"),lt("pdf","embedpress"),lt("doc","embedpress"),lt("document","embedpress")],edit:Dd,save:yd});const{applyFilters:xg}=wp.hooks,{useBlockProps:Kd}=wp.blockEditor,{Fragment:wg}=wp.element,Qd=({attributes:t})=>{const o=Kd.save(),{iframeSrc:s,id:l,unitoption:a,width:n,height:p,powered_by:d,clientId:f,sharePosition:r,contentShare:i,adManager:u,adSource:c,adFileUrl:m,adXPosition:C,adYPosition:y}=t;if(!s)return null;let v="";a==="%"?v="ep-percentage-width":v="ep-fixed-width";let x="",b="",k=r||"right";return i&&(x="ep-content-share-enabled",b="ep-share-position-"+k),e.jsx("div",{...o,children:e.jsx("div",{className:"embedpress-document-embed ep-google-docs-"+l+" "+x+" "+b+" "+v,style:{width:n+a,maxWidth:"100%"},id:`ep-google-docs-${f}`,"data-source-id":"source-"+f,"data-embed-type":"Google Docs",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${r}-wraper gutenberg-google-docs-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx("iframe",{src:de(s),style:{height:p,width:"100%"},frameBorder:"0",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}),i&&e.jsx(go,{attributes:t})]}),d&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),u&&c==="image"&&m&&e.jsx(ho,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{__:nt}=wp.i18n,{InspectorControls:Ad}=wp.blockEditor,{PanelBody:Ts,RangeControl:Fs,RadioControl:ec,ToggleControl:oc}=wp.components,Es=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a,powered_by:n,contentShare:p,adManager:d,lockContent:f}=t,r=1,i=1e3,u=a==="%"?100:1e3;return e.jsxs(Ad,{children:[e.jsxs(Ts,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",nt("Embed Size","embedpress")]}),className:"embedpress-google-docs-control",children:[e.jsxs("div",{className:"ep-google-docs-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(ec,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:m=>o({unitoption:m}),className:"ep-unit-choice-option"}),e.jsx(Fs,{value:s,onChange:m=>o({width:m}),max:u,min:1})]}
324),e.jsx(Fs,{label:nt("Height","embedpress"),value:l,onChange:m=>o({height:m}),min:r,max:i})]}),e.jsx(Ts,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",nt("General","embedpress")]}),className:"embedpress-google-docs-general",children:e.jsx(oc,{label:nt("Powered By","embedpress"),checked:n,onChange:m=>o({powered_by:m})})}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(ze,{})]})},{__:at}=wp.i18n,{useState:Oo,useEffect:Ms,Fragment:tc}=wp.element,{BlockControls:sc,useBlockProps:lc}=wp.blockEditor,{ToolbarButton:nc,ExternalLink:vg}=wp.components;function ac(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:a}=t,[n,p]=Oo(!1),[d,f]=Oo(o.url||""),[r,i]=Oo(!0),[u,c]=Oo(!1),[m,C]=Oo(!1),y=lc();Ms(()=>{!a&&m&&C(!1)},[a,m]);const v=()=>{C(!0)},x=()=>{i(!1)},b=z=>(z&&typeof z=="string"&&(z=z.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),z=z.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),z),k=z=>{var D=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return D.test(z)},_=z=>{if(z&&z.preventDefault(),s({url:d}),d&&d.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var D=b(d),I=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,ee=I.exec(D),O=ee[1];O&&O==="document"?(D.match(/([?&])embedded=true/i)||(D.indexOf("?")>-1?D+="&embedded=true":D+="?embedded=true"),p(!1),c(!1),s({iframeSrc:D,id:"embedpress-google-docs-"+Date.now()}),embedpressGutenbergData.branding!==void 0&&embedpressGutenbergData.branding.powered_by!==void 0&&s({powered_by:embedpressGutenbergData.branding.powered_by})):(c(!0),p(!0))}else c(!0),p(!0);l&&d&&vt(l,d)},P=()=>{p(!0)};Ms(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{iframeSrc:$,powered_by:w,unitoption:h,width:g,height:E,sharePosition:B,contentShare:N,adManager:T,adSource:S,adFileUrl:Z}=o;if($&&!k($))return"Invalid URL.";at("Google Docs URL");let V="";h=="%"?V="ep-percentage-width":V="ep-fixed-width";let W="",q="",H=B||"right";return N&&(W="ep-content-share-enabled",q="ep-share-position-"+H),!$||n?e.jsxs("div",{...y,children:[e.jsx(Es,{attributes:o,setAttributes:s}),e.jsx(Ie,{label:at("Google Docs URL"),onSubmit:_,value:d,cannotEmbed:u,onChange:z=>f(z.target.value),icon:Yt,DocTitle:at("Learn More About Google Docs Embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})]}):e.jsxs(tc,{children:[e.jsx(Es,{attributes:o,setAttributes:s}),e.jsx(sc,{children:e.jsx(nc,{className:"components-edit-button",icon:"edit",label:at("Edit URL","embedpress"),onClick:P})}),r?e.jsx(Le,{}):null,e.jsx("div",{...y,children:e.jsx("div",{className:"embedpress-document-embed ep-google-docs-"+o.id+" "+W+" "+q+" "+V,style:{width:g+h,maxWidth:"100%"},id:`ep-google-docs-${o.clientId||l}`,"data-source-id":"source-"+(o.clientId||l),children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${B}-wraper gutenberg-google-docs-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx(Qe,{src:de($),onMouseUp:v,onLoad:x,style:{height:E,width:"100%",display:r?"none":""},frameBorder:"0"}),N&&e.jsx(go,{attributes:o})]}),w&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})})]}),T&&S==="image"&&Z&&e.jsx(ho,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(Fe,{showEditButton:$&&!u,switchBackToURLInput:P})]})}const rc="https://schemas.wp.org/trunk/block.json",ic="Google Docs",dc="embedpress/google-docs-block",cc="embedpress",pc="Embed Google Docs documents with live collaboration features and customizable viewing options for seamless content sharing.",uc=2,mc="embedpress",hc="embedpress-blocks-editor",gc="embedpress-blocks-editor-style",fc="embedpress-blocks-style",bc={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},yc={$schema:rc,title:ic,name:dc,category:cc,description:pc,apiVersion:uc,textdomain:mc,editorScript:hc,editorStyle:gc,style:fc,supports:bc},xc={id:{type:"string"},clientId:{type:"string"},url:{type:"string",default:""},iframeSrc:{type:"string",default:""},powered_by:{type:"boolean",default:!0},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},shareFacebook:{type:"boolean",default:!0},shareTwitter:{type:"boolean",default:!0},sharePinterest:{type:"boolean",default:!0},shareLinkedin:{type:"boolean",default:!0},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:10},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"},lockContent:{type:"boolean",default:!1},protectionType:{type:"string",default:"password"},userRole:{type:"array",default:[]},protectionMessage:{type:"string",default:"You do not have access to this content. Only users with the following roles can view it: [user_roles]"},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."}},{__:rt}=wp.i18n;Wo(yc,{icon:Yt,attributes:xc,keywords:[rt("embedpress","embedpress"),rt("google","embedpress"),rt("docs","embedpress"),rt("document","embedpress")],edit:ac,save:Qd});const{applyFilters:Cg}=wp.hooks,{useBlockProps:wc}=wp.blockEditor,{Fragment:jg}=wp.element,vc=({attributes:t})=>{const o=wc.save(),{iframeSrc:s,id:l,unitoption:a,width:n,height:p,powered_by:d,clientId:f,sharePosition:r,contentShare:i,adManager:u,adSource:c,adFileUrl:m,adXPosition:C,adYPosition:y}=t;if(!s)return null;let v="";a==="%"?v="ep-percentage-width":v="ep-fixed-width";let x="",b="",k=r||"right";return i&&(x="ep-content-share-enabled",b="ep-share-position-"+k),e.jsx("div",{...o,children:e.jsx("div",{className:"embedpress-document-embed ep-google-drawings-"+l+" "+x+" "+b+" "+v,style:{width:n+a,maxWidth:"100%"},id:`ep-google-drawings-${f}`,"data-source-id":"source-"+f,"data-embed-type":"Google Drawings",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${r}-wraper gutenberg-google-drawings-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx("img",{src:de(s),style:{height:p,width:"100%"},alt:"Google Drawing"}),i&&e.jsx(go,{attributes:t})]}),d&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),u&&c==="image"&&m&&e.jsx(ho,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{__:it}=wp.i18n,{InspectorControls:Cc}=wp.blockEditor,{PanelBody:Ns,RangeControl:Us,RadioControl:jc,ToggleControl:_c}=wp.components,Ds=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a,powered_by:n,contentShare:p,adManager:d,lockContent:f}=t,r=1,i=1e3,u=a==="%"?100:1e3;return e.jsxs(Cc,{children:[e.jsxs(Ns,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",it("Embed Size","embedpress")]}),className:"embedpress-google-drawings-control",children:[e.jsxs("div",{className:"ep-google-drawings-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(jc,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:m=>o({unitoption:m}),className:"ep-unit-choice-option"}),e.jsx(Us,{value:s,onChange:m=>o({width:m}),max:u,min:1})]}
324),e.jsx(Us,{label:it("Height","embedpress"),value:l,onChange:m=>o({height:m}),min:r,max:i})]}),e.jsx(Ns,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",it("General","embedpress")]}),className:"embedpress-google-drawings-general",children:e.jsx(_c,{label:it("Powered By","embedpress"),checked:n,onChange:m=>o({powered_by:m})})}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(ze,{})]})},{__:dt}=wp.i18n,{useState:qo,useEffect:Rs,Fragment:kc}=wp.element,{BlockControls:$c,useBlockProps:Pc}=wp.blockEditor,{ToolbarButton:Sc,ExternalLink:_g}=wp.components;function Lc(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:a}=t,[n,p]=qo(!1),[d,f]=qo(o.url||""),[r,i]=qo(!0),[u,c]=qo(!1),[m,C]=qo(!1),y=Pc();Rs(()=>{!a&&m&&C(!1)},[a,m]);const v=()=>{i(!1)},x=H=>(H&&typeof H=="string"&&(H=H.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),H=H.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),H),b=H=>{var z=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return z.test(H)},k=H=>{if(H&&H.preventDefault(),s({url:d}),d&&d.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var z=x(d),D=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,I=D.exec(z),ee=I[1];ee&&ee==="drawings"?(p(!1),c(!1),s({iframeSrc:z,id:"embedpress-google-drawings-"+Date.now()}),embedpressGutenbergData.branding!==void 0&&embedpressGutenbergData.branding.powered_by!==void 0&&s({powered_by:embedpressGutenbergData.branding.powered_by})):(c(!0),p(!0))}else c(!0),p(!0);l&&d&&vt(l,d)},_=()=>{p(!0)};Rs(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{iframeSrc:P,powered_by:$,unitoption:w,width:h,height:g,sharePosition:E,contentShare:B,adManager:N,adSource:T,adFileUrl:S}=o;if(P&&!b(P))return"Invalid URL.";dt("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");let Z="";w=="%"?Z="ep-percentage-width":Z="ep-fixed-width";let V="",W="",q=E||"right";return B&&(V="ep-content-share-enabled",W="ep-share-position-"+q),!P||n?e.jsxs("div",{...y,children:[e.jsx(Ds,{attributes:o,setAttributes:s}),e.jsx(Ie,{label:dt("Google Drawings URL"),onSubmit:k,value:d,cannotEmbed:u,onChange:H=>f(H.target.value),icon:kl,DocTitle:dt("Learn More About Google Drawings Embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"})]}):e.jsxs(kc,{children:[e.jsx(Ds,{attributes:o,setAttributes:s}),e.jsx($c,{children:e.jsx(Sc,{className:"components-edit-button",icon:"edit",label:dt("Edit URL","embedpress"),onClick:_})}),r?e.jsx(Le,{}):null,e.jsx("div",{...y,children:e.jsx("div",{className:"embedpress-document-embed ep-google-drawings-"+o.id+" "+V+" "+W+" "+Z,style:{width:h+w,maxWidth:"100%"},id:`ep-google-drawings-${o.clientId||l}`,"data-source-id":"source-"+(o.clientId||l),children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${E}-wraper gutenberg-google-drawings-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx("img",{src:de(P),onLoad:v,style:{height:g,width:"100%",display:r?"none":""},alt:"Google Drawing"}),B&&e.jsx(go,{attributes:o})]}),$&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})})]}),N&&T==="image"&&S&&e.jsx(ho,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(Fe,{showEditButton:P&&!u,switchBackToURLInput:_})]})}const Bc="https://schemas.wp.org/trunk/block.json",Tc="Google Drawings",Fc="embedpress/google-drawings-block",Ec="embedpress",Mc="Embed Google Drawings with interactive diagrams, flowcharts, and visual content for enhanced presentations and documentation.",Nc=2,Uc="embedpress",Dc="embedpress-blocks-editor",Rc="embedpress-blocks-editor-style",Ic="embedpress-blocks-style",zc={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Is={$schema:Bc,title:Tc,name:Fc,category:Ec,description:Mc,apiVersion:Nc,textdomain:Uc,editorScript:Dc,editorStyle:Rc,style:Ic,supports:zc},Hc={id:{type:"string"},clientId:{type:"string"},url:{type:"string",default:""},iframeSrc:{type:"string",default:""},powered_by:{type:"boolean",default:!0},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},shareFacebook:{type:"boolean",default:!0},shareTwitter:{type:"boolean",default:!0},sharePinterest:{type:"boolean",default:!0},shareLinkedin:{type:"boolean",default:!0},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:10},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"},lockContent:{type:"boolean",default:!1},protectionType:{type:"string",default:"password"},userRole:{type:"array",default:[]},protectionMessage:{type:"string",default:"You do not have access to this content. Only users with the following roles can view it: [user_roles]"},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."}},{__:ct}=wp.i18n,{registerBlockType:Gc}=wp.blocks;let ln=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-drawings-block"]&&(ln=!0);ln&&Gc(Is.name,{...Is,icon:kl,attributes:Hc,keywords:[ct("embedpress","embedpress"),ct("google","embedpress"),ct("drawings","embedpress"),ct("diagram","embedpress")],edit:Lc,save:vc});const Vc=t=>{const{iframeSrc:o}=t.attributes;return e.jsx("figure",{className:"ose-google-docs-forms","data-embed-type":"Google Forms",children:e.jsx("iframe",{src:o,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"})})},{__:zs}=wp.i18n,{InspectorControls:Oc}=wp.blockEditor,{PanelBody:qc,RangeControl:Hs,RadioControl:Wc}=wp.components,Gs=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(Oc,{children:[e.jsxs(qc,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",zs("Embed Size","embedpress")]}),className:"embedpress-google-forms-control",children:[e.jsxs("div",{className:"ep-google-forms-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(Wc,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(Hs,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(Hs,{label:zs("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(ze,{})]})},{__:Vs}=wp.i18n,{useState:Zc,useEffect:Yc}=wp.element,{useBlockProps:Xc}=wp.blockEditor;function Jc({attributes:t,setAttributes:o,isSelected:s}){const l=Xc(),{url:a,iframeSrc:n,width:p,height:d,unitoption:f}=t,[r,i]=Zc({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:C,interactive:y}=r;Yc(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},x=()=>{i(h=>({...h,fetching:!1}))},b=h=>(h&&typeof h=="string"&&(h=h.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),h=h.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),h),k=h=>{if(h&&h.preventDefault(),o({url:c}),c&&c.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var g=b(c),E=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,B=E.exec(g),N=B[1];N&&N=="forms"?(i(T=>({...T,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})):i(T=>({...T,cannotEmbed:!0,editingURL:!0}))}else i(T=>({...T,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const $=Vs("Google Forms URL");let w="";return f=="%"?w="ep-percentage-width":w="ep-fixed-width",!n||u?e.jsxs("div",{...l,children:[e.jsx(Gs,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(g=>({...g,url:h.target.value})),icon:_l,DocTitle:Vs("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(Gs,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-forms-embed ${w}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(n),onMouseUp:v,onLoad:x,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Fe,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const Kc="https://schemas.wp.org/trunk/block.json",Qc="Google Forms",Ac="embedpress/google-forms-block",ep="embedpress",op="Embed Google Forms with seamless integration for surveys, contact forms, and data collection with responsive design.",tp=2,sp="embedpress",lp="embedpress-blocks-editor",np="embedpress-blocks-editor-style",ap="embedpress-blocks-style",rp={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Os={$schema:Kc,title:Qc,name:Ac,category:ep,description:op,apiVersion:tp,textdomain:sp,editorScript:lp,editorStyle:np,style:ap,supports:rp},ip={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:pt}=wp.i18n,{registerBlockType:dp}=wp.blocks;let nn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-forms-block"]&&(nn=!0);nn&&dp(Os.name,{...Os,icon:_l,attributes:ip,keywords:[pt("embedpress","embedpress"),pt("google","embedpress"),pt("forms","embedpress"),pt("survey","embedpress")],edit:Jc,save:Vc});const cp=t=>{const{iframeSrc:o}=t.attributes;return e.jsx("figure",{className:"ose-google-docs-maps","data-embed-type":"Google Maps",children:e.jsx("iframe",{src:o,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"})})},{__:qs}=wp.i18n,{InspectorControls:pp}=wp.blockEditor,{PanelBody:up,RangeControl:Ws,RadioControl:mp}=wp.components,Zs=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(pp,{children:[e.jsxs(up,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",qs("Embed Size","embedpress")]}),className:"embedpress-google-maps-control",children:[e.jsxs("div",{className:"ep-google-maps-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(mp,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(Ws,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(Ws,{label:qs("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(ze,{})]})},{__:Ys}=wp.i18n,{useState:hp,useEffect:gp}=wp.element,{useBlockProps:fp}=wp.blockEditor;function bp({attributes:t,setAttributes:o,isSelected:s}){const l=fp(),{url:a,iframeSrc:n,width:p,height:d,unitoption:f}=t,[r,i]=hp({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:C,interactive:y}=r;gp(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},x=()=>{i(h=>({...h,fetching:!1}))},b=h=>(h&&typeof h=="string"&&(h=h.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),h=h.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),h),k=h=>{if(h&&h.preventDefault(),o({url:c}),c&&c.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var g=b(c);if(!c.match("~(maps/embed|output=embed)~i")){var E=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,B=E.exec(g);B&&B.length>1&&B[1]&&B[2]?g="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+B[1]+"&spn="+B[1]+"&t=m&z="+Math.round(parseInt(B[2]))+"&output=embed":i(N=>({...N,cannotEmbed:!0,editingURL:!0}))}i(N=>({...N,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})}else i(N=>({...N,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const $=Ys("Google Maps URL");let w="";return f=="%"?w="ep-percentage-width":w="ep-fixed-width",!n||u?e.jsxs("div",{...l,children:[e.jsx(Zs,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(g=>({...g,url:h.target.value})),icon:$l,DocTitle:Ys("Learn more about Google maps embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(Zs,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-maps-embed ${w}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(n),onMouseUp:v,onLoad:x,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Fe,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const yp="https://schemas.wp.org/trunk/block.json",xp="Google Maps",vp="embedpress/google-maps-block",Cp="embedpress",jp="Embed Google Maps with interactive location features, custom markers, and responsive map controls for enhanced user experience.",_p=2,kp="embedpress",$p="embedpress-blocks-editor",Pp="embedpress-blocks-editor-style",
324Sp="embedpress-blocks-style",Lp={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Xs={$schema:yp,title:xp,name:vp,category:Cp,description:jp,apiVersion:_p,textdomain:kp,editorScript:$p,editorStyle:Pp,style:Sp,supports:Lp},Bp={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:ut}=wp.i18n,{registerBlockType:Tp}=wp.blocks;let an=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-maps-block"]&&(an=!0);an&&Tp(Xs.name,{...Xs,icon:$l,attributes:Bp,keywords:[ut("embedpress","embedpress"),ut("google","embedpress"),ut("maps","embedpress"),ut("location","embedpress")],edit:bp,save:cp});const Fp=t=>{const{iframeSrc:o}=t.attributes;return e.jsx("figure",{className:"ose-google-docs-sheets","data-embed-type":"Google Sheets",children:e.jsx("iframe",{src:o,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"})})},{__:Js}=wp.i18n,{InspectorControls:Ep}=wp.blockEditor,{PanelBody:Mp,RangeControl:Ks,RadioControl:Np}=wp.components,Qs=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(Ep,{children:[e.jsxs(Mp,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Js("Embed Size","embedpress")]}),className:"embedpress-google-sheets-control",children:[e.jsxs("div",{className:"ep-google-sheets-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(Np,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(Ks,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}),e.jsx(Ks,{label:Js("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(ze,{})]})},{__:As}=wp.i18n,{useState:Up,useEffect:Dp}=wp.element,{useBlockProps:Rp}=wp.blockEditor;function Ip({attributes:t,setAttributes:o,isSelected:s}){const l=Rp(),{url:a,iframeSrc:n,width:p,height:d,unitoption:f}=t,[r,i]=Up({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:C,interactive:y}=r;Dp(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},x=()=>{i(h=>({...h,fetching:!1}))},b=h=>(h&&typeof h=="string"&&(h=h.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),h=h.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),h),k=h=>{if(h&&h.preventDefault(),o({url:c}),c&&c.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var g=b(c),E=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,B=E.exec(g),N=B[1];if(N&&N=="spreadsheets"){if(g.indexOf("?")>-1){var T=g.split("?");if(T=T[1],T=T.split("&"),T.length>0){var S=!1,Z=!1;T.map(V=>{V.indexOf("widget=")?Z=!0:V.indexOf("headers=")&&(S=!0)}),Z||(g+="&widget=true"),S||(g+="&headers=false")}}else g+="?widget=true&headers=false";i(V=>({...V,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})}else i(V=>({...V,cannotEmbed:!0,editingURL:!0}))}else i(V=>({...V,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const $=As("Google Sheets URL");let w="";return f=="%"?w="ep-percentage-width":w="ep-fixed-width",!n||u?e.jsxs("div",{...l,children:[e.jsx(Qs,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(g=>({...g,url:h.target.value})),icon:jl,DocTitle:As("Learn more about Google sheets embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(Qs,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-sheets-embed ${w}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(n),onMouseUp:v,onLoad:x,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}
324),e.jsx(Fe,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const zp="https://schemas.wp.org/trunk/block.json",Hp="Google Sheets",Gp="embedpress/google-sheets-block",Vp="embedpress",Op="Embed Google Sheets spreadsheets with live data updates and customizable display options for collaborative content.",qp=2,Wp="embedpress",Zp="embedpress-blocks-editor",Yp="embedpress-blocks-editor-style",Xp="embedpress-blocks-style",Jp={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},el={$schema:zp,title:Hp,name:Gp,category:Vp,description:Op,apiVersion:qp,textdomain:Wp,editorScript:Zp,editorStyle:Yp,style:Xp,supports:Jp},Kp={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:mt}=wp.i18n,{registerBlockType:Qp}=wp.blocks;let rn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-sheets-block"]&&(rn=!0);rn&&Qp(el.name,{...el,icon:jl,attributes:Kp,keywords:[mt("embedpress","embedpress"),mt("google","embedpress"),mt("sheets","embedpress"),mt("spreadsheet","embedpress")],edit:Ip,save:Fp});const Ap=t=>{const{iframeSrc:o}=t.attributes;return e.jsx("figure",{className:"ose-google-docs-slides","data-embed-type":"Google Slides",children:e.jsx("iframe",{src:o,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"})})},{__:ol}=wp.i18n,{InspectorControls:eu}=wp.blockEditor,{PanelBody:ou,RangeControl:tl,RadioControl:tu}=wp.components,sl=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(eu,{children:[e.jsxs(ou,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",ol("Embed Size","embedpress")]}),className:"embedpress-google-slides-control",children:[e.jsxs("div",{className:"ep-google-slides-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(tu,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(tl,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}),e.jsx(tl,{label:ol("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(ze,{})]})},{__:ll}=wp.i18n,{useState:su,useEffect:lu}=wp.element,{useBlockProps:nu}=wp.blockEditor;function au({attributes:t,setAttributes:o,isSelected:s}){const l=nu(),{url:a,iframeSrc:n,width:p,height:d,unitoption:f}=t,[r,i]=su({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:C,interactive:y}=r;lu(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},x=()=>{i(h=>({...h,fetching:!1}))},b=h=>(h&&typeof h=="string"&&(h=h.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),h=h.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),h),k=h=>{if(h&&h.preventDefault(),o({url:c}),c&&c.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var g=b(c),E=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,B=E.exec(g),N=B[1];N&&N=="presentation"?(g.match(/pub\?/i)&&(g=g.replace("/pub?","/embed?")),i(T=>({...T,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})):i(T=>({...T,cannotEmbed:!0,editingURL:!0}))}else i(T=>({...T,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const $=ll("Google Slides URL");let w="";return f=="%"?w="ep-percentage-width":w="ep-fixed-width",!n||u?e.jsxs("div",{...l,children:[e.jsx(sl,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(g=>({...g,url:h.target.value})),icon:Cl,DocTitle:ll("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(sl,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-slides-embed ${w}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(n),onMouseUp:v,onLoad:x,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}
324),e.jsx(Fe,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const ru="https://schemas.wp.org/trunk/block.json",iu="Google Slides",du="embedpress/google-slides-block",cu="embedpress",pu="Embed Google Slides presentations with interactive slideshow features and customizable viewing options.",uu=2,mu="embedpress",hu="embedpress-blocks-editor",gu="embedpress-blocks-editor-style",fu="embedpress-blocks-style",bu={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},nl={$schema:ru,title:iu,name:du,category:cu,description:pu,apiVersion:uu,textdomain:mu,editorScript:hu,editorStyle:gu,style:fu,supports:bu},yu={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:ht}=wp.i18n,{registerBlockType:xu}=wp.blocks;let dn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-slides-block"]&&(dn=!0);dn&&xu(nl.name,{...nl,icon:Cl,attributes:yu,keywords:[ht("embedpress","embedpress"),ht("google","embedpress"),ht("slides","embedpress"),ht("presentation","embedpress")],edit:au,save:Ap});const wu=t=>{const{iframeSrc:o,attrs:s}=t.attributes,l="ose-twitch-presentation",a=o+"&parent="+embedpressGutenbergData.twitch_host;return e.jsx("figure",{className:l,"data-embed-type":"Twitch",children:e.jsx("iframe",{src:a,...s,frameBorder:"0",width:"600",height:"450"})})},{__:al}=wp.i18n,{InspectorControls:vu}=wp.blockEditor,{PanelBody:Cu,RangeControl:rl,RadioControl:ju}=wp.components,il=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(vu,{children:[e.jsxs(Cu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",al("Embed Size","embedpress")]}),className:"embedpress-twitch-control",children:[e.jsxs("div",{className:"ep-twitch-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(ju,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(rl,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}),e.jsx(rl,{label:al("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(ze,{})]})},{__:dl}=wp.i18n,{useState:_u,useEffect:ku}=wp.element,{useBlockProps:$u}=wp.blockEditor;function Pu({attributes:t,setAttributes:o,isSelected:s}){const l=$u(),{url:a,iframeSrc:n,width:p,height:d,unitoption:f}=t,[r,i]=_u({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:C,interactive:y}=r;ku(()=>{!s&&y&&i(w=>({...w,interactive:!1}))},[s,y]);const v=()=>{i(w=>({...w,interactive:!0}))},x=()=>{i(w=>({...w,fetching:!1}))},b=w=>(w&&typeof w=="string"&&(w=w.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),w=w.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),w),k=w=>{w&&w.preventDefault(),o({url:c});var h=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(c&&c.match(h)){var g=b(c),E=h.exec(g),B=E[1],N="channel",T;switch(c.indexOf("clips.twitch.tv")>-1?N="clip":c.indexOf("/videos/")>-1?N="video":c.indexOf("#/chat$#")>-1&&(N="chat"),N){case"channel":g="https://player.twitch.tv/?channel="+B,T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":g="https://clips.twitch.tv/embed?clip="+B+"&autoplay=false",T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":B=E[2],g="https://player.twitch.tv/?video="+B,T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":g="http://www.twitch.tv/embed/"+B+"/chat",T={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+B+"'"};break}i(S=>({...S,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g,attrs:T})}else i(S=>({...S,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(w=>({...w,editingURL:!0}))},P=dl("Twitch URL");let $="";return f=="%"?$="ep-percentage-width":$="ep-fixed-width",!n||u?e.jsxs("div",{...l,children:[e.jsx(il,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:P,onSubmit:k,value:c,cannotEmbed:C,onChange:w=>i(h=>({...h,url:w.target.value})),icon:Pl,DocTitle:dl("Learn more about Twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(il,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-twitch-embed ${$}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(n),onMouseUp:v,onLoad:x,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}
324),e.jsx(Fe,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const Su="https://schemas.wp.org/trunk/block.json",Lu="Twitch",Bu="embedpress/twitch-block",Tu="embedpress",Fu="Embed Twitch videos, streams, and clips with customizable player options and responsive sizing controls.",Eu=2,Mu="embedpress",Nu="embedpress-blocks-editor",Uu="embedpress-blocks-editor-style",Du="embedpress-blocks-style",Ru={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},cl={$schema:Su,title:Lu,name:Bu,category:Tu,description:Fu,apiVersion:Eu,textdomain:Mu,editorScript:Nu,editorStyle:Uu,style:Du,supports:Ru},Iu={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:gt}=wp.i18n,{registerBlockType:zu}=wp.blocks;let cn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["twitch-block"]&&(cn=!0);cn&&zu(cl.name,{...cl,icon:Pl,attributes:Iu,keywords:[gt("embedpress","embedpress"),gt("twitch","embedpress"),gt("stream","embedpress"),gt("gaming","embedpress")],edit:Pu,save:wu});const Hu=t=>{const{iframeSrc:o}=t.attributes;return e.jsx("div",{className:"ose-wistia","data-embed-type":"Wistia",children:e.jsx("iframe",{src:o,allowtransparency:"true",frameBorder:"0",className:"wistia_embed",name:"wistia_embed",width:"600",height:"330"})})},{__:pl}=wp.i18n,{InspectorControls:Gu}=wp.blockEditor,{PanelBody:Vu,RangeControl:ul,RadioControl:Ou}=wp.components,ml=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(Gu,{children:[e.jsxs(Vu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",pl("Embed Size","embedpress")]}),className:"embedpress-wistia-control",children:[e.jsxs("div",{className:"ep-wistia-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(Ou,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(ul,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}),e.jsx(ul,{label:pl("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(ze,{})]})},{__:hl}=wp.i18n,{useState:qu,useEffect:Wu}=wp.element,{useBlockProps:Zu}=wp.blockEditor;function Yu({attributes:t,setAttributes:o,isSelected:s}){const l=Zu(),{url:a,iframeSrc:n,width:p,height:d,unitoption:f}=t,[r,i]=qu({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1,mediaId:""}),{editingURL:u,url:c,fetching:m,cannotEmbed:C,interactive:y}=r;Wu(()=>{!s&&y&&i(w=>({...w,interactive:!1}))},[s,y]);const v=()=>{i(w=>({...w,interactive:!0}))},x=()=>{if(i(w=>({...w,fetching:!1})),embedpressGutenbergData.wisita_options){let w={...r};setTimeout(function(){let h=document.createElement("script");h.src="https://fast.wistia.com/assets/external/E-v1.js",h.charset="ISO-8859-1",document.body.appendChild(h)},100),setTimeout(function(){let h=document.createElement("script");h.type="text/javascript",h.innerHTML="window.pp_embed_wistia_labels = "+embedpressGutenbergData.wistia_labels,document.body.appendChild(h),h=document.createElement("script"),h.type="text/javascript",h.innerHTML='wistiaEmbed = Wistia.embed( "'+w.mediaId+'", '+embedpressGutenbergData.wisita_options+" );",document.body.appendChild(h)},400)}},b=w=>{w&&w.preventDefault(),o({url:c});const h=c.match(/(?:wistia\.com\/medias\/|wi\.st\/)([a-zA-Z0-9]+)/);if(c&&h){let g=h[1],E=`//fast.wistia.net/embed/iframe/${g}`;i(B=>({...B,editingURL:!1,cannotEmbed:!1,mediaId:g})),o({iframeSrc:E})}else i(g=>({...g,cannotEmbed:!0,editingURL:!0}))},k=()=>{i(w=>({...w,editingURL:!0}))};if(n&&!(w=>/^\/\/fast\.wistia\.net\/embed\/iframe\//.test(w))(n))return e.jsx("div",{...l,children:"Invalid URL."});const P=hl("Wistia URL");let $="";return f=="%"?$="ep-percentage-width":$="ep-fixed-width",!n||u?e.jsxs("div",{...l,children:[e.jsx(ml,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:P,onSubmit:b,value:c,cannotEmbed:C,onChange:w=>i(h=>({...h,url:w.target.value})),icon:Sl,DocTitle:hl("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(ml,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-wistia-embed ${$}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(n),onMouseUp:v,onLoad:x,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}
324),e.jsx(Fe,{showEditButton:n&&!C,switchBackToURLInput:k})]})]})}const Xu="https://schemas.wp.org/trunk/block.json",Ju="Wistia",Ku="embedpress/wistia-block",Qu="embedpress",Au="Embed Wistia videos with professional video hosting features and advanced analytics integration.",em=2,om="embedpress",tm="embedpress-blocks-editor",sm="embedpress-blocks-editor-style",lm="embedpress-blocks-style",nm={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},gl={$schema:Xu,title:Ju,name:Ku,category:Qu,description:Au,apiVersion:em,textdomain:om,editorScript:tm,editorStyle:sm,style:lm,supports:nm},am={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:ft}=wp.i18n,{registerBlockType:rm}=wp.blocks;let pn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["wistia-block"]&&(pn=!0);pn&&rm(gl.name,{...gl,icon:Sl,attributes:am,keywords:[ft("embedpress","embedpress"),ft("wistia","embedpress"),ft("video","embedpress"),ft("embed","embedpress")],edit:Yu,save:Hu});const{useBlockProps:im}=wp.blockEditor,dm=({attributes:t})=>{const o=im.save(),{iframeSrc:s,width:l,height:a}=t;return s?e.jsx("div",{...o,children:e.jsx("div",{className:"embedpress-youtube-embed ep-fixed-width",style:{width:`${l}px`,height:`${a}px`},"data-embed-type":"YouTube",children:e.jsx("iframe",{src:de(s),style:{width:"100%",height:"100%"},frameBorder:"0",width:l,height:a,allowFullScreen:!0})})}):null},{__:fl}=wp.i18n,{InspectorControls:cm}=wp.blockEditor,{PanelBody:pm,RangeControl:bl}=wp.components,yl=({attributes:t,setAttributes:o})=>{const{width:s,height:l}=t,a=1,n=1500;return e.jsxs(cm,{children:[e.jsxs(pm,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",fl("Embed Size","embedpress")]}),className:"embedpress-youtube-control",children:[e.jsxs("div",{className:"ep-youtube-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(bl,{value:s,onChange:p=>o({width:p}),min:a,max:n})]}),e.jsx(bl,{label:fl("Height","embedpress"),value:l,onChange:p=>o({height:p}),min:a,max:n})]}),e.jsx(ze,{})]})},{__:xl}=wp.i18n,{useState:um,useEffect:mm}=wp.element,{useBlockProps:hm}=wp.blockEditor;function gm({attributes:t,setAttributes:o,isSelected:s}){const l=hm(),{url:a,iframeSrc:n,width:p,height:d}=t,[f,r]=um({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:i,url:u,fetching:c,cannotEmbed:m,interactive:C}=f;mm(()=>{!s&&C&&r($=>({...$,interactive:!1}))},[s,C]);const y=()=>{r($=>({...$,interactive:!0}))},v=()=>{r($=>({...$,fetching:!1}))},x=$=>{$&&$.preventDefault(),o({url:u});const w=u.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(u&&w){let g=w[1],E="https://www.youtube.com/embed/"+g,B=new URL(E);if(typeof embedpressProObj<"u")for(var h in embedpressProObj.youtubeParams)B.searchParams.set(h,embedpressProObj.youtubeParams[h]);r(N=>({...N,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:B.href,mediaId:g})}else r(g=>({...g,cannotEmbed:!0,editingURL:!0}))},b=()=>{r($=>({...$,editingURL:!0}))};if(n&&!($=>{var w=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;return w.test($)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const _=xl("YouTube URL");let P="ep-fixed-width";return!n||i?e.jsxs("div",{...l,children:[e.jsx(yl,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:_,onSubmit:x,value:u,cannotEmbed:m,onChange:$=>r(w=>({...w,url:$.target.value})),icon:Ll,DocTitle:xl("Learn more about YouTube embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(yl,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-youtube-embed ${P}`,style:{width:`${p}px`,height:`${d}px`},children:[c?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(n),onMouseUp:y,onLoad:v,style:{display:c?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:p,height:d}),!C&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:y}
324),e.jsx(Fe,{showEditButton:n&&!m,switchBackToURLInput:b})]})]})}const fm="https://schemas.wp.org/trunk/block.json",bm="YouTube",ym="embedpress/youtube-block",xm="embedpress",wm="Embed YouTube videos with advanced customization options including custom player controls, autoplay, and responsive sizing.",vm=2,Cm="embedpress",jm="embedpress-blocks-editor",_m="embedpress-blocks-editor-style",km="embedpress-blocks-style",$m={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Pm={$schema:fm,title:bm,name:ym,category:xm,description:wm,apiVersion:vm,textdomain:Cm,editorScript:jm,editorStyle:_m,style:km,supports:$m},Sm={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},mediaId:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:bt}=wp.i18n;Wo(Pm,{icon:Ll,attributes:Sm,keywords:[bt("embedpress","embedpress"),bt("youtube","embedpress"),bt("video","embedpress"),bt("embed","embedpress")],edit:gm,save:dm});const{addFilter:Co,applyFilters:Ye}=wp.hooks,{MediaUpload:Lm}=wp.blockEditor,{__:je}=wp.i18n,{ToggleControl:Bm,SelectControl:Tm,Button:Fm,ColorPalette:Em,TextControl:Mm,RangeControl:Nm}=wp.components,jo=embedpressGutenbergData.isProPluginActive,Mo=(t,o)=>e.jsxs("div",{children:[t,o&&e.jsx("span",{className:"isPro",children:"pro"})]});jo||(Co("embedpress.uploadPlaceholder","embedpress/uploadPlaceholder",(t,o=!0)=>(t.push(e.jsxs("div",{className:"pro-control ep-custom-logo-button",onClick:s=>{uo(s,jo)},children:[e.jsx(Lm,{render:()=>e.jsx(Fm,{className:"ep-logo-upload-button",icon:"upload",children:je("Upload Image","embedpress")})}),Mo(null,o)]})),t)),Co("embedpress.togglePlaceholder","embedpress/togglePlaceholder",(t,o,s,l=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:a=>{uo(a,jo)},children:[e.jsx(Bm,{label:je(o),checked:s}),Mo(null,l)]})),t)),Co("embedpress.selectPlaceholder","embedpress/selectPlaceholder",(t,o,s,l,a=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:n=>{uo(n,jo)},children:[e.jsx(Tm,{label:je(o,"embedpress"),value:s,options:[{label:l,value:s}],className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),Mo(null,a)]})),t)),Co("embedpress.colorPlatePlaceholder","embedpress/colorPlatePlaceholder",(t,o,s,l,a=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:n=>{uo(n,jo)},children:[e.jsx(M,{headerText:o}),e.jsx(Em,{label:je(o),colors:l,value:s}),Mo(null,a)]})),t)),Co("embedpress.textControlPlaceholder","embedpress/textControlPlaceholder",(t,o,s,l=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:a=>{uo(a,jo)},children:[e.jsx(Mm,{label:je(o,"embedpress"),value:s}),Mo(null,l)]})),t)),Co("embedpress.rangeControlPlaceholder","embedpress/rangeControlPlaceholder",(t,o,s,l=0,a=100,n=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:p=>{uo(p,jo)},children:[e.jsx(Nm,{label:je(o,"embedpress"),value:s,min:l,max:a}),Mo(null,n)]})),t)),Co("embedpress.adsPlaceholder","embedpress/adsPlaceholder",t=>(t.push(e.jsxs("div",{className:"ad-manager-controllers opacity",children:[Ye("embedpress.selectPlaceholder",[],je("Ad Source"),"video","Upload Video",!1),e.jsxs("div",{className:"ad-upload",children:[e.jsx("label",{className:"custom-share-thumbnail-label",children:"Ad Label"}),Ye("embedpress.uploadPlaceholder",[],!1)]}),e.jsxs("div",{children:[Ye("embedpress.textControlPlaceholder",[],je("Ad Width"),"",!1),Ye("embedpress.textControlPlaceholder",[],je("Ad Height"),"",!1),Ye("embedpress.rangeControlPlaceholder",[],je("Ad X position(%)"),50,0,100,!1),Ye("embedpress.rangeControlPlaceholder",[],je("Ad Y position(%)"),50,0,100,!1)]}),Ye("embedpress.textControlPlaceholder",[],je("Ad URL"),"",!1),Ye("embedpress.textControlPlaceholder",[],je("Ad Start After (sec)"),"",!1),Ye("embedpress.togglePlaceholder",[],je("Ad Skip Button"),!1,!1),Ye("embedpress.textControlPlaceholder",[],je("Skip Button After (sec)"),"",!1)]})),t)));const{__:Um}=wp.i18n;Um("Embed a google document.");const{__:kg}=wp.i18n,{__:Dm}=wp.i18n;wp.blocks&&wp.blocks.registerBlockCollection&&wp.blocks.registerBlockCollection("embedpress",{title:Dm("EmbedPress","embedpress"),icon:G});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.