1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,475121,e=>{"use strict";let t=(0,e.i(475254).default)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]);e.s(["default",0,t])},931091,e=>{"use strict";var t=e.i(475121);e.s(["Megaphone",()=>t.default])},349226,e=>{"use strict";let t=(0,e.i(475254).default)("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);e.s(["default",0,t])},486631,e=>{"use strict";var t=e.i(349226);e.s(["Presentation",()=>t.default])},125511,433172,e=>{"use strict";let t=(0,e.i(475254).default)("hotel",[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);e.s(["default",0,t],433172),e.s(["Hotel",0,t],125511)},806824,88670,e=>{"use strict";var t=e.i(475254);let i=(0,t.default)("aperture",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14.31 8 5.74 9.94",key:"1y6ab4"}],["path",{d:"M9.69 8h11.48",key:"1wxppr"}],["path",{d:"m7.38 12 5.74-9.94",key:"1grp0k"}],["path",{d:"M9.69 16 3.95 6.06",key:"libnyf"}],["path",{d:"M14.31 16H2.83",key:"x5fava"}],["path",{d:"m16.62 12-5.74 9.94",key:"1vwawt"}]]);e.s(["default",0,i],806824);let n=(0,t.default)("cake",[["path",{d:"M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8",key:"1w3rig"}],["path",{d:"M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1",key:"n2jgmb"}],["path",{d:"M2 21h20",key:"1nyx9w"}],["path",{d:"M7 8v3",key:"1qtyvj"}],["path",{d:"M12 8v3",key:"hwp4zt"}],["path",{d:"M17 8v3",key:"1i6e5u"}],["path",{d:"M7 4h.01",key:"1bh4kh"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M17 4h.01",key:"1upcoc"}]]);e.s(["default",0,n],88670)},757740,e=>{"use strict";let t=(0,e.i(475254).default)("car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);e.s(["default",0,t])},595128,703700,e=>{"use strict";var t=e.i(475254);let i=(0,t.default)("clapperboard",[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]]);e.s(["default",0,i],595128);let n=(0,t.default)("drone",[["path",{d:"M10 10 7 7",key:"zp14k7"}],["path",{d:"m10 14-3 3",key:"1jrpxk"}],["path",{d:"m14 10 3-3",key:"7tigam"}],["path",{d:"m14 14 3 3",key:"vm23p3"}],["path",{d:"M14.205 4.139a4 4 0 1 1 5.439 5.863",key:"1tm5p2"}],["path",{d:"M19.637 14a4 4 0 1 1-5.432 5.868",key:"16egi2"}],["path",{d:"M4.367 10a4 4 0 1 1 5.438-5.862",key:"1wta6a"}],["path",{d:"M9.795 19.862a4 4 0 1 1-5.429-5.873",key:"q39hpv"}],["rect",{x:"10",y:"8",width:"4",height:"8",rx:"1",key:"phrjt1"}]]);e.s(["default",0,n],703700)},76616,e=>{"use strict";let t=(0,e.i(475254).default)("flower-2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);e.s(["default",0,t])},238005,488251,483635,779784,632646,872570,442635,572513,e=>{"use strict";var t=e.i(475254);let i=(0,t.default)("ice-cream-cone",[["path",{d:"m7 11 4.08 10.35a1 1 0 0 0 1.84 0L17 11",key:"1v6356"}],["path",{d:"M17 7A5 5 0 0 0 7 7",key:"151p3v"}],["path",{d:"M17 7a2 2 0 0 1 0 4H7a2 2 0 0 1 0-4",key:"1sdaij"}]]);e.s(["default",0,i],238005);let n=(0,t.default)("pizza",[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]]);e.s(["default",0,n],488251);let l=(0,t.default)("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);e.s(["default",0,l],483635);let a=(0,t.default)("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);e.s(["default",0,a],779784);let r=(0,t.default)("shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]]);e.s(["default",0,r],632646);let u=(0,t.default)("speaker",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["circle",{cx:"12",cy:"14",r:"4",key:"1jruaj"}],["path",{d:"M12 14h.01",key:"1etili"}]]);e.s(["default",0,u],872570);let o=(0,t.default)("tent",[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]]);e.s(["default",0,o],442635);let s=(0,t.default)("umbrella",[["path",{d:"M12 13v7a2 2 0 0 0 4 0",key:"rpgb42"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M20.992 13a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-19.923 0A1 1 0 0 0 3 13z",key:"124nyo"}]]);e.s(["default",0,s],572513)},738111,e=>{"use strict";let t=(0,e.i(475254).default)("heart-handshake",[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2
10 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]]);e.s(["default",0,t])},772747,e=>{"use strict";var t=e.i(738111);e.s(["HeartHandshake",()=>t.default])},735501,e=>{"use strict";var t=e.i(803408);e.s(["ImageIcon",()=>t.default])},473815,e=>{"use strict";let t=(0,e.i(475254).default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);e.s(["default",0,t])},905257,e=>{"use strict";var t=e.i(473815);e.s(["Headphones",()=>t.default])},534622,e=>{"use strict";e.i(522661);let t=["lieux","restos","forfait","prestations"],i=(e,t)=>{let i=e?.[t];return"string"==typeof i?[i]:Array.isArray(i)?i:[]};function n(e){return e.filter(e=>null!=e.prixHt||!0===e.surDevis)}let l=["lieux","hebergement","restos","menus","forfait"],a=["hebergement","menus"],r=["animations","prestations","options"];function u(e,t){let i=e.filter(e=>e.groupe===t),n=new Set(i.map(e=>e.choixDans?.cle).filter(Boolean)).size;return i.length+.6*n+.5*i.filter(e=>e.dispoConfirmee||e.approche).length}function o(e,t,i){if(t.length<=i)return t.map(e=>[e]);let l=n(e),a=e=>Math.max(...e.map(e=>e.reduce((e,t)=>e+u(l,t)+1.5,0))),r=[[...t]],o=(e,t)=>{if(t.length===i-1){let i=[...t,e];a(i)<a(r)&&(r=i);return}for(let n=1;n<=e.length-(i-1-t.length);n++)o(e.slice(n),[...t,e.slice(0,n)])};return o([...t],[]),r}function s(e){var t;let i,s=n(e),c=e=>e.filter(e=>s.some(t=>t.groupe===e)),p=c(["lieux","restos","forfait"]),m=c(a),f=c(r).length>0?3:2,d=p.length>0&&(t=o(s,c(l),f),i=n(s),9>=Math.max(0,...t.map(e=>e.reduce((e,t)=>e+u(i,t)+1.5,0))))&&m.every(e=>6>=u(s,e)),h=[{cle:"lieux",groupes:d?c(l):p,finale:!1},{cle:"hebergement",groupes:d?[]:m,finale:!1},{cle:"animations",groupes:c(r),finale:!1}].filter(e=>e.groupes.length>0);return 0===h.length?[{cle:"animations",groupes:[],finale:!0}]:(h[h.length-1].finale=!0,h)}function c(e,t){return n(e).filter(e=>i(t,e.groupe).includes(e.id))}let p=["lieux","hebergement","restos","menus","forfait","animations","prestations","options"],m=[{cle:"espaces",titre:"Espaces réceptifs"},{cle:"restauration",titre:"Restauration"},{cle:"hebergement",titre:"Hébergement"},{cle:"complementaires",titre:"Prestations complémentaires du lieu"}
1],f={privatisation:"espaces",formule_jour:"espaces",traiteur:"restauration",boissons:"restauration",pauses_cafe:"restauration",hebergement:"hebergement"},d=[["hebergement",["chambre","nuitee","hebergement","taxe de sejour","occupation simple","occupation double","single","twin","junior suite","suite junior","nuit"]],["restauration",["petit dejeuner","petits dejeuners","petit dej","dejeuner","diner","dinatoire","cocktail","pause","cafe","boisson","repas","buffet","menu","traiteur","aperitif","apero","vin","vins","champagne","soft","softs","open bar","brunch","collation","plateau","restauration","gouter","canape","canapes"]],["complementaires",["technique","audiovisuel","sonorisation","sono","video","videoprojecteur","projecteur","micro","micros","ecran","eclairage","mobilier","personnel","hotesse","hotesses","vestiaire","frais de service","menage","nettoyage","securite","agent","regisseur","technicien","wifi","paperboard","decoration","navette","transport","parking"]],["espaces",["salle","salles","pleniere","sous commission","sous commissions","privatisation","privatif","privative","espace","espaces","auditorium","salon","rooftop","terrasse","journee d etude","demi journee d etude","jde","location d espace"]]],h=e=>e.normalize("NFD").replace(/[Ì-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9²]+/g," ").trim();function g(e,t){let i=RegExp(`(^| )${t}( |$)`).exec(e);return i?i.index+i[1].length:-1}let v=e=>Math.round(100*e)/100,b=e=>v(e.reduce((e,t)=>e+t,0));e.s(["TITRES_PAGES_DEVIS",0,{lieux:"Vos choix, votre budget",hebergement:"Vos choix, votre budget",animations:"Vos choix, votre budget"},"ancrePageDevis",0,(e,t,i)=>0===t?e:t===i-1?`${e}-suite`:`${e}-hebergement`,"basculerCumulable",0,function(e,t,i,n=null){if(t.includes(i.id))return t.filter(e=>e!==i.id);if(null!=n&&!i.choixDans&&t.length>=n)return t;let l=i.choixDans?.cle,a=l?new Set(e.filter(e=>e.choixDans?.cle===l).map(e=>e.id)):new Set;return[...t.filter(e=>!a.has(e)),i.id]},"colonnesDevis",0,o,"etudeModeleLieu",0,function(e){let t=new Map(m.map(e=>[e.cle,[]]));for(let i of[...e.blocs.flatMap(e=>e.lignes),...e.options.map(e=>({...e,option:!0}))]){let n=i.tva??null,l=!i.option&&null!=i.totalHt;t.get(function(e){let t=f[(e.categorie??"").trim()];if(t)return t;let i=h(e.libelle),n=null;for(let[e,t]of d)for(let l of t){let t=g(i,l);t>=0&&(!n||t<n.pos)&&(n={r:e,pos:t})}return n?.r==="restauration"&&/(^| )petits? dej/.test(i)&&["chambre","nuit","nuitee","hebergement","sejour"].some(e=>g(i,e)>=0)?"hebergement":n?n.r:/\d\s*(m²|m2)( |$)/.test(h(e.description??""))?"espaces":"complementaires"}(i)).push({libelle:i.libelle,description:i.description,pu:i.pu,quantite:i.quantite,unite:i.unite,...function(e,t){if(!t||null!=e.pu||null==e.totalHt||"hebergement"!==e.categorie||!t.nbChambres||!t.tarifChambreHt)return null;let i=t.nbChambres*(t.nbNuits??1);return .5>=Math.abs(i*t.tarifChambreHt-e.totalHt)?{pu:t.tarifChambreHt,quantite:i,unite:"nuitées"}:null}(i,e.hebergement)??{},totalHt:i.totalHt,tva:n,option:i.option,totalTtc:l&&null!=n?v(i.totalHt*(1+n/100)):null})}let i=m.flatMap(({cle:e,titre:i})=>{let n=t.get(e);if(0===n.length)return[];let l=n.filter(e=>!e.option&&null!=e.totalHt);return[{cle:e,titre:i,lignes:n,sousTotalHt:b(l.map(e=>e.totalHt)),sousTotalTtc:l.length>0&&l.every(e=>null!=e.totalTtc)?b(l.map(e=>e.totalTtc)):null}]}),n=b(i.map(e=>e.sousTotalHt)),l=e.remise?.montant?e.remise:null,a=null!=l&&null!=e.totalHt&&.01>Math.abs(e.totalHt-n),r=v(n-(l&&!a?l.montant:0)),u=e.totalHt??r,o=i.length>0&&i.every(e=>null!=e.sousTotalTtc||e.lignes.every(e=>e.option||null==e.totalHt))&&i.some(e=>null!=e.sousTotalTtc)&&!l&&.01>Math.abs(u-r)?b(i.map(e=>e.sousTotalTtc??0)):null,s=e.totalTtc??o;return{nbPax:e.nbPax,date:e.date,rubriques:i,sommeLignesHt:n,remise:l,remiseDejaDeduite:a,totalHt:u,ecart:v(u-r),montantTva:null!=s?v(s-u):null,totalTtc:s}},"euros",0,e=>`${Math.round(e).toLocaleString("fr-FR")} â¬`,"idsDe",0,i,"lignesChoisies",0,c,"lignesProposees",0,n,"maxDe",0,(e,t)=>{let i=t?.[e];return"number"==typeof i&&Number.isInteger(i)&&i>=1?i:null},"modeDe",0,(e,i)=>{let n=i?.[e];return"number"==typeof n?"multiple":n??(t.includes(e)?"unique":"multiple")},"pagesDevisCompactes",0,function(e,t={}){let i=n(e),a=[...l,...r].filter(e=>i.some(t=>t.groupe===e));if(0===a.length)return s(e);let c=4.3+.55*a.length+2.4*!!t.action;return 9>=Math.max(0,...o(i,a,2).map(e=>e.reduce((e,t)=>
1e+u(i,t)*("lieux"===t||"restos"===t?1.6:1.25)+1.5,0)))&&c<=9?[{cle:a.some(e=>l.includes(e))?"lieux":"animations",groupes:a,finale:!0}]:s(e)},"recapLieuxParMoments",0,function(e,t){let i=c(e,t).filter(e=>"lieux"===e.groupe||"restos"===e.groupe);if(!i.some(e=>e.moments?.length))return null;let n=new Set(i.flatMap(e=>(e.moments??[]).map(e=>e.jour))).size>1,l=e=>n?`${e.titre} (${e.jour})`:e.titre,a=i.flatMap(e=>(e.moments??[]).map(t=>({m:t,l:e}))).sort((e,t)=>e.m.ordre-t.m.ordre),r=new Map,u=[];for(let{m:e,l:t}of a){let i=`${t.groupe}:${t.id}`,n=r.get(i);n||r.set(i,e);let a=t.moments??[],o=n?{ligne:t,montant:null,compte:!1,aussi:[],renvoi:l(n)}:{ligne:t,montant:t.prixHt,compte:!0,aussi:a.filter(t=>t.cle!==e.cle).map(l),renvoi:null},s=u.find(t=>t.jour===e.jour);s||(s={jour:e.jour,moments:[]},u.push(s));let c=s.moments.find(t=>t.cle===e.cle);c||(c={cle:e.cle,titre:e.titre,lieux:[]},s.moments.push(c)),c.lieux.push(o)}let o=i.filter(e=>!e.moments?.length);return o.length&&u.push({jour:"Autres lieux",moments:[{cle:"sans-moment",titre:"",lieux:o.map(e=>({ligne:e,montant:e.prixHt,compte:!0,aussi:[],renvoi:null}))}]}),u},"recapParPoste",0,function(e,t,i){let l=n(e),a=c(e,t);return p.filter(e=>l.some(t=>t.groupe===e)).map(e=>{let t=a.filter(t=>t.groupe===e),n=t.filter(e=>null!=e.prixHt),l=n.length?n.reduce((e,t)=>e+t.prixHt,0):null;return{poste:e,montant:l,surDevis:t.some(e=>!0===e.surDevis),estimation:t.some(e=>!0===e.estimation),inclus:t.length>0&&t.every(e=>!0===e.inclus),choisies:t.length,parPers:null!=l&&i&&i>0?l/i:null}})},"sousGroupesChoix",0,function(e){if(!e.some(e=>e.choixDans))return[{titre:null,cle:null,lignes:e}];let t=[];for(let i of e){let e=i.choixDans?.cle??null,n=t.find(t=>t.cle===e);n?n.lignes.push(i):t.push({titre:i.choixDans?.titre??null,cle:e,lignes:[i]})}return t},"sousGroupesCreneaux",0,function(e){if(!e.some(e=>e.creneau))return[{titre:null,lignes:e}];let t=e.filter(e=>e.creneau).sort((e,t)=>e.creneau.ordre-t.creneau.ordre),i=[];for(let e of t){let t=i.find(t=>t.titre===e.creneau.titre);t?t.lignes.push(e):i.push({titre:e.creneau.titre,lignes:[e]})}let n=e.filter(e=>!e.creneau);return n.length&&i.push({titre:"Horaire à préciser",lignes:n}),i},"totalAPartirDe",0,function(e,t){return c(e,t).some(e=>!0===e.estimation||!0===e.surDevis)},"totalDevis",0,function(e,t){return c(e,t).reduce((e,t)=>e+(t.prixHt??0),0)}])},832440,71128,e=>{"use strict";var t=e.i(534622),i=e.i(562810),n=e.i(380681);function l(e){return!e.is_discount&&(e.categorie?"forfait"===e.categorie:!e.anim&&/^\s*forfait\b/i.test(e.label??""))}function a(e){return e.is_discount?"remises":l(e)?"forfaits":!e.is_discount&&(e.categorie?"lieu"===e.categorie||"restauration"===e.categorie||"hebergement"===e.categorie:"string"==typeof e.id&&e.id.startsWith("lieu-"))?"lieux":e.is_discount||"option"!==e.categorie?"animations":"options"}let r=["forfaits","lieux","animations","options","remises"],u=e=>{let t=(Array.isArray(e)?e:[]).map(e=>String(e??"").trim()).filter(Boolean);return t.length?t.join(", "):null};function o(e){if(e.is_discount)return{inclus:[],nonInclus:[]};let t=e=>(Array.isArray(e)?e:[]).map(e=>String(e??"").trim()).filter(Boolean);return e.anim?{inclus:t(e.anim.inclus),nonInclus:t(e.anim.non_inclus)}:{inclus:t(e.inclus),nonInclus:t(e.non_inclus)}}e.s(["ORDRE_SECTIONS",0,r,"TITRES_SECTIONS",0,{forfaits:"Accompagnement",lieux:"Lieu",animations:"Animations",options:"Options",remises:"Remises"},"estLigneForfait",0,l,"inclusCompact",0,function(e){let{inclus:t,nonInclus:i}=o(e);return{inclus:u(t),nonInclus:u(i)}},"inclusDeLigne",0,o,"ordonnerAnimationsPuisForfaits",0,function(e){return r.flatMap(t=>e.filter(e=>a(e)===t))},"sectionDeLigne",0,a],71128);let s=[{cle:"lieu",titre:"Lieu · devis reçu (repris dans la proposition)"},{cle:"animations",titre:"Animations"},{cle:"inclus",titre:"Page « Inclus »"},{cle:"non_inclus",titre:"Page « Non inclus » et options"},{cle:"forfait",titre:"Forfait d'accompagnement"},{cle:"frais",titre:"Frais et lignes libres"}],c={autonomie:"Autonomie",copilote:"Co-pilote",allinclusive:"All-inclusive"},p=e=>"autonomie"===e||"copilote"===e||"allinclusive"===e,m=e=>{let t="number"==typeof e?e:"string"==typeof e&&e.trim()?Number(e):NaN;return Number.isFinite(t)?t:null},f=e=>"string"==typeof e&&e.trim()?e.trim():null,d=e=>Math.round(100*e)/100,h=e=>
1`${Math.round(e).toLocaleString("fr-FR")} â¬`,g=["animation","forfait","option","lieu","restauration","hebergement"],v={espaces:"lieu",restauration:"restauration",hebergement:"hebergement",complementaires:"lieu"},b=e=>"restauration"===e||"hebergement"===e?10:20,y=e=>"animation"===e||"option"===e||"forfait"===e,x=[25,50,100,150,200,500,1e3];function M(e,t){if(!Array.isArray(e)||!t||t<=0)return null;let i=x.findIndex(e=>t<=e),n=e[-1===i?7:i],l=m(n?.matinee),a=m(n?.aprem);return null==l||null==a?null:l+a}function k(e){return n.DETAIL_PRESTATIONS.map(t=>{let i="autonomie"===e?t.autonomie:"copilote"===e?t.copilote:t.allInclusive,n="autonomie"===e?t.autonomieNote:"copilote"===e?t.copiloteNote:t.allInclusiveNote;return{label:t.label,valeur:i,note:n??null,optionPrix:t.optionPrix??null,optionLabel:t.optionLabel??null}})}function $(e){let t=[],i=[];for(let n of k(e))"oui"===n.valeur?t.push(n.label):"partiel"===n.valeur?t.push(`${n.label} (en partie${n.note?` : ${n.note}`:""})`):"option"===n.valeur?i.push(`Option : ${n.optionLabel??n.label}`):i.push(n.label);return{inclus:t,nonInclus:i}}function q(e){let t;return $((t=(e??"").toLowerCase(),(/all[\s-]?inclusive/.test(t)?"allinclusive":/co[\s-]?pilote/.test(t)?"copilote":/autonomie/.test(t)?"autonomie":null)??"copilote"))}let H=e=>(e??"").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim().toLowerCase(),P=new Set(n.DETAIL_PRESTATIONS.map(e=>H(e.label))),D=/^(restaurant|brasserie|domaine|château|chateau|hôtel|hotel|manoir|abbaye|villa|moulin|ferme|péniche|peniche)\s+(?:(?:de|du|des)\s+|d['â]\s*)?/i;function _(e){let t=e.trim().replace(D,"").trim();return t?t.charAt(0).toUpperCase()+t.slice(1):e.trim()}function j(e){let n=`lieu:${e.venueId}`;if(!e.devis&&null==e.prixPose)return[{cle:`${n}:sans-devis`,groupe:"lieu",libelle:e.nom,detail:"Aucun devis reçu repris dans la proposition",categorie:"lieu",quantite:1,puHt:0,tva:20,remisePct:null,surDevis:!0,cocheeParDefaut:!1,avertissement:"Pas de devis du lieu : le prix est à saisir dans lâaperçu."}];let l=e.devis?.estimation===!0,a=l?"Approche budgétaire â pas un prix ferme, à confirmer par le devis du lieu.":null,r=e.devis?(0,t.etudeModeleLieu)(e.devis):null,u=e.devis?.tauxTva??null,o=[],s=[...new Set([...(e.devis?.options??[]).map(e=>f(e.libelle)),...(e.devis?.blocs??[]).flatMap(e=>(e.lignes??[]).filter(e=>e.option).map(e=>f(e.libelle)))].filter(e=>!!e))],c=e=>e&&s.length?{nonInclus:s}:{},p=new Map;for(let e of r?.rubriques??[])for(let t of e.lignes){if(t.option)continue;let e=H(t.libelle);p.has(e)||p.set(e,new Set),p.get(e).add(t.tva??u)}let m=(e,t)=>
1(p.get(H(e))?.size??0)>1?` â part TVA ${String(t).replace(".",",")} %`:"",d=e=>`${e.toLocaleString("fr-FR",{minimumFractionDigits:2,maximumFractionDigits:2})} â¬`;if((0,i.margeActive)(e.marge)||null!=e.prixPose){let t=e.prixPose??r?.totalHt??null,s=(0,i.prixClientLieu)(t,e.marge),p=(r?.rubriques??[]).flatMap(e=>e.lignes.filter(e=>!e.option).map(e=>(0,i.sansMontants)(e.libelle))).filter(e=>!!e);o.push({cle:`${n}:global`,groupe:"lieu",libelle:p.length?`${_(e.nom)} : ${p.join(", ")}`:_(e.nom),detail:(0,i.margeActive)(e.marge)?"Prix client (coût du lieu + marge) â détail masqué":"Prix posé dans la proposition",categorie:"lieu",quantite:1,puHt:s??0,tva:u??20,remisePct:null,surDevis:null==s,cocheeParDefaut:null!=s&&!l,avertissement:a??(null==u?"TVA non lue sur le devis du lieu â à vérifier.":null),...c(!0)})}else if(r){let t=0;for(let s of r.rubriques){let r=v[s.cle];for(let p of s.lignes){t+=1;let h=p.tva??u,g=h??b(r),v=null==h?"TVA non lue sur le devis du lieu â à vérifier.":null;if(p.option){let l=(0,i.prixOptionMarge)(p.pu??p.totalHt,e.marge);o.push({cle:`${n}:option:${t}`,groupe:"non_inclus",libelle:`${e.nom} \xb7 ${p.libelle}`,detail:`Option du lieu \xb7 ${s.titre}`,categorie:r,quantite:p.quantite&&p.quantite>0?p.quantite:1,puHt:l??0,tva:g,remisePct:null,surDevis:null==l,cocheeParDefaut:!1,avertissement:v});continue}let y=null!=p.pu&&null!=p.quantite&&p.quantite>0&&(null==p.totalHt||.5>=Math.abs(p.pu*p.quantite-p.totalHt))?{quantite:p.quantite,pu:p.pu}:null!=p.totalHt?{quantite:1,pu:p.totalHt}:null!=p.pu?{quantite:p.quantite&&p.quantite>0?p.quantite:1,pu:p.pu}:null,x=null;y&&null!=p.totalHt&&1!==y.quantite&&Math.abs(y.quantite*y.pu-p.totalHt)>.005&&(x=`${y.quantite}${p.unite?` ${p.unite}`:""} \xd7 ${d(y.pu)} HT`,y={quantite:1,pu:p.totalHt});let M=[s.titre,x,f(p.description)].filter(Boolean).join(" · ")||null,k=!o.some(e=>"lieu"===e.groupe);o.push({cle:`${n}:${t}`,groupe:"lieu",libelle:`${_(e.nom)} â ${p.libelle}${m(p.libelle,g)}`,detail:[s.titre,y?null:"compris dans la formule",p.unite&&y&&1!==y.quantite?`${y.quantite} ${p.unite}`:null].filter(Boolean).join(" · "),categorie:r,quantite:y?.quantite??1,puHt:y?.pu??0,tva:g,remisePct:null,surDevis:!1,cocheeParDefaut:!l,avertissement:a??v,...M?{description:M}:{},...c(k)})}}if(r.remise&&!r.remiseDejaDeduite&&o.push({cle:`${n}:remise`,groupe:"lieu",libelle:`${e.nom} \xb7 Remise du lieu${r.remise.motif?` (${r.remise.motif})`:""}`,detail:"Remise consentie par le lieu, portée sur son devis",categorie:"lieu",quantite:1,puHt:-Math.abs(r.remise.montant),tva:u??20,remisePct:null,surDevis:!1,cocheeParDefaut:!l,avertissement:null}),Math.abs(r.ecart)>=1&&o.length>0){let e=o.findIndex(e=>"lieu"===e.groupe);e>=0&&(o[e]={...o[e],avertissement:`Les lignes du devis ne retombent pas sur son total (\xe9cart ${h(r.ecart)}).`})}}return o}function A(e){let t,i=e.nbJours&&e.nbJours>0?e.nbJours:1,n=[{cle:`forfait:${e.cle}`,groupe:"forfait",libelle:`Forfait d'accompagnement ${e.nom}`,detail:null==e.prixJour?"Sur devis â tarif non trouvé pour cet effectif":`${i} jour${i>1?"s":""} \xd7 ${h(e.prixJour)}`,categorie:"forfait",quantite:i,puHt:e.prixJour??0,tva:20,remisePct:null,surDevis:null==e.prixJour,cocheeParDefaut:null!=e.prixJour,avertissement:null,...{...(t=$(e.cle)).inclus.length?{inclus:t.inclus}:{},...t.nonInclus.length?{nonInclus:t.nonInclus}:{}}}];return k(e.cle).forEach((t,i)=>{if("oui"===t.valeur||"partiel"===t.valeur)n.push({cle:`forfait:${e.cle}:inclus:${i}`,groupe:"inclus",libelle:t.label,detail:"partiel"===t.valeur?`Inclus en partie${t.note?` \xb7 ${t.note}`:""}`:`Inclus dans le forfait ${e.nom}`,categorie:"forfait",quantite:1,puHt:0,tva:20,remisePct:null,surDevis:!1,cocheeParDefaut:!1,avertissement:null});else{let l="option"===t.valeur;n.push({cle:`forfait:${e.cle}:${l?"option":"non"}:${i}`,groupe:"non_inclus",libelle:l?`Option : ${t.optionLabel??t.label}`:t.label,detail:l?t.optionPrix??"Option du forfait":t.note??`Non inclus dans le forfait ${e.nom}`,categorie:"option",quantite:1,puHt:0,tva:20,remisePct:null,surDevis:!0,cocheeParDefaut:!1,avertissement:null})}}),n}let I=e=>
1d(e.quantite*e.puHt*(1-(e.remisePct??0)/100));e.s(["NOMS_FORFAITS",0,c,"avecInclusForfait",0,function(e){if(e.anim||!l(e)||(e.inclus?.length??0)>0||(e.non_inclus?.length??0)>0)return e;let t=q(e.label);return{...e,inclus:t.inclus,non_inclus:t.nonInclus}},"cochesParDefaut",0,e=>new Set(e.flatMap(e=>e.lignes.filter(e=>e.cocheeParDefaut).map(e=>e.cle))),"estCleForfait",0,p,"groupeSimple",0,function(e,t,i){return 0===i.length?[]:[{cle:e,titre:t,lignes:i.map((t,i)=>{let n=!0===t.surDevis;return{cle:`${e}:${i}`,groupe:e,libelle:t.label,detail:n?"Sur devis â aucun tarif calculable":t.quantity>1?`qt\xe9 ${t.quantity}`:null,categorie:"animation",quantite:t.quantity>0?t.quantity:1,puHt:n?0:t.unit_price_ht,tva:t.tva_rate||20,remisePct:null,surDevis:n,cocheeParDefaut:!n,avertissement:null}})}]},"lieuxDeLaProposition",0,function(e){return[...new Set([...e.venueIds,...e.devisNommes.map(e=>e.venueId),...Object.keys(e.figes??{})])].filter(Boolean).map(t=>{let n=e.figes?.[t]??null,l=e.devisNommes.find(e=>e.venueId===t)?.devis??null,a=e.marges?.[t],r=m(e.prixPoses?.[t]);return{venueId:t,nom:e.noms[t]??"Lieu",devis:n??l,origine:n?"fige":l?"nomme":null,marge:(0,i.margeActive)(a)?a:null,prixPose:null!=r&&r>=0?r:null}})},"ligneForfaitDuPackage",0,function(e,t){let i=e?.forfait;if(!p(i))return{ligne:null,prixInconnu:!1};let n=e?.chiffres_figes??null,l=n?.forfaits?.find(e=>e.nom===c[i])?.prixJour??M((t&&"object"==typeof t?t:null)?.[i],m(e?.effectif));if(null==l)return{ligne:null,prixInconnu:!0};let[a]=A({cle:i,nom:c[i],prixJour:l,nbJours:m(e?.nb_jours)});return{ligne:{id:`forfait-${i}`,label:a.libelle,quantity:a.quantite,unit_price_ht:a.puHt,tva_rate:a.tva,categorie:"forfait",...a.inclus?.length?{inclus:a.inclus}:{},...a.nonInclus?.length?{non_inclus:a.nonInclus}:{}},prixInconnu:!1}},"lignesAReprendre",0,function(e){let t=[...e.lieux.flatMap(j),...function(e,t){if(!Array.isArray(e))return[];let i=[];return e.forEach((e,n)=>{let l;if(!e||!0===e.is_discount)return;let a=f(e.anim?.titre)??f(e.designation)??f(e.label);if(!a)return;let r=(l=e.categorie,g.includes(l)?l:null),u=!!e.anim&&"object"==typeof e.anim,o=r??(u?"animation":"option"),s="forfait"===o?"forfait":"lieu"===o||"restauration"===o||"hebergement"===o?"lieu":u||"animation"===o||"option"===o&&f(e.produit_id)?"animations":"frais",c=m(e.unit_price_ht),p=!0===e.sur_devis||!0===e.surDevis||null==c||c<=0,d=(m(e.quantity)??0)>0?m(e.quantity):1,h=m(e.remise_pct),v=y(o)?h??t:null,x=`ligne:${f(e.id)??n}`;i.push({cle:x,groupe:s,libelle:a,detail:[1!==d?`qt\xe9 ${d}`:null,"option"===o?"Option":null,p?"Sur devis â aucun tarif calculable":null].filter(Boolean).join(" · ")||null,categorie:o,quantite:d,puHt:p?0:c,tva:m(e.tva_rate)??b(o),remisePct:null!=v&&v>0?Math.min(v,100):null,surDevis:p,cocheeParDefaut:!p&&"option"!==o,avertissement:null,...u?{anim:e.anim}:{},...f(e.produit_id)?{produitId:f(e.produit_id)}:{}}),(Array.isArray(e.anim?.non_inclus)?e.anim.non_inclus.map(f).filter(e=>!!e):[]).forEach((e,t)=>i.push({cle:`${x}:non-inclus:${t}`,groupe:"non_inclus",libelle:e,detail:`Non inclus \xb7 ${a}`,categorie:"option",quantite:1,puHt:0,tva:20,remisePct:null,surDevis:!0,cocheeParDefaut:!1,avertissement:null}))}),i}(e.lignes,e.remisePct),...e.forfait?A(e.forfait):[]];return s.map(e=>({cle:e.cle,titre:e.titre,lignes:t.filter(t=>t.groupe===e.cle)})).filter(e=>e.lignes.length>0)},"montantLigne",0,I,"prixForfaitJour",0,M,"regrouperPrestationsForfait",0,function(e){let t=e=>l(e)&&!e.anim&&0===(Number(e.unit_price_ht)||0)&&P.has(H(e.label)),i=e.filter(t);if(0===i.length)return[...e];let n=e.find(e=>l(e)&&!t(e)),a=e=>{let t=q(e.label);return{...e,inclus:e.inclus?.length?e.inclus:t.inclus,non_inclus:e.non_inclus?.length?e.non_inclus:t.nonInclus}};if(n)return e.filter(e=>!t(e)).map(e=>e===n?a(e):e);let r=i[0];return e.flatMap(e=>e===r?[a({...e,id:e.id??"forfait-regroupe",label:"Forfait dâaccompagnement",inclus:void 0,non_inclus:void 0})]:t(e)?[]:[e])},"totalSelection",0,function(e,t){return d(e.flatMap(e=>e.lignes).filter(e=>t.has(e.cle)).reduce((e,t)=>e+I(t),0))},"versLignesComposeur",0,function(e,t,i){return e.flatMap(e=>e.lignes).filter(e=>t.has(e.cle)).map((e,t)=>({id:`${i}-${t}`,label:e.libelle,categorie:e.categorie,quantity:e.quantite,unit_price_ht:e.puHt,tva_rate:e.tva,...null!=e.remisePct&&e.remisePct>0&&y(e.categorie)?{remise_pct:e.remisePct}:{},...e.anim?{anim:{...e.anim,titre:f(e.anim.titre)??e.libelle}}:{},...e.produitId?{produit_id:e.produitId}:{},...!e.anim&&e.inclus?.length?{inclus:e.inclus}:{},...!e.anim&&e.nonInclus?.length?{non_inclus:e.nonInclus}:{},...!e.anim&&e.description?{description:e.description}:{},...!e.anim&&e.rubrique?{rubrique:e.rubrique}:{}}))}],832440)}]);
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.