@factorialco/f0-react 16.2.0 → 16.7.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 (144) hide show
  1. package/dist/{ArchiveThumbnail-D-4c2HTz.js → ArchiveThumbnail-DxxGStkI.js} +3 -3
  2. package/dist/{ArchiveViewer-6AIrLkTU.js → ArchiveViewer-nuxVYoSA.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-YDBKuWMs.js → ChatPostComposerDialog-B-n-Hqds.js} +3 -3
  4. package/dist/{CoachmarkProvider-CG8_5mZi.js → CoachmarkProvider-BGx__lPw.js} +15148 -15129
  5. package/dist/{CodeThumbnail-wORziixS.js → CodeThumbnail-DqH5gHZu.js} +2 -2
  6. package/dist/{CodeViewer-Btp4H9Tv.js → CodeViewer-T59a8NjB.js} +8 -8
  7. package/dist/{DocumentToolbar-DWq7Zg1o.js → DocumentToolbar-Dylh5Ap4.js} +5 -5
  8. package/dist/{DocxThumbnail-CK9vFoTB.js → DocxThumbnail-Dmiz9_9a.js} +1 -1
  9. package/dist/{DocxViewer-BR0FDQFa.js → DocxViewer-7n-AYpP4.js} +4 -4
  10. package/dist/{F0AiProcessingOverlay-BGAmf_ch.js → F0AiProcessingOverlay-ODrQ_8Bz.js} +1447 -1447
  11. package/dist/{F0Alert-CH3tkbEc.js → F0Alert-Ck3zBYdd.js} +12 -12
  12. package/dist/F0AudioPlayer-DadfbJQp.js +2 -0
  13. package/dist/{F0Button-BCWiHDDV.js → F0Button-K-Tsj-wR.js} +2655 -2655
  14. package/dist/{F0CanvasPanel-lWi0R2Ct.js → F0CanvasPanel-8sSInjUf.js} +6522 -6522
  15. package/dist/{F0DocumentViewer-DbvYrP07.js → F0DocumentViewer-BrWkziLK.js} +6 -6
  16. package/dist/{F0DocumentViewer-CdDwxxRr.js → F0DocumentViewer-CAHZnuNS.js} +1 -1
  17. package/dist/{F0Icon-C0Ks-zGo.js → F0Icon-BBCAaVEn.js} +3 -3
  18. package/dist/{F0Map-DT14cjTW.js → F0Map-DvLUX9Ft.js} +17 -17
  19. package/dist/{F0Select-CPIJ4yN6.js → F0Select-FocuIygc.js} +350 -313
  20. package/dist/{F0Text-MqvXgPpZ.js → F0Text-40EQGsxS.js} +2 -2
  21. package/dist/{F0VideoPlayer-ClfVqxVy.js → F0VideoPlayer-7r47FGZM.js} +29 -29
  22. package/dist/F0VideoPlayer-CZ2o-kkq.js +1 -0
  23. package/dist/{HtmlThumbnail-RLEVY9G9.js → HtmlThumbnail-B9Gz3J8v.js} +1 -1
  24. package/dist/{HtmlViewer-BFIty3Uq.js → HtmlViewer-CCBntGYz.js} +10 -10
  25. package/dist/{LayoutGroup-Bc1Iudo_.js → LayoutGroup-B8iuK3D7.js} +6 -6
  26. package/dist/{LocationMap-Ds0SgBMO.js → LocationMap-CRcaItG1.js} +1 -1
  27. package/dist/{Map-C68icVU0.js → Map-D-WSG3i2.js} +11 -11
  28. package/dist/{PdfThumbnail-DMtXVsHe.js → PdfThumbnail-etMVzOej.js} +1 -1
  29. package/dist/PdfViewer-N8tnidrx.js +345 -0
  30. package/dist/{SandboxedHtmlFrame-BNNZgkcF.js → SandboxedHtmlFrame-DYYjEWYn.js} +3 -3
  31. package/dist/{SheetThumbnail-HtGezPp4.js → SheetThumbnail-BkHpWfUx.js} +1 -1
  32. package/dist/{SheetViewer-TByL8ZDC.js → SheetViewer-DyNij5aV.js} +6 -6
  33. package/dist/{TextViewer-IN4Yxidv.js → TextViewer-Cb52tMok.js} +4 -4
  34. package/dist/ai.d.ts +3 -3
  35. package/dist/ai.js +4 -4
  36. package/dist/{axe-CpDXsSXe.js → axe-BBhXfUWo.js} +1 -1
  37. package/dist/{bash-BcZBmoDA.js → bash-D6uqvgOi.js} +1 -1
  38. package/dist/{browser-DU608quv.js → browser-C-vE8YPD.js} +1 -1
  39. package/dist/{browser-Chetd4xB.js → browser-DqmpbuJ2.js} +79 -79
  40. package/dist/{c-Dv-5_kUQ.js → c-BCnJboA_.js} +1 -1
  41. package/dist/{compact-CzGBEjf8.js → compact-9OtitSAw.js} +1 -1
  42. package/dist/{compact-Qms4WvjZ.js → compact-B2rHEFaN.js} +1 -1
  43. package/dist/{compact-dMl1Bapz.js → compact-BHSxoSFn.js} +1 -1
  44. package/dist/{compact-zPPgKFcT.js → compact-BKem4xoK.js} +1 -1
  45. package/dist/{compact-Dgm7WZm4.js → compact-BplUl26Q.js} +1 -1
  46. package/dist/{compact-BSMrd_is.js → compact-Bw8Vwg5U.js} +1 -1
  47. package/dist/{compact-DmKqtNtX.js → compact-Bx9aL9XJ.js} +1 -1
  48. package/dist/{compact-nSZlZM3P.js → compact-CUhC2S_R.js} +1 -1
  49. package/dist/{compact-uUc-DLEN.js → compact-C_87Kf8C.js} +1 -1
  50. package/dist/{compact-0GS3nMlK.js → compact-Cltlx5En.js} +1 -1
  51. package/dist/{compact-BoPwI23t.js → compact-Cn7H9IVm.js} +1 -1
  52. package/dist/{compact-ZDmzUHcP.js → compact-Cq0dqu3o.js} +1 -1
  53. package/dist/{compact-DdztPfef.js → compact-Ct1noWQi.js} +1 -1
  54. package/dist/{compact-Z0NBHrB2.js → compact-DHrmqzo_.js} +1 -1
  55. package/dist/{compact-CAU854By.js → compact-DWIIs9Wa.js} +1 -1
  56. package/dist/{compact-wGaWbKfv.js → compact-DZf6oE2C.js} +1 -1
  57. package/dist/{compact-DzI2x9BY.js → compact-D_yZkU5y.js} +1 -1
  58. package/dist/{compact-B8nnWkSZ.js → compact-DqFVrM7r.js} +1 -1
  59. package/dist/{compact-CPJg_obs.js → compact-Dv0883Un.js} +1 -1
  60. package/dist/{compact-DTl-y6_A.js → compact-TSPmz689.js} +1 -1
  61. package/dist/{compact-BRO-o3bX.js → compact-ULCTY6Hb.js} +1 -1
  62. package/dist/{compact-20h_4e0l.js → compact-VnA-DCWx.js} +1 -1
  63. package/dist/{compact-e3mEwDvq.js → compact-hWCoVvbh.js} +1 -1
  64. package/dist/{compact-CR-ykoh8.js → compact-kkgLvbns.js} +1 -1
  65. package/dist/{compact-D0Nw81Jx.js → compact-tvpEcaFg.js} +1 -1
  66. package/dist/{compact-CAbl_-c3.js → compact-xAoRyROm.js} +1 -1
  67. package/dist/{compact-B2VEEW0d.js → compact-zh_DdrKL.js} +1 -1
  68. package/dist/component-status.js +42 -20
  69. package/dist/{cpp-CMQhucZt.js → cpp-Cd4fuO4E.js} +1 -1
  70. package/dist/{csharp-CuDKSCf2.js → csharp-_44-H2ZN.js} +1 -1
  71. package/dist/{css-Dta7Q4Li.js → css-DQyhasvg.js} +1 -1
  72. package/dist/{dart-po7Eq73d.js → dart-CRIQ97dd.js} +1 -1
  73. package/dist/{diff-IgsQP-8T.js → diff-BhZeLM8Q.js} +1 -1
  74. package/dist/{dist-BKmw8oWk.js → dist-Bqn2Tvbv.js} +4 -4
  75. package/dist/{dist-Bdbhtnvl.js → dist-DQLaXxAV.js} +2 -2
  76. package/dist/{dist-CAC7X0BZ.js → dist-DT2eYug9.js} +2 -2
  77. package/dist/{dist-BEGjI3Xp.js → dist-RnbZP6nJ.js} +5 -5
  78. package/dist/{dist-Dt-cTb6D.js → dist-ZjZbrLOW.js} +1 -1
  79. package/dist/{dist-DFNqqmLn.js → dist-jtkUGoUE.js} +15 -15
  80. package/dist/{dockerfile-B4Bz9I5u.js → dockerfile-DbFV5Pbz.js} +1 -1
  81. package/dist/{dos-1TcyLtUq.js → dos-VxE5JslU.js} +1 -1
  82. package/dist/{elixir-BnEjyLGa.js → elixir-DS-uBoZN.js} +1 -1
  83. package/dist/{erlang-tgri7ZSv.js → erlang-Bx_duAAA.js} +1 -1
  84. package/dist/experimental.d.ts +119 -5
  85. package/dist/experimental.js +7009 -6332
  86. package/dist/{exports-BCwj4qmp.d.ts → exports-DyepZL4X.d.ts} +1 -1
  87. package/dist/f0.d.ts +4 -4
  88. package/dist/f0.js +187 -187
  89. package/dist/{go-CEVmppuo.js → go-BhmEjBcc.js} +1 -1
  90. package/dist/{graphql-BWwc-u8d.js → graphql-CGE5MRvH.js} +1 -1
  91. package/dist/{groovy-BELuqtd6.js → groovy-BNCfr4d_.js} +1 -1
  92. package/dist/{haskell-Cxh7aaFM.js → haskell-DBbEfzb-.js} +1 -1
  93. package/dist/{highlight-MHlQa3or.js → highlight-BmHT5bVt.js} +43 -43
  94. package/dist/{i18n-provider-DoTL-0tJ.js → i18n-provider-B3-P0gAN.js} +1 -1
  95. package/dist/{i18n-provider-defaults-ZqFx7uFw.js → i18n-provider-defaults-D4jZJwqk.js} +23 -0
  96. package/dist/{i18n-provider-defaults-BkNbvakp.d.ts → i18n-provider-defaults-DDg-0uul.d.ts} +37 -0
  97. package/dist/i18n-provider-defaults.d.ts +1 -1
  98. package/dist/i18n-provider-defaults.js +1 -1
  99. package/dist/{index-DyzQfXF1.d.ts → index-Bon-AuSX.d.ts} +44 -11
  100. package/dist/{ini-DA-F0rRr.js → ini-BI-Hrf-H.js} +1 -1
  101. package/dist/{java-Bujnoc_f.js → java-BsqDt9nV.js} +1 -1
  102. package/dist/{javascript-BeEhpXRE.js → javascript-BgkjyjxN.js} +1 -1
  103. package/dist/{json-CxvE7tEw.js → json-BdZjX9S-.js} +1 -1
  104. package/dist/{kotlin-DOwDGI_m.js → kotlin-C6y-Vaus.js} +1 -1
  105. package/dist/{less-DWlR-e-o.js → less-YAR6amXX.js} +1 -1
  106. package/dist/{lua-BlZiakwh.js → lua-DIMsJDpR.js} +1 -1
  107. package/dist/{makefile-D3841Yg4.js → makefile-CV_MU-6b.js} +1 -1
  108. package/dist/{maplibre-BPuVdfhS.js → maplibre-CBdPIfGt.js} +3 -3
  109. package/dist/{maplibre-gl-DVldSYfz.js → maplibre-gl-C9VxucUv.js} +1 -1
  110. package/dist/{markdown-D1wNG79U.js → markdown-ZTJ3lhtO.js} +1 -1
  111. package/dist/{objectivec-DxtRzTBy.js → objectivec-DWqUivqh.js} +1 -1
  112. package/dist/{papaparse.min-BwPbUAd9.js → papaparse.min-Do443n2P.js} +1 -1
  113. package/dist/{pdfWorker-CzU4sprQ.js → pdfWorker-GOiDQZal.js} +21 -21
  114. package/dist/{perl-BWRmkuyz.js → perl-BKXDDb_i.js} +1 -1
  115. package/dist/{php-CjwybYSP.js → php-AuFdNkWE.js} +1 -1
  116. package/dist/{popover-CCSQvMSp.js → popover-Fe5Kn3Xb.js} +34 -34
  117. package/dist/{powershell-CgKcNA5Q.js → powershell-DRZ15pam.js} +1 -1
  118. package/dist/{properties-Bc45MTzW.js → properties-BkNZPRIs.js} +1 -1
  119. package/dist/{protobuf-Bv_xSUaI.js → protobuf-Cmcso0sU.js} +1 -1
  120. package/dist/{purify.es-ZpfdAuNV.js → purify.es-CJ7gZxxn.js} +1 -1
  121. package/dist/{python-D8PdGjgy.js → python-BG1HaU2o.js} +1 -1
  122. package/dist/{r-DA-9ZIdU.js → r-DyjJi7NZ.js} +1 -1
  123. package/dist/{renderDocx-BW-uDyaZ.js → renderDocx-BmKEajZl.js} +1 -1
  124. package/dist/{ruby-Bqr16BpN.js → ruby-CQGuF5Ox.js} +1 -1
  125. package/dist/{rust-BCvJMwk8.js → rust-Ct4XXXd3.js} +1 -1
  126. package/dist/{scala-Du8mOD2z.js → scala-DsjkmjHJ.js} +1 -1
  127. package/dist/{scss-AMxHqh46.js → scss-De8s5ohp.js} +1 -1
  128. package/dist/{sheetPreview-Ca0kCtSa.js → sheetPreview-Cd5OSWJi.js} +35 -35
  129. package/dist/{skeleton-BsalZgC5.js → skeleton-C-H2S5ZI.js} +2 -2
  130. package/dist/{sql-BbYSgcOA.js → sql-Bd1o6RCN.js} +1 -1
  131. package/dist/styles.css +1 -1
  132. package/dist/{swift-DRKtalPn.js → swift-ushwDHmu.js} +1 -1
  133. package/dist/{toolbarStyles-CDHbnt8G.js → toolbarStyles-BAunJtAw.js} +2 -2
  134. package/dist/{tooltip-DFMOxXQO.js → tooltip-NXXT56H4.js} +84 -84
  135. package/dist/{types-D1p-rbhL.d.ts → types-B_RODWSZ.d.ts} +13 -4
  136. package/dist/{typescript-Bv8uKU6V.js → typescript-BRJ7pjgl.js} +1 -1
  137. package/dist/{useData-BtGI0HO3.js → useData-CKJGQ0mx.js} +981 -996
  138. package/dist/{xml-BVpP05uE.js → xml-CN1oK3nr.js} +1 -1
  139. package/dist/{yaml-BNe2WG-i.js → yaml-CpyaOGsC.js} +1 -1
  140. package/package.json +49 -62
  141. package/tailwind.config.ts +34 -2
  142. package/dist/F0AudioPlayer-Bz4IHMqq.js +0 -2
  143. package/dist/F0VideoPlayer-CnWbe7pg.js +0 -1
  144. package/dist/PdfViewer-DkIM1R9R.js +0 -296
@@ -1,5 +1,5 @@
1
- import { a as e } from "./i18n-provider-DoTL-0tJ.js";
2
- import { y as t } from "./dist-DFNqqmLn.js";
1
+ import { a as e } from "./i18n-provider-B3-P0gAN.js";
2
+ import { y as t } from "./dist-jtkUGoUE.js";
3
3
  import { forwardRef as n } from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  //#region src/elements/F0Text/F0Text.tsx
@@ -1,12 +1,12 @@
1
- import { a as e, r as t } from "./i18n-provider-DoTL-0tJ.js";
2
- import { n } from "./skeleton-BsalZgC5.js";
3
- import { L as r, R as i } from "./tooltip-DFMOxXQO.js";
4
- import { t as a } from "./F0Button-BCWiHDDV.js";
5
- import { $o as o, Cs as s, Ic as c, Xs as l, bc as u, es as d, rc as f, ts as p } from "./F0CanvasPanel-lWi0R2Ct.js";
6
- import { n as m, t as h } from "./F0Icon-C0Ks-zGo.js";
1
+ import { a as e, r as t } from "./i18n-provider-B3-P0gAN.js";
2
+ import { n } from "./skeleton-C-H2S5ZI.js";
3
+ import { L as r, R as i } from "./tooltip-NXXT56H4.js";
4
+ import { t as a } from "./F0Button-K-Tsj-wR.js";
5
+ import { $s as o, Cc as s, Es as c, is as l, ns as u, oc as d, rs as f, zc as p } from "./F0CanvasPanel-8sSInjUf.js";
6
+ import { n as m, t as h } from "./F0Icon-BBCAaVEn.js";
7
7
  import { t as g } from "./Check-DAp9gCRh.js";
8
8
  import { a as _, i as v, n as y, o as b, r as x, t as S } from "./localized-CnKvEJya.js";
9
- import { S as C, _ as w, a as T, b as E, d as D, f as O, g as k, i as A, t as j, v as M, w as ee, x as te } from "./popover-CCSQvMSp.js";
9
+ import { S as C, _ as w, a as T, b as E, d as D, f as O, g as k, i as A, t as j, v as M, w as ee, x as te } from "./popover-Fe5Kn3Xb.js";
10
10
  import { t as ne } from "./useFullscreen-CNwpzjpz.js";
11
11
  import { forwardRef as N, useCallback as P, useEffect as F, useId as I, useMemo as L, useRef as R, useState as z } from "react";
12
12
  import { jsx as B, jsxs as V } from "react/jsx-runtime";
@@ -323,7 +323,7 @@ function $({ icon: e, label: t, container: n, options: r, value: i, onLanguageCh
323
323
  })
324
324
  })] });
325
325
  }
326
- function de({ containerRef: e, audioLanguages: n, audioLanguage: r, onAudioLanguageChange: i, captionLanguages: o, captionLanguage: c, captionsOn: l, onCaptionLanguageChange: d, onCaptionsOff: f, audioDescriptionLanguages: p, audioDescriptionLanguage: m, audioDescriptionOn: h, onAudioDescriptionLanguageChange: g, onAudioDescriptionOff: _ }) {
326
+ function de({ containerRef: e, audioLanguages: n, audioLanguage: r, onAudioLanguageChange: i, captionLanguages: o, captionLanguage: l, captionsOn: u, onCaptionLanguageChange: d, onCaptionsOff: f, audioDescriptionLanguages: p, audioDescriptionLanguage: m, audioDescriptionOn: h, onAudioDescriptionLanguageChange: g, onAudioDescriptionOff: _ }) {
327
327
  let { t: v } = t(), y = e.current, b = v("videoPlayer.off");
328
328
  return /* @__PURE__ */ V(D, { children: [/* @__PURE__ */ B(ee, {
329
329
  asChild: !0,
@@ -331,7 +331,7 @@ function de({ containerRef: e, audioLanguages: n, audioLanguage: r, onAudioLangu
331
331
  variant: "ghost",
332
332
  size: "sm",
333
333
  hideLabel: !0,
334
- icon: s,
334
+ icon: c,
335
335
  label: v("videoPlayer.settings")
336
336
  })
337
337
  }), /* @__PURE__ */ V(O, {
@@ -341,7 +341,7 @@ function de({ containerRef: e, audioLanguages: n, audioLanguage: r, onAudioLangu
341
341
  className: ue,
342
342
  children: [
343
343
  n.length > 1 ? /* @__PURE__ */ B($, {
344
- icon: u,
344
+ icon: s,
345
345
  label: v("videoPlayer.audio"),
346
346
  container: y,
347
347
  options: n,
@@ -354,8 +354,8 @@ function de({ containerRef: e, audioLanguages: n, audioLanguage: r, onAudioLangu
354
354
  label: v("videoPlayer.subtitles"),
355
355
  container: y,
356
356
  options: o,
357
- value: c,
358
- on: l,
357
+ value: l,
358
+ on: u,
359
359
  onLanguageChange: d,
360
360
  onOff: f,
361
361
  offLabel: b
@@ -380,28 +380,28 @@ function fe(e) {
380
380
  //#endregion
381
381
  //#region src/blocks/F0VideoPlayer/components/VolumeControl.tsx
382
382
  function pe(e, t) {
383
- return t || e === 0 ? o : e <= .5 ? d : p;
383
+ return t || e === 0 ? u : e <= .5 ? f : l;
384
384
  }
385
- function me({ volume: e, isMuted: n, onToggleMute: r, onVolumeChange: i, silent: s = !1 }) {
386
- let { t: c } = t(), l = n || e === 0;
387
- return s ? /* @__PURE__ */ B(a, {
385
+ function me({ volume: e, isMuted: n, onToggleMute: r, onVolumeChange: i, silent: o = !1 }) {
386
+ let { t: s } = t(), c = n || e === 0;
387
+ return o ? /* @__PURE__ */ B(a, {
388
388
  variant: "ghost",
389
389
  size: "sm",
390
390
  hideLabel: !0,
391
391
  disabled: !0,
392
- icon: o,
393
- label: c("videoPlayer.noAudio")
392
+ icon: u,
393
+ label: s("videoPlayer.noAudio")
394
394
  }) : /* @__PURE__ */ V("div", {
395
395
  className: "flex items-center gap-1",
396
396
  children: [/* @__PURE__ */ B(a, {
397
397
  variant: "ghost",
398
398
  size: "sm",
399
399
  hideLabel: !0,
400
- icon: pe(e, l),
401
- label: c(l ? "videoPlayer.unmute" : "videoPlayer.mute"),
400
+ icon: pe(e, c),
401
+ label: s(c ? "videoPlayer.unmute" : "videoPlayer.mute"),
402
402
  onClick: r
403
403
  }), /* @__PURE__ */ B(he, {
404
- value: l ? 0 : e,
404
+ value: c ? 0 : e,
405
405
  onChange: i
406
406
  })]
407
407
  });
@@ -470,7 +470,7 @@ function he({ value: e, onChange: n }) {
470
470
  }
471
471
  //#endregion
472
472
  //#region src/blocks/F0VideoPlayer/components/Controls.tsx
473
- function ge({ isPlaying: e, currentTime: n, duration: i, volume: o, isMuted: s, playbackRate: u, isFullscreen: d, markerTime: p, blockSeekPastMarker: m, containerRef: h, captionsAvailable: g, captionsOn: v, audioDescriptionAvailable: y, audioDescriptionOn: x, silent: S, persist: C, audioLanguages: w, audioLanguage: T, onAudioLanguageChange: E, captionLanguages: D, captionLanguage: O, onCaptionLanguageChange: k, onCaptionsOff: A, audioDescriptionLanguages: j, audioDescriptionLanguage: M, onAudioDescriptionLanguageChange: ee, onAudioDescriptionOff: te, onTogglePlay: ne, onToggleMute: N, onVolumeChange: P, onPlaybackRateChange: F, onToggleFullscreen: I, onToggleCaptions: L, onToggleAudioDescription: R, onSeek: z, download: H }) {
473
+ function ge({ isPlaying: e, currentTime: n, duration: i, volume: s, isMuted: c, playbackRate: l, isFullscreen: u, markerTime: f, blockSeekPastMarker: m, containerRef: h, captionsAvailable: g, captionsOn: v, audioDescriptionAvailable: y, audioDescriptionOn: x, silent: S, persist: C, audioLanguages: w, audioLanguage: T, onAudioLanguageChange: E, captionLanguages: D, captionLanguage: O, onCaptionLanguageChange: k, onCaptionsOff: A, audioDescriptionLanguages: j, audioDescriptionLanguage: M, onAudioDescriptionLanguageChange: ee, onAudioDescriptionOff: te, onTogglePlay: ne, onToggleMute: N, onVolumeChange: P, onPlaybackRateChange: F, onToggleFullscreen: I, onToggleCaptions: L, onToggleAudioDescription: R, onSeek: z, download: H }) {
474
474
  let { t: U } = t(), re = g && D.length <= 1, W = y && j.length <= 1, G = fe({
475
475
  audioLanguages: w.length,
476
476
  captionLanguages: D.length,
@@ -490,7 +490,7 @@ function ge({ isPlaying: e, currentTime: n, duration: i, volume: o, isMuted: s,
490
490
  /* @__PURE__ */ B(se, {
491
491
  currentTime: n,
492
492
  duration: i,
493
- markerTime: p,
493
+ markerTime: f,
494
494
  blockSeekPastMarker: m,
495
495
  onSeek: z
496
496
  }),
@@ -503,14 +503,14 @@ function ge({ isPlaying: e, currentTime: n, duration: i, volume: o, isMuted: s,
503
503
  ]
504
504
  }),
505
505
  /* @__PURE__ */ B(me, {
506
- volume: o,
507
- isMuted: s,
506
+ volume: s,
507
+ isMuted: c,
508
508
  onToggleMute: N,
509
509
  onVolumeChange: P,
510
510
  silent: S
511
511
  }),
512
512
  /* @__PURE__ */ B(oe, {
513
- value: u,
513
+ value: l,
514
514
  onChange: F,
515
515
  containerRef: h
516
516
  }),
@@ -552,7 +552,7 @@ function ge({ isPlaying: e, currentTime: n, duration: i, volume: o, isMuted: s,
552
552
  variant: "ghost",
553
553
  size: "sm",
554
554
  hideLabel: !0,
555
- icon: c,
555
+ icon: p,
556
556
  label: H.label,
557
557
  onClick: H.onClick
558
558
  }) : null,
@@ -560,8 +560,8 @@ function ge({ isPlaying: e, currentTime: n, duration: i, volume: o, isMuted: s,
560
560
  variant: "ghost",
561
561
  size: "sm",
562
562
  hideLabel: !0,
563
- icon: d ? l : f,
564
- label: U(d ? "videoPlayer.exitFullscreen" : "videoPlayer.enterFullscreen"),
563
+ icon: u ? o : d,
564
+ label: U(u ? "videoPlayer.exitFullscreen" : "videoPlayer.enterFullscreen"),
565
565
  onClick: I
566
566
  })
567
567
  ]
@@ -0,0 +1 @@
1
+ export { t as F0VideoPlayer } from "./F0VideoPlayer-7r47FGZM.js";
@@ -1,4 +1,4 @@
1
- import { n as e } from "./SandboxedHtmlFrame-BNNZgkcF.js";
1
+ import { n as e } from "./SandboxedHtmlFrame-DYYjEWYn.js";
2
2
  import { t } from "./useThumbnailText-DwXQvLIe.js";
3
3
  import { useEffect as n, useMemo as r, useState as i } from "react";
4
4
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -1,14 +1,14 @@
1
- import { r as e } from "./i18n-provider-DoTL-0tJ.js";
2
- import { t } from "./skeleton-BsalZgC5.js";
3
- import { L as n } from "./tooltip-DFMOxXQO.js";
4
- import { ll as r } from "./F0CanvasPanel-lWi0R2Ct.js";
5
- import { t as i } from "./F0Icon-C0Ks-zGo.js";
6
- import { pr as a } from "./F0Select-CPIJ4yN6.js";
7
- import { t as o } from "./F0Alert-CH3tkbEc.js";
8
- import { r as s } from "./toolbarStyles-CDHbnt8G.js";
9
- import { t as c } from "./DocumentToolbar-DWq7Zg1o.js";
1
+ import { r as e } from "./i18n-provider-B3-P0gAN.js";
2
+ import { t } from "./skeleton-C-H2S5ZI.js";
3
+ import { L as n } from "./tooltip-NXXT56H4.js";
4
+ import { fl as r } from "./F0CanvasPanel-8sSInjUf.js";
5
+ import { t as i } from "./F0Icon-BBCAaVEn.js";
6
+ import { pr as a } from "./F0Select-FocuIygc.js";
7
+ import { t as o } from "./F0Alert-Ck3zBYdd.js";
8
+ import { r as s } from "./toolbarStyles-BAunJtAw.js";
9
+ import { t as c } from "./DocumentToolbar-Dylh5Ap4.js";
10
10
  import { t as l } from "./useFetchedText-BR3_KLXx.js";
11
- import { a as u, c as d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./SandboxedHtmlFrame-BNNZgkcF.js";
11
+ import { a as u, c as d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./SandboxedHtmlFrame-DYYjEWYn.js";
12
12
  import { useEffect as b, useMemo as x, useRef as S, useState as C } from "react";
13
13
  import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
14
14
  //#region src/addons/documents/lib/html-sandbox/UserContentFrame.tsx
@@ -1,7 +1,7 @@
1
- import { Ct as e, Ft as t, Lt as n } from "./F0Button-BCWiHDDV.js";
1
+ import { Ct as e, Ft as t, Lt as n } from "./F0Button-K-Tsj-wR.js";
2
2
  import { createContext as r, useCallback as i, useContext as a, useMemo as o, useRef as s, useState as c } from "react";
3
3
  import { jsx as l } from "react/jsx-runtime";
4
- //#region ../../node_modules/.pnpm/motion-dom@12.43.0/node_modules/motion-dom/dist/es/projection/node/group.mjs
4
+ //#region ../../node_modules/.bun/motion-dom@12.43.0/node_modules/motion-dom/dist/es/projection/node/group.mjs
5
5
  var u = (e) => !e.isLayoutDirty && e.willUpdate(!1);
6
6
  function d() {
7
7
  let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(u);
@@ -18,10 +18,10 @@ function d() {
18
18
  };
19
19
  }
20
20
  //#endregion
21
- //#region ../../node_modules/.pnpm/framer-motion@12.43.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
21
+ //#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
22
22
  var f = r(null);
23
23
  //#endregion
24
- //#region ../../node_modules/.pnpm/framer-motion@12.43.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
24
+ //#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
25
25
  function p() {
26
26
  let e = s(!1);
27
27
  return t(() => (e.current = !0, () => {
@@ -29,7 +29,7 @@ function p() {
29
29
  }), []), e;
30
30
  }
31
31
  //#endregion
32
- //#region ../../node_modules/.pnpm/framer-motion@12.43.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-force-update.mjs
32
+ //#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/utils/use-force-update.mjs
33
33
  function m() {
34
34
  let t = p(), [n, r] = c(0), a = i(() => {
35
35
  t.current && r(n + 1);
@@ -37,7 +37,7 @@ function m() {
37
37
  return [i(() => e.postRender(a), [a]), n];
38
38
  }
39
39
  //#endregion
40
- //#region ../../node_modules/.pnpm/framer-motion@12.43.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs
40
+ //#region ../../node_modules/.bun/framer-motion@12.43.0+90584e9f7c97d403/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs
41
41
  var h = (e) => e === !0, g = (e) => h(e === !0) || e === "id", _ = ({ children: e, id: t, inherit: r = !0 }) => {
42
42
  let i = a(n), c = a(f), [u, p] = m(), _ = s(null), v = i.id || c;
43
43
  _.current === null && (g(r) && v && (t = t ? v + "-" + t : v), _.current = {
@@ -1,5 +1,5 @@
1
1
  import { o as e } from "./rolldown-runtime-BItFwnF5.js";
2
- import { t } from "./maplibre-gl-DVldSYfz.js";
2
+ import { t } from "./maplibre-gl-C9VxucUv.js";
3
3
  import { useEffect as n, useRef as r, useState as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  //#region src/domains/platform/communications/chat/F0Chat/components/LocationMap.tsx
@@ -1,14 +1,14 @@
1
- import { Mt as e, Nt as t } from "./CoachmarkProvider-CG8_5mZi.js";
2
- import { r as n } from "./i18n-provider-DoTL-0tJ.js";
3
- import { L as r, R as i } from "./tooltip-DFMOxXQO.js";
4
- import { E as a } from "./F0Button-BCWiHDDV.js";
5
- import { Gi as o, Ui as s, Wi as c } from "./F0CanvasPanel-lWi0R2Ct.js";
6
- import { t as l } from "./F0Icon-C0Ks-zGo.js";
7
- import { W as u, l as d } from "./useData-BtGI0HO3.js";
8
- import { J as ee } from "./popover-CCSQvMSp.js";
9
- import { y as f } from "./dist-DFNqqmLn.js";
10
- import { t as p } from "./F0Text-MqvXgPpZ.js";
11
- import { o as m, t as h } from "./F0Map-DT14cjTW.js";
1
+ import { Mt as e, Nt as t } from "./CoachmarkProvider-BGx__lPw.js";
2
+ import { r as n } from "./i18n-provider-B3-P0gAN.js";
3
+ import { L as r, R as i } from "./tooltip-NXXT56H4.js";
4
+ import { E as a } from "./F0Button-K-Tsj-wR.js";
5
+ import { Gi as o, Ui as s, Wi as c } from "./F0CanvasPanel-8sSInjUf.js";
6
+ import { t as l } from "./F0Icon-BBCAaVEn.js";
7
+ import { W as u, l as d } from "./useData-CKJGQ0mx.js";
8
+ import { J as ee } from "./popover-Fe5Kn3Xb.js";
9
+ import { y as f } from "./dist-jtkUGoUE.js";
10
+ import { t as p } from "./F0Text-40EQGsxS.js";
11
+ import { o as m, t as h } from "./F0Map-DvLUX9Ft.js";
12
12
  import { useCallback as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
13
13
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
14
14
  //#region src/addons/data-collection/OneDataCollection/visualizations/collection/Map/components/MapNotOnMapButton.tsx
@@ -1,4 +1,4 @@
1
- import { n as e, r as t, t as n } from "./pdfWorker-CzU4sprQ.js";
1
+ import { n as e, r as t, t as n } from "./pdfWorker-GOiDQZal.js";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  //#region src/elements/primitives/_primitives/F0Attachments/components/thumbnails/PdfThumbnail.tsx
4
4
  n();
@@ -0,0 +1,345 @@
1
+ import { r as e } from "./i18n-provider-B3-P0gAN.js";
2
+ import { t } from "./skeleton-C-H2S5ZI.js";
3
+ import { L as n } from "./tooltip-NXXT56H4.js";
4
+ import { C as r, v as i } from "./F0Button-K-Tsj-wR.js";
5
+ import { Ds as a, Ps as o, zc as s } from "./F0CanvasPanel-8sSInjUf.js";
6
+ import { V as c, W as l } from "./useData-CKJGQ0mx.js";
7
+ import { dr as u, t as d, wr as f } from "./F0Select-FocuIygc.js";
8
+ import { a as p, i as m, l as ee, n as te, o as ne, r as h, s as re, t as g, u as _ } from "./toolbarStyles-BAunJtAw.js";
9
+ import { n as ie, r as ae, t as v } from "./pdfWorker-GOiDQZal.js";
10
+ import { forwardRef as y, useCallback as b, useEffect as x, useMemo as S, useRef as C, useState as w } from "react";
11
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
12
+ //#region src/addons/documents/F0DocumentViewer/crispCanvas.ts
13
+ var D = (e, t) => t ? (O(e, t) + .001) / t : e, O = (e, t) => Math.round(t * e), oe = (e, t, n) => O(e, n) === O(t, n), se = (e, t = window.devicePixelRatio || 1) => {
14
+ e && e.width !== 0 && e.height !== 0 && (e.style.width = `${e.width / t}px`, e.style.height = `${e.height / t}px`);
15
+ };
16
+ //#endregion
17
+ //#region src/addons/documents/F0DocumentViewer/useNearbyPages.ts
18
+ function ce(e, t, n) {
19
+ let r = (n ?? 0) <= 2, [i, a] = w(/* @__PURE__ */ new Set());
20
+ return x(function() {
21
+ let n = e.current;
22
+ if (r || !n || !t.current) return;
23
+ let i = /* @__PURE__ */ new Map(), o = new IntersectionObserver((e) => {
24
+ a((t) => {
25
+ let n = new Set(t);
26
+ for (let t of e) {
27
+ let e = i.get(t.target);
28
+ e !== void 0 && (t.isIntersecting ? n.add(e) : n.delete(e));
29
+ }
30
+ return n;
31
+ });
32
+ }, {
33
+ root: n,
34
+ rootMargin: "600px 0px"
35
+ });
36
+ return t.current.forEach((e, t) => {
37
+ e && (i.set(e, t), o.observe(e));
38
+ }), () => o.disconnect();
39
+ }, [
40
+ e,
41
+ t,
42
+ n,
43
+ r
44
+ ]), (e) => r || i.has(e);
45
+ }
46
+ //#endregion
47
+ //#region src/addons/documents/F0DocumentViewer/visiblePage.ts
48
+ var le = (e, t, n) => {
49
+ let r = null, i = 0;
50
+ return t.forEach((t, a) => {
51
+ if (!t) return;
52
+ let o = t.offsetHeight, s = t.offsetTop, c = s + o, l = e.offsetHeight - n, u = e.scrollTop + n, d = u + l;
53
+ if (!(u < c && d > s)) return;
54
+ let f;
55
+ if (u <= s) f = d > c ? o : d - s;
56
+ else {
57
+ let e = u - s;
58
+ d < c && (e += c - d), f = o - e;
59
+ }
60
+ f > i && (i = f, r = a + 1);
61
+ }), r;
62
+ }, ue = ({ label: e, width: n, height: r }) => /* @__PURE__ */ T("div", {
63
+ role: "status",
64
+ "aria-label": e,
65
+ "aria-live": "polite",
66
+ "aria-busy": !0,
67
+ className: "F0DocumentViewer__page mx-auto w-fit px-4 pt-4 last:pb-4",
68
+ children: /* @__PURE__ */ T(t, {
69
+ style: {
70
+ width: n,
71
+ height: r
72
+ },
73
+ className: "rounded-lg border border-solid border-f1-border-secondary shadow-md"
74
+ })
75
+ }), k = ({ toolbarRef: t, currentPage: r, totalPages: i, hasDocument: p, selectedScale: m, scaleOptions: ee, onPreviousPage: ne, onNextPage: re, onZoomIn: _, onZoomOut: ie, onScaleChange: ae, rotatable: v, onRotate: y, onPrint: b, onDownload: x, hideDownload: S = !1, actions: C, placement: w }) => {
76
+ let { pdfViewer: D } = e(), O = te(w);
77
+ return /* @__PURE__ */ E("div", {
78
+ ref: t,
79
+ role: "toolbar",
80
+ "aria-label": D.toolbar,
81
+ "data-placement": w,
82
+ className: g(w),
83
+ children: [
84
+ p ? /* @__PURE__ */ E("span", {
85
+ "aria-live": "polite",
86
+ className: n("whitespace-nowrap text-sm font-medium", w === "top" ? "text-f1-foreground-secondary" : "pl-2 text-f1-foreground-inverse"),
87
+ children: [
88
+ r,
89
+ " / ",
90
+ i
91
+ ]
92
+ }) : null,
93
+ /* @__PURE__ */ E("div", {
94
+ className: O,
95
+ children: [/* @__PURE__ */ T(h, {
96
+ label: D.previousPage,
97
+ onClick: ne,
98
+ icon: f,
99
+ size: "sm"
100
+ }), /* @__PURE__ */ T(h, {
101
+ label: D.nextPage,
102
+ onClick: re,
103
+ icon: l,
104
+ size: "sm"
105
+ })]
106
+ }),
107
+ /* @__PURE__ */ E("div", {
108
+ className: O,
109
+ children: [
110
+ /* @__PURE__ */ T(h, {
111
+ label: D.zoomOut,
112
+ onClick: ie,
113
+ icon: c
114
+ }),
115
+ /* @__PURE__ */ T(h, {
116
+ label: D.zoomIn,
117
+ onClick: _,
118
+ icon: u
119
+ }),
120
+ /* @__PURE__ */ T(d, {
121
+ hideLabel: !0,
122
+ label: D.scaleSelector,
123
+ options: ee,
124
+ value: m,
125
+ onChange: (e) => ae(e)
126
+ })
127
+ ]
128
+ }),
129
+ /* @__PURE__ */ E("div", {
130
+ className: O,
131
+ children: [
132
+ v ? /* @__PURE__ */ T(h, {
133
+ label: D.rotate,
134
+ onClick: y,
135
+ icon: a
136
+ }) : null,
137
+ /* @__PURE__ */ T(h, {
138
+ label: D.print,
139
+ onClick: b,
140
+ icon: o
141
+ }),
142
+ S ? null : /* @__PURE__ */ T(h, {
143
+ label: D.download,
144
+ onClick: x,
145
+ icon: s
146
+ }),
147
+ C?.map((e, t) => /* @__PURE__ */ T(h, {
148
+ label: e.label,
149
+ onClick: e.onClick,
150
+ icon: e.icon
151
+ }, `${e.label}-${t}`))
152
+ ]
153
+ })
154
+ ]
155
+ });
156
+ };
157
+ //#endregion
158
+ //#region src/addons/documents/F0DocumentViewer/components/PdfViewer.tsx
159
+ v();
160
+ var de = 48, fe = 150, A = y((n, a) => {
161
+ let { url: o, filename: s = "document.pdf", page: c = 0, pagesToDisplay: l = [], initialScale: u = "page-width", withCredentials: d = !0, rotatable: f = !1, initialRotation: te = 0, onRotationChange: h, onPdfLoaded: g, onPageChange: v, actions: y, toolbar: O = "top", hideDownload: A = !1, ...pe } = n, { pdfViewer: j } = e(), M = Math.max(2, typeof window > "u" ? 1 : window.devicePixelRatio || 1), [N, me] = w(null), [P, he] = w([]), [F, I] = w(1), [L, R] = w(0), [z, B] = w(u), [V, ge] = w(te), H = C(null), U = C(null), W = C([]), G = l.length > 0 ? l.length : N?.numPages, _e = ce(H, W, N ? G : void 0), K = b(() => O === "top" ? U.current?.offsetHeight ?? 0 : 0, [O]), q = P.find(Boolean), ve = (q?.originalWidth ?? 595) * F, ye = (q?.originalHeight ?? 842) * F, be = S(() => [
162
+ {
163
+ value: "page-width",
164
+ label: j.pageWidth
165
+ },
166
+ {
167
+ value: "page-fit",
168
+ label: j.pageFit
169
+ },
170
+ ...p.map((e) => ({
171
+ value: e,
172
+ label: `${Number(e) * 100}%`
173
+ }))
174
+ ], [j.pageWidth, j.pageFit]), xe = S(() => ({
175
+ url: o,
176
+ withCredentials: d
177
+ }), [o, d]), J = b((e) => {
178
+ let t = (G ?? 1) - 1, n = Math.min(Math.max(e, 0), t), r = W.current[n], i = r?.offsetParent;
179
+ r && i instanceof HTMLElement && i.scrollTo({ top: r.offsetTop - K() - 10 });
180
+ }, [G, K]), Y = b((e) => {
181
+ let t = P[L > 0 ? L - 1 : c], n = H.current;
182
+ if (!t || !n || n.clientWidth <= 0) return;
183
+ let r = U.current?.offsetHeight ?? 0, i = V === 90 || V === 270, a = (e) => i ? e.originalHeight : e.originalWidth, o = a(t), s = i ? t.originalWidth : t.originalHeight, l = e === "page-fit" ? Math.max(...P.filter(Boolean).map(a)) : o, u = m(e, {
184
+ width: l,
185
+ height: s
186
+ }, {
187
+ width: n.clientWidth - de,
188
+ height: n.clientHeight - r - de
189
+ });
190
+ I((e) => oe(e, u, l) ? e : u), B(e);
191
+ }, [
192
+ P,
193
+ L,
194
+ c,
195
+ V
196
+ ]), Se = b((e) => {
197
+ e === "page-width" || e === "page-fit" ? Y(e) : (I(Number(e)), B(e));
198
+ }, [Y]), X = b((e) => {
199
+ if (e === void 0) return;
200
+ I(e);
201
+ let t = p.find((t) => Number(t) === e);
202
+ t && B(t);
203
+ }, []), Ce = b(() => X(re(F)), [F, X]), we = b(() => X(ne(F)), [F, X]), Te = b(() => {
204
+ ge((e) => {
205
+ let t = (e + 90) % 360;
206
+ return h?.(t), t;
207
+ });
208
+ }, [h]), Ee = b((e) => {
209
+ me(e), g?.(e), setTimeout(() => {
210
+ R(c + 1), J(c);
211
+ }, 0);
212
+ }, [
213
+ g,
214
+ c,
215
+ J
216
+ ]), De = b((e) => {
217
+ let t = e.target;
218
+ if (!(t instanceof HTMLElement)) return;
219
+ let n = le(t, W.current, K());
220
+ n && R(n);
221
+ }, [K]), Oe = b(() => {
222
+ _(N);
223
+ }, [N]), ke = b(() => {
224
+ ee(N, s);
225
+ }, [N, s]);
226
+ x(() => {
227
+ J(c);
228
+ }, [c, J]), x(() => {
229
+ L > 0 && v?.(L);
230
+ }, [L, v]);
231
+ let Z = i(() => {
232
+ (z === "page-width" || z === "page-fit") && Y(z);
233
+ });
234
+ x(function() {
235
+ Z();
236
+ }, [
237
+ P,
238
+ V,
239
+ Z
240
+ ]);
241
+ let Q = C();
242
+ r({
243
+ ref: H,
244
+ onResize: () => {
245
+ clearTimeout(Q.current), Q.current = setTimeout(Z, fe);
246
+ }
247
+ }), x(function() {
248
+ return () => clearTimeout(Q.current);
249
+ }, []), x(() => {
250
+ let e = H.current;
251
+ if (!e) return;
252
+ let t = (e) => {
253
+ let t = e.target;
254
+ t instanceof HTMLAnchorElement && (t.target = "_blank", t.rel = "noopener noreferrer");
255
+ };
256
+ return e.addEventListener("click", t, !0), () => e.removeEventListener("click", t, !0);
257
+ }, []);
258
+ let $ = {
259
+ toolbarRef: U,
260
+ placement: O,
261
+ currentPage: L,
262
+ totalPages: G,
263
+ hasDocument: !!N?.numPages,
264
+ selectedScale: z,
265
+ scaleOptions: be,
266
+ onPreviousPage: () => J(L - 2),
267
+ onNextPage: () => J(L),
268
+ onZoomIn: Ce,
269
+ onZoomOut: we,
270
+ onScaleChange: Se,
271
+ rotatable: f,
272
+ onRotate: Te,
273
+ onPrint: Oe,
274
+ onDownload: ke,
275
+ hideDownload: A,
276
+ actions: y
277
+ };
278
+ return /* @__PURE__ */ E("div", {
279
+ ref: a,
280
+ ...pe,
281
+ className: "F0DocumentViewer__surface relative flex h-full w-full flex-col overflow-hidden border border-solid border-f1-border-secondary",
282
+ children: [/* @__PURE__ */ E("div", {
283
+ ref: H,
284
+ onScroll: De,
285
+ className: "F0DocumentViewer__surface relative flex h-full flex-col overflow-auto [scrollbar-gutter:stable_both-edges]",
286
+ children: [O === "top" ? /* @__PURE__ */ T(k, { ...$ }) : null, o ? /* @__PURE__ */ T(ie, {
287
+ file: xe,
288
+ onLoadSuccess: Ee,
289
+ loading: /* @__PURE__ */ T(ue, {
290
+ label: j.loading,
291
+ width: ve,
292
+ height: ye
293
+ }),
294
+ children: N ? Array.from({ length: G ?? 0 }).map((e, n) => {
295
+ let r = (l.length > 0 ? l[n] : n) + 1, i = P[n] ?? q, a = i?.originalWidth ?? 595, o = i?.originalHeight ?? 842, s = V === 90 || V === 270, c = s ? o : a, u = s ? a : o, d = D(F, c), f = d * M, p = _e(n), m = /* @__PURE__ */ T(t, {
296
+ "aria-hidden": "true",
297
+ className: "animate-none",
298
+ style: {
299
+ width: Math.floor(c * f) / M,
300
+ height: Math.floor(u * f) / M
301
+ }
302
+ });
303
+ return /* @__PURE__ */ T("div", {
304
+ "data-page-index": n,
305
+ className: "F0DocumentViewer__page mx-auto w-fit px-4 pt-4 last:pb-4",
306
+ children: /* @__PURE__ */ T(ae, {
307
+ inputRef: (e) => {
308
+ W.current[n] = e;
309
+ },
310
+ renderMode: p ? "canvas" : "none",
311
+ className: "overflow-hidden rounded-lg border border-solid border-f1-border-secondary shadow-md",
312
+ pageNumber: r,
313
+ scale: d,
314
+ rotate: V,
315
+ devicePixelRatio: M,
316
+ loading: m,
317
+ renderForms: !0,
318
+ renderTextLayer: !0,
319
+ onRenderSuccess: () => se(W.current[n]?.querySelector("canvas"), M),
320
+ onLoadSuccess: (e) => {
321
+ let t = e.getViewport({
322
+ scale: 1,
323
+ rotation: 0
324
+ });
325
+ he((e) => {
326
+ let r = e[n];
327
+ if (r?.originalWidth === t.width && r.originalHeight === t.height) return e;
328
+ let i = [...e];
329
+ return i[n] = {
330
+ originalWidth: t.width,
331
+ originalHeight: t.height
332
+ }, i;
333
+ });
334
+ },
335
+ children: p ? null : m
336
+ })
337
+ }, n);
338
+ }) : null
339
+ }) : null]
340
+ }), O === "floating" ? /* @__PURE__ */ T(k, { ...$ }) : null]
341
+ });
342
+ });
343
+ A.displayName = "PdfViewerBase";
344
+ //#endregion
345
+ export { A as default };
@@ -1,6 +1,6 @@
1
- import { r as e } from "./i18n-provider-DoTL-0tJ.js";
2
- import { L as t } from "./tooltip-DFMOxXQO.js";
3
- import { t as n } from "./F0Button-BCWiHDDV.js";
1
+ import { r as e } from "./i18n-provider-B3-P0gAN.js";
2
+ import { L as t } from "./tooltip-NXXT56H4.js";
3
+ import { t as n } from "./F0Button-K-Tsj-wR.js";
4
4
  import { t as r } from "./ExternalLink-RdKU698E.js";
5
5
  import { useEffect as i, useId as a, useLayoutEffect as o, useMemo as s, useRef as c, useState as l } from "react";
6
6
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { n as e } from "./sheetPreview-Ca0kCtSa.js";
1
+ import { n as e } from "./sheetPreview-Cd5OSWJi.js";
2
2
  import { useEffect as t, useRef as n, useState as r } from "react";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  //#region src/elements/primitives/_primitives/F0Attachments/components/thumbnails/SheetThumbnail.tsx
@@ -1,9 +1,9 @@
1
- import { r as e } from "./i18n-provider-DoTL-0tJ.js";
2
- import { t } from "./skeleton-BsalZgC5.js";
3
- import { D as n, Ki as r, O as i } from "./F0CanvasPanel-lWi0R2Ct.js";
4
- import { c as a } from "./toolbarStyles-CDHbnt8G.js";
5
- import { n as o, t as s } from "./DocumentToolbar-DWq7Zg1o.js";
6
- import { n as c, t as l } from "./sheetPreview-Ca0kCtSa.js";
1
+ import { r as e } from "./i18n-provider-B3-P0gAN.js";
2
+ import { t } from "./skeleton-C-H2S5ZI.js";
3
+ import { D as n, Ki as r, O as i } from "./F0CanvasPanel-8sSInjUf.js";
4
+ import { c as a } from "./toolbarStyles-BAunJtAw.js";
5
+ import { n as o, t as s } from "./DocumentToolbar-Dylh5Ap4.js";
6
+ import { n as c, t as l } from "./sheetPreview-Cd5OSWJi.js";
7
7
  import { useEffect as u, useState as d } from "react";
8
8
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
9
9
  //#region src/addons/documents/F0DocumentViewer/components/SheetViewer.tsx