@dubusoft/toodo-linux-arm64 1.11.1-dev.191 → 1.11.1-dev.193

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.
package/web/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
9
9
  <meta name="theme-color" content="#0a0a0a" media="(prefers-color-scheme: dark)" />
10
10
  <title>Toodo</title>
11
- <script type="module" crossorigin src="/assets/index-BhedIiZp.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-Dyu1QOHD.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-C3cWAN_r.js">
14
14
  <link rel="modulepreload" crossorigin href="/assets/focusOutline.stylex-ZXdUNMFw.js">
@@ -23,18 +23,18 @@
23
23
  <link rel="modulepreload" crossorigin href="/assets/focusReturn-DgQoALUE.js">
24
24
  <link rel="modulepreload" crossorigin href="/assets/padding.stylex-DG4aFJ6m.js">
25
25
  <link rel="modulepreload" crossorigin href="/assets/disabledInteraction-u9yjM5Jo.js">
26
- <link rel="modulepreload" crossorigin href="/assets/Item-CVXI6XsR.js">
26
+ <link rel="modulepreload" crossorigin href="/assets/Item-BoYwvmT7.js">
27
27
  <link rel="modulepreload" crossorigin href="/assets/session-sBDFnC3r.js">
28
28
  <link rel="modulepreload" crossorigin href="/assets/button-HISRpujD.js">
29
- <link rel="modulepreload" crossorigin href="/assets/Selector-DoBdC70u.js">
29
+ <link rel="modulepreload" crossorigin href="/assets/Selector-DLgfOtoe.js">
30
30
  <link rel="modulepreload" crossorigin href="/assets/event-CSYkpd32.js">
31
- <link rel="modulepreload" crossorigin href="/assets/queries-Bcvk9W54.js">
31
+ <link rel="modulepreload" crossorigin href="/assets/queries-BIWwhSPP.js">
32
32
  <link rel="modulepreload" crossorigin href="/assets/createLucideIcon-DtNDbJdC.js">
33
33
  <link rel="modulepreload" crossorigin href="/assets/resolveSnapPoint-CBS37OcT.js">
34
- <link rel="stylesheet" crossorigin href="/assets/index-B09gU1NJ.css">
34
+ <link rel="stylesheet" crossorigin href="/assets/index-CP08_gh8.css">
35
35
  <link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials">
36
36
  <link rel="apple-touch-icon" href="/pwa/apple-touch-icon.png">
37
- <meta name="toodo-build" content="51e505ae30897946" />
37
+ <meta name="toodo-build" content="83867b3c8cb08b00" />
38
38
  </head>
39
39
 
40
40
  <body>
package/web/sw.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Generated by vite-pwa.ts for this build.
2
- const CACHE = "toodo-shell-f2643badd939755d";
3
- const SHELL = ["/","/assets/Item-CVXI6XsR.js","/assets/LayoutChangeSnapshot-Bqg4192Z.js","/assets/MenuBottomSheet-CeALVyiC.js","/assets/MenuBottomSheetActionList-DFd0KkKB.js","/assets/Selector-DoBdC70u.js","/assets/SwipeActionsLayer-B7GU5Iq8.js","/assets/Tooltip-D2N09Hzl.js","/assets/button-HISRpujD.js","/assets/createLucideIcon-DtNDbJdC.js","/assets/details-sheet-DZm5HiKY.js","/assets/disabledInteraction-u9yjM5Jo.js","/assets/event-CSYkpd32.js","/assets/focusOutline.stylex-ZXdUNMFw.js","/assets/focusReturn-DgQoALUE.js","/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2","/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2","/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2","/assets/geist-latin-wght-normal-BgDaEnEv.woff2","/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2","/assets/index-B09gU1NJ.css","/assets/index-BhedIiZp.js","/assets/inputHold-CZa_Ny55.js","/assets/jsx-runtime-C3cWAN_r.js","/assets/markdown-DMV9aINp.js","/assets/mergeProps-Poh9JbFs.js","/assets/offline-screen-D2oNUAkw.js","/assets/opener-DWhHPoCL.js","/assets/padding.stylex-DG4aFJ6m.js","/assets/primaryClick-88oQu3_u.js","/assets/queries-Bcvk9W54.js","/assets/reducedMotion-DCkUC6gt.js","/assets/resolveSnapPoint-CBS37OcT.js","/assets/review-BlpOrNhk.js","/assets/rolldown-runtime-XKyaHtl9.js","/assets/server-access-yl-6avZn.js","/assets/session-sBDFnC3r.js","/assets/task-details-DvCtIgd-.js","/assets/task-graph-DLioOiRN.css","/assets/task-graph-yrbG5llV.js","/assets/useDevWarning-DtAYt56R.js","/assets/useLayerDismissal-D77qBJbE.js","/assets/useLinkComponent-DLC334Kf.js","/assets/useTooltip-Dd70k22y.js","/favicon.svg","/manifest.webmanifest","/pwa/apple-touch-icon.png","/pwa/icon-192.png","/pwa/icon-512.png","/pwa/icon-maskable-192.png","/pwa/icon-maskable-512.png"];
2
+ const CACHE = "toodo-shell-a52a71ce2739de95";
3
+ const SHELL = ["/","/assets/Item-BoYwvmT7.js","/assets/LayoutChangeSnapshot-Bqg4192Z.js","/assets/MenuBottomSheet-BJroUUHj.js","/assets/MenuBottomSheetActionList-CBSD5g2j.js","/assets/Selector-DLgfOtoe.js","/assets/SwipeActionsLayer-Ckqx5mxc.js","/assets/Tooltip-D2N09Hzl.js","/assets/button-HISRpujD.js","/assets/createLucideIcon-DtNDbJdC.js","/assets/details-sheet-xeOYGWN1.js","/assets/disabledInteraction-u9yjM5Jo.js","/assets/event-CSYkpd32.js","/assets/focusOutline.stylex-ZXdUNMFw.js","/assets/focusReturn-DgQoALUE.js","/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2","/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2","/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2","/assets/geist-latin-wght-normal-BgDaEnEv.woff2","/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2","/assets/index-CP08_gh8.css","/assets/index-Dyu1QOHD.js","/assets/inputHold-CZa_Ny55.js","/assets/jsx-runtime-C3cWAN_r.js","/assets/markdown-CF5mtzHh.js","/assets/mergeProps-Poh9JbFs.js","/assets/offline-screen-BFZbD4uz.js","/assets/opener-DWhHPoCL.js","/assets/padding.stylex-DG4aFJ6m.js","/assets/primaryClick-88oQu3_u.js","/assets/queries-BIWwhSPP.js","/assets/reducedMotion-DCkUC6gt.js","/assets/resolveSnapPoint-CBS37OcT.js","/assets/review-CvfkC7xA.js","/assets/rolldown-runtime-XKyaHtl9.js","/assets/server-access-BHLPABjm.js","/assets/session-sBDFnC3r.js","/assets/task-details-BOmp_J1t.js","/assets/task-graph-DLioOiRN.css","/assets/task-graph-DmsWWo8o.js","/assets/useDevWarning-DtAYt56R.js","/assets/useLayerDismissal-D77qBJbE.js","/assets/useLinkComponent-DLC334Kf.js","/assets/useTooltip-Dd70k22y.js","/favicon.svg","/manifest.webmanifest","/pwa/apple-touch-icon.png","/pwa/icon-192.png","/pwa/icon-512.png","/pwa/icon-maskable-192.png","/pwa/icon-maskable-512.png"];
4
4
  const SERVER_PATHS = ["/api","/mcp"];
5
5
  const NOTIFICATION_ICON = "/pwa/icon-192.png";
6
6
  // The message that asks an open page to show a task; see listenForOpenTask in src/web/push.ts.
package/web/version.json CHANGED
@@ -1 +1 @@
1
- {"build":"51e505ae30897946"}
1
+ {"build":"83867b3c8cb08b00"}
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-C3cWAN_r.js";import{_ as r,c as i,h as a,l as o,n as s,o as c,p as l,r as u,s as d,t as f,x as p}from"./Item-CVXI6XsR.js";import{N as ee,P as te,U as m,W as h,i as g}from"./useLinkComponent-DLC334Kf.js";import{Ft as _,in as v,jt as y,rn as ne,ut as b,wt as re}from"./focusOutline.stylex-ZXdUNMFw.js";import{$ as x,Z as S,j as C}from"./useLayerDismissal-D77qBJbE.js";import{t as ie}from"./mergeProps-Poh9JbFs.js";import{a as w,i as ae,r as T,s as E,t as D}from"./LayoutChangeSnapshot-Bqg4192Z.js";import{t as oe}from"./useDevWarning-DtAYt56R.js";import{Ft as se,K as O,q as k}from"./index-BhedIiZp.js";var A=e(t(),1),j=n(),M=x(`ListContext`,1,null);M.displayName=`ListContext`;var N=x(`ListStaticContext`,1,null);N.displayName=`ListStaticContext`;var P=`data-astryx-item-key`;function F(e){return e==null?{}:{[P]:String(e)}}function I(e){return e.getAttribute(P)}var L=`data-astryx-leaving`;function ce(e){e.setAttribute(L,``)}function R(e){return e.hasAttribute(L)}var z=`data-astryx-travelling`,B=new WeakMap;function V(e){let t={};return B.set(e,t),e.setAttribute(z,``),()=>{B.get(e)===t&&(B.delete(e),e.removeAttribute(z))}}var le={row:{kY2c9j:`xvl8nft`,kGVxlE:`xvoib3p`,"--_travelling-surface":`x154w40m xayfdo3`,$$css:!0},raisedSwipeRow:{kY2c9j:`xvl8nft x1xytu5a x1fq76kf`,$$css:!0}},H=_(`list/list-layout-updates/reported-rows`,1);function ue(e){let t=e.parentElement;return t!=null&&(H.get(t)?.has(e)??!1)}var de=.5;function U(e,t,n){let r=0,i=e.length;for(;r<i;){let n=r+i>>1;e[n].getBoundingClientRect().bottom>t?i=n:r=n+1}let a=r;for(i=e.length;r<i;){let t=r+i>>1;e[t].getBoundingClientRect().top<n?r=t+1:i=t}let o=r-1;return a<=o?[a,o]:null}function W(e){let t=new Map;for(let n of e.children){if(!(n instanceof HTMLElement)||R(n))continue;let e=I(n);e!=null&&t.set(e,n)}return t}var G=_(`list/list-layout-updates/kept-styles`,1);function K(e){if(typeof e.getAnimations!=`function`)return;let t=[e,...e.querySelectorAll(`*`)],n=t.map(e=>e.getAttribute(`style`));for(let t of e.getAnimations({subtree:!0}))try{t.commitStyles()}catch{}let r=[];t.forEach((e,t)=>{e.style.length>0&&r.push([e,e.style.cssText]);let i=n[t];e.getAttribute(`style`)!==i&&(i==null?e.removeAttribute(`style`):e.style.cssText=i)}),G.set(e,r)}function fe(e){let t=[];for(let n of e.children)n instanceof HTMLElement&&(R(n)||I(n)!=null)&&t.push(n);return t}function q(e){ce(e),e.setAttribute(`aria-hidden`,`true`)}function J(e){if(typeof e.getAnimations==`function`)for(let t of e.getAnimations({subtree:!0}))t.cancel();for(let[t,n]of G.get(e)??[])t.style.cssText=n;G.delete(e)}function pe(e,t,n){let r=n;for(let n=t.length-1;n>=0;n--){let i=t[n];(r==null?e.lastElementChild:r.previousElementSibling)!==i&&e.insertBefore(i,r),r=i}}function Y(e){let t=e.ownerDocument.defaultView;if(t==null||typeof t.DOMMatrix!=`function`)return null;let n=t.getComputedStyle(e).transform;if(n===``||n===`none`)return null;let r=new t.DOMMatrix(n);if(!r.is2D||r.a!==1||r.b!==0||r.c!==0||r.d!==1||r.e===0&&r.f===0)return null;let i=[...e.children].filter(e=>e instanceof t.HTMLElement||e instanceof t.SVGElement);return{view:t,row:e,x:r.e,y:r.f,children:i,transforms:i.map(e=>t.getComputedStyle(e).transform)}}function me({view:e,row:t,x:n,y:r,children:i,transforms:a}){t.style.setProperty(`transform`,`none`),i.forEach((t,i)=>{let o=a[i],s=new e.DOMMatrix().translate(n,r),c=o===``||o===`none`?s:s.multiply(new e.DOMMatrix(o));t.style.setProperty(`transform`,c.toString())})}function he(e,t){let{near:n,order:r,tops:i}=e;if(n==null)return;let a=[];for(let e=n[0];e<=n[1];e++){let n=r[e],o=i.get(n),s=t.get(n);o!=null&&s!=null&&a.push({element:s,from:o,to:s.getBoundingClientRect().top})}let o=a.map(()=>!1),s=-1/0;for(let e=0;e<a.length;e++)o[e]=s>a[e].to,s=Math.max(s,a[e].to);let c=1/0;for(let e=a.length-1;e>=0;e--)o[e]||=c<a[e].to,c=Math.min(c,a[e].to);let l=a.filter((e,t)=>o[t]),u=new Set;for(let e=0;e<l.length;e++)for(let t=e+1;t<l.length;t++){let n=l[e],r=l[t];if(n.to>r.to){let e=Math.abs(n.to-n.from)>Math.abs(r.to-r.from)?n:r;Math.abs(e.to-e.from)>=de&&u.add(e.element)}}let d=[...u];d.length!==0&&queueMicrotask(()=>{for(let e of d){let t=typeof e.getAnimations==`function`?e.getAnimations().at(-1):void 0;if(t!=null){let n=V(e);t.finished.then(n,n)}}})}function ge(e,t){let n=(0,A.useRef)(null),r=(0,A.useCallback)(()=>{n.current=null;let r=e.current;if(r==null||t==null)return;let i=W(r);if(i.size===0){let e=r.lastElementChild,a=e instanceof HTMLElement?e:r,o=E(t,()=>a);o.measureBefore(),n.current={rows:i,order:[],tops:new Map,near:null,reported:new Set([a]),changes:[o],translations:[],sequence:fe(r)},H.set(r,n.current.reported);return}let a=[...i.keys()],o=[...i.values()],s=r.ownerDocument.defaultView?.innerHeight??0,c=U(o,-s,2*s),l=[],u=new Map;if(c!=null)for(let e=c[0];e<=c[1];e++){let t=Y(o[e]),{top:n}=o[e].getBoundingClientRect();u.set(a[e],n-(t?.y??0)),t!=null&&l.push(t)}let d=U(o,0,s),f=[];if(d!=null)for(let e=d[0];e<=d[1];e++)f.push(o[e]);(d==null||d[1]!==o.length-1)&&f.push(o[o.length-1]);let p=f.map(e=>{let n=E(t,()=>e);return n.measureBefore(),n});n.current={rows:i,order:a,tops:u,near:c,reported:new Set(f),changes:p,translations:l,sequence:fe(r)},H.set(r,n.current.reported)},[t,e]);return v(()=>{let r=n.current;n.current=null;let i=e.current;if(i!=null&&H.delete(i),r==null||i==null||t==null)return;let a=W(i),o=[...a.keys()];if(o.length===r.order.length&&o.every((e,t)=>e===r.order[t]))return;let s=[...a.values()],c=new Set(s),l=new Map,u=[],d=0;for(let e of r.sequence){if(c.has(e)){d+=1;continue}if(!R(e)){if(!r.reported.has(e))continue;q(e),u.push(e)}let t=s[d]??null;l.set(t,[...l.get(t)??[],e])}for(let[e,t]of l)pe(i,t,e);for(let e of u)J(e);for(let e of r.changes)e.animate();let f=[];for(let e of r.translations)u.includes(e.row)&&(me(e),f.push(e.row));f.length>0&&queueMicrotask(()=>{for(let e of f)ae(e)});for(let e of u)T(t,e,()=>e.remove())||e.remove();let p=U(s,0,i.ownerDocument.defaultView?.innerHeight??0);if(p!=null)for(let e=p[0];e<=p[1];e++){let n=s[e],i=I(n);i!=null&&!r.rows.has(i)&&w(t,n)}he(r,a)}),r}var _e=y(`list/reorder-engine`,1);function ve(e,t,n){let r=e,i=r?.[_e],a=b(t);return{session:(0,A.useMemo)(()=>i?.createSession(()=>a.current(),n)??null,[i,n,a]),options:r?.options??null}}function ye(e){v(()=>{e?.commit()})}var X={list:{kogj98:`x1ghz6dp`,kZCmMZ:`x1c1uobl`,kH6xsr:`x3ct3a4`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kOIVth:`x1lsbc85`,kXHlph:`x101abm8`,kHBbk8:`xsmms64`,$$css:!0},noInlineClip:{kXHlph:`x1plvlek`,$$css:!0},animatedIsolation:{kHBbk8:`xc8icb0`,$$css:!0},numberColumns:{k1xSpc:`x78zum5 x1tx5i3l`,kumcoG:`x16lqc3j`,k1C7PZ:`xak3so`,$$css:!0},reachesContainerPadding:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,kzqmXN:`xx6qvi6`,$$css:!0},bleedCorners:{"--_list-corner-start-start":`x916qr2 xb8h2sp`,"--_list-corner-start-end":`x1vx9r65 x1d65wlh`,"--_list-corner-end-start":`x1dt9b3t xjk82ok`,"--_list-corner-end-end":`x1q2yvai xc60oqu`,$$css:!0},withDividers:{khm7nJ:`xxs79tx`,$$css:!0},withCounter:{kt6KFK:`xif0320`,$$css:!0}},be={kt6KFK:`x1khind5`,$$css:!0},xe={counterStart:e=>[be,{"--x-counterReset":`astryx-list ${e}`==null?void 0:`astryx-list ${e}`}]};function Se({children:e,animatedLayout:t,reorderable:n,density:r=`balanced`,hasDividers:i=!1,edge:a,edgeCompensation:o,header:s,listStyle:c=`none`,start:l,xstyle:u,className:d,style:f,"data-testid":p,ref:ee,...te}){let m=(0,A.useId)(),h=(0,A.useRef)(null),{session:g,options:_}=ve(n,()=>h.current,`${m}h`),v=ge(h,t),y=(0,A.useCallback)(()=>{g?.ownsCommit()!==!0&&v()},[v,g]);ye(g);let b=S(h,ee),x=c===`decimal`,C=x?`ol`:`ul`;oe(`List`,"`edge` and the deprecated `edgeCompensation` are both set; `edge` wins. Remove `edgeCompensation`. `astryx upgrade` rewrites existing usage.",a!=null&&o!=null);let w=a??(o===`inline`?`outset`:`padded`),ae=w===`outset`||w===`bleed`,T=(0,A.use)(N),E=(0,A.use)(M),se=T!=null&&E?.staticMark!==T,O=(0,A.useMemo)(()=>({density:r,hasDividers:i,edge:w,listStyle:c,animatedLayout:t,reorder:g&&{session:g,options:_},staticMark:T}),[r,i,w,c,t,g,_,T]),k=(0,j.jsx)(C,{ref:b,...te,"data-testid":p,...s==null?null:{"aria-labelledby":m},...x&&l!=null&&l!==1?{start:l}:{},role:`list`,...w===`bleed`&&s==null?{"data-container-corner":``}:null,...ie(re(`list`,{density:r,listStyle:c}),ne(X.list,se&&X.noInlineClip,t!=null&&X.animatedIsolation,x&&X.numberColumns,i&&X.withDividers,ae&&X.reachesContainerPadding,w===`bleed`&&s==null&&X.bleedCorners,c!==`none`&&(l!=null&&l!==1?xe.counterStart(l-1):X.withCounter),g?.listStyle,u),d,f),children:e}),P=t==null?null:(0,j.jsx)(D,{value:e,onBeforeChange:y}),{reorder:F}=O,I=F&&(0,j.jsx)(F.session.Host,{reorder:F});return s==null?(0,j.jsxs)(M,{value:O,children:[P,k,I]}):(0,j.jsxs)(M,{value:O,children:[P,(0,j.jsxs)(`div`,{...w===`bleed`?{"data-container-corner":``}:null,...{0:{className:`x78zum5 xdt5ytf`},1:{className:`x78zum5 xdt5ytf x916qr2 x1vx9r65 x1dt9b3t xjk82ok x1q2yvai xc60oqu`}}[w===`bleed`|0],children:[(0,j.jsx)(`div`,{id:m,className:`x1p37lm5`,children:s}),k,I]})]})}Se.displayName=`List`;var Z={numberColumns:{k1xSpc:`x78zum5 x1tx5i3l`,kumcoG:`x4w6khx`,kBCFzs:`x1osaytk`,$$css:!0},spanNumberColumns:{kBCFzs:`x1osaytk`,$$css:!0},withCounter:{kAmcRD:`xfrknyr`,$$css:!0},edgeFlush:{"--_item-inset-inline":`x1nwg5ib`,$$css:!0},edgeOutset:{keTefX:`xch736x`,k71WvV:`x2gtn1o`,$$css:!0},edgeBleed:{kZCmMZ:`xua885n`,kwRFfy:`x1pyz5s7`,kaIpWk:`x2u8bby`,krdFHd:`x1i0qwsa`,kfmiAY:`xn58dd1`,kVL7Gh:`xmitzzi`,kT0f0o:`x1gz0w9x`,$$css:!0},bandRaised:{kDVEDD:`xx13w5u`,$$css:!0},withDivider:{kt9PQ7:`x92x3c3`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,kx8K5S:`x1t1lzn6`,kUOWJa:`x1tadims x1vz82uj`,$$css:!0}},Q={dot:{kzqmXN:`x1v4s8kt`,kZKoxP:`xols6we`,kaIpWk:`x16rqkct`,kWkggS:`x19aspcf`,$$css:!0},circle:{kzqmXN:`x1v4s8kt`,kZKoxP:`xols6we`,kaIpWk:`x16rqkct`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xqcx1ss`,kWkggS:`xjbqb8w`,$$css:!0},square:{kzqmXN:`x1v4s8kt`,kZKoxP:`xols6we`,kWkggS:`x19aspcf`,$$css:!0},number:{kSGwAc:`xoi2r2e`,k1xSpc:`x78zum5`,kjj79g:`x13a6bvl`,kmuXW:`x2lah0s`,kMwMTN:`x1tgivj0`,kGuDYH:`xjm74w1`,kLWn49:`xw6l6zx`,kcqcaj:`xss6m8b`,k7Eaqz:`x1x5mvkz`,kzqmXN:`x14atkfc`,khDVqt:`xuxw1ft`,$$css:!0},decimal:{kgeoSG:`xc2ndz5`,kkpA3r:`x1np0n6a`,$$css:!0},lowerAlpha:{kgeoSG:`x1mls8ih`,kkpA3r:`x1np0n6a`,$$css:!0},lowerRoman:{kgeoSG:`xdaf9gw`,kkpA3r:`x1np0n6a`,$$css:!0},gutterHang:{kzqmXN:`x12xnipv`,kkpA3r:`x46whw4`,kIuGQ2:`xtbmc8j`,$$css:!0}},Ce={decimal:Q.decimal,"lower-alpha":Q.lowerAlpha,"lower-roman":Q.lowerRoman},we={noRadius:{kaIpWk:`x2u8bby`,$$css:!0}};function Te(e){if(e!=null)return()=>{ue(e)&&K(e)}}function Ee({label:e,description:t,startContent:n,endContent:r,onClick:a,interactiveRef:l,href:p,target:m,rel:h,isDisabled:_=!1,isSelected:v=!1,itemKey:y,align:b,xstyle:x,className:C,style:w,ref:ae,...T}){let E=(0,A.use)(M),{swipe:D}=T,oe=(0,A.useMemo)(()=>D==null?void 0:u(D,y),[D,y]),O=(0,A.useRef)(null),k=E!=null,N=E?.reorder,P=N!=null&&y!=null&&(N.options.isReorderable?.(y)??!0),I=P&&r==null,L=T[`aria-label`],ce=T[`aria-labelledby`],R=I?b??`center`:void 0,z=N?.session.Handle,B=(0,A.useMemo)(()=>P&&z!=null&&y!=null?(0,j.jsx)(z,{label:e,itemKey:y,isDisabled:_,rowLabel:L,rowLabelledBy:ce,rowAlign:R}):null,[z,P,_,y,e,R,L,ce]),V=(a!=null||p!=null||l!=null)&&!_,H=te(V),ue=S(ae,O,H,Te),de=k&&V&&s({swipe:T.swipe,swipeActions:T.swipeActions,isDisabled:_,isDelegate:l!=null,isLinkRoot:!1,role:T.role}),U=E?.density??`balanced`,W=E?.hasDividers??!1,G=E?.edge??`padded`,K=E?.listStyle??`none`,fe=K!==`none`,q=K===`none`?null:E?.marker??K,J=q==null?void 0:E?.task,pe=E?.hasMarkerGutter===!0,Y=K===`decimal`&&E?.isOutsideNumberColumns!==!0,me=(0,A.useMemo)(()=>J==null?q===`disc`||q===`circle`||q===`square`?(0,j.jsx)(`span`,{className:`xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv`,children:(0,j.jsx)(`span`,{...ne(q===`disc`?Q.dot:q===`circle`?Q.circle:Q.square)})}):q==null?null:(0,j.jsx)(`span`,{...ne(Q.number,Ce[q],pe&&Q.gutterHang)}):(0,j.jsx)(`span`,{className:`xqcrz7y x78zum5 x6s0dn4 x2lah0s xuhift9`,children:(0,j.jsx)(se,{size:`sm`,value:J.isChecked,label:J.label,isLabelHidden:!0,isReadOnly:!0})}),[J,q,pe]),he=N&&!B?(0,j.jsx)(N.session.RowName,{row:O,label:e}):null,ge=(0,j.jsx)(f,{as:`li`,ref:ue,marker:me,startContent:n,label:e,description:t,endContent:B!=null&&!I?(0,j.jsxs)(j.Fragment,{children:[r,B]}):r,onClick:a,interactiveRef:l,href:p,target:m,rel:h,isDisabled:_,isSelected:v,align:b,density:U,xstyle:[Y&&Z.numberColumns,K===`decimal`&&!Y&&Z.spanNumberColumns,fe&&Z.withCounter,le.row,W&&Z.withDivider,W&&we.noRadius,W&&V&&g.overDividers,V&&ee.layer,V&&k&&Z.bandRaised,de&&le.raisedSwipeRow,G===`flush`&&Z.edgeFlush,G===`outset`&&Z.edgeOutset,G===`bleed`&&Z.edgeBleed,B&&N?.session.rowStyle,x],...ie(re(`list-item`),{className:C,style:w}),...F(y),...T,swipe:oe}),_e=(0,j.jsx)(i,{value:!0,children:ge});return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(c,{value:I?B:null,children:(0,j.jsx)(o,{value:B!=null,children:Y?(0,j.jsx)(d,{value:me,children:_e}):_e})}),he]})}Ee.displayName=`ListItem`;var De=`button:not(:disabled), a[href]`,$={list:{k7VYTy:`xpdipgo`,kfSwDN:`x87ps6o`,$$css:!0},destructiveAction:{"--_item-label-color":`x1pa1ci1`,"--_item-description-color":`x1dj2fx0`,kMwMTN:`x1wj83wy`,$$css:!0},divider:{kqGvvJ:`xsq74q5`,$$css:!0},sectionHeading:{kg3NbH:`xrrkdod`,$$css:!0}};function Oe(e,t){return`item-${e.id??t}`}function ke({items:e,onSelect:t,onOpenSubmenu:n}){let i=(0,A.useId)(),o=(0,A.useRef)(null),{ref:s,readModality:c}=C(),u=S(o,s),d=l({menuRef:o,itemSelector:De}),f=(e,r,a=String(r))=>{let o=e.items!=null&&e.items.length>0,s=e.variant===`destructive`,l=!o&&e.href!=null,u=`${i}-label-${a}`,d=o&&typeof e.label!=`string`,f=r=>{if(l&&e.isDisabled)r.preventDefault();else if(c()===`pointer`&&r.currentTarget.blur(),o){let t=d?r.currentTarget.ownerDocument.getElementById(u):null;n(e,typeof e.label==`string`?e.label:t==null?void 0:k(t))}else l&&O(r)?t({...e,onClick:void 0},r):t(e,r)};return(0,j.jsx)(Ee,{label:d?(0,j.jsx)(`span`,{id:u,children:e.label}):e.label,description:e.description,startContent:e.icon?h(e.icon,{size:`sm`,color:s?`error`:`secondary`}):void 0,endContent:o?(0,j.jsx)(m,{icon:`chevronRight`,size:`sm`,color:`secondary`,xstyle:p.mirror}):e.endContent,isDisabled:e.isDisabled,href:l?e.href:void 0,target:l?e.target:void 0,rel:l?e.rel:void 0,onClick:l?void 0:f,onClickCapture:l?f:void 0,xstyle:s&&$.destructiveAction},Oe(e,r))};return(0,j.jsx)(Se,{ref:u,density:`spacious`,tabIndex:-1,xstyle:$.list,...d.menuProps,children:e.map((e,t)=>`type`in e&&e.type===`divider`?(0,j.jsx)(`li`,{role:`presentation`,className:`x3ct3a4`,children:(0,j.jsx)(r,{xstyle:$.divider})},`divider-${t}`):`type`in e&&e.type===`section`?(0,j.jsx)(`li`,{className:`x3ct3a4`,children:(0,j.jsxs)(`div`,{role:`group`,"aria-label":e.title,className:`x78zum5 xdt5ytf xzye2dw`,children:[e.title&&(0,j.jsx)(a,{level:4,xstyle:$.sectionHeading,children:e.title}),(0,j.jsx)(Se,{density:`spacious`,children:e.items.map((e,n)=>f(e,n,`${t}-${n}`))})]})},`section-${e.id??t}`):f(e,t))})}ke.displayName=`MenuBottomSheetActionList`;export{ke as MenuBottomSheetActionList};