efficient-shell 12.26.0 → 12.28.0

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.
Files changed (210) hide show
  1. package/dist/{Browser-3CEYK5AG.js → Browser-PC45PVTN.js} +15 -15
  2. package/dist/{Calculator-LSDVIJVQ.js → Calculator-5TRNFPY4.js} +21 -21
  3. package/dist/{CurrencyConverter-G5IYUCN7.js → CurrencyConverter-BB4QWNER.js} +6 -6
  4. package/dist/Files-BKEREVQK.js +141 -0
  5. package/dist/{Notepad-H6NVBIDA.js → Notepad-BLUA2254.js} +9 -9
  6. package/dist/{PdfViewer-UY5SRC63.js → PdfViewer-4YLDY4JY.js} +1 -1
  7. package/dist/{PomodoroTimer-SFTPXEDV.js → PomodoroTimer-KIJKDHVO.js} +6 -6
  8. package/dist/{Preview-BHQH5CSY.js → Preview-JVL2N5GN.js} +29 -29
  9. package/dist/Sidebar-SAGLPIOC.js +44 -0
  10. package/dist/{Stock-YCPMLYPR.js → Stock-JQEJMIMG.js} +3 -3
  11. package/dist/{Weather-TLFNIPDG.js → Weather-FAQX55XL.js} +16 -16
  12. package/dist/{WorldClock-66IRFS2W.js → WorldClock-YSZNGEL2.js} +6 -6
  13. package/dist/ai/index.d.ts +170 -6
  14. package/dist/ai/index.js +134 -115
  15. package/dist/ai.css +1 -1
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/media-host-check.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/brand.css +1 -1
  20. package/dist/charts/FlowChart.js +1 -1
  21. package/dist/charts/PieChart.js +1 -1
  22. package/dist/charts/RadarChart.js +1 -1
  23. package/dist/charts/RadialBarChart.js +1 -1
  24. package/dist/charts/SpecChart.js +1 -1
  25. package/dist/charts/TimeSeriesChart.js +1 -1
  26. package/dist/chunk-24Y5JHIR.js +4 -0
  27. package/dist/{chunk-34TQBJ7I.js → chunk-2OUAPOLK.js} +1 -1
  28. package/dist/chunk-2SGOKMUU.js +13 -0
  29. package/dist/{chunk-3CKYFCX4.js → chunk-34L5SRM7.js} +17 -17
  30. package/dist/chunk-3DSGJIC7.js +7 -0
  31. package/dist/{chunk-CALBDO7B.js → chunk-3FBXJO77.js} +1 -1
  32. package/dist/{chunk-DK5SXOXJ.js → chunk-47UH3D4B.js} +1 -1
  33. package/dist/{chunk-7LTU5TJD.js → chunk-4EFIUJ7X.js} +1 -1
  34. package/dist/{chunk-AQCUGTOR.js → chunk-56XCGOX5.js} +6 -6
  35. package/dist/{chunk-LBKKKZ4M.js → chunk-63IGYBCQ.js} +2 -2
  36. package/dist/chunk-64J7TYJ3.js +4 -0
  37. package/dist/{chunk-3JL4TCA7.js → chunk-6KOMF6WL.js} +1 -1
  38. package/dist/{chunk-RY7JCGLI.js → chunk-6Q7L32LL.js} +1 -1
  39. package/dist/{chunk-VLMBXPRM.js → chunk-7GJIIBJD.js} +1 -1
  40. package/dist/{chunk-DCCYUCBM.js → chunk-7NO4IENQ.js} +1 -1
  41. package/dist/{chunk-I7JU4IU3.js → chunk-7TNZ3DTT.js} +2 -2
  42. package/dist/{chunk-KP2JYXEU.js → chunk-AFWLCXQD.js} +9 -9
  43. package/dist/{chunk-34EBBZFK.js → chunk-AMIMNRYU.js} +1 -1
  44. package/dist/chunk-ASDYAASN.js +3 -0
  45. package/dist/{chunk-N3R6N7LG.js → chunk-ATZ262BR.js} +1 -1
  46. package/dist/{chunk-KZRZYLN7.js → chunk-BC4FE77W.js} +49 -49
  47. package/dist/chunk-BFRGDRFK.js +23 -0
  48. package/dist/{chunk-CCK2UWQ5.js → chunk-BKYRHQK2.js} +10 -10
  49. package/dist/{chunk-X34ZBXIU.js → chunk-BT2YPDQL.js} +3 -3
  50. package/dist/{chunk-YW3UKSON.js → chunk-CON5NRCO.js} +2 -2
  51. package/dist/{chunk-JUFCEWE3.js → chunk-DG2TGWXI.js} +5 -5
  52. package/dist/{chunk-4ZRGMK7Y.js → chunk-DIHHV6T6.js} +1 -1
  53. package/dist/{chunk-N32LNPPP.js → chunk-EATV7FMU.js} +8 -8
  54. package/dist/{chunk-VXDW6ZPG.js → chunk-EEB5XPWP.js} +2 -2
  55. package/dist/{chunk-JN5NUZ6D.js → chunk-EWVE5XG6.js} +1 -1
  56. package/dist/chunk-FFUTSMF5.js +28 -0
  57. package/dist/{chunk-RB7IU7ZK.js → chunk-FVKXDF2Q.js} +5 -5
  58. package/dist/{chunk-THLXDI76.js → chunk-GOAFMGUI.js} +10 -10
  59. package/dist/{chunk-MEN4B6NP.js → chunk-H2CPT6K3.js} +10 -10
  60. package/dist/{chunk-3J3FBYIZ.js → chunk-HLE4LTRU.js} +1 -1
  61. package/dist/{chunk-Y523KUQC.js → chunk-HNEI2RKX.js} +1 -1
  62. package/dist/{chunk-Z3CTYK3U.js → chunk-HSUTZCRT.js} +1 -1
  63. package/dist/{chunk-UR2ECNBB.js → chunk-HVYXJLAV.js} +1 -1
  64. package/dist/chunk-IATKDC52.js +9 -0
  65. package/dist/{chunk-G2Y5I5OR.js → chunk-IB3LLQZC.js} +1 -1
  66. package/dist/{chunk-XZXFUZIK.js → chunk-ISVODSRP.js} +6 -3
  67. package/dist/chunk-JJ2OXUK7.js +14 -0
  68. package/dist/{chunk-QMSINDXL.js → chunk-JLRF6FN7.js} +1 -1
  69. package/dist/{chunk-BZHP645G.js → chunk-K5PDLRYH.js} +8 -8
  70. package/dist/{chunk-GLRRX4AL.js → chunk-K5YT5PMJ.js} +1 -1
  71. package/dist/{chunk-SY66VJAI.js → chunk-KTO427N3.js} +1 -1
  72. package/dist/{chunk-6GWYFUME.js → chunk-LAO6GLBY.js} +6 -6
  73. package/dist/{chunk-RJF4A3LJ.js → chunk-LL4KF43W.js} +1 -1
  74. package/dist/{chunk-FQ4IRBMA.js → chunk-MKNDDB6U.js} +1 -1
  75. package/dist/{chunk-4ZLFAXOC.js → chunk-MTYEY7HT.js} +11 -11
  76. package/dist/{chunk-ILDPJ26Y.js → chunk-N2FX4O3H.js} +1 -1
  77. package/dist/{chunk-WBGJ4XB7.js → chunk-N5RV73CI.js} +4 -4
  78. package/dist/{chunk-CJHYOHMU.js → chunk-NN32QUCE.js} +1 -1
  79. package/dist/{chunk-B76GRJW5.js → chunk-NUPK6CUV.js} +1 -1
  80. package/dist/{chunk-KBI3T6UC.js → chunk-O4YKOS74.js} +1 -1
  81. package/dist/{chunk-VQ4X3OBR.js → chunk-OMFYTCBI.js} +1 -1
  82. package/dist/{chunk-YRY64DQV.js → chunk-OXRQIWRT.js} +1 -1
  83. package/dist/{chunk-6RK6R3RY.js → chunk-PT4GMPUB.js} +1 -1
  84. package/dist/{chunk-PLPMCE44.js → chunk-QB2GJNGB.js} +9 -9
  85. package/dist/{chunk-GEZM6ARD.js → chunk-QIPO4EVJ.js} +1 -1
  86. package/dist/{chunk-6FZ5JTBY.js → chunk-QMBMK6PP.js} +2 -2
  87. package/dist/{chunk-TOVEZAIM.js → chunk-QOYKBINM.js} +1 -1
  88. package/dist/{chunk-63TCQAGE.js → chunk-RVVQDBV7.js} +5 -5
  89. package/dist/{chunk-OM42AUMS.js → chunk-S6AN76R3.js} +1 -1
  90. package/dist/{chunk-B4GRHE44.js → chunk-SS3CROPR.js} +3 -3
  91. package/dist/{chunk-7MJYT6IW.js → chunk-TDXRG43I.js} +1 -1
  92. package/dist/{chunk-T2TZBTSM.js → chunk-TKIYZE7V.js} +1 -1
  93. package/dist/{chunk-WVMCKM5Z.js → chunk-UEFIUTOU.js} +1 -1
  94. package/dist/chunk-UFM4YBZ7.js +1 -0
  95. package/dist/{chunk-436PJFHC.js → chunk-UH5ZGWSA.js} +10 -10
  96. package/dist/{chunk-FTMCNC66.js → chunk-UZFFSZFI.js} +1 -1
  97. package/dist/{chunk-3E3LR2PM.js → chunk-V3XS6BTJ.js} +13 -13
  98. package/dist/{chunk-YIUWX2IU.js → chunk-VLBIM33E.js} +5 -5
  99. package/dist/{chunk-QZCLHKCI.js → chunk-VLKJN6HX.js} +10 -10
  100. package/dist/{chunk-OHSRZLRD.js → chunk-VP2GI3UP.js} +2 -2
  101. package/dist/{chunk-QG37GJP2.js → chunk-WBAWJIVM.js} +4 -4
  102. package/dist/{chunk-QPSJYSET.js → chunk-WKYNPGFB.js} +5 -5
  103. package/dist/{chunk-JGRDG7CB.js → chunk-WN3JHPJI.js} +6 -6
  104. package/dist/{chunk-XHZVUO6F.js → chunk-WX2Q76WC.js} +6 -6
  105. package/dist/{chunk-6DGUJ2OI.js → chunk-X5MUSNKH.js} +2 -2
  106. package/dist/{chunk-YI6SYUAK.js → chunk-XAEI36TW.js} +1 -1
  107. package/dist/{chunk-H6WXTJOT.js → chunk-XAF5ZI7H.js} +1 -1
  108. package/dist/{chunk-TM4CRQ3W.js → chunk-XMY2HKVD.js} +15 -15
  109. package/dist/{chunk-F37II2EH.js → chunk-XQWHKXLS.js} +13 -13
  110. package/dist/{chunk-SSNTJ3M4.js → chunk-XSVQ5V7L.js} +9 -9
  111. package/dist/chunk-Y4FWTYZS.js +6 -0
  112. package/dist/{chunk-HMT3MES3.js → chunk-YWNHK6Z5.js} +18 -18
  113. package/dist/{chunk-LPPJNZQ6.js → chunk-YYGJJ6EI.js} +1 -1
  114. package/dist/{chunk-R62JKPYY.js → chunk-Z2Z653OO.js} +1 -1
  115. package/dist/{chunk-L543DFHF.js → chunk-ZBJ7FTA5.js} +1 -1
  116. package/dist/{chunk-OLCRYT3N.js → chunk-ZGCCV4WE.js} +10 -10
  117. package/dist/data/EntityList.js +1 -1
  118. package/dist/data/ListLoadError.js +1 -1
  119. package/dist/data/ResizableTable.js +1 -1
  120. package/dist/forms/BorderInput.js +1 -1
  121. package/dist/forms/BrandAssetEditor.js +1 -1
  122. package/dist/forms/Calendar.js +1 -1
  123. package/dist/forms/ColorPicker.js +1 -1
  124. package/dist/forms/ComposerAttachments.js +1 -1
  125. package/dist/forms/CornersInput.js +1 -1
  126. package/dist/forms/DatePicker.js +1 -1
  127. package/dist/forms/DateRangePicker.js +1 -1
  128. package/dist/forms/DisplayChips.js +1 -1
  129. package/dist/forms/FilePicker.js +1 -1
  130. package/dist/forms/IconPicker.js +1 -1
  131. package/dist/forms/Input.js +1 -1
  132. package/dist/forms/InputNumber.js +1 -1
  133. package/dist/forms/LinkPicker.js +1 -1
  134. package/dist/forms/MediaLibrary.js +1 -1
  135. package/dist/forms/MediaUploadField.js +1 -1
  136. package/dist/forms/MediaUploadGrid.js +1 -1
  137. package/dist/forms/MediaUsedInList.js +1 -1
  138. package/dist/forms/PositionInput.js +1 -1
  139. package/dist/forms/RenameField.js +1 -1
  140. package/dist/forms/Select.js +1 -1
  141. package/dist/forms/SidesInput.js +1 -1
  142. package/dist/forms/Slider.js +1 -1
  143. package/dist/forms/Snippet.js +1 -1
  144. package/dist/forms/SplitButton.js +1 -1
  145. package/dist/forms/TagInput.js +1 -1
  146. package/dist/forms/TextToolbar.js +1 -1
  147. package/dist/forms/UnitMenu.js +1 -1
  148. package/dist/forms/WidthsBar.js +1 -1
  149. package/dist/forms/mediaLibraryMenu.js +1 -1
  150. package/dist/forms/textAlign.js +1 -1
  151. package/dist/icons/index.js +1 -1
  152. package/dist/index.js +665 -665
  153. package/dist/map/index.js +5 -5
  154. package/dist/markdown/index.js +1 -1
  155. package/dist/page-tabs/index.js +5 -5
  156. package/dist/pdf/index.js +1 -1
  157. package/dist/shell/AppUpdateBanner.js +1 -1
  158. package/dist/shell/Avatar.js +1 -1
  159. package/dist/shell/Banner.js +1 -1
  160. package/dist/shell/Breadcrumbs.js +1 -1
  161. package/dist/shell/ColoredBadge.js +1 -1
  162. package/dist/shell/ConfirmDialog.js +1 -1
  163. package/dist/shell/ContextMenu.js +1 -1
  164. package/dist/shell/Dialog.js +1 -1
  165. package/dist/shell/Drawer.js +1 -1
  166. package/dist/shell/DropdownMenu.js +1 -1
  167. package/dist/shell/EmptyState.js +1 -1
  168. package/dist/shell/HelpCenter.js +1 -1
  169. package/dist/shell/ImageLightbox.js +1 -1
  170. package/dist/shell/LanguageSelect.js +1 -1
  171. package/dist/shell/Markdown.js +1 -1
  172. package/dist/shell/PageHeader.js +1 -1
  173. package/dist/shell/PopupMenu.js +1 -1
  174. package/dist/shell/ProductionTimeline.js +1 -1
  175. package/dist/shell/Result.js +1 -1
  176. package/dist/shell/SearchableSelect.js +1 -1
  177. package/dist/shell/SettingReset.js +1 -1
  178. package/dist/shell/SidebarLayout.js +1 -1
  179. package/dist/shell/SidebarNav.js +1 -1
  180. package/dist/shell/SortableList.js +1 -1
  181. package/dist/shell/StepChain.js +1 -1
  182. package/dist/shell/Stepper.js +1 -1
  183. package/dist/shell/TopNav.js +1 -1
  184. package/dist/shell/Tree.js +1 -1
  185. package/dist/shell/discardGuard.js +1 -1
  186. package/dist/telemetry/index.js +1 -1
  187. package/dist/templates/AuthScreen.js +1 -1
  188. package/dist/templates/ChatTemplate.js +1 -1
  189. package/dist/templates/CheckoutTemplate.js +1 -1
  190. package/dist/templates/DashboardTemplate.js +1 -1
  191. package/dist/templates/DataTablePage.js +1 -1
  192. package/dist/templates/EmailTemplate.js +1 -1
  193. package/dist/templates/FormLayoutPage.js +1 -1
  194. package/dist/ui/index.js +1 -1
  195. package/dist/version.js +1 -1
  196. package/package.json +1 -1
  197. package/dist/Files-T56P5JDC.js +0 -141
  198. package/dist/Sidebar-BKNCPUOE.js +0 -44
  199. package/dist/chunk-BM2QIV64.js +0 -23
  200. package/dist/chunk-D2WJAF62.js +0 -4
  201. package/dist/chunk-GJGR267P.js +0 -1
  202. package/dist/chunk-INADSWOF.js +0 -28
  203. package/dist/chunk-LCEQIFPK.js +0 -3
  204. package/dist/chunk-LDVDNAXP.js +0 -4
  205. package/dist/chunk-OQ6TECLX.js +0 -6
  206. package/dist/chunk-SFULX4E3.js +0 -7
  207. package/dist/chunk-TUPPFC74.js +0 -14
  208. package/dist/chunk-UP4HLGMZ.js +0 -9
  209. package/dist/chunk-ZQ24H5UO.js +0 -13
  210. /package/dist/{chunk-5WK56FA3.js → chunk-TGLUENXE.js} +0 -0
@@ -1,8 +1,8 @@
1
- import{getNumberingConfigs as e}from"./chunk-CALBDO7B.js";import{SidebarLayout as t}from"./chunk-JGRDG7CB.js";import"./chunk-QWK6DRSN.js";import"./chunk-OOWPLQD5.js";import{timeAgo as r}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-6DGUJ2OI.js";import{useWindowManager as o,client_default as i}from"./chunk-KZRZYLN7.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-DK5SXOXJ.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-UR2ECNBB.js";import"./chunk-HMT3MES3.js";import"./chunk-D2WJAF62.js";import"./chunk-EIFNESXS.js";import"./chunk-MWTCGJAI.js";import"./chunk-RIG5FEVS.js";import"./chunk-5WK56FA3.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-CJHYOHMU.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-GJGR267P.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-THLXDI76.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as s}from"./chunk-XZXFUZIK.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import{toast_default as l}from"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[v]);const T=j.notepad_notes||[],[_,C]=d(null),[W,D]=d(""),[S,J]=d(""),[X,G]=d("yellow"),[M,O]=d(!1),[$,U]=d(!1),I=a(null),E=a();p(()=>{if(!_&&T.length>0){const e=T[0];C(e.id),D(e.title),J(e.content),G(e.color)}},[T.length]);const K=m(e=>{N({notepad_notes:e})},[N]),R=m(()=>{if(!_||!M)return;const e=T.map(e=>e.id===_?{...e,title:W,content:S,color:X,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);K(e),O(!1)},[_,M,W,S,X,T,K]);p(()=>{if(M)return E.current&&clearTimeout(E.current),E.current=setTimeout(R,800),()=>{E.current&&clearTimeout(E.current)}},[M,R]),p(()=>()=>{M&&R()},[]);const Z=e=>{M&&R(),C(e.id),D(e.title),J(e.content),G(e.color),O(!1),U(!1)},A=e=>{const t=S.slice(0,e),r=S.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=S.slice(e+r[0].length);J(t+n+o),O(!0)},B=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):l.error(`${n} not found`)}catch{l.error(`Failed to look up ${n}`)}},F="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",H=/* @__PURE__ */h(g,{children:[
2
- /* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{M&&R();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];K(t),C(e.id),D(""),J(""),G("yellow"),O(!1),U(!0),setTimeout(()=>I.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
1
+ import{getNumberingConfigs as e}from"./chunk-3FBXJO77.js";import{SidebarLayout as t}from"./chunk-WN3JHPJI.js";import"./chunk-QWK6DRSN.js";import"./chunk-OOWPLQD5.js";import{timeAgo as r}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-X5MUSNKH.js";import{useWindowManager as o,client_default as i}from"./chunk-BC4FE77W.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-47UH3D4B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-HVYXJLAV.js";import"./chunk-YWNHK6Z5.js";import"./chunk-64J7TYJ3.js";import"./chunk-EIFNESXS.js";import"./chunk-MWTCGJAI.js";import"./chunk-RIG5FEVS.js";import"./chunk-TGLUENXE.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-NN32QUCE.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-UFM4YBZ7.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as s}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import{toast_default as l}from"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[v]);const T=j.notepad_notes||[],[_,W]=d(null),[C,S]=d(""),[D,J]=d(""),[X,M]=d("yellow"),[U,$]=d(!1),[G,O]=d(!1),E=a(null),I=a();p(()=>{if(!_&&T.length>0){const e=T[0];W(e.id),S(e.title),J(e.content),M(e.color)}},[T.length]);const F=m(e=>{N({notepad_notes:e})},[N]),Y=m(()=>{if(!_||!U)return;const e=T.map(e=>e.id===_?{...e,title:C,content:D,color:X,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);F(e),$(!1)},[_,U,C,D,X,T,F]);p(()=>{if(U)return I.current&&clearTimeout(I.current),I.current=setTimeout(Y,800),()=>{I.current&&clearTimeout(I.current)}},[U,Y]),p(()=>()=>{U&&Y()},[]);const H=e=>{U&&Y(),W(e.id),S(e.title),J(e.content),M(e.color),$(!1),O(!1)},Q=e=>{const t=D.slice(0,e),r=D.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=D.slice(e+r[0].length);J(t+n+o),$(!0)},A=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):l.error(`${n} not found`)}catch{l.error(`Failed to look up ${n}`)}},B="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",K=/* @__PURE__ */h(g,{children:[
2
+ /* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{U&&Y();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];F(t),W(e.id),S(""),J(""),M("yellow"),$(!1),O(!0),setTimeout(()=>E.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
3
3
  /* @__PURE__ */x(s,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
4
  /* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,y.find(e=>e.key===n)||y[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>Z(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(_===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
5
+ return h("button",{onClick:()=>H(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(_===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
6
6
  /* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
7
7
  /* @__PURE__ */x("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
8
  /* @__PURE__ */x("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"})]}),
@@ -10,15 +10,15 @@ return h("button",{onClick:()=>Z(e),className:"w-full text-left px-3 py-3 border
10
10
  /* @__PURE__ */x("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
11
11
  return h("div",{className:"h-full",children:[
12
12
  /* @__PURE__ */x(n,{app:"notepad"}),
13
- /* @__PURE__ */x(t,{sidebar:H,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
13
+ /* @__PURE__ */x(t,{sidebar:K,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
14
14
  /* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
15
- /* @__PURE__ */x("input",{value:W,onChange:e=>{D(e.target.value),O(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{G(e.key),O(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${X===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
- /* @__PURE__ */x("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(K(t),_===e){const e=t[0];e?Z(e):(C(null),D(""),J(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(s,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),$?/* @__PURE__ */x("textarea",{ref:I,value:S,onChange:e=>{J(e.target.value),O(!0)},onBlur:()=>{U(!1),M&&R()},placeholder:F,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{U(!0),setTimeout(()=>I.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:S?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=c.exec(e));){const e=l[1],t=l[2];if(w.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>B(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=a+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>A(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(s,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
18
- return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(S):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:F})}),
15
+ /* @__PURE__ */x("input",{value:C,onChange:e=>{S(e.target.value),$(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
+ /* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{M(e.key),$(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${X===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
+ /* @__PURE__ */x("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(F(t),_===e){const e=t[0];e?H(e):(W(null),S(""),J(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(s,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),G?/* @__PURE__ */x("textarea",{ref:E,value:D,onChange:e=>{J(e.target.value),$(!0)},onBlur:()=>{O(!1),U&&Y()},placeholder:B,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{O(!0),setTimeout(()=>E.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:D?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=c.exec(e));){const e=l[1],t=l[2];if(w.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>A(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=a+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>Q(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(s,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
18
+ return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(D):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:B})}),
19
19
  /* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
20
20
  /* @__PURE__ */x("span",{children:"[] checkbox"}),
21
21
  /* @__PURE__ */x("span",{children:"SO#35001 entity link"}),
22
- /* @__PURE__ */x("span",{className:"ml-auto",children:$?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
22
+ /* @__PURE__ */x("span",{className:"ml-auto",children:G?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
23
  /* @__PURE__ */x(s,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
24
24
  /* @__PURE__ */x("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -1 +1 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-QZCLHKCI.js";import"./chunk-XZXFUZIK.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";
1
+ export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-VLKJN6HX.js";import"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";
@@ -1,9 +1,9 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-H6WXTJOT.js";import{subscribePomo as o,getPomoSnapshot as a,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,migratePomodoroTasksOnce as u,pomoSwitchMode as d,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as k,previewFocusSound as f}from"./chunk-DJXXY23A.js";import{PLACEHOLDER_INK as b}from"./chunk-AYZY3YNC.js";import{pad2 as x}from"./chunk-LF27WIN2.js";import{useWidgetSettings as v}from"./chunk-KZRZYLN7.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-DK5SXOXJ.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-UR2ECNBB.js";import"./chunk-HMT3MES3.js";import"./chunk-D2WJAF62.js";import"./chunk-EIFNESXS.js";import"./chunk-MWTCGJAI.js";import"./chunk-RIG5FEVS.js";import"./chunk-5WK56FA3.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-CJHYOHMU.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as y}from"./chunk-KC3EX26K.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-THLXDI76.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as N}from"./chunk-XZXFUZIK.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as C,useEffect as S,useMemo as w,useState as j,useRef as B,useCallback as M}from"react";import{jsxs as T,Fragment as I,jsx as A}from"react/jsx-runtime";var P="pomodoro_appearance",D="pomodoro_active_task_id",L={focus:"Pomodoro",short:"Short Break",long:"Long Break"},V={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var W=25,J=5,$=15,R=!1,E=!1,F=4,X=!0,H=!0,O="bell",U=100,Y=1,Z="none",K=50,G=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function _(){const t=C(o,a,a),{prefs:g,save:f}=y(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:G(t.focusMinutes,1,120,W),shortBreakMinutes:G(t.shortBreakMinutes,1,120,J),longBreakMinutes:G(t.longBreakMinutes,1,120,$),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:R,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:E,longBreakInterval:G(t.longBreakInterval,1,20,F),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:X,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:H,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:O,alarmVolume:G(t.alarmVolume,0,100,U),alarmRepeat:G(t.alarmRepeat,1,5,Y),focusSound:k.some(e=>e.id===t.focusSound)?t.focusSound:Z,focusVolume:G(t.focusVolume,0,100,K)}}(g.pomodoro_settings);S(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),S(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),S(()=>{i({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),S(()=>{l(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),S(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const _=c(),z=_.tasks,q=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),ee=function(e,t){return w(()=>t?(e=>{const t=[],o=[];for(const a of e)(a.done?o:t).push(a);return[...t,...o]})(e):e,[e,t])}(w(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===q||e.dueDate<q&&!e.done)),[z,q]),b.checkToBottom),[te,oe]=j(()=>localStorage.getItem(D)),[ae,ne]=j(!1),[re,se]=j(null),ie=B(!1);S(()=>{ie.current||(ie.current=!0,u(z,_.setAllTasks))},[]),S(()=>{try{te?localStorage.setItem(D,te):localStorage.removeItem(D)}catch{}},[te]),S(()=>{if(!re)return;const e=()=>se(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[re]);const le=B(t.streak);S(()=>{if(t.streak>le.current&&te){const e=z.find(e=>e.id===te);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=b.autoCheckTasks&&o>0&&t>=o;_.updateTask(te,{completed:t,done:e.done||a})}}le.current=t.streak},[t.streak,te,b.autoCheckTasks,z,_]);const ue=ee.reduce((e,t)=>e+(t.completed??0),0),de=ee.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),me=ee.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),he=t.running&&"focus"===t.mode?t.remaining:0,pe=me*b.focusMinutes*60+he,ge=new Date(Date.now()+1e3*pe).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ke=(pe/3600).toFixed(1),fe=te?z.find(e=>e.id===te)??null:null,be=x(Math.floor(t.remaining/60)),xe=x(t.remaining%60),[ve,ye]=j(()=>e(P)),[Ne,Ce]=j(!1),[Se,we]=j(ve),[je,Be]=j(b);v(M(()=>{we({...ve}),Be({...b}),Ce(!0)},[ve,b]));const Me="focus"!==t.mode,Te=V[t.mode],Ie=Me?(Ae=Te,Pe=ve.activeOpacity/100,`rgba(${parseInt(Ae.slice(1,3),16)}, ${parseInt(Ae.slice(3,5),16)}, ${parseInt(Ae.slice(5,7),16)}, ${Pe})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${ve.activeOpacity/100})`;var Ae,Pe;const De={primary:Me?"text-white":"text-gray-900",secondary:Me?"text-white/85":"text-gray-700",muted:Me?"text-white/65":"text-gray-500",tabActive:Me?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Me?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Me?"border-white/30":"border-gray-200",softDivider:Me?"border-white/20":"border-gray-200",iconBtn:Me?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Me?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Le=Me?Te:"#0f172a";/* @__PURE__ */
1
+ import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-XAF5ZI7H.js";import{subscribePomo as o,getPomoSnapshot as a,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,migratePomodoroTasksOnce as u,pomoSwitchMode as d,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as k,previewFocusSound as f}from"./chunk-DJXXY23A.js";import{PLACEHOLDER_INK as b}from"./chunk-AYZY3YNC.js";import{pad2 as x}from"./chunk-LF27WIN2.js";import{useWidgetSettings as v}from"./chunk-BC4FE77W.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-47UH3D4B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-HVYXJLAV.js";import"./chunk-YWNHK6Z5.js";import"./chunk-64J7TYJ3.js";import"./chunk-EIFNESXS.js";import"./chunk-MWTCGJAI.js";import"./chunk-RIG5FEVS.js";import"./chunk-TGLUENXE.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-NN32QUCE.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as y}from"./chunk-KC3EX26K.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import{Icon as N}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-3YBXA72C.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as C,useEffect as S,useMemo as w,useState as j,useRef as B,useCallback as M}from"react";import{jsxs as T,Fragment as I,jsx as A}from"react/jsx-runtime";var P="pomodoro_appearance",D="pomodoro_active_task_id",V={focus:"Pomodoro",short:"Short Break",long:"Long Break"},L={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var W=25,$=5,E=15,J=!1,F=!1,R=4,G=!0,U=!0,Y="bell",X=100,H=1,O="none",Z=50,Q=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function _(){const t=C(o,a,a),{prefs:g,save:f}=y(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:Q(t.focusMinutes,1,120,W),shortBreakMinutes:Q(t.shortBreakMinutes,1,120,$),longBreakMinutes:Q(t.longBreakMinutes,1,120,E),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:J,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:F,longBreakInterval:Q(t.longBreakInterval,1,20,R),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:G,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:U,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:Y,alarmVolume:Q(t.alarmVolume,0,100,X),alarmRepeat:Q(t.alarmRepeat,1,5,H),focusSound:k.some(e=>e.id===t.focusSound)?t.focusSound:O,focusVolume:Q(t.focusVolume,0,100,Z)}}(g.pomodoro_settings);S(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),S(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),S(()=>{i({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),S(()=>{l(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),S(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const _=c(),z=_.tasks,q=w(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),ee=function(e,t){return w(()=>t?(e=>{const t=[],o=[];for(const a of e)(a.done?o:t).push(a);return[...t,...o]})(e):e,[e,t])}(w(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===q||e.dueDate<q&&!e.done)),[z,q]),b.checkToBottom),[te,oe]=j(()=>localStorage.getItem(D)),[ae,ne]=j(!1),[re,se]=j(null),ie=B(!1);S(()=>{ie.current||(ie.current=!0,u(z,_.setAllTasks))},[]),S(()=>{try{te?localStorage.setItem(D,te):localStorage.removeItem(D)}catch{}},[te]),S(()=>{if(!re)return;const e=()=>se(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[re]);const le=B(t.streak);S(()=>{if(t.streak>le.current&&te){const e=z.find(e=>e.id===te);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=b.autoCheckTasks&&o>0&&t>=o;_.updateTask(te,{completed:t,done:e.done||a})}}le.current=t.streak},[t.streak,te,b.autoCheckTasks,z,_]);const ue=ee.reduce((e,t)=>e+(t.completed??0),0),de=ee.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),me=ee.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),he=t.running&&"focus"===t.mode?t.remaining:0,pe=me*b.focusMinutes*60+he,ge=new Date(Date.now()+1e3*pe).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ke=(pe/3600).toFixed(1),fe=te?z.find(e=>e.id===te)??null:null,be=x(Math.floor(t.remaining/60)),xe=x(t.remaining%60),[ve,ye]=j(()=>e(P)),[Ne,Ce]=j(!1),[Se,we]=j(ve),[je,Be]=j(b);v(M(()=>{we({...ve}),Be({...b}),Ce(!0)},[ve,b]));const Me="focus"!==t.mode,Te=L[t.mode],Ie=Me?(Ae=Te,Pe=ve.activeOpacity/100,`rgba(${parseInt(Ae.slice(1,3),16)}, ${parseInt(Ae.slice(3,5),16)}, ${parseInt(Ae.slice(5,7),16)}, ${Pe})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${ve.activeOpacity/100})`;var Ae,Pe;const De={primary:Me?"text-white":"text-gray-900",secondary:Me?"text-white/85":"text-gray-700",muted:Me?"text-white/65":"text-gray-500",tabActive:Me?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Me?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Me?"border-white/30":"border-gray-200",softDivider:Me?"border-white/20":"border-gray-200",iconBtn:Me?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Me?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Ve=Me?Te:"#0f172a";/* @__PURE__ */
2
2
  return T(I,{children:[
3
3
  /* @__PURE__ */T("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${De.primary}`,style:{backgroundColor:Ie,backdropFilter:ve.activeBlur>0?`blur(${ve.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */A("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */A("button",{onClick:()=>d(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?De.tabActive:De.tabInactive}`,children:L[e]},e))}),
4
+ /* @__PURE__ */A("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */A("button",{onClick:()=>d(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?De.tabActive:De.tabInactive}`,children:V[e]},e))}),
5
5
  /* @__PURE__ */T("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[be,":",xe]}),
6
- /* @__PURE__ */A("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */A("button",{onClick:()=>t.running?m():h(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Le,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
6
+ /* @__PURE__ */A("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */A("button",{onClick:()=>t.running?m():h(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Ve,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
7
7
  /* @__PURE__ */A("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */T(I,{children:[
8
8
  /* @__PURE__ */T("div",{className:`text-xs leading-tight ${De.muted}`,children:["#",(fe.completed??0)+1]}),
9
9
  /* @__PURE__ */A("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${De.primary}`,children:fe.name})]}):/* @__PURE__ */A("div",{className:`text-xs italic ${De.muted}`,children:"No task selected"})}),
@@ -13,14 +13,14 @@ return T(I,{children:[
13
13
  /* @__PURE__ */A("div",{className:`border-t mx-3 mt-2 ${De.divider}`}),
14
14
  /* @__PURE__ */T("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[ee.map(e=>{const t=e.id===te;/* @__PURE__ */
15
15
  return T("div",{onClick:()=>oe(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
16
- /* @__PURE__ */A("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,_.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */A("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Le},children:/* @__PURE__ */A("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */A("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */A("circle",{cx:"12",cy:"12",r:"10"})})}),
16
+ /* @__PURE__ */A("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,_.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */A("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Ve},children:/* @__PURE__ */A("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */A("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */A("circle",{cx:"12",cy:"12",r:"10"})})}),
17
17
  /* @__PURE__ */A("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
18
18
  /* @__PURE__ */T("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
19
19
  /* @__PURE__ */A("span",{className:"font-bold text-gray-500",children:e.completed??0}),
20
20
  /* @__PURE__ */A("span",{className:"text-gray-400",children:" / "}),
21
21
  /* @__PURE__ */A("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
22
22
  /* @__PURE__ */T("div",{className:"relative",children:[
23
- /* @__PURE__ */A("button",{onClick:t=>{t.stopPropagation(),se(re===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */A(N,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),re===e.id&&/* @__PURE__ */A("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */A("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,_.removeTask(o),te===o&&oe(null),se(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */A(ce,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=_.addTask({name:o,estimated:t,completed:0,dueDate:q});te||oe(a),ne(!1)},onCancel:()=>ne(!1),accentColor:Le}):/* @__PURE__ */T("button",{onClick:()=>ne(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${De.addTaskBtn}`,children:[
23
+ /* @__PURE__ */A("button",{onClick:t=>{t.stopPropagation(),se(re===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */A(N,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),re===e.id&&/* @__PURE__ */A("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */A("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,_.removeTask(o),te===o&&oe(null),se(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */A(ce,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=_.addTask({name:o,estimated:t,completed:0,dueDate:q});te||oe(a),ne(!1)},onCancel:()=>ne(!1),accentColor:Ve}):/* @__PURE__ */T("button",{onClick:()=>ne(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${De.addTaskBtn}`,children:[
24
24
  /* @__PURE__ */A(N,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
25
25
  /* @__PURE__ */T("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${De.softDivider}`,children:[
26
26
  /* @__PURE__ */T("span",{className:De.secondary,children:["Pomos: ",
@@ -29,7 +29,7 @@ return T("div",{onClick:()=>oe(e.id),className:"bg-surface text-ink-strong round
29
29
  /* @__PURE__ */A("span",{className:`font-bold ${De.primary}`,children:de})]}),pe>0&&/* @__PURE__ */T("span",{className:De.secondary,children:["Finish At: ",
30
30
  /* @__PURE__ */A("span",{className:`font-bold ${De.primary}`,children:ge}),
31
31
  /* @__PURE__ */T("span",{className:De.muted,children:[" (",ke,"h)"]})]})]})]}),
32
- /* @__PURE__ */A(Q,{open:Ne,onClose:()=>Ce(!1),onSave:()=>{ye(Se),localStorage.setItem(P,JSON.stringify(Se)),f({pomodoro_settings:je}),Ce(!1)},configAppearance:Se,setConfigAppearance:we,configPrefs:je,setConfigPrefs:Be})]})}function Q({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
32
+ /* @__PURE__ */A(K,{open:Ne,onClose:()=>Ce(!1),onSave:()=>{ye(Se),localStorage.setItem(P,JSON.stringify(Se)),f({pomodoro_settings:je}),Ce(!1)},configAppearance:Se,setConfigAppearance:we,configPrefs:je,setConfigPrefs:Be})]})}function K({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
33
33
  return T(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:a,children:[
34
34
  /* @__PURE__ */T(z,{icon:/* @__PURE__ */A(se,{}),label:"TIMER",children:[
35
35
  /* @__PURE__ */T("div",{children:[