PageSourceSearch

https://berkanewecan.ma/wp-content/cache/wpfc-minified/kcbwyypk/1y5ep.js

js berkanewecan.ma collected 2026-10-03 18:50:03 UTC 236,205 bytes, 279 lines download raw bytes

1import{j as e,g as yl,R as xl}from"./chunks/index-DOwIfqLg.js";const{G:io,Path:R,Polygon:Im,SVG:Xe}=wp.components,Yt=e.jsxs(Xe,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",children:[" ",e.jsxs(io,{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 "})]})]}),wl=e.jsx(Xe,{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(io,{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_)"}})]})}),vl=e.jsx(Xe,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:e.jsxs(io,{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 "})]})}),Cl=e.jsxs(Xe,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(io,{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 "})]})]}),jl=e.jsxs(Xe,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(io,{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(Xe,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(io,{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 "})]})]}),kl=e.jsxs(Xe,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(io,{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 "})]})]}),$l=e.jsxs(Xe,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1",children:[" ",e.jsxs(io,{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"})]})]}),Pl=e.jsx(Xe,{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"})}),Sl=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"})})]}),Ll=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
2V416z`}),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
3c0,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
4M118.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
5c58.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
6h-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
7c5.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"})]}),Bl=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"})]}),pn=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"})]}),un=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"})}),mn=()=>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"})]})}),hn=()=>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"})})}),gn=()=>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"})})}),fn=()=>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"})})}),bn=()=>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",{})]})}),yn=()=>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 Tl={exports:{}},Fl={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}};Fl.exports=o})();var xn=Fl.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;var wn=function(t){return t!=null&&(El(t)||vn(t)||!!t._isBuffer)};function El(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function vn(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&El(t.slice(0,0))}(function(){var t=xn,o=Qt.utf8,s=wn,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());
7for(var d=t.bytesToWords(n),g=n.length*8,r=1732584193,i=-271733879,m=-1732584194,c=271733878,u=0;u<d.length;u++)d[u]=(d[u]<<8|d[u]>>>24)&16711935|(d[u]<<24|d[u]>>>8)&4278255360;d[g>>>5]|=128<<g%32,d[(g+64>>>9<<4)+14]=g;for(var C=a._ff,y=a._gg,v=a._hh,w=a._ii,u=0;u<d.length;u+=16){var b=r,k=i,_=m,S=c;r=C(r,i,m,c,d[u+0],7,-680876936),c=C(c,r,i,m,d[u+1],12,-389564586),m=C(m,c,r,i,d[u+2],17,606105819),i=C(i,m,c,r,d[u+3],22,-1044525330),r=C(r,i,m,c,d[u+4],7,-176418897),c=C(c,r,i,m,d[u+5],12,1200080426),m=C(m,c,r,i,d[u+6],17,-1473231341),i=C(i,m,c,r,d[u+7],22,-45705983),r=C(r,i,m,c,d[u+8],7,1770035416),c=C(c,r,i,m,d[u+9],12,-1958414417),m=C(m,c,r,i,d[u+10],17,-42063),i=C(i,m,c,r,d[u+11],22,-1990404162),r=C(r,i,m,c,d[u+12],7,1804603682),c=C(c,r,i,m,d[u+13],12,-40341101),m=C(m,c,r,i,d[u+14],17,-1502002290),i=C(i,m,c,r,d[u+15],22,1236535329),r=y(r,i,m,c,d[u+1],5,-165796510),c=y(c,r,i,m,d[u+6],9,-1069501632),m=y(m,c,r,i,d[u+11],14,643717713),i=y(i,m,c,r,d[u+0],20,-373897302),r=y(r,i,m,c,d[u+5],5,-701558691),c=y(c,r,i,m,d[u+10],9,38016083),m=y(m,c,r,i,d[u+15],14,-660478335),i=y(i,m,c,r,d[u+4],20,-405537848),r=y(r,i,m,c,d[u+9],5,568446438),c=y(c,r,i,m,d[u+14],9,-1019803690),m=y(m,c,r,i,d[u+3],14,-187363961),i=y(i,m,c,r,d[u+8],20,1163531501),r=y(r,i,m,c,d[u+13],5,-1444681467),c=y(c,r,i,m,d[u+2],9,-51403784),m=y(m,c,r,i,d[u+7],14,1735328473),i=y(i,m,c,r,d[u+12],20,-1926607734),r=v(r,i,m,c,d[u+5],4,-378558),c=v(c,r,i,m,d[u+8],11,-2022574463),m=v(m,c,r,i,d[u+11],16,1839030562),i=v(i,m,c,r,d[u+14],23,-35309556),r=v(r,i,m,c,d[u+1],4,-1530992060),c=v(c,r,i,m,d[u+4],11,1272893353),m=v(m,c,r,i,d[u+7],16,-155497632),i=v(i,m,c,r,d[u+10],23,-1094730640),r=v(r,i,m,c,d[u+13],4,681279174),c=v(c,r,i,m,d[u+0],11,-358537222),m=v(m,c,r,i,d[u+3],16,-722521979),i=v(i,m,c,r,d[u+6],23,76029189),r=v(r,i,m,c,d[u+9],4,-640364487),c=v(c,r,i,m,d[u+12],11,-421815835),m=v(m,c,r,i,d[u+15],16,530742520),i=v(i,m,c,r,d[u+2],23,-995338651),r=w(r,i,m,c,d[u+0],6,-198630844),c=w(c,r,i,m,d[u+7],10,1126891415),m=w(m,c,r,i,d[u+14],15,-1416354905),i=w(i,m,c,r,d[u+5],21,-57434055),r=w(r,i,m,c,d[u+12],6,1700485571),c=w(c,r,i,m,d[u+3],10,-1894986606),m=w(m,c,r,i,d[u+10],15,-1051523),i=w(i,m,c,r,d[u+1],21,-2054922799),r=w(r,i,m,c,d[u+8],6,1873313359),c=w(c,r,i,m,d[u+15],10,-30611744),m=w(m,c,r,i,d[u+6],15,-1560198380),i=w(i,m,c,r,d[u+13],21,1309151649),r=w(r,i,m,c,d[u+4],6,-145523070),c=w(c,r,i,m,d[u+11],10,-1120210379),m=w(m,c,r,i,d[u+2],15,718787259),i=w(i,m,c,r,d[u+9],21,-343485551),r=r+b>>>0,i=i+k>>>0,m=m+_>>>0,c=c+S>>>0}return t.endian([r,i,m,c])};a._ff=function(n,p,d,g,r,i,m){var c=n+(p&d|~p&g)+(r>>>0)+m;return(c<<i|c>>>32-i)+p},a._gg=function(n,p,d,g,r,i,m){var c=n+(p&g|d&~g)+(r>>>0)+m;return(c<<i|c>>>32-i)+p},a._hh=function(n,p,d,g,r,i,m){var c=n+(p^d^g)+(r>>>0)+m;return(c<<i|c>>>32-i)+p},a._ii=function(n,p,d,g,r,i,m){var c=n+(d^(p|~g))+(r>>>0)+m;return(c<<i|c>>>32-i)+p},a._blocksize=16,a._digestsize=16,Tl.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 Cn=Tl.exports;const Fo=yl(Cn),jn=(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)}
7=${encodeURIComponent(s[a])}`).join("&");o.send(l)},kn=()=>{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))}o=s})},Ml=({attributes:t})=>{const{customPlayer:o}=t;if(!o)return"";const{playerPreset:s,playerColor:l,posterThumbnail:a,playerPip:n,playerRestart:p,playerRewind:d,playerFastForward:g,playerTooltip:r,playerHideControls:i,playerDownload:m,starttime:c,endtime:u,relatedvideos:C,muteVideo:y,fullscreen:v,vstarttime:w,vautoplay:b,vautopause:k,vdnt:_}=t,S={rewind:d,restart:p,pip:n,poster_thumbnail:a,player_color:l,player_preset:s,fast_forward:g,player_tooltip:r,hide_controls:i,download:m,...c&&{start:c},...u&&{end:u},...C&&{rel:C},...y&&{mute:y},...v&&{fullscreen:v},...w&&{t:w},...b&&{autoplay:b},...k&&{autopause:k},..._&&{dnt:_}};return JSON.stringify(S)},Nl=({attributes:t})=>{const{instaLayout:o,slidesShow:s,slidesScroll:l,carouselAutoplay:a,autoplaySpeed:n,transitionSpeed:p,carouselLoop:d,carouselArrows:g,carouselSpacing:r}=t;return o!=="insta-carousel"?"":JSON.stringify({layout:o,slideshow:s,autoplay:a,autoplayspeed:n,transitionspeed:p,loop:d,arrows:g,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),bt=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)&&!bt(t)&&!yt(t)&&!Dl(t),yt=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/(?:c\/|channel\/|user\/|@)[\w-]+\/live\/?$/i.test(t),Dl=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/shorts\/[\w-]+/i.test(t),Ul=t=>/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/\d+/i.test(t),Rl=t=>/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i.test(t),Il=t=>/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/[\w.-]+\/?$/i.test(t),Ot=t=>/^(?:https?:\/\/)?(?:www\.)?opensea\.io\/collection\/[\w.-]+\/?$/i.test(t),zl=t=>/^(?:https?:\/\/)?(?:www\.)?opensea\.io\/assets\/[\w.-]+\/[\w.-]+\/?$/i.test(t),$n=t=>/^(?:https?:\/\/)?(?:www\.)?calendly\.com\/[\w.-]+/i.test(t),Pn=t=>/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/@[\w.-]+\/video\/([\w.-]+)$/i.test(t),Sn=t=>/^https?:\/\/(www\.)?spreaker\.com\/(show|user|podcast|episode)\/[^/]+/.test(t),Ln=t=>/^https:\/\/(photos\.app\.goo\.gl|photos\.google\.com)\/.*$/i.test(t),Bn=(t,o)=>{const{url:s,posterThumbnail:l,customPlayer:a,playerTooltip:n,playerHideControls:p,playerPreset:d,playerColor:g,playerPip:r,playerRestart:i,playerRewind:m,playerFastForward:c,fullscreen:u,vautopause:C,vdnt:y,vstarttime:v}=o,w=Ht(s);zt(s);const b=setInterval(()=>
7{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 S=new Plyr(k,{controls:["play-large","restart","rewind","play","fast-forward","progress","current-time","duration","mute","volume","captions","settings",w?"":"pip","airplay",_.download?"download":"",w?"":"fullscreen"],hideControls:p,tooltips:{controls:n,seek:n},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}}});l&&(S.poster=l)}},200)},Tn=(t,o)=>{const{url:s,instaLayout:l,slidesShow:a,slidesScroll:n,carouselAutoplay:p,autoplaySpeed:d,transitionSpeed:g,carouselLoop:r,carouselArrows:i,carouselSpacing:m}=o,c={layout:l,slidesPerView:a,spacing:m,loop:r,autoplay:p,autoplaySpeed:d,transitionSpeed:g,arrows:i,breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:4}}},u=setInterval(()=>{if(document.querySelector(`[data-carouselid="${t}"] .embedpress-insta-container`)&&typeof CgCarousel<"u"){clearInterval(u);const y=new CgCarousel(`[data-carouselid="${t}"] .embedpress-insta-container`,c,{});if(i){const b=document.querySelector(`[data-carouselid="${t}
7"] .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 w=document.querySelector(`[data-carouselid="${t}"] #js-carousel__prev-1`);w&&w.addEventListener("click",()=>y.prev())}},200)},{Fragment:Fn}=wp.element;function Hl({attributes:t}){const{url:o,clientId:s,width:l,height:a,videosize:n,ispagination:p,gapbetweenvideos:d,ytChannelLayout:g,columns:r,customlogo:i,loadmore:m,itemperpage:c,limit:u,customPlayer:C,fullscreen:y,posterThumbnail:v,playerPreset:w,playerColor:b,playerPip:k,playerRestart:_,playerRewind:S,playerFastForward:B,playerDownload:x,instaLayout:h}=t,f=Fo(s||""),D=k?"block":"none",L=_?"block":"none",$=S?"block":"none",T=B?"block":"none",P=y?"block":"none",Z=x?"block":"none";let O="repeat(auto-fit, minmax(250px, 1fr))";r>0&&(O=`repeat(auto-fit, minmax(calc(${100/r}% - ${d}px), 1fr))`);let W="flex";p||(W="none");let q="";i&&(q=`
8[data-source-id="source-${s}"] img.watermark.ep-custom-logo {
9display: block !important;
10}
11`);let H="none";return h==="insta-carousel"&&(H="block"),e.jsxs(Fn,{children:[bt(o)&&e.jsx("style",{children:`
12[data-source-id="source-${s}"] .ep-youtube__content__block .youtube__content__body .content__wrap:not(.youtube-carousel){
13gap: ${d}px!important;
14margin-top: ${d}px!important;
15display: grid!important;
16grid-template-columns: ${O}!important;
17}
18[data-source-id="source-${s}"] .ose-youtube{
19width: ${l}px!important;
20}
21[data-source-id="source-${s}"] .ose-youtube .ep-first-video iframe{
22max-height: ${a}px!important;
23}
24[data-source-id="source-${s}"] .ose-youtube > iframe{
25height: ${a}px!important;
26width: ${l}px!important;
27}
28[data-source-id="source-${s}"] .ep-youtube__content__block .ep-youtube__content__pagination{
29display: ${W}!important;
30}
31[data-source-id="source-${s}"] img.watermark{
32display: none;
33}
34[data-source-id="source-${s}"] .layout-list .ep-youtube__content__block .youtube__content__body .content__wrap{
35grid-template-columns: repeat(auto-fit, minmax(calc(100% - 30px), 1fr))!important;
36}
37${q}
38`}),!bt(o)&&!Ot(o)&&!zl(o)&&e.jsx("style",{children:`
39[data-source-id="source-${s}"] .ose-embedpress-responsive{
40width: ${l}px!important;
41height: ${a}px!important;
42max-height: ${a}px!important;
43}
44[data-source-id="source-${s}"] iframe{
45width: ${l}px!important;
46height: ${a}px!important;
47max-height: ${a}px!important;
48}
49[data-source-id="source-${s}"] .embedpress-yt-subscribe iframe{
50height: 100%!important;
51}
52[data-source-id="source-${s}"] .ose-youtube > iframe{
53height: ${a}px!important;
54width: ${l}px!important;
55}
56[data-source-id="source-${s}"] .ose-youtube{
57height: ${a}px!important;
58width: ${l}px!important;
59}
60[data-source-id="source-${s}"] .ose-giphy img{
61height: ${a}px!important;
62width: ${l}px!important;
63}
64[data-source-id="source-${s}"] .ose-google-docs img{
65height: ${a}px!important;
66width: ${l}px!important;
67}
68[data-source-id="source-${s}"] .ose-embedpress-responsive.ose-google-photos{
69height: 100% !important;
70max-height: 100% !important;
71}
72[data-source-id="source-${s}"] .embera-embed-responsive-provider-gettyimages,
73[data-source-id="source-${s}"] .embera-embed-responsive-provider-gettyimages iframe,
74[data-source-id="source-${s}"] .getty{
75width: ${l}px!important;
76height: ${a}px!important;
77max-height: ${a}px!important;
78max-width: 100%!important;
79}
80`}),Ot(o)&&e.jsx("style",{children:`
81[data-source-id="source-${s}"]{
82width: 900px;
83max-width: 100%!important;
84}
85[data-source-id="source-${s}"] .ose-opensea {
86width: calc(100% - 40px)!important;
87height: 100%!important;
88}
89[data-source-id="source-${s}"] .ose-opensea .ep_nft_item{
90display: none!important;
91}
92[data-source-id="source-${s}"] .ose-opensea .ep_nft_item:nth-of-type(-n+${m?c:u}){
93display: block !important;
94}
95`}),Rl(o)&&e.jsx("style",{children:`
96[data-source-id="source-${s}"] .ose-wistia{
97width: ${l}px!important;
98height: ${a}px!important;
99}
100.wistia_embed{
101width: 100%!important;
102height: 100%!important;
103}
104[data-source-id="source-${s}"] img.watermark{
105display: none;
106}
107${q}
108`}),(Gt(o)||Ul(o)||yt(o))&&e.jsx("style",{children:`
109[data-source-id="source-${s}"] img.watermark{
110display: none;
111}
112${q}
113`}),n==="responsive"&&(Gt(o)||yt(o))&&e.jsx("style",{children:`
114[data-source-id="source-${s}"] .ose-youtube {
115width: ${l}px!important;
116position: relative;
117padding: 0;
118padding-top: 56.5%;
119height: 100%!important;
120}
121[data-source-id="source-${s}"] .ose-youtube iframe {
122position: absolute;
123top: 0;
124left: 0;
125width: 100%;
126height: 100%!important;
127}
128`}),C&&e.jsx("style",{children:`
129[data-source-id="source-${s}"] {
130--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)"};}
131[data-source-id="source-${s}"] .custom-player-preset-1,
132[data-source-id="source-${s}"] .custom-player-preset-3,
133[data-source-id="source-${s}"] .custom-player-preset-4{
134--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)"};
135--plyr-range-fill-background: #fff;
136}
137[data-source-id="source-${s}"] [data-plyr="restart"] {
138display: ${L}!important;
139}
140[data-source-id="source-${s}"] [data-plyr="rewind"] {
141display: ${$}!important;
142}
143[data-source-id="source-${s}"] [data-plyr="fast-forward"] {
144display: ${T}!important;
145}
146[data-source-id="source-${s}"] [data-plyr="pip"] {
147display: ${D}!important;
148}
149[data-source-id="source-${s}"] [data-plyr="fullscreen"] {
150display: ${P}!important;
151}
152[data-source-id="source-${s}"] [data-plyr="download"] {
153display: ${Z}!important;
154}
155[data-playerid="${f}"] > .plyr {
156width: ${l}px!important;
157height: ${a}px!important;
158max-height: ${a}px!important;
159}
160${v&&v.length>=0?`[data-playerid="${f}"] .plyr--paused .plyr__poster {
161background-image: url("${v}")!important;
162opacity: 1!important;
163}`:""}
164`}),Il(o)&&e.jsx("style",{children:`
165[data-carouselid="${s}
165"] .cg-carousel__btns{
166display: ${H};}
167`})]})}const En=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""},ro=(t,o)=>{o||(document.querySelector(".pro__alert__wrap").style.display="block")},Ne=()=>{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"})},De=t=>{const o=`
168<div class="pro__alert__wrap" style="display: none;">
169<div class="pro__alert__card">
170<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>
171<h2>Opps...</h2>
172<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>
173<a href="#" class="button radius-10">Close</a>
174</div>
175</div>
176`,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"})},Gl=t=>{document.querySelector(".tips__alert__wrap").style.display="block"},Jt=()=>{const t=`
177<div class="tips__alert__wrap" style="display: none;">
178<div class="tips__alert__card">
179<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/idea.svg" alt=""/>
180<h2>Simply add "/live" to the channel's URL to embed a live video.</h2>
181<p>Note: If there are multiple live videos on the channel, just the most recent ones will be seen. </p>
182<a href="#" class="button radius-10">Close</a>
183</div>
184</div>
185`,o=document.createElement("div");return o.innerHTML=t,o},wt=(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)},Ol=(t,o,s,l,a)=>{let n=`<div class="ep-social-share share-position-${t}">`;return o&&(n+=`
186<a href="#" class="ep-social-icon facebook" target="_blank">
187<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>
188</a>`),s&&(n+=`
189<a href="#" class="ep-social-icon twitter" target="_blank">
190<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>
191</a>`),l&&(n+=`
192<a href="#" class="ep-social-icon pinterest" target="_blank">
193<svg xmlns="http://www.w3.org/2000/svg" height="800" width="1200" viewB
193ox="-36.42015 -60.8 315.6413 364.8">
194<path
195d="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"
196fill="#fff" />
197</svg>
198</a>`),a&&(n+=`
199<a href="#" class="ep-social-icon linkedin" target="_blank">
200<svg fill="#ffffff" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 310 310" xml:space="preserve"><g id="XMLID_801_"><path id="XMLID_802_" d="M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73
201C77.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
202c22.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
203c-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
204c25.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
205C310,145.43,300.549,94.761,230.454,94.761z"/></g></svg>
206</a>`),n+="</div>",n},jt=t=>/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/i.test(t),Mn=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)},Nn=(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),g=Math.max(Math.min(a+n,255),0);return"#"+((1<<24)+(p<<16)+(d<<8)+g).toString(16).slice(1)},Eo=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);
206if(!["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"}},Vt=t=>/^https?:\/\/(?:www\.)?instagram\.com\/explore\/tags\/([^/]+)\/?$/i.test(t),{useBlockProps:Dn}=wp.blockEditor,{applyFilters:Un}=wp.hooks;function Rn({attributes:t}){const o=Dn.save(),{url:s,embedHTML:l,width:a,height:n,contentShare:p,sharePosition:d,customPlayer:g,playerPreset:r,customlogo:i,logoX:m,logoY:c,logoOpacity:u,clientId:C,adManager:y,adSource:v,adFileUrl:w,adWidth:b,adHeight:k,adXPosition:_,adYPosition:S,shareFacebook:B,shareTwitter:x,sharePinterest:h,shareLinkedin:f,instaLayout:D,cEmbedType:L,cPopupButtonText:$,cPopupButtonBGColor:T,cPopupButtonTextColor:P,coverImageUrl:Z,playlist:O}=t;if(!s||In(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/"),U=s&&s.includes("wistia.com");s&&s.includes("spreaker.com");let I="",A="",V=d||"right";p&&(I="ep-content-share-enabled",A="ep-share-position-"+V);let ee="";g&&(ee=r||"preset-default");let F="";W&&(F="embedded-youtube-channel");let be="";q&&(be=D);let se="";(H||z)&&(se=" source-opensea");const ye={position:"relative",display:"inline-block"},le=Fo(C||"");let ne="";if(L==="popup_button"){let Ie=P,Ze=T;P&&!P.startsWith("#")&&(Ie="#"+P),T&&!T.startsWith("#")&&(Ze="#"+T),ne=`
207<div class="cbutton-preview-wrapper" style="margin-top:-${n}px">
208<h4 class="cbutton-preview-text">Preview Popup Button</h4>
209<div style="position: static" class="calendly-badge-widget">
210<div class="calendly-badge-content" style="color: ${Ie}; background: ${Ze};">
211${$}
212</div>
213</div>
214</div>
215`}let ae="";U&&(ae="<span class='ep-wistia-message'> Changes will be affected in frontend. </span>");let ce="";p&&(ce=Ol(d,B,x,h,f));const pe=Un("embedpress.customLogoComponent","",t),xe=`${a?`width:${a}px;`:""}${n?`height:${n}px;`:""}max-width:100%;`;let N=l||"";l&&(a||n)?N=l.replace(/<iframe([^>]*)>/gi,`<iframe$1 style="${xe}">`):!l&&s&&(N=`
216<div class="embedpress-placeholder" data-url="${s}" data-width="${a||600}" data-height="${n||400}">
217<!-- EmbedPress content will be loaded here -->
218</div>`);const uo=g?Ml({attributes:t}):"",ve=D==="insta-carousel"?Nl({attributes:t}):"";return e.jsxs("figure",{...o,"data-source-id":`source-${C}`,"data-embed-type":En(s),children:[e.jsxs("div",{className:`gutenberg-block-wraper ${I} ${A}${se}`,children:[e.jsx("div",{className:`position-${V}-wraper ep-embed-content-wraper ${F} ${ee} ${be}`,style:ye,...g?{"data-playerid":le}:{},...g?{"data-options":uo}:{},...D==="insta-carousel"?{"data-carouselid":le}:{},...D==="insta-carousel"?{"data-carousel-options":ve}:{},dangerouslySetInnerHTML:{__html:N+pe+ae+ce+ne}}),y&&v==="image"&&w&&e.jsx("div",{className:"main-ad-template",style:{position:"absolute",bottom:`${S}%`,left:`${_}%`,width:`${b}px`,height:`${k}px`,backgroundImage:`url(${w})`,backgroundSize:"cover",backgroundPosition:"center",zIndex:10},children:e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx("img",{src:w,alt:"Advertisement",style:{width:"100%",height:"100%",objectFit:"cover"}})})})]}),y&&v==="image"&&e.jsx("style",{dangerouslySetInnerHTML:{__html:`
219[data-source-id="source-${C}"] .main-ad-template div,
220.main-ad-template div img {
221height: 100%;
222}
223[data-source-id="source-${C}"] .main-ad-template {
224position: absolute;
225bottom: ${S}%;
226left: ${_}%;
227}
228`}}),e.jsx(Hl,{attributes:t})]})}function In(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,{__:zn}=wp.i18n,{TextControl:Hm,TextareaControl:Gm,ToggleControl:Om,PanelBody:Hn}=wp.components;function Mo({attributes:t,setAttributes:o}){const{lockContent:s,protectionType:l,userRole:a,lockHeading:n,lockSubHeading:p,lockErrorMessage:d,passwordPlaceholder:g,submitButtonText:r,submitUnlockingText:i,enableFooterMessage:m,footerMessage:c,contentPassword:u}=t,C=_t("embedpress.togglePlaceholder",[],"Enable Content Protection",!1);return e.jsxs(Hn,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",zn("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{__:Vm}=wp.i18n,{TextControl:qm,RangeControl:Wm,PanelBody:Zm,Button:Gn}=wp.components,{MediaUpload:On}=wp.blockEditor;function Vn({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(Gn,{className:"ep-logo-upload-button",icon:s?"update":"upload",onClick:n,children:s?"Change Image":"Upload Image"})})})]})}const{__:Se}=wp.i18n,{TextControl:qn,TextareaControl:Wn,ToggleControl:zo,SelectControl:Zn,PanelBody:Yn}=wp.components;function No({attributes:t,setAttributes:o}){const{customTitle:s,customDescription:l,contentShare:a,sharePosition:n,shareFacebook:p,shareTwitter:d,sharePinterest:g,shareLinkedin:r}=t;return e.jsxs(Yn,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Se("Social Share","embedpress")]}),initialOpen:!1,children:[e.jsx("div",{className:"content-share-toggle",children:e.jsx(zo,{label:Se("Enable Social Share"),checked:a,onChange:i=>o({contentShare:i})})}
228),a&&e.jsxs("div",{className:"content-share-controls",children:[e.jsx(qn,{label:Se("Title"),value:s,onChange:i=>o({customTitle:i}),placeholder:Se("Enter Title")}),e.jsx(Wn,{label:Se("Description"),placeholder:Se("Enter description"),value:l,onChange:i=>o({customDescription:i})}),e.jsx(Zn,{label:Se("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(Vn,{attributes:t,setAttributes:o}),e.jsx("h3",{children:Se("Share Platforms","embedpress")}),e.jsx(zo,{label:Se("Facebook"),checked:p!==!1,onChange:i=>o({shareFacebook:i})}),e.jsx(zo,{label:Se("Twitter"),checked:d!==!1,onChange:i=>o({shareTwitter:i})}),e.jsx(zo,{label:Se("Pinterest"),checked:g!==!1,onChange:i=>o({sharePinterest:i})}),e.jsx(zo,{label:Se("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,Xn=(t,o)=>{const s={};return Object.keys(t).forEach(l=>{l in o?s[l]=o[l]:s[l]=t[l]}),s},X=(t,o,s)=>{const l=Xn(s,o);return{...t,...l}},qt=t=>t.match(/\.(mp4|mov|avi|wmv|flv|mkv|webm|mpeg|mpg)$/i),At=t=>t.match(/\.(mp3|wav|ogg|aac)$/i),Vl=t=>/^https?:\/\/(www\.)?spreaker\.com\/(show|user|podcast|episode)\/[^/]+/.test(t),xt=t=>/^https:\/\/(photos\.app\.goo\.gl|photos\.google\.com)\/.*$/i.test(t),{__:Jn}=wp.i18n,{applyFilters:es}=wp.hooks,{TextControl:Km,RangeControl:Qm,PanelBody:Kn,Button:Am}=wp.components;function Qn({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(De()),Ne());const d=es("embedpress.uploadPlaceholder",[]);return e.jsx(Kn,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Jn("Custom Branding","embedpress")]}),initialOpen:!1,children:es("embedpress.customLogoSettings",[d],t,o)})}const{__:te}=wp.i18n,{applyFilters:fe}=wp.hooks,{SelectControl:eh,ToggleControl:He,ColorPalette:oh,Button:th,TextControl:os}=wp.components,An=[{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:g,customPlayer:r,starttime:i,endtime:m,autoplay:c,muteVideo:u,fullscreen:C,relatedvideos:y,vautoplay:v,vautopause:w,vdnt:b,posterThumbnail:k,playerPip:_,playerRestart:S,playerRewind:B,playerFastForward:x,playerPreset:h,playerColor:f,playerTooltip:D,playerHideControls:L,playerDownload:$}=o;qt(g),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt());const T=fe("embedpress.togglePlaceholder",[],te("Tooltip","embedpress"),!0),P=fe("embedpress.togglePlaceholder",[],te("Auto Hide Controls","embedpress"),!0),Z=fe("embedpress.togglePlaceholder",[],te("Source Link","embedpress"),!0),O=fe("embedpress.togglePlaceholder",[],te("Sticky Video","embedpress"),!1),W=fe("embedpress.uploadPlaceholder",[],te("Sticky Video","embedpress"),!1),q=fe("embedpress.selectPlaceholder",[],te("Preset","embedpress"),"default","Default"),H=fe("embedpress.colorPlatePlaceholder",[],te("Player Color","embedpress"),"#5b4e96",An),z=fe("embedpress.togglePlaceholder",[],te("Auto Paause","embedpress"),!1),U=fe("embedpress.togglePlaceholder",[],te("DNT","embedpress"),!1);return e.jsxs("div",{className:"ep-custom-player-controls",children:[fe("embedpress.youtubeControls",[q],o,s,"preset",t),(a||l||n)&&e.jsxs("div",{className:"youtube-player-controls",children:[e.jsx(os,{label:te("Start Time (in seconds)"),value:i,onChange:I=>s({starttime:I}),type:"number",className:"ep-control-field"}),e.jsx(os,{label:te("End Time (in seconds)"),value:m,onChange:I=>s({endtime:I}),type:"number",className:"ep-control-field"}),!r&&e.jsxs("div",{children:[e.jsx(He,{label:te("Auto Play"),checked:c,onChange:I=>s({autoplay:I})}),e.jsx(He,{label:te("Fullscreen Button"),checked:C,onChange:I=>s({fullscreen:I})})]})]}),fe("embedpress.youtubeControls",[H],o,s,"playerColor"),r&&(a||l)&&e.jsxs("div",{className:"remove-last-child-margin",children:[e.jsx(He,{label:te("Auto Play"),checked:c,onChange:I=>s({autoplay:I})}),c&&e.jsx(He,{label:te("Mute"),checked:u,onChange:I=>s({muteVideo:I})}),e.jsx(He,{label:te("Fullscreen Button"),checked:C,onChange:I=>s({fullscreen:I})})]}
228),p&&e.jsxs("div",{className:"vimeo-player-controls",children:[e.jsx(He,{label:te("Auto Play"),checked:v,onChange:I=>s({vautoplay:I})}),fe("embedpress.vimeoControls",[z],o,s,"autoPause"),fe("embedpress.vimeoControls",[U],o,s,"dnt")]}),e.jsx(He,{label:te("Restart"),checked:S,onChange:I=>s({playerRestart:I})}),e.jsx(He,{label:te("Rewind"),checked:B,onChange:I=>s({playerRewind:I})}),e.jsx(He,{label:te("Fast Forward"),checked:x,onChange:I=>s({playerFastForward:I})}),fe("embedpress.youtubeControls",[T],o,s,"tooltip"),fe("embedpress.youtubeControls",[P],o,s,"autoHide"),fe("embedpress.youtubeControls",[Z],o,s,"sourceLink"),fe("embedpress.youtubeControls",[O],o,s,"stickyVideo"),(a||l)&&e.jsxs("div",{className:"ep-yt-related-videos",children:[e.jsx(He,{label:te("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"}),fe("embedpress.youtubeControls",W,o,s,"thumbnail",t)]})]})},{isShallowEqualObjects:ql}=wp.isShallowEqual,{useState:Wl,useEffect:Zl}=wp.element,{applyFilters:Xo}=wp.hooks,{__:me}=wp.i18n,{addFilter:ea}=wp.hooks,{TextControl:kt,SelectControl:Jo,RangeControl:oa,ToggleControl:bo,PanelBody:ta}=wp.components,sa=()=>{ea("embedpress_block_rest_param","embedpress",la,10)},la=(t,o)=>{if(!o.url)return t;let s={},l={};(Yl(o.url)||Zt(o.url)||na(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 X(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$/),na=t=>/^https:\/\/www\.youtube\.com\/shorts\/[A-Za-z0-9_-]+$/.test(t),Yl=t=>{const o=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/i,s=t.match(o);return s?s[7].length===11:!1},Xl=t=>{const o={pagesize:null,ytChannelLayout:null},s=X({},t,o),[l,a]=Wl(s);return Zl(()=>{const n=X(l,t,o);ql(l||{},n)||a(n)},[t]),l},Jl=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=X({},t,o),[l,a]=Wl(s);return Zl(()=>{const n=X(l,t,o);ql(l||{},n)||a(n)},[t]),l},aa=(t,o)=>({youtubeParams:Wt(o)?Xl(t):Jl(t),isYTChannel:Wt(o),isYTVideo:Yl(o),isYTLive:Zt(o)});function $t({attributes:t,setAttributes:o,isYTChannel:s,isYTVideo:l,isYTLive:a,isYTShorts:n}){const{url:p,ispagination:d,pagesize:g,ytChannelLayout:r,columns:i,gapbetweenvideos:m,videosize:c,starttime:u,endtime:C,autoplay:y,muteVideo:v,controls:w,fullscreen:b,videoannotations:k,progressbarcolor:_,closedcaptions:S,modestbranding:B,relatedvideos:x,customPlayer:h}=t,f=embedpressGutenbergData.isProPluginActive;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt());const D=Xo("embedpress.togglePlaceholder",[],me("Closed Captions","embedpress"),!0),L=Xo("embedpress.selectPlaceholder",[],me("Modest Branding","embedpress"),"display","Display");r==="grid"&&i===1&&o({columns:3}),r==="list"&&o({columns:1});let $="Video per page";r==="carousel"&&($="Number of videos (max 50)");let T=" (Pro)";return f&&(T=""),!f&&(r=="grid"||r=="carousel")&&(ro(null,f),o({ytChannelLayout:"gallery"})),e.jsxs("div",{children:[s&&!a&&e.jsxs("div",{className:"ep__channel-yt-video-options",children:[e.jsx(Jo,{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:P=>o({ytChannelLayout:P}),__nextHasNoMarginBottom:!0}),e.jsx(kt,{label:me($),value:g,onChange:P=>o({pagesize:P})}),e.jsx("p",{children:"Specify the number of videos you wish to 
228show on each page."}),r!=="list"&&r!=="carousel"&&e.jsx(Jo,{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:P=>o({columns:P}),__nextHasNoMarginBottom:!0}),r!=="carousel"&&e.jsxs("div",{children:[e.jsx(oa,{label:me("Gap Between Videos"),value:m,onChange:P=>o({gapbetweenvideos:P}),min:1,max:100}),e.jsx("p",{children:"Specify the gap between youtube videos."})]}),r!="carousel"&&e.jsx(bo,{label:me("Pagination"),checked:d,onChange:P=>o({ispagination:P})}),e.jsxs("div",{className:"ep-tips-and-tricks",children:[G,e.jsxs("a",{href:"#",target:"_blank",onClick:P=>{P.preventDefault(),Gl()},children:[" ",me("Tips & Tricks","embedpress")," "]})]})]}),(l||a||n)&&e.jsx("div",{className:"ep__single-yt-video-options",children:e.jsxs(ta,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",me("Video Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(bo,{label:me("Enable Custom Player","embedpress"),checked:h,onChange:P=>o({customPlayer:P})}),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:u,onChange:P=>o({starttime:P}),type:"number",className:"ep-control-field"}),e.jsx(kt,{label:me("End Time (in seconds)"),value:C,onChange:P=>o({endtime:P}),type:"number",className:"ep-control-field"}),e.jsx(bo,{label:me("Auto Play"),checked:y,onChange:P=>o({autoplay:P})}),y&&e.jsxs("div",{className:"ep-yt-mute-videos",children:[e.jsx(bo,{label:me("Mute"),checked:v,onChange:P=>o({muteVideo:P})}),e.jsx("p",{children:"Mute the video to ensure autoplay works smoothly across all browsers. Recommended for autoplay-enabled videos."})]}),e.jsx(Jo,{label:me("Controls","embedpress"),value:w,options:[{label:"Display immediately",value:"1"},{label:"Hide controls",value:"0"},{label:"Display after user initiation immediately",value:"2"}],onChange:P=>o({controls:P}),className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),e.jsx(bo,{label:me("Fullscreen Button"),checked:b,onChange:P=>o({fullscreen:P})}),e.jsx(bo,{label:me("Video Annotations"),checked:k,onChange:P=>o({videoannotations:P})}),e.jsx(Jo,{label:me("Progress Bar Color","embedpress"),value:_,options:[{label:"Red",value:"red"},{label:"White",value:"white"}],onChange:P=>o({progressbarcolor:P}),className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),Xo("embedpress.youtubeControls",[D],t,o,"closedCaptions"),Xo("embedpress.youtubeControls",[L],t,o,"modestBranding"),e.jsxs("div",{className:"ep-yt-related-videos",children:[e.jsx(bo,{label:me("Related Videos"),checked:x,onChange:P=>o({relatedvideos:P})}),e.jsx("p",{children:"Enable to display related videos from all channels. Otherwise, related videos will show from the same channel."})]})]})]})})]})}const{useState:ts,useEffect:ra,useRef:ia}=wp.element,co=({attributes:t,setAttributes:o,deleteIcon:s,inEditor:l,progressBar:a})=>{const{adSource:n,adContent:p,adFileUrl:d,adSkipButton:g}=t,[r,i]=ts(!1),[m,c]=ts(0),u=ia(null),{adWidth:C,adHeight:y}=t,v=()=>{o({adFileUrl:""})},w=x=>{const[h,f]=x.split(":");return parseInt(h,10)*60+parseInt(f,10)};let b=0;p&&(b=p.fileLength?w(p.fileLength):0);const k=()=>{const x=u.current;if(x){const{currentTime:h}=x;c(h),h>=3&&i(!0)}};ra(()=>{if(n==="video")u.current.addEventListener("timeupdate",k);else{const x=setTimeout(()=>{i(!0)},3e3);return()=>{clearTimeout(x)}}},[n,p,d]);const _=()=>{o({adFileUrl:""})};let S={width:C+"px",height:y+"px"},B=!1;return l||(S={},B=!0),e.jsx("div",{className:"main-ad-template",style:S,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:u,className:"ep-ad",autoPlay:!0,muted:B,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"?m/b*100:100}%`,maxWidth:"100%"}})}),g&&r&&e.jsx("button",{title:"Skip Ad",className:"skip-ad-button",onClick:_,children:"Skip Ad"})]})})})},{useRef:da}=wp.element,{applyFilters:Ko}=wp.hooks,{__:ss}=wp.i18n,{TextControl:lh,RangeControl:nh,SelectControl:ah,ToggleControl:rh,PanelBody:ca,Button:ih}=wp.components,{MediaUpload:dh}=wp.blockEditor;function Do({attributes:t,setAttributes:o}){const{adManager:s,adSource:l,adContent:a,adFileUrl:n,adWidth:p,adHeight:d,adXPosition:g,adYPosition:r,adUrl:i,adStart:m,adSkipButton:c,adSkipButtonAfter:u}=t;da(null);const C=Ko("embedpress.togglePlaceholder",[],"Ads Settings",!0),y=Ko("embedpress.adsPlaceholder",[]);return e.jsxs(ca,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",ss("Ads Settings","embedpress")]}),initialOpen:!1,className:s?"":"disabled-content-protection",children:[Ko("embedpress.adsSettings",[C],t,o),Ko("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:[" ",ss("Need Help?","emebdpress")," "]})]})]})}const{isShallowEqualObjects:pa}=wp.isShallowEqual,{useState:ua,useEffect:ma}=wp.element,{__:E}=wp.i18n,{addFilter:ha}=wp.hooks,{SelectControl:Pt,RangeControl:St,ToggleControl:Ye,TextControl:ch,PanelBody:_e,ColorPalette:he,FontSizePicker:Ce}=wp.components,{InspectorControls:ph}=wp.blockEditor,{applyFilters:we}=wp.hooks,ga=()=>{ha("embedpress_block_rest_param","embedpress",fa,10)},fa=(t,o)=>!o.url||!(ba(o.url)||ls(o.url))?t:X(t,o,{limit:20,itemperpage:9,loadmore:!1,loadmorelabel:"Load More",orderby:"desc",layout:ls?"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
228dColor:"",buttonFontSize:"",loadmoreTextColor:"",loadmoreBackgroundColor:"",loadmoreTextFontsize:"",rankBtnColor:"",rankBtnFZ:"",rankBtnBorderColor:"",rankLabelColor:"",rankLabelFZ:"",detialTitleColor:"",detialTitleFZ:"",detailTextColor:"",detailTextLinkColor:"",detailTextFZ:""}),ba=t=>t.match(/\/collection\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.com\/)(\w+)[^?\/]*$/i),ls=t=>t.match(/\/assets\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.io\/)(\w+)[^?\/]*$/i),ya=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
228dColor:null,loadmoreTextFontsize:null,rankBtnColor:null,rankBtnFZ:null,rankBtnBorderColor:null,rankLabelColor:null,rankLabelFZ:null,detialTitleColor:null,detialTitleFZ:null,detailTextColor:null,detailTextLinkColor:null,detailTextFZ:null},s=X({},t,o),[l,a]=ua(s);return ma(()=>{const n=X(l,t,o);pa(l||{},n)||a(n)},[t]),l};function xa({attributes:t,setAttributes:o,isOpensea:s,isOpenseaSingle:l}){const{limit:a,itemperpage:n,loadmore:p,loadmorelabel:d,orderby:g,layout:r,preset:i,nftperrow:m,gapbetweenitem:c,collectionname:u,nftimage:C,nftcreator:y,prefix_nftcreator:v,nfttitle:w,nftprice:b,prefix_nftprice:k,nftlastsale:_,prefix_nftlastsale:S,nftbutton:B,nftrank:x,label_nftrank:h,nftdetails:f,label_nftdetails:D,label_nftbutton:L,alignment:$,itemBGColor:T,collectionNameColor:P,collectionNameFZ:Z,titleColor:O,titleFontsize:W,creatorColor:q,creatorFontsize:H,creatorLinkColor:z,creatorLinkFontsize:U,priceLabelColor:I,priceLabelFontsize:A,priceColor:V,priceFontsize:ee,priceUSDColor:F,priceUSDFontsize:be,lastSaleLabelColor:se,lastSaleLabelFontsize:ye,lastSaleColor:le,lastSaleFontsize:ne,lastSaleUSDColor:ae,lastSaleUSDFontsize:ce,buttonTextColor:pe,buttonBackgroundColor:xe,buttonFontSize:N,loadmoreTextColor:uo,loadmoreBackgroun
228dColor:ve,loadmoreTextFontsize:Ie,rankBtnColor:Ze,rankBtnFZ:Wo,rankBtnBorderColor:mo,rankLabelColor:wo,rankLabelFZ:vo,detialTitleColor:Co,detialTitleFZ:jo,detailTextColor:Zo,detailTextLinkColor:_o,detailTextFZ:ho}=t;embedpressGutenbergData.isProPluginActive;const go=()=>{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"})},fo=j=>{const Ro=`
229<div class="pro__alert__wrap" style="display: none;">
230<div class="pro__alert__card">
231<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>
232<h2>Opps...</h2>
233<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>
234<a href="#" class="button radius-10">Close</a>
235</div>
236</div>
237`,Qe=document.createElement("div");return Qe.innerHTML=Ro,Qe};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(fo()),go());const re=[{name:E("Small"),slug:"small",size:16},{name:E("Medium"),slug:"medium",size:18},{name:E("Large"),slug:"big",size:26}],J=[{name:"",color:"red"},{name:"",color:"green"},{name:"",color:"blue"},{name:"",color:"yellow"},{name:"",color:"orange"}],ue=16;we("embedpress.uploadPlaceholder",[],E("Sticky Video","embedpress"),!1);const Ke=we("embedpress.textControlPlaceholder",[],E("Creator Prefix","embedpress"),""),K=we("embedpress.textControlPlaceholder",[],E("Price Prefix","embedpress"),""),ge=we("embedpress.textControlPlaceholder",[],E("Last Sale Prefix","embedpress"),""),Te=we("embedpress.textControlPlaceholder",[],E("Button Label","embedpress"),""),ko=we("embedpress.textControlPlaceholder",[],E("Rank Label","embedpress"),""),Uo=we("embedpress.textControlPlaceholder",[],E("Details Label","embedpress"),""),Yo=we("embedpress.togglePlaceholder",[],E("Load More","embedpress"),!1);return(s||l)&&e.jsxs("div",{children:[s&&e.jsx(_e,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",E("Query","embedpress")]}),initialOpen:!0,className:"ep-opensea-options",children:e.jsxs("div",{children:[e.jsx(St,{label:E("Limit","embedpress"),value:a,onChange:j=>o({limit:j}),min:1,max:100}),e.jsx(Pt,{label:E("Order By","embedpress"),value:g,options:[{label:"Oldest",value:"asc"},{label:"Newest",value:"desc"}],onChange:j=>o({orderby:j}),__nextHasNoMarginBottom:!0})]})}),s&&e.jsx(_e,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",E("Layout","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:e.jsxs("div",{children:[e.jsx(Pt,{label:E("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:E("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:E("Item Per Row","embedpress"),value:m||3,onChange:j=>o({nftperrow:j}),min:1,max:6}),e.jsx(St,{label:E("Gap Between Item","embedpress"),value:c,onChange:j=>o({gapbetweenitem:j}),min:1,max:100})]})}),e.jsxs(_e,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",E("Content","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:[l&&e.jsx(Ye,{label:E("Collection Name","embedpress"),checked:u,onChange:j=>o({collectionname:j})}),e.jsx(Ye,{label:E("Thumbnail","embedpress"),checked:C,onChange:j=>o({nftimage:j})}),e.jsx(Ye,{label:E("Title","embedpress"),checked:w,onChange:j=>o({nfttitle:j})}),e.jsx(Ye,{label:E("Creator","embedpress"),checked:y,onChange:j=>o({nftcreator:j})}),y&&we("embedpress.openseaControls",[Ke],t,o,"creatorPrefix"),e.jsx(Ye,{label:E("Show Price","embedpress"),checked:b,onChange:j=>o({nftprice:j})}),b&&we("embedpress.openseaControls",[K],t,o,"pricePrefix"),e.jsx(Ye,{label:E("Last Sale","embedpress"),checked:_,onChange:j=>o({nftlastsale:j})}),_&&we("embedpress.openseaControls",[ge],t,o,"lastSalePrefix"),e.jsx(Ye,{label:E("Show Button","embedpress"),checked:B,onChange:j=>o({nftbutton:j})}),B&&we("embedpress.openseaControls",[Te],t,o,"buttonLabel"),l&&e.jsxs("div",{children:[e.jsx(Ye,{label:E("Rank","embedpress"),checked:x,onChange:j=>o({nftrank:j})}),x&&we("embedpress.openseaControls",[ko],t,o,"rankLabel"),e.jsx(Ye,{label:E("Details","embedpress"),checked:f,onChange:j=>o({nftdetails:j})}),f&&we("embedpress.openseaControls",[Uo],t,o,"detailsLabel")]})]}),s&&e.jsx(_e,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",E("Load More","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:we("embedpress.openseaControls",[Yo],t,o,"loadMore")}),e.jsxs(_e,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",E("Color and Typography","embedpress")]}),initialOpen:!1,className:"ep-colors-typography",children:[e.jsx("p",{children:E("You can adjust the color and typography of embedded content.")}
237),e.jsxs("div",{className:"ep-opensea-sub-controls",children:[e.jsxs(_e,{title:E("Item"),initialOpen:!1,children:[e.jsx(M,{headerText:"Background Color"}),e.jsx(he,{label:E("Background Color"),colors:J,value:T,onChange:j=>o({itemBGColor:j})})]}),e.jsxs(_e,{title:E("Collection Name"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:E("Color"),colors:J,value:P,onChange:j=>o({collectionNameColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:Z,fallbackFontSize:ue,onChange:j=>o({collectionNameFZ:j})})]}),e.jsxs(_e,{title:E("Title"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:E("Color"),colors:J,value:O,onChange:j=>o({titleColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:W,fallbackFontSize:ue,onChange:j=>o({titleFontsize:j})})]}),e.jsxs(_e,{title:E("Creator"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:E("Color"),colors:J,value:q,onChange:j=>o({creatorColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:H,fallbackFontSize:ue,onChange:j=>o({creatorFontsize:j})}),e.jsx(M,{headerText:"Link Color"}),e.jsx(he,{label:E("Color"),colors:J,value:z,onChange:j=>o({creatorLinkColor:j})}),e.jsx(M,{headerText:"Link Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:U,fallbackFontSize:ue,onChange:j=>o({creatorLinkFontsize:j})})]}),e.jsxs(_e,{title:E("Current Price"),initialOpen:!1,children:[l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:E("Color"),colors:J,value:I,onChange:j=>o({priceLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:A,fallbackFontSize:ue,onChange:j=>o({priceLabelFontsize:j})})]}),e.jsx(M,{headerText:"ETH Price Color"}),e.jsx(he,{label:E("Color"),colors:J,value:V,onChange:j=>o({priceColor:j})}),e.jsx(M,{headerText:"ETH Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:ee,fallbackFontSize:ue,onChange:j=>o({priceFontsize:j})}),l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"USD Price Color"}),e.jsx(he,{label:E("Color"),colors:J,value:F,onChange:j=>o({priceUSDColor:j})}),e.jsx(M,{headerText:"USD Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:be,fallbackFontSize:ue,onChange:j=>o({priceUSDFontsize:j})})]})]}),e.jsxs(_e,{title:E("Last Sale Price"),initialOpen:!1,children:[l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:E("Color"),colors:J,value:se,onChange:j=>o({lastSaleLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:ye,fallbackFontSize:ue,onChange:j=>o({lastSaleLabelFontsize:j})})]}),e.jsx(M,{headerText:"ETH Color"}),e.jsx(he,{label:E("Color"),colors:J,value:le,onChange:j=>o({lastSaleColor:j})}),e.jsx(M,{headerText:"ETH Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:ne,fallbackFontSize:ue,onChange:j=>o({lastSaleFontsize:j})}),l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"USD Price Color"}),e.jsx(he,{label:E("Color"),colors:J,value:ae,onChange:j=>o({lastSaleUSDColor:j})}),e.jsx(M,{headerText:"USD Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:ce,fallbackFontSize:ue,onChange:j=>o({lastSaleUSDFontsize:j})})]})]}),e.jsxs(_e,{title:E("Button"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:E("Color"),colors:J,value:pe,onChange:j=>o({buttonTextColor:j})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(he,{label:E("Color"),colors:J,value:xe,onChange:j=>o({buttonBackgroundColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:N,fallbackFontSize:ue,onChange:j=>o({buttonFontSize:j})})]}),p&&we("embedpress.openseaControls",[],t,o,"loadmorePanelBody"),l&&e.jsxs(_e,{title:E("Rank"),initialOpen:!1,children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:E("Label Color"),colors:J,value:wo,onChange:j=>o({rankLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:vo,fallbackFontSize:ue,onChange:j=>o({rankLabelFZ:j})}),e.jsx(M,{headerText:"Color"}
237),e.jsx(he,{label:E("Title Color"),colors:J,value:Ze,onChange:j=>o({rankBtnColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:Wo,fallbackFontSize:ue,onChange:j=>o({rankBtnFZ:j})}),e.jsx(M,{headerText:"Border Color"}),e.jsx(he,{label:E("Color"),colors:J,value:mo,onChange:j=>o({rankBtnBorderColor:j})})]}),l&&e.jsxs(_e,{title:E("Details"),initialOpen:!1,children:[e.jsx(M,{headerText:"Title Color"}),e.jsx(he,{label:E("Title Color"),colors:J,value:Co,onChange:j=>o({detialTitleColor:j})}),e.jsx(M,{headerText:"Title Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:jo,fallbackFontSize:ue,onChange:j=>o({detialTitleFZ:j})}),e.jsx(M,{headerText:"Content Color"}),e.jsx(he,{label:E("Color"),colors:J,value:Zo,onChange:j=>o({detailTextColor:j})}),e.jsx(M,{headerText:"Link Color"}),e.jsx(he,{label:E("Color"),colors:J,value:_o,onChange:j=>o({detailTextLinkColor:j})}),e.jsx(M,{headerText:"Content Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:re,value:ho,fallbackFontSize:ue,onChange:j=>o({detailTextFZ:j})})]})]})]}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Mo,{attributes:t,setAttributes:o}),e.jsx(No,{attributes:t,setAttributes:o})]})}const{__:Ge}=wp.i18n,{isShallowEqualObjects:wa}=wp.isShallowEqual,{useState:va,useEffect:Ca}=wp.element,{addFilter:ja,applyFilters:Po}=wp.hooks,{TextControl:_a,SelectControl:uh,RangeControl:mh,ToggleControl:Qo,PanelBody:ka,Button:hh,ColorPalette:$a}=wp.components,Pa=()=>{ja("embedpress_block_rest_param","embedpress",Sa,10)},Sa=(t,o)=>{if(!o.url)return t;let s={};La(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 X(t,o,l)},La=t=>t.match(/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i),Ba=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=X({},t,o),[l,a]=va(s);return Ca(()=>{const n=X(l,t,o);wa(l||{},n)||a(n)},[t]),l};function Ta({attributes:t,setAttributes:o,isWistiaVideo:s}){const{wstarttime:l,wautoplay:a,scheme:n,captions:p,playbar:d,wfullscreen:g,playbutton:r,smallplaybutton:i,resumable:m,wistiafocus:c,volumecontrol:u,volume:C,rewind:y,customlogo:v,logoX:w,logoY:b,customlogoUrl:k,logoOpacity:_}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne());const S=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],B=Po("embedpress.togglePlaceholder",[],Ge("Captions","embedpress"),!0),x=Po("embedpress.togglePlaceholder",[],Ge("Volume Control","embedpress"),!0),h=Po("embedpress.rangeControlPlaceholder",[],Ge("Volume"),50,0,100,!0);return e.jsx("div",{children:s&&e.jsx("div",{className:"ep__single-yt-video-options",children:e.jsx(ka,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Ge("Wistia Video Controls","embedpress")]}),initialOpen:!1,children:e.jsxs("div",{className:"ep-video-controlers",children:[e.jsx(_a,{label:Ge("Start Time (In Seconds)"),value:l,onChange:f=>o({wstarttime:f}),type:"number",className:"ep-control-field"}),e.jsx(Qo,{label:Ge("Auto Play"),checked:a,onChange:f=>o({wautoplay:f})}),e.jsx(M,{headerText:"Scheme"}),e.jsx($a,{label:Ge("Scheme"),colors:S,value:n,onChange:f=>o({scheme:f})}),e.jsx("hr",{}),e.jsx(Qo,{label:Ge("Fullscreen Button"),checked:g,onChange:f=>o({wfullscreen:f})}),e.jsx(Qo,{label:Ge("Small Play Button"),checked:i,onChange:f=>o({smallplaybutton:f})}),Po("embedpress.wistiaControls",[B],t,o,"captions"),e.jsx(Qo,{label:Ge("Playbar"),checked:d,onChange:f=>o({playbar:f})}),Po("embedpress.wistiaControls",[x],t,o,"volume"),u&&Po("embedpress.wistiaControl
237s",[h],t,o,"volumeRange")]})})})})}const{isShallowEqualObjects:Fa}=wp.isShallowEqual,{useState:Ea,useEffect:Ma}=wp.element,{__:Fe}=wp.i18n,{addFilter:Na,applyFilters:So}=wp.hooks,{TextControl:Da,SelectControl:gh,RangeControl:fh,ToggleControl:Ho,PanelBody:Ua,Button:bh,ColorPalette:Ra}=wp.components,Ia=()=>{Na("embedpress_block_rest_param","embedpress",Ha,10)},za=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],Ha=(t,o)=>{if(!o.url)return t;let s={};Ga(o.url)&&(s={vstarttime:"",vautoplay:!1,vscheme:"#00ADEF",vtitle:!0,vauthor:!0,vavatar:!0,vloop:!1,vautopause:!1,vdnt:!1});const l={...s};return X(t,o,l)},Ga=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=X({},t,o),[l,a]=Ea(s);return Ma(()=>{const n=X(l,t,o);Fa(l||{},n)||a(n)},[t]),l};function Va({attributes:t,setAttributes:o,isVimeoVideo:s}){const{vstarttime:l,vautoplay:a,vscheme:n,vtitle:p,vauthor:d,vavatar:g,vloop:r,vautopause:i,vdnt:m,customPlayer:c,customlogo:u,logoX:C,logoY:y,customlogoUrl:v,logoOpacity:w}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne());const b=So("embedpress.togglePlaceholder",[],Fe("Loop","embedpress"),!1),k=So("embedpress.togglePlaceholder",[],Fe("Auto Paause","embedpress"),!1),_=So("embedpress.togglePlaceholder",[],Fe("DNT","embedpress"),!1);return e.jsx("div",{children:s&&e.jsx("div",{className:"ep__vimeo-video-options",children:e.jsxs(Ua,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Fe("Video Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(Ho,{label:Fe("Enable Custom Player","embedpress"),checked:c,onChange:S=>o({customPlayer:S})}),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:Fe("Start Time (In Seconds)"),value:l,onChange:S=>o({vstarttime:S}),type:"number",className:"ep-control-field"}),e.jsx(Ho,{label:Fe("Auto Play"),checked:a,onChange:S=>o({vautoplay:S})}),e.jsx(M,{headerText:"Scheme"}),e.jsx(Ra,{label:Fe("Scheme"),colors:za,value:n,onChange:S=>o({vscheme:S})}),e.jsx(Ho,{label:Fe("Title"),checked:p,onChange:S=>o({vtitle:S})}),e.jsx(Ho,{label:Fe("Author"),checked:d,onChange:S=>o({vauthor:S})}),e.jsx(Ho,{label:Fe("Avatar"),checked:g,onChange:S=>o({vavatar:S})}),So("embedpress.vimeoControls",[b],t,o,"loop"),So("embedpress.vimeoControls",[k],t,o,"autoPause"),So("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:ns,PanelBody:qa,Button:kh,ColorPalette:$h}=wp.components;function Wa({attributes:t,setAttributes:o}){const{url:s,vstarttime:l,vautoplay:a,vscheme:n,vtitle:p,vauthor:d,vavatar:g,vloop:r,vautopause:i,vdnt:m,customPlayer:c,customlogo:u,logoX:C,logoY:y,customlogoUrl:v,logoOpacity:w,autoPause:b}=t,k=qt(s),_=At(s);embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne());let S="Video Controls";return _&&(S="Audio Controls"),e.jsx("div",{children:(qt(s)||At(s))&&e.jsx("div",{className:"ep__vimeo-video-options",children:e.jsxs(qa,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Lt(S,"embedpress")]}),initialOpen:!1,children:[e.jsx(ns,{label:Lt("Auto-Pause","embedpress"),checked:b,onChange:B=>o({autoPause:B})}),e.jsx("p",{className:"control-description",children:"Pauses other players when a new one starts."}),e.jsx(ns,{label:Lt("Enable Custom Player","embedpress"),checked:c,onChange:B=>o({customPlayer:B})}),c&&e.jsx(Kt,{attributes:t,setAttributes:o,isSelfHostedVideo:k,isSelfHostedAudio:_})]})})})}const{isShallowEqualObjects:Za}=wp.isShallowEqual,{useState:Ya,useEffect:Xa}=wp.element,{applyFilters:eo}=wp.hooks,{__:Y}=wp.i18n,{addFilter:Ja}=wp.hooks,{TextControl:Oe,SelectControl:Bt,RangeControl:Ph,ToggleControl:Ee,PanelBody:as,Button:Sh,ColorPalette:Lh,PanelRow:Ka}=wp.components,Qa=()=>{Ja("embedpress_block_rest_param","embedpress",Aa,10)},Aa=(t,o)=>!o.url||!Eo(o.url)?t:X(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}),er=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=X({},t,o),[l,a]=Ya(s);return Xa(()=>{const n=X(l,t,o);Za(l||{},n)||a(n)},[t]),l};function or({attributes:t,setAttributes:o}){const{url:s,instaLayout:l,instafeedFeedType:a,instafeedAccountType:n,instafeedColumns:p,instafeedColumnsGap:d,instafeedPostsPerPage:g,instafeedTab:r,instafeedCommentsCount:i,instafeedLikesCount:m,instafeedPopup:c,instafeedPopupFollowBtn:u,instafeedPopupFollowBtnLabel:C,instafeedLoadmore:y,instafeedLoadmoreLabel:v,slidesShow:w,slidesScroll:b,carouselAutoplay:k,autoplaySpeed:_,transitionSpeed:S,carouselLoop:B,carouselArrows:x,carouselSpacing:h,carouselDots:f,instafeedProfileImage:D,instafeedProfileImageUrl:L,instafeedFollowBtn:$,instafeedFollowBtnLabel:T,instafeedPostsCount:P,instafeedPostsCountText:Z,instafeedFollowersCount:O,instafeedFollowersCountText:W,instafeedAccName:q}=t,H=Eo(s),z=F=>{o({instafeedProfileImageUrl:""})};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne());const U=[{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=eo("embedpress.uploadPlaceholder",[]),A=eo("embedpress.togglePlaceholder",[],Y("Feed Tab","embedpress"),!1),V=eo("embedpress.togglePlaceholder",[],Y("Likes Count","embedpress"),!1),ee=eo("embedpress.togglePlaceholder",[],Y("Comments Count","embedpress"),!1);return e.jsx("div",{children:H&&e.jsxs("div",{className:"ep__instafeed-options",children:[e.jsxs(as,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Y("Profile Settings","embedpress")]}),initialOpen:!1,children:[e.jsx(Ee,{label:Y("Profile Image","embedpress"),checked:D,onChange:F=>{o({instafeedProfileImage:F})}}),L&&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:L,alt:"John"})]}),D&&eo("embedpress.instafeedControls",[I],t,o,"profileImage"),e.jsx(Ee,{label:Y("Follow Button","embedpress"),checked:$,onChange:F=>o({instafeedFollowBtn:F})}),$&&e.jsx(Oe,{label:Y("Button Label","embedpress"),value:T,onChange:F=>o({instafeedFollowBtnLabel:F})}),e.jsx(Ee,{label:Y("Posts Count","embedpress"),checked:P,onChange:F=>o({instafeedPostsCount:F})}),P&&e.jsx(Oe,{label:Y("Count Text","embedpress"),value:Z,onChange:F=>o({instafeedPostsCountText:F})}),n==="business"&&e.jsx(Ee,{label:Y("Followers Count","embedpress"),checked:O,onChange:F=>o({instafeedFollowersCount:F})}),O&&n==="business"&&e.jsx(Oe,{label:Y("Count Text","embedpress"),value:W,onChange:F=>o({instafeedFollowersCountText:F})}),n==="business"&&e.jsx(Ee,{label:Y("Account Name","embedpress"),checked:q,onCh
237ange:F=>o({instafeedAccName:F})})]}),e.jsx(as,{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:F=>o({instaLayout:F}),__nextHasNoMarginBottom:!0}),l==="insta-carousel"&&e.jsx(Ka,{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:U,onChange:F=>o({instafeedColumns:F})}),e.jsx(Oe,{label:Y("Column Gap","embedpress"),value:d,onChange:F=>o({instafeedColumnsGap:F})})]}),l==="insta-carousel"&&e.jsxs("div",{children:[e.jsx(Bt,{label:Y("Slides to Show","embedpress"),value:w,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:F=>o({slidesShow:F}),__nextHasNoMarginBottom:!0}),e.jsx(Ee,{label:Y("Autoplay","embedpress"),checked:k,onChange:F=>o({carouselAutoplay:F})}),e.jsx(Oe,{label:Y("Autoplay Speed(ms)","embedpress"),value:_,onChange:F=>o({autoplaySpeed:F})}),e.jsx(Oe,{label:Y("Transition Speed(ms)","embedpress"),value:S,onChange:F=>o({transitionSpeed:F})}),e.jsx(Ee,{label:Y("Loop","embedpress"),checked:B,onChange:F=>o({carouselLoop:F})}),e.jsx(Oe,{label:Y("Space","embedpress"),value:h,onChange:F=>o({carouselSpacing:F})}),e.jsx(Ee,{label:Y("Arrows","embedpress"),checked:x,onChange:F=>o({carouselArrows:F})})]}),e.jsx(Oe,{label:Y("Posts Per Page","embedpress"),value:g,onChange:F=>o({instafeedPostsPerPage:F})}),eo("embedpress.instafeedControls",[A],t,o,"feedTab"),(n==="business"||a==="hashtag_type")&&eo("embedpress.instafeedControls",[V],t,o,"likesCount"),(n==="business"||a==="hashtag_type")&&eo("embedpress.instafeedControls",[ee],t,o,"commentsCount"),e.jsx(Ee,{label:Y("Popup","embedpress"),checked:c,onChange:F=>o({instafeedPopup:F})}),c&&e.jsxs("div",{children:[e.jsx(Ee,{label:Y("Popup Follow Button","embedpress"),checked:u,onChange:F=>o({instafeedPopupFollowBtn:F})}),u&&e.jsx(Oe,{label:Y("Follow Button Label","embedpress"),value:C,onChange:F=>o({instafeedPopupFollowBtnLabel:F})})]}),(l==="insta-grid"||l==="insta-masonry")&&e.jsx(Ee,{label:Y("Load More","embedpress"),checked:y,onChange:F=>o({instafeedLoadmore:F})}),y&&e.jsx(Oe,{label:Y("Load More Button Label","embedpress"),value:v,onChange:F=>o({instafeedLoadmoreLabel:F})})]})})]})})}const{isShallowEqualObjects:tr}=wp.isShallowEqual,{useState:sr,useEffect:lr}=wp.element,{applyFilters:rs}=wp.hooks,{__:$e}=wp.i18n,{addFilter:nr}=wp.hooks,{SelectControl:ar,RangeControl:Bh,ToggleControl:is,TextControl:rr,PanelBody:ds,ColorPalette:Go,FontSizePicker:Th}=wp.components,{InspectorControls:Fh}=wp.blockEditor,ir=()=>{nr("embedpress_block_rest_param","embedpress",dr,10)},dr=(t,o)=>o.url?X(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,cr=t=>{const o={cEmbedType:null,calendlyData:null,hideCookieBanner:null,hideEventTypeDetails:null,cBackgroundColor:null,cTextColor:null,cButtonLinkColor:null,cPopupButtonText:null,cPopupButtonBGColor:null,cPopupButtonTextColor:null,cPopupLinkText:null},s=X({},t,o),[l,a]=sr(s);return lr(()=>{const n=X(l,t,o);tr(l||{},n)||a(n)},[t]),l};function pr({attributes:t,setAttributes:o,isCalendly:s}){const{cEmbedType:l,calendlyData:a,hideCookieBanner:n,hideEventTypeDetails:p,cBackgroundColor:d,cTextColor:g,cButtonLinkColor:r,cPopupButtonText:i,cPopupButtonBGColor:m,cPopupButtonTextColor:c,cPopupLinkText:u}=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=`
238<div class="pro__alert__wrap" style="display: none;">
239<div class="pro__alert__card">
240<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>
241<h2>Opps...</h2>
242<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>
243<a href="#" class="button radius-10">Close</a>
244</div>
245</div>
246`,_=document.createElement("div");return _.innerHTML=k,_};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(y()),C()),$e("Small"),$e("Medium"),$e("Large");const v=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],w=rs("embedpress.togglePlaceholder",[],$e("Calendly Data","embedpress"),!1);return s&&e.jsxs("div",{children:[e.jsx(ds,{title:$e("Calendly Controls"),initialOpen:!1,className:"ep-calendly-options",children:e.jsxs("div",{children:[e.jsx(ar,{label:$e("Embed Type","embedpress"),value:l,options:[{label:"Inline",value:"inl
246ine"},{label:"Popup Button",value:"popup_button"}],onChange:b=>o({cEmbedType:b})}),rs("embedpress.calendlyControls",[w],t,o,"calendlyData"),a&&e.jsxs("div",{className:"ep-calendly-data-link",children:[un,e.jsxs("a",{href:"/wp-admin/admin.php?page=embedpress&page_type=calendly",target:"_blank",children:[" ",$e("View Calendly Data","embedpress")," "]})]}),e.jsx(is,{label:"Hide Cookie Banner",checked:n,onChange:b=>o({hideCookieBanner:b})}),e.jsx(is,{label:"Hide Event Type Details",checked:p,onChange:b=>o({hideEventTypeDetails:b})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(Go,{label:$e("Background Color"),colors:v,value:d,onChange:b=>o({cBackgroundColor:b})}),e.jsx(M,{headerText:"Text Color"}),e.jsx(Go,{label:$e("Text Color"),colors:v,value:g,onChange:b=>o({cTextColor:b})}),e.jsx(M,{headerText:"Button & Link Color"}),e.jsx(Go,{label:$e("Button & Link Color"),colors:v,value:r,onChange:b=>o({cButtonLinkColor:b})})]})}),e.jsx("div",{children:l==="popup_button"&&e.jsx(ds,{title:$e("Popup Settings"),initialOpen:!1,className:"ep-calendly-options",children:e.jsxs("div",{children:[e.jsx(rr,{label:"Button Text",value:i,onChange:b=>o({cPopupButtonText:b})}),e.jsx(M,{headerText:"Text Color"}),e.jsx(Go,{label:$e("Text Color"),colors:v,value:c,onChange:b=>o({cPopupButtonTextColor:b})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(Go,{label:$e("Background Color"),colors:v,value:m,onChange:b=>o({cPopupButtonBGColor:b})})]})})})]})}const{isShallowEqualObjects:ur}=wp.isShallowEqual,{useState:mr,useEffect:hr}=wp.element,{__:Q}=wp.i18n,{addFilter:gr,applyFilters:oo}=wp.hooks,{TextControl:Eh,SelectControl:cs,RangeControl:Mh,ToggleControl:Ve,PanelBody:fr,Button:Nh,ColorPalette:br}=wp.components,yr=()=>{gr("embedpress_block_rest_param","embedpress",xr,10)},xr=(t,o)=>!o.url||!Vl(o.url)?t:X(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}),wr=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,hideLogo:null,hideEpisodeDescription:null,hidePlaylistDescriptions:null,hidePlaylistImages:null,hideDownload:null},s=X({},t,o),[l,a]=mr(s);return hr(()=>{const n=X(l,t,o);ur(l||{},n)||a(n)},[t]),l};function vr({attributes:t,setAttributes:o}){const{url:s,theme:l,color:a,coverImageUrl:n,playlist:p,playlistContinuous:d,playlistLoop:g,playlistAutoupdate:r,chaptersImage:i,episodeImagePosition:m,hideLikes:c,hideComments:u,hideSharing:C,hideLogo:y,hideEpisodeDescription:v,hidePlaylistDescriptions:w,hidePlaylistImages:b,hideDownload:k}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne());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"}],S=oo("embedpress.togglePlaceholder",[],Q("Disable Download","embedpress"),!1),B=oo("embedpress.togglePlaceholder",[],Q("Continuous Playlist","embedpress"),!1),x=oo("embedpress.togglePlaceholder",[],Q("Loop Playlist","embedpress"),!1),h=oo("embedpress.uploadPlaceholder",[]);return e.jsx("div",{children:Vl(s)&&e.jsx("div",{className:"ep__vimeo-video-options",children:e.jsxs(fr,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Q("Spreaker Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(cs,{label:Q("Theme","embedpress"),value:l,options:[{label:Q("Light","embedpress"),value:"light"},{label:Q("Dark","embedpress"),value:"dark"}],onChange:f=>o({theme:f})}),e.jsx(M,{headerText:"Main Color "}),e.jsx(br,{colors:_,value:a,onChange:f=>o({color:f})}),e.jsx(M,{headerText:"Cover Image"}),oo("embedpress.spreakerControls",[h],t,o,"coverImage"),oo("embedpress.spreakerControls",[S],t,o,"hideDownload"),e.jsx(Ve,{label:Q("Enable Playlist","embedpress"),help:Q("This option is for podcast playlists and doesn’t affect individual episodes.","embedpress"),checked:p,onChange:f=>o({playlist:f})}),p&&e.jsxs("div",{children:[oo("embedpress.spreakerControls",[B],t,o,"playlistContinuous"),oo("embedpress.spreakerControls",[x],t,o,"playlistLoop"),e.jsx(Ve,{label:Q("Playlist Autoupdate","embedpress"),checked:r,onChange:f=>o({playlistAutoupdate:f})}),e.jsx(Ve,{label:Q("Hide Playlist Descriptions","embedpress"),checked:w,onChange:f=>o({hidePlaylistDescriptions:f})}),e.jsx(Ve,{label:Q("Hide Playlist Images","embedpress"),checked:b,onChange:f=>o({hidePlaylistImages:f})})]}),e.jsx(cs,{label:Q("Episode Image Position","embedpress"),value:m,options:[{label:Q("Right","embedpress"),value:"right"},{label:Q("Left","embedpress"),value:"left"}],onChange:f=>o({episodeImagePosition:f})}),e.jsx(Ve,{label:Q("Show Chapters Images","embedpress"),checked:i,onChange:f=>o({chaptersImage:f}),help:Q("Only applies if the podcast includes chapter images.","embedpress")}),e.jsx(Ve,{label:Q("Hide Likes","embedpress"),checked:c,onChange:f=>o({hideLikes:f})}),e.jsx(Ve,{label:Q("Hide Comments","embedpress"),checked:u,onChange:f=>o({hideComments:f})}),e.jsx(Ve,{label:Q("Hide Sharing","embedpress"),checked:C,onChange:f=>
246o({hideSharing:f})}),e.jsx(Ve,{label:Q("Hide Logo","embedpress"),checked:y,onChange:f=>o({hideLogo:f}),help:Q("Hide the Spreaker logo and branding in the player. Requires Broadcaster plan or higher.","embedpress")}),e.jsx(Ve,{label:Q("Hide Episode Description","embedpress"),checked:v,onChange:f=>o({hideEpisodeDescription:f})})]})})})}const{isShallowEqualObjects:Cr}=wp.isShallowEqual,{useState:jr,useEffect:_r}=wp.element,{addFilter:kr}=wp.hooks,{__:ke}=wp.i18n,{TextControl:Dh,SelectControl:$r,RangeControl:ps,ToggleControl:Tt,PanelBody:Pr,ColorPalette:Sr}=wp.components,Lr=()=>{kr("embedpress_block_rest_param","embedpress",Br,10)},Br=(t,o)=>!o.url||!xt(o.url)?t:X(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}),Tr=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=X({},t,o),[l,a]=jr(s);return _r(()=>{const n=X(l,t,o);Cr(l||{},n)||a(n)},[t]),l};function Fr({attributes:t,setAttributes:o}){const{url:s,mode:l,imageWidth:a,imageHeight:n,playerAutoplay:p,delay:d,repeat:g,mediaitemsAspectRatio:r,mediaitemsEnlarge:i,mediaitemsStretch:m,mediaitemsCover:c,backgroundColor:u,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"}],w=embedpressGutenbergData.isProPluginActive;let b=" (Pro)";return w&&(b=""),e.jsx("div",{children:xt(s)&&e.jsx("div",{className:"ep__google-photos-options",children:e.jsxs(Pr,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",ke("GooglePhotos Controls","embedpress")]}),initialOpen:!0,children:[e.jsx($r,{label:ke("Album Mode","embedpress"),value:l,options:[{label:ke("Carousel","embedpress"),value:"carousel"},{label:ke("Gallery Player","embedpress"),value:"gallery-player"},{label:ke("Grid"+b,"embedpress"),value:"gallery-grid"},{label:ke("Masonry "+b,"embedpress"),value:"gallery-masonary"},{label:ke("Justify "+b,"embedpress"),value:"gallery-justify"}],onChange:k=>{(k==="gallery-justify"||k==="gallery-grid"||k==="gallery-masonary")&&!w?ro(null,w):o({mode:k})}}),l=="gallery-player"&&e.jsxs("frameElement",{children:[e.jsx(Tt,{label:ke("Autoplay","embedpress"),checked:p,onChange:k=>o({playerAutoplay:k})}),e.jsx(ps,{label:ke("Delay","embedpress"),value:d,onChange:k=>o({delay:k}),min:1,max:60}),e.jsx(Tt,{label:ke("Repeat","embedpress"),checked:g,onChange:k=>o({repeat:k})})]}),l=="gallery-player"||l=="carousel"&&e.jsx(Sr,{label:ke("Background Color","embedpress"),colors:v,value:u,onChange:k=>o({backgroundColor:k})}),e.jsx(ps,{label:ke("Sync after (minutes)","embedpress"),value:C,onChange:k=>o({expiration:k}),min:0,max:1440}),(l==="gallery-player"||l==="carousel")&&e.jsx(Tt,{label:ke("Enable Visit Google Photos Link","embedpress"),checked:y,onChange:k=>o({photos_link:k}),help:ke("Enable an external link icon to visit the original Google Photos album","embedpress")})]})})})}const{useState:to,useEffect:Uh,useRef:Er}=wp.element,Mr=()=>{const t=embedpressGutenbergData.is_embedpress_feedback_submited,o=!!Number(embedpressGutenbergData.turn_off_rating_help),[s,l]=to(()=>localStorage.getItem("ratingClosed")==="true"),[a,n]=to(5),[p,d]=to(!1),[g,r]=to(!1),[i,m]=to(!1),[c,u]=to(0),[C,y]=to(!1),[v,w]=to(""),b=Er(null),k=embedpressGutenbergData.currentUser||{},_=embedpressGutenbergData.isProPluginActive,S=()=>{const L={name:k.display_name,email:k.user_email,rating:"5",message:""};fetch("/wp-json/embedpress/v1/send-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)}).then($=>$.json()).then($=>{d(!0)}).catch($=>{console.error("Error:",$),alert("Failed to send email.")})},B=L=>{n(L),L<5?(y(!0),setTimeout(()=>{b.current&&b.current.focus()},0)):(d(!0),r(!0),S(),localStorage.setItem("ratingClosed",!0))},x=()=>{window.open("https://wordpress.org/support/plugin/embedpress/reviews/#new-post","_blank")},h=L=>{L.preventDefault(),m(!0);const $=new FormData(L.target),T={name:k.display_name,email:k.user_email,rating:a,message:$.get("message")};fetch("/wp-json/embedpress/v1/send-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)}).then(P=>P.json()).then(P=>{d(!0),y(!1),localStorage.setItem("ratingClosed",!0),m(!1)}).catch(P=>{console.error("Error:",P),alert("Failed to send email.")})},f=a==5?"We’re glad that you liked us! 😍":"We appreciate it!",D=a==5?"If you don’t mind, could you take 30 seconds to review us on WordPress? Your feedback will help us improve and grow. Thank y
246ou in advance! 🙏":"A heartfelt gratitude for managing the time to share your thoughts with us.";return!o&&_?null:e.jsxs("div",{className:`plugin-rating${o?"":" turn_off_ratting_help"}`,children:[o&&e.jsxs("frameElement",{children:[!C&&!p&&!s&&!t&&e.jsxs("frameElement",{children:[e.jsx("h4",{children:"Rate EmbedPress"}),e.jsx("div",{className:"stars",children:[...Array(5)].map((L,$)=>e.jsx("svg",{className:"star",width:"14",height:"14",viewBox:"0 0 14 14",fill:$<(c||a)?"#FFD700":"#B1B8C2",xmlns:"http://www.w3.org/2000/svg",onClick:()=>B($+1),onMouseEnter:()=>u($+1),onMouseLeave:()=>{n(0),u(0)},style:{cursor:"pointer",transition:"fill 0.2s ease-in-out"},children:e.jsx("path",{d:"M4.80913 4.28162L1.08747 4.82121L1.02155 4.83462C0.921766 4.86111 0.830798 4.91361 0.757938 4.98676C0.685079 5.0599 0.632937 5.15107 0.606838 5.25096C0.580738 5.35085 0.581617 5.45588 0.609384 5.55531C0.637151 5.65475 0.690811 5.74504 0.764885 5.81695L3.46105 8.44137L2.82522 12.1485L2.81763 12.2126C2.81153 12.3158 2.83296 12.4188 2.87973 12.511C2.9265 12.6032 2.99694 12.6813 3.08383 12.7373C3.17072 12.7934 3.27094 12.8253 3.37422 12.8299C3.47751 12.8344 3.58015 12.8114 3.67163 12.7633L7.00013 11.0133L10.3211 12.7633L10.3794 12.7901C10.4757 12.828 10.5803 12.8397 10.6826 12.8238C10.7848 12.808 10.881 12.7652 10.9613 12.6999C11.0416 12.6345 11.103 12.5491 11.1394 12.4522C11.1757 12.3553 11.1856 12.2504 11.168 12.1485L10.5316 8.44137L13.229 5.81637L13.2745 5.76679C13.3395 5.68674 13.3821 5.59089 13.398 5.489C13.4139 5.38712 13.4025 5.28284 13.3649 5.1868C13.3274 5.09075 13.2651 5.00637 13.1843 4.94225C13.1036 4.87813 13.0073 4.83657 12.9052 4.82179L9.18355 4.28162L7.51989 0.909955C7.47175 0.812267 7.39722 0.730005 7.30475 0.672482C7.21227 0.61496 7.10554 0.584473 6.99663 0.584473C6.88773 0.584473 6.781 0.61496 6.68852 0.672482C6.59605 0.730005 6.52152 0.812267 6.47338 0.909955L4.80913 4.28162Z"})},$))})]}),C&&!p&&!s&&!t&&e.jsxs("div",{className:"feedback-submit-container",children:[e.jsx("h5",{className:"help-message",children:"Help us make it better!"}),e.jsx("p",{className:"form-description",children:"Please share what went wrong with The EmbedPress so that we can improve further*"}),e.jsxs("form",{onSubmit:h,children:[e.jsx("div",{className:"form-group",children:e.jsx("textarea",{name:"message",ref:b,placeholder:"Describe your issue in details",type:"text",rows:4,className:"form-control",required:!0})}),e.jsx("div",{className:"form-group",children:e.jsxs("button",{className:"submit-button",type:"submit",disabled:i,children:[i?"Sending...":"Send"," "]})})]})]}),p&&!s&&!t&&e.jsxs("div",{className:"tankyou-msg-container",children:[e.jsx("h5",{className:"help-message",children:f}),e.jsx("p",{className:"thank-you-message",children:D}),g&&e.jsxs("button",{className:"rating-button",onClick:x,children:["Rate the plugin",e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.75 2.083 6.25 5l-2.5 2.917",stroke:"#5B4E96","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})})]})]}),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"]})]}),!_&&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:Nr}=wp.element,{applyFilters:Dr}=wp.hooks,{__:so}=wp.i18n,{TextControl:us,NumberControl:Rh,PanelBody:Ur,SelectControl:Ft,ToggleControl:Ih,PanelRow:ms}=wp.components,{InspectorControls:Rr}=wp.blockEditor;function Ir({attributes:t,setAttributes:o,isYTChannel:s,isYTVideo:l,isYTLive:a,isYTShorts:n,isOpensea:p,isOpenseaSingle:d,isWistiaVideo:g,isVimeoVideo:r,isSelfHostedVideo:i,isSelfHostedAudio:m,isCalendly:c,isTikTok:u,isSpreaker:C}){const{url:y,width:v,height:w,videosize:b,instaLayout:k,instafeedFeedType:_,instafeedAccountType:S,slidesShow:B,slidesScroll:x,carouselAutoplay:h,autoplaySpeed:f,transitionSpeed:D,c
246arouselLoop:L,carouselArrows:$,carouselSpacing:T,lockContent:P,contentPassword:Z,editingURL:O,embedHTML:W,mode:q}=t,H=embedpressGutenbergData.isProPluginActive;Nr(null);const z=U=>Math.round(U/5)*5;return document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt()),(l||a||r)&&v==="600"&&w==="600"&&o({height:"340"}),m&&o({height:"48"}),c&&v==="600"&&w==="600"&&o({height:"950"}),u&&v==="600"&&w==="600"&&(o({width:"350"}),o({height:"580"})),Vt(y)&&v==="600"&&(o({instafeedFeedType:"hashtag_type"}),o({width:"900"})),!O&&W&&e.jsxs(Rr,{children:[!p&&!d&&e.jsxs("div",{className:"embedpress-gutenberg-controls",children:[e.jsxs(Ur,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",so("General","embedpress")]}),children:[e.jsxs("div",{className:"ep-controls-margin",children:[Eo(y)&&e.jsx(ms,{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:[pn," ","The most recent live video will be seen."]}),(l||r||a||i)&&e.jsx(Ft,{label:so("Video Size"),labelPosition:"side",value:b,options:[{label:"Fixed",value:"fixed"},{label:"Responsive",value:"responsive"}],onChange:U=>o({videosize:U}),__nextHasNoMarginBottom:!0}),(!l&&!a&&!r&&!i||b=="fixed")&&e.jsx("p",{children:so("You can adjust the width and height of embedded content.")}),(l||r||a||i)&&b=="responsive"&&e.jsx("p",{children:so("You can adjust the width of embedded content.","embedpress")}),e.jsx(us,{label:so("Width"),value:v,onChange:U=>{o(r||l||a||i||s?{width:`${Math.round(U)}`,height:`${z(Math.round(U*9/16))}`}:{width:U})}}),!xt(y)&&!Eo(y)&&!Vt(y)&&(!l&&!r&&!a&&!i&&!s||b=="fixed")||xt(y)&&(q==="carousel"||q==="gallery-player")?e.jsx(us,{label:so("Height"),value:w,onChange:U=>{o(r||l||a||i||s?{height:`${Math.round(U)}`,width:`${z(Math.round(U*16/9))}`}:{height:U})}}):null,l&&e.jsxs("div",{className:"ep-tips-and-tricks",children:[G,e.jsxs("a",{href:"#",target:"_blank",onClick:U=>{U.preventDefault(),Gl()},children:[" ",so("Tips & Tricks","embedpress")," "]})]})]}),!a&&!n&&e.jsx($t,{attributes:t,setAttributes:o,isYTChannel:s}),Eo(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:U=>o({instafeedFeedType:U})}),!H&&_==="hashtag_type"&&e.jsx(ms,{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:so("Only Available in Pro Version!","embedpress")})}),_==="user_account_type"&&e.jsx(Ft,{label:"Account Type",value:S,options:[{label:"Personal",value:"personal"},{label:"Business",value:"business"}],onChange:U=>o({instafeedAccountType:U})}),_==="hashtag_type"&&Dr("embedpress.commonControls",[],t,o,"warningInfo")]})]}),e.jsx(or,{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(Wa,{attributes:t,setAttributes:o}),e.jsx(vr,{attributes:t,setAttributes:o}),e.jsx(Ta,{attributes:t,setAttributes:o,isWistiaVideo:g}),e.jsx(Va,{attributes:t,setAttributes:o,isVimeoVideo:r}),e.jsx(pr,{attributes:t,setAttributes:o,isCalendly:c}),e.jsx(Fr,{attributes:t,setAttributes:o}),e.jsx(Qn,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Mo,{attributes:t,setAttributes:o}),e.jsx(No,{attributes:t,setAttributes:o})]}),e.jsx(xa,{attributes:t,setAttributes:o,isOpensea:p,isOpenseaSingle:d}),e.jsx(Mr,{})]})}const{__:zr}=wp.i18n,{Fragment:Hr}=wp.element,{Button:Gr,Toolbar:Or}=wp.components,{BlockControls:Vr}=wp.blockEditor,Be=t=>
246{const{showEditButton:o,switchBackToURLInput:s}=t;return e.jsx(Hr,{children:e.jsx(Vr,{children:e.jsx(Or,{children:o&&e.jsx(Gr,{className:"components-toolbar__control",label:zr("Edit URL"),icon:"edit",onClick:s})})})})},{__:qr}=wp.i18n,{Spinner:Wr}=wp.components,Pe=()=>e.jsxs("div",{className:"wp-block-embed is-loading text-center",children:[e.jsx(Wr,{}),e.jsx("p",{children:qr("Embedding…")})]});var Kl={exports:{}};(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}t.exports?(s.default=s,t.exports=s):window.classNames=s})()})(Kl);var Zr=Kl.exports;const Yr=yl(Zr),{__:hs,_x:Xr}=wp.i18n,{Button:Jr,Placeholder:Kr,ExternalLink:Qr}=wp.components,{BlockIcon:Ar}=wp.blockEditor,Ue=t=>{const{icon:o,label:s,value:l,onSubmit:a,onChange:n,cannotEmbed:p,docLink:d,DocTitle:g}=t,r=Yr("wp-block-embed",{});return e.jsx("div",{className:"ep__components-placeholder",children:e.jsxs(Kr,{icon:e.jsx(Ar,{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:hs("Enter URL to embed here…"),onChange:n}),e.jsx(Jr,{isSmall:!0,type:"submit",children:Xr("Embed","button label")}),p&&e.jsxs("p",{className:"components-placeholder__error",children:[hs("Sorry, we could not embed that content."),e.jsx("br",{})]})]}),d&&e.jsx("div",{className:"components-placeholder__learn-more",children:e.jsx(Qr,{href:d,children:g})})]})})},{Component:ei}=wp.element;class oi extends ei{constructor(o){super(o),this.myRef=React.createRef()}componentDidMount(){xl.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}render(){return e.jsx("div",{className:this.props.className,ref:this.myRef,...this.props})}}const{__:gs}=wp.i18n,{Fragment:ti,useEffect:Lo}=wp.element,{useBlockProps:si}=wp.blockEditor,{apiFetch:li}=wp,{applyFilters:fs}=wp.hooks;kn();function ni(t){const{attributes:o,setAttributes:s,clientId:l}=t,{url:a,editingURL:n,fetching:p,cannotEmbed:d,interactive:g,embedHTML:r,height:i,width:m,contentShare:c,sharePosition:u,lockContent:C,customlogo:y,logoX:v,logoY:w,customlogoUrl:b,logoOpacity:k,customPlayer:_,playerPreset:S,adManager:B,adSource:x,adFileUrl:h,adWidth:f,adHeight:D,adXPosition:L,adYPosition:$,shareFacebook:T,shareTwitter:P,sharePinterest:Z,shareLinkedin:O,instaLayout:W,cEmbedType:q,cPopupButtonText:H,cPopupButtonBGColor:z,cPopupButtonTextColor:U,coverImageUrl:I,playlist:A}=o;Lo(()=>{o.clientId||s({clientId:l})},[l,o.clientId,s]);const V=Fo(o.clientId||l),ee=zt(a),F=Ht(a),be=bt(a),se=Gt(a),ye=yt(a),le=Dl(a),ne=Ul(a),ae=Rl(a),ce=Il(a),pe=Ot(a),xe=zl(a),N=$n(a),uo=Pn(a),ve=Sn(a),Ie=Ln(a),Ze=ya(o),{youtubeParams:Wo}=aa(o,a),mo=Ba(o),wo=Xl(o),vo=Jl(o),Co=Oa(o),jo=er(o),Zo=cr(o),_o=wr(o),ho=Tr(o);Lo(()=>{if(typeof window.embedpressGutenbergData<"u"&&!y){const ie=window.embedpressGutenbergData;a.includes("youtube.com")||a.includes("youtu.be")?s({customlogo:ie.youtube_brand_logo_url||""}):a.includes("vimeo.com")?s({customlogo:ie.vimeo_brand_logo_url||""}):a.includes("wistia.com")?s({customlogo:ie.wistia_brand_logo_url||""}):a.includes("twitch.com")?s({customlogo:ie.twitch_brand_logo_url||""}):a.includes("dailymotion.com")&&s({customlogo:ie.dailymotion_brand_logo_url||""})}},[a,y]),Lo(()=>{ve&&!I&&!A&&s({height:"200"}),ve&&A&&s({height:"450"})},[a,I,A,ve,s]),Lo(()=>{(se||ye||ee||ne||ae)&&n&&s({height:"340"})},[a,n,se,ye,ee,ne,ae,s]);let go="",fo="",re=u||"right";c&&(go="ep-content-share-enabled",fo="ep-share-position-"+re);let J="";_&&(J=S||"preset-default");let ue="";be&&(ue="embedded-youtube-channel");let Ke="";ce&&(Ke=W);let K="";(pe||xe)&&(K=" source-opensea");let ge="";if(q==="popup_button"){let ie=U,Ae=z;U&&!U.startsWith("#")&&(ie="#"+U,s({cPopupButtonTextColor:ie})),z&&!z.startsWith("#")&&(Ae="#"+z,s({cPopupButtonBGColor:Ae})),ge=`
247<div class="cbutton-preview-wrapper" style="margin-top:-${i}px">
248<h4 class="cbutton-preview-text">Preview Popup Button</h4>
249<div style="position: static" class="calendly-badge-widget">
250<div class="calendly-badge-content" style="color: ${ie}; background: ${Ae};">
251${H}
252</div>
253</div>
254</div>
255`}let Te="";ae&&(Te="<span class='ep-wistia-message'>
255 Changes will be affected in frontend. </span>");let ko="";c&&(ko=Ol(u,T,P,Z,O));const Uo=fs("embedpress.customLogoComponent","",o);function Yo(){s({editingURL:!0})}function j(){if(!r)return;let ie=r.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);ie=[...ie];for(const Ae of ie)if(Ae&&typeof Ae[1]<"u"){const ze=Ae[1],$o=Fo(ze),vt=document.getElementById($o);vt&&vt.remove();const Io=document.createElement("script");Io.type="text/javascript",Io.setAttribute("id",$o),Io.setAttribute("src",ze),document.body.appendChild(Io)}}function Ro(ie){ie&&ie.preventDefault(),a?(s({fetching:!0}),(async ze=>{let $o={url:ze,width:m,height:i};$o=fs("embedpress_block_rest_param",$o,o);const cn={url:`${(window.embedpressGutenbergData||{}).siteUrl||window.location.origin}/wp-json/embedpress/v1/oembed/embedpress`,method:"POST",data:$o};return await li(cn).then(Ct=>Ct).catch(Ct=>(console.error("EmbedPress API Error:",Ct),{error:!0}))})(a).then(ze=>{s({fetching:!1}),ze.data&&ze.data.status===404||!ze.embed||ze.error?s({cannotEmbed:!0,editingURL:!0}):(s({embedHTML:ze.embed,cannotEmbed:!1,editingURL:!1}),j())})):s({cannotEmbed:!0,fetching:!1,editingURL:!0}),o.clientId&&a&&jn(o.clientId,a),_&&Bn(V,o),W==="insta-carousel"&&Tn(V,o)}Lo(()=>{r&&!n&&!p&&j()},[r,n,p]),Lo(()=>{const ie=setTimeout(()=>{(!r||n)&&!p||Ro()},1500);return()=>{clearTimeout(ie)}},[Ze,Wo,wo,vo,mo,Co,jo,Zo,c,C,_o,ho]);const Qe=si();return e.jsxs(ti,{children:[e.jsx(Ir,{attributes:o,setAttributes:s,isYTChannel:be,isYTVideo:se,isYTLive:ye,isYTShorts:le,isOpensea:pe,isOpenseaSingle:xe,isWistiaVideo:ae,isVimeoVideo:ne,isSelfHostedVideo:ee,isSelfHostedAudio:F,isCalendly:N,isTikTok:uo,isSpreaker:ve,isGooglePhotos:Ie}),(!r||!!n)&&!p&&e.jsx("div",{...Qe,children:e.jsx(Ue,{label:gs("EmbedPress - Embed anything from 150+ sites","embedpress"),onSubmit:Ro,value:a,cannotEmbed:d,onChange:ie=>s({url:ie.target.value}),icon:G,DocTitle:gs("Learn more about EmbedPress","embedpress"),docLink:"https://embedpress.com/docs/"})}),(!pe||!!n||n===0)&&(!xe||!!n||n===0)&&(!se&&!ye&&!le||!!n||n===0)&&(!be||!!n||n===0)&&(!ae||!!n||n===0)&&(!ne||!!n||n===0)&&(!N||!!n||n===0)&&(!ce||!!n||n===0)&&(!ve||!!n||n===0)&&(!Ie||!!n||n===0)&&p&&e.jsx("div",{className:Qe.className,children:e.jsx(Pe,{})}),r&&!n&&(!p||pe||xe||be||se||le||ae||ne||N||ce||ve||Ie)&&e.jsx("figure",{...Qe,"data-source-id":"source-"+o.clientId,children:e.jsxs("div",{className:`gutenberg-block-wraper ${go} ${fo}${K}`,children:[e.jsx(oi,{className:`position-${re}-wraper ep-embed-content-wraper ${ue} ${J} ${Ke}`,style:{display:p&&!pe&&!xe&&!be&&!se&&!ye&&!le&&!ae&&!ne&&!N&&!ce&&!Ie?"none":pe||xe?"block":"inline-block",position:"relative"},..._?{"data-playerid":Fo(o.clientId)}:{},..._?{"data-options":Ml({attributes:o})}:{},...W==="insta-carousel"?{"data-carouselid":Fo(o.clientId)}:{},...W==="insta-carousel"?{"data-carousel-options":Nl({attributes:o})}:{},dangerouslySetInnerHTML:{__html:r+Uo+Te+ko+ge}}),B&&x==="image"&&h&&e.jsx("div",{className:"main-ad-template",style:{position:"absolute",bottom:`${$}%`,left:`${L}%`,width:`${f}px`,height:`${D}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&&!xe&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),e.jsx(Be,{showEditButton:r&&!d,switchBackToURLInput:Yo})]})}),e.jsx(Hl,{attributes:o}),B&&x==="image"&&e.jsx("style",{children:`
256[data-source-id="source-${o.clientId}"] .main-ad-template div,
257.main-ad-template div img {
258height: 100%;
259}
260[data-source-id="source-${o.clientId}"] .main-ad-template {
261position: absolute;
262bottom: ${$}%;
263left: ${L}%;
264}
265`})]})}const ai="https://schemas.wp.org/trunk/block.json",ri="EmbedPress",ii="embedpress/embedpress",di="embedpress",ci="Embed content from 150+ providers with advanced customization options including YouTube, Vimeo, Google Docs, social media, and more.",pi=3,ui="embedpress",mi="embedpress-blocks-editor",hi="embedpress-blocks-editor-style",gi="embedpress-blocks-style",fi={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},bi={$schema:ai,title:ri,name:ii,category:di,description:ci,apiVersion:pi,textdomain:ui,editorScript:mi,editorStyle:hi,style:gi,supports:fi},yi={clientId:{type:"string"},url:{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}
265,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"}
265,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:xi}=wp.blocks,qo=(t,o)=>{typeof embedpressGutenbergData<"u"&&embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks.embedpress||typeof embedpressGutenbergData>"u"||typeof embedpressGutenbergData<"u"&&!embedpressGutenbergData.activeBlocks?xi(t.name,{...t,...o}):console.warn("EmbedPress: Block not registered - disabled in settings",t.name)},{__:lo}=wp.i18n;qo(bi,{icon:G,attributes:yi,keywords:[lo("embed","embedpress"),lo("embedpress","embedpress"),lo("video","embedpress"),lo("social","embedpress"),lo("youtube","embedpress"),lo("vimeo","embedpress"),lo("google docs","embedpress"),lo("pdf","embedpress")],edit:ni,save:Rn});Qa();sa();ga();Pa();Ia();ir();yr();Lr();const{Fragment:zh}=wp.element;function po({attributes:t}){const{sharePosition:o,shareFacebook:s,shareTwitter:l,sharePinterest:a,shareLinkedin:n,pageUrl:p,customTitle:d="",customDescription:g="",customThumbnail:r=""}=t,i=encodeURIComponent(p||window.location.href),m=encodeURIComponent(d),c=encodeURIComponent(g),u=encodeURIComponent(r),C=`https://www.facebook.com/sharer/sharer.php?u=${i}`,y=`https://twitter.com/intent/tweet?url=${i}&text=${m}`,v=`http://pinterest.com/pin/create/button/?url=${i}&media=${u}&description=${c}`,w=`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:w,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"})]})})})]})}
265const{useState:no,useEffect:Hh,useRef:wi}=wp.element,Re=()=>{const t=embedpressGutenbergData.is_embedpress_feedback_submited,o=!!Number(embedpressGutenbergData.turn_off_rating_help),[s,l]=no(()=>localStorage.getItem("ratingClosed")==="true"),[a,n]=no(5),[p,d]=no(!1),[g,r]=no(!1),[i,m]=no(!1),[c,u]=no(0),[C,y]=no(!1),[v,w]=no(""),b=wi(null),k=embedpressGutenbergData.currentUser||{},_=embedpressGutenbergData.isProPluginActive,S=()=>{const L={name:k.display_name,email:k.user_email,rating:"5",message:""};fetch("/wp-json/embedpress/v1/send-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)}).then($=>$.json()).then($=>{d(!0)}).catch($=>{console.error("Error:",$),alert("Failed to send email.")})},B=L=>{n(L),L<5?(y(!0),setTimeout(()=>{b.current&&b.current.focus()},0)):(d(!0),r(!0),S(),localStorage.setItem("ratingClosed",!0))},x=()=>{window.open("https://wordpress.org/support/plugin/embedpress/reviews/#new-post","_blank")},h=L=>{L.preventDefault(),m(!0);const $=new FormData(L.target),T={name:k.display_name,email:k.user_email,rating:a,message:$.get("message")};fetch("/wp-json/embedpress/v1/send-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)}).then(P=>P.json()).then(P=>{d(!0),y(!1),localStorage.setItem("ratingClosed",!0),m(!1)}).catch(P=>{console.error("Error:",P),alert("Failed to send email.")})},f=a==5?"We’re glad that you liked us! 😍":"We appreciate it!",D=a==5?"If you don’t mind, could you take 30 seconds to review us on WordPress? Your feedback will help us improve and grow. Thank you in advance! 🙏":"A heartfelt gratitude for managing the time to share your thoughts with us.";return!o&&_?null:e.jsxs("div",{className:`plugin-rating${o?"":" turn_off_ratting_help"}`,children:[o&&e.jsxs("frameElement",{children:[!C&&!p&&!s&&!t&&e.jsxs("frameElement",{children:[e.jsx("h4",{children:"Rate EmbedPress"}),e.jsx("div",{className:"stars",children:[...Array(5)].map((L,$)=>e.jsx("svg",{className:"star",width:"14",height:"14",viewBox:"0 0 14 14",fill:$<(c||a)?"#FFD700":"#B1B8C2",xmlns:"http://www.w3.org/2000/svg",onClick:()=>B($+1),onMouseEnter:()=>u($+1),onMouseLeave:()=>{n(0),u(0)},style:{cursor:"pointer",transition:"fill 0.2s ease-in-out"},children:e.jsx("path",{d:"M4.80913 4.28162L1.08747 4.82121L1.02155 4.83462C0.921766 4.86111 0.830798 4.91361 0.757938 4.98676C0.685079 5.0599 0.632937 5.15107 0.606838 5.25096C0.580738 5.35085 0.581617 5.45588 0.609384 5.55531C0.637151 5.65475 0.690811 5.74504 0.764885 5.81695L3.46105 8.44137L2.82522 12.1485L2.81763 12.2126C2.81153 12.3158 2.83296 12.4188 2.87973 12.511C2.9265 12.6032 2.99694 12.6813 3.08383 12.7373C3.17072 12.7934 3.27094 12.8253 3.37422 12.8299C3.47751 12.8344 3.58015 12.8114 3.67163 12.7633L7.00013 11.0133L10.3211 12.7633L10.3794 12.7901C10.4757 12.828 10.5803 12.8397 10.6826 12.8238C10.7848 12.808 10.881 12.7652 10.9613 12.6999C11.0416 12.6345 11.103 12.5491 11.1394 12.4522C11.1757 12.3553 11.1856 12.2504 11.168 12.1485L10.5316 8.44137L13.229 5.81637L13.2745 5.76679C13.3395 5.68674 13.3821 5.59089 13.398 5.489C13.4139 5.38712 13.4025 5.28284 13.3649 5.1868C13.3274 5.09075 13.2651 5.00637 13.1843 4.94225C13.1036 4.87813 13.0073 4.83657 12.9052 4.82179L9.18355 4.28162L7.51989 0.909955C7.47175 0.812267 7.39722 0.730005 7.30475 0.672482C7.21227 0.61496 7.10554 0.584473 6.99663 0.584473C6.88773 0.584473 6.781 0.61496 6.68852 0.672482C6.59605 0.730005 6.52152 0.812267 6.47338 0.909955L4.80913 4.28162Z"})},$))})]}),C&&!p&&!s&&!t&&e.jsxs("div",{className:"feedback-submit-container",children:[e.jsx("h5",{className:"help-message",children:"Help us make it better!"}),e.jsx("p",{className:"form-description",children:"Please share what went wrong with The EmbedPress so that we can improve further*"}),e.jsxs("form",{onSubmit:h,children:[e.jsx("div",{className:"form-group",children:e.jsx("textarea",{name:"message",ref:b,placeholder:"Describe your issue in details",type:"text",rows:4,className:"form-control",required:!0})}),e.jsx("div",{className:"form-group",children:e.jsxs("button",{className:"submit-button",type:"submit",disabled:i,children:[i?"Sending...":"Send"," "]})})]})]}),p&&!s&&!t&&e.jsxs("div",{className:"tankyou-msg-container",children:[e.jsx("h5",{className:"help-message",children:f}),e.jsx("p",{className:"thank-you-message",children:D}),g&&e.jsxs("button",{className:"rating-button",onClick:x,children:["Rate the plugin",e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.75 2.083 6.25 5l-2.5 2.917",stroke:"#5B4E96","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})})]})]}),e.jsx("p",{children:"Need help? We're here"}
265),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"]})]}),!_&&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"})]})]})},{__:vi}=wp.i18n,{applyFilters:bs}=wp.hooks,{TextControl:Gh,RangeControl:Oh,PanelBody:Ci,Button:Vh}=wp.components,{MediaUpload:qh}=wp.blockEditor;function Ql({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(De()),Ne());const d=bs("embedpress.uploadPlaceholder",[]);return e.jsx(Ci,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",vi("Custom Branding","embedpress")]}),initialOpen:!1,children:bs("embedpress.customLogoSettings",[d],t,o)})}const{__:ao}=wp.i18n,{Fragment:ji}=wp.element,{applyFilters:Ao}=wp.hooks,{PanelBody:_i,ToggleControl:Et,SelectControl:ys,TextControl:ki,ColorPalette:$i}=wp.components,Pi=({attributes:t,setAttributes:o})=>{const{docViewer:s,themeMode:l,customColor:a,presentation:n,position:p,download:d,draw:g,toolbar:r,copy_text:i,doc_rotation:m,powered_by:c,href:u}=t;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(De()),Ne());const C=[{name:"",color:"#823535"},{name:"",color:"#008000"},{name:"",color:"#403A81"},{name:"",color:"#333333"},{name:"",color:"#000264"}],y=Ao("embedpress.togglePlaceholder",[],ao("Toolbar","embedpress"),!0),v=Ao("embedpress.togglePlaceholder",[],ao("Print/Download","embedpress"),!0);return e.jsxs(_i,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",ao("Document Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(ki,{label:ao("Document URL","embedpress"),type:"text",value:u||"",onChange:w=>o({href:w})}),e.jsx(ys,{label:"Viewer",value:s,options:[{label:"Custom",value:"custom"},{label:"MS Office",value:"office"},{label:"Google",value:"google"}],onChange:w=>o({docViewer:w}),__nextHasNoMarginBottom:!0}),s==="custom"&&e.jsx(ys,{label:"Theme",value:l,options:[{label:"System Default",value:"default"},{label:"Dark",value:"dark"},{label:"Light",value:"light"},{label:"Custom",value:"custom"}],onChange:w=>o({themeMode:w}),__nextHasNoMarginBottom:!0}),l==="custom"&&s==="custom"&&e.jsxs("div",{className:"ep-docs-viewer-colors",children:[e.jsx(M,{headerText:"Color"}),e.jsx($i,{label:ao("Color"),colors:C,value:a,onChange:w=>o({customColor:w})})]}),s==="custom"&&Ao("embedpress.documentControls",[y],t,o,"toolbar"),r&&s==="custom"&&e.jsxs(ji,{children:[e.jsx(Et,{label:ao("Fullscreen","embedpress"),onChange:w=>o({presentation:w}),checked:n}),Ao("embedpress.documentControls",[v],t,o,"print"),e.jsx(Et,{label:ao("Draw","embedpress"),onChange:w=>o({draw:w}),checked:g}),e.jsx(Et,{label:ao("Powered By"),onChange:w=>o({powered_by:w}),checked:c})]})]})},{__:Mt}=wp.i18n,{useState:Wh,useEffect:Zh,Fragment:Yh}=wp.element,{BlockControls:Xh,BlockIcon:Jh,MediaPlaceholder:Kh,InspectorControls:Si,useBlockProps:Qh}=wp.blockEditor,{ToolbarButton:Ah,RangeControl:xs,PanelBody:Li,ExternalLink:eg,ToggleControl:og,TextControl:tg,SelectControl:sg,RadioControl:lg,ColorPalette:ng}=wp.components,Bi=({attributes:t,setAttributes:o})=>{const{width:s,height:l}=t,a=1,n=1e3;return e.jsxs(Si,{children:[e.jsxs(Li,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Mt("Embed Size","embedpress")]}),className:"embedpress-documents-control",children:[e.jsx(xs,{label:Mt("Width","embedpress"),value:s||720,onChange:p=>o({width:p}),min:a,max:n}
265),e.jsx(xs,{label:Mt("Height","embedpress"),value:l,onChange:p=>o({height:p}),min:a,max:n})]}),e.jsx(Pi,{attributes:t,setAttributes:o}),e.jsx(Ql,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Mo,{attributes:t,setAttributes:o}),e.jsx(No,{attributes:t,setAttributes:o}),e.jsx(Re,{})]})},Al=({attributes:t})=>{const{id:o,themeMode:s,customColor:l}=t;let a="#f2f2f6";return l&&Mn(l)>60&&(a="#343434"),e.jsx("style",{children:s==="custom"&&`
266[data-id='${o}'][data-theme-mode='custom'] {
267--viewer-primary-color: ${l};
268--viewer-icons-color: ${a};
269--viewer-icons-hover-bgcolor: ${Nn(l,-10)};}
270`})},en=({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)})}),on=({href:t,url:o,docViewer:s,width:l,height:a,themeMode:n,customColor:p,id:d,download:g,draw:r,toolbar:i,presentation:m,setShowOverlay:c,setFetching:u,loadPdf:C,fetching:y})=>e.jsxs("div",{className:`${s==="custom"?"ep-file-download-option-masked ":""}ep-gutenberg-file-doc ep-powered-by-enabled${g?" 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:()=>u(!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)&&mn(),g&&jt(t)&&gn(),g&&jt(t)&&hn(),r&&yn(),m&&fn(),m&&bn()]})]}),{BlockIcon:Ti,MediaPlaceholder:Fi}=wp.blockEditor,{ExternalLink:Ei}=wp.components,{__:ws}=wp.i18n,Mi=["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"],Ni=({onSelect:t,onError:o,notices:s})=>e.jsx("div",{className:"embedpress-document-editmode",children:e.jsx(Fi,{icon:e.jsx(Ti,{icon:Sl}),labels:{title:ws("Document","embedpress"),instructions:ws("Upload a file or pick one from your media library for embed.","embedpress")},onSelect:t,notices:s,allowedTypes:Mi,onError:o,children:e.jsx("div",{className:"components-placeholder__learn-more embedpress-doc-link",children:e.jsx(Ei,{href:"https://embedpress.com/docs/embed-document/",children:"Learn more about Embedded document"})})})}),{useState:et,useEffect:vs}=wp.element,{__:Di}=wp.i18n,{getBlobByURL:Ui,isBlobURL:Ri,revokeBlobURL:Ii}=wp.blob,{useBlockProps:zi,BlockIcon:ag,MediaPlaceholder:rg,InspectorControls:ig,BlockControls:Hi}=wp.blockEditor,{ExternalLink:dg,ToolbarButton:Gi}=wp.components,{applyFilters:Oi}=wp.hooks,Vi=({attributes:t,mediaUpload:o,noticeOperations:s,isSelected:l,setAttributes:a,clientId:n,noticeUI:p})=>{const{href:d,mime:g,id:r,width:i,height:m,docViewer:c,themeMode:u,customColor:C,presentation:y=!0,position:v="bottom",download:w=!0,draw:b=!0,toolbar:k,powered_by:_,adManager:S,adSource:B,adFileUrl:x,sharePosition:h,contentShare:f,customlogo:D}=t,[L,$]=et(!1),[T,P]=et(!1),[Z,O]=et(!0),[W,q]=et(!0),H=zi();vs(()=>{if(Ri(d)){const V=Ui(d);o({filesList:[V],onFileChange:([ee])=>z(ee),onError:ee=>{$(!0),s.createErrorNotice(ee)}}),Ii(d)}d&&g==="application/pdf"&&W&&(q(!1),typeof PDFObject<"u"&&PDFObject.embed(d,`.${r}`))},[d,g,r]),vs(()=>{l||O(!0)},[l]);const z=V=>{V!=null&&V.url&&($(!1),a({href:V.url,fileName:V.title,id:"embedpress-pdf-"+Date.now(),mime:V.mime,powered_by:embedpressGutenbergData!=null&&embedpressGutenbergData.embedpress_pro?!1:_}),V.mime==="application/pdf"&&(q(!1),typeof PDFObject<"u"&&PDFObject.embed(V.url,`.${r}`)),n&&V.url&&wt(n,V.url))},U=V=>{s.removeAllNotices(),s.createErrorNotice(V)},I=()=>c==="google"?`//docs.google.com/gview?embedded=true&url=${d}`:`//view.officeapps.live.com/op/embed.aspx?src=${d}`;if(!d||L)return e.jsx("div",{...H,children:e.jsx(Ni,{onSelect:z,onError:U,notices:p})});const A=Oi("embedpress.customLogoComponent","",t);return e.jsxs("div",{...H,children:[e.jsx(Hi,{children:e.jsx(Gi,{icon:"edit",label:Di("Re Upload","embedpress"),onClick:()=>a({href:""})})}),T&&g!=="application/pdf"&&e.jsx(Pe,{}),e.jsxs("div",{className:`embedpress-document-embed ep-doc-${r}`,style:{height:m,width:i},children:[e.jsxs("div",{className:`position-${h}-wraper gutenberg-doc-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[g==="application/pdf"?e.jsx(en,{href:d,id:r,width:i,height:m,setFetching:P}):e.jsx(on,{href:d,url:I(),docViewer:c,width:i,height:m,themeMode:u,customColor:C,id:r,download:w,draw:b,toolbar:k,presentation:y,setShowOverlay:O,setFetching:P,loadPdf:W,fetching:T}),f&&e.jsx(po,{attributes:t})]}),A&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:A}}),_&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),Z&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>O(!1)}),e.jsx(Al,{attributes:t})]}),S&&B==="image"&&x&&e.jsx(co,{attributes:t,setAttributes:a,deleteIcon:!0,progressBar:!0,inEditor:!0})]}),e.jsx(Bi,{attributes:t,setAttributes:a})]})},qi="https://schemas.wp.org/trunk/block.json",Wi="EmbedPress Document",Zi="embedpress/document",Yi="embedpress",Xi="Embed documents like PDF, DOC, PPT, XLS with advanced customization options including viewer styles, toolbar controls, and content protection.",Ji=2,Ki="embedpress",Qi="embedpress-blocks-editor",Ai="embedpress-blocks-editor-style",ed="embedpress-blocks-style",od={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"}
270,td={$schema:qi,title:Wi,name:Zi,category:Yi,description:Xi,apiVersion:Ji,textdomain:Ki,editorScript:Qi,editorStyle:Ai,style:ed,supports:od},sd={id:{type:"string"},href:{type:"string"},width:{type:"number",default:parseInt(embedpressGutenbergData==null?void 0:embedpressGutenbergData.iframe_width)||600},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."}},ld={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:nd}=wp.blockEditor,{applyFilters:ad}=wp.hooks,rd=({attributes:t,setAttributes:o})=>{const s=nd.save(),{href:l,mime:a,id:n,unitoption:p,width:d,height:g,powered_by:r,docViewer:i,themeMode:m,customColor:c,presentation:u=!0,position:C="bottom",download:y=!0,draw:v=!0,toolbar:w,doc_rotation:b,clientId:k,sharePosition:_,contentShare:S,adManager:B,adSource:x,adFileUrl:h,adXPosition:f,adYPosition:D,customlogo:L}=t;if(!l)return null;new URLSearchParams({theme_mode:m,...m==="custom"&&{custom_color:c||"#343434"},presentation:u,position:C,download:y,draw:v}).toString();const $=ad("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:g,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(en,{href:l,id:n,width:d,height:g,setFetching:!1}):e.jsx(on,{href:l,url:T(),docViewer:i,width:d,height:g,themeMode:m,customColor:c,id:n,download:y,draw:v,toolbar:w,presentation:u,setFetching:!1}),S&&e.jsx(po,{attributes:t})]}),$&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:$}}),r&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),e.jsx(Al,{attributes:t})]}),B&&x==="image"&&h&&e.jsx(co,{attributes:t,setAttributes:o,deleteIcon:!0,progressBar:!0,inEditor:!0})]})})})},{__:Bo}=wp.i18n;qo(td,{icon:Sl,attributes:sd,example:ld,keywords:[Bo("embedpress","embedpress"),Bo("document","embedpress"),Bo("pdf","embedpress"),Bo("doc","embedpress"),Bo("ppt","embedpress"),Bo("xls","embedpress")],edit:Vi,save:rd});const{TextControl:Cs,PanelBody:js,ToggleControl:_s}=wp.components,{InspectorControls:id,useBlockProps:ks}=wp.blockEditor,{Fragment:dd}=wp.element,{__:qe}=wp.i18n;function cd({attributes:t,className:o,setAttributes:s}){const{url:l,editingURL:a,fetching:n,cannotEmbed:p,embedHTML:d,height:g,width:r,powered_by:i,is_public:m,align:c,interactive:u}=t,C=ks?ks({className:"align"+c,style:{width:r+"px",height:g+"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 w(b){return/^https:\/\/calendar\.google\.com\/calendar\/embed\?.*$/.test(b)}return e.jsxs(dd,{children:[e.jsxs(id,{children:[e.jsxs(js,{title:qe("Customize Embedded Calendar","embedpress"),children:[e.jsx("p",{children:qe("You can adjust the width and height of embedded content.","embedpress")}),e.jsx(Cs,{label:qe("Width","embedpress"),value:r,onChange:b=>s({width:b})}),!Eo(l)&&!Vt(l)&&e.jsx(Cs,{label:qe("Height","embedpress"),value:g,onChange:b=>s({height:b})})]}),e.jsxs(js,{title:qe("Calendar Type and other options","embedpress"),children:[e.jsx("p",{children:qe("You can show public calendar without any API key","embedpress")}),e.jsx(_s,{label:qe("Powered By","embedpress"),onChange:b=>s({powered_by:b}),checked:i}),e.jsx(_s,{label:qe("Embedding Public Calendar","embedpress"),onChange:b=>s({is_public:b}),checked:m})]})]}),(!d||a)&&!n&&m&&e.jsx("div",{...C,children:e.jsx(Ue,{label:qe("Public Calendar Link"),onSubmit:v,value:l,cannotEmbed:p,onChange:b=>s({url:b.target.value}),icon:Bl,DocTitle:qe("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})}),n?e.jsxs("div",{className:o,children:[e.jsx(Pe,{})," "]}):null,d&&m&&!a&&!n&&e.jsxs("figure",{...C,children:[m&&w(l)&&e.jsx("iframe",{style:{display:n?"none":""},src:de(l),width:r,height:g}),i&&w(l)&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),!w(l)&&e.jsx("p",{className:"embedpress-el-powered",children:"Invalid Calendar Link"}),!u&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}
270),e.jsx(Be,{showEditButton:d&&!p,switchBackToURLInput:y})]}),!m&&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"}),!u&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),e.jsx(Be,{showEditButton:d&&!p,switchBackToURLInput:y})]})]})}const pd=t=>null,ud={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}},{__:md}=wp.i18n,{registerBlockType:hd}=wp.blocks;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["embedpress-calendar"]&&hd("embedpress/embedpress-calendar",{title:md("Google Calendar"),icon:Bl,category:"embedpress",keywords:["embedpress","embed","calendar","calender","google","cal","events","task","birthday"],supports:{align:["left","center","right"],default:"center",lightBlockWrapper:!0},attributes:ud,Edit:cd,Save:pd});const{applyFilters:gd}=wp.hooks,{useBlockProps:fd}=wp.blockEditor,{Fragment:cg}=wp.element,bd=({attributes:t})=>{const o=fd.save(),{href:s,mime:l,id:a,unitoption:n,width:p,height:d,powered_by:g,themeMode:r,customColor:i,presentation:m,lazyLoad:c,position:u,flipbook_toolbar_position:C,download:y,add_text:v,draw:w,toolbar:b,copy_text:k,doc_details:_,doc_rotation:S,add_image:B,selection_tool:x,scrolling:h,spreads:f,clientId:D,sharePosition:L,contentShare:$,adManager:T,adSource:P,adFileUrl:Z,adXPosition:O,adYPosition:W,viewerStyle:q,zoomIn:H,zoomOut:z,fitView:U,bookmark:I,customlogo:A}=t;if(!s)return null;let V="";n==="%"?V="ep-percentage-width":V="ep-fixed-width";let ee="",F="",be=L||"right";$&&(ee="ep-content-share-enabled",F="ep-share-position-"+be);function se(ae){let ce="",pe={};r==="custom"&&(pe={customColor:i&&i!=="default"?i:"#403A81"});let xe={themeMode:r||"default",...pe,presentation:m||!1,lazyLoad:c||!1,position:u||"top",flipbook_toolbar_position:C||"bottom",download:y||!1,toolbar:b||!1,copy_text:k||!1,add_text:v||!1,draw:w||!1,doc_details:_||!1,doc_rotation:S||!1,add_image:B||!1,zoom_in:H||!1,zoom_out:z||!1,fit_view:U||!1,bookmark:I||!1,selection_tool:x||"0",scrolling:h||"-1",spreads:f||"0"};const N=new URLSearchParams(xe).toString();ce="key="+btoa(encodeURIComponent(N).replace(/%([0-9A-F]{2})/g,function(Ie,Ze){return String.fromCharCode(parseInt(Ze,16))}));let ve=ae.split("#");return ve=encodeURIComponent(ve[0]),q==="flip-book"?`${ve}&${ce}`:`${ve}#${ce}`}const ye="//view.officeapps.live.com/op/embed.aspx?src="+se(s);let le="";typeof embedpressGutenbergData<"u"&&embedpressGutenbergData.pdfRenderer&&(le=embedpressGutenbergData.pdfRenderer+(embedpressGutenbergData.pdfRenderer.indexOf("?")===-1?"?":"&")+"scrolling="+h+"&selection_tool="+x+"&spreads="+f+"&file="+se(s)),q==="flip-book"&&typeof embedpressGutenbergData<"u"&&embedpressGutenbergData.assetsUrl&&(le=embedpressGutenbergData.assetsUrl+"pdf-flip-book/viewer.html?file="+se(s));const ne=gd("embedpress.customLogoComponent","",t);return e.jsx("div",{...o,children:e.jsx("div",{className:"embedpress-document-embed ep-doc-"+a+" "+ee+" "+F+" "+V,style:{width:p+n,maxWidth:"100%"},id:`ep-doc-${D}`,"data-source-id":"source-"+D,"data-embed-type":"PDF",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${L}-wraper gutenberg-pdf-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[l==="application/pdf"&&le&&e.jsx("iframe",{title:"",powered_by:g,style:{height:d,width:"100%"},className:"embedpress-embed-document-pdf "+a,"data-emid":a,src:de(le)}),l!=="application/pdf"&&e.jsx("iframe",{title:"",style:{height:d,width:"100%"},src:de(ye)}),$&&e.jsx(po,{attributes:t})]}),ne&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:ne}}),g&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),T&&P==="image"&&Z&&e.jsx(co,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{Component:yd}=wp.element;
270class Je extends yd{constructor(o){super(o),this.myRef=React.createRef()}componentDidMount(){xl.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}render(){return e.jsx("iframe",{ref:this.myRef,...this.props})}}const{__:oe}=wp.i18n,{useState:pg,useEffect:ug,Fragment:Nt}=wp.element,{BlockControls:mg,BlockIcon:hg,MediaPlaceholder:gg,InspectorControls:xd,useBlockProps:fg}=wp.blockEditor,{__experimentalToggleGroupControl:$s,__experimentalToggleGroupControlOption:ot}=wp.components,{ToolbarButton:bg,RangeControl:Ps,PanelBody:Ss,ExternalLink:yg,ToggleControl:Me,TextControl:wd,SelectControl:Dt,RadioControl:vd,ColorPalette:Cd}=wp.components,{applyFilters:Le}=wp.hooks,jd=({attributes:t,setAttributes:o})=>{const{href:s,mime:l,id:a,unitoption:n,width:p,height:d,powered_by:g,themeMode:r,customColor:i,presentation:m,lazyLoad:c,position:u,flipbook_toolbar_position:C,download:y,add_text:v,draw:w,open:b,toolbar:k,copy_text:_,toolbar_position:S,doc_details:B,doc_rotation:x,add_image:h,selection_tool:f,scrolling:D,spreads:L,sharePosition:$,contentShare:T,adManager:P,adSource:Z,adFileUrl:O,adWidth:W,adHeight:q,adXPosition:H,adYPosition:z,viewerStyle:U,zoomIn:I,zoomOut:A,fitView:V,bookmark:ee}=t,F=1,be=1e3;let se=0,ye=100;n=="px"&&(ye=1500);const le=Le("embedpress.togglePlaceholder",[],oe("Toolbar","embedpress"),!0),ne=Le("embedpress.togglePlaceholder",[],oe("Print/Download","embedpress"),!0),ae=Le("embedpress.togglePlaceholder",[],oe("Draw","embedpress"),!1),ce=Le("embedpress.togglePlaceholder",[],oe("Copy Text","embedpress"),!0),pe=Le("embedpress.selectPlaceholder",[],oe("Default Scrolling","embedpress"),"-1","Page Scrolling"),xe=Le("embedpress.selectPlaceholder",[],oe("Default Selection Tool","embedpress"),"0","Text Tool");return e.jsxs(xd,{children:[e.jsxs(Ss,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",oe("Embed Size","embedpress")]}),children:[e.jsxs("div",{className:"ep-pdf-width-contol",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(vd,{selected:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:N=>o({unitoption:N}),className:"ep-unit-choice-option"}),e.jsx(Ps,{value:p,onChange:N=>o({width:N}),max:ye,min:se})]}),e.jsx(Ps,{label:oe("Height","embedpress"),value:d,onChange:N=>o({height:N}),max:be,min:F})]}),e.jsxs(Ss,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",oe("Document Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(wd,{label:oe("Document URL","embedpress"),type:"text",value:t.href||"",onChange:N=>o({href:N})}),e.jsx(Dt,{label:"Viewer Style",value:U,options:[{label:"Modern",value:"modern"},{label:"Flip Book",value:"flip-book"}],onChange:N=>o({viewerStyle:N}),__nextHasNoMarginBottom:!0}),e.jsx(Dt,{label:"Theme",value:r,options:[{label:"System Default",value:"default"},{label:"Dark",value:"dark"},{label:"Light",value:"light"},{label:"Custom",value:"custom"}],onChange:N=>o({themeMode:N}),__nextHasNoMarginBottom:!0}),r==="custom"&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Color"}),e.jsx(Cd,{label:oe("Color"),colors,value:i,onChange:N=>o({customColor:N})})]}),Le("embedpress.pdfControls",[le],t,o,"toolbar"),k&&e.jsxs(Nt,{children:[U==="flip-book"?e.jsxs($s,{label:"Toolbar Position",value:C,onChange:N=>o({flipbook_toolbar_position:N}),children:[e.jsx(ot,{value:"top",label:"Top"}),e.jsx(ot,{value:"bottom",label:"Bottom"})]}):e.jsxs($s,{label:"Toolbar Position",value:u,onChange:N=>o({position:N}),children:[e.jsx(ot,{value:"top",label:"Top"}),e.jsx(ot,{value:"bottom",label:"Bottom"})]}),e.jsx(Me,{label:oe("Presentation Mode","embedpress"),onChange:N=>o({presentation:N}),checked:m}),e.jsx(Me,{label:oe("Lazy Load","embedpress"),onChange:N=>o({lazyLoad:N}),checked:c}),Le("embedpress.pdfControls",[ne],t,o,"print"),U==="modern"?e.jsxs(Nt,{children:[e.jsx(Me,{label:oe("Add Text","embedpress"),onChange:N=>o({add_text:N}),checked:v}),Le("embedpress.pdfControls",[ae],t,o,"draw"),Le("embedpress.pdfControls",[ce],t,o,"copyText"),e.jsx(Me,{label:oe("Add Image","embedpress"),onChange:N=>o({add_image:N}),checked:h}),e.jsx(Me,{label:oe("Rotation","embedpress"),onChange:N=>o({doc_rotation:N}),checked:x}),e.jsx(Me,{label:oe("Properties","embedpress"),onChange:N=>o({doc_details:N}),checked:B}),Le("embedpress.pdfControls",[xe],t,o,"selectionTool"),Le("embedpress.pdfControls",[pe],t,o,"scrolling"),D!=="1"&&e.jsx(Dt,{label:"Default Spreads",value:L,options:[{label:"No Spreads",value:"
2700"},{label:"Odd Spreads",value:"1"},{label:"Even Spreads",value:"2"}],onChange:N=>o({spreads:N}),__nextHasNoMarginBottom:!0})]}):e.jsxs(Nt,{children:[e.jsx(Me,{label:oe("Zoom In","embedpress"),onChange:N=>o({zoomIn:N}),checked:I}),e.jsx(Me,{label:oe("Zoom Out","embedpress"),onChange:N=>o({zoomOut:N}),checked:A}),e.jsx(Me,{label:oe("Fit View","embedpress"),onChange:N=>o({fitView:N}),checked:V}),e.jsx(Me,{label:oe("Bookmark","embedpress"),onChange:N=>o({bookmark:N}),checked:ee})]}),e.jsx(Me,{label:oe("Powered By","embedpress"),onChange:N=>o({powered_by:N}),checked:g})]})]}),e.jsx(Ql,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Mo,{attributes:t,setAttributes:o}),e.jsx(No,{attributes:t,setAttributes:o}),e.jsx(Re,{})]},"inspector")},{__:Ut}=wp.i18n,{useState:tt,useEffect:Rt,Fragment:_d}=wp.element,{BlockControls:kd,BlockIcon:$d,MediaPlaceholder:Pd,useBlockProps:Sd}=wp.blockEditor,{ToolbarButton:Ld,ExternalLink:Bd}=wp.components,{getBlobByURL:Td,isBlobURL:Fd,revokeBlobURL:Ed}=wp.blob,{applyFilters:Md}=wp.hooks,Nd=["application/pdf"];function Dd(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:a,noticeUI:n,mediaUpload:p,noticeOperations:d}=t,[g,r]=tt(!1),[i,m]=tt(!1),[c,u]=tt(!1),[C,y]=tt(!0),v=Sd();Rt(()=>{!a&&c&&u(!1)},[a,c]),Rt(()=>{const{href:K}=o;if(Fd(K)){const ge=Td(K);p({filesList:[ge],onFileChange:([Te])=>k(Te),onError:Te=>{r(!0),d.createErrorNotice(Te)}}),Ed(K)}o.href&&o.mime==="application/pdf"&&C&&y(!1)},[]);const w=()=>{u(!0)},b=()=>{m(!1)},k=K=>{K&&K.url&&(r(!1),s({href:K.url,fileName:K.title,id:"embedpress-pdf-"+Date.now(),mime:K.mime}),embedpressGutenbergData.branding!==void 0&&embedpressGutenbergData.branding.powered_by!==void 0&&s({powered_by:embedpressGutenbergData.branding.powered_by}),K.mime==="application/pdf"&&y(!1)),l&&o.href&&wt(l,o.href)},_=K=>{d.removeAllNotices(),d.createErrorNotice(K)},S=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",()=>{document.querySelector(".pro__alert__wrap").style.display="none"})},B=()=>{const K=`
271<div class="pro__alert__wrap" style="display: none;">
272<div class="pro__alert__card">
273<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>
274<h2>Opps...</h2>
275<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>
276<a href="#" class="button radius-10">Close</a>
277</div>
278</div>
279`,ge=document.createElement("div");return ge.innerHTML=K,ge};Rt(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{href:x,mime:h,id:f,unitoption:D,width:L,height:$,powered_by:T,themeMode:P,customColor:Z,presentation:O,lazyLoad:W,position:q,flipbook_toolbar_position:H,download:z,add_text:U,draw:I,open:A,toolbar:V,copy_text:ee,toolbar_position:F,doc_details:be,doc_rotation:se,add_image:ye,selection_tool:le,scrolling:ne,spreads:ae,sharePosition:ce,contentShare:pe,adManager:xe,adSource:N,adFileUrl:uo,adWidth:ve,adHeight:Ie,adXPosition:Ze,adYPosition:Wo,viewerStyle:mo,zoomIn:wo,zoomOut:vo,fitView:Co,bookmark:jo,customlogo:Zo}=o,_o=Md("embedpress.customLogoComponent",null,o);let ho="";D=="%"?ho="ep-percentage-width":ho="ep-fixed-width";let go="",fo="",re=ce||"right";pe&&(go="ep-content-share-enabled",fo="ep-share-position-"+re);const J="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(B()),S());function Ke(K){let ge="",Te={};P==="custom"&&(Te={customColor:Z&&Z!=="default"?Z:"#403A81"});let ko={themeMode:P||"default",...Te,presentation:O||!1,lazyLoad:W||!1,position:q||"top",flipbook_toolbar_position:H||"bottom",download:z||!1,toolbar:V||!1,copy_text:ee||!1,add_text:U||!1,draw:I||!1,toolbar_position:F||"top",doc_details:be||!1,doc_rotation:se||!1,add_image:ye||!1,zoom_in:wo||!1,zoom_out:vo||!1,fit_view:Co||!1,bookmark:jo||!1,selection_tool:le||"0",scrolling:ne||"-1",spreads:ae||"0"};const Uo=new URLSearchParams(ko).toString();ge="key="+btoa(encodeURIComponent(Uo).replace(/%([0-9A-F]{2})/g,function(Ro,Qe){return String.fromCharCode(parseInt(Qe,16))}));let j=K.split("#");return j=encodeURIComponent(j[0]),mo==="flip-book"?`${j}&${ge}`:`${j}#${ge}`}if(!x||g)return e.jsx("div",{className:"embedpress-document-editmode",children:e.jsx(Pd,{icon:e.jsx($d,{icon:Ll}),labels:{title:Ut("EmbedPress PDF"),instructions:Ut("Upload a PDF file or pick one from your media library for embed.")},onSelect:k,notices:n,allowedTypes:Nd,onError:_,children:e.jsx("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link",children:e.jsx(Bd,{href:J,children:"Learn more about Embedded document "})})})});{const K="//view.officeapps.live.com/op/embed.aspx?src="+Ke(x);let ge=embedpressGutenbergData.pdfRenderer+(embedpressGutenbergData.pdfRenderer.indexOf("?")===-1?"?":"&")+"scrolling="+ne+"&selection_tool="+le+"&spreads="+ae+"&file="+Ke(x);return mo==="flip-book"&&(ge=embedpressGutenbergData.assetsUrl+"pdf-flip-book/viewer.html?file="+Ke(x)),console.log({pdf_viewer_src:ge}),e.jsxs(_d,{children:[e.jsx(kd,{children:e.jsx(Ld,{className:"components-edit-button",icon:"edit",label:Ut("Re Upload","embedpress"),onClick:()=>s({href:""})})}),i&&h!=="application/pdf"?e.jsx(Pe,{}):null,e.jsx("div",{...v,children:e.jsx("div",{className:"embedpress-document-embed ep-doc-"+f+" "+go+" "+fo+" "+ho,style:{width:L+D,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"&&(mo==="modern"?e.jsx("iframe",{title:"",powered_by:T,style:{height:$,width:"100%"},className:"embedpress-embed-document-pdf "+f,"data-emid":f,src:de(ge)}):e.jsx("iframe",{title:"",powered_by:T,style:{height:$,width:"100%"},className:"embedpress-embed-document-pdf "+f,"data-emid":f,src:de(ge)})),h!=="application/pdf"&&e.jsx(Je,{title:"",onMouseUponMouseUp:w,style:{height:$,width:L,display:i||!C?"none":""},onLoad:b,src:de(K)}),pe&&e.jsx(po,{attributes:o})]}),_o&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:_o}}),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})})]}),xe&&N==="image"&&uo&&e.jsx(co,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(jd,{attributes:o,setAttributes:s})]})}}const Ud="https://schemas.wp.org/trunk/block.json",Rd="EmbedPress PDF",Id="embedpress/embedpress-pdf",zd="embedpress",Hd="Embed PDF documents with advanced customization options including viewer styles, toolbar controls, and content protection.",Gd=2,Od="embedpress",Vd="embedpress-blocks-editor",qd="embedpress-blocks-editor-style",Wd="embedpress-blocks-style",Zd={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Yd={$schema:Ud,title:Rd,name:Id,category:zd,description:Hd,apiVersion:Gd,textdomain:Od,editorScript:Vd,editorStyle:qd,style:Wd,supports:Zd},Xd={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}
279,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."}},{__:st}=wp.i18n;qo(Yd,{icon:Ll,attributes:Xd,keywords:[st("embedpress","embedpress"),st("pdf","embedpress"),st("doc","embedpress"),st("document","embedpress")],edit:Dd,save:bd});const{applyFilters:xg}=wp.hooks,{useBlockProps:Jd}=wp.blockEditor,{Fragment:wg}=wp.element,Kd=({attributes:t})=>{const o=Jd.save(),{iframeSrc:s,id:l,unitoption:a,width:n,height:p,powered_by:d,clientId:g,sharePosition:r,contentShare:i,adManager:m,adSource:c,adFileUrl:u,adXPosition:C,adYPosition:y}=t;if(!s)return null;let v="";a==="%"?v="ep-percentage-width":v="ep-fixed-width";let w="",b="",k=r||"right";return i&&(w="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+" "+w+" "+b+" "+v,style:{width:n+a,maxWidth:"100%"},id:`ep-google-docs-${g}`,"data-source-id":"source-"+g,"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(po,{attributes:t})]}),d&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),m&&c==="image"&&u&&e.jsx(co,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{__:lt}=wp.i18n,{InspectorControls:Qd}=wp.blockEditor,{PanelBody:Ls,RangeControl:Bs,RadioControl:Ad,ToggleControl:ec}=wp.components,Ts=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a,powered_by:n,contentShare:p,adManager:d,lockContent:g}=t,r=1,i=1e3,m=a==="%"?100:1e3;return e.jsxs(Qd,{children:[e.jsxs(Ls,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",lt("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(Ad,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:u=>o({unitoption:u}),className:"ep-unit-choice-option"}),e.jsx(Bs,{value:s,onChange:u=>o({width:u}),max:m,min:1})]}
279),e.jsx(Bs,{label:lt("Height","embedpress"),value:l,onChange:u=>o({height:u}),min:r,max:i})]}),e.jsx(Ls,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",lt("General","embedpress")]}),className:"embedpress-google-docs-general",children:e.jsx(ec,{label:lt("Powered By","embedpress"),checked:n,onChange:u=>o({powered_by:u})})}),e.jsx(No,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Mo,{attributes:t,setAttributes:o}),e.jsx(Re,{})]})},{__:nt}=wp.i18n,{useState:Oo,useEffect:Fs,Fragment:oc}=wp.element,{BlockControls:tc,useBlockProps:sc}=wp.blockEditor,{ToolbarButton:lc,ExternalLink:vg}=wp.components;function nc(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:a}=t,[n,p]=Oo(!1),[d,g]=Oo(o.url||""),[r,i]=Oo(!0),[m,c]=Oo(!1),[u,C]=Oo(!1),y=sc();Fs(()=>{!a&&u&&C(!1)},[a,u]);const v=()=>{C(!0)},w=()=>{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 U=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return U.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 U=b(d),I=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,A=I.exec(U),V=A[1];V&&V==="document"?(U.match(/([?&])embedded=true/i)||(U.indexOf("?")>-1?U+="&embedded=true":U+="?embedded=true"),p(!1),c(!1),s({iframeSrc:U,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&&wt(l,d)},S=()=>{p(!0)};Fs(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{iframeSrc:B,powered_by:x,unitoption:h,width:f,height:D,sharePosition:L,contentShare:$,adManager:T,adSource:P,adFileUrl:Z}=o;if(B&&!k(B))return"Invalid URL.";nt("Google Docs URL");let O="";h=="%"?O="ep-percentage-width":O="ep-fixed-width";let W="",q="",H=L||"right";return $&&(W="ep-content-share-enabled",q="ep-share-position-"+H),!B||n?e.jsxs("div",{...y,children:[e.jsx(Ts,{attributes:o,setAttributes:s}),e.jsx(Ue,{label:nt("Google Docs URL"),onSubmit:_,value:d,cannotEmbed:m,onChange:z=>g(z.target.value),icon:Yt,DocTitle:nt("Learn More About Google Docs Embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})]}):e.jsxs(oc,{children:[e.jsx(Ts,{attributes:o,setAttributes:s}),e.jsx(tc,{children:e.jsx(lc,{className:"components-edit-button",icon:"edit",label:nt("Edit URL","embedpress"),onClick:S})}),r?e.jsx(Pe,{}):null,e.jsx("div",{...y,children:e.jsx("div",{className:"embedpress-document-embed ep-google-docs-"+o.id+" "+W+" "+q+" "+O,style:{width:f+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-${L}-wraper gutenberg-google-docs-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx(Je,{src:de(B),onMouseUp:v,onLoad:w,style:{height:D,width:"100%",display:r?"none":""},frameBorder:"0"}),$&&e.jsx(po,{attributes:o})]}),x&&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&&P==="image"&&Z&&e.jsx(co,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(Be,{showEditButton:B&&!m,switchBackToURLInput:S})]})}const ac="https://schemas.wp.org/trunk/block.json",rc="Google Docs",ic="embedpress/google-docs-block",dc="embedpress",cc="Embed Google Docs documents with live collaboration features and customizable viewing options for seamless content sharing.",pc=2,uc="embedpress",mc="embedpress-blocks-editor",hc="embedpress-blocks-editor-style",gc="embedpress-blocks-style",fc={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},bc={$schema:ac,title:rc,name:ic,category:dc,description:cc,apiVersion:pc,textdomain:uc,editorScript:mc,editorStyle:hc,style:gc,supports:fc},yc={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."}},{__:at}=wp.i18n;qo(bc,{icon:Yt,attributes:yc,keywords:[at("embedpress","embedpress"),at("google","embedpress"),at("docs","embedpress"),at("document","embedpress")],edit:nc,save:Kd});const{applyFilters:Cg}=wp.hooks,{useBlockProps:xc}=wp.blockEditor,{Fragment:jg}=wp.element,wc=({attributes:t})=>{const o=xc.save(),{iframeSrc:s,id:l,unitoption:a,width:n,height:p,powered_by:d,clientId:g,sharePosition:r,contentShare:i,adManager:m,adSource:c,adFileUrl:u,adXPosition:C,adYPosition:y}=t;if(!s)return null;let v="";a==="%"?v="ep-percentage-width":v="ep-fixed-width";let w="",b="",k=r||"right";return i&&(w="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+" "+w+" "+b+" "+v,style:{width:n+a,maxWidth:"100%"},id:`ep-google-drawings-${g}`,"data-source-id":"source-"+g,"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(po,{attributes:t})]}),d&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),m&&c==="image"&&u&&e.jsx(co,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{__:rt}=wp.i18n,{InspectorControls:vc}=wp.blockEditor,{PanelBody:Es,RangeControl:Ms,RadioControl:Cc,ToggleControl:jc}=wp.components,Ns=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a,powered_by:n,contentShare:p,adManager:d,lockContent:g}=t,r=1,i=1e3,m=a==="%"?100:1e3;return e.jsxs(vc,{children:[e.jsxs(Es,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",rt("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(Cc,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:u=>o({unitoption:u}),className:"ep-unit-choice-option"}),e.jsx(Ms,{value:s,onChange:u=>o({width:u}),max:m,min:1})]}
279),e.jsx(Ms,{label:rt("Height","embedpress"),value:l,onChange:u=>o({height:u}),min:r,max:i})]}),e.jsx(Es,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",rt("General","embedpress")]}),className:"embedpress-google-drawings-general",children:e.jsx(jc,{label:rt("Powered By","embedpress"),checked:n,onChange:u=>o({powered_by:u})})}),e.jsx(No,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Mo,{attributes:t,setAttributes:o}),e.jsx(Re,{})]})},{__:it}=wp.i18n,{useState:Vo,useEffect:Ds,Fragment:_c}=wp.element,{BlockControls:kc,useBlockProps:$c}=wp.blockEditor,{ToolbarButton:Pc,ExternalLink:_g}=wp.components;function Sc(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:a}=t,[n,p]=Vo(!1),[d,g]=Vo(o.url||""),[r,i]=Vo(!0),[m,c]=Vo(!1),[u,C]=Vo(!1),y=$c();Ds(()=>{!a&&u&&C(!1)},[a,u]);const v=()=>{i(!1)},w=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=w(d),U=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,I=U.exec(z),A=I[1];A&&A==="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&&wt(l,d)},_=()=>{p(!0)};Ds(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{iframeSrc:S,powered_by:B,unitoption:x,width:h,height:f,sharePosition:D,contentShare:L,adManager:$,adSource:T,adFileUrl:P}=o;if(S&&!b(S))return"Invalid URL.";it("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");let Z="";x=="%"?Z="ep-percentage-width":Z="ep-fixed-width";let O="",W="",q=D||"right";return L&&(O="ep-content-share-enabled",W="ep-share-position-"+q),!S||n?e.jsxs("div",{...y,children:[e.jsx(Ns,{attributes:o,setAttributes:s}),e.jsx(Ue,{label:it("Google Drawings URL"),onSubmit:k,value:d,cannotEmbed:m,onChange:H=>g(H.target.value),icon:jl,DocTitle:it("Learn More About Google Drawings Embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"})]}):e.jsxs(_c,{children:[e.jsx(Ns,{attributes:o,setAttributes:s}),e.jsx(kc,{children:e.jsx(Pc,{className:"components-edit-button",icon:"edit",label:it("Edit URL","embedpress"),onClick:_})}),r?e.jsx(Pe,{}):null,e.jsx("div",{...y,children:e.jsx("div",{className:"embedpress-document-embed ep-google-drawings-"+o.id+" "+O+" "+W+" "+Z,style:{width:h+x,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-${D}-wraper gutenberg-google-drawings-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx("img",{src:de(S),onLoad:v,style:{height:f,width:"100%",display:r?"none":""},alt:"Google Drawing"}),L&&e.jsx(po,{attributes:o})]}),B&&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==="image"&&P&&e.jsx(co,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(Be,{showEditButton:S&&!m,switchBackToURLInput:_})]})}const Lc="https://schemas.wp.org/trunk/block.json",Bc="Google Drawings",Tc="embedpress/google-drawings-block",Fc="embedpress",Ec="Embed Google Drawings with interactive diagrams, flowcharts, and visual content for enhanced presentations and documentation.",Mc=2,Nc="embedpress",Dc="embedpress-blocks-editor",Uc="embedpress-blocks-editor-style",Rc="embedpress-blocks-style",Ic={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Us={$schema:Lc,title:Bc,name:Tc,category:Fc,description:Ec,apiVersion:Mc,textdomain:Nc,editorScript:Dc,editorStyle:Uc,style:Rc,supports:Ic},zc={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."}},{__:dt}=wp.i18n,{registerBlockType:Hc}=wp.blocks;let tn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-drawings-block"]&&(tn=!0);tn&&Hc(Us.name,{...Us,icon:jl,attributes:zc,keywords:[dt("embedpress","embedpress"),dt("google","embedpress"),dt("drawings","embedpress"),dt("diagram","embedpress")],edit:Sc,save:wc});const Gc=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"})})},{__:Rs}=wp.i18n,{InspectorControls:Oc}=wp.blockEditor,{PanelBody:Vc,RangeControl:Is,RadioControl:qc}=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(Oc,{children:[e.jsxs(Vc,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Rs("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(qc,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(Is,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
279),e.jsx(Is,{label:Rs("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(Re,{})]})},{__:Hs}=wp.i18n,{useState:Wc,useEffect:Zc}=wp.element,{useBlockProps:Yc}=wp.blockEditor;function Xc({attributes:t,setAttributes:o,isSelected:s}){const l=Yc(),{url:a,iframeSrc:n,width:p,height:d,unitoption:g}=t,[r,i]=Wc({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:m,url:c,fetching:u,cannotEmbed:C,interactive:y}=r;Zc(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},w=()=>{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 f=b(c),D=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,L=D.exec(f),$=L[1];$&&$=="forms"?(i(T=>({...T,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:f})):i(T=>({...T,cannotEmbed:!0,editingURL:!0}))}else i(T=>({...T,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var f=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return f.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const B=Hs("Google Forms URL");let x="";return g=="%"?x="ep-percentage-width":x="ep-fixed-width",!n||m?e.jsxs("div",{...l,children:[e.jsx(zs,{attributes:t,setAttributes:o}),e.jsx(Ue,{label:B,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(f=>({...f,url:h.target.value})),icon:Cl,DocTitle:Hs("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(zs,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-forms-embed ${x}`,style:{width:g==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[u?e.jsx(Pe,{}):null,e.jsx(Je,{src:de(n),onMouseUp:v,onLoad:w,style:{display:u?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:g==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Be,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const Jc="https://schemas.wp.org/trunk/block.json",Kc="Google Forms",Qc="embedpress/google-forms-block",Ac="embedpress",ep="Embed Google Forms with seamless integration for surveys, contact forms, and data collection with responsive design.",op=2,tp="embedpress",sp="embedpress-blocks-editor",lp="embedpress-blocks-editor-style",np="embedpress-blocks-style",ap={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Gs={$schema:Jc,title:Kc,name:Qc,category:Ac,description:ep,apiVersion:op,textdomain:tp,editorScript:sp,editorStyle:lp,style:np,supports:ap},rp={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}},{__:ct}=wp.i18n,{registerBlockType:ip}=wp.blocks;let sn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-forms-block"]&&(sn=!0);sn&&ip(Gs.name,{...Gs,icon:Cl,attributes:rp,keywords:[ct("embedpress","embedpress"),ct("google","embedpress"),ct("forms","embedpress"),ct("survey","embedpress")],edit:Xc,save:Gc});const dp=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"})})},{__:Os}=wp.i18n,{InspectorControls:cp}=wp.blockEditor,{PanelBody:pp,RangeControl:Vs,RadioControl:up}=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(cp,{children:[e.jsxs(pp,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Os("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(up,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(Vs,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
279),e.jsx(Vs,{label:Os("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(Re,{})]})},{__:Ws}=wp.i18n,{useState:mp,useEffect:hp}=wp.element,{useBlockProps:gp}=wp.blockEditor;function fp({attributes:t,setAttributes:o,isSelected:s}){const l=gp(),{url:a,iframeSrc:n,width:p,height:d,unitoption:g}=t,[r,i]=mp({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:m,url:c,fetching:u,cannotEmbed:C,interactive:y}=r;hp(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},w=()=>{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 f=b(c);if(!c.match("~(maps/embed|output=embed)~i")){var D=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,L=D.exec(f);L&&L.length>1&&L[1]&&L[2]?f="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+L[1]+"&spn="+L[1]+"&t=m&z="+Math.round(parseInt(L[2]))+"&output=embed":i($=>({...$,cannotEmbed:!0,editingURL:!0}))}i($=>({...$,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:f})}else i($=>({...$,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var f=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return f.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const B=Ws("Google Maps URL");let x="";return g=="%"?x="ep-percentage-width":x="ep-fixed-width",!n||m?e.jsxs("div",{...l,children:[e.jsx(qs,{attributes:t,setAttributes:o}),e.jsx(Ue,{label:B,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(f=>({...f,url:h.target.value})),icon:_l,DocTitle:Ws("Learn more about Google maps embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(qs,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-maps-embed ${x}`,style:{width:g==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[u?e.jsx(Pe,{}):null,e.jsx(Je,{src:de(n),onMouseUp:v,onLoad:w,style:{display:u?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:g==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Be,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const bp="https://schemas.wp.org/trunk/block.json",yp="Google Maps",xp="embedpress/google-maps-block",vp="embedpress",Cp="Embed Google Maps with interactive location features, custom markers, and responsive map controls for enhanced user experience.",jp=2,_p="embedpress",kp="embedpress-blocks-editor",$p="embedpress-blocks-editor-style",Pp="embedpress-blocks-style",Sp={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Zs={$schema:bp,title:yp,name:xp,category:vp,description:Cp,apiVersion:jp,textdomain:_p,editorScript:kp,editorStyle:$p,style:Pp,supports:Sp},Lp={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:Bp}=wp.blocks;let ln=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-maps-block"]&&(ln=!0);ln&&Bp(Zs.name,{...Zs,icon:_l,attributes:Lp,keywords:[pt("embedpress","embedpress"),pt("google","embedpress"),pt("maps","embedpress"),pt("location","embedpress")],edit:fp,save:dp});const Tp=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"})})},{__:Ys}=wp.i18n,{InspectorControls:Fp}=wp.blockEditor,{PanelBody:Ep,RangeControl:Xs,RadioControl:Mp}=wp.components,Js=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(Fp,{children:[e.jsxs(Ep,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Ys("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(Mp,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(Xs,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
279),e.jsx(Xs,{label:Ys("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(Re,{})]})},{__:Ks}=wp.i18n,{useState:Np,useEffect:Dp}=wp.element,{useBlockProps:Up}=wp.blockEditor;function Rp({attributes:t,setAttributes:o,isSelected:s}){const l=Up(),{url:a,iframeSrc:n,width:p,height:d,unitoption:g}=t,[r,i]=Np({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:m,url:c,fetching:u,cannotEmbed:C,interactive:y}=r;Dp(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},w=()=>{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 f=b(c),D=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,L=D.exec(f),$=L[1];if($&&$=="spreadsheets"){if(f.indexOf("?")>-1){var T=f.split("?");if(T=T[1],T=T.split("&"),T.length>0){var P=!1,Z=!1;T.map(O=>{O.indexOf("widget=")?Z=!0:O.indexOf("headers=")&&(P=!0)}),Z||(f+="&widget=true"),P||(f+="&headers=false")}}else f+="?widget=true&headers=false";i(O=>({...O,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:f})}else i(O=>({...O,cannotEmbed:!0,editingURL:!0}))}else i(O=>({...O,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var f=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return f.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const B=Ks("Google Sheets URL");let x="";return g=="%"?x="ep-percentage-width":x="ep-fixed-width",!n||m?e.jsxs("div",{...l,children:[e.jsx(Js,{attributes:t,setAttributes:o}),e.jsx(Ue,{label:B,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(f=>({...f,url:h.target.value})),icon:vl,DocTitle:Ks("Learn more about Google sheets embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(Js,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-sheets-embed ${x}`,style:{width:g==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[u?e.jsx(Pe,{}):null,e.jsx(Je,{src:de(n),onMouseUp:v,onLoad:w,style:{display:u?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:g==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Be,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const Ip="https://schemas.wp.org/trunk/block.json",zp="Google Sheets",Hp="embedpress/google-sheets-block",Gp="embedpress",Op="Embed Google Sheets spreadsheets with live data updates and customizable display options for collaborative content.",Vp=2,qp="embedpress",Wp="embedpress-blocks-editor",Zp="embedpress-blocks-editor-style",Yp="embedpress-blocks-style",Xp={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},Qs={$schema:Ip,title:zp,name:Hp,category:Gp,description:Op,apiVersion:Vp,textdomain:qp,editorScript:Wp,editorStyle:Zp,style:Yp,supports:Xp},Jp={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:Kp}=wp.blocks;let nn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-sheets-block"]&&(nn=!0);nn&&Kp(Qs.name,{...Qs,icon:vl,attributes:Jp,keywords:[ut("embedpress","embedpress"),ut("google","embedpress"),ut("sheets","embedpress"),ut("spreadsheet","embedpress")],edit:Rp,save:Tp});const Qp=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"})})},{__:As}=wp.i18n,{InspectorControls:Ap}=wp.blockEditor,{PanelBody:eu,RangeControl:el,RadioControl:ou}=wp.components,ol=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(Ap,{children:[e.jsxs(eu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",As("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(ou,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(el,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
279),e.jsx(el,{label:As("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(Re,{})]})},{__:tl}=wp.i18n,{useState:tu,useEffect:su}=wp.element,{useBlockProps:lu}=wp.blockEditor;function nu({attributes:t,setAttributes:o,isSelected:s}){const l=lu(),{url:a,iframeSrc:n,width:p,height:d,unitoption:g}=t,[r,i]=tu({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:m,url:c,fetching:u,cannotEmbed:C,interactive:y}=r;su(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const v=()=>{i(h=>({...h,interactive:!0}))},w=()=>{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 f=b(c),D=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,L=D.exec(f),$=L[1];$&&$=="presentation"?(f.match(/pub\?/i)&&(f=f.replace("/pub?","/embed?")),i(T=>({...T,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:f})):i(T=>({...T,cannotEmbed:!0,editingURL:!0}))}else i(T=>({...T,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(n&&!(h=>{var f=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return f.test(h)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const B=tl("Google Slides URL");let x="";return g=="%"?x="ep-percentage-width":x="ep-fixed-width",!n||m?e.jsxs("div",{...l,children:[e.jsx(ol,{attributes:t,setAttributes:o}),e.jsx(Ue,{label:B,onSubmit:k,value:c,cannotEmbed:C,onChange:h=>i(f=>({...f,url:h.target.value})),icon:wl,DocTitle:tl("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(ol,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-slides-embed ${x}`,style:{width:g==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[u?e.jsx(Pe,{}):null,e.jsx(Je,{src:de(n),onMouseUp:v,onLoad:w,style:{display:u?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:g==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Be,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const au="https://schemas.wp.org/trunk/block.json",ru="Google Slides",iu="embedpress/google-slides-block",du="embedpress",cu="Embed Google Slides presentations with interactive slideshow features and customizable viewing options.",pu=2,uu="embedpress",mu="embedpress-blocks-editor",hu="embedpress-blocks-editor-style",gu="embedpress-blocks-style",fu={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},sl={$schema:au,title:ru,name:iu,category:du,description:cu,apiVersion:pu,textdomain:uu,editorScript:mu,editorStyle:hu,style:gu,supports:fu},bu={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:yu}=wp.blocks;let an=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-slides-block"]&&(an=!0);an&&yu(sl.name,{...sl,icon:wl,attributes:bu,keywords:[mt("embedpress","embedpress"),mt("google","embedpress"),mt("slides","embedpress"),mt("presentation","embedpress")],edit:nu,save:Qp});const xu=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"})})},{__:ll}=wp.i18n,{InspectorControls:wu}=wp.blockEditor,{PanelBody:vu,RangeControl:nl,RadioControl:Cu}=wp.components,al=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(wu,{children:[e.jsxs(vu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",ll("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(Cu,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(nl,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
279),e.jsx(nl,{label:ll("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(Re,{})]})},{__:rl}=wp.i18n,{useState:ju,useEffect:_u}=wp.element,{useBlockProps:ku}=wp.blockEditor;function $u({attributes:t,setAttributes:o,isSelected:s}){const l=ku(),{url:a,iframeSrc:n,width:p,height:d,unitoption:g}=t,[r,i]=ju({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:m,url:c,fetching:u,cannotEmbed:C,interactive:y}=r;_u(()=>{!s&&y&&i(x=>({...x,interactive:!1}))},[s,y]);const v=()=>{i(x=>({...x,interactive:!0}))},w=()=>{i(x=>({...x,fetching:!1}))},b=x=>(x&&typeof x=="string"&&(x=x.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi,""),x=x.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"")),x),k=x=>{x&&x.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 f=b(c),D=h.exec(f),L=D[1],$="channel",T;switch(c.indexOf("clips.twitch.tv")>-1?$="clip":c.indexOf("/videos/")>-1?$="video":c.indexOf("#/chat$#")>-1&&($="chat"),$){case"channel":f="https://player.twitch.tv/?channel="+L,T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":f="https://clips.twitch.tv/embed?clip="+L+"&autoplay=false",T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":L=D[2],f="https://player.twitch.tv/?video="+L,T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":f="http://www.twitch.tv/embed/"+L+"/chat",T={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+L+"'"};break}i(P=>({...P,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:f,attrs:T})}else i(P=>({...P,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(x=>({...x,editingURL:!0}))},S=rl("Twitch URL");let B="";return g=="%"?B="ep-percentage-width":B="ep-fixed-width",!n||m?e.jsxs("div",{...l,children:[e.jsx(al,{attributes:t,setAttributes:o}),e.jsx(Ue,{label:S,onSubmit:k,value:c,cannotEmbed:C,onChange:x=>i(h=>({...h,url:x.target.value})),icon:kl,DocTitle:rl("Learn more about Twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(al,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-twitch-embed ${B}`,style:{width:g==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[u?e.jsx(Pe,{}):null,e.jsx(Je,{src:de(n),onMouseUp:v,onLoad:w,style:{display:u?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:g==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Be,{showEditButton:n&&!C,switchBackToURLInput:_})]})]})}const Pu="https://schemas.wp.org/trunk/block.json",Su="Twitch",Lu="embedpress/twitch-block",Bu="embedpress",Tu="Embed Twitch videos, streams, and clips with customizable player options and responsive sizing controls.",Fu=2,Eu="embedpress",Mu="embedpress-blocks-editor",Nu="embedpress-blocks-editor-style",Du="embedpress-blocks-style",Uu={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},il={$schema:Pu,title:Su,name:Lu,category:Bu,description:Tu,apiVersion:Fu,textdomain:Eu,editorScript:Mu,editorStyle:Nu,style:Du,supports:Uu},Ru={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}},{__:ht}=wp.i18n,{registerBlockType:Iu}=wp.blocks;let rn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["twitch-block"]&&(rn=!0);rn&&Iu(il.name,{...il,icon:kl,attributes:Ru,keywords:[ht("embedpress","embedpress"),ht("twitch","embedpress"),ht("stream","embedpress"),ht("gaming","embedpress")],edit:$u,save:xu});const zu=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"})})},{__:dl}=wp.i18n,{InspectorControls:Hu}=wp.blockEditor,{PanelBody:Gu,RangeControl:cl,RadioControl:Ou}=wp.components,pl=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(Hu,{children:[e.jsxs(Gu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",dl("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(cl,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
279),e.jsx(cl,{label:dl("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(Re,{})]})},{__:ul}=wp.i18n,{useState:Vu,useEffect:qu}=wp.element,{useBlockProps:Wu}=wp.blockEditor;function Zu({attributes:t,setAttributes:o,isSelected:s}){const l=Wu(),{url:a,iframeSrc:n,width:p,height:d,unitoption:g}=t,[r,i]=Vu({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1,mediaId:""}),{editingURL:m,url:c,fetching:u,cannotEmbed:C,interactive:y}=r;qu(()=>{!s&&y&&i(x=>({...x,interactive:!1}))},[s,y]);const v=()=>{i(x=>({...x,interactive:!0}))},w=()=>{if(i(x=>({...x,fetching:!1})),embedpressGutenbergData.wisita_options){let x={...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("'+x.mediaId+'", '+embedpressGutenbergData.wisita_options+");",document.body.appendChild(h)},400)}},b=x=>{x&&x.preventDefault(),o({url:c});const h=c.match(/(?:wistia\.com\/medias\/|wi\.st\/)([a-zA-Z0-9]+)/);if(c&&h){let f=h[1],D=`//fast.wistia.net/embed/iframe/${f}`;i(L=>({...L,editingURL:!1,cannotEmbed:!1,mediaId:f})),o({iframeSrc:D})}else i(f=>({...f,cannotEmbed:!0,editingURL:!0}))},k=()=>{i(x=>({...x,editingURL:!0}))};if(n&&!(x=>/^\/\/fast\.wistia\.net\/embed\/iframe\//.test(x))(n))return e.jsx("div",{...l,children:"Invalid URL."});const S=ul("Wistia URL");let B="";return g=="%"?B="ep-percentage-width":B="ep-fixed-width",!n||m?e.jsxs("div",{...l,children:[e.jsx(pl,{attributes:t,setAttributes:o}),e.jsx(Ue,{label:S,onSubmit:b,value:c,cannotEmbed:C,onChange:x=>i(h=>({...h,url:x.target.value})),icon:$l,DocTitle:ul("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(pl,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-wistia-embed ${B}`,style:{width:g==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[u?e.jsx(Pe,{}):null,e.jsx(Je,{src:de(n),onMouseUp:v,onLoad:w,style:{display:u?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:g==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Be,{showEditButton:n&&!C,switchBackToURLInput:k})]})]})}const Yu="https://schemas.wp.org/trunk/block.json",Xu="Wistia",Ju="embedpress/wistia-block",Ku="embedpress",Qu="Embed Wistia videos with professional video hosting features and advanced analytics integration.",Au=2,em="embedpress",om="embedpress-blocks-editor",tm="embedpress-blocks-editor-style",sm="embedpress-blocks-style",lm={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},ml={$schema:Yu,title:Xu,name:Ju,category:Ku,description:Qu,apiVersion:Au,textdomain:em,editorScript:om,editorStyle:tm,style:sm,supports:lm},nm={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}},{__:gt}=wp.i18n,{registerBlockType:am}=wp.blocks;let dn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["wistia-block"]&&(dn=!0);dn&&am(ml.name,{...ml,icon:$l,attributes:nm,keywords:[gt("embedpress","embedpress"),gt("wistia","embedpress"),gt("video","embedpress"),gt("embed","embedpress")],edit:Zu,save:zu});const{useBlockProps:rm}=wp.blockEditor,im=({attributes:t})=>{const o=rm.save(),{iframeSrc:s,width:l,height:a,unitoption:n}=t;if(!s)return null;let p="";return n=="%"?p="ep-percentage-width":p="ep-fixed-width",e.jsx("div",{...o,children:e.jsx("div",{className:`embedpress-youtube-embed ${p}`,style:{width:n==="%"?`${l}%`:`${l}px`,height:`${a}px`},"data-embed-type":"YouTube",children:e.jsx("iframe",{src:de(s),style:{width:"100%",height:"100%"},frameBorder:"0",width:n==="%"?"100%":l,height:a,allowFullScreen:!0})})})},{__:hl}=wp.i18n,{InspectorControls:dm}=wp.blockEditor,{PanelBody:cm,RangeControl:gl,RadioControl:pm}=wp.components,fl=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:a}=t,n=1,p=1e3,d=a==="%"?100:1e3;return e.jsxs(dm,{children:[e.jsxs(cm,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",hl("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(pm,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(gl,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
279),e.jsx(gl,{label:hl("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:n,max:p})]}),e.jsx(Re,{})]})},{__:bl}=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,unitoption:g}=t,[r,i]=um({editingURL:!1,url:a||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:m,url:c,fetching:u,cannotEmbed:C,interactive:y}=r;mm(()=>{!s&&y&&i(x=>({...x,interactive:!1}))},[s,y]);const v=()=>{i(x=>({...x,interactive:!0}))},w=()=>{i(x=>({...x,fetching:!1}))},b=x=>{x&&x.preventDefault(),o({url:c});const h=c.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(c&&h){let D=h[1],L="https://www.youtube.com/embed/"+D,$=new URL(L);if(typeof embedpressProObj<"u")for(var f in embedpressProObj.youtubeParams)$.searchParams.set(f,embedpressProObj.youtubeParams[f]);i(T=>({...T,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:$.href,mediaId:D})}else i(D=>({...D,cannotEmbed:!0,editingURL:!0}))},k=()=>{i(x=>({...x,editingURL:!0}))};if(n&&!(x=>{var h=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;return h.test(x)})(n))return e.jsx("div",{...l,children:"Invalid URL."});const S=bl("YouTube URL");let B="";return g=="%"?B="ep-percentage-width":B="ep-fixed-width",!n||m?e.jsxs("div",{...l,children:[e.jsx(fl,{attributes:t,setAttributes:o}),e.jsx(Ue,{label:S,onSubmit:b,value:c,cannotEmbed:C,onChange:x=>i(h=>({...h,url:x.target.value})),icon:Pl,DocTitle:bl("Learn more about YouTube embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(fl,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-youtube-embed ${B}`,style:{width:g==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[u?e.jsx(Pe,{}):null,e.jsx(Je,{src:de(n),onMouseUp:v,onLoad:w,style:{display:u?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:g==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:v}),e.jsx(Be,{showEditButton:n&&!C,switchBackToURLInput:k})]})]})}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}},{__:ft}=wp.i18n;qo(Pm,{icon:Pl,attributes:Sm,keywords:[ft("embedpress","embedpress"),ft("youtube","embedpress"),ft("video","embedpress"),ft("embed","embedpress")],edit:gm,save:im});const{addFilter:yo,applyFilters:We}=wp.hooks,{MediaUpload:Lm}=wp.blockEditor,{__:je}=wp.i18n,{ToggleControl:Bm,SelectControl:Tm,Button:Fm,ColorPalette:Em,TextControl:Mm,RangeControl:Nm}=wp.components,xo=embedpressGutenbergData.isProPluginActive,To=(t,o)=>e.jsxs("div",{children:[t,o&&e.jsx("span",{className:"isPro",children:"pro"})]});xo||(yo("embedpress.uploadPlaceholder","embedpress/uploadPlaceholder",(t,o=!0)=>(t.push(e.jsxs("div",{className:"pro-control ep-custom-logo-button",onClick:s=>{ro(s,xo)},children:[e.jsx(Lm,{render:()=>e.jsx(Fm,{className:"ep-logo-upload-button",icon:"upload",children:je("Upload Image","embedpress")})}),To(null,o)]})),t)),yo("embedpress.togglePlaceholder","embedpress/togglePlaceholder",(t,o,s,l=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:a=>{ro(a,xo)},children:[e.jsx(Bm,{label:je(o),checked:s}),To(null,l)]})),t)),yo("embedpress.selectPlaceholder","embedpress/selectPlaceholder",(t,o,s,l,a=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:n=>{ro(n,xo)},children:[e.jsx(Tm,{label:je(o,"embedpress"),value:s,options:[{label:l,value:s}],className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),To(null,a)]})),t)),yo("embedpress.colorPlatePlaceholder","embedpress/colorPlatePlaceholder",(t,o,s,l,a=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:n=>{ro(n,xo)},children:[e.jsx(M,{headerText:o}),e.jsx(Em,{label:je(o),colors:l,value:s}),To(null,a)]})),t)),yo("embedpress.textControlPlaceholder","embedpress/textControlPlaceholder",(t,o,s,l=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:a=>{ro(a,xo)},children:[e.jsx(Mm,{label:je(o,"embedpress"),value:s}),To(null,l)]})),t)),yo("embedpress.rangeControlPlaceholder","embedpress/rangeControlPlaceholder",(t,o,s,l=0,a=100,n=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:p=>{ro(p,xo)},children:[e.jsx(Nm,{label:je(o,"embedpress"),value:s,min:l,max:a}),To(null,n)]})),t)),yo("embedpress.adsPlaceholder","embedpress/adsPlaceholder",t=>(t.push(e.jsxs("div",{className:"ad-manager-controllers opacity",children:[We("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"}),We("embedpress.uploadPlaceholder",[],!1)]}),e.jsxs("div",{children:[We("embedpress.textControlPlaceholder",[],je("Ad Width"),"",!1),We("embedpress.textControlPlaceholder",[],je("Ad Height"),"",!1),We("embedpress.rangeControlPlaceholder",[],je("Ad X position(%)"),50,0,100,!1),We("embedpress.rangeControlPlaceholder",[],je("Ad Y position(%)"),50,0,100,!1)]}),We("embedpress.textControlPlaceholder",[],je("Ad URL"),"",!1),We("embedpress.textControlPlaceholder",[],je("Ad Start After (sec)"),"",!1),We("embedpress.togglePlaceholder",[],je("Ad Skip Button"),!1,!1),We("embedpress.textControlPlaceholder",[],je("Skip Button After (sec)"),"",!1)]})),t)));const{__:Dm}=wp.i18n;Dm("Embed a google document.");const{__:kg}=wp.i18n,{__:Um}
279=wp.i18n;wp.blocks&&wp.blocks.registerBlockCollection&&wp.blocks.registerBlockCollection("embedpress",{title:Um("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.