PageSourceSearch

https://www.calcul-salaire-brut-net.com/assets/historique-8AKca5z_.js

js calcul-salaire-brut-net.com collected 2026-10-02 00:15:45 UTC 7,033 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-6T4TVi90.js","assets/index-VoqAxR-3.js","assets/vendor-BUjxpxYv.js","assets/primevue-Co96Hmly.js","assets/index-BUvqPAnh.css"])))=>i.map(i=>d[i]);
2import{k as b,e as q,r as U,f as g}from"./vendor-BUjxpxYv.js";import{_ as G}from"./index-VoqAxR-3.js";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const P=()=>{};function Y(e,i){function a(...s){return new Promise((c,f)=>{Promise.resolve(e(()=>i.apply(this,s),{fn:i,thisArg:this,args:s})).then(c).catch(f)})}return a}function z(e,i={}){let a,s,c=P;const f=m=>{clearTimeout(m),c(),c=P};let v;return m=>{const x=b(e),h=b(i.maxWait);return a&&f(a),x<=0||h!==void 0&&h<=0?(s&&(f(s),s=null),Promise.resolve(m())):new Promise((w,y)=>{c=i.rejectOnCancel?y:w,v=m,h&&!s&&(s=setTimeout(()=>{a&&f(a),s=null,w(v())},h)),a=setTimeout(()=>{s&&f(s),s=null,w(m())},x)})}}function ot(e,i=200,a={}){return Y(z(i,a),e)}const H={},O=()=>typeof window!="undefined"&&["localhost","127.0.0.1","0.0.0.0","::1"].includes(window.location.hostname),K=".calcul-salaire-brut-net.com",F=e=>{if(typeof e!="string")return null;try{return JSON.parse(e)}catch(i){return e}};function Q(e,i){const a=JSON.stringify(i),s={path:"/",sameSite:"Lax",maxAge:31536e3,secure:!O()};O()||(s.domain=K);try{const c=encodeURIComponent(a),f=`${encodeURIComponent(e)}=${c}`,v=Object.entries(s).map(([S,m])=>m===!0?S:`${S}=${m}`).join("; ");document.cookie=`${f}; ${v}`}catch(c){}try{localStorage.setItem(e,a)}catch(c){}}function X(e){var i;try{const a=encodeURIComponent(e),s=(i=document.cookie.split("; ").find(c=>c.startsWith(`${a}=`)))==null?void 0:i.split("=")[1];if(s)return F(decodeURIComponent(s))}catch(a){}try{const a=localStorage.getItem(e);if(a)return F(a)}catch(a){}return null}const Z={getItem(e){const i=X(e);return i===null?null:JSON.stringify(i)},setItem(e,i){Q(e,F(i))}},tt={};function N(){var i,a;if(typeof window=="undefined")return!1;const e=window.Capacitor;return(a=(i=e==null?void 0:e.isNativePlatform)==null?void 0:i.call(e))!=null?a:!1}N();const et=N()?{getItem(e){return localStorage.getItem(e)},setItem(e,i){localStorage.setItem(e,i),G(async()=>{const{Preferences:a}=await import("./index-6T4TVi90.js");return{Preferences:a}},__vite__mapDeps([0,1,2,3,4])).then(({Preferences:a})=>a.set({key:e,value:i})).catch(()=>{})}}:Z;N();const at=q("historique",()=>{const e=U([]),i=100,a=g(()=>e.value.filter(n=>n.favori).sort((n,r)=>r.timestamp-n.timestamp)),s=g(()=>[...e.value].sort((n,r)=>r.timestamp-n.timestamp).slice(0,20)),c=g(()=>e.value.length),f=g(()=>a.value.length),v=g(()=>e.value.filter(n=>n.mode==="express"||!n.mode).length),S=g(()=>e.value.filter(n=>n.mode==="expert").length),m=g(()=>{if(e.value.length===0)return null;const n=e.value.map(t=>t.result.netAPayer),r=e.value.map(t=>t.result.brut);return{avgNet:n.reduce((t,o)=>t+o,0)/n.length,avgBrut:r.reduce((t,o)=>t+o,0)/r.length,minNet:Math.min(...n),maxNet:Math.max(...n),minBrut:Math.min(...r),maxBrut:Math.max(...r),totalSimulations:e.value.length,thisMonth:e.value.filter(t=>{const o=new Date(t.timestamp),u=new Date;return o.getMonth()===u.getMonth()&&o.getFullYear()===u.getFullYear()}).length}});function x(){return`sim_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}function h(n){return"entreprise"in n?"expert":"express"}function w(n,r,t){const o={id:x(),nom:t==null?void 0:t.nom,timestamp:Date.now(),input:n,result:r,favori:!1,tags:t==null?void 0:t.tags,mode:(t==null?void 0:t.mode)||h(n)};return e.value.unshift(o),e.value.length>i&&e.value.filter(d=>!d.favori).slice(i-a.value.length).forEach(d=>{const p=e.value.findIndex(I=>I.id===d.id);p>-1&&e.value.splice(p,1)}),o}function y(n){const r=e.value.findIndex(t=>t.id===n);return r>-1?(e.value.splice(r,1),!0):!1}function k(n){let r=0;return n.forEach(t=>{y(t)&&r++}),r}function D(n){const r=e.value.find(t=>t.id===n);return r?(r.favori=!r.favori,r.favori):!1}function E(n,r){const t=e.value.find(o=>o.id===n);return t?(t.nom=r||void 0,!0):!1}function M(n,r){const t=e.value.find(o=>o.id===n);return t&&(t.tags||(t.tags=[]),!t.tags.includes(r))?(t.tags.push(r),!0):!1}function _(n,r){const t=e.value.find(o=>o.id===n);if(t!=null&&t.tags){const o=t.tags.indexOf(r);if(o>-1)return t.tags.splice(o,1),!0}return!1}function $(n){return e.value.find(r=>r.id===n)}function A(n){const r=n.toLowerCase();return e.value.filter(t=>{var o,u;return((o=t.nom)==null?void 0:o.toLowerCase().includes(r))||((u=t.tags)==null?void 0:u.some(l=>l.toLowerCase().includes(r)))})}function T(n){const r=e.value.find(o=>o.id===n);if(!r)return null;const t={...r,id:x(),nom:r.nom?`${r.nom} (copie)`:void 0,timestamp:Date.now(),favori:!1};return e.value.unshift(t),t}function R(n="date",r="desc",t,o){let u=[...e.value];return t&&t!=="all"&&(u=u.filter(l=>t==="express"?l.mode==="express"||!l.mode:l.mode==="expert")),o&&(u=u.filter(l=>l.favori)),u.sort((l,d)=>{let p=0;switch(n){case"date":p=l.timestamp-d.timestamp;break;case"brut":p=l.result.brut-d.result.brut;break;case"net":p=l.result.netAPayer-d.result.netAPayer;break;case"statut":{const I=C=>"statut"in C.input?C.input.statut:"salarie"in C.input?C.input.salarie.statut:"";p=I(l).localeCompare(I(d));break}}return r==="desc"?-p:p}),u}function j(){const n={};return e.value.forEach(r=>{const t=new Date(r.timestamp),o=`${t.getFullYear()}
2-${String(t.getMonth()+1).padStart(2,"0")}`;n[o]||(n[o]=[]),n[o].push(r)}),Object.keys(n).forEach(r=>{var t;(t=n[r])==null||t.sort((o,u)=>u.timestamp-o.timestamp)}),n}function J(){e.value=[]}function L(){e.value=e.value.filter(n=>n.favori)}function V(){return JSON.stringify(e.value,null,2)}function B(){const n=["Date","Nom","Mode","Statut","Brut","Net","Cotis. Salariales","Cotis. Patronales","Coût Employeur","Favori"],r=e.value.map(t=>{const o=new Date(t.timestamp).toLocaleDateString("fr-FR"),u=t.nom||"",l=t.mode||"express",d="statut"in t.input?t.input.statut:"salarie"in t.input?t.input.salarie.statut:"";return[o,u,l,d,t.result.brut.toFixed(2),t.result.netAPayer.toFixed(2),t.result.cotisationsSalariales.toFixed(2),t.result.cotisationsPatronales.toFixed(2),t.result.coutEmployeur.toFixed(2),t.favori?"Oui":"Non"].join(";")});return[n.join(";"),...r].join(`
3`)}function W(n){try{const r=JSON.parse(n);if(!Array.isArray(r))throw new Error("Invalid format");let t=0;return r.forEach(o=>{o.id&&o.input&&o.result&&o.timestamp&&(e.value.find(u=>u.id===o.id)||(o.mode||(o.mode="entreprise"in o.input?"expert":"express"),e.value.push(o),t++))}),e.value.sort((o,u)=>u.timestamp-o.timestamp),t}catch(r){return 0}}return{simulations:e,favoris:a,recentes:s,count:c,favorisCount:f,expressCount:v,expertCount:S,statistics:m,saveSimulation:w,deleteSimulation:y,deleteMultiple:k,toggleFavorite:D,updateSimulationName:E,addTag:M,removeTag:_,getSimulation:$,searchSimulations:A,duplicateSimulation:T,getSorted:R,getGroupedByMonth:j,clearAll:J,clearNonFavorites:L,exportToJson:V,exportToCsv:B,importFromJson:W}},{persist:{key:"brutnet-historique",storage:et,pick:["simulations"]}});export{at as a,et as p,ot as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.