HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/slfopp7cb1df/www/sitepacket.com/wp-content/plugins/superb-blocks/blocks/cover-image/index.js
(()=>{var e,r={77:e=>{e.exports=function(e){var r={};function t(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(a,o,function(r){return e[r]}.bind(null,o));return a},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";t.r(r),t.d(r,"validateHTMLColorName",(function(){return l})),t.d(r,"validateHTMLColorSpecialName",(function(){return i})),t.d(r,"validateHTMLColorHex",(function(){return s})),t.d(r,"validateHTMLColorRgb",(function(){return m})),t.d(r,"validateHTMLColorHsl",(function(){return h})),t.d(r,"validateHTMLColorHwb",(function(){return f})),t.d(r,"validateHTMLColorLab",(function(){return v})),t.d(r,"validateHTMLColorLch",(function(){return k})),t.d(r,"validateHTMLColor",(function(){return w}));const a=e=>e&&"string"==typeof e,o=["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenrod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","Goldenrod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenrodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquamarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenrod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],n=["currentColor","inherit","transparent"],l=e=>{let r=!1;return a(e)&&o.map((t=>(e.toLowerCase()===t.toLowerCase()&&(r=!0),null))),r},i=e=>{let r=!1;return a(e)&&n.map((t=>(e.toLowerCase()===t.toLowerCase()&&(r=!0),null))),r},s=e=>!!a(e)&&(e&&/^#([\da-f]{3}){1,2}$|^#([\da-f]{4}){1,2}$/i.test(e)),u="(([\\d]{0,5})((\\.([\\d]{1,5}))?))",c=`(${u}%)`,d="(([0-9]|[1-9][0-9]|100)%)",p=`(${d}|(0?((\\.([\\d]{1,5}))?))|1)`,b=`([\\s]{0,5})\\)?)(([\\s]{0,5})(\\/?)([\\s]{1,5})(((${d}))|(0?((\\.([\\d]{1,5}))?))|1))?([\\s]{0,5})\\)`,g="(-?(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9])((\\.([\\d]{1,5}))?)|360)(deg)?)",m=e=>{if(a(e)){const r="([\\s]{0,5})([\\d]{1,5})%?([\\s]{0,5}),?",t="((([\\s]{0,5}),?([\\s]{0,5}))|(([\\s]{1,5})))",a=new RegExp(`^(rgb)a?\\(${r}${t}${r}${t}${r}${t}((\\/?([\\s]{0,5})(0?\\.?([\\d]{1,5})%?([\\s]{0,5}))?|1|0))?\\)$`);return e&&a.test(e)}return!1},h=e=>{if(a(e)){const r=new RegExp(`^(hsl)a?\\((([\\s]{0,5})(${g}|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-9][0-9]|400)grad)|((([0-5])?\\.([\\d]{1,5})|6\\.([0-9]|1[0-9]|2[0-8])|[0-6])rad)|((0?((\\.([\\d]{1,5}))?)|1)turn))((([\\s]{0,5}),([\\s]{0,5}))|(([\\s]{1,5}))))(([\\s]{0,5})(0|${d})((([\\s]{0,5}),([\\s]{0,5}))|(([\\s]{1,5}))))(([\\s]{0,5})(0|${d})([\\s]{0,5})\\)?)(([\\s]{0,5})(\\/?|,?)([\\s]{0,5})(((${d}))|(0?((\\.([\\d]{1,5}))?))|1))?\\)$`);return e&&r.test(e)}return!1},f=e=>{if(a(e)){const r=new RegExp(`^(hwb\\(([\\s]{0,5})${g}([\\s]{1,5}))((0|${d})([\\s]{1,5}))((0|${d})${b}$`);return e&&r.test(e)}return!1},v=e=>{if(a(e)){const r="(-?(([0-9]|[1-9][0-9]|1[0-5][0-9])((\\.([\\d]{1,5}))?)?|160))",t=new RegExp(`^(lab\\(([\\s]{0,5})${c}([\\s]{1,5})${r}([\\s]{1,5})${r}${b}$`);return e&&t.test(e)}return!1},k=e=>{if(a(e)){const r=new RegExp(`^lch\\((([\\s]{0,5})((([0-9]|[1-9][0-9])?((\\.([\\d]{1,5}))?)|100)(%)?)([\\s]{1,5})${""+u}([\\s]{1,5})((${g})|(0|${p})|(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-9][0-9]|3[0-5][0-9])((\\.([\\d]{1,5}))?)|360))([\\s]{0,5})((\\/([\\s]{0,5})${p}))?)\\)$`);return e&&r.test(e)}return!1},w=e=>!!(e&&s(e)||m(e)||h(e)||f(e)||v(e)||k(e));r.default=e=>!!(e&&s(e)||l(e)||i(e)||m(e)||h(e)||f(e)||v(e)||k(e))}])},244:(e,r,t)=>{"use strict";const a=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.element,i=window.React;var s,u;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(null,arguments)}var d=function(e){return i.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 256 256"},e),s||(s=i.createElement("path",{fill:"#6448e7",d:"M208 40H48a8 8 0 0 0-8 8v160a8 8 0 0 0 8 8h8.69l109.65-109.66a8 8 0 0 1 11.32 0L216 144.69V48a8 8 0 0 0-8-8M96 112a16 16 0 1 1 16-16 16 16 0 0 1-16 16",opacity:.2})),u||(u=i.createElement("path",{fill:"#6448e7",d:"M208 32H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16M48 48h160v77.38l-24.69-24.7a16 16 0 0 0-22.62 0L53.37 208H48Zm160 160H76l96-96 36 36zM96 120a24 24 0 1 0-24-24 24 24 0 0 0 24 24m0-32a8 8 0 1 1-8 8 8 8 0 0 1 8-8"})))};const p=window.wp.components,b=window.wp.escapeHtml,g=window.ReactJSXRuntime,m=e=>{const{attributes:r,setAttributes:t}=e,a=e.focalPointState||r.focalPoint;return(0,g.jsx)(l.Fragment,{children:(0,g.jsx)("div",{className:"superbaddons-coverimage-block",style:{borderRadius:(0,b.escapeAttribute)(r.borderRadius/2+"%"),minHeight:(0,b.escapeAttribute)(r.minimumHeight),backgroundImage:`url(${(0,b.escapeAttribute)(r.imageSource?r.imageSource:"")})`,backgroundPosition:`${100*a.x}% ${100*a.y}%`,backgroundSize:(0,b.escapeAttribute)(r.size),backgroundRepeat:(0,b.escapeAttribute)(r.repeat)}})})};var h=t(750);t(77);const f=(e,r=!1,t=!1)=>(e=isNaN(e)?0:parseInt(e),r&&e<r&&(e=r),t&&e>t&&(e=t),e),v=e=>e?(0,h.J)(e):"",k=JSON.parse('{"UU":"superb-addons/cover-image"}'),w={example:{attributes:{imageSource:t.p+"images/previewImage.bc5344b0.jpg",size:"contain"}}};(0,a.registerBlockType)(k.UU,{attributes:{imageSource:{type:"string"},focalPoint:{type:"object",default:{x:.5,y:.5}},size:{type:"string",default:"cover"},repeat:{type:"string",default:"no-repeat"},borderRadius:{type:"number",default:0},minimumHeight:{type:"string",default:"400px"}},...w,icon:{src:d},edit:function(e){const{attributes:r,setAttributes:t}=e,[a,i]=(0,l.useState)({x:.5,y:.5}),s=[{label:(0,o.__)("No Repeat","superb-blocks"),value:"no-repeat"},{label:(0,o.__)("Repeat","superb-blocks"),value:"repeat"},{label:(0,o.__)("Repeat X","superb-blocks"),value:"repeat-x"},{label:(0,o.__)("Repeat Y","superb-blocks"),value:"repeat-y"},{label:(0,o.__)("Space","superb-blocks"),value:"space"},{label:(0,o.__)("Round","superb-blocks"),value:"round"}],u=[{label:(0,o.__)("Cover","superb-blocks"),value:"cover"},{label:(0,o.__)("Contain","superb-blocks"),value:"contain"}],c=(e,r)=>{let a=v(r);t({[e]:a})};return(0,g.jsxs)(l.Fragment,{children:[(0,g.jsx)(n.BlockControls,{children:(0,g.jsx)(n.MediaReplaceFlow,{name:r.imageSource?(0,o.__)("Replace Image","superb-blocks"):(0,o.__)("Add Image","superb-blocks"),mediaURL:r.imageSource,allowedTypes:["image"],accept:"image/*",onSelect:e=>c("imageSource",e.url),onSelectURL:e=>c("imageSource",e)})}),(0,g.jsxs)(n.InspectorControls,{children:[(0,g.jsxs)(p.PanelBody,{title:(0,o.__)("Image Properties"),children:[(0,g.jsx)(p.FocalPointPicker,{label:(0,o.__)("Background Position"),url:r.imageSource,value:r.focalPoint,onDragStart:i,onDrag:i,onChange:()=>{t({focalPoint:a})}}),(0,g.jsx)(p.SelectControl,{label:(0,o.__)("Background Size"),value:r.size,options:u,onChange:e=>(e=>{u.some((r=>r.value===e))&&t({size:e})})(e),__nextHasNoMarginBottom:!0}),(0,g.jsx)("p",{className:"superb-addons-small-text-control-description block-editor-hooks__layout-constrained-helptext",children:(0,o.__)("Select the background size. Cover will fill the entire block, contain will fit the image inside the block.","superb-blocks")}),(0,g.jsx)(p.SelectControl,{label:(0,o.__)("Background Repeat"),value:r.repeat,options:s,onChange:e=>(e=>{s.some((r=>r.value===e))&&t({repeat:e})})(e),__nextHasNoMarginBottom:!0}),(0,g.jsx)("p",{className:"superb-addons-small-text-control-description block-editor-hooks__layout-constrained-helptext",children:(0,o.__)("Select the background repeat. No repeat will only show the image once, repeat will repeat the image in both directions, repeat x will repeat the image horizontally, repeat y will repeat the image vertically, space will repeat the image in both directions and space them out evenly, round will repeat the image in both directions and space them out to fill the block.","superb-blocks")})]}),(0,g.jsxs)(p.PanelBody,{title:(0,o.__)("Container Properties"),children:[(0,g.jsx)(p.RangeControl,{label:(0,o.__)("Border Radius","superb-blocks"),value:r.borderRadius,onChange:e=>((e,r,a=1,o=100)=>{let n=f(r,a,o);t({[e]:n})})("borderRadius",e),min:0,max:100}),(0,g.jsx)("p",{className:"superb-addons-small-text-control-description block-editor-hooks__layout-constrained-helptext",children:(0,o.__)("Select the border radius. 0 will be square, 100 will be a circle.","superb-blocks")}),(0,g.jsx)(p.__experimentalUnitControl,{label:(0,o.__)("Minimum Height"),value:r.minimumHeight,onChange:e=>t({minimumHeight:e}),units:[{value:"px",label:"px",default:0},{value:"%",label:"%",default:100},{value:"em",label:"em",default:0}]}),(0,g.jsx)("p",{className:"superb-addons-small-text-control-description block-editor-hooks__layout-constrained-helptext",children:(0,o.__)("The minimum height of the cover image block.","superb-blocks")})]})]}),(0,g.jsxs)("div",{...(0,n.useBlockProps)(),children:[r.imageSource&&(0,g.jsx)(m,{...e,focalPointState:a}),!r.imageSource&&(0,g.jsx)(n.MediaPlaceholder,{labels:{title:(0,o.__)("Superb Cover Image","superb-blocks"),instructions:(0,o.__)("Drag and drop an image onto this block, upload, or select existing one from your media library.","superb-blocks")},accept:"image/*",allowedTypes:["image"],multiple:!1,icon:d,handleUpload:!0,onSelect:e=>c("imageSource",e.url)})]})]})},save:function(e){return(0,g.jsx)("div",{...n.useBlockProps.save(),children:(0,g.jsx)(m,{...e})})}})},750:(e,r)=>{"use strict";r.J=void 0;var t=/^([^\w]*)(javascript|data|vbscript)/im,a=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,n=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,l=/^.+(:|&colon;)/gim,i=[".","/"];r.J=function(e){var r,s=(r=e||"",r.replace(a,(function(e,r){return String.fromCharCode(r)}))).replace(o,"").replace(n,"").trim();if(!s)return"about:blank";if(function(e){return i.indexOf(e[0])>-1}(s))return s;var u=s.match(l);if(!u)return s;var c=u[0];return t.test(c)?"about:blank":s}}},t={};function a(e){var o=t[e];if(void 0!==o)return o.exports;var n=t[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.m=r,e=[],a.O=(r,t,o,n)=>{if(!t){var l=1/0;for(c=0;c<e.length;c++){for(var[t,o,n]=e[c],i=!0,s=0;s<t.length;s++)(!1&n||l>=n)&&Object.keys(a.O).every((e=>a.O[e](t[s])))?t.splice(s--,1):(i=!1,n<l&&(l=n));if(i){e.splice(c--,1);var u=o();void 0!==u&&(r=u)}}return r}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[t,o,n]},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var r=a.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e+"../"})(),(()=>{var e={821:0,401:0};a.O.j=r=>0===e[r];var r=(r,t)=>{var o,n,[l,i,s]=t,u=0;if(l.some((r=>0!==e[r]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(s)var c=s(a)}for(r&&r(t);u<l.length;u++)n=l[u],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(c)},t=globalThis.webpackChunksuperb_elementor_and_gutenberg_addons=globalThis.webpackChunksuperb_elementor_and_gutenberg_addons||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var o=a.O(void 0,[401],(()=>a(244)));o=a.O(o)})();