@silexpert/core 2.0.149-beta.0 → 2.0.149

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.
@@ -1,4 +1,4 @@
1
- import{B as e,E as t,G as n,S as r,T as i,X as a,a as o,c as s,d as c,et as l,f as u,g as d,ht as f,o as p,r as m,s as h,u as g,xt as _,yt as v}from"../product-CV8uoWpO.mjs";import{groupBy as y,orderBy as b,round as x,sumBy as S,uniq as C}from"lodash-es";import w from"dayjs";import T from"ejs";import E from"sanitize-html";import"dayjs/locale/fr.js";function getRoleSignature(e){if(e.positionLabel)return e.positionLabel;let t=e.roles.map(e=>e.id).includes(44)||e.roles.map(e=>e.id).includes(45),n=e.roles.map(e=>e.id).includes(19),r=e.roles.map(e=>e.id).includes(11),i=e.roles.map(e=>e.id).includes(12),a=e.roles.map(e=>e.id).includes(34),o=e.roles.map(e=>e.id).includes(20),s=e.roles.map(e=>e.id).includes(10),c=e.roles.map(e=>e.id).includes(50),l=e.roles.map(e=>e.id).includes(41),u=e.roles.map(e=>e.id).includes(51),f=e.roles.map(e=>e.id).includes(9),p=e.roles.map(e=>e.id).includes(2),m=e.roles.map(e=>e.id).includes(55),h=!!d(e.roles.map(e=>e.id),[3,15]).length;return f&&n?`Responsable commercial`:f?`Chargé${e.idCivility===2?`e`:``} de clientèle`:s&&n?`Responsable relations clients`:s?`Conseill${e.idCivility===2?`ère`:`er`} comptable`:m?`Référent${e.idCivility===2?`e`:``} technique`:c&&n?`Responsable chargé${e.idCivility===2?`e`:``} accueil clients`:c?`Chargé${e.idCivility===2?`e`:``} accueil clients`:l&&n?`Responsable chargé${e.idCivility===2?`e`:``} de la satisfaction clients`:l?`Chargé${e.idCivility===2?`e`:``} de la satisfaction clients`:u&&n?`Responsable aide comptable`:u?`Aide comptable`:a&&t?`Assistant facturation`:a&&n?`Responsable facturation`:a?`Chargé${e.idCivility===2?`e`:``} de facturation`:i&&t?`Assistant juridique`:i&&n?`Responsable juridique`:i?`Juriste`:r&&t?`Assistant paie`:r&&n?`Responsable paie`:r?`Gestionnaire de paie`:o?`Expert${e.idCivility===2?`e`:``}-comptable`:p?`Développeur web`:h&&n?`Responsable comptable`:h&&t?`Assistant comptable`:`Comptable`}function getHoraires(e){return e?.roles?.map(e=>e.id).includes(9)?`Du lundi au vendredi de 9h à 18h`:`Du lundi au jeudi de 9h à 17h<br/>Le vendredi de 9h à 12h`}function getMailSignature(e,t){let n=_({...t?{idTypeBrand:t}:{},objectWaited:`listMails.informatique`}),r=_({...t?{idTypeBrand:t}:{},objectWaited:`listMails.bonjour`});return e.roles.map(e=>e.id).includes(2)?n:e&&d(e.roles.map(e=>e.id),[3,15,51,9,55]).length?e.email:r}function getPhoneSignature(e){return e.phone&&e.phone!==`0383931414`?e.phone.replace(/\B(?=(\d{2})+(?!\d))/g,`&nbsp;`):null}function generateSignature(e){let{fromAddress:t=null,idTypeBrand:n=1,calendlyUrl:r=null,...i}=e,{user:a,forceRole:o=null}=i,s=v({idTypeBrand:n}),c=s.urlS3,l=s.name,u=s.companyInformation?.city,f=s.companyInformation?.postalAddress||``,p=s.commercialName,m=s.bank?.IBAN,h=s.bank?.BIC,g=s.listMails?.bonjour||``,_=s.listMails?.social||``,y=s.listMails?.gestion||``,b=s.listMails?.satisfaction||``,x=s.listMails?.resiliation||``,S=s.listMails?.support||``,C=s.listMails?.juridique||``,w=s.listMails?.facturation||``,E=s.colors?.primary||``,D=s.listPhones?.contact||``,O=s.listPhones?.juridique||``,k=s.listPhones?.social||``,A=[{email:b,forceRole:`satisfaction`},{email:x,forceRole:`resiliation`},{email:w,forceRole:`facturation`}].find(e=>e.email===t);A&&(o=A.forceRole);let j,M,N,P;return[j,M,N,P]=[`Expert-Comptable`,g,null,`Du lundi au vendredi de 9h à 18h`],a?.roles&&a.roles.some(e=>e.id===51)?(a={firstname:`L'équipe ${p}`,isAll:!0},M=y,j=``):d((a?.roles??[]).map(e=>e.id),[3,54]).length===2?(a={firstname:`L'équipe ${p}`,isAll:!0},M=g,j=``):o===`satisfaction`?(a={firstname:`Service satisfaction clients`,isAll:!0},M=b,j=``,N=D):o===`resiliation`?(a={firstname:`Service satisfaction clients`,isAll:!0},M=x,j=``,N=D):o===`social`?(a={firstname:`Service social`,isAll:!0},M=_,j=``,N=k):o===`support`?(a={firstname:`Service Support`,isAll:!0},M=S,j=null):o===`juridique`?(a={firstname:`Service juridique`,isAll:!0},M=C,j=null,N=O):o===`facturation`?(a={firstname:`Service facturation`,isAll:!0},M=w,j=null,N=D):!a||o===`generique`?(a={firstname:`L'équipe ${p}`,isAll:!0},j=``):a!==0&&(j=getRoleSignature(a),M=getMailSignature(a,n),P=getHoraires(a),N=getPhoneSignature(a)),r&&(a.calendlyUrl=r),T.render(`<% if (commercialName === 'Clementine' && isFacturation) { %>
1
+ import{B as e,E as t,G as n,S as r,T as i,X as a,a as o,c as s,d as c,et as l,f as u,g as d,ht as f,o as p,r as m,s as h,u as g,xt as _,yt as v}from"../product-cI7WAMo5.mjs";import{groupBy as y,orderBy as b,round as x,sumBy as S,uniq as C}from"lodash-es";import w from"dayjs";import T from"ejs";import E from"sanitize-html";import"dayjs/locale/fr.js";function getRoleSignature(e){if(e.positionLabel)return e.positionLabel;let t=e.roles.map(e=>e.id).includes(44)||e.roles.map(e=>e.id).includes(45),n=e.roles.map(e=>e.id).includes(19),r=e.roles.map(e=>e.id).includes(11),i=e.roles.map(e=>e.id).includes(12),a=e.roles.map(e=>e.id).includes(34),o=e.roles.map(e=>e.id).includes(20),s=e.roles.map(e=>e.id).includes(10),c=e.roles.map(e=>e.id).includes(50),l=e.roles.map(e=>e.id).includes(41),u=e.roles.map(e=>e.id).includes(51),f=e.roles.map(e=>e.id).includes(9),p=e.roles.map(e=>e.id).includes(2),m=e.roles.map(e=>e.id).includes(55),h=!!d(e.roles.map(e=>e.id),[3,15]).length;return f&&n?`Responsable commercial`:f?`Chargé${e.idCivility===2?`e`:``} de clientèle`:s&&n?`Responsable relations clients`:s?`Conseill${e.idCivility===2?`ère`:`er`} comptable`:m?`Référent${e.idCivility===2?`e`:``} technique`:c&&n?`Responsable chargé${e.idCivility===2?`e`:``} accueil clients`:c?`Chargé${e.idCivility===2?`e`:``} accueil clients`:l&&n?`Responsable chargé${e.idCivility===2?`e`:``} de la satisfaction clients`:l?`Chargé${e.idCivility===2?`e`:``} de la satisfaction clients`:u&&n?`Responsable aide comptable`:u?`Aide comptable`:a&&t?`Assistant facturation`:a&&n?`Responsable facturation`:a?`Chargé${e.idCivility===2?`e`:``} de facturation`:i&&t?`Assistant juridique`:i&&n?`Responsable juridique`:i?`Juriste`:r&&t?`Assistant paie`:r&&n?`Responsable paie`:r?`Gestionnaire de paie`:o?`Expert${e.idCivility===2?`e`:``}-comptable`:p?`Développeur web`:h&&n?`Responsable comptable`:h&&t?`Assistant comptable`:`Comptable`}function getHoraires(e){return e?.roles?.map(e=>e.id).includes(9)?`Du lundi au vendredi de 9h à 18h`:`Du lundi au jeudi de 9h à 17h<br/>Le vendredi de 9h à 12h`}function getMailSignature(e,t){let n=_({...t?{idTypeBrand:t}:{},objectWaited:`listMails.informatique`}),r=_({...t?{idTypeBrand:t}:{},objectWaited:`listMails.bonjour`});return e.roles.map(e=>e.id).includes(2)?n:e&&d(e.roles.map(e=>e.id),[3,15,51,9,55]).length?e.email:r}function getPhoneSignature(e){return e.phone&&e.phone!==`0383931414`?e.phone.replace(/\B(?=(\d{2})+(?!\d))/g,`&nbsp;`):null}function generateSignature(e){let{fromAddress:t=null,idTypeBrand:n=1,calendlyUrl:r=null,...i}=e,{user:a,forceRole:o=null}=i,s=v({idTypeBrand:n}),c=s.urlS3,l=s.name,u=s.companyInformation?.city,f=s.companyInformation?.postalAddress||``,p=s.commercialName,m=s.bank?.IBAN,h=s.bank?.BIC,g=s.listMails?.bonjour||``,_=s.listMails?.social||``,y=s.listMails?.gestion||``,b=s.listMails?.satisfaction||``,x=s.listMails?.resiliation||``,S=s.listMails?.support||``,C=s.listMails?.juridique||``,w=s.listMails?.facturation||``,E=s.colors?.primary||``,D=s.listPhones?.contact||``,O=s.listPhones?.juridique||``,k=s.listPhones?.social||``,A=[{email:b,forceRole:`satisfaction`},{email:x,forceRole:`resiliation`},{email:w,forceRole:`facturation`}].find(e=>e.email===t);A&&(o=A.forceRole);let j,M,N,P;return[j,M,N,P]=[`Expert-Comptable`,g,null,`Du lundi au vendredi de 9h à 18h`],a?.roles&&a.roles.some(e=>e.id===51)?(a={firstname:`L'équipe ${p}`,isAll:!0},M=y,j=``):d((a?.roles??[]).map(e=>e.id),[3,54]).length===2?(a={firstname:`L'équipe ${p}`,isAll:!0},M=g,j=``):o===`satisfaction`?(a={firstname:`Service satisfaction clients`,isAll:!0},M=b,j=``,N=D):o===`resiliation`?(a={firstname:`Service satisfaction clients`,isAll:!0},M=x,j=``,N=D):o===`social`?(a={firstname:`Service social`,isAll:!0},M=_,j=``,N=k):o===`support`?(a={firstname:`Service Support`,isAll:!0},M=S,j=null):o===`juridique`?(a={firstname:`Service juridique`,isAll:!0},M=C,j=null,N=O):o===`facturation`?(a={firstname:`Service facturation`,isAll:!0},M=w,j=null,N=D):!a||o===`generique`?(a={firstname:`L'équipe ${p}`,isAll:!0},j=``):a!==0&&(j=getRoleSignature(a),M=getMailSignature(a,n),P=getHoraires(a),N=getPhoneSignature(a)),r&&(a.calendlyUrl=r),T.render(`<% if (commercialName === 'Clementine' && isFacturation) { %>
2
2
  <p style="font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;">
3
3
  <span style="color: #A0A0A0">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>
4
4
  </p>
@@ -255,7 +255,7 @@ class="signatureClementine">
255
255
  <% } %>`;footer=`<div class="footer" style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
256
256
  <% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || recoveryCost || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && recoveryCost ? ' | ' : ''%><%= recoveryCost ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + recoveryCost + ' ' : '' %><%= (recoveryCost || penalties) && discount ? ' | ' : '' %><%= discount ? languageTemplate.template.common.footer.discount + ' : ' + discount : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
257
257
  <% if (["Clementine", "Pourcentage", "Comptalib", "Teamsystem Facture"].includes(brandName) && !shouldHideBrandName) { %>
258
- <div style="display: grid; place-items: center;"><div style="background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 3px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 9px; line-height: 140%; font-family: 'Figtree', sans-serif; font-weight: 400;">
258
+ <div style="display: grid; place-items: center;"><div style="background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 3px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 9px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;">
259
259
  <%= languageTemplate.template.common.footer.generate %>
260
260
  <% if (brandName === "Clementine") { %>
261
261
  <svg width="86" height="13" viewBox="0 0 129 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M27.6584 11.6301C27.6584 13.1199 28.6143 13.9511 29.7364 13.9511C30.8586 13.9511 31.4405 13.2062 31.6067 12.5828L33.5601 13.2446C33.186 14.6129 31.8976 15.978 29.7364 15.978C27.3259 15.978 25.4141 14.1557 25.4141 11.6716C25.4141 9.18754 27.2843 7.36523 29.6533 7.36523C31.8976 7.36523 33.1445 8.73356 33.477 10.0987L31.5651 10.7189C31.3573 10.0571 30.8586 9.35059 29.7364 9.35059C28.6143 9.35059 27.6584 10.1786 27.6584 11.6301Z" fill="#FF7E3C"/><path d="M35.2227 15.728V3.7168H37.4254V15.728H35.2227Z" fill="#FF7E3C"/><path d="M47.1087 13.3684C46.6931 14.7751 45.4047 15.9356 43.3682 15.9356C41.1239 15.9356 39.1289 14.3211 39.1289 11.5876C39.1289 8.85419 41.0407 7.28125 43.1604 7.28125C45.6956 7.28125 47.1918 8.89575 47.1918 11.5045C47.1918 11.837 47.1502 12.1663 47.1502 12.1663H41.2901C41.3317 13.2437 42.246 14.0302 43.3682 14.0302C44.4072 14.0302 44.9475 13.5346 45.2384 12.7865L47.1087 13.3652V13.3684ZM45.0306 10.7181C44.9891 9.89002 44.4488 9.10356 43.2019 9.10356C42.0382 9.10356 41.4148 9.97315 41.3732 10.7181H45.0306Z" fill="#FF7E3C"/><path d="M48.9795 15.7317V7.56968H51.0991V8.56396C51.5563 7.77749 52.5953 7.32031 53.5097 7.32031C54.6318 7.32031 55.5046 7.81585 55.9202 8.68864C56.5852 7.69436 57.4164 7.32031 58.497 7.32031C59.9933 7.32031 61.4479 8.23147 61.4479 10.4278V15.7285H59.2867V10.8818C59.2867 10.0122 58.8711 9.35043 57.8321 9.35043C56.8762 9.35043 56.3359 10.0953 56.3359 10.9649V15.7285H54.1331V10.8818C54.1331 10.0122 53.6759 9.35043 52.6785 9.35043C51.681 9.35043 51.1407 10.0538 51.1407 10.9649V15.7285H48.9795V15.7317Z" fill="#FF7E3C"/><path d="M71.0501 13.3684C70.6345 14.7751 69.3461 15.9356 67.3096 15.9356C65.0653 15.9356 63.0703 14.3211 63.0703 11.5876C63.0703 8.85419 64.9821 7.28125 67.1018 7.28125C69.637 7.28125 71.1332 8.89575 71.1332 11.5045C71.1332 11.837 71.0917 12.1663 71.0917 12.1663H65.2315C65.2731 13.2437 66.1874 14.0302 67.3096 14.0302C68.3486 14.0302 68.8889 13.5346 69.1798 12.7865L71.0501 13.3652V13.3684ZM68.972 10.7181C68.9305 9.89002 68.3902 9.10356 67.1433 9.10356C65.9796 9.10356 65.3562 9.97315 65.3146 10.7181H68.972Z" fill="#FF7E3C"/><path d="M75.1217 15.7317H72.9189V7.56968H75.0801V8.56396C75.5789 7.73593 76.5763 7.32031 77.4491 7.32031C79.4856 7.32031 80.4 8.76857 80.4 10.5525V15.6901H78.1972V10.9681C78.1972 10.057 77.7401 9.35362 76.701 9.35362C75.7451 9.35362 75.1633 10.0985 75.1633 11.0512L75.1217 15.7317Z" fill="#FF7E3C"/><path d="M85.3474 7.56975H87.0099V9.51674H85.3474V12.9535C85.3474 13.6569 85.6799 13.9063 86.3033 13.9063C86.5527 13.9063 86.8852 13.8647 86.9683 13.8231V15.6454C86.7605 15.7286 86.3864 15.8532 85.7215 15.8532C84.1421 15.8532 83.1446 14.9005 83.1446 13.3276V9.51674H81.6484V7.56975H82.0641C82.9368 7.56975 83.3109 6.99109 83.3109 6.28454V5.12402H85.3058L85.3474 7.56655V7.56975Z" fill="#FF7E3C"/><path d="M89.9594 3.5127C90.7075 3.5127 91.3309 4.13292 91.3309 4.88102C91.3309 5.62913 90.7491 6.20779 89.9594 6.20779C89.2113 6.20779 88.5879 5.58757 88.5879 4.88102C88.5879 4.13612 89.2113 3.5127 89.9594 3.5127ZM88.8373 15.7317V7.56972H91.04V15.7285H88.8373V15.7317Z" fill="#FF7E3C"/><path d="M95.653 15.7317H93.4502V7.56968H95.6114V8.56396C96.1101 7.73593 97.1076 7.32031 97.9804 7.32031C100.017 7.32031 100.931 8.76857 100.931 10.5525V15.6901H98.7285V10.9681C98.7285 10.057 98.2713 9.35362 97.2323 9.35362C96.2764 9.35362 95.6945 10.0985 95.6945 11.0512L95.653 15.7317Z" fill="#FF7E3C"/><path d="M110.45 13.3684C110.034 14.7751 108.745 15.9356 106.709 15.9356C104.465 15.9356 102.47 14.3211 102.47 11.5876C102.47 8.85419 104.382 7.28125 106.501 7.28125C109.036 7.28125 110.533 8.89575 110.533 11.5045C110.533 11.837 110.491 12.1663 110.491 12.1663H104.714C104.756 13.2437 105.67 14.0302 106.792 14.0302C107.831 14.0302 108.371 13.5346 108.662 12.7865L110.45 13.3652V13.3684ZM108.413 10.7181C108.371 9.89002 107.831 9.10356 106.584 9.10356C105.421 9.10356 104.797 9.97315 104.756 10.7181H108.413Z" fill="#FF7E3C"/><path d="M0.0175781 7.32924C0.0175781 7.32924 1.95498 5.77229 3.73892 8.24039C3.73892 8.24039 1.80152 9.45526 0.0175781 7.32924Z" fill="#FF7E3C"/><path d="M20.0244 0.1875C11.8432 0.302593 10.5644 4.55464 10.3311 5.54252C11.0951 5.21323 12.6873 4.73367 14.4009 5.05018C19.2508 3.45486 20.0244 0.1875 20.0244 0.1875Z" fill="#FF7E3C"/><path d="M6.37695 12.2271C6.37695 8.46741 9.47807 5.38867 13.241 5.38867C17.0039 5.38867 20.0666 8.46421 20.105 12.2271C20.105 15.9868 17.0422 19.0656 13.241 19.0656C9.43971 19.0656 6.37695 15.99 6.37695 12.2271Z" fill="#FF7E3C"/><path d="M7.03483 8.50629C6.33787 9.53253 5.94784 10.8625 5.94784 12.2276C5.94784 14.1267 6.64479 15.8371 7.88524 17.0903C7.26501 17.394 6.48814 17.621 5.67609 17.621C3.07691 17.621 1.02441 15.5334 1.02441 12.9502C1.02441 10.367 3.0801 8.2793 5.67609 8.2793C6.14286 8.2793 6.60643 8.39439 7.03483 8.50629Z" fill="#FF7E3C"/><path d="M119.715 6.68358V7.57555H121.553V9.4618H119.715V15.7152H117.496V9.46499H116.141V7.57875H117.496V6.65161C117.496 4.81651 118.653 3.62402 120.457 3.62402C120.92 3.62402 121.368 3.70715 121.55 3.79027V5.64454C121.435 5.61257 121.218 5.56142 120.856 5.56142C120.361 5.56142 119.715 5.77562 119.715 6.68678V6.68358Z" fill="#FF7E3C"/><path d="M128.011 9.76243C127.761 9.71127 127.547 9.69529 127.349 9.69529C126.223 9.69529 125.248 10.242 125.248 11.994V15.7185H123.049V7.57886H125.184V8.78733C125.68 7.71313 126.805 7.51172 127.502 7.51172C127.685 7.51172 127.851 7.5277 128.017 7.54369V9.76243H128.011Z" fill="#FF7E3C"/><path d="M113.535 13.1543C114.283 13.1543 114.906 13.7745 114.906 14.5226C114.906 15.2707 114.324 15.8494 113.535 15.8494C112.787 15.8494 112.163 15.2292 112.163 14.5226C112.163 13.7777 112.787 13.1543 113.535 13.1543Z" fill="#FF7E3C"/></svg>
@@ -383,7 +383,9 @@ class="signatureClementine">
383
383
  <path fill-rule="evenodd" clip-rule="evenodd" d="M78.6129 1C77.4206 1 64.7971 1 57.7475 1C57.1513 1 56.5552 1.6 56.5552 2.2V14.2C56.5552 15.4 57.1513 16 58.3436 16C64.9942 16 77.4206 16 78.6129 16C79.8052 16 80.4013 15.4 80.4013 14.2V2.8C80.4013 1.6 79.8052 1 78.6129 1Z" fill="#306FC5"/>
384
384
  <path fill-rule="evenodd" clip-rule="evenodd" d="M58.496 7.17857L58.0342 6.04592L57.575 7.17857H58.496ZM68.6703 6.72755C68.5775 6.7842 68.4679 6.78608 68.3365 6.78608H67.5168V6.15502H68.3476C68.4652 6.15502 68.5879 6.16033 68.6676 6.20626C68.7552 6.24765 68.8093 6.33575 68.8093 6.45744C68.8093 6.58161 68.7578 6.68153 68.6703 6.72755C68.7578 6.68153 68.6703 6.72755 68.6703 6.72755ZM74.518 7.17857L74.0511 6.04592L73.5867 7.17857H74.518ZM63.6175 8.40455H62.9257L62.9232 6.17935L61.9448 8.40455H61.3523L60.3713 6.17738V8.40455H58.9989L58.7396 7.77082H57.3347L57.0728 8.40455H56.3399L57.5483 5.56337H58.5508L59.6984 8.25338V5.56337H60.7997L61.6828 7.49077L62.494 5.56337H63.6174V8.40455H63.6175ZM66.3744 8.40455H64.1203V5.56337H66.3744V6.15502H64.7951V6.66714H66.3366V7.24953H64.7951V7.81693H66.3744V8.40455ZM69.5526 6.32855C69.5526 6.78154 69.2522 7.01558 69.0772 7.08585C69.2248 7.14241 69.3509 7.24233 69.411 7.32512C69.5062 7.46643 69.5227 7.59266 69.5227 7.84641V8.40455H68.8421L68.8395 8.04625C68.8395 7.87529 68.8558 7.62942 68.733 7.49274C68.6344 7.39282 68.4841 7.37113 68.2412 7.37113H67.5169V8.40455H66.8422V5.56337H68.3941C68.739 5.56337 68.9931 5.57254 69.2112 5.69945C69.4247 5.82637 69.5526 6.01165 69.5526 6.32855C69.5526 6.01165 69.5526 6.32855 69.5526 6.32855ZM70.6325 8.40455H69.944V5.56337H70.6325V8.40455ZM78.62 8.40455H77.6638L76.3848 6.27208V8.40455H75.0106L74.748 7.77082H73.3463L73.0915 8.40455H72.302C71.974 8.40455 71.5587 8.33153 71.3235 8.0903C71.0864 7.84906 70.963 7.5223 70.963 7.00564C70.963 6.58427 71.0368 6.19906 71.3268 5.89467C71.5449 5.66792 71.8865 5.56337 72.3515 5.56337H73.0048V6.17216H72.3652C72.119 6.17216 71.9799 6.209 71.846 6.34046C71.731 6.4601 71.652 6.68625 71.652 6.98404C71.652 7.28844 71.7121 7.50791 71.8376 7.65128C71.9414 7.76371 72.1302 7.79782 72.3078 7.79782H72.6109L73.5619 5.56345H74.5729L75.7153 8.25081V5.56345H76.7427L77.9288 7.54218V5.56345H78.62V8.40455ZM56.3321 8.9626H57.485L57.745 8.33153H58.3269L58.5862 8.9626H60.8546V8.48013L61.0571 8.96466H62.2347L62.4372 8.47293V8.9626H68.0746L68.0719 7.9267H68.181C68.2574 7.92936 68.2797 7.93647 68.2797 8.06339V8.9626H71.1954V8.72145C71.4306 8.84828 71.7964 8.9626 72.2777 8.9626H73.5043L73.7668 8.33153H74.3488L74.6055 8.9626H76.9693V8.36316L77.3273 8.9626H79.2214V5H77.3468V5.46799L77.0843 5H75.1608V5.46799L74.9197 5H72.3215C71.8865 5 71.5042 5.0611 71.1954 5.23138V5H69.4024V5.23138C69.2058 5.05587 68.9381 5 68.6403 5H62.0897L61.6501 6.02347L61.1988 5H59.1355V5.46799L58.9088 5H57.1492L56.332 6.88404V8.9626H56.3321ZM80.3331 11.0548H79.1033C78.9806 11.0548 78.899 11.0594 78.8303 11.1061C78.7591 11.1521 78.7317 11.2204 78.7317 11.3106C78.7317 11.4178 78.7918 11.4907 78.8792 11.5223C78.9504 11.5472 79.0269 11.5545 79.1393 11.5545L79.505 11.5643C79.874 11.5735 80.1203 11.6374 80.2705 11.7931C80.2979 11.8148 80.3143 11.8391 80.3331 11.8634V11.0548ZM80.3331 12.9284C80.1692 13.1696 79.8498 13.2919 79.4174 13.2919H78.1144V12.6825H79.4122C79.5409 12.6825 79.631 12.6655 79.6852 12.6122C79.7322 12.5682 79.765 12.5043 79.765 12.4268C79.765 12.344 79.7322 12.2783 79.6826 12.2389C79.6336 12.1955 79.5624 12.1758 79.4449 12.1758C78.8113 12.1541 78.0209 12.1955 78.0209 11.2962C78.0209 10.884 78.2809 10.4501 78.989 10.4501H80.333V9.8847H79.0843C78.7074 9.8847 78.4337 9.97553 78.2398 10.1168V9.8847H76.3927C76.0973 9.8847 75.7506 9.95839 75.5866 10.1168V9.8847H72.2882V10.1168C72.0257 9.92617 71.5827 9.8847 71.3783 9.8847H69.2026V10.1168C68.9949 9.91435 68.5331 9.8847 68.2516 9.8847H65.8166L65.2594 10.4916L64.7376 9.8847H61.1003V13.85H64.6691L65.2433 13.2335L65.7841 13.85L67.984 13.852V12.9192H68.2003C68.4921 12.9237 68.8364 12.9119 69.1401 12.7798V13.85H70.9546V12.8165H71.0421C71.1538 12.8165 71.1648 12.8211 71.1648 12.9334V13.8499H76.6769C77.0269 13.8499 77.3926 13.7597 77.5952 13.5961V13.8499H79.3436C79.7075 13.8499 80.0628 13.7985 80.3331 13.6671V12.9284ZM77.6415 11.7931C77.7729 11.9299 77.8433 12.1027 77.8433 12.3952C77.8433 13.0065 77.4638 13.2919 76.7833 13.2919H75.4691V12.6825H76.7781C76.906 12.6825 76.9968 12.6655 77.0537 12.6122C77.1001 12.5682 77.1334 12.5043 77.1334 12.4268C77.1334 12.344 77.0974 12.2783 77.051 12.2389C76.9994 12.1955 76.9283 12.1758 76.8108 12.1758C76.1797 12.1541 75.3895 12.1955 75.3895 11.2962C75.3895 10.884 75.6468 10.4501 76.3542 10.4501H77.7069V11.055H76.4691C76.3464 11.055 76.2667 11.0596 76.1988 11.1063C76.1249 11.1523 76.0975 11.2206 76.0975 11.3108C76.0975 11.418 76.1602 11.4909 76.2451 11.5224C76.3163 11.5474 76.3928 11.5547 76.5077 11.5547L76.871 11.5645C77.2373 11.5735 77.4887 11.6373 77.6415 11.7931C77.4887 11.6373 77.6415 11.7931 77.6415 11.7931ZM71.5528 11.6176C71.4626 11.6715 71.351 11.6761 71.2197 11.6761H70.3999V11.0378H71.2308C71.351 11.0378 71.4712 11.0404 71.5528 11.0892C71.6403 11.1352 71.6926 11.2232 71.6926 11.3448C71.6926 11.4664 71.6403 11.5643 71.5528 11.6176C71.6403 11.5643 71.5528 11.6176 71.5528 11.6176ZM71.9604 11.9712C72.1106 12.027 72.2333 12.127 72.2909 12.2098C72.3862 12.3486 72.4 12.478 72.4027 12.7285V13.2919H71.7253V12.9363C71.7253 12.7654 71.7416 12.5122 71.6162 12.3801C71.5176 12.2783 71.3673 12.2539 71.1211 12.2539H70.4V13.2919H69.722V10.45H71.2799C71.6215 10.45 71.8703 10.4652 72.0917 10.5841C72.3047 10.7136 72.4386 10.891 72.4386 11.2152C72.4385 11.6688 72.138 11.9003 71.9604 11.9712C72.138 11.9003 71.9604 11.9712 71.9604 11.9712ZM72.8128 10.45H75.0648V11.0377H73.4847V11.5544H75.0262V12.1342H73.4847V12.6997L75.0648 12.7022V13.2919H72.8128V10.45ZM68.2602 11.7615H67.3882V11.0378H68.268C68.5116 11.0378 68.6807 11.1377 68.6807 11.3863C68.6807 11.632 68.5195 11.7615 68.2602 11.7615ZM66.7161 13.0334L65.6802 11.8759L66.7161 10.755V13.0334ZM64.0407 12.6997H62.3817V12.1342H63.8631V11.5544H62.3817V11.0377H64.0734L64.8115 11.8659L64.0407 12.6997ZM69.4052 11.3863C69.4052 12.1757 68.82 12.3387 68.2301 12.3387H67.3882V13.2919H66.0767L65.2458 12.3511L64.3823 13.2919H61.7096V10.45H64.4235L65.2537 11.3816L66.1119 10.45H68.268C68.8035 10.45 69.4052 10.5992 69.4052 11.3863C69.4052 10.5992 69.4052 11.3863 69.4052 11.3863Z" fill="white"/>
385
385
  </svg></a>`;style=`
386
- <% if (font.id === 2) { %>
386
+ <% if (font.id === 1) { %>
387
+ @font-face{font-family:circular std;font-style:normal;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Book.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BookItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Medium.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-MediumItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Bold.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BoldItalic.woff) format('woff')}@font-face{font-family:circular std;font-style:normal;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Black.woff) format('woff')}@font-face{font-family:circular std;font-style:italic;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BlackItalic.woff) format('woff')}
388
+ <% } else if (font.id === 2) { %>
387
389
  @font-face{font-family:roboto;font-style:normal;font-weight:400;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Regular.woff) format('woff')}@font-face{font-family:roboto;font-style:italic;font-weight:400;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Italic.woff) format('woff')}@font-face{font-family:roboto;font-style:normal;font-weight:700;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Bold.woff) format('woff')}@font-face{font-family:roboto;font-style:italic;font-weight:700;src:local('Roboto'),url(https://fonts.cdnfonts.com/s/12165/Roboto-BoldItalic.woff) format('woff')}@font-face{font-family:roboto thin;font-style:normal;font-weight:250;src:local('Roboto Thin'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Thin.woff) format('woff')}@font-face{font-family:roboto thin;font-style:italic;font-weight:250;src:local('Roboto Thin'),url(https://fonts.cdnfonts.com/s/12165/Roboto-ThinItalic.woff) format('woff')}@font-face{font-family:roboto light;font-style:normal;font-weight:300;src:local('Roboto Light'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Light.woff) format('woff')}@font-face{font-family:roboto light;font-style:italic;font-weight:300;src:local('Roboto Light'),url(https://fonts.cdnfonts.com/s/12165/Roboto-LightItalic.woff) format('woff')}@font-face{font-family:roboto medium;font-style:normal;font-weight:500;src:local('Roboto Medium'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Medium.woff) format('woff')}@font-face{font-family:roboto medium;font-style:italic;font-weight:500;src:local('Roboto Medium'),url(https://fonts.cdnfonts.com/s/12165/Roboto-MediumItalic.woff) format('woff')}@font-face{font-family:roboto black;font-style:normal;font-weight:900;src:local('Roboto Black'),url(https://fonts.cdnfonts.com/s/12165/Roboto-Black.woff) format('woff')}@font-face{font-family:roboto black;font-style:italic;font-weight:900;src:local('Roboto Black'),url(https://fonts.cdnfonts.com/s/12165/Roboto-BlackItalic.woff) format('woff')}
388
390
  <% } else if (font.id === 3) { %>
389
391
  @font-face{font-family:poppins;font-style:normal;font-weight:400;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Regular.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:400;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Italic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:250;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Thin.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:250;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ThinItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:275;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLight.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:275;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLightItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:300;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Light.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:300;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-LightItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:500;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Medium.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:500;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-MediumItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:600;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-SemiBold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:600;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-SemiBoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:700;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Bold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:700;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-BoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:800;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBold.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:800;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBoldItalic.woff) format('woff')}@font-face{font-family:poppins;font-style:normal;font-weight:900;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-Black.woff) format('woff')}@font-face{font-family:poppins;font-style:italic;font-weight:900;src:local('Poppins'),url(https://fonts.cdnfonts.com/s/16009/Poppins-BlackItalic.woff) format('woff')}
@@ -538,6 +540,14 @@ class="signatureClementine">
538
540
  #WYSIWYG ql-indent-5 { padding-left: 15em; }
539
541
  #WYSIWYG ql-indent-6 { padding-left: 18em; }
540
542
  `},CommercialDocumentMailHTML=class{style=`
543
+ @font-face{font-family:circular std;font-style:normal;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Book.woff) format('woff')}
544
+ @font-face{font-family:circular std;font-style:italic;font-weight:450;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BookItalic.woff) format('woff')}
545
+ @font-face{font-family:circular std;font-style:normal;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Medium.woff) format('woff')}
546
+ @font-face{font-family:circular std;font-style:italic;font-weight:500;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-MediumItalic.woff) format('woff')}
547
+ @font-face{font-family:circular std;font-style:normal;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Bold.woff) format('woff')}
548
+ @font-face{font-family:circular std;font-style:italic;font-weight:700;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BoldItalic.woff) format('woff')}
549
+ @font-face{font-family:circular std;font-style:normal;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-Black.woff) format('woff')}
550
+ @font-face{font-family:circular std;font-style:italic;font-weight:900;src:local('Circular Std'),url(https://fonts.cdnfonts.com/s/15011/CircularStd-BlackItalic.woff) format('woff')}
541
551
 
542
552
  /* Css classes not working inside mails */
543
553
  `;header=`<style>html { -webkit-print-color-adjust: exact; }</style>
@@ -545,7 +555,7 @@ class="signatureClementine">
545
555
  ${this.style}
546
556
  </style>
547
557
  <div style="background-color: <%= brandColors.primary50 %> !important; color: black; width: calc(100% - 48px); display: grid; border-radius: 16px; padding: 24px;">
548
- <div style="width: max-content; margin: auto; font-size: 16px; font-family: 'Figtree', sans-serif; font-weight: 400; line-height: 140%; position: relative;">
558
+ <div style="width: max-content; margin: auto; font-size: 16px; font-family: 'circular std', sans-serif; font-weight: 100; line-height: 140%; position: relative;">
549
559
  <div style="color: black;"><span style="font-weight: 500;"><%= companyName %></span> <%= languageMail.mail.common.send %>
550
560
  <% if(idEstimateInvoiceType) { %>
551
561
  <% if ([1, 5].includes(idEstimateInvoiceType)) { %>