<?xml version='1.0' encoding='UTF-8'?><uidget><metadata><name>Image</name><description>Add a picture</description><help><![CDATA[Select the image either by uploading it from your computer or by searching in open libraries.]]></help><api_version>1.0</api_version><size height='150' width='150' /><blog en='18' /></metadata><view><content>&lt;div&gt;&lt;a&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;</content><properties><image_selector context_menu='Choose an image' default='{id:-1,name:&apos;default.png&apos;,width:128,height:128,url:&apos;/images/default.png&apos;,thumbnails:{normal:&apos;/images/default.png&apos;,small:&apos;/images/default.png&apos;}}' default_action='true' help='Select the image to insert' icon='folder' name='imageFile' value='Choose an image' /><image_selector context_menu='Mouseover image' default='null' facultative='true' feature='image_mouseover' help='Optional: a different image with the same size to be shown at mouseover' icon='ui_carousel' name='mouseoverImage' value='Mouseover image' /><bloc><radio class='uic_prop_display_type' default='&apos;ratio&apos;' display='Keep ratio|Full width|Crop|Free Size' help='Allows to choose between different displays modes for the image. &lt;br&gt;Keep ratio: on resize, the image aspect ratio will be preserved. &lt;br&gt;Full width: the image width will be adjusted to fit the visitor&apos;s browser. &lt;br&gt;Crop: on resize, the image will be cropped to cover the block size. &lt;br&gt;Free size: on resize, the image aspect ratio of the image will be changed to fit the block size. ' name='ratio_type' title='Display mode' values='ratio|fullwidth|cover|free' /><checkbox class='uii_parallax_control' default='false' help='Enable a parallax effect: when the page is scrolled, the image displayed scrolls slightly slower to create a nice 3D effect.' name='parallax' value='Parallax' /><checkbox default='false' help='By clicking on the image, your visitors can see it fullscreen.' name='bigger' value='Fullscreen on click' /><checkbox default='false' feature='image_protection' help='By activating this feature, &lt;b&gt;your visitors will not be able to download these images&lt;/b&gt; by right clicking on an image or by drag-dropping it or by browsing the source of the page.' name='protect' value='Anti-download' /></bloc><images_selector default='[]' facultative='true' help='With this option, you can specify the image(s) displayed on fullscreen. If did not select any and ticked the &apos;Fullscreen on click&apos; option, the image showed in the Image block will be displayed on fullscreen.' icon='screen' name='tb_imgs' value='Images on fullscreen' /><link_selector default='null' help='Add a link to an external site, a document or a page, or remove the current link.' icon='t_link' name='link' /><textarea facultative='true' feature='image_menu_mouseover' height='20' help='Enter here the name of a drop down menu that will be displayed on image mouseover.&lt;br&gt;The drop down menu name should also be specified in the properties of the menu you want to be displayed.' icon='menu' name='mouseoverMenu' text='Mouseover menu' /><textarea facultative='true' height='160' help='This will set the ALT attribute used by search engine to index images, instead of using the file description or file name. We suggest you to insert here a short description of your image.' icon='google' name='alt' text='SEO description' /></properties><design_properties><trigger help='Set the block to the real size of the image.' icon='arrow_tb' text='Real Size' trigger='realsize' /><bloc><radio class='filterRadio' default='&apos;none&apos;' display='None|Grayscale|Blur|Invert|Contrast|Color or Gradient' help='Select the filter for the image.&lt;br&gt; &lt;b&gt;None&lt;/b&gt; no filter&lt;br&gt; &lt;b&gt;Grayscale&lt;/b&gt; remove all the colors&lt;br&gt; &lt;b&gt;Blur&lt;/b&gt; blur the image&lt;br&gt; &lt;b&gt;Invert&lt;/b&gt; invert all the colors&lt;br&gt; &lt;b&gt;Contrast&lt;/b&gt; more lightness differences&lt;br&gt; &lt;b&gt;Color or gradient&lt;/b&gt; add a color transparent overlay' name='filter' title='Filter' values='none|grayscale|blur|invert|contrast|color' /><gradient default='[&apos;vertical&apos;, [[&apos;0%&apos;, &apos;rgba(0,0,0,0.5)&apos;], [&apos;100%&apos;, &apos;rgba(0,0,0,0.5)&apos;]], 0, false]' name='gradient_colors' /></bloc><bloc class='uii_mask_properties'><checkbox class='uii_active_mask' default='false' help='By checking this option, you will be able to crop the image to a shape (circle, triangle...).' name='activate_mask' value='Crop to a shape' /><icon_selector class='uii_chose_mask' default='{"id":594,"name":"brightness_1","service":"Google-material-icons","removable":false}' default_action='true' icon='folder' name='mask' search_options='{"search_by":"shapes"}' value='Choose the shape' /></bloc><bloc class='uii_radius_properties'><checkbox class='uii_radius_toggle' default='false' name='radius_toggle' value='Radius' /><radius class='uii_radius' default='[50, 50, 50, 50]' maximum='500' minimum='0' name='radius' /></bloc></design_properties></view><script>UI_List.UI_Image={initialize:function(t){this.component=t
;t.setOptions([&quot;locked&quot;,&quot;container&quot;,&quot;fixed&quot;,&quot;footer&quot;,&quot;sticky&quot;])
;this.protect_available=&quot;editor&quot;==v.mode||v.features.image_protection
;this.mouseover_available=&quot;editor&quot;==v.mode||v.features.image_mouseover
},updateImage:function(){this.component.node.unbind()
;var t=this,e={h:this.component.H(),w:this.component.W()
},i=function(i,o){var n=$(&quot;&lt;span&gt;&quot;).css({position:&quot;absolute&quot;,
top:&quot;-1000px&quot;}).appendTo(&quot;body&quot;)
;n.setIcon(t.component.data.mask,!1,function(){
setTimeout(function(){
var a=cdn_url(bestImgSrc(o,t.component.W(),t.component.H())),s=function(){
n.children().css({&quot;font-size&quot;:&quot;100px&quot;});var o={w:n.width(),
h:n.height()};o.h/o.w
;var s=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;)
;i.empty().addClass(&quot;uii_mask_node&quot;)
;var r=Math.min(e.h/o.h*100,e.w/o.w*100)
;s.setAttributeNS(null,&quot;x&quot;,(e.w-r*o.w/100)/2);var c=r*o.h/100
;s.setAttributeNS(null,&quot;y&quot;,(e.h-c)/2+c/(&quot;Symbola&quot;!=t.component.data.mask.service?1:1.3))
;s=$.fn.setIcon(t.component.data.mask,$(s))[0]
;var d=&apos;&lt;pattern class=&quot;uii_pattern&quot; id=&quot;&apos;+(i==t.img2?&quot;hover_&quot;:&quot;&quot;)+&quot;pattern_mask_&quot;+t.component.uniqId()+&apos;&quot; patternUnits=&quot;userSpaceOnUse&quot; width=&quot;&apos;+e.w+&apos;&quot; height=&quot;&apos;+e.h+&apos;&quot; viewbox=&quot;0 0 &apos;+e.w+&quot; &quot;+e.h+&apos;&quot;&gt;&lt;image xlink:href=&quot;&apos;+a+&apos;&quot; width=&quot;&apos;+e.w+&apos;&quot; height=&quot;&apos;+e.h+&apos;&quot; preserveAspectRatio=&quot;xMidYMid &apos;+(&quot;cover&quot;==t.component.data.ratio_type?&quot;slice&quot;:&quot;meet&quot;)+&apos;&quot; /&gt;&lt;/pattern&gt;&apos;
;$(&quot;.pattern_mask&quot;,t.component.node).remove()
;i.html(&quot;&lt;svg class=&apos;svg_defs&apos;&gt;&lt;defs&gt;&quot;+d+&quot;&lt;/defs&gt;&lt;/svg&gt;&quot;).append($(&apos;&lt;svg class=&quot;content_svg&quot; width=&quot;&apos;+e.w+&apos;&quot; height=&quot;&apos;+e.h+&apos;&quot;&gt;&lt;/svg&gt;&apos;))
;$(&quot;.content_svg&quot;,i)[0].appendChild(s);$(s).css({
fill:&quot;url(#&quot;+(i==t.img2?&quot;hover_&quot;:&quot;&quot;)+&quot;pattern_mask_&quot;+t.component.uniqId()+&quot;)&quot;,
&quot;font-size&quot;:r+&quot;px&quot;});setTimeout(function(){n.remove()},2e3)}
;$.fn.loadImage(a).done(function(){s()}).fail(function(){
if(/ra0\.cdnsw\.com\/cc0/.test(a)){
a=a.replace(&quot;ra0.cdnsw.com/cc0&quot;,&quot;www.sitew.com/file/pixabay&quot;)
;s()}})},100)})}
;if(this.component.data.activate_mask&amp;&amp;this.component.data.mask){
$(&quot;.uii_pattern&quot;,this.component.node).remove()
;i(this.img1,t.component.data.imageFile)}else{
this.img1.removeClass()
;if(!this.component.preloaded||this._protected()||&quot;fullwidth&quot;==this.component.data.ratio_type){
this.img1.empty().append(t._setImageDefault(this.component.data.imageFile,this.component))
;this._protected()&amp;&amp;this._antiDownload(this.img1)}
this.mouseover_available&amp;&amp;this.component.data.mouseoverMenu&amp;&amp;&quot;&quot;!=this.component.data.mouseoverMenu&amp;&amp;this.component.node.mouseover(function(){
window.UI_Menu&amp;&amp;UI_Menu.showDropDownMenu(t.component.data.mouseoverMenu)
});this._setFullWidth();this._setParallax()}
if(this.mouseover_available&amp;&amp;this.component.data.mouseoverImage){
this.component.data.activate_mask&amp;&amp;this.component.data.mask?i(this.img2,this.component.data.mouseoverImage):this.img2.empty().append(t._setImageDefault(this.component.data.mouseoverImage,this.component))
;this.component.node.hover(function(){t.img2.show()
;t.img1.hide()},function(){t.img1.show();t.img2.hide()})}
this._setFilter()},getDescriptions:function(){
var t=this,e=function(e){var i={}
;i[t.component.data.imageFile.id]=e;t.captions.resolve(i)}
;this.component.description&amp;&amp;e(this.component.description)},
updateLink:function(){var t=this;this.link.attr({target:&quot;&quot;,
onClick:&quot;&quot;,title:&quot;&quot;}).removeAttr(&quot;href&quot;).unbind()
;if(this.component.data.link&amp;&amp;this.component.data.link.onClick&amp;&amp;this.component.data.link.onClick.match(/^tb_show\(/))try{
this.component.data.tb_imgs=JSON_.parse(this.component.data.link.onClick.match(/tb_show\(\{list:\[\]\},0,(.*\])/)[1])
;this.component.data.bigger=!0;this.component.data.link=null
}catch(e){dbg.error(&quot;Image.tb_imgs&quot;,e,this.component.data)}
if(this.component.data.link){
this.link.attr(this.component.data.link)
;&quot;editor&quot;==v.mode&amp;&amp;this.component.data.link.href&amp;&amp;this.component.data.link.href.match(/fs|dl/)&amp;&amp;&quot;&quot;==this.component.data.link.onClick&amp;&amp;this.link.on(&quot;click&quot;,function(e){
window.open(v.url+t.component.data.link.href);e.preventDefault()
})
;v.features.do_follow_links?this.link.attr(&quot;rel&quot;,&quot;noopener noreferrer&quot;):this.link.attr(&quot;rel&quot;,&quot;nofollow noopener noreferrer&quot;)
;&quot;editor&quot;==v.mode&amp;&amp;&quot;&quot;==this.link.attr(&quot;onClick&quot;)&amp;&amp;this.link.attr(&quot;target&quot;,&quot;test_link&quot;)
}else this.component.data.bigger&amp;&amp;this.link.attr(&quot;href&quot;,&quot;#&quot;).click(function(){
if(t.component.data.tb_imgs&amp;&amp;t.component.data.tb_imgs.length&gt;0)tb_show_viewer(FileDescription.get(t.component.data.tb_imgs),0,t.component.data.tb_imgs,t._protected());else{
tb_show_viewer(&quot;editor&quot;==v.mode?FileDescription.get([t.component.data.imageFile]):t.captions,0,[t.component.data.imageFile],t._protected())
;sigCtl.emit(&quot;UI_Image.fullscreen&quot;,t.component.data.imageFile)}
this.blur();return!1}).on(&quot;dblclick&quot;,function(){return!1})
;this.link.addClass(&quot;not_link_style&quot;)
;this.component.data.imageFile.removable&amp;&amp;this.getDescriptions()
},onDisplay:function(t){var e=this
;this.component.migrateOldGradientProperty()
;if(!this.component.data.ratio_type){
this.component.data.ratio_type=this.component.data.aspectRatio?&quot;ratio&quot;:&quot;free&quot;
;this.component.data.aspectRatio=null}this.link=t.find(&quot;a&quot;)
;this.img1=t.find(&quot;span:first&quot;)
;this.img2=t.find(&quot;span:last&quot;).hide();this.captions=$.Deferred()
;this.mouseover_available&amp;&amp;this.component.data.mouseoverMenu&amp;&amp;&quot;&quot;!=this.component.data.mouseoverMenu&amp;&amp;Misc.poll(function(){
return window.UI_Menu},function(){
UI_Menu.setAsDropDownMenu(e.component.data.mouseoverMenu)})
;this.updateImage();this.updateLink()
;&quot;editor&quot;!=v.mode&amp;&amp;this.component.data.mouseoverImage&amp;&amp;this.mouseover_available&amp;&amp;(this.preload=$(document).setImage(this.component.data.mouseoverImage,this.component.W(),this.component.H(),{
protect:this._protected(),keep_ratio:!1}))
;this.aspectRatio_v=this.component.data.imageFile.height/this.component.data.imageFile.width
;&quot;ratio&quot;==this.component.data.ratio_type&amp;&amp;this.component.setAspectRatio(this.aspectRatio_v)
;this._setFullWidth();this._setParallax();this._setFilter()
;this._setRadius()
;is_colored()&amp;&amp;sigCtl.connect(&quot;Theme.changed&quot;,function(){
e._setColorFilter()})},_loadProperties:function(){
var t=$(this.component.propertyNode).add(this.component.propertyDesignNode)
;if(&quot;color&quot;==this.component.data.filter){
$(&quot;.gradientProperty&quot;,t).css(&quot;display&quot;,&quot;table&quot;)
;$(&quot;.selectGradientO.k-widget&quot;,t).show()
;$(&quot;.roundSliderPropertyDiv&quot;,t).css(&quot;display&quot;,&quot;table&quot;)
;&quot;diagonal&quot;==this.component.data.gradient_colors[0]?$(&quot;.roundSliderPropertyDiv&quot;,t).show():$(&quot;.roundSliderPropertyDiv&quot;,t).hide()
}else{$(&quot;.gradientProperty&quot;,t).css(&quot;display&quot;,&quot;none&quot;)
;$(&quot;.selectGradientO.k-widget&quot;,t).hide()
;$(&quot;.roundSliderPropertyDiv&quot;,t).css(&quot;display&quot;,&quot;none&quot;)}
if(this.component.data.activate_mask){
$(&quot;.uii_chose_mask&quot;,t).show()
;$(&quot;input[value=color]&quot;,t).parent().hide()
;$(&quot;.uii_parallax_control&quot;,t).hide()}else{
$(&quot;.uii_chose_mask&quot;,t).hide()
;$(&quot;input[value=color]&quot;,t).parent().show()
;$(&quot;.uii_parallax_control&quot;,t).show()}$(&quot;.uii_radius&quot;,t).hide()
;$(&quot;.uii_radius_properties&quot;,t).hide()
;if(&quot;fullwidth&quot;!=this.component.data.ratio_type&amp;&amp;!this.component.data.activate_mask){
$(&quot;.uii_radius_properties&quot;,t).show()
;this.component.data.radius_toggle&amp;&amp;$(&quot;.uii_radius&quot;,t).show()}
$(&quot;.uii_mask_properties&quot;,t).toggle(&quot;fullwidth&quot;!=this.component.data.ratio_type&amp;&amp;!this.component.data.radius_toggle)
},onSelect:function(){this._loadProperties()},
onPropertyChanged:function(t){this._loadProperties()
;if(t.include(&quot;imageFile&quot;)){this.updateImage()
;if(&quot;fullwidth&quot;!=this.component.data.ratio_type&amp;&amp;&quot;cover&quot;!=this.component.data.ratio_type){
var e=this.component,i=this.component.data.imageFile.width,o=this.component.data.imageFile.height
;this.refreshAspectRatio()
;for(var n in v.device_modes)if(n==v.device_modes[n]){
var a=e.prop(n).w;i&gt;a&amp;&amp;(o=(i=a)*this.aspectRatio_v);e.setXYZWH({
w:i,h:o},{device:n,send_events:!1})
;sigCtl.emit(&quot;Component.moved&quot;)}}}
(t.include(&quot;mouseoverImage&quot;)||t.include(&quot;activate_mask&quot;)||t.include(&quot;mask&quot;))&amp;&amp;this.updateImage()
;if(t.include(&quot;ratio_type&quot;))if(&quot;ratio&quot;==this.component.data.ratio_type){
this.component.setAspectRatio(this.aspectRatio_v)
;window.blockSelector&amp;&amp;blockSelector.selected_cpts.length&gt;0&amp;&amp;blockSelector.drawSelector()
}else this.component.setAspectRatio(null);if(t.include(&quot;link&quot;)){
this.component.data.tb_imgs=null;this.updateLink()}
if(t.include(&quot;bigger&quot;)){if(this.component.data.bigger){
this.component.data.link=null;this.component.data.tb_imgs=null}
this.updateLink()}if(t.include(&quot;tb_imgs&quot;)){
if(this.component.data.tb_imgs&amp;&amp;this.component.data.tb_imgs.length&gt;0){
this.component.data.link=null;this.component.data.bigger=!0}
this.updateLink()}if(t.include(&quot;realsize&quot;)){
var s=new Image,r=this;s.onload=function(){s.remove()
;r.component.setXYZWH({w:s.width,h:s.height})}
;s.src=bestImgSrc(this.component.data.imageFile,1e4,1e4)}
if(window.UI_Menu&amp;&amp;t.include(&quot;mouseoverMenu&quot;)&amp;&amp;this.component.data.mouseoverMenu&amp;&amp;&quot;&quot;!=this.component.data.mouseoverMenu){
UI_Menu.setAsDropDownMenu(this.component.data.mouseoverMenu)
;this.updateImage()
;versionController.disabledOnViewer(&quot;image_menu_mouseover&quot;)}
if(t.include(&quot;ratio_type&quot;)){this._setFullWidth()
;this.updateImage()}t.include(&quot;parallax&quot;)&amp;&amp;this._setParallax()
;t.include(&quot;filter&quot;)||t.include(&quot;activate_mask&quot;)||t.include(&quot;mask&quot;)?this._setFilter():t.includeOne([&quot;gradient_colors&quot;])&amp;&amp;this._setColorFilter()
;this._setRadius()},onResize:function(){
this.img1.find(&quot;img&quot;).width(this.component.W()).height(this.component.H())
},onResizeStop:function(){this.onResize();this.updateImage()
;this._setFullWidth();this._setParallax();this._setFilter()
;this._setRadius();this.refreshAspectRatio()},
onMoveStop:function(){this._setFullWidth();this._setParallax()
;this._setFilter()},onMoved:function(){this.refreshAspectRatio()
},refreshAspectRatio:function(){
if(&quot;ratio&quot;==this.component.data.ratio_type){
var t=this.component.data.imageFile.width,e=this.component.data.imageFile.height
;this.aspectRatio_v=e/t
;this.component.setAspectRatio(this.aspectRatio_v)}
sigCtl.emit(&quot;Component.moved&quot;)},_setImageDefault:function(t,e){
var i=bestImgSrc(t,&quot;fullwidth&quot;==this.component.data.ratio_type?screen.width:e.W(),e.H(),{
keep_ratio:&quot;free&quot;!=this.component.data.ratio_type})
;return $(&quot;&lt;div&gt;&quot;).addClass(&quot;uii_img &quot;+e.data.ratio_type).cdnSrc(i,e.W(),e.H())
},_protected:function(){
return(this.component.data.protect||v.page_bg.security.content_protection)&amp;&amp;&quot;editor&quot;!=v.mode&amp;&amp;this.protect_available
},_antiDownload:function(t){
(t=t.parents(&quot;.componentBody:first&quot;)).on(&quot;contextmenu&quot;,function(t){
if(&quot;DIV&quot;==t.target.nodeName)return!1})
;if(!this.component.data.link&amp;&amp;!this.component.data.bigger){
var e=&quot;/images/spacer.gif&quot;;(new Image).src=e
;t.on(&quot;mouseenter touchstart&quot;,function(){var i=$(this)
;if(!($(&quot;.protectOverlay&quot;,i).length&gt;0)){
var o=$(&apos;&lt;img class=&quot;protectOverlay&quot; src=&quot;&apos;+e+&apos;&quot; width=&quot;&apos;+i.width()+&apos;&quot; height=&quot;&apos;+i.height()+&apos;&quot; /&gt;&apos;).css({
position:&quot;absolute&quot;,zIndex:9999999
}).prependTo(t).on(&quot;mouseleave&quot;,function(){
setTimeout(function(){o.remove()},0)})
;$(document).one(&quot;touchend&quot;,function(){setTimeout(function(){
o.remove()},0)})}})}},_setFullWidth:function(){
this.component.setFullWidth(&quot;fullwidth&quot;==this.component.data.ratio_type)
},_setParallax:function(){
var t=&quot;editor&quot;==v.mode?$(&quot;#site&quot;):$(window),e=this.component.componentBody.find(&quot;.uii_img:first&quot;)
;if(this.component.data.parallax){
var i=this,o=i.component.node.position().top-t.height(),n=i.component.node.position().top+i.component.node.height()
;window.navigator.userAgent.match(/MSIE|Trident|Edge/)&amp;&amp;&quot;viewer&quot;==v.mode&amp;&amp;jQuery.fn.overrideWindowScroll(!0)
;&quot;free&quot;!=this.component.data.ratio_type&amp;&amp;&quot;ratio&quot;!=this.component.data.ratio_type||e.css(&quot;background-size&quot;,&quot;150% 150%&quot;)
;var a=function(){var i=n-o
;if(t.scrollTop()&gt;o&amp;&amp;t.scrollTop()&lt;n){
var a=&quot;50% &quot;+(100-100*(t.scrollTop()-o)/i)+&quot;%&quot;;e.css({
backgroundPosition:a})}};a()
;t.off(&quot;scroll.parallaxImg&quot;+this.uniqId()).on(&quot;scroll.parallaxImg&quot;+this.uniqId(),a)
;t.off(&quot;resize.parallaxImg&quot;+this.uniqId()).on(&quot;resize.parallaxImg&quot;+this.uniqId(),function(){
clearTimeout(i._to_window_resize)
;i._to_window_resize=setTimeout(function(){i._setParallax()
},150)})}else{t.off(&quot;scroll.parallaxImg&quot;+this.uniqId())
;t.off(&quot;resize.parallaxImg&quot;+this.uniqId())
;&quot;free&quot;==this.component.data.ratio_type&amp;&amp;e.css(&quot;background-size&quot;,&quot;100% 100%&quot;)
;&quot;ratio&quot;==this.component.data.ratio_type&amp;&amp;e.css(&quot;background-size&quot;,&quot;contain&quot;)
;var s=&quot;50% 50%&quot;;e.css({backgroundPosition:s})}},
_setFilter:function(){var t=this.component.node.find(&quot;.uii_img&quot;)
;this.component.data.activate_mask?t=this.component.node.find(&quot;.content_svg&quot;):0==t.length&amp;&amp;(t=this.component.node.find(&quot;img&quot;))
;t.css(&quot;transform&quot;,&quot;translate3d(0,0,0)&quot;)
;this.component.data.gradient_colors[2]=this.component.data.gradient_colors[2]||45
;jQuery.fn.setImgFilter(t,&quot;image&quot;,this.component.data.filter,&quot;filterColorImg&quot;+this.uniqId(),{
color:this.component.getData(&quot;gradient_colors&quot;)[1],
or:this.component.data.gradient_colors[0],
angle:this.component.data.gradient_colors[2]
},$(this.component.propertyNode).add(this.component.propertyDesignNode))
},_setColorFilter:function(){
&quot;color&quot;==this.component.data.filter&amp;&amp;$(&quot;#filterColorImg&quot;+this.uniqId()).setBackgroundGradient(this.component.getData(&quot;gradient_colors&quot;)[1],this.component.data.gradient_colors[0],this.component.data.gradient_colors[2])
},_setRadius:function(){
var t=this.component.node.find(&quot;.uii_img&quot;)
;0==t.length&amp;&amp;(t=this.component.node.find(&quot;img&quot;))
;var e=this.component.node.find(&quot;.img_overlay&quot;)
;if(this.component.data.radius_toggle&amp;&amp;this.component.data.radius&amp;&amp;&quot;fullwidth&quot;!=this.component.data.ratio_type&amp;&amp;!this.component.data.activate_mask){
var i=this.component.data.radius.join(&quot;px &quot;)+&quot;px&quot;
;t.css(&quot;border-radius&quot;,i)
;&quot;color&quot;==this.component.data.filter&amp;&amp;e.css(&quot;border-radius&quot;,i)
}else{t.css(&quot;border-radius&quot;,&quot;&quot;);e.css(&quot;border-radius&quot;,&quot;&quot;)}},
uniqId:function(){this._uid_=this._uid_||this.component.uniqId()
;return this._uid_},_isEmpty:function(){var t=!1
;return&quot;default.png&quot;==this.component.data.imageFile.name&amp;&amp;-1==this.component.data.imageFile.id||t
},onDeviceChanged:function(t){var e=this,i=this.component
;if(&quot;mobile_tree&quot;==t.to){if(this.ori_ratio_type)return
;if(i.data.activate_mask)var o=0,n=setInterval(function(){
if(i.node.find(&quot;.content_svg&quot;).height()&lt;30&amp;&amp;o&lt;200){o++
;e.updateImage()}else{clearInterval(n);n=null}},500)
;if(i.node.data(&quot;isContainer&quot;)){if(&quot;cover&quot;!=i.data.ratio_type){
i.preloaded=!1;this.ori_ratio_type=i.data.ratio_type
;i.data.ratio_type=&quot;cover&quot;}
}else&quot;ratio&quot;==i.data.ratio_type&amp;&amp;i.node.css(&quot;min-height&quot;,i.node.width()*i.ui.aspectRatio_v)
}else if(this.ori_ratio_type){
i.data.ratio_type=this.ori_ratio_type;delete this.ori_ratio_type
}this.onPropertyChanged([&quot;ratio_type&quot;])}};</script><style>.uii_img{position:relative;height:100%;position:absolute;width:100%;background-position:center center;background-repeat:no-repeat}
.uii_img.cover,.uii_img.fullwidth{background-size:cover}
.uii_img.ratio{background-size:contain}
.uii_img.free{background-size:100% 100%}
.svg_defs{height:0;position:absolute;width:0}
.uii_mask_node{user-select:none;-moz-user-select:none;-webkit-user-select:none}
.UI_Image a object[type*=image]{pointer-events:none}</style></uidget>