HEX
Server: LiteSpeed
System: Linux premium263.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: eastcjee (525)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/gutenkit-blocks-addon/build/blocks/image-box/index.js
(()=>{var e,o,i,t={790:e=>{"use strict";e.exports=window.ReactJSXRuntime},5573:e=>{"use strict";e.exports=window.wp.primitives},6087:e=>{"use strict";e.exports=window.wp.element},6427:e=>{"use strict";e.exports=window.wp.components},6942:(e,o)=>{var i;!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(e=a(e,r(i)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var i in e)t.call(e,i)&&e[i]&&(o=a(o,i));return o}function a(e,o){return o?e?e+" "+o:e+o:e}e.exports?(n.default=n,e.exports=n):void 0===(i=function(){return n}.apply(o,[]))||(e.exports=i)}()},7723:e=>{"use strict";e.exports=window.wp.i18n},8539:(e,o,i)=>{"use strict";const t=window.wp.blocks;var n=i(7723);const r=window.wp.blockEditor;var a=i(6087),g=i(6942),s=i.n(g),l=i(790);const c=({children:e,url:o})=>{const{linkGenerator:i}=window.GkitHelpers,t=i(o);return(0,l.jsx)("a",{...t,children:e})},d=(0,a.lazy)(()=>i.e(9242).then(i.bind(i,9242))),b=JSON.parse('{"UU":"gutenkit/image-box"}'),{imageBox:x}=window.gutenkit.editorIcon;(0,t.registerBlockType)(b.UU,{edit:function({attributes:e,setAttributes:o,advancedControl:i,isSelected:t}){const{GkitStyle:a,GkitIcon:g,GkitImage:b,GkitSuspense:x}=window.GkitComponents,{useDeviceType:k,linkGenerator:m,useBlockStyles:h,useDeviceList:u}=window.GkitHelpers,f=u(),{image:p,imageBoxStyle:v,borderHoverBackgroundDirection:y,enableLink:$,titleText:w,websiteLink:S,frontTitleIconsSwitch:j,frontTitleIconPosition:B,titleSize:T,descriptionText:C,enableBtn:N,btnText:H,btnUrl:I,iconsSwitch:L,iconAlign:G}=e,O=(0,r.useBlockProps)(),F=k(),R={className:s()("gkit-info-image-box","gkit-image-box",[v])},A={className:s()("gkit-box-header")},E={className:s()("gkit-box-body","gkit-image-box-body",{[`gkit-box-body--hover-${y}`]:"hover-border-bottom"==v})},P=h(e,o,"blocksCSS",((e,o)=>{const{parseCSS:i,backgroundGenerator:t,getBoxShadowValue:n,getBoxValue:r,getBorderValue:a,getSliderValue:g,getColor:s,getTypographyValue:l}=window.GkitHelpers,c=e.blockClass;return i([[{selector:`.${c} .gkit-info-image-box .gkit-box-content .gkit-info-box .gkit-icon`,fill:s(e?.imageFloatingBoxIconColor)},{selector:`.${c} .gkit-info-image-box.floating-style:hover .gkit-info-box .gkit-icon`,fill:s(e.headingColorHover)},{selector:`.${c} .gkit-info-image-box.floating-style .gkit-box-body, .${c} .gkit-info-image-box.floating-style .gkit-box-body::before, .${c} .gkit-info-image-box.floating-style .gkit-box-body::after`,background:t(e?.imageFloatingBoxBackground).background,"box-shadow":n(e.imageFloatingBoxShadow)},{selector:`.${c} .gkit-info-image-box.hover-border-bottom .gkit-box-body::before`,background:t(e?.borderHoverBackground).background},{selector:`.${c} .gkit-image-box.style-sideline .gkit-image-box-body-inner .gkit-box-body-content`,"border-left":`${e?.imageSideLineBorder?.width} ${e?.imageSideLineBorder?.style} ${e?.imageSideLineBorder?.color}`},{selector:`.${c} .gkit-image-box.style-sideline:hover .gkit-image-box-body-inner .gkit-box-body-content`,"border-left":`${e?.imageSideLineBorderHover?.width} ${e?.imageSideLineBorderHover?.style} ${e?.imageSideLineBorderHover?.color}`},{selector:`.${c} .gkit-info-image-box.shadow-line .gkit-box-body::before`,width:g(e.imageShadowLeftLineWidth),"box-shadow":n(e.imageShadowLeftLineShadow),background:t(e?.imageShadowLeftLineBackground).background},{selector:`.${c} .gkit-info-image-box.shadow-line .gkit-box-body::after`,width:g(e.imageShadowRightLineWidth),"box-shadow":n(e.imageShadowRightLineShadow),background:t(e?.imageShadowRightLineBackground).background},{selector:`.${c} .gkit-box-header`,"box-shadow":n(e?.imageBoxShadow),...a(e?.imageBorder)},{selector:`.${c} .gkit-info-image-box:hover  .gkit-box-header img`,transform:`scale(${g(e.imageScaleOnHover)})`},{selector:`.${c} .gkit-info-image-box .gkit-box-body`,...a(e?.containerBorderGroup),background:t(e?.containerBackground).background,"box-shadow":n(e.containershadowGroup)},{selector:`.${c} .gkit-info-image-box .gkit-box-header`,display:"flex"},{selector:`.${c} .gkit-info-image-box .gkit-info-box-title, .${c} .gkit-info-image-box .gkit-info-box-title a`,color:s(e.headingColor)},{selector:`.${c} .gkit-info-image-box:hover .gkit-info-box-title, .${c} .gkit-info-image-box:hover .gkit-info-box-title a`,color:s(e.headingColorHover)},{selector:`.${c} .gkit-info-image-box .gkit-box-style-content`,color:s(e.descriptionColor)},{selector:`.${c} .gkit-info-image-box:hover .gkit-box-style-content`,color:s(e.descriptionColorHover)},{selector:`.${c} .gkit-info-image-box .gkit-btn`,color:s(e.buttonTextColor),fill:s(e.buttonTextColor),background:t(e?.btnBackgroundGroup).background,...a(e?.buttonBorder),"box-shadow":n(e.buttonBoxShadow)},{selector:`.${c} .gkit-info-image-box .gkit-btn .icon-left`,"margin-right":g(e.btnIconSpacing)},{selector:`.${c} .gkit-info-image-box .gkit-btn .icon-right`,"margin-left":g(e.btnIconSpacing)},{selector:`.${c} .gkit-info-image-box .gkit-btn:hover`,color:s(e.btnHoverColor),fill:s(e.btnHoverColor),background:t(e?.btnBackgroundHoverGroup).background,...a(e?.buttonBorderHover),"box-shadow":n(e.buttonBoxShadowHover)}],o=>[{selector:`.${c} .gkit-info-image-box.floating-style .gkit-box-body`,height:g(e[`imageFloatingBoxHeight${o}`]),"margin-top":g(e[`imageFloatingBoxMarginTop${o}`]),width:g(e[`imageFloatingBoxWidth${o}`])},{selector:`.${c} .gkit-info-image-box.floating-style .gkit-box-body .gkit-info-box-title > .gkit-icon`,height:g(e[`imageFloatingBoxIconFontSize${o}`]),width:g(e[`imageFloatingBoxIconFontSize${o}`])},{selector:`.${c} .gkit-info-image-box.floating-style:hover .gkit-box-body`,height:g(e[`imageFloatingBoxHoverHeight${o}`])},{selector:`.${c} .gkit-info-image-box .gkit-box-content .gkit-info-box .gkit-icon`,"font-size":g(e[`imageFloatingBoxIconFontSize${o}`])},{selector:`.${c} .gkit-info-image-box.style-modern .gkit-box-body`,width:g(e[`imageClassicCurvesWidth${o}`]),"margin-top":g(e[`imageClassicCurvesMargin${o}`])},{selector:`.${c} .gkit-info-image-box.hover-border-bottom .gkit-box-body::before`,height:g(e[`borderHoverHeight${o}`])},{selector:`.${c} .gkit-box-header`,...r(e[`borderRadius${o}`],"border-radius")},{selector:`.${c} .gkit-box-header > img`,...r(e[`borderRadius${o}`],"border-radius"),...r(e[`padding${o}`],"padding"),width:`${g(e?.enableHeightWidth&&e[`gkitImageWidth${o}`])} !important`,height:`${g(e?.enableHeightWidth&&e[`gkitImageHeight${o}`])} !important`},{selector:`.${c} .gkit-info-image-box .gkit-box-body`,...r(e[`containerBorderRadius${o}`],"border-radius"),...r(e[`containerSpacing${o}`],"padding")},{selector:`.${c} .gkit-info-image-box`,"text-align":e[`contentTextAlign${o}`]},{selector:`.${c} .gkit-info-image-box .gkit-box-content .gkit-info-box`,"justify-content":e[`contentTextAlign${o}`]},{selector:`.${c} .gkit-info-image-box .gkit-box-header`,display:"flex","justify-content":e[`contentTextAlign${o}`]},{selector:`.${c} .gkit-info-image-box .gkit-info-box-title`,...r(e[`titleBottomSpace${o}`],"margin")},{selector:`.${c} .gkit-info-image-box .gkit-box-content :is(.gkit-info-box-title, .gkit-info-box-title a )`,...l(e.titleTypography,`${o}`)},{selector:`.${c} .gkit-info-image-box .gkit-box-style-content`,...r(e[`descriptionBottomSpace${o}`],"margin"),...l(e.descriptionTypography,`${o}`)},{selector:`.${c} .gkit-info-image-box .gkit-btn`,...r(e[`textPadding${o}`],"padding"),...l(e.buttonTypography,`${o}`),...r(e[`btnBorderRadius${o}`],"border-radius")},{selector:`.${c} .gkit-info-image-box .gkit-btn svg`,width:g(e[`btnIconFontSize${o}`]),height:g(e[`btnIconFontSize${o}`])},{selector:`.${c} .gkit-info-image-box .gkit-btn:hover`,...r(e[`btnHoverBorderRadius${o}`],"border-radius")}]],o)})(e,f));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a,{blocksCSS:P}),t&&(0,l.jsx)(x,{children:(0,l.jsx)(d,{attributes:e,setAttributes:o,device:F,advancedControl:i})}),(0,l.jsx)("div",{...O,children:(0,l.jsxs)("div",{...R,children:[!$&&e?.image?.url&&(0,l.jsx)("div",{...A,children:(0,l.jsx)(b,{image:p,isEdit:!0})}),$&&e?.image?.url&&(0,l.jsx)(c,{url:S,children:(0,l.jsx)("div",{...A,children:(0,l.jsx)(b,{image:p,isEdit:!0})})}),(0,l.jsx)("div",{...E,children:(0,l.jsxs)("div",{className:"gkit-box-content gkit-image-box-body-inner",children:[(0,l.jsxs)("div",{className:"gkit-box-body-content",children:[(0,l.jsxs)("div",{className:"gkit-info-box",children:[j&&"left"==B&&"floating-style"==v&&(0,l.jsx)(g,{icon:e?.frontTitleIcons,classes:"icon-left"}),(0,l.jsx)(r.RichText,{identifier:"imageBox-heading",tagName:T,value:w,placeholder:(0,n.__)("Enter your heading...","gutenkit-blocks-addon"),className:"gkit-info-box-title",onChange:e=>{o({titleText:e})}}),j&&"right"==B&&"floating-style"==v&&(0,l.jsx)(g,{icon:e?.frontTitleIcons,classes:"icon-right"})]}),(0,l.jsx)(r.RichText,{identifier:"imageBox-description",tagName:"div",value:C,placeholder:(0,n.__)("Enter Your Description...","gutenkit-blocks-addon"),className:"gkit-box-style-content",onChange:e=>{o({descriptionText:e})}})]}),N&&(0,l.jsx)("div",{className:"gkit-box-footer",children:(0,l.jsxs)("a",{className:"gkit-btn",...m(I),children:[L&&"left"==G&&(0,l.jsx)(g,{icon:e?.icons,className:"icon-left"}),(0,l.jsx)(r.RichText,{identifier:"imageBox-button",tagName:"span",value:H,placeholder:(0,n.__)("Enter Button Label...","gutenkit-blocks-addon"),onChange:e=>{o({btnText:e})}}),L&&"right"==G&&(0,l.jsx)(g,{icon:e?.icons,className:"icon-right"})]})})]})})]})})]})},icon:{src:x},save:function({attributes:e}){const{GkitIcon:o,GkitImage:i}=window.GkitComponents,{linkGenerator:t}=window.GkitHelpers,{contentTextAlign:n,image:a,imageBoxStyle:g,borderHoverBackgroundDirection:d,enableLink:b,websiteLink:x,titleText:k,frontTitleIconsSwitch:m,frontTitleIconPosition:h,titleSize:u,descriptionText:f,enableBtn:p,btnUrl:v,iconsSwitch:y,iconAlign:$,btnText:w}=e,S=r.useBlockProps.save(),j={className:s()("gkit-info-image-box","gkit-image-box",[g],{[d]:"hover-border-bottom"==g})},B={className:s()("gkit-box-header",[`image-box-img-${n}`])},T={className:s()("gkit-box-body","gkit-image-box-body",{[`gkit-box-body--hover-${d}`]:"hover-border-bottom"==g})},C=t(v);return(0,l.jsx)("div",{...S,children:(0,l.jsxs)("div",{...j,children:[!b&&(e?.image?.url||e?.image?.placeholderUrl)&&(0,l.jsx)("div",{...B,children:(0,l.jsx)(i,{image:a})}),b&&(e?.image?.url||e?.image?.placeholderUrl)&&(0,l.jsx)(c,{url:x,children:(0,l.jsx)("div",{...B,children:(0,l.jsx)(i,{image:a})})}),(0,l.jsx)("div",{...T,children:(0,l.jsxs)("div",{className:"gkit-box-content gkit-image-box-body-inner",children:[(0,l.jsxs)("div",{className:"gkit-box-body-content",children:[k&&(0,l.jsxs)("div",{className:"gkit-info-box",children:[m&&"left"==h&&"floating-style"==g&&(0,l.jsx)(o,{icon:e?.frontTitleIcons,classes:"icon-left"}),(0,l.jsx)(r.RichText.Content,{identifier:"imageBox-heading",tagName:u,value:k,className:"gkit-info-box-title"}),m&&"right"==h&&"floating-style"==g&&(0,l.jsx)(o,{icon:e?.frontTitleIcons,classes:"icon-right"})]}),f&&(0,l.jsx)(r.RichText.Content,{identifier:"imageBox-description",tagName:"div",value:f,className:"gkit-box-style-content"})]}),p&&(0,l.jsx)("div",{className:"gkit-box-footer",children:(0,l.jsxs)("a",{className:"gkit-btn",...C,children:[y&&"left"==$&&(0,l.jsx)(o,{icon:e?.icons,className:"icon-left"}),w,y&&"right"==$&&(0,l.jsx)(o,{icon:e?.icons,className:"icon-right"})]})})]})})]})})}})}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=(o,i,t,n)=>{if(!i){var a=1/0;for(c=0;c<e.length;c++){for(var[i,t,n]=e[c],g=!0,s=0;s<i.length;s++)(!1&n||a>=n)&&Object.keys(r.O).every(e=>r.O[e](i[s]))?i.splice(s--,1):(g=!1,n<a&&(a=n));if(g){e.splice(c--,1);var l=t();void 0!==l&&(o=l)}}return o}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[i,t,n]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var i in o)r.o(o,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,i)=>(r.f[i](e,o),o),[])),r.u=e=>e+".js?ver=9b7129d8c5555e3881f8",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),o={},i="gutenkit-blocks-addon:",r.l=(e,t,n,a)=>{if(o[e])o[e].push(t);else{var g,s;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){g=d;break}}g||(s=!0,(g=document.createElement("script")).charset="utf-8",r.nc&&g.setAttribute("nonce",r.nc),g.setAttribute("data-webpack",i+n),g.src=e),o[e]=[t];var b=(i,t)=>{g.onerror=g.onload=null,clearTimeout(x);var n=o[e];if(delete o[e],g.parentNode&&g.parentNode.removeChild(g),n&&n.forEach(e=>e(t)),i)return i(t)},x=setTimeout(b.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=b.bind(null,g.onerror),g.onload=b.bind(null,g.onload),s&&document.head.appendChild(g)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var o=globalThis.document;if(!e&&o&&(o.currentScript&&"SCRIPT"===o.currentScript.tagName.toUpperCase()&&(e=o.currentScript.src),!e)){var i=o.getElementsByTagName("script");if(i.length)for(var t=i.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=i[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../../"})(),(()=>{var e={8974:0,5090:0};r.f.j=(o,i)=>{var t=r.o(e,o)?e[o]:void 0;if(0!==t)if(t)i.push(t[2]);else if(5090!=o){var n=new Promise((i,n)=>t=e[o]=[i,n]);i.push(t[2]=n);var a=r.p+r.u(o),g=new Error;r.l(a,i=>{if(r.o(e,o)&&(0!==(t=e[o])&&(e[o]=void 0),t)){var n=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;g.message="Loading chunk "+o+" failed.\n("+n+": "+a+")",g.name="ChunkLoadError",g.type=n,g.request=a,t[1](g)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var o=(o,i)=>{var t,n,[a,g,s]=i,l=0;if(a.some(o=>0!==e[o])){for(t in g)r.o(g,t)&&(r.m[t]=g[t]);if(s)var c=s(r)}for(o&&o(i);l<a.length;l++)n=a[l],r.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return r.O(c)},i=globalThis.webpackChunkgutenkit_blocks_addon=globalThis.webpackChunkgutenkit_blocks_addon||[];i.forEach(o.bind(null,0)),i.push=o.bind(null,i.push.bind(i))})();var a=r.O(void 0,[5090],()=>r(8539));a=r.O(a)})();