@tonzxz/government-forms 0.1.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 (325) hide show
  1. package/FORM_CATALOG.md +44 -0
  2. package/README.md +165 -0
  3. package/dist/definitions.d.ts +1147 -0
  4. package/dist/definitions.js +60 -0
  5. package/dist/forms/iar.d.ts +172 -0
  6. package/dist/forms/iar.js +6 -0
  7. package/dist/forms/ics.d.ts +48 -0
  8. package/dist/forms/ics.js +6 -0
  9. package/dist/forms/iirup.d.ts +54 -0
  10. package/dist/forms/iirup.js +6 -0
  11. package/dist/forms/iirusp.d.ts +32 -0
  12. package/dist/forms/iirusp.js +6 -0
  13. package/dist/forms/itr.d.ts +42 -0
  14. package/dist/forms/itr.js +6 -0
  15. package/dist/forms/par.d.ts +84 -0
  16. package/dist/forms/par.js +6 -0
  17. package/dist/forms/ppelc.d.ts +34 -0
  18. package/dist/forms/ppelc.js +6 -0
  19. package/dist/forms/pr.d.ts +27 -0
  20. package/dist/forms/pr.js +6 -0
  21. package/dist/forms/property-card.d.ts +68 -0
  22. package/dist/forms/property-card.js +6 -0
  23. package/dist/forms/ptr.d.ts +54 -0
  24. package/dist/forms/ptr.js +6 -0
  25. package/dist/forms/regspi.d.ts +32 -0
  26. package/dist/forms/regspi.js +6 -0
  27. package/dist/forms/ris.d.ts +66 -0
  28. package/dist/forms/ris.js +6 -0
  29. package/dist/forms/rlsddp.d.ts +54 -0
  30. package/dist/forms/rlsddp.js +6 -0
  31. package/dist/forms/rlsddsp.d.ts +42 -0
  32. package/dist/forms/rlsddsp.js +6 -0
  33. package/dist/forms/rpci.d.ts +32 -0
  34. package/dist/forms/rpci.js +6 -0
  35. package/dist/forms/rpcppe.d.ts +32 -0
  36. package/dist/forms/rpcppe.js +6 -0
  37. package/dist/forms/rpcsp.d.ts +32 -0
  38. package/dist/forms/rpcsp.js +6 -0
  39. package/dist/forms/rrsp.d.ts +32 -0
  40. package/dist/forms/rrsp.js +6 -0
  41. package/dist/forms/rsmi.d.ts +32 -0
  42. package/dist/forms/rsmi.js +6 -0
  43. package/dist/forms/rsmp.d.ts +33 -0
  44. package/dist/forms/rsmp.js +6 -0
  45. package/dist/forms/rspi.d.ts +32 -0
  46. package/dist/forms/rspi.js +6 -0
  47. package/dist/forms/spc.d.ts +37 -0
  48. package/dist/forms/spc.js +6 -0
  49. package/dist/forms/splc.d.ts +41 -0
  50. package/dist/forms/splc.js +6 -0
  51. package/dist/forms/stock-card.d.ts +28 -0
  52. package/dist/forms/stock-card.js +6 -0
  53. package/dist/forms/wmr.d.ts +32 -0
  54. package/dist/forms/wmr.js +6 -0
  55. package/dist/gam/components/gam-report-workbench.d.ts +40 -0
  56. package/dist/gam/components/gam-report-workbench.js +2 -0
  57. package/dist/gam/components/grand-total-computation.d.ts +10 -0
  58. package/dist/gam/components/grand-total-computation.js +26 -0
  59. package/dist/gam/components/iar-preview.d.ts +30 -0
  60. package/dist/gam/components/iar-preview.js +150 -0
  61. package/dist/gam/components/ics-preview.d.ts +31 -0
  62. package/dist/gam/components/ics-preview.js +114 -0
  63. package/dist/gam/components/iirup-preview.d.ts +42 -0
  64. package/dist/gam/components/iirup-preview.js +237 -0
  65. package/dist/gam/components/itr-preview.d.ts +31 -0
  66. package/dist/gam/components/itr-preview.js +180 -0
  67. package/dist/gam/components/par-preview.d.ts +28 -0
  68. package/dist/gam/components/par-preview.js +95 -0
  69. package/dist/gam/components/ppelc-preview.d.ts +28 -0
  70. package/dist/gam/components/ppelc-preview.js +128 -0
  71. package/dist/gam/components/property-card-preview.d.ts +21 -0
  72. package/dist/gam/components/property-card-preview.js +117 -0
  73. package/dist/gam/components/ptr-preview.d.ts +36 -0
  74. package/dist/gam/components/ptr-preview.js +122 -0
  75. package/dist/gam/components/purchase-order-page-client.d.ts +66 -0
  76. package/dist/gam/components/purchase-order-page-client.js +179 -0
  77. package/dist/gam/components/reg-spi-preview.d.ts +28 -0
  78. package/dist/gam/components/reg-spi-preview.js +138 -0
  79. package/dist/gam/components/ris-form.d.ts +13 -0
  80. package/dist/gam/components/ris-form.js +20 -0
  81. package/dist/gam/components/ris-preview.d.ts +7 -0
  82. package/dist/gam/components/ris-preview.js +16 -0
  83. package/dist/gam/components/rlsddp-preview.d.ts +34 -0
  84. package/dist/gam/components/rlsddp-preview.js +251 -0
  85. package/dist/gam/components/rlsddsp-preview.d.ts +33 -0
  86. package/dist/gam/components/rlsddsp-preview.js +226 -0
  87. package/dist/gam/components/rpci-preview.d.ts +27 -0
  88. package/dist/gam/components/rpci-preview.js +123 -0
  89. package/dist/gam/components/rpcppe-preview.d.ts +28 -0
  90. package/dist/gam/components/rpcppe-preview.js +133 -0
  91. package/dist/gam/components/rpcsp-preview.d.ts +29 -0
  92. package/dist/gam/components/rpcsp-preview.js +81 -0
  93. package/dist/gam/components/rspi-preview.d.ts +23 -0
  94. package/dist/gam/components/rspi-preview.js +72 -0
  95. package/dist/gam/components/spc-preview.d.ts +23 -0
  96. package/dist/gam/components/spc-preview.js +149 -0
  97. package/dist/gam/components/splc-entry-form.d.ts +14 -0
  98. package/dist/gam/components/splc-entry-form.js +6 -0
  99. package/dist/gam/components/splc-preview.d.ts +27 -0
  100. package/dist/gam/components/splc-preview.js +192 -0
  101. package/dist/gam/components/stock-card-preview.d.ts +14 -0
  102. package/dist/gam/components/stock-card-preview.js +17 -0
  103. package/dist/gam/config/new-report-config.d.ts +1094 -0
  104. package/dist/gam/config/new-report-config.js +1478 -0
  105. package/dist/gam/purchase-order-flow.d.ts +146 -0
  106. package/dist/gam/purchase-order-flow.js +173 -0
  107. package/dist/gam/purchase-request/workflow.d.ts +19 -0
  108. package/dist/gam/purchase-request/workflow.js +45 -0
  109. package/dist/gam/types/ris-types.d.ts +37 -0
  110. package/dist/gam/types/ris-types.js +1 -0
  111. package/dist/gam/utils/export-ics-xlsx.d.ts +28 -0
  112. package/dist/gam/utils/export-ics-xlsx.js +273 -0
  113. package/dist/gam/utils/export-par-xlsx.d.ts +18 -0
  114. package/dist/gam/utils/export-par-xlsx.js +181 -0
  115. package/dist/gam/utils/export-preview-pdf.d.ts +13 -0
  116. package/dist/gam/utils/export-preview-pdf.js +270 -0
  117. package/dist/gam/utils/export-report-xlsx.d.ts +228 -0
  118. package/dist/gam/utils/export-report-xlsx.js +873 -0
  119. package/dist/gam/utils/line-totals.d.ts +6 -0
  120. package/dist/gam/utils/line-totals.js +18 -0
  121. package/dist/gam/utils/monetary-input.d.ts +6 -0
  122. package/dist/gam/utils/monetary-input.js +18 -0
  123. package/dist/gam/utils/print-element.d.ts +8 -0
  124. package/dist/gam/utils/print-element.js +157 -0
  125. package/dist/government-form.d.ts +16 -0
  126. package/dist/government-form.js +45 -0
  127. package/dist/index.d.ts +49 -0
  128. package/dist/index.js +50 -0
  129. package/dist/internal/components/configurable-form-layout.d.ts +20 -0
  130. package/dist/internal/components/configurable-form-layout.js +49 -0
  131. package/dist/internal/components/ui/badge.d.ts +7 -0
  132. package/dist/internal/components/ui/badge.js +34 -0
  133. package/dist/internal/components/ui/button.d.ts +10 -0
  134. package/dist/internal/components/ui/button.js +35 -0
  135. package/dist/internal/components/ui/calendar.d.ts +8 -0
  136. package/dist/internal/components/ui/calendar.js +77 -0
  137. package/dist/internal/components/ui/command.d.ts +19 -0
  138. package/dist/internal/components/ui/command.js +36 -0
  139. package/dist/internal/components/ui/date-input.d.ts +14 -0
  140. package/dist/internal/components/ui/date-input.js +33 -0
  141. package/dist/internal/components/ui/date-picker.d.ts +19 -0
  142. package/dist/internal/components/ui/date-picker.js +34 -0
  143. package/dist/internal/components/ui/dialog.d.ts +18 -0
  144. package/dist/internal/components/ui/dialog.js +38 -0
  145. package/dist/internal/components/ui/input-group.d.ts +18 -0
  146. package/dist/internal/components/ui/input-group.js +57 -0
  147. package/dist/internal/components/ui/input.d.ts +3 -0
  148. package/dist/internal/components/ui/input.js +12 -0
  149. package/dist/internal/components/ui/label.d.ts +3 -0
  150. package/dist/internal/components/ui/label.js +7 -0
  151. package/dist/internal/components/ui/popover.d.ts +9 -0
  152. package/dist/internal/components/ui/popover.js +23 -0
  153. package/dist/internal/components/ui/select.d.ts +17 -0
  154. package/dist/internal/components/ui/select.js +35 -0
  155. package/dist/internal/components/ui/switch.d.ts +5 -0
  156. package/dist/internal/components/ui/switch.js +8 -0
  157. package/dist/internal/components/ui/table.d.ts +10 -0
  158. package/dist/internal/components/ui/table.js +28 -0
  159. package/dist/internal/components/ui/tabs.d.ts +10 -0
  160. package/dist/internal/components/ui/tabs.js +29 -0
  161. package/dist/internal/components/ui/textarea.d.ts +3 -0
  162. package/dist/internal/components/ui/textarea.js +7 -0
  163. package/dist/internal/components/ui/tooltip.d.ts +6 -0
  164. package/dist/internal/components/ui/tooltip.js +17 -0
  165. package/dist/internal/contracts/modules/v1/reg-spi-reports/reg-spi-reports.schema.d.ts +112 -0
  166. package/dist/internal/contracts/modules/v1/reg-spi-reports/reg-spi-reports.schema.js +91 -0
  167. package/dist/internal/hooks/use-form-field-order.d.ts +7 -0
  168. package/dist/internal/hooks/use-form-field-order.js +43 -0
  169. package/dist/internal/lib/utils.d.ts +2 -0
  170. package/dist/internal/lib/utils.js +3 -0
  171. package/dist/inventory/components/inventory-item-form.d.ts +7 -0
  172. package/dist/inventory/components/inventory-item-form.js +5 -0
  173. package/dist/inventory/components/inventory-item-preview.d.ts +6 -0
  174. package/dist/inventory/components/inventory-item-preview.js +5 -0
  175. package/dist/inventory/iar.d.ts +4 -0
  176. package/dist/inventory/iar.js +4 -0
  177. package/dist/inventory/ics.d.ts +2 -0
  178. package/dist/inventory/ics.js +3 -0
  179. package/dist/inventory/iirup.d.ts +2 -0
  180. package/dist/inventory/iirup.js +3 -0
  181. package/dist/inventory/iirusp.d.ts +4 -0
  182. package/dist/inventory/iirusp.js +4 -0
  183. package/dist/inventory/index.d.ts +3 -0
  184. package/dist/inventory/index.js +4 -0
  185. package/dist/inventory/item.d.ts +3 -0
  186. package/dist/inventory/item.js +3 -0
  187. package/dist/inventory/itr.d.ts +4 -0
  188. package/dist/inventory/itr.js +4 -0
  189. package/dist/inventory/par.d.ts +2 -0
  190. package/dist/inventory/par.js +3 -0
  191. package/dist/inventory/po.d.ts +2 -0
  192. package/dist/inventory/po.js +2 -0
  193. package/dist/inventory/ppelc.d.ts +2 -0
  194. package/dist/inventory/ppelc.js +3 -0
  195. package/dist/inventory/pplc.d.ts +2 -0
  196. package/dist/inventory/pplc.js +4 -0
  197. package/dist/inventory/pr.d.ts +4 -0
  198. package/dist/inventory/pr.js +4 -0
  199. package/dist/inventory/property-card.d.ts +2 -0
  200. package/dist/inventory/property-card.js +3 -0
  201. package/dist/inventory/ptr.d.ts +2 -0
  202. package/dist/inventory/ptr.js +3 -0
  203. package/dist/inventory/regspi.d.ts +4 -0
  204. package/dist/inventory/regspi.js +4 -0
  205. package/dist/inventory/ris.d.ts +4 -0
  206. package/dist/inventory/ris.js +4 -0
  207. package/dist/inventory/rlsddp.d.ts +4 -0
  208. package/dist/inventory/rlsddp.js +4 -0
  209. package/dist/inventory/rlsddsp.d.ts +2 -0
  210. package/dist/inventory/rlsddsp.js +3 -0
  211. package/dist/inventory/rpci.d.ts +2 -0
  212. package/dist/inventory/rpci.js +3 -0
  213. package/dist/inventory/rpcppe.d.ts +2 -0
  214. package/dist/inventory/rpcppe.js +3 -0
  215. package/dist/inventory/rpcsp.d.ts +2 -0
  216. package/dist/inventory/rpcsp.js +3 -0
  217. package/dist/inventory/rrsp.d.ts +2 -0
  218. package/dist/inventory/rrsp.js +3 -0
  219. package/dist/inventory/rsmi.d.ts +4 -0
  220. package/dist/inventory/rsmi.js +4 -0
  221. package/dist/inventory/rsmp.d.ts +4 -0
  222. package/dist/inventory/rsmp.js +4 -0
  223. package/dist/inventory/rspi.d.ts +2 -0
  224. package/dist/inventory/rspi.js +3 -0
  225. package/dist/inventory/spc.d.ts +2 -0
  226. package/dist/inventory/spc.js +3 -0
  227. package/dist/inventory/splc.d.ts +3 -0
  228. package/dist/inventory/splc.js +4 -0
  229. package/dist/inventory/stock-card.d.ts +4 -0
  230. package/dist/inventory/stock-card.js +4 -0
  231. package/dist/inventory/types.d.ts +11 -0
  232. package/dist/inventory/types.js +1 -0
  233. package/dist/inventory/wmr.d.ts +4 -0
  234. package/dist/inventory/wmr.js +4 -0
  235. package/dist/lib/rpcsp-accountable-person.d.ts +1 -0
  236. package/dist/lib/rpcsp-accountable-person.js +10 -0
  237. package/dist/reports/iar/_components/create-form.d.ts +13 -0
  238. package/dist/reports/iar/_components/create-form.js +92 -0
  239. package/dist/reports/iar/_components/document-preview.d.ts +11 -0
  240. package/dist/reports/iar/_components/document-preview.js +131 -0
  241. package/dist/reports/iar/types.d.ts +97 -0
  242. package/dist/reports/iar/types.js +24 -0
  243. package/dist/reports/iirusp/_components/create-form.d.ts +17 -0
  244. package/dist/reports/iirusp/_components/create-form.js +118 -0
  245. package/dist/reports/iirusp/_components/document-preview.d.ts +8 -0
  246. package/dist/reports/iirusp/_components/document-preview.js +389 -0
  247. package/dist/reports/iirusp/types.d.ts +134 -0
  248. package/dist/reports/iirusp/types.js +29 -0
  249. package/dist/reports/iirusp/utils.d.ts +29 -0
  250. package/dist/reports/iirusp/utils.js +488 -0
  251. package/dist/reports/itr/_components/create-form.d.ts +28 -0
  252. package/dist/reports/itr/_components/create-form.js +90 -0
  253. package/dist/reports/itr/_components/document-preview.d.ts +6 -0
  254. package/dist/reports/itr/_components/document-preview.js +7 -0
  255. package/dist/reports/itr/types.d.ts +68 -0
  256. package/dist/reports/itr/types.js +27 -0
  257. package/dist/reports/itr/utils.d.ts +24 -0
  258. package/dist/reports/itr/utils.js +76 -0
  259. package/dist/reports/pr/_components/create-form.d.ts +16 -0
  260. package/dist/reports/pr/_components/create-form.js +52 -0
  261. package/dist/reports/pr/_components/document-preview.d.ts +7 -0
  262. package/dist/reports/pr/_components/document-preview.js +9 -0
  263. package/dist/reports/pr/types.d.ts +69 -0
  264. package/dist/reports/pr/types.js +1 -0
  265. package/dist/reports/pr/utils.d.ts +72 -0
  266. package/dist/reports/pr/utils.js +572 -0
  267. package/dist/reports/regspi/_components/create-form.d.ts +19 -0
  268. package/dist/reports/regspi/_components/create-form.js +33 -0
  269. package/dist/reports/regspi/_components/document-preview.d.ts +6 -0
  270. package/dist/reports/regspi/_components/document-preview.js +7 -0
  271. package/dist/reports/regspi/types.d.ts +29 -0
  272. package/dist/reports/regspi/types.js +24 -0
  273. package/dist/reports/regspi/utils.d.ts +48 -0
  274. package/dist/reports/regspi/utils.js +98 -0
  275. package/dist/reports/ris/_components/create-form.d.ts +36 -0
  276. package/dist/reports/ris/_components/create-form.js +149 -0
  277. package/dist/reports/ris/_components/document-preview.d.ts +8 -0
  278. package/dist/reports/ris/_components/document-preview.js +31 -0
  279. package/dist/reports/ris/types.d.ts +93 -0
  280. package/dist/reports/ris/types.js +1 -0
  281. package/dist/reports/rlsddp/_components/create-form.d.ts +11 -0
  282. package/dist/reports/rlsddp/_components/create-form.js +165 -0
  283. package/dist/reports/rlsddp/_components/document-preview.d.ts +8 -0
  284. package/dist/reports/rlsddp/_components/document-preview.js +15 -0
  285. package/dist/reports/rlsddp/types.d.ts +105 -0
  286. package/dist/reports/rlsddp/types.js +31 -0
  287. package/dist/reports/rrsp/components/rrsp-preview.d.ts +21 -0
  288. package/dist/reports/rrsp/components/rrsp-preview.js +155 -0
  289. package/dist/reports/rsmi/components/rsmi-create-form.d.ts +20 -0
  290. package/dist/reports/rsmi/components/rsmi-create-form.js +8 -0
  291. package/dist/reports/rsmi/components/rsmi-document-body.d.ts +15 -0
  292. package/dist/reports/rsmi/components/rsmi-document-body.js +12 -0
  293. package/dist/reports/rsmi/components/rsmi-types.d.ts +45 -0
  294. package/dist/reports/rsmi/components/rsmi-types.js +1 -0
  295. package/dist/reports/rsmi/components/rsmi-utils.d.ts +2 -0
  296. package/dist/reports/rsmi/components/rsmi-utils.js +18 -0
  297. package/dist/reports/rsmp/components/rsmp-create-modal.d.ts +5 -0
  298. package/dist/reports/rsmp/components/rsmp-create-modal.js +7 -0
  299. package/dist/reports/rsmp/components/rsmp-preview-modal.d.ts +11 -0
  300. package/dist/reports/rsmp/components/rsmp-preview-modal.js +47 -0
  301. package/dist/reports/rsmp/components/rsmp-types.d.ts +44 -0
  302. package/dist/reports/rsmp/components/rsmp-types.js +1 -0
  303. package/dist/reports/rsmp/components/rsmp-utils.d.ts +5 -0
  304. package/dist/reports/rsmp/components/rsmp-utils.js +41 -0
  305. package/dist/reports/rsmp/lib/rsmp-grouping.d.ts +14 -0
  306. package/dist/reports/rsmp/lib/rsmp-grouping.js +75 -0
  307. package/dist/reports/stock-card/_components/create-form.d.ts +13 -0
  308. package/dist/reports/stock-card/_components/create-form.js +39 -0
  309. package/dist/reports/stock-card/_components/document-preview.d.ts +7 -0
  310. package/dist/reports/stock-card/_components/document-preview.js +29 -0
  311. package/dist/reports/stock-card/types.d.ts +31 -0
  312. package/dist/reports/stock-card/types.js +1 -0
  313. package/dist/reports/stock-card/utils.d.ts +32 -0
  314. package/dist/reports/stock-card/utils.js +248 -0
  315. package/dist/reports/wmr/_components/create-form.d.ts +22 -0
  316. package/dist/reports/wmr/_components/create-form.js +61 -0
  317. package/dist/reports/wmr/_components/document-preview.d.ts +10 -0
  318. package/dist/reports/wmr/_components/document-preview.js +59 -0
  319. package/dist/reports/wmr/types.d.ts +45 -0
  320. package/dist/reports/wmr/types.js +1 -0
  321. package/dist/reports/wmr/utils.d.ts +32 -0
  322. package/dist/reports/wmr/utils.js +343 -0
  323. package/dist/styles.css +4492 -0
  324. package/extraction-manifest.json +620 -0
  325. package/package.json +197 -0
@@ -0,0 +1,251 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ const BLANK = "\u00a0";
4
+ const LINE = "1px solid #111";
5
+ const PROPERTY_ROWS = 7;
6
+ function fmtDate(value) {
7
+ if (!value)
8
+ return "";
9
+ const date = new Date(value);
10
+ return Number.isNaN(date.getTime()) ? value : date.toLocaleDateString("en-PH");
11
+ }
12
+ function fmtAmount(value) {
13
+ if (!value || value.trim() === "")
14
+ return "";
15
+ const amount = Number(value);
16
+ return Number.isNaN(amount)
17
+ ? value
18
+ : amount.toLocaleString("en-PH", {
19
+ minimumFractionDigits: 2,
20
+ maximumFractionDigits: 2,
21
+ });
22
+ }
23
+ function splitPreviewLines(value, count, maxChars = 96) {
24
+ const normalized = value.replace(/\s+/g, " ").trim();
25
+ if (!normalized)
26
+ return Array.from({ length: count }, () => "");
27
+ const words = normalized.split(" ");
28
+ const lines = [];
29
+ let current = "";
30
+ for (const word of words) {
31
+ const next = current ? `${current} ${word}` : word;
32
+ if (next.length > maxChars && current) {
33
+ lines.push(current);
34
+ current = word;
35
+ }
36
+ else {
37
+ current = next;
38
+ }
39
+ if (lines.length === count)
40
+ break;
41
+ }
42
+ if (lines.length < count && current)
43
+ lines.push(current);
44
+ return [
45
+ ...lines.slice(0, count),
46
+ ...Array.from({ length: Math.max(0, count - lines.length) }, () => ""),
47
+ ];
48
+ }
49
+ function Checkbox({ checked }) {
50
+ return (_jsx("span", { style: {
51
+ display: "inline-block",
52
+ width: "3.2mm",
53
+ height: "3.2mm",
54
+ border: LINE,
55
+ marginRight: "1.5mm",
56
+ textAlign: "center",
57
+ lineHeight: "3mm",
58
+ fontSize: "6.5pt",
59
+ verticalAlign: "middle",
60
+ }, children: checked ? "\u2713" : "" }));
61
+ }
62
+ function LineText({ value, minWidth = "20mm", align = "left", }) {
63
+ return (_jsx("span", { style: {
64
+ display: "inline-block",
65
+ minWidth,
66
+ height: "5mm",
67
+ borderBottom: LINE,
68
+ padding: "0.6mm 1mm 1.4mm",
69
+ textAlign: align,
70
+ boxSizing: "border-box",
71
+ lineHeight: 1.1,
72
+ verticalAlign: "bottom",
73
+ whiteSpace: "nowrap",
74
+ }, children: value || BLANK }));
75
+ }
76
+ function FieldRow({ label, value }) {
77
+ return (_jsxs("div", { style: {
78
+ display: "flex",
79
+ alignItems: "flex-end",
80
+ minHeight: "5.4mm",
81
+ lineHeight: 1.15,
82
+ }, children: [_jsx("span", { style: { fontWeight: 700, whiteSpace: "nowrap" }, children: label }), _jsx("span", { style: {
83
+ display: "block",
84
+ flex: 1,
85
+ minWidth: 0,
86
+ height: "4.8mm",
87
+ borderBottom: LINE,
88
+ padding: "0.5mm 1mm 1.2mm",
89
+ boxSizing: "border-box",
90
+ lineHeight: 1.1,
91
+ verticalAlign: "bottom",
92
+ overflow: "hidden",
93
+ whiteSpace: "nowrap",
94
+ }, children: value || BLANK })] }));
95
+ }
96
+ export function RlsddpPreview({ entityName = "", fundCluster = "", departmentOffice = "", accountableOfficer = "", designation = "", policeNotified = "", policeStation = "", policeNotifiedDate = "", rlsddpNo = "", rlsddpDate = "", parNo = "", parDate = "", statusOfProperty = "", propertyNo = "", description = "", acquisitionCost = "", circumstance = "", accountableOfficerSignature = "", accountableOfficerDate = "", governmentIssuedId = "", idNo = "", dateIssued = "", immediateSupervisorSignature = "", immediateSupervisorDate = "", swornDate = "", docNo = "", pageNo = "", bookNo = "", seriesOf = "", notaryPublic = "", }) {
97
+ const status = statusOfProperty.toLowerCase();
98
+ const policeStatus = policeNotified.toLowerCase();
99
+ const circumstanceLines = splitPreviewLines(circumstance, 4);
100
+ const hasProperty = Boolean(propertyNo || description || acquisitionCost);
101
+ const rowCell = {
102
+ borderRight: LINE,
103
+ borderBottom: LINE,
104
+ padding: "0.8mm 1.5mm",
105
+ fontSize: "7.2pt",
106
+ lineHeight: 1.15,
107
+ verticalAlign: "middle",
108
+ };
109
+ let swornDay = "";
110
+ let swornMonthYear = "";
111
+ if (swornDate) {
112
+ const date = new Date(swornDate);
113
+ if (!Number.isNaN(date.getTime())) {
114
+ swornDay = String(date.getDate());
115
+ swornMonthYear = date.toLocaleDateString("en-PH", { month: "long", year: "numeric" });
116
+ }
117
+ }
118
+ return (_jsx("div", { "data-pdf-page": "true", "data-pdf-orientation": "portrait", style: {
119
+ width: "210mm",
120
+ minHeight: "297mm",
121
+ backgroundColor: "#fff",
122
+ boxSizing: "border-box",
123
+ color: "#111",
124
+ fontFamily: '"Times New Roman", Times, serif',
125
+ fontSize: "7.5pt",
126
+ lineHeight: 1.15,
127
+ padding: 0,
128
+ }, children: _jsxs("div", { style: { width: "190mm", margin: "0 auto", paddingTop: "14mm" }, children: [_jsx("div", { style: { textAlign: "right", fontSize: "8pt", fontStyle: "italic", marginBottom: "9mm" }, children: "Annex A.9" }), _jsxs("div", { style: {
129
+ textAlign: "center",
130
+ fontWeight: 700,
131
+ fontSize: "9.2pt",
132
+ lineHeight: 1.15,
133
+ marginBottom: "6mm",
134
+ }, children: ["REPORT OF LOST, STOLEN, DAMAGED OR DESTROYED", _jsx("br", {}), "PROPERTY"] }), _jsx("table", { style: { width: "100%", borderCollapse: "collapse", marginBottom: "1mm" }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsxs("td", { style: { width: "66%", padding: 0 }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "Entity Name : " }), _jsx(LineText, { value: entityName, minWidth: "40mm" })] }), _jsxs("td", { style: { width: "34%", padding: 0, textAlign: "right" }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "Fund Cluster: " }), _jsx(LineText, { value: fundCluster, minWidth: "26mm" })] })] }) }) }), _jsx("table", { style: { width: "100%", borderCollapse: "collapse", tableLayout: "fixed", border: LINE }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsxs("td", { style: {
135
+ width: "66.6%",
136
+ borderRight: LINE,
137
+ padding: "0.8mm 1mm 1mm",
138
+ verticalAlign: "top",
139
+ }, children: [_jsx(FieldRow, { label: "Department/Office : ", value: departmentOffice }), _jsx(FieldRow, { label: "Accountable Officer : ", value: accountableOfficer }), _jsx(FieldRow, { label: "Designation : ", value: designation }), _jsxs("div", { style: {
140
+ display: "grid",
141
+ gridTemplateColumns: "30mm 18mm 1fr",
142
+ columnGap: "1.2mm",
143
+ rowGap: "0.5mm",
144
+ alignItems: "baseline",
145
+ minHeight: "8.4mm",
146
+ lineHeight: 1.15,
147
+ }, children: [_jsx("div", { style: { fontWeight: 700 }, children: "Police Notified :" }), _jsxs("div", { children: [_jsx(Checkbox, { checked: policeStatus === "yes" }), "Yes"] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 700 }, children: "Police Station : " }), _jsx(LineText, { value: policeStation, minWidth: "26mm" })] }), _jsx("div", {}), _jsxs("div", { children: [_jsx(Checkbox, { checked: policeStatus === "no" }), "No"] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 700 }, children: "Date : " }), _jsx(LineText, { value: fmtDate(policeNotifiedDate), minWidth: "24mm" })] })] })] }), _jsxs("td", { style: { width: "33.4%", padding: "0.8mm 1mm 1mm", verticalAlign: "top" }, children: [_jsx(FieldRow, { label: "RLSDDP No. : ", value: rlsddpNo }), _jsx(FieldRow, { label: "RLSDDP Date : ", value: fmtDate(rlsddpDate) }), _jsx(FieldRow, { label: "PAR No. : ", value: parNo }), _jsx(FieldRow, { label: "PAR Date : ", value: fmtDate(parDate) })] })] }) }) }), _jsxs("div", { style: {
148
+ borderLeft: LINE,
149
+ borderRight: LINE,
150
+ borderBottom: LINE,
151
+ minHeight: "14mm",
152
+ padding: "1.2mm 1.2mm 1mm",
153
+ boxSizing: "border-box",
154
+ }, children: [_jsxs("div", { style: { marginBottom: "1.5mm" }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "Status of Property : " }), "(check applicable box)"] }), _jsxs("div", { style: {
155
+ display: "grid",
156
+ gridTemplateColumns: "1fr 1fr",
157
+ columnGap: "29mm",
158
+ rowGap: "0.5mm",
159
+ width: "61mm",
160
+ margin: "0 auto",
161
+ }, children: [_jsxs("div", { children: [_jsx(Checkbox, { checked: status === "lost" }), "Lost"] }), _jsxs("div", { children: [_jsx(Checkbox, { checked: status === "damaged" }), "Damaged"] }), _jsxs("div", { children: [_jsx(Checkbox, { checked: status === "stolen" }), "Stolen"] }), _jsxs("div", { children: [_jsx(Checkbox, { checked: status === "destroyed" }), "Destroyed"] })] })] }), _jsxs("table", { style: {
162
+ width: "100%",
163
+ borderCollapse: "collapse",
164
+ tableLayout: "fixed",
165
+ borderLeft: LINE,
166
+ borderRight: LINE,
167
+ }, children: [_jsx("thead", { children: _jsxs("tr", { style: { height: "7mm" }, children: [_jsx("th", { style: { ...rowCell, width: "19%", textAlign: "center", fontWeight: 700 }, children: "Property No." }), _jsx("th", { style: { ...rowCell, width: "48%", textAlign: "center", fontWeight: 700 }, children: "Description" }), _jsx("th", { style: {
168
+ ...rowCell,
169
+ width: "33%",
170
+ borderRight: "none",
171
+ textAlign: "center",
172
+ fontWeight: 700,
173
+ }, children: "Acquisition Cost" })] }) }), _jsx("tbody", { children: Array.from({ length: PROPERTY_ROWS }, (_, index) => (_jsxs("tr", { style: { height: "5.5mm" }, children: [_jsx("td", { style: { ...rowCell }, children: index === 0 && hasProperty ? propertyNo || BLANK : BLANK }), _jsx("td", { style: { ...rowCell }, children: index === 0 && hasProperty ? description || BLANK : BLANK }), _jsx("td", { style: { ...rowCell, borderRight: "none", textAlign: "right" }, children: index === 0 && hasProperty ? fmtAmount(acquisitionCost) || BLANK : BLANK })] }, index))) })] }), _jsxs("div", { style: {
174
+ borderLeft: LINE,
175
+ borderRight: LINE,
176
+ borderBottom: LINE,
177
+ minHeight: "22mm",
178
+ padding: "1mm 1mm 1.5mm",
179
+ boxSizing: "border-box",
180
+ }, children: [_jsx("div", { style: { fontWeight: 700, marginBottom: "1.4mm" }, children: "Circumstances:" }), _jsx("div", { style: { padding: "0 12mm" }, children: circumstanceLines.map((line, index) => (_jsx("div", { style: {
181
+ height: "5.2mm",
182
+ borderBottom: LINE,
183
+ padding: "0.5mm 1mm 1.4mm",
184
+ boxSizing: "border-box",
185
+ lineHeight: 1.1,
186
+ whiteSpace: "nowrap",
187
+ overflow: "hidden",
188
+ }, children: line || BLANK }, index))) })] }), _jsx("table", { style: {
189
+ width: "100%",
190
+ borderCollapse: "collapse",
191
+ tableLayout: "fixed",
192
+ borderLeft: LINE,
193
+ borderRight: LINE,
194
+ borderBottom: LINE,
195
+ }, children: _jsx("tbody", { children: _jsxs("tr", { style: { height: "48mm" }, children: [_jsxs("td", { style: {
196
+ width: "58%",
197
+ borderRight: LINE,
198
+ padding: "2.6mm 2.5mm 1mm",
199
+ verticalAlign: "top",
200
+ boxSizing: "border-box",
201
+ }, children: [_jsx("div", { style: { lineHeight: 1.2, marginBottom: "9.2mm" }, children: "I hereby certify that the item/s and circumstances stated above are true and correct." }), _jsxs("div", { style: { width: "66mm", margin: "0 auto 1.2mm", textAlign: "center" }, children: [_jsx("div", { style: {
202
+ borderBottom: LINE,
203
+ height: "5.5mm",
204
+ padding: "0.6mm 1mm 1.5mm",
205
+ boxSizing: "border-box",
206
+ lineHeight: 1.1,
207
+ }, children: accountableOfficerSignature || BLANK }), _jsx("div", { style: { fontSize: "6.8pt", marginTop: "0.7mm" }, children: "Signature over Printed Name of the Accountable Officer" })] }), _jsxs("div", { style: { width: "28mm", margin: "4.5mm auto 3.8mm", textAlign: "center" }, children: [_jsx("div", { style: {
208
+ borderBottom: LINE,
209
+ height: "5.2mm",
210
+ padding: "0.5mm 1mm 1.4mm",
211
+ boxSizing: "border-box",
212
+ lineHeight: 1.1,
213
+ }, children: fmtDate(accountableOfficerDate) || BLANK }), _jsx("div", { children: "Date" })] }), _jsxs("div", { style: { lineHeight: 1.45 }, children: [_jsxs("div", { children: ["Government Issued ID : ", _jsx(LineText, { value: governmentIssuedId, minWidth: "35mm" })] }), _jsxs("div", { children: ["ID No. : ", _jsx(LineText, { value: idNo, minWidth: "45mm" })] }), _jsxs("div", { children: ["Date Issued : ", _jsx(LineText, { value: fmtDate(dateIssued), minWidth: "41mm" })] })] })] }), _jsxs("td", { style: {
214
+ width: "42%",
215
+ padding: "9mm 2.5mm 1mm",
216
+ verticalAlign: "top",
217
+ boxSizing: "border-box",
218
+ }, children: [_jsx("div", { style: { marginBottom: "8.8mm" }, children: "Noted by:" }), _jsxs("div", { style: { width: "54mm", margin: "0 auto 1.4mm", textAlign: "center" }, children: [_jsx("div", { style: {
219
+ borderBottom: LINE,
220
+ height: "5.5mm",
221
+ padding: "0.6mm 1mm 1.5mm",
222
+ boxSizing: "border-box",
223
+ lineHeight: 1.1,
224
+ }, children: immediateSupervisorSignature || BLANK }), _jsxs("div", { style: { fontSize: "6.8pt", marginTop: "0.7mm" }, children: ["Signature over Printed Name of the Immediate", _jsx("br", {}), "Supervisor"] })] }), _jsxs("div", { style: { width: "28mm", margin: "4.4mm auto 0", textAlign: "center" }, children: [_jsx("div", { style: {
225
+ borderBottom: LINE,
226
+ height: "5.2mm",
227
+ padding: "0.5mm 1mm 1.4mm",
228
+ boxSizing: "border-box",
229
+ lineHeight: 1.1,
230
+ }, children: fmtDate(immediateSupervisorDate) || BLANK }), _jsx("div", { children: "Date" })] })] })] }) }) }), _jsxs("div", { style: {
231
+ borderLeft: LINE,
232
+ borderRight: LINE,
233
+ borderBottom: LINE,
234
+ minHeight: "31mm",
235
+ padding: "3mm 1mm 1.5mm",
236
+ boxSizing: "border-box",
237
+ }, children: [_jsxs("div", { style: { lineHeight: 1.35, marginBottom: "5.8mm" }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "SUBSCRIBED AND SWORN" }), " to before me this", " ", _jsx(LineText, { value: swornDay, minWidth: "14mm", align: "center" }), " day of", " ", _jsx(LineText, { value: swornMonthYear, minWidth: "27mm", align: "center" }), ", affiant exhibiting the above government issued identification card."] }), _jsx("table", { style: { width: "100%", borderCollapse: "collapse", tableLayout: "fixed" }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsxs("td", { style: { width: "50%", verticalAlign: "top", lineHeight: 1.45 }, children: [_jsxs("div", { children: ["Doc. No. ", _jsx(LineText, { value: docNo, minWidth: "19mm" })] }), _jsxs("div", { children: ["Page No. ", _jsx(LineText, { value: pageNo, minWidth: "19mm" })] }), _jsxs("div", { children: ["Book No. ", _jsx(LineText, { value: bookNo, minWidth: "19mm" })] }), _jsxs("div", { children: ["Series of ", _jsx(LineText, { value: seriesOf, minWidth: "19mm" })] })] }), _jsxs("td", { style: {
238
+ width: "50%",
239
+ verticalAlign: "top",
240
+ textAlign: "center",
241
+ paddingTop: "3.5mm",
242
+ }, children: [_jsx("div", { style: {
243
+ width: "43mm",
244
+ margin: "0 auto",
245
+ borderBottom: LINE,
246
+ height: "5.4mm",
247
+ padding: "0.6mm 1mm 1.5mm",
248
+ boxSizing: "border-box",
249
+ lineHeight: 1.1,
250
+ }, children: notaryPublic || BLANK }), _jsx("div", { style: { marginTop: "0.8mm" }, children: "Notary Public" })] })] }) }) })] })] }) }));
251
+ }
@@ -0,0 +1,33 @@
1
+ export type RlsddspPreviewProps = {
2
+ rlsddspNo?: string;
3
+ entityName?: string;
4
+ fundCluster?: string;
5
+ departmentOffice?: string;
6
+ accountableOfficer?: string;
7
+ designation?: string;
8
+ policeNotified?: string;
9
+ policeStation?: string;
10
+ policeNotifiedDate?: string;
11
+ rlsddspDate?: string;
12
+ icsNo?: string;
13
+ icsDate?: string;
14
+ statusOfProperty?: string;
15
+ propertyNo?: string;
16
+ description?: string;
17
+ acquisitionCost?: string;
18
+ circumstances?: string;
19
+ accountableOfficerSignature?: string;
20
+ accountableOfficerDate?: string;
21
+ governmentIssuedId?: string;
22
+ idNo?: string;
23
+ idDateIssued?: string;
24
+ immediateSupervisorSignature?: string;
25
+ immediateSupervisorDate?: string;
26
+ swornDate?: string;
27
+ docNo?: string;
28
+ pageNo?: string;
29
+ bookNo?: string;
30
+ seriesOf?: string;
31
+ notaryPublic?: string;
32
+ };
33
+ export declare function RlsddspPreview({ rlsddspNo, entityName, fundCluster, departmentOffice, accountableOfficer, designation, policeNotified, policeStation, policeNotifiedDate, rlsddspDate, icsNo, icsDate, statusOfProperty, propertyNo, description, acquisitionCost, circumstances, accountableOfficerSignature, accountableOfficerDate, governmentIssuedId, idNo, idDateIssued, immediateSupervisorSignature, immediateSupervisorDate, swornDate, docNo, pageNo, bookNo, seriesOf, notaryPublic, }: RlsddspPreviewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,226 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ const BLANK = "\u00a0";
4
+ const PROPERTY_ROWS = 7;
5
+ const LINE = "1px solid #111";
6
+ function fmtDate(value) {
7
+ if (!value)
8
+ return "";
9
+ const d = new Date(value);
10
+ return Number.isNaN(d.getTime()) ? value : d.toLocaleDateString("en-PH");
11
+ }
12
+ function fmtCost(value) {
13
+ if (!value || value.trim() === "")
14
+ return "";
15
+ const n = Number(value);
16
+ return Number.isNaN(n)
17
+ ? value
18
+ : n.toLocaleString("en-PH", {
19
+ minimumFractionDigits: 2,
20
+ maximumFractionDigits: 2,
21
+ });
22
+ }
23
+ function splitPreviewLines(value, count, maxChars = 96) {
24
+ const normalized = value.replace(/\s+/g, " ").trim();
25
+ if (!normalized)
26
+ return Array.from({ length: count }, () => "");
27
+ const words = normalized.split(" ");
28
+ const lines = [];
29
+ let current = "";
30
+ for (const word of words) {
31
+ const next = current ? `${current} ${word}` : word;
32
+ if (next.length > maxChars && current) {
33
+ lines.push(current);
34
+ current = word;
35
+ }
36
+ else {
37
+ current = next;
38
+ }
39
+ if (lines.length === count)
40
+ break;
41
+ }
42
+ if (lines.length < count && current)
43
+ lines.push(current);
44
+ return [
45
+ ...lines.slice(0, count),
46
+ ...Array.from({ length: Math.max(0, count - lines.length) }, () => ""),
47
+ ];
48
+ }
49
+ function Checkbox({ checked }) {
50
+ return (_jsx("span", { style: {
51
+ display: "inline-block",
52
+ width: "3.2mm",
53
+ height: "3.2mm",
54
+ border: LINE,
55
+ marginRight: "1.5mm",
56
+ textAlign: "center",
57
+ lineHeight: "3mm",
58
+ fontSize: "6.5pt",
59
+ verticalAlign: "middle",
60
+ }, children: checked ? "\u2713" : "" }));
61
+ }
62
+ function LineText({ value, minWidth = "20mm", align = "left", }) {
63
+ return (_jsx("span", { style: {
64
+ display: "inline-block",
65
+ minWidth,
66
+ height: "4.8mm",
67
+ borderBottom: LINE,
68
+ padding: "0.5mm 1mm 1.2mm",
69
+ textAlign: align,
70
+ boxSizing: "border-box",
71
+ lineHeight: 1.1,
72
+ verticalAlign: "bottom",
73
+ whiteSpace: "nowrap",
74
+ }, children: value || BLANK }));
75
+ }
76
+ function FieldRow({ label, value }) {
77
+ return (_jsxs("div", { style: {
78
+ display: "flex",
79
+ alignItems: "flex-end",
80
+ minHeight: "5mm",
81
+ lineHeight: 1.15,
82
+ }, children: [_jsx("span", { style: { fontWeight: 700, whiteSpace: "nowrap" }, children: label }), _jsx("span", { style: {
83
+ display: "block",
84
+ flex: 1,
85
+ minWidth: 0,
86
+ height: "4.8mm",
87
+ borderBottom: LINE,
88
+ padding: "0.5mm 1mm 1.2mm",
89
+ boxSizing: "border-box",
90
+ lineHeight: 1.1,
91
+ overflow: "hidden",
92
+ whiteSpace: "nowrap",
93
+ }, children: value || BLANK })] }));
94
+ }
95
+ export function RlsddspPreview({ rlsddspNo = "Auto-generated", entityName = "", fundCluster = "", departmentOffice = "", accountableOfficer = "", designation = "", policeNotified = "", policeStation = "", policeNotifiedDate = "", rlsddspDate = "", icsNo = "", icsDate = "", statusOfProperty = "", propertyNo = "", description = "", acquisitionCost = "", circumstances = "", accountableOfficerSignature = "", accountableOfficerDate = "", governmentIssuedId = "", idNo = "", idDateIssued = "", immediateSupervisorSignature = "", immediateSupervisorDate = "", swornDate = "", docNo = "", pageNo = "", bookNo = "", seriesOf = "", notaryPublic = "", }) {
96
+ const status = statusOfProperty.toLowerCase();
97
+ const policeStatus = policeNotified.toLowerCase();
98
+ const circumstanceLines = splitPreviewLines(circumstances, 4);
99
+ const hasProperty = Boolean(propertyNo || description || acquisitionCost);
100
+ const rowCell = {
101
+ borderRight: LINE,
102
+ borderBottom: LINE,
103
+ padding: "0.8mm 1.5mm",
104
+ fontSize: "7.2pt",
105
+ lineHeight: 1.15,
106
+ verticalAlign: "middle",
107
+ };
108
+ let swornDay = "";
109
+ let swornMonthYear = "";
110
+ if (swornDate) {
111
+ const d = new Date(swornDate);
112
+ if (!Number.isNaN(d.getTime())) {
113
+ swornDay = String(d.getDate());
114
+ swornMonthYear = d.toLocaleDateString("en-PH", { month: "long", year: "numeric" });
115
+ }
116
+ }
117
+ return (_jsx("div", { "data-pdf-page": "true", "data-pdf-orientation": "portrait", style: {
118
+ width: "210mm",
119
+ minHeight: "297mm",
120
+ backgroundColor: "#fff",
121
+ boxSizing: "border-box",
122
+ color: "#111",
123
+ fontFamily: '"Times New Roman", Times, serif',
124
+ fontSize: "7.5pt",
125
+ lineHeight: 1.15,
126
+ padding: 0,
127
+ }, children: _jsxs("div", { style: { width: "190mm", margin: "0 auto", paddingTop: "10mm" }, children: [_jsx("div", { style: { textAlign: "right", fontSize: "8pt", fontStyle: "italic", marginBottom: "9mm" }, children: "Annex A.9" }), _jsxs("div", { style: {
128
+ textAlign: "center",
129
+ fontWeight: 700,
130
+ fontSize: "9.2pt",
131
+ lineHeight: 1.15,
132
+ marginBottom: "5.5mm",
133
+ }, children: ["REPORT OF LOST, STOLEN, DAMAGED OR DESTROYED SEMI-EXPENDABLE", _jsx("br", {}), "PROPERTY"] }), _jsx("table", { style: { width: "100%", borderCollapse: "collapse", marginBottom: "1mm" }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsxs("td", { style: { width: "66%", padding: 0 }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "Entity Name : " }), _jsx(LineText, { value: entityName, minWidth: "38mm" })] }), _jsxs("td", { style: { width: "34%", padding: 0, textAlign: "right" }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "Fund Cluster: " }), _jsx(LineText, { value: fundCluster, minWidth: "25mm" })] })] }) }) }), _jsx("table", { style: { width: "100%", borderCollapse: "collapse", tableLayout: "fixed", border: LINE }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsxs("td", { style: {
134
+ width: "66.6%",
135
+ borderRight: LINE,
136
+ padding: "0.8mm 1mm 1mm",
137
+ verticalAlign: "top",
138
+ }, children: [_jsx(FieldRow, { label: "Department/Office : ", value: departmentOffice }), _jsx(FieldRow, { label: "Accountable Officer : ", value: accountableOfficer }), _jsx(FieldRow, { label: "Designation : ", value: designation }), _jsxs("div", { style: {
139
+ display: "grid",
140
+ gridTemplateColumns: "30mm 18mm 1fr",
141
+ columnGap: "1.2mm",
142
+ rowGap: "0.5mm",
143
+ alignItems: "baseline",
144
+ minHeight: "8.4mm",
145
+ lineHeight: 1.15,
146
+ }, children: [_jsx("div", { style: { fontWeight: 700 }, children: "Police Notified :" }), _jsxs("div", { children: [_jsx(Checkbox, { checked: policeStatus === "yes" }), "Yes"] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 700 }, children: "Police Station : " }), _jsx(LineText, { value: policeStation, minWidth: "21mm" })] }), _jsx("div", {}), _jsxs("div", { children: [_jsx(Checkbox, { checked: policeStatus === "no" }), "No"] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 700 }, children: "Date : " }), _jsx(LineText, { value: fmtDate(policeNotifiedDate), minWidth: "24mm" })] })] })] }), _jsxs("td", { style: { width: "33.4%", padding: "0.8mm 1mm 1mm", verticalAlign: "top" }, children: [_jsx(FieldRow, { label: "RLSDDSP No. : ", value: rlsddspNo }), _jsx(FieldRow, { label: "RLSDDSP Date : ", value: fmtDate(rlsddspDate) }), _jsx(FieldRow, { label: "ICS No. : ", value: icsNo }), _jsx(FieldRow, { label: "ICS Date : ", value: fmtDate(icsDate) })] })] }) }) }), _jsxs("div", { style: {
147
+ borderLeft: LINE,
148
+ borderRight: LINE,
149
+ borderBottom: LINE,
150
+ minHeight: "14mm",
151
+ padding: "1.2mm 1.2mm 1mm",
152
+ boxSizing: "border-box",
153
+ }, children: [_jsxs("div", { style: { marginBottom: "1.5mm" }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "Status of Semi-expendable Property : " }), "(check applicable box)"] }), _jsxs("div", { style: {
154
+ display: "grid",
155
+ gridTemplateColumns: "1fr 1fr",
156
+ columnGap: "23mm",
157
+ rowGap: "0.5mm",
158
+ width: "55mm",
159
+ margin: "0 auto",
160
+ }, children: [_jsxs("div", { children: [_jsx(Checkbox, { checked: status === "lost" }), "Lost"] }), _jsxs("div", { children: [_jsx(Checkbox, { checked: status === "damaged" }), "Damaged"] }), _jsxs("div", { children: [_jsx(Checkbox, { checked: status === "stolen" }), "Stolen"] }), _jsxs("div", { children: [_jsx(Checkbox, { checked: status === "destroyed" }), "Destroyed"] })] })] }), _jsxs("table", { style: {
161
+ width: "100%",
162
+ borderCollapse: "collapse",
163
+ tableLayout: "fixed",
164
+ borderLeft: LINE,
165
+ borderRight: LINE,
166
+ }, children: [_jsx("thead", { children: _jsxs("tr", { style: { height: "7mm" }, children: [_jsx("th", { style: { ...rowCell, width: "19%", textAlign: "center", fontWeight: 700 }, children: "Property No." }), _jsx("th", { style: { ...rowCell, width: "48%", textAlign: "center", fontWeight: 700 }, children: "Description" }), _jsx("th", { style: {
167
+ ...rowCell,
168
+ width: "33%",
169
+ borderRight: "none",
170
+ textAlign: "center",
171
+ fontWeight: 700,
172
+ }, children: "Acquisition Cost" })] }) }), _jsx("tbody", { children: Array.from({ length: PROPERTY_ROWS }, (_, index) => (_jsxs("tr", { style: { height: "4.55mm" }, children: [_jsx("td", { style: { ...rowCell }, children: index === 0 && hasProperty ? propertyNo || BLANK : BLANK }), _jsx("td", { style: { ...rowCell }, children: index === 0 && hasProperty ? description || BLANK : BLANK }), _jsx("td", { style: { ...rowCell, borderRight: "none", textAlign: "right" }, children: index === 0 && hasProperty ? fmtCost(acquisitionCost) || BLANK : BLANK })] }, index))) })] }), _jsxs("div", { style: {
173
+ borderLeft: LINE,
174
+ borderRight: LINE,
175
+ borderBottom: LINE,
176
+ minHeight: "22mm",
177
+ padding: "1mm 1mm 1.5mm",
178
+ boxSizing: "border-box",
179
+ }, children: [_jsx("div", { style: { fontWeight: 700, marginBottom: "1.4mm" }, children: "Circumstances:" }), _jsx("div", { style: { padding: "0 12mm" }, children: circumstanceLines.map((line, index) => (_jsx("div", { style: {
180
+ height: "4.8mm",
181
+ borderBottom: LINE,
182
+ padding: "0.5mm 1mm 1.2mm",
183
+ boxSizing: "border-box",
184
+ lineHeight: 1.1,
185
+ whiteSpace: "nowrap",
186
+ overflow: "hidden",
187
+ }, children: line || BLANK }, index))) })] }), _jsx("table", { style: {
188
+ width: "100%",
189
+ borderCollapse: "collapse",
190
+ tableLayout: "fixed",
191
+ borderLeft: LINE,
192
+ borderRight: LINE,
193
+ borderBottom: LINE,
194
+ }, children: _jsx("tbody", { children: _jsxs("tr", { style: { height: "45mm" }, children: [_jsxs("td", { style: {
195
+ width: "58%",
196
+ borderRight: LINE,
197
+ padding: "2.6mm 2.5mm 1mm",
198
+ verticalAlign: "top",
199
+ boxSizing: "border-box",
200
+ }, children: [_jsx("div", { style: { lineHeight: 1.2, marginBottom: "9.2mm" }, children: "I hereby certify that the item/s and circumstances stated above are true and correct." }), _jsxs("div", { style: { width: "57mm", margin: "0 auto 1.2mm", textAlign: "center" }, children: [_jsx("div", { style: { borderBottom: LINE, boxSizing: "border-box", height: "5.5mm", padding: "0.6mm 1mm 1.4mm", lineHeight: 1.1 }, children: accountableOfficerSignature || BLANK }), _jsx("div", { style: { fontSize: "6.8pt", marginTop: "0.7mm" }, children: "Signature over Printed Name of the Accountable Officer" })] }), _jsxs("div", { style: { width: "28mm", margin: "4.5mm auto 3.8mm", textAlign: "center" }, children: [_jsx("div", { style: { borderBottom: LINE, boxSizing: "border-box", height: "5.3mm", padding: "0.6mm 1mm 1.4mm", lineHeight: 1.1 }, children: fmtDate(accountableOfficerDate) || BLANK }), _jsx("div", { children: "Date" })] }), _jsxs("div", { style: { lineHeight: 1.45 }, children: [_jsxs("div", { children: ["Government Issued ID : ", _jsx(LineText, { value: governmentIssuedId, minWidth: "29mm" })] }), _jsxs("div", { children: ["ID No. : ", _jsx(LineText, { value: idNo, minWidth: "39mm" })] }), _jsxs("div", { children: ["Date Issued : ", _jsx(LineText, { value: fmtDate(idDateIssued), minWidth: "35mm" })] })] })] }), _jsxs("td", { style: {
201
+ width: "42%",
202
+ padding: "9mm 2.5mm 1mm",
203
+ verticalAlign: "top",
204
+ boxSizing: "border-box",
205
+ }, children: [_jsx("div", { style: { marginBottom: "8.8mm" }, children: "Noted by:" }), _jsxs("div", { style: { width: "51mm", margin: "0 auto 1.4mm", textAlign: "center" }, children: [_jsx("div", { style: { borderBottom: LINE, boxSizing: "border-box", height: "5.5mm", padding: "0.6mm 1mm 1.4mm", lineHeight: 1.1 }, children: immediateSupervisorSignature || BLANK }), _jsxs("div", { style: { fontSize: "6.8pt", marginTop: "0.7mm" }, children: ["Signature over Printed Name of the Immediate", _jsx("br", {}), "Supervisor"] })] }), _jsxs("div", { style: { width: "28mm", margin: "4.4mm auto 0", textAlign: "center" }, children: [_jsx("div", { style: { borderBottom: LINE, boxSizing: "border-box", height: "5.3mm", padding: "0.6mm 1mm 1.4mm", lineHeight: 1.1 }, children: fmtDate(immediateSupervisorDate) || BLANK }), _jsx("div", { children: "Date" })] })] })] }) }) }), _jsxs("div", { style: {
206
+ borderLeft: LINE,
207
+ borderRight: LINE,
208
+ borderBottom: LINE,
209
+ minHeight: "31mm",
210
+ padding: "3mm 1mm 1.5mm",
211
+ boxSizing: "border-box",
212
+ }, children: [_jsxs("div", { style: { lineHeight: 1.35, marginBottom: "5.8mm" }, children: [_jsx("span", { style: { fontWeight: 700 }, children: "SUBSCRIBED AND SWORN" }), " to before me this", " ", _jsx(LineText, { value: swornDay, minWidth: "14mm", align: "center" }), " day of", " ", _jsx(LineText, { value: swornMonthYear, minWidth: "27mm", align: "center" }), ", affiant exhibiting the above government issued identification card."] }), _jsx("table", { style: { width: "100%", borderCollapse: "collapse", tableLayout: "fixed" }, children: _jsx("tbody", { children: _jsxs("tr", { children: [_jsxs("td", { style: { width: "50%", verticalAlign: "top", lineHeight: 1.45 }, children: [_jsxs("div", { children: ["Doc. No. ", _jsx(LineText, { value: docNo, minWidth: "19mm" })] }), _jsxs("div", { children: ["Page No. ", _jsx(LineText, { value: pageNo, minWidth: "19mm" })] }), _jsxs("div", { children: ["Book No. ", _jsx(LineText, { value: bookNo, minWidth: "19mm" })] }), _jsxs("div", { children: ["Series of ", _jsx(LineText, { value: seriesOf, minWidth: "19mm" })] })] }), _jsxs("td", { style: {
213
+ width: "50%",
214
+ verticalAlign: "top",
215
+ textAlign: "center",
216
+ paddingTop: "3.5mm",
217
+ }, children: [_jsx("div", { style: {
218
+ width: "43mm",
219
+ margin: "0 auto",
220
+ borderBottom: LINE,
221
+ boxSizing: "border-box",
222
+ height: "5.4mm",
223
+ padding: "0.6mm 1mm 1.4mm",
224
+ lineHeight: 1.1,
225
+ }, children: notaryPublic || BLANK }), _jsx("div", { style: { marginTop: "0.8mm" }, children: "Notary Public" })] })] }) }) })] })] }) }));
226
+ }
@@ -0,0 +1,27 @@
1
+ type RpciLine = {
2
+ article?: string;
3
+ description?: string;
4
+ stockNo?: string;
5
+ unitOfMeasure?: string;
6
+ balancePerCard: string;
7
+ unitValue: string;
8
+ onHandPerCount: string;
9
+ shortageOverage: string;
10
+ remarks?: string;
11
+ };
12
+ export type RpciPreviewProps = {
13
+ rpciNo?: string;
14
+ typeOfInventory?: string;
15
+ asAtDate?: string;
16
+ fundCluster?: string;
17
+ nameOfAccountableOfficer?: string;
18
+ officialDesignation?: string;
19
+ entityName?: string;
20
+ dateOfAssumption?: string;
21
+ certifiedCorrectBy?: string;
22
+ approvedBy?: string;
23
+ verifiedBy?: string;
24
+ lines: RpciLine[];
25
+ };
26
+ export declare function RpciPreview({ rpciNo: _rpciNo, typeOfInventory, asAtDate, fundCluster, nameOfAccountableOfficer, officialDesignation, entityName, dateOfAssumption, certifiedCorrectBy, approvedBy, verifiedBy, lines, }: RpciPreviewProps): import("react/jsx-runtime").JSX.Element;
27
+ export {};