@alfadocs/ui-kit 1.150.0 → 1.151.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/dist/_chunks/{address-autocomplete-_LeOFdM7.js → address-autocomplete-Bt1nwxyn.js} +2 -2
- package/dist/_chunks/{address-fields-C4khof4C.js → address-fields-COumFRSX.js} +2 -2
- package/dist/_chunks/{agenda-tray-NgxPuAAz.js → agenda-tray-CmfcYQhc.js} +2 -2
- package/dist/_chunks/{ai-summary-panel-D-RNe-_n.js → ai-summary-panel-DyAHCqaj.js} +2 -2
- package/dist/_chunks/{alia-sidebar-Bjuxk8mU.js → alia-sidebar-BqZjnVoF.js} +2 -2
- package/dist/_chunks/{anamnesis-card-G0qzw0Oi.js → anamnesis-card-CoiG7vDj.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-CE-i9j-s.js → anamnesis-summary-rows-CFpaA1GP.js} +3 -3
- package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BO31ZFQp.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
- package/dist/_chunks/{appointment-details-panel.identity-C9kWtC6m.js → appointment-details-panel.identity-9hRo85Lx.js} +4 -4
- package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
- package/dist/_chunks/{appointment-timeline-ynFqcw0S.js → appointment-timeline-COfoHpoJ.js} +2 -2
- package/dist/_chunks/{appointment-tray-Dx5VDREk.js → appointment-tray-BlKwDJKi.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DiyJQcmA.js → balance-badge-cell-OghXENKK.js} +3 -3
- package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BfoEpFVx.js → calendar-appointment-editor-dialog-BPAfWtm9.js} +337 -334
- package/dist/_chunks/{calendar-editor-discard-host-DO506cJu.js → calendar-editor-discard-host-BudLsUZO.js} +3 -3
- package/dist/_chunks/{calendar-waiting-list-panel-CyMTv2y3.js → calendar-waiting-list-panel-DukgSOPH.js} +7 -7
- package/dist/_chunks/{calendar-workspace.model-X3aXbDTo.js → calendar-workspace.model-BulUpy0I.js} +2 -2
- package/dist/_chunks/{calendar.sheets-C8x8kPb4.js → calendar.sheets-OmTiQdCg.js} +8 -8
- package/dist/_chunks/{calls-panel-Bpemmnpd.js → calls-panel-eohONLia.js} +3 -3
- package/dist/_chunks/code-BfU9G1ZM.js +15 -0
- package/dist/_chunks/{communications-panel-Cd0TBEhL.js → communications-panel-CqiFs8BH.js} +3 -3
- package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
- package/dist/_chunks/control-room-rail-BmpTKtL1.js +456 -0
- package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
- package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
- package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
- package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
- package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
- package/dist/_chunks/{document-preview-Zws6CHhK.js → document-preview-TbwhY_eK.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
- package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
- package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
- package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
- package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
- package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
- package/dist/_chunks/{feature-preview-switch-PKeLaFry.js → feature-preview-switch-B_8JTya_.js} +2 -2
- package/dist/_chunks/{file-manager-DzOCQBAO.js → file-manager-DMvYx-Gq.js} +4 -4
- package/dist/_chunks/{folder-CH9PJHou.js → folder-DvNxod7_.js} +3 -3
- package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-B_wMJ82X.js → help-me-write-templates-VnvlK87x.js} +2 -2
- package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
- package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
- package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
- package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
- package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
- package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
- package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
- package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
- package/dist/_chunks/{notes-panel-BguRX8VC.js → notes-panel-d0I3hOEY.js} +162 -173
- package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
- package/dist/_chunks/{optical-prescription-BzGnlIjq.js → optical-prescription-CAnXavjq.js} +2 -2
- package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
- package/dist/_chunks/{panel-subview-Om_yZvFG.js → panel-subview-B5hnQwfQ.js} +2 -2
- package/dist/_chunks/{patient-account-settings-YKnBzmwE.js → patient-account-settings-DQx_9CYV.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-DERfQbp5.js → patient-check-in-resume-BOHcm9hT.js} +5 -5
- package/dist/_chunks/{patient-details-BUD0UbmT.js → patient-details-wFIzTz7N.js} +3 -3
- package/dist/_chunks/{patient-field-row-DytaHdGw.js → patient-field-row-BDgfYLgz.js} +2 -2
- package/dist/_chunks/{patient-summary-card-7Werxl48.js → patient-summary-card-ZunOre3Q.js} +162 -155
- package/dist/_chunks/{payment-request-card-BF3rakTQ.js → payment-request-card-BSSfKrcc.js} +2 -2
- package/dist/_chunks/{portal-details-C1QQGPQf.js → portal-details-R-lwrisO.js} +4 -4
- package/dist/_chunks/{portal-documents-CzEuCaqv.js → portal-documents-C6XlWpEl.js} +3 -3
- package/dist/_chunks/{portal-parts-BMW4t57s.js → portal-parts-DlvSUZFX.js} +2 -2
- package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
- package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
- package/dist/_chunks/{privacy-mask-CrjD5PYW.js → privacy-mask-CaLBAxzj.js} +2 -2
- package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
- package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-Kl1M0dtT.js → radiograph-panel.agent-kgCmmgZk.js} +2 -2
- package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
- package/dist/_chunks/{registry-connection-panel-kdKbGQE6.js → registry-connection-panel-BkPPA3Fj.js} +3 -3
- package/dist/_chunks/{reserved.agent-CW0frsMv.js → reserved.agent-C-sMq0pb.js} +4 -4
- package/dist/_chunks/{reviews-panel-54AFY6uy.js → reviews-panel-jIz5aP2X.js} +3 -3
- package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
- package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
- package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
- package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
- package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
- package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
- package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
- package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
- package/dist/_chunks/{task-editor-CIHQQRtP.js → task-editor-aXjGMwYA.js} +4 -4
- package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
- package/dist/_chunks/{tasks-panel-Bc_odkQN.js → tasks-panel-BdxHb-fX.js} +2 -2
- package/dist/_chunks/{tool-rail-CJBtqzMs.js → tool-rail-B4p6MmxA.js} +253 -250
- package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
- package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
- package/dist/_chunks/{treatment-receipt-B6m47Jie.js → treatment-receipt-CZQV1NkJ.js} +45 -46
- package/dist/_chunks/{use-appointment-details-read-HVHbR0Zl.js → use-appointment-details-read-BR3TQOHx.js} +878 -809
- package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
- package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
- package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/appointment-editor-panel/index.js +3 -3
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/mark-adrift.d.ts +12 -0
- package/dist/components/_shared/safe-html.d.ts +6 -0
- package/dist/components/_shared/tooth-chip.d.ts +21 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +9 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +9 -2
- package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
- package/dist/components/appointment-details-panel/index.d.ts +1 -0
- package/dist/components/appointment-details-panel/index.js +7 -6
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/feature-preview-switch/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/note-timeline/note-timeline.d.ts +8 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +18 -7
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -6
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sync-tray/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +11 -0
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
- package/dist/components/week-availability/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/host-legacy.css +13 -1
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +11 -2
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +11 -2
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +11 -2
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +10 -1
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +11 -2
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +11 -2
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +11 -2
- package/dist/i18n/locales/it.d.ts +9 -0
- package/dist/i18n/locales/it.js +11 -2
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +11 -2
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +11 -2
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +11 -2
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +11 -2
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +11 -2
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +11 -2
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +11 -2
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +11 -2
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +11 -2
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +11 -2
- package/dist/index.js +817 -816
- package/dist/locales/ar.json +11 -2
- package/dist/locales/de.json +11 -2
- package/dist/locales/el.json +11 -2
- package/dist/locales/en.json +10 -1
- package/dist/locales/es.json +11 -2
- package/dist/locales/fr.json +11 -2
- package/dist/locales/hi.json +11 -2
- package/dist/locales/it.json +11 -2
- package/dist/locales/ja.json +11 -2
- package/dist/locales/nl.json +11 -2
- package/dist/locales/pl.json +11 -2
- package/dist/locales/pt.json +11 -2
- package/dist/locales/ro.json +11 -2
- package/dist/locales/ru.json +11 -2
- package/dist/locales/sq.json +11 -2
- package/dist/locales/sv.json +11 -2
- package/dist/locales/tr.json +11 -2
- package/dist/locales/zh.json +11 -2
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/error-page/index.js +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/signing/index.js +1 -1
- package/dist/redactor.css +9 -0
- package/dist/safe-html/index.js +33 -19
- package/dist/tokens.css +61 -52
- package/dist/waiting-list-panel/index.js +3 -3
- package/package.json +1 -1
- package/dist/_chunks/appointment-peek-CGJ6kUvM.js +0 -213
- package/dist/_chunks/control-room-rail-4W1MFY-g.js +0 -416
- package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
- package/dist/_chunks/rich-text-editor-DCQEpaIv.js +0 -4523
- /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
|
@@ -4,7 +4,7 @@ import * as Fe from "@radix-ui/react-tooltip";
|
|
|
4
4
|
import { c as qi } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as Gi } from "react-i18next";
|
|
6
6
|
import { u as Ji } from "./registry-DvAUVLHh.js";
|
|
7
|
-
import { m as
|
|
7
|
+
import { m as et, M as Qi, A as es } from "./annotation-marker-D-M7y4R1.js";
|
|
8
8
|
import { B as P } from "./button-Dp4j9ygh.js";
|
|
9
9
|
import { I as Ke } from "./icon-button-u9VMQn3x.js";
|
|
10
10
|
import { B as ts } from "./button-group-CHQD8GJ0.js";
|
|
@@ -16,7 +16,7 @@ import { S as Tt } from "./separator-Bdc9bqoJ.js";
|
|
|
16
16
|
import { S as rs } from "./slider-pZ95bEm7.js";
|
|
17
17
|
import { S as is } from "./switch-DO6uC4HJ.js";
|
|
18
18
|
import { a as ss } from "./format-number-DdzqwMs1.js";
|
|
19
|
-
import { c as
|
|
19
|
+
import { c as st } from "./createLucideIcon-DhHxpK9K.js";
|
|
20
20
|
import { T as os } from "./type-ggmfVs23.js";
|
|
21
21
|
import { C as as } from "./circle-j7oZoouK.js";
|
|
22
22
|
import { S as cs } from "./square-DASBRZ0U.js";
|
|
@@ -31,24 +31,25 @@ import { C as gs } from "./camera-VSklPDCv.js";
|
|
|
31
31
|
import { U as ys } from "./upload-BfT2hzMg.js";
|
|
32
32
|
import { Z as xs, a as vs } from "./zoom-out-Dnif4kJx.js";
|
|
33
33
|
import { M as ws } from "./maximize-2-BYd2Kti7.js";
|
|
34
|
+
import { U as ks } from "./user-round-DZxRG9zq.js";
|
|
34
35
|
/**
|
|
35
36
|
* @license lucide-react v1.22.0 - ISC
|
|
36
37
|
*
|
|
37
38
|
* This source code is licensed under the ISC license.
|
|
38
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
40
|
*/
|
|
40
|
-
const
|
|
41
|
+
const bs = [
|
|
41
42
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
42
43
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
43
44
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
44
|
-
],
|
|
45
|
+
], Cs = st("columns-3", bs);
|
|
45
46
|
/**
|
|
46
47
|
* @license lucide-react v1.22.0 - ISC
|
|
47
48
|
*
|
|
48
49
|
* This source code is licensed under the ISC license.
|
|
49
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
51
|
*/
|
|
51
|
-
const
|
|
52
|
+
const Ss = [
|
|
52
53
|
[
|
|
53
54
|
"path",
|
|
54
55
|
{
|
|
@@ -56,14 +57,14 @@ const Cs = [
|
|
|
56
57
|
key: "edeuup"
|
|
57
58
|
}
|
|
58
59
|
]
|
|
59
|
-
],
|
|
60
|
+
], Ms = st("mouse-pointer-2", Ss);
|
|
60
61
|
/**
|
|
61
62
|
* @license lucide-react v1.22.0 - ISC
|
|
62
63
|
*
|
|
63
64
|
* This source code is licensed under the ISC license.
|
|
64
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
66
|
*/
|
|
66
|
-
const
|
|
67
|
+
const Ns = [
|
|
67
68
|
[
|
|
68
69
|
"path",
|
|
69
70
|
{
|
|
@@ -71,14 +72,14 @@ const Ms = [
|
|
|
71
72
|
key: "1a8usu"
|
|
72
73
|
}
|
|
73
74
|
]
|
|
74
|
-
],
|
|
75
|
+
], Is = st("pen", Ns);
|
|
75
76
|
/**
|
|
76
77
|
* @license lucide-react v1.22.0 - ISC
|
|
77
78
|
*
|
|
78
79
|
* This source code is licensed under the ISC license.
|
|
79
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
81
|
*/
|
|
81
|
-
const
|
|
82
|
+
const As = [
|
|
82
83
|
[
|
|
83
84
|
"path",
|
|
84
85
|
{ d: "M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13", key: "orapub" }
|
|
@@ -100,29 +101,19 @@ const Is = [
|
|
|
100
101
|
}
|
|
101
102
|
],
|
|
102
103
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
103
|
-
],
|
|
104
|
+
], Ts = st("pencil-ruler", As);
|
|
104
105
|
/**
|
|
105
106
|
* @license lucide-react v1.22.0 - ISC
|
|
106
107
|
*
|
|
107
108
|
* This source code is licensed under the ISC license.
|
|
108
109
|
* See the LICENSE file in the root directory of this source tree.
|
|
109
110
|
*/
|
|
110
|
-
const
|
|
111
|
+
const Es = [
|
|
111
112
|
["path", { d: "m19 16-3 3", key: "lp3y45" }],
|
|
112
113
|
["path", { d: "M2 21a8 8 0 0 1 12.664-6.5", key: "1ap0vn" }],
|
|
113
114
|
["path", { d: "M22 19h-6l3 3", key: "13fjle" }],
|
|
114
115
|
["circle", { cx: "10", cy: "8", r: "5", key: "o932ke" }]
|
|
115
|
-
], Tr =
|
|
116
|
-
/**
|
|
117
|
-
* @license lucide-react v1.22.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/
|
|
122
|
-
const Es = [
|
|
123
|
-
["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
|
|
124
|
-
["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
|
|
125
|
-
], zs = Be("user-round", Es), _s = {
|
|
116
|
+
], Tr = st("user-round-arrow-left", Es), zs = {
|
|
126
117
|
type: "string",
|
|
127
118
|
enum: [
|
|
128
119
|
"none",
|
|
@@ -143,9 +134,9 @@ const Es = [
|
|
|
143
134
|
type: "string",
|
|
144
135
|
enum: ["front", "profile-left", "profile-right"],
|
|
145
136
|
description: "Active view id: 'front', 'profile-left', or 'profile-right'."
|
|
146
|
-
},
|
|
137
|
+
}, tt = {
|
|
147
138
|
enum: ["observation", "treatment", "concern", "note"]
|
|
148
|
-
},
|
|
139
|
+
}, _s = {
|
|
149
140
|
id: "face-scheme",
|
|
150
141
|
// pick — focus a zone (transient); set_value / edit_inline — record / clear
|
|
151
142
|
// findings on a zone; view_change — switch the active view (front / left /
|
|
@@ -254,7 +245,7 @@ const Es = [
|
|
|
254
245
|
required: ["id"]
|
|
255
246
|
},
|
|
256
247
|
returns: "string[]",
|
|
257
|
-
returnsSchema: { type: "array", items:
|
|
248
|
+
returnsSchema: { type: "array", items: tt },
|
|
258
249
|
idempotent: !0,
|
|
259
250
|
descriptionKey: "ui.agent.faceScheme.actions.getZone",
|
|
260
251
|
description: "Read the finding types recorded on one zone (notes are not returned).",
|
|
@@ -265,7 +256,7 @@ const Es = [
|
|
|
265
256
|
argsType: "{ finding: FaceFindingType }",
|
|
266
257
|
argsSchema: {
|
|
267
258
|
type: "object",
|
|
268
|
-
properties: { finding:
|
|
259
|
+
properties: { finding: tt },
|
|
269
260
|
required: ["finding"]
|
|
270
261
|
},
|
|
271
262
|
returns: "string[]",
|
|
@@ -282,7 +273,7 @@ const Es = [
|
|
|
282
273
|
type: "object",
|
|
283
274
|
properties: {
|
|
284
275
|
id: ke,
|
|
285
|
-
finding:
|
|
276
|
+
finding: tt,
|
|
286
277
|
note: { type: "string" }
|
|
287
278
|
},
|
|
288
279
|
required: ["id", "finding"]
|
|
@@ -299,7 +290,7 @@ const Es = [
|
|
|
299
290
|
argsType: "{ id: string; finding: FaceFindingType }",
|
|
300
291
|
argsSchema: {
|
|
301
292
|
type: "object",
|
|
302
|
-
properties: { id: ke, finding:
|
|
293
|
+
properties: { id: ke, finding: tt },
|
|
303
294
|
required: ["id", "finding"]
|
|
304
295
|
},
|
|
305
296
|
idempotent: !0,
|
|
@@ -372,7 +363,7 @@ const Es = [
|
|
|
372
363
|
argsType: "{ tool: FaceAnnotationTool | 'none' }",
|
|
373
364
|
argsSchema: {
|
|
374
365
|
type: "object",
|
|
375
|
-
properties: { tool:
|
|
366
|
+
properties: { tool: zs },
|
|
376
367
|
required: ["tool"]
|
|
377
368
|
},
|
|
378
369
|
idempotent: !0,
|
|
@@ -470,7 +461,7 @@ const Es = [
|
|
|
470
461
|
items: ke,
|
|
471
462
|
description: "Zone ids to record the finding on."
|
|
472
463
|
},
|
|
473
|
-
finding:
|
|
464
|
+
finding: tt,
|
|
474
465
|
note: { type: "string" }
|
|
475
466
|
},
|
|
476
467
|
required: ["ids", "finding"]
|
|
@@ -506,7 +497,7 @@ const Es = [
|
|
|
506
497
|
description: 'Each clickable zone `<g>` carries its zone id as `data-zone` (plus `data-side` for the anatomical side, and `data-zone-selected="true"` while in the multi-selection). Each free-form annotation `<g>` carries `data-annotation` (its id), `data-annotation-kind`, `data-annotation-zone` (its linked zone id, when linked), and `data-selected="true"` while selected. The root `<div>` carries the active view id as `data-view` — only the zones for the active view are in the DOM.'
|
|
507
498
|
}
|
|
508
499
|
}
|
|
509
|
-
},
|
|
500
|
+
}, Rs = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.18/vision_bundle.mjs", $s = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.18/wasm", Fs = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task", Ks = {
|
|
510
501
|
"right-eye": [33, 133],
|
|
511
502
|
// subject's right eye, outer + inner corners
|
|
512
503
|
"left-eye": [263, 362],
|
|
@@ -521,7 +512,7 @@ const Es = [
|
|
|
521
512
|
subnasale: [2]
|
|
522
513
|
// base of the nose / top of the philtrum
|
|
523
514
|
}, wn = /* @__PURE__ */ new Map();
|
|
524
|
-
function
|
|
515
|
+
function Zs(n, r, o, l) {
|
|
525
516
|
const d = `${n}|${r}|${o}`, c = wn.get(d);
|
|
526
517
|
if (c) return c;
|
|
527
518
|
l == null || l("loading");
|
|
@@ -538,32 +529,32 @@ function Os(n, r, o, l) {
|
|
|
538
529
|
})();
|
|
539
530
|
return wn.set(d, m), m.catch(() => wn.delete(d)), m;
|
|
540
531
|
}
|
|
541
|
-
function
|
|
532
|
+
function Os(n) {
|
|
542
533
|
const r = new Image();
|
|
543
534
|
return r.crossOrigin = "anonymous", r.src = n, r.decode().then(() => r);
|
|
544
535
|
}
|
|
545
|
-
async function
|
|
536
|
+
async function Ps(n, r) {
|
|
546
537
|
if (typeof window > "u" || typeof Image > "u")
|
|
547
538
|
throw new Error("detectFaceLandmarks runs in the browser only.");
|
|
548
539
|
const {
|
|
549
540
|
viewWidth: o,
|
|
550
541
|
viewHeight: l,
|
|
551
|
-
visionModuleUrl: d =
|
|
552
|
-
wasmBaseUrl: c =
|
|
553
|
-
modelAssetPath: m =
|
|
542
|
+
visionModuleUrl: d = Rs,
|
|
543
|
+
wasmBaseUrl: c = $s,
|
|
544
|
+
modelAssetPath: m = Fs,
|
|
554
545
|
onStage: h
|
|
555
546
|
} = r, [p, y] = await Promise.all([
|
|
556
|
-
|
|
557
|
-
|
|
547
|
+
Os(n),
|
|
548
|
+
Zs(d, c, m, h)
|
|
558
549
|
]);
|
|
559
550
|
h == null || h("detecting");
|
|
560
551
|
const b = y.detect(p).faceLandmarks[0];
|
|
561
552
|
if (!b || b.length === 0) return null;
|
|
562
|
-
const v = p.naturalWidth || p.width, k = p.naturalHeight || p.height, w = Math.max(o / v, l / k),
|
|
563
|
-
x:
|
|
553
|
+
const v = p.naturalWidth || p.width, k = p.naturalHeight || p.height, w = Math.max(o / v, l / k), _ = (o - v * w) / 2, X = (l - k * w) / 2, $ = (R) => ({
|
|
554
|
+
x: _ + R.x * v * w,
|
|
564
555
|
y: X + R.y * k * w
|
|
565
556
|
}), I = [];
|
|
566
|
-
for (const [R, H] of Object.entries(
|
|
557
|
+
for (const [R, H] of Object.entries(Ks)) {
|
|
567
558
|
let q = 0, pe = 0, re = 0;
|
|
568
559
|
for (const be of H) {
|
|
569
560
|
const le = b[be];
|
|
@@ -575,14 +566,14 @@ async function Ds(n, r) {
|
|
|
575
566
|
}
|
|
576
567
|
return I.length >= 3 ? I : null;
|
|
577
568
|
}
|
|
578
|
-
const
|
|
569
|
+
const Ds = "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.19.2/dist/ort.min.mjs", Bs = "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.19.2/dist/", F = 640, js = [8, 16, 32], Ws = [
|
|
579
570
|
"right-eye",
|
|
580
571
|
"left-eye",
|
|
581
572
|
"nose-tip",
|
|
582
573
|
"mouth-right",
|
|
583
574
|
"mouth-left"
|
|
584
575
|
], kn = /* @__PURE__ */ new Map();
|
|
585
|
-
async function
|
|
576
|
+
async function Hs(n, r, o, l) {
|
|
586
577
|
const d = `${n}|${r}|${o}`, c = kn.get(d);
|
|
587
578
|
if (c) return c;
|
|
588
579
|
l == null || l("loading");
|
|
@@ -599,14 +590,14 @@ async function Us(n, r, o, l) {
|
|
|
599
590
|
})();
|
|
600
591
|
return kn.set(d, m), m.catch(() => kn.delete(d)), m;
|
|
601
592
|
}
|
|
602
|
-
function
|
|
593
|
+
function Us(n) {
|
|
603
594
|
const r = new Image();
|
|
604
595
|
return r.crossOrigin = "anonymous", r.src = n, r.decode().then(() => r);
|
|
605
596
|
}
|
|
606
|
-
async function
|
|
597
|
+
async function Vs() {
|
|
607
598
|
return (await import("./face_detection_yunet_2023mar-BnsRs4bD.js")).default;
|
|
608
599
|
}
|
|
609
|
-
function
|
|
600
|
+
function Ys(n, r) {
|
|
610
601
|
const o = r.naturalWidth || r.width, l = r.naturalHeight || r.height, d = Math.min(F / o, F / l), c = Math.round(o * d), m = Math.round(l * d), h = Math.floor((F - c) / 2), p = Math.floor((F - m) / 2), y = document.createElement("canvas");
|
|
611
602
|
y.width = F, y.height = F;
|
|
612
603
|
const S = y.getContext("2d");
|
|
@@ -623,7 +614,7 @@ function Xs(n, r) {
|
|
|
623
614
|
};
|
|
624
615
|
}
|
|
625
616
|
const Er = (n) => 1 / (1 + Math.exp(-n));
|
|
626
|
-
function
|
|
617
|
+
function Xs(n, r) {
|
|
627
618
|
let o = !1;
|
|
628
619
|
const l = n.cls_8.data;
|
|
629
620
|
for (let c = 0; c < Math.min(l.length, 256); c++)
|
|
@@ -632,47 +623,47 @@ function qs(n, r) {
|
|
|
632
623
|
break;
|
|
633
624
|
}
|
|
634
625
|
let d = null;
|
|
635
|
-
for (const c of
|
|
626
|
+
for (const c of js) {
|
|
636
627
|
const m = n[`cls_${c}`].data, h = n[`obj_${c}`].data, p = n[`kps_${c}`].data, y = F / c, S = F / c, b = y * S;
|
|
637
628
|
for (let v = 0; v < b; v++) {
|
|
638
629
|
let k = m[v], w = h[v];
|
|
639
630
|
o && (k = Er(k), w = Er(w)), k = Math.min(Math.max(k, 0), 1), w = Math.min(Math.max(w, 0), 1);
|
|
640
|
-
const
|
|
641
|
-
if (
|
|
631
|
+
const _ = Math.sqrt(k * w);
|
|
632
|
+
if (_ < r || d && _ <= d.score) continue;
|
|
642
633
|
const X = v % y, $ = Math.floor(v / y), I = [];
|
|
643
634
|
for (let R = 0; R < 5; R++)
|
|
644
635
|
I.push([
|
|
645
636
|
(X + p[v * 10 + 2 * R]) * c,
|
|
646
637
|
($ + p[v * 10 + 2 * R + 1]) * c
|
|
647
638
|
]);
|
|
648
|
-
d = { score:
|
|
639
|
+
d = { score: _, keypoints: I };
|
|
649
640
|
}
|
|
650
641
|
}
|
|
651
642
|
return d;
|
|
652
643
|
}
|
|
653
|
-
async function
|
|
644
|
+
async function qs(n, r) {
|
|
654
645
|
if (typeof window > "u" || typeof Image > "u")
|
|
655
646
|
throw new Error("detectFaceYuNet runs in the browser only.");
|
|
656
647
|
const {
|
|
657
648
|
viewWidth: o,
|
|
658
649
|
viewHeight: l,
|
|
659
|
-
ortModuleUrl: d =
|
|
660
|
-
ortWasmBaseUrl: c =
|
|
661
|
-
modelUrl: m = await
|
|
650
|
+
ortModuleUrl: d = Ds,
|
|
651
|
+
ortWasmBaseUrl: c = Bs,
|
|
652
|
+
modelUrl: m = await Vs(),
|
|
662
653
|
scoreThreshold: h = 0.6,
|
|
663
654
|
onStage: p
|
|
664
655
|
} = r, [y, { ort: S, session: b }] = await Promise.all([
|
|
665
|
-
|
|
666
|
-
|
|
656
|
+
Us(n),
|
|
657
|
+
Hs(d, c, m, p)
|
|
667
658
|
]);
|
|
668
659
|
p == null || p("detecting");
|
|
669
|
-
const { tensor: v, scale: k, padX: w, padY:
|
|
660
|
+
const { tensor: v, scale: k, padX: w, padY: _ } = Ys(S.Tensor, y), X = await b.run({ [b.inputNames[0]]: v }), $ = Xs(X, h);
|
|
670
661
|
if (!$) return null;
|
|
671
662
|
const I = y.naturalWidth || y.width, R = y.naturalHeight || y.height, H = Math.max(o / I, l / R), q = (o - I * H) / 2, pe = (l - R * H) / 2;
|
|
672
663
|
return $.keypoints.map(([re, be], le) => {
|
|
673
|
-
const ge = (re - w) / k, ye = (be -
|
|
664
|
+
const ge = (re - w) / k, ye = (be - _) / k;
|
|
674
665
|
return {
|
|
675
|
-
id:
|
|
666
|
+
id: Ws[le],
|
|
676
667
|
photo: {
|
|
677
668
|
x: q + ge * H,
|
|
678
669
|
y: pe + ye * H
|
|
@@ -684,7 +675,7 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
684
675
|
id: "faceContour",
|
|
685
676
|
labelKey: "faceContour",
|
|
686
677
|
d: "M688.38,439.4c-9.78,0-15.37,4.04-17.86,6.47,1.31-10.99,2.5-20.62,3.49-28.2,7.55-57.89,5.03-94.39,5.03-94.39-15.15-165.92-111.73-221.46-186.21-239.39h0s-.1-.02-.1-.02c-6.18-1.49-12.21-2.72-18.02-3.73l-.96-.2c-46.02-9.51-93.5-9.51-139.52,0l-.95.2c-5.82,1.01-11.85,2.24-18.04,3.73l-.08.02h0c-74.48,17.94-171.06,73.48-186.21,239.39,0,0-2.52,36.5,5.03,94.39,1,7.68,2.2,17.45,3.53,28.61-2.25-2.35-7.91-6.88-18.26-6.88-13.97,0-29.06,16.21-20.12,63.71,8.94,47.5,17.3,80.48,18.43,97.24,1.11,16.47,24.08,47.91,41.43,38.23.9,8.33,1.42,13.17,1.42,13.17,0,0,8.81,59.15,56.63,104.46,12.62,11.95,25.84,23.46,38.49,33.94,7.14-4.56,24-16.96,29.06-35.21.9-3.24,1.73-6.33,2.52-9.29,2.46-9.17,4.59-17.1,7.4-24.46,3.44-9.01,7.62-16.28,13.25-23.04-47.54-46.57-49.82-89.3-48.75-104.93-21.75-2.47-38.06-19.4-47.37-49.37-7.27-23.39-7.77-46.39-7.79-47.36-.02-1.34.43-2.57,1.21-3.54-.47-2.21-.65-3.58-.67-3.77-.28-2.23.97-4.38,3.05-5.24.34-.14.69-.23,1.04-.29.47-3.26,2.23-10.86,8.8-18.21,10.82-12.11,28.95-17.92,53.93-17.22,41.5,1.13,55.11,17.49,59.58,28.15,1.45.85,2.49,2.34,2.68,4.14,0,.05.02.21.05.45.22.48.36,1,.42,1.56.04.41.34,3.71.16,8.68.17,6.11.1,14.39-.75,23.68-.27,2.9-.6,5.73-.98,8.49,4.1-9.94,7.68-20.29,11.15-30.32l.31-.89-10.84-54.18c-2.15-3.39-8.76-12.5-21.75-19.51-21.63-11.68-51.16-12.3-85.4-1.8-2.58.79-5.32-.61-6.19-3.16l-53.03-154.45c-.88-1.09-1.31-2.52-1.05-4.01.26-1.43,6.68-35.35,39.46-69.52,19.15-19.96,43.37-35.84,72.01-47.21,35.3-14.02,77.45-21.18,125.28-21.27h0s.98,0,.98,0c47.83.1,89.98,7.25,125.28,21.27,28.63,11.37,52.86,27.26,72.01,47.21,30.62,31.92,38.24,63.61,39.32,68.82.29.8.42,1.35.47,1.59.17.87.11,1.77-.17,2.61l-53.21,154.96c-.88,2.55-3.62,3.95-6.19,3.16-34.24-10.5-63.77-9.88-85.4,1.8-11.42,6.17-17.92,13.96-20.78,18.06l-11.25,56.25.04.11c2.95,8.52,5.98,17.28,9.34,25.81-.14-1.26-.28-2.53-.4-3.82-.53-5.79-.75-11.19-.81-15.92-1.11-9.09-.51-15.85-.45-16.44.11-1.1.59-2.08,1.3-2.85.19-.72.52-1.37.96-1.94,3.86-10.54,16.77-28.3,60.04-29.48,24.93-.69,43.04,5.1,53.85,17.2,6.53,7.3,8.3,14.85,8.78,18.13.53.04,1.05.16,1.56.37,2.08.86,3.32,3.01,3.05,5.24-.02.14-.12.93-.37,2.25,1.7.96,2.84,2.8,2.8,4.89-.02.97-.52,23.97-7.79,47.36-8.99,28.91-24.49,45.69-45.11,49.05,1.16,15.29-.68,58.78-49.42,106.1,5.35,6.56,9.36,13.63,12.68,22.33,2.81,7.36,4.94,15.28,7.4,24.45.79,2.96,1.62,6.05,2.52,9.29,5.07,18.28,21.97,30.69,29.09,35.23,12.65-10.48,25.88-21.99,38.5-33.95,47.82-45.31,56.63-104.46,56.63-104.46,0,0,.51-4.77,1.4-13,17.31,9.1,39.99-22.04,41.09-38.41,1.13-16.77,9.49-49.74,18.43-97.24,8.94-47.5-6.15-63.71-20.12-63.71Z"
|
|
687
|
-
},
|
|
678
|
+
}, Gs = [
|
|
688
679
|
{
|
|
689
680
|
id: "lateralNeckRight",
|
|
690
681
|
labelKey: "lateralNeckRight",
|
|
@@ -861,7 +852,7 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
861
852
|
cy: 487,
|
|
862
853
|
side: "left"
|
|
863
854
|
}
|
|
864
|
-
],
|
|
855
|
+
], Js = [
|
|
865
856
|
{ id: "right-eye", labelKey: "rightEye", x: 268, y: 487 },
|
|
866
857
|
{ id: "left-eye", labelKey: "leftEye", x: 535, y: 487 },
|
|
867
858
|
{ id: "nose-tip", labelKey: "noseTip", x: 403, y: 620 },
|
|
@@ -937,7 +928,7 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
937
928
|
cx: 552,
|
|
938
929
|
cy: 369
|
|
939
930
|
}
|
|
940
|
-
], zr = Wr.find((n) => n.id === "profileContour") ?? jr,
|
|
931
|
+
], zr = Wr.find((n) => n.id === "profileContour") ?? jr, Lr = Wr.filter(
|
|
941
932
|
(n) => n.id !== "profileContour"
|
|
942
933
|
).map((n) => ({
|
|
943
934
|
id: n.id,
|
|
@@ -946,7 +937,7 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
946
937
|
cx: n.cx ?? 0,
|
|
947
938
|
cy: n.cy ?? 0,
|
|
948
939
|
side: n.side ?? "midline"
|
|
949
|
-
})),
|
|
940
|
+
})), _r = [
|
|
950
941
|
{ id: "eye", labelKey: "eye", x: 561, y: 374 },
|
|
951
942
|
{ id: "nose-tip", labelKey: "noseTip", x: 668, y: 432 },
|
|
952
943
|
{ id: "mouth", labelKey: "mouth", x: 592, y: 532 }
|
|
@@ -960,8 +951,8 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
960
951
|
pivot: Cn,
|
|
961
952
|
contour: jr,
|
|
962
953
|
// The generator guarantees every clickable zone carries cx/cy/side.
|
|
963
|
-
zones:
|
|
964
|
-
landmarks:
|
|
954
|
+
zones: Gs,
|
|
955
|
+
landmarks: Js
|
|
965
956
|
},
|
|
966
957
|
// The reshaped profile zones face +x; the right profile is the same mesh
|
|
967
958
|
// mirrored. Both fit on the eye/nose-tip/mouth anchors — auto-detect and manual
|
|
@@ -974,8 +965,8 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
974
965
|
meshContentBox: { x: 383, y: 213, width: 239, height: 427 },
|
|
975
966
|
pivot: Cn,
|
|
976
967
|
contour: zr,
|
|
977
|
-
zones:
|
|
978
|
-
landmarks:
|
|
968
|
+
zones: Lr,
|
|
969
|
+
landmarks: _r
|
|
979
970
|
},
|
|
980
971
|
"profile-right": {
|
|
981
972
|
id: "profile-right",
|
|
@@ -985,11 +976,11 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
985
976
|
meshContentBox: { x: 383, y: 213, width: 239, height: 427 },
|
|
986
977
|
pivot: Cn,
|
|
987
978
|
contour: zr,
|
|
988
|
-
zones:
|
|
989
|
-
landmarks:
|
|
979
|
+
zones: Lr,
|
|
980
|
+
landmarks: _r,
|
|
990
981
|
mirror: !0
|
|
991
982
|
}
|
|
992
|
-
},
|
|
983
|
+
}, Qs = [
|
|
993
984
|
"front",
|
|
994
985
|
"profile-left",
|
|
995
986
|
"profile-right"
|
|
@@ -1003,7 +994,7 @@ const bn = "0 0 808 944", Cn = { x: 404, y: 472 }, jr = {
|
|
|
1003
994
|
treatment: { shape: "square", tone: "success" },
|
|
1004
995
|
concern: { shape: "triangle", tone: "warning" },
|
|
1005
996
|
note: { shape: "diamond", tone: "neutral" }
|
|
1006
|
-
},
|
|
997
|
+
}, eo = [
|
|
1007
998
|
"marker",
|
|
1008
999
|
"pen",
|
|
1009
1000
|
"highlighter",
|
|
@@ -1058,11 +1049,11 @@ function Nn(n, r, o) {
|
|
|
1058
1049
|
}
|
|
1059
1050
|
}
|
|
1060
1051
|
}
|
|
1061
|
-
function
|
|
1052
|
+
function to(n, r, o = 16) {
|
|
1062
1053
|
const l = r.x - n.x, d = r.y - n.y, c = Math.hypot(l, d) || 1, m = l / c, h = d / c, p = 0.5, y = Math.cos(p), S = Math.sin(p), b = r.x - o * (m * y - h * S), v = r.y - o * (h * y + m * S), k = r.x - o * (m * y + h * S), w = r.y - o * (h * y - m * S);
|
|
1063
1054
|
return `M ${r.x} ${r.y} L ${b} ${v} M ${r.x} ${r.y} L ${k} ${w}`;
|
|
1064
1055
|
}
|
|
1065
|
-
function
|
|
1056
|
+
function no(n) {
|
|
1066
1057
|
switch (n.kind) {
|
|
1067
1058
|
case "marker":
|
|
1068
1059
|
case "text":
|
|
@@ -1081,7 +1072,7 @@ function ro(n) {
|
|
|
1081
1072
|
}
|
|
1082
1073
|
}
|
|
1083
1074
|
}
|
|
1084
|
-
function
|
|
1075
|
+
function ro(n) {
|
|
1085
1076
|
switch (n.kind) {
|
|
1086
1077
|
case "marker":
|
|
1087
1078
|
case "text":
|
|
@@ -1098,8 +1089,8 @@ function io(n) {
|
|
|
1098
1089
|
return { x: (n.from.x + n.to.x) / 2, y: (n.from.y + n.to.y) / 2 };
|
|
1099
1090
|
}
|
|
1100
1091
|
}
|
|
1101
|
-
const
|
|
1102
|
-
function
|
|
1092
|
+
const io = 28, Mn = 26;
|
|
1093
|
+
function so(n, r = 30) {
|
|
1103
1094
|
switch (n.kind) {
|
|
1104
1095
|
case "marker":
|
|
1105
1096
|
return { type: "circle", cx: n.x, cy: n.y, r: Mn };
|
|
@@ -1127,26 +1118,26 @@ const Pe = [1, 0, 0, 1, 0, 0];
|
|
|
1127
1118
|
function zt(n) {
|
|
1128
1119
|
return `matrix(${n[0]} ${n[1]} ${n[2]} ${n[3]} ${n[4]} ${n[5]})`;
|
|
1129
1120
|
}
|
|
1130
|
-
function
|
|
1121
|
+
function nt(n, r) {
|
|
1131
1122
|
return {
|
|
1132
1123
|
x: n[0] * r.x + n[2] * r.y + n[4],
|
|
1133
1124
|
y: n[1] * r.x + n[3] * r.y + n[5]
|
|
1134
1125
|
};
|
|
1135
1126
|
}
|
|
1136
|
-
function
|
|
1127
|
+
function oo(n) {
|
|
1137
1128
|
const r = n[0] * n[3] - n[1] * n[2], o = n[3] / r, l = -n[1] / r, d = -n[2] / r, c = n[0] / r;
|
|
1138
1129
|
return [o, l, d, c, -(o * n[4] + d * n[5]), -(l * n[4] + c * n[5])];
|
|
1139
1130
|
}
|
|
1140
|
-
const
|
|
1131
|
+
const ao = 0.84;
|
|
1141
1132
|
function $r(n, r, o, l = {}) {
|
|
1142
|
-
const d = `0 0 ${o.width} ${o.height}`, c = l.fraction ??
|
|
1133
|
+
const d = `0 0 ${o.width} ${o.height}`, c = l.fraction ?? ao;
|
|
1143
1134
|
if (c <= 0 || c > 1) return d;
|
|
1144
1135
|
const m = [
|
|
1145
1136
|
{ x: n.x, y: n.y },
|
|
1146
1137
|
{ x: n.x + n.width, y: n.y },
|
|
1147
1138
|
{ x: n.x, y: n.y + n.height },
|
|
1148
1139
|
{ x: n.x + n.width, y: n.y + n.height }
|
|
1149
|
-
].map((I) =>
|
|
1140
|
+
].map((I) => nt(r, I));
|
|
1150
1141
|
let h = 1 / 0, p = 1 / 0, y = -1 / 0, S = -1 / 0;
|
|
1151
1142
|
for (const I of m)
|
|
1152
1143
|
h = Math.min(h, I.x), p = Math.min(p, I.y), y = Math.max(y, I.x), S = Math.max(S, I.y);
|
|
@@ -1157,20 +1148,20 @@ function $r(n, r, o, l = {}) {
|
|
|
1157
1148
|
const b = y - h, v = S - p;
|
|
1158
1149
|
if (!Number.isFinite(h + p + b + v) || b <= 0 || v <= 0)
|
|
1159
1150
|
return d;
|
|
1160
|
-
const k = o.width / o.height, w = Math.max(v / c, b / c / k),
|
|
1161
|
-
if (
|
|
1162
|
-
const X = Math.min(Math.max(h + b / 2 -
|
|
1163
|
-
return `${Math.round(X)} ${Math.round($)} ${Math.round(
|
|
1151
|
+
const k = o.width / o.height, w = Math.max(v / c, b / c / k), _ = w * k;
|
|
1152
|
+
if (_ > o.width || w > o.height) return d;
|
|
1153
|
+
const X = Math.min(Math.max(h + b / 2 - _ / 2, 0), o.width - _), $ = Math.min(Math.max(p + v / 2 - w / 2, 0), o.height - w);
|
|
1154
|
+
return `${Math.round(X)} ${Math.round($)} ${Math.round(_)} ${Math.round(w)}`;
|
|
1164
1155
|
}
|
|
1165
|
-
const
|
|
1166
|
-
function
|
|
1156
|
+
const co = 1, Ur = 8, rt = { k: 1, fx: 0.5, fy: 0.5 }, De = (n) => Math.min(Math.max(n, 0), 1);
|
|
1157
|
+
function Lt(n) {
|
|
1167
1158
|
const [r = 0, o = 0, l = 0, d = 0] = n.split(/\s+/).map(Number);
|
|
1168
1159
|
return { x: r, y: o, width: l, height: d };
|
|
1169
1160
|
}
|
|
1170
|
-
function
|
|
1161
|
+
function lo(n) {
|
|
1171
1162
|
return `${Math.round(n.x)} ${Math.round(n.y)} ${Math.round(n.width)} ${Math.round(n.height)}`;
|
|
1172
1163
|
}
|
|
1173
|
-
function
|
|
1164
|
+
function it(n, r) {
|
|
1174
1165
|
if (r.k <= 1) return n;
|
|
1175
1166
|
const o = n.width / r.k, l = n.height / r.k;
|
|
1176
1167
|
return {
|
|
@@ -1181,19 +1172,19 @@ function st(n, r) {
|
|
|
1181
1172
|
};
|
|
1182
1173
|
}
|
|
1183
1174
|
function Fr(n, r, o, l) {
|
|
1184
|
-
const d = Math.min(Math.max(r.k * l,
|
|
1185
|
-
if (d <= 1) return
|
|
1175
|
+
const d = Math.min(Math.max(r.k * l, co), Ur);
|
|
1176
|
+
if (d <= 1) return rt;
|
|
1186
1177
|
if (d === r.k || !Number.isFinite(d)) return r;
|
|
1187
|
-
const c =
|
|
1178
|
+
const c = it(n, r), m = n.width / d, h = n.height / d, p = c.width > 0 ? De((o.x - c.x) / c.width) : 0.5, y = c.height > 0 ? De((o.y - c.y) / c.height) : 0.5, S = o.x - p * m, b = o.y - y * h, v = n.width - m, k = n.height - h;
|
|
1188
1179
|
return {
|
|
1189
1180
|
k: d,
|
|
1190
1181
|
fx: v > 0 ? De((S - n.x) / v) : 0.5,
|
|
1191
1182
|
fy: k > 0 ? De((b - n.y) / k) : 0.5
|
|
1192
1183
|
};
|
|
1193
1184
|
}
|
|
1194
|
-
function
|
|
1185
|
+
function uo(n, r, o, l) {
|
|
1195
1186
|
if (r.k <= 1) return r;
|
|
1196
|
-
const d =
|
|
1187
|
+
const d = it(n, r), c = n.width - d.width, m = n.height - d.height;
|
|
1197
1188
|
return {
|
|
1198
1189
|
k: r.k,
|
|
1199
1190
|
fx: c > 0 ? De((d.x - o - n.x) / c) : 0.5,
|
|
@@ -1201,11 +1192,11 @@ function fo(n, r, o, l) {
|
|
|
1201
1192
|
};
|
|
1202
1193
|
}
|
|
1203
1194
|
const Ft = Math.PI / 180;
|
|
1204
|
-
function
|
|
1195
|
+
function fo(n, r) {
|
|
1205
1196
|
const o = n.rotation * Ft, l = Math.cos(o), d = Math.sin(o), c = Math.tan(n.shear * Ft), m = n.scaleX * l, h = n.scaleX * d, p = n.scaleY * (c * l - d), y = n.scaleY * (c * d + l), S = n.translateX + r.x - (m * r.x + p * r.y), b = n.translateY + r.y - (h * r.x + y * r.y);
|
|
1206
1197
|
return [m, h, p, y, S, b];
|
|
1207
1198
|
}
|
|
1208
|
-
function
|
|
1199
|
+
function ho(n, r) {
|
|
1209
1200
|
const [o, l, d, c, m, h] = n, p = Math.hypot(o, l), y = Math.atan2(l, o) / Ft, S = o * c - l * d, b = p === 0 ? 0 : S / p, v = Math.atan2(o * d + l * c, S) / Ft, k = m - r.x + (o * r.x + d * r.y), w = h - r.y + (l * r.x + c * r.y);
|
|
1210
1201
|
return { scaleX: p, scaleY: b, rotation: y, shear: v, translateX: k, translateY: w };
|
|
1211
1202
|
}
|
|
@@ -1219,14 +1210,14 @@ function Kr(n, r) {
|
|
|
1219
1210
|
}
|
|
1220
1211
|
const w = l * (m * o - h * h) - d * (d * o - h * c) + c * (d * h - m * c);
|
|
1221
1212
|
if (Math.abs(w) < 1e-9) return Pe;
|
|
1222
|
-
const
|
|
1223
|
-
(
|
|
1213
|
+
const _ = m * o - h * h, X = c * h - d * o, $ = d * h - c * m, I = l * o - c * c, R = c * d - l * h, H = l * m - d * d, q = (ie, z, D) => [
|
|
1214
|
+
(_ * ie + X * z + $ * D) / w,
|
|
1224
1215
|
(X * ie + I * z + R * D) / w,
|
|
1225
1216
|
($ * ie + R * z + H * D) / w
|
|
1226
1217
|
], [pe, re, be] = q(p, y, S), [le, ge, ye] = q(b, v, k);
|
|
1227
1218
|
return [pe, le, re, ge, be, ye];
|
|
1228
1219
|
}
|
|
1229
|
-
function
|
|
1220
|
+
function mo(n) {
|
|
1230
1221
|
const r = (p) => {
|
|
1231
1222
|
var y;
|
|
1232
1223
|
return (y = n.find((S) => S.id === p)) == null ? void 0 : y.photo;
|
|
@@ -1239,14 +1230,14 @@ function po(n) {
|
|
|
1239
1230
|
{ id: "mouth", photo: h(c, m) }
|
|
1240
1231
|
];
|
|
1241
1232
|
}
|
|
1242
|
-
function
|
|
1233
|
+
function po() {
|
|
1243
1234
|
return typeof navigator < "u" && typeof navigator.mediaDevices < "u" && typeof navigator.mediaDevices.getUserMedia == "function";
|
|
1244
1235
|
}
|
|
1245
|
-
function
|
|
1236
|
+
function go(n) {
|
|
1246
1237
|
const r = n instanceof Error ? n.name : "";
|
|
1247
1238
|
return r === "NotAllowedError" || r === "SecurityError" ? "permission-denied" : r === "NotFoundError" || r === "OverconstrainedError" ? "no-camera" : r === "NotReadableError" || r === "AbortError" ? "not-readable" : "capture-failed";
|
|
1248
1239
|
}
|
|
1249
|
-
const
|
|
1240
|
+
const yo = {
|
|
1250
1241
|
"permission-denied": "faceScheme.capture.error.permissionDenied",
|
|
1251
1242
|
"no-camera": "faceScheme.capture.error.noCamera",
|
|
1252
1243
|
"not-readable": "faceScheme.capture.error.notReadable",
|
|
@@ -1259,32 +1250,32 @@ const xo = {
|
|
|
1259
1250
|
warning: "ds:[fill:var(--warning)]",
|
|
1260
1251
|
error: "ds:[fill:var(--destructive)]",
|
|
1261
1252
|
accent: "ds:[fill:var(--accent)]"
|
|
1262
|
-
},
|
|
1253
|
+
}, _t = {
|
|
1263
1254
|
neutral: "ds:[stroke:var(--muted-foreground)]",
|
|
1264
1255
|
info: "ds:[stroke:var(--info)]",
|
|
1265
1256
|
success: "ds:[stroke:var(--success)]",
|
|
1266
1257
|
warning: "ds:[stroke:var(--warning)]",
|
|
1267
1258
|
error: "ds:[stroke:var(--destructive)]",
|
|
1268
1259
|
accent: "ds:[stroke:var(--accent)]"
|
|
1269
|
-
},
|
|
1260
|
+
}, xo = 13, vo = 5, wo = 24, Rt = 5, ko = 26, Zr = 30, $t = 14, Or = [], Pr = "__draft__", Dr = [
|
|
1270
1261
|
"profile-left",
|
|
1271
1262
|
"front",
|
|
1272
1263
|
"profile-right"
|
|
1273
|
-
],
|
|
1264
|
+
], bo = {
|
|
1274
1265
|
"profile-left": /* @__PURE__ */ a(Tr, { "aria-hidden": "true" }),
|
|
1275
|
-
front: /* @__PURE__ */ a(
|
|
1266
|
+
front: /* @__PURE__ */ a(ks, { "aria-hidden": "true" }),
|
|
1276
1267
|
"profile-right": /* @__PURE__ */ a(Tr, { "aria-hidden": "true", className: "ds:-scale-x-100" })
|
|
1277
|
-
},
|
|
1278
|
-
select:
|
|
1268
|
+
}, Co = {
|
|
1269
|
+
select: Ms,
|
|
1279
1270
|
marker: fs,
|
|
1280
|
-
pen:
|
|
1271
|
+
pen: Is,
|
|
1281
1272
|
highlighter: us,
|
|
1282
1273
|
arrow: ds,
|
|
1283
1274
|
line: ls,
|
|
1284
1275
|
rect: cs,
|
|
1285
1276
|
ellipse: as,
|
|
1286
1277
|
text: os
|
|
1287
|
-
},
|
|
1278
|
+
}, So = [
|
|
1288
1279
|
"accent",
|
|
1289
1280
|
"info",
|
|
1290
1281
|
"success",
|
|
@@ -1322,21 +1313,21 @@ const xo = {
|
|
|
1322
1313
|
],
|
|
1323
1314
|
defaultVariants: { interactive: !1, marked: !1, selected: !1 }
|
|
1324
1315
|
}
|
|
1325
|
-
),
|
|
1316
|
+
), Mo = {
|
|
1326
1317
|
scaleX: { min: 0.3, max: 1.8, step: 0.01 },
|
|
1327
1318
|
scaleY: { min: 0.3, max: 1.8, step: 0.01 },
|
|
1328
1319
|
rotation: { min: -20, max: 20, step: 0.5 },
|
|
1329
1320
|
shear: { min: -20, max: 20, step: 0.5 },
|
|
1330
1321
|
translateX: { min: -240, max: 240, step: 1 },
|
|
1331
1322
|
translateY: { min: -240, max: 240, step: 1 }
|
|
1332
|
-
},
|
|
1323
|
+
}, No = [
|
|
1333
1324
|
"scaleX",
|
|
1334
1325
|
"scaleY",
|
|
1335
1326
|
"rotation",
|
|
1336
1327
|
"shear",
|
|
1337
1328
|
"translateX",
|
|
1338
1329
|
"translateY"
|
|
1339
|
-
],
|
|
1330
|
+
], Io = Vi(
|
|
1340
1331
|
({
|
|
1341
1332
|
id: n,
|
|
1342
1333
|
patientPhoto: r,
|
|
@@ -1353,7 +1344,7 @@ const xo = {
|
|
|
1353
1344
|
onSelectZone: v,
|
|
1354
1345
|
activeFinding: k,
|
|
1355
1346
|
zoneSelect: w = "off",
|
|
1356
|
-
selectedZones:
|
|
1347
|
+
selectedZones: _,
|
|
1357
1348
|
defaultSelectedZones: X,
|
|
1358
1349
|
onSelectedZonesChange: $,
|
|
1359
1350
|
annotations: I,
|
|
@@ -1372,7 +1363,7 @@ const xo = {
|
|
|
1372
1363
|
defaultRegistration: Vr,
|
|
1373
1364
|
onRegistrationChange: ot,
|
|
1374
1365
|
registrationMode: Yr = "off",
|
|
1375
|
-
autoDetect:
|
|
1366
|
+
autoDetect: Be,
|
|
1376
1367
|
onDetectStatus: at,
|
|
1377
1368
|
allowCapture: Kt = !1,
|
|
1378
1369
|
captureFacingMode: Zt = "user",
|
|
@@ -1381,7 +1372,7 @@ const xo = {
|
|
|
1381
1372
|
ariaLabel: Xr,
|
|
1382
1373
|
className: qr
|
|
1383
1374
|
}, Gr) => {
|
|
1384
|
-
const { t: f, i18n: Jr } = Gi("ui"), G = Yi(), lt = n ?? G, An = N(null), dt = N(null), ut = N(null),
|
|
1375
|
+
const { t: f, i18n: Jr } = Gi("ui"), G = Yi(), lt = n ?? G, An = N(null), dt = N(null), ut = N(null), je = N(null), Tn = N(null), En = N(null), Ot = N(!1), Pt = l !== void 0, [Qr, ei] = T(
|
|
1385
1376
|
l ?? d
|
|
1386
1377
|
), A = Pt ? l : Qr, K = N(A);
|
|
1387
1378
|
K.current = A;
|
|
@@ -1390,8 +1381,8 @@ const xo = {
|
|
|
1390
1381
|
Pt || ei(e), c == null || c(e);
|
|
1391
1382
|
},
|
|
1392
1383
|
[Pt, c]
|
|
1393
|
-
), [Dt, ht] = T(be), zn = `${G}-panel`, [mt,
|
|
1394
|
-
j.current =
|
|
1384
|
+
), [Dt, ht] = T(be), zn = `${G}-panel`, [mt, Ln] = T(h), [_n, ti] = T(!0), M = Sn[A], [, , B, se] = M.viewBox.split(" ").map(Number), L = p === "interactive", Ce = L && Yr === "adjust", Bt = y !== void 0, [ni, ri] = T(S ?? {}), We = Bt ? y : ni, j = N(We);
|
|
1385
|
+
j.current = We;
|
|
1395
1386
|
const oe = g(
|
|
1396
1387
|
(e) => {
|
|
1397
1388
|
Bt || ri(e), b == null || b(e);
|
|
@@ -1419,9 +1410,9 @@ const xo = {
|
|
|
1419
1410
|
) ? gt(e, t) : pt(e, t);
|
|
1420
1411
|
},
|
|
1421
1412
|
[pt, gt]
|
|
1422
|
-
), J =
|
|
1413
|
+
), J = L && w === "multi", yt = _ !== void 0, [ii, si] = T(
|
|
1423
1414
|
X ?? []
|
|
1424
|
-
), U = yt ?
|
|
1415
|
+
), U = yt ? _ : ii, de = N(U);
|
|
1425
1416
|
de.current = U;
|
|
1426
1417
|
const $n = xn(
|
|
1427
1418
|
() => new Set(U),
|
|
@@ -1439,7 +1430,7 @@ const xo = {
|
|
|
1439
1430
|
);
|
|
1440
1431
|
},
|
|
1441
1432
|
[Ee]
|
|
1442
|
-
),
|
|
1433
|
+
), He = g(() => {
|
|
1443
1434
|
de.current.length > 0 && Ee([]);
|
|
1444
1435
|
}, [Ee]), [Kn, Zn] = T(""), xt = g(
|
|
1445
1436
|
(e, t, i) => {
|
|
@@ -1478,19 +1469,19 @@ const xo = {
|
|
|
1478
1469
|
},
|
|
1479
1470
|
[Wt, ot, A]
|
|
1480
1471
|
), Ut = xn(
|
|
1481
|
-
() =>
|
|
1472
|
+
() => ho(Q, M.pivot),
|
|
1482
1473
|
[Q, M.pivot]
|
|
1483
1474
|
), ce = g(
|
|
1484
1475
|
(e) => M.mirror ? { x: B - e.x, y: e.y } : e,
|
|
1485
1476
|
[M.mirror, B]
|
|
1486
1477
|
), [Vt, Pn] = T(
|
|
1487
|
-
() => M.landmarks.map((e) => ce(
|
|
1488
|
-
), wt = N(null), [ci, Dn] = T(null), Bn = N(null), [xe, Se] = T(
|
|
1478
|
+
() => M.landmarks.map((e) => ce(nt(Q, e)))
|
|
1479
|
+
), wt = N(null), [ci, Dn] = T(null), Bn = N(null), [xe, Se] = T(rt), Yt = N(xe);
|
|
1489
1480
|
Yt.current = xe;
|
|
1490
1481
|
const kt = N(M.viewBox), ze = N(null);
|
|
1491
1482
|
ne(() => {
|
|
1492
1483
|
wt.current === null && Pn(
|
|
1493
|
-
M.landmarks.map((e) => ce(
|
|
1484
|
+
M.landmarks.map((e) => ce(nt(Q, e)))
|
|
1494
1485
|
);
|
|
1495
1486
|
}, [Q, M.landmarks, ce]);
|
|
1496
1487
|
const bt = g(
|
|
@@ -1516,7 +1507,7 @@ const xo = {
|
|
|
1516
1507
|
},
|
|
1517
1508
|
[]
|
|
1518
1509
|
), jn = (e, t) => {
|
|
1519
|
-
const i =
|
|
1510
|
+
const i = Lt(kt.current), s = it(i, e);
|
|
1520
1511
|
return Fr(
|
|
1521
1512
|
i,
|
|
1522
1513
|
e,
|
|
@@ -1534,7 +1525,7 @@ const xo = {
|
|
|
1534
1525
|
Number.isFinite(e) && e > 0 ? e / t.k : 1
|
|
1535
1526
|
)
|
|
1536
1527
|
);
|
|
1537
|
-
}, []), qt = g(() => Se(
|
|
1528
|
+
}, []), qt = g(() => Se(rt), []), Un = g((e) => {
|
|
1538
1529
|
if (!(!ze.current || ze.current.id !== e.pointerId)) {
|
|
1539
1530
|
ze.current = null;
|
|
1540
1531
|
try {
|
|
@@ -1559,7 +1550,7 @@ const xo = {
|
|
|
1559
1550
|
[Vt, ve, M.landmarks, ae, ce]
|
|
1560
1551
|
), ui = g(() => {
|
|
1561
1552
|
wt.current = null, Dn(null);
|
|
1562
|
-
}, []), [
|
|
1553
|
+
}, []), [Ue, ue] = T("idle"), [Vn, Le] = T(
|
|
1563
1554
|
null
|
|
1564
1555
|
), [Yn, fi] = T({}), Me = (o == null ? void 0 : o[A]) ?? (A === "front" ? r : void 0), ee = Yn[A] ?? (Me == null ? void 0 : Me.src), Gt = I !== void 0, [hi, mi] = T(R ?? {}), Ct = Gt ? I : hi, W = N(Ct);
|
|
1565
1556
|
W.current = Ct;
|
|
@@ -1583,8 +1574,8 @@ const xo = {
|
|
|
1583
1574
|
(e) => {
|
|
1584
1575
|
const t = dt.current;
|
|
1585
1576
|
if (!t) return null;
|
|
1586
|
-
const i =
|
|
1587
|
-
|
|
1577
|
+
const i = nt(
|
|
1578
|
+
oo(Ht.current),
|
|
1588
1579
|
ce(e)
|
|
1589
1580
|
), s = t.querySelectorAll(
|
|
1590
1581
|
"[data-zone] > path:first-of-type"
|
|
@@ -1601,7 +1592,7 @@ const xo = {
|
|
|
1601
1592
|
[ce]
|
|
1602
1593
|
), Ae = g(
|
|
1603
1594
|
(e) => {
|
|
1604
|
-
const t = e.id ?? Xn(), i = { ...e, id: t }, s = i.zoneId === void 0 ? { ...i, zoneId: qn(
|
|
1595
|
+
const t = e.id ?? Xn(), i = { ...e, id: t }, s = i.zoneId === void 0 ? { ...i, zoneId: qn(ro(i)) } : i, u = W.current[K.current] ?? [];
|
|
1605
1596
|
return Z([...u, s]), O(t), t;
|
|
1606
1597
|
},
|
|
1607
1598
|
[Z, Xn, O, qn]
|
|
@@ -1626,7 +1617,7 @@ const xo = {
|
|
|
1626
1617
|
(W.current[K.current] ?? []).length > 0 && Z([]);
|
|
1627
1618
|
}, [Z]), tn = le !== void 0, [yi, xi] = T(
|
|
1628
1619
|
ge
|
|
1629
|
-
), V =
|
|
1620
|
+
), V = L ? (tn ? le : yi) ?? null : null, nn = N(V);
|
|
1630
1621
|
nn.current = V;
|
|
1631
1622
|
const rn = g(
|
|
1632
1623
|
(e) => {
|
|
@@ -1637,14 +1628,14 @@ const xo = {
|
|
|
1637
1628
|
ie
|
|
1638
1629
|
), [on, wi] = T(z), Gn = N(sn);
|
|
1639
1630
|
Gn.current = sn;
|
|
1640
|
-
const
|
|
1641
|
-
|
|
1631
|
+
const Ve = N(on);
|
|
1632
|
+
Ve.current = on;
|
|
1642
1633
|
const [an, Mt] = T(null), Jn = N(null);
|
|
1643
1634
|
Jn.current = an;
|
|
1644
|
-
const Nt = N(!1), [
|
|
1645
|
-
cn.current =
|
|
1646
|
-
|
|
1647
|
-
}, [
|
|
1635
|
+
const Nt = N(!1), [Ye, It] = T(null), cn = N(null);
|
|
1636
|
+
cn.current = Ye, ne(() => {
|
|
1637
|
+
Ye !== null && ht(!0);
|
|
1638
|
+
}, [Ye]), ne(() => {
|
|
1648
1639
|
Ie !== null && ht(!0);
|
|
1649
1640
|
}, [Ie]);
|
|
1650
1641
|
const Qn = N(U.length);
|
|
@@ -1658,7 +1649,7 @@ const xo = {
|
|
|
1658
1649
|
const e = te.current;
|
|
1659
1650
|
e !== null && !Ne.some((t) => t.id === e) && O(null);
|
|
1660
1651
|
}, [Ne, O]);
|
|
1661
|
-
const
|
|
1652
|
+
const Xe = V !== null, ki = g(
|
|
1662
1653
|
(e) => {
|
|
1663
1654
|
var s, u;
|
|
1664
1655
|
const t = nn.current;
|
|
@@ -1671,7 +1662,7 @@ const xo = {
|
|
|
1671
1662
|
x: i.x,
|
|
1672
1663
|
y: i.y,
|
|
1673
1664
|
shape: Gn.current,
|
|
1674
|
-
tone:
|
|
1665
|
+
tone: Ve.current
|
|
1675
1666
|
});
|
|
1676
1667
|
return;
|
|
1677
1668
|
}
|
|
@@ -1681,7 +1672,7 @@ const xo = {
|
|
|
1681
1672
|
x: i.x,
|
|
1682
1673
|
y: i.y,
|
|
1683
1674
|
text: "",
|
|
1684
|
-
tone:
|
|
1675
|
+
tone: Ve.current
|
|
1685
1676
|
});
|
|
1686
1677
|
It(x);
|
|
1687
1678
|
return;
|
|
@@ -1690,13 +1681,13 @@ const xo = {
|
|
|
1690
1681
|
id: Pr,
|
|
1691
1682
|
kind: t,
|
|
1692
1683
|
points: [i],
|
|
1693
|
-
tone:
|
|
1684
|
+
tone: Ve.current
|
|
1694
1685
|
}) : (t === "arrow" || t === "line" || t === "rect" || t === "ellipse") && Mt({
|
|
1695
1686
|
id: Pr,
|
|
1696
1687
|
kind: t,
|
|
1697
1688
|
from: i,
|
|
1698
1689
|
to: i,
|
|
1699
|
-
tone:
|
|
1690
|
+
tone: Ve.current
|
|
1700
1691
|
});
|
|
1701
1692
|
},
|
|
1702
1693
|
[ve, Ae]
|
|
@@ -1722,7 +1713,7 @@ const xo = {
|
|
|
1722
1713
|
Ae(s);
|
|
1723
1714
|
},
|
|
1724
1715
|
[Ae]
|
|
1725
|
-
), ln =
|
|
1716
|
+
), ln = Ye ? Ne.find((e) => e.id === Ye && e.kind === "text") : void 0, Ci = g(
|
|
1726
1717
|
(e) => {
|
|
1727
1718
|
const t = cn.current;
|
|
1728
1719
|
if (!t) return;
|
|
@@ -1739,21 +1730,21 @@ const xo = {
|
|
|
1739
1730
|
if (It(null), !e) return;
|
|
1740
1731
|
const t = W.current[K.current] ?? [], i = t.find((s) => s.id === e);
|
|
1741
1732
|
i && i.kind === "text" && i.text.trim() === "" && Z(t.filter((s) => s.id !== e));
|
|
1742
|
-
}, [Z]),
|
|
1733
|
+
}, [Z]), _e = g(() => {
|
|
1743
1734
|
var t;
|
|
1744
|
-
(t =
|
|
1735
|
+
(t = je.current) == null || t.getTracks().forEach((i) => i.stop()), je.current = null;
|
|
1745
1736
|
const e = ut.current;
|
|
1746
1737
|
e && (e.srcObject = null);
|
|
1747
1738
|
}, []), dn = g(() => {
|
|
1748
|
-
|
|
1749
|
-
}, [
|
|
1739
|
+
_e(), ue("idle");
|
|
1740
|
+
}, [_e]), un = g(async () => {
|
|
1750
1741
|
var e;
|
|
1751
1742
|
if (Kt) {
|
|
1752
|
-
if (!
|
|
1753
|
-
|
|
1743
|
+
if (!po()) {
|
|
1744
|
+
Le("insecure-context"), ue("error");
|
|
1754
1745
|
return;
|
|
1755
1746
|
}
|
|
1756
|
-
|
|
1747
|
+
Le(null), ue("requesting");
|
|
1757
1748
|
try {
|
|
1758
1749
|
const t = await navigator.mediaDevices.getUserMedia({
|
|
1759
1750
|
video: { facingMode: Zt },
|
|
@@ -1763,7 +1754,7 @@ const xo = {
|
|
|
1763
1754
|
t.getTracks().forEach((s) => s.stop());
|
|
1764
1755
|
return;
|
|
1765
1756
|
}
|
|
1766
|
-
|
|
1757
|
+
je.current = t;
|
|
1767
1758
|
const i = ut.current;
|
|
1768
1759
|
if (i) {
|
|
1769
1760
|
try {
|
|
@@ -1776,10 +1767,10 @@ const xo = {
|
|
|
1776
1767
|
}
|
|
1777
1768
|
ue("streaming");
|
|
1778
1769
|
} catch (t) {
|
|
1779
|
-
|
|
1770
|
+
_e(), Le(go(t)), ue("error");
|
|
1780
1771
|
}
|
|
1781
1772
|
}
|
|
1782
|
-
}, [Kt, Zt,
|
|
1773
|
+
}, [Kt, Zt, _e]), qe = g(
|
|
1783
1774
|
(e, t, i) => {
|
|
1784
1775
|
fi((s) => ({ ...s, [A]: e })), ct == null || ct({ src: e, width: t, height: i, view: A });
|
|
1785
1776
|
},
|
|
@@ -1787,24 +1778,24 @@ const xo = {
|
|
|
1787
1778
|
), Si = g(() => {
|
|
1788
1779
|
const e = ut.current, t = (e == null ? void 0 : e.videoWidth) || (e == null ? void 0 : e.clientWidth) || 0, i = (e == null ? void 0 : e.videoHeight) || (e == null ? void 0 : e.clientHeight) || 0;
|
|
1789
1780
|
if (!e || e.readyState < 2 || t === 0 || i === 0) {
|
|
1790
|
-
|
|
1781
|
+
Le("capture-failed"), ue("error");
|
|
1791
1782
|
return;
|
|
1792
1783
|
}
|
|
1793
1784
|
const s = document.createElement("canvas");
|
|
1794
1785
|
s.width = t, s.height = i;
|
|
1795
1786
|
const u = s.getContext("2d");
|
|
1796
1787
|
if (!u) {
|
|
1797
|
-
|
|
1788
|
+
Le("capture-failed"), ue("error");
|
|
1798
1789
|
return;
|
|
1799
1790
|
}
|
|
1800
1791
|
try {
|
|
1801
1792
|
u.drawImage(e, 0, 0, t, i);
|
|
1802
1793
|
} catch {
|
|
1803
|
-
|
|
1794
|
+
Le("capture-failed"), ue("error");
|
|
1804
1795
|
return;
|
|
1805
1796
|
}
|
|
1806
|
-
|
|
1807
|
-
}, [
|
|
1797
|
+
_e(), qe(s.toDataURL("image/jpeg", 0.92), t, i), ue("idle");
|
|
1798
|
+
}, [_e, qe]), Mi = g(
|
|
1808
1799
|
(e) => {
|
|
1809
1800
|
var s;
|
|
1810
1801
|
const t = (s = e.target.files) == null ? void 0 : s[0];
|
|
@@ -1814,16 +1805,16 @@ const xo = {
|
|
|
1814
1805
|
const u = typeof i.result == "string" ? i.result : "";
|
|
1815
1806
|
if (!u) return;
|
|
1816
1807
|
const x = new Image();
|
|
1817
|
-
x.onload = () =>
|
|
1808
|
+
x.onload = () => qe(u, x.naturalWidth, x.naturalHeight), x.onerror = () => qe(u, B, se), x.src = u;
|
|
1818
1809
|
}, i.readAsDataURL(t);
|
|
1819
1810
|
},
|
|
1820
|
-
[
|
|
1811
|
+
[qe, B, se]
|
|
1821
1812
|
);
|
|
1822
1813
|
ne(() => (Ot.current = !1, () => {
|
|
1823
1814
|
var e;
|
|
1824
|
-
Ot.current = !0, (e =
|
|
1815
|
+
Ot.current = !0, (e = je.current) == null || e.getTracks().forEach((t) => t.stop()), je.current = null;
|
|
1825
1816
|
}), []);
|
|
1826
|
-
const fe =
|
|
1817
|
+
const fe = Ue === "streaming", ir = N(!1);
|
|
1827
1818
|
ne(() => {
|
|
1828
1819
|
var e;
|
|
1829
1820
|
ir.current && !fe && ((e = En.current) == null || e.focus()), ir.current = fe;
|
|
@@ -1834,14 +1825,14 @@ const xo = {
|
|
|
1834
1825
|
},
|
|
1835
1826
|
[at]
|
|
1836
1827
|
), fn = g(async () => {
|
|
1837
|
-
if (!
|
|
1828
|
+
if (!Be || !ee || M.landmarks.length === 0)
|
|
1838
1829
|
return !1;
|
|
1839
|
-
const e = typeof
|
|
1830
|
+
const e = typeof Be == "object" ? Be : {}, t = (i) => Re(i === "detecting" ? "detecting" : "loading");
|
|
1840
1831
|
try {
|
|
1841
1832
|
Re("loading");
|
|
1842
1833
|
let i;
|
|
1843
1834
|
if (M.id === "front")
|
|
1844
|
-
i = await
|
|
1835
|
+
i = await Ps(ee, {
|
|
1845
1836
|
viewWidth: B,
|
|
1846
1837
|
viewHeight: se,
|
|
1847
1838
|
onStage: t,
|
|
@@ -1849,7 +1840,7 @@ const xo = {
|
|
|
1849
1840
|
modelAssetPath: e.modelAssetPath
|
|
1850
1841
|
});
|
|
1851
1842
|
else {
|
|
1852
|
-
const s = await
|
|
1843
|
+
const s = await qs(ee, {
|
|
1853
1844
|
viewWidth: B,
|
|
1854
1845
|
viewHeight: se,
|
|
1855
1846
|
onStage: t,
|
|
@@ -1857,14 +1848,14 @@ const xo = {
|
|
|
1857
1848
|
ortWasmBaseUrl: e.ortWasmBaseUrl,
|
|
1858
1849
|
modelUrl: e.yunetModelUrl
|
|
1859
1850
|
});
|
|
1860
|
-
i = s &&
|
|
1851
|
+
i = s && mo(s);
|
|
1861
1852
|
}
|
|
1862
1853
|
return !i || i.length < 3 ? (Re("no-face"), !1) : (bt(i), Re("done"), !0);
|
|
1863
1854
|
} catch {
|
|
1864
1855
|
return Re("error"), !1;
|
|
1865
1856
|
}
|
|
1866
1857
|
}, [
|
|
1867
|
-
|
|
1858
|
+
Be,
|
|
1868
1859
|
ee,
|
|
1869
1860
|
M.id,
|
|
1870
1861
|
M.landmarks,
|
|
@@ -1925,7 +1916,7 @@ const xo = {
|
|
|
1925
1916
|
setAnnotationZone: Jt,
|
|
1926
1917
|
getSelectedZones: () => de.current,
|
|
1927
1918
|
setSelectedZones: (e) => Ee([...e]),
|
|
1928
|
-
clearZoneSelection:
|
|
1919
|
+
clearZoneSelection: He,
|
|
1929
1920
|
applyFindingToSelection: (e, t) => xt(de.current, e, t),
|
|
1930
1921
|
removeFindingFromSelection: (e) => jt(de.current, e),
|
|
1931
1922
|
setFindingBulk: xt
|
|
@@ -1949,14 +1940,14 @@ const xo = {
|
|
|
1949
1940
|
O,
|
|
1950
1941
|
Jt,
|
|
1951
1942
|
Ee,
|
|
1952
|
-
|
|
1943
|
+
He,
|
|
1953
1944
|
xt,
|
|
1954
1945
|
jt,
|
|
1955
1946
|
Hn,
|
|
1956
1947
|
qt
|
|
1957
1948
|
]
|
|
1958
1949
|
);
|
|
1959
|
-
Xi(Gr, () => hn, [hn]), Ji(
|
|
1950
|
+
Xi(Gr, () => hn, [hn]), Ji(_s, hn, lt);
|
|
1960
1951
|
const or = g(
|
|
1961
1952
|
(e) => {
|
|
1962
1953
|
const t = f(`faceScheme.zone.${e.labelKey}`), i = j.current[e.id] ?? [];
|
|
@@ -1970,10 +1961,10 @@ const xo = {
|
|
|
1970
1961
|
[f]
|
|
1971
1962
|
), ar = g(
|
|
1972
1963
|
(e) => {
|
|
1973
|
-
v == null || v(e.id), J ? Fn(e.id) :
|
|
1964
|
+
v == null || v(e.id), J ? Fn(e.id) : L && k && Rn(e.id, k);
|
|
1974
1965
|
},
|
|
1975
1966
|
[
|
|
1976
|
-
|
|
1967
|
+
L,
|
|
1977
1968
|
J,
|
|
1978
1969
|
Fn,
|
|
1979
1970
|
k,
|
|
@@ -1982,14 +1973,14 @@ const xo = {
|
|
|
1982
1973
|
]
|
|
1983
1974
|
), Ii = Me != null && Me.altKey ? f(Me.altKey) : f("faceScheme.photo.defaultAlt"), Ai = M.mirror ? `translate(${B} 0) scale(-1 1) ${zt(Q)}` : zt(Q), Ti = g(
|
|
1984
1975
|
(e, t) => {
|
|
1985
|
-
ae(
|
|
1976
|
+
ae(fo({ ...Ut, [e]: t }, M.pivot));
|
|
1986
1977
|
},
|
|
1987
1978
|
[ae, Ut, M.pivot]
|
|
1988
|
-
), cr = !!
|
|
1979
|
+
), cr = !!Be && !!ee && M.landmarks.length > 0, mn = Kt, lr = m && Qs.length > 1, Ge = L && pe, he = L && re, pn = J || Ge || Ce || he, dr = Dt && pn, we = mt === "all" && lr;
|
|
1989
1980
|
ne(() => {
|
|
1990
|
-
Se(
|
|
1981
|
+
Se(rt);
|
|
1991
1982
|
}, [A, he]), ne(() => {
|
|
1992
|
-
fe && Se(
|
|
1983
|
+
fe && Se(rt);
|
|
1993
1984
|
}, [fe]), ne(() => {
|
|
1994
1985
|
const e = dt.current;
|
|
1995
1986
|
if (!e || !he) return;
|
|
@@ -1998,7 +1989,7 @@ const xo = {
|
|
|
1998
1989
|
const s = ve(i.clientX, i.clientY);
|
|
1999
1990
|
Se(
|
|
2000
1991
|
(u) => Fr(
|
|
2001
|
-
|
|
1992
|
+
Lt(kt.current),
|
|
2002
1993
|
u,
|
|
2003
1994
|
s,
|
|
2004
1995
|
i.deltaY < 0 ? 1.15 : 1 / 1.15
|
|
@@ -2007,11 +1998,11 @@ const xo = {
|
|
|
2007
1998
|
};
|
|
2008
1999
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
2009
2000
|
}, [he, ve, we, A, fe]);
|
|
2010
|
-
const
|
|
2001
|
+
const Je = dr && !we, Ei = Je ? "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:lg:flex-row ds:lg:items-stretch ds:lg:justify-center" : "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", zi = Je ? "ds:flex ds:w-full ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)] ds:lg:w-[28rem] ds:lg:shrink-0" : "ds:flex ds:w-full ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]", Li = Je ? "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-md)] ds:lg:w-[28rem] ds:lg:shrink-0 ds:lg:self-stretch" : "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-md)]", _i = Je ? "ds:lg:h-0 ds:lg:min-h-full" : void 0, Ri = Je ? "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:lg:min-h-0 ds:lg:flex-1 ds:lg:overflow-y-auto" : "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", ur = lr, $i = ur || mn || pn, fr = pn ? /* @__PURE__ */ a(
|
|
2011
2002
|
Ke,
|
|
2012
2003
|
{
|
|
2013
2004
|
size: "sm",
|
|
2014
|
-
icon: /* @__PURE__ */ a(
|
|
2005
|
+
icon: /* @__PURE__ */ a(Ts, { "aria-hidden": "true" }),
|
|
2015
2006
|
"aria-label": f("faceScheme.panel.toggle"),
|
|
2016
2007
|
"aria-expanded": Dt,
|
|
2017
2008
|
"aria-controls": Dt ? zn : void 0,
|
|
@@ -2019,7 +2010,7 @@ const xo = {
|
|
|
2019
2010
|
onClick: () => ht((e) => !e)
|
|
2020
2011
|
},
|
|
2021
2012
|
"panel"
|
|
2022
|
-
) : null, Fi = V ?? "select", hr = `${G}-draw`, mr = `${G}-fit`, pr = `${G}-zoom`, gr = `${G}-tools`, yr = `${G}-tones`, xr = `${G}-shapes`, Ki = `${G}-ann-zone`,
|
|
2013
|
+
) : null, Fi = V ?? "select", hr = `${G}-draw`, mr = `${G}-fit`, pr = `${G}-zoom`, gr = `${G}-tools`, yr = `${G}-tones`, xr = `${G}-shapes`, Ki = `${G}-ann-zone`, Qe = Ie !== null ? Ne.find((e) => e.id === Ie) : void 0, Zi = M.zones.map((e) => ({
|
|
2023
2014
|
value: e.id,
|
|
2024
2015
|
label: f(`faceScheme.zone.${e.labelKey}`)
|
|
2025
2016
|
})), me = "ds:text-[length:var(--font-size-xs)] ds:font-medium ds:text-[var(--muted-foreground)]", vr = `${G}-zones`, wr = `${G}-zones-apply`, Oi = J ? /* @__PURE__ */ C(
|
|
@@ -2052,7 +2043,7 @@ const xo = {
|
|
|
2052
2043
|
className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)]",
|
|
2053
2044
|
children: Rr.map((e) => {
|
|
2054
2045
|
const t = Et[e], i = U.length > 0 && U.every(
|
|
2055
|
-
(s) => (
|
|
2046
|
+
(s) => (We[s] ?? []).some((u) => u.type === e)
|
|
2056
2047
|
);
|
|
2057
2048
|
return /* @__PURE__ */ a(
|
|
2058
2049
|
P,
|
|
@@ -2064,7 +2055,7 @@ const xo = {
|
|
|
2064
2055
|
startIcon: /* @__PURE__ */ a("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ a(
|
|
2065
2056
|
"path",
|
|
2066
2057
|
{
|
|
2067
|
-
d:
|
|
2058
|
+
d: et(t.shape, 12, 12, 9),
|
|
2068
2059
|
className: Oe[t.tone]
|
|
2069
2060
|
}
|
|
2070
2061
|
) }),
|
|
@@ -2103,14 +2094,14 @@ const xo = {
|
|
|
2103
2094
|
size: "sm",
|
|
2104
2095
|
intent: "outline",
|
|
2105
2096
|
className: "ds:self-start",
|
|
2106
|
-
onClick:
|
|
2097
|
+
onClick: He,
|
|
2107
2098
|
disabled: U.length === 0,
|
|
2108
2099
|
children: f("faceScheme.zonesPanel.clearSelection")
|
|
2109
2100
|
}
|
|
2110
2101
|
)
|
|
2111
2102
|
]
|
|
2112
2103
|
}
|
|
2113
|
-
) : null, Pi =
|
|
2104
|
+
) : null, Pi = Ge ? /* @__PURE__ */ C(
|
|
2114
2105
|
"div",
|
|
2115
2106
|
{
|
|
2116
2107
|
"data-testid": "face-scheme-toolbar",
|
|
@@ -2131,9 +2122,9 @@ const xo = {
|
|
|
2131
2122
|
className: "ds:self-start",
|
|
2132
2123
|
value: Fi,
|
|
2133
2124
|
onValueChange: (e) => rn(e === "select" ? null : e),
|
|
2134
|
-
children: ["select", ...
|
|
2125
|
+
children: ["select", ...eo].map(
|
|
2135
2126
|
(e) => {
|
|
2136
|
-
const t =
|
|
2127
|
+
const t = Co[e];
|
|
2137
2128
|
return /* @__PURE__ */ a(
|
|
2138
2129
|
Ke,
|
|
2139
2130
|
{
|
|
@@ -2172,7 +2163,7 @@ const xo = {
|
|
|
2172
2163
|
);
|
|
2173
2164
|
}
|
|
2174
2165
|
},
|
|
2175
|
-
children:
|
|
2166
|
+
children: So.map((e) => /* @__PURE__ */ a(
|
|
2176
2167
|
Ke,
|
|
2177
2168
|
{
|
|
2178
2169
|
value: e,
|
|
@@ -2211,7 +2202,7 @@ const xo = {
|
|
|
2211
2202
|
icon: /* @__PURE__ */ a("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ a(
|
|
2212
2203
|
"path",
|
|
2213
2204
|
{
|
|
2214
|
-
d:
|
|
2205
|
+
d: et(e, 12, 12, 9),
|
|
2215
2206
|
className: "ds:[fill:currentColor]"
|
|
2216
2207
|
}
|
|
2217
2208
|
) }),
|
|
@@ -2238,14 +2229,14 @@ const xo = {
|
|
|
2238
2229
|
),
|
|
2239
2230
|
/* @__PURE__ */ a(P, { size: "sm", intent: "primary", onClick: rr, children: f("faceScheme.annotate.textDone") })
|
|
2240
2231
|
] }),
|
|
2241
|
-
|
|
2232
|
+
Qe && /* @__PURE__ */ C("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
2242
2233
|
/* @__PURE__ */ a("span", { id: Ki, className: me, children: f("faceScheme.annotate.zoneLabel") }),
|
|
2243
2234
|
/* @__PURE__ */ a(
|
|
2244
2235
|
"span",
|
|
2245
2236
|
{
|
|
2246
2237
|
"aria-live": "polite",
|
|
2247
2238
|
className: "ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)] ds:empty:hidden",
|
|
2248
|
-
children:
|
|
2239
|
+
children: Qe.zoneId === null ? f("faceScheme.annotate.outsideZonesHint") : null
|
|
2249
2240
|
}
|
|
2250
2241
|
),
|
|
2251
2242
|
/* @__PURE__ */ a(
|
|
@@ -2253,11 +2244,11 @@ const xo = {
|
|
|
2253
2244
|
{
|
|
2254
2245
|
size: "sm",
|
|
2255
2246
|
options: Zi,
|
|
2256
|
-
value:
|
|
2247
|
+
value: Qe.zoneId ?? "",
|
|
2257
2248
|
clearable: !0,
|
|
2258
|
-
placeholder:
|
|
2249
|
+
placeholder: Qe.zoneId == null ? f("faceScheme.annotate.zoneNone") : f("faceScheme.annotate.zonePlaceholder"),
|
|
2259
2250
|
"aria-label": f("faceScheme.annotate.zoneLabel"),
|
|
2260
|
-
onValueChange: (e) => Jt(
|
|
2251
|
+
onValueChange: (e) => Jt(Qe.id, e === "" ? null : e)
|
|
2261
2252
|
}
|
|
2262
2253
|
)
|
|
2263
2254
|
] }),
|
|
@@ -2316,7 +2307,7 @@ const xo = {
|
|
|
2316
2307
|
return /* @__PURE__ */ a(
|
|
2317
2308
|
"path",
|
|
2318
2309
|
{
|
|
2319
|
-
d:
|
|
2310
|
+
d: et(e.shape, e.x, e.y, xo),
|
|
2320
2311
|
className: Oe[t],
|
|
2321
2312
|
pointerEvents: "none"
|
|
2322
2313
|
}
|
|
@@ -2328,16 +2319,16 @@ const xo = {
|
|
|
2328
2319
|
{
|
|
2329
2320
|
d: Hr(e.points),
|
|
2330
2321
|
fill: "none",
|
|
2331
|
-
strokeWidth: e.kind === "highlighter" ?
|
|
2322
|
+
strokeWidth: e.kind === "highlighter" ? wo : vo,
|
|
2332
2323
|
strokeOpacity: e.kind === "highlighter" ? 0.35 : 1,
|
|
2333
2324
|
strokeLinecap: "round",
|
|
2334
2325
|
strokeLinejoin: "round",
|
|
2335
|
-
className:
|
|
2326
|
+
className: _t[t],
|
|
2336
2327
|
pointerEvents: "none"
|
|
2337
2328
|
}
|
|
2338
2329
|
);
|
|
2339
2330
|
case "arrow":
|
|
2340
|
-
return /* @__PURE__ */ C("g", { className:
|
|
2331
|
+
return /* @__PURE__ */ C("g", { className: _t[t], pointerEvents: "none", children: [
|
|
2341
2332
|
/* @__PURE__ */ a(
|
|
2342
2333
|
"path",
|
|
2343
2334
|
{
|
|
@@ -2350,7 +2341,7 @@ const xo = {
|
|
|
2350
2341
|
/* @__PURE__ */ a(
|
|
2351
2342
|
"path",
|
|
2352
2343
|
{
|
|
2353
|
-
d:
|
|
2344
|
+
d: to(e.from, e.to, ko),
|
|
2354
2345
|
fill: "none",
|
|
2355
2346
|
strokeWidth: Rt,
|
|
2356
2347
|
strokeLinecap: "round",
|
|
@@ -2369,7 +2360,7 @@ const xo = {
|
|
|
2369
2360
|
strokeWidth: Rt,
|
|
2370
2361
|
strokeLinecap: "round",
|
|
2371
2362
|
strokeLinejoin: "round",
|
|
2372
|
-
className:
|
|
2363
|
+
className: _t[t],
|
|
2373
2364
|
pointerEvents: "none"
|
|
2374
2365
|
}
|
|
2375
2366
|
);
|
|
@@ -2393,13 +2384,13 @@ const xo = {
|
|
|
2393
2384
|
d: `M ${e.x - 10} ${e.y} H ${e.x + 10} M ${e.x} ${e.y - 10} V ${e.y + 10}`,
|
|
2394
2385
|
strokeWidth: Rt,
|
|
2395
2386
|
strokeLinecap: "round",
|
|
2396
|
-
className:
|
|
2387
|
+
className: _t[t],
|
|
2397
2388
|
pointerEvents: "none"
|
|
2398
2389
|
}
|
|
2399
2390
|
);
|
|
2400
2391
|
}
|
|
2401
2392
|
}, Bi = (e) => {
|
|
2402
|
-
const t =
|
|
2393
|
+
const t = so(e, Zr);
|
|
2403
2394
|
switch (t.type) {
|
|
2404
2395
|
case "stroke":
|
|
2405
2396
|
return /* @__PURE__ */ a(
|
|
@@ -2409,7 +2400,7 @@ const xo = {
|
|
|
2409
2400
|
d: t.d,
|
|
2410
2401
|
fill: "none",
|
|
2411
2402
|
stroke: "transparent",
|
|
2412
|
-
strokeWidth:
|
|
2403
|
+
strokeWidth: io,
|
|
2413
2404
|
strokeLinecap: "round",
|
|
2414
2405
|
strokeLinejoin: "round",
|
|
2415
2406
|
pointerEvents: "stroke",
|
|
@@ -2453,7 +2444,7 @@ const xo = {
|
|
|
2453
2444
|
Bn.current = kr;
|
|
2454
2445
|
const yn = ee ? ci ?? kr ?? M.viewBox : we || !Ce ? M.schematicViewBox : M.viewBox;
|
|
2455
2446
|
kt.current = yn;
|
|
2456
|
-
const br = he && xe.k > 1, ji = br ?
|
|
2447
|
+
const br = he && xe.k > 1, ji = br ? lo(it(Lt(yn), xe)) : yn, Cr = br && V === null, Sr = (e) => {
|
|
2457
2448
|
if (e !== A) {
|
|
2458
2449
|
const t = Sn[e], i = (o == null ? void 0 : o[e]) ?? (e === "front" ? r : void 0), s = Yn[e] ?? (i == null ? void 0 : i.src), u = vt[e] ?? Pe, x = t.mirror ? `translate(${B} 0) scale(-1 1) ${zt(u)}` : zt(u), Y = Ct[e] ?? Or;
|
|
2459
2450
|
return /* @__PURE__ */ a(Ze, { variant: "elevated", interactive: !0, asChild: !0, children: /* @__PURE__ */ a(
|
|
@@ -2489,7 +2480,7 @@ const xo = {
|
|
|
2489
2480
|
}
|
|
2490
2481
|
),
|
|
2491
2482
|
/* @__PURE__ */ a("g", { transform: x, children: t.zones.map((E) => {
|
|
2492
|
-
const Te =
|
|
2483
|
+
const Te = We[E.id] ?? [], Wi = Te.length > 0;
|
|
2493
2484
|
return /* @__PURE__ */ C("g", { children: [
|
|
2494
2485
|
/* @__PURE__ */ a(
|
|
2495
2486
|
"path",
|
|
@@ -2509,7 +2500,7 @@ const xo = {
|
|
|
2509
2500
|
return /* @__PURE__ */ a(
|
|
2510
2501
|
"path",
|
|
2511
2502
|
{
|
|
2512
|
-
d:
|
|
2503
|
+
d: et(
|
|
2513
2504
|
Nr.shape,
|
|
2514
2505
|
E.cx + Ui,
|
|
2515
2506
|
E.cy,
|
|
@@ -2549,7 +2540,7 @@ const xo = {
|
|
|
2549
2540
|
role: "group",
|
|
2550
2541
|
"aria-label": f(`faceScheme.view.${M.labelKey}`),
|
|
2551
2542
|
className: Cr ? "ds:block ds:h-auto ds:w-full ds:touch-none ds:cursor-grab" : "ds:block ds:h-auto ds:w-full ds:touch-none",
|
|
2552
|
-
onPointerDown:
|
|
2543
|
+
onPointerDown: L ? (t) => {
|
|
2553
2544
|
var s, u;
|
|
2554
2545
|
const i = t.target;
|
|
2555
2546
|
if (te.current !== null && !((s = i.closest) != null && s.call(i, "[data-annotation]")) && O(null), Cr && !((u = i.closest) != null && u.call(
|
|
@@ -2572,17 +2563,17 @@ const xo = {
|
|
|
2572
2563
|
if (!i || i.id !== t.pointerId) return;
|
|
2573
2564
|
const s = t.currentTarget.getBoundingClientRect();
|
|
2574
2565
|
if (s.width <= 0 || s.height <= 0) return;
|
|
2575
|
-
const u =
|
|
2566
|
+
const u = Lt(kt.current), x = it(u, Yt.current), Y = (t.clientX - i.x) * x.width / s.width, E = (t.clientY - i.y) * x.height / s.height;
|
|
2576
2567
|
ze.current = {
|
|
2577
2568
|
id: i.id,
|
|
2578
2569
|
x: t.clientX,
|
|
2579
2570
|
y: t.clientY
|
|
2580
|
-
}, Se((Te) =>
|
|
2571
|
+
}, Se((Te) => uo(u, Te, Y, E));
|
|
2581
2572
|
} : void 0,
|
|
2582
2573
|
onPointerUp: he ? Un : void 0,
|
|
2583
2574
|
onPointerCancel: he ? Un : void 0,
|
|
2584
2575
|
onKeyDown: J ? (t) => {
|
|
2585
|
-
t.key === "Escape" &&
|
|
2576
|
+
t.key === "Escape" && He();
|
|
2586
2577
|
} : void 0,
|
|
2587
2578
|
children: [
|
|
2588
2579
|
ee && /* @__PURE__ */ a(
|
|
@@ -2599,7 +2590,7 @@ const xo = {
|
|
|
2599
2590
|
}
|
|
2600
2591
|
),
|
|
2601
2592
|
/* @__PURE__ */ a("g", { transform: Ai, children: M.zones.map((t) => {
|
|
2602
|
-
const i =
|
|
2593
|
+
const i = We[t.id] ?? [], s = i.length > 0, u = J && $n.has(t.id);
|
|
2603
2594
|
return /* @__PURE__ */ C(Fe.Root, { children: [
|
|
2604
2595
|
/* @__PURE__ */ a(Fe.Trigger, { asChild: !0, children: /* @__PURE__ */ C(
|
|
2605
2596
|
"g",
|
|
@@ -2607,14 +2598,14 @@ const xo = {
|
|
|
2607
2598
|
"data-zone": t.id,
|
|
2608
2599
|
"data-side": t.side,
|
|
2609
2600
|
"data-zone-selected": u ? "true" : void 0,
|
|
2610
|
-
role:
|
|
2601
|
+
role: L || v ? "button" : "img",
|
|
2611
2602
|
"aria-label": or(t),
|
|
2612
|
-
"aria-pressed": J ? u :
|
|
2603
|
+
"aria-pressed": J ? u : L && k ? s : void 0,
|
|
2613
2604
|
className: "ds:outline-none ds:[&:focus-visible>*:first-child]:[stroke:var(--ring)] ds:[&:focus-visible>*:first-child]:[stroke-width:var(--focus-ring-width)] ds:[&:focus-visible>*:first-child]:[stroke-opacity:1] ds:forced-colors:[&:focus-visible>*:first-child]:[stroke:CanvasText]",
|
|
2614
|
-
tabIndex:
|
|
2605
|
+
tabIndex: L || v ? 0 : -1,
|
|
2615
2606
|
onClick: () => ar(t),
|
|
2616
2607
|
onKeyDown: (x) => {
|
|
2617
|
-
x.key === "Enter" || x.key === " " ? (x.preventDefault(), ar(t)) : x.key === "Escape" && J &&
|
|
2608
|
+
x.key === "Enter" || x.key === " " ? (x.preventDefault(), ar(t)) : x.key === "Escape" && J && He();
|
|
2618
2609
|
},
|
|
2619
2610
|
children: [
|
|
2620
2611
|
/* @__PURE__ */ a(
|
|
@@ -2622,7 +2613,7 @@ const xo = {
|
|
|
2622
2613
|
{
|
|
2623
2614
|
d: t.d,
|
|
2624
2615
|
className: Br({
|
|
2625
|
-
interactive:
|
|
2616
|
+
interactive: L,
|
|
2626
2617
|
marked: s,
|
|
2627
2618
|
selected: u
|
|
2628
2619
|
})
|
|
@@ -2633,7 +2624,7 @@ const xo = {
|
|
|
2633
2624
|
return /* @__PURE__ */ a(
|
|
2634
2625
|
"path",
|
|
2635
2626
|
{
|
|
2636
|
-
d:
|
|
2627
|
+
d: et(
|
|
2637
2628
|
E.shape,
|
|
2638
2629
|
t.cx + Te,
|
|
2639
2630
|
t.cy,
|
|
@@ -2663,7 +2654,7 @@ const xo = {
|
|
|
2663
2654
|
}) }),
|
|
2664
2655
|
/* @__PURE__ */ C("g", { "data-testid": "face-scheme-annotations", children: [
|
|
2665
2656
|
Ne.map((t) => {
|
|
2666
|
-
const i =
|
|
2657
|
+
const i = no(t), s = Ie === t.id;
|
|
2667
2658
|
return /* @__PURE__ */ C(
|
|
2668
2659
|
"g",
|
|
2669
2660
|
{
|
|
@@ -2671,16 +2662,16 @@ const xo = {
|
|
|
2671
2662
|
"data-annotation-kind": t.kind,
|
|
2672
2663
|
"data-annotation-zone": t.zoneId ?? void 0,
|
|
2673
2664
|
"data-selected": s ? "true" : void 0,
|
|
2674
|
-
role:
|
|
2665
|
+
role: L ? "button" : "img",
|
|
2675
2666
|
"aria-label": Di(t),
|
|
2676
|
-
"aria-pressed":
|
|
2677
|
-
tabIndex:
|
|
2667
|
+
"aria-pressed": L ? s : void 0,
|
|
2668
|
+
tabIndex: L ? 0 : -1,
|
|
2678
2669
|
className: "ds:outline-none ds:[&:focus-visible>*:first-child]:[stroke-opacity:1] ds:[&[data-selected=true]>*:first-child]:[stroke-opacity:1] ds:[&[data-selected=true]>*:first-child]:[stroke-dasharray:6_4] ds:forced-colors:[&:focus-visible>*:first-child]:[stroke:CanvasText] ds:forced-colors:[&[data-selected=true]>*:first-child]:[stroke:CanvasText]",
|
|
2679
|
-
onClick:
|
|
2670
|
+
onClick: L && V === null ? (u) => {
|
|
2680
2671
|
u.currentTarget.focus(), te.current === t.id ? t.kind === "text" ? It(t.id) : O(null) : O(t.id);
|
|
2681
2672
|
} : void 0,
|
|
2682
2673
|
onKeyDown: (u) => {
|
|
2683
|
-
|
|
2674
|
+
L && (u.key === "Delete" || u.key === "Backspace" ? (u.preventDefault(), St(t.id)) : u.key === "Escape" ? te.current !== null && (u.stopPropagation(), O(null)) : (u.key === "Enter" || u.key === " ") && (u.preventDefault(), t.kind === "text" ? It(t.id) : te.current === t.id ? O(null) : O(t.id)));
|
|
2684
2675
|
},
|
|
2685
2676
|
children: [
|
|
2686
2677
|
/* @__PURE__ */ a(
|
|
@@ -2697,7 +2688,7 @@ const xo = {
|
|
|
2697
2688
|
}
|
|
2698
2689
|
),
|
|
2699
2690
|
gn(t),
|
|
2700
|
-
|
|
2691
|
+
L && V === null && Bi(t)
|
|
2701
2692
|
]
|
|
2702
2693
|
},
|
|
2703
2694
|
t.id
|
|
@@ -2715,15 +2706,15 @@ const xo = {
|
|
|
2715
2706
|
height: se,
|
|
2716
2707
|
fill: "transparent",
|
|
2717
2708
|
"aria-hidden": "true",
|
|
2718
|
-
className:
|
|
2719
|
-
onPointerDown:
|
|
2720
|
-
onPointerMove:
|
|
2721
|
-
onPointerUp:
|
|
2722
|
-
onPointerCancel:
|
|
2709
|
+
className: Xe ? "ds:cursor-crosshair ds:touch-none" : "ds:[pointer-events:none]",
|
|
2710
|
+
onPointerDown: Xe ? ki : void 0,
|
|
2711
|
+
onPointerMove: Xe ? bi : void 0,
|
|
2712
|
+
onPointerUp: Xe ? nr : void 0,
|
|
2713
|
+
onPointerCancel: Xe ? nr : void 0
|
|
2723
2714
|
}
|
|
2724
2715
|
),
|
|
2725
2716
|
Ce && ee && V === null && /* @__PURE__ */ a("g", { "aria-hidden": "true", "data-testid": "face-scheme-handles", children: M.landmarks.map((t, i) => {
|
|
2726
|
-
const s = Vt[i] ?? ce(
|
|
2717
|
+
const s = Vt[i] ?? ce(nt(Q, t));
|
|
2727
2718
|
return /* @__PURE__ */ C("g", { children: [
|
|
2728
2719
|
/* @__PURE__ */ a(
|
|
2729
2720
|
"circle",
|
|
@@ -2764,9 +2755,9 @@ const xo = {
|
|
|
2764
2755
|
size: "sm",
|
|
2765
2756
|
intent: t ? "primary" : void 0,
|
|
2766
2757
|
"aria-pressed": t,
|
|
2767
|
-
startIcon:
|
|
2758
|
+
startIcon: bo[e],
|
|
2768
2759
|
onClick: () => {
|
|
2769
|
-
ft(e),
|
|
2760
|
+
ft(e), Ln("single");
|
|
2770
2761
|
},
|
|
2771
2762
|
children: f(`faceScheme.viewShort.${Sn[e].labelKey}`)
|
|
2772
2763
|
},
|
|
@@ -2781,8 +2772,8 @@ const xo = {
|
|
|
2781
2772
|
size: "sm",
|
|
2782
2773
|
intent: mt === "all" ? "primary" : void 0,
|
|
2783
2774
|
"aria-pressed": mt === "all",
|
|
2784
|
-
startIcon: /* @__PURE__ */ a(
|
|
2785
|
-
onClick: () =>
|
|
2775
|
+
startIcon: /* @__PURE__ */ a(Cs, { "aria-hidden": "true" }),
|
|
2776
|
+
onClick: () => Ln("all"),
|
|
2786
2777
|
children: f("faceScheme.viewShort.all")
|
|
2787
2778
|
},
|
|
2788
2779
|
"all"
|
|
@@ -2799,7 +2790,7 @@ const xo = {
|
|
|
2799
2790
|
startIcon: /* @__PURE__ */ a(gs, { "aria-hidden": "true" }),
|
|
2800
2791
|
"data-overflow-pin": !0,
|
|
2801
2792
|
onClick: () => void un(),
|
|
2802
|
-
disabled:
|
|
2793
|
+
disabled: Ue === "requesting",
|
|
2803
2794
|
children: f(
|
|
2804
2795
|
ee ? "faceScheme.capture.retake" : "faceScheme.capture.take"
|
|
2805
2796
|
)
|
|
@@ -2865,11 +2856,11 @@ const xo = {
|
|
|
2865
2856
|
{
|
|
2866
2857
|
role: "status",
|
|
2867
2858
|
"aria-live": "polite",
|
|
2868
|
-
className:
|
|
2869
|
-
children:
|
|
2859
|
+
className: Ue === "requesting" ? "ds:text-start ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)] ds:empty:hidden" : "ds:text-start ds:text-[length:var(--font-size-xs)] ds:text-[var(--destructive)] ds:empty:hidden",
|
|
2860
|
+
children: Ue === "requesting" ? f(
|
|
2870
2861
|
"faceScheme.capture.requesting",
|
|
2871
2862
|
"Waiting for camera permission…"
|
|
2872
|
-
) :
|
|
2863
|
+
) : Ue === "error" && Vn ? f(yo[Vn]) : ""
|
|
2873
2864
|
}
|
|
2874
2865
|
)
|
|
2875
2866
|
] }),
|
|
@@ -2911,7 +2902,7 @@ const xo = {
|
|
|
2911
2902
|
// matching aspects within them.
|
|
2912
2903
|
/* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-1 ds:items-center ds:gap-[var(--spacing-md)] ds:md:grid-cols-3", children: Dr.map((e) => /* @__PURE__ */ a("div", { className: "ds:min-w-0", children: Sr(e) }, e)) })
|
|
2913
2904
|
) : Sr(A)),
|
|
2914
|
-
In &&
|
|
2905
|
+
In && _n && /* @__PURE__ */ a(Ze, { variant: "elevated", "data-testid": "face-scheme-legend", children: /* @__PURE__ */ a(Ze.Body, { children: /* @__PURE__ */ a(
|
|
2915
2906
|
"ul",
|
|
2916
2907
|
{
|
|
2917
2908
|
"aria-label": f("faceScheme.legendLabel"),
|
|
@@ -2938,18 +2929,18 @@ const xo = {
|
|
|
2938
2929
|
}
|
|
2939
2930
|
) }) })
|
|
2940
2931
|
] }),
|
|
2941
|
-
dr && /* @__PURE__ */ a("div", { className:
|
|
2932
|
+
dr && /* @__PURE__ */ a("div", { className: Li, children: /* @__PURE__ */ a(
|
|
2942
2933
|
Ze,
|
|
2943
2934
|
{
|
|
2944
2935
|
variant: "elevated",
|
|
2945
2936
|
"data-testid": "face-scheme-panel",
|
|
2946
2937
|
id: zn,
|
|
2947
|
-
className:
|
|
2938
|
+
className: _i,
|
|
2948
2939
|
children: /* @__PURE__ */ C(Ze.Body, { className: Ri, children: [
|
|
2949
2940
|
Oi,
|
|
2950
|
-
J && (
|
|
2941
|
+
J && (Ge || Ce) && /* @__PURE__ */ a(Tt, {}),
|
|
2951
2942
|
Pi,
|
|
2952
|
-
|
|
2943
|
+
Ge && Ce && /* @__PURE__ */ a(Tt, {}),
|
|
2953
2944
|
Ce && /* @__PURE__ */ C(
|
|
2954
2945
|
"div",
|
|
2955
2946
|
{
|
|
@@ -2960,8 +2951,8 @@ const xo = {
|
|
|
2960
2951
|
children: [
|
|
2961
2952
|
/* @__PURE__ */ a("span", { id: mr, className: me, children: f("faceScheme.panel.fit") }),
|
|
2962
2953
|
/* @__PURE__ */ a("p", { className: "ds:m-0 ds:text-[length:var(--font-size-xs)] ds:text-[var(--muted-foreground)]", children: f("faceScheme.registration.hint") }),
|
|
2963
|
-
/* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-2", children:
|
|
2964
|
-
const t =
|
|
2954
|
+
/* @__PURE__ */ a("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-xs)] ds:sm:grid-cols-2", children: No.map((e) => {
|
|
2955
|
+
const t = Mo[e], i = e === "scaleX" || e === "scaleY";
|
|
2965
2956
|
return /* @__PURE__ */ C(
|
|
2966
2957
|
"div",
|
|
2967
2958
|
{
|
|
@@ -3025,7 +3016,7 @@ const xo = {
|
|
|
3025
3016
|
}
|
|
3026
3017
|
),
|
|
3027
3018
|
he && /* @__PURE__ */ C(Ir, { children: [
|
|
3028
|
-
(J ||
|
|
3019
|
+
(J || Ge || Ce) && /* @__PURE__ */ a(Tt, {}),
|
|
3029
3020
|
/* @__PURE__ */ C(
|
|
3030
3021
|
"div",
|
|
3031
3022
|
{
|
|
@@ -3092,7 +3083,7 @@ const xo = {
|
|
|
3092
3083
|
{
|
|
3093
3084
|
size: "sm",
|
|
3094
3085
|
label: f("faceScheme.showLegend"),
|
|
3095
|
-
checked:
|
|
3086
|
+
checked: _n,
|
|
3096
3087
|
onCheckedChange: ti
|
|
3097
3088
|
}
|
|
3098
3089
|
)
|
|
@@ -3105,31 +3096,31 @@ const xo = {
|
|
|
3105
3096
|
);
|
|
3106
3097
|
}
|
|
3107
3098
|
);
|
|
3108
|
-
|
|
3099
|
+
Io.displayName = "FaceScheme";
|
|
3109
3100
|
export {
|
|
3110
3101
|
ca as A,
|
|
3111
|
-
|
|
3102
|
+
eo as F,
|
|
3112
3103
|
Pe as I,
|
|
3113
3104
|
Et as a,
|
|
3114
3105
|
Rr as b,
|
|
3115
3106
|
Sn as c,
|
|
3116
|
-
|
|
3117
|
-
|
|
3107
|
+
Qs as d,
|
|
3108
|
+
Io as e,
|
|
3118
3109
|
zt as f,
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3110
|
+
ro as g,
|
|
3111
|
+
no as h,
|
|
3112
|
+
nt as i,
|
|
3113
|
+
to as j,
|
|
3114
|
+
fo as k,
|
|
3115
|
+
ho as l,
|
|
3116
|
+
Ps as m,
|
|
3117
|
+
_s as n,
|
|
3127
3118
|
Hr as o,
|
|
3128
|
-
|
|
3119
|
+
oo as p,
|
|
3129
3120
|
da as q,
|
|
3130
3121
|
ua as r,
|
|
3131
3122
|
la as s,
|
|
3132
3123
|
Nn as t,
|
|
3133
3124
|
Kr as u
|
|
3134
3125
|
};
|
|
3135
|
-
//# sourceMappingURL=face-scheme-
|
|
3126
|
+
//# sourceMappingURL=face-scheme-DRYGaszs.js.map
|