HEX
Server: Apache
System: Linux ecngx285.inmotionhosting.com 4.18.0-553.79.1.lve.el8.x86_64 #1 SMP Wed Oct 15 17:59:35 UTC 2025 x86_64
User: zeusxp5 (3862)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: /home/zeusxp5/chuair.org/wp-content/plugins/wd-framework/build/text-with-icon.js
!function(){"use strict";var e,t={6713:function(){var e=window.wp.element,t=window.wp.blocks,l=window.wp.components,n=window.wp.i18n;function i(t){let{level:n,isPressed:i=!1}=t;const a={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 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.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return a.hasOwnProperty(n)?(0,e.createElement)(l.SVG,{width:"24",height:"24",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:i},(0,e.createElement)(l.Path,{d:a[n]})):null}const a=[1,2,3,4,5,6],o={className:"block-library-heading-level-dropdown"};function r(t){let{selectedLevel:r,onChange:c}=t;return(0,e.createElement)(l.ToolbarDropdownMenu,{popoverProps:o,icon:(0,e.createElement)(i,{level:r}),label:(0,n.__)("Change heading level"),controls:a.map((t=>{{const l=t===r;return{icon:(0,e.createElement)(i,{level:t,isPressed:l}),label:(0,n.sprintf)(
// translators: %s: heading level e.g: "1", "2", "3"
(0,n.__)("Heading %d"),t),isActive:l,onClick(){c(t)}}}}))})}const{useBlockProps:c,InspectorControls:s,AlignmentControl:m,BlockVerticalAlignmentToolbar:d,BlockControls:_,MediaUpload:p,MediaUploadCheck:u,RichText:v}=wp.blockEditor,{PanelBody:w,SelectControl:h,RangeControl:g,ToggleControl:b,Button:f}=wp.components,{useBlockProps:x,PlainText:k}=wp.blockEditor;var y=JSON.parse('{"apiVersion":2,"name":"webdevia/text-with-icon","version":"0.1.0","title":"Text with icon","category":"webdevia","icon":"smily","description":"The text with icon block is a flexible tool for displaying text and icons in a visually appealing way. With customizable position and size parameters, you can easily create a layout that suits your needs.","attributes":{"mediaId":{"type":"number","default":0},"mediaUrl":{"type":"string","default":"../wp-content/plugins/wd-framework/includes/block-editor/blocks/text-with-icon/placeholder-icon.svg"},"title":{"type":"string"},"titleIcon":{"type":"boolean","default":false},"text":{"type":"string"},"position":{"type":"string","default":"top"},"size":{"type":"number","default":150},"textAlign":{"type":"string","default":"left"},"verticalAlignment":{"type":"string","default":"top"},"level":{"type":"number","default":2}},"supports":{"anchor":true,"html":false,"className":true,"color":{"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true,"fontAppearance":true,"textTransform":true}},"__unstablePasteTextInline":true,"__experimentalSlashInserter":true},"example":{"attributes":{"preview":true,"blockOnly":true,"template":"purple-bliss","textAlign":"center","verticalAlignment":"center","title":"Title","text":"Demo text for preview.","enable_contextual_menu":true,"enable_copy_text":true,"enable_copy_tweet":true,"enable_copy_link":true,"enable_tweet_this":true,"maximum_width":800,"maximum_width_unit":"px"}},"keywords":["wd","webdevia","icon","text"],"textdomain":"webdevia-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');window.React;const{name:E,...H}=y,{withSelect:C}=wp.data;(0,t.registerBlockType)(E,{...H,icon:()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"103",height:"138.5",viewBox:"0 0 103 138.5",class:"wd-blocks-icon"},(0,e.createElement)("g",{transform:"translate(-252 -523)"},(0,e.createElement)("path",{d:"M51.5,13.676,38,36.341,12.478,42.688,29.527,63.316,27.515,90.053,51.5,79.841,75.485,90.053,73.473,63.316,90.522,42.688,65,36.341,51.5,13.676M51.5,0,69.525,30.252,103,38.579,80.665,65.6,83.329,101,51.5,87.449,19.671,101l2.664-35.4L0,38.579l33.475-8.327Z",transform:"translate(252 523)"}),(0,e.createElement)("path",{d:"M93,3H0A3,3,0,0,1-3,0,3,3,0,0,1,0-3H93a3,3,0,0,1,3,3A3,3,0,0,1,93,3Z",transform:"translate(256.5 643.5)"}),(0,e.createElement)("path",{d:"M81,3H0A3,3,0,0,1-3,0,3,3,0,0,1,0-3H81a3,3,0,0,1,3,3A3,3,0,0,1,81,3Z",transform:"translate(262.5 658.5)"}))),edit:C(((e,t)=>({media:t.attributes.mediaId?e("core").getMedia(t.attributes.mediaId):void 0})))((function(t){let{media:l,attributes:i,setAttributes:a}=t;const{rel:o,mediaId:x,mediaUrl:k,title:y,titleIcon:E,text:H,position:C,size:I,level:N,textAlign:$,verticalAlignment:z}=i,A="wp-block-webdevia-text-with-icon",T=c({className:`wp-block-webdevia-text-with-icon__position-${C}`,style:{textAlign:$,alignItems:"top"==z?"flex-start":"bottom"==z?"flex-end":z}}),M=e=>{a({mediaId:e.id,mediaUrl:e.url})};return[(0,e.createElement)(s,null,(0,e.createElement)(w,{title:(0,n.__)("Settings","wd-framework"),initialOpen:!0},(0,e.createElement)("fieldset",{className:"wp-block-webdevia-text-with-icon__inspector-controls__icon"},(0,e.createElement)("legend",null,(0,n.__)("ICON","wd-framework")),(0,e.createElement)(u,null,(0,e.createElement)(p,{onSelect:M,value:x,allowedTypes:["image"],render:t=>{let{open:l}=t;return(0,e.createElement)(f,{className:0==x?"wp-block-webdevia-text-with-icon__inspector-controls__icon__toggle":"wp-block-webdevia-text-with-icon__inspector-controls__icon__preview",onClick:l},0==x&&(0,n.__)("Choose an icon","wd-framework"))}})),0!=x&&(0,e.createElement)(u,null,(0,e.createElement)(p,{title:(0,n.__)("Replace icon","awp"),value:x,onSelect:M,allowedTypes:["image"],render:t=>{let{open:l}=t;return(0,e.createElement)(f,{onClick:l,variant:"secondary",isLarge:!0},(0,n.__)("Replace icon","wd-framework"))}})),0!=x&&(0,e.createElement)(u,null,(0,e.createElement)(f,{onClick:()=>{a({mediaId:0,mediaUrl:`${devia.plugin_uri}includes/block-editor/blocks/text-with-icon/placeholder-icon.svg`})},isLink:!0,isDestructive:!0},(0,n.__)("Remove image","wd-framework")))),(0,e.createElement)(h,{label:"Icon position",className:"wp-block-webdevia-text-with-icon__inspector-controls__icon__position",value:C,options:[{label:"Top",value:"top"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"}],onChange:e=>a({position:e})}),(0,e.createElement)(g,{label:(0,n.__)("Icon size","wd-framework"),value:I,onChange:e=>a({size:e}),min:10,max:1e3}),(0,e.createElement)(b,{label:(0,n.__)("Icon relative to title","wd-framework"),className:"wd-categories-list-block__panel-body__hide-empty",help:E?"Make icon position relative to title":"Icon position relative to content",checked:E,onChange:e=>{a({titleIcon:e})}}))),(0,e.createElement)(_,{group:"block"},(0,e.createElement)(r,{selectedLevel:N,onChange:e=>a({level:e})}),(0,e.createElement)(m,{value:$,onChange:e=>{a({textAlign:e})}}),(0,e.createElement)(d,{onChange:e=>a({verticalAlignment:e}),value:z})),(0,e.createElement)("div",T,!E&&(0,e.createElement)("div",{className:"wp-block-webdevia-text-with-icon__icon",style:{width:`${I}px`}},(0,e.createElement)("img",{src:void 0!==l?l.source_url:k,alt:y})),(0,e.createElement)("div",{className:"wp-block-webdevia-text-with-icon__info"},(0,e.createElement)("div",{className:`${A}__info__title ${A}__info__title__position-${C}`,style:{display:E?"flex":"block"}},E&&(0,e.createElement)("div",{className:`${A}__info__title__icon`,style:{width:`${I}px`}},(0,e.createElement)("img",{src:k,alt:y})),(0,e.createElement)(v,{className:"wp-block-webdevia-text-with-icon__info__title__text",tagName:`h${N}`,rel:o,placeholder:(0,n.__)("Title","wd-framework"),value:y,onChange:e=>{a({title:e})}})),(0,e.createElement)(v,{className:"wp-block-webdevia-text-with-icon__info__text",tagName:"p",rel:o,placeholder:(0,n.__)("Paragraph text","wd-framework"),value:H,style:{marginInlineStart:E&&"left"==C?`${I+18}px`:"0"},onChange:e=>{a({text:e})}})))]})),save:function(t){let{attributes:l}=t;const{mediaUrl:n,level:i,title:a,titleIcon:o,position:r,size:c,text:s,textAlign:m,verticalAlignment:d}=l,_=`h${i}`,p="wp-block-webdevia-text-with-icon",u=x.save({className:`${p}__position-${r}`,style:{textAlign:m,alignItems:"top"==d?"flex-start":"bottom"==d?"flex-end":d}});return(0,e.createElement)("div",u,!o&&(0,e.createElement)("div",{className:`${p}__icon`,style:{width:`${c}px`}},(0,e.createElement)("img",{src:n,alt:a,width:c,height:c})),a||s?(0,e.createElement)("div",{className:`${p}__info`},a&&(0,e.createElement)("div",{className:`${p}__info__title ${p}__info__title__position-${r}`,style:{display:o?"flex":"block"}},o&&(0,e.createElement)("div",{className:`${p}__info__title__icon`,style:{width:`${c}px`}},(0,e.createElement)("img",{src:n,alt:a,width:c,height:c})),(0,e.createElement)(_,{className:`${p}__info__title__text`,dangerouslySetInnerHTML:{__html:a}})),s&&(0,e.createElement)("p",{className:`${p}__info__text`,style:{marginInlineStart:o&&"left"==r?`${c+18}px`:"0"},dangerouslySetInnerHTML:{__html:s}})):(0,e.createElement)(e.Fragment,null))}})}},l={};function n(e){var i=l[e];if(void 0!==i)return i.exports;var a=l[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=function(t,l,i,a){if(!l){var o=1/0;for(m=0;m<e.length;m++){l=e[m][0],i=e[m][1],a=e[m][2];for(var r=!0,c=0;c<l.length;c++)(!1&a||o>=a)&&Object.keys(n.O).every((function(e){return n.O[e](l[c])}))?l.splice(c--,1):(r=!1,a<o&&(o=a));if(r){e.splice(m--,1);var s=i();void 0!==s&&(t=s)}}return t}a=a||0;for(var m=e.length;m>0&&e[m-1][2]>a;m--)e[m]=e[m-1];e[m]=[l,i,a]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={4505:0,2192:0,9332:0};n.O.j=function(t){return 0===e[t]};var t=function(t,l){var i,a,o=l[0],r=l[1],c=l[2],s=0;if(o.some((function(t){return 0!==e[t]}))){for(i in r)n.o(r,i)&&(n.m[i]=r[i]);if(c)var m=c(n)}for(t&&t(l);s<o.length;s++)a=o[s],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(m)},l=self.webpackChunkwebdevia_blocks=self.webpackChunkwebdevia_blocks||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))}();var i=n.O(void 0,[9332],(function(){return n(6713)}));i=n.O(i)}();