divers fixes : bouton sauvegarde

This commit is contained in:
fabien committed 2026-09-05 15:18:10 +02:00
1 parent f1b176ae4a
commit cf10b9073b
96 files changed
+402 -143

No files matched your search

@@ -0,0 +1,6 @@
import{$ as e,A as t,B as n,D as r,E as i,G as a,I as o,J as s,K as c,L as l,M as u,N as d,O as f,P as p,Q as m,S as h,T as g,V as _,W as v,X as y,_ as b,a as x,at as ee,b as S,c as te,d as C,dt as w,f as ne,h as re,it as ie,j as ae,k as oe,l as se,lt as ce,m as le,n as ue,o as de,q as T,r as fe,u as pe,w as E,x as me}from"./39JK5HWF.js";import"./D3up1JC1.js";import"./xihTtKlq.js";var he=Math.min,D=Math.max,ge=Math.round,O=Math.floor,k=e=>({x:e,y:e}),A={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function _e(e,t,n){return D(e,he(t,n))}function j(e,t){return typeof e==`function`?e(t):e}function M(e){return e.split(`-`)[0]}function N(e){return e.split(`-`)[1]}function P(e){return e===`x`?`y`:`x`}function ve(e){return e===`y`?`height`:`width`}function F(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function I(e){return P(F(e))}function ye(e,t,n){n===void 0&&(n=!1);let r=N(e),i=I(e),a=ve(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ee(o)),[o,Ee(o)]}function be(e){let t=Ee(e);return[L(e),t,L(t)]}function L(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var xe=[`left`,`right`],Se=[`right`,`left`],R=[`top`,`bottom`],Ce=[`bottom`,`top`];function we(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Se:xe:t?xe:Se;case`left`:case`right`:return t?R:Ce;default:return[]}}function Te(e,t,n,r){let i=N(e),a=we(M(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(L)))),a}function Ee(e){let t=M(e);return A[t]+e.slice(t.length)}function De(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Oe(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:De(e)}function ke(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ae(e,t,n){let{reference:r,floating:i}=e,a=F(t),o=I(t),s=ve(o),c=M(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=N(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function je(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=j(t,e),p=Oe(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ke(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ke(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Me=50,Ne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:je},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ae(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Me&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ae(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Pe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=j(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=M(r),_=F(o),v=M(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Ee(o)]:be(o)),x=p!==`none`;!d&&x&&b.push(...Te(o,m,p,y));let ee=[o,...b],S=await s.detectOverflow(t,h),te=[],C=i.flip?.overflows||[];if(l&&te.push(S[g]),u){let e=ye(r,a,y);te.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:r,overflows:te}],!te.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=ee[e];if(t&&(u!==`alignment`||_===F(t)||C.every(e=>F(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:C},reLine truncated
3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0
1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502
0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0
0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"></path></svg>`);function Mt(e){var t=$();i(e,t)}var Nt=oe(`<svg width="100%" height="100%" viewBox="-2 -2 50 50" focusable="false" aria-hidden="true" role="presentation"><path fill="currentColor" d="M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124
l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"></path></svg>`);function Pt(e){var t=Nt();i(e,t)}var Ft=oe(`<svg class="loading" viewBox="25 25 50 50"><circle class="circle_path" cx="50" cy="50" r="20" fill="none" stroke="currentColor" stroke-width="5" stroke-miterlimit="10"></circle></svg>`);function It(e){var t=Ft();i(e,t)}var Lt=f(`<div class="list-item" tabindex="-1" role="none"><div><!></div></div>`),Rt=f(`<div class="empty">No options</div>`),zt=f(`<div role="none"><!> <!> <!></div>`),Bt=f(`<span id="aria-selection"> </span> <span id="aria-context"> </span>`,1),Vt=f(`<div class="multi-item-clear"><!></div>`),Ht=f(`<div role="none"><span class="multi-item-text"><!></span> <!></div>`),Ut=f(`<div><!></div>`),Wt=f(`<div class="icon loading" aria-hidden="true"><!></div>`),Gt=f(`<button type="button" class="icon clear-select"><!></button>`),Kt=f(`<div class="icon chevron" aria-hidden="true"><!></div>`),qt=f(`<input type="hidden"/>`),Jt=f(`<select class="required" required="" tabindex="-1" aria-hidden="true"></select>`),Yt=f(`<div role="none"><!> <span aria-live="polite" aria-atomic="false" aria-relevant="additions text" class="a11y-text"><!></span> <div class="prepend"><!></div> <div class="value-container"><!> <input/></div> <div class="indicators"><!> <!> <!></div> <!> <!></div>`);function Xt(o,f){ee(f,!0);let ae,oe=x(f,`valueMode`,3,`item`),ce=x(f,`filter`,3,At),he=x(f,`getItems`,3,jt),D=x(f,`id`,3,null),ge=x(f,`name`,3,null),O=x(f,`container`,15,null),k=x(f,`input`,15,null),A=x(f,`multiple`,3,!1),_e=x(f,`multiFullItemClearable`,3,!1),j=x(f,`disabled`,3,!1),M=x(f,`focused`,15,!1),N=x(f,`value`,15),P=x(f,`filterText`,15,``),ve=x(f,`placeholder`,3,`Please select`),F=x(f,`placeholderAlwaysShow`,3,!1),I=x(f,`items`,31,()=>s([])),ye=x(f,`label`,3,`label`),be=x(f,`itemFilter`,3,(e,t,n)=>`${e}`.toLowerCase().includes(t.toLowerCase())),L=x(f,`groupBy`,3,void 0),xe=x(f,`groupFilter`,3,e=>e),Se=x(f,`groupHeaderSelectable`,3,!1),R=x(f,`itemId`,3,`value`),Ce=x(f,`loadOptions`,3,void 0),we=x(f,`containerStyles`,3,``),Te=x(f,`hasError`,3,!1),Ee=x(f,`filterSelectedItems`,3,!0),De=x(f,`required`,3,!1),Oe=x(f,`closeListOnChange`,3,!0),ke=x(f,`clearFilterTextOnBlur`,3,!0),Ae=x(f,`createGroupHeaderItem`,3,(e,t)=>({value:e,[ye()]:e})),je=x(f,`searchable`,3,!0),Me=x(f,`inputStyles`,3,``),Ne=x(f,`clearable`,3,!0),Pe=x(f,`loading`,15,!1),z=x(f,`listOpen`,15,!1),Fe=x(f,`debounce`,3,(e,t=1)=>{clearTimeout(ae),ae=setTimeout(e,t)}),Ie=x(f,`debounceWait`,3,300),Le=x(f,`hideEmptyState`,3,!1),Re=x(f,`inputAttributes`,19,()=>({})),ze=x(f,`listAutoWidth`,3,!0),B=x(f,`showChevron`,3,!1),V=x(f,`listOffset`,3,5),H=x(f,`hoverItemIndex`,15,0),U=x(f,`floatingConfig`,19,()=>({})),W=x(f,`class`,3,``),Be=x(f,`ariaValues`,3,e=>`Option ${e}, selected.`),Ve=x(f,`ariaListOpen`,3,(e,t)=>`You are currently focused on option ${e}. There are ${t} results available.`),He=x(f,`ariaFocused`,3,()=>`Select is focused, type to refine list, press down to open the menu.`);function Ue(){return p(Q)}let G=m(void 0),We,K,Ge,Ke,q=m(null),qe={},Je=e(()=>{if(Re()||!je()){let e=Object.assign({autocapitalize:`none`,autocomplete:`off`,autocorrect:`off`,spellcheck:!1,tabindex:0,type:`text`,"aria-autocomplete":`list`},Re());D()&&(e.id=D()),je()||(e.readonly=!0),JSON.stringify(e)!==JSON.stringify(qe)&&(qe=e)}return qe});function J(e){return e==null?e:typeof e==`object`?e[R()]:e}function Ye(e){return Array.isArray(e)&&e.length>0&&typeof e[0]!=`object`}let Y=e(()=>oe()===`id`||Ye(I()));function Xe(e){return p(Y)?J(e):e}function X(e){if(e==null)return e;if(typeof e==`object`)return e[ye()];let t=I()?.find(t=>t[R()]===e);return t?t[ye()]:e}function Ze(){return N()==null?null:p(Y)?A()&&Array.isArray(N())?JSON.stringify(N()):`${N()}`:JSON.stringify(N())}function Qe(e){return e.map((e,t)=>({index:t,value:e,label:`${e}`}))}function $e(e){if(!L())return e;let t=[],n={};e.forEach(e=>{let r=L()(e)??``;t.includes(r)||(t.push(r),n[r]=[],r&&n[r].push(Object.assign(Ae()(r,e),{id:r,groupHeader:!0,selectable:Se()}))),n[r].push(Object.assign({groupItem:!!r},e))});let r=[];return xe()(t).forEach(e=>{n[e]&&r.push(...n[e])}),r}function et(){if(A()){JSON.stringify(N())!==JSON.stringify(We)&&(!N()||gt())&&f.oninput?.(N());return}N()?(!We||JSON.stringify(J(N()))!==JSON.stringify(J(We)))&&f.oninput?.(N()):We&&f.oninput?.(N())}function tt(){Ge=!0,N()&&(Array.isArray(N())||N([N()]))}function nt(){Ge=!1,N()&&N(void 0)}function rt(){Z(p(Q).findIndex(e=>e[R()]===J(N())),!0)}function Z(e=0,t){let n=e<0?0:e;H()!==n&&H(n),!t&&L()&&p(Q)[H()]&&!p(Q)[H()].selectable&&en(1)}function it(){!Ce()&&P().length===0||(Ce()?Fe()(async function(){Pe(!0);let e=await he()({onerror:f.onerror,onloaded:f.onloaded,loadOptions:Ce(),convertStringItemsToObjects:Qe,filterText:P()});e?(Pe(e.loading),z(z()?e.listOpen:P().length>0),M(z()&&e.focused),I(L()?$e(e.filteredItems):e.filteredItems)):(Pe(!1),M(!0),z(!0))},Ie()):(z()||z(!0),A()&&y(G,void 0)))}let at=e(()=>A()?Array.isArray(N())&&N().length>0:!!N()),ot=e(()=>pLine truncated