jamespot-react-components 1.3.128 → 1.3.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,7 +132,7 @@ Take a look at the reducer(s) handling this action type: ${g.type}.
|
|
|
132
132
|
</params>
|
|
133
133
|
</widget>`}default:return""}}function aj(e,t){const r=e?.find(n=>n.propertyType===t);return r?`${t.toLowerCase()}="${Tt(r.value)}"`:""}function GZ(e,t){switch(e){case re.DESCRIPTION:return"Description";case Te.USER:return"IdUser";default:return uS(t)}}function VZ(e){switch(e){case re.DESCRIPTION:case re.TEXT:case re.TEXTAREA:case re.TEXTAREAHTML:case re.URL:case re.IFRAMEVIDEO:case re.EMAIL:case re.USERLINK:case re.CONTENTLINK:case re.NUMBER:case re.ADDFILEATTACHMENT:return"text";case re.DATE:case re.DATETIME:return"date";case Te.USER:return"integer";case re.SELECT:case re.RADIO:case re.TOGGLE:case re.CHECKBOX:case re.TAGS:return"string";default:return""}}function XZ(e){switch(e){default:case re.DESCRIPTION:case re.TEXTAREAHTML:return"html";case re.TAGS:return"taxonomy";case re.TEXT:case re.RADIO:case re.URL:case re.EMAIL:case re.ADDFILEATTACHMENT:case Te.USER:case re.USERLINK:case re.CONTENTLINK:case re.IFRAMEVIDEO:return"text";case re.TEXTAREA:case re.CHECKBOX:case re.SELECT:return"longtext";case re.DATE:return"date";case re.DATETIME:return"date";case re.NUMBER:return"float"}}const uS=e=>{let t="";for(let r=0;r<e.length;r++){const n=e.charAt(r);n>="0"&&n<="9"?t+=_Z(Number(n)):n>="a"&&n<="z"&&(t+=n)}return t},_Z=e=>{let t="",r;for(;e>0;)r=(e-1)%26,t=String.fromCharCode(97+r)+t,e=(e-r)/26|0;return t},sj={create:"create",popup:"create-popup",edit:"edit",view:"display"};function KZ(e){let t="";return Object.entries(e.views).forEach(([r,n])=>{if(Object.prototype.hasOwnProperty.call(sj,r)){const i=Object.entries(n).filter(o=>o[1].isUsed&&(r!=="view"||o[0]!=="title")).sort((o,a)=>o[1].pos-a[1].pos);t+=`<display view="${sj[r]}${r==="view"&&e.manifest.displayContentLegacyTable?"Disabled":""}" mode="${r==="view"?"view":"form"}">
|
|
134
134
|
${i.map(([o,a])=>qZ(o,a)).join("")}
|
|
135
|
-
</display>`}}),t.length>0&&(t=`<displays type="${Tt(e.idApp)}">${t}</displays>`),t}function JZ(e,t){switch(t.type){case Te.TITLE:return"title";case Te.SENDALERTTOSUBSCRIBERS:return"sendAlert";case Te.RECEIVEACOPY:return"alertAuthor";case Te.PUBLISHTO:return"publishTo";case Te.USER:return"idUser";case Te.CREATIONDATE:return"dateCreation";case re.DESCRIPTION:return"description";default:return uS(e)}}function qZ(e,t){let r="";const n=JZ(e,t);if(t.isLockedValue){const i={ref:n,fixedValue:t.value};if(r+=`<html><![CDATA[ <!-- <JAMESPOT.STUDIO.FIXED>${JSON.stringify(i)}</JAMESPOT.STUDIO.FIXED> -->`,t.type===Te.PUBLISHTO){const o=t.value.map(a=>a.uri).join(",");r+=`<input type="hidden" name="publishTo" value="${o}">`}else if(t.type===Te.USER||t.type===re.USERLINK||t.type===re.CONTENTLINK)r+=`<input type="hidden" name="${n}[]" value=${JSON.stringify(t.value.uri)}>`;else if(t.type===re.SELECT)t.properties.find(o=>o.propertyType===ot.OPTIONS_EDITOR)?.value.canSelectMultiple?t.value.forEach(o=>{r+=`<input type="hidden" name="${n}[]" value="${o.value}">`}):r+=`<input type="hidden" name="${n}" value="${t.value.value}">`;else if(t.type===re.CHECKBOX)t.value.forEach(o=>{r+=`<input type="hidden" name="${n}[]" value="${o}">`});else if(t.type===re.DATE){const o=new Date(t.value),a=[Js(o.getDate()),Js(o.getMonth()+1),o.getFullYear()].join("/");r+='<input type="hidden" name="'+n+'" value="'+a+'">'}else if(t.type===re.DATETIME){const o=new Date(t.value),a=`${[Js(o.getDate()),Js(o.getMonth()+1),o.getFullYear()].join("/")} ${Js(o.getHours())}:${Js(o.getMinutes())}:${Js(o.getSeconds())}`;r+='<input type="hidden" name="'+n+'" value="'+a+'">'}else t.type===re.TAGS?r+=`<input type="hidden" name="${n}" value="${t.value?.map(o=>o.uri)?.join(",")}">`:t.type===re.DESCRIPTION||t.type===re.TEXTAREAHTML?r+=`<input type="hidden" name="${n}" value="${t.value}">`:t.type===Te.RECEIVEACOPY?t.value&&(r+='<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" ng-model="form.alertAuthor" name="alertAuthor[]" value="1">'):t.type===Te.SENDALERTTOSUBSCRIBERS?t.value&&(r+='<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" ng-model="form.sendAlert" name="sendAlert[]" value="1">'):r+=`<input type="hidden" name="${n}" value="${t.value}">`;r+="]]></html>"}else switch(t.type){case re.CODEHTML:{const i={id:e,name:e,properties:{code:t.value}};r+=`<html><![CDATA[ <!-- <JAMESPOT.STUDIO.CODEHTML>${JSON.stringify(i)}</JAMESPOT.STUDIO.CODEHTML><JAMESPOT.STUDIO.FIELD_POS>${t.pos}</JAMESPOT.STUDIO.FIELD_POS>-->${t.value}]]></html>`;break}case re.IMAGE:r+="<image />";break;case Te.PUBLISHTO:r+="<publishTo />";break;default:r+="<attr name='"+n+"' />";break}return r}function Js(e){return e<10?"0"+e:e}var on=[];for(var Eb=0;Eb<256;++Eb)on.push((Eb+256).toString(16).slice(1));function YZ(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}var Sg,ZZ=new Uint8Array(16);function $Z(){if(!Sg&&(Sg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sg(ZZ)}var e$=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lj={randomUUID:e$};function No(e,t,r){if(lj.randomUUID&&!e)return lj.randomUUID();e=e||{};var n=e.random||(e.rng||$Z)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,YZ(n)}function Fv(e,t=!0){return{id:No(),type:e,properties:n$(e),mandatory:!1,views:{create:t,popup:t,edit:t,list:t,filter:t,view:t},isActive:!0,isFixed:!1,isOptional:!1,value:null,isLockedValue:!1}}const t$={type:"taxonomyOpen",id:1,title:"Mots-clés"},r$={type:"mpArticle",label:"Article"};function n$(e){switch(e){case re.TEXT:case re.DESCRIPTION:case re.TEXTAREAHTML:case re.DATE:case re.DATETIME:case re.URL:case re.IFRAMEVIDEO:case re.EMAIL:case re.TOGGLE:case re.USERLINK:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""}];case re.ADDFILEATTACHMENT:return[{propertyType:ot.LABEL,isRequired:!0,value:""}];case re.CODEHTML:return[{propertyType:ot.RICHTEXT,value:""}];case re.TEXTAREA:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""}];case re.NUMBER:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.CHECKBOX,value:!1,checkBoxOptions:[{label:"APPSTUDIO_FormEditProps_Digits",value:!1}]}];case re.SELECT:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.OPTIONS_EDITOR,value:[],isOptionsEditorEnhanced:!0}];case re.CHECKBOX:case re.RADIO:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.OPTIONS_EDITOR,value:[]}];case re.TAGS:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.TAXONOMY,value:{...t$}}];case re.CONTENTLINK:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.CONTENTTYPE,value:{...r$}}];default:return[]}}function On(e,t){const r={...Fv(e,!1),id:t.name,mandatory:t.mandatory};return r.properties[0].value=t.label,r.properties[1].value=t.description,r}function I4(e){const t=[];return Object.keys(e).forEach(r=>{t.push({title:e[r],value:r})}),t}function i$(e){const t={...Fv(re.ADDFILEATTACHMENT,!1),id:e.name,mandatory:e.mandatory};return t.properties[0].value=e.label,t}function o$(e){const t={...Fv(re.CODEHTML,!1),id:e.name},r=e.properties.code;return typeof r=="object"&&r?.html&&typeof r.html=="string"?t.properties[0].value=r.html:typeof r=="string"&&(t.properties[0].value=r),t}function a$(){return Fv(re.IMAGE,!1)}function s$(e){const t=On(re.NUMBER,e);return t.properties[2].value=e.widget.params?.step==="0.01",t}function l$(e){const t=On(re.TAGS,e);return t.properties[2].value.id=+(e.widget.params?.idTaxonomy??1),t}function A$(e){const t=On(re.SELECT,e),r=e.widget.params?.defaultValue?{title:e.widget.options[e.widget.params?.defaultValue],value:e.widget.params?.defaultValue}:void 0,n={propertyOptions:I4(e.widget.options),canSelectMultiple:e.widget.multiple==="1",userCanModifiyByComment:e.widget.params?.explain==="1",defaultSelectOption:!!e.widget.params?.defaultValue,defaultSelectOptionValue:r};return t.properties[2].value=n,t}function O4(e){const t=On(re.RADIO,e),r={propertyOptions:I4(e.widget.options)};return t.properties[2].value=r,t}function c$(e){const t=O4(e);return t.type=re.CHECKBOX,t}function d$(e,t){const r=On(re.CONTENTLINK,e);r.properties[2].value.type=e.widget.params.types??"mpArticle";const n=t.entities===void 0?void 0:{entities:t.entities},i=n?C4.selectors.selectById(n,r.properties[2].value.type):void 0;return r.properties[2].value.label=i?.label??"Article",r}function u$(e){return On(re.TEXT,e)}function f$(e){return On(re.DESCRIPTION,e)}function g$(e){return On(re.TEXTAREAHTML,e)}function h$(e){return On(re.DATE,e)}function p$(e){return On(re.DATETIME,e)}function m$(e){return On(re.URL,e)}function v$(e){return On(re.IFRAMEVIDEO,e)}function y$(e){return On(re.EMAIL,e)}function x$(e){return On(re.TOGGLE,e)}function b$(e){return On(re.USERLINK,e)}function w$(e){return On(re.TEXTAREA,e)}const T4={"create-popup":"popup",create:"create",edit:"edit",display:"view",displayDisabled:"view"},Aj=["title","alertAuthor","sendAlert"],C$=["edito"];function E$(e,t,r){return Object.assign({},...AS.map(n=>{const i={};let o=[];ac[n]?.optional!==void 0&&(o=o.concat(ac[n]?.optional??[]));let a=[];ac[n]?.fixed!==void 0&&(a=a.concat(ac[n]?.fixed??[])),Object.entries(e[n]).forEach(([d,u])=>{if(u.isFixed||u.isOptional){i[d]=u;const f=a.findIndex(h=>h===u.type);f!==-1&&a.splice(f,1);const g=o.findIndex(h=>h===u.type);g!==-1&&o.splice(g,1)}});const s=new Set(a.concat(o)),A={[Te.CREATIONDATE]:()=>N4(!1),[Te.TITLE]:()=>qp({fixedValue:void 0}),[Te.USER]:()=>M4(!1),[Te.RECEIVEACOPY]:()=>k4({fixedValue:void 0}),[Te.SENDALERTTOSUBSCRIBERS]:()=>R4({fixedValue:void 0}),[Te.PUBLISHTO]:()=>L4({fixedValue:void 0})};s.forEach(d=>{const u=A[d];if(u){const[f,g]=u();i[f]=g}else console.error("ExtraAppFieldsItemViews does not have this field type: "+d)});const c=[];return r.forEach((d,u)=>{const f=d.views[n],g=Object.keys(e[n]).includes(d.id),h=d.type;if(cS.get(h)?.includes(n))return;let m;if(h===re.CODEHTML){const v=d.properties?.find(x=>x.propertyType===ot.RICHTEXT);v?.value&&(m=v?.value)}if(h===re.SELECT){const v=d.properties?.find(x=>x.propertyType===ot.OPTIONS_EDITOR);if(g){const x=e[n][d.id],b=x.properties?.find(E=>E.propertyType===ot.OPTIONS_EDITOR),w=!!v?.value?.canSelectMultiple,C=!!b?.value?.canSelectMultiple;w===C&&(m=x.value)}else{const x=v?.isOptionsEditorEnhanced&&v?.value.defaultSelectOption?v?.value.defaultSelectOptionValue:"";x&&(m=x)}}if(g){const v=e[n][d.id];i[d.id]={...v,properties:d.properties??v.properties??[],...m!==void 0&&{value:m},isUsed:f,pos:t?.[n]?u:v.pos,isLockedValue:(m!==void 0||v.value!==void 0)&&v.isLockedValue}}else{c.push({id:d.id,idx:u});const v=Object.values(e[n]).filter(x=>!x.isFixed&&!x.isOptional).length;i[d.id]={type:d.type,properties:d.properties??[],isUsed:f,isOptional:!1,isLockedValue:!1,isFixed:!1,value:m??null,pos:t?.[n]?u:v+u}}}),t?.[n]||c.forEach(d=>{const u=i[d.id];u.pos=d.idx+1,Object.keys(i).forEach(f=>{const g=i[f];g&&!Object.values(TZ).includes(f)&&f!==d.id&&g.pos>=u.pos&&g.pos++})}),{[n]:i}}))}function B$(e){return e.map(t=>({id:`${t.type}/${t.id}`,uri:`${t.type}/${t.id}`,shortUri:`${t.type}/${t.id}`,title:t.title,name:t.title,mainType:t.type,type:t.mainType,label:t.type,cssClass:t._cssClass,cssColor:t._cssColor,class:t._cssClass,Pseudo:t.title,_url:t._url}))}function S$(e,t,r){const n=e.typeModel.tables,i=e.typeModel.displays;if(!i)return;const o=new Map;Object.entries(i).forEach(a=>{const[s,A]=a;Object.keys(T4).includes(s)&&D$(t,o,s,A,n,r)}),I$(t,o,e.columns,n,r),O$(t,o,e.attrExposed,n,r)}function D$(e,t,r,n,i,o){const a=T4[r];if(e.views[a]={},a==="view"){const[s,A]=qp({fixedValue:void 0});e.views[a][s]=A}n.composants.forEach((s,A)=>{let c;if(s.name&&C$.includes(s.name))return;const[d,u]=P$(e,t,s,i,o);if(d===-1&&u)switch(u.ref){case"title":{if(a==="view")break;const[f,g]=qp(u);e.views[a][f]=g;break}case"alertAuthor":{const[f,g]=k4(u);e.views[a][f]=g;break}case"sendAlert":{const[f,g]=R4(u);e.views[a][f]=g;break}case"publishTo":{const[f,g]=L4(u);e.views[a][f]=g;break}default:console.error("fixed field info with unsupported ref ",u);break}else if(d!==-1){if(c=e.fields[d],!c?.views)throw new Error(`error converting installed app to V2: created field not found in fields array: ${d}, ${u}`);c.views[a]=!0,P4(a,c,e,A,u)}})}function I$(e,t,r,n,i){r&&Object.keys(r).forEach((o,a)=>{j4(e,t,n,"list",o,a,i)})}function O$(e,t,r,n,i){r.forEach((o,a)=>{j4(e,t,n,"filter",o,a,i)})}function j4(e,t,r,n,i,o,a){switch(i){case"title":{const[s,A]=qp({fixedValue:void 0});e.views[n][s]=A;break}case"iduser":case"idUser":{const[s,A]=M4();e.views[n][s]=A;break}case"datecreation":case"dateCreation":{const[s,A]=N4();e.views[n][s]=A;break}default:T$(e,t,r,n,i,o,a);break}}function T$(e,t,r,n,i,o,a){const s=j$(e,t,r,i,a),A=e.fields[s];if(!A?.views)throw new Error(`error converting installed app to V2: unable to handle ${i} in list view`);A.views[n]=!0,P4(n,A,e,o,void 0)}function j$(e,t,r,n,i){const o=t.get(n);if(o!==void 0)return o;const[a,s]=MC(e,n,r,i);return t.set(a,s),s}function P$(e,t,r,n,i){if(r.name!==void 0&&r.element==="attr"){if(Aj.includes(r.name))return[-1,{ref:r.name,fixedValue:void 0}];const o=t.get(r.name);if(o!==void 0)return[o,void 0];const[a,s]=MC(e,r.name,n,i);return t.set(a,s),[s,void 0]}else if(r.element==="html"){const o=r.html;if(o===void 0)return console.error("error while parsing studio installed html attr in a view: no html code"),[-1,void 0];if(o.includes("<JAMESPOT.STUDIO.FIXED>")){const a=o.indexOf("<JAMESPOT.STUDIO.FIXED>")+23,s=o.indexOf("</JAMESPOT.STUDIO.FIXED>"),A=o.substring(a,s);try{const c=JSON.parse(A);if(c?.ref.toUpperCase()in Te){const g=c.ref.toUpperCase();return[-1,{...c,ref:D4(g)}]}if(Aj.includes(c?.ref))return[-1,c];const d=t.get(c?.ref);if(d!==void 0)return[d,c];const[u,f]=MC(e,c.ref,n,i);return t.set(u,f),[f,c]}catch{return console.error("error while parsing studio installed fixed attr in a view: json parsing failed"),[-1,void 0]}}else if(o.includes("<JAMESPOT.STUDIO.CODEHTML>"))try{const a=o.indexOf("<JAMESPOT.STUDIO.CODEHTML>")+26,s=o.indexOf("</JAMESPOT.STUDIO.CODEHTML>"),A=o.substring(a,s),c=JSON.parse(A),d=t.get(c?.name);if(d!==void 0)return[d,void 0];const u=o$(c),f=e.fields.push(u)-1;return t.set(u.id,f),[f,void 0]}catch{return console.error("error while parsing studio installed codehtml attr in a view: json parsing failed"),[-1,void 0]}else return console.error("error while parsing studio installed html attr in a view: unknown html format"),[-1,void 0]}else if(r.element==="image"){const o=t.get("image");if(o!==void 0)return[o,void 0];const a=a$(),s=e.fields.push(a)-1;return t.set("image",s),[s,void 0]}else return r.element==="publishTo"?[-1,{ref:"publishTo",fixedValue:void 0}]:(console.error("error while parsing studio installed attr in a view: unknown attr :O"),[-1,void 0])}function MC(e,t,r,n){const i=k$(t,r),o=R$(i),a=(function(){switch(o){case re.ADDFILEATTACHMENT:return i$(i);case re.NUMBER:return s$(i);case re.TAGS:return l$(i);case re.SELECT:return A$(i);case re.RADIO:return O4(i);case re.CHECKBOX:return c$(i);case re.CONTENTLINK:return d$(i,n);case re.DESCRIPTION:return f$(i);case re.TEXTAREAHTML:return g$(i);case re.DATE:return h$(i);case re.DATETIME:return p$(i);case re.URL:return m$(i);case re.IFRAMEVIDEO:return v$(i);case re.EMAIL:return y$(i);case re.TOGGLE:return x$(i);case re.USERLINK:return b$(i);case re.TEXTAREA:return w$(i);case re.TEXT:default:return u$(i)}})(),s=e.fields.push(a)-1;return[t,s]}function k$(e,t){let r;for(let n=0;n<t.length&&!r;n++)r=t[n]?.attributes.find(i=>i.name===e);if(!r)throw new Error("error converting installed app to V2: installed field not found in tables "+e);return r}function P4(e,t,r,n,i){t.views&&(t.views[e]=!0,r.views[e][t.id]={type:t.type,properties:t.properties??[],isUsed:!0,isOptional:!1,isLockedValue:!!i?.fixedValue,isFixed:!1,value:i?.fixedValue??null,pos:n})}function R$(e){switch(e.widget.type){case"number":return re.NUMBER;case"taxonomy":return re.TAGS;case"date":return re.DATE;case"datetime":return re.DATETIME;case"select":return re.SELECT;case"radio":return re.RADIO;case"url":return re.URL;case"iframeVideo":return re.IFRAMEVIDEO;case"email":return re.EMAIL;case"file":return re.ADDFILEATTACHMENT;case"checkbox":return e.widget.options?.["1"]==="GLOBAL_Yes"?re.TOGGLE:re.CHECKBOX;case"uri":if(e.widget.params?.views==="user")return re.USERLINK;if(e.widget.params?.views==="article")return re.CONTENTLINK;break;case"textarea":if(e.attrType==="longtext"||e.attrType==="text")return re.TEXTAREA;if(e.attrType==="html")return e.name==="description"?re.DESCRIPTION:re.TEXTAREAHTML;break;case"text":return re.TEXT}throw new Error("error converting installed app to V2: installed field type not recognized for field "+e.name+":"+JSON.stringify(e))}function qp(e,t=!0){return["title",{type:Te.TITLE,properties:[],isUsed:t,isOptional:!1,isLockedValue:!!e?.fixedValue,isFixed:!0,value:e?.fixedValue??null,pos:0}]}function k4(e,t=!0){return["alertAuthor",{type:Te.RECEIVEACOPY,properties:[],isUsed:t,isOptional:!0,isLockedValue:e?.fixedValue!==void 0,isFixed:!1,value:e?.fixedValue??!0,pos:300}]}function R4(e,t=!0){return["sendAlert",{type:Te.SENDALERTTOSUBSCRIBERS,properties:[],isUsed:t,isOptional:!0,isLockedValue:e?.fixedValue!==void 0,isFixed:!1,value:e?.fixedValue??!0,pos:200}]}function L4(e,t=!0){return["publishTo",{type:Te.PUBLISHTO,properties:[],isUsed:t,isOptional:!0,isLockedValue:!!e?.fixedValue,isFixed:!1,value:e?.fixedValue??[],pos:100}]}function M4(e=!0,t=!1){return["user",{type:Te.USER,properties:[],isUsed:e,isOptional:t,isLockedValue:!1,isFixed:!t,value:null,pos:1}]}function N4(e=!0){return["dateCreation",{type:Te.CREATIONDATE,properties:[],isUsed:e,isOptional:!0,isLockedValue:!1,isFixed:!1,value:null,pos:100}]}var JA=(e=>(e.TITLE="TITLE",e.IMAGE="IMAGE",e.DESCRIPTION="DESCRIPTION",e.IDUSER="IDUSER",e.PUBLISHTO="PUBLISHTO",e.SENDALERTTOSUBSCRIBERS="SENDALERTTOSUBSCRIBERS",e.RECEIVEACOPY="RECEIVEACOPY",e.TEXT="TEXT",e.TEXTAREA="TEXTAREA",e.TEXTAREAHTML="TEXTAREAHTML",e.DATE="DATE",e.DATETIME="DATETIME",e.RANGE="RANGE",e.NUMBER="NUMBER",e.URL="URL",e.EMAIL="EMAIL",e.SELECT="SELECT",e.CHECKBOX="CHECKBOX",e.TOGGLE="TOGGLE",e.RADIO="RADIO",e.TAGS="TAGS",e.ADDFILEATTACHMENT="ADDFILEATTACHMENT",e.AUDIENCE="AUDIENCE",e.CODEHTML="CODEHTML",e.DATECREATION="DATECREATION",e.USERLINK="USERLINK",e.CONTENTLINK="CONTENTLINK",e))(JA||{});function F4(e){const t=e,r=t.manifest,n=o(),i={idApp:t.idApp,status:t.status,studioVersion:2,author:t.author??"",manifest:{appShortName:r.appShortName,appName:r.appName,description:r.description,author:r.author??"",typeLabel:r.typeLabel,cssColor:r.cssColor,cssClass:r.cssClass,version:r.version,dateCreation:new Date(r.dateCreation).toISOString(),viewSolr:r.viewSolr,checkAccess:r.checkAccess,accessRightList:r.accessRightList??"",attrExposed:r.attrExposed},fields:n,views:c(),audience:t.audience??"1",installFor:t.installFor??[]};function o(){const f=[];for(const g of t.form.formItems){const h=a(g.type);f.push({id:g.id,type:h,properties:s(g.properties??{}),mandatory:g.mandatory??!1,views:g.views,isActive:!0,isFixed:!1,isOptional:!1,value:null})}return f}function a(f){return re[f]}function s(f){const g=[],h=f.options&&Object.prototype.hasOwnProperty.call(f,"hasDefaultValue"),m={isRequired:f.mandatory??!1,...h&&{isOptionsEditorEnhanced:!0}};return f.labels&&(g.push({propertyType:ot.LABEL,value:f.labels.label?.content??"",...m}),g.push({propertyType:ot.DESCRIPTION,value:f.labels.description?.content??"",...m})),f.options&&g.push({propertyType:ot.OPTIONS_EDITOR,value:h?{propertyOptions:A(f.options??[]),defaultSelectOptionValue:f.defaultValue,defaultSelectOption:f.hasDefaultValue??!1,canSelectMultiple:f.multiple??!1,userCanModifiyByComment:f.explain??!1}:{propertyOptions:A(f.options??[])},...m}),f.code&&g.push({propertyType:ot.RICHTEXT,value:{html:f.code.html,text:f.code.text},...m}),Object.prototype.hasOwnProperty.call(f,"digits")&&g.push({propertyType:ot.CHECKBOX,value:f.digits??!1,checkBoxOptions:[{label:"APPSTUDIO_FormEditProps_Digits",value:f.digits}],...m}),Object.prototype.hasOwnProperty.call(f,"taxonomy")&&g.push({propertyType:ot.TAXONOMY,value:f.taxonomy??"",...m}),Object.prototype.hasOwnProperty.call(f,"contentType")&&g.push({propertyType:ot.CONTENTTYPE,value:f.contentType??"",...m}),g}function A(f){const g=[];for(const h of f)g.push({title:h.label,value:h.value});return g}function c(){return{create:d(t.formItemsViewList.find(f=>f.view=="create").formItemRefs),popup:d(t.formItemsViewList.find(f=>f.view=="popup").formItemRefs),edit:d(t.formItemsViewList.find(f=>f.view=="edit").formItemRefs),list:d(t.formItemsViewList.find(f=>f.view=="list").formItemRefs),filter:d(t.formItemsViewList.find(f=>f.view=="filter").formItemRefs),view:d(t.formItemsViewList.find(f=>f.view=="view").formItemRefs)}}function d(f){const g={};return f.forEach(h=>{const m={isUsed:!0,isFixed:!1,isOptional:!1,properties:[],pos:0,isLockedValue:!!h.fixedValue||!1,value:h.fixedValue??""};if(h.ref===JA.TITLE)g[No()]={...m,type:Te.TITLE,isFixed:!0};else if(h.ref===JA.IDUSER)g[No()]={...m,type:Te.USER,isFixed:!0};else if(h.ref===JA.PUBLISHTO)g[No()]={...m,type:Te.PUBLISHTO,isOptional:!0};else if(h.ref===JA.SENDALERTTOSUBSCRIBERS)g[No()]={...m,type:Te.SENDALERTTOSUBSCRIBERS,isOptional:!0};else if(h.ref===JA.RECEIVEACOPY)g[No()]={...m,type:Te.RECEIVEACOPY,isOptional:!0};else{const v=u(h);v&&(g[v.id]={type:v.type,...m,properties:v.properties??[]})}}),g}function u(f){const g=t.form.formItems.find(h=>f.ref===h.id||f.ref===h.name);return g?n.find(h=>h.id===g.id):null}return i}function NC(e){const t=e.views?.list;if(t)for(const r of Object.keys(t)){const n=t[r];n?.type===Te.USER&&n.isFixed&&(n.isFixed=!1,n.isOptional=!0)}}function L$(e,t,r){const{version:n,dateCreation:i}=e.manifest,o=e.typeModel,a=Object.assign({},...AS.map(f=>({[f]:{}}))),s=e,A=!!e.columns&&Object.keys(e.columns).length>0,c={idApp:e.idApp,status:FC(e),studioVersion:2,manifest:{appShortName:e.label,appName:e.label,description:e.description,author:e.author,cssColor:o.cssColor??"#392994",cssClass:{label:o.cssClass??"star",value:o.cssClass??"star"},version:n,dateCreation:i,checkAccess:!1,accessRightList:"",attrExposed:[],display:e.manifest?.studioView==="tableReact"?Ol.TABLE_REACT:A?Ol.TABLE:Ol.FLUX,viewSolr:e.view==="solr"?RC.SOLR:RC.NOT_SOLR,typeLabel:o.typeLabel,articlesCount:e.articlesCount??0,displayContentLegacyTable:!!s?.typeModel?.displays?.displayDisabled},fields:[],views:a,installFor:e.accessRightObjectList?B$(e.accessRightObjectList):[],audience:e.checkAccess===!1?Jp.ALL:Jp.CUSTOM};S$(e,c,r),c.views=E$(c.views,c.syncViewFieldOrder,c.fields);const d=M$(e.idApp,t);if(!d)return c;const u=H4(d);return u&&(c.inWorkVersion=u),c}function H4(e){if(!e.value)return;const t=JSON.parse(e.value);if(t.studioVersion==2){const r={idApp:e.idApp,studioVersion:2,status:FC(e),manifest:t.manifest,fields:t.fields,views:t.views,syncViewFieldOrder:t.syncViewFieldOrder,audience:t.audience,installFor:t.installFor,viewsConfig:t.viewsConfig};return NC(r),r}else{const r={...F4(t),status:FC(e),migratedFrom:1};return NC(r),r}}function FC(e){return e.status===q.StudioApplicationStatus.installed?e.suspended?pc.suspended:pc.installed:pc.draft}function M$(e,t){return t.find(r=>r.idApp===e&&r.status===q.StudioApplicationStatus.saved)}function N$(e,t){return!!t.find(r=>r.idApp===e&&r.status===q.StudioApplicationStatus.installed)}function Q4(e,t){return e.map(r=>{try{return r.status===q.StudioApplicationStatus.installed?L$(r,e,t):N$(r.idApp,e)?void 0:H4(r)}catch(n){console.error(n);return}}).filter(r=>r!==void 0)}const F$={currentStudioApp:null,fetchCurrentStudioAppStatus:"idle",saveCurrentStudioAppStatus:"idle",installStudioAppStatus:"idle",hasChanged:!1},Bb=me("studio/fetchCurrentStudioApp",async({idApp:e,status:t},{extra:r,rejectWithValue:n,getState:i})=>{const o=r.jApi,a={error:1,errorMsg:"Error fetching application"};try{const s=(await o.application.studioGet(e,t)).result;return Q4([s],i())[0]||n(a)}catch{return n(a)}}),Sb=me("studio/saveCurrentStudioApp",async(e,{extra:t,rejectWithValue:r,getState:n,dispatch:i})=>{const o=t.jApi,a={error:1,errorMsg:"Error saving application"},s=n().studio.currentStudioApp.currentStudioApp;if(!s)return r(a);const A=JSON.stringify(s);try{await o.application.studioSave(s.idApp,A,"saved"),i(xe.actions.success({label:"APPSTUDIO_AppItem_Edition_Saved"}));return}catch(c){return i(xe.actions.error({label:Le(c)})),r(a)}}),Db=me("studio/installApp",async({callback:e},{extra:t,rejectWithValue:r,getState:n,dispatch:i})=>{const o=t.jApi,a={error:1,errorMsg:"Error saving application"},s=n().studio.currentStudioApp.currentStudioApp;if(!s)return r(a);const A=LZ(s);try{await o.application.studioInstall(A),i(xe.actions.success({label:"APPSTUDIO_AppItem_Installed"})),e&&e();return}catch(c){return i(xe.actions.error({label:Le(c)})),r(a)}}),Yp=ke({name:"currentStudioApp",initialState:F$,reducers:{setCurrentApp:(e,t)=>{e.currentStudioApp=t.payload},resetCurrentApp:e=>{e.currentStudioApp=null},setHasChanged:(e,t)=>{e.hasChanged=t.payload}},extraReducers:e=>{e.addCase(Bb.pending,t=>{t.fetchCurrentStudioAppStatus==="idle"&&(t.fetchCurrentStudioAppStatus="pending")}).addCase(Bb.fulfilled,(t,r)=>{t.fetchCurrentStudioAppStatus==="pending"&&(t.fetchCurrentStudioAppStatus="idle"),t.currentStudioApp=r.payload}).addCase(Bb.rejected,t=>{t.fetchCurrentStudioAppStatus==="pending"&&(t.fetchCurrentStudioAppStatus="idle")}).addCase(Sb.pending,t=>{t.saveCurrentStudioAppStatus==="idle"&&(t.saveCurrentStudioAppStatus="pending")}).addCase(Sb.fulfilled,t=>{t.saveCurrentStudioAppStatus==="pending"&&(t.saveCurrentStudioAppStatus="idle")}).addCase(Sb.rejected,t=>{t.saveCurrentStudioAppStatus==="pending"&&(t.saveCurrentStudioAppStatus="idle")}).addCase(Db.pending,t=>{t.installStudioAppStatus==="idle"&&(t.installStudioAppStatus="pending")}).addCase(Db.fulfilled,t=>{t.installStudioAppStatus==="pending"&&(t.installStudioAppStatus="idle")}).addCase(Db.rejected,t=>{t.installStudioAppStatus==="pending"&&(t.installStudioAppStatus="idle")})}});function U4(e,t,r){const n=e.studioVersion!==2?JSON.parse(JSON.stringify(F4(e))):JSON.parse(JSON.stringify(e));if(delete n.inWorkVersion,r)n.manifest.version=n.manifest.version+.1;else{const i=No(),o=`${e.manifest.appName} Copie`;n.idApp=i,n.status=Ro.DRAFT,n.manifest={...n.manifest,appName:o,appShortName:o,author:t??n.manifest.author??"",dateCreation:new Date().toISOString(),version:.1,articlesCount:0}}return NC(n),[n,n.idApp]}function H$({author:e,appName:t}){const r=No(),n=Object.assign({},...AS.map(i=>{const o={};return ac[i]?.fixed.forEach((a,s)=>{o[No()]={type:a,properties:[],isUsed:!0,isOptional:!1,isFixed:!0,isLockedValue:!1,value:null,pos:s}}),ac[i]?.optional.forEach((a,s)=>{const A=i==="list"&&a==="USER";o[No()]={type:a,properties:[],isUsed:!0,isOptional:!0,isFixed:!1,isLockedValue:!1,value:a==="SENDALERTTOSUBSCRIBERS"||a==="RECEIVEACOPY"?!0:null,pos:A?1:(s+1)*100}}),{[i]:o}}));return{newAppId:r,newStudioApp:{idApp:r,status:Ro.DRAFT,author:e??"",studioVersion:2,manifest:{appShortName:t,appName:t,author:e??"",description:"",typeLabel:"",cssColor:"#392994",cssClass:{label:"star",value:"star"},version:.1,dateCreation:new Date().toISOString(),viewSolr:RC.SOLR,display:Ol.TABLE,checkAccess:!1,accessRightList:"",attrExposed:[],articlesCount:0},syncViewFieldOrder:{create:!0,popup:!0,view:!0,edit:!0,list:!0,filter:!0},fields:[],views:n,audience:Jp.CUSTOM,installFor:[]}}}function Dg(e,t){return e.manifest.appName>t.manifest.appName?1:-1}const Q$={loadingStudioAppsList:"idle",deleteStudioAppStatus:"idle",suspendStudioAppStatus:"idle",restartStudioAppStatus:"idle",cloneStudioAppStatus:"idle",createInWorkAppStatus:"idle",createNewStudioAppStatus:"idle"},Ib=me("studio/appsList",async(e,{extra:t,rejectWithValue:r,dispatch:n,getState:i})=>{const o=t.jApi;try{const{result:a}=await o.application.studioList(),s=await o.taxonomy.list(),A=(await Promise.allSettled(a.map(async d=>{const u=(await o.application.studioGet(d.idApp,d.status)).result,f=(await o.article.count(d.idApp)).result;return{...u,articlesCount:f}}))).map(d=>d.status==="fulfilled"?d.value:null).reduce((d,u)=>u!==null?d.concat([u]):d,[]),c=Q4(A,i());return c.forEach(async d=>{d.fields=cj(d.fields,s,e),d.inWorkVersion&&(d.inWorkVersion.fields=cj(d.inWorkVersion.fields,s,e))}),c}catch(a){throw console.error(a),n(xe.actions.error({label:Le(a)})),r({error:1,errorMsg:"Error retrieving applications"})}});function cj(e,t,r){return e.map(n=>{if(n.type!==re.TAGS)return n;const i=JSON.parse(JSON.stringify(n)),o=i.properties?.find(s=>s.propertyType===ot.TAXONOMY),a=t.find(s=>s.id===o?.value.id);return a&&o&&(o.value.title=r.formatMessage({id:a.title}),o.value.type=a.type),i})}const Ob=me("studio/createApp",async({appName:e,callback:t},{extra:r,dispatch:n,rejectWithValue:i,getState:o})=>{const a=r.jApi,s=o().userCurrent?.uri,{newAppId:A,newStudioApp:c}=H$({appName:e,...s&&{author:s}});try{return await a.application.studioSave(A,JSON.stringify(c),"saved"),n(xe.actions.success({label:"APPSTUDIO_StudioApp_Created"})),n(Yp.actions.setCurrentApp(c)),t&&t(),c}catch(d){throw n(xe.actions.error({label:Le(d)})),i({error:1,errorMsg:"Error creating application"})}}),Tb=me("studio/deleteApp",async({idApp:e,status:t},{extra:r,rejectWithValue:n,dispatch:i})=>{const o=r.jApi;try{const a=await o.application.studioDelete(e,t);return i(xe.actions.success({label:"APPSTUDIO_StudioApp_Deleted"})),a}catch(a){return i(xe.actions.error({label:Le(a)})),n({error:1,errorMsg:"Error deleting application"})}}),jb=me("studio/suspendStudioApp",async({idApp:e},{extra:t,rejectWithValue:r,dispatch:n})=>{const i=t.jApi;try{await i.application.studioSuspend(e),n(xe.actions.success({label:"APPSTUDIO_AppItem_Suspended"}))}catch(o){throw n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"Error suspending application"})}}),Pb=me("studio/restartStudioApp",async({idApp:e},{extra:t,rejectWithValue:r,dispatch:n})=>{const i=t.jApi;try{await i.application.studioRestart(e),n(xe.actions.success({label:"APPSTUDIO_AppItem_Restarted"}))}catch(o){throw n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"Error restarting application"})}}),kb=me("studio/cloneStudioApp",async({idApp:e,inWork:t},{extra:r,getState:n,rejectWithValue:i,dispatch:o})=>{const a=r.jApi;let s=n().studio.studioAppsList.studioAppsList?.find(f=>f.idApp===e);if(!s)return i({error:1,errorMsg:"Error cloning application"});if(t)if(s.inWorkVersion!==void 0)s=s.inWorkVersion;else return i({error:1,errorMsg:"Error cloning application"});const A=n().userCurrent?.uri,[c,d]=U4(s,A),u=JSON.stringify(c);try{return await a.application.studioSave(d,u,"saved"),o(xe.actions.success({label:"APPSTUDIO_AppItem_Cloned"})),c}catch(f){return o(xe.actions.error({label:Le(f)})),i({error:1,errorMsg:"Error cloning application"})}}),Rb=me("studio/createInWorkStudioApp",async({idApp:e},{extra:t,getState:r,rejectWithValue:n,dispatch:i})=>{const o=t.jApi,a=r().studio.studioAppsList.studioAppsList?.find(u=>u.idApp===e);if(!a||![Ro.INSTALLED,Ro.SUSPENDED].includes(a.status))return n({error:1,errorMsg:"Error cloning application"});const s=r().userCurrent?.uri,[A,c]=U4(a,s,!0),d=JSON.stringify(A);try{return await o.application.studioSave(c,d,"saved"),i(xe.actions.success({label:"APPSTUDIO_AppItem_CreateInWork"})),A}catch(u){return i(xe.actions.error({label:Le(u)})),n({error:1,errorMsg:"Error creating in work version for application"})}}),HC=ke({name:"studioAppsList",initialState:Q$,reducers:{setAppsList:(e,t)=>{e.studioAppsList=[...t.payload].sort(Dg)}},extraReducers:e=>{e.addCase(Ib.pending,t=>{t.loadingStudioAppsList==="idle"&&(t.loadingStudioAppsList="pending")}).addCase(Ib.fulfilled,(t,r)=>{t.loadingStudioAppsList==="pending"&&(t.loadingStudioAppsList="idle"),t.studioAppsList=[...r.payload].sort(Dg)}).addCase(Ib.rejected,t=>{t.loadingStudioAppsList==="pending"&&(t.loadingStudioAppsList="idle")}).addCase(Tb.pending,t=>{t.deleteStudioAppStatus==="idle"&&(t.deleteStudioAppStatus="pending")}).addCase(Tb.fulfilled,(t,r)=>{t.deleteStudioAppStatus==="pending"&&(t.deleteStudioAppStatus="idle"),t.studioAppsList=t.studioAppsList?.reduce((n,i)=>{const{idApp:o}=r.meta.arg;let{status:a}=r.meta.arg;return a===Ro.INSTALLED&&(a=Ro.SUSPENDED),i.idApp===o&&i.status===a?i.inWorkVersion&&i.status===Ro.SUSPENDED?(i.inWorkVersion.status=Ro.DRAFT,[...n,i.inWorkVersion]):n:(i.inWorkVersion?.idApp===o&&i.inWorkVersion?.status===a&&delete i.inWorkVersion,[...n,i])},[])??[]}).addCase(Tb.rejected,t=>{t.deleteStudioAppStatus==="pending"&&(t.deleteStudioAppStatus="idle")}).addCase(jb.pending,t=>{t.suspendStudioAppStatus==="idle"&&(t.suspendStudioAppStatus="pending")}).addCase(jb.fulfilled,(t,r)=>{t.suspendStudioAppStatus==="pending"&&(t.suspendStudioAppStatus="idle"),t.studioAppsList=t.studioAppsList?.map(n=>{const{idApp:i}=r.meta.arg;return n.idApp===i&&(n.status=Ro.SUSPENDED),n})??[]}).addCase(jb.rejected,t=>{t.suspendStudioAppStatus==="pending"&&(t.suspendStudioAppStatus="idle")}).addCase(Pb.pending,t=>{t.restartStudioAppStatus==="idle"&&(t.restartStudioAppStatus="pending")}).addCase(Pb.fulfilled,(t,r)=>{t.restartStudioAppStatus==="pending"&&(t.restartStudioAppStatus="idle"),t.studioAppsList=t.studioAppsList?.map(n=>{const{idApp:i}=r.meta.arg;return n.idApp===i&&(n.status=Ro.INSTALLED),n})??[]}).addCase(Pb.rejected,t=>{t.restartStudioAppStatus==="pending"&&(t.restartStudioAppStatus="idle")}).addCase(kb.pending,t=>{t.cloneStudioAppStatus==="idle"&&(t.cloneStudioAppStatus="pending")}).addCase(kb.fulfilled,(t,r)=>{t.cloneStudioAppStatus==="pending"&&(t.cloneStudioAppStatus="idle"),t.studioAppsList=[...t.studioAppsList??[],r.payload].sort(Dg)}).addCase(kb.rejected,t=>{t.cloneStudioAppStatus==="pending"&&(t.cloneStudioAppStatus="idle")}).addCase(Rb.pending,t=>{t.createInWorkAppStatus==="idle"&&(t.createInWorkAppStatus="pending")}).addCase(Rb.fulfilled,(t,r)=>{t.createInWorkAppStatus==="pending"&&(t.createInWorkAppStatus="idle");const n=t.studioAppsList?.find(i=>i.idApp===r.payload.idApp);n&&(n.inWorkVersion=r.payload)}).addCase(Rb.rejected,t=>{t.createInWorkAppStatus==="pending"&&(t.createInWorkAppStatus="idle")}).addCase(Ob.pending,t=>{t.createNewStudioAppStatus==="idle"&&(t.createNewStudioAppStatus="pending")}).addCase(Ob.fulfilled,(t,r)=>{t.createNewStudioAppStatus==="pending"&&(t.createNewStudioAppStatus="idle"),t.studioAppsList=[...t.studioAppsList??[],r.payload].sort(Dg)}).addCase(Ob.rejected,t=>{t.createNewStudioAppStatus==="pending"&&(t.createNewStudioAppStatus="idle")})}});In({[HC.name]:HC.reducer,[Yp.name]:Yp.reducer});({...HC.actions,...Yp.actions});const U$={messages:[],status:"idle",summary:void 0,jobUid:void 0},QC=ke({name:"teamWorkAiDaySummary",initialState:U$,reducers:{setDaySummaryMessageAndStatus:(e,t)=>{if(t.payload.jobUid!==e.jobUid)return;const{status:r,messages:n}=t.payload;e.status=r,e.messages=n},setDaySummary:(e,t)=>{t.payload.jobUid===e.jobUid&&(e.summary=t.payload.summary)},resetDaySummaryState:e=>{e.status="idle",e.messages=[],e.jobUid=void 0,e.summary=void 0}},extraReducers:e=>{e.addCase(Lb.pending,(t,r)=>{t.status="pending",t.messages=["APP_TeamWork_IA_Generation_Started"]}),e.addCase(Lb.fulfilled,(t,r)=>{t.status=r.payload.state,t.messages=r.payload.messages,t.summary=r.payload.summary,t.jobUid=r.payload.jobUid}),e.addCase(Lb.rejected,(t,r)=>{t.status="error",t.messages=[r.payload?.errorMsg??"GLOBAL_Technical_Error"]})}}),Lb=me("teamWork/Ai/startDaySummaryCreation",async(e,{extra:t,rejectWithValue:r,dispatch:n,signal:i})=>{try{return(await t.jApi.teamWorkAi.daySummary({forceGeneration:e},{signal:i})).result}catch(o){return Lt(o)||n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"APP_TEAMWORK_ToDo_Not_Sent"})}}),z$={messages:[],status:"idle",tasks:void 0,jobUid:void 0,uriAiTodo:void 0},UC=ke({name:"teamWorkAiTasks",initialState:z$,reducers:{setTasksMessageAndStatus:(e,t)=>{if(t.payload.jobUid!==e.jobUid)return;const{status:r,messages:n}=t.payload;e.status=r,e.messages=n},setTasks:(e,t)=>{t.payload.jobUid===e.jobUid&&(e.tasks=t.payload.tasks,e.uriAiTodo=t.payload.uriAiTodo)},resetTasksState:e=>{e.status="idle",e.messages=[],e.jobUid=void 0,e.tasks=void 0,e.uriAiTodo=void 0}},extraReducers:e=>{e.addCase(Mb.pending,(t,r)=>{t.status="pending",t.messages=["APP_TeamWork_IA_Generation_Started"]}),e.addCase(Mb.fulfilled,(t,r)=>{t.status=r.payload.state,t.messages=r.payload.messages,t.tasks=r.payload.tasks,t.jobUid=r.payload.jobUid,t.uriAiTodo=r.payload.uriAiTodo}),e.addCase(Mb.rejected,(t,r)=>{t.status="error",t.messages=[r.payload?.errorMsg??"GLOBAL_Technical_Error"]}),e.addCase(W$.fulfilled,(t,r)=>{t.tasks=r.payload})}}),Mb=me("teamWork/Ai/startToDoCreation",async(e,{extra:t,rejectWithValue:r,dispatch:n,signal:i})=>{try{return(await t.jApi.teamWorkAi.generateToDo({forceGeneration:e},{signal:i})).result}catch(o){return Lt(o)||n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"APP_TEAMWORK_ToDo_Not_Sent"})}}),W$=me("teamWork/Ai/setToDoDone",async(e,{extra:t,rejectWithValue:r,dispatch:n,signal:i})=>{try{return(await t.jApi.teamWorkAi.todoDone(e,{signal:i})).result}catch(o){return Lt(o)||n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"GLOBAL_Technical_Error"})}});In({[UC.name]:UC.reducer,[QC.name]:QC.reducer});({...UC.actions,...QC.actions});const G$={},zC=ke({name:"options",initialState:G$,reducers:{initOptions:(e,{payload:t})=>t}});In({[zC.name]:zC.reducer});({...zC.actions});const V$={channels:void 0,loading:"idle",loadingChannelDeletion:"idle"},cp=me("/fetchChannels",async(e,{extra:t})=>{const r=e??1,n=t.jApi;return await new Promise((i,o)=>{const a={type:"tvDisplayChannel",page:r,orders:[{name:"id",sort:"DESC"}]};n.article.list(a,{format:"raw-list"}).then(s=>{i(s.result)}).catch(s=>{o({error:s.error??1,errorMsg:s.errorMsg??"Error retrieving channels"})})})}),Nb=me("/deleteChannel",async({channel:e},{extra:t,dispatch:r})=>{const n=t.jApi;return await new Promise((i,o)=>{n.article.delete(e.id).then(a=>{i(a.result),r(cp())}).catch(a=>{o({error:a.error??1,errorMsg:a.errorMsg??"Error deleting channel"})})})}),dj=ke({name:"channelsList",initialState:{...V$},reducers:{},extraReducers:e=>{e.addCase(cp.pending,t=>{t.loading==="idle"&&(t.loading="pending")}).addCase(cp.fulfilled,(t,r)=>{t.loading==="pending"&&(t.loading="idle",t.channels=r.payload)}).addCase(cp.rejected,t=>{t.loading==="pending"&&(t.loading="idle")}).addCase(Nb.pending,t=>{t.loadingChannelDeletion="pending"}).addCase(Nb.fulfilled,t=>{t.loadingChannelDeletion==="pending"&&(t.loadingChannelDeletion="idle")}).addCase(Nb.rejected,t=>{t.loadingChannelDeletion==="pending"&&(t.loadingChannelDeletion="idle")})}});In({[dj.name]:dj.reducer});const X$={id:0,mainType:"user",type:"user",uri:"user/0",title:"",_url:"",dateCreation:"",dateModified:"",level:0,active:1},_$=ke({name:"userCurrent",initialState:X$,reducers:{init:(e,{payload:t})=>t}});({..._$.actions});const WC=[{name:"name",sort:"ASC"}],K$={list:{loading:"idle",data:[],page:1,filters:[],orders:WC,limit:20,nbResults:0},tab:"my"},uj=ke({name:"visioConnect",initialState:K$,reducers:{setTab:(e,t)=>{e.tab=t.payload,e.list.page=1,q.deepEqual(e.list.orders,WC)||(e.list.orders=WC),e.list.filters.length>0&&(e.list.filters=[])},setPage:(e,t)=>{e.list.page=t.payload},setFilters:(e,t)=>{q.deepEqual(e.list.filters,t.payload)||(e.list.filters=t.payload)},setOrders:(e,t)=>{q.deepEqual(e.list.orders,t.payload)||(e.list.orders=t.payload)}},extraReducers:e=>{e.addCase(dp.pending,t=>{t.list.loading="pending"}).addCase(dp.fulfilled,(t,r)=>{t.list.loading="idle",t.list.data=r.payload.data,t.list.nbResults=r.payload.cnt}).addCase(dp.rejected,t=>{t.list.loading="idle"}).addCase(up.pending,t=>{t.list.loading="pending"}).addCase(up.fulfilled,(t,r)=>{t.list.loading="idle",t.list.data=r.payload.data,t.list.nbResults=r.payload.cnt}).addCase(up.rejected,t=>{t.list.loading="idle"})}}),dp=me("visioConnect/fetchPermanentRooms",async(e,{rejectWithValue:t,extra:r,dispatch:n,getState:i})=>{const o=i().visioConnect;try{const a=[...o.list.filters],s=o.list.orders.length>0?o.list.orders:[{name:"name",sort:"ASC"}],A=o.tab,c={filters:a,orders:s,page:o.list.page,limit:o.list.limit};if(A==="my")return(await r.jApi.visioConnect.getPermanentRoomsMy(c)).result;if(A==="all")return(await r.jApi.visioConnect.getPermanentRoomsAll(c)).result;if(A==="archive")return(await r.jApi.visioConnect.getPermanentRoomsArchive(c)).result;throw Error("Unhandled tab")}catch(a){return Lt(a)||n(xe.actions.error({label:Le(a)})),t({error:1,errorMsg:"Cannot fetch rooms"})}}),up=me("visioConnect/fetchTeamworkPermanentRooms",async(e,{rejectWithValue:t,extra:r,dispatch:n})=>{try{const i=[],o=[{name:"name",sort:"ASC"}];return(await r.jApi.visioConnect.getPermanentRoomsMy({filters:i,orders:o,page:1,limit:10})).result}catch(i){return Lt(i)||n(xe.actions.error({label:Le(i)})),t({error:1,errorMsg:"Cannot fetch rooms"})}}),J$=me("visioConnect/createPermanentRoom",async({room:e,token:t},{rejectWithValue:r,extra:n,dispatch:i})=>{try{const o=(await n.jApi.visioConnect.createPermanentRoom({room:e,token:t})).result;return i(Hv.actions.fetchPermanentRooms()),i(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Create_Success"})),o}catch(o){return Lt(o)||i(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"Cannot save room"})}}),q$=me("visioConnect/updatePermanentRoom",async({room:e,token:t,uri:r},{rejectWithValue:n,extra:i,dispatch:o})=>{try{const a=(await i.jApi.visioConnect.updatePermanentRoom({uri:r,room:e,token:t})).result;return o(Hv.actions.fetchPermanentRooms()),o(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Update_Success"})),a}catch(a){return Lt(a)||o(xe.actions.error({label:Le(a)})),n({error:1,errorMsg:"Cannot save room"})}}),Y$=me("visioConnect/archivePermanentRoom",async({uri:e},{rejectWithValue:t,extra:r,dispatch:n})=>{try{const i=(await r.jApi.visioConnect.archivePermanentRoom(e)).result;return n(Hv.actions.fetchPermanentRooms()),n(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Archive_Success"})),i}catch(i){return Lt(i)||n(xe.actions.error({label:Le(i)})),t({error:1,errorMsg:"Cannot archive room"})}}),Z$=me("visioConnect/unarchivePermanentRoom",async({uri:e},{rejectWithValue:t,extra:r,dispatch:n})=>{try{const i=(await r.jApi.visioConnect.unarchivePermanentRoom(e)).result;return n(Hv.actions.fetchPermanentRooms()),n(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Unarchive_Success"})),i}catch(i){return Lt(i)||n(xe.actions.error({label:Le(i)})),t({error:1,errorMsg:"Cannot unarchive room"})}}),$$=e=>e.visioConnect.tab,eee=e=>e.visioConnect.list,Hv={slice:uj,actions:{archivePermanentRoom:Y$,unarchivePermanentRoom:Z$,createPermanentRoom:J$,updatePermanentRoom:q$,fetchPermanentRooms:dp,fetchTeamworkPermanentRooms:up,...uj.actions},selectors:{selectVisioConnectTab:$$,selectVisioConnectList:eee}},Fb=me("wall/fetchWallFilters",async(e,{extra:t,rejectWithValue:r})=>{try{return(await t.jApi.wall.getFilters()).result}catch(n){return r(n)}}),fj={filters:[],taxonomies:[],loading:"idle"},tee=ke({name:"wall",initialState:fj,reducers:{setFilters:(e,t)=>{e.filters=t.payload},setLoading:(e,t)=>{e.loading=t.payload},reset:()=>fj},extraReducers:e=>{e.addCase(Fb.pending,t=>{t.loading="pending"}),e.addCase(Fb.fulfilled,(t,r)=>{t.loading="idle",t.filters=r.payload.filterList,t.taxonomies=r.payload.taxonomies}),e.addCase(Fb.rejected,t=>{t.loading="idle"})}});({...tee.actions});const ree=4,Tl=me("/fetchFiles",async({page:e,query:t,folder:r,tab:n},{extra:i,getState:o})=>{const a=i.jApi,s=o(),A=n??s.wedoc.tab,c=e??s.wedoc.page,d=t??s.wedoc.query,u=r!==void 0?r?.uri??null:s.wedoc.currentFolder?.uri;return u?await a.wedoc.listMy({page:c,query:d,limit:s.wedoc.limit,uriFolder:u},{format:"raw-list",extensions:["parentArticle"]}):A==="my-documents"?await a.wedoc.listMy({page:c,query:d,limit:s.wedoc.limit},{format:"raw-list",extensions:["parentArticle"]}):A==="shared-with-me"?await a.wedoc.listSharedWithMe({page:c,limit:s.wedoc.limit,query:d},{format:"raw-list",extensions:["parentArticle"]}):await a.wedoc.getFiles({page:c,limit:s.wedoc.limit,orders:[{name:"dateCreation",sort:"DESC"}],query:d},{format:"raw-list",extensions:["parentArticle"]})}),Hb=me("/fetchRecentFiles",async(e,{extra:t,getState:r})=>{const n=t.jApi,i=r().wedoc.tab==="my-documents"?[{name:"idUser",value:"0"}]:[];return await n.wedoc.getFiles({filters:i,limit:ree,orders:[],page:1},{format:"raw-list"})});me("/setCurrentFolder",async({folder:e,tab:t},{dispatch:r,getState:n})=>(e?.uri!==n().wedoc.currentFolder?.uri&&await r(Tl({page:1,query:"",folder:e,tab:t})),e));me("/setQuery",async(e,{dispatch:t,getState:r})=>(e!==r().wedoc.query&&await t(Tl({page:1,query:e})),e));me("/setTab",async(e,{dispatch:t})=>(await t(Tl({page:1,query:"",folder:null,tab:e})),e));me("/setPage",async(e,{dispatch:t,getState:r})=>(e!==r().wedoc.page&&await t(Tl({page:e})),e));const nee={entities:[],nbEntities:0,entitiesRecent:[],tab:"my-documents",loading:"idle",loadingRecent:"idle",query:"",page:1,currentFolder:null,limit:12};ke({name:"wedoc",initialState:nee,reducers:{update:(e,t)=>{e.entities=[...e.entities.map(r=>r.id===t.payload.id?{...r,...t.payload}:r)]}},extraReducers:e=>{e.addCase(Tl.pending,(t,r)=>{t.loading="pending",t.page=r.meta.arg.page??t.page,t.query=r.meta.arg.query??t.query,t.tab=r.meta.arg.tab??t.tab}).addCase(Tl.fulfilled,(t,r)=>{t.loading="idle";const{data:n,cnt:i}=r.payload.result;t.entities=n,t.nbEntities=i,t.currentFolder=r.meta.arg.folder!==void 0?r.meta.arg.folder:t.currentFolder}).addCase(Tl.rejected,t=>{t.loading="idle"}).addCase(Hb.pending,t=>{t.loadingRecent="pending"}).addCase(Hb.fulfilled,(t,r)=>{t.loadingRecent="idle",t.entitiesRecent=r.payload.result.data}).addCase(Hb.rejected,t=>{t.loadingRecent="idle"})}});function iee(){let e="";for(let t=0;t<16;t++)e+=((1+Math.random())*65536|0).toString(16).substring(1);return e}q.WidgetsName.Accessibility;const oee={};q.WidgetsName.Application;const aee={};q.WidgetsName.ArticleAttachment;const see={};q.WidgetsName.ArticleButton;const lee={};q.WidgetsName.ArticleGallery;const Aee={};q.WidgetsName.ArticleImage;const cee={};q.WidgetsName.ArticleSlider;const dee={};q.WidgetsName.ArticleText;const uee={};q.WidgetsName.ArticleTitle;const fee={};q.WidgetsName.Birthday;const gee={};q.WidgetsName.Button;const hee={};q.WidgetsName.Calendar;const pee={};q.WidgetsName.CalendarCalDav;const mee={};q.WidgetsName.CheckList;const vee={};q.WidgetsName.Color;const yee={};q.WidgetsName.Contact;const xee={};q.WidgetsName.ContactCardDav;const bee={};q.WidgetsName.Charts;const wee={};q.WidgetsName.Countdown;const Cee={};q.WidgetsName.Cover;const Eee={};q.WidgetsName.DatasourceTable;const Bee={};q.WidgetsName.Documents;const See={};q.WidgetsName.EmailsImap;const Dee={};q.WidgetsName.Embed;const Iee={};q.WidgetsName.ExcelDatasourceTable;const Oee={};q.WidgetsName.Extension;const Tee={};q.WidgetsName.Flockler;const jee={};q.WidgetsName.Faq;const Pee={};q.WidgetsName.File;const kee={};q.WidgetsName.Survey;const Ree={};q.WidgetsName.Image;const Lee={};q.WidgetsName.LuccaAbsence;const Mee={};q.WidgetsName.Meteo;const Nee={};q.WidgetsName.MyGroup;const Fee={};q.WidgetsName.News;const Hee={};q.WidgetsName.Newsflash;const Qee={};q.WidgetsName.Presence;const Uee={};q.WidgetsName.QuickSurvey;const zee={};q.WidgetsName.Separator;const Wee={};q.WidgetsName.Slider;const Gee={};q.WidgetsName.Text;const Vee={};q.WidgetsName.UserProfile;const Xee={};q.WidgetsName.Welcome;const _ee={};q.WidgetsName.Youtube;const Kee={};q.WidgetsName.Combination;const Jee={};q.WidgetsName.Accessibility+"",q.WidgetsName.Application+"",q.WidgetsName.Birthday+"",q.WidgetsName.ArticleAttachment+"",q.WidgetsName.ArticleButton+"",q.WidgetsName.Button+"",q.WidgetsName.ArticleGallery+"",q.WidgetsName.ArticleImage+"",q.WidgetsName.ArticleSlider+"",q.WidgetsName.ArticleText+"",q.WidgetsName.ArticleTitle+"",q.WidgetsName.Calendar+"",q.WidgetsName.CalendarCalDav+"",q.WidgetsName.CheckList+"",q.WidgetsName.Color+"",q.WidgetsName.Separator+"",q.WidgetsName.ContactCardDav+"",q.WidgetsName.Countdown+"",q.WidgetsName.Cover+"",q.WidgetsName.Charts+"",q.WidgetsName.Contact+"",q.WidgetsName.Image+"",q.WidgetsName.Meteo+"",q.WidgetsName.MyGroup+"",q.WidgetsName.News+"",q.WidgetsName.Newsflash+"",q.WidgetsName.DatasourceTable+"",q.WidgetsName.EmailsImap+"",q.WidgetsName.ExcelDatasourceTable+"",q.WidgetsName.Extension+"",q.WidgetsName.LuccaAbsence+"",q.WidgetsName.Presence+"",q.WidgetsName.QuickSurvey+"",q.WidgetsName.Slider+"",q.WidgetsName.SyncContent+"",q.WidgetsName.Text+"",q.WidgetsName.Embed+"",q.WidgetsName.Flockler+"",q.WidgetsName.Faq+"",q.WidgetsName.File+"",q.WidgetsName.Survey+"",q.WidgetsName.UserProfile+"",q.WidgetsName.Welcome+"",q.WidgetsName.Documents+"",q.WidgetsName.Youtube+"",q.WidgetsName.Combination+"";const qee={token:void 0,ids:{},layers:{},states:{},modal:void 0,editableMap:{},currentEditableIndex:-1,currentEditableWidgetId:void 0,widgetObject:{},widgetObjectRights:{},widgetAuthor:{},widgetWrapperBackgroundImage:{},widgetWrapperStyle:{},widgetTitleStyle:{},widgetChipCount:{},flushedWidgets:[],rtObjectStack:[],widgetContext:{},wrapperSize:{},widgetSynchronizationStates:{},widgetUrls:{}},Yee=[q.WidgetsName.ArticleTitle,q.WidgetsName.ArticleText,q.WidgetsName.ArticleImage,q.WidgetsName.ArticleButton,q.WidgetsName.ArticleSlider,q.WidgetsName.ArticleAttachment];ke({name:"widgets",initialState:qee,reducers:{registerWidget:(e,t)=>{const{uniqid:r,widget:n,context:i}=t.payload;if(e.ids[r]){console.error(`Widget with uniqid ${r} is already registered.`);return}e.ids[r]=n,e.states[r]??={busy:!1,initialized:void 0,loading:!1,mounted:!1,hover:!1,empty:Yee.includes(n.widget.name),locked:!1},e.widgetContext[r]=i},registerWidgetObject:(e,t)=>{const{uniqid:r,object:n}=t.payload;e.widgetObject[r]=n},registerWidgetObjectRights:(e,t)=>{const{uniqid:r,rights:n}=t.payload;e.widgetObjectRights[r]=n},registerWidgetAuthor:(e,t)=>{const{uniqid:r,author:n}=t.payload;e.widgetAuthor[r]=n},setWidgetChipCount:(e,t)=>{const{uniqid:r,count:n}=t.payload;e.widgetChipCount[r]=n},setWidgetWrapperBackgroundImage:(e,t)=>{const{uniqid:r,payload:n}=t.payload;e.widgetWrapperBackgroundImage[r]=n},flushWidgetWrapperBackgroundImage:(e,t)=>{const{uniqid:r}=t.payload;delete e.widgetWrapperBackgroundImage[r]},setWidgetWrapperStyle:(e,t)=>{const{uniqid:r,styles:n}=t.payload;e.widgetWrapperStyle[r]={...e.widgetWrapperStyle[r],...n}},setWidgetSynchronizationState:(e,t)=>{e.widgetSynchronizationStates[t.payload.uniqid]=t.payload.state},setWidgetUrl:(e,t)=>{e.widgetUrls[t.payload.uniqid]=t.payload.url},setWidgetTitleStyle:(e,t)=>{const{uniqid:r,styles:n}=t.payload;e.widgetTitleStyle[r]={...e.widgetTitleStyle[r],...n}},updateWidget:(e,t)=>{const{uniqid:r}=t.payload,n={...e.ids[r]};e.states[r]?.locked||e.ids[r]&&n.widget&&(e.ids[r]=Object.assign({...e.ids[r],widget:{...n.widget,content:t.payload.override?t.payload.content:Object.assign({...n.widget.content,...t.payload.content})}}))},replaceWidget:(e,t)=>{const{uniqid:r}=t.payload,n={...e.ids[r]};e.states[r]?.locked||e.ids[r]&&n.widget&&(e.ids[r]=Object.assign({...e.ids[r],widget:{...n.widget,name:t.payload.name,content:t.payload.content}}))},registerWidgetRTObject:(e,t)=>{const{uniqid:r,fn:n,object:i}=t.payload;e.rtObjectStack=[...e.rtObjectStack,{uniqid:r,fn:n,object:i}]},flushWidget:(e,t)=>{const{uniqid:r}=t.payload;delete e.ids[r],delete e.states[r],delete e.widgetContext[r],delete e.widgetObject[r],delete e.widgetObjectRights[r],delete e.widgetAuthor[r],delete e.widgetChipCount[r],delete e.widgetWrapperStyle[r],delete e.widgetTitleStyle[r],e.flushedWidgets.push(r)},flushAllWidget:e=>{e.flushedWidgets=[...e.flushedWidgets,...Object.keys(e.ids)],e.ids={},e.states={}},updateWidgetWrapper:(e,t)=>{const{uniqid:r}=t.payload;e.ids[r]&&(e.ids[r]=Object.assign({...e.ids[r],...t.payload}))},registerLayer:(e,t)=>{const r=iee(),n={...e.ids[t.payload.uniqid]};n.widget&&(e.ids[t.payload.uniqid]&&n.widget.layers?e.ids[t.payload.uniqid]=Object.assign({...e.ids[t.payload.uniqid],widget:{...n.widget,layers:[...n.widget.layers,r]}}):e.ids[t.payload.uniqid]=Object.assign({...e.ids[t.payload.uniqid],widget:{...n.widget,layers:[r]}}),e.ids[t.payload.widget.widget.uniqid]=t.payload.widget,e.states[t.payload.widget.widget.uniqid]={busy:!1,initialized:!1,loading:!1,mounted:!1,hover:!1,empty:!0},e.layers[r]={uniqid:r,widgets:[t.payload.widget],title:`Layer ${r}`,visible:!0,locked:!1,position:{x:0,y:0}})},updateLayer:(e,t)=>{e.layers[t.payload.uniqid]&&(e.layers[t.payload.uniqid]=Object.assign({...e.layers[t.payload.uniqid],...t.payload.props}))},flushLayer:(e,t)=>{const r={...e.ids[t.payload.uniqid]};r.widget?.layers&&(e.ids[t.payload.uniqid]=Object.assign({...e.ids[t.payload.uniqid],widget:{...r.widget,layers:[...r.widget.layers.filter(n=>n!==t.payload.layerId)]}}),delete e.layers[t.payload.layerId])},prevEditableIndex:e=>{const t=Object.keys(e.ids).length;e.currentEditableIndex=e.currentEditableIndex===0?t-1:e.currentEditableIndex-1},nextEditableIndex:e=>{const t=Object.keys(e.ids).length;e.currentEditableIndex=e.currentEditableIndex<t-1?e.currentEditableIndex+1:0},setEditableIndex:(e,t)=>{e.currentEditableIndex=t.payload.index},setEditableWidgetId:(e,t)=>{e.currentEditableWidgetId=t.payload.uniqid},registerEditableWidget:(e,t)=>{e.editableMap[t.payload.uniqid]=t.payload},setToken:(e,t)=>{e.token=t.payload.token},setWrapperSize:(e,t)=>{e.wrapperSize[t.payload.uniqid]={width:t.payload.width,height:t.payload.height}},setWidgetState:(e,t)=>{const{uniqid:r}=t.payload;({...e.states[r]}!==void 0)&&(e.states[r]={...e.states[r],...t.payload})},setAllWidgetStates:(e,t)=>{Object.keys(e.states).map(r=>{({...e.states[r]}!==void 0)&&(e.states[r]={...e.states[r],...t.payload})})},registerModal:(e,t)=>{e.modal=t.payload},flushModal:e=>{e.modal=void 0}}});const Zee={editors:[]};ke({name:"editors",initialState:Zee,reducers:{registerEditor:(e,t)=>{const{uniqid:r,name:n,onSave:i,mode:o}=t.payload,a=i?{uniqid:r,name:n,onSave:i,position:"right",mode:o??"view"}:{uniqid:r,name:n,position:"right",mode:o??"view"};e.editors=e.editors.find(s=>s.uniqid===r)?e.editors:[...e.editors,a]},registerEditorPopup:(e,t)=>{const{uniqid:r,view:n}=t.payload;e.editors=[...e.editors.map(i=>i.uniqid===r?{...i,popup:!0,view:n}:i)]},flushEditorPopup:(e,t)=>{const{uniqid:r}=t.payload;e.editors=[...e.editors.map(n=>n.uniqid===r?{...n,popup:!1}:n)]},setEditorPosition:(e,t)=>{const{uniqid:r,position:n}=t.payload;e.editors=[...e.editors.map(i=>i.uniqid===r?{...i,position:n}:i)]},flushEditor:(e,t)=>{const{uniqid:r}=t.payload;e.editors=[...e.editors.filter(n=>n.uniqid!==r)]},flushAllEditor:e=>{window.dispatchEvent(new Event("WidgetEditorFlushAll")),e.editors.length=0}}});const Zp={success:"green",error:"red",warning:"yellow"};function mc(e){return String(e).padStart(2,"0")}function $ee(e,t){return`${e}${{10:"1a",20:"33",30:"4d",40:"66",50:"80",60:"99",70:"b3",80:"cc",90:"e6"}[t]}`}const qA={isValid:z4,rgb:(e,t,r)=>({toHex:()=>({string:()=>"#"+mc(e.toString(16))+mc(t.toString(16))+mc(r.toString(16))}),toHsb:()=>({values:()=>eu(e,t,r),hue:()=>eu(e,t,r)[0],staturation:()=>eu(e,t,r)[1],brightness:()=>eu(e,t,r)[2]})}),hsl:(e,t,r)=>({toHex:()=>({values:()=>GC(e,t,r),string:()=>{const n=GC(e,t,r);return"#"+n[0]+n[1]+n[2]}})}),hsb:(e,t,r)=>({toRgb:()=>({values:()=>$d(e,t,r),red:()=>$d(e,t,r)[0],green:()=>$d(e,t,r)[1],blue:()=>$d(e,t,r)[2]})}),hex:e=>({toRgbaColor:t=>`rgba(${String(ci(e).r).padStart(2,"0")},${String(ci(e).g).padStart(2,"0")},${String(ci(e).b).padStart(2,"0")},${String(t)})`,toRgbColor:()=>`rgb(${String(ci(e).r).padStart(2,"0")},${String(ci(e).g).padStart(2,"0")},${String(ci(e).b).padStart(2,"0")})`,toRgb:()=>({values:()=>ci(e),red:()=>ci(e).r,green:()=>ci(e).g,blue:()=>ci(e).b}),toHsl:()=>({values:()=>As(e),hue:()=>As(e)[0],saturation:()=>Math.round(As(e)[1]),luminance:()=>Math.round(As(e)[2]),string:()=>{const t=As(e);return"hsl("+t[0]+","+Math.round(t[1])+"%,"+Math.round(t[2])+"%)"}})})},ete=e=>{const t=e.replace("#","");return parseInt(t,16)>16777215/2?"black":"white"},tte=e=>{const t=e.replace("#",""),r=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);return(r*299+n*587+i*114)/1e3>=125?"black":"white"};function z4(e){return/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(String(e))}const Qb=e=>parseInt(e,16),ci=e=>({r:Qb(e.substring(1,3)),g:Qb(e.substring(3,5)),b:Qb(e.substring(5,7))}),rte=function(e,t){try{if(t<-1||t>1||e[0]!=="#"||e.length!==4&&e.length!==7)return;let r=e.slice(1);r.length==3&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`);const n=r.match(new RegExp("[0-9a-fA-F]{2}","g"));return n?.length!==3?void 0:n.map(i=>{const o=parseInt(i,16),a=t<0?o:255-o,s=Math.ceil(a*t);return(o+s).toString(16).toUpperCase().padStart(2,"0")}).reduce((i,o)=>`${i}${o}`,"#")}catch{return}},$d=(e,t,r)=>{const n=o=>(o+e/60)%6,i=o=>r*(1-t*Math.max(0,Math.min(n(o),4-n(o),1)));return[Math.round(255*i(5)),Math.round(255*i(3)),Math.round(255*i(1))]},eu=(e,t,r)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),i=n-Math.min(e,t,r),o=i===0?0:i&&n===e?(t-r)/i:n===t?2+(r-e)/i:4+(e-t)/i;return[Math.round(60*(o<0?o+6:o)),Math.round(n&&i/n*100),Math.round(n*100)]},As=e=>{let t=0,r=0,n=0;e.length==4||e.length==5?(t="0x"+e[1]+e[1],r="0x"+e[2]+e[2],n="0x"+e[3]+e[3]):(e.length==7||e.length==9)&&(t="0x"+e[1]+e[2],r="0x"+e[3]+e[4],n="0x"+e[5]+e[6]),t/=255,r/=255,n/=255;const i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s=0,A=0,c=0;return a==0?s=0:o==t?s=(r-n)/a%6:o==r?s=(n-t)/a+2:s=(t-r)/a+4,s=Math.round(s*60),s<0&&(s+=360),c=(o+i)/2,A=a==0?0:a/(1-Math.abs(2*c-1)),A=+(A*100).toFixed(1),c=+(c*100).toFixed(1),[s,A,c]};function GC(e,t,r){t/=100,r/=100;const n=(1-Math.abs(2*r-1))*t,i=n*(1-Math.abs(e/60%2-1)),o=r-n/2;let a=0,s=0,A=0;return 0<=e&&e<60?(a=n,s=i,A=0):60<=e&&e<120?(a=i,s=n,A=0):120<=e&&e<180?(a=0,s=n,A=i):180<=e&&e<240?(a=0,s=i,A=n):240<=e&&e<300?(a=i,s=0,A=n):300<=e&&e<360&&(a=n,s=0,A=i),[mc(Math.round((a+o)*255).toString(16)),mc(Math.round((s+o)*255).toString(16)),mc(Math.round((A+o)*255).toString(16))]}const W4=e=>{const t=e.indexOf(",")>-1?",":" ",r=e.substring(4).split(")")[0]?.split(t)??[],n=[0,0,0];for(let g=0;g<r.length&&g<3;g++){const h=r[g].trim();h.indexOf("%")>-1?n[g]=Math.round(+h.substring(0,h.length-1)/100*255):n[g]=+h}const i=n[0]/255,o=n[1]/255,a=n[2]/255,s=Math.min(i,o,a),A=Math.max(i,o,a),c=A-s,d=0;let u=0,f=0;return f=(A+s)/2,u=c==0?0:c/(1-Math.abs(2*f-1)),u=+(u*100).toFixed(1),f=+(f*100).toFixed(1),[d,u,f]},G4="^#(?:[A-Fa-f0-9]{3}){1,2}$",V4="^rgb\\(\\s*(25[0-5]|2[0-4][0-9]|1?\\d{1,2})\\s*,\\s*(25[0-5]|2[0-4][0-9]|1?\\d{1,2})\\s*,\\s*(25[0-5]|2[0-4][0-9]|1?\\d{1,2})\\s*\\)$|^rgb\\(\\s*(\\d{1,3}(?:\\.\\d+)?%)\\s*,\\s*(\\d{1,3}(?:\\.\\d+)?%)\\s*,\\s*(\\d{1,3}(?:\\.\\d+)?%)\\s*\\)$",X4="^hsl\\(\\s*(3[0-5][0-9]|360|[12]?\\d{1,2})\\s*,\\s*(100(?:\\.0+)?|\\d{1,2}(?:\\.\\d+)?)%\\s*,\\s*(100(?:\\.0+)?|\\d{1,2}(?:\\.\\d+)?)%\\s*\\)$",_4=e=>{const t=new RegExp(G4),r=new RegExp(V4),n=new RegExp(X4),i=t.test(e)?As(e):r.test(e)?W4(e):n.test(e)&&n.exec(e)?.slice(1);let o="";return i&&i[2]&&parseInt(i[2])>50?o="hsl("+i[0]+","+i[1]+"%,"+(parseInt(i[2])-10)+"%)":(i&&i[2]&&parseInt(i[2])<50||i&&i[2]&&parseInt(i[2])===50)&&(o="hsl("+i[0]+","+i[1]+"%,"+(parseInt(i[2])+10)+"%)"),o},nte=e=>{const t=new RegExp(G4),r=new RegExp(V4),n=new RegExp(X4),i=t.test(e)?As(e):r.test(e)?W4(e):n.test(e)&&n.exec(e)?.slice(1);return i?+i[2]:-1},ite=(e,t,r)=>"#"+[e,t,r].map(n=>n.toString(16).padStart(2,"0")).join(""),vc=e=>Math.round(e).toString(16).padStart(2,"0"),ote=({r:e,g:t,b:r},n)=>`#${vc((1-n)*e)}${vc((1-n)*t)}${vc((1-n)*r)}`,ate=({r:e,g:t,b:r},n)=>`#${vc(e+(255-e)*n)}${vc(t+(255-t)*n)}${vc(r+(255-r)*n)}`,ste=(e,t)=>ote(ci(e),t),lte=(e,t)=>ate(ci(e),t),Ate=Object.freeze(Object.defineProperty({__proto__:null,HSBToRGB:$d,RGBToHSB:eu,brightness:nte,colorContrast:_4,colorTransparency:$ee,colorimetry:qA,getContrast50:ete,getContrastYIQ:tte,getDarkShade:ste,getLightShade:lte,hexToHSL:As,hexToRgb:ci,hlsToHex:GC,isValidHexColor:z4,modifyColorBrightness:rte,rgbToHex:ite},Symbol.toStringTag,{value:"Module"})),gj="#4A4A52",cte=["grey0","grey1","grey2","grey3","grey4","grey5","grey6"],dte=["black","black10","black15","black20","white","transparent","transparentHexa","textColor"],ute=["headerColor","headerTextColor","headerUserBackground","headerUserTextColor","headerSearchBarTextColor","headerSearchBarBackgroundColor","navBackground","navTextColor","hrefColor"],fte=["lavender","navy","overseas","night1","night2","sky","sand","skeleton","yellow"],gte=["primary","secondary","green","red"],K4=e=>{const t=qA.hex(e).toHsl();return{light:qA.hsl(t.hue(),t.saturation(),95).toHex().string(),medium:qA.hsl(t.hue(),t.saturation(),90).toHex().string(),base:e,strong:qA.hsl(t.hue(),t.saturation(),t.luminance()-5).toHex().string(),dark:qA.hsl(t.hue(),t.saturation()!==0?50:0,30).toHex().string()}},Vn=(e,t)=>{const r=K4(t);return{[`${e}Light`]:r.light,[`${e}Medium`]:r.medium,[e]:r.base,[`${e}Strong`]:r.strong,[`${e}Dark`]:r.dark}},J4={linkColor:"#392994",buttonColor:"#7364E3",forest:"#0D846B",headerTextColor:"",headerUserBackground:"",headerUserTextColor:"",headerSearchBarTextColor:"#2f373f",navBackground:"#ffffff",navTextColor:"#4A4A52",bgColorNotLogged:""},hte=(e=J4)=>{const t=Vn("primary",e.buttonColor),r=Vn("secondary",e.linkColor),n=Vn("green","#0D846B"),i=Vn("red","#E12B43"),o=Vn("lavender","#8F7CEA"),a=Vn("navy","#131E4B"),s=Vn("overseas","#392994"),A=Vn("night1","#2B3870"),c=Vn("night2","#10162D"),d=Vn("sky","#9CC9FF"),u=Vn("skeleton","#9adbef"),f=Vn("sand","#FFEED7"),g=Vn("yellow","#FFBB54");return{...t,...r,...n,...i,...o,...a,...s,...A,...c,...d,...f,...g,...u,grey6:"#2E2E33",grey5:gj,grey4:"#747487",grey3:"#BEBED1",grey2:"#DADAF0",grey1:"#EFEFFF",grey0:"#F8F8FF",black:"#000000",black10:"#00000019",black15:"#00000026",black20:"#00000033",white:"#FFFFFF",transparent:"transparent",transparentHexa:"#ffffff00",textColor:gj,headerColor:e.headerColor??"",headerTextColor:e.headerTextColor,headerUserBackground:e.headerUserBackground,headerUserTextColor:e.headerUserTextColor,headerSearchBarTextColor:e.headerSearchBarTextColor,headerSearchBarBackgroundColor:e?.headerSearchBarBackgroundColor??(e?.headerColor?_4(e.headerColor):"#313941"),navBackground:e.navBackground,navTextColor:e.navTextColor,hrefColor:r.secondary}},pte=Object.freeze(Object.defineProperty({__proto__:null,buildPalette:hte,buildPaletteObject:Vn,defaultColors:J4,getColorPalette:K4,paletteColorsGreys:cte,paletteColorsPlatform:ute,paletteColorsPrimary:gte,paletteColorsSecondary:fte,paletteColorsUtils:dte},Symbol.toStringTag,{value:"Module"})),Zr=Object.freeze(Object.defineProperty({__proto__:null,color:Ate,palette:pte},Symbol.toStringTag,{value:"Module"})),{buildPalette:mte,defaultColors:vte}=Zr.palette;function jl(e,t){return t in e.color?e.color[t]:t}const q4={config:void 0,get:function(){return this.config?this.config:this.initTheme()},initTheme:function(e=vte,t=[]){const r=mte(e);return this.config={dpr:Math.ceil(window?.devicePixelRatio||2),platformPalette:[r.transparent,...t],fallbackUrl:{article:"/imagestatic/30x30/icons/article.png"},font:{family:e?.fontFamily?`'${e.fontFamily}', sans-serif`:"'Poppins', sans-serif",color:r.textColor,hrefColor:r.hrefColor,size:"16px",lineHeight:"1.5em",weight:{light:300,normal:400,medium:500,semiBold:600,bold:700}},color:{...r},zIndex:{toaster:1e6,forceTop:1e5,tooltip:50030,tinyMCEModal:50020,modal:1100,dropdown:1e3,sidePanelModal:5,fullScreenContainer:3},space:{xs:4,sm:8,md:16,l:24,xl:32},size:{xs:4,sm:8,md:16,l:24,xl:32},transition:{duration:{fast:"0.15s"}},iconSize:{xs:12,sm:14,md:16,lg:20,xl:24}},this.config}},yte=JSON.parse(`{"WIDGET_Charts":"Charts","WIDGET_Charts_Title":"Title","WIDGET_Charts_Subtitle":"Subtitle","WIDGET_Charts_Legend":"Show legend","WIDGET_Charts_Edit_Series":"Edit data","WIDGET_Charts_Add_Serie":"Add a series","WIDGET_Charts_Add_Value":"Add a value","WIDGET_Charts_Series_Name":"Series name","WIDGET_Charts_Slice_Name":"Label","WIDGET_Charts_Value":"Value","GLOBAL_Move_Up":"Move up","GLOBAL_Move_Down":"Move down","GLOBAL_Visible_By":"Visible by","GLOBAL_Public":"Public","CHARTS_Pie":"Pie","CHARTS_Column":"Column","CHARTS_Line":"Line","WIDGET_Empty_No_Data":"No data","WIDGET_Contact":"Contact","WIDGET_Contact_Text":"Display a directory of selected contacts","WIDGET_Faq":"FAQ","WIDGET_Faq_Text":"Display the FAQ of your choice directly from your Intranet pages","WIDGET_Faq_Hide_Cover":"Hide cover","WIDGET_Faq_Allow_Comment":"Allow comments","WIDGET_Faq_Search_In_Title":"Search within title","WIDGET_Faq_Search_In_Description":"Search within description","WIDGET_Faq_Selection":"Choose an FAQ","WIDGET_Faq_No_Faq":"There is no FAQ available","WIDGET_Faq_Toggle_All_Themes":"Expand/collapse all themes","WIDGET_Faq_Search_Placeholder":"Search (title and description)","GLOBAL_Update":"Update","CONTACT_Add_Contact":"Add a contact","CONTACT_Manage_Information":"Manage information","CONTACT_Update_Fields":"Edit fields","CONTACT_No_Field_Selected":"No field selected — click “Edit fields” to add some","CONTACT_Send_Message":"Send a message","USER_Not_In_Contact":"Not in your contacts","USER_Not_Active":"Inactive user","USER_Not_Specified":"Not specified","SHARE_Invitation_Request":"Send a contact request","USERACTION_Send_Mail":"Send an email","SELECTION_Panel_Text_Color":"Text color","SELECTION_Panel_Link_Color":"Link color","SELECTION_Panel_Button_Color":"Button color","SELECTION_Panel_Background_Card_Contact_Color":"Card background color","SELECTION_Panel_Background_Color":"Background color","GLOBAL_Background":"Background","INTRANET_Advanced_Options":"Advanced options","WIDGET_Add_Image_Url":"Add an image URL","WIDGET_IMAGE":"Image","WIDGET_IMAGE_TEXT":"Display an image","WIDGET_Image_Adjust":"Image adjustment","WIDGET_Image_Background_Position":"Background position","WIDGET_Image_Upload_Label":"Add an image","WIDGET_Image_Background_Vertical_Position":"Vertical background position","WIDGET_Image_Scale":"Scale","WIDGET_Image_X_Position":"Horizontal position","WIDGET_Image_Y_Position":"Vertical position","GLOBAL_Search_City":"Search city or a post code","WIDGET_METEO":"Weather","WIDGET_METEO_TEXT":"Display the weather in real time","WIDGET_METEO_Iframe":"Weather by Météo France","ACTIVITY_Can_Not_comment_Desc":"You cannot comment on this content. Several reasons are possible:<p>- You are not part of the audience of the content</p><p>- You do not have sufficient rights according to the group settings</p><p>- A solar storm creates interference (less likely, but you never know)","ADD_FAVORITE":"Add to favorites","APP_Animated_Meeting":"Diapazone","APP_Bookmark_Bookmarks":"favorites","APP_FileIntegrity_Quarantine_Files_Message":"{ count } file(s) in quarantine","APP_SurveyDate_Over":"The survey is closed","APP_SurveyDate":"Sondage de date","AppLeftColumn_App_Navigation":"Application navigation menu","AppLeftColumn_Close_Panel":"Reduces the size of the menu","AppLeftColumn_Open_Panel":"Expands the menu","ARTICLE_Nb_Selected_Elements":"Elements sélectionés","ATTACHMENTS_No_Download":"No download","ATTACHMENTS_Preview_Successfully_Recomputed":"Preview successfully recomputed","ATTACHMENTS_Recompute_Preview":"Recompute preview","ATTACHMENTS_See_Downloads":"See downloads","AUDIENCE_GROUPS_AND_USERS":"{groups} group(s) and {users} users(s)","AUDIENCE_GROUPS_ONLY":"{groups} group(s)","AUDIENCE_ONLY_ME":"Only me","AUDIENCE_USERS_ONLY":"{users} user(s)","BUTTON_Title_Add_Image":"Add image","BUTTON_Title_Add_New_Task":"Add new task","BUTTON_Title_Add_Uri":"Add link to task","BUTTON_Title_Open_Edit_Panel":"Button that open the edit panel","BUTTON_Title_Open_Remove_Widget":"Button that remove the widget entirely","BUTTON_Title_Remove_Item":"Remove task","BUTTON_Title_Remove_Uri":"Remove link","CALENDAR_All_Day":"All day","CALENDAR_Answer":"Répondre","CALENDAR_BoardCard":"Board card","CALENDAR_dayGridMonth":"Month","CALENDAR_Delete_Confirmation_Recurrent":"Do you want to delete the whole series?","CALENDAR_Event_Date_All_Day":"Le {date}","CALENDAR_Event_Date_Start_End_All_Day":"Du {dateStart} au {dateEnd}","CALENDAR_Event_Date_Start_End_Same_Day_All_Day":"Le {dateStart}","CALENDAR_Event_Date_Start_End_Same_Day":"Le {dateStart}, de {timeStart} à {timeEnd}","CALENDAR_Event_Date_Start_End":"Du {dateStart}, {timeStart} au {dateEnd}, {timeEnd}","CALENDAR_Event_Date":"Le {date}, {time}","CALENDAR_Event_Recurrence_Daily":"Tous les jours","CALENDAR_Event_Recurrence_Monthly":"Tous les {day} du mois","CALENDAR_Event_Recurrence_Until":"jusqu'au {date}","CALENDAR_Event_Recurrence_UntilField":"Until","CALENDAR_Event_Recurrence_Weekly":"Tous les {day}","CALENDAR_Event_Recurrence_Yearly":"Tous les {date}","CALENDAR_Event_Recurrence":"Recurrence","CALENDAR_Event_Remaining_Seats":"places restantes","CALENDAR_Event_Report":"Compte rendu","CALENDAR_Event_Revive_All":"Tous","CALENDAR_Event_Revive_Available":"Participant(s)","CALENDAR_Event_Revive_Message_Description":"Quel message souhaitez vous envoyer ?","CALENDAR_Event_Revive_Message_Label":"Message","CALENDAR_Event_Revive_On_Spot":"En présentiel","CALENDAR_Event_Revive_Select_Description":"Qui souhaitez vous relancer ?","CALENDAR_Event_Revive_Unavailable":"Indisponible(s)","CALENDAR_Event_Revive_Visio":"En distanciel","CALENDAR_Event_Revive_Waiting":"En attente","CALENDAR_Event_Revive":"Relancer","CALENDAR_Event_Visio_Url":"Rejoindre la web conférence","CALENDAR_Event":"Evénement","CALENDAR_NotParticipate":"Je ne participe pas","CALENDAR_listWeek":"List","CALENDAR_Meeting":"Meeting","CALENDAR_No_Event":"Vous n'avez aucun événement prévu ce mois-ci","CALENDAR_No_Next_Event":"Vous n'avez plus d'événements prévus ce mois-ci","CALENDAR_No_Today_Event":"Vous n'avez rien de prévu aujourd'hui","CALENDAR_Recurrent_Event_Warning":"This is a recurring event. Changes will apply to all events in the series.","CALENDAR_Recurring_Participation_Warning":"This is a recurring event: by registering, you will automatically participate in all sessions (past and future).","CALENDAR_Participate_OnSite":"Je participe en présentiel","CALENDAR_Participate_Remote":"Je participe en distanciel","CALENDAR_Participate":"Je participe","CALENDAR_Status_Available":"Vous participez","CALENDAR_Status_Unavailable":"Vous ne participez pas","CALENDAR_Status_Unknown":"En attente","CALENDAR_timeGridDay":"Day","CALENDAR_timeGridWeek":"Week","CALENDAR_Today":"Today","CALENDAR_Transform_Hide_Occurrence":"Hide original occurrence","CALENDAR_Transform_Into_Event_Title":"Transform into event","CALENDAR_Transform_Into_Event":"Transform into event","CALENDAR_Update_Confirmation_Recurrent":"Do you want to update the whole series?","CALENDAR_Widget_Editor_View":"View","CALENDAR_Widget_View_Month":"Month","CLIPBOARD_Copy_Success":"Copied to clipboard","COLOR_PICKER_recent_colors":"Recent colors","COMMENT_Add_Comment":"Add comment","COMMENT_Add_Widget":"Add widget","COMMENT_Answer":"Answer","COMMENT_Choose_Response":"Choose","COMMENT_Chosen_Response":"Chosen response","COMMENT_Comments":"comment(s)","COMMENT_Delete_Comment":"Delete comment ?","COMMENT_Display_More":"Display more comments","COMMENT_Just_Now":"just now","COMMENT_Last_Comment":"Last comment","COMMENT_Minutes_Ago":"{minutes} minutes ago","COMMENT_No_Comment":"No comment...","COMMENT_Placeholder":"Write a comment","COMMENT_Unselect_Response":"Unselect response","COMMENT_WIDGET_CHECKLIST_Add_New_Task":"Add new task","COMMENT_WIDGET_CHECKLIST_Add_Uri":"Add an uri","COMMENT_WIDGET_CHECKLIST_New_Task":"New task","COMMENT_WIDGET_CHECKLIST_Title":"Title","COMMENT_WIDGET_CHECKLIST_Uri_Link":"Button link","COMMENT_WIDGET_CHECKLIST_Uri_New_Page":"New page","COMMENT_WIDGET_CHECKLIST_Uri_Same_Page":"Same page","COMMENT_WIDGET_CHECKLIST_Uri_Target":"open","COMMENT_WIDGET_Configure":"Configure","COMMENT_WIDGET_Delete_Widget":"Delete comment ?","CONTACT_Pro_Members":"Business Contacts","CROP_Crop":"Crop","CROP_Rotate_Left":"Rotate left","CROP_Rotate_Right":"Rotate Right","CROP_Title":"Crop the image","CRPT_Add_Report":"Report content","CRPT_Comment_Of":"Comment of","CRPT_Report_Description_Required":"La description est obligatoire","CRPT_Report_Sent":"Report sent","DND_ADD_SECTION":"+ Add section","DND_EMPTY_STATE":"No items to display","DND_LIST_TITLE":"Items","DND_NEW_SECTION_LABEL":"New Section","DND_SECTIONS_TITLE":"Sections","DND_STACK_TITLE":"Active Buttons","DRIVE_Access_Denied":"Vous n'avez pas accès à ces documents.","DRIVE_Google_Not_Available":"This service is temporarily unavailable. Our team is currently working on a solution. We apologize for the inconvenience.","DRIVE_Input_Search_Group_Item":"Rechercher parmis les dossiers et documents","DRIVE_Input_Search_Groupe":"Rechercher un groupe","DRIVE_Is_Empty":"Nous n'avons trouvé aucun documents","DRIVE_MS_Accounts":"Accounts","DRIVE_MS_Default":"Default","DRIVE_MS_Error_Personal_Account":"Personal accounts are not supported","DRIVE_MS_Group_Filters_All":"Tous les groupes","DRIVE_MS_Group_Filters_Member_Of":"Seulement les groupes ou je suis membre","DRIVE_MS_Group_Filters":"Filtres","DRIVE_MS_Logout":"Logout","DRIVE_MS_Need_Login":"Please login to access your files","DRIVE_MS_Other_Account":"Add another account","DRIVE_MS_Set_Default_Account":"Set as default account","DRIVE_Private_Group":"Ce groupe est privé","DRIVE_Private":"Private","DRIVE_Public":"Public","DRIVE_Root":"Microsoft 365","DRIVE_Select_Document":"Sélectionner ce document","DRIVE_Select_Folder":"Sélectionner ce dossier","ERROR_Mail_Invalid":"Invalid email.","ERROR404_Msg":"Hum...There is nothing here...","ERROR404_MsgDetail":"This page does not exist, or its content has been deleted. Go back to home?","ERROR404_Wall":"Go back home","EVENT_Export_Calendar_ICalendar_Format":"Export to iCalendar format","EVENT_I_Register":"Je participe","EVENT_ICalendar_Export_Url_Explanation":"Copy url in your mail client","EVENT_ICalendar_Export_Url_Subscribed":"Sync accepted events","EVENT_ICalendar_Export_Url":"Sync all events","FIELDS_Add_Option":"Add a response","FILE_Existing_Files_Label":"Added files","FILE_Upload_Label":"Drop or select files","FILE_Viewer_Open_With":"Ouvrir avec","FILE_Viewer_Preview":"Aperçu","GLOBAL_A11Y_APP_NAV":"Menu of the application {appName}","GLOBAL_Filter_Add":"Add a filter","GLOBAL_Filter_Search":"Search a filter","GLOBAL_Filter_NoResults":"No matching filter","GLOBAL_Filter_Remove":"Remove this filter","GLOBAL_Filter_ClearAll":"Clear all filters","GLOBAL_Filter_Op_Contains":"contains","GLOBAL_Filter_Op_Between":"between","GLOBAL_Filter_Op_Is":"is","GLOBAL_Filter_Min":"Min","GLOBAL_Filter_Max":"Max","GLOBAL_Filter_Start":"Start","GLOBAL_Filter_End":"End","GLOBAL_Filter_From":"From","GLOBAL_Filter_To":"To","GLOBAL_Yes":"Yes","GLOBAL_No":"No","GLOBAL_Filter_Type_Text":"Text","GLOBAL_Filter_Type_Number":"Number","GLOBAL_Filter_Type_Select":"Select","GLOBAL_Filter_Type_Checkbox":"Checkbox","GLOBAL_Filter_Type_Toggle":"Toggle","GLOBAL_Filter_Type_Date":"Date","GLOBAL_Filter_Type_User":"User","GLOBAL_Filter_Type_Video":"Video","GLOBAL_IframeVideo_Play":"Play video","GLOBAL_IframeVideo_OpenInNewTab":"Open video in a new tab","GLOBAL_IframeVideo_InvalidUrl":"Invalid or unsafe URL","GLOBAL_IframeVideo_UnsupportedProvider":"Unsupported video provider","GLOBAL_IframeVideo_LoadingThumbnail":"Loading preview","GLOBAL_Action_Missing_License":"🔐 The license of the app is not active on your platform!","GLOBAL_Add_File":"Add file","GLOBAL_Add_Image":"Add image","GLOBAL_Add_Video":"Add video","GLOBAL_Add":"Add","GLOBAL_Alert_Author":"Recevoir une copie","GLOBAL_Align":"Alignement","GLOBAL_Animated_Meeting":"Diapazone","GLOBAL_Article_Preview_Excerpt":"Article preview (excerpt)","GLOBAL_Attachments":"Pièces jointes","GLOBAL_Audience":"Audience","GLOBAL_BACK_PREVIOUS_SECTION":"back to the previous section","GLOBAL_Cancel":"Cancel","GLOBAL_CHECK_BOXES":"Check the boxes","GLOBAL_CHECK_FIRST_BOXE":"It's empty! Check your first tag.","GLOBAL_Close":"Close","GLOBAL_Color":"Couleur","GLOBAL_Comments":"Comments","GLOBAL_Confirm":"Confirm","GLOBAL_Continue":"Continue","Global_Create":"Créer","GLOBAL_Creation_Date":"Creation date","GLOBAL_Creator":"Creator","GLOBAL_Date_Placeholder":"Date","GLOBAL_DateTime_Placeholder":"Date and time","GLOBAL_Day":"Day","GLOBAL_Delete_Confirm":"Confirm delete","GLOBAL_Delete_Confirmation":"Please confirm suppression","GLOBAL_Delete":"Delete","GLOBAL_Documents":"Documents","GLOBAL_Download":"Download","GLOBAL_Downloads":"Downloads","GLOBAL_Draft_Saved_Today":"Sauvegardé à {time}","GLOBAL_Draft_Saved":"Sauvegardé le {date}, à {time}","GLOBAL_Edit":"Edit","GLOBAL_File_Bank":"Document bank","GLOBAL_File":"File","GLOBAL_Files":"Files","GLOBAL_Filter":"Filter","GLOBAL_Folders":"Folders","GROUP_Type_Private":"Private group","GROUP_Type_Public":"Public group","WIZARD_Spot_Moderate":"Moderate group","GLOBAL_Fontawesome":"Font Awesome","GLOBAL_Form_Characters":"characters","GLOBAL_Form_Controls_Date":"Date must be formatted dd/mm/yyyy","GLOBAL_Form_Controls_MaxLength":"Must be {max} characters or less","GLOBAL_Form_Controls_MaxValue":"Must be at max {max}","GLOBAL_Form_Controls_MinLength":"Must be {min} characters or more","GLOBAL_Form_Controls_MinValue":"Must be at least {min}","GLOBAL_Form_Controls_Number":"Must be a number","GLOBAL_Form_Controls_Pattern":"Must follow the specified pattern {pattern}","GLOBAL_Form_Controls_Required":"Required","GLOBAL_Form_Controls_Url":"Invalid url address","GLOBAL_Form_Description":"Les champs obligatoires sont identifiés par un *","GLOBAL_Form_No_Options":"No option","GLOBAL_Form_SendAlert":"Send the alert email to those who have requested it","GLOBAL_Go_To_Content":"Go to content","GLOBAL_Groups":"Groups","GLOBAL_Image":"Image","GLOBAL_Image_Format_Image":"Image","GLOBAL_Image_Format_Banner":"Banner","GLOBAL_Image_Format_Cover":"Cover","GLOBAL_Import":"Import","GLOBAL_Insert":"Insert","GLOBAL_Jamespot":"Jamespot","GLOBAL_Load_More":"Load more results","GLOBAL_Loading":"Loading","GLOBAL_Login":"Login","GLOBAL_Move":"Move","GLOBAL_New":"Nouveau","GLOBAL_Next":"Next","GLOBAL_No_Result":"No result","GLOBAL_Object_Link":"Objet lié","GLOBAL_Ok":"OK","GLOBAL_Options":"Options","GLOBAL_Page":"Page","GLOBAL_Platform_Color":"Platform colors","GLOBAL_Previous":"Previous","GLOBAL_Provide_Missing_Token":"A token must be provided to use this widget","GLOBAL_Public_Groups":"Public groups","GLOBAL_Publish":"Publish","GLOBAL_Rate_Star_AriaLabel":"{value, plural, one {# star} other {# stars}}","GLOBAL_Rate_Stars_AriaLabel":"Rate (1 to 5 stars)","GLOBAL_Rate_Stars_Value_AriaLabel":"Rating: {value} out of 5","GLOBAL_Rate_Voters_Modal_Title":"Voters","GLOBAL_Read_Following":"Read more","GLOBAL_Recommended":"recommended","GLOBAL_Redirect_To_User_Profile_React":"Redirection to the profile page of {username}","GLOBAL_Reorder":"Reorder","GLOBAL_Reset":"Réinitialiser","GLOBAL_Save_as_draft":"Save draft","GLOBAL_Save":"Save","GLOBAL_Schedule_Action":"Schedule","GLOBAL_Schedule":"Schedule","GLOBAL_Scheduled_Date":"Scheduled date","GLOBAL_Search_Loading":"Searching...","GLOBAL_Search":"Search","GLOBAL_See_Less":"See less","GLOBAL_See_More":"See more","GLOBAL_See_More_X_Elements":"({value} more elements)","GLOBAL_Select_Date_In_Calendar":"Select a date in the calendar","GLOBAL_Select_Time":"Select time","GLOBAL_Select":"Select","GLOBAL_Send_Alert":"Envoyer le mail de notification à ceux qui l’ont demandé","GLOBAL_Sent":"Envoyé","GLOBAL_Settings":"Paramétrer","GLOBAL_Start_typing":"Start typing to search","GLOBAL_Successffully_Deleted":"Successfully deleted","GLOBAL_Today":"Today","GLOBAL_Type_Selection":"Choose a type","GLOBAL_Unsuccessfully_Deleted":"An error occured while deleting your content","GLOBAL_Unsuported_File_Format":"Unsupported file format","GLOBAL_Users":"Users","GLOBAL_Validation":"Confirm","GLOBAL_Video_Player":"Video player","GLOBAL_Yesterday":"Yesterday","HIERARCHICAL_TAXONOMY_DESCRIPTION":"Browse and select options by checking the boxes. You can select an unlimited number of options.","HOMEUSER_Home":"Home","INPUT_FILE_ADVANCED_Dropbox":"Dropbox","INPUT_FILE_ADVANCED_File_Too_Large":"File exceeds the maximum allowed size (250 MB)","INPUT_FILE_ADVANCED_FileBank":"Filebank","INPUT_FILE_ADVANCED_Google_Drive":"Google Drive","INPUT_FILE_ADVANCED_Microsoft_365":"Microsoft 365","INPUT_RichText_Html_Modal_Label":"HTML content","INPUT_RichText_Html_Modal_Title":"Edit HTML content","INPUT_SELECT_Expand":"Expand","INPUT_SELECT_Has_Reached_Limit":"You reached the limit of {limit} items","INTRANET_Selection_Group":"Select a group","JIA_TINY_BUTTON_TOOLTIP":"AI features to help you write","JIA_TINY_DEVELOP":"Develop","JIA_TINY_EN_TRANSLATION":"English translation","JIA_TINY_ES_TRANSLATION":"Spanish translation","JIA_TINY_FORMAL_TONE":"Formal tone","JIA_TINY_FUNNY_TONE":"Funny tone","JIA_TINY_SPELLCHECK":"Spell check","JIA_TINY_SUMMARIZE":"Summarize","JIA_TINY_TLDR":"TLDR","Office_No_Providers":"Aucun fournisseur disponible, contactez un administrateur","Office_Set_Configuration":"Connectez-vous","OfficeHook_Conf_CalDav_Calendar":"Agenda","OfficeHook_Conf_CardDav_Address_Book":"Adress book","OfficeHook_Conf_IMap_Hostname":"Hostname","OfficeHook_Conf_IMap_Mailbox":"Mailbox","OfficeHook_Conf_Password":"Password","OfficeHook_Conf_Prompt_Submit":"Submit","OfficeHook_Conf_Provider":"Provider","OfficeHook_Conf_Select_Connection_Security":"Connection security","OfficeHook_Conf_Select_Provider":"Select a provider","OfficeHook_Conf_Url":"Url","OfficeHook_Conf_Username":"Username","OfficeHook_Settings":"Paramètres généraux","PANEL_Background_Color":"Couleur du fond","PANEL_Description":"Description","PANEL_Edit_Slide_Background_Color":"Background color","PANEL_Edit_Slide_Background_Opacity_Filter":"Background opacity filter","PANEL_Image_Size":"Taille de l'image","PANEL_Size_Large":"Grand","PANEL_Size_Medium":"Moyen","PANEL_Size_Small":"Petit","PANEL_Text_Color":"Couleur du texte","PANEL_Text_Size":"Taille du texte","PANEL_Text_Shadow":"Ajouter une ombre portée au texte","PANEL_Title":"Titre","PANEL_Widget_Empty_Setting":"Il n'y a rien à configurer","PANEL_Widget_Extension_Name":"Nom de l'extension","PANEL_Widget_Level":"Niveau d'affichage","PANEL_Widget_Selection":"Style & décorations","PANEL_Widget_Settings":"Configuration du widget","PANEL_Widget_Synchronize":"Synchronisation","PANEL_Widget_Text":"Ajouter du texte","PANEL_Widget_Url":"Copier l'url du widget","PLUGIN_Manager_CalDav_Prompt":"Tester la connexion CalDav","PLUGIN_Manager_CardDav_Prompt":"Tester la connexion CardDav","PLUGIN_Manager_Connection_Error":"Connexion impossible. Vérifiez vos identifiants","PLUGIN_Manager_IMap_Prompt":"Tester la connexion IMAP","POLL_See_Response_After":"Hidden answers","POWERED_BY_Link":"https://www.jamespot.com/","POWERED_BY_See_More":"Know more","POWERED_BY":"Powered by","PUBLISH_To":"Publish for","REMOVE_FAVORITE":"Remove from favorites","SEARCH_File":"Search file","SLIDER_IMAGE_Empty_Des":"Ajoutez une image pour illustrer votre widget !","SOCIALPOLL_Anonymous":"Anonymous answers","SPOTIT_Receive_A_Copy":"Receive a copy","SPOTLIGHT_Send_Alert_To_Subscribers":"Send notification mail to those who have requested it","STYLE_Background_Color":"Couleur de fond","STYLE_Border_Style_Dashed":"Bordure discontinue","STYLE_Border_Style_Dotted":"Bordure en pointillés","STYLE_Border_Style_None":"Aucune bordure","STYLE_Border_Style_Solid":"Bordure continue","STYLE_Border_Style":"Style de bordure","STYLE_Border_Width":"Taille de la bordure","STYLE_Box_Shadow":"Ombre portée","STYLE_Font_Weight_Bold":"Bold","STYLE_Font_Weight_Medium":"Medium","STYLE_Font_Weight_Normal":"Normal","STYLE_Font_Weight_Semi_Bold":"Semi bold","STYLE_Font_Weight":"Epaisseur du texte","STYLE_Line_Height":"Hauteur de ligne","STYLE_Padding":"Marge interne","STYLE_Position_Bottom_Center":"Position bas centre","STYLE_Position_Bottom_Left":"Position bas gauche","STYLE_Position_Bottom_Right":"Position bas droite","STYLE_Position_Center_Left":"Position centre gauche","STYLE_Position_Center_Right":"Position centre droite","STYLE_Position_Center":"Position centre","STYLE_Position_Top_Center":"Position haut centre","STYLE_Position_Top_Left":"Position haut gauche","STYLE_Position_Top_Right":"Position haut droite","STYLE_Position":"Position","STYLE_Radius":"Arrondi","STYLE_Text_Align_Center":"Center","STYLE_Text_Align_Justify":"Justify","STYLE_Text_Align_Left":"Left","STYLE_Text_Align_Right":"Right","STYLE_Text_Align":"Alignement du texte","STYLE_Text_Color":"Couleur du texte","STYLE_Text_Size":"Taille du texte","TINY_MCE_Insert_Markdown":"Insert Markdown","TINY_MCE_Markdown_Shortcuts":"Markdown shortcuts","WIDGET_Agenda_Accepted":"You participate","WIDGET_Agenda_Declined":"You don't participate","WIDGET_Agenda_Pending":"You haven't responded yet","WIDGET_Agenda":"Agenda","WIDGET_BIRTHDAY":"Birthdays","WIDGET_BIRTHDAY_TEXT":"Display today's birthdays","WIDGET_Birthday_No_Birthday":"No birthday today","WIDGET_Birthday_Send_Msg":"Send a message","WIDGET_Builder":"Widget Builder","WIDGET_Button_Empty_Text":"Ajouter un label","WIDGET_Calendar_CalDav":"Office Agenda","WIDGET_Calendar_Group_Events":"Group","WIDGET_Calendar_Last_Events":"List","WIDGET_CALENDAR":"Calendar","WIDGET_Cannot_Display":"A widget is available but cannot be displayed here for now... ({widget})","WIDGET_Check_List_Description":"Add a checklist to keep track of progress","WIDGET_Check_List_Help":"Collaboration mode allows users with access to this widget to modify it","WIDGET_Collaboration":"Collaboration","WIDGET_Contact_CardDav":"Office Contacts","WIDGET_Contacts":"Contacts","WIDGET_Cover_Add_Button_Label":"Ajouter un bouton","WIDGET_Cover_Add_Image_Button_Label":"Ajouter une image","WIDGET_Cover_Button_Background_Color_Label":"Couleur du bouton","WIDGET_Cover_Button_Default_Label":"Bouton","WIDGET_Cover_Button_Size_Label":"Taille","WIDGET_Cover_Button_Target_Label":"Ouverture","WIDGET_Cover_Filter_Color_Label":"Couleur du filtre","WIDGET_Cover_Filter_Opacity_Label":"Opacité du filtre","WIDGET_Cover_Link_Url_Label":"Url","WIDGET_Cover_Update_Image_Button_Label":"Modifier l'image","WIDGET_Datasource_Cancel":"Annuler","WIDGET_Datasource_Excel_Broken_Model":"Les premières cellules de vos colonnes ne peuvent pas être vide. Corrigez votre fichier pour mettre à jour votre widget. ","WIDGET_Datasource_Object":"Source de donnée","WIDGET_Datasource_Select_Document":"Sélectionner depuis la banque documentaire","WIDGET_Datasource_Select_Wedoc_File":"Sélectionner depuis wedoc","WIDGET_Datasource_Spreadsheet_Header_Error":"Cette feuille contient au moins une colonne sans titre","WIDGET_Display_Level_1":"Icône","WIDGET_Display_Level_2":"Icône + Pastille","WIDGET_Display_Level_3":"Contenus","WIDGET_Display_Level_4":"Contenus + Interactions","WIDGET_Display_Level_Select":"Sélectionner un mode d'affichage","WIDGET_Email_IMAP":"Office Mails","WIDGET_List_Orientation_Horizontal":"Horizontale","WIDGET_List_Orientation_Vertical":"Vertical","WIDGET_Lucca_Absence_No_Result":"Aucun resultat","WIDGET_Lucca_Absence_Text":"Affichez les absents renseignés depuis votre outil RH Timmi pour une meilleure communication interne.","WIDGET_Lucca_Absence_Url_Error":"Une erreur s'est produite","WIDGET_Lucca_Absence_Url":"Url","WIDGET_Lucca_Absence":"Absence (Timmi)","WIDGET_Lucca_Absent_Until_Today":"Absent jusqu'a aujourd'hui","WIDGET_Lucca_Absent_Until_Tomorrow":"Absent jusqu'a demain","WIDGET_Lucca_Absent_Until":"Absent jusqu'au","WIDGET_NEWS":"Filtered group feed","WIDGET_NEWS_TEXT":"Display a filtered feed of articles from selected groups","WIDGET_News_Select_Groups":"Select groups","WIDGET_News_Not_Member":"You are not a member of this group","WIDGET_News_Highlight":"Highlight the latest article","WIDGET_News_Highlight_Helper":"If your widget is on a single column this setting will have no impact","WIDGET_News_Taxonomy_Filter":"Select a list of keywords as a filter","WIDGET_News_Taxonomy_Filter_Desc":"A field with the filter will appear on your widget to allow users to filter on the keyword(s) of their choice.","WIDGET_News_Keywords_Filter":"Select one or more keywords","WIDGET_News_Keywords_Filter_Desc":"You can filter your content using one or more specific keywords or not select any and let your users filter on the keywords of their choice","WIDGET_News_Show_KeywordsMandatories":"Show chosen keywords","WIDGET_News_Mandatories_Keywords":"The contents of this widget are filtered on the keyword(s): ","WIDGET_News_Types_Limit":"8 types maximum","WIDGET_News_Article_Display_Mode":"Article display mode","WIDGET_News_Article_Display_Mode_Short":"Short","WIDGET_News_Article_Display_Mode_Full":"Full","WIDGET_News_Image_Hide":"Hide image","WIDGET_News_Hide_Date":"Hide date","WIDGET_News_Hide_Desc":"Hide description","WIDGET_News_Button_ShowMore":"Show a \\"Load more\\" button","COLOR_Title_Color":"Title color","COLOR_Description_Color":"Description color","GLOBAL_No_Results":"No results","GLOBAL_Btn_Add_Spot_To_Favorite":"Join","GLOBAL_Display_Order":"Display order","GLOBAL_Last_Activity":"Date of last activity","GLOBAL_Left":"Left","GLOBAL_Right":"Right","GLOBAL_Show_More_Article":"Show more posts","SECTION_Section_Column":"Column number","SELECTION_Panel_Size_Medium":"Medium","WIDGET_Type_Filter":"Type","WIDGET_Limit_Filter":"Limit","WIDGET_List_Orientation":"Orientation","WIDGET_Markup_Size":"Display","WIDGET_Newsflash":"Flash info","WIDGET_Newsflash_Text":"Display the latest flash info on your homepage","WIDGET_Newsflash_Is_Empty":"No recent news","WIDGET_Newsflash_Display_Mode":"Display mode","WIDGET_Newsflash_Button_Background":"Button background color","WIDGET_Newsflash_Button_Text":"Button text color","WIDGET_Newsflash_Groups":"Filter by groups","WIDGET_Newsflash_Groups_Description":"If no filter is set, all flash infos are shown.","WIDGET_Newsflash_Groups_Select":"Select groups","WIDGET_Panel_Tpl_Warning_Message":"Il n'est pas possible de configurer ce widget en mode template","WIDGET_Presence_Availability":"{max} places disponibles","WIDGET_Presence_Is_Closed":"Il n'est plus possible de répondre à ce sondage","WIDGET_Presence_Limit_Response_Error":"Il n y a plus de place disponible","WIDGET_Presence_Limit_Value":"Présence maximum","WIDGET_Presence_Limit":"Limiter le nombre de places","WIDGET_Prompt_Dropdown":"Configurer","WIDGET_Prompt_Logout":"Se déconnecter","WIDGET_Quick_Survey_isStarted_no_modification":"The survey has already some answers, some modifications are not possible, if needed, please start a new survey.","WIDGET_Quick_Survey_isStarted":"The survey has already some answers, you can't make any change to it, if you need to, please reset the survey.","WIDGET_Quick_Survey_Reset":"Reset the survey answers","WIDGET_Quick_Survey_Text":"Add a survey to collect feedback","WIDGET_Quick_Survey":"Add a survey to collect feedback","WIDGET_Separator_Orientation":"Orientation","WIDGET_Separator_Size":"Épaisseur (px)","WIDGET_Separator_Text":"Affiche une ligne horizontale ou verticale pour séparer des sections","WIDGET_Separator":"Séparateur","WIDGET_Set_Widget":"Configurer","WIDGET_Slider_Autoplay":"Défilement automatique","WIDGET_Slider_Delay":"Délai de défilement","WIDGET_Survey_After_Help":"Respondents will only see the results once after they respond. They will no longer be able to edit their answer.","WIDGET_Survey_Anonymize_Help":"Les réponses de ce sondage seront anonymes : personne ne pourra savoir qui a répondu quoi, seulement les pourcentages.","WIDGET_Survey_Close_Survey_Description":"do you really want to finish this survey?","WIDGET_Survey_Close_Survey":"Close the survey","WIDGET_Survey_Closing_Help":"Display closing button","WIDGET_Survey_Closing":"Enable closing","WIDGET_Survey_Date_Add_Event":"Ajouter","WIDGET_Survey_Date_End_At":"Fin le {dateEnd}","WIDGET_Survey_Date_Label":"{label} {day} à {time}","WIDGET_Survey_Date_Participant_At":"Participants le {date}","WIDGET_Survey_Date_Revive_All":"Tous les participants","WIDGET_Survey_Date_Revive_Confirm":"Relancer","WIDGET_Survey_Date_Revive_Message":"Message de relance","WIDGET_Survey_Date_Revive_User_With_No_Response":"Les participants sans réponse","WIDGET_Survey_Date_Revive":"Relancer les participants","WIDGET_Survey_Date_Stats":"{totalResponse}/{totalRespondents} personnes ont répondu ({percent}%)","WIDGET_Survey_Multiple_Help":"Allow multiple responses","WIDGET_Survey_Multiple":"Multiple response","WIDGET_Survey_Open_Help":"Allows other users to add suggestion","WIDGET_Countdown_Days":"Day(s)","WIDGET_Countdown_Hours":"Hour(s)","WIDGET_Countdown_Minutes":"Minutes(s)","WIDGET_Countdown_Select_Social_Event":"Sélectionner un évènement","WIDGET_Countdown_Select_Social_Event_Message":"Seuls les événements/réunions des 60 prochains jours peuvent être affichés dans le compte à rebours","WIDGET_Countdown_Select_Meeting":"Sélectionner une réunion","PANEL_Widget_Countdown_Size":"Séléctionnez une taille","PANEL_Widget_Countdown_Use_Image":"Sélectionner une type de fond","PANEL_Widget_Countdown_Use_Image_Disabled_Message":"Aucune illustration disponible","PANEL_Widget_Countdown_Use_Background_Texture":"Texture de fond","WIDGET_Survey_Open":"Open survey","WIDGET_Text_Use_Flex_Label":"Disposition flexible","WIDGET_User_Profil_Display_Mode_Label":"Affichage du nom","WIDGET_User_Profil_Font_Weight_Label":"Gras","WIDGET_User_Profil_Only_Picture":"Image seule","WIDGET_User_Profil_Picture_Alt_Label":"Image de l'utilisateur","WIDGET_User_Profil_Picture_FirstName_LastName":"Avec prénom + nom","WIDGET_User_Profil_Picture_FirstName":"Avec prénom","WIDGET_User_Profil_Text_Max_Length_Description":"Maximum 30 caractères","WIDGET_User_Profil_Text":"Permettez à vos utilisateur un accès vers leur propre profil en un clic ! Idéal pour les encourager à le compléter. ","WIDGET_User_Profil_Tooltip_Link_Text":"Accéder à votre profil","WIDGET_User_Profil":"Profil utilisateur","WIDGET_Happy_Birthday":"Happy Birthday!","Widget_Birthday_Template_One":"Template 1","Widget_Birthday_Template_Two":"Template 2","SELECTION_Panel_Size":"Size","SELECTION_Panel_Size_Small":"Small","SELECTION_Panel_Size_Large":"Large","WIDGET_Welcome_Default_Message":"Bienvenue","WIDGET_Welcome_Linebreak_Label":"Saut de ligne (après le message)","WIDGET_Documents_Select_Folder":"Séléctionner un dossier","WIDGET_Documents_Select_Document":"Séléctionner un document","WIDGET_File_Hide_Preview":"Masquer l'image","WIDGET_File_Hide_Extension":"Masquer l'extension","WIDGET_File_View":"Affichage","WIDGET_File_View_List":"Liste","WIDGET_File_View_Gallery":"Galerie","WIDGET_File_View_Gallery_Cols":"Nombre de colonne","WIDGET_File_View_Gallery_Rows":"Nombre de ligne","WIDGET_File_Sort_By":"Ordre d'affichage","WIDGET_File_Sort_By_Title":"Titre","WIDGET_File_Sort_By_Date_Creation":"Date de création","WIDGET_FILE":"File","WIDGET_FILE_TEXT":"Improve communication by sharing downloadable documents on your intranet","WIDGET_File_From_Filebank":"Select a file","WIDGET_File_Maximun_Upload":"250 Mo maximum to ensure the application's normal operation.","WIDGET_File_List":"File list","WIDGET_Panel_Text_Size":"Text size","GLOBAL_Or":"Or","GLOBAL_Open_Document":"Open the document","WIDGET_Welcome":"Message d'accueil","WIDGET_Embed":"Embed","WIDGET_Embed_Text":"Embed external HTML content (iframe, integration code)","WIDGET_FLOCKLER":"Flockler","WIDGET_FLOCKLER_TEXT":"Embed a Flockler social wall","WIDGET_Flockler_Embed_Code":"Embed code url","WIDGET_Flockler_Embed_Code_Help":"Copy preview URL here","WIDGET_Youtube_Url":"Video URL","WIDGET_Youtube":"Video","WIDGET_Youtube_Text":"Embed a YouTube video","WIDGET_Youtube_InvalidUrl_FieldError":"Enter a valid YouTube URL","WIDGET_APPLICATION":"Applications","WIDGET_APPLICATION_TEXT":"Display a grid of shortcuts to your applications, links and tools.","WIDGET_Select_Application":"Select an application","WIDGET_Display":"Display","WIDGET_Application_Number_Per_Line":"Number per line","WIDGET_Application_Unused_App":"Unused application","GLOBAL_List":"List","GLOBAL_Gallery":"Gallery","WIDGET_Gallery":"Gallery","DW_Icon_Title":"Title","DW_Icon_Link":"Link","APP_Selection_Apps":"Applications","APP_Selection_Extensions":"Extensions","ADMIN_Add_Link":"Add a link","SMARTPAGE_Link_Target":"Open in a new tab","GLOBAL_No_Referer_Url":"No referrer","GLOBAL_Background_Color":"Background color","GLOBAL_Icon_Color":"Icon color","GLOBAL_Duplicate":"Duplicate","SPOTIT_Add_Picture":"Add a picture","DW_Add_Icon":"Add icon","POLL_Survey_Response_Number":"Number of responses","SURVEY_Response_Count_Response":"Responses","GLOBAL_Publish_Survey":"Survey","SURVEY_Publish_By":"publish by","WIDGET_Survey_Answer_Survey":"Respond to the survey","WIDGET_Survey_Answer_Survey_Again":"Respond to the survey again","WIDGET_Survey_See_Responses":"See the responses","POLL_Survey_Continue_Survey":"Continue","WIDGET_Select_SocialPoll":"Select a survey","WIDGET_Survey_Selection":"Select survey","GLOBAL_No_Survey_Results":"There is no survey open at the moment","FOLDER_Nb_Documents":"{count, plural, one {# document} other {# documents}}"}`),xte={FOLDER_Nb_Documents:"{count, plural, one {# document} other {# documents}}"},bte={FOLDER_Nb_Documents:"{count, plural, one {# Dokument} other {# Dokumente}}"},wte={FOLDER_Nb_Documents:"{count, plural, one {# documento} other {# documentos}}"},Cte={FOLDER_Nb_Documents:"{count, plural, one {# documento} other {# documenti}}"},Ete={en:yte,fr:xte,de:bte,es:wte,it:Cte};function fS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ig={exports:{}},Cd={};var hj;function Bte(){if(hj)return Cd;hj=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var s in i)s!=="key"&&(o[s]=i[s])}else o=i;return i=o.ref,{$$typeof:e,type:n,key:a,ref:i!==void 0?i:null,props:o}}return Cd.Fragment=t,Cd.jsx=r,Cd.jsxs=r,Cd}var Ed={};var pj;function Ste(){return pj||(pj=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===O?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case v:return"Fragment";case b:return"Profiler";case x:return"StrictMode";case B:return"Suspense";case S:return"SuspenseList";case T:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case m:return"Portal";case C:return P.displayName||"Context";case w:return(P._context.displayName||"Context")+".Consumer";case E:var M=P.render;return P=P.displayName,P||(P=M.displayName||M.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case D:return M=P.displayName||null,M!==null?M:e(P.type)||"Memo";case I:M=P._payload,P=P._init;try{return e(P(M))}catch{}}return null}function t(P){return""+P}function r(P){try{t(P);var M=!1}catch{M=!0}if(M){M=console;var W=M.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return W.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),t(P)}}function n(P){if(P===v)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===I)return"<...>";try{var M=e(P);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function i(){var P=j.A;return P===null?null:P.getOwner()}function o(){return Error("react-stack-top-frame")}function a(P){if(k.call(P,"key")){var M=Object.getOwnPropertyDescriptor(P,"key").get;if(M&&M.isReactWarning)return!1}return P.key!==void 0}function s(P,M){function W(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",M))}W.isReactWarning=!0,Object.defineProperty(P,"key",{get:W,configurable:!0})}function A(){var P=e(this.type);return H[P]||(H[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function c(P,M,W,Y,$,Ae){var de=W.ref;return P={$$typeof:h,type:P,key:M,props:W,_owner:Y},(de!==void 0?de:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:A}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ae}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function d(P,M,W,Y,$,Ae){var de=M.children;if(de!==void 0)if(Y)if(L(de)){for(Y=0;Y<de.length;Y++)u(de[Y]);Object.freeze&&Object.freeze(de)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(de);if(k.call(M,"key")){de=e(P);var J=Object.keys(M).filter(function(te){return te!=="key"});Y=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",F[de+Y]||(J=0<J.length?"{"+J.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
135
|
+
</display>`}}),t.length>0&&(t=`<displays type="${Tt(e.idApp)}">${t}</displays>`),t}function JZ(e,t){switch(t.type){case Te.TITLE:return"title";case Te.SENDALERTTOSUBSCRIBERS:return"sendAlert";case Te.RECEIVEACOPY:return"alertAuthor";case Te.PUBLISHTO:return"publishTo";case Te.USER:return"idUser";case Te.CREATIONDATE:return"dateCreation";case re.DESCRIPTION:return"description";default:return uS(e)}}function qZ(e,t){let r="";const n=JZ(e,t);if(t.isLockedValue){const i={ref:n,fixedValue:t.value};if(r+=`<html><![CDATA[ <!-- <JAMESPOT.STUDIO.FIXED>${JSON.stringify(i)}</JAMESPOT.STUDIO.FIXED> -->`,t.type===Te.PUBLISHTO){const o=t.value.map(a=>a.uri).join(",");r+=`<input type="hidden" name="publishTo" value="${o}">`}else if(t.type===Te.USER||t.type===re.USERLINK||t.type===re.CONTENTLINK)r+=`<input type="hidden" name="${n}[]" value=${JSON.stringify(t.value.uri)}>`;else if(t.type===re.SELECT)t.properties.find(o=>o.propertyType===ot.OPTIONS_EDITOR)?.value.canSelectMultiple?t.value.forEach(o=>{r+=`<input type="hidden" name="${n}[]" value="${o.value}">`}):r+=`<input type="hidden" name="${n}" value="${t.value.value}">`;else if(t.type===re.CHECKBOX)t.value.forEach(o=>{r+=`<input type="hidden" name="${n}[]" value="${o}">`});else if(t.type===re.DATE){const o=new Date(t.value),a=[Js(o.getDate()),Js(o.getMonth()+1),o.getFullYear()].join("/");r+='<input type="hidden" name="'+n+'" value="'+a+'">'}else if(t.type===re.DATETIME){const o=new Date(t.value),a=`${[Js(o.getDate()),Js(o.getMonth()+1),o.getFullYear()].join("/")} ${Js(o.getHours())}:${Js(o.getMinutes())}:${Js(o.getSeconds())}`;r+='<input type="hidden" name="'+n+'" value="'+a+'">'}else t.type===re.TAGS?r+=`<input type="hidden" name="${n}" value="${t.value?.map(o=>o.uri)?.join(",")}">`:t.type===re.DESCRIPTION||t.type===re.TEXTAREAHTML?r+=`<input type="hidden" name="${n}" value="${t.value}">`:t.type===Te.RECEIVEACOPY?t.value&&(r+='<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" ng-model="form.alertAuthor" name="alertAuthor[]" value="1">'):t.type===Te.SENDALERTTOSUBSCRIBERS?t.value&&(r+='<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" ng-model="form.sendAlert" name="sendAlert[]" value="1">'):r+=`<input type="hidden" name="${n}" value="${t.value}">`;r+="]]></html>"}else switch(t.type){case re.CODEHTML:{const i={id:e,name:e,properties:{code:t.value}};r+=`<html><![CDATA[ <!-- <JAMESPOT.STUDIO.CODEHTML>${JSON.stringify(i)}</JAMESPOT.STUDIO.CODEHTML><JAMESPOT.STUDIO.FIELD_POS>${t.pos}</JAMESPOT.STUDIO.FIELD_POS>-->${t.value}]]></html>`;break}case re.IMAGE:r+="<image />";break;case Te.PUBLISHTO:r+="<publishTo />";break;default:r+="<attr name='"+n+"' />";break}return r}function Js(e){return e<10?"0"+e:e}var on=[];for(var Eb=0;Eb<256;++Eb)on.push((Eb+256).toString(16).slice(1));function YZ(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}var Sg,ZZ=new Uint8Array(16);function $Z(){if(!Sg&&(Sg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sg(ZZ)}var e$=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const lj={randomUUID:e$};function No(e,t,r){if(lj.randomUUID&&!e)return lj.randomUUID();e=e||{};var n=e.random||(e.rng||$Z)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,YZ(n)}function Fv(e,t=!0){return{id:No(),type:e,properties:n$(e),mandatory:!1,views:{create:t,popup:t,edit:t,list:t,filter:t,view:t},isActive:!0,isFixed:!1,isOptional:!1,value:null,isLockedValue:!1}}const t$={type:"taxonomyOpen",id:1,title:"Mots-clés"},r$={type:"mpArticle",label:"Article"};function n$(e){switch(e){case re.TEXT:case re.DESCRIPTION:case re.TEXTAREAHTML:case re.DATE:case re.DATETIME:case re.URL:case re.IFRAMEVIDEO:case re.EMAIL:case re.TOGGLE:case re.USERLINK:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""}];case re.ADDFILEATTACHMENT:return[{propertyType:ot.LABEL,isRequired:!0,value:""}];case re.CODEHTML:return[{propertyType:ot.RICHTEXT,value:""}];case re.TEXTAREA:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""}];case re.NUMBER:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.CHECKBOX,value:!1,checkBoxOptions:[{label:"APPSTUDIO_FormEditProps_Digits",value:!1}]}];case re.SELECT:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.OPTIONS_EDITOR,value:[],isOptionsEditorEnhanced:!0}];case re.CHECKBOX:case re.RADIO:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.OPTIONS_EDITOR,value:[]}];case re.TAGS:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.TAXONOMY,value:{...t$}}];case re.CONTENTLINK:return[{propertyType:ot.LABEL,isRequired:!0,value:""},{propertyType:ot.DESCRIPTION,value:""},{propertyType:ot.CONTENTTYPE,value:{...r$}}];default:return[]}}function On(e,t){const r={...Fv(e,!1),id:t.name,mandatory:t.mandatory};return r.properties[0].value=t.label,r.properties[1].value=t.description,r}function I4(e){const t=[];return Object.keys(e).forEach(r=>{t.push({title:e[r],value:r})}),t}function i$(e){const t={...Fv(re.ADDFILEATTACHMENT,!1),id:e.name,mandatory:e.mandatory};return t.properties[0].value=e.label,t}function o$(e){const t={...Fv(re.CODEHTML,!1),id:e.name},r=e.properties.code;return typeof r=="object"&&r?.html&&typeof r.html=="string"?t.properties[0].value=r.html:typeof r=="string"&&(t.properties[0].value=r),t}function a$(){return Fv(re.IMAGE,!1)}function s$(e){const t=On(re.NUMBER,e);return t.properties[2].value=e.widget.params?.step==="0.01",t}function l$(e){const t=On(re.TAGS,e);return t.properties[2].value.id=+(e.widget.params?.idTaxonomy??1),t}function A$(e){const t=On(re.SELECT,e),r=e.widget.params?.defaultValue?{title:e.widget.options[e.widget.params?.defaultValue],value:e.widget.params?.defaultValue}:void 0,n={propertyOptions:I4(e.widget.options),canSelectMultiple:e.widget.multiple==="1",userCanModifiyByComment:e.widget.params?.explain==="1",defaultSelectOption:!!e.widget.params?.defaultValue,defaultSelectOptionValue:r};return t.properties[2].value=n,t}function O4(e){const t=On(re.RADIO,e),r={propertyOptions:I4(e.widget.options)};return t.properties[2].value=r,t}function c$(e){const t=O4(e);return t.type=re.CHECKBOX,t}function d$(e,t){const r=On(re.CONTENTLINK,e);r.properties[2].value.type=e.widget.params.types??"mpArticle";const n=t.entities===void 0?void 0:{entities:t.entities},i=n?C4.selectors.selectById(n,r.properties[2].value.type):void 0;return r.properties[2].value.label=i?.label??"Article",r}function u$(e){return On(re.TEXT,e)}function f$(e){return On(re.DESCRIPTION,e)}function g$(e){return On(re.TEXTAREAHTML,e)}function h$(e){return On(re.DATE,e)}function p$(e){return On(re.DATETIME,e)}function m$(e){return On(re.URL,e)}function v$(e){return On(re.IFRAMEVIDEO,e)}function y$(e){return On(re.EMAIL,e)}function x$(e){return On(re.TOGGLE,e)}function b$(e){return On(re.USERLINK,e)}function w$(e){return On(re.TEXTAREA,e)}const T4={"create-popup":"popup",create:"create",edit:"edit",display:"view",displayDisabled:"view"},Aj=["title","alertAuthor","sendAlert"],C$=["edito"];function E$(e,t,r){return Object.assign({},...AS.map(n=>{const i={};let o=[];ac[n]?.optional!==void 0&&(o=o.concat(ac[n]?.optional??[]));let a=[];ac[n]?.fixed!==void 0&&(a=a.concat(ac[n]?.fixed??[])),Object.entries(e[n]).forEach(([d,u])=>{if(u.isFixed||u.isOptional){i[d]=u;const f=a.findIndex(h=>h===u.type);f!==-1&&a.splice(f,1);const g=o.findIndex(h=>h===u.type);g!==-1&&o.splice(g,1)}});const s=new Set(a.concat(o)),A={[Te.CREATIONDATE]:()=>N4(!1),[Te.TITLE]:()=>qp({fixedValue:void 0}),[Te.USER]:()=>M4(!1),[Te.RECEIVEACOPY]:()=>k4({fixedValue:void 0}),[Te.SENDALERTTOSUBSCRIBERS]:()=>R4({fixedValue:void 0}),[Te.PUBLISHTO]:()=>L4({fixedValue:void 0})};s.forEach(d=>{const u=A[d];if(u){const[f,g]=u();i[f]=g}else console.error("ExtraAppFieldsItemViews does not have this field type: "+d)});const c=[];return r.forEach((d,u)=>{const f=d.views[n],g=Object.keys(e[n]).includes(d.id),h=d.type;if(cS.get(h)?.includes(n))return;let m;if(h===re.CODEHTML){const v=d.properties?.find(x=>x.propertyType===ot.RICHTEXT);v?.value&&(m=v?.value)}if(h===re.SELECT){const v=d.properties?.find(x=>x.propertyType===ot.OPTIONS_EDITOR);if(g){const x=e[n][d.id],b=x.properties?.find(E=>E.propertyType===ot.OPTIONS_EDITOR),w=!!v?.value?.canSelectMultiple,C=!!b?.value?.canSelectMultiple;w===C&&(m=x.value)}else{const x=v?.isOptionsEditorEnhanced&&v?.value.defaultSelectOption?v?.value.defaultSelectOptionValue:"";x&&(m=x)}}if(g){const v=e[n][d.id];i[d.id]={...v,properties:d.properties??v.properties??[],...m!==void 0&&{value:m},isUsed:f,pos:t?.[n]?u:v.pos,isLockedValue:(m!==void 0||v.value!==void 0)&&v.isLockedValue}}else{c.push({id:d.id,idx:u});const v=Object.values(e[n]).filter(x=>!x.isFixed&&!x.isOptional).length;i[d.id]={type:d.type,properties:d.properties??[],isUsed:f,isOptional:!1,isLockedValue:!1,isFixed:!1,value:m??null,pos:t?.[n]?u:v+u}}}),t?.[n]||c.forEach(d=>{const u=i[d.id];u.pos=d.idx+1,Object.keys(i).forEach(f=>{const g=i[f];g&&!Object.values(TZ).includes(f)&&f!==d.id&&g.pos>=u.pos&&g.pos++})}),{[n]:i}}))}function B$(e){return e.map(t=>({id:`${t.type}/${t.id}`,uri:`${t.type}/${t.id}`,shortUri:`${t.type}/${t.id}`,title:t.title,name:t.title,mainType:t.type,type:t.mainType,label:t.type,cssClass:t._cssClass,cssColor:t._cssColor,class:t._cssClass,Pseudo:t.title,_url:t._url}))}function S$(e,t,r){const n=e.typeModel.tables,i=e.typeModel.displays;if(!i)return;const o=new Map;Object.entries(i).forEach(a=>{const[s,A]=a;Object.keys(T4).includes(s)&&D$(t,o,s,A,n,r)}),I$(t,o,e.columns,n,r),O$(t,o,e.attrExposed,n,r)}function D$(e,t,r,n,i,o){const a=T4[r];if(e.views[a]={},a==="view"){const[s,A]=qp({fixedValue:void 0});e.views[a][s]=A}n.composants.forEach((s,A)=>{let c;if(s.name&&C$.includes(s.name))return;const[d,u]=P$(e,t,s,i,o);if(d===-1&&u)switch(u.ref){case"title":{if(a==="view")break;const[f,g]=qp(u);e.views[a][f]=g;break}case"alertAuthor":{const[f,g]=k4(u);e.views[a][f]=g;break}case"sendAlert":{const[f,g]=R4(u);e.views[a][f]=g;break}case"publishTo":{const[f,g]=L4(u);e.views[a][f]=g;break}default:console.error("fixed field info with unsupported ref ",u);break}else if(d!==-1){if(c=e.fields[d],!c?.views)throw new Error(`error converting installed app to V2: created field not found in fields array: ${d}, ${u}`);c.views[a]=!0,P4(a,c,e,A,u)}})}function I$(e,t,r,n,i){r&&Object.keys(r).forEach((o,a)=>{j4(e,t,n,"list",o,a,i)})}function O$(e,t,r,n,i){r.forEach((o,a)=>{j4(e,t,n,"filter",o,a,i)})}function j4(e,t,r,n,i,o,a){switch(i){case"title":{const[s,A]=qp({fixedValue:void 0});e.views[n][s]=A;break}case"iduser":case"idUser":{const[s,A]=M4();e.views[n][s]=A;break}case"datecreation":case"dateCreation":{const[s,A]=N4();e.views[n][s]=A;break}default:T$(e,t,r,n,i,o,a);break}}function T$(e,t,r,n,i,o,a){const s=j$(e,t,r,i,a),A=e.fields[s];if(!A?.views)throw new Error(`error converting installed app to V2: unable to handle ${i} in list view`);A.views[n]=!0,P4(n,A,e,o,void 0)}function j$(e,t,r,n,i){const o=t.get(n);if(o!==void 0)return o;const[a,s]=MC(e,n,r,i);return t.set(a,s),s}function P$(e,t,r,n,i){if(r.name!==void 0&&r.element==="attr"){if(Aj.includes(r.name))return[-1,{ref:r.name,fixedValue:void 0}];const o=t.get(r.name);if(o!==void 0)return[o,void 0];const[a,s]=MC(e,r.name,n,i);return t.set(a,s),[s,void 0]}else if(r.element==="html"){const o=r.html;if(o===void 0)return console.error("error while parsing studio installed html attr in a view: no html code"),[-1,void 0];if(o.includes("<JAMESPOT.STUDIO.FIXED>")){const a=o.indexOf("<JAMESPOT.STUDIO.FIXED>")+23,s=o.indexOf("</JAMESPOT.STUDIO.FIXED>"),A=o.substring(a,s);try{const c=JSON.parse(A);if(c?.ref.toUpperCase()in Te){const g=c.ref.toUpperCase();return[-1,{...c,ref:D4(g)}]}if(Aj.includes(c?.ref))return[-1,c];const d=t.get(c?.ref);if(d!==void 0)return[d,c];const[u,f]=MC(e,c.ref,n,i);return t.set(u,f),[f,c]}catch{return console.error("error while parsing studio installed fixed attr in a view: json parsing failed"),[-1,void 0]}}else if(o.includes("<JAMESPOT.STUDIO.CODEHTML>"))try{const a=o.indexOf("<JAMESPOT.STUDIO.CODEHTML>")+26,s=o.indexOf("</JAMESPOT.STUDIO.CODEHTML>"),A=o.substring(a,s),c=JSON.parse(A),d=t.get(c?.name);if(d!==void 0)return[d,void 0];const u=o$(c),f=e.fields.push(u)-1;return t.set(u.id,f),[f,void 0]}catch{return console.error("error while parsing studio installed codehtml attr in a view: json parsing failed"),[-1,void 0]}else return console.error("error while parsing studio installed html attr in a view: unknown html format"),[-1,void 0]}else if(r.element==="image"){const o=t.get("image");if(o!==void 0)return[o,void 0];const a=a$(),s=e.fields.push(a)-1;return t.set("image",s),[s,void 0]}else return r.element==="publishTo"?[-1,{ref:"publishTo",fixedValue:void 0}]:(console.error("error while parsing studio installed attr in a view: unknown attr :O"),[-1,void 0])}function MC(e,t,r,n){const i=k$(t,r),o=R$(i),a=(function(){switch(o){case re.ADDFILEATTACHMENT:return i$(i);case re.NUMBER:return s$(i);case re.TAGS:return l$(i);case re.SELECT:return A$(i);case re.RADIO:return O4(i);case re.CHECKBOX:return c$(i);case re.CONTENTLINK:return d$(i,n);case re.DESCRIPTION:return f$(i);case re.TEXTAREAHTML:return g$(i);case re.DATE:return h$(i);case re.DATETIME:return p$(i);case re.URL:return m$(i);case re.IFRAMEVIDEO:return v$(i);case re.EMAIL:return y$(i);case re.TOGGLE:return x$(i);case re.USERLINK:return b$(i);case re.TEXTAREA:return w$(i);case re.TEXT:default:return u$(i)}})(),s=e.fields.push(a)-1;return[t,s]}function k$(e,t){let r;for(let n=0;n<t.length&&!r;n++)r=t[n]?.attributes.find(i=>i.name===e);if(!r)throw new Error("error converting installed app to V2: installed field not found in tables "+e);return r}function P4(e,t,r,n,i){t.views&&(t.views[e]=!0,r.views[e][t.id]={type:t.type,properties:t.properties??[],isUsed:!0,isOptional:!1,isLockedValue:!!i?.fixedValue,isFixed:!1,value:i?.fixedValue??null,pos:n})}function R$(e){switch(e.widget.type){case"number":return re.NUMBER;case"taxonomy":return re.TAGS;case"date":return re.DATE;case"datetime":return re.DATETIME;case"select":return re.SELECT;case"radio":return re.RADIO;case"url":return re.URL;case"iframeVideo":return re.IFRAMEVIDEO;case"email":return re.EMAIL;case"file":return re.ADDFILEATTACHMENT;case"checkbox":return e.widget.options?.["1"]==="GLOBAL_Yes"?re.TOGGLE:re.CHECKBOX;case"uri":if(e.widget.params?.views==="user")return re.USERLINK;if(e.widget.params?.views==="article")return re.CONTENTLINK;break;case"textarea":if(e.attrType==="longtext"||e.attrType==="text")return re.TEXTAREA;if(e.attrType==="html")return e.name==="description"?re.DESCRIPTION:re.TEXTAREAHTML;break;case"text":return re.TEXT}throw new Error("error converting installed app to V2: installed field type not recognized for field "+e.name+":"+JSON.stringify(e))}function qp(e,t=!0){return["title",{type:Te.TITLE,properties:[],isUsed:t,isOptional:!1,isLockedValue:!!e?.fixedValue,isFixed:!0,value:e?.fixedValue??null,pos:0}]}function k4(e,t=!0){return["alertAuthor",{type:Te.RECEIVEACOPY,properties:[],isUsed:t,isOptional:!0,isLockedValue:e?.fixedValue!==void 0,isFixed:!1,value:e?.fixedValue??!0,pos:300}]}function R4(e,t=!0){return["sendAlert",{type:Te.SENDALERTTOSUBSCRIBERS,properties:[],isUsed:t,isOptional:!0,isLockedValue:e?.fixedValue!==void 0,isFixed:!1,value:e?.fixedValue??!0,pos:200}]}function L4(e,t=!0){return["publishTo",{type:Te.PUBLISHTO,properties:[],isUsed:t,isOptional:!0,isLockedValue:!!e?.fixedValue,isFixed:!1,value:e?.fixedValue??[],pos:100}]}function M4(e=!0,t=!1){return["user",{type:Te.USER,properties:[],isUsed:e,isOptional:t,isLockedValue:!1,isFixed:!t,value:null,pos:1}]}function N4(e=!0){return["dateCreation",{type:Te.CREATIONDATE,properties:[],isUsed:e,isOptional:!0,isLockedValue:!1,isFixed:!1,value:null,pos:100}]}var JA=(e=>(e.TITLE="TITLE",e.IMAGE="IMAGE",e.DESCRIPTION="DESCRIPTION",e.IDUSER="IDUSER",e.PUBLISHTO="PUBLISHTO",e.SENDALERTTOSUBSCRIBERS="SENDALERTTOSUBSCRIBERS",e.RECEIVEACOPY="RECEIVEACOPY",e.TEXT="TEXT",e.TEXTAREA="TEXTAREA",e.TEXTAREAHTML="TEXTAREAHTML",e.DATE="DATE",e.DATETIME="DATETIME",e.RANGE="RANGE",e.NUMBER="NUMBER",e.URL="URL",e.EMAIL="EMAIL",e.SELECT="SELECT",e.CHECKBOX="CHECKBOX",e.TOGGLE="TOGGLE",e.RADIO="RADIO",e.TAGS="TAGS",e.ADDFILEATTACHMENT="ADDFILEATTACHMENT",e.AUDIENCE="AUDIENCE",e.CODEHTML="CODEHTML",e.DATECREATION="DATECREATION",e.USERLINK="USERLINK",e.CONTENTLINK="CONTENTLINK",e))(JA||{});function F4(e){const t=e,r=t.manifest,n=o(),i={idApp:t.idApp,status:t.status,studioVersion:2,author:t.author??"",manifest:{appShortName:r.appShortName,appName:r.appName,description:r.description,author:r.author??"",typeLabel:r.typeLabel,cssColor:r.cssColor,cssClass:r.cssClass,version:r.version,dateCreation:new Date(r.dateCreation).toISOString(),viewSolr:r.viewSolr,checkAccess:r.checkAccess,accessRightList:r.accessRightList??"",attrExposed:r.attrExposed},fields:n,views:c(),audience:t.audience??"1",installFor:t.installFor??[]};function o(){const f=[];for(const g of t.form.formItems){const h=a(g.type);f.push({id:g.id,type:h,properties:s(g.properties??{}),mandatory:g.mandatory??!1,views:g.views,isActive:!0,isFixed:!1,isOptional:!1,value:null})}return f}function a(f){return re[f]}function s(f){const g=[],h=f.options&&Object.prototype.hasOwnProperty.call(f,"hasDefaultValue"),m={isRequired:f.mandatory??!1,...h&&{isOptionsEditorEnhanced:!0}};return f.labels&&(g.push({propertyType:ot.LABEL,value:f.labels.label?.content??"",...m}),g.push({propertyType:ot.DESCRIPTION,value:f.labels.description?.content??"",...m})),f.options&&g.push({propertyType:ot.OPTIONS_EDITOR,value:h?{propertyOptions:A(f.options??[]),defaultSelectOptionValue:f.defaultValue,defaultSelectOption:f.hasDefaultValue??!1,canSelectMultiple:f.multiple??!1,userCanModifiyByComment:f.explain??!1}:{propertyOptions:A(f.options??[])},...m}),f.code&&g.push({propertyType:ot.RICHTEXT,value:{html:f.code.html,text:f.code.text},...m}),Object.prototype.hasOwnProperty.call(f,"digits")&&g.push({propertyType:ot.CHECKBOX,value:f.digits??!1,checkBoxOptions:[{label:"APPSTUDIO_FormEditProps_Digits",value:f.digits}],...m}),Object.prototype.hasOwnProperty.call(f,"taxonomy")&&g.push({propertyType:ot.TAXONOMY,value:f.taxonomy??"",...m}),Object.prototype.hasOwnProperty.call(f,"contentType")&&g.push({propertyType:ot.CONTENTTYPE,value:f.contentType??"",...m}),g}function A(f){const g=[];for(const h of f)g.push({title:h.label,value:h.value});return g}function c(){return{create:d(t.formItemsViewList.find(f=>f.view=="create").formItemRefs),popup:d(t.formItemsViewList.find(f=>f.view=="popup").formItemRefs),edit:d(t.formItemsViewList.find(f=>f.view=="edit").formItemRefs),list:d(t.formItemsViewList.find(f=>f.view=="list").formItemRefs),filter:d(t.formItemsViewList.find(f=>f.view=="filter").formItemRefs),view:d(t.formItemsViewList.find(f=>f.view=="view").formItemRefs)}}function d(f){const g={};return f.forEach(h=>{const m={isUsed:!0,isFixed:!1,isOptional:!1,properties:[],pos:0,isLockedValue:!!h.fixedValue||!1,value:h.fixedValue??""};if(h.ref===JA.TITLE)g[No()]={...m,type:Te.TITLE,isFixed:!0};else if(h.ref===JA.IDUSER)g[No()]={...m,type:Te.USER,isFixed:!0};else if(h.ref===JA.PUBLISHTO)g[No()]={...m,type:Te.PUBLISHTO,isOptional:!0};else if(h.ref===JA.SENDALERTTOSUBSCRIBERS)g[No()]={...m,type:Te.SENDALERTTOSUBSCRIBERS,isOptional:!0};else if(h.ref===JA.RECEIVEACOPY)g[No()]={...m,type:Te.RECEIVEACOPY,isOptional:!0};else{const v=u(h);v&&(g[v.id]={type:v.type,...m,properties:v.properties??[]})}}),g}function u(f){const g=t.form.formItems.find(h=>f.ref===h.id||f.ref===h.name);return g?n.find(h=>h.id===g.id):null}return i}function NC(e){const t=e.views?.list;if(t)for(const r of Object.keys(t)){const n=t[r];n?.type===Te.USER&&n.isFixed&&(n.isFixed=!1,n.isOptional=!0)}}function L$(e,t,r){const{version:n,dateCreation:i}=e.manifest,o=e.typeModel,a=Object.assign({},...AS.map(f=>({[f]:{}}))),s=e,A=!!e.columns&&Object.keys(e.columns).length>0,c={idApp:e.idApp,status:FC(e),studioVersion:2,manifest:{appShortName:e.label,appName:e.label,description:e.description,author:e.author,cssColor:o.cssColor??"#392994",cssClass:{label:o.cssClass??"star",value:o.cssClass??"star"},version:n,dateCreation:i,checkAccess:!1,accessRightList:"",attrExposed:[],display:e.manifest?.studioView==="tableReact"?Ol.TABLE_REACT:A?Ol.TABLE:Ol.FLUX,viewSolr:e.view==="solr"?RC.SOLR:RC.NOT_SOLR,typeLabel:o.typeLabel,articlesCount:e.articlesCount??0,displayContentLegacyTable:!!s?.typeModel?.displays?.displayDisabled},fields:[],views:a,installFor:e.accessRightObjectList?B$(e.accessRightObjectList):[],audience:e.checkAccess===!1?Jp.ALL:Jp.CUSTOM};S$(e,c,r),c.views=E$(c.views,c.syncViewFieldOrder,c.fields);const d=M$(e.idApp,t);if(!d)return c;const u=H4(d);return u&&(c.inWorkVersion=u),c}function H4(e){if(!e.value)return;const t=JSON.parse(e.value);if(t.studioVersion==2){const r={idApp:e.idApp,studioVersion:2,status:FC(e),manifest:t.manifest,fields:t.fields,views:t.views,syncViewFieldOrder:t.syncViewFieldOrder,audience:t.audience,installFor:t.installFor,viewsConfig:t.viewsConfig};return NC(r),r}else{const r={...F4(t),status:FC(e),migratedFrom:1};return NC(r),r}}function FC(e){return e.status===q.StudioApplicationStatus.installed?e.suspended?pc.suspended:pc.installed:pc.draft}function M$(e,t){return t.find(r=>r.idApp===e&&r.status===q.StudioApplicationStatus.saved)}function N$(e,t){return!!t.find(r=>r.idApp===e&&r.status===q.StudioApplicationStatus.installed)}function Q4(e,t){return e.map(r=>{try{return r.status===q.StudioApplicationStatus.installed?L$(r,e,t):N$(r.idApp,e)?void 0:H4(r)}catch(n){console.error(n);return}}).filter(r=>r!==void 0)}const F$={currentStudioApp:null,fetchCurrentStudioAppStatus:"idle",saveCurrentStudioAppStatus:"idle",installStudioAppStatus:"idle",hasChanged:!1},Bb=me("studio/fetchCurrentStudioApp",async({idApp:e,status:t},{extra:r,rejectWithValue:n,getState:i})=>{const o=r.jApi,a={error:1,errorMsg:"Error fetching application"};try{const s=(await o.application.studioGet(e,t)).result;return Q4([s],i())[0]||n(a)}catch{return n(a)}}),Sb=me("studio/saveCurrentStudioApp",async(e,{extra:t,rejectWithValue:r,getState:n,dispatch:i})=>{const o=t.jApi,a={error:1,errorMsg:"Error saving application"},s=n().studio.currentStudioApp.currentStudioApp;if(!s)return r(a);const A=JSON.stringify(s);try{await o.application.studioSave(s.idApp,A,"saved"),i(xe.actions.success({label:"APPSTUDIO_AppItem_Edition_Saved"}));return}catch(c){return i(xe.actions.error({label:Le(c)})),r(a)}}),Db=me("studio/installApp",async({callback:e},{extra:t,rejectWithValue:r,getState:n,dispatch:i})=>{const o=t.jApi,a={error:1,errorMsg:"Error saving application"},s=n().studio.currentStudioApp.currentStudioApp;if(!s)return r(a);const A=LZ(s);try{await o.application.studioInstall(A),i(xe.actions.success({label:"APPSTUDIO_AppItem_Installed"})),e&&e();return}catch(c){return i(xe.actions.error({label:Le(c)})),r(a)}}),Yp=ke({name:"currentStudioApp",initialState:F$,reducers:{setCurrentApp:(e,t)=>{e.currentStudioApp=t.payload},resetCurrentApp:e=>{e.currentStudioApp=null},setHasChanged:(e,t)=>{e.hasChanged=t.payload}},extraReducers:e=>{e.addCase(Bb.pending,t=>{t.fetchCurrentStudioAppStatus==="idle"&&(t.fetchCurrentStudioAppStatus="pending")}).addCase(Bb.fulfilled,(t,r)=>{t.fetchCurrentStudioAppStatus==="pending"&&(t.fetchCurrentStudioAppStatus="idle"),t.currentStudioApp=r.payload}).addCase(Bb.rejected,t=>{t.fetchCurrentStudioAppStatus==="pending"&&(t.fetchCurrentStudioAppStatus="idle")}).addCase(Sb.pending,t=>{t.saveCurrentStudioAppStatus==="idle"&&(t.saveCurrentStudioAppStatus="pending")}).addCase(Sb.fulfilled,t=>{t.saveCurrentStudioAppStatus==="pending"&&(t.saveCurrentStudioAppStatus="idle")}).addCase(Sb.rejected,t=>{t.saveCurrentStudioAppStatus==="pending"&&(t.saveCurrentStudioAppStatus="idle")}).addCase(Db.pending,t=>{t.installStudioAppStatus==="idle"&&(t.installStudioAppStatus="pending")}).addCase(Db.fulfilled,t=>{t.installStudioAppStatus==="pending"&&(t.installStudioAppStatus="idle")}).addCase(Db.rejected,t=>{t.installStudioAppStatus==="pending"&&(t.installStudioAppStatus="idle")})}});function U4(e,t,r){const n=e.studioVersion!==2?JSON.parse(JSON.stringify(F4(e))):JSON.parse(JSON.stringify(e));if(delete n.inWorkVersion,r)n.manifest.version=n.manifest.version+.1;else{const i=No(),o=`${e.manifest.appName} Copie`;n.idApp=i,n.status=Ro.DRAFT,n.manifest={...n.manifest,appName:o,appShortName:o,author:t??n.manifest.author??"",dateCreation:new Date().toISOString(),version:.1,articlesCount:0}}return NC(n),[n,n.idApp]}function H$({author:e,appName:t}){const r=No(),n=Object.assign({},...AS.map(i=>{const o={};return ac[i]?.fixed.forEach((a,s)=>{o[No()]={type:a,properties:[],isUsed:!0,isOptional:!1,isFixed:!0,isLockedValue:!1,value:null,pos:s}}),ac[i]?.optional.forEach((a,s)=>{const A=i==="list"&&a==="USER";o[No()]={type:a,properties:[],isUsed:!0,isOptional:!0,isFixed:!1,isLockedValue:!1,value:a==="SENDALERTTOSUBSCRIBERS"||a==="RECEIVEACOPY"?!0:null,pos:A?1:(s+1)*100}}),{[i]:o}}));return{newAppId:r,newStudioApp:{idApp:r,status:Ro.DRAFT,author:e??"",studioVersion:2,manifest:{appShortName:t,appName:t,author:e??"",description:"",typeLabel:"",cssColor:"#392994",cssClass:{label:"star",value:"star"},version:.1,dateCreation:new Date().toISOString(),viewSolr:RC.SOLR,display:Ol.TABLE,checkAccess:!1,accessRightList:"",attrExposed:[],articlesCount:0},syncViewFieldOrder:{create:!0,popup:!0,view:!0,edit:!0,list:!0,filter:!0},fields:[],views:n,audience:Jp.CUSTOM,installFor:[]}}}function Dg(e,t){return e.manifest.appName>t.manifest.appName?1:-1}const Q$={loadingStudioAppsList:"idle",deleteStudioAppStatus:"idle",suspendStudioAppStatus:"idle",restartStudioAppStatus:"idle",cloneStudioAppStatus:"idle",createInWorkAppStatus:"idle",createNewStudioAppStatus:"idle"},Ib=me("studio/appsList",async(e,{extra:t,rejectWithValue:r,dispatch:n,getState:i})=>{const o=t.jApi;try{const{result:a}=await o.application.studioList(),s=await o.taxonomy.list(),A=(await Promise.allSettled(a.map(async d=>{const u=(await o.application.studioGet(d.idApp,d.status)).result,f=(await o.article.count(d.idApp)).result;return{...u,articlesCount:f}}))).map(d=>d.status==="fulfilled"?d.value:null).reduce((d,u)=>u!==null?d.concat([u]):d,[]),c=Q4(A,i());return c.forEach(async d=>{d.fields=cj(d.fields,s,e),d.inWorkVersion&&(d.inWorkVersion.fields=cj(d.inWorkVersion.fields,s,e))}),c}catch(a){throw console.error(a),n(xe.actions.error({label:Le(a)})),r({error:1,errorMsg:"Error retrieving applications"})}});function cj(e,t,r){return e.map(n=>{if(n.type!==re.TAGS)return n;const i=JSON.parse(JSON.stringify(n)),o=i.properties?.find(s=>s.propertyType===ot.TAXONOMY),a=t.find(s=>s.id===o?.value.id);return a&&o&&(o.value.title=r.formatMessage({id:a.title}),o.value.type=a.type),i})}const Ob=me("studio/createApp",async({appName:e,callback:t},{extra:r,dispatch:n,rejectWithValue:i,getState:o})=>{const a=r.jApi,s=o().userCurrent?.uri,{newAppId:A,newStudioApp:c}=H$({appName:e,...s&&{author:s}});try{return await a.application.studioSave(A,JSON.stringify(c),"saved"),n(xe.actions.success({label:"APPSTUDIO_StudioApp_Created"})),n(Yp.actions.setCurrentApp(c)),t&&t(),c}catch(d){throw n(xe.actions.error({label:Le(d)})),i({error:1,errorMsg:"Error creating application"})}}),Tb=me("studio/deleteApp",async({idApp:e,status:t},{extra:r,rejectWithValue:n,dispatch:i})=>{const o=r.jApi;try{const a=await o.application.studioDelete(e,t);return i(xe.actions.success({label:"APPSTUDIO_StudioApp_Deleted"})),a}catch(a){return i(xe.actions.error({label:Le(a)})),n({error:1,errorMsg:"Error deleting application"})}}),jb=me("studio/suspendStudioApp",async({idApp:e},{extra:t,rejectWithValue:r,dispatch:n})=>{const i=t.jApi;try{await i.application.studioSuspend(e),n(xe.actions.success({label:"APPSTUDIO_AppItem_Suspended"}))}catch(o){throw n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"Error suspending application"})}}),Pb=me("studio/restartStudioApp",async({idApp:e},{extra:t,rejectWithValue:r,dispatch:n})=>{const i=t.jApi;try{await i.application.studioRestart(e),n(xe.actions.success({label:"APPSTUDIO_AppItem_Restarted"}))}catch(o){throw n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"Error restarting application"})}}),kb=me("studio/cloneStudioApp",async({idApp:e,inWork:t},{extra:r,getState:n,rejectWithValue:i,dispatch:o})=>{const a=r.jApi;let s=n().studio.studioAppsList.studioAppsList?.find(f=>f.idApp===e);if(!s)return i({error:1,errorMsg:"Error cloning application"});if(t)if(s.inWorkVersion!==void 0)s=s.inWorkVersion;else return i({error:1,errorMsg:"Error cloning application"});const A=n().userCurrent?.uri,[c,d]=U4(s,A),u=JSON.stringify(c);try{return await a.application.studioSave(d,u,"saved"),o(xe.actions.success({label:"APPSTUDIO_AppItem_Cloned"})),c}catch(f){return o(xe.actions.error({label:Le(f)})),i({error:1,errorMsg:"Error cloning application"})}}),Rb=me("studio/createInWorkStudioApp",async({idApp:e},{extra:t,getState:r,rejectWithValue:n,dispatch:i})=>{const o=t.jApi,a=r().studio.studioAppsList.studioAppsList?.find(u=>u.idApp===e);if(!a||![Ro.INSTALLED,Ro.SUSPENDED].includes(a.status))return n({error:1,errorMsg:"Error cloning application"});const s=r().userCurrent?.uri,[A,c]=U4(a,s,!0),d=JSON.stringify(A);try{return await o.application.studioSave(c,d,"saved"),i(xe.actions.success({label:"APPSTUDIO_AppItem_CreateInWork"})),A}catch(u){return i(xe.actions.error({label:Le(u)})),n({error:1,errorMsg:"Error creating in work version for application"})}}),HC=ke({name:"studioAppsList",initialState:Q$,reducers:{setAppsList:(e,t)=>{e.studioAppsList=[...t.payload].sort(Dg)}},extraReducers:e=>{e.addCase(Ib.pending,t=>{t.loadingStudioAppsList==="idle"&&(t.loadingStudioAppsList="pending")}).addCase(Ib.fulfilled,(t,r)=>{t.loadingStudioAppsList==="pending"&&(t.loadingStudioAppsList="idle"),t.studioAppsList=[...r.payload].sort(Dg)}).addCase(Ib.rejected,t=>{t.loadingStudioAppsList==="pending"&&(t.loadingStudioAppsList="idle")}).addCase(Tb.pending,t=>{t.deleteStudioAppStatus==="idle"&&(t.deleteStudioAppStatus="pending")}).addCase(Tb.fulfilled,(t,r)=>{t.deleteStudioAppStatus==="pending"&&(t.deleteStudioAppStatus="idle"),t.studioAppsList=t.studioAppsList?.reduce((n,i)=>{const{idApp:o}=r.meta.arg;let{status:a}=r.meta.arg;return a===Ro.INSTALLED&&(a=Ro.SUSPENDED),i.idApp===o&&i.status===a?i.inWorkVersion&&i.status===Ro.SUSPENDED?(i.inWorkVersion.status=Ro.DRAFT,[...n,i.inWorkVersion]):n:(i.inWorkVersion?.idApp===o&&i.inWorkVersion?.status===a&&delete i.inWorkVersion,[...n,i])},[])??[]}).addCase(Tb.rejected,t=>{t.deleteStudioAppStatus==="pending"&&(t.deleteStudioAppStatus="idle")}).addCase(jb.pending,t=>{t.suspendStudioAppStatus==="idle"&&(t.suspendStudioAppStatus="pending")}).addCase(jb.fulfilled,(t,r)=>{t.suspendStudioAppStatus==="pending"&&(t.suspendStudioAppStatus="idle"),t.studioAppsList=t.studioAppsList?.map(n=>{const{idApp:i}=r.meta.arg;return n.idApp===i&&(n.status=Ro.SUSPENDED),n})??[]}).addCase(jb.rejected,t=>{t.suspendStudioAppStatus==="pending"&&(t.suspendStudioAppStatus="idle")}).addCase(Pb.pending,t=>{t.restartStudioAppStatus==="idle"&&(t.restartStudioAppStatus="pending")}).addCase(Pb.fulfilled,(t,r)=>{t.restartStudioAppStatus==="pending"&&(t.restartStudioAppStatus="idle"),t.studioAppsList=t.studioAppsList?.map(n=>{const{idApp:i}=r.meta.arg;return n.idApp===i&&(n.status=Ro.INSTALLED),n})??[]}).addCase(Pb.rejected,t=>{t.restartStudioAppStatus==="pending"&&(t.restartStudioAppStatus="idle")}).addCase(kb.pending,t=>{t.cloneStudioAppStatus==="idle"&&(t.cloneStudioAppStatus="pending")}).addCase(kb.fulfilled,(t,r)=>{t.cloneStudioAppStatus==="pending"&&(t.cloneStudioAppStatus="idle"),t.studioAppsList=[...t.studioAppsList??[],r.payload].sort(Dg)}).addCase(kb.rejected,t=>{t.cloneStudioAppStatus==="pending"&&(t.cloneStudioAppStatus="idle")}).addCase(Rb.pending,t=>{t.createInWorkAppStatus==="idle"&&(t.createInWorkAppStatus="pending")}).addCase(Rb.fulfilled,(t,r)=>{t.createInWorkAppStatus==="pending"&&(t.createInWorkAppStatus="idle");const n=t.studioAppsList?.find(i=>i.idApp===r.payload.idApp);n&&(n.inWorkVersion=r.payload)}).addCase(Rb.rejected,t=>{t.createInWorkAppStatus==="pending"&&(t.createInWorkAppStatus="idle")}).addCase(Ob.pending,t=>{t.createNewStudioAppStatus==="idle"&&(t.createNewStudioAppStatus="pending")}).addCase(Ob.fulfilled,(t,r)=>{t.createNewStudioAppStatus==="pending"&&(t.createNewStudioAppStatus="idle"),t.studioAppsList=[...t.studioAppsList??[],r.payload].sort(Dg)}).addCase(Ob.rejected,t=>{t.createNewStudioAppStatus==="pending"&&(t.createNewStudioAppStatus="idle")})}});In({[HC.name]:HC.reducer,[Yp.name]:Yp.reducer});({...HC.actions,...Yp.actions});const U$={messages:[],status:"idle",summary:void 0,jobUid:void 0},QC=ke({name:"teamWorkAiDaySummary",initialState:U$,reducers:{setDaySummaryMessageAndStatus:(e,t)=>{if(t.payload.jobUid!==e.jobUid)return;const{status:r,messages:n}=t.payload;e.status=r,e.messages=n},setDaySummary:(e,t)=>{t.payload.jobUid===e.jobUid&&(e.summary=t.payload.summary)},resetDaySummaryState:e=>{e.status="idle",e.messages=[],e.jobUid=void 0,e.summary=void 0}},extraReducers:e=>{e.addCase(Lb.pending,(t,r)=>{t.status="pending",t.messages=["APP_TeamWork_IA_Generation_Started"]}),e.addCase(Lb.fulfilled,(t,r)=>{t.status=r.payload.state,t.messages=r.payload.messages,t.summary=r.payload.summary,t.jobUid=r.payload.jobUid}),e.addCase(Lb.rejected,(t,r)=>{t.status="error",t.messages=[r.payload?.errorMsg??"GLOBAL_Technical_Error"]})}}),Lb=me("teamWork/Ai/startDaySummaryCreation",async(e,{extra:t,rejectWithValue:r,dispatch:n,signal:i})=>{try{return(await t.jApi.teamWorkAi.daySummary({forceGeneration:e},{signal:i})).result}catch(o){return Lt(o)||n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"APP_TEAMWORK_ToDo_Not_Sent"})}}),z$={messages:[],status:"idle",tasks:void 0,jobUid:void 0,uriAiTodo:void 0},UC=ke({name:"teamWorkAiTasks",initialState:z$,reducers:{setTasksMessageAndStatus:(e,t)=>{if(t.payload.jobUid!==e.jobUid)return;const{status:r,messages:n}=t.payload;e.status=r,e.messages=n},setTasks:(e,t)=>{t.payload.jobUid===e.jobUid&&(e.tasks=t.payload.tasks,e.uriAiTodo=t.payload.uriAiTodo)},resetTasksState:e=>{e.status="idle",e.messages=[],e.jobUid=void 0,e.tasks=void 0,e.uriAiTodo=void 0}},extraReducers:e=>{e.addCase(Mb.pending,(t,r)=>{t.status="pending",t.messages=["APP_TeamWork_IA_Generation_Started"]}),e.addCase(Mb.fulfilled,(t,r)=>{t.status=r.payload.state,t.messages=r.payload.messages,t.tasks=r.payload.tasks,t.jobUid=r.payload.jobUid,t.uriAiTodo=r.payload.uriAiTodo}),e.addCase(Mb.rejected,(t,r)=>{t.status="error",t.messages=[r.payload?.errorMsg??"GLOBAL_Technical_Error"]}),e.addCase(W$.fulfilled,(t,r)=>{t.tasks=r.payload})}}),Mb=me("teamWork/Ai/startToDoCreation",async(e,{extra:t,rejectWithValue:r,dispatch:n,signal:i})=>{try{return(await t.jApi.teamWorkAi.generateToDo({forceGeneration:e},{signal:i})).result}catch(o){return Lt(o)||n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"APP_TEAMWORK_ToDo_Not_Sent"})}}),W$=me("teamWork/Ai/setToDoDone",async(e,{extra:t,rejectWithValue:r,dispatch:n,signal:i})=>{try{return(await t.jApi.teamWorkAi.todoDone(e,{signal:i})).result}catch(o){return Lt(o)||n(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"GLOBAL_Technical_Error"})}});In({[UC.name]:UC.reducer,[QC.name]:QC.reducer});({...UC.actions,...QC.actions});const G$={},zC=ke({name:"options",initialState:G$,reducers:{initOptions:(e,{payload:t})=>t}});In({[zC.name]:zC.reducer});({...zC.actions});const V$={channels:void 0,loading:"idle",loadingChannelDeletion:"idle"},cp=me("/fetchChannels",async(e,{extra:t})=>{const r=e??1,n=t.jApi;return await new Promise((i,o)=>{const a={type:"tvDisplayChannel",page:r,orders:[{name:"id",sort:"DESC"}]};n.article.list(a,{format:"raw-list"}).then(s=>{i(s.result)}).catch(s=>{o({error:s.error??1,errorMsg:s.errorMsg??"Error retrieving channels"})})})}),Nb=me("/deleteChannel",async({channel:e},{extra:t,dispatch:r})=>{const n=t.jApi;return await new Promise((i,o)=>{n.article.delete(e.id).then(a=>{i(a.result),r(cp())}).catch(a=>{o({error:a.error??1,errorMsg:a.errorMsg??"Error deleting channel"})})})}),dj=ke({name:"channelsList",initialState:{...V$},reducers:{},extraReducers:e=>{e.addCase(cp.pending,t=>{t.loading==="idle"&&(t.loading="pending")}).addCase(cp.fulfilled,(t,r)=>{t.loading==="pending"&&(t.loading="idle",t.channels=r.payload)}).addCase(cp.rejected,t=>{t.loading==="pending"&&(t.loading="idle")}).addCase(Nb.pending,t=>{t.loadingChannelDeletion="pending"}).addCase(Nb.fulfilled,t=>{t.loadingChannelDeletion==="pending"&&(t.loadingChannelDeletion="idle")}).addCase(Nb.rejected,t=>{t.loadingChannelDeletion==="pending"&&(t.loadingChannelDeletion="idle")})}});In({[dj.name]:dj.reducer});const X$={id:0,mainType:"user",type:"user",uri:"user/0",title:"",_url:"",dateCreation:"",dateModified:"",level:0,active:1},_$=ke({name:"userCurrent",initialState:X$,reducers:{init:(e,{payload:t})=>t}});({..._$.actions});const WC=[{name:"name",sort:"ASC"}],K$={list:{loading:"idle",data:[],page:1,filters:[],orders:WC,limit:20,nbResults:0},tab:"my"},uj=ke({name:"visioConnect",initialState:K$,reducers:{setTab:(e,t)=>{e.tab=t.payload,e.list.page=1,q.deepEqual(e.list.orders,WC)||(e.list.orders=WC),e.list.filters.length>0&&(e.list.filters=[])},setPage:(e,t)=>{e.list.page=t.payload},setFilters:(e,t)=>{q.deepEqual(e.list.filters,t.payload)||(e.list.filters=t.payload)},setOrders:(e,t)=>{q.deepEqual(e.list.orders,t.payload)||(e.list.orders=t.payload)}},extraReducers:e=>{e.addCase(dp.pending,t=>{t.list.loading="pending"}).addCase(dp.fulfilled,(t,r)=>{t.list.loading="idle",t.list.data=r.payload.data,t.list.nbResults=r.payload.cnt}).addCase(dp.rejected,t=>{t.list.loading="idle"}).addCase(up.pending,t=>{t.list.loading="pending"}).addCase(up.fulfilled,(t,r)=>{t.list.loading="idle",t.list.data=r.payload.data,t.list.nbResults=r.payload.cnt}).addCase(up.rejected,t=>{t.list.loading="idle"})}}),dp=me("visioConnect/fetchPermanentRooms",async(e,{rejectWithValue:t,extra:r,dispatch:n,getState:i})=>{const o=i().visioConnect;try{const a=[...o.list.filters],s=o.list.orders.length>0?o.list.orders:[{name:"name",sort:"ASC"}],A=o.tab,c={filters:a,orders:s,page:o.list.page,limit:o.list.limit};if(A==="my")return(await r.jApi.visioConnect.getPermanentRoomsMy(c)).result;if(A==="all")return(await r.jApi.visioConnect.getPermanentRoomsAll(c)).result;if(A==="archive")return(await r.jApi.visioConnect.getPermanentRoomsArchive(c)).result;throw Error("Unhandled tab")}catch(a){return Lt(a)||n(xe.actions.error({label:Le(a)})),t({error:1,errorMsg:"Cannot fetch rooms"})}}),up=me("visioConnect/fetchTeamworkPermanentRooms",async(e,{rejectWithValue:t,extra:r,dispatch:n})=>{try{const i=[],o=[{name:"name",sort:"ASC"}];return(await r.jApi.visioConnect.getPermanentRoomsMy({filters:i,orders:o,page:1,limit:10})).result}catch(i){return Lt(i)||n(xe.actions.error({label:Le(i)})),t({error:1,errorMsg:"Cannot fetch rooms"})}}),J$=me("visioConnect/createPermanentRoom",async({room:e,token:t},{rejectWithValue:r,extra:n,dispatch:i})=>{try{const o=(await n.jApi.visioConnect.createPermanentRoom({room:e,token:t})).result;return i(Hv.actions.fetchPermanentRooms()),i(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Create_Success"})),o}catch(o){return Lt(o)||i(xe.actions.error({label:Le(o)})),r({error:1,errorMsg:"Cannot save room"})}}),q$=me("visioConnect/updatePermanentRoom",async({room:e,token:t,uri:r},{rejectWithValue:n,extra:i,dispatch:o})=>{try{const a=(await i.jApi.visioConnect.updatePermanentRoom({uri:r,room:e,token:t})).result;return o(Hv.actions.fetchPermanentRooms()),o(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Update_Success"})),a}catch(a){return Lt(a)||o(xe.actions.error({label:Le(a)})),n({error:1,errorMsg:"Cannot save room"})}}),Y$=me("visioConnect/archivePermanentRoom",async({uri:e},{rejectWithValue:t,extra:r,dispatch:n})=>{try{const i=(await r.jApi.visioConnect.archivePermanentRoom(e)).result;return n(Hv.actions.fetchPermanentRooms()),n(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Archive_Success"})),i}catch(i){return Lt(i)||n(xe.actions.error({label:Le(i)})),t({error:1,errorMsg:"Cannot archive room"})}}),Z$=me("visioConnect/unarchivePermanentRoom",async({uri:e},{rejectWithValue:t,extra:r,dispatch:n})=>{try{const i=(await r.jApi.visioConnect.unarchivePermanentRoom(e)).result;return n(Hv.actions.fetchPermanentRooms()),n(xe.actions.success({label:"APP_VisioConnect_PermanentRoom_Unarchive_Success"})),i}catch(i){return Lt(i)||n(xe.actions.error({label:Le(i)})),t({error:1,errorMsg:"Cannot unarchive room"})}}),$$=e=>e.visioConnect.tab,eee=e=>e.visioConnect.list,Hv={slice:uj,actions:{archivePermanentRoom:Y$,unarchivePermanentRoom:Z$,createPermanentRoom:J$,updatePermanentRoom:q$,fetchPermanentRooms:dp,fetchTeamworkPermanentRooms:up,...uj.actions},selectors:{selectVisioConnectTab:$$,selectVisioConnectList:eee}},Fb=me("wall/fetchWallFilters",async(e,{extra:t,rejectWithValue:r})=>{try{return(await t.jApi.wall.getFilters()).result}catch(n){return r(n)}}),fj={filters:[],taxonomies:[],loading:"idle"},tee=ke({name:"wall",initialState:fj,reducers:{setFilters:(e,t)=>{e.filters=t.payload},setLoading:(e,t)=>{e.loading=t.payload},reset:()=>fj},extraReducers:e=>{e.addCase(Fb.pending,t=>{t.loading="pending"}),e.addCase(Fb.fulfilled,(t,r)=>{t.loading="idle",t.filters=r.payload.filterList,t.taxonomies=r.payload.taxonomies}),e.addCase(Fb.rejected,t=>{t.loading="idle"})}});({...tee.actions});const ree=4,Tl=me("/fetchFiles",async({page:e,query:t,folder:r,tab:n},{extra:i,getState:o})=>{const a=i.jApi,s=o(),A=n??s.wedoc.tab,c=e??s.wedoc.page,d=t??s.wedoc.query,u=r!==void 0?r?.uri??null:s.wedoc.currentFolder?.uri;return u?await a.wedoc.listMy({page:c,query:d,limit:s.wedoc.limit,uriFolder:u},{format:"raw-list",extensions:["parentArticle"]}):A==="my-documents"?await a.wedoc.listMy({page:c,query:d,limit:s.wedoc.limit},{format:"raw-list",extensions:["parentArticle"]}):A==="shared-with-me"?await a.wedoc.listSharedWithMe({page:c,limit:s.wedoc.limit,query:d},{format:"raw-list",extensions:["parentArticle"]}):await a.wedoc.getFiles({page:c,limit:s.wedoc.limit,orders:[{name:"dateCreation",sort:"DESC"}],query:d},{format:"raw-list",extensions:["parentArticle"]})}),Hb=me("/fetchRecentFiles",async(e,{extra:t,getState:r})=>{const n=t.jApi,i=r().wedoc.tab==="my-documents"?[{name:"idUser",value:"0"}]:[];return await n.wedoc.getFiles({filters:i,limit:ree,orders:[],page:1,withCount:!1},{format:"raw-list"})});me("/setCurrentFolder",async({folder:e,tab:t},{dispatch:r,getState:n})=>(e?.uri!==n().wedoc.currentFolder?.uri&&await r(Tl({page:1,query:"",folder:e,tab:t})),e));me("/setQuery",async(e,{dispatch:t,getState:r})=>(e!==r().wedoc.query&&await t(Tl({page:1,query:e})),e));me("/setTab",async(e,{dispatch:t})=>(await t(Tl({page:1,query:"",folder:null,tab:e})),e));me("/setPage",async(e,{dispatch:t,getState:r})=>(e!==r().wedoc.page&&await t(Tl({page:e})),e));const nee={entities:[],nbEntities:0,entitiesRecent:[],tab:"my-documents",loading:"idle",loadingRecent:"idle",query:"",page:1,currentFolder:null,limit:12,currentRequestId:null};ke({name:"wedoc",initialState:nee,reducers:{update:(e,t)=>{e.entities=[...e.entities.map(r=>r.id===t.payload.id?{...r,...t.payload}:r)]}},extraReducers:e=>{e.addCase(Tl.pending,(t,r)=>{t.loading="pending",t.currentRequestId=r.meta.requestId,t.page=r.meta.arg.page??t.page,t.query=r.meta.arg.query??t.query,t.tab=r.meta.arg.tab??t.tab}).addCase(Tl.fulfilled,(t,r)=>{if(r.meta.requestId===t.currentRequestId){t.loading="idle";const{data:n,cnt:i}=r.payload.result;t.entities=n,t.nbEntities=i,t.currentFolder=r.meta.arg.folder!==void 0?r.meta.arg.folder:t.currentFolder}}).addCase(Tl.rejected,(t,r)=>{r.meta.requestId===t.currentRequestId&&(t.loading="idle")}).addCase(Hb.pending,t=>{t.loadingRecent="pending"}).addCase(Hb.fulfilled,(t,r)=>{t.loadingRecent="idle",t.entitiesRecent=r.payload.result.data}).addCase(Hb.rejected,t=>{t.loadingRecent="idle"})}});function iee(){let e="";for(let t=0;t<16;t++)e+=((1+Math.random())*65536|0).toString(16).substring(1);return e}q.WidgetsName.Accessibility;const oee={};q.WidgetsName.Application;const aee={};q.WidgetsName.ArticleAttachment;const see={};q.WidgetsName.ArticleButton;const lee={};q.WidgetsName.ArticleGallery;const Aee={};q.WidgetsName.ArticleImage;const cee={};q.WidgetsName.ArticleSlider;const dee={};q.WidgetsName.ArticleText;const uee={};q.WidgetsName.ArticleTitle;const fee={};q.WidgetsName.Birthday;const gee={};q.WidgetsName.Button;const hee={};q.WidgetsName.Calendar;const pee={};q.WidgetsName.CalendarCalDav;const mee={};q.WidgetsName.CheckList;const vee={};q.WidgetsName.Color;const yee={};q.WidgetsName.Contact;const xee={};q.WidgetsName.ContactCardDav;const bee={};q.WidgetsName.Charts;const wee={};q.WidgetsName.Countdown;const Cee={};q.WidgetsName.Cover;const Eee={};q.WidgetsName.DatasourceTable;const Bee={};q.WidgetsName.Documents;const See={};q.WidgetsName.EmailsImap;const Dee={};q.WidgetsName.Embed;const Iee={};q.WidgetsName.ExcelDatasourceTable;const Oee={};q.WidgetsName.Extension;const Tee={};q.WidgetsName.Flockler;const jee={};q.WidgetsName.Faq;const Pee={};q.WidgetsName.File;const kee={};q.WidgetsName.Survey;const Ree={};q.WidgetsName.Image;const Lee={};q.WidgetsName.LuccaAbsence;const Mee={};q.WidgetsName.Meteo;const Nee={};q.WidgetsName.MyGroup;const Fee={};q.WidgetsName.News;const Hee={};q.WidgetsName.Newsflash;const Qee={};q.WidgetsName.Presence;const Uee={};q.WidgetsName.QuickSurvey;const zee={};q.WidgetsName.Separator;const Wee={};q.WidgetsName.Slider;const Gee={};q.WidgetsName.Text;const Vee={};q.WidgetsName.UserProfile;const Xee={};q.WidgetsName.Welcome;const _ee={};q.WidgetsName.Youtube;const Kee={};q.WidgetsName.Combination;const Jee={};q.WidgetsName.Accessibility+"",q.WidgetsName.Application+"",q.WidgetsName.Birthday+"",q.WidgetsName.ArticleAttachment+"",q.WidgetsName.ArticleButton+"",q.WidgetsName.Button+"",q.WidgetsName.ArticleGallery+"",q.WidgetsName.ArticleImage+"",q.WidgetsName.ArticleSlider+"",q.WidgetsName.ArticleText+"",q.WidgetsName.ArticleTitle+"",q.WidgetsName.Calendar+"",q.WidgetsName.CalendarCalDav+"",q.WidgetsName.CheckList+"",q.WidgetsName.Color+"",q.WidgetsName.Separator+"",q.WidgetsName.ContactCardDav+"",q.WidgetsName.Countdown+"",q.WidgetsName.Cover+"",q.WidgetsName.Charts+"",q.WidgetsName.Contact+"",q.WidgetsName.Image+"",q.WidgetsName.Meteo+"",q.WidgetsName.MyGroup+"",q.WidgetsName.News+"",q.WidgetsName.Newsflash+"",q.WidgetsName.DatasourceTable+"",q.WidgetsName.EmailsImap+"",q.WidgetsName.ExcelDatasourceTable+"",q.WidgetsName.Extension+"",q.WidgetsName.LuccaAbsence+"",q.WidgetsName.Presence+"",q.WidgetsName.QuickSurvey+"",q.WidgetsName.Slider+"",q.WidgetsName.SyncContent+"",q.WidgetsName.Text+"",q.WidgetsName.Embed+"",q.WidgetsName.Flockler+"",q.WidgetsName.Faq+"",q.WidgetsName.File+"",q.WidgetsName.Survey+"",q.WidgetsName.UserProfile+"",q.WidgetsName.Welcome+"",q.WidgetsName.Documents+"",q.WidgetsName.Youtube+"",q.WidgetsName.Combination+"";const qee={token:void 0,ids:{},layers:{},states:{},modal:void 0,editableMap:{},currentEditableIndex:-1,currentEditableWidgetId:void 0,widgetObject:{},widgetObjectRights:{},widgetAuthor:{},widgetWrapperBackgroundImage:{},widgetWrapperStyle:{},widgetTitleStyle:{},widgetChipCount:{},flushedWidgets:[],rtObjectStack:[],widgetContext:{},wrapperSize:{},widgetSynchronizationStates:{},widgetUrls:{}},Yee=[q.WidgetsName.ArticleTitle,q.WidgetsName.ArticleText,q.WidgetsName.ArticleImage,q.WidgetsName.ArticleButton,q.WidgetsName.ArticleSlider,q.WidgetsName.ArticleAttachment];ke({name:"widgets",initialState:qee,reducers:{registerWidget:(e,t)=>{const{uniqid:r,widget:n,context:i}=t.payload;if(e.ids[r]){console.error(`Widget with uniqid ${r} is already registered.`);return}e.ids[r]=n,e.states[r]??={busy:!1,initialized:void 0,loading:!1,mounted:!1,hover:!1,empty:Yee.includes(n.widget.name),locked:!1},e.widgetContext[r]=i},registerWidgetObject:(e,t)=>{const{uniqid:r,object:n}=t.payload;e.widgetObject[r]=n},registerWidgetObjectRights:(e,t)=>{const{uniqid:r,rights:n}=t.payload;e.widgetObjectRights[r]=n},registerWidgetAuthor:(e,t)=>{const{uniqid:r,author:n}=t.payload;e.widgetAuthor[r]=n},setWidgetChipCount:(e,t)=>{const{uniqid:r,count:n}=t.payload;e.widgetChipCount[r]=n},setWidgetWrapperBackgroundImage:(e,t)=>{const{uniqid:r,payload:n}=t.payload;e.widgetWrapperBackgroundImage[r]=n},flushWidgetWrapperBackgroundImage:(e,t)=>{const{uniqid:r}=t.payload;delete e.widgetWrapperBackgroundImage[r]},setWidgetWrapperStyle:(e,t)=>{const{uniqid:r,styles:n}=t.payload;e.widgetWrapperStyle[r]={...e.widgetWrapperStyle[r],...n}},setWidgetSynchronizationState:(e,t)=>{e.widgetSynchronizationStates[t.payload.uniqid]=t.payload.state},setWidgetUrl:(e,t)=>{e.widgetUrls[t.payload.uniqid]=t.payload.url},setWidgetTitleStyle:(e,t)=>{const{uniqid:r,styles:n}=t.payload;e.widgetTitleStyle[r]={...e.widgetTitleStyle[r],...n}},updateWidget:(e,t)=>{const{uniqid:r}=t.payload,n={...e.ids[r]};e.states[r]?.locked||e.ids[r]&&n.widget&&(e.ids[r]=Object.assign({...e.ids[r],widget:{...n.widget,content:t.payload.override?t.payload.content:Object.assign({...n.widget.content,...t.payload.content})}}))},replaceWidget:(e,t)=>{const{uniqid:r}=t.payload,n={...e.ids[r]};e.states[r]?.locked||e.ids[r]&&n.widget&&(e.ids[r]=Object.assign({...e.ids[r],widget:{...n.widget,name:t.payload.name,content:t.payload.content}}))},registerWidgetRTObject:(e,t)=>{const{uniqid:r,fn:n,object:i}=t.payload;e.rtObjectStack=[...e.rtObjectStack,{uniqid:r,fn:n,object:i}]},flushWidget:(e,t)=>{const{uniqid:r}=t.payload;delete e.ids[r],delete e.states[r],delete e.widgetContext[r],delete e.widgetObject[r],delete e.widgetObjectRights[r],delete e.widgetAuthor[r],delete e.widgetChipCount[r],delete e.widgetWrapperStyle[r],delete e.widgetTitleStyle[r],e.flushedWidgets.push(r)},flushAllWidget:e=>{e.flushedWidgets=[...e.flushedWidgets,...Object.keys(e.ids)],e.ids={},e.states={}},updateWidgetWrapper:(e,t)=>{const{uniqid:r}=t.payload;e.ids[r]&&(e.ids[r]=Object.assign({...e.ids[r],...t.payload}))},registerLayer:(e,t)=>{const r=iee(),n={...e.ids[t.payload.uniqid]};n.widget&&(e.ids[t.payload.uniqid]&&n.widget.layers?e.ids[t.payload.uniqid]=Object.assign({...e.ids[t.payload.uniqid],widget:{...n.widget,layers:[...n.widget.layers,r]}}):e.ids[t.payload.uniqid]=Object.assign({...e.ids[t.payload.uniqid],widget:{...n.widget,layers:[r]}}),e.ids[t.payload.widget.widget.uniqid]=t.payload.widget,e.states[t.payload.widget.widget.uniqid]={busy:!1,initialized:!1,loading:!1,mounted:!1,hover:!1,empty:!0},e.layers[r]={uniqid:r,widgets:[t.payload.widget],title:`Layer ${r}`,visible:!0,locked:!1,position:{x:0,y:0}})},updateLayer:(e,t)=>{e.layers[t.payload.uniqid]&&(e.layers[t.payload.uniqid]=Object.assign({...e.layers[t.payload.uniqid],...t.payload.props}))},flushLayer:(e,t)=>{const r={...e.ids[t.payload.uniqid]};r.widget?.layers&&(e.ids[t.payload.uniqid]=Object.assign({...e.ids[t.payload.uniqid],widget:{...r.widget,layers:[...r.widget.layers.filter(n=>n!==t.payload.layerId)]}}),delete e.layers[t.payload.layerId])},prevEditableIndex:e=>{const t=Object.keys(e.ids).length;e.currentEditableIndex=e.currentEditableIndex===0?t-1:e.currentEditableIndex-1},nextEditableIndex:e=>{const t=Object.keys(e.ids).length;e.currentEditableIndex=e.currentEditableIndex<t-1?e.currentEditableIndex+1:0},setEditableIndex:(e,t)=>{e.currentEditableIndex=t.payload.index},setEditableWidgetId:(e,t)=>{e.currentEditableWidgetId=t.payload.uniqid},registerEditableWidget:(e,t)=>{e.editableMap[t.payload.uniqid]=t.payload},setToken:(e,t)=>{e.token=t.payload.token},setWrapperSize:(e,t)=>{e.wrapperSize[t.payload.uniqid]={width:t.payload.width,height:t.payload.height}},setWidgetState:(e,t)=>{const{uniqid:r}=t.payload;({...e.states[r]}!==void 0)&&(e.states[r]={...e.states[r],...t.payload})},setAllWidgetStates:(e,t)=>{Object.keys(e.states).map(r=>{({...e.states[r]}!==void 0)&&(e.states[r]={...e.states[r],...t.payload})})},registerModal:(e,t)=>{e.modal=t.payload},flushModal:e=>{e.modal=void 0}}});const Zee={editors:[]};ke({name:"editors",initialState:Zee,reducers:{registerEditor:(e,t)=>{const{uniqid:r,name:n,onSave:i,mode:o}=t.payload,a=i?{uniqid:r,name:n,onSave:i,position:"right",mode:o??"view"}:{uniqid:r,name:n,position:"right",mode:o??"view"};e.editors=e.editors.find(s=>s.uniqid===r)?e.editors:[...e.editors,a]},registerEditorPopup:(e,t)=>{const{uniqid:r,view:n}=t.payload;e.editors=[...e.editors.map(i=>i.uniqid===r?{...i,popup:!0,view:n}:i)]},flushEditorPopup:(e,t)=>{const{uniqid:r}=t.payload;e.editors=[...e.editors.map(n=>n.uniqid===r?{...n,popup:!1}:n)]},setEditorPosition:(e,t)=>{const{uniqid:r,position:n}=t.payload;e.editors=[...e.editors.map(i=>i.uniqid===r?{...i,position:n}:i)]},flushEditor:(e,t)=>{const{uniqid:r}=t.payload;e.editors=[...e.editors.filter(n=>n.uniqid!==r)]},flushAllEditor:e=>{window.dispatchEvent(new Event("WidgetEditorFlushAll")),e.editors.length=0}}});const Zp={success:"green",error:"red",warning:"yellow"};function mc(e){return String(e).padStart(2,"0")}function $ee(e,t){return`${e}${{10:"1a",20:"33",30:"4d",40:"66",50:"80",60:"99",70:"b3",80:"cc",90:"e6"}[t]}`}const qA={isValid:z4,rgb:(e,t,r)=>({toHex:()=>({string:()=>"#"+mc(e.toString(16))+mc(t.toString(16))+mc(r.toString(16))}),toHsb:()=>({values:()=>eu(e,t,r),hue:()=>eu(e,t,r)[0],staturation:()=>eu(e,t,r)[1],brightness:()=>eu(e,t,r)[2]})}),hsl:(e,t,r)=>({toHex:()=>({values:()=>GC(e,t,r),string:()=>{const n=GC(e,t,r);return"#"+n[0]+n[1]+n[2]}})}),hsb:(e,t,r)=>({toRgb:()=>({values:()=>$d(e,t,r),red:()=>$d(e,t,r)[0],green:()=>$d(e,t,r)[1],blue:()=>$d(e,t,r)[2]})}),hex:e=>({toRgbaColor:t=>`rgba(${String(ci(e).r).padStart(2,"0")},${String(ci(e).g).padStart(2,"0")},${String(ci(e).b).padStart(2,"0")},${String(t)})`,toRgbColor:()=>`rgb(${String(ci(e).r).padStart(2,"0")},${String(ci(e).g).padStart(2,"0")},${String(ci(e).b).padStart(2,"0")})`,toRgb:()=>({values:()=>ci(e),red:()=>ci(e).r,green:()=>ci(e).g,blue:()=>ci(e).b}),toHsl:()=>({values:()=>As(e),hue:()=>As(e)[0],saturation:()=>Math.round(As(e)[1]),luminance:()=>Math.round(As(e)[2]),string:()=>{const t=As(e);return"hsl("+t[0]+","+Math.round(t[1])+"%,"+Math.round(t[2])+"%)"}})})},ete=e=>{const t=e.replace("#","");return parseInt(t,16)>16777215/2?"black":"white"},tte=e=>{const t=e.replace("#",""),r=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);return(r*299+n*587+i*114)/1e3>=125?"black":"white"};function z4(e){return/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(String(e))}const Qb=e=>parseInt(e,16),ci=e=>({r:Qb(e.substring(1,3)),g:Qb(e.substring(3,5)),b:Qb(e.substring(5,7))}),rte=function(e,t){try{if(t<-1||t>1||e[0]!=="#"||e.length!==4&&e.length!==7)return;let r=e.slice(1);r.length==3&&(r=`${r[0]}${r[0]}${r[1]}${r[1]}${r[2]}${r[2]}`);const n=r.match(new RegExp("[0-9a-fA-F]{2}","g"));return n?.length!==3?void 0:n.map(i=>{const o=parseInt(i,16),a=t<0?o:255-o,s=Math.ceil(a*t);return(o+s).toString(16).toUpperCase().padStart(2,"0")}).reduce((i,o)=>`${i}${o}`,"#")}catch{return}},$d=(e,t,r)=>{const n=o=>(o+e/60)%6,i=o=>r*(1-t*Math.max(0,Math.min(n(o),4-n(o),1)));return[Math.round(255*i(5)),Math.round(255*i(3)),Math.round(255*i(1))]},eu=(e,t,r)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),i=n-Math.min(e,t,r),o=i===0?0:i&&n===e?(t-r)/i:n===t?2+(r-e)/i:4+(e-t)/i;return[Math.round(60*(o<0?o+6:o)),Math.round(n&&i/n*100),Math.round(n*100)]},As=e=>{let t=0,r=0,n=0;e.length==4||e.length==5?(t="0x"+e[1]+e[1],r="0x"+e[2]+e[2],n="0x"+e[3]+e[3]):(e.length==7||e.length==9)&&(t="0x"+e[1]+e[2],r="0x"+e[3]+e[4],n="0x"+e[5]+e[6]),t/=255,r/=255,n/=255;const i=Math.min(t,r,n),o=Math.max(t,r,n),a=o-i;let s=0,A=0,c=0;return a==0?s=0:o==t?s=(r-n)/a%6:o==r?s=(n-t)/a+2:s=(t-r)/a+4,s=Math.round(s*60),s<0&&(s+=360),c=(o+i)/2,A=a==0?0:a/(1-Math.abs(2*c-1)),A=+(A*100).toFixed(1),c=+(c*100).toFixed(1),[s,A,c]};function GC(e,t,r){t/=100,r/=100;const n=(1-Math.abs(2*r-1))*t,i=n*(1-Math.abs(e/60%2-1)),o=r-n/2;let a=0,s=0,A=0;return 0<=e&&e<60?(a=n,s=i,A=0):60<=e&&e<120?(a=i,s=n,A=0):120<=e&&e<180?(a=0,s=n,A=i):180<=e&&e<240?(a=0,s=i,A=n):240<=e&&e<300?(a=i,s=0,A=n):300<=e&&e<360&&(a=n,s=0,A=i),[mc(Math.round((a+o)*255).toString(16)),mc(Math.round((s+o)*255).toString(16)),mc(Math.round((A+o)*255).toString(16))]}const W4=e=>{const t=e.indexOf(",")>-1?",":" ",r=e.substring(4).split(")")[0]?.split(t)??[],n=[0,0,0];for(let g=0;g<r.length&&g<3;g++){const h=r[g].trim();h.indexOf("%")>-1?n[g]=Math.round(+h.substring(0,h.length-1)/100*255):n[g]=+h}const i=n[0]/255,o=n[1]/255,a=n[2]/255,s=Math.min(i,o,a),A=Math.max(i,o,a),c=A-s,d=0;let u=0,f=0;return f=(A+s)/2,u=c==0?0:c/(1-Math.abs(2*f-1)),u=+(u*100).toFixed(1),f=+(f*100).toFixed(1),[d,u,f]},G4="^#(?:[A-Fa-f0-9]{3}){1,2}$",V4="^rgb\\(\\s*(25[0-5]|2[0-4][0-9]|1?\\d{1,2})\\s*,\\s*(25[0-5]|2[0-4][0-9]|1?\\d{1,2})\\s*,\\s*(25[0-5]|2[0-4][0-9]|1?\\d{1,2})\\s*\\)$|^rgb\\(\\s*(\\d{1,3}(?:\\.\\d+)?%)\\s*,\\s*(\\d{1,3}(?:\\.\\d+)?%)\\s*,\\s*(\\d{1,3}(?:\\.\\d+)?%)\\s*\\)$",X4="^hsl\\(\\s*(3[0-5][0-9]|360|[12]?\\d{1,2})\\s*,\\s*(100(?:\\.0+)?|\\d{1,2}(?:\\.\\d+)?)%\\s*,\\s*(100(?:\\.0+)?|\\d{1,2}(?:\\.\\d+)?)%\\s*\\)$",_4=e=>{const t=new RegExp(G4),r=new RegExp(V4),n=new RegExp(X4),i=t.test(e)?As(e):r.test(e)?W4(e):n.test(e)&&n.exec(e)?.slice(1);let o="";return i&&i[2]&&parseInt(i[2])>50?o="hsl("+i[0]+","+i[1]+"%,"+(parseInt(i[2])-10)+"%)":(i&&i[2]&&parseInt(i[2])<50||i&&i[2]&&parseInt(i[2])===50)&&(o="hsl("+i[0]+","+i[1]+"%,"+(parseInt(i[2])+10)+"%)"),o},nte=e=>{const t=new RegExp(G4),r=new RegExp(V4),n=new RegExp(X4),i=t.test(e)?As(e):r.test(e)?W4(e):n.test(e)&&n.exec(e)?.slice(1);return i?+i[2]:-1},ite=(e,t,r)=>"#"+[e,t,r].map(n=>n.toString(16).padStart(2,"0")).join(""),vc=e=>Math.round(e).toString(16).padStart(2,"0"),ote=({r:e,g:t,b:r},n)=>`#${vc((1-n)*e)}${vc((1-n)*t)}${vc((1-n)*r)}`,ate=({r:e,g:t,b:r},n)=>`#${vc(e+(255-e)*n)}${vc(t+(255-t)*n)}${vc(r+(255-r)*n)}`,ste=(e,t)=>ote(ci(e),t),lte=(e,t)=>ate(ci(e),t),Ate=Object.freeze(Object.defineProperty({__proto__:null,HSBToRGB:$d,RGBToHSB:eu,brightness:nte,colorContrast:_4,colorTransparency:$ee,colorimetry:qA,getContrast50:ete,getContrastYIQ:tte,getDarkShade:ste,getLightShade:lte,hexToHSL:As,hexToRgb:ci,hlsToHex:GC,isValidHexColor:z4,modifyColorBrightness:rte,rgbToHex:ite},Symbol.toStringTag,{value:"Module"})),gj="#4A4A52",cte=["grey0","grey1","grey2","grey3","grey4","grey5","grey6"],dte=["black","black10","black15","black20","white","transparent","transparentHexa","textColor"],ute=["headerColor","headerTextColor","headerUserBackground","headerUserTextColor","headerSearchBarTextColor","headerSearchBarBackgroundColor","navBackground","navTextColor","hrefColor"],fte=["lavender","navy","overseas","night1","night2","sky","sand","skeleton","yellow"],gte=["primary","secondary","green","red"],K4=e=>{const t=qA.hex(e).toHsl();return{light:qA.hsl(t.hue(),t.saturation(),95).toHex().string(),medium:qA.hsl(t.hue(),t.saturation(),90).toHex().string(),base:e,strong:qA.hsl(t.hue(),t.saturation(),t.luminance()-5).toHex().string(),dark:qA.hsl(t.hue(),t.saturation()!==0?50:0,30).toHex().string()}},Vn=(e,t)=>{const r=K4(t);return{[`${e}Light`]:r.light,[`${e}Medium`]:r.medium,[e]:r.base,[`${e}Strong`]:r.strong,[`${e}Dark`]:r.dark}},J4={linkColor:"#392994",buttonColor:"#7364E3",forest:"#0D846B",headerTextColor:"",headerUserBackground:"",headerUserTextColor:"",headerSearchBarTextColor:"#2f373f",navBackground:"#ffffff",navTextColor:"#4A4A52",bgColorNotLogged:""},hte=(e=J4)=>{const t=Vn("primary",e.buttonColor),r=Vn("secondary",e.linkColor),n=Vn("green","#0D846B"),i=Vn("red","#E12B43"),o=Vn("lavender","#8F7CEA"),a=Vn("navy","#131E4B"),s=Vn("overseas","#392994"),A=Vn("night1","#2B3870"),c=Vn("night2","#10162D"),d=Vn("sky","#9CC9FF"),u=Vn("skeleton","#9adbef"),f=Vn("sand","#FFEED7"),g=Vn("yellow","#FFBB54");return{...t,...r,...n,...i,...o,...a,...s,...A,...c,...d,...f,...g,...u,grey6:"#2E2E33",grey5:gj,grey4:"#747487",grey3:"#BEBED1",grey2:"#DADAF0",grey1:"#EFEFFF",grey0:"#F8F8FF",black:"#000000",black10:"#00000019",black15:"#00000026",black20:"#00000033",white:"#FFFFFF",transparent:"transparent",transparentHexa:"#ffffff00",textColor:gj,headerColor:e.headerColor??"",headerTextColor:e.headerTextColor,headerUserBackground:e.headerUserBackground,headerUserTextColor:e.headerUserTextColor,headerSearchBarTextColor:e.headerSearchBarTextColor,headerSearchBarBackgroundColor:e?.headerSearchBarBackgroundColor??(e?.headerColor?_4(e.headerColor):"#313941"),navBackground:e.navBackground,navTextColor:e.navTextColor,hrefColor:r.secondary}},pte=Object.freeze(Object.defineProperty({__proto__:null,buildPalette:hte,buildPaletteObject:Vn,defaultColors:J4,getColorPalette:K4,paletteColorsGreys:cte,paletteColorsPlatform:ute,paletteColorsPrimary:gte,paletteColorsSecondary:fte,paletteColorsUtils:dte},Symbol.toStringTag,{value:"Module"})),Zr=Object.freeze(Object.defineProperty({__proto__:null,color:Ate,palette:pte},Symbol.toStringTag,{value:"Module"})),{buildPalette:mte,defaultColors:vte}=Zr.palette;function jl(e,t){return t in e.color?e.color[t]:t}const q4={config:void 0,get:function(){return this.config?this.config:this.initTheme()},initTheme:function(e=vte,t=[]){const r=mte(e);return this.config={dpr:Math.ceil(window?.devicePixelRatio||2),platformPalette:[r.transparent,...t],fallbackUrl:{article:"/imagestatic/30x30/icons/article.png"},font:{family:e?.fontFamily?`'${e.fontFamily}', sans-serif`:"'Poppins', sans-serif",color:r.textColor,hrefColor:r.hrefColor,size:"16px",lineHeight:"1.5em",weight:{light:300,normal:400,medium:500,semiBold:600,bold:700}},color:{...r},zIndex:{toaster:1e6,forceTop:1e5,tooltip:50030,tinyMCEModal:50020,modal:1100,dropdown:1e3,sidePanelModal:5,fullScreenContainer:3},space:{xs:4,sm:8,md:16,l:24,xl:32},size:{xs:4,sm:8,md:16,l:24,xl:32},transition:{duration:{fast:"0.15s"}},iconSize:{xs:12,sm:14,md:16,lg:20,xl:24}},this.config}},yte=JSON.parse(`{"WIDGET_Charts":"Charts","WIDGET_Charts_Title":"Title","WIDGET_Charts_Subtitle":"Subtitle","WIDGET_Charts_Legend":"Show legend","WIDGET_Charts_Edit_Series":"Edit data","WIDGET_Charts_Add_Serie":"Add a series","WIDGET_Charts_Add_Value":"Add a value","WIDGET_Charts_Series_Name":"Series name","WIDGET_Charts_Slice_Name":"Label","WIDGET_Charts_Value":"Value","GLOBAL_Move_Up":"Move up","GLOBAL_Move_Down":"Move down","GLOBAL_Visible_By":"Visible by","GLOBAL_Public":"Public","CHARTS_Pie":"Pie","CHARTS_Column":"Column","CHARTS_Line":"Line","WIDGET_Empty_No_Data":"No data","WIDGET_Contact":"Contact","WIDGET_Contact_Text":"Display a directory of selected contacts","WIDGET_Faq":"FAQ","WIDGET_Faq_Text":"Display the FAQ of your choice directly from your Intranet pages","WIDGET_Faq_Hide_Cover":"Hide cover","WIDGET_Faq_Allow_Comment":"Allow comments","WIDGET_Faq_Search_In_Title":"Search within title","WIDGET_Faq_Search_In_Description":"Search within description","WIDGET_Faq_Selection":"Choose an FAQ","WIDGET_Faq_No_Faq":"There is no FAQ available","WIDGET_Faq_Toggle_All_Themes":"Expand/collapse all themes","WIDGET_Faq_Search_Placeholder":"Search (title and description)","GLOBAL_Update":"Update","CONTACT_Add_Contact":"Add a contact","CONTACT_Manage_Information":"Manage information","CONTACT_Update_Fields":"Edit fields","CONTACT_No_Field_Selected":"No field selected — click “Edit fields” to add some","CONTACT_Send_Message":"Send a message","USER_Not_In_Contact":"Not in your contacts","USER_Not_Active":"Inactive user","USER_Not_Specified":"Not specified","SHARE_Invitation_Request":"Send a contact request","USERACTION_Send_Mail":"Send an email","SELECTION_Panel_Text_Color":"Text color","SELECTION_Panel_Link_Color":"Link color","SELECTION_Panel_Button_Color":"Button color","SELECTION_Panel_Background_Card_Contact_Color":"Card background color","SELECTION_Panel_Background_Color":"Background color","GLOBAL_Background":"Background","INTRANET_Advanced_Options":"Advanced options","WIDGET_Add_Image_Url":"Add an image URL","WIDGET_IMAGE":"Image","WIDGET_IMAGE_TEXT":"Display an image","WIDGET_Image_Adjust":"Image adjustment","WIDGET_Image_Background_Position":"Background position","WIDGET_Image_Upload_Label":"Add an image","WIDGET_Image_Background_Vertical_Position":"Vertical background position","WIDGET_Image_Scale":"Scale","WIDGET_Image_X_Position":"Horizontal position","WIDGET_Image_Y_Position":"Vertical position","GLOBAL_Search_City":"Search city or a post code","WIDGET_METEO":"Weather","WIDGET_METEO_TEXT":"Display the weather in real time","WIDGET_METEO_Iframe":"Weather by Météo France","ACTIVITY_Can_Not_comment_Desc":"You cannot comment on this content. Several reasons are possible:<p>- You are not part of the audience of the content</p><p>- You do not have sufficient rights according to the group settings</p><p>- A solar storm creates interference (less likely, but you never know)","ADD_FAVORITE":"Add to favorites","APP_Animated_Meeting":"Diapazone","APP_Bookmark_Bookmarks":"favorites","APP_FileIntegrity_Quarantine_Files_Message":"{ count } file(s) in quarantine","APP_SurveyDate_Over":"The survey is closed","APP_SurveyDate":"Sondage de date","AppLeftColumn_App_Navigation":"Application navigation menu","AppLeftColumn_Close_Panel":"Reduces the size of the menu","AppLeftColumn_Open_Panel":"Expands the menu","ARTICLE_Nb_Selected_Elements":"Elements sélectionés","ATTACHMENTS_No_Download":"No download","ATTACHMENTS_Preview_Successfully_Recomputed":"Preview successfully recomputed","ATTACHMENTS_Recompute_Preview":"Recompute preview","ATTACHMENTS_See_Downloads":"See downloads","AUDIENCE_GROUPS_AND_USERS":"{groups} group(s) and {users} users(s)","AUDIENCE_GROUPS_ONLY":"{groups} group(s)","AUDIENCE_ONLY_ME":"Only me","AUDIENCE_USERS_ONLY":"{users} user(s)","BUTTON_Title_Add_Image":"Add image","BUTTON_Title_Add_New_Task":"Add new task","BUTTON_Title_Add_Uri":"Add link to task","BUTTON_Title_Open_Edit_Panel":"Button that open the edit panel","BUTTON_Title_Open_Remove_Widget":"Button that remove the widget entirely","BUTTON_Title_Remove_Item":"Remove task","BUTTON_Title_Remove_Uri":"Remove link","CALENDAR_All_Day":"All day","CALENDAR_Answer":"Répondre","CALENDAR_BoardCard":"Board card","CALENDAR_dayGridMonth":"Month","CALENDAR_Delete_Confirmation_Recurrent":"Do you want to delete the whole series?","CALENDAR_Event_Date_All_Day":"Le {date}","CALENDAR_Event_Date_Start_End_All_Day":"Du {dateStart} au {dateEnd}","CALENDAR_Event_Date_Start_End_Same_Day_All_Day":"Le {dateStart}","CALENDAR_Event_Date_Start_End_Same_Day":"Le {dateStart}, de {timeStart} à {timeEnd}","CALENDAR_Event_Date_Start_End":"Du {dateStart}, {timeStart} au {dateEnd}, {timeEnd}","CALENDAR_Event_Date":"Le {date}, {time}","CALENDAR_Event_Recurrence_Daily":"Tous les jours","CALENDAR_Event_Recurrence_Monthly":"Tous les {day} du mois","CALENDAR_Event_Recurrence_Until":"jusqu'au {date}","CALENDAR_Event_Recurrence_UntilField":"Until","CALENDAR_Event_Recurrence_Weekly":"Tous les {day}","CALENDAR_Event_Recurrence_Yearly":"Tous les {date}","CALENDAR_Event_Recurrence":"Recurrence","CALENDAR_Event_Remaining_Seats":"places restantes","CALENDAR_Event_Report":"Compte rendu","CALENDAR_Event_Revive_All":"Tous","CALENDAR_Event_Revive_Available":"Participant(s)","CALENDAR_Event_Revive_Message_Description":"Quel message souhaitez vous envoyer ?","CALENDAR_Event_Revive_Message_Label":"Message","CALENDAR_Event_Revive_On_Spot":"En présentiel","CALENDAR_Event_Revive_Select_Description":"Qui souhaitez vous relancer ?","CALENDAR_Event_Revive_Unavailable":"Indisponible(s)","CALENDAR_Event_Revive_Visio":"En distanciel","CALENDAR_Event_Revive_Waiting":"En attente","CALENDAR_Event_Revive":"Relancer","CALENDAR_Event_Visio_Url":"Rejoindre la web conférence","CALENDAR_Event":"Evénement","CALENDAR_NotParticipate":"Je ne participe pas","CALENDAR_listWeek":"List","CALENDAR_Meeting":"Meeting","CALENDAR_No_Event":"Vous n'avez aucun événement prévu ce mois-ci","CALENDAR_No_Next_Event":"Vous n'avez plus d'événements prévus ce mois-ci","CALENDAR_No_Today_Event":"Vous n'avez rien de prévu aujourd'hui","CALENDAR_Recurrent_Event_Warning":"This is a recurring event. Changes will apply to all events in the series.","CALENDAR_Recurring_Participation_Warning":"This is a recurring event: by registering, you will automatically participate in all sessions (past and future).","CALENDAR_Participate_OnSite":"Je participe en présentiel","CALENDAR_Participate_Remote":"Je participe en distanciel","CALENDAR_Participate":"Je participe","CALENDAR_Status_Available":"Vous participez","CALENDAR_Status_Unavailable":"Vous ne participez pas","CALENDAR_Status_Unknown":"En attente","CALENDAR_timeGridDay":"Day","CALENDAR_timeGridWeek":"Week","CALENDAR_Today":"Today","CALENDAR_Transform_Hide_Occurrence":"Hide original occurrence","CALENDAR_Transform_Into_Event_Title":"Transform into event","CALENDAR_Transform_Into_Event":"Transform into event","CALENDAR_Update_Confirmation_Recurrent":"Do you want to update the whole series?","CALENDAR_Widget_Editor_View":"View","CALENDAR_Widget_View_Month":"Month","CLIPBOARD_Copy_Success":"Copied to clipboard","COLOR_PICKER_recent_colors":"Recent colors","COMMENT_Add_Comment":"Add comment","COMMENT_Add_Widget":"Add widget","COMMENT_Answer":"Answer","COMMENT_Choose_Response":"Choose","COMMENT_Chosen_Response":"Chosen response","COMMENT_Comments":"comment(s)","COMMENT_Delete_Comment":"Delete comment ?","COMMENT_Display_More":"Display more comments","COMMENT_Just_Now":"just now","COMMENT_Last_Comment":"Last comment","COMMENT_Minutes_Ago":"{minutes} minutes ago","COMMENT_No_Comment":"No comment...","COMMENT_Placeholder":"Write a comment","COMMENT_Unselect_Response":"Unselect response","COMMENT_WIDGET_CHECKLIST_Add_New_Task":"Add new task","COMMENT_WIDGET_CHECKLIST_Add_Uri":"Add an uri","COMMENT_WIDGET_CHECKLIST_New_Task":"New task","COMMENT_WIDGET_CHECKLIST_Title":"Title","COMMENT_WIDGET_CHECKLIST_Uri_Link":"Button link","COMMENT_WIDGET_CHECKLIST_Uri_New_Page":"New page","COMMENT_WIDGET_CHECKLIST_Uri_Same_Page":"Same page","COMMENT_WIDGET_CHECKLIST_Uri_Target":"open","COMMENT_WIDGET_Configure":"Configure","COMMENT_WIDGET_Delete_Widget":"Delete comment ?","CONTACT_Pro_Members":"Business Contacts","CROP_Crop":"Crop","CROP_Rotate_Left":"Rotate left","CROP_Rotate_Right":"Rotate Right","CROP_Title":"Crop the image","CRPT_Add_Report":"Report content","CRPT_Comment_Of":"Comment of","CRPT_Report_Description_Required":"La description est obligatoire","CRPT_Report_Sent":"Report sent","DND_ADD_SECTION":"+ Add section","DND_EMPTY_STATE":"No items to display","DND_LIST_TITLE":"Items","DND_NEW_SECTION_LABEL":"New Section","DND_SECTIONS_TITLE":"Sections","DND_STACK_TITLE":"Active Buttons","DRIVE_Access_Denied":"Vous n'avez pas accès à ces documents.","DRIVE_Google_Not_Available":"This service is temporarily unavailable. Our team is currently working on a solution. We apologize for the inconvenience.","DRIVE_Input_Search_Group_Item":"Rechercher parmis les dossiers et documents","DRIVE_Input_Search_Groupe":"Rechercher un groupe","DRIVE_Is_Empty":"Nous n'avons trouvé aucun documents","DRIVE_MS_Accounts":"Accounts","DRIVE_MS_Default":"Default","DRIVE_MS_Error_Personal_Account":"Personal accounts are not supported","DRIVE_MS_Group_Filters_All":"Tous les groupes","DRIVE_MS_Group_Filters_Member_Of":"Seulement les groupes ou je suis membre","DRIVE_MS_Group_Filters":"Filtres","DRIVE_MS_Logout":"Logout","DRIVE_MS_Need_Login":"Please login to access your files","DRIVE_MS_Other_Account":"Add another account","DRIVE_MS_Set_Default_Account":"Set as default account","DRIVE_Private_Group":"Ce groupe est privé","DRIVE_Private":"Private","DRIVE_Public":"Public","DRIVE_Root":"Microsoft 365","DRIVE_Select_Document":"Sélectionner ce document","DRIVE_Select_Folder":"Sélectionner ce dossier","ERROR_Mail_Invalid":"Invalid email.","ERROR404_Msg":"Hum...There is nothing here...","ERROR404_MsgDetail":"This page does not exist, or its content has been deleted. Go back to home?","ERROR404_Wall":"Go back home","EVENT_Export_Calendar_ICalendar_Format":"Export to iCalendar format","EVENT_I_Register":"Je participe","EVENT_ICalendar_Export_Url_Explanation":"Copy url in your mail client","EVENT_ICalendar_Export_Url_Subscribed":"Sync accepted events","EVENT_ICalendar_Export_Url":"Sync all events","FIELDS_Add_Option":"Add a response","FILE_Existing_Files_Label":"Added files","FILE_Upload_Label":"Drop or select files","FILE_Viewer_Open_With":"Ouvrir avec","FILE_Viewer_Preview":"Aperçu","GLOBAL_A11Y_APP_NAV":"Menu of the application {appName}","GLOBAL_Filter_Add":"Add a filter","GLOBAL_Filter_Search":"Search a filter","GLOBAL_Filter_NoResults":"No matching filter","GLOBAL_Filter_Remove":"Remove this filter","GLOBAL_Filter_ClearAll":"Clear all filters","GLOBAL_Filter_Op_Contains":"contains","GLOBAL_Filter_Op_Between":"between","GLOBAL_Filter_Op_Is":"is","GLOBAL_Filter_Min":"Min","GLOBAL_Filter_Max":"Max","GLOBAL_Filter_Start":"Start","GLOBAL_Filter_End":"End","GLOBAL_Filter_From":"From","GLOBAL_Filter_To":"To","GLOBAL_Yes":"Yes","GLOBAL_No":"No","GLOBAL_Filter_Type_Text":"Text","GLOBAL_Filter_Type_Number":"Number","GLOBAL_Filter_Type_Select":"Select","GLOBAL_Filter_Type_Checkbox":"Checkbox","GLOBAL_Filter_Type_Toggle":"Toggle","GLOBAL_Filter_Type_Date":"Date","GLOBAL_Filter_Type_User":"User","GLOBAL_Filter_Type_Video":"Video","GLOBAL_IframeVideo_Play":"Play video","GLOBAL_IframeVideo_OpenInNewTab":"Open video in a new tab","GLOBAL_IframeVideo_InvalidUrl":"Invalid or unsafe URL","GLOBAL_IframeVideo_UnsupportedProvider":"Unsupported video provider","GLOBAL_IframeVideo_LoadingThumbnail":"Loading preview","GLOBAL_Action_Missing_License":"🔐 The license of the app is not active on your platform!","GLOBAL_Add_File":"Add file","GLOBAL_Add_Image":"Add image","GLOBAL_Add_Video":"Add video","GLOBAL_Add":"Add","GLOBAL_Alert_Author":"Recevoir une copie","GLOBAL_Align":"Alignement","GLOBAL_Animated_Meeting":"Diapazone","GLOBAL_Article_Preview_Excerpt":"Article preview (excerpt)","GLOBAL_Attachments":"Pièces jointes","GLOBAL_Audience":"Audience","GLOBAL_BACK_PREVIOUS_SECTION":"back to the previous section","GLOBAL_Cancel":"Cancel","GLOBAL_CHECK_BOXES":"Check the boxes","GLOBAL_CHECK_FIRST_BOXE":"It's empty! Check your first tag.","GLOBAL_Close":"Close","GLOBAL_Color":"Couleur","GLOBAL_Comments":"Comments","GLOBAL_Confirm":"Confirm","GLOBAL_Continue":"Continue","Global_Create":"Créer","GLOBAL_Creation_Date":"Creation date","GLOBAL_Creator":"Creator","GLOBAL_Date_Placeholder":"Date","GLOBAL_DateTime_Placeholder":"Date and time","GLOBAL_Day":"Day","GLOBAL_Delete_Confirm":"Confirm delete","GLOBAL_Delete_Confirmation":"Please confirm suppression","GLOBAL_Delete":"Delete","GLOBAL_Documents":"Documents","GLOBAL_Download":"Download","GLOBAL_Downloads":"Downloads","GLOBAL_Draft_Saved_Today":"Sauvegardé à {time}","GLOBAL_Draft_Saved":"Sauvegardé le {date}, à {time}","GLOBAL_Edit":"Edit","GLOBAL_File_Bank":"Document bank","GLOBAL_File":"File","GLOBAL_Files":"Files","GLOBAL_Filter":"Filter","GLOBAL_Folders":"Folders","GROUP_Type_Private":"Private group","GROUP_Type_Public":"Public group","WIZARD_Spot_Moderate":"Moderate group","GLOBAL_Fontawesome":"Font Awesome","GLOBAL_Form_Characters":"characters","GLOBAL_Form_Controls_Date":"Date must be formatted dd/mm/yyyy","GLOBAL_Form_Controls_MaxLength":"Must be {max} characters or less","GLOBAL_Form_Controls_MaxValue":"Must be at max {max}","GLOBAL_Form_Controls_MinLength":"Must be {min} characters or more","GLOBAL_Form_Controls_MinValue":"Must be at least {min}","GLOBAL_Form_Controls_Number":"Must be a number","GLOBAL_Form_Controls_Pattern":"Must follow the specified pattern {pattern}","GLOBAL_Form_Controls_Required":"Required","GLOBAL_Form_Controls_Url":"Invalid url address","GLOBAL_Form_Description":"Les champs obligatoires sont identifiés par un *","GLOBAL_Form_No_Options":"No option","GLOBAL_Form_SendAlert":"Send the alert email to those who have requested it","GLOBAL_Go_To_Content":"Go to content","GLOBAL_Groups":"Groups","GLOBAL_Image":"Image","GLOBAL_Image_Format_Image":"Image","GLOBAL_Image_Format_Banner":"Banner","GLOBAL_Image_Format_Cover":"Cover","GLOBAL_Import":"Import","GLOBAL_Insert":"Insert","GLOBAL_Jamespot":"Jamespot","GLOBAL_Load_More":"Load more results","GLOBAL_Loading":"Loading","GLOBAL_Login":"Login","GLOBAL_Move":"Move","GLOBAL_New":"Nouveau","GLOBAL_Next":"Next","GLOBAL_No_Result":"No result","GLOBAL_Object_Link":"Objet lié","GLOBAL_Ok":"OK","GLOBAL_Options":"Options","GLOBAL_Page":"Page","GLOBAL_Platform_Color":"Platform colors","GLOBAL_Previous":"Previous","GLOBAL_Provide_Missing_Token":"A token must be provided to use this widget","GLOBAL_Public_Groups":"Public groups","GLOBAL_Publish":"Publish","GLOBAL_Rate_Star_AriaLabel":"{value, plural, one {# star} other {# stars}}","GLOBAL_Rate_Stars_AriaLabel":"Rate (1 to 5 stars)","GLOBAL_Rate_Stars_Value_AriaLabel":"Rating: {value} out of 5","GLOBAL_Rate_Voters_Modal_Title":"Voters","GLOBAL_Read_Following":"Read more","GLOBAL_Recommended":"recommended","GLOBAL_Redirect_To_User_Profile_React":"Redirection to the profile page of {username}","GLOBAL_Reorder":"Reorder","GLOBAL_Reset":"Réinitialiser","GLOBAL_Save_as_draft":"Save draft","GLOBAL_Save":"Save","GLOBAL_Schedule_Action":"Schedule","GLOBAL_Schedule":"Schedule","GLOBAL_Scheduled_Date":"Scheduled date","GLOBAL_Search_Loading":"Searching...","GLOBAL_Search":"Search","GLOBAL_See_Less":"See less","GLOBAL_See_More":"See more","GLOBAL_See_More_X_Elements":"({value} more elements)","GLOBAL_Select_Date_In_Calendar":"Select a date in the calendar","GLOBAL_Select_Time":"Select time","GLOBAL_Select":"Select","GLOBAL_Send_Alert":"Envoyer le mail de notification à ceux qui l’ont demandé","GLOBAL_Sent":"Envoyé","GLOBAL_Settings":"Paramétrer","GLOBAL_Start_typing":"Start typing to search","GLOBAL_Successffully_Deleted":"Successfully deleted","GLOBAL_Today":"Today","GLOBAL_Type_Selection":"Choose a type","GLOBAL_Unsuccessfully_Deleted":"An error occured while deleting your content","GLOBAL_Unsuported_File_Format":"Unsupported file format","GLOBAL_Users":"Users","GLOBAL_Validation":"Confirm","GLOBAL_Video_Player":"Video player","GLOBAL_Yesterday":"Yesterday","HIERARCHICAL_TAXONOMY_DESCRIPTION":"Browse and select options by checking the boxes. You can select an unlimited number of options.","HOMEUSER_Home":"Home","INPUT_FILE_ADVANCED_Dropbox":"Dropbox","INPUT_FILE_ADVANCED_File_Too_Large":"File exceeds the maximum allowed size (250 MB)","INPUT_FILE_ADVANCED_FileBank":"Filebank","INPUT_FILE_ADVANCED_Google_Drive":"Google Drive","INPUT_FILE_ADVANCED_Microsoft_365":"Microsoft 365","INPUT_RichText_Html_Modal_Label":"HTML content","INPUT_RichText_Html_Modal_Title":"Edit HTML content","INPUT_SELECT_Expand":"Expand","INPUT_SELECT_Has_Reached_Limit":"You reached the limit of {limit} items","INTRANET_Selection_Group":"Select a group","JIA_TINY_BUTTON_TOOLTIP":"AI features to help you write","JIA_TINY_DEVELOP":"Develop","JIA_TINY_EN_TRANSLATION":"English translation","JIA_TINY_ES_TRANSLATION":"Spanish translation","JIA_TINY_FORMAL_TONE":"Formal tone","JIA_TINY_FUNNY_TONE":"Funny tone","JIA_TINY_SPELLCHECK":"Spell check","JIA_TINY_SUMMARIZE":"Summarize","JIA_TINY_TLDR":"TLDR","Office_No_Providers":"Aucun fournisseur disponible, contactez un administrateur","Office_Set_Configuration":"Connectez-vous","OfficeHook_Conf_CalDav_Calendar":"Agenda","OfficeHook_Conf_CardDav_Address_Book":"Adress book","OfficeHook_Conf_IMap_Hostname":"Hostname","OfficeHook_Conf_IMap_Mailbox":"Mailbox","OfficeHook_Conf_Password":"Password","OfficeHook_Conf_Prompt_Submit":"Submit","OfficeHook_Conf_Provider":"Provider","OfficeHook_Conf_Select_Connection_Security":"Connection security","OfficeHook_Conf_Select_Provider":"Select a provider","OfficeHook_Conf_Url":"Url","OfficeHook_Conf_Username":"Username","OfficeHook_Settings":"Paramètres généraux","PANEL_Background_Color":"Couleur du fond","PANEL_Description":"Description","PANEL_Edit_Slide_Background_Color":"Background color","PANEL_Edit_Slide_Background_Opacity_Filter":"Background opacity filter","PANEL_Image_Size":"Taille de l'image","PANEL_Size_Large":"Grand","PANEL_Size_Medium":"Moyen","PANEL_Size_Small":"Petit","PANEL_Text_Color":"Couleur du texte","PANEL_Text_Size":"Taille du texte","PANEL_Text_Shadow":"Ajouter une ombre portée au texte","PANEL_Title":"Titre","PANEL_Widget_Empty_Setting":"Il n'y a rien à configurer","PANEL_Widget_Extension_Name":"Nom de l'extension","PANEL_Widget_Level":"Niveau d'affichage","PANEL_Widget_Selection":"Style & décorations","PANEL_Widget_Settings":"Configuration du widget","PANEL_Widget_Synchronize":"Synchronisation","PANEL_Widget_Text":"Ajouter du texte","PANEL_Widget_Url":"Copier l'url du widget","PLUGIN_Manager_CalDav_Prompt":"Tester la connexion CalDav","PLUGIN_Manager_CardDav_Prompt":"Tester la connexion CardDav","PLUGIN_Manager_Connection_Error":"Connexion impossible. Vérifiez vos identifiants","PLUGIN_Manager_IMap_Prompt":"Tester la connexion IMAP","POLL_See_Response_After":"Hidden answers","POWERED_BY_Link":"https://www.jamespot.com/","POWERED_BY_See_More":"Know more","POWERED_BY":"Powered by","PUBLISH_To":"Publish for","REMOVE_FAVORITE":"Remove from favorites","SEARCH_File":"Search file","SLIDER_IMAGE_Empty_Des":"Ajoutez une image pour illustrer votre widget !","SOCIALPOLL_Anonymous":"Anonymous answers","SPOTIT_Receive_A_Copy":"Receive a copy","SPOTLIGHT_Send_Alert_To_Subscribers":"Send notification mail to those who have requested it","STYLE_Background_Color":"Couleur de fond","STYLE_Border_Style_Dashed":"Bordure discontinue","STYLE_Border_Style_Dotted":"Bordure en pointillés","STYLE_Border_Style_None":"Aucune bordure","STYLE_Border_Style_Solid":"Bordure continue","STYLE_Border_Style":"Style de bordure","STYLE_Border_Width":"Taille de la bordure","STYLE_Box_Shadow":"Ombre portée","STYLE_Font_Weight_Bold":"Bold","STYLE_Font_Weight_Medium":"Medium","STYLE_Font_Weight_Normal":"Normal","STYLE_Font_Weight_Semi_Bold":"Semi bold","STYLE_Font_Weight":"Epaisseur du texte","STYLE_Line_Height":"Hauteur de ligne","STYLE_Padding":"Marge interne","STYLE_Position_Bottom_Center":"Position bas centre","STYLE_Position_Bottom_Left":"Position bas gauche","STYLE_Position_Bottom_Right":"Position bas droite","STYLE_Position_Center_Left":"Position centre gauche","STYLE_Position_Center_Right":"Position centre droite","STYLE_Position_Center":"Position centre","STYLE_Position_Top_Center":"Position haut centre","STYLE_Position_Top_Left":"Position haut gauche","STYLE_Position_Top_Right":"Position haut droite","STYLE_Position":"Position","STYLE_Radius":"Arrondi","STYLE_Text_Align_Center":"Center","STYLE_Text_Align_Justify":"Justify","STYLE_Text_Align_Left":"Left","STYLE_Text_Align_Right":"Right","STYLE_Text_Align":"Alignement du texte","STYLE_Text_Color":"Couleur du texte","STYLE_Text_Size":"Taille du texte","TINY_MCE_Insert_Markdown":"Insert Markdown","TINY_MCE_Markdown_Shortcuts":"Markdown shortcuts","WIDGET_Agenda_Accepted":"You participate","WIDGET_Agenda_Declined":"You don't participate","WIDGET_Agenda_Pending":"You haven't responded yet","WIDGET_Agenda":"Agenda","WIDGET_BIRTHDAY":"Birthdays","WIDGET_BIRTHDAY_TEXT":"Display today's birthdays","WIDGET_Birthday_No_Birthday":"No birthday today","WIDGET_Birthday_Send_Msg":"Send a message","WIDGET_Builder":"Widget Builder","WIDGET_Button_Empty_Text":"Ajouter un label","WIDGET_Calendar_CalDav":"Office Agenda","WIDGET_Calendar_Group_Events":"Group","WIDGET_Calendar_Last_Events":"List","WIDGET_CALENDAR":"Calendar","WIDGET_Cannot_Display":"A widget is available but cannot be displayed here for now... ({widget})","WIDGET_Check_List_Description":"Add a checklist to keep track of progress","WIDGET_Check_List_Help":"Collaboration mode allows users with access to this widget to modify it","WIDGET_Collaboration":"Collaboration","WIDGET_Contact_CardDav":"Office Contacts","WIDGET_Contacts":"Contacts","WIDGET_Cover_Add_Button_Label":"Ajouter un bouton","WIDGET_Cover_Add_Image_Button_Label":"Ajouter une image","WIDGET_Cover_Button_Background_Color_Label":"Couleur du bouton","WIDGET_Cover_Button_Default_Label":"Bouton","WIDGET_Cover_Button_Size_Label":"Taille","WIDGET_Cover_Button_Target_Label":"Ouverture","WIDGET_Cover_Filter_Color_Label":"Couleur du filtre","WIDGET_Cover_Filter_Opacity_Label":"Opacité du filtre","WIDGET_Cover_Link_Url_Label":"Url","WIDGET_Cover_Update_Image_Button_Label":"Modifier l'image","WIDGET_Datasource_Cancel":"Annuler","WIDGET_Datasource_Excel_Broken_Model":"Les premières cellules de vos colonnes ne peuvent pas être vide. Corrigez votre fichier pour mettre à jour votre widget. ","WIDGET_Datasource_Object":"Source de donnée","WIDGET_Datasource_Select_Document":"Sélectionner depuis la banque documentaire","WIDGET_Datasource_Select_Wedoc_File":"Sélectionner depuis wedoc","WIDGET_Datasource_Spreadsheet_Header_Error":"Cette feuille contient au moins une colonne sans titre","WIDGET_Display_Level_1":"Icône","WIDGET_Display_Level_2":"Icône + Pastille","WIDGET_Display_Level_3":"Contenus","WIDGET_Display_Level_4":"Contenus + Interactions","WIDGET_Display_Level_Select":"Sélectionner un mode d'affichage","WIDGET_Email_IMAP":"Office Mails","WIDGET_List_Orientation_Horizontal":"Horizontale","WIDGET_List_Orientation_Vertical":"Vertical","WIDGET_Lucca_Absence_No_Result":"Aucun resultat","WIDGET_Lucca_Absence_Text":"Affichez les absents renseignés depuis votre outil RH Timmi pour une meilleure communication interne.","WIDGET_Lucca_Absence_Url_Error":"Une erreur s'est produite","WIDGET_Lucca_Absence_Url":"Url","WIDGET_Lucca_Absence":"Absence (Timmi)","WIDGET_Lucca_Absent_Until_Today":"Absent jusqu'a aujourd'hui","WIDGET_Lucca_Absent_Until_Tomorrow":"Absent jusqu'a demain","WIDGET_Lucca_Absent_Until":"Absent jusqu'au","WIDGET_NEWS":"Filtered group feed","WIDGET_NEWS_TEXT":"Display a filtered feed of articles from selected groups","WIDGET_News_Select_Groups":"Select groups","WIDGET_News_Not_Member":"You are not a member of this group","WIDGET_News_Highlight":"Highlight the latest article","WIDGET_News_Highlight_Helper":"If your widget is on a single column this setting will have no impact","WIDGET_News_Taxonomy_Filter":"Select a list of keywords as a filter","WIDGET_News_Taxonomy_Filter_Desc":"A field with the filter will appear on your widget to allow users to filter on the keyword(s) of their choice.","WIDGET_News_Keywords_Filter":"Select one or more keywords","WIDGET_News_Keywords_Filter_Desc":"You can filter your content using one or more specific keywords or not select any and let your users filter on the keywords of their choice","WIDGET_News_Show_KeywordsMandatories":"Show chosen keywords","WIDGET_News_Mandatories_Keywords":"The contents of this widget are filtered on the keyword(s): ","WIDGET_News_Types_Limit":"8 types maximum","WIDGET_News_Article_Display_Mode":"Article display mode","WIDGET_News_Article_Display_Mode_Short":"Short","WIDGET_News_Article_Display_Mode_Full":"Full","WIDGET_News_Image_Hide":"Hide image","WIDGET_News_Hide_Date":"Hide date","WIDGET_News_Hide_Desc":"Hide description","WIDGET_News_Button_ShowMore":"Show a \\"Load more\\" button","COLOR_Title_Color":"Title color","COLOR_Description_Color":"Description color","GLOBAL_No_Results":"No results","GLOBAL_Btn_Add_Spot_To_Favorite":"Join","GLOBAL_Display_Order":"Display order","GLOBAL_Last_Activity":"Date of last activity","GLOBAL_Left":"Left","GLOBAL_Right":"Right","GLOBAL_Show_More_Article":"Show more posts","SECTION_Section_Column":"Column number","SELECTION_Panel_Size_Medium":"Medium","WIDGET_Type_Filter":"Type","WIDGET_Limit_Filter":"Limit","WIDGET_List_Orientation":"Orientation","WIDGET_Markup_Size":"Display","WIDGET_Newsflash":"Flash info","WIDGET_Newsflash_Text":"Display the latest flash info on your homepage","WIDGET_Newsflash_Is_Empty":"No recent news","WIDGET_Newsflash_Display_Mode":"Display mode","WIDGET_Newsflash_Button_Background":"Button background color","WIDGET_Newsflash_Button_Text":"Button text color","WIDGET_Newsflash_Groups":"Filter by groups","WIDGET_Newsflash_Groups_Description":"If no filter is set, all flash infos are shown.","WIDGET_Newsflash_Groups_Select":"Select groups","WIDGET_Panel_Tpl_Warning_Message":"Il n'est pas possible de configurer ce widget en mode template","WIDGET_Presence_Availability":"{max} places disponibles","WIDGET_Presence_Is_Closed":"Il n'est plus possible de répondre à ce sondage","WIDGET_Presence_Limit_Response_Error":"Il n y a plus de place disponible","WIDGET_Presence_Limit_Value":"Présence maximum","WIDGET_Presence_Limit":"Limiter le nombre de places","WIDGET_Prompt_Dropdown":"Configurer","WIDGET_Prompt_Logout":"Se déconnecter","WIDGET_Quick_Survey_isStarted_no_modification":"The survey has already some answers, some modifications are not possible, if needed, please start a new survey.","WIDGET_Quick_Survey_isStarted":"The survey has already some answers, you can't make any change to it, if you need to, please reset the survey.","WIDGET_Quick_Survey_Reset":"Reset the survey answers","WIDGET_Quick_Survey_Text":"Add a survey to collect feedback","WIDGET_Quick_Survey":"Add a survey to collect feedback","WIDGET_Separator_Orientation":"Orientation","WIDGET_Separator_Size":"Épaisseur (px)","WIDGET_Separator_Text":"Affiche une ligne horizontale ou verticale pour séparer des sections","WIDGET_Separator":"Séparateur","WIDGET_Set_Widget":"Configurer","WIDGET_Slider_Autoplay":"Défilement automatique","WIDGET_Slider_Delay":"Délai de défilement","WIDGET_Survey_After_Help":"Respondents will only see the results once after they respond. They will no longer be able to edit their answer.","WIDGET_Survey_Anonymize_Help":"Les réponses de ce sondage seront anonymes : personne ne pourra savoir qui a répondu quoi, seulement les pourcentages.","WIDGET_Survey_Close_Survey_Description":"do you really want to finish this survey?","WIDGET_Survey_Close_Survey":"Close the survey","WIDGET_Survey_Closing_Help":"Display closing button","WIDGET_Survey_Closing":"Enable closing","WIDGET_Survey_Date_Add_Event":"Ajouter","WIDGET_Survey_Date_End_At":"Fin le {dateEnd}","WIDGET_Survey_Date_Label":"{label} {day} à {time}","WIDGET_Survey_Date_Participant_At":"Participants le {date}","WIDGET_Survey_Date_Revive_All":"Tous les participants","WIDGET_Survey_Date_Revive_Confirm":"Relancer","WIDGET_Survey_Date_Revive_Message":"Message de relance","WIDGET_Survey_Date_Revive_User_With_No_Response":"Les participants sans réponse","WIDGET_Survey_Date_Revive":"Relancer les participants","WIDGET_Survey_Date_Stats":"{totalResponse}/{totalRespondents} personnes ont répondu ({percent}%)","WIDGET_Survey_Multiple_Help":"Allow multiple responses","WIDGET_Survey_Multiple":"Multiple response","WIDGET_Survey_Open_Help":"Allows other users to add suggestion","WIDGET_Countdown_Days":"Day(s)","WIDGET_Countdown_Hours":"Hour(s)","WIDGET_Countdown_Minutes":"Minutes(s)","WIDGET_Countdown_Select_Social_Event":"Sélectionner un évènement","WIDGET_Countdown_Select_Social_Event_Message":"Seuls les événements/réunions des 60 prochains jours peuvent être affichés dans le compte à rebours","WIDGET_Countdown_Select_Meeting":"Sélectionner une réunion","PANEL_Widget_Countdown_Size":"Séléctionnez une taille","PANEL_Widget_Countdown_Use_Image":"Sélectionner une type de fond","PANEL_Widget_Countdown_Use_Image_Disabled_Message":"Aucune illustration disponible","PANEL_Widget_Countdown_Use_Background_Texture":"Texture de fond","WIDGET_Survey_Open":"Open survey","WIDGET_Text_Use_Flex_Label":"Disposition flexible","WIDGET_User_Profil_Display_Mode_Label":"Affichage du nom","WIDGET_User_Profil_Font_Weight_Label":"Gras","WIDGET_User_Profil_Only_Picture":"Image seule","WIDGET_User_Profil_Picture_Alt_Label":"Image de l'utilisateur","WIDGET_User_Profil_Picture_FirstName_LastName":"Avec prénom + nom","WIDGET_User_Profil_Picture_FirstName":"Avec prénom","WIDGET_User_Profil_Text_Max_Length_Description":"Maximum 30 caractères","WIDGET_User_Profil_Text":"Permettez à vos utilisateur un accès vers leur propre profil en un clic ! Idéal pour les encourager à le compléter. ","WIDGET_User_Profil_Tooltip_Link_Text":"Accéder à votre profil","WIDGET_User_Profil":"Profil utilisateur","WIDGET_Happy_Birthday":"Happy Birthday!","Widget_Birthday_Template_One":"Template 1","Widget_Birthday_Template_Two":"Template 2","SELECTION_Panel_Size":"Size","SELECTION_Panel_Size_Small":"Small","SELECTION_Panel_Size_Large":"Large","WIDGET_Welcome_Default_Message":"Bienvenue","WIDGET_Welcome_Linebreak_Label":"Saut de ligne (après le message)","WIDGET_Documents_Select_Folder":"Séléctionner un dossier","WIDGET_Documents_Select_Document":"Séléctionner un document","WIDGET_File_Hide_Preview":"Masquer l'image","WIDGET_File_Hide_Extension":"Masquer l'extension","WIDGET_File_View":"Affichage","WIDGET_File_View_List":"Liste","WIDGET_File_View_Gallery":"Galerie","WIDGET_File_View_Gallery_Cols":"Nombre de colonne","WIDGET_File_View_Gallery_Rows":"Nombre de ligne","WIDGET_File_Sort_By":"Ordre d'affichage","WIDGET_File_Sort_By_Title":"Titre","WIDGET_File_Sort_By_Date_Creation":"Date de création","WIDGET_FILE":"File","WIDGET_FILE_TEXT":"Improve communication by sharing downloadable documents on your intranet","WIDGET_File_From_Filebank":"Select a file","WIDGET_File_Maximun_Upload":"250 Mo maximum to ensure the application's normal operation.","WIDGET_File_List":"File list","WIDGET_Panel_Text_Size":"Text size","GLOBAL_Or":"Or","GLOBAL_Open_Document":"Open the document","WIDGET_Welcome":"Message d'accueil","WIDGET_Embed":"Embed","WIDGET_Embed_Text":"Embed external HTML content (iframe, integration code)","WIDGET_FLOCKLER":"Flockler","WIDGET_FLOCKLER_TEXT":"Embed a Flockler social wall","WIDGET_Flockler_Embed_Code":"Embed code url","WIDGET_Flockler_Embed_Code_Help":"Copy preview URL here","WIDGET_Youtube_Url":"Video URL","WIDGET_Youtube":"Video","WIDGET_Youtube_Text":"Embed a YouTube video","WIDGET_Youtube_InvalidUrl_FieldError":"Enter a valid YouTube URL","WIDGET_APPLICATION":"Applications","WIDGET_APPLICATION_TEXT":"Display a grid of shortcuts to your applications, links and tools.","WIDGET_Select_Application":"Select an application","WIDGET_Display":"Display","WIDGET_Application_Number_Per_Line":"Number per line","WIDGET_Application_Unused_App":"Unused application","GLOBAL_List":"List","GLOBAL_Gallery":"Gallery","WIDGET_Gallery":"Gallery","DW_Icon_Title":"Title","DW_Icon_Link":"Link","APP_Selection_Apps":"Applications","APP_Selection_Extensions":"Extensions","ADMIN_Add_Link":"Add a link","SMARTPAGE_Link_Target":"Open in a new tab","GLOBAL_No_Referer_Url":"No referrer","GLOBAL_Background_Color":"Background color","GLOBAL_Icon_Color":"Icon color","GLOBAL_Duplicate":"Duplicate","SPOTIT_Add_Picture":"Add a picture","DW_Add_Icon":"Add icon","POLL_Survey_Response_Number":"Number of responses","SURVEY_Response_Count_Response":"Responses","GLOBAL_Publish_Survey":"Survey","SURVEY_Publish_By":"publish by","WIDGET_Survey_Answer_Survey":"Respond to the survey","WIDGET_Survey_Answer_Survey_Again":"Respond to the survey again","WIDGET_Survey_See_Responses":"See the responses","POLL_Survey_Continue_Survey":"Continue","WIDGET_Select_SocialPoll":"Select a survey","WIDGET_Survey_Selection":"Select survey","GLOBAL_No_Survey_Results":"There is no survey open at the moment","FOLDER_Nb_Documents":"{count, plural, one {# document} other {# documents}}"}`),xte={FOLDER_Nb_Documents:"{count, plural, one {# document} other {# documents}}"},bte={FOLDER_Nb_Documents:"{count, plural, one {# Dokument} other {# Dokumente}}"},wte={FOLDER_Nb_Documents:"{count, plural, one {# documento} other {# documentos}}"},Cte={FOLDER_Nb_Documents:"{count, plural, one {# documento} other {# documenti}}"},Ete={en:yte,fr:xte,de:bte,es:wte,it:Cte};function fS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ig={exports:{}},Cd={};var hj;function Bte(){if(hj)return Cd;hj=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var s in i)s!=="key"&&(o[s]=i[s])}else o=i;return i=o.ref,{$$typeof:e,type:n,key:a,ref:i!==void 0?i:null,props:o}}return Cd.Fragment=t,Cd.jsx=r,Cd.jsxs=r,Cd}var Ed={};var pj;function Ste(){return pj||(pj=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===O?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case v:return"Fragment";case b:return"Profiler";case x:return"StrictMode";case B:return"Suspense";case S:return"SuspenseList";case T:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case m:return"Portal";case C:return P.displayName||"Context";case w:return(P._context.displayName||"Context")+".Consumer";case E:var M=P.render;return P=P.displayName,P||(P=M.displayName||M.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case D:return M=P.displayName||null,M!==null?M:e(P.type)||"Memo";case I:M=P._payload,P=P._init;try{return e(P(M))}catch{}}return null}function t(P){return""+P}function r(P){try{t(P);var M=!1}catch{M=!0}if(M){M=console;var W=M.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return W.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),t(P)}}function n(P){if(P===v)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===I)return"<...>";try{var M=e(P);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function i(){var P=j.A;return P===null?null:P.getOwner()}function o(){return Error("react-stack-top-frame")}function a(P){if(k.call(P,"key")){var M=Object.getOwnPropertyDescriptor(P,"key").get;if(M&&M.isReactWarning)return!1}return P.key!==void 0}function s(P,M){function W(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",M))}W.isReactWarning=!0,Object.defineProperty(P,"key",{get:W,configurable:!0})}function A(){var P=e(this.type);return H[P]||(H[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function c(P,M,W,Y,$,Ae){var de=W.ref;return P={$$typeof:h,type:P,key:M,props:W,_owner:Y},(de!==void 0?de:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:A}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ae}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function d(P,M,W,Y,$,Ae){var de=M.children;if(de!==void 0)if(Y)if(L(de)){for(Y=0;Y<de.length;Y++)u(de[Y]);Object.freeze&&Object.freeze(de)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(de);if(k.call(M,"key")){de=e(P);var J=Object.keys(M).filter(function(te){return te!=="key"});Y=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",F[de+Y]||(J=0<J.length?"{"+J.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
136
136
|
let props = %s;
|
|
137
137
|
<%s {...props} />
|
|
138
138
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -6695,7 +6695,7 @@ const cZ = 4, zl = we("/fetchFiles", async ({ page: e, query: t, folder: r, tab:
|
|
|
6695
6695
|
async (e, { extra: t, getState: r }) => {
|
|
6696
6696
|
const n = t.jApi, i = r().wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [];
|
|
6697
6697
|
return await n.wedoc.getFiles(
|
|
6698
|
-
{ filters: i, limit: cZ, orders: [], page: 1 },
|
|
6698
|
+
{ filters: i, limit: cZ, orders: [], page: 1, withCount: !1 },
|
|
6699
6699
|
{ format: "raw-list" }
|
|
6700
6700
|
);
|
|
6701
6701
|
}
|
|
@@ -6723,7 +6723,8 @@ const dZ = {
|
|
|
6723
6723
|
query: "",
|
|
6724
6724
|
page: 1,
|
|
6725
6725
|
currentFolder: null,
|
|
6726
|
-
limit: 12
|
|
6726
|
+
limit: 12,
|
|
6727
|
+
currentRequestId: null
|
|
6727
6728
|
};
|
|
6728
6729
|
Ue({
|
|
6729
6730
|
name: "wedoc",
|
|
@@ -6742,13 +6743,15 @@ Ue({
|
|
|
6742
6743
|
},
|
|
6743
6744
|
extraReducers: (e) => {
|
|
6744
6745
|
e.addCase(zl.pending, (t, r) => {
|
|
6745
|
-
t.loading = "pending", t.page = r.meta.arg.page ?? t.page, t.query = r.meta.arg.query ?? t.query, t.tab = r.meta.arg.tab ?? t.tab;
|
|
6746
|
+
t.loading = "pending", t.currentRequestId = r.meta.requestId, t.page = r.meta.arg.page ?? t.page, t.query = r.meta.arg.query ?? t.query, t.tab = r.meta.arg.tab ?? t.tab;
|
|
6746
6747
|
}).addCase(zl.fulfilled, (t, r) => {
|
|
6747
|
-
t.
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6748
|
+
if (r.meta.requestId === t.currentRequestId) {
|
|
6749
|
+
t.loading = "idle";
|
|
6750
|
+
const { data: n, cnt: i } = r.payload.result;
|
|
6751
|
+
t.entities = n, t.nbEntities = i, t.currentFolder = r.meta.arg.folder !== void 0 ? r.meta.arg.folder : t.currentFolder;
|
|
6752
|
+
}
|
|
6753
|
+
}).addCase(zl.rejected, (t, r) => {
|
|
6754
|
+
r.meta.requestId === t.currentRequestId && (t.loading = "idle");
|
|
6752
6755
|
}).addCase(qb.pending, (t) => {
|
|
6753
6756
|
t.loadingRecent = "pending";
|
|
6754
6757
|
}).addCase(qb.fulfilled, (t, r) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.129",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.cjs",
|
|
6
6
|
"module": "dist/jamespot-react-components.js",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"eslint-plugin-storybook": "10.3.6",
|
|
61
61
|
"globals": "^16.5.0",
|
|
62
62
|
"html2canvas": "^1.4.1",
|
|
63
|
-
"jamespot-front-business": "^1.3.
|
|
64
|
-
"jamespot-user-api": "^1.3.
|
|
63
|
+
"jamespot-front-business": "^1.3.129",
|
|
64
|
+
"jamespot-user-api": "^1.3.129",
|
|
65
65
|
"jsdom": "^26.1.0",
|
|
66
66
|
"knip": "^5.88.1",
|
|
67
67
|
"lint-staged": "^16.4.0",
|