@maudecode/kanvil 0.2.1 → 0.3.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.
- package/apps/server/.env.example +19 -0
- package/apps/server/dist/auth-JcS53IcO.mjs +12424 -0
- package/apps/server/dist/{config-CbNqtJEj.mjs → config-D3cAABi7.mjs} +27 -2
- package/apps/server/dist/index.mjs +2500 -294
- package/apps/server/dist/migrate.mjs +1 -1
- package/apps/server/dist/recover.mjs +4 -4
- package/apps/server/drizzle/0014_inbox_dismissal.sql +1 -0
- package/apps/server/drizzle/0015_notification_categories.sql +14 -0
- package/apps/server/drizzle/0016_ticket_resources.sql +19 -0
- package/apps/server/drizzle/0017_project_backgrounds.sql +3 -0
- package/apps/server/drizzle/0018_delivery_outbox.sql +65 -0
- package/apps/server/drizzle/0019_retire_push_deliveries.sql +1 -0
- package/apps/server/drizzle/0020_calendar_feeds.sql +16 -0
- package/apps/server/drizzle/0021_staged_uploads.sql +14 -0
- package/apps/server/drizzle/0022_manual_order.sql +6 -0
- package/apps/server/drizzle/0023_workspace_invitations.sql +22 -0
- package/apps/server/drizzle/0024_workflow_states.sql +39 -0
- package/apps/server/drizzle/0025_workspace_labels.sql +10 -0
- package/apps/server/drizzle/0026_public_read.sql +1 -0
- package/apps/server/drizzle/0027_custom_fields.sql +16 -0
- package/apps/server/drizzle/0028_project_lifecycle.sql +11 -0
- package/apps/server/drizzle/0029_ticket_relocation.sql +16 -0
- package/apps/server/drizzle/0030_repository_connections.sql +39 -0
- package/apps/server/drizzle/0031_repository_providers.sql +3 -0
- package/apps/server/drizzle/0032_workspace_ownership.sql +11 -0
- package/apps/server/drizzle/0033_import_runs.sql +38 -0
- package/apps/server/drizzle/0034_issue_sync.sql +38 -0
- package/apps/server/drizzle/0035_account_deletion.sql +9 -0
- package/apps/server/drizzle/0036_workspace_roles.sql +16 -0
- package/apps/server/drizzle/0037_email_code_owner.sql +14 -0
- package/apps/server/drizzle/meta/0014_snapshot.json +4246 -0
- package/apps/server/drizzle/meta/0015_snapshot.json +4297 -0
- package/apps/server/drizzle/meta/0016_snapshot.json +4443 -0
- package/apps/server/drizzle/meta/0017_snapshot.json +4468 -0
- package/apps/server/drizzle/meta/0018_snapshot.json +4948 -0
- package/apps/server/drizzle/meta/0019_snapshot.json +4826 -0
- package/apps/server/drizzle/meta/0020_snapshot.json +4947 -0
- package/apps/server/drizzle/meta/0021_snapshot.json +5059 -0
- package/apps/server/drizzle/meta/0022_snapshot.json +5094 -0
- package/apps/server/drizzle/meta/0023_snapshot.json +5267 -0
- package/apps/server/drizzle/meta/0024_snapshot.json +5405 -0
- package/apps/server/drizzle/meta/0025_snapshot.json +5474 -0
- package/apps/server/drizzle/meta/0026_snapshot.json +5481 -0
- package/apps/server/drizzle/meta/0027_snapshot.json +5605 -0
- package/apps/server/drizzle/meta/0028_snapshot.json +5699 -0
- package/apps/server/drizzle/meta/0029_snapshot.json +5809 -0
- package/apps/server/drizzle/meta/0030_snapshot.json +6066 -0
- package/apps/server/drizzle/meta/0031_snapshot.json +6074 -0
- package/apps/server/drizzle/meta/0032_snapshot.json +6100 -0
- package/apps/server/drizzle/meta/0033_snapshot.json +6406 -0
- package/apps/server/drizzle/meta/0034_snapshot.json +6698 -0
- package/apps/server/drizzle/meta/0035_snapshot.json +6704 -0
- package/apps/server/drizzle/meta/0036_snapshot.json +6825 -0
- package/apps/server/drizzle/meta/0037_snapshot.json +6825 -0
- package/apps/server/drizzle/meta/_journal.json +168 -0
- package/apps/web/dist/assets/CompositeItem-BbuEp99X.js +1 -0
- package/apps/web/dist/assets/Trans-DJGH63s1.js +1 -0
- package/apps/web/dist/assets/abnfDiagram-WEYOIA3C-DTOx8N4B.js +1 -0
- package/apps/web/dist/assets/admin-settings-CJG9PMKR.js +1 -0
- package/apps/web/dist/assets/arc-Y1ARJVZ4.js +1 -0
- package/apps/web/dist/assets/architecture-WOLXFQ4H-DlC3p5z3.js +1 -0
- package/apps/web/dist/assets/architectureDiagram-ZHVYKT53-DooN3Z58.js +36 -0
- package/apps/web/dist/assets/archive-restore-B6_SsOIP.js +1 -0
- package/apps/web/dist/assets/array-BifhSqXX.js +1 -0
- package/apps/web/dist/assets/az-AZ-BtrlbgjS.js +1 -0
- package/apps/web/dist/assets/az-D-kj4lmf.js +1 -0
- package/apps/web/dist/assets/az-DqY__MpS.js +1 -0
- package/apps/web/dist/assets/blockDiagram-RJAE7QA3-CD5AgY4U.js +140 -0
- package/apps/web/dist/assets/c4Diagram-XDPPPE54-CTDOcLuN.js +38 -0
- package/apps/web/dist/assets/channel-BhHvU4I-.js +1 -0
- package/apps/web/dist/assets/chunk-2E7WHVMD-D9qnBqTV.js +88 -0
- package/apps/web/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/apps/web/dist/assets/chunk-4EMNKR2T-Kz5JiJ85.js +1 -0
- package/apps/web/dist/assets/chunk-55XCU76K-DnKiFpYM.js +1 -0
- package/apps/web/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/apps/web/dist/assets/chunk-7S6XSTFO-CpdNd6Ke.js +2 -0
- package/apps/web/dist/assets/chunk-AQDTSKZB-CpyuSWt8.js +72 -0
- package/apps/web/dist/assets/chunk-DSNLSHJZ-DTC3y9rb.js +129 -0
- package/apps/web/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/apps/web/dist/assets/chunk-HAGFOTED-Bv8PrMYK.js +62 -0
- package/apps/web/dist/assets/chunk-HNE4Q36P-CDDJ_yRa.js +1 -0
- package/apps/web/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/apps/web/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/apps/web/dist/assets/chunk-NGNAAXSQ-C2Wy9Xmz.js +136 -0
- package/apps/web/dist/assets/chunk-NQOKRVIF-lNtnsWHS.js +213 -0
- package/apps/web/dist/assets/chunk-UHW7PFBP-D79ptlTN.js +1 -0
- package/apps/web/dist/assets/chunk-VQ5W62QI-B8hWFCiM.js +1 -0
- package/apps/web/dist/assets/chunk-WQQL4CDK-DAGuWzS3.js +10 -0
- package/apps/web/dist/assets/chunk-XXDRQBXY-CnbRkih_.js +1 -0
- package/apps/web/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/apps/web/dist/assets/chunk-YZO67HFG-C0ptzlKO.js +1 -0
- package/apps/web/dist/assets/chunk-ZAUX2LTX-ah8U5xoJ.js +1 -0
- package/apps/web/dist/assets/chunk-ZCHMQSOR-DYqATOIZ.js +2 -0
- package/apps/web/dist/assets/classDiagram-v2-4MYWR3UA-DYytA-ua.js +217 -0
- package/apps/web/dist/assets/core-jXc03Sty.js +1 -0
- package/apps/web/dist/assets/corner-left-up-DA7MG5uX.js +1 -0
- package/apps/web/dist/assets/cose-bilkent-JH36ORCC-lWVj4msc.js +1 -0
- package/apps/web/dist/assets/cynefin-EF2NZ3EQ-Xy6e6m1E.js +1 -0
- package/apps/web/dist/assets/cynefinDiagram-WF24UDRP-BYarZJSm.js +62 -0
- package/apps/web/dist/assets/cytoscape.esm-BegBNzOV.js +321 -0
- package/apps/web/dist/assets/dagre-NK4GIZVX-WLvvUY1o.js +4 -0
- package/apps/web/dist/assets/de-DAv77-wP.js +1 -0
- package/apps/web/dist/assets/de-DE-Bu_Ko2QA.js +1 -0
- package/apps/web/dist/assets/de-UHreLwyV.js +1 -0
- package/apps/web/dist/assets/default-D5TdIZQS.js +56 -0
- package/apps/web/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/apps/web/dist/assets/delivery-settings-BE5MW8U0.js +1 -0
- package/apps/web/dist/assets/diagram-CBK3MWTC-D6PtxkLg.js +24 -0
- package/apps/web/dist/assets/diagram-I5XIIV2D-DTOKQwIY.js +24 -0
- package/apps/web/dist/assets/diagram-ODIL2UCW-BmERt0Xu.js +30 -0
- package/apps/web/dist/assets/diagram-PFBEJUXE-WDUe08eD.js +3 -0
- package/apps/web/dist/assets/diagram-RJA3I4VV-B2K-NLGG.js +41 -0
- package/apps/web/dist/assets/diagram-TYUNFSNR-BLf7PpV7.js +200 -0
- package/apps/web/dist/assets/dist-CumnGVmJ.js +1 -0
- package/apps/web/dist/assets/ebnfDiagram-V4P3TTPT-DwBUQs9p.js +1 -0
- package/apps/web/dist/assets/el-D2ypddWn.js +1 -0
- package/apps/web/dist/assets/el-EJnrsyVr.js +1 -0
- package/apps/web/dist/assets/el-GR-CpKEps47.js +1 -0
- package/apps/web/dist/assets/elk-QONTBCTQ-AuT8PinL.js +27 -0
- package/apps/web/dist/assets/ellipsis-D6154JKs.js +1 -0
- package/apps/web/dist/assets/en-EnSRisMz.js +1 -0
- package/apps/web/dist/assets/en-US-DKYSujv3.js +1 -0
- package/apps/web/dist/assets/erDiagram-KYQIGQAA-h--u4Eo6.js +99 -0
- package/apps/web/dist/assets/es-B_49BMhR.js +1 -0
- package/apps/web/dist/assets/es-D2ScuV-5.js +1 -0
- package/apps/web/dist/assets/es-ES-DVkfi7H-.js +1 -0
- package/apps/web/dist/assets/eventmodeling-K75KTNOO-CW4hDt1j.js +1 -0
- package/apps/web/dist/assets/flowDiagram-IUGLLWBU-BGUscnNP.js +1 -0
- package/apps/web/dist/assets/forms-BcD6Wwyv.js +1 -0
- package/apps/web/dist/assets/fr-B-WmPGZD.js +1 -0
- package/apps/web/dist/assets/fr-C_VpS8u6.js +1 -0
- package/apps/web/dist/assets/fr-FR-DkHaEHqi.js +1 -0
- package/apps/web/dist/assets/ganttDiagram-R7GPNTJY-CB3lsQvj.js +292 -0
- package/apps/web/dist/assets/gitGraph-VSP46ZUC-Hu-kvdCR.js +1 -0
- package/apps/web/dist/assets/gitGraphDiagram-PDYL7XHY-DCuY3C1Q.js +106 -0
- package/apps/web/dist/assets/graphlib-DS17s2tU.js +1 -0
- package/apps/web/dist/assets/hi-CW4rdp_m.js +1 -0
- package/apps/web/dist/assets/hi-DvoDcUpL.js +1 -0
- package/apps/web/dist/assets/hi-IN-CbUDNSTK.js +1 -0
- package/apps/web/dist/assets/highlight-CMydIf9M.js +5 -0
- package/apps/web/dist/assets/id-CPASBZ2r.js +1 -0
- package/apps/web/dist/assets/id-CvL3yBVr.js +1 -0
- package/apps/web/dist/assets/id-ID-DLTkxt2j.js +1 -0
- package/apps/web/dist/assets/index-DoqlyejP.js +17 -0
- package/apps/web/dist/assets/index-DyQNFS69.css +2 -0
- package/apps/web/dist/assets/info-OHQRW6UA-Cc8VwTsk.js +1 -0
- package/apps/web/dist/assets/infoDiagram-MVDRKAX5-KIMOx55J.js +2 -0
- package/apps/web/dist/assets/init-C-OQMol4.js +1 -0
- package/apps/web/dist/assets/invitations-BmpelTJu.js +1 -0
- package/apps/web/dist/assets/isSameWeek-2ftYGvBT.js +1 -0
- package/apps/web/dist/assets/ishikawaDiagram-HPEHV2GE-CAou726L.js +70 -0
- package/apps/web/dist/assets/it-Cd7u97Jd.js +1 -0
- package/apps/web/dist/assets/it-DOLotXOj.js +1 -0
- package/apps/web/dist/assets/it-IT-CIzq0YwC.js +1 -0
- package/apps/web/dist/assets/item-Cq_ZbivE.js +1 -0
- package/apps/web/dist/assets/ja-B1iJt9qB.js +1 -0
- package/apps/web/dist/assets/ja-JP-CIE4-D-v.js +1 -0
- package/apps/web/dist/assets/ja-LkOrjegp.js +1 -0
- package/apps/web/dist/assets/journeyDiagram-BOSHW7O7-YbJuPYDH.js +139 -0
- package/apps/web/dist/assets/kanban-definition-FNSA4HC5-nuRnm9y8.js +89 -0
- package/apps/web/dist/assets/katex-B_JcIwqj.js +257 -0
- package/apps/web/dist/assets/ko-DPpXw683.js +1 -0
- package/apps/web/dist/assets/ko-KR-DYP5Zae6.js +1 -0
- package/apps/web/dist/assets/ko-fmUq1-8W.js +1 -0
- package/apps/web/dist/assets/label-settings-B3LsJxhk.js +1 -0
- package/apps/web/dist/assets/line-WsxZYwZr.js +1 -0
- package/apps/web/dist/assets/linear-C9iwaMOi.js +1 -0
- package/apps/web/dist/assets/lucide-DIlszs-T.js +1 -0
- package/apps/web/dist/assets/markdown-blocks-Bw26pRKB.js +2 -0
- package/apps/web/dist/assets/member-directory-CHKUw0u4.js +1 -0
- package/apps/web/dist/assets/mermaid-parser.core-B5c-1CnP.js +7 -0
- package/apps/web/dist/assets/mermaid.core-vGVkgzA3.js +44 -0
- package/apps/web/dist/assets/mindmap-definition-6OY57UG3-uooJyUak.js +98 -0
- package/apps/web/dist/assets/mk-CkaQRpqe.js +1 -0
- package/apps/web/dist/assets/mk-LWVrR-T-.js +1 -0
- package/apps/web/dist/assets/mk-MK-CpOo5Bd8.js +1 -0
- package/apps/web/dist/assets/nl-DiEjqOA8.js +1 -0
- package/apps/web/dist/assets/nl-NL-Mu8G8RON.js +1 -0
- package/apps/web/dist/assets/nl-ro6hbqo5.js +1 -0
- package/apps/web/dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/apps/web/dist/assets/packet-JDAUHWVQ-WJpqlH1d.js +1 -0
- package/apps/web/dist/assets/path-fybaL0A-.js +1 -0
- package/apps/web/dist/assets/pegDiagram-ECIUJNBX-CUvajD93.js +1 -0
- package/apps/web/dist/assets/pie-XZMESJXO-DvandPby.js +1 -0
- package/apps/web/dist/assets/pieDiagram-GNMPY74T-CqxeyIaP.js +39 -0
- package/apps/web/dist/assets/pl-Bx_fYLKY.js +1 -0
- package/apps/web/dist/assets/pl-CauoMfkf.js +1 -0
- package/apps/web/dist/assets/pl-PL-DGuxe2Aq.js +1 -0
- package/apps/web/dist/assets/preload-helper-BLdHbfdN.js +1 -0
- package/apps/web/dist/assets/project-lifecycle-Ba7iRF3u.js +1 -0
- package/apps/web/dist/assets/project-settings-CtOWgEam.js +1 -0
- package/apps/web/dist/assets/pt-BR-BpOhwoDW.js +1 -0
- package/apps/web/dist/assets/pt-BR-D-a7F5zJ.js +1 -0
- package/apps/web/dist/assets/pt-BR-DwkMPgq1.js +1 -0
- package/apps/web/dist/assets/public-project-CHRjhFIn.js +1 -0
- package/apps/web/dist/assets/quadrantDiagram-D57K4MC3-DFjNmaZc.js +7 -0
- package/apps/web/dist/assets/radar-ABXABTNO-CJhZF9j2.js +1 -0
- package/apps/web/dist/assets/railroad-I3PHUGI6-DZC10oBD.js +1 -0
- package/apps/web/dist/assets/railroad-abnf-LNEFI6M7-BUJF2n6u.js +1 -0
- package/apps/web/dist/assets/railroad-ebnf-DWYD2UWJ-CG7oB02K.js +1 -0
- package/apps/web/dist/assets/railroad-peg-JR7BVNR7-DBCZuZJY.js +1 -0
- package/apps/web/dist/assets/railroadDiagram-Y72NRBL7-CvN3poBq.js +1 -0
- package/apps/web/dist/assets/requirementDiagram-EQYSW5RA-BEItNirc.js +84 -0
- package/apps/web/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
- package/apps/web/dist/assets/rotate-ccw-Bm0ESNH_.js +1 -0
- package/apps/web/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/apps/web/dist/assets/ru-D-WIMI5_.js +1 -0
- package/apps/web/dist/assets/ru-DOaRp00B.js +1 -0
- package/apps/web/dist/assets/ru-RU-DrXnqZbV.js +1 -0
- package/apps/web/dist/assets/sankeyDiagram-SY24JHO5-DluLIjax.js +40 -0
- package/apps/web/dist/assets/search-D94SZwrC.js +85 -0
- package/apps/web/dist/assets/send-D9TETK3s.js +1 -0
- package/apps/web/dist/assets/sequenceDiagram-BLEHNHQU-ZcwnsNxK.js +169 -0
- package/apps/web/dist/assets/settings-Dd9EVxua.js +1 -0
- package/apps/web/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/apps/web/dist/assets/sliders-horizontal-CiZZFL1o.js +1 -0
- package/apps/web/dist/assets/src-BWF7jMDv.js +1 -0
- package/apps/web/dist/assets/stateDiagram-v2-A6IESKWZ-DD6vH3rM.js +291 -0
- package/apps/web/dist/assets/swimlanes-B3ENRKFQ-pX_qyO4X.js +1 -0
- package/apps/web/dist/assets/swimlanesDiagram-AYQRV4AK-CeVsLUsg.js +8 -0
- package/apps/web/dist/assets/switch-B_u8n1o6.js +1 -0
- package/apps/web/dist/assets/table-DcCLC7fi.js +1 -0
- package/apps/web/dist/assets/ticket-detail-C9egaVSf.js +2 -0
- package/apps/web/dist/assets/ticket-editor-UlSZgpWF.js +2 -0
- package/apps/web/dist/assets/ticket-list-controls-BidzkMOD.js +1 -0
- package/apps/web/dist/assets/ticket-list-vNBO8mkk.js +5 -0
- package/apps/web/dist/assets/timeline-definition-JXYKGLGB-DLBjAxKq.js +120 -0
- package/apps/web/dist/assets/toDate-B3HYxwtT.js +1 -0
- package/apps/web/dist/assets/tr-BZEJyY-F.js +1 -0
- package/apps/web/dist/assets/tr-DeYojjLx.js +1 -0
- package/apps/web/dist/assets/tr-TR-B92YeFW5.js +1 -0
- package/apps/web/dist/assets/treeView-D4JQ5SDB-DsJ44q_q.js +1 -0
- package/apps/web/dist/assets/treemap-SAJKECNS-BmXoBpVL.js +1 -0
- package/apps/web/dist/assets/uk-DACrfgCP.js +1 -0
- package/apps/web/dist/assets/uk-UA-DmcDs-MU.js +1 -0
- package/apps/web/dist/assets/uk-f8X5q5C_.js +1 -0
- package/apps/web/dist/assets/upload-CGpna3R2.js +1 -0
- package/apps/web/dist/assets/useQueries-BihXYrAP.js +1 -0
- package/apps/web/dist/assets/usecaseDiagram-WPOLBNNX-eU2tr2si.js +328 -0
- package/apps/web/dist/assets/vennDiagram-Q3Y3IDCW-CoVTWGNg.js +34 -0
- package/apps/web/dist/assets/vi-CSGaJFlR.js +1 -0
- package/apps/web/dist/assets/vi-CkqUo4w_.js +1 -0
- package/apps/web/dist/assets/vi-VN-DM5JYNuP.js +1 -0
- package/apps/web/dist/assets/visual-editor-B6HiiLMg.js +208 -0
- package/apps/web/dist/assets/wardley-7MLQ67FV-C6mVVk98.js +1 -0
- package/apps/web/dist/assets/wardleyDiagram-IVAIDKWA-m3CeJc7a.js +78 -0
- package/apps/web/dist/assets/workspace-settings-CSvVqaL6.js +1 -0
- package/apps/web/dist/assets/xychartDiagram-4URNHDU4-Dw6fLaip.js +7 -0
- package/apps/web/dist/assets/zh-CN-BdRcimyZ.js +1 -0
- package/apps/web/dist/assets/zh-CN-CC7ghLLr.js +1 -0
- package/apps/web/dist/assets/zh-CN-CiUOkQXe.js +1 -0
- package/apps/web/dist/assets/zh-TW-BH1L9tOt.js +1 -0
- package/apps/web/dist/assets/zh-TW-BlIRMi1C.js +1 -0
- package/apps/web/dist/assets/zh-TW-Co4UBSfi.js +1 -0
- package/apps/web/dist/index.html +14 -8
- package/compose.yml +12 -0
- package/docs/api.md +285 -10
- package/docs/infrastructure.md +2 -2
- package/docs/localization.md +25 -0
- package/docs/plan.md +28 -10
- package/docs/self-hosting.md +44 -5
- package/docs/themes.md +1 -1
- package/docs/verification.md +1 -1
- package/docs/workspaces.md +18 -2
- package/package.json +12 -8
- package/apps/server/dist/auth-I1XEr0d4.mjs +0 -2931
- package/apps/web/dist/assets/CompositeItem-BWPJ5Mol.js +0 -1
- package/apps/web/dist/assets/admin-settings-DZqkC6ju.js +0 -1
- package/apps/web/dist/assets/date-picker-6H_iwP6t.js +0 -1
- package/apps/web/dist/assets/ellipsis-BT172Uvu.js +0 -1
- package/apps/web/dist/assets/forms-B4Vg3CPz.js +0 -92
- package/apps/web/dist/assets/image-edit-trigger-DGmVtWLC.js +0 -1
- package/apps/web/dist/assets/index-C_a21taR.js +0 -50
- package/apps/web/dist/assets/index-DM-D_3Sv.css +0 -2
- package/apps/web/dist/assets/kbd-tTQGZxaK.js +0 -1
- package/apps/web/dist/assets/link-DoIP9KJ6.js +0 -2
- package/apps/web/dist/assets/list-order-Bzsrihyr.js +0 -1
- package/apps/web/dist/assets/lucide-U995NW8E.js +0 -1
- package/apps/web/dist/assets/member-directory-BiCE8DRq.js +0 -1
- package/apps/web/dist/assets/popover-BhzZ0U1d.js +0 -1
- package/apps/web/dist/assets/project-label-provider-9L7Uts3_.js +0 -1
- package/apps/web/dist/assets/project-settings-Q7Q9Reec.js +0 -1
- package/apps/web/dist/assets/rotate-ccw-sjyLwLLy.js +0 -1
- package/apps/web/dist/assets/settings-B6qD6q1J.js +0 -1
- package/apps/web/dist/assets/settings-layout-B-AwUIMu.js +0 -1
- package/apps/web/dist/assets/switch-D0nFHj6l.js +0 -1
- package/apps/web/dist/assets/table-CYZiwo9g.js +0 -1
- package/apps/web/dist/assets/ticket-detail-B-3vbHSB.js +0 -2
- package/apps/web/dist/assets/ticket-editor-C3d8TZIT.js +0 -1
- package/apps/web/dist/assets/ticket-list-LtGGOnwN.js +0 -5
- package/apps/web/dist/assets/ticket-tags-2rdmkcJV.js +0 -1
- package/apps/web/dist/assets/upload-DXPRzAaa.js +0 -1
- package/apps/web/dist/assets/useNavigate-DFohfUD3.js +0 -1
- package/apps/web/dist/assets/workspace-settings-D3tCm1vH.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{A as t,Gt as n,Kt as r,Mn as i,Xt as a,c as o,f as s,in as c,pn as l,r as u,tn as d,x as f}from"./default-D5TdIZQS.js";import{Aa as p,B as m,F as h,G as g,Ga as _,Hi as v,I as y,J as b,Ji as ee,K as te,N as ne,Oa as re,P as ie,Pi as x,Q as ae,Ua as oe,V as se,Va as ce,W as le,Wa as ue,X as de,Y as fe,Zi as pe,_t as me,a as he,di as S,dt as ge,ea as _e,g as C,ka as w,l as ve,lr as ye,m as be,nt as T,o as xe,q as Se,qa as Ce,st as we,ta as Te,ut as Ee,wo as De}from"./search-D94SZwrC.js";import{t as Oe}from"./useQueries-BihXYrAP.js";import{g as ke,p as Ae,u as je}from"./item-Cq_ZbivE.js";import{t as E}from"./archive-restore-B6_SsOIP.js";import{r as Me,t as Ne}from"./Trans-DJGH63s1.js";import{n as Pe}from"./project-lifecycle-Ba7iRF3u.js";import{n as Fe}from"./CompositeItem-BbuEp99X.js";import{n as Ie}from"./ticket-list-controls-BidzkMOD.js";import{t as Le}from"./ellipsis-D6154JKs.js";import{_ as D,d as Re,m as O,p as ze,r as Be}from"./en-US-DKYSujv3.js";import{$ as Ve,A as He,B as Ue,C as We,Ct as Ge,Ft as Ke,G as qe,Gt as Je,H as Ye,I as Xe,It as k,J as Ze,K as Qe,Kt as $e,Lt as et,Mt as tt,N as nt,Nt as rt,P as it,Pt as A,Q as at,R as ot,Rt as st,St as ct,U as lt,Ut as ut,V as dt,Vt as ft,W as pt,Wt as mt,Y as ht,a as gt,an as _t,at as vt,b as yt,bt,ct as xt,dt as St,et as j,ft as Ct,gn as wt,hn as Tt,it as Et,jt as Dt,lt as Ot,mt as M,nt as kt,ot as At,pt as jt,rt as Mt,st as Nt,ut as Pt,vt as Ft,w as It,xt as Lt,yn as Rt,yt as zt,z as Bt,zt as N}from"./index-DoqlyejP.js";import{a as Vt,i as Ht,n as Ut,o as Wt,r as Gt,t as Kt}from"./table-DcCLC7fi.js";import{TicketEditor as qt}from"./ticket-editor-UlSZgpWF.js";var Jt={name:`bookmark-plus`,size:24,node:[[`path`,{d:`M12 7v6`,key:`lw1j43`}],[`path`,{d:`M15 10H9`,key:`o6yqo3`}],[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]};Jt.node;var Yt=_(Jt),Xt={name:`list-todo`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]};Xt.node;var Zt=_(Xt),Qt={name:`notebook-tabs`,size:24,node:[[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`path`,{d:`M15 2v20`,key:`dcj49h`}],[`path`,{d:`M15 7h5`,key:`1xj5lc`}],[`path`,{d:`M15 12h5`,key:`w5shd9`}],[`path`,{d:`M15 17h5`,key:`1qaofu`}]]};Qt.node;var $t=_(Qt);function P(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=en(e);if(n.length!==en(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function en(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}var F=e(i(),1);function tn(e){return I(e)||typeof e==`function`||nn(e)}function I(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function nn(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function L(e,t){return e==null?null:tn(e)?F.createElement(e,t):e}function rn(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?L(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:L(n.cell,t.getContext())}return`header`in e&&e.header?L(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?L(e.footer.column.columnDef.footer,e.footer.getContext()):null}function an(e){let t=mt(e.source,e.selector,{compare:P});return typeof e.children==`function`?e.children(t):e.children}function on(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function sn(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return(!a||!i(o,t))&&(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function cn(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{(!n||!t(r,e))&&i(e)})}}function ln(){return sn({createAtom:$e,batch:Je})}function un(e,t){return typeof e==`function`?e(t):e}function R(e){if(Array.isArray(e))return e.map(R);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?z():{},r=Object.keys(e);for(let t=0;t<r.length;t++){let i=r[t];Object.defineProperty(n,i,{configurable:!0,enumerable:!0,value:R(e[i]),writable:!0})}return n}return e}function dn(e,t){let n=Object.keys(t),r=e;for(let e=0;e<n.length;e++){let i=n[e];!i.startsWith(`_memo_`)&&i!==`_cellsCache`&&(r[i]=t[i])}return e}function z(){return Object.create(null)}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function V(e,t){return n=>{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>un(n,e))}}function fn(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function pn(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var H=3;function mn(e,t){return U(e,t,H)}function U(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!fn(e)||!fn(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=pn(e),i=pn(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e<r.length;e++){let i=r[e];if(!Object.prototype.propertyIsEnumerable.call(t,i)||!U(a[i],o[i],n-1))return!1}return!0}function W(e,t,n,r=mn){let i=`on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`,a=e.options[i];a&&a(e=>{let t=un(n,e);return r(e,t)?e:t})}function hn(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var gn=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e<l.length;e++)if(l[e]!==o[e]){u=!0;break}}return n?.(u),u&&(o=l,a?.(),s=e(...l??[]),r?.(s)),s}};function _n(e){let t=!1;return()=>{t?e():t=!0}}function vn({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o={onAfterUpdate:r?()=>{let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))}:void 0};return gn({...a,...o})}function yn(e,t=`_`){let[n,r]=e.replace(t,` `).split(` `);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function G(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=yn(r);t[n]=a?vn({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function K(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=yn(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=vn({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function q(e,t,n,...r){return e[t]?.(...r)??n(e,...r)}function bn(e){return e.row.getValue(e.column.id)}function xn(e){return e.getValue()??e.table.options.renderFallbackValue}function Sn(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var Cn={assignCellPrototype:(e,t)=>{K(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>bn(e)},cell_renderValue:{fn:e=>xn(e)},cell_getContext:{fn:e=>Sn(e),memoDeps:e=>[e]}})}};function J(e){if(!e._columnPrototype){e._columnPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignColumnPrototype?.(e._columnPrototype,e)}return e._columnPrototype}function wn(e,t,n,r){let i={...e.getDefaultColumnDef(),...t},a=i.accessorKey,o=a===void 0?void 0:String(a),s=i.id??o?.replaceAll(`.`,`_`)??(typeof i.header==`string`?i.header:void 0),c;if(i.accessorFn)c=i.accessorFn;else if(a!==void 0){if(typeof a==`string`&&a.includes(`.`)){let e=a.split(`.`);c=t=>{let n=t;for(let t=0;t<e.length;t++){let r=e[t];n=n?.[r]}return n}}else c=e=>e[i.accessorKey]}if(!s)throw Error();let l=J(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;e<d.length;e++)d[e](u);return u}function Tn(e){return e.getIsVisible?.()??!0}function En(e){return e.getVisibleLeafColumns?.()??e.getAllLeafColumns()}function Dn(e,t){let n=e,r=t;return n.getOrderColumnsFn?.()(r)??n._orderGroupedColumns?.(r)??t}function On(e,t,n,r){return e._orderByColumnPinning?.(t,n,r)??t}function Y(e,t){return e.getPinnedVisibleLeafColumns?.(t)??(t&&t!==`center`?[]:En(e))}function kn(e,t){return e._expandRows?.(t)??t}function An(e){e.autoResetExpanded?.()}function jn(e){e.autoResetPageIndex?.()}function Mn(e){e.autoResetSorting?.()}function Nn(e){e.autoResetCellSelection?.()}function Pn(e){return[e,...e.columns.flatMap(e=>e.getFlatColumns())]}function Fn(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return Dn(e.table,t)}return[e]}function In(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function Ln(e,t,n,r=0){let i=Array(t.length);for(let a=0;a<t.length;a++){if(!(a in t))continue;let o=t[a],s=wn(e,o,r,n),c=o;s.columns=c.columns?Ln(e,c.columns,s,r+1):[],i[a]=s}return i}function Rn(e){return Ln(e,e.options.columns)}function zn(e){return e.getAllColumns().flatMap(e=>e.getFlatColumns())}function Bn(e){let t=z(),n=e.getAllFlatColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function Vn(e){return Dn(e,e.getAllColumns().flatMap(e=>e.getLeafColumns()))}function Hn(e){let t=z(),n=e.getAllLeafColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function Un(e,t){return e.getAllFlatColumnsById()[t]}var Wn={assignColumnPrototype:(e,t)=>{K(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>Pn(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>Fn(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{G(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>In(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>Rn(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>zn(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>Bn(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>Vn(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>Hn(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>Un(e,t)}})}};function X(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignHeaderPrototype?.(e._headerPrototype,e)}return e._headerPrototype}function Gn(e,t,n){let r=X(e),i=Object.create(r);i.colSpan=0,i.column=t,i.depth=n.depth,i.headerGroup=null,i.id=n.id??t.id,i.index=n.index,i.isPlaceholder=!!n.isPlaceholder,i.placeholderId=n.placeholderId,i.rowSpan=0,i.subHeaders=[];let a=e._headerInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function Kn(e,t=1){let n=t;for(let r=0;r<e.length;r++){let i=e[r];Tn(i)&&i.columns.length&&(n=Math.max(n,Kn(i.columns,t+1)))}return n}function qn(e,t){return e?`${e}_${t}`:String(t)}function Jn(e,t,n,r){let i=e??``;return t&&(i=i?`${i}_${t}`:String(t)),n&&(i=i?`${i}_${n}`:n),r&&(i=i?`${i}_${r}`:r),i}function Yn(e,t){let n=0;for(let r=0;r<e.length;r++)e[r].column===t&&n++;return n}function Xn(e,t,n,r,i,a){let o={depth:t,id:qn(r,t),headers:[]},s=[];for(let i=0;i<e.length;i++){if(!(i in e))continue;let a=e[i],c=s[s.length-1],l=a.column.depth===o.depth,u,d=!1;if(l&&a.column.parent?u=a.column.parent:(u=a.column,d=!0),c&&c.column===u)c.subHeaders.push(a);else{let e=Gn(n,u,{id:Jn(r,t,u.id,a.id),isPlaceholder:d,placeholderId:d?String(Yn(s,u)):void 0,depth:t,index:s.length});e.subHeaders.push(a),s.push(e)}o.headers.push(a),a.headerGroup=o}for(let e=0;e<a.length;e++)a[e](o);i.push(o),t>0&&Xn(s,t-1,n,r,i,a)}function Zn(e){for(let t=0;t<e.length;t++){let n=e[t];if(!Tn(n.column))continue;let r=0;if(n.subHeaders.length){Zn(n.subHeaders);for(let e=0;e<n.subHeaders.length;e++){let t=n.subHeaders[e];Tn(t.column)&&(r+=t.colSpan)}}else r=1;if(n.colSpan=r,n.isPlaceholder&&n.subHeaders.length===1&&n.subHeaders[0].column===n.column){let e=1,t=n.subHeaders[0];for(;t;)t.rowSpan=0,e++,t=t.subHeaders.length===1&&t.subHeaders[0].column===n.column?t.subHeaders[0]:void 0;n.rowSpan=e}else n.rowSpan=1}}function Qn(e,t,n,r){let i=Kn(e),a=[],o=n._headerGroupInstanceInitFns,s=Array(t.length);for(let e=0;e<t.length;e++)e in t&&(s[e]=Gn(n,t[e],{depth:i,index:e}));return Xn(s,i-1,n,r,a,o),a.reverse(),Zn(a[0]?.headers??[]),a}function $n(e,t){for(let n=0;n<e.subHeaders.length;n++)$n(e.subHeaders[n],t);t.push(e)}function er(e){let t=[];return $n(e,t),t}function tr(e){return{column:e.column,header:e,table:e.column.table}}function nr(e){return Qn(e.getAllColumns(),On(e,En(e),e=>e.id),e)}function rr(e){return[...e.getHeaderGroups()].reverse()}function ir(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e<t.length;e++){let r=t[e].headers;for(let e=0;e<r.length;e++)n.push(r[e])}return n}function ar(e){let t=e.getHeaderGroups()[0]?.headers??[],n=[];for(let e=0;e<t.length;e++){let r=t[e].getLeafHeaders();for(let e=0;e<r.length;e++)n.push(r[e])}return n}var or={assignHeaderPrototype:(e,t)=>{K(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>er(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>tr(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{G(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>nr(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>rr(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>ir(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>ar(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function sr(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignRowPrototype?.(e._rowPrototype,e)}return e._rowPrototype}var cr=(e,t,n,r,i,a,o)=>{let s=sr(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=z(),c._valuesCache=z(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;e<l.length;e++)l[e](c);return c};function lr(){return e=>vn({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>dr(e,e.options.data),onAfterUpdate:_n(()=>{An(e),jn(e),Mn(e),Nn(e)})})}function ur(e,t,n,r=0,i){let a=[];for(let o=0;o<n.length;o++){let s=n[o],c=cr(e,e.getRowId(s,o,i),s,o,r,void 0,i?.id);t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(s,o),c.originalSubRows?.length&&(c.subRows=ur(e,t,c.originalSubRows,r+1,c)))}return a}function dr(e,t){let n={rows:[],flatRows:[],rowsById:z()};return n.rows=ur(e,n,t),n}function fr(e){return e._rowModels.coreRowModel||(e._rowModels.coreRowModel=e.options.features.coreRowModel?.(e)??lr()(e)),e._rowModels.coreRowModel()}function pr(e){return e.getCoreRowModel()}function mr(e){return e._rowModels.filteredRowModel||(e._rowModels.filteredRowModel=e.options.features.filteredRowModel?.(e)),e.options.manualFiltering||!e._rowModels.filteredRowModel?e.getPreFilteredRowModel():e._rowModels.filteredRowModel()}function hr(e){return e.getFilteredRowModel()}function gr(e){return e._rowModels.groupedRowModel||(e._rowModels.groupedRowModel=e.options.features.groupedRowModel?.(e)),e.options.manualGrouping||!e._rowModels.groupedRowModel?e.getPreGroupedRowModel():e._rowModels.groupedRowModel()}function _r(e){return e.getGroupedRowModel()}function vr(e){return e._rowModels.sortedRowModel||(e._rowModels.sortedRowModel=e.options.features.sortedRowModel?.(e)),e.options.manualSorting||!e._rowModels.sortedRowModel?e.getPreSortedRowModel():e._rowModels.sortedRowModel()}function yr(e){return e.getSortedRowModel()}function br(e){return e._rowModels.expandedRowModel||(e._rowModels.expandedRowModel=e.options.features.expandedRowModel?.(e)),e.options.manualExpanding||!e._rowModels.expandedRowModel?e.getPreExpandedRowModel():e._rowModels.expandedRowModel()}function xr(e){return e.getExpandedRowModel()}function Sr(e){return e._rowModels.paginatedRowModel||(e._rowModels.paginatedRowModel=e.options.features.paginatedRowModel?.(e)),e.options.manualPagination||!e._rowModels.paginatedRowModel?e.getPrePaginatedRowModel():e._rowModels.paginatedRowModel()}function Cr(e){return e.getPaginatedRowModel()}var wr={constructTableAPIs:e=>{G(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>fr(e)},table_getPreFilteredRowModel:{fn:()=>pr(e)},table_getFilteredRowModel:{fn:()=>mr(e)},table_getPreGroupedRowModel:{fn:()=>hr(e)},table_getGroupedRowModel:{fn:()=>gr(e)},table_getPreSortedRowModel:{fn:()=>_r(e)},table_getSortedRowModel:{fn:()=>vr(e)},table_getPreExpandedRowModel:{fn:()=>yr(e)},table_getExpandedRowModel:{fn:()=>br(e)},table_getPrePaginatedRowModel:{fn:()=>xr(e)},table_getPaginatedRowModel:{fn:()=>Sr(e)},table_getRowModel:{fn:()=>Cr(e)}})}};function Tr(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignCellPrototype?.(e._cellPrototype,e)}return e._cellPrototype}function Er(e,t,n){let r=Tr(n),i=Object.create(r);i.column=e,i.id=`${t.id}_${e.id}`,i.row=t;let a=n._cellInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function Dr(e){let t=e.table.getRowsInDisplayOrder(),n=e._displayIndexCache;return t[n]===e?n:-1}function Or(e){let t=e.getPrePaginatedRowModel(),n=e.options.paginateExpandedRows===!1?kn(e,t).rows:t.rows;for(let e=0;e<n.length;e++)n[e]._displayIndexCache=e;return n}function kr(e,t){if(B(e._valuesCache,t))return e._valuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return e._valuesCache[t]=n.accessorFn(e.original,e.index),e._valuesCache[t]}function Ar(e,t){if(B(e._uniqueValuesCache,t))return e._uniqueValuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return n.columnDef.getUniqueValues?(e._uniqueValuesCache[t]=n.columnDef.getUniqueValues(e.original,e.index),e._uniqueValuesCache[t]):(e._uniqueValuesCache[t]=[e.getValue(t)],e._uniqueValuesCache[t])}function jr(e,t){return e.getValue(t)??e.table.options.renderFallbackValue}function Mr(e){return hn(e.subRows,e=>e.subRows)}function Nr(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e<t.length;e++)n=Math.max(n,t[e].depth);return n}function Pr(e){if(e.parentId)return e.table.getCoreRowModel().rowsById[e.parentId]??e.table.getRow(e.parentId,!0)}function Fr(e){let t=[],n=e;for(;;){let e=n.getParentRow();if(!e)break;t.push(e),n=e}return t.reverse()}function Ir(e){let t=e.table.getAllLeafColumns(),n=e._cellsCache;n||=e._cellsCache=new WeakMap;let r=Array(t.length);for(let i=0;i<t.length;i++){let a=t[i],o=n.get(a);o||(o=Er(a,e,e.table),n.set(a,o)),r[i]=o}return r}function Lr(e){let t=z(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];t[r.column.id]=r}return t}function Rr(e,t,n,r){return t.options.getRowId?.(e,n,r)??(r?`${r.id}.${n}`:String(n))}function zr(e,t,n){let r=(n?e.getPrePaginatedRowModel():e.getRowModel()).rowsById[t];if(!r&&(r=e.getCoreRowModel().rowsById[t],!r))throw Error();return r}var Br={assignRowPrototype:(e,t)=>{K(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>Dr(e)},row_getAllCellsByColumnId:{fn:e=>Lr(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>Ir(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>Mr(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>Pr(e)},row_getParentRows:{fn:e=>Fr(e)},row_getUniqueValues:{fn:(e,t)=>Ar(e,t)},row_getValue:{fn:(e,t)=>kr(e,t)},row_renderValue:{fn:(e,t)=>jr(e,t)}})},constructTableAPIs:e=>{G(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>Or(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>Rr(t,e,n,r)},table_getRow:{fn:(t,n)=>zr(e,t,n)},table_getMaxSubRowDepth:{fn:()=>Nr(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function Vr(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function Hr(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{Vr(e,t,n),e._reactivity.commit?.()})}function Ur(e){let t=R(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;r<n.length;r++){let i=n[r];e.baseAtoms[i].set(t[i])}});let n=Object.values(e._features);for(let t=0;t<n.length;t++)n[t].resetTableInstanceData?.(e)}function Wr(e,t){let{features:n,atoms:r,initialState:i}=e.options;if(!e.options.mergeOptions)return{...e.options,...t,features:n,atoms:r,initialState:i};let a=e.options.mergeOptions(e.options,t),o={...Object.getOwnPropertyDescriptors(a)};return Object.defineProperties(Object.create(Object.getPrototypeOf(a)),{...o,features:{value:n,enumerable:!0,configurable:!0,writable:!0},atoms:{value:r,enumerable:!0,configurable:!0,writable:!0},initialState:{value:i,enumerable:!0,configurable:!0,writable:!0}})}function Gr(e,t,n){let r=Wr(e,un(t,e.options));e.optionsStore?e.optionsStore.set(()=>r):e.options=r,n?.syncExternalState!==!1&&Hr(e,r.state??null)}var Kr={coreCellsFeature:Cn,coreColumnsFeature:Wn,coreHeadersFeature:or,coreRowModelsFeature:wr,coreRowsFeature:Br,coreTablesFeature:{constructTableAPIs:e=>{G(`coreTablesFeature`,e,{table_reset:{fn:()=>Ur(e)},table_setOptions:{fn:t=>Gr(e,t)}})}}};function qr(e){return e}function Jr(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),R(t)}function Yr(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...Kr,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=Jr(v._features,v.options.initialState);let ee=Object.keys(v.initialState);for(let e=0;e<ee.length;e++){let n=ee[e];v.baseAtoms[n]=t.createWritableAtom(v.initialState[n],{debugName:`table/baseAtoms/${n}`}),v.atoms[n]=t.createReadonlyAtom(()=>{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&B(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}Vr(v),v.store=on(t.createReadonlyAtom(()=>{let e={};for(let t=0;t<ee.length;t++){let n=ee[t];e[n]=v.atoms[n].get()}return e},{compare:P,debugName:`table/store`}));for(let e=0;e<y.length;e++){let t=y[e];t.initTableInstanceData?.(v),t.initCellInstanceData&&v._cellInstanceInitFns.push(t.initCellInstanceData.bind(t)),t.initColumnInstanceData&&v._columnInstanceInitFns.push(t.initColumnInstanceData.bind(t)),t.initHeaderGroupInstanceData&&v._headerGroupInstanceInitFns.push(t.initHeaderGroupInstanceData.bind(t)),t.initHeaderInstanceData&&v._headerInstanceInitFns.push(t.initHeaderInstanceData.bind(t)),t.initRowInstanceData&&v._rowInstanceInitFns.push(t.initRowInstanceData.bind(t)),t.constructTableAPIs?.(v)}return v}function Xr(){return z()}function Zr(){return{size:150,minSize:20,maxSize:2**53-1}}function Qr(e){let t=Zr(),n=e.table.atoms.columnSizing?.get(),r=n&&B(n,e.id)?n[e.id]:void 0;return Math.min(Math.max(e.columnDef.minSize??t.minSize,r??e.columnDef.size??t.size),e.columnDef.maxSize??t.maxSize)}function $r(e){let t=z(),n=z(),r=Array(e.length),i=0;for(let n=0;n<e.length;n++){let a=e[n],o=q(a,`getSize`,Qr);r[n]=o,t[a.id]=i,i+=o}let a=0;for(let t=e.length-1;t>=0;t--)n[e[t].id]=a,a+=r[t];return{starts:t,afters:n}}function ei(e){return{all:$r(Y(e)),center:$r(Y(e,`center`)),start:$r(Y(e,`start`)),end:$r(Y(e,`end`))}}function ti(e){return e===`start`?`start`:e===`end`?`end`:e===`center`?`center`:`all`}function ni(e,t){return q(e.table,`getColumnOffsets`,ei)[ti(t)].starts[e.id]??0}function ri(e,t){return q(e.table,`getColumnOffsets`,ei)[ti(t)].afters[e.id]??0}function ii(e){ci(e.table,t=>{let n=z(),r=Object.keys(t);for(let i=0;i<r.length;i++){let a=r[i];a!==e.id&&(n[a]=t[a])}return n})}function ai(e){if(!e.subHeaders.length)return Qr(e.column);let t=0;for(let n=0;n<e.subHeaders.length;n++)t+=ai(e.subHeaders[n]);return t}function oi(e){return ai(e)}function si(e){if(e.index>0){let t=e.headerGroup?.headers[e.index-1];if(t)return q(t,`getStart`,si)+q(t,`getSize`,oi)}return 0}function ci(e,t){e.options.onColumnSizingChange?.(t)}function li(e,t){ci(e,t?z():Object.assign(z(),R(e.initialState.columnSizing??{})))}function ui(e){let t=0;for(let n=0;n<e.length;n++)t+=q(e[n],`getSize`,Qr);return t}function di(e){return e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+oi(t),0)??0}function fi(e){return ui(Y(e,`start`))}function pi(e){return ui(Y(e,`center`))}function mi(e){return ui(Y(e,`end`))}function hi(){return{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}}function gi(e){return(e.columnDef.enableResizing??!0)&&(e.table.options.enableColumnResizing??!0)}function _i(e){return e.table.atoms.columnResizing?.get()?.isResizingColumn===e.id}function vi(e,t){let n=e.table.getColumn(e.column.id),r=gi(n);return i=>{if(!r||Ci(i)&&i.touches.length>1)return;let a=oi(e),o=e.getLeafHeaders().map(e=>[e.column.id,Qr(e.column)]),s=Ci(i)?Math.round(i.touches[0].clientX):i.clientX,c=z(),l=(e,t)=>{if(typeof t!=`number`)return;let r=n.table,i=r.options.columnResizeMode===`onChange`||e===`end`;r._reactivity.batch(()=>{yi(r,e=>{let n=r.options.columnResizeDirection===`rtl`?-1:1,a=(t-(e.startOffset??0))*n,o=e.startSize??0,s=Math.max(o>0?a/o:0,-.999999);if(i){let t=e.columnSizingStart;for(let e=0;e<t.length;e++){let n=t[e],r=n[1];c[n[0]]=Math.round(Math.max(r>0?r+r*s:a/t.length,0)*100)/100}}return{...e,deltaOffset:a,deltaPercentage:s}}),i&&ci(r,e=>Object.assign(z(),e,c))})},u=null,d=!1,f,p=()=>{d?(d=!1,l(`move`,f),u=requestAnimationFrame(p)):u=null},m=e=>{f=e,typeof requestAnimationFrame==`function`?u===null?(l(`move`,e),u=requestAnimationFrame(p)):d=!0:l(`move`,e)},h=e=>{u!==null&&(cancelAnimationFrame(u),u=null,d=!1),n.table._reactivity.batch(()=>{l(`end`,e??f),yi(n.table,e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))})},g=t||(typeof document<`u`?document:null),_={moveHandler:e=>m(e.clientX),upHandler:e=>{g?.removeEventListener(`mousemove`,_.moveHandler),g?.removeEventListener(`mouseup`,_.upHandler),h(e.clientX)}},v={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),m(e.touches[0].clientX),!1),upHandler:e=>{y(),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(e.touches[0]?.clientX)},cancelHandler:()=>{y(),h()}},y=()=>{g?.removeEventListener(`touchmove`,v.moveHandler),g?.removeEventListener(`touchend`,v.upHandler),g?.removeEventListener(`touchcancel`,v.cancelHandler)},b=Si()?{passive:!1}:!1;Ci(i)?(g?.addEventListener(`touchmove`,v.moveHandler,b),g?.addEventListener(`touchend`,v.upHandler,b),g?.addEventListener(`touchcancel`,v.cancelHandler,b)):(g?.addEventListener(`mousemove`,_.moveHandler,b),g?.addEventListener(`mouseup`,_.upHandler,b)),yi(n.table,e=>({...e,startOffset:s,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:n.id}))}}function yi(e,t){e.options.onColumnResizingChange?.(t)}function bi(e,t){yi(e,t?hi():R(e.initialState.columnResizing??hi()))}var xi=null;function Si(){if(typeof xi==`boolean`)return xi;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return xi=e,xi}function Ci(e){return e.type===`touchstart`}var wi={getInitialState:e=>({columnResizing:hi(),...e}),getDefaultTableOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnResizingChange:V(`columnResizing`,e)}),assignColumnPrototype:(e,t)=>{K(`columnResizingFeature`,e,t,{column_getCanResize:{fn:e=>gi(e)},column_getIsResizing:{fn:e=>_i(e)}})},assignHeaderPrototype:(e,t)=>{K(`columnResizingFeature`,e,t,{header_getResizeHandler:{fn:(e,t)=>vi(e,t)}})},constructTableAPIs:e=>{G(`columnResizingFeature`,e,{table_setColumnResizing:{fn:t=>yi(e,t)},table_resetHeaderSizeInfo:{fn:t=>bi(e,t)}})}},Ti={getInitialState:e=>({columnSizing:Xr(),...e}),getDefaultColumnDef:()=>Zr(),getDefaultTableOptions:e=>({onColumnSizingChange:V(`columnSizing`,e)}),assignColumnPrototype:(e,t)=>{K(`columnSizingFeature`,e,t,{column_getSize:{fn:e=>Qr(e),memoDeps:e=>[t.options.columns,t.atoms.columnSizing?.get()?.[e.id]]},column_getStart:{fn:(e,t)=>ni(e,t)},column_getAfter:{fn:(e,t)=>ri(e,t)},column_resetSize:{fn:e=>ii(e)}})},assignHeaderPrototype:(e,t)=>{K(`columnSizingFeature`,e,t,{header_getSize:{fn:e=>oi(e),memoDeps:e=>[t.options.columns,e.column.columns.length>0?t.atoms.columnSizing?.get():t.atoms.columnSizing?.get()?.[e.column.id]]},header_getStart:{fn:e=>si(e),memoDeps:()=>[t.options.columns,t.atoms.columnSizing?.get(),t.atoms.columnOrder?.get(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get(),t.atoms.grouping?.get(),t.options.groupedColumnMode]}})},constructTableAPIs:e=>{G(`columnSizingFeature`,e,{table_getColumnOffsets:{fn:()=>ei(e),memoDeps:()=>[e.options.columns,e.atoms.columnSizing?.get(),e.atoms.columnOrder?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.atoms.grouping?.get(),e.options.groupedColumnMode]},table_setColumnSizing:{fn:t=>ci(e,t)},table_resetColumnSizing:{fn:t=>li(e,t)},table_getTotalSize:{fn:()=>di(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getStartTotalSize:{fn:()=>fi(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getCenterTotalSize:{fn:()=>pi(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getEndTotalSize:{fn:()=>mi(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]}})}};function Ei(){return z()}function Di(e,t){Oi(e)&&Pi(e.table,n=>{let r=Object.assign(z(),n),i=t??!q(e,`getIsVisible`,Z),a=e.getLeafColumns();for(let e=0;e<a.length;e++){let t=a[e];Oi(t)&&(r[t.id]=i)}return r})}function Z(e){let t=e.table.atoms.columnVisibility?.get();if(!t)return!0;let n=e.columns;return n.length?n.some(e=>q(e,`getIsVisible`,Z)):(B(t,e.id)?t[e.id]:void 0)??!0}function Oi(e){return(e.columnDef.enableHiding??!0)&&(e.table.options.enableHiding??!0)}function ki(e){return t=>{Di(e,t.target.checked)}}function Ai(e){let t=e.getAllCells(),n=[];for(let e=0;e<t.length;e++){let r=t[e];q(r.column,`getIsVisible`,Z)&&n.push(r)}return On(e.table,n,e=>e.column.id,()=>q(e,`getVisibleCellsByColumnId`,ji))}function ji(e){let t=z(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];q(r.column,`getIsVisible`,Z)&&(t[r.column.id]=r)}return t}function Mi(e){return e.getAllFlatColumns().filter(e=>q(e,`getIsVisible`,Z))}function Ni(e){return e.getAllLeafColumns().filter(e=>q(e,`getIsVisible`,Z))}function Pi(e,t){W(e,`columnVisibility`,t)}function Fi(e,t){Pi(e,t?z():Object.assign(z(),R(e.initialState.columnVisibility??{})))}function Ii(e,t){t??=!Li(e);let n=z(),r=e.getAllLeafColumns();for(let e=0;e<r.length;e++){let i=r[e];n[i.id]=t||!Oi(i)}Pi(e,n)}function Li(e){return!e.getAllLeafColumns().some(e=>!q(e,`getIsVisible`,Z))}function Ri(e){return e.getAllLeafColumns().some(e=>q(e,`getIsVisible`,Z))}function zi(e){return t=>{Ii(e,t.target.checked)}}var Bi={getInitialState:e=>({columnVisibility:Ei(),...e}),getDefaultTableOptions:e=>({onColumnVisibilityChange:V(`columnVisibility`,e)}),assignColumnPrototype:(e,t)=>{K(`columnVisibilityFeature`,e,t,{column_getIsVisible:{fn:e=>Z(e),memoDeps:e=>[t.options.columns,t.atoms.columnVisibility?.get(),e.columns]},column_getCanHide:{fn:e=>Oi(e)},column_getToggleVisibilityHandler:{fn:e=>ki(e)},column_toggleVisibility:{fn:(e,t)=>Di(e,t)}})},assignRowPrototype:(e,t)=>{K(`columnVisibilityFeature`,e,t,{row_getVisibleCells:{fn:e=>Ai(e),memoDeps:e=>[e.getAllCells(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get()]},row_getVisibleCellsByColumnId:{fn:e=>ji(e),memoDeps:e=>[e.getAllCells(),t.atoms.columnVisibility?.get()]}})},constructTableAPIs:e=>{G(`columnVisibilityFeature`,e,{table_getVisibleFlatColumns:{fn:()=>Mi(e),memoDeps:()=>[e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getVisibleLeafColumns:{fn:()=>Ni(e),memoDeps:()=>[e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_setColumnVisibility:{fn:t=>Pi(e,t)},table_resetColumnVisibility:{fn:t=>Fi(e,t)},table_toggleAllColumnsVisible:{fn:t=>Ii(e,t)},table_getIsAllColumnsVisible:{fn:()=>Li(e)},table_getIsSomeColumnsVisible:{fn:()=>Ri(e)},table_getToggleAllColumnsVisibilityHandler:{fn:()=>zi(e)}})}};function Vi(){return z()}function Hi(e,t){e.options.onRowSelectionChange?.(t)}function Ui(e,t){e._lastSelectedRowId=null,Hi(e,t?z():Object.assign(z(),R(e.initialState.rowSelection??{})))}function Wi(e,t,n){e._lastSelectedRowId=null,Hi(e,r=>{if(t=t===void 0?!q(e,`getIsAllRowsSelected`,Zi):t,n?.deselectAll&&!t)return z();let i=Object.assign(z(),r),a=e.getPreGroupedRowModel().flatRows;if(t){let e=new Map;a.forEach(t=>{fa(t,e)&&(i[t.id]=!0)})}else a.forEach(e=>{Q(e)&&delete i[e.id]});return i})}function Gi(e,t,n){e._lastSelectedRowId=null,Hi(e,r=>{let i=t===void 0?!q(e,`getIsAllPageRowsSelected`,Qi):t;if(n?.deselectAll&&!i)return z();let a=Object.assign(z(),r);return e.getRowModel().rows.forEach(t=>{da(a,t.id,i,!0,e,!0)}),a})}function Ki(e){return e.getCoreRowModel()}function qi(e){let t=e.getCoreRowModel();return q(e,`getIsSomeRowsSelected`,$i)?ha(t,e):{rows:[],flatRows:[],rowsById:z()}}function Ji(e){let t=e.getFilteredRowModel();return q(e,`getIsSomeRowsSelected`,$i)?ha(t,e):{rows:[],flatRows:[],rowsById:z()}}function Yi(e){let t=e.getSortedRowModel();return q(e,`getIsSomeRowsSelected`,$i)?ha(t,e):{rows:[],flatRows:[],rowsById:z()}}function Xi(e){return Object.keys(e.atoms.rowSelection?.get()??{})}function Zi(e){let t=e.getFilteredRowModel().flatRows,n=e.atoms.rowSelection?.get()??{},r=!!(t.length&&Object.keys(n).length);if(r){let e=new Map;t.some(t=>!ga(t,n)&&fa(t,e))&&(r=!1)}return r}function Qi(e){let t=e.getPaginatedRowModel().flatRows,n=e.atoms.rowSelection?.get()??{},r=new Map,i=!1;for(let e=0;e<t.length;e++){let a=t[e];if(ga(a,n))!i&&fa(a,r)&&(i=!0);else if(fa(a,r))return!1}return i}function $i(e){return q(e,`getSelectedRowIds`,Xi).length>0}function ea(e){return e.getPaginatedRowModel().flatRows.filter(e=>Q(e)).some(e=>ia(e)||q(e,`getIsSomeSelected`,aa))}function ta(e){return t=>{Wi(e,t.target.checked)}}function na(e){return t=>{Gi(e,t.target.checked)}}function ra(e,t,n){let r=ia(e);Hi(e.table,i=>{t=t===void 0?!r:t;let a=Object.assign(z(),i);return da(a,e.id,t,(n?.selectChildren??!0)&&ca(e),e.table),!t&&n?.deselectParents&&pa(a,e),a})}function ia(e){return ga(e,e.table.atoms.rowSelection?.get()??{})}function aa(e){return _a(e)===`some`}function oa(e){return _a(e)===`all`}function Q(e){let t=e.table.options;return typeof t.enableRowSelection==`function`?t.enableRowSelection(e):t.enableRowSelection??!0}function sa(e){let t=e.table.options;return typeof t.enableSubRowSelection==`function`?t.enableSubRowSelection(e):t.enableSubRowSelection??!0}function ca(e){let t=e.table.options;return typeof t.enableMultiRowSelection==`function`?t.enableMultiRowSelection(e):t.enableMultiRowSelection??!0}function la(e,t){let n=Q(e);return r=>{if(!n)return;let i=r,a=e.table,o=i.target.checked,s=a._lastSelectedRowId;(!(a.options.enableRowRangeSelection!==!1&&s!==null&&ca(e)&&(a.options.isRowRangeSelectionEvent?.(r)??!1))||!ua(e,s,o,t))&&ra(e,o,t),a._lastSelectedRowId=e.id}}function ua(e,t,n,r){let i=r?.selectChildren??!0,a=e.table,o=a.getRowsInDisplayOrder(),s=a.getPrePaginatedRowModel().rowsById[t]??a.getCoreRowModel().rowsById[t];if(!s)return!1;let c=s.getDisplayIndex(),l=e.getDisplayIndex(),u=o[c],d=o[l];if(c<0||l<0||c>=o.length||l>=o.length||u?.id!==s.id||d?.id!==e.id||!ca(s)||!ca(e))return!1;let f=Math.min(c,l),p=Math.max(c,l);return Hi(a,e=>{let t=Object.assign(z(),e);for(let e=f;e<=p;e++){let s=o[e];Q(s)&&ca(s)&&(da(t,s.id,n,i,a),!n&&r?.deselectParents&&pa(t,s))}return t}),!0}function da(e,t,n,r,i,a){let o=i.getRow(t,!0);n?(ca(o)||Object.keys(e).forEach(t=>delete e[t]),Q(o)&&(e[t]=!0)):(!a||Q(o))&&delete e[t],r&&o.subRows.length&&sa(o)&&o.subRows.forEach(t=>da(e,t.id,n,r,i,a))}function fa(e,t){if(!Q(e))return!1;let n=e.table;if(n.options.enableSubRowSelection===!0)return!0;let r=e.parentId;if(r===void 0)return!0;let i=t.get(r);if(i!==void 0)return i;let a=n.getCoreRowModel().rowsById,o=[],s=!0,c=r;for(;c!==void 0;){let e=t.get(c);if(e!==void 0){s=e;break}o.push(c);let r=a[c]??n.getRow(c,!0);if(!sa(r)){s=!1;break}c=r.parentId}return o.forEach(e=>t.set(e,s)),s}function pa(e,t){let n=t.table.getCoreRowModel().rowsById,r=t.parentId;for(;r!==void 0;)delete e[r],r=(n[r]??t.table.getRow(r,!0)).parentId}function ma(e,t,n,r){let i=[];for(let a=0;a<e.length;a++){let o=e[a],s=ga(o,t);if(s&&(n.push(o),r[o.id]=o),o.subRows.length){let e=ma(o.subRows,t,n,r);if(s){let t=Object.create(Object.getPrototypeOf(o));dn(t,o),t.subRows=e,i.push(t)}}else s&&i.push(o)}return i}function ha(e,t){let n=[],r=z(),i=t.atoms.rowSelection?.get()??{};return{rows:ma(e.rows,i,n,r),flatRows:n,rowsById:r}}function ga(e,t){return!!(B(t,e.id)&&t[e.id])}function _a(e){if(!e.subRows.length)return!1;let t=e.table.atoms.rowSelection?.get()??{},n=!1,r=!0,i=!1;for(let a=0;a<e.subRows.length;a++){let o=e.subRows[a];if(n&&!r)break;if(Q(o)&&(i=!0,ga(o,t)?n=!0:r=!1),o.subRows.length){let e=_a(o);e===`all`?(n=!0,i=!0):e===`some`?(n=!0,r=!1,i=!0):r=!1}}return i?r?`all`:n?`some`:!1:!1}var va={initTableInstanceData:e=>{e._lastSelectedRowId=null},resetTableInstanceData:e=>{e._lastSelectedRowId=null},getInitialState:e=>({rowSelection:Vi(),...e}),getDefaultTableOptions:e=>({onRowSelectionChange:V(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableRowRangeSelection:!0,enableSubRowSelection:!0,isRowRangeSelectionEvent:e=>{let t=e;return!!(t.shiftKey||t.nativeEvent?.shiftKey)}}),assignRowPrototype:(e,t)=>{K(`rowSelectionFeature`,e,t,{row_toggleSelected:{fn:(e,t,n)=>ra(e,t,n)},row_getIsSelected:{fn:e=>ia(e)},row_getIsSomeSelected:{fn:e=>aa(e),memoDeps:e=>[e.subRows,e.table.atoms.rowSelection?.get(),e.table.options.enableRowSelection]},row_getIsAllSubRowsSelected:{fn:e=>oa(e),memoDeps:e=>[e.subRows,e.table.atoms.rowSelection?.get(),e.table.options.enableRowSelection]},row_getCanSelect:{fn:e=>Q(e)},row_getCanSelectSubRows:{fn:e=>sa(e)},row_getCanMultiSelect:{fn:e=>ca(e)},row_getToggleSelectedHandler:{fn:(e,t)=>la(e,t)}})},constructTableAPIs:e=>{G(`rowSelectionFeature`,e,{table_setRowSelection:{fn:t=>Hi(e,t)},table_resetRowSelection:{fn:t=>Ui(e,t)},table_toggleAllRowsSelected:{fn:(t,n)=>Wi(e,t,n)},table_toggleAllPageRowsSelected:{fn:(t,n)=>Gi(e,t,n)},table_getPreSelectedRowModel:{fn:()=>Ki(e)},table_getSelectedRowModel:{fn:()=>qi(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getCoreRowModel()]},table_getFilteredSelectedRowModel:{fn:()=>Ji(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getFilteredRowModel()]},table_getGroupedSelectedRowModel:{fn:()=>Yi(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getSortedRowModel()]},table_getSelectedRowIds:{fn:()=>Xi(e),memoDeps:()=>[e.atoms.rowSelection?.get()]},table_getIsAllRowsSelected:{fn:()=>Zi(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getFilteredRowModel(),e.options.enableRowSelection,e.options.enableSubRowSelection]},table_getIsAllPageRowsSelected:{fn:()=>Qi(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getPaginatedRowModel(),e.options.enableRowSelection,e.options.enableSubRowSelection]},table_getIsSomeRowsSelected:{fn:()=>$i(e),memoDeps:()=>[e.atoms.rowSelection?.get()]},table_getIsSomePageRowsSelected:{fn:()=>ea(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getPaginatedRowModel(),e.options.enableRowSelection]},table_getToggleAllRowsSelectedHandler:{fn:()=>ta(e)},table_getToggleAllPageRowsSelectedHandler:{fn:()=>na(e)}})}},ya=typeof window>`u`?F.useEffect:F.useLayoutEffect;function ba(e,t){let[{table:n,rootSource:r}]=(0,F.useState)(()=>{let t=Yr({...e,features:{coreReactivityFeature:ln(),...e.features}});return t.Subscribe=(e=>an({...e,source:e.source??t.store})),t.FlexRender=rn,{table:t,rootSource:cn(t.store,P)}}),i=n;Gr(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=mt(r,t,{compare:P});return ya(()=>{r.markCommitted(o),Hr(i,a??null,P)}),(0,F.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}var $=u();function xa(e,t){let[n,...r]=e.map(t),i=JSON.stringify(n);return{value:n,mixed:r.some(e=>JSON.stringify(e)!==i)}}var Sa=`max-sm:hidden`,Ca=100;function wa({selected:e,total:t,collection:r,onClear:i}){let a=pe(`bulk_update_tickets`),o=pe(`bulk_delete_tickets`),s=De(),[c,u]=(0,F.useState)(!1),[d,f]=(0,F.useState)(null),m=e[0]?.projectId,h=_e(m??``,!!m),g=St(m);if(!m)return null;let _=e.map(e=>({ticketId:e.id,expectedVersion:e.version}));async function v(e){u(!0);try{await e()}catch(e){throw await s.invalidateQueries({queryKey:[`kanvil`]}),e}finally{u(!1)}}let ee=e=>v(async()=>{for(let t=0;t<_.length;t+=Ca)await a.mutateAsync({projectId:m,tickets:_.slice(t,t+Ca),changes:e}).catch(e=>{throw t&&re.warning(l(`ticket.selection.partlyApplied`,{done:t,count:_.length})),e})});function te(t,n){c||ee(t).then(()=>{re.success(l(`ticket.selection.applied`,{label:n,count:e.length})),i()}).catch(Ee)}let x=e.every(e=>e.status===`backlog`&&!e.archived),ae=e.every(e=>e.archived),oe=xa(e,e=>e.labels.toSorted()),ce=xa(e,e=>e.dueAt);return(0,$.jsx)(`div`,{className:`pointer-events-none fixed right-4 bottom-4 z-40 w-[100cqw] max-w-none md:right-10`,children:(0,$.jsxs)(`div`,{className:`pointer-events-auto mx-auto flex w-fit max-w-full flex-wrap items-center justify-center gap-1 rounded-xl border bg-popover p-1.5 text-popover-foreground shadow-lg animate-in fade-in-0 slide-in-from-bottom-4 duration-200`,role:`region`,"aria-label":l(`ticket.selection.region`),children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-1 pr-1`,children:[(0,$.jsx)(b,{label:l(`ticket.selection.clear`),size:`icon-sm`,disabled:c,onClick:i,children:(0,$.jsx)(p,{})}),(0,$.jsx)(`span`,{className:`text-xs font-medium whitespace-nowrap tabular-nums`,role:`status`,children:e.length===t?l(`ticket.selection.selected`,{count:e.length}):(0,$.jsx)(Ne,{i18nKey:`ticket.selection.selectedOf`,count:e.length,values:{total:t},components:{wide:(0,$.jsx)(`span`,{className:Sa})}})}),c&&(0,$.jsx)(me,{className:`size-3.5`})]}),(0,$.jsx)(ye,{orientation:`vertical`,className:`hidden h-5! sm:block`}),xt.map(t=>{let n=vt[t],{value:r,mixed:i}=xa(e,e=>Nt(e,t));return(0,$.jsxs)(j,{property:t,projectId:m,value:r,mixed:i,disabled:c,align:`end`,onChange:e=>te(Et(t,e),At[t]),children:[(0,$.jsx)(n,{className:`size-3.5 text-muted-foreground`,"aria-hidden":`true`}),(0,$.jsx)(`span`,{className:Sa,children:At[t]})]},t)}),(0,$.jsx)(Ve,{replace:!0,value:oe.value,mixed:oe.mixed,disabled:c,textClassName:Sa,onChange:e=>te({labels:e},l(`ticket.tags.labels`))}),(0,$.jsx)(M,{variant:`pill`,label:l(`ticket.date.due`),placeholder:ce.mixed?l(`ticket.selection.mixedDue`):l(`ticket.date.due`),value:!ce.mixed&&ce.value?new Date(ce.value):null,mixed:ce.mixed,disabled:c,textClassName:Sa,onChange:e=>te({dueAt:e?Ft(e):null},l(`ticket.date.due`))}),!!g.data?.length&&(0,$.jsxs)(ne,{children:[(0,$.jsxs)(y,{disabled:c,render:(0,$.jsx)(S,{variant:`ghost`,size:`sm`,className:`h-7 px-2`,"aria-label":l(`ticket.selection.fields`)}),children:[(0,$.jsx)(_t,{className:`size-3.5 text-muted-foreground`,"aria-hidden":`true`}),(0,$.jsx)(`span`,{className:Sa,children:l(`ticket.selection.fields`)})]}),(0,$.jsx)(ie,{align:`end`,className:`w-[min(22rem,calc(100vw-2rem))] gap-1 p-2`,children:g.data.map(t=>{let{value:n,mixed:r}=xa(e,e=>e.customFields[t.id]??null);return(0,$.jsx)(Ze,{variant:`row`,field:t,value:n,mixed:r,disabled:c,align:`end`,onChange:e=>te({customFields:{[t.id]:e}},t.name)},t.id)})})]}),(0,$.jsx)(ye,{orientation:`vertical`,className:`hidden h-5! sm:block`}),(0,$.jsxs)(Bt,{children:[(0,$.jsx)(Qe,{render:(0,$.jsx)(b,{label:l(`ticket.selection.more`),disabled:c}),children:(0,$.jsx)(Le,{})}),(0,$.jsxs)(Ue,{align:`end`,className:`w-52`,children:[x&&(0,$.jsxs)(Ye,{onClick:()=>te({status:`todo`},n.todo),children:[(0,$.jsx)(Zt,{}),l(`ticket.selection.moveTo`,{status:n.todo})]}),ae?(0,$.jsxs)(Ye,{onClick:()=>te({archived:!1},l(`ticket.selection.restoreChange`)),children:[(0,$.jsx)(E,{}),l(`ticket.selection.restore`)]}):(0,$.jsxs)(Ye,{onClick:()=>f(`archive`),children:[(0,$.jsx)(Me,{}),l(`ticket.selection.archive`)]}),h.canDelete&&(0,$.jsxs)(Ye,{variant:`destructive`,disabled:e.length>Ca,onClick:()=>f(`delete`),children:[(0,$.jsx)(Fe,{}),e.length>Ca?l(`ticket.selection.deleteLimit`,{limit:Ca}):l(`ticket.selection.delete`)]})]})]}),(0,$.jsx)(se,{label:l(`ticket.selection.archive`),trigger:!1,open:d===`archive`,onOpenChange:e=>f(e?`archive`:null),description:l(`ticket.selection.archiveConfirm`,{count:e.length,collection:r}),onConfirm:async()=>{await ee({archived:!0}),i()}}),(0,$.jsx)(se,{danger:!0,label:l(`ticket.selection.delete`),trigger:!1,open:d===`delete`,onOpenChange:e=>f(e?`delete`:null),description:l(`ticket.selection.deleteConfirm`,{count:e.length,collection:r}),onConfirm:()=>v(async()=>{await o.mutateAsync({projectId:m,tickets:_}),re.success(l(`ticket.selection.deleted`,{count:e.length})),i()})})]})})}var Ta=42,Ea=14,Da=3;function Oa(e,t,n){if(e===`calendar`)return{from:D(Ke(t),{weekStartsOn:n}),to:N(O(A(k(t),{weekStartsOn:n})),1)};let r=D(t,{weekStartsOn:n});return{from:r,to:N(r,Ta)}}var ka=(e,t,n)=>e===`calendar`?st(t,n):N(t,n*Ea);function Aa(e){let t=e.startAt??e.dueAt,n=e.dueAt??e.startAt;return t&&n?{start:O(new Date(t)),end:O(new Date(n))}:null}var ja=()=>d({dateStyle:`full`}),Ma=()=>d({dateStyle:`medium`}),Na=()=>d({month:`long`,year:`numeric`}),Pa=()=>d({weekday:`long`}),Fa=()=>d({weekday:`short`}),Ia=()=>d({weekday:`narrow`}),La=()=>d({month:`short`}),Ra=e=>e+2,za=({start:e,end:t})=>e.getTime()===t.getTime()?Ma().format(e):l(`ticket.schedule.range`,{from:Ma().format(e),to:Ma().format(t)});function Ba({layout:e,tickets:t,anchor:n,range:r,onAnchor:i}){let[a]=(0,F.useState)(Dt),o=t.flatMap(e=>{let t=Aa(e);return t&&t.end>=r.from&&t.start<r.to?[{ticket:e,...t}]:[]}).toSorted((e,t)=>e.start.getTime()-t.start.getTime()||e.ticket.number-t.ticket.number),s=N(r.to,-1),c=e===`calendar`?Na().format(n):l(`ticket.schedule.range`,{from:Ma().format(r.from),to:Ma().format(s)}),u=e===`calendar`;return(0,$.jsxs)(`section`,{"aria-label":l(u?`ticket.schedule.calendar`:`ticket.schedule.timeline`),className:`@container flex min-h-0 flex-1 flex-col animate-in fade-in-0`,children:[(0,$.jsxs)(`div`,{className:`flex min-h-11 items-center gap-1 py-1`,children:[(0,$.jsx)(`h2`,{className:`m-0 mr-auto text-sm font-medium`,"aria-live":`polite`,children:c}),(0,$.jsx)(S,{variant:`ghost`,size:`sm`,onClick:()=>i(null),children:l(`ticket.schedule.today`)}),(0,$.jsx)(b,{label:l(u?`ticket.schedule.previousMonth`:`ticket.schedule.previousWeeks`),onClick:()=>i(ka(e,n,-1)),children:(0,$.jsx)(wt,{})}),(0,$.jsx)(b,{label:l(u?`ticket.schedule.nextMonth`:`ticket.schedule.nextWeeks`),onClick:()=>i(ka(e,n,1)),children:(0,$.jsx)(Tt,{})})]}),u?(0,$.jsx)(Ha,{spans:o,anchor:n,range:r,title:c,today:a}):o.length?(0,$.jsx)(Wa,{spans:o,range:r,today:a}):(0,$.jsx)(g,{title:l(`ticket.schedule.emptyWeeks`)})]})}function Va({ticket:e,wrap:t=!1}){return(0,$.jsxs)(yt,{projectId:e.projectId,ticketId:e.id,className:w(`flex min-w-0 items-baseline gap-1.5 rounded-sm px-1 text-[11.5px] leading-5 hover:bg-muted`,!t&&`truncate`),children:[(0,$.jsx)(`span`,{"aria-hidden":`true`,className:w(`size-1.5 shrink-0 rounded-full bg-current`,t?`mt-[7px] self-start`:`self-center`,ge(e.status))}),(0,$.jsx)(`span`,{className:`shrink-0 font-mono text-[10.5px] text-muted-foreground`,children:e.key}),(0,$.jsx)(`span`,{dir:`auto`,className:w(`min-w-0`,t?`wrap-anywhere`:`truncate`),children:e.title})]})}function Ha({spans:e,anchor:t,range:n,title:r,today:i}){let a=Array.from({length:ze(n.to,n.from)},(e,t)=>N(n.from,t)),o=Array.from({length:a.length/7},(e,t)=>a.slice(t*7,t*7+7));return(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto overscroll-contain pb-4`,children:(0,$.jsxs)(`table`,{className:`w-full table-fixed border-collapse`,"aria-label":l(`ticket.schedule.monthTickets`,{title:r}),children:[(0,$.jsx)(`thead`,{className:`sticky top-0 z-10 bg-background`,children:(0,$.jsx)(`tr`,{children:(o[0]??[]).map(e=>(0,$.jsx)(`th`,{scope:`col`,className:`h-8 px-2 text-left text-[10.5px] font-medium tracking-[0.08em] text-muted-foreground uppercase`,children:(0,$.jsxs)(`abbr`,{title:Pa().format(e),className:`no-underline`,children:[(0,$.jsx)(`span`,{className:`@max-[600px]:hidden`,children:Fa().format(e)}),(0,$.jsx)(`span`,{className:`@min-[601px]:hidden`,children:Ia().format(e)})]})},e.getDay()))})}),(0,$.jsx)(`tbody`,{children:o.map(n=>(0,$.jsx)(`tr`,{children:n.map(n=>(0,$.jsx)(Ua,{day:n,outside:!rt(n,t),today:et(n,i),spans:e.filter(e=>e.start<=n&&n<=e.end)},n.toISOString()))},n[0]?.toISOString()))})]})})}function Ua({day:e,outside:t,today:n,spans:r}){let i=r.length-Da,a=ja().format(e);return(0,$.jsxs)(`td`,{className:w(`h-28 border border-border p-1 align-top @max-[600px]:h-16`,t&&`bg-muted/40 text-muted-foreground`),children:[(0,$.jsx)(`time`,{dateTime:Be(e,`yyyy-MM-dd`),"aria-label":a,"aria-current":n?`date`:void 0,className:w(`mb-0.5 grid size-6 place-items-center rounded-full text-xs tabular-nums`,n&&`bg-primary font-medium text-primary-foreground`),children:e.getDate()}),r.length>0&&(0,$.jsx)(`ul`,{className:`m-0 grid list-none gap-px p-0 @max-[600px]:hidden`,children:r.slice(0,Da).map(({ticket:e})=>(0,$.jsx)(`li`,{className:`min-w-0`,children:(0,$.jsx)(Va,{ticket:e})},e.id))}),r.length>0&&(0,$.jsxs)(ne,{children:[(0,$.jsxs)(y,{render:(0,$.jsx)(S,{variant:`ghost`,size:`sm`,"aria-label":l(`ticket.schedule.showDay`,{count:r.length,day:a}),className:w(`h-6 px-1 text-[11px] text-muted-foreground`,i<=0&&`@min-[601px]:hidden`)}),children:[(0,$.jsx)(`span`,{className:`@max-[600px]:hidden`,children:l(`ticket.schedule.more`,{count:i})}),(0,$.jsx)(`span`,{className:`@min-[601px]:hidden`,children:r.length})]}),(0,$.jsxs)(ie,{align:`start`,className:`w-[min(20rem,calc(100vw-2rem))] gap-2 p-3`,children:[(0,$.jsx)(h,{className:`text-xs font-medium`,children:a}),(0,$.jsx)(`ul`,{className:`m-0 grid list-none gap-1 p-0`,children:r.map(({ticket:e})=>(0,$.jsx)(`li`,{children:(0,$.jsx)(Va,{ticket:e,wrap:!0})},e.id))})]})]})]})}function Wa({spans:e,range:t,today:n}){let r=ze(t.to,t.from),i=Array.from({length:r},(e,n)=>N(t.from,n)),a=ze(n,t.from);return(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto overscroll-contain pb-4`,children:(0,$.jsxs)(`div`,{className:`grid min-w-max [--rail:18rem] @max-[600px]:[--rail:9rem]`,style:{gridTemplateColumns:`var(--rail) repeat(${r}, 2rem)`},children:[(0,$.jsxs)(`div`,{"aria-hidden":`true`,className:`sticky top-0 z-20 col-span-full grid grid-cols-subgrid`,children:[(0,$.jsx)(`div`,{className:`sticky left-0 z-10 flex items-end border-b bg-background px-3 pb-1 text-[10.5px] font-medium tracking-[0.08em] text-muted-foreground uppercase`,children:l(`ticket.schedule.ticketColumn`)}),i.map((e,t)=>(0,$.jsxs)(`div`,{className:w(`flex flex-col items-center border-b bg-background pt-1 pb-1 text-[10.5px] leading-4 tabular-nums text-muted-foreground`,t===a&&`text-primary`),children:[(0,$.jsx)(`span`,{className:`h-4 font-medium text-foreground`,children:t===0||e.getDate()===1?La().format(e):``}),(0,$.jsx)(`span`,{children:Ia().format(e)}),(0,$.jsx)(`span`,{className:w(`grid size-5 place-items-center rounded-full`,t===a&&`bg-primary text-primary-foreground`),children:e.getDate()})]},e.toISOString()))]}),(0,$.jsx)(`ul`,{"aria-label":l(`ticket.schedule.scheduledTickets`),className:`col-span-full m-0 grid list-none grid-cols-subgrid p-0`,children:e.map(e=>{let n=Math.max(0,ze(e.start,t.from)),i=Math.min(r-1,ze(e.end,t.from));return(0,$.jsxs)(`li`,{className:`col-span-full grid grid-cols-subgrid border-b`,children:[(0,$.jsxs)(`div`,{className:`sticky left-0 z-10 row-start-1 bg-background px-2 py-1.5 [grid-column:1]`,children:[(0,$.jsx)(Va,{ticket:e.ticket,wrap:!0}),(0,$.jsxs)(`span`,{className:`sr-only`,children:[`, `,za(e)]})]}),a>=0&&a<r&&(0,$.jsx)(`div`,{"aria-hidden":`true`,className:`row-start-1 bg-primary/8`,style:{gridColumn:Ra(a)}}),(0,$.jsx)(`div`,{"aria-hidden":`true`,title:za(e),className:w(`row-start-1 mx-0.5 h-5 self-center rounded-md border border-current/60 bg-current/25`,ge(e.ticket.status),e.start<t.from&&`ml-0 rounded-l-none border-l-0`,e.end>=t.to&&`mr-0 rounded-r-none border-r-0`),style:{gridColumn:`${Ra(n)} / ${Ra(i)+1}`}})]},e.ticket.id)})})]})})}var Ga=qr({columnSizingFeature:Ti,columnResizingFeature:wi,rowSelectionFeature:va,columnVisibilityFeature:Bi}),Ka=100;function qa({section:e,collapsed:t,onToggle:n,selection:r}){return(0,$.jsxs)(`div`,{className:`flex items-center`,children:[r&&(0,$.jsx)(`div`,{className:`flex w-11 shrink-0 justify-center pl-3 @max-[850px]:w-8 @max-[850px]:justify-start @max-[850px]:pl-0`,children:(0,$.jsx)(m,{label:l(`ticket.list.selectSection`,{section:e.label}),className:`sr-checkbox`,...r})}),(0,$.jsxs)(S,{variant:`ghost`,className:`flex-1 justify-start gap-2 rounded-none px-3`,"aria-label":l(t?`ticket.list.expandSection`:`ticket.list.collapseSection`,{section:e.label}),"aria-expanded":!t,onClick:n,children:[(0,$.jsx)(ce,{className:w(`size-3 transition-transform duration-200`,t&&`-rotate-90`)}),e.heading,(0,$.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:e.total})]})]})}var Ja=[[`overdue`,0],[`today`,864e5],[`week`,6048e5],[`later`,1/0]],Ya=e=>e===`later`?l(`ticket.list.later`):t[e];function Xa(e,t){if(!e.dueAt)return`none`;let n=new Date(e.dueAt).getTime()-t;return Ja.find(([,e])=>n<e)?.[0]??`later`}function Za({ticket:e,property:t,value:n,iconOnly:r=!1}){let i=_e(e.projectId),{change:a,pending:o}=Ct(e);return i.canWrite?(0,$.jsx)(j,{variant:`cell`,property:t,value:n,projectId:e.projectId,iconOnly:r,disabled:o,onChange:e=>void a({[t]:e})}):(0,$.jsx)(at,{...kt(t,n),projectId:e.projectId,iconOnly:r})}var Qa=()=>[{id:`select`,size:44,enableResizing:!1,enableHiding:!1,header:({table:e})=>(0,$.jsx)(m,{label:l(`ticket.list.selectAll`),className:`sr-checkbox`,checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected()&&!e.getIsAllRowsSelected(),onCheckedChange:t=>e.toggleAllRowsSelected(t)}),cell:({row:e})=>(0,$.jsx)(m,{label:l(`ticket.list.selectTicket`,{key:e.original.key}),className:`sr-checkbox`,checked:e.getIsSelected(),onCheckedChange:t=>e.toggleSelected(t)})},{accessorKey:`key`,header:C.key,size:100,minSize:90},{accessorKey:`title`,header:l(`ticket.list.title`),size:400,enableHiding:!1,minSize:200,cell:({row:e})=>(0,$.jsx)(ft,{dir:`auto`,className:`ticket-title block text-[13px] leading-5 font-normal whitespace-normal wrap-anywhere text-foreground hover:text-primary`,to:`/projects/$projectId/tickets/$ticketId`,params:{projectId:e.original.projectId,ticketId:e.original.id},children:e.original.title})},...[`labels`,`scopes`].map(e=>({accessorKey:e,header:C[e],size:140,minSize:120,cell:({row:t})=>(0,$.jsx)(je,{tags:t.original[e],label:l(e===`labels`?`ticket.tags.labels`:`ticket.tags.scopes`),variant:e===`labels`?`secondary`:`outline`})})),{accessorKey:`status`,header:C.status,size:115,minSize:105,cell:({row:e})=>(0,$.jsx)(Za,{ticket:e.original,property:`status`,value:Pt(e.original)})},{accessorKey:`priority`,header:C.priority,size:96,minSize:64,cell:({row:e})=>(0,$.jsx)(Za,{ticket:e.original,property:`priority`,value:e.original.priority,iconOnly:!0})},{accessorKey:`difficulty`,header:C.difficulty,size:106,minSize:85,cell:({row:e})=>(0,$.jsx)(Za,{ticket:e.original,property:`difficulty`,value:e.original.difficulty})},{accessorKey:`kind`,header:C.kind,size:110,cell:({row:e})=>(0,$.jsx)(Za,{ticket:e.original,property:`kind`,value:e.original.kind})},{accessorKey:`assigneeId`,header:C.assigneeId,size:160,cell:({row:e})=>(0,$.jsx)(Za,{ticket:e.original,property:`assignee`,value:e.original.assigneeId})},{accessorKey:`startAt`,header:C.startAt,size:100,minSize:90,cell:({row:e})=>(0,$.jsx)(le,{value:e.original.startAt,open:!1})},{accessorKey:`dueAt`,header:C.dueAt,size:100,minSize:90,cell:({row:e})=>(0,$.jsx)(le,{value:e.original.dueAt,open:!s.some(t=>t===e.original.status)})}],$a=()=>[`createdAt`,`updatedAt`].map(e=>({accessorKey:e,header:C[e],size:130,cell:({row:t})=>(0,$.jsx)(T,{value:t.original[e],className:`text-muted-foreground`})}));function eo({ticket:e,field:t}){let n=_e(e.projectId),{change:r,pending:i}=Ct(e),a=e.customFields[t.id];return n.canWrite?(0,$.jsx)(Ze,{variant:`cell`,field:t,value:a,disabled:i,onChange:e=>void r({customFields:{[t.id]:e}})}):a===void 0?null:(0,$.jsx)(ht,{field:t,value:a})}var to=e=>({id:he(e.id),header:()=>(0,$.jsx)(`span`,{className:`block truncate px-3 text-[10.5px] font-medium tracking-[0.08em] text-muted-foreground uppercase`,children:e.name}),size:140,minSize:90,cell:({row:t})=>(0,$.jsx)(eo,{ticket:t.original,field:e})}),no={key:`number`,title:`title`,labels:`labels`,status:`status`,priority:`priority`,difficulty:`difficulty`,kind:`kind`,assigneeId:`assignee`,startAt:`start`,dueAt:`due`,createdAt:`created`,updatedAt:`updated`},ro=(e,t)=>t===(t.includes(`:`)?Pt(e):e.status),io=()=>({id:`all`,label:l(`ticket.list.all`),heading:null,has:()=>!0}),ao=()=>[{id:`planned`,label:l(`ticket.list.planned`),heading:(0,$.jsx)(`span`,{className:`text-xs`,children:l(`ticket.list.planned`)}),status:`backlog`,archived:`exclude`,has:e=>!e.archived&&e.status===`backlog`},{id:`archived`,label:l(`ticket.list.archived`),heading:(0,$.jsx)(`span`,{className:`text-xs`,children:l(`ticket.list.archived`)}),archived:`only`,has:e=>e.archived}],oo=`a, button, input, label, [role=checkbox], [role=combobox], [role=menu]`,so=`ticket-row cursor-pointer data-[fresh=true]:animate-row-in data-[selected=true]:bg-primary/5 data-[active=true]:bg-muted/60`,co=`data-[density=comfortable]:[&_[data-priority]_svg]:size-5! data-[density=comfortable]:[&_[data-slot=badge]]:h-6 data-[density=comfortable]:[&_[data-slot=badge]]:px-2 data-[density=comfortable]:[&_[data-slot=badge]]:text-xs data-[density=comfortable]:[&_.status]:text-sm data-[density=comfortable]:[&_[data-slot=checkbox]]:size-5 data-[density=comfortable]:[&_.ticket-title]:text-[15px] data-[density=comfortable]:[&_.ticket-title]:leading-6`,lo=`min-w-full table-fixed @min-[1051px]:w-(--table-width)`;function uo({leaves:e}){return(0,$.jsx)(`colgroup`,{children:e.map(e=>(0,$.jsx)(`col`,{"data-column":e.id,style:{width:e.getSize()}},e.id))})}function fo({scope:e,search:t,onSearch:i}){let{peek:s,peekProject:u,period:d,...p}=t,h=`project`in e?e.project:void 0,_=_e(h?.id??``,!!h),y=!!h&&_.canWrite,ne=Te(),ie=ee(),le=ut(),[me]=ct(zt.grouping),[ge]=ct(zt.workGrouping),[C]=ct(zt.layout),[ye]=ct(zt.backgrounds),T=`project`in e&&!!e.planning,je=!!h&&!T&&C===`board`,E=h&&!T&&(C===`calendar`||C===`timeline`)?C:void 0,[Me]=ct(zt.weekStart),Ne=d?tt(d):void 0,Le=Ne&&Re(Ne)?Ne:Dt(),D=E?Oa(E,Le,Ge[Me]):void 0,O=T?`planning`:je?`status`:E?`none`:h?me:ge,[ze]=ct(zt.labelDisplay),[Ve]=ct(zt.density),[Ke,Je]=ct(zt.columns),k=JSON.stringify({...p,offset:0,grouping:O,range:D}),[Ze,$e]=(0,F.useState)({filterKey:k,pages:{}}),[et,rt]=(0,F.useState)(()=>new Set),[A,st]=(0,F.useState)(),mt=Ze.filterKey===k?Ze.pages:{},ht=jt(h?.id??``),_t=ht.data??[],vt=!!h&&O===`status`&&ht.isPending,yt=O===`planning`?ao().filter(e=>!e.status||ve(p,`status`,e.status)):vt?[]:O===`status`&&h&&_t.length?_t.filter(e=>ve(p,`status`,e.category)).map(e=>({id:e.id,label:e.name,heading:(0,$.jsx)(at,{property:`status`,value:Ot(e),projectId:h.id}),status:e.category,stateId:e.id,has:t=>t.stateId===e.id})):O===`status`?r.filter(e=>ve(p,`status`,e)).map(e=>({id:e,label:n[e],heading:(0,$.jsx)(we,{property:`status`,value:e}),status:e,has:t=>t.status===e})):[io()],xt=yt.flatMap(e=>Array.from({length:mt[e.id]??1},(t,n)=>({entry:e,offset:n*Ka}))),j=Oe({queries:xt.map(({entry:t,offset:n})=>h?v.query(`list_tickets`,{projectId:h.id,...p,...t.status?{status:t.status,statusNot:void 0}:{},...t.stateId?{stateId:t.stateId}:{},...D?{scheduledFrom:D.from.toISOString(),scheduledTo:D.to.toISOString(),sort:`start`,order:`asc`}:{},archived:t.archived??p.archived,offset:n,limit:Ka}):v.query(`list_my_work`,{workspaceId:`workspaceId`in e?e.workspaceId:void 0,q:p.q,sort:p.sort,order:p.order,offset:n,limit:Ka}))}),Ct=yt.map(e=>({entry:e,data:{items:xt.flatMap((t,n)=>t.entry.id===e.id?j[n]?.data?.items??[]:[]),total:j[xt.findIndex(t=>t.entry.id===e.id)]?.data?.total??0}})),wt=Object.fromEntries(Ct.map(e=>[e.entry.id,Math.max(1,Math.ceil(e.data.total/Ka))])),Tt=yt.some(e=>(mt[e.id]??1)<(wt[e.id]??1));Tt&&$e({filterKey:k,pages:wt});let M=new Map;for(let e of Ct)for(let t of e.data?.items??[]){let e=M.get(t.id);(!e||t.version>e.version)&&M.set(t.id,t)}let kt=A&&M.get(A.id);A?.status&&kt&&M.set(kt.id,{...kt,...Et(`status`,A.status)});let At=vt||Tt||j.some(e=>e.isPending),Nt=[...M.keys()].join(`
|
|
2
|
+
`),[Ft,N]=(0,F.useState)({filterKey:k,ids:null,fresh:new Set});if(Ft.filterKey!==k)N({filterKey:k,ids:null,fresh:new Set});else if(Ft.ids===null)At||N({filterKey:k,ids:Nt,fresh:new Set});else if(Ft.ids!==Nt){let e=new Set(Ft.ids.split(`
|
|
3
|
+
`));N({filterKey:k,ids:Nt,fresh:new Set([...M.keys()].filter(t=>!e.has(t)))})}let Jt=A?.anchor?it([...M.values()],A.id,A.anchor,!!A.below):[...M.values()],Xt=Ct.reduce((e,t)=>e+(t.data?.total??0),0),[Zt,Qt]=(0,F.useState)(()=>Date.now());(0,F.useEffect)(()=>{let e=window.setInterval(()=>{O===`due`&&Qt(Date.now())},6e4);return()=>window.clearInterval(e)},[O]);let P=O===`project`?[...new Set(Jt.map(e=>e.projectId))].map(e=>({id:e,owner:ne.data?.find(t=>t.id===e)})).toSorted((e,t)=>(e.owner?.name??``).localeCompare(t.owner?.name??``)).map(({id:e,owner:t})=>({id:e,label:t?.name??l(`ticket.project.label`),heading:(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 text-xs`,children:[t&&(0,$.jsx)(Ae,{project:t,className:`size-4`}),(0,$.jsx)(`span`,{dir:t?`auto`:void 0,className:`truncate`,children:t?.name??l(`ticket.project.label`)})]}),total:Jt.filter(t=>t.projectId===e).length,has:t=>t.projectId===e})):O===`due`?[...Ja.map(([e])=>e),`none`].flatMap(e=>{let t=Jt.filter(t=>Xa(t,Zt)===e).length,n=Ya(e);return t?[{id:e,label:n,heading:(0,$.jsx)(`span`,{className:`text-xs`,children:n}),total:t,has:t=>Xa(t,Zt)===e}]:[]}):Ct.flatMap(({entry:{id:e,label:t,heading:n,has:r},data:i})=>i.total>0||je?[{id:e,label:t,heading:n,has:r,total:i.total}]:[]),en=O!==`none`,tn=e=>en&&!je&&et.has(e),I={isPending:At,error:j.find(e=>e.error)?.error,data:{items:Jt.filter(e=>!P.some(t=>tn(t.id)&&t.has(e))),total:Xt}},nn=Ce({...v.query(`list_views`,{projectId:h?.id??``}),enabled:!!h}),L=pe(`save_view`),rn=pe(`delete_view`),[an,on]=(0,F.useState)(!1),[sn,cn]=(0,F.useState)(``),[ln,un]=(0,F.useState)(!1),[R,dn]=(0,F.useState)(null),z=xe(p),B=z===xe({}),V=nn.data?.find(e=>xe(e.filters)===z),fn=V?.name??l(B?`ticket.list.allTickets`:`ticket.list.customView`),pn=St(h?.id),H=ba({features:Ga,columns:[...Qa(),...(pn.data??[]).map(to),...$a()],data:I.data?.items??[],getRowId:e=>e.id,columnResizeMode:`onChange`,enableRowSelection:y,state:{columnVisibility:{...Object.fromEntries((pn.data??[]).map(e=>[he(e.id),!1])),...Ke,title:!0,select:y}},onColumnVisibilityChange:e=>Je(typeof e==`function`?e(Ke):e)}),mn=H.getSelectedRowModel().rows.map(e=>e.original),U=e=>H.getRowModel().rows.filter(t=>e.has(t.original)),W=P.flatMap(e=>tn(e.id)?[]:U(e).map(e=>e.id)),hn=W.join(`
|
|
4
|
+
`),gn=e=>{let t=U(e),n=t.filter(e=>e.getIsSelected()).length;return{checked:n>0&&n===t.length,indeterminate:n>0&&n<t.length,disabled:!t.length,onCheckedChange:e=>H.setRowSelection(n=>{let r={...n};for(let n of t)e?r[n.id]=!0:delete r[n.id];return r})}},_n=en?c(P.flatMap(e=>{let t=mn.filter(e.has).length;return t?[l(`ticket.list.sectionCount`,{n:t,section:e.label})]:[]})):``,vn=h&&(T?l(`ticket.list.planning`,{project:h.name}):h.name),yn=vn?_n?l(`ticket.list.collection`,{source:vn,sections:_n}):vn:``;(0,F.useEffect)(()=>{!At&&h&&Xe(h.id,hn?hn.split(`
|
|
5
|
+
`):[])},[At,h,hn]);let[G,K]=(0,F.useState)(s??null),[q,bn]=(0,F.useState)(s);s&&s!==q&&(bn(s),K(s));let xn=It(),Sn=e=>{K(e),xn?.open({ticketId:e,projectId:h?.id??M.get(e)?.projectId})};We(W,Sn,()=>q?document.querySelector(`.ticket-row[data-id="${CSS.escape(q)}"] .ticket-title`):null),(0,F.useEffect)(()=>{G&&document.querySelector(`.ticket-row[data-id="${CSS.escape(G)}"]`)?.scrollIntoView({block:`nearest`})},[G]);let Cn=e=>{if(!W.length)return;let t=G?W.indexOf(G):-1,n=t<0?e>0?0:W.length-1:Math.min(W.length-1,Math.max(0,t+e));K(W[n]??null)},J={enabled:!an&&!s&&!E},wn={...J,guard:e=>!(e.target instanceof Element&&e.target.closest(oo)&&!e.target.closest(`.ticket-row[data-active=true]`))};x(`j`,()=>Cn(1),J),x(`ArrowDown`,()=>Cn(1),wn),x(`k`,()=>Cn(-1),J),x(`ArrowUp`,()=>Cn(-1),wn),x(`Enter`,()=>{let e=G?M.get(G):void 0;e&&le({to:`/projects/$projectId/tickets/$ticketId`,params:{projectId:e.projectId,ticketId:e.id}})},wn),x(` `,()=>{G&&M.has(G)&&Sn(G)},{...J,guard:e=>{let t=e.target instanceof Element&&e.target.closest(oo);return!t||t.matches(`.ticket-row[data-active=true] .ticket-title`)}}),x(`x`,()=>{G&&y&&H.getRowModel().rowsById[G]?.toggleSelected()},J);let Tn=e=>{G&&document.querySelector(`.ticket-row[data-id="${CSS.escape(G)}"] [data-column="${e}"] [role=combobox]`)?.click()};x(`s`,()=>Tn(`status`),J),x(`p`,()=>Tn(`priority`),J),x(`a`,()=>Tn(`assigneeId`),J);let En=e=>{H.resetRowSelection(),rt(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},Dn=e=>{H.resetRowSelection(),$e({filterKey:JSON.stringify({...e,offset:0,grouping:O,range:D}),pages:{}}),i({...e,period:d})};x(`c`,()=>{y&&on(!0)},{enabled:!an});let On=p.sort===`manual`,Y=y&&On,kn=(p.order??f[p.sort])===`desc`,An=pe(`move_ticket`),jn=De(),[Mn,Nn]=(0,F.useState)(``),Pn=(0,F.useRef)(!1),Fn=(0,F.useRef)(Promise.resolve()),In=(0,F.useRef)(new Map),Ln=e=>{let{status:t,stateId:r}=Mt(e);return _t.find(e=>e.id===r)?.name??n[t]},Rn=(e,{anchor:t,below:n=!1,status:r})=>{let i=r&&!ro(e,r)?r:void 0,a=t?M.get(t):void 0;if(!a&&!i)return;let o={id:e.id,below:n,...a?{anchor:a.id}:{},...i?{status:i}:{}};st(o);let s={key:e.key,neighbor:a?.key,status:i&&Ln(i)};Nn(l(a?i?n?`ticket.list.movedToBelow`:`ticket.list.movedToAbove`:n?`ticket.list.movedBelow`:`ticket.list.movedAbove`:i?`ticket.list.movedTo`:`ticket.list.moved`,s));let c=n!==kn;Fn.current=Fn.current.then(async()=>{let t=await An.mutateAsync({projectId:e.projectId,ticketId:e.id,expectedVersion:Math.max(e.version,In.current.get(e.id)??0),...a?c?{after:a.id}:{before:a.id}:{},...i?Et(`status`,i):{}});In.current.set(t.id,t.version)}).catch(e=>{jn.invalidateQueries({queryKey:[`kanvil`]}),Ee(e)}).finally(()=>st(e=>e===o?void 0:e))},zn=e=>P.find(t=>t.has(e)),Bn=(e,t)=>{if(t===`previous`||t===`next`){let n=_t.length?_t.map(Ot):[...r],i=n[n.indexOf(_t.length?Pt(e):e.status)+(t===`next`?1:-1)];if(!i)return;let a=zn({...e,...Et(`status`,i)}),o=On&&a?U(a).find(t=>t.id!==e.id)?.id:void 0;return{status:i,...o?{anchor:o}:{}}}let n=zn(e);return Y&&n?nt(U(n).map(e=>e.id),e.id,t):void 0},Vn=(e,t)=>{Pn.current=!0,Rn(e,t)},Hn=e=>h?y:o(ne.data?.find(t=>t.id===e.projectId)??{role:null}).includes(`ticket.write`),Un=e=>{let t=G?M.get(G):void 0,n=t&&Hn(t)&&Bn(t,e);t&&n&&Vn(t,n)},Wn=e=>ot.filter(e=>On||e===`previous`||e===`next`).map(t=>{let n=Bn(e,t);return{command:t,run:n&&(()=>Vn(e,n))}});x(`ArrowUp`,()=>Un(`up`),{...J,alt:!0,shift:!1}),x(`ArrowDown`,()=>Un(`down`),{...J,alt:!0,shift:!1}),x(`ArrowUp`,()=>Un(`top`),{...J,alt:!0,shift:!0}),x(`ArrowDown`,()=>Un(`bottom`),{...J,alt:!0,shift:!0}),x(`[`,()=>Un(`previous`),J),x(`]`,()=>Un(`next`),J),(0,F.useEffect)(()=>{Pn.current&&G&&hn.includes(G)&&(Pn.current=!1,document.querySelector(`.ticket-row[data-id="${CSS.escape(G)}"]`)?.scrollIntoView({block:`nearest`}))},[hn,G]);let X=gt((e,t,n)=>{let r=M.get(e),i=M.get(t);r&&i&&Rn(r,{anchor:t,below:n,...O===`status`&&{status:Pt(i)}})}),Gn=e=>{let t=X.dragging?M.get(X.dragging):void 0;return On&&(O===`status`||!t||e.has(t))},[Kn,qn]=(0,F.useState)(null),Jn=e=>{let t=X.dragging?M.get(X.dragging):void 0,n=_t.find(t=>t.id===e.id),i=n?Ot(n):r.find(t=>t===e.id);X.end(),qn(null);let a=On?U(e).findLast(e=>e.id!==t?.id)?.id:void 0;t&&i&&Rn(t,{status:i,...a?{anchor:a,below:!0}:{}})},Yn=(e,t)=>{t.defaultPrevented||t.target instanceof Node&&t.currentTarget.contains(t.target)&&(t.target instanceof Element&&t.target.closest(oo)||window.getSelection()?.toString()||le({to:`/projects/$projectId/tickets/$ticketId`,params:{projectId:e.projectId,ticketId:e.id}}))},Xn=!I.error&&I.data.total===0&&(0,$.jsx)(g,{title:!B||p.q?l(`ticket.list.emptyFiltered`):l(T?`ticket.list.emptyPlanning`:h?`ticket.list.emptyProject`:`ticket.list.emptyWork`),children:B?y&&(0,$.jsxs)(S,{variant:`default`,onClick:()=>on(!0),children:[(0,$.jsx)(ke,{}),l(`ticket.list.createFirst`)]}):(0,$.jsx)(S,{onClick:()=>Dn(be.parse({})),children:l(`ticket.filter.clear`)})});return(0,$.jsxs)($.Fragment,{children:[h?.background&&ye===`show`&&(0,$.jsx)(`img`,{src:h.background,alt:``,"aria-hidden":`true`,className:`project-background pointer-events-none absolute inset-0 -z-10 size-full object-cover opacity-15 mask-[linear-gradient(to_bottom,black,transparent_90%)] dark:opacity-20`}),h&&(0,$.jsx)(Pe,{project:h}),(0,$.jsx)(Ie,{projectId:h?.id,archivedFilter:!T,search:p,onSearch:Dn,view:h?T?(0,$.jsxs)(S,{variant:`ghost`,size:`sm`,className:`text-muted-foreground`,render:(0,$.jsx)(ft,{to:`/projects/$projectId`,params:{projectId:h.id}}),children:[(0,$.jsx)(Rt,{}),l(`ticket.list.activeWork`)]}):(0,$.jsxs)(Bt,{children:[(0,$.jsxs)(Qe,{render:(0,$.jsx)(S,{variant:`ghost`,"aria-label":l(`ticket.list.views`),title:fn,className:`max-w-full min-w-0 justify-start`}),children:[(0,$.jsx)(`span`,{className:`truncate`,children:fn}),(0,$.jsx)(ce,{className:`size-3 shrink-0`})]}),(0,$.jsxs)(Ue,{align:`start`,className:`max-h-[70dvh] w-60 overflow-y-auto`,children:[(0,$.jsx)(dt,{children:(0,$.jsx)(lt,{value:V?.id??(B?`all`:`custom`),onValueChange:e=>{let t=nn.data?.find(t=>t.id===e);e===`all`?Dn(be.parse({})):t&&Dn({...t.filters,offset:0})},children:[{id:`all`,name:l(`ticket.list.allTickets`)},...nn.data??[]].map(e=>(0,$.jsx)(pt,{value:e.id,closeOnClick:!0,children:e.name},e.id))})}),(0,$.jsx)(qe,{}),(0,$.jsxs)(dt,{children:[y&&!E&&(0,$.jsx)(Ye,{onClick:()=>H.toggleAllRowsSelected(!H.getIsAllRowsSelected()),children:H.getIsAllRowsSelected()?l(`ticket.selection.clear`):l(`ticket.list.selectAll`)}),(0,$.jsxs)(Ye,{onClick:()=>un(!0),children:[(0,$.jsx)(Yt,{}),l(`ticket.list.saveCurrentView`)]}),V&&(0,$.jsxs)(Ye,{onClick:()=>dn(V),children:[(0,$.jsx)(Fe,{}),l(`ticket.list.deleteView`,{name:V.name})]})]})]})]}):null,actions:h&&(0,$.jsxs)($.Fragment,{children:[!T&&(0,$.jsx)(b,{label:l(`ticket.list.planningLink`),render:(0,$.jsx)(ft,{to:`/projects/$projectId/planning`,params:{projectId:h.id}}),children:(0,$.jsx)($t,{})}),(0,$.jsx)(b,{label:l(`ticket.menu.newTicket`),title:l(`ticket.list.newTicketShortcut`,{shortcut:`C`}),variant:`default`,disabled:!y,onClick:()=>on(!0),children:(0,$.jsx)(ke,{})})]}),onReset:()=>{bt(ie.id,Lt),Dn({...p,sort:`priority`,order:void 0,offset:0})}}),(0,$.jsx)(ae,{title:l(`ticket.list.saveView`),open:ln,onOpenChange:un,busy:L.isPending,children:(0,$.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),h&&L.mutateAsync({projectId:h.id,name:sn,filters:a.parse(Object.fromEntries(Object.entries(p).filter(([e])=>e!==`offset`)))}).then(()=>{un(!1),cn(``),re.success(l(`ticket.list.viewSaved`))}).catch(()=>{})},children:[(0,$.jsx)(fe,{label:l(`ticket.list.viewName`),required:!0,maxLength:80,value:sn,onChange:e=>cn(e.target.value)}),(0,$.jsx)(Se,{error:L.error,pending:L.isPending,submitLabel:l(`ticket.list.saveView`),onCancel:()=>un(!1)})]})}),R&&(0,$.jsx)(se,{label:l(`ticket.list.deleteView`,{name:R.name}),description:l(`ticket.list.deleteViewConfirm`,{name:R.name}),trigger:!1,open:!0,onOpenChange:e=>{e||dn(null)},onConfirm:async()=>{h&&await rn.mutateAsync({projectId:h.id,viewId:R.id}),dn(null)}}),(0,$.jsx)(te,{error:I.error??rn.error}),y&&mn.length>0&&(0,$.jsx)(wa,{selected:mn,total:W.length,collection:yn,onClear:()=>H.resetRowSelection()}),I.isPending?(0,$.jsx)(de,{}):I.error?(0,$.jsx)(S,{disabled:j.some(e=>e.isFetching),onClick:()=>{for(let e of j)e.error&&e.refetch()},children:l(`ticket.list.retry`)}):je?(0,$.jsx)(`div`,{role:`region`,"aria-label":l(`ticket.list.board`),className:w(`ticket-board relative min-h-0 min-w-0 flex-1 overflow-auto overscroll-contain`,co),"data-density":Ve,"data-label-display":ze,children:Xn||(0,$.jsx)(`div`,{className:`flex min-h-full w-max gap-5 pb-4`,children:P.map(e=>(0,$.jsxs)(`section`,{"aria-label":l(`ticket.list.sectionTickets`,{section:e.label}),"data-status":e.id,"data-drop":Kn===e.id||void 0,className:`flex w-[min(19rem,calc(100vw-3.5rem))] shrink-0 flex-col transition-colors data-[drop=true]:bg-primary/5`,onDragOver:t=>{X.dragging&&(t.preventDefault(),t.dataTransfer.dropEffect=`move`,qn(e.id))},onDragLeave:t=>{(!(t.relatedTarget instanceof Node)||!t.currentTarget.contains(t.relatedTarget))&&qn(t=>t===e.id?null:t)},onDrop:t=>{t.preventDefault(),Jn(e)},children:[(0,$.jsxs)(`h2`,{className:`sticky top-0 z-10 mb-0 flex h-9 items-center gap-2 border-b bg-background px-2 text-xs font-normal`,children:[y&&(0,$.jsx)(m,{label:l(`ticket.list.selectSection`,{section:e.label}),className:`sr-checkbox`,...gn(e)}),e.heading,(0,$.jsx)(`span`,{className:`tabular-nums text-muted-foreground`,children:e.total})]}),(0,$.jsx)(`ul`,{className:`m-0 flex flex-1 list-none flex-col p-0`,children:U(e).map(t=>{let n=t.getVisibleCells(),r=e=>n.find(t=>t.column.id===e),i=r(`select`),a=r(`key`),o=r(`title`);return(0,$.jsx)(He,{ticket:t.original,onPreview:()=>Sn(t.id),moves:Hn(t.original)?()=>Wn(t.original):void 0,children:(0,$.jsxs)(`li`,{className:w(so,`flex flex-col gap-1.5 border-b px-2 py-2.5 transition-colors hover:bg-muted/40 data-[active=true]:shadow-[inset_2px_0_0_var(--primary)] data-[dragging=true]:opacity-50 data-[drop=after]:shadow-[inset_0_-2px_0_var(--primary)] data-[drop=before]:shadow-[inset_0_2px_0_var(--primary)] in-data-[density=comfortable]:gap-2.5 in-data-[density=comfortable]:py-4`),"data-id":t.id,"data-selected":t.getIsSelected(),"data-active":G===t.id||void 0,"data-fresh":Ft.fresh.has(t.id)||void 0,...X.item(t.id,{draggable:y,accepts:Gn(e)}),onDragEnd:()=>{X.end(),qn(null)},onClick:e=>Yn(t.original,e),children:[(0,$.jsxs)(`div`,{className:`flex min-h-6 items-center gap-2`,children:[i&&(0,$.jsx)(H.FlexRender,{cell:i}),a&&(0,$.jsx)(`span`,{"data-column":`key`,className:`font-mono text-[11px] text-muted-foreground`,children:(0,$.jsx)(H.FlexRender,{cell:a})}),(0,$.jsx)(`span`,{"data-column":`status`,className:`ml-auto`,children:(0,$.jsx)(Za,{ticket:t.original,property:`status`,value:Pt(t.original),iconOnly:!0})})]}),o&&(0,$.jsx)(H.FlexRender,{cell:o}),(0,$.jsx)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-xs empty:hidden`,children:n.filter(e=>![`select`,`key`,`title`,`status`].includes(e.column.id)).map(e=>(0,$.jsx)(`span`,{"data-column":e.column.id,className:`min-w-0 max-w-full empty:hidden`,children:(0,$.jsx)(H.FlexRender,{cell:e})},e.id))})]})},t.id)})})]},e.id))})}):E&&D?(0,$.jsx)(Ba,{layout:E,tickets:Jt,anchor:Le,range:D,onAnchor:e=>i({...t,period:e?Be(e,`yyyy-MM-dd`):void 0})}):(0,$.jsxs)(`div`,{className:`table-scroll min-h-0 min-w-0 flex-1 overflow-auto overscroll-contain [&_[data-slot=table-container]]:overflow-visible`,children:[(0,$.jsxs)(`div`,{role:`table`,"aria-label":l(`ticket.list.tickets`),className:w(`ticket-table`,co,`data-[density=comfortable]:[&_td]:text-sm data-[density=comfortable]:[&_td_svg]:size-4 data-[density=comfortable]:[&_td[data-column=key]]:text-xs`),"data-density":Ve,"data-label-display":ze,style:{"--table-width":`${H.getTotalSize()}px`},children:[(0,$.jsx)(`div`,{className:`sticky top-0 z-20 bg-background`,children:(0,$.jsxs)(Kt,{role:`presentation`,className:lo,children:[(0,$.jsx)(uo,{leaves:H.getVisibleLeafColumns()}),(0,$.jsx)(Vt,{role:`rowgroup`,children:H.getHeaderGroups().map(e=>(0,$.jsx)(Wt,{role:`row`,className:`hover:bg-transparent`,children:e.headers.map(e=>{let t=no[e.column.id],n=t!==void 0&&p.sort===t,r=n?p.order??f[t]:void 0;return(0,$.jsxs)(Ht,{role:`columnheader`,scope:`col`,"data-column":e.column.id,"aria-sort":r===`asc`?`ascending`:r===`desc`?`descending`:void 0,className:w(`relative h-8 overflow-hidden bg-transparent px-3 text-[10.5px] font-medium tracking-[0.08em] text-ellipsis text-muted-foreground uppercase`,t&&`p-0`),style:{width:e.getSize()},children:[t?(0,$.jsxs)(S,{variant:`ghost`,title:typeof e.column.columnDef.header==`string`?e.column.columnDef.header:void 0,className:w(`h-8 w-full justify-start gap-1 rounded-none pr-2 pl-3 text-[10.5px] font-medium tracking-[0.08em] text-muted-foreground uppercase hover:text-foreground`,n&&`text-foreground`),onClick:()=>Dn({...p,sort:t,order:n?r===`asc`?`desc`:`asc`:void 0,offset:0}),children:[(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:(0,$.jsx)(H.FlexRender,{header:e})}),r===`asc`&&(0,$.jsx)(oe,{className:`size-3 shrink-0`}),r===`desc`&&(0,$.jsx)(ue,{className:`size-3 shrink-0`})]}):(0,$.jsx)(H.FlexRender,{header:e}),e.column.getCanResize()&&(0,$.jsx)(S,{variant:`ghost`,className:`resizer absolute top-2 right-0 bottom-2 h-auto w-2 min-w-0 cursor-col-resize touch-none rounded-none border-r bg-transparent p-0 hover:border-primary hover:bg-transparent`,"aria-label":l(`ticket.list.resizeColumn`,{column:pn.data?.find(t=>he(t.id)===e.id)?.name??e.id}),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),onKeyDown:t=>{(t.key===`ArrowLeft`||t.key===`ArrowRight`)&&(t.preventDefault(),H.setColumnSizing(n=>({...n,[e.column.id]:Math.max(e.column.columnDef.minSize??60,e.column.getSize()+(t.key===`ArrowRight`?20:-20))})))}})]},e.id)})},e.id))})]})}),P.map(e=>(0,$.jsxs)(Kt,{role:`presentation`,className:lo,children:[(0,$.jsx)(uo,{leaves:H.getVisibleLeafColumns()}),(0,$.jsxs)(Ut,{role:`rowgroup`,"aria-label":en?l(`ticket.list.sectionTickets`,{section:e.label}):l(`ticket.list.tickets`),children:[en&&(0,$.jsx)(Wt,{className:`ticket-status-heading hover:bg-transparent`,"data-status":O===`status`?e.id:void 0,children:(0,$.jsx)(Ht,{scope:`rowgroup`,className:`sticky top-8 z-10 border-b bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))] p-0`,colSpan:H.getAllLeafColumns().filter(e=>e.getIsVisible()).length,children:(0,$.jsx)(qa,{section:e,collapsed:et.has(e.id),onToggle:()=>En(e.id),selection:y?gn(e):void 0})})}),!tn(e.id)&&U(e).map(t=>(0,$.jsx)(He,{ticket:t.original,onPreview:()=>Sn(t.id),moves:Hn(t.original)?()=>Wn(t.original):void 0,children:(0,$.jsx)(Wt,{className:w(so,`data-[active=true]:[&>td:first-child]:shadow-[inset_2px_0_0_var(--primary)] data-[dragging=true]:opacity-50 data-[drop=after]:[&>td]:shadow-[inset_0_-2px_0_var(--primary)] data-[drop=before]:[&>td]:shadow-[inset_0_2px_0_var(--primary)]`),role:`row`,"data-id":t.id,"data-selected":t.getIsSelected(),"data-active":G===t.id||void 0,"data-fresh":Ft.fresh.has(t.id)||void 0,...X.item(t.id,{draggable:Y,accepts:Gn(e)}),onClick:e=>Yn(t.original,e),children:t.getVisibleCells().map(e=>(0,$.jsx)(Gt,{className:w(`px-3 py-2 align-middle text-xs whitespace-normal in-data-[density=comfortable]:py-4`,e.column.id===`key`&&`font-mono text-[11px] text-muted-foreground`),role:`cell`,"data-column":e.column.id,"data-label":typeof e.column.columnDef.header==`string`?e.column.columnDef.header:void 0,children:(0,$.jsx)(H.FlexRender,{cell:e})},e.id))})},t.id))]})]},e.id))]}),Xn]}),!I.isPending&&!I.error&&(0,$.jsx)(`footer`,{className:`shrink-0 py-2 text-xs text-muted-foreground`,children:l(E?`ticket.list.scheduledCount`:`ticket.list.count`,{count:I.data.total})}),(0,$.jsx)(`span`,{role:`status`,className:`sr-only`,children:Mn}),(0,$.jsx)(ae,{size:`composer`,title:l(`ticket.menu.newTicket`),open:an,onOpenChange:on,children:an&&h&&(0,$.jsx)(qt,{projectId:h.id,onSaved:()=>on(!1)})})]})}export{fo as TicketList};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n,p as r}from"./src-BWF7jMDv.js";import{Y as i,a,b as o,it as s,nt as c,o as l,tt as u,y as d}from"./chunk-DSNLSHJZ-DTC3y9rb.js";import{t as f}from"./arc-Y1ARJVZ4.js";import{m as p}from"./chunk-7S6XSTFO-CpdNd6Ke.js";import{i as m,n as h}from"./chunk-J5ZVWO5B-oDCd-gWO.js";import{a as g}from"./mermaid.core-vGVkgzA3.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(n,[2,5],{5:6}),t(n,[2,2]),t(n,[2,3]),t(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,10],{1:[2,1]}),t(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,8]),t(n,[2,9]),t(n,[2,11]),{16:[1,22]},{18:[1,23]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,7]),t(n,[2,12]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return e(d,`Parser`),d.prototype=u,u.Parser=d,new d})();_.parser=_;var v=_,y={};t(y,{addEvent:()=>P,addSection:()=>A,addTask:()=>N,addTaskOrg:()=>F,clear:()=>D,default:()=>ee,getCommonDb:()=>E,getDirection:()=>k,getSections:()=>j,getTasks:()=>M,setDirection:()=>O});var b=``,x=0,S=`LR`,C=[],w=[],T=[],E=e(()=>l,`getCommonDb`),D=e(function(){C.length=0,w.length=0,b=``,T.length=0,S=`LR`,a()},`clear`),O=e(function(e){S=e},`setDirection`),k=e(function(){return S},`getDirection`),A=e(function(e){b=e,C.push(e)},`addSection`),j=e(function(){return C},`getSections`),M=e(function(){let e=I(),t=0;for(;!e&&t<100;)e=I(),t++;return w.push(...T),w},`getTasks`),N=e(function(e,t,n){let r={id:x++,section:b,type:b,task:e,score:t||0,events:n?[n]:[]};T.push(r)},`addTask`),P=e(function(e){T.find(e=>e.id===x-1).events.push(e)},`addEvent`),F=e(function(e){let t={section:b,type:b,description:e,task:e,classes:[]};w.push(t)},`addTaskOrg`),I=e(function(){let t=e(function(e){return T[e].processed},`compileTask`),n=!0;for(let[e,r]of T.entries())t(e),n&&=r.processed;return n},`compileTasks`),ee={clear:D,getCommonDb:E,getDirection:k,setDirection:O,addSection:A,getSections:j,getTasks:M,addTask:N,addTaskOrg:F,addEvent:P},L=0,R=e(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),te=e(function(t,n){let r=t.append(`circle`).attr(`cx`,n.cx).attr(`cy`,n.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),i=t.append(`g`);i.append(`circle`).attr(`cx`,n.cx-5).attr(`cy`,n.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),i.append(`circle`).attr(`cx`,n.cx+5).attr(`cy`,n.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function a(e){let t=f().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+2)+`)`)}e(a,`smile`);function o(e){let t=f().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+7)+`)`)}e(o,`sad`);function s(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,n.cx-5).attr(`y1`,n.cy+7).attr(`x2`,n.cx+5).attr(`y2`,n.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return e(s,`ambivalent`),n.score>3?a(i):n.score<3?o(i):s(i),r},`drawFace`),ne=e(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),z=e(function(e,t){let n=t.text.replace(/<br\s*\/?>/gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),re=e(function(t,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}e(r,`genPoints`);let i=t.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,z(t,n)},`drawLabel`),ie=e(function(e,t,n){let r=e.append(`g`),i=V();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,R(r,i),H(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),B=-1,ae=e(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);B++,a.append(`line`).attr(`id`,r+`-task`+B).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),te(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=V();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,R(a,o),H(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),oe=e(function(e,t){R(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),se=e(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),V=e(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),H=(function(){function t(e,t,n,r,a,o,s,c){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}e(t,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){let c=e*u-u*(f.length-1)/2,p=t.append(`text`).attr(`x`,n+a/2).attr(`y`,r).attr(`fill`,l).style(`text-anchor`,`middle`).style(`font-size`,u).style(`font-family`,d);p.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(f[e]),p.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),i(p,s)}}e(n,`byTspan`);function r(e,t,r,a,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,a).attr(`width`,o).attr(`height`,s).attr(`position`,`fixed`).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).attr(`class`,`label`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,a,o,s,c,l),i(d,c)}e(r,`byFo`);function i(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return e(i,`_setTextAttrs`),function(e){return e.textPlacement===`fo`?r:e.textPlacement===`old`?t:n}})(),ce=e(function(e,t){L=0,B=-1,e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,5).attr(`refY`,2).attr(`markerWidth`,6).attr(`markerHeight`,4).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0,0 V 4 L6,2 Z`)},`initGraphics`);function U(e,t){e.each(function(){var e=r(this),n=e.text().split(/(\s+|<br>)/).reverse(),i,a=[],o=1.1,s=e.attr(`y`),c=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,c+`em`);for(let r=0;r<n.length;r++)i=n[n.length-1-r],a.push(i),l.text(a.join(` `).trim()),(l.node().getComputedTextLength()>t||i===`<br>`)&&(a.pop(),l.text(a.join(` `).trim()),a=i===`<br>`?[``]:[i],l=e.append(`tspan`).attr(`x`,0).attr(`y`,s).attr(`dy`,o+`em`).text(i))})}e(U,`wrap`);var le=e(function(e,t,n,i,a,o=!1){let{theme:s,look:c}=i,l=s?.includes(`redux`),u=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=e.append(`g`);t.section=u,d.attr(`class`,(t.class?t.class+` `:``)+`timeline-node `+(`section-`+u));let f=d.append(`g`),p=d.append(`g`),m=p.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(U,t.width).node().getBBox(),h=i.fontSize?.replace?i.fontSize.replace(`px`,``):i.fontSize;if(t.height=m.height+h*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width+=2*t.padding,p.attr(`transform`,`translate(`+t.width/2+`, `+t.padding/2+`)`),l&&p.attr(`transform`,`translate(${t.width/2}, ${o?t.padding/2+3:t.padding})`),de(f,t,u,a,i),c===`neo`&&(d.attr(`data-look`,`neo`),l)){let t=s.includes(`dark`),n=e.node()?.ownerSVGElement??e.node(),i=r(n),a=i.attr(`id`)??``,o=a?`${a}-drop-shadow`:`drop-shadow`;if(i.select(`#${o}`).empty()){let e=i.select(`defs`);(e.empty()?i.append(`defs`):e).append(`filter`).attr(`id`,o).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,t?`0.2`:`0.06`).attr(`flood-color`,t?`#FFFFFF`:`#000000`)}}return t},`drawNode`),ue=e(function(e,t,n){let r=e.append(`g`),i=r.append(`text`).text(t.descr).attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).call(U,t.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace(`px`,``):n.fontSize;return r.remove(),i.height+a*1.1*.5+t.padding},`getVirtualNodeHeight`),de=e(function(e,t,n,r,i){let{theme:a}=i,o=a?.includes(`redux`)?0:5,s=o>0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+L++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),W={drawRect:R,drawCircle:ne,drawSection:ie,drawText:z,drawLabel:re,drawTask:ae,drawBackgroundRect:oe,getTextObj:se,getNoteRect:V,initGraphics:ce,drawNode:le,getVirtualNodeHeight:ue},fe=e(function(e,t,a,s){let c=o(),{look:l,theme:u,themeVariables:d}=c,{useGradient:f,gradientStart:p,gradientStop:m}=d,h=c.timeline?.leftMargin??50;n.debug(`timeline`,s.db);let g=c.securityLevel,_;g===`sandbox`&&(_=r(`#i`+t));let v=r(g===`sandbox`?_.nodes()[0].contentDocument.body:`body`).select(`#`+t);v.append(`g`);let y=s.db.getTasks(),b=s.db.getCommonDb().getDiagramTitle();n.debug(`task`,y),W.initGraphics(v,t);let x=s.db.getSections();n.debug(`sections`,x);let S=0,C=0,w=0,T=0,E=50+h,D=50;T=50;let O=0,k=!0;x.forEach(function(e){let t={number:O,descr:e,section:O,width:150,padding:20,maxHeight:S},r=W.getVirtualNodeHeight(v,t,c);n.debug(`sectionHeight before draw`,r),S=Math.max(S,r+20)});let A=0,j=0;n.debug(`tasks.length`,y.length);for(let[e,t]of y.entries()){let r={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:C},i=W.getVirtualNodeHeight(v,r,c);n.debug(`taskHeight before draw`,i),C=Math.max(C,i+20),A=Math.max(A,t.events.length);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};a+=W.getVirtualNodeHeight(v,n,c)}t.events.length>0&&(a+=(t.events.length-1)*10),j=Math.max(j,a)}n.debug(`maxSectionHeight before draw`,S),n.debug(`maxTaskHeight before draw`,C),x&&x.length>0?x.forEach(e=>{let r=y.filter(t=>t.section===e),i={number:O,descr:e,section:O,width:200*Math.max(r.length,1)-50,padding:20,maxHeight:S};n.debug(`sectionNode`,i);let a=v.append(`g`),o=W.drawNode(a,i,O,c,t);n.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${E}, ${T})`),D+=S+50,r.length>0&&G(v,r,O,E,D,C,c,A,j,S,!1,t),E+=200*Math.max(r.length,1),D=T,O++}):(k=!1,G(v,y,O,E,D,C,c,A,j,S,!0,t));let M=v.node().getBBox();if(n.debug(`bounds`,M),b&&v.append(`text`).text(b).attr(`x`,l===`neo`?M.x*2+h:M.width/2-h).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),w=k?S+C+150:C+100,v.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,h).attr(`y1`,w).attr(`x2`,M.width+3*h).attr(`y2`,w).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${t}-arrowhead)`),l===`neo`&&f&&u!==`neutral`){let e=v.select(`defs`),t=(e.empty()?v.append(`defs`):e).append(`linearGradient`).attr(`id`,v.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,p).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,m).attr(`stop-opacity`,1)}i(void 0,v,c.timeline?.padding??50,c.timeline?.useMaxWidth??!1)},`draw`),G=e(function(e,t,r,i,a,o,s,c,l,u,d,f){for(let c of t){let t={descr:c.task,section:r,number:r,width:150,padding:20,maxHeight:o};n.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=W.drawNode(u,t,r,s,f).height;if(n.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${i}, ${a})`),o=Math.max(o,p),c.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),n=o;a+=100,n+=pe(e,c.events,r,i,a,s,f),a-=100,t.append(`line`).attr(`x1`,i+95).attr(`y1`,a+o).attr(`x2`,i+95).attr(`y2`,a+o+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}i+=200,d&&!s.timeline?.disableMulticolor&&r++}a-=10},`drawTasks`),pe=e(function(e,t,r,i,a,o,s){let c=0,l=a;a+=100;for(let l of t){let t={descr:l,section:r,number:r,width:150,padding:20,maxHeight:50};n.debug(`eventNode`,t);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=W.drawNode(u,t,r,o,s,!0).height;c+=d,u.attr(`transform`,`translate(${i}, ${a})`),a=a+10+d}return a=l,c},`drawEvents`),me={setConf:e(()=>{},`setConf`),draw:fe},K=200,q=5,he=K+q*2,J=K+100,ge=J+q*2,Y=10,_e=0,X=20,Z=20,Q=30,$=50,ve=e(function(e,t,r,a){let s=o(),c=s.timeline?.leftMargin??50;n.debug(`timeline`,a.db);let l=g(t);l.append(`g`);let u=a.db.getTasks(),d=a.db.getCommonDb().getDiagramTitle();n.debug(`task`,u),W.initGraphics(l);let f=a.db.getSections();n.debug(`sections`,f);let m=0,h=0,_=50+c,v=50,y=v,b=_,x=he+Z,S=ge+$,C=b+x,w=0,T=f&&f.length>0,E=T?C:_+x,D=Math.max(50,x+S-q*2);f.forEach(function(e){let t={number:w,descr:e,section:w,width:D,padding:q,maxHeight:m},r=W.getVirtualNodeHeight(l,t,s);n.debug(`sectionHeight before draw`,r),m=Math.max(m,r)});let O=0;n.debug(`tasks.length`,u.length);for(let[e,t]of u.entries()){let r={number:e,descr:t,section:t.section,width:K,padding:q,maxHeight:h},i=W.getVirtualNodeHeight(l,r,s);n.debug(`taskHeight before draw`,i),h=Math.max(h,i);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:J,padding:q,maxHeight:50};a+=W.getVirtualNodeHeight(l,n,s)}t.events.length>0&&(a+=(t.events.length-1)*Y),O=Math.max(O,a)+_e}n.debug(`maxSectionHeight before draw`,m),n.debug(`maxTaskHeight before draw`,h);let k=Math.max(h,O)+Q;T?f.forEach(e=>{let t=u.filter(t=>t.section===e),r={number:w,descr:e,section:w,width:D,padding:q,maxHeight:m};n.debug(`sectionNode`,r);let i=l.append(`g`),a=W.drawNode(i,r,w,s);n.debug(`sectionNode output`,a);let o=E-x;i.attr(`transform`,`translate(${o}, ${v})`);let c=v+a.height+X;t.length>0&&ye(l,t,w,E,c,h,s,k,!1);let d=t.length,f=a.height+X+k*Math.max(d,1)-(d>0?Q*2:0);v+=f,w++}):ye(l,u,w,E,v,h,s,k,!0);let A=l.node()?.getBBox();if(!A)throw Error(`bbox not found`);if(n.debug(`bounds`,A),d){if(l.append(`text`).text(d).attr(`x`,A.width/2-c).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),A=l.node()?.getBBox(),!A)throw Error(`bbox not found`);n.debug(`bounds after title`,A)}let[j]=p(s.fontSize),M=(j??16)*2,N=(j??16)*.5+20,P=l.append(`g`).attr(`class`,`lineWrapper`);P.append(`line`).attr(`x1`,E).attr(`y1`,y-M).attr(`x2`,E).attr(`y2`,A.y+A.height+N).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),P.lower(),i(void 0,l,s.timeline?.padding??50,s.timeline?.useMaxWidth??!1)},`draw`),ye=e(function(e,t,r,i,a,o,s,c,l){for(let u of t){let t={descr:u.task,section:r,number:r,width:K,padding:q,maxHeight:o};n.debug(`taskNode`,t);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=W.drawNode(d,t,r,s),p=f.height;n.debug(`taskHeight after draw`,p);let m=i-Z-f.width;if(d.attr(`transform`,`translate(${m}, ${a})`),o=Math.max(o,p),u.events&&u.events.length>0){let t=a,n=i+$;be(e,u.events,r,i,n,t,s)}a+=c,l&&!s.timeline?.disableMulticolor&&r++}},`drawTasks`),be=e(function(e,t,r,i,a,o,s){let c=o;for(let o of t){let t={descr:o,section:r,number:r,width:J,padding:q,maxHeight:0};n.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=W.drawNode(l,t,r,s).height;l.attr(`transform`,`translate(${a}, ${c})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=c+u/2;d.append(`line`).attr(`x1`,i).attr(`y1`,f).attr(`x2`,a).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),c=c+u+Y}return c-o},`drawEvents`),xe={setConf:e(()=>{},`setConf`),draw:ve},Se=e(e=>{let{theme:t}=d(),n=t?.includes(`dark`),r=m(t,e.borderColorArray),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t<h(e.THEME_COLOR_LIMIT);t++){let i=`${17-3*t}`,s=r?e.borderColorArray[t%e.borderColorArray.length]:void 0,c=s??e.mainBkg,l=s??e.nodeBorder;o+=`
|
|
7
|
+
.section-${t-1} rect,
|
|
8
|
+
.section-${t-1} path,
|
|
9
|
+
.section-${t-1} circle {
|
|
10
|
+
fill: ${n&&r?e.mainBkg:c};
|
|
11
|
+
stroke: ${l};
|
|
12
|
+
stroke-width: ${e.strokeWidth};
|
|
13
|
+
filter: ${a};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.section-${t-1} text {
|
|
17
|
+
fill: ${e.nodeBorder};
|
|
18
|
+
font-weight: ${e.fontWeight}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.node-icon-${t-1} {
|
|
22
|
+
font-size: 40px;
|
|
23
|
+
color: ${e[`cScaleLabel`+t]};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.section-edge-${t-1} {
|
|
27
|
+
stroke: ${e[`cScale`+t]};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.edge-depth-${t-1} {
|
|
31
|
+
stroke-width: ${i};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.section-${t-1} line {
|
|
35
|
+
stroke: ${e[`cScaleInv`+t]};
|
|
36
|
+
stroke-width: 3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.lineWrapper line {
|
|
40
|
+
stroke: ${e.nodeBorder};
|
|
41
|
+
stroke-width:${e.strokeWidth}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.disabled,
|
|
45
|
+
.disabled circle,
|
|
46
|
+
.disabled text {
|
|
47
|
+
fill: ${e.tertiaryColor??`lightgray`};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.disabled text {
|
|
51
|
+
fill: ${e.clusterBorder??`#efefef`};
|
|
52
|
+
}
|
|
53
|
+
`}return o},`genReduxSections`),Ce=e(e=>{let t=``,n=h(e.THEME_COLOR_LIMIT);for(let t=0;t<n;t++)e[`lineColor`+t]=e[`lineColor`+t]??e[`cScaleInv`+t],s(e[`lineColor`+t])?e[`lineColor`+t]=c(e[`lineColor`+t],20):e[`lineColor`+t]=u(e[`lineColor`+t],20);for(let r=0;r<n;r++){let n=``+(17-3*r);t+=`
|
|
54
|
+
.section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} path {
|
|
55
|
+
fill: ${e[`cScale`+r]};
|
|
56
|
+
}
|
|
57
|
+
.section-${r-1} text {
|
|
58
|
+
fill: ${e[`cScaleLabel`+r]};
|
|
59
|
+
}
|
|
60
|
+
.node-icon-${r-1} {
|
|
61
|
+
font-size: 40px;
|
|
62
|
+
color: ${e[`cScaleLabel`+r]};
|
|
63
|
+
}
|
|
64
|
+
.section-edge-${r-1}{
|
|
65
|
+
stroke: ${e[`cScale`+r]};
|
|
66
|
+
}
|
|
67
|
+
.edge-depth-${r-1}{
|
|
68
|
+
stroke-width: ${n};
|
|
69
|
+
}
|
|
70
|
+
.section-${r-1} line {
|
|
71
|
+
stroke: ${e[`cScaleInv`+r]} ;
|
|
72
|
+
stroke-width: 3;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.lineWrapper line{
|
|
76
|
+
stroke: ${e[`cScaleLabel`+r]} ;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.disabled, .disabled circle, .disabled text {
|
|
80
|
+
fill: ${e.tertiaryColor??`lightgray`};
|
|
81
|
+
}
|
|
82
|
+
.disabled text {
|
|
83
|
+
fill: ${e.clusterBorder??`#efefef`};
|
|
84
|
+
}
|
|
85
|
+
`}return t},`genSections`),we={db:y,renderer:{setConf:e(()=>{},`setConf`),draw:e((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?xe.draw(e,t,n,r):me.draw(e,t,n,r),`draw`)},parser:v,styles:e(e=>{let{theme:t}=d(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r){let t=h(e.THEME_COLOR_LIMIT);for(let n=0;n<t;n++)a+=`
|
|
86
|
+
.section-${n-1}[data-look="neo"] rect,
|
|
87
|
+
.section-${n-1}[data-look="neo"] path,
|
|
88
|
+
.section-${n-1}[data-look="neo"] circle {
|
|
89
|
+
fill: ${e.mainBkg};
|
|
90
|
+
stroke: url(#${i}-gradient);
|
|
91
|
+
stroke-width: 2;
|
|
92
|
+
}
|
|
93
|
+
.section-${n-1}[data-look="neo"] line {
|
|
94
|
+
stroke: url(#${i}-gradient);
|
|
95
|
+
stroke-width: 2;
|
|
96
|
+
}`}return`
|
|
97
|
+
.edge {
|
|
98
|
+
stroke-width: 3;
|
|
99
|
+
}
|
|
100
|
+
${n?Se(e):Ce(e)}
|
|
101
|
+
${a}
|
|
102
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
103
|
+
fill: ${e.git0};
|
|
104
|
+
}
|
|
105
|
+
.section-root text {
|
|
106
|
+
fill: ${e.gitBranchLabel0};
|
|
107
|
+
}
|
|
108
|
+
.icon-container {
|
|
109
|
+
height:100%;
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
114
|
+
.edge {
|
|
115
|
+
fill: none;
|
|
116
|
+
}
|
|
117
|
+
.eventWrapper {
|
|
118
|
+
filter: brightness(120%);
|
|
119
|
+
}
|
|
120
|
+
`},`getStyles`)};export{we as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=6048e5,t=864e5,n=6e4,r=36e5,i=Symbol.for(`constructDateFrom`);function a(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&i in e?e[i](t):e instanceof Date?new e.constructor(t):new Date(t)}function o(e,t){return a(t||e,e)}export{n as a,r as i,a as n,e as o,t as r,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,l as t,o as n,s as r}from"./en-US-DKYSujv3.js";import{Et as i}from"./index-DoqlyejP.js";var a={lessThanXSeconds:{one:`bir saniyeden az`,other:`{{count}} saniyeden az`},xSeconds:{one:`1 saniye`,other:`{{count}} saniye`},halfAMinute:`yarım dakika`,lessThanXMinutes:{one:`bir dakikadan az`,other:`{{count}} dakikadan az`},xMinutes:{one:`1 dakika`,other:`{{count}} dakika`},aboutXHours:{one:`yaklaşık 1 saat`,other:`yaklaşık {{count}} saat`},xHours:{one:`1 saat`,other:`{{count}} saat`},xDays:{one:`1 gün`,other:`{{count}} gün`},aboutXWeeks:{one:`yaklaşık 1 hafta`,other:`yaklaşık {{count}} hafta`},xWeeks:{one:`1 hafta`,other:`{{count}} hafta`},aboutXMonths:{one:`yaklaşık 1 ay`,other:`yaklaşık {{count}} ay`},xMonths:{one:`1 ay`,other:`{{count}} ay`},aboutXYears:{one:`yaklaşık 1 yıl`,other:`yaklaşık {{count}} yıl`},xYears:{one:`1 yıl`,other:`{{count}} yıl`},overXYears:{one:`1 yıldan fazla`,other:`{{count}} yıldan fazla`},almostXYears:{one:`neredeyse 1 yıl`,other:`neredeyse {{count}} yıl`}},o=(e,t,n)=>{let r,i=a[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+` sonra`:r+` önce`:r},s={date:t({formats:{full:`d MMMM y EEEE`,long:`d MMMM y`,medium:`d MMM y`,short:`dd.MM.yyyy`},defaultWidth:`full`}),time:t({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:t({formats:{full:`{{date}} 'saat' {{time}}`,long:`{{date}} 'saat' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},c={lastWeek:`'geçen hafta' eeee 'saat' p`,yesterday:`'dün saat' p`,today:`'bugün saat' p`,tomorrow:`'yarın saat' p`,nextWeek:`eeee 'saat' p`,other:`P`},l={code:`tr`,formatDistance:o,formatLong:s,formatRelative:(e,t,n,r)=>c[e],localize:{ordinalNumber:(e,t)=>Number(e)+`.`,era:e({values:{narrow:[`MÖ`,`MS`],abbreviated:[`MÖ`,`MS`],wide:[`Milattan Önce`,`Milattan Sonra`]},defaultWidth:`wide`}),quarter:e({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1Ç`,`2Ç`,`3Ç`,`4Ç`],wide:[`İlk çeyrek`,`İkinci Çeyrek`,`Üçüncü çeyrek`,`Son çeyrek`]},defaultWidth:`wide`,argumentCallback:e=>Number(e)-1}),month:e({values:{narrow:[`O`,`Ş`,`M`,`N`,`M`,`H`,`T`,`A`,`E`,`E`,`K`,`A`],abbreviated:[`Oca`,`Şub`,`Mar`,`Nis`,`May`,`Haz`,`Tem`,`Ağu`,`Eyl`,`Eki`,`Kas`,`Ara`],wide:[`Ocak`,`Şubat`,`Mart`,`Nisan`,`Mayıs`,`Haziran`,`Temmuz`,`Ağustos`,`Eylül`,`Ekim`,`Kasım`,`Aralık`]},defaultWidth:`wide`}),day:e({values:{narrow:[`P`,`P`,`S`,`Ç`,`P`,`C`,`C`],short:[`Pz`,`Pt`,`Sa`,`Ça`,`Pe`,`Cu`,`Ct`],abbreviated:[`Paz`,`Pzt`,`Sal`,`Çar`,`Per`,`Cum`,`Cts`],wide:[`Pazar`,`Pazartesi`,`Salı`,`Çarşamba`,`Perşembe`,`Cuma`,`Cumartesi`]},defaultWidth:`wide`}),dayPeriod:e({values:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`},wide:{am:`Ö.Ö.`,pm:`Ö.S.`,midnight:`gece yarısı`,noon:`öğle`,morning:`sabah`,afternoon:`öğleden sonra`,evening:`akşam`,night:`gece`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`öö`,pm:`ös`,midnight:`gy`,noon:`ö`,morning:`sa`,afternoon:`ös`,evening:`ak`,night:`ge`},abbreviated:{am:`ÖÖ`,pm:`ÖS`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`},wide:{am:`ö.ö.`,pm:`ö.s.`,midnight:`gece yarısı`,noon:`öğlen`,morning:`sabahleyin`,afternoon:`öğleden sonra`,evening:`akşamleyin`,night:`geceleyin`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:n({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:r({matchPatterns:{narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},defaultParseWidth:`any`}),quarter:r({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:r({matchPatterns:{narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},defaultParseWidth:`any`}),day:r({matchPatterns:{narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},defaultParseWidth:`any`}),dayPeriod:r({matchPatterns:{narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1},labels:{labelDayButton:(e,t,n,r)=>{let a=(r??new i(n)).format(e,`PPPP`);return t.today&&(a=`Bugün, ${a}`),t.selected&&(a=`${a}, seçili`),a},labelMonthDropdown:`Ayı seçin`,labelNext:`Sonraki aya git`,labelPrevious:`Önceki aya git`,labelWeekNumber:e=>`Hafta ${e}`,labelYearDropdown:`Yılı seçin`,labelGrid:(e,t,n)=>(n??new i(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let a=(r??new i(n)).format(e,`PPPP`);return t?.today&&(a=`Bugün, ${a}`),a},labelNav:`Gezinme çubuğu`,labelWeekNumberHeader:`Hafta numarası`,labelWeekday:(e,t,n)=>(n??new i(t)).format(e,`cccc`)}};export{l as tr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,H as t,N as n}from"./core-jXc03Sty.js";var r=()=>{let r={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`},map:{unit:`öğe`,verb:`olmalı`}};function i(e){return r[e]??null}let a={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,mac:`MAC adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,credit_card:`kredi kartı numarası`,currency_code:`para birimi kodu`,iban:`IBAN`,jwt:`JWT`,template_literal:`Şablon dizesi`},o={nan:`NaN`};return r=>{switch(r.code){case`invalid_type`:{let e=o[r.expected]??r.expected,n=t(r.input),i=o[n]??n;return/^[A-Z]/.test(r.expected)?`Geçersiz değer: beklenen instanceof ${r.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${e}, alınan ${i}`}case`invalid_value`:return r.values.length===1?`Geçersiz değer: beklenen ${e(r.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${n(r.values,`|`)}`;case`too_big`:{let e=r.inclusive?`<=`:`<`,t=i(r.origin);return t?`Çok büyük: beklenen ${r.origin??`değer`} ${e}${r.maximum.toString()} ${t.unit??`öğe`}`:`Çok büyük: beklenen ${r.origin??`değer`} ${e}${r.maximum.toString()}`}case`too_small`:{let e=r.inclusive?`>=`:`>`,t=i(r.origin);return t?`Çok küçük: beklenen ${r.origin} ${e}${r.minimum.toString()} ${t.unit}`:`Çok küçük: beklenen ${r.origin} ${e}${r.minimum.toString()}`}case`invalid_format`:{let e=r;return e.format===`starts_with`?`Geçersiz metin: "${e.prefix}" ile başlamalı`:e.format===`ends_with`?`Geçersiz metin: "${e.suffix}" ile bitmeli`:e.format===`includes`?`Geçersiz metin: "${e.includes}" içermeli`:e.format===`regex`?`Geçersiz metin: ${e.pattern} desenine uymalı`:`Geçersiz ${a[e.format]??r.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${r.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${r.keys.length>1?`lar`:``}: ${n(r.keys,`, `)}`;case`invalid_key`:return`${r.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${r.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}};function i(){return{localeError:r()}}export{i as default};
|