<?xml version='1.0' encoding='UTF-8'?><uidget><metadata><name>Réseaux sociaux</name><api_version>1.0</api_version><size height='36' width='232' /><blog en='293' /></metadata><view><content>&lt;div class=&quot;usl2_node&quot;&gt;&lt;/div&gt;
</content><properties><social_selector default_action='true' icon='option' name='social_configuration' text='Services' /></properties></view><script>UI_List.UI_Social2={initialize:function(e){this.cpt=e
;e.setOptions([&quot;locked&quot;,&quot;footer&quot;,&quot;sticky&quot;,&quot;fixed&quot;])},
onDisplay:function(){var e=this;e.created=!1
;this._create().then(function(){e._setSize()})},
onResizeStop:function(){if(&quot;editor&quot;==v.mode&amp;&amp;this.created){
var e=this
;&quot;embed&quot;==(this.cpt.getData(&quot;social_configuration&quot;)||{}).type?this._create({
w:this.cpt.W()}).then(function(){e._setSize()}):this._setSize()}
},onDeviceChanged:function(){var e=this
;this._create().then(function(){e._setSize()})},
onSocialSelectorChange:function(e,t){var i=this
;e.type!=t.type&amp;&amp;this._setDefaultSize()
;this._create().then(function(){i._setSize()})},
_create:function(e){e=e||{}
;var t=this,i=this.cpt.getData(&quot;social_configuration&quot;)
;if(i)return this.cpt.componentBody.setSocials($.extend({
width:&quot;mobile_tree&quot;==deviceController.device?$(&quot;#mobile_wrapper&quot;).width():e.w||this.cpt.prop().w,
height:this.cpt.prop().h},i)).then(function(){t.created=!0})
;t.created=!0
;&quot;editor&quot;==v.mode?this.cpt.componentBody.empty().append(sprintf(&apos;&lt;div class=&quot;uis2_placeholder&quot;&gt;%s&lt;/div&gt;&apos;,&quot;Le module n&apos;est pas configur\xe9&quot;)):this.cpt.componentBody.hide()
;return $.Deferred().resolve()},_setSize:function(){
var e=this,t=this.cpt.getData(&quot;social_configuration&quot;)||{}
;if([&quot;share&quot;,&quot;link&quot;].include(t.type)){
var i=this.cpt.componentBody.find(&quot;.socialblock &gt; a&quot;).to_a().reduce(function(e,t){
return e+$(t).outerWidth(!0)},0);this.cpt.setSize({
h:this.cpt.componentBody.find(&quot;.socialblock&quot;).height(),w:i})
}else if(&quot;embed&quot;==t.type){var o={facebook_post:[750,550],
twitter_post:[550,700]
}[t.embed_service+&quot;_&quot;+t.embed_mode]||[],c={facebook_post:200
}[t.embed_service+&quot;_&quot;+t.embed_mode]||0
;if(&quot;mobile_tree&quot;==deviceController.device){
var s=$(&quot;#mobile_wrapper&quot;).width();this.cpt.W()&gt;s&amp;&amp;(o[0]=s)
;o[1]&amp;&amp;(o[1]=Math.min(.75*(&quot;editor&quot;==v.mode?800:$(window).height()),o[1]))
}this.cpt.setSize({w:this.cpt.W()&gt;o[0]?o[0]:this.cpt.prop().w,
h:this.cpt.H()&gt;o[1]||this.cpt.H()&lt;c?o[1]:this.cpt.prop().h})
;&quot;editor&quot;!=v.mode&amp;&amp;&quot;mobile_tree&quot;!=deviceController.device||&quot;embed&quot;!=t.type||&quot;facebook&quot;!=t.embed_service||&quot;post&quot;!=t.embed_mode||setTimeout(function(){
var t=e.cpt.componentBody.find(&quot;.fb-post&quot;).height()
;e.cpt.setSize({h:t})},500)}},_setDefaultSize:function(){
switch((this.cpt.getData(&quot;social_configuration&quot;)||{}).type){
case&quot;embed&quot;:this.cpt.setSize({h:450,w:450})}}};</script><style></style></uidget>