1import{j as e,g as xl,R as wl}from"./chunks/index-DOwIfqLg.js";const{G:uo,Path:R,Polygon:Rm,SVG:Ke}=wp.components,Yt=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",children:[" ",e.jsxs(uo,{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 "})]})]}),vl=e.jsx(Ke,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24",children:e.jsxs(uo,{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_)"}})]})}),Cl=e.jsx(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:e.jsxs(uo,{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 "})]})}),jl=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(uo,{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 "})]})]}),_l=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(uo,{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"})]})]}),kl=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(uo,{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 "})]})]}),$l=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1",children:[" ",e.jsxs(uo,{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 "})]})]}),Pl=e.jsxs(Ke,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1",children:[" ",e.jsxs(uo,{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"})]})]}),Sl=e.jsx(Ke,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false",children:e.jsx(R,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})}),Ll=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"})})]}),Bl=e.jsxs("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512",children:[e.jsx("path",{fill:"#E2E5E7",d:"M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"}),e.jsx("path",{fill:"#B0B7BD",d:"M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"}),e.jsx("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 "}),e.jsx("path",{fill:"#F15642",d:`M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16 2 V416z`}),e.jsxs("g",{children:[e.jsx("path",{fill:"#FFFFFF",d:`M101.744,303.152c0-4.224,3.328-8.832,8.688-8.832h29.552c16.64,0,31.616,11.136,31.616,32.48 3 c0,20.224-14.976,31.488-31.616,31.488h-21.36v16.896c0,5.632-3.584,8.816-8.192,8.816c-4.224,0-8.688-3.184-8.688-8.816V303.152z 4 M118.624,310.432v31.872h21.36c8.576,0,15.36-7.568,15.36-15.504c0-8.944-6.784-16.368-15.36-16.368H118.624z`}),e.jsx("path",{fill:"#FFFFFF",d:`M196.656,384c-4.224,0-8.832-2.304-8.832-7.92v-72.672c0-4.592,4.608-7.936,8.832-7.936h29.296 5 c58.464,0,57.184,88.528,1.152,88.528H196.656z M204.72,311.088V368.4h21.232c34.544,0,36.08-57.312,0-57.312H204.72z`}),e.jsx("path",{fill:"#FFFFFF",d:`M303.872,312.112v20.336h32.624c4.608,0,9.216,4.608,9.216,9.072c0,4.224-4.608,7.68-9.216,7.68 6 h-32.624v26.864c0,4.48-3.184,7.92-7.664,7.92c-5.632,0-9.072-3.44-9.072-7.92v-72.672c0-4.592,3.456-7.936,9.072-7.936h44.912 7 c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z`})]}),e.jsx("path",{fill:"#CAD1D8",d:"M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"})]}),Tl=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"})]}),un=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"})]}),mn=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"})}),hn=()=>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"})]})}),gn=()=>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"})})}),fn=()=>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"})})}),bn=()=>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"})})}),yn=()=>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",{})]})}),xn=()=>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 Fl={exports:{}},El={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=[],n=0,a=0;n<s.length;n++,a+=8)l[a>>>5]|=s[n]<<24-a%32;return l},wordsToBytes:function(s){for(var l=[],n=0;n<s.length*32;n+=8)l.push(s[n>>>5]>>>24-n%32&255);return l},bytesToHex:function(s){for(var l=[],n=0;n<s.length;n++)l.push((s[n]>>>4).toString(16)),l.push((s[n]&15).toString(16));return l.join("")},hexToBytes:function(s){for(var l=[],n=0;n<s.length;n+=2)l.push(parseInt(s.substr(n,2),16));return l},bytesToBase64:function(s){for(var l=[],n=0;n<s.length;n+=3)for(var a=s[n]<<16|s[n+1]<<8|s[n+2],p=0;p<4;p++)n*8+p*6<=s.length*8?l.push(t.charAt(a>>>6*(3-p)&63)):l.push("=");return l.join("")},base64ToBytes:function(s){s=s.replace(/[^A-Z0-9+\/]/ig,"");for(var l=[],n=0,a=0;n<s.length;a=++n%4)a!=0&&l.push((t.indexOf(s.charAt(n-1))&Math.pow(2,-2*a+8)-1)<<a*2|t.indexOf(s.charAt(n))>>>6-a*2);return l}};El.exports=o})();var wn=El.exports,It={utf8:{stringToBytes:function(t){return It.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(It.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var o=[],s=0;s<t.length;s++)o.push(t.charCodeAt(s)&255);return o},bytesToString:function(t){for(var o=[],s=0;s<t.length;s++)o.push(String.fromCharCode(t[s]));return o.join("")}}},Qt=It;/*! 8 * Determine if an object is a Buffer 9 * 10 * @author Feross Aboukhadijeh <https://feross.org> 11 * @license MIT 12 */var vn=function(t){return t!=null&&(Nl(t)||Cn(t)||!!t._isBuffer)};function Nl(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Cn(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Nl(t.slice(0,0))}(function(){var t=wn,o=Qt.utf8,s=vn,l=Qt.bin,n=function(a,p){a.constructor==String?p&&p.encoding==="binary"?a=l.stringToBytes(a):a=o.stringToBytes(a):s(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());
12for(var d=t.bytesToWords(a),f=a.length*8,r=1732584193,i=-271733879,u=-1732584194,c=271733878,m=0;m<d.length;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;d[f>>>5]|=128<<f%32,d[(f+64>>>9<<4)+14]=f;for(var v=n._ff,y=n._gg,C=n._hh,w=n._ii,m=0;m<d.length;m+=16){var b=r,k=i,_=u,B=c;r=v(r,i,u,c,d[m+0],7,-680876936),c=v(c,r,i,u,d[m+1],12,-389564586),u=v(u,c,r,i,d[m+2],17,606105819),i=v(i,u,c,r,d[m+3],22,-1044525330),r=v(r,i,u,c,d[m+4],7,-176418897),c=v(c,r,i,u,d[m+5],12,1200080426),u=v(u,c,r,i,d[m+6],17,-1473231341),i=v(i,u,c,r,d[m+7],22,-45705983),r=v(r,i,u,c,d[m+8],7,1770035416),c=v(c,r,i,u,d[m+9],12,-1958414417),u=v(u,c,r,i,d[m+10],17,-42063),i=v(i,u,c,r,d[m+11],22,-1990404162),r=v(r,i,u,c,d[m+12],7,1804603682),c=v(c,r,i,u,d[m+13],12,-40341101),u=v(u,c,r,i,d[m+14],17,-1502002290),i=v(i,u,c,r,d[m+15],22,1236535329),r=y(r,i,u,c,d[m+1],5,-165796510),c=y(c,r,i,u,d[m+6],9,-1069501632),u=y(u,c,r,i,d[m+11],14,643717713),i=y(i,u,c,r,d[m+0],20,-373897302),r=y(r,i,u,c,d[m+5],5,-701558691),c=y(c,r,i,u,d[m+10],9,38016083),u=y(u,c,r,i,d[m+15],14,-660478335),i=y(i,u,c,r,d[m+4],20,-405537848),r=y(r,i,u,c,d[m+9],5,568446438),c=y(c,r,i,u,d[m+14],9,-1019803690),u=y(u,c,r,i,d[m+3],14,-187363961),i=y(i,u,c,r,d[m+8],20,1163531501),r=y(r,i,u,c,d[m+13],5,-1444681467),c=y(c,r,i,u,d[m+2],9,-51403784),u=y(u,c,r,i,d[m+7],14,1735328473),i=y(i,u,c,r,d[m+12],20,-1926607734),r=C(r,i,u,c,d[m+5],4,-378558),c=C(c,r,i,u,d[m+8],11,-2022574463),u=C(u,c,r,i,d[m+11],16,1839030562),i=C(i,u,c,r,d[m+14],23,-35309556),r=C(r,i,u,c,d[m+1],4,-1530992060),c=C(c,r,i,u,d[m+4],11,1272893353),u=C(u,c,r,i,d[m+7],16,-155497632),i=C(i,u,c,r,d[m+10],23,-1094730640),r=C(r,i,u,c,d[m+13],4,681279174),c=C(c,r,i,u,d[m+0],11,-358537222),u=C(u,c,r,i,d[m+3],16,-722521979),i=C(i,u,c,r,d[m+6],23,76029189),r=C(r,i,u,c,d[m+9],4,-640364487),c=C(c,r,i,u,d[m+12],11,-421815835),u=C(u,c,r,i,d[m+15],16,530742520),i=C(i,u,c,r,d[m+2],23,-995338651),r=w(r,i,u,c,d[m+0],6,-198630844),c=w(c,r,i,u,d[m+7],10,1126891415),u=w(u,c,r,i,d[m+14],15,-1416354905),i=w(i,u,c,r,d[m+5],21,-57434055),r=w(r,i,u,c,d[m+12],6,1700485571),c=w(c,r,i,u,d[m+3],10,-1894986606),u=w(u,c,r,i,d[m+10],15,-1051523),i=w(i,u,c,r,d[m+1],21,-2054922799),r=w(r,i,u,c,d[m+8],6,1873313359),c=w(c,r,i,u,d[m+15],10,-30611744),u=w(u,c,r,i,d[m+6],15,-1560198380),i=w(i,u,c,r,d[m+13],21,1309151649),r=w(r,i,u,c,d[m+4],6,-145523070),c=w(c,r,i,u,d[m+11],10,-1120210379),u=w(u,c,r,i,d[m+2],15,718787259),i=w(i,u,c,r,d[m+9],21,-343485551),r=r+b>>>0,i=i+k>>>0,u=u+_>>>0,c=c+B>>>0}return t.endian([r,i,u,c])};n._ff=function(a,p,d,f,r,i,u){var c=a+(p&d|~p&f)+(r>>>0)+u;return(c<<i|c>>>32-i)+p},n._gg=function(a,p,d,f,r,i,u){var c=a+(p&f|d&~f)+(r>>>0)+u;return(c<<i|c>>>32-i)+p},n._hh=function(a,p,d,f,r,i,u){var c=a+(p^d^f)+(r>>>0)+u;return(c<<i|c>>>32-i)+p},n._ii=function(a,p,d,f,r,i,u){var c=a+(d^(p|~f))+(r>>>0)+u;return(c<<i|c>>>32-i)+p},n._blocksize=16,n._digestsize=16,Fl.exports=function(a,p){if(a==null)throw new Error("Illegal argument "+a);var d=t.wordsToBytes(n(a,p));return p&&p.asBytes?d:p&&p.asString?l.bytesToString(d):t.bytesToHex(d)}})();var jn=Fl.exports;const No=xl(jn),_n=(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||""},n=Object.keys(l).map(a=>`${encodeURIComponent(a)}=${encodeURIComponent(l[a])}`).join("&");s.send(n)},kn=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(n=>`${encodeURIComponent(n)}=${encodeURIComponent(s[n])}`).join("&");o.send(l)},$n=()=>
12{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(n=>!s.includes(n));if(l.length&&s.length<o.length){const n=l.filter(a=>a.name==="embedpress/embedpress"&&a.attributes.clientId).map(a=>a.attributes.clientId);n.length>0&&n.forEach(a=>kn(a))}o=s})},Ml=({attributes:t})=>{const{customPlayer:o}=t;if(!o)return"";const{playerPreset:s,playerColor:l,posterThumbnail:n,playerPip:a,playerRestart:p,playerRewind:d,playerFastForward:f,playerTooltip:r,playerHideControls:i,playerDownload:u,starttime:c,endtime:m,relatedvideos:v,muteVideo:y,fullscreen:C,vstarttime:w,vautoplay:b,vautopause:k,vdnt:_}=t,B={rewind:d,restart:p,pip:a,poster_thumbnail:n,player_color:l,player_preset:s,fast_forward:f,player_tooltip:r,hide_controls:i,download:u,...c&&{start:c},...m&&{end:m},...v&&{rel:v},...y&&{mute:y},...C&&{fullscreen:C},...w&&{t:w},...b&&{autoplay:b},...k&&{autopause:k},..._&&{dnt:_}};return JSON.stringify(B)},Dl=({attributes:t})=>{const{instaLayout:o,slidesShow:s,slidesScroll:l,carouselAutoplay:n,autoplaySpeed:a,transitionSpeed:p,carouselLoop:d,carouselArrows:f,carouselSpacing:r}=t;return o!=="insta-carousel"?"":JSON.stringify({layout:o,slideshow:s,autoplay:n,autoplayspeed:a,transitionspeed:p,loop:d,arrows:f,spacing:r})},zt=t=>t.match(/\.(mp4|mov|avi|wmv|flv|mkv|webm|mpeg|mpg)$/i),Ht=t=>t.match(/\.(mp3|wav|ogg|aac)$/i),yt=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/(?:c\/|channel\/|user\/|@)[\w.-]+\/?$/i.test(t),Gt=t=>/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)[\w-]+/i.test(t)&&!yt(t)&&!xt(t)&&!Ul(t),xt=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/(?:c\/|channel\/|user\/|@)[\w-]+\/live\/?$/i.test(t),Ul=t=>/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/shorts\/[\w-]+/i.test(t),Rl=t=>/^(?:https?:\/\/)?(?:www\.)?vimeo\.com\/\d+/i.test(t),Il=t=>/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i.test(t),zl=t=>/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/[\w.-]+\/?$/i.test(t),Ot=t=>/^(?:https?:\/\/)?(?:www\.)?opensea\.io\/collection\/[\w.-]+\/?$/i.test(t),Hl=t=>/^(?:https?:\/\/)?(?:www\.)?opensea\.io\/assets\/[\w.-]+\/[\w.-]+\/?$/i.test(t),Pn=t=>/^(?:https?:\/\/)?(?:www\.)?calendly\.com\/[\w.-]+/i.test(t),Sn=t=>/^(?:https?:\/\/)?(?:www\.)?tiktok\.com\/@[\w.-]+\/video\/([\w.-]+)$/i.test(t),Ln=t=>/^https?:\/\/(www\.)?spreaker\.com\/(show|user|podcast|episode)\/[^/]+/.test(t),Bn=t=>/^https:\/\/(photos\.app\.goo\.gl|photos\.google\.com)\/.*$/i.test(t),Tn=(t,o)=>{const{url:s,posterThumbnail:l,customPlayer:n,playerTooltip:a,playerHideControls:p,playerPreset:d,playerColor:f,playerPip:r,playerRestart:i,playerRewind:u,playerFastForward:c,fullscreen:m,vautopause:v,vdnt:y,vstarttime:C}=o,w=Ht(s);zt(s);const b=setInterval(()=>
12{let k=document.querySelector(`[data-playerid="${t}"] .ose-embedpress-responsive`);if(zt(s)?k=document.querySelector(`[data-playerid="${t}"] .ose-embedpress-responsive video`):Ht(s)&&(k=document.querySelector(`[data-playerid="${t}"] .ose-embedpress-responsive audio`)),k&&typeof Plyr<"u"){clearInterval(b);let _=document.querySelector(`[data-playerid="${t}"]`).getAttribute("data-options");_=JSON.parse(_),document.querySelector(`[data-playerid="${t}"]`).style.opacity="1";const B=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,$=document.querySelector(`[data-playerid='${t}'] iframe[src*="youtube"]`)!==null,x=B&&$,h=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:a,seek:a},fullscreen:{enabled:!0,fallback:!0,iosNative:!x},playsinline:!0,youtube:{..._.autoplay&&{autoplay:_.autoplay},..._.start&&{start:_.start},..._.end&&{end:_.end},..._.rel&&{rel:_.rel},..._.fullscreen&&{fs:_.fullscreen}},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,controls:!1,..._.t&&{t:_.t},..._.vautoplay&&{autoplay:_.vautoplay},..._.autopause&&{autopause:_.autopause},..._.dnt&&{dnt:_.dnt}}});
12if(x){const g=document.querySelector(`[data-playerid='${t}'] iframe[src*="youtube"]`);g&&(g.setAttribute("allowfullscreen",""),g.setAttribute("webkitallowfullscreen",""),g.setAttribute("mozallowfullscreen",""),g.classList.add("ios-youtube-iframe"),h.on("enterfullscreen",()=>{const E=document.querySelector('meta[name="viewport"]');if(E){const S=E.getAttribute("content");E.setAttribute("data-original-content",S),E.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover")}}),h.on("exitfullscreen",()=>{const E=document.querySelector('meta[name="viewport"]');E&&E.hasAttribute("data-original-content")&&(E.setAttribute("content",E.getAttribute("data-original-content")),E.removeAttribute("data-original-content"))}))}l&&(h.poster=l)}},200)},Fn=(t,o)=>{const{url:s,instaLayout:l,slidesShow:n,slidesScroll:a,carouselAutoplay:p,autoplaySpeed:d,transitionSpeed:f,carouselLoop:r,carouselArrows:i,carouselSpacing:u}=o,c={layout:l,slidesPerView:n,spacing:u,loop:r,autoplay:p,autoplaySpeed:d,transitionSpeed:f,arrows:i,breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:4}}},m=setInterval(()=>{if(document.querySelector(`[data-carouselid="${t}"] .embedpress-insta-container`)&&typeof CgCarousel<"u"){clearInterval(m);const y=new CgCarousel(`[data-carouselid="${t}"] .embedpress-insta-container`,c,{});if(i){const b=document.querySelector(`[data-carouselid="${t}
12"] .cg-carousel__btns`);b&&b.classList.remove("hidden")}else{const b=document.querySelector(`[data-carouselid="${t}"] .cg-carousel__btns`);b&&b.classList.add("hidden")}const C=document.querySelector(`[data-carouselid="${t}"] #js-carousel__next-1`);C&&C.addEventListener("click",()=>y.next());const w=document.querySelector(`[data-carouselid="${t}"] #js-carousel__prev-1`);w&&w.addEventListener("click",()=>y.prev())}},200)},{Fragment:En}=wp.element;function Gl({attributes:t}){const{url:o,clientId:s,width:l,height:n,videosize:a,ispagination:p,gapbetweenvideos:d,ytChannelLayout:f,columns:r,customlogo:i,loadmore:u,itemperpage:c,limit:m,customPlayer:v,fullscreen:y,posterThumbnail:C,playerPreset:w,playerColor:b,playerPip:k,playerRestart:_,playerRewind:B,playerFastForward:$,playerDownload:x,instaLayout:h}=t,g=No(s||""),E=k?"block":"none",S=_?"block":"none",P=B?"block":"none",T=$?"block":"none",L=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=` 13 [data-source-id="source-${s}"] img.watermark.ep-custom-logo { 14 display: block !important; 15 } 16 `);let H="none";return h==="insta-carousel"&&(H="block"),e.jsxs(En,{children:[yt(o)&&e.jsx("style",{children:` 17 [data-source-id="source-${s}"] .ep-youtube__content__block .youtube__content__body .content__wrap:not(.youtube-carousel){ 18 gap: ${d}px!important; 19 margin-top: ${d}px!important; 20 display: grid!important; 21 grid-template-columns: ${O}!important; 22 } 23 24 [data-source-id="source-${s}"] .ose-youtube{ 25 width: ${l}px!important; 26 } 27 [data-source-id="source-${s}"] .ose-youtube .ep-first-video iframe{ 28 max-height: ${n}px!important; 29 } 30 31 [data-source-id="source-${s}"] .ose-youtube > iframe{ 32 height: ${n}px!important; 33 width: ${l}px!important; 34 } 35 36 [data-source-id="source-${s}"] .ep-youtube__content__block .ep-youtube__content__pagination{ 37 display: ${W}!important; 38 } 39 [data-source-id="source-${s}"] img.watermark{ 40 display: none; 41 } 42 43 [data-source-id="source-${s}"] .layout-list .ep-youtube__content__block .youtube__content__body .content__wrap{ 44 grid-template-columns: repeat(auto-fit, minmax(calc(100% - 30px), 1fr))!important; 45 } 46 ${q} 47 `}),!yt(o)&&!Ot(o)&&!Hl(o)&&e.jsx("style",{children:` 48 [data-source-id="source-${s}"] .ose-embedpress-responsive{ 49 width: ${l}px!important; 50 height: ${n}px!important; 51 max-height: ${n}px!important; 52 } 53 [data-source-id="source-${s}"] iframe{ 54 width: ${l}px!important; 55 height: ${n}px!important; 56 max-height: ${n}px!important; 57 } 58 [data-source-id="source-${s}"] .embedpress-yt-subscribe iframe{ 59 height: 100%!important; 60 } 61 [data-source-id="source-${s}"] .ose-youtube > iframe{ 62 height: ${n}px!important; 63 width: ${l}px!important; 64 } 65 [data-source-id="source-${s}"] .ose-youtube{ 66 height: ${n}px!important; 67 width: ${l}px!important; 68 } 69 [data-source-id="source-${s}"] .ose-giphy img{ 70 height: ${n}px!important; 71 width: ${l}px!important; 72 } 73 [data-source-id="source-${s}"] .ose-google-docs img{ 74 height: ${n}px!important; 75 width: ${l}px!important; 76 } 77 [data-source-id="source-${s}"] .ose-embedpress-responsive.ose-google-photos{ 78 height: 100% !important; 79 max-height: 100% !important; 80 } 81 82 [data-source-id="source-${s}"] .embera-embed-responsive-provider-gettyimages, 83 [data-source-id="source-${s}"] .embera-embed-responsive-provider-gettyimages iframe, 84 [data-source-id="source-${s}"] .getty{ 85 width: ${l}px!important; 86 height: ${n}px!important; 87 max-height: ${n}px!important; 88 max-width: 100%!important; 89 } 90 `}),Ot(o)&&e.jsx("style",{children:` 91 [data-source-id="source-${s}"]{ 92 width: 900px; 93 max-width: 100%!important; 94 } 95 96 [data-source-id="source-${s}"] .ose-opensea { 97 width: calc(100% - 40px)!important; 98 height: 100%!important; 99 } 100 [data-source-id="source-${s}"] .ose-opensea .ep_nft_item{
101 display: none!important; 102 } 103 [data-source-id="source-${s}"] .ose-opensea .ep_nft_item:nth-of-type(-n+${u?c:m}) { 104 display: block !important; 105 } 106 `}),Il(o)&&e.jsx("style",{children:` 107 [data-source-id="source-${s}"] .ose-wistia{ 108 width: ${l}px!important; 109 height: ${n}px!important; 110 } 111 .wistia_embed{ 112 width: 100%!important; 113 height: 100%!important; 114 } 115 [data-source-id="source-${s}"] img.watermark{ 116 display: none; 117 } 118 ${q} 119 `}),(Gt(o)||Rl(o)||xt(o))&&e.jsx("style",{children:` 120 [data-source-id="source-${s}"] img.watermark{ 121 display: none; 122 } 123 ${q} 124 `}),a==="responsive"&&(Gt(o)||xt(o))&&e.jsx("style",{children:` 125 [data-source-id="source-${s}"] .ose-youtube { 126 width: ${l}px!important; 127 position: relative; 128 padding: 0; 129 padding-top: 56.5%; 130 height: 100%!important; 131 } 132 133 [data-source-id="source-${s}"] .ose-youtube iframe { 134 position: absolute; 135 top: 0; 136 left: 0; 137 width: 100%; 138 height: 100%!important; 139 } 140 `}),v&&e.jsx("style",{children:` 141 [data-source-id="source-${s}"] { 142 --plyr-color-main: ${b&&b.length===7?`rgba(${parseInt(b.slice(1,3),16)}, ${parseInt(b.slice(3,5),16)}, ${parseInt(b.slice(5,7),16)}, .8)`:"rgba(0, 0, 0, .8)"}; 143 } 144 [data-source-id="source-${s}"] .custom-player-preset-1, 145 [data-source-id="source-${s}"] .custom-player-preset-3, 146 [data-source-id="source-${s}"] .custom-player-preset-4{ 147 --plyr-color-main: ${b&&b.length===7?`rgb(${parseInt(b.slice(1,3),16)}, ${parseInt(b.slice(3,5),16)}, ${parseInt(b.slice(5,7),16)})`:"rgba(0, 0, 0, .8)"}; 148 --plyr-range-fill-background: #fff; 149 } 150 151 [data-source-id="source-${s}"] [data-plyr="restart"] { 152 display: ${S}!important; 153 } 154 [data-source-id="source-${s}"] [data-plyr="rewind"] { 155 display: ${P}!important; 156 } 157 [data-source-id="source-${s}"] [data-plyr="fast-forward"] { 158 display: ${T}!important; 159 } 160 [data-source-id="source-${s}"] [data-plyr="pip"] { 161 display: ${E}!important; 162 } 163 [data-source-id="source-${s}"] [data-plyr="fullscreen"] { 164 display: ${L}!important; 165 } 166 [data-source-id="source-${s}"] [data-plyr="download"] { 167 display: ${Z}!important; 168 } 169 170 [data-playerid="${g}"] > .plyr { 171 width: ${l}px!important; 172 height: ${n}px!important; 173 max-height: ${n}px!important; 174 } 175 176 /* Custom player fullscreen fixes */ 177 [data-playerid="${g}"] > .plyr.plyr--fullscreen-fallback { 178 -webkit-user-select: none; 179 user-select: none; 180 -webkit-touch-callout: none; 181 touch-action: manipulation; 182 width: 100vw!important; 183 height: 100vh!important; 184 max-height: 100vh!important; 185 } 186 187 [data-playerid="${g}"] > .plyr.plyr--fullscreen-fallback iframe{ 188 width: 100vw!important; 189 height: 100vh!important; 190 max-height: 100vh!important; 191 } 192 193 .plyr--fullscreen-fallback .plyr__controls { 194 bottom: 40px !important; 195 } 196 197 198 ${C&&C.length>=0?`[data-playerid="${g}"] .plyr--paused .plyr__poster { 199 background-image: url("${C}")!important; 200 opacity: 1!important; 201 }`:""} 202 `}),zl(o)&&e.jsx("style",{children:` 203 [data-carouselid="${s}
203"] .cg-carousel__btns{ 204 display: ${H}; 205 } 206 `})]})}const po=(t,o)=>{o||(document.querySelector(".pro__alert__wrap").style.display="block")},Ue=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",t=>{document.querySelector(".pro__alert__wrap").style.display="none"})},Re=t=>{const o=` 207 <div class="pro__alert__wrap" style="display: none;"> 208 <div class="pro__alert__card"> 209 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 210 <h2>Opps...</h2> 211 <p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p> 212 <a href="#" class="button radius-10">Close</a> 213 </div> 214 </div> 215 `,s=document.createElement("div");return s.innerHTML=o,s},Xt=()=>{document.querySelector(".tips__alert__wrap")&&document.querySelector(".tips__alert__wrap .tips__alert__card .button").addEventListener("click",t=>{document.querySelector(".tips__alert__wrap").style.display="none"})},Ol=t=>{document.querySelector(".tips__alert__wrap").style.display="block"},Jt=()=>{const t=` 216 <div class="tips__alert__wrap" style="display: none;"> 217 <div class="tips__alert__card"> 218 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/idea.svg" alt=""/> 219 <h2>Simply add "/live" to the channel's URL to embed a live video.</h2> 220 <p>Note: If there are multiple live videos on the channel, just the most recent ones will be seen. </p> 221 <a href="#" class="button radius-10">Close</a> 222 </div> 223 </div> 224 `,o=document.createElement("div");return o.innerHTML=t,o},vt=(t,o)=>{const s=new XMLHttpRequest;s.open("POST",ajaxurl),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){s.status===200?console.log("Request successful:",s.responseText):console.error("Request failed:",s.statusText)},s.onerror=function(){console.error("Request failed:",s.statusText)};const l={action:"save_source_data",block_id:t,source_url:o,_source_nonce:embedpressGutenbergData.sourceNonce},n=Object.keys(l).map(a=>`${encodeURIComponent(a)}=${encodeURIComponent(l[a])}`).join("&");s.send(n)},Vl=(t,o,s,l,n)=>{let a=`<div class="ep-social-share share-position-${t}">`;return o&&(a+=` 225 <a href="#" class="ep-social-icon facebook" target="_blank"> 226 <svg width="64px" height="64px" viewBox="0 -6 512 512" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0" /><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" /><g id="SVGRepo_iconCarrier"><path fill="#475a96" d="M0 0h512v500H0z" /><path d="M375.717 112.553H138.283c-8.137 0-14.73 6.594-14.73 14.73v237.434c0 8.135 6.594 14.73 14.73 14.73h127.826V276.092h-34.781v-40.28h34.781v-29.705c0-34.473 21.055-53.244 51.807-53.244 14.73 0 27.391 1.097 31.08 1.587v36.026l-21.328.01c-16.725 0-19.963 7.947-19.963 19.609v25.717h39.887l-5.193 40.28h-34.693v103.355h68.012c8.135 0 14.73-6.596 14.73-14.73V127.283c-.001-8.137-6.596-14.73-14.731-14.73z" fill="#ffffff" /></g></svg> 227 </a>`),s&&(a+=` 228 <a href="#" class="ep-social-icon twitter" target="_blank"> 229 <svg viewBox="0 0 24 24" aria-hidden="true" fill="#fff" class="r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-lrvibr r-m6rgpd r-lrsllp r-1nao33i r-16y2uox r-8kz0gk"><g><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></g></svg> 230 </a>`),l&&(a+=` 231 <a href="#" class="ep-social-icon pinterest" target="_blank"> 232 <svg xmlns="http://www.w3.org/2000/svg" height="800" width="1200" viewBox="-36.42015 -60.8 315.6413 364.8"> 233 <path 234 d="M121.5 0C54.4 0 0 54.4 0 121.5 0 173 32 217 77.2 234.7c-1.1-9.6-2-24.4.4-34.9 2.2-9.5 14.2-60.4 14.2-60.4s-3.6-7.3-3.6-18c0-16.9 9.8-29.5 22-29.5 10.4 0 15.4 7.8 15.4 17.1 0 10.4-6.6 26-10.1 40.5-2.9 12.1 6.1 22 18 22 21.6 0 38.2-22.8 38.2-55.6 0-29.1-20.9-49.4-50.8-49.4-34.6 0-54.9 25.9-54.9 52.7 0 10.4 4 21.6 9 27.7 1 1.2 1.1 2.3.8 3.5-.9 3.8-3 12.1-3.4 13.8-.5 2.2-1.8 2.7-4.1 1.6-15.2-7.1-24.7-29.2-24.7-47.1 0-38.3 27.8-73.5 80.3-73.5 42.1 0 74.9 30 74.9 70.2 0 41.9-26.4 75.6-63 75.6-12.3 0-23.9-6.4-27.8-14 0 0-6.1 23.2-7.6 28.9-2.7 10.6-10.1 23.8-15.1 31.9 11.4 3.5 23.4 5.4 36 5.4 67.1 0 121.5-54.4 121.5-121.5C243 54.4 188.6 0 121.5 0z" 235 fill="#fff" /> 236 </svg> 237 </a>`),n&&(a+=` 238 <a href="#" class="ep-social-icon linkedin" target="_blank"> 239 <svg fill="#ffffff" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewB
239ox="0 0 310 310" xml:space="preserve"><g id="XMLID_801_"><path id="XMLID_802_" d="M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73 240 C77.16,101.969,74.922,99.73,72.16,99.73z"/><path id="XMLID_803_" d="M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4 241 c22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z"/><path id="XMLID_804_" d="M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599 242 c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319 243 c25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995 244 C310,145.43,300.549,94.761,230.454,94.761z"/></g></svg> 245 </a>`),a+="</div>",a},jt=t=>/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/i.test(t),Nn=t=>{const o=parseInt(t.slice(1,3),16),s=parseInt(t.slice(3,5),16),l=parseInt(t.slice(5,7),16),n=Math.max(o,s,l),a=Math.min(o,s,l),p=(n+a)/2;return Math.round(p/255*100)},Mn=(t,o)=>{const s=parseInt(t.slice(1,3),16),l=parseInt(t.slice(3,5),16),n=parseInt(t.slice(5,7),16),a=Math.round(o/100*255),p=Math.max(Math.min(s+a,255),0),d=Math.max(Math.min(l+a,255),0),f=Math.max(Math.min(n+a,255),0);return"#"+((1<<24)+(p<<16)+(d<<8)+f).toString(16).slice(1)},Mo=t=>/^(?:https?:\/\/)?(?:www\.)?instagram\.com\/(?:[a-zA-Z0-9_\.]+\/?|explore\/tags\/[a-zA-Z0-9_\-]+\/?)$/.test(t),de=t=>{if(t.startsWith("/")||t.startsWith("#"))return t;try{const o=new URL(t);
245if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(o.protocol))throw new Error("Invalid protocol");return o.toString()}catch(o){return console.error("Error sanitizing URL:",o.message),"/404"}},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:n,height:a,contentShare:p,sharePosition:d,customPlayer:f,playerPreset:r,customlogo:i,logoX:u,logoY:c,logoOpacity:m,clientId:v,adManager:y,adSource:C,adFileUrl:w,adWidth:b,adHeight:k,adXPosition:_,adYPosition:B,shareFacebook:$,shareTwitter:x,sharePinterest:h,shareLinkedin:g,instaLayout:E,cEmbedType:S,cPopupButtonText:P,cPopupButtonBGColor:T,cPopupButtonTextColor:L,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="",ee="",V=d||"right";p&&(I="ep-content-share-enabled",ee="ep-share-position-"+V);let oe="";f&&(oe=r||"preset-default");let F="";W&&(F="embedded-youtube-channel");let be="";q&&(be=E);let le="";(H||z)&&(le=" source-opensea");const ye={position:"relative",display:"inline-block"},ne=No(v||"");let ae="";if(S==="popup_button"){let He=L,Xe=T;L&&!L.startsWith("#")&&(He="#"+L),T&&!T.startsWith("#")&&(Xe="#"+T),ae=` 246 <div class="cbutton-preview-wrapper" style="margin-top:-${a}px"> 247 <h4 class="cbutton-preview-text">Preview Popup Button</h4> 248 <div style="position: static" class="calendly-badge-widget"> 249 <div class="calendly-badge-content" style="color: ${He}; background: ${Xe};"> 250 ${P} 251 </div> 252 </div> 253 </div> 254 `}let re="";U&&(re="<span class='ep-wistia-message'> Changes will be affected in frontend. </span>");let ce="";p&&(ce=Vl(d,$,x,h,g));const pe=Un("embedpress.customLogoComponent","",t),xe=`${n?`width:${n}px;`:""}${a?`height:${a}px;`:""}max-width:100%;`;let D=l||"";l&&(n||a)?D=l.replace(/<iframe([^>]*)>/gi,`<iframe$1 style="${xe}">`):!l&&s&&(D=` 255 <div class="embedpress-placeholder" data-url="${s}" data-width="${n||600}" data-height="${a||400}"> 256 <!-- EmbedPress content will be loaded here --> 257 </div>`);const go=f?Ml({attributes:t}):"",ve=E==="insta-carousel"?Dl({attributes:t}):"";return e.jsxs("figure",{...o,"data-source-id":`source-${v}`,"data-embed-type":t.providerName||"",children:[e.jsxs("div",{className:`gutenberg-block-wraper ${I} ${ee}${le}`,children:[e.jsx("div",{className:`position-${V}-wraper ep-embed-content-wraper ${F} ${oe} ${be}`,style:ye,...f?{"data-playerid":ne}:{},...f?{"data-options":go}:{},...E==="insta-carousel"?{"data-carouselid":ne}:{},...E==="insta-carousel"?{"data-carousel-options":ve}:{},dangerouslySetInnerHTML:{__html:D+pe+re+ce+ae}}),y&&C==="image"&&w&&e.jsx("div",{className:"main-ad-template",style:{position:"absolute",bottom:`${B}%`,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&&C==="image"&&e.jsx("style",{dangerouslySetInnerHTML:{__html:` 258 [data-source-id="source-${v}"] .main-ad-template div, 259 .main-ad-template div img { 260 height: 100%; 261 } 262 [data-source-id="source-${v}"] .main-ad-template { 263 position: absolute; 264 bottom: ${B}%; 265 left: ${_}%; 266 } 267 `}}),e.jsx(Gl,{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:Im}=wp.element,{applyFilters:_t}=wp.hooks,{__:zn}=wp.i18n,{TextControl:zm,TextareaControl:Hm,ToggleControl:Gm,PanelBody:Hn}=wp.components;function Do({attributes:t,setAttributes:o}){const{lockContent:s,protectionType:l,userRole:n,lockHeading:a,lockSubHeading:p,lockErrorMessage:d,passwordPlaceholder:f,submitButtonText:r,submitUnlockingText:i,enableFooterMessage:u,footerMessage:c,contentPassword:m}=t,v=_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",[v],t,o),_t("embedpress.lockContentControllers",[],t,o)]})}function M({classname:t,headerText:o}){return e.jsx("h4",{className:t||"ep-control-header",children:o})}const{__:Om}=wp.i18n,{TextControl:Vm,RangeControl:qm,PanelBody:Wm,Button:Gn}=wp.components,{MediaUpload:On}=wp.blockEditor;function Vn({attributes:t,setAttributes:o}){const{customThumbnail:s}=t,l=a=>{o({customThumbnail:a.sizes.full.url})},n=a=>{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:n,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:a})=>e.jsx(Gn,{className:"ep-logo-upload-button",icon:s?"update":"upload",onClick:a,children:s?"Change Image":"Upload Image"})})})]})}const{__:Be}=wp.i18n,{TextControl:qn,TextareaControl:Wn,ToggleControl:Ho,SelectControl:Zn,PanelBody:Yn}=wp.components;function Uo({attributes:t,setAttributes:o}){const{customTitle:s,customDescription:l,contentShare:n,sharePosition:a,shareFacebook:p,shareTwitter:d,sharePinterest:f,shareLinkedin:r}=t;return e.jsxs(Yn,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Be("Social Share","embedpress")]}),initialOpen:!1,children:[e.jsx("div",{className:"content-share-toggle",children:e.jsx(Ho,{label:Be("Enable Social Share"),checked:n,onChange:i=>o({contentShare:i})})}
267),n&&e.jsxs("div",{className:"content-share-controls",children:[e.jsx(qn,{label:Be("Title"),value:s,onChange:i=>o({customTitle:i}),placeholder:Be("Enter Title")}),e.jsx(Wn,{label:Be("Description"),placeholder:Be("Enter description"),value:l,onChange:i=>o({customDescription:i})}),e.jsx(Zn,{label:Be("Position"),value:a,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:Be("Share Platforms","embedpress")}),e.jsx(Ho,{label:Be("Facebook"),checked:p!==!1,onChange:i=>o({shareFacebook:i})}),e.jsx(Ho,{label:Be("Twitter"),checked:d!==!1,onChange:i=>o({shareTwitter:i})}),e.jsx(Ho,{label:Be("Pinterest"),checked:f!==!1,onChange:i=>o({sharePinterest:i})}),e.jsx(Ho,{label:Be("LinkedIn"),checked:r!==!1,onChange:i=>o({shareLinkedin:i})}),e.jsxs("div",{className:"ep-documentation ",children:[G,e.jsx("a",{href:"https://embedpress.com/docs/ep-social-share-option-with-embedded-content/",target:"_blank",children:" Need Help? "})]})]})]})}const{useState:Zm,useEffect:Ym}=wp.element,{isShallowEqualObjects:Xm}=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),ql=t=>/^https?:\/\/(www\.)?spreaker\.com\/(show|user|podcast|episode)\/[^/]+/.test(t),wt=t=>/^https:\/\/(photos\.app\.goo\.gl|photos\.google\.com)\/.*$/i.test(t),{__:Jn}=wp.i18n,{applyFilters:es}=wp.hooks,{TextControl:Jm,RangeControl:Km,PanelBody:Kn,Button:Qm}=wp.components;function Qn({attributes:t,setAttributes:o}){const{customlogo:s,logoX:l,logoY:n,customlogoUrl:a,logoOpacity:p}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());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{__:se}=wp.i18n,{applyFilters:fe}=wp.hooks,{SelectControl:Am,ToggleControl:Oe,ColorPalette:eh,Button:oh,TextControl:os}=wp.components,An=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#5b4e96"},{name:"",color:"#0000FF"},{name:"",color:"#FFA500"}],{MediaUpload:th}=wp.blockEditor,Kt=t=>{const{attributes:o,setAttributes:s,isYTVideo:l,isYTLive:n,isYTShorts:a,isVimeoVideo:p,isSelfHostedAudio:d}=t,{url:f,customPlayer:r,starttime:i,endtime:u,autoplay:c,muteVideo:m,fullscreen:v,relatedvideos:y,vautoplay:C,vautopause:w,vdnt:b,posterThumbnail:k,playerPip:_,playerRestart:B,playerRewind:$,playerFastForward:x,playerPreset:h,playerColor:g,playerTooltip:E,playerHideControls:S,playerDownload:P}=o;qt(f),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt());const T=fe("embedpress.togglePlaceholder",[],se("Tooltip","embedpress"),!0),L=fe("embedpress.togglePlaceholder",[],se("Auto Hide Controls","embedpress"),!0),Z=fe("embedpress.togglePlaceholder",[],se("Source Link","embedpress"),!0),O=fe("embedpress.togglePlaceholder",[],se("Sticky Video","embedpress"),!1),W=fe("embedpress.uploadPlaceholder",[],se("Sticky Video","embedpress"),!1),q=fe("embedpress.selectPlaceholder",[],se("Preset","embedpress"),"default","Default"),H=fe("embedpress.colorPlatePlaceholder",[],se("Player Color","embedpress"),"#5b4e96",An),z=fe("embedpress.togglePlaceholder",[],se("Auto Paause","embedpress"),!1),U=fe("embedpress.togglePlaceholder",[],se("DNT","embedpress"),!1);return e.jsxs("div",{className:"ep-custom-player-controls",children:[fe("embedpress.youtubeControls",[q],o,s,"preset",t),(n||l||a)&&e.jsxs("div",{className:"youtube-player-controls",children:[e.jsx(os,{label:se("Start Time (in seconds)"),value:i,onChange:I=>s({starttime:I}),type:"number",className:"ep-control-field"}),e.jsx(os,{label:se("End Time (in seconds)"),value:u,onChange:I=>s({endtime:I}),type:"number",className:"ep-control-field"}),!r&&e.jsxs("div",{children:[e.jsx(Oe,{label:se("Auto Play"),checked:c,onChange:I=>s({autoplay:I})}),e.jsx(Oe,{label:se("Fullscreen Button"),checked:v,onChange:I=>s({fullscreen:I})})]})]}),fe("embedpress.youtubeControls",[H],o,s,"playerColor"),r&&(n||l)&&e.jsxs("div",{className:"remove-last-child-margin",children:[e.jsx(Oe,{label:se("Auto Play"),checked:c,onChange:I=>s({autoplay:I})}),c&&e.jsx(Oe,{label:se("Mute"),checked:m,onChange:I=>s({muteVideo:I})}),e.jsx(Oe,{label:se("Fullscreen Button"),checked:v,onChange:I=>s({fullscreen:I})})]}
267),p&&e.jsxs("div",{className:"vimeo-player-controls",children:[e.jsx(Oe,{label:se("Auto Play"),checked:C,onChange:I=>s({vautoplay:I})}),fe("embedpress.vimeoControls",[z],o,s,"autoPause"),fe("embedpress.vimeoControls",[U],o,s,"dnt")]}),e.jsx(Oe,{label:se("Restart"),checked:B,onChange:I=>s({playerRestart:I})}),e.jsx(Oe,{label:se("Rewind"),checked:$,onChange:I=>s({playerRewind:I})}),e.jsx(Oe,{label:se("Fast Forward"),checked:x,onChange:I=>s({playerFastForward:I})}),fe("embedpress.youtubeControls",[T],o,s,"tooltip"),fe("embedpress.youtubeControls",[L],o,s,"autoHide"),fe("embedpress.youtubeControls",[Z],o,s,"sourceLink"),fe("embedpress.youtubeControls",[O],o,s,"stickyVideo"),(n||l)&&e.jsxs("div",{className:"ep-yt-related-videos",children:[e.jsx(Oe,{label:se("Related Videos"),checked:y,onChange:I=>s({relatedvideos:I})}),e.jsx("p",{children:"Enable to display related videos from all channels. Otherwise, related videos will show from the same channel."})]}),!d&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Thumbnail"}),fe("embedpress.youtubeControls",W,o,s,"thumbnail",t)]})]})},{isShallowEqualObjects:Wl}=wp.isShallowEqual,{useState:Zl,useEffect:Yl}=wp.element,{applyFilters:Jo}=wp.hooks,{__:me}=wp.i18n,{addFilter:ea}=wp.hooks,{TextControl:kt,SelectControl:Ko,RangeControl:oa,ToggleControl:wo,PanelBody:ta}=wp.components,sa=()=>{ea("embedpress_block_rest_param","embedpress",la,10)},la=(t,o)=>{if(!o.url)return t;let s={},l={};(Xl(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 n={...s,...l};return X(t,o,n)},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),Xl=t=>{const o=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/i,s=t.match(o);return s?s[7].length===11:!1},Jl=t=>{const o={pagesize:null,ytChannelLayout:null},s=X({},t,o),[l,n]=Zl(s);return Yl(()=>{const a=X(l,t,o);Wl(l||{},a)||n(a)},[t]),l},Kl=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,n]=Zl(s);return Yl(()=>{const a=X(l,t,o);Wl(l||{},a)||n(a)},[t]),l},aa=(t,o)=>({youtubeParams:Wt(o)?Jl(t):Kl(t),isYTChannel:Wt(o),isYTVideo:Xl(o),isYTLive:Zt(o)});function $t({attributes:t,setAttributes:o,isYTChannel:s,isYTVideo:l,isYTLive:n,isYTShorts:a}){const{url:p,ispagination:d,pagesize:f,ytChannelLayout:r,columns:i,gapbetweenvideos:u,videosize:c,starttime:m,endtime:v,autoplay:y,muteVideo:C,controls:w,fullscreen:b,videoannotations:k,progressbarcolor:_,closedcaptions:B,modestbranding:$,relatedvideos:x,customPlayer:h}=t,g=embedpressGutenbergData.isProPluginActive;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt());const E=Jo("embedpress.togglePlaceholder",[],me("Closed Captions","embedpress"),!0),S=Jo("embedpress.selectPlaceholder",[],me("Modest Branding","embedpress"),"display","Display");r==="grid"&&i===1&&o({columns:3}),r==="list"&&o({columns:1});let P="Video per page";r==="carousel"&&(P="Number of videos (max 50)");let T=" (Pro)";return g&&(T=""),!g&&(r=="grid"||r=="carousel")&&(po(null,g),o({ytChannelLayout:"gallery"})),e.jsxs("div",{children:[s&&!n&&e.jsxs("div",{className:"ep__channel-yt-video-options",children:[e.jsx(Ko,{label:me("Layout"),value:r,options:[{label:"Gallery",value:"gallery"},{label:"List",value:"list"},{label:"Grid"+T,value:"grid"},{label:"Carousel"+T,value:"carousel"}],onChange:L=>o({ytChannelLayout:L}),__nextHasNoMarginBottom:!0}),e.jsx(kt,{label:me(P),value:f,onChange:L=>o({pagesize:L})}),e.jsx("p",{children:"Specify the number of videos you wish to
267show on each page."}),r!=="list"&&r!=="carousel"&&e.jsx(Ko,{label:me("Column"),value:i,options:[{label:"Auto",value:"auto"},{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"}],onChange:L=>o({columns:L}),__nextHasNoMarginBottom:!0}),r!=="carousel"&&e.jsxs("div",{children:[e.jsx(oa,{label:me("Gap Between Videos"),value:u,onChange:L=>o({gapbetweenvideos:L}),min:1,max:100}),e.jsx("p",{children:"Specify the gap between youtube videos."})]}),r!="carousel"&&e.jsx(wo,{label:me("Pagination"),checked:d,onChange:L=>o({ispagination:L})}),e.jsxs("div",{className:"ep-tips-and-tricks",children:[G,e.jsxs("a",{href:"#",target:"_blank",onClick:L=>{L.preventDefault(),Ol()},children:[" ",me("Tips & Tricks","embedpress")," "]})]})]}),(l||n||a)&&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(wo,{label:me("Enable Custom Player","embedpress"),checked:h,onChange:L=>o({customPlayer:L})}),h?e.jsx("div",{className:"ep-video-controlers",children:e.jsx(Kt,{attributes:t,setAttributes:o,isYTVideo:l,isYTLive:n})}):e.jsxs("div",{className:"ep-video-controlers",children:[e.jsx(kt,{label:me("Start Time (in seconds)"),value:m,onChange:L=>o({starttime:L}),type:"number",className:"ep-control-field"}),e.jsx(kt,{label:me("End Time (in seconds)"),value:v,onChange:L=>o({endtime:L}),type:"number",className:"ep-control-field"}),e.jsx(wo,{label:me("Auto Play"),checked:y,onChange:L=>o({autoplay:L})}),y&&e.jsxs("div",{className:"ep-yt-mute-videos",children:[e.jsx(wo,{label:me("Mute"),checked:C,onChange:L=>o({muteVideo:L})}),e.jsx("p",{children:"Mute the video to ensure autoplay works smoothly across all browsers. Recommended for autoplay-enabled videos."})]}),e.jsx(Ko,{label:me("Controls","embedpress"),value:w,options:[{label:"Display immediately",value:"1"},{label:"Hide controls",value:"0"},{label:"Display after user initiation immediately",value:"2"}],onChange:L=>o({controls:L}),className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),e.jsx(wo,{label:me("Fullscreen Button"),checked:b,onChange:L=>o({fullscreen:L})}),e.jsx(wo,{label:me("Video Annotations"),checked:k,onChange:L=>o({videoannotations:L})}),e.jsx(Ko,{label:me("Progress Bar Color","embedpress"),value:_,options:[{label:"Red",value:"red"},{label:"White",value:"white"}],onChange:L=>o({progressbarcolor:L}),className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),Jo("embedpress.youtubeControls",[E],t,o,"closedCaptions"),Jo("embedpress.youtubeControls",[S],t,o,"modestBranding"),e.jsxs("div",{className:"ep-yt-related-videos",children:[e.jsx(wo,{label:me("Related Videos"),checked:x,onChange:L=>o({relatedvideos:L})}),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,mo=({attributes:t,setAttributes:o,deleteIcon:s,inEditor:l,progressBar:n})=>{const{adSource:a,adContent:p,adFileUrl:d,adSkipButton:f}=t,[r,i]=ts(!1),[u,c]=ts(0),m=ia(null),{adWidth:v,adHeight:y}=t,C=()=>{o({adFileUrl:""})},w=x=>{const[h,g]=x.split(":");return parseInt(h,10)*60+parseInt(g,10)};let b=0;p&&(b=p.fileLength?w(p.fileLength):0);const k=()=>{const x=m.current;if(x){const{currentTime:h}=x;c(h),h>=3&&i(!0)}};ra(()=>{if(a==="video")m.current.addEventListener("timeupdate",k);else{const x=setTimeout(()=>{i(!0)},3e3);return()=>{clearTimeout(x)}}},[a,p,d]);const _=()=>{o({adFileUrl:""})};let B={width:v+"px",height:y+"px"},$=!1;return l||(B={},$=!0),e.jsx("div",{className:"main-ad-template",style:B,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:C,children:e.jsx("span",{className:"dashicon dashicons dashicons-trash"})}),a==="video"?e.jsx("div",{children:e.jsxs("video",{ref:m,className:"ep-ad",autoPlay:!0,muted:$,children:[e.jsx("source",{src:d}),"Your browser does not support the video tag."]})}):e.jsx("div",{children:e.jsx("img",{src:d})}),n||a!=="image"&&e.jsx("div",{className:"progress-bar-container",children:e.jsx("div",{className:"progress-bar",style:{background:"#5be82a",height:"4px",marginTop:"-4px",width:`${a==="video"?u/b*100:100}%`,maxWidth:"100%"}})}),f&&r&&e.jsx("button",{title:"Skip Ad",className:"skip-ad-button",onClick:_,children:"Skip Ad"})]})})})},{useRef:da}=wp.element,{applyFilters:Qo}=wp.hooks,{__:ss}=wp.i18n,{TextControl:sh,RangeControl:lh,SelectControl:nh,ToggleControl:ah,PanelBody:ca,Button:rh}=wp.components,{MediaUpload:ih}=wp.blockEditor;function Ro({attributes:t,setAttributes:o}){const{adManager:s,adSource:l,adContent:n,adFileUrl:a,adWidth:p,adHeight:d,adXPosition:f,adYPosition:r,adUrl:i,adStart:u,adSkipButton:c,adSkipButtonAfter:m}=t;da(null);const v=Qo("embedpress.togglePlaceholder",[],"Ads Settings",!0),y=Qo("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:[Qo("embedpress.adsSettings",[v],t,o),Qo("embedpress.adManagerSettings",[y],t,o),e.jsxs("div",{className:"ep-documentation ads-help",children:[G,e.jsxs("a",{href:"https://embedpress.com/docs/add-ep-content-protection-in-embedded-content/",target:"_blank",children:[" ",ss("Need Help?","emebdpress")," "]})]})]})}const{isShallowEqualObjects:pa}=wp.isShallowEqual,{useState:ua,useEffect:ma}=wp.element,{__:N}=wp.i18n,{addFilter:ha}=wp.hooks,{SelectControl:Pt,RangeControl:St,ToggleControl:Je,TextControl:dh,PanelBody:ke,ColorPalette:he,FontSizePicker:Ce}=wp.components,{InspectorControls:ch}=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
267dColor:"",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
267dColor:null,loadmoreTextFontsize:null,rankBtnColor:null,rankBtnFZ:null,rankBtnBorderColor:null,rankLabelColor:null,rankLabelFZ:null,detialTitleColor:null,detialTitleFZ:null,detailTextColor:null,detailTextLinkColor:null,detailTextFZ:null},s=X({},t,o),[l,n]=ua(s);return ma(()=>{const a=X(l,t,o);pa(l||{},a)||n(a)},[t]),l};function xa({attributes:t,setAttributes:o,isOpensea:s,isOpenseaSingle:l}){const{limit:n,itemperpage:a,loadmore:p,loadmorelabel:d,orderby:f,layout:r,preset:i,nftperrow:u,gapbetweenitem:c,collectionname:m,nftimage:v,nftcreator:y,prefix_nftcreator:C,nfttitle:w,nftprice:b,prefix_nftprice:k,nftlastsale:_,prefix_nftlastsale:B,nftbutton:$,nftrank:x,label_nftrank:h,nftdetails:g,label_nftdetails:E,label_nftbutton:S,alignment:P,itemBGColor:T,collectionNameColor:L,collectionNameFZ:Z,titleColor:O,titleFontsize:W,creatorColor:q,creatorFontsize:H,creatorLinkColor:z,creatorLinkFontsize:U,priceLabelColor:I,priceLabelFontsize:ee,priceColor:V,priceFontsize:oe,priceUSDColor:F,priceUSDFontsize:be,lastSaleLabelColor:le,lastSaleLabelFontsize:ye,lastSaleColor:ne,lastSaleFontsize:ae,lastSaleUSDColor:re,lastSaleUSDFontsize:ce,buttonTextColor:pe,buttonBackgroundColor:xe,buttonFontSize:D,loadmoreTextColor:go,loadmoreBackgroun
267dColor:ve,loadmoreTextFontsize:He,rankBtnColor:Xe,rankBtnFZ:Zo,rankBtnBorderColor:fo,rankLabelColor:_o,rankLabelFZ:ko,detialTitleColor:$o,detialTitleFZ:Po,detailTextColor:Yo,detailTextLinkColor:So,detailTextFZ:bo}=t;embedpressGutenbergData.isProPluginActive;const yo=()=>{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"})},xo=j=>{const zo=` 268 <div class="pro__alert__wrap" style="display: none;"> 269 <div class="pro__alert__card"> 270 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 271 <h2>Opps...</h2> 272 <p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p> 273 <a href="#" class="button radius-10">Close</a> 274 </div> 275 </div> 276 `,eo=document.createElement("div");return eo.innerHTML=zo,eo};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(xo()),yo());const ie=[{name:N("Small"),slug:"small",size:16},{name:N("Medium"),slug:"medium",size:18},{name:N("Large"),slug:"big",size:26}],K=[{name:"",color:"red"},{name:"",color:"green"},{name:"",color:"blue"},{name:"",color:"yellow"},{name:"",color:"orange"}],ue=16;we("embedpress.uploadPlaceholder",[],N("Sticky Video","embedpress"),!1);const Ae=we("embedpress.textControlPlaceholder",[],N("Creator Prefix","embedpress"),""),Q=we("embedpress.textControlPlaceholder",[],N("Price Prefix","embedpress"),""),ge=we("embedpress.textControlPlaceholder",[],N("Last Sale Prefix","embedpress"),""),Ee=we("embedpress.textControlPlaceholder",[],N("Button Label","embedpress"),""),Lo=we("embedpress.textControlPlaceholder",[],N("Rank Label","embedpress"),""),Io=we("embedpress.textControlPlaceholder",[],N("Details Label","embedpress"),""),Xo=we("embedpress.togglePlaceholder",[],N("Load More","embedpress"),!1);return(s||l)&&e.jsxs("div",{children:[s&&e.jsx(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",N("Query","embedpress")]}),initialOpen:!0,className:"ep-opensea-options",children:e.jsxs("div",{children:[e.jsx(St,{label:N("Limit","embedpress"),value:n,onChange:j=>o({limit:j}),min:1,max:100}),e.jsx(Pt,{label:N("Order By","embedpress"),value:f,options:[{label:"Oldest",value:"asc"},{label:"Newest",value:"desc"}],onChange:j=>o({orderby:j}),__nextHasNoMarginBottom:!0})]})}),s&&e.jsx(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",N("Layout","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:e.jsxs("div",{children:[e.jsx(Pt,{label:N("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:N("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:N("Item Per Row","embedpress"),value:u||3,onChange:j=>o({nftperrow:j}),min:1,max:6}),e.jsx(St,{label:N("Gap Between Item","embedpress"),value:c,onChange:j=>o({gapbetweenitem:j}),min:1,max:100})]})}),e.jsxs(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",N("Content","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:[l&&e.jsx(Je,{label:N("Collection Name","embedpress"),checked:m,onChange:j=>o({collectionname:j})}),e.jsx(Je,{label:N("Thumbnail","embedpress"),checked:v,onChange:j=>o({nftimage:j})}),e.jsx(Je,{label:N("Title","embedpress"),checked:w,onChange:j=>o({nfttitle:j})}),e.jsx(Je,{label:N("Creator","embedpress"),checked:y,onChange:j=>o({nftcreator:j})}),y&&we("embedpress.openseaControls",[Ae],t,o,"creatorPrefix"),e.jsx(Je,{label:N("Show Price","embedpress"),checked:b,onChange:j=>o({nftprice:j})}),b&&we("embedpress.openseaControls",[Q],t,o,"pricePrefix"),e.jsx(Je,{label:N("Last Sale","embedpress"),checked:_,onChange:j=>o({nftlastsale:j})}),_&&we("embedpress.openseaControls",[ge],t,o,"lastSalePrefix"),e.jsx(Je,{label:N("Show Button","embedpress"),checked:$,onChange:j=>o({nftbutton:j})}),$&&we("embedpress.openseaControls",[Ee],t,o,"buttonLabel"),l&&e.jsxs("div",{children:[e.jsx(Je,{label:N("Rank","embedpress"),checked:x,onChange:j=>o({nftrank:j})}),x&&we("embedpress.openseaControls",[Lo],t,o,"rankLabel"),e.jsx(Je,{label:N("Details","embedpress"),checked:g,onChange:j=>o({nftdetails:j})}),g&&we("embedpress.openseaControls",[Io],t,o,"detailsLabel")]})]}),s&&e.jsx(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",N("Load More","embedpress")]}),initialOpen:!1,className:"ep-opensea-options",children:we("embedpress.openseaControls",[Xo],t,o,"loadMore")}),e.jsxs(ke,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",N("Color and Typography","embedpress")]}),initialOpen:!1,className:"ep-colors-typography",children:[e.jsx("p",{children:N("You can adjust the color and typography of embedded content.")}
276),e.jsxs("div",{className:"ep-opensea-sub-controls",children:[e.jsxs(ke,{title:N("Item"),initialOpen:!1,children:[e.jsx(M,{headerText:"Background Color"}),e.jsx(he,{label:N("Background Color"),colors:K,value:T,onChange:j=>o({itemBGColor:j})})]}),e.jsxs(ke,{title:N("Collection Name"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:N("Color"),colors:K,value:L,onChange:j=>o({collectionNameColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:Z,fallbackFontSize:ue,onChange:j=>o({collectionNameFZ:j})})]}),e.jsxs(ke,{title:N("Title"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:N("Color"),colors:K,value:O,onChange:j=>o({titleColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:W,fallbackFontSize:ue,onChange:j=>o({titleFontsize:j})})]}),e.jsxs(ke,{title:N("Creator"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:N("Color"),colors:K,value:q,onChange:j=>o({creatorColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:H,fallbackFontSize:ue,onChange:j=>o({creatorFontsize:j})}),e.jsx(M,{headerText:"Link Color"}),e.jsx(he,{label:N("Color"),colors:K,value:z,onChange:j=>o({creatorLinkColor:j})}),e.jsx(M,{headerText:"Link Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:U,fallbackFontSize:ue,onChange:j=>o({creatorLinkFontsize:j})})]}),e.jsxs(ke,{title:N("Current Price"),initialOpen:!1,children:[l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:N("Color"),colors:K,value:I,onChange:j=>o({priceLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ee,fallbackFontSize:ue,onChange:j=>o({priceLabelFontsize:j})})]}),e.jsx(M,{headerText:"ETH Price Color"}),e.jsx(he,{label:N("Color"),colors:K,value:V,onChange:j=>o({priceColor:j})}),e.jsx(M,{headerText:"ETH Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:oe,fallbackFontSize:ue,onChange:j=>o({priceFontsize:j})}),l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"USD Price Color"}),e.jsx(he,{label:N("Color"),colors:K,value:F,onChange:j=>o({priceUSDColor:j})}),e.jsx(M,{headerText:"USD Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:be,fallbackFontSize:ue,onChange:j=>o({priceUSDFontsize:j})})]})]}),e.jsxs(ke,{title:N("Last Sale Price"),initialOpen:!1,children:[l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:N("Color"),colors:K,value:le,onChange:j=>o({lastSaleLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ye,fallbackFontSize:ue,onChange:j=>o({lastSaleLabelFontsize:j})})]}),e.jsx(M,{headerText:"ETH Color"}),e.jsx(he,{label:N("Color"),colors:K,value:ne,onChange:j=>o({lastSaleColor:j})}),e.jsx(M,{headerText:"ETH Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ae,fallbackFontSize:ue,onChange:j=>o({lastSaleFontsize:j})}),l&&e.jsxs("div",{children:[e.jsx(M,{headerText:"USD Price Color"}),e.jsx(he,{label:N("Color"),colors:K,value:re,onChange:j=>o({lastSaleUSDColor:j})}),e.jsx(M,{headerText:"USD Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ce,fallbackFontSize:ue,onChange:j=>o({lastSaleUSDFontsize:j})})]})]}),e.jsxs(ke,{title:N("Button"),initialOpen:!1,children:[e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:N("Color"),colors:K,value:pe,onChange:j=>o({buttonTextColor:j})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(he,{label:N("Color"),colors:K,value:xe,onChange:j=>o({buttonBackgroundColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:D,fallbackFontSize:ue,onChange:j=>o({buttonFontSize:j})})]}),p&&we("embedpress.openseaControls",[],t,o,"loadmorePanelBody"),l&&e.jsxs(ke,{title:N("Rank"),initialOpen:!1,children:[e.jsx(M,{headerText:"Label Color"}),e.jsx(he,{label:N("Label Color"),colors:K,value:_o,onChange:j=>o({rankLabelColor:j})}),e.jsx(M,{headerText:"Label Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:ko,fallbackFontSize:ue,onChange:j=>o({rankLabelFZ:j})}),e.jsx(M,{headerText:"Color"}),e.jsx(he,{label:N("Title Color"),colors:K,value:Xe,onChange:j=>o({rankBtnColor:j})}),e.jsx(M,{headerText:"Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:Zo,fallbackFontSize:ue,onChange:j=>o({rankBtnFZ:j})}),e.jsx(M,{headerText:"Border Color"}),e.jsx(he,{label:N("Color"),colors:K,value:fo,onChange:j=>o({rankBtnBorderColor:j})})]}),l&&e.jsxs(ke,{title:N("Details"),initialOpen:!1,children:[e.jsx(M,{headerText:"Title Color"}),e.jsx(he,{label:N("Title Color"),colors:K,value:$o,onChange:j=>o({detialTitleColor:j})}),e.jsx(M,{headerText:"Title Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:Po,fallbackFontSize:ue,onChange:j=>o({detialTitleFZ:j})}),e.jsx(M,{headerText:"Content Color"}),e.jsx(he,{label:N("Color"),colors:K,value:Yo,onChange:j=>o({detailTextColor:j})}),e.jsx(M,{headerText:"Link Color"}),e.jsx(he,{label:N("Color"),colors:K,value:So,onChange:j=>o({detailTextLinkColor:j})}),e.jsx(M,{headerText:"Content Font Size"}),e.jsx(Ce,{__nextHasNoMarginBottom:!0,fontSizes:ie,value:bo,fallbackFontSize:ue,onChange:j=>o({detailTextFZ:j})})]})]})]}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o})]})}const{__:Ve}=wp.i18n,{isShallowEqualObjects:wa}=wp.isShallowEqual,{useState:va,useEffect:Ca}=wp.element,{addFilter:ja,applyFilters:Bo}=wp.hooks,{TextControl:_a,SelectControl:ph,RangeControl:uh,ToggleControl:Ao,PanelBody:ka,Button:mh,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,n]=va(s);return Ca(()=>{const a=X(l,t,o);wa(l||{},a)||n(a)},[t]),l};function Ta({attributes:t,setAttributes:o,isWistiaVideo:s}){const{wstarttime:l,wautoplay:n,scheme:a,captions:p,playbar:d,wfullscreen:f,playbutton:r,smallplaybutton:i,resumable:u,wistiafocus:c,volumecontrol:m,volume:v,rewind:y,customlogo:C,logoX:w,logoY:b,customlogoUrl:k,logoOpacity:_}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());const B=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],$=Bo("embedpress.togglePlaceholder",[],Ve("Captions","embedpress"),!0),x=Bo("embedpress.togglePlaceholder",[],Ve("Volume Control","embedpress"),!0),h=Bo("embedpress.rangeControlPlaceholder",[],Ve("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," ",Ve("Wistia Video Controls","embedpress")]}),initialOpen:!1,children:e.jsxs("div",{className:"ep-video-controlers",children:[e.jsx(_a,{label:Ve("Start Time (In Seconds)"),value:l,onCh
276ange:g=>o({wstarttime:g}),type:"number",className:"ep-control-field"}),e.jsx(Ao,{label:Ve("Auto Play"),checked:n,onChange:g=>o({wautoplay:g})}),e.jsx(M,{headerText:"Scheme"}),e.jsx($a,{label:Ve("Scheme"),colors:B,value:a,onChange:g=>o({scheme:g})}),e.jsx("hr",{}),e.jsx(Ao,{label:Ve("Fullscreen Button"),checked:f,onChange:g=>o({wfullscreen:g})}),e.jsx(Ao,{label:Ve("Small Play Button"),checked:i,onChange:g=>o({smallplaybutton:g})}),Bo("embedpress.wistiaControls",[$],t,o,"captions"),e.jsx(Ao,{label:Ve("Playbar"),checked:d,onChange:g=>o({playbar:g})}),Bo("embedpress.wistiaControls",[x],t,o,"volume"),m&&Bo("embedpress.wistiaControls",[h],t,o,"volumeRange")]})})})})}const{isShallowEqualObjects:Fa}=wp.isShallowEqual,{useState:Ea,useEffect:Na}=wp.element,{__:Ne}=wp.i18n,{addFilter:Ma,applyFilters:To}=wp.hooks,{TextControl:Da,SelectControl:hh,RangeControl:gh,ToggleControl:Go,PanelBody:Ua,Button:fh,ColorPalette:Ra}=wp.components,Ia=()=>{Ma("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,n]=Ea(s);return Na(()=>{const a=X(l,t,o);Fa(l||{},a)||n(a)},[t]),l};function Va({attributes:t,setAttributes:o,isVimeoVideo:s}){const{vstarttime:l,vautoplay:n,vscheme:a,vtitle:p,vauthor:d,vavatar:f,vloop:r,vautopause:i,vdnt:u,customPlayer:c,customlogo:m,logoX:v,logoY:y,customlogoUrl:C,logoOpacity:w}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());const b=To("embedpress.togglePlaceholder",[],Ne("Loop","embedpress"),!1),k=To("embedpress.togglePlaceholder",[],Ne("Auto Paause","embedpress"),!1),_=To("embedpress.togglePlaceholder",[],Ne("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," ",Ne("Video Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(Go,{label:Ne("Enable Custom Player","embedpress"),checked:c,onChange:B=>o({customPlayer:B})}),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:Ne("Start Time (In Seconds)"),value:l,onChange:B=>o({vstarttime:B}),type:"number",className:"ep-control-field"}),e.jsx(Go,{label:Ne("Auto Play"),checked:n,onChange:B=>o({vautoplay:B})}),e.jsx(M,{headerText:"Scheme"}),e.jsx(Ra,{label:Ne("Scheme"),colors:za,value:a,onChange:B=>o({vscheme:B})}),e.jsx(Go,{label:Ne("Title"),checked:p,onChange:B=>o({vtitle:B})}),e.jsx(Go,{label:Ne("Author"),checked:d,onChange:B=>o({vauthor:B})}),e.jsx(Go,{label:Ne("Avatar"),checked:f,onChange:B=>o({vavatar:B})}),To("embedpress.vimeoControls",[b],t,o,"loop"),To("embedpress.vimeoControls",[k],t,o,"autoPause"),To("embedpress.vimeoControls",[_],t,o,"dnt")]})]})})})}const{isShallowEqualObjects:bh}=wp.isShallowEqual,{useState:yh,useEffect:xh}=wp.element,{__:Lt}=wp.i18n,{addFilter:wh}=wp.hooks,{TextControl:vh,SelectControl:Ch,RangeControl:jh,ToggleControl:ns,PanelBody:qa,Button:_h,ColorPalette:kh}=wp.components;function Wa({attributes:t,setAttributes:o}){const{url:s,vstarttime:l,vautoplay:n,vscheme:a,vtitle:p,vauthor:d,vavatar:f,vloop:r,vautopause:i,vdnt:u,customPlayer:c,customlogo:m,logoX:v,logoY:y,customlogoUrl:C,logoOpacity:w,autoPause:b}=t,k=qt(s),_=At(s);embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());let B="Video Controls";return _&&(B="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(B,"embedpress")]}),initialOpen:!1,children:[e.jsx(ns,{label:Lt("Auto-Pause","embedpress"),checked:b,onChange:$=>o({autoPause:$})}),e.jsx("p",{className:"control-description",children:"Pauses other players when a new one starts."}),e.jsx(ns,{label:Lt("Enable Custom Player","embedpress"),checked:c,onChange:$=>o({customPlayer:$})}),c&&e.jsx(Kt,{attributes:t,setAttributes:o,isSelfHostedVideo:k,isSelfHostedAudio:_})]})})})}const{isShallowEqualObjects:Za}=wp.isShallowEqual,{useState:Ya,useEffect:Xa}=wp.element,{applyFilters:so}=wp.hooks,{__:Y}=wp.i18n,{addFilter:Ja}=wp.hooks,{TextControl:qe,SelectControl:Bt,RangeControl:$h,ToggleControl:Me,PanelBody:as,Button:Ph,ColorPalette:Sh,PanelRow:Ka}=wp.components,Qa=()=>{Ja("embedpress_block_rest_param","embedpress",Aa,10)},Aa=(t,o)=>!o.url||!Mo(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,n]=Ya(s);return Xa(()=>{const a=X(l,t,o);Za(l||{},a)||n(a)},[t]),l};function or({attributes:t,setAttributes:o}){const{url:s,instaLayout:l,instafeedFeedType:n,instafeedAccountType:a,instafeedColumns:p,instafeedColumnsGap:d,instafeedPostsPerPage:f,instafeedTab:r,instafeedCommentsCount:i,instafeedLikesCount:u,instafeedPopup:c,instafeedPopupFollowBtn:m,instafeedPopupFollowBtnLabel:v,instafeedLoadmore:y,instafeedLoadmoreLabel:C,slidesShow:w,slidesScroll:b,carouselAutoplay:k,autoplaySpeed:_,transitionSpeed:B,carouselLoop:$,carouselArrows:x,carouselSpacing:h,carouselDots:g,instafeedProfileImage:E,instafeedProfileImageUrl:S,instafeedFollowBtn:P,instafeedFollowBtnLabel:T,instafeedPostsCount:L,instafeedPostsCountText:Z,instafeedFollowersCount:O,instafeedFollowersCountText:W,instafeedAccName:q}=t,H=Mo(s),z=F=>{o({instafeedProfileImageUrl:""})};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());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=so("embedpress.uploadPlaceholder",[]),ee=so("embedpress.togglePlaceholder",[],Y("Feed Tab","embedpress"),!1),V=so("embedpress.togglePlaceholder",[],Y("Likes Count","embedpress"),!1),oe=so("embedpress.togglePlaceholder",[],Y("Comments Count","embedpress"),!1);return e.jsx("div",{children:H&&e.jsxs("div",{className:"ep__instafeed-options",children:[e.jsxs(as,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Y("Profile Settings","embedpress")]}),initialOpen:!1,children:[e.jsx(Me,{label:Y("Profile Image","embedpress"),checked:E,onChange:F=>{o({instafeedProfileImage:F})}}),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:z,children:e.jsx("span",{class:"dashicon dashicons dashicons-trash"})}),e.jsx("img",{src:S,alt:"John"})]}),E&&so("embedpress.instafeedControls",[I],t,o,"profileImage"),e.jsx(Me,{label:Y("Follow Button","embedpress"),checked:P,onChange:F=>o({instafeedFollowBtn:F})}),P&&e.jsx(qe,{label:Y("Button Label","embedpress"),value:T,onChange:F=>o({instafeedFollowBtnLabel:F})}),e.jsx(Me,{label:Y("Posts Count","embedpress"),checked:L,onChange:F=>o({instafeedPostsCount:F})}),L&&e.jsx(qe,{label:Y("Count Text","embedpress"),value:Z,onChange:F=>o({instafeedPostsCountText:F})}),a==="business"&&e.jsx(Me,{label:Y("Followers Count","embedpress"),checked:O,onChange:F=>o({instafeedFollowersCount:F})}),O&&a==="business"&&e.jsx(qe,{label:Y("Count Text","embedpress"),value:W,onChange:F=>o({instafeedFollowersCountText:F})}),a==="business"&&e.jsx(Me,{label:Y("Account Name","embedpress"),checked:q,onCh
276ange: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(qe,{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(Me,{label:Y("Autoplay","embedpress"),checked:k,onChange:F=>o({carouselAutoplay:F})}),e.jsx(qe,{label:Y("Autoplay Speed(ms)","embedpress"),value:_,onChange:F=>o({autoplaySpeed:F})}),e.jsx(qe,{label:Y("Transition Speed(ms)","embedpress"),value:B,onChange:F=>o({transitionSpeed:F})}),e.jsx(Me,{label:Y("Loop","embedpress"),checked:$,onChange:F=>o({carouselLoop:F})}),e.jsx(qe,{label:Y("Space","embedpress"),value:h,onChange:F=>o({carouselSpacing:F})}),e.jsx(Me,{label:Y("Arrows","embedpress"),checked:x,onChange:F=>o({carouselArrows:F})})]}),e.jsx(qe,{label:Y("Posts Per Page","embedpress"),value:f,onChange:F=>o({instafeedPostsPerPage:F})}),so("embedpress.instafeedControls",[ee],t,o,"feedTab"),(a==="business"||n==="hashtag_type")&&so("embedpress.instafeedControls",[V],t,o,"likesCount"),(a==="business"||n==="hashtag_type")&&so("embedpress.instafeedControls",[oe],t,o,"commentsCount"),e.jsx(Me,{label:Y("Popup","embedpress"),checked:c,onChange:F=>o({instafeedPopup:F})}),c&&e.jsxs("div",{children:[e.jsx(Me,{label:Y("Popup Follow Button","embedpress"),checked:m,onChange:F=>o({instafeedPopupFollowBtn:F})}),m&&e.jsx(qe,{label:Y("Follow Button Label","embedpress"),value:v,onChange:F=>o({instafeedPopupFollowBtnLabel:F})})]}),(l==="insta-grid"||l==="insta-masonry")&&e.jsx(Me,{label:Y("Load More","embedpress"),checked:y,onChange:F=>o({instafeedLoadmore:F})}),y&&e.jsx(qe,{label:Y("Load More Button Label","embedpress"),value:C,onChange:F=>o({instafeedLoadmoreLabel:F})})]})})]})})}const{isShallowEqualObjects:tr}=wp.isShallowEqual,{useState:sr,useEffect:lr}=wp.element,{applyFilters:rs}=wp.hooks,{__:Se}=wp.i18n,{addFilter:nr}=wp.hooks,{SelectControl:ar,RangeControl:Lh,ToggleControl:is,TextControl:rr,PanelBody:ds,ColorPalette:Oo,FontSizePicker:Bh}=wp.components,{InspectorControls:Th}=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,n]=sr(s);return lr(()=>{const a=X(l,t,o);tr(l||{},a)||n(a)},[t]),l};function pr({attributes:t,setAttributes:o,isCalendly:s}){const{cEmbedType:l,calendlyData:n,hideCookieBanner:a,hideEventTypeDetails:p,cBackgroundColor:d,cTextColor:f,cButtonLinkColor:r,cPopupButtonText:i,cPopupButtonBGColor:u,cPopupButtonTextColor:c,cPopupLinkText:m}=t;embedpressGutenbergData.isProPluginActive;const v=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",b=>{document.querySelector(".pro__alert__wrap").style.display="none"})},y=b=>{const k=` 277 <div class="pro__alert__wrap" style="display: none;"> 278 <div class="pro__alert__card"> 279 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 280 <h2>Opps...</h2> 281 <p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p> 282 <a href="#" class="button radius-10">Close</a> 283 </div> 284 </div> 285 `,_=document.createElement("div");return _.innerHTML=k,_};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(y()),v()),Se("Small"),Se("Medium"),Se("Large");const C=[{name:"",color:"#FF0000"},{name:"",color:"#00FF00"},{name:"",color:"#0000FF"},{name:"",color:"#FFFF00"},{name:"",color:"#FFA500"}],w=rs("embedpress.togglePlaceholder",[],Se("Calendly Data","embedpress"),!1);return s&&e.jsxs("div",{children:[e.jsx(ds,{title:Se("Calendly Controls"),initialOpen:!1,className:"ep-calendly-options",children:e.jsxs("div",{children:[e.jsx(ar,{label:Se("Embed Type","embedpress"),value:l,options:[{label:"Inline",value:"inl
285ine"},{label:"Popup Button",value:"popup_button"}],onChange:b=>o({cEmbedType:b})}),rs("embedpress.calendlyControls",[w],t,o,"calendlyData"),n&&e.jsxs("div",{className:"ep-calendly-data-link",children:[mn,e.jsxs("a",{href:"/wp-admin/admin.php?page=embedpress&page_type=calendly",target:"_blank",children:[" ",Se("View Calendly Data","embedpress")," "]})]}),e.jsx(is,{label:"Hide Cookie Banner",checked:a,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(Oo,{label:Se("Background Color"),colors:C,value:d,onChange:b=>o({cBackgroundColor:b})}),e.jsx(M,{headerText:"Text Color"}),e.jsx(Oo,{label:Se("Text Color"),colors:C,value:f,onChange:b=>o({cTextColor:b})}),e.jsx(M,{headerText:"Button & Link Color"}),e.jsx(Oo,{label:Se("Button & Link Color"),colors:C,value:r,onChange:b=>o({cButtonLinkColor:b})})]})}),e.jsx("div",{children:l==="popup_button"&&e.jsx(ds,{title:Se("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(Oo,{label:Se("Text Color"),colors:C,value:c,onChange:b=>o({cPopupButtonTextColor:b})}),e.jsx(M,{headerText:"Background Color"}),e.jsx(Oo,{label:Se("Background Color"),colors:C,value:u,onChange:b=>o({cPopupButtonBGColor:b})})]})})})]})}const{isShallowEqualObjects:ur}=wp.isShallowEqual,{useState:mr,useEffect:hr}=wp.element,{__:A}=wp.i18n,{addFilter:gr,applyFilters:lo}=wp.hooks,{TextControl:Fh,SelectControl:cs,RangeControl:Eh,ToggleControl:We,PanelBody:fr,Button:Nh,ColorPalette:br}=wp.components,yr=()=>{gr("embedpress_block_rest_param","embedpress",xr,10)},xr=(t,o)=>!o.url||!ql(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,n]=mr(s);return hr(()=>{const a=X(l,t,o);ur(l||{},a)||n(a)},[t]),l};function vr({attributes:t,setAttributes:o}){const{url:s,theme:l,color:n,coverImageUrl:a,playlist:p,playlistContinuous:d,playlistLoop:f,playlistAutoupdate:r,chaptersImage:i,episodeImagePosition:u,hideLikes:c,hideComments:m,hideSharing:v,hideLogo:y,hideEpisodeDescription:C,hidePlaylistDescriptions:w,hidePlaylistImages:b,hideDownload:k}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());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"}],B=lo("embedpress.togglePlaceholder",[],A("Disable Download","embedpress"),!1),$=lo("embedpress.togglePlaceholder",[],A("Continuous Playlist","embedpress"),!1),x=lo("embedpress.togglePlaceholder",[],A("Loop Playlist","embedpress"),!1),h=lo("embedpress.uploadPlaceholder",[]);return e.jsx("div",{children:ql(s)&&e.jsx("div",{className:"ep__vimeo-video-options",children:e.jsxs(fr,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",A("Spreaker Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(cs,{label:A("Theme","embedpress"),value:l,options:[{label:A("Light","embedpress"),value:"light"},{label:A("Dark","embedpress"),value:"dark"}],onChange:g=>o({theme:g})}),e.jsx(M,{headerText:"Main Color "}),e.jsx(br,{colors:_,value:n,onChange:g=>o({color:g})}),e.jsx(M,{headerText:"Cover Image"}),lo("embedpress.spreakerControls",[h],t,o,"coverImage"),lo("embedpress.spreakerControls",[B],t,o,"hideDownload"),e.jsx(We,{label:A("Enable Playlist","embedpress"),help:A("This option is for podcast playlists and doesnât affect individual episodes.","embedpress"),checked:p,onChange:g=>o({playlist:g})}),p&&e.jsxs("div",{children:[lo("embedpress.spreakerControls",[$],t,o,"playlistContinuous"),lo("embedpress.spreakerControls",[x],t,o,"playlistLoop"),e.jsx(We,{label:A("Playlist Autoupdate","embedpress"),checked:r,onChange:g=>o({playlistAutoupdate:g})}),e.jsx(We,{label:A("Hide Playlist Descriptions","embedpress"),checked:w,onChange:g=>o({hidePlaylistDescriptions:g})}),e.jsx(We,{label:A("Hide Playlist Images","embedpress"),checked:b,onChange:g=>o({hidePlaylistImages:g})})]}),e.jsx(cs,{label:A("Episode Image Position","embedpress"),value:u,options:[{label:A("Right","embedpress"),value:"right"},{label:A("Left","embedpress"),value:"left"}],onChange:g=>o({episodeImagePosition:g})}),e.jsx(We,{label:A("Show Chapters Images","embedpress"),checked:i,onChange:g=>o({chaptersImage:g}),help:A("Only applies if the podcast includes chapter images.","embedpress")}),e.jsx(We,{label:A("Hide Likes","embedpress"),checked:c,onChange:g=>o({hideLikes:g})}),e.jsx(We,{label:A("Hide Comments","embedpress"),checked:m,onChange:g=>o({hideComments:g})}),e.jsx(We,{label:A("Hide Sharing","embedpress"),checked:v,onChange:g=>
285o({hideSharing:g})}),e.jsx(We,{label:A("Hide Logo","embedpress"),checked:y,onChange:g=>o({hideLogo:g}),help:A("Hide the Spreaker logo and branding in the player. Requires Broadcaster plan or higher.","embedpress")}),e.jsx(We,{label:A("Hide Episode Description","embedpress"),checked:C,onChange:g=>o({hideEpisodeDescription:g})})]})})})}const{isShallowEqualObjects:Cr}=wp.isShallowEqual,{useState:jr,useEffect:_r}=wp.element,{addFilter:kr}=wp.hooks,{__:$e}=wp.i18n,{TextControl:Mh,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||!wt(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,n]=jr(s);return _r(()=>{const a=X(l,t,o);Cr(l||{},a)||n(a)},[t]),l};function Fr({attributes:t,setAttributes:o}){const{url:s,mode:l,imageWidth:n,imageHeight:a,playerAutoplay:p,delay:d,repeat:f,mediaitemsAspectRatio:r,mediaitemsEnlarge:i,mediaitemsStretch:u,mediaitemsCover:c,backgroundColor:m,expiration:v,photos_link:y}=t,C=[{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:wt(s)&&e.jsx("div",{className:"ep__google-photos-options",children:e.jsxs(Pr,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",$e("GooglePhotos Controls","embedpress")]}),initialOpen:!0,children:[e.jsx($r,{label:$e("Album Mode","embedpress"),value:l,options:[{label:$e("Carousel","embedpress"),value:"carousel"},{label:$e("Gallery Player","embedpress"),value:"gallery-player"},{label:$e("Grid"+b,"embedpress"),value:"gallery-grid"},{label:$e("Masonry "+b,"embedpress"),value:"gallery-masonary"},{label:$e("Justify "+b,"embedpress"),value:"gallery-justify"}],onChange:k=>{(k==="gallery-justify"||k==="gallery-grid"||k==="gallery-masonary")&&!w?po(null,w):o({mode:k})}}),l=="gallery-player"&&e.jsxs("frameElement",{children:[e.jsx(Tt,{label:$e("Autoplay","embedpress"),checked:p,onChange:k=>o({playerAutoplay:k})}),e.jsx(ps,{label:$e("Delay","embedpress"),value:d,onChange:k=>o({delay:k}),min:1,max:60}),e.jsx(Tt,{label:$e("Repeat","embedpress"),checked:f,onChange:k=>o({repeat:k})})]}),l=="gallery-player"||l=="carousel"&&e.jsx(Sr,{label:$e("Background Color","embedpress"),colors:C,value:m,onChange:k=>o({backgroundColor:k})}),e.jsx(ps,{label:$e("Sync after (minutes)","embedpress"),value:v,onChange:k=>o({expiration:k}),min:0,max:1440}),(l==="gallery-player"||l==="carousel")&&e.jsx(Tt,{label:$e("Enable Visit Google Photos Link","embedpress"),checked:y,onChange:k=>o({photos_link:k}),help:$e("Enable an external link icon to visit the original Google Photos album","embedpress")})]})})})}const{useState:no,useEffect:Dh,useRef:Er}=wp.element,Nr=()=>{const t=embedpressGutenbergData.is_embedpress_feedback_submited,o=!!Number(embedpressGutenbergData.turn_off_rating_help),[s,l]=no(()=>localStorage.getItem("ratingClosed")==="true"),[n,a]=no(5),[p,d]=no(!1),[f,r]=no(!1),[i,u]=no(!1),[c,m]=no(0),[v,y]=no(!1),[C,w]=no(""),b=Er(null),k=embedpressGutenbergData.currentUser||{},_=embedpressGutenbergData.isProPluginActive,B=()=>{const S={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(S)}).then(P=>P.json()).then(P=>{d(!0)}).catch(P=>{console.error("Error:",P),alert("Failed to send email.")})},$=S=>{a(S),S<5?(y(!0),setTimeout(()=>{b.current&&b.current.focus()},0)):(d(!0),r(!0),B(),localStorage.setItem("ratingClosed",!0))},x=()=>{window.open("https://wordpress.org/support/plugin/embedpress/reviews/#new-post","_blank")},h=S=>{S.preventDefault(),u(!0);const P=new FormData(S.target),T={name:k.display_name,email:k.user_email,rating:n,message:P.get("message")};fetch("/wp-json/embedpress/v1/send-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)}).then(L=>L.json()).then(L=>{d(!0),y(!1),localStorage.setItem("ratingClosed",!0),u(!1)}).catch(L=>{console.error("Error:",L),alert("Failed to send email.")})},g=n==5?"Weâre glad that you liked us! ð":"We appreciate it!",E=n==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
285ou 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:[!v&&!p&&!s&&!t&&e.jsxs("frameElement",{children:[e.jsx("h4",{children:"Rate EmbedPress"}),e.jsx("div",{className:"stars",children:[...Array(5)].map((S,P)=>e.jsx("svg",{className:"star",width:"14",height:"14",viewBox:"0 0 14 14",fill:P<(c||n)?"#FFD700":"#B1B8C2",xmlns:"http://www.w3.org/2000/svg",onClick:()=>$(P+1),onMouseEnter:()=>m(P+1),onMouseLeave:()=>{a(0),m(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"})},P))})]}),v&&!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:g}),e.jsx("p",{className:"thank-you-message",children:E}),f&&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:Mr}=wp.element,{applyFilters:Dr}=wp.hooks,{__:ao}=wp.i18n,{TextControl:us,NumberControl:Uh,PanelBody:Ur,SelectControl:Ft,ToggleControl:Rh,PanelRow:ms}=wp.components,{InspectorControls:Rr}=wp.blockEditor;function Ir({attributes:t,setAttributes:o,isYTChannel:s,isYTVideo:l,isYTLive:n,isYTShorts:a,isOpensea:p,isOpenseaSingle:d,isWistiaVideo:f,isVimeoVideo:r,isSelfHostedVideo:i,isSelfHostedAudio:u,isCalendly:c,isTikTok:m,isSpreaker:v}){const{url:y,width:C,height:w,videosize:b,instaLayout:k,instafeedFeedType:_,instafeedAccountType:B,slidesShow:$,slidesScroll:x,carouselAutoplay:h,autoplaySpeed:g,transitionSpeed:E,carouselLoop:S,carouselArrows:P,carouselSpacing:T,lockContent:L,contentPassword:Z,editingURL:O,embedHTML:W,mode:q}=t,H=embedpressGutenbergData.isProPluginActive;Mr(null);const z=U=>Math.round(U/5)*5;return document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue()),document.querySelector(".tips__alert__wrap")||(document.querySelector("body").append(Jt()),Xt()),(l||n||r)&&C==="600"&&w==="600"&&o({height:"340"}),u&&o({height:"48"}),c&&C==="600"&&w==="600"&&o({height:"950"}),m&&C==="600"&&w==="600"&&(o({width:"350"}),o({height:"580"})),Vt(y)&&C==="600"&&(o({instafeedFeedType:"hashtag_type"}),o({width:"900"}
285)),!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," ",ao("General","embedpress")]}),children:[e.jsxs("div",{className:"ep-controls-margin",children:[Mo(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"}),"."]})}),n&&e.jsxs("p",{className:"ep-live-video-info",children:[un," ","The most recent live video will be seen."]}),(l||r||n||i)&&e.jsx(Ft,{label:ao("Video Size"),labelPosition:"side",value:b,options:[{label:"Fixed",value:"fixed"},{label:"Responsive",value:"responsive"}],onChange:U=>o({videosize:U}),__nextHasNoMarginBottom:!0}),(!l&&!n&&!r&&!i||b=="fixed")&&e.jsx("p",{children:ao("You can adjust the width and height of embedded content.")}),(l||r||n||i)&&b=="responsive"&&e.jsx("p",{children:ao("You can adjust the width of embedded content.","embedpress")}),e.jsx(us,{label:ao("Width"),value:C,onChange:U=>{o(r||l||n||i||s?{width:`${Math.round(U)}`,height:`${z(Math.round(U*9/16))}`}:{width:U})}}),!wt(y)&&!Mo(y)&&!Vt(y)&&(!l&&!r&&!n&&!i&&!s||b=="fixed")||wt(y)&&(q==="carousel"||q==="gallery-player")?e.jsx(us,{label:ao("Height"),value:w,onChange:U=>{o(r||l||n||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(),Ol()},children:[" ",ao("Tips & Tricks","embedpress")," "]})]})]}),!n&&!a&&e.jsx($t,{attributes:t,setAttributes:o,isYTChannel:s}),Mo(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:ao("Only Available in Pro Version!","embedpress")})}),_==="user_account_type"&&e.jsx(Ft,{label:"Account Type",value:B,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:n,isYTShorts:a}),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:f}),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(Ro,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o})]}),e.jsx(xa,{attributes:t,setAttributes:o,isOpensea:p,isOpenseaSingle:d}),e.jsx(Nr,{})]})}const{__:zr}=wp.i18n,{Fragment:Hr}=wp.element,{Button:Gr,Toolbar:Or}=wp.components,{BlockControls:Vr}=wp.blockEditor,Fe=t=>{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,Le=()=>e.jsxs("div",{className:"wp-block-embed is-loading text-center",children:[e.jsx(Wr,{}),e.jsx("p",{children:qr("Embeddingâ¦")})]});var Ql={exports:{}};/*! 286 Copyright (c) 2018 Jed Watson. 287 Licensed under the MIT License (MIT), see 288 http://jedwatson.github.io/classnames 289*/(function(t){(function(){var o={}.hasOwnProperty;function s(){for(var a="",p=0;p<arguments.length;p++){var d=arguments[p];d&&(a=n(a,l(d)))}return a}
289function l(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return s.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var p="";for(var d in a)o.call(a,d)&&a[d]&&(p=n(p,d));return p}function n(a,p){return p?a?a+" "+p:a+p:a}t.exports?(s.default=s,t.exports=s):window.classNames=s})()})(Ql);var Zr=Ql.exports;const Yr=xl(Zr),{__:hs,_x:Xr}=wp.i18n,{Button:Jr,Placeholder:Kr,ExternalLink:Qr}=wp.components,{BlockIcon:Ar}=wp.blockEditor,Ie=t=>{const{icon:o,label:s,value:l,onSubmit:n,onChange:a,cannotEmbed:p,docLink:d,DocTitle:f}=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:n,children:[e.jsx("input",{type:"url",value:l||"",className:"components-placeholder__input","aria-label":s,placeholder:hs("Enter URL to embed hereâ¦"),onChange:a}),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:f})})]})})},{Component:ei}=wp.element;class oi extends ei{constructor(o){super(o),this.myRef=React.createRef()}componentDidMount(){wl.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=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:n}of o)if(l.test(t))return n;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""},{__:fs}=wp.i18n,{Fragment:ti,useEffect:vo}=wp.element,{useBlockProps:si}=wp.blockEditor,{apiFetch:li}=wp,{applyFilters:bs}=wp.hooks;$n();function ni(t){const{attributes:o,setAttributes:s,clientId:l}=t,{url:n,editingURL:a,fetching:p,cannotEmbed:d,interactive:f,embedHTML:r,height:i,width:u,contentShare:c,sharePosition:m,lockContent:v,customlogo:y,logoX:C,logoY:w,customlogoUrl:b,logoOpacity:k,customPlayer:_,playerPreset:B,adManager:$,adSource:x,adFileUrl:h,adWidth:g,adHeight:E,adXPosition:S,adYPosition:P,shareFacebook:T,shareTwitter:L,sharePinterest:Z,shareLinkedin:O,instaLayout:W,cEmbedType:q,cPopupButtonText:H,cPopupButtonBGColor:z,cPopupButtonTextColor:U,coverImageUrl:I,playlist:ee}=o;vo(()=>{o.clientId||s({clientId:l})},[l,o.clientId,s]),vo(()=>{if(n&&(!o.providerName||o.providerName==="")){let J=gs(n);if(!J){const Pe=n.match(/https?:\/\/(?:www\.)?([^.\/]+)\.(?:com|net|org|io|tv|co|fm|ly)/i);if(Pe!=null&&Pe[1]){const _e=Pe[1];J=_e.charAt(0).toUpperCase()+_e.slice(1)}}J&&s({providerName:J})}},[n,o.providerName,s]);const V=No(o.clientId||l),oe=zt(n),F=Ht(n),be=yt(n),le=Gt(n),ye=xt(n),ne=Ul(n),ae=Rl(n),re=Il(n),ce=zl(n),pe=Ot(n),xe=Hl(n),D=Pn(n),go=Sn(n),ve=Ln(n),He=Bn(n),Xe=ya(o),{youtubeParams:Zo}=aa(o,n),fo=Ba(o),_o=Jl(o),ko=Kl(o),$o=Oa(o),Po=er(o),Yo=cr(o),So=wr(o),bo=Tr(o);vo(()=>
289{if(typeof window.embedpressGutenbergData<"u"&&!y){const J=window.embedpressGutenbergData;n.includes("youtube.com")||n.includes("youtu.be")?s({customlogo:J.youtube_brand_logo_url||""}):n.includes("vimeo.com")?s({customlogo:J.vimeo_brand_logo_url||""}):n.includes("wistia.com")?s({customlogo:J.wistia_brand_logo_url||""}):n.includes("twitch.com")?s({customlogo:J.twitch_brand_logo_url||""}):n.includes("dailymotion.com")&&s({customlogo:J.dailymotion_brand_logo_url||""})}},[n,y]),vo(()=>{ve&&!I&&!ee&&s({height:"200"}),ve&&ee&&s({height:"450"})},[n,I,ee,ve,s]),vo(()=>{(le||ye||oe||ae||re)&&a&&s({height:"340"})},[n,a,le,ye,oe,ae,re,s]);let yo="",xo="",ie=m||"right";c&&(yo="ep-content-share-enabled",xo="ep-share-position-"+ie);let K="";_&&(K=B||"preset-default");let ue="";be&&(ue="embedded-youtube-channel");let Ae="";ce&&(Ae=W);let Q="";(pe||xe)&&(Q=" source-opensea");let ge="";if(q==="popup_button"){let J=U,Pe=z;U&&!U.startsWith("#")&&(J="#"+U,s({cPopupButtonTextColor:J})),z&&!z.startsWith("#")&&(Pe="#"+z,s({cPopupButtonBGColor:Pe})),ge=` 290 <div class="cbutton-preview-wrapper" style="margin-top:-${i}px"> 291 <h4 class="cbutton-preview-text">Preview Popup Button</h4> 292 <div style="position: static" class="calendly-badge-widget"> 293 <div class="calendly-badge-content" style="color: ${J}; background: ${Pe};"> 294 ${H} 295 </div> 296 </div> 297 </div> 298 `}let Ee="";re&&(Ee="<span class='ep-wistia-message'> Changes will be affected in frontend. </span>");let Lo="";c&&(Lo=Vl(m,T,L,Z,O));const Io=bs("embedpress.customLogoComponent","",o);function Xo(){s({editingURL:!0})}function j(){if(!r)return;let J=r.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);J=[...J];for(const Pe of J)if(Pe&&typeof Pe[1]<"u"){const _e=Pe[1],Ge=No(_e),oo=document.getElementById(Ge);oo&&oo.remove();const to=document.createElement("script");to.type="text/javascript",to.setAttribute("id",Ge),to.setAttribute("src",_e),document.body.appendChild(to)}}function zo(J){J&&J.preventDefault(),n?(s({fetching:!0}),(async _e=>{let Ge={url:_e,width:u,height:i};Ge=bs("embedpress_block_rest_param",Ge,o);const pn={url:`${(window.embedpressGutenbergData||{}).siteUrl||window.location.origin}/wp-json/embedpress/v1/oembed/embedpress`,method:"POST",data:Ge};return await li(pn).then(Ct=>Ct).catch(Ct=>(console.error("EmbedPress API Error:",Ct),{error:!0}))})(n).then(_e=>{if(s({fetching:!1}),_e.data&&_e.data.status===404||!_e.embed||_e.error)s({cannotEmbed:!0,editingURL:!0});else{let Ge=_e.provider_name||gs(n);if(!Ge){const oo=n.match(/https?:\/\/(?:www\.)?([^.\/]+)\.(?:com|net|org|io|tv|co|fm|ly)/i);if(oo!=null&&oo[1]){const to=oo[1];Ge=to.charAt(0).toUpperCase()+to.slice(1)}}s({embedHTML:_e.embed,cannotEmbed:!1,editingURL:!1,providerName:Ge||""}),j()}})):s({cannotEmbed:!0,fetching:!1,editingURL:!0}),o.clientId&&n&&_n(o.clientId,n),_&&Tn(V,o),W==="insta-carousel"&&Fn(V,o)}vo(()=>{r&&!a&&!p&&j()},[r,a,p]),vo(()=>{const J=setTimeout(()=>{(!r||a)&&!p||zo()},1500);return()=>{clearTimeout(J)}},[Xe,Zo,_o,ko,fo,$o,Po,Yo,c,v,So,bo]);const eo=si();return e.jsxs(ti,{children:[e.jsx(Ir,{attributes:o,setAttributes:s,isYTChannel:be,isYTVideo:le,isYTLive:ye,isYTShorts:ne,isOpensea:pe,isOpenseaSingle:xe,isWistiaVideo:re,isVimeoVideo:ae,isSelfHostedVideo:oe,isSelfHostedAudio:F,isCalendly:D,isTikTok:go,isSpreaker:ve,isGooglePhotos:He}),(!r||!!a)&&!p&&e.jsx("div",{...eo,children:e.jsx(Ie,{label:fs("EmbedPress - Embed anything from 150+ sites","embedpress"),onSubmit:zo,value:n,cannotEmbed:d,onChange:J=>s({url:J.target.value}),icon:G,DocTitle:fs("Learn more about EmbedPress","embedpress"),docLink:"https://embedpress.com/docs/"})}),(!pe||!!a||a===0)&&(!xe||!!a||a===0)&&(!le&&!ye&&!ne||!!a||a===0)&&(!be||!!a||a===0)&&(!re||!!a||a===0)&&(!ae||!!a||a===0)&&(!D||!!a||a===0)&&(!ce||!!a||a===0)&&(!ve||!!a||a===0)&&(!He||!!a||a===0)&&p&&e.jsx("div",{className:eo.className,children:e.jsx(Le,{})}),r&&!a&&(!p||pe||xe||be||le||ne||re||ae||D||ce||ve||He)&&e.jsx("figure",{...eo,"data-source-id":"source-"+o.clientId,children:e.jsxs("div",{className:`gutenberg-block-wraper ${yo} ${xo}${Q}`,children:[e.jsx(oi,{className:`position-${ie}-wraper ep-embed-content-wraper ${ue} ${K} ${Ae}`,style:{display:p&&!pe&&!xe&&!be&&!le&&!ye&&!ne&&!re&&!ae&&!D&&!ce&&!He?"none":pe||xe?"block":"inl
298ine-block",position:"relative"},..._?{"data-playerid":No(o.clientId)}:{},..._?{"data-options":Ml({attributes:o})}:{},...W==="insta-carousel"?{"data-carouselid":No(o.clientId)}:{},...W==="insta-carousel"?{"data-carousel-options":Dl({attributes:o})}:{},dangerouslySetInnerHTML:{__html:r+Io+Ee+Lo+ge}}),$&&x==="image"&&h&&e.jsx("div",{className:"main-ad-template",style:{position:"absolute",bottom:`${P}%`,left:`${S}%`,width:`${g}px`,height:`${E}px`,backgroundImage:`url(${h})`,backgroundSize:"cover",backgroundPosition:"center",zIndex:10},children:e.jsx("div",{style:{width:"100%",height:"100%"},children:e.jsx("img",{src:h,alt:"Advertisement",style:{width:"100%",height:"100%",objectFit:"cover"}})})}),p&&e.jsx("div",{style:{filter:"grayscale(1)",backgroundColor:"#fffafa",opacity:"0.7"},className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),!pe&&!xe&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),e.jsx(Fe,{showEditButton:r&&!d,switchBackToURLInput:Xo})]})}),e.jsx(Gl,{attributes:o}),$&&x==="image"&&e.jsx("style",{children:` 299 [data-source-id="source-${o.clientId}"] .main-ad-template div, 300 .main-ad-template div img { 301 height: 100%; 302 } 303 [data-source-id="source-${o.clientId}"] .main-ad-template { 304 position: absolute; 305 bottom: ${P}%; 306 left: ${S}%; 307 } 308 `})]})}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:""},providerName:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"600"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:!0},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"},customPlayer:{type:"boolean",default:!1},playerPreset:{type:"string",default:"preset-default"},playerColor:{type:"string",default:"#5b4e96"},autoPause:{type:"boolean",default:!1},posterThumbnail:{type:"string",default:""},playerPip:{type:"boolean",default:!0},playerRestart:{type:"boolean",default:!0},playerRewind:{type:"boolean",default:!1},playerFastForward:{type:"boolean",default:!1},playerTooltip:{type:"boolean",default:!0},playerHideControls:{type:"boolean",default:!1},playerDownload:{type:"boolean",default:!0},pVolume:{type:"number",default:1},playbackSpeed:{type:"number",default:1},showProgress:{type:"boolean",default:!0},showCurrentTime:{type:"boolean",default:!0},showDuration:{type:"boolean",default:!0},showMute:{type:"boolean",default:!0},showVolume:{type:"boolean",default:!0},showCaptions:{type:"boolean",default:!0},showFullscreen:{type:"boolean",default:!0},showPictureInPicture:{type:"boolean",default:!0},showSettings:{type:"boolean",default:!0},showPlaybackSpeed:{type:"boolean",default:!0},showRestart:{type:"boolean",default:!0},showSeek:{type:"boolean",default:!0},showLoop:{type:"boolean",default:!0},ispagination:{type:"boolean",default:!0},ytChannelLayout:{type:"string",default:"gallery"},pagesize:{type:"string",default:"6"},columns:{type:"string",default:"3"},gapbetweenvideos:{type:"number",default:30},videosize:{type:"string",default:"fixed"},starttime:{type:"string"},endtime:{type:"string"},autoplay:{type:"boolean",default:!1},muteVideo:{type:"boolean",default:!0},controls:{type:"string"},fullscreen:{type:"boolean",default:!0},videoannotations:{type:"boolean",default:!0},progressbarcolor:{type:"string",default:"red"},closedcaptions:{type:"boolean",default:!0},modestbranding:{type:"string"},relatedvideos:{type:"boolean",default:!0},vstarttime:{type:"string"},vautoplay:{type:"boolean",default:!1},vscheme:{type:"string"},vtitle:{type:"boolean",default:!0},vauthor:{type:"boolean",default:!0},vavatar:{type:"boolean",default:!0},vloop:{type:"boolean",default:!1},vautopause:{type:"boolean",default:!1},vdnt:{type:"boolean",default:!1},wstarttime:{type:"string"},wautoplay:{type:"boolean",default:!0},scheme:{type:"string"},captions:{type:"boolean",default:!0},playbutton:{type:"boolean",default:!0},smallplaybutton:{type:"boolean",default:!0},playbar:{type:"boolean",default:!0},resumable:{type:"boolean",default:!0},wistiafocus:{type:"boolean",default:!0},volumecontrol:{type:"boolean",default:!0},volume:{type:"number",default:100},rewind:{type:"boolean",default:!1},wfullscreen:{type:"boolean",default:!0},instafeedFeedType:{type:"string",default:"user_account_type"},instafeedAccountType:{type:"string",default:"personal"},instafeedProfileImage:{type:"boolean",default:!0},instafeedProfileImageUrl:{type:"string",default:""},instafeedFollowBtn:{type:"boolean",default:!0},instafeedFollowBtnLabel:{type:"string",default:"Follow"},instafeedPostsCount:{type:"boolean",default:!0},instafeedPostsCountText:{type:"string",default:"[count] posts"},instafeedFollowersCount:{type:"boolean",default:!0},instafeedFollowersCountText:{type:"string",default:"[count] followers"},instafeedAccName:{type:"boolean",default:!0},instaLayout:{type:"string",default:"insta-grid"},instafeedColumns:{type:"string",default:"3"},instafeedColumnsGap:{type:"string",default:"5"},instafeedPostsPerPage:{type:"string",default:"12"},instafeedTab:{type:"boolean",default:!0},instafeedLikesCount:{type:"boolean",default:!0},instafeedCommentsCount:{type:"boolean",default:!0},instafeedPopup:{type:"boolean",default:!0},instafeedPopupFollowBtn:{type:"boolean",default:!0},instafeedPopupFollowBtnLabel:{type:"string",default:"Follow"},instafeedLoadmore:{type:"boolean",default:!0},instafeedLoadmoreLabel:{type:"string",default:"Load More"},slidesShow:{type:"string",default:"4"},slidesScroll:{type:"string",default:"4"},carouselAutoplay:{type:"boolean",default:!1},autoplaySpeed:{type:"string",default:"3000"},transitionSpeed:{type:"string",default:"1000"},carouselLoop:{type:"boolean",default:!0},carouselArrows:{type:"boolean",default:!0},carouselSpacing:{type:"string",default:"0"},carouselDots:{type:"boolean",default:!1},cEmbedType:{type:"string",default:"inline"},calendlyData:{type:"boolean",default:!1},hideCookieBanner:{type:"boolean",default:!1},hideEventTypeDetails:{type:"boolean",default:!1}
308,cBackgroundColor:{type:"string",default:"ffffff"},cTextColor:{type:"string",default:"1A1A1A"},cButtonLinkColor:{type:"string",default:"0000FF"},cPopupButtonText:{type:"string",default:"Schedule time with me"},cPopupButtonBGColor:{type:"string",default:"0000FF"},cPopupButtonTextColor:{type:"string",default:"FFFFFF"},cPopupLinkText:{type:"string",default:"Schedule time with me"},theme:{type:"string",default:"light"},color:{type:"string",default:""},coverImageUrl:{type:"string",default:""},playlist:{type:"boolean",default:!1},playlistContinuous:{type:"boolean",default:!1},playlistLoop:{type:"boolean",default:!1},playlistAutoupdate:{type:"boolean",default:!0},chaptersImage:{type:"boolean",default:!0},episodeImagePosition:{type:"string",default:"right"},hideLikes:{type:"boolean",default:!1},hideComments:{type:"boolean",default:!1},hideSharing:{type:"boolean",default:!1},hideLogo:{type:"boolean",default:!1},hideEpisodeDescription:{type:"boolean",default:!1},hidePlaylistDescriptions:{type:"boolean",default:!1},hidePlaylistImages:{type:"boolean",default:!1},hideDownload:{type:"boolean",default:!1},mode:{type:"string",default:"carousel"},imageWidth:{type:"number",default:800},imageHeight:{type:"number",default:600},playerAutoplay:{type:"boolean",default:!1},delay:{type:"number",default:5},repeat:{type:"boolean",default:!0},mediaitemsAspectRatio:{type:"boolean",default:!0},mediaitemsEnlarge:{type:"boolean",default:!1},mediaitemsStretch:{type:"boolean",default:!1},mediaitemsCover:{type:"boolean",default:!1},backgroundColor:{type:"string",default:"#000000"},expiration:{type:"number",default:60},limit:{type:"number",default:20},itemperpage:{type:"number",default:9},loadmore:{type:"boolean",default:!1},loadmorelabel:{type:"text",default:"Load More"},orderby:{type:"string",default:"desc"},gapbetweenitem:{type:"number",default:30},layout:{type:"string",default:"ep-grid"},preset:{type:"string",default:"preset-default"},nftperrow:{type:"number",default:3},collectionname:{type:"boolean",default:!0},nftimage:{type:"boolean",default:!0},nfttitle:{type:"boolean",default:!0},nftcreator:{type:"boolean",default:!0},prefix_nftcreator:{type:"string",default:"Created By"},nftprice:{type:"boolean",default:!0},prefix_nftprice:{type:"string",default:"Current Price"},nftlastsale:{type:"boolean",default:!0},prefix_nftlastsale:{type:"string",default:"Last Sale"},nftbutton:{type:"boolean",default:!0},nftrank:{type:"boolean",default:!0},label_nftrank:{type:"string",default:"Rank"},nftdetails:{type:"boolean",default:!0},label_nftdetails:{type:"string",default:"Details"},label_nftbutton:{type:"string",default:"See Details"},alignment:{type:"string",default:"ep-item-center"},itemBGColor:{type:"string"},collectionNameColor:{type:"string"},collectionNameFZ:{type:"number"},titleColor:{type:"string"},titleFontsize:{type:"number"},creatorColor:{type:"string"},creatorFontsize:{type:"number"},creatorLinkColor:{type:"string"},creatorLinkFontsize:{type:"number"},priceLabelColor:{type:"string"},priceLabelFontsize:{type:"number"},priceColor:{type:"string"},priceFontsize:{type:"number"},priceUSDColor:{type:"string"},priceUSDFontsize:{type:"number"},lastSaleLabelColor:{type:"string"},lastSaleLabelFontsize:{type:"number"},lastSaleColor:{type:"string"},lastSaleFontsize:{type:"number"},lastSaleUSDColor:{type:"string"},lastSaleUSDFontsize:{type:"number"},buttonTextColor:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextFontsize:{type:"number"},loadmoreTextColor:{type:"string"}
308,loadmoreBackgroundColor:{type:"string"},loadmoreTextFontsize:{type:"number"},rankBtnColor:{type:"string"},rankBtnBorderColor:{type:"string"},rankBtnFZ:{type:"number"},rankLabelColor:{type:"string"},rankLabelFZ:{type:"number"},detialTitleColor:{type:"string"},detialTitleFZ:{type:"number"},detailTextColor:{type:"string"},detailTextLinkColor:{type:"string"},detailTextFZ:{type:"number"},customlogo:{type:"string",default:""},logoX:{type:"number",default:5},logoY:{type:"number",default:10},customlogoUrl:{type:"string"},logoOpacity:{type:"number",default:.6},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},shareFacebook:{type:"boolean",default:!0},shareTwitter:{type:"boolean",default:!0},sharePinterest:{type:"boolean",default:!0},shareLinkedin:{type:"boolean",default:!0},adManager:{type:"boolean",default:!1},adSource:{type:"string",default:"video"},adContent:{type:"object"},adFileUrl:{type:"string",default:""},adWidth:{type:"string",default:"300"},adHeight:{type:"string",default:"200"},adXPosition:{type:"number",default:25},adYPosition:{type:"number",default:10},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"},lockContent:{type:"boolean",default:!1},protectionType:{type:"string",default:"password"},userRole:{type:"array",default:[]},protectionMessage:{type:"string",default:"You do not have access to this content. Only users with the following roles can view it: [user_roles]"},contentPassword:{type:"string",default:""},lockHeading:{type:"string",default:"Content Locked"},lockSubHeading:{type:"string",default:"Content is locked and requires password to access it."},lockErrorMessage:{type:"string",default:"Oops, that wasn't the right password. Try again."},passwordPlaceholder:{type:"string",default:"Password"},submitButtonText:{type:"string",default:"Unlock"},submitUnlockingText:{type:"string",default:"Unlocking"},enableFooterMessage:{type:"boolean",default:!1},footerMessage:{type:"string",default:"In case you don't have the password, kindly reach out to content owner or administrator to request access."}},{registerBlockType:xi}=wp.blocks,Wo=(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)},{__:ro}=wp.i18n;Wo(bi,{icon:G,attributes:yi,keywords:[ro("embed","embedpress"),ro("embedpress","embedpress"),ro("video","embedpress"),ro("social","embedpress"),ro("youtube","embedpress"),ro("vimeo","embedpress"),ro("google docs","embedpress"),ro("pdf","embedpress")],edit:ni,save:Rn});Qa();sa();ga();Pa();Ia();ir();yr();Lr();const{Fragment:Ih}=wp.element;function ho({attributes:t}){const{sharePosition:o,shareFacebook:s,shareTwitter:l,sharePinterest:n,shareLinkedin:a,pageUrl:p,customTitle:d="",customDescription:f="",customThumbnail:r=""}=t,i=encodeURIComponent(p||window.location.href),u=encodeURIComponent(d),c=encodeURIComponent(f),m=encodeURIComponent(r),v=`https://www.facebook.com/sharer/sharer.php?u=${i}`,y=`https://twitter.com/intent/tweet?url=${i}&text=${u}`,C=`http://pinterest.com/pin/create/button/?url=${i}&media=${m}&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:v,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"})})})}),n!==!1&&e.jsx("a",{href:C,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"})})}),a!==!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"})]})})})]})}const{useState:io,useEffect:zh,useRef:wi}=wp.element,ze=()=>{const t=embedpressGutenbergData.is_embedpress_feedback_submited,o=!!Number(embedpressGutenbergData.turn_off_rating_help),[s,l]=io(()=>localStorage.getItem("ratingClosed")==="true"),[n,a]=io(5),[p,d]=io(!1),[f,r]=io(!1),[i,u]=io(!1),[c,m]=io(0),[v,y]=io(!1),[C,w]=io(""),b=wi(null),k=embedpressGutenbergData.currentUser||{},_=embedpressGutenbergData.isProPluginActive,B=()=>
308{const S={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(S)}).then(P=>P.json()).then(P=>{d(!0)}).catch(P=>{console.error("Error:",P),alert("Failed to send email.")})},$=S=>{a(S),S<5?(y(!0),setTimeout(()=>{b.current&&b.current.focus()},0)):(d(!0),r(!0),B(),localStorage.setItem("ratingClosed",!0))},x=()=>{window.open("https://wordpress.org/support/plugin/embedpress/reviews/#new-post","_blank")},h=S=>{S.preventDefault(),u(!0);const P=new FormData(S.target),T={name:k.display_name,email:k.user_email,rating:n,message:P.get("message")};fetch("/wp-json/embedpress/v1/send-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)}).then(L=>L.json()).then(L=>{d(!0),y(!1),localStorage.setItem("ratingClosed",!0),u(!1)}).catch(L=>{console.error("Error:",L),alert("Failed to send email.")})},g=n==5?"Weâre glad that you liked us! ð":"We appreciate it!",E=n==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:[!v&&!p&&!s&&!t&&e.jsxs("frameElement",{children:[e.jsx("h4",{children:"Rate EmbedPress"}),e.jsx("div",{className:"stars",children:[...Array(5)].map((S,P)=>e.jsx("svg",{className:"star",width:"14",height:"14",viewBox:"0 0 14 14",fill:P<(c||n)?"#FFD700":"#B1B8C2",xmlns:"http://www.w3.org/2000/svg",onClick:()=>$(P+1),onMouseEnter:()=>m(P+1),onMouseLeave:()=>{a(0),m(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"})},P))})]}),v&&!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:g}),e.jsx("p",{className:"thank-you-message",children:E}),f&&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"}
308),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:ys}=wp.hooks,{TextControl:Hh,RangeControl:Gh,PanelBody:Ci,Button:Oh}=wp.components,{MediaUpload:Vh}=wp.blockEditor;function Al({attributes:t,setAttributes:o}){const{customlogo:s,logoX:l,logoY:n,customlogoUrl:a,logoOpacity:p}=t;embedpressGutenbergData.isProPluginActive,document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());const d=ys("embedpress.uploadPlaceholder",[]);return e.jsx(Ci,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",vi("Custom Branding","embedpress")]}),initialOpen:!1,children:ys("embedpress.customLogoSettings",[d],t,o)})}const{__:co}=wp.i18n,{Fragment:ji}=wp.element,{applyFilters:et}=wp.hooks,{PanelBody:_i,ToggleControl:Et,SelectControl:xs,TextControl:ki,ColorPalette:$i}=wp.components,Pi=({attributes:t,setAttributes:o})=>{const{docViewer:s,themeMode:l,customColor:n,presentation:a,position:p,download:d,draw:f,toolbar:r,copy_text:i,doc_rotation:u,powered_by:c,href:m}=t;document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(Re()),Ue());const v=[{name:"",color:"#823535"},{name:"",color:"#008000"},{name:"",color:"#403A81"},{name:"",color:"#333333"},{name:"",color:"#000264"}],y=et("embedpress.togglePlaceholder",[],co("Toolbar","embedpress"),!0),C=et("embedpress.togglePlaceholder",[],co("Print/Download","embedpress"),!0);return e.jsxs(_i,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",co("Document Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(ki,{label:co("Document URL","embedpress"),type:"text",value:m||"",onChange:w=>o({href:w})}),e.jsx(xs,{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(xs,{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:co("Color"),colors:v,value:n,onChange:w=>o({customColor:w})})]}),s==="custom"&&et("embedpress.documentControls",[y],t,o,"toolbar"),r&&s==="custom"&&e.jsxs(ji,{children:[e.jsx(Et,{label:co("Fullscreen","embedpress"),onChange:w=>o({presentation:w}),checked:a}),et("embedpress.documentControls",[C],t,o,"print"),e.jsx(Et,{label:co("Draw","embedpress"),onChange:w=>o({draw:w}),checked:f}),e.jsx(Et,{label:co("Powered By"),onChange:w=>o({powered_by:w}),checked:c})]})]})},{__:Nt}=wp.i18n,{useState:qh,useEffect:Wh,Fragment:Zh}=wp.element,{BlockControls:Yh,BlockIcon:Xh,MediaPlaceholder:Jh,InspectorControls:Si,useBlockProps:Kh}=wp.blockEditor,{ToolbarButton:Qh,RangeControl:ws,PanelBody:Li,ExternalLink:Ah,ToggleControl:eg,TextControl:og,SelectControl:tg,RadioControl:sg,ColorPalette:lg}=wp.components,Bi=({attributes:t,setAttributes:o})=>{const{width:s,height:l}=t,n=1,a=1e3;return e.jsxs(Si,{children:[e.jsxs(Li,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Nt("Embed Size","embedpress")]}),className:"embedpress-documents-control",children:[e.jsx(ws,{label:Nt("Width","embedpress"),value:s||720,onChange:p=>o({width:p}),min:n,max:a}
308),e.jsx(ws,{label:Nt("Height","embedpress"),value:l,onChange:p=>o({height:p}),min:n,max:a})]}),e.jsx(Pi,{attributes:t,setAttributes:o}),e.jsx(Al,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(ze,{})]})},en=({attributes:t})=>{const{id:o,themeMode:s,customColor:l}=t;let n="#f2f2f6";return l&&Nn(l)>60&&(n="#343434"),e.jsx("style",{children:s==="custom"&&` 309 [data-id='${o}'][data-theme-mode='custom'] { 310 --viewer-primary-color: ${l}; 311 --viewer-icons-color: ${n}; 312 --viewer-icons-hover-bgcolor: ${Mn(l,-10)}; 313 314 } 315 `})},on=({href:t,id:o,width:s,height:l,setFetching:n})=>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:()=>n(!1)})}),tn=({href:t,url:o,docViewer:s,width:l,height:n,themeMode:a,customColor:p,id:d,download:f,draw:r,toolbar:i,presentation:u,setShowOverlay:c,setFetching:m,loadPdf:v,fetching:y})=>e.jsxs("div",{className:`${s==="custom"?"ep-file-download-option-masked ":""}ep-gutenberg-file-doc ep-powered-by-enabled${f?" enabled-file-download":""}`,"data-theme-mode":a,"data-custom-color":p,"data-id":d,children:[e.jsx("iframe",{src:de(o),style:{height:n,width:l},onLoad:()=>m(!1),onMouseUp:()=>c(!1)}),r&&s==="custom"&&e.jsx("canvas",{className:"ep-doc-canvas",width:l,height:n}),i&&s==="custom"&&e.jsxs("div",{className:"ep-external-doc-icons",children:[!jt(t)&&hn(),f&&jt(t)&&fn(),f&&jt(t)&&gn(),r&&xn(),u&&bn(),u&&yn()]})]}),{BlockIcon:Ti,MediaPlaceholder:Fi}=wp.blockEditor,{ExternalLink:Ei}=wp.components,{__:vs}=wp.i18n,Ni=["application/pdf","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],Mi=({onSelect:t,onError:o,notices:s})=>e.jsx("div",{className:"embedpress-document-editmode",children:e.jsx(Fi,{icon:e.jsx(Ti,{icon:Ll}),labels:{title:vs("Document","embedpress"),instructions:vs("Upload a file or pick one from your media library for embed.","embedpress")},onSelect:t,notices:s,allowedTypes:Ni,onError:o,children:e.jsx("div",{className:"components-placeholder__learn-more embedpress-doc-link",children:e.jsx(Ei,{href:"https://embedpress.com/docs/embed-document/",children:"Learn more about Embedded document"})})})}),{useState:ot,useEffect:Cs}=wp.element,{__:Di}=wp.i18n,{getBlobByURL:Ui,isBlobURL:Ri,revokeBlobURL:Ii}=wp.blob,{useBlockProps:zi,BlockIcon:ng,MediaPlaceholder:ag,InspectorControls:rg,BlockControls:Hi}=wp.blockEditor,{ExternalLink:ig,ToolbarButton:Gi}=wp.components,{applyFilters:Oi}=wp.hooks,Vi=({attributes:t,mediaUpload:o,noticeOperations:s,isSelected:l,setAttributes:n,clientId:a,noticeUI:p})=>{const{href:d,mime:f,id:r,width:i,height:u,docViewer:c,themeMode:m,customColor:v,presentation:y=!0,position:C="bottom",download:w=!0,draw:b=!0,toolbar:k,powered_by:_,adManager:B,adSource:$,adFileUrl:x,sharePosition:h,contentShare:g,customlogo:E}
315=t,[S,P]=ot(!1),[T,L]=ot(!1),[Z,O]=ot(!0),[W,q]=ot(!0),H=zi();Cs(()=>{if(Ri(d)){const V=Ui(d);o({filesList:[V],onFileChange:([oe])=>z(oe),onError:oe=>{P(!0),s.createErrorNotice(oe)}}),Ii(d)}d&&f==="application/pdf"&&W&&(q(!1),typeof PDFObject<"u"&&PDFObject.embed(d,`.${r}`))},[d,f,r]),Cs(()=>{l||O(!0)},[l]);const z=V=>{V!=null&&V.url&&(P(!1),n({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}`)),a&&V.url&&vt(a,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||S)return e.jsx("div",{...H,children:e.jsx(Mi,{onSelect:z,onError:U,notices:p})});const ee=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:()=>n({href:""})})}),T&&f!=="application/pdf"&&e.jsx(Le,{}),e.jsxs("div",{className:`embedpress-document-embed ep-doc-${r}`,style:{height:u,width:i},children:[e.jsxs("div",{className:`position-${h}-wraper gutenberg-doc-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[f==="application/pdf"?e.jsx(on,{href:d,id:r,width:i,height:u,setFetching:L}):e.jsx(tn,{href:d,url:I(),docViewer:c,width:i,height:u,themeMode:m,customColor:v,id:r,download:w,draw:b,toolbar:k,presentation:y,setShowOverlay:O,setFetching:L,loadPdf:W,fetching:T}),g&&e.jsx(ho,{attributes:t})]}),ee&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:ee}}),_&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),Z&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>O(!1)}),e.jsx(en,{attributes:t})]}),B&&$==="image"&&x&&e.jsx(mo,{attributes:t,setAttributes:n,deleteIcon:!0,progressBar:!0,inEditor:!0})]}),e.jsx(Bi,{attributes:t,setAttributes:n})]})},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"},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:n,id:a,unitoption:p,width:d,height:f,powered_by:r,docViewer:i,themeMode:u,customColor:c,presentation:m=!0,position:v="bottom",download:y=!0,draw:C=!0,toolbar:w,doc_rotation:b,clientId:k,sharePosition:_,contentShare:B,adManager:$,adSource:x,adFileUrl:h,adXPosition:g,adYPosition:E,customlogo:S}=t;if(!l)return null;new URLSearchParams({theme_mode:u,...u==="custom"&&{custom_color:c||"#343434"},presentation:m,position:v,download:y,draw:C}).toString();const P=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-${a}`,style:{height:f,width:d},"data-embed-type":"Document",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${_}-wraper gutenberg-doc-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[n==="application/pdf"?e.jsx(on,{href:l,id:a,width:d,height:f,setFetching:!1}):e.jsx(tn,{href:l,url:T(),docViewer:i,width:d,height:f,themeMode:u,customColor:c,id:a,download:y,draw:C,toolbar:w,presentation:m,setFetching:!1}),B&&e.jsx(ho,{attributes:t})]}),P&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:P}}),r&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),e.jsx(en,{attributes:t})]}),$&&x==="image"&&h&&e.jsx(mo,{attributes:t,setAttributes:o,deleteIcon:!0,progressBar:!0,inEditor:!0})]})})})},{__:Fo}=wp.i18n;Wo(td,{icon:Ll,attributes:sd,example:ld,keywords:[Fo("embedpress","embedpress"),Fo("document","embedpress"),Fo("pdf","embedpress"),Fo("doc","embedpress"),Fo("ppt","embedpress"),Fo("xls","embedpress")],edit:Vi,save:rd});const{TextControl:js,PanelBody:_s,ToggleControl:ks}=wp.components,{InspectorControls:id,useBlockProps:$s}=wp.blockEditor,{Fragment:dd}=wp.element,{__:Ze}=wp.i18n;function cd({attributes:t,className:o,setAttributes:s}){const{url:l,editingURL:n,fetching:a,cannotEmbed:p,embedHTML:d,height:f,width:r,powered_by:i,is_public:u,align:c,interactive:m}=t,v=$s?$s({className:"align"+c,style:{width:r+"px",height:f+"px"}}):[];function y(){s({editingURL:!0,is_public:!0})}function C(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(_s,{title:Ze("Customize Embedded Calendar","embedpress"),children:[e.jsx("p",{children:Ze("You can adjust the width and height of embedded content.","embedpress")}),e.jsx(js,{label:Ze("Width","embedpress"),value:r,onChange:b=>s({width:b})}),!Mo(l)&&!Vt(l)&&e.jsx(js,{label:Ze("Height","embedpress"),value:f,onChange:b=>s({height:b})})]}),e.jsxs(_s,{title:Ze("Calendar Type and other options","embedpress"),children:[e.jsx("p",{children:Ze("You can show public calendar without any API key","embedpress")}),e.jsx(ks,{label:Ze("Powered By","embedpress"),onChange:b=>s({powered_by:b}),checked:i}),e.jsx(ks,{label:Ze("Embedding Public Calendar","embedpress"),onChange:b=>s({is_public:b}),checked:u})]})]}),(!d||n)&&!a&&u&&e.jsx("div",{...v,children:e.jsx(Ie,{label:Ze("Public Calendar Link"),onSubmit:C,value:l,cannotEmbed:p,onChange:b=>s({url:b.target.value}),icon:Tl,DocTitle:Ze("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})}),a?e.jsxs("div",{className:o,children:[e.jsx(Le,{})," "]}):null,d&&u&&!n&&!a&&e.jsxs("figure",{...v,children:[u&&w(l)&&e.jsx("iframe",{style:{display:a?"none":""},src:de(l),width:r,height:f}),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"}),!m&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}
315),e.jsx(Fe,{showEditButton:d&&!p,switchBackToURLInput:y})]}),!u&&e.jsxs("figure",{className:"testing",...v,children:[e.jsxs("p",{children:["Private Calendar will show in the frontend only.",e.jsx("br",{}),e.jsx("strong",{children:"Note: Private calendar needs EmbedPress Pro."})]}),i&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),!m&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})}),e.jsx(Fe,{showEditButton:d&&!p,switchBackToURLInput:y})]})]})}const 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:Tl,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:dg}=wp.element,bd=({attributes:t})=>{const o=fd.save(),{href:s,mime:l,id:n,unitoption:a,width:p,height:d,powered_by:f,themeMode:r,customColor:i,presentation:u,lazyLoad:c,position:m,flipbook_toolbar_position:v,download:y,add_text:C,draw:w,toolbar:b,copy_text:k,doc_details:_,doc_rotation:B,add_image:$,selection_tool:x,scrolling:h,spreads:g,clientId:E,sharePosition:S,contentShare:P,adManager:T,adSource:L,adFileUrl:Z,adXPosition:O,adYPosition:W,viewerStyle:q,zoomIn:H,zoomOut:z,fitView:U,bookmark:I,customlogo:ee}=t;if(!s)return null;let V="";a==="%"?V="ep-percentage-width":V="ep-fixed-width";let oe="",F="",be=S||"right";P&&(oe="ep-content-share-enabled",F="ep-share-position-"+be);function le(re){let ce="",pe={};r==="custom"&&(pe={customColor:i&&i!=="default"?i:"#403A81"});let xe={themeMode:r||"default",...pe,presentation:u||!1,lazyLoad:c||!1,position:m||"top",flipbook_toolbar_position:v||"bottom",download:y||!1,toolbar:b||!1,copy_text:k||!1,add_text:C||!1,draw:w||!1,doc_details:_||!1,doc_rotation:B||!1,add_image:$||!1,zoom_in:H||!1,zoom_out:z||!1,fit_view:U||!1,bookmark:I||!1,selection_tool:x||"0",scrolling:h||"-1",spreads:g||"0"};const D=new URLSearchParams(xe).toString();ce="key="+btoa(encodeURIComponent(D).replace(/%([0-9A-F]{2})/g,function(He,Xe){return String.fromCharCode(parseInt(Xe,16))}));let ve=re.split("#");return ve=encodeURIComponent(ve[0]),q==="flip-book"?`${ve}&${ce}`:`${ve}#${ce}`}const ye="//view.officeapps.live.com/op/embed.aspx?src="+le(s);let ne="";typeof embedpressGutenbergData<"u"&&embedpressGutenbergData.pdfRenderer&&(ne=embedpressGutenbergData.pdfRenderer+(embedpressGutenbergData.pdfRenderer.indexOf("?")===-1?"?":"&")+"scrolling="+h+"&selection_tool="+x+"&spreads="+g+"&file="+le(s)),q==="flip-book"&&typeof embedpressGutenbergData<"u"&&embedpressGutenbergData.assetsUrl&&(ne=embedpressGutenbergData.assetsUrl+"pdf-flip-book/viewer.html?file="+le(s));const ae=gd("embedpress.customLogoComponent","",t);return e.jsx("div",{...o,children:e.jsx("div",{className:"embedpress-document-embed ep-doc-"+n+" "+oe+" "+F+" "+V,style:{width:p+a,maxWidth:"100%"},id:`ep-doc-${E}`,"data-source-id":"source-"+E,"data-embed-type":"PDF",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${S}-wraper gutenberg-pdf-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[l==="application/pdf"&&ne&&e.jsx("iframe",{title:"",powered_by:f,style:{height:d,width:"100%"},className:"embedpress-embed-document-pdf "+n,"data-emid":n,src:de(ne)}),l!=="application/pdf"&&e.jsx("iframe",{title:"",style:{height:d,width:"100%"},src:de(ye)}),P&&e.jsx(ho,{attributes:t})]}),ae&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:ae}}),f&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),T&&L==="image"&&Z&&e.jsx(mo,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{Component:yd}=wp.element;
315class Qe extends yd{constructor(o){super(o),this.myRef=React.createRef()}componentDidMount(){wl.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}render(){return e.jsx("iframe",{ref:this.myRef,...this.props})}}const{__:te}=wp.i18n,{useState:cg,useEffect:pg,Fragment:Mt}=wp.element,{BlockControls:ug,BlockIcon:mg,MediaPlaceholder:hg,InspectorControls:xd,useBlockProps:gg}=wp.blockEditor,{__experimentalToggleGroupControl:Ps,__experimentalToggleGroupControlOption:tt}=wp.components,{ToolbarButton:fg,RangeControl:Ss,PanelBody:Ls,ExternalLink:bg,ToggleControl:De,TextControl:wd,SelectControl:Dt,RadioControl:vd,ColorPalette:Cd}=wp.components,{applyFilters:Te}=wp.hooks,jd=({attributes:t,setAttributes:o})=>{const{href:s,mime:l,id:n,unitoption:a,width:p,height:d,powered_by:f,themeMode:r,customColor:i,presentation:u,lazyLoad:c,position:m,flipbook_toolbar_position:v,download:y,add_text:C,draw:w,open:b,toolbar:k,copy_text:_,toolbar_position:B,doc_details:$,doc_rotation:x,add_image:h,selection_tool:g,scrolling:E,spreads:S,sharePosition:P,contentShare:T,adManager:L,adSource:Z,adFileUrl:O,adWidth:W,adHeight:q,adXPosition:H,adYPosition:z,viewerStyle:U,zoomIn:I,zoomOut:ee,fitView:V,bookmark:oe}=t,F=1,be=1e3;let le=0,ye=100;a=="px"&&(ye=1500);const ne=Te("embedpress.togglePlaceholder",[],te("Toolbar","embedpress"),!0),ae=Te("embedpress.togglePlaceholder",[],te("Print/Download","embedpress"),!0),re=Te("embedpress.togglePlaceholder",[],te("Draw","embedpress"),!1),ce=Te("embedpress.togglePlaceholder",[],te("Copy Text","embedpress"),!0),pe=Te("embedpress.selectPlaceholder",[],te("Default Scrolling","embedpress"),"-1","Page Scrolling"),xe=Te("embedpress.selectPlaceholder",[],te("Default Selection Tool","embedpress"),"0","Text Tool");return e.jsxs(xd,{children:[e.jsxs(Ls,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",te("Embed Size","embedpress")]}),children:[e.jsxs("div",{className:"ep-pdf-width-contol",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(vd,{selected:a,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:D=>o({unitoption:D}),className:"ep-unit-choice-option"}),e.jsx(Ss,{value:p,onChange:D=>o({width:D}),max:ye,min:le})]}),e.jsx(Ss,{label:te("Height","embedpress"),value:d,onChange:D=>o({height:D}),max:be,min:F})]}),e.jsxs(Ls,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",te("Document Controls","embedpress")]}),initialOpen:!1,children:[e.jsx(wd,{label:te("Document URL","embedpress"),type:"text",value:t.href||"",onChange:D=>o({href:D})}),e.jsx(Dt,{label:"Viewer Style",value:U,options:[{label:"Modern",value:"modern"},{label:"Flip Book",value:"flip-book"}],onChange:D=>o({viewerStyle:D}),__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:D=>o({themeMode:D}),__nextHasNoMarginBottom:!0}),r==="custom"&&e.jsxs("div",{children:[e.jsx(M,{headerText:"Color"}),e.jsx(Cd,{label:te("Color"),colors,value:i,onChange:D=>o({customColor:D})})]}),Te("embedpress.pdfControls",[ne],t,o,"toolbar"),k&&e.jsxs(Mt,{children:[U==="flip-book"?e.jsxs(Ps,{label:"Toolbar Position",value:v,onChange:D=>o({flipbook_toolbar_position:D}),children:[e.jsx(tt,{value:"top",label:"Top"}),e.jsx(tt,{value:"bottom",label:"Bottom"})]}):e.jsxs(Ps,{label:"Toolbar Position",value:m,onChange:D=>o({position:D}),children:[e.jsx(tt,{value:"top",label:"Top"}),e.jsx(tt,{value:"bottom",label:"Bottom"})]}),e.jsx(De,{label:te("Presentation Mode","embedpress"),onChange:D=>o({presentation:D}),checked:u}),e.jsx(De,{label:te("Lazy Load","embedpress"),onChange:D=>o({lazyLoad:D}),checked:c}),Te("embedpress.pdfControls",[ae],t,o,"print"),U==="modern"?e.jsxs(Mt,{children:[e.jsx(De,{label:te("Add Text","embedpress"),onChange:D=>o({add_text:D}),checked:C}),Te("embedpress.pdfControls",[re],t,o,"draw"),Te("embedpress.pdfControls",[ce],t,o,"copyText"),e.jsx(De,{label:te("Add Image","embedpress"),onChange:D=>o({add_image:D}),checked:h}),e.jsx(De,{label:te("Rotation","embedpress"),onChange:D=>o({doc_rotation:D}),checked:x}),e.jsx(De,{label:te("Properties","embedpress"),onChange:D=>o({doc_details:D}),checked:$}),Te("embedpress.pdfControls",[xe],t,o,"selectionTool"),Te("embedpress.pdfControls",[pe],t,o,"scrolling"),E!=="1"&&e.jsx(Dt,{label:"Default Spreads",value:S,options:[{label:"No Spreads",value:"
3150"},{label:"Odd Spreads",value:"1"},{label:"Even Spreads",value:"2"}],onChange:D=>o({spreads:D}),__nextHasNoMarginBottom:!0})]}):e.jsxs(Mt,{children:[e.jsx(De,{label:te("Zoom In","embedpress"),onChange:D=>o({zoomIn:D}),checked:I}),e.jsx(De,{label:te("Zoom Out","embedpress"),onChange:D=>o({zoomOut:D}),checked:ee}),e.jsx(De,{label:te("Fit View","embedpress"),onChange:D=>o({fitView:D}),checked:V}),e.jsx(De,{label:te("Bookmark","embedpress"),onChange:D=>o({bookmark:D}),checked:oe})]}),e.jsx(De,{label:te("Powered By","embedpress"),onChange:D=>o({powered_by:D}),checked:f})]})]}),e.jsx(Al,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(ze,{})]},"inspector")},{__:Ut}=wp.i18n,{useState:st,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:Nd}=wp.hooks,Md=["application/pdf"];function Dd(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:n,noticeUI:a,mediaUpload:p,noticeOperations:d}=t,[f,r]=st(!1),[i,u]=st(!1),[c,m]=st(!1),[v,y]=st(!0),C=Sd();Rt(()=>{!n&&c&&m(!1)},[n,c]),Rt(()=>{const{href:Q}=o;if(Fd(Q)){const ge=Td(Q);p({filesList:[ge],onFileChange:([Ee])=>k(Ee),onError:Ee=>{r(!0),d.createErrorNotice(Ee)}}),Ed(Q)}o.href&&o.mime==="application/pdf"&&v&&y(!1)},[]);const w=()=>{m(!0)},b=()=>{u(!1)},k=Q=>{Q&&Q.url&&(r(!1),s({href:Q.url,fileName:Q.title,id:"embedpress-pdf-"+Date.now(),mime:Q.mime}),embedpressGutenbergData.branding!==void 0&&embedpressGutenbergData.branding.powered_by!==void 0&&s({powered_by:embedpressGutenbergData.branding.powered_by}),Q.mime==="application/pdf"&&y(!1)),l&&o.href&&vt(l,o.href)},_=Q=>{d.removeAllNotices(),d.createErrorNotice(Q)},B=()=>{document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",()=>{document.querySelector(".pro__alert__wrap").style.display="none"})},$=()=>{const Q=` 316 <div class="pro__alert__wrap" style="display: none;"> 317 <div class="pro__alert__card"> 318 <img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/> 319 <h2>Opps...</h2> 320 <p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p> 321 <a href="#" class="button radius-10">Close</a> 322 </div> 323 </div> 324 `,ge=document.createElement("div");return ge.innerHTML=Q,ge};Rt(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{href:x,mime:h,id:g,unitoption:E,width:S,height:P,powered_by:T,themeMode:L,customColor:Z,presentation:O,lazyLoad:W,position:q,flipbook_toolbar_position:H,download:z,add_text:U,draw:I,open:ee,toolbar:V,copy_text:oe,toolbar_position:F,doc_details:be,doc_rotation:le,add_image:ye,selection_tool:ne,scrolling:ae,spreads:re,sharePosition:ce,contentShare:pe,adManager:xe,adSource:D,adFileUrl:go,adWidth:ve,adHeight:He,adXPosition:Xe,adYPosition:Zo,viewerStyle:fo,zoomIn:_o,zoomOut:ko,fitView:$o,bookmark:Po,customlogo:Yo}=o,So=Nd("embedpress.customLogoComponent",null,o);let bo="";E=="%"?bo="ep-percentage-width":bo="ep-fixed-width";let yo="",xo="",ie=ce||"right";pe&&(yo="ep-content-share-enabled",xo="ep-share-position-"+ie);const K="https://embedpress.com/docs/embed-document/";embedpressGutenbergData.isProPluginActive||(s({download:!0}),s({copy_text:!0}),s({draw:!1}),s({selection_tool:"0"}),s({scrolling:"-1"})),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append($()),B());function Ae(Q){let ge="",Ee={};L==="custom"&&(Ee={customColor:Z&&Z!=="default"?Z:"#403A81"});let Lo={themeMode:L||"default",...Ee,presentation:O||!1,lazyLoad:W||!1,position:q||"top",flipbook_toolbar_position:H||"bottom",download:z||!1,toolbar:V||!1,copy_text:oe||!1,add_text:U||!1,draw:I||!1,toolbar_position:F||"top",doc_details:be||!1,doc_rotation:le||!1,add_image:ye||!1,zoom_in:_o||!1,zoom_out:ko||!1,fit_view:$o||!1,bookmark:Po||!1,selection_tool:ne||"0",scrolling:ae||"-1",spreads:re||"0"};const Io=new URLSearchParams(Lo).toString();ge="key="+btoa(encodeURIComponent(Io).replace(/%([0-9A-F]{2})/g,function(zo,eo){return String.fromCharCode(parseInt(eo,16))}));let j=Q.split("#");return j=encodeURIComponent(j[0]),fo==="flip-book"?`${j}&${ge}`:`${j}#${ge}`}if(!x||f)return e.jsx("div",{className:"embedpress-document-editmode",children:e.jsx(Pd,{icon:e.jsx($d,{icon:Bl}),labels:{title:Ut("EmbedPress PDF"),instructions:Ut("Upload a PDF file or pick one from your media library for embed.")},onSelect:k,notices:a,allowedTypes:Md,onError:_,children:e.jsx("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link",children:e.jsx(Bd,{href:K,children:"Learn more about Embedded document "})})})});{const Q="//view.officeapps.live.com/op/embed.aspx?src="+Ae(x);let ge=embedpressGutenbergData.pdfRenderer+(embedpressGutenbergData.pdfRenderer.indexOf("?")===-1?"?":"&")+"scrolling="+ae+"&selection_tool="+ne+"&spreads="+re+"&file="+Ae(x);return fo==="flip-book"&&(ge=embedpressGutenbergData.assetsUrl+"pdf-flip-book/viewer.html?file="+Ae(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(Le,{}):null,e.jsx("div",{...C,children:e.jsx("div",{className:"embedpress-document-embed ep-doc-"+g+" "+yo+" "+xo+" "+bo,style:{width:S+E,maxWidth:"100%"},id:`ep-doc-${o.clientId||l}`,"data-source-id":"source-"+(o.clientId||l),children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${ce}-wraper gutenberg-pdf-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[h==="application/pdf"&&(fo==="modern"?e.jsx("iframe",{title:"",powered_by:T,style:{height:P,width:"100%"},className:"embedpress-embed-document-pdf "+g,"data-emid":g,src:de(ge)}):e.jsx("iframe",{title:"",powered_by:T,style:{height:P,width:"100%"},className:"embedpress-embed-document-pdf "+g,"data-emid":g,src:de(ge)})),h!=="application/pdf"&&e.jsx(Qe,{title:"",onMouseUponMouseUp:w,style:{height:P,width:S,display:i||!v?"none":""},onLoad:b,src:de(Q)}),pe&&e.jsx(ho,{attributes:o})]}),So&&e.jsx("div",{className:"custom-logo-container",dangerouslySetInnerHTML:{__html:So}}),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&&D==="image"&&go&&e.jsx(mo,{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}
324,viewerStyle:{type:"string",default:"modern"},zoomIn:{type:"boolean",default:!0},zoomOut:{type:"boolean",default:!0},fitView:{type:"boolean",default:!0},bookmark:{type:"boolean",default:!0},customlogo:{type:"string",default:""},logoX:{type:"number",default:5},logoY:{type:"number",default:10},customlogoUrl:{type:"string"},logoOpacity:{type:"number",default:.6},contentShare:{type:"boolean",default:!1},sharePosition:{type:"string",default:"right"},customTitle:{type:"string",default:""},customDescription:{type:"string",default:""},customThumbnail:{type:"string",default:""},shareFacebook:{type:"boolean",default:!0},shareTwitter:{type:"boolean",default:!0},sharePinterest:{type:"boolean",default:!0},shareLinkedin:{type:"boolean",default:!0},adManager:{type:"boolean",default:!1},adSource:{type:"string",default:"video"},adContent:{type:"object"},adFileUrl:{type:"string",default:""},adWidth:{type:"string",default:"300"},adHeight:{type:"string",default:"200"},adXPosition:{type:"number",default:25},adYPosition:{type:"number",default:10},adUrl:{type:"string",default:""},adStart:{type:"string",default:"10"},adSkipButton:{type:"boolean",default:!0},adSkipButtonAfter:{type:"string",default:"5"},lockContent:{type:"boolean",default:!1},protectionType:{type:"string",default:"password"},userRole:{type:"array",default:[]},protectionMessage:{type:"string",default:"You do not have access to this content. Only users with the following roles can view it: [user_roles]"},contentPassword:{type:"string",default:""},lockHeading:{type:"string",default:"Content Locked"},lockSubHeading:{type:"string",default:"Content is locked and requires password to access it."},lockErrorMessage:{type:"string",default:"Oops, that wasn't the right password. Try again."},passwordPlaceholder:{type:"string",default:"Password"},submitButtonText:{type:"string",default:"Unlock"},submitUnlockingText:{type:"string",default:"Unlocking"},enableFooterMessage:{type:"boolean",default:!1},footerMessage:{type:"string",default:"In case you don't have the password, kindly reach out to content owner or administrator to request access."}},{__:lt}=wp.i18n;Wo(Yd,{icon:Bl,attributes:Xd,keywords:[lt("embedpress","embedpress"),lt("pdf","embedpress"),lt("doc","embedpress"),lt("document","embedpress")],edit:Dd,save:bd});const{applyFilters:yg}=wp.hooks,{useBlockProps:Jd}=wp.blockEditor,{Fragment:xg}=wp.element,Kd=({attributes:t})=>{const o=Jd.save(),{iframeSrc:s,id:l,unitoption:n,width:a,height:p,powered_by:d,clientId:f,sharePosition:r,contentShare:i,adManager:u,adSource:c,adFileUrl:m,adXPosition:v,adYPosition:y}=t;if(!s)return null;let C="";n==="%"?C="ep-percentage-width":C="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+" "+C,style:{width:a+n,maxWidth:"100%"},id:`ep-google-docs-${f}`,"data-source-id":"source-"+f,"data-embed-type":"Google Docs",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${r}-wraper gutenberg-google-docs-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx("iframe",{src:de(s),style:{height:p,width:"100%"},frameBorder:"0",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}),i&&e.jsx(ho,{attributes:t})]}),d&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),u&&c==="image"&&m&&e.jsx(mo,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{__:nt}=wp.i18n,{InspectorControls:Qd}=wp.blockEditor,{PanelBody:Bs,RangeControl:Ts,RadioControl:Ad,ToggleControl:ec}=wp.components,Fs=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n,powered_by:a,contentShare:p,adManager:d,lockContent:f}=t,r=1,i=1e3,u=n==="%"?100:1e3;return e.jsxs(Qd,{children:[e.jsxs(Bs,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",nt("Embed Size","embedpress")]}),className:"embedpress-google-docs-control",children:[e.jsxs("div",{className:"ep-google-docs-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(Ad,{selected:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:m=>o({unitoption:m}),className:"ep-unit-choice-option"}),e.jsx(Ts,{value:s,onChange:m=>o({width:m}),max:u,min:1})]}
324),e.jsx(Ts,{label:nt("Height","embedpress"),value:l,onChange:m=>o({height:m}),min:r,max:i})]}),e.jsx(Bs,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",nt("General","embedpress")]}),className:"embedpress-google-docs-general",children:e.jsx(ec,{label:nt("Powered By","embedpress"),checked:a,onChange:m=>o({powered_by:m})})}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(ze,{})]})},{__:at}=wp.i18n,{useState:Vo,useEffect:Es,Fragment:oc}=wp.element,{BlockControls:tc,useBlockProps:sc}=wp.blockEditor,{ToolbarButton:lc,ExternalLink:wg}=wp.components;function nc(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:n}=t,[a,p]=Vo(!1),[d,f]=Vo(o.url||""),[r,i]=Vo(!0),[u,c]=Vo(!1),[m,v]=Vo(!1),y=sc();Es(()=>{!n&&m&&v(!1)},[n,m]);const C=()=>{v(!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,ee=I.exec(U),V=ee[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&&vt(l,d)},B=()=>{p(!0)};Es(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{iframeSrc:$,powered_by:x,unitoption:h,width:g,height:E,sharePosition:S,contentShare:P,adManager:T,adSource:L,adFileUrl:Z}=o;if($&&!k($))return"Invalid URL.";at("Google Docs URL");let O="";h=="%"?O="ep-percentage-width":O="ep-fixed-width";let W="",q="",H=S||"right";return P&&(W="ep-content-share-enabled",q="ep-share-position-"+H),!$||a?e.jsxs("div",{...y,children:[e.jsx(Fs,{attributes:o,setAttributes:s}),e.jsx(Ie,{label:at("Google Docs URL"),onSubmit:_,value:d,cannotEmbed:u,onChange:z=>f(z.target.value),icon:Yt,DocTitle:at("Learn More About Google Docs Embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})]}):e.jsxs(oc,{children:[e.jsx(Fs,{attributes:o,setAttributes:s}),e.jsx(tc,{children:e.jsx(lc,{className:"components-edit-button",icon:"edit",label:at("Edit URL","embedpress"),onClick:B})}),r?e.jsx(Le,{}):null,e.jsx("div",{...y,children:e.jsx("div",{className:"embedpress-document-embed ep-google-docs-"+o.id+" "+W+" "+q+" "+O,style:{width:g+h,maxWidth:"100%"},id:`ep-google-docs-${o.clientId||l}`,"data-source-id":"source-"+(o.clientId||l),children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${S}-wraper gutenberg-google-docs-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx(Qe,{src:de($),onMouseUp:C,onLoad:w,style:{height:E,width:"100%",display:r?"none":""},frameBorder:"0"}),P&&e.jsx(ho,{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&&L==="image"&&Z&&e.jsx(mo,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(Fe,{showEditButton:$&&!u,switchBackToURLInput:B})]})}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."}},{__:rt}=wp.i18n;Wo(bc,{icon:Yt,attributes:yc,keywords:[rt("embedpress","embedpress"),rt("google","embedpress"),rt("docs","embedpress"),rt("document","embedpress")],edit:nc,save:Kd});const{applyFilters:vg}=wp.hooks,{useBlockProps:xc}=wp.blockEditor,{Fragment:Cg}=wp.element,wc=({attributes:t})=>{const o=xc.save(),{iframeSrc:s,id:l,unitoption:n,width:a,height:p,powered_by:d,clientId:f,sharePosition:r,contentShare:i,adManager:u,adSource:c,adFileUrl:m,adXPosition:v,adYPosition:y}=t;if(!s)return null;let C="";n==="%"?C="ep-percentage-width":C="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+" "+C,style:{width:a+n,maxWidth:"100%"},id:`ep-google-drawings-${f}`,"data-source-id":"source-"+f,"data-embed-type":"Google Drawings",children:e.jsxs("div",{className:"ep-embed-content-wraper",children:[e.jsxs("div",{className:`position-${r}-wraper gutenberg-google-drawings-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx("img",{src:de(s),style:{height:p,width:"100%"},alt:"Google Drawing"}),i&&e.jsx(ho,{attributes:t})]}),d&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"})]}),u&&c==="image"&&m&&e.jsx(mo,{attributes:t,deleteIcon:!1,progressBar:!1,inEditor:!1})]})})})},{__:it}=wp.i18n,{InspectorControls:vc}=wp.blockEditor,{PanelBody:Ns,RangeControl:Ms,RadioControl:Cc,ToggleControl:jc}=wp.components,Ds=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n,powered_by:a,contentShare:p,adManager:d,lockContent:f}=t,r=1,i=1e3,u=n==="%"?100:1e3;return e.jsxs(vc,{children:[e.jsxs(Ns,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",it("Embed Size","embedpress")]}),className:"embedpress-google-drawings-control",children:[e.jsxs("div",{className:"ep-google-drawings-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(Cc,{selected:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:m=>o({unitoption:m}),className:"ep-unit-choice-option"}),e.jsx(Ms,{value:s,onChange:m=>o({width:m}),max:u,min:1})]}
324),e.jsx(Ms,{label:it("Height","embedpress"),value:l,onChange:m=>o({height:m}),min:r,max:i})]}),e.jsx(Ns,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",it("General","embedpress")]}),className:"embedpress-google-drawings-general",children:e.jsx(jc,{label:it("Powered By","embedpress"),checked:a,onChange:m=>o({powered_by:m})})}),e.jsx(Uo,{attributes:t,setAttributes:o}),e.jsx(Ro,{attributes:t,setAttributes:o}),e.jsx(Do,{attributes:t,setAttributes:o}),e.jsx(ze,{})]})},{__:dt}=wp.i18n,{useState:qo,useEffect:Us,Fragment:_c}=wp.element,{BlockControls:kc,useBlockProps:$c}=wp.blockEditor,{ToolbarButton:Pc,ExternalLink:jg}=wp.components;function Sc(t){const{attributes:o,setAttributes:s,clientId:l,isSelected:n}=t,[a,p]=qo(!1),[d,f]=qo(o.url||""),[r,i]=qo(!0),[u,c]=qo(!1),[m,v]=qo(!1),y=$c();Us(()=>{!n&&m&&v(!1)},[n,m]);const C=()=>{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),ee=I[1];ee&&ee==="drawings"?(p(!1),c(!1),s({iframeSrc:z,id:"embedpress-google-drawings-"+Date.now()}),embedpressGutenbergData.branding!==void 0&&embedpressGutenbergData.branding.powered_by!==void 0&&s({powered_by:embedpressGutenbergData.branding.powered_by})):(c(!0),p(!0))}else c(!0),p(!0);l&&d&&vt(l,d)},_=()=>{p(!0)};Us(()=>{(l==null||l==null)&&s({clientId:l})},[]);const{iframeSrc:B,powered_by:$,unitoption:x,width:h,height:g,sharePosition:E,contentShare:S,adManager:P,adSource:T,adFileUrl:L}=o;if(B&&!b(B))return"Invalid URL.";dt("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=E||"right";return S&&(O="ep-content-share-enabled",W="ep-share-position-"+q),!B||a?e.jsxs("div",{...y,children:[e.jsx(Ds,{attributes:o,setAttributes:s}),e.jsx(Ie,{label:dt("Google Drawings URL"),onSubmit:k,value:d,cannotEmbed:u,onChange:H=>f(H.target.value),icon:_l,DocTitle:dt("Learn More About Google Drawings Embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"})]}):e.jsxs(_c,{children:[e.jsx(Ds,{attributes:o,setAttributes:s}),e.jsx(kc,{children:e.jsx(Pc,{className:"components-edit-button",icon:"edit",label:dt("Edit URL","embedpress"),onClick:_})}),r?e.jsx(Le,{}):null,e.jsx("div",{...y,children:e.jsx("div",{className:"embedpress-document-embed ep-google-drawings-"+o.id+" "+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-${E}-wraper gutenberg-google-drawings-wraper`,children:[e.jsxs("div",{className:"main-content-wraper",children:[e.jsx("img",{src:de(B),onLoad:C,style:{height:g,width:"100%",display:r?"none":""},alt:"Google Drawing"}),S&&e.jsx(ho,{attributes:o})]}),$&&e.jsx("p",{className:"embedpress-el-powered",children:"Powered By EmbedPress"}),e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:()=>s({interactive:!0})})]}),P&&T==="image"&&L&&e.jsx(mo,{attributes:o,setAttributes:s,deleteIcon:!1,progressBar:!1,inEditor:!0})]})})}),e.jsx(Fe,{showEditButton:B&&!u,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.",Nc=2,Mc="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"},Rs={$schema:Lc,title:Bc,name:Tc,category:Fc,description:Ec,apiVersion:Nc,textdomain:Mc,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."}},{__:ct}=wp.i18n,{registerBlockType:Hc}=wp.blocks;let sn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-drawings-block"]&&(sn=!0);sn&&Hc(Rs.name,{...Rs,icon:_l,attributes:zc,keywords:[ct("embedpress","embedpress"),ct("google","embedpress"),ct("drawings","embedpress"),ct("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"})})},{__:Is}=wp.i18n,{InspectorControls:Oc}=wp.blockEditor,{PanelBody:Vc,RangeControl:zs,RadioControl:qc}=wp.components,Hs=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n}=t,a=1,p=1e3,d=n==="%"?100:1e3;return e.jsxs(Oc,{children:[e.jsxs(Vc,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Is("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:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(zs,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(zs,{label:Is("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:a,max:p})]}),e.jsx(ze,{})]})},{__:Gs}=wp.i18n,{useState:Wc,useEffect:Zc}=wp.element,{useBlockProps:Yc}=wp.blockEditor;function Xc({attributes:t,setAttributes:o,isSelected:s}){const l=Yc(),{url:n,iframeSrc:a,width:p,height:d,unitoption:f}=t,[r,i]=Wc({editingURL:!1,url:n||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:v,interactive:y}=r;Zc(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const C=()=>{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 g=b(c),E=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,S=E.exec(g),P=S[1];P&&P=="forms"?(i(T=>({...T,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})):i(T=>({...T,cannotEmbed:!0,editingURL:!0}))}else i(T=>({...T,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(a&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(a))return e.jsx("div",{...l,children:"Invalid URL."});const $=Gs("Google Forms URL");let x="";return f=="%"?x="ep-percentage-width":x="ep-fixed-width",!a||u?e.jsxs("div",{...l,children:[e.jsx(Hs,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:v,onChange:h=>i(g=>({...g,url:h.target.value})),icon:jl,DocTitle:Gs("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(Hs,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-forms-embed ${x}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(a),onMouseUp:C,onLoad:w,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:C}),e.jsx(Fe,{showEditButton:a&&!v,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"},Os={$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}},{__:pt}=wp.i18n,{registerBlockType:ip}=wp.blocks;let ln=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-forms-block"]&&(ln=!0);ln&&ip(Os.name,{...Os,icon:jl,attributes:rp,keywords:[pt("embedpress","embedpress"),pt("google","embedpress"),pt("forms","embedpress"),pt("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"})})},{__:Vs}=wp.i18n,{InspectorControls:cp}=wp.blockEditor,{PanelBody:pp,RangeControl:qs,RadioControl:up}=wp.components,Ws=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n}=t,a=1,p=1e3,d=n==="%"?100:1e3;return e.jsxs(cp,{children:[e.jsxs(pp,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Vs("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:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(qs,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(qs,{label:Vs("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:a,max:p})]}),e.jsx(ze,{})]})},{__:Zs}=wp.i18n,{useState:mp,useEffect:hp}=wp.element,{useBlockProps:gp}=wp.blockEditor;function fp({attributes:t,setAttributes:o,isSelected:s}){const l=gp(),{url:n,iframeSrc:a,width:p,height:d,unitoption:f}=t,[r,i]=mp({editingURL:!1,url:n||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:v,interactive:y}=r;hp(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const C=()=>{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 g=b(c);if(!c.match("~(maps/embed|output=embed)~i")){var E=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,S=E.exec(g);S&&S.length>1&&S[1]&&S[2]?g="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+S[1]+"&spn="+S[1]+"&t=m&z="+Math.round(parseInt(S[2]))+"&output=embed":i(P=>({...P,cannotEmbed:!0,editingURL:!0}))}i(P=>({...P,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})}else i(P=>({...P,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(a&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(a))return e.jsx("div",{...l,children:"Invalid URL."});const $=Zs("Google Maps URL");let x="";return f=="%"?x="ep-percentage-width":x="ep-fixed-width",!a||u?e.jsxs("div",{...l,children:[e.jsx(Ws,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:v,onChange:h=>i(g=>({...g,url:h.target.value})),icon:kl,DocTitle:Zs("Learn more about Google maps embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(Ws,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-maps-embed ${x}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(a),onMouseUp:C,onLoad:w,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:C}),e.jsx(Fe,{showEditButton:a&&!v,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"},Ys={$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}},{__:ut}=wp.i18n,{registerBlockType:Bp}=wp.blocks;let nn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-maps-block"]&&(nn=!0);nn&&Bp(Ys.name,{...Ys,icon:kl,attributes:Lp,keywords:[ut("embedpress","embedpress"),ut("google","embedpress"),ut("maps","embedpress"),ut("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"})})},{__:Xs}=wp.i18n,{InspectorControls:Fp}=wp.blockEditor,{PanelBody:Ep,RangeControl:Js,RadioControl:Np}=wp.components,Ks=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n}=t,a=1,p=1e3,d=n==="%"?100:1e3;return e.jsxs(Fp,{children:[e.jsxs(Ep,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",Xs("Embed Size","embedpress")]}),className:"embedpress-google-sheets-control",children:[e.jsxs("div",{className:"ep-google-sheets-width-control",children:[e.jsx(M,{classname:"ep-control-header",headerText:"WIDTH"}),e.jsx(Np,{selected:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(Js,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(Js,{label:Xs("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:a,max:p})]}),e.jsx(ze,{})]})},{__:Qs}=wp.i18n,{useState:Mp,useEffect:Dp}=wp.element,{useBlockProps:Up}=wp.blockEditor;function Rp({attributes:t,setAttributes:o,isSelected:s}){const l=Up(),{url:n,iframeSrc:a,width:p,height:d,unitoption:f}=t,[r,i]=Mp({editingURL:!1,url:n||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:v,interactive:y}=r;Dp(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const C=()=>{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 g=b(c),E=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,S=E.exec(g),P=S[1];if(P&&P=="spreadsheets"){if(g.indexOf("?")>-1){var T=g.split("?");if(T=T[1],T=T.split("&"),T.length>0){var L=!1,Z=!1;T.map(O=>{O.indexOf("widget=")?Z=!0:O.indexOf("headers=")&&(L=!0)}),Z||(g+="&widget=true"),L||(g+="&headers=false")}}else g+="?widget=true&headers=false";i(O=>({...O,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})}else i(O=>({...O,cannotEmbed:!0,editingURL:!0}))}else i(O=>({...O,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(a&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(a))return e.jsx("div",{...l,children:"Invalid URL."});const $=Qs("Google Sheets URL");let x="";return f=="%"?x="ep-percentage-width":x="ep-fixed-width",!a||u?e.jsxs("div",{...l,children:[e.jsx(Ks,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:v,onChange:h=>i(g=>({...g,url:h.target.value})),icon:Cl,DocTitle:Qs("Learn more about Google sheets embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(Ks,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-sheets-embed ${x}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(a),onMouseUp:C,onLoad:w,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:C}),e.jsx(Fe,{showEditButton:a&&!v,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"},As={$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}},{__:mt}=wp.i18n,{registerBlockType:Kp}=wp.blocks;let an=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-sheets-block"]&&(an=!0);an&&Kp(As.name,{...As,icon:Cl,attributes:Jp,keywords:[mt("embedpress","embedpress"),mt("google","embedpress"),mt("sheets","embedpress"),mt("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"})})},{__:el}=wp.i18n,{InspectorControls:Ap}=wp.blockEditor,{PanelBody:eu,RangeControl:ol,RadioControl:ou}=wp.components,tl=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n}=t,a=1,p=1e3,d=n==="%"?100:1e3;return e.jsxs(Ap,{children:[e.jsxs(eu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",el("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:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(ol,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(ol,{label:el("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:a,max:p})]}),e.jsx(ze,{})]})},{__:sl}=wp.i18n,{useState:tu,useEffect:su}=wp.element,{useBlockProps:lu}=wp.blockEditor;function nu({attributes:t,setAttributes:o,isSelected:s}){const l=lu(),{url:n,iframeSrc:a,width:p,height:d,unitoption:f}=t,[r,i]=tu({editingURL:!1,url:n||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:v,interactive:y}=r;su(()=>{!s&&y&&i(h=>({...h,interactive:!1}))},[s,y]);const C=()=>{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 g=b(c),E=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,S=E.exec(g),P=S[1];P&&P=="presentation"?(g.match(/pub\?/i)&&(g=g.replace("/pub?","/embed?")),i(T=>({...T,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g})):i(T=>({...T,cannotEmbed:!0,editingURL:!0}))}else i(T=>({...T,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(h=>({...h,editingURL:!0}))};if(a&&!(h=>{var g=/(?:https?:\/\/)?(?:[^./]+\.)?google\.(com?\.)?[a-z]+(?:\.[a-z]+)?/;return g.test(h)})(a))return e.jsx("div",{...l,children:"Invalid URL."});const $=sl("Google Slides URL");let x="";return f=="%"?x="ep-percentage-width":x="ep-fixed-width",!a||u?e.jsxs("div",{...l,children:[e.jsx(tl,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:$,onSubmit:k,value:c,cannotEmbed:v,onChange:h=>i(g=>({...g,url:h.target.value})),icon:vl,DocTitle:sl("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(tl,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-google-slides-embed ${x}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(a),onMouseUp:C,onLoad:w,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:C}),e.jsx(Fe,{showEditButton:a&&!v,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"},ll={$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}},{__:ht}=wp.i18n,{registerBlockType:yu}=wp.blocks;let rn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["google-slides-block"]&&(rn=!0);rn&&yu(ll.name,{...ll,icon:vl,attributes:bu,keywords:[ht("embedpress","embedpress"),ht("google","embedpress"),ht("slides","embedpress"),ht("presentation","embedpress")],edit:nu,save:Qp});const xu=t=>{const{iframeSrc:o,attrs:s}=t.attributes,l="ose-twitch-presentation",n=o+"&parent="+embedpressGutenbergData.twitch_host;return e.jsx("figure",{className:l,"data-embed-type":"Twitch",children:e.jsx("iframe",{src:n,...s,frameBorder:"0",width:"600",height:"450"})})},{__:nl}=wp.i18n,{InspectorControls:wu}=wp.blockEditor,{PanelBody:vu,RangeControl:al,RadioControl:Cu}=wp.components,rl=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n}=t,a=1,p=1e3,d=n==="%"?100:1e3;return e.jsxs(wu,{children:[e.jsxs(vu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",nl("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:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(al,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(al,{label:nl("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:a,max:p})]}),e.jsx(ze,{})]})},{__:il}=wp.i18n,{useState:ju,useEffect:_u}=wp.element,{useBlockProps:ku}=wp.blockEditor;function $u({attributes:t,setAttributes:o,isSelected:s}){const l=ku(),{url:n,iframeSrc:a,width:p,height:d,unitoption:f}=t,[r,i]=ju({editingURL:!1,url:n||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:u,url:c,fetching:m,cannotEmbed:v,interactive:y}=r;_u(()=>{!s&&y&&i(x=>({...x,interactive:!1}))},[s,y]);const C=()=>{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 g=b(c),E=h.exec(g),S=E[1],P="channel",T;switch(c.indexOf("clips.twitch.tv")>-1?P="clip":c.indexOf("/videos/")>-1?P="video":c.indexOf("#/chat$#")>-1&&(P="chat"),P){case"channel":g="https://player.twitch.tv/?channel="+S,T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":g="https://clips.twitch.tv/embed?clip="+S+"&autoplay=false",T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":S=E[2],g="https://player.twitch.tv/?video="+S,T={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":g="http://www.twitch.tv/embed/"+S+"/chat",T={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+S+"'"};break}i(L=>({...L,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:g,attrs:T})}else i(L=>({...L,cannotEmbed:!0,editingURL:!0}))},_=()=>{i(x=>({...x,editingURL:!0}))},B=il("Twitch URL");let $="";return f=="%"?$="ep-percentage-width":$="ep-fixed-width",!a||u?e.jsxs("div",{...l,children:[e.jsx(rl,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:B,onSubmit:k,value:c,cannotEmbed:v,onChange:x=>i(h=>({...h,url:x.target.value})),icon:$l,DocTitle:il("Learn more about Twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(rl,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-twitch-embed ${$}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(a),onMouseUp:C,onLoad:w,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:C}),e.jsx(Fe,{showEditButton:a&&!v,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",Nu="embedpress-blocks-editor",Mu="embedpress-blocks-editor-style",Du="embedpress-blocks-style",Uu={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},dl={$schema:Pu,title:Su,name:Lu,category:Bu,description:Tu,apiVersion:Fu,textdomain:Eu,editorScript:Nu,editorStyle:Mu,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}},{__:gt}=wp.i18n,{registerBlockType:Iu}=wp.blocks;let dn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["twitch-block"]&&(dn=!0);dn&&Iu(dl.name,{...dl,icon:$l,attributes:Ru,keywords:[gt("embedpress","embedpress"),gt("twitch","embedpress"),gt("stream","embedpress"),gt("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"})})},{__:cl}=wp.i18n,{InspectorControls:Hu}=wp.blockEditor,{PanelBody:Gu,RangeControl:pl,RadioControl:Ou}=wp.components,ul=({attributes:t,setAttributes:o})=>{const{width:s,height:l,unitoption:n}=t,a=1,p=1e3,d=n==="%"?100:1e3;return e.jsxs(Hu,{children:[e.jsxs(Gu,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",cl("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:n,options:[{label:"%",value:"%"},{label:"PX",value:"px"}],onChange:r=>o({unitoption:r}),className:"ep-unit-choice-option"}),e.jsx(pl,{value:s,onChange:r=>o({width:r}),max:d,min:1})]}
324),e.jsx(pl,{label:cl("Height","embedpress"),value:l,onChange:r=>o({height:r}),min:a,max:p})]}),e.jsx(ze,{})]})},{__:ml}=wp.i18n,{useState:Vu,useEffect:qu}=wp.element,{useBlockProps:Wu}=wp.blockEditor;function Zu({attributes:t,setAttributes:o,isSelected:s}){const l=Wu(),{url:n,iframeSrc:a,width:p,height:d,unitoption:f}=t,[r,i]=Vu({editingURL:!1,url:n||"",fetching:!1,cannotEmbed:!1,interactive:!1,mediaId:""}),{editingURL:u,url:c,fetching:m,cannotEmbed:v,interactive:y}=r;qu(()=>{!s&&y&&i(x=>({...x,interactive:!1}))},[s,y]);const C=()=>{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 g=h[1],E=`//fast.wistia.net/embed/iframe/${g}`;i(S=>({...S,editingURL:!1,cannotEmbed:!1,mediaId:g})),o({iframeSrc:E})}else i(g=>({...g,cannotEmbed:!0,editingURL:!0}))},k=()=>{i(x=>({...x,editingURL:!0}))};if(a&&!(x=>/^\/\/fast\.wistia\.net\/embed\/iframe\//.test(x))(a))return e.jsx("div",{...l,children:"Invalid URL."});const B=ml("Wistia URL");let $="";return f=="%"?$="ep-percentage-width":$="ep-fixed-width",!a||u?e.jsxs("div",{...l,children:[e.jsx(ul,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:B,onSubmit:b,value:c,cannotEmbed:v,onChange:x=>i(h=>({...h,url:x.target.value})),icon:Pl,DocTitle:ml("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(ul,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-wistia-embed ${$}`,style:{width:f==="%"?`${p}%`:`${p}px`,height:`${d}px`},children:[m?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(a),onMouseUp:C,onLoad:w,style:{display:m?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:f==="%"?"100%":p,height:d}),!y&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:C}),e.jsx(Fe,{showEditButton:a&&!v,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"},hl={$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}},{__:ft}=wp.i18n,{registerBlockType:am}=wp.blocks;let cn=!1;embedpressGutenbergData&&embedpressGutenbergData.activeBlocks&&embedpressGutenbergData.activeBlocks["wistia-block"]&&(cn=!0);cn&&am(hl.name,{...hl,icon:Pl,attributes:nm,keywords:[ft("embedpress","embedpress"),ft("wistia","embedpress"),ft("video","embedpress"),ft("embed","embedpress")],edit:Zu,save:zu});const{useBlockProps:rm}=wp.blockEditor,im=({attributes:t})=>{const o=rm.save(),{iframeSrc:s,width:l,height:n}=t;return s?e.jsx("div",{...o,children:e.jsx("div",{className:"embedpress-youtube-embed ep-fixed-width",style:{width:`${l}px`,height:`${n}px`},"data-embed-type":"YouTube",children:e.jsx("iframe",{src:de(s),style:{width:"100%",height:"100%"},frameBorder:"0",width:l,height:n,allowFullScreen:!0})})}):null},{__:gl}=wp.i18n,{InspectorControls:dm}=wp.blockEditor,{PanelBody:cm,RangeControl:fl}=wp.components,bl=({attributes:t,setAttributes:o})=>{const{width:s,height:l}=t,n=1,a=1500;return e.jsxs(dm,{children:[e.jsxs(cm,{title:e.jsxs("div",{className:"ep-pannel-icon",children:[G," ",gl("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(fl,{value:s,onChange:p=>o({width:p}),min:n,max:a})]}
324),e.jsx(fl,{label:gl("Height","embedpress"),value:l,onChange:p=>o({height:p}),min:n,max:a})]}),e.jsx(ze,{})]})},{__:yl}=wp.i18n,{useState:pm,useEffect:um}=wp.element,{useBlockProps:mm}=wp.blockEditor;function hm({attributes:t,setAttributes:o,isSelected:s}){const l=mm(),{url:n,iframeSrc:a,width:p,height:d}=t,[f,r]=pm({editingURL:!1,url:n||"",fetching:!1,cannotEmbed:!1,interactive:!1}),{editingURL:i,url:u,fetching:c,cannotEmbed:m,interactive:v}=f;um(()=>{!s&&v&&r($=>({...$,interactive:!1}))},[s,v]);const y=()=>{r($=>({...$,interactive:!0}))},C=()=>{r($=>({...$,fetching:!1}))},w=$=>{$&&$.preventDefault(),o({url:u});const x=u.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(u&&x){let g=x[1],E="https://www.youtube.com/embed/"+g,S=new URL(E);if(typeof embedpressProObj<"u")for(var h in embedpressProObj.youtubeParams)S.searchParams.set(h,embedpressProObj.youtubeParams[h]);r(P=>({...P,editingURL:!1,cannotEmbed:!1})),o({iframeSrc:S.href,mediaId:g})}else r(g=>({...g,cannotEmbed:!0,editingURL:!0}))},b=()=>{r($=>({...$,editingURL:!0}))};if(a&&!($=>{var x=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;return x.test($)})(a))return e.jsx("div",{...l,children:"Invalid URL."});const _=yl("YouTube URL");let B="ep-fixed-width";return!a||i?e.jsxs("div",{...l,children:[e.jsx(bl,{attributes:t,setAttributes:o}),e.jsx(Ie,{label:_,onSubmit:w,value:u,cannotEmbed:m,onChange:$=>r(x=>({...x,url:$.target.value})),icon:Sl,DocTitle:yl("Learn more about YouTube embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"})]}):e.jsxs("div",{...l,children:[e.jsx(bl,{attributes:t,setAttributes:o}),e.jsxs("div",{className:`embedpress-youtube-embed ${B}`,style:{width:`${p}px`,height:`${d}px`},children:[c?e.jsx(Le,{}):null,e.jsx(Qe,{src:de(a),onMouseUp:y,onLoad:C,style:{display:c?"none":"",width:"100%",height:"100%"},frameBorder:"0",width:p,height:d}),!v&&e.jsx("div",{className:"block-library-embed__interactive-overlay",onMouseUp:y}),e.jsx(Fe,{showEditButton:a&&!m,switchBackToURLInput:b})]})]})}const gm="https://schemas.wp.org/trunk/block.json",fm="YouTube",bm="embedpress/youtube-block",ym="embedpress",xm="Embed YouTube videos with advanced customization options including custom player controls, autoplay, and responsive sizing.",wm=2,vm="embedpress",Cm="embedpress-blocks-editor",jm="embedpress-blocks-editor-style",_m="embedpress-blocks-style",km={align:["left","center","right","wide","full"],html:!1,anchor:!0,lightBlockWrapper:!0,default:"center"},$m={$schema:gm,title:fm,name:bm,category:ym,description:xm,apiVersion:wm,textdomain:vm,editorScript:Cm,editorStyle:jm,style:_m,supports:km},Pm={url:{type:"string",default:""},iframeSrc:{type:"string",default:""},mediaId:{type:"string",default:""},unitoption:{type:"string",default:"%"},width:{type:"number",default:600},height:{type:"number",default:450},interactive:{type:"boolean",default:!1}},{__:bt}=wp.i18n;Wo($m,{icon:Sl,attributes:Pm,keywords:[bt("embedpress","embedpress"),bt("youtube","embedpress"),bt("video","embedpress"),bt("embed","embedpress")],edit:hm,save:im});const{addFilter:Co,applyFilters:Ye}=wp.hooks,{MediaUpload:Sm}=wp.blockEditor,{__:je}=wp.i18n,{ToggleControl:Lm,SelectControl:Bm,Button:Tm,ColorPalette:Fm,TextControl:Em,RangeControl:Nm}=wp.components,jo=embedpressGutenbergData.isProPluginActive,Eo=(t,o)=>e.jsxs("div",{children:[t,o&&e.jsx("span",{className:"isPro",children:"pro"})]});jo||(Co("embedpress.uploadPlaceholder","embedpress/uploadPlaceholder",(t,o=!0)=>(t.push(e.jsxs("div",{className:"pro-control ep-custom-logo-button",onClick:s=>{po(s,jo)},children:[e.jsx(Sm,{render:()=>e.jsx(Tm,{className:"ep-logo-upload-button",icon:"upload",children:je("Upload Image","embedpress")})}),Eo(null,o)]})),t)),Co("embedpress.togglePlaceholder","embedpress/togglePlaceholder",(t,o,s,l=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:n=>{po(n,jo)},children:[e.jsx(Lm,{label:je(o),checked:s}),Eo(null,l)]})),t)),Co("embedpress.selectPlaceholder","embedpress/selectPlaceholder",(t,o,s,l,n=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:a=>{po(a,jo)},children:[e.jsx(Bm,{label:je(o,"embedpress"),value:s,options:[{label:l,value:s}],className:"ep-select-control-field",__nextHasNoMarginBottom:!0}),Eo(null,n)]})),t)),Co("embedpress.colorPlatePlaceholder","embedpress/colorPlatePlaceholder",(t,o,s,l,n=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:a=>{po(a,jo)},children:[e.jsx(M,{headerText:o}),e.jsx(Fm,{label:je(o),colors:l,value:s}),Eo(null,n)]})),t)),Co("embedpress.textControlPlaceholder","embedpress/textControlPlaceholder",(t,o,s,l=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:n=>{po(n,jo)},children:[e.jsx(Em,{label:je(o,"embedpress"),value:s}),Eo(null,l)]})),t)),Co("embedpress.rangeControlPlaceholder","embedpress/rangeControlPlaceholder",(t,o,s,l=0,n=100,a=!0)=>(t.push(e.jsxs("div",{className:"pro-control",onClick:p=>{po(p,jo)},children:[e.jsx(Nm,{label:je(o,"embedpress"),value:s,min:l,max:n}),Eo(null,a)]})),t)),Co("embedpress.adsPlaceholder","embedpress/adsPlaceholder",t=>(t.push(e.jsxs("div",{className:"ad-manager-controllers opacity",children:[Ye("embedpress.selectPlaceholder",[],je("Ad Source"),"video","Upload Video",!1),e.jsxs("div",{className:"ad-upload",children:[e.jsx("label",{className:"custom-share-thumbnail-label",children:"Ad Label"}),Ye("embedpress.uploadPlaceholder",[],!1)]}),e.jsxs("div",{children:[Ye("embedpress.textControlPlaceholder",[],je("Ad Width"),"",!1),Ye("embedpress.textControlPlaceholder",[],je("Ad Height"),"",!1),Ye("embedpress.rangeControlPlaceholder",[],je("Ad X position(%)"),50,0,100,!1),Ye("embedpress.rangeControlPlaceholder",[],je("Ad Y position(%)"),50,0,100,!1)]}),Ye("embedpress.textControlPlaceholder",[],je("Ad URL"),"",!1),Ye("embedpress.textControlPlaceholder",[],je("Ad Start After (sec)"),"",!1),Ye("embedpress.togglePlaceholder",[],je("Ad Skip Button"),!1,!1),Ye("embedpress.textControlPlaceholder",[],je("Skip Button After (sec)"),"",!1)]})),t)));const{__:Mm}=wp.i18n;Mm("Embed a google document.");const{__:_g}=wp.i18n,{__:Dm}=wp.i18n;wp.blocks&&wp.blocks.registerBlockCollection&&wp.blocks.registerBlockCollection("embedpress",{title:Dm("EmbedPress","embedpress"),icon:G});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.