@alfadocs/ui-kit-debug 1.90.1 → 1.91.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-DR4Xn23Z.js +519 -0
- package/dist/_chunks/address-autocomplete-DR4Xn23Z.js.map +1 -0
- package/dist/_chunks/{address-fields-CfnXK8RT.js → address-fields-qxQkGwPf.js} +5 -5
- package/dist/_chunks/{address-fields-CfnXK8RT.js.map → address-fields-qxQkGwPf.js.map} +1 -1
- package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
- package/dist/_chunks/{agenda-card-BDuvreCe.js.map → agenda-card-BhY342MA.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
- package/dist/_chunks/{agenda-tray-D-jvptdo.js.map → agenda-tray-BmxBGEci.js.map} +1 -1
- package/dist/_chunks/{ai-permission-notice-CoW22jx1.js → ai-permission-notice-VNh3W57L.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-CoW22jx1.js.map → ai-permission-notice-VNh3W57L.js.map} +1 -1
- package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
- package/dist/_chunks/{alia-sidebar-CsTRAxC8.js.map → alia-sidebar-ovRX_oti.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js → anamnesis-summary-rows-EKPfVCmh.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-fbEQwcuW.js.map → anamnesis-summary-rows-EKPfVCmh.js.map} +1 -1
- package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
- package/dist/_chunks/{appointment-card-5JMWi9_f.js.map → appointment-card-Bstc1p7a.js.map} +1 -1
- package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
- package/dist/_chunks/{appointment-peek-39BwVMUf.js.map → appointment-peek-C0kKqnFk.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
- package/dist/_chunks/{appointment-timeline-1-Za2miy.js.map → appointment-timeline-rbt9AwHO.js.map} +1 -1
- package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
- package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js.map → appointment-tray-6zd8RLIL.js.map} +1 -1
- package/dist/_chunks/autocomplete-BXMcNoa3.js +562 -0
- package/dist/_chunks/autocomplete-BXMcNoa3.js.map +1 -0
- package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
- package/dist/_chunks/avatar-a6042Ox2.js.map +1 -0
- package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js → balance-badge-cell-BtJvre1-.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-C4FYwmrZ.js.map → balance-badge-cell-BtJvre1-.js.map} +1 -1
- package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
- package/dist/_chunks/booking-opt_h7Uc.js.map +1 -0
- package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
- package/dist/_chunks/{calendar-ClB-jWH1.js.map → calendar-CmiMS4FJ.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +11 -11
- package/dist/_chunks/{calendar-appointment-editor-dialog-C1v2MNE4.js.map → calendar-appointment-editor-dialog-sJKLoVJ2.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
- package/dist/_chunks/{care-plan-card-BYCPNDvA.js.map → care-plan-card-DD9rEWYN.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
- package/dist/_chunks/{care-plan-header-BzsAg6oY.js.map → care-plan-header-CXUJQt8Q.js.map} +1 -1
- package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
- package/dist/_chunks/{chat-message-CmFJdEre.js.map → chat-message-LRO_6Ee3.js.map} +1 -1
- package/dist/_chunks/{checkbox-BjDv-r3o.js → checkbox-a7Sh-dXb.js} +32 -31
- package/dist/_chunks/checkbox-a7Sh-dXb.js.map +1 -0
- package/dist/_chunks/{checkbox-group-Cw2H5qaq.js → checkbox-group-eGdv9fZc.js} +2 -2
- package/dist/_chunks/{checkbox-group-Cw2H5qaq.js.map → checkbox-group-eGdv9fZc.js.map} +1 -1
- package/dist/_chunks/{city-input-CJVGswxp.js → city-input-CA59CjnV.js} +2 -2
- package/dist/_chunks/{city-input-CJVGswxp.js.map → city-input-CA59CjnV.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
- package/dist/_chunks/{clinical-note-card-Caidqcwa.js.map → clinical-note-card-Cut2lNmu.js.map} +1 -1
- package/dist/_chunks/{combobox-CDPm_n0p.js → combobox-D-gpgEDy.js} +314 -294
- package/dist/_chunks/combobox-D-gpgEDy.js.map +1 -0
- package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
- package/dist/_chunks/{contact-card-Czu60UvU.js.map → contact-card-ClvEDM9e.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
- package/dist/_chunks/contact-profile-card-CX45mZA3.js.map +1 -0
- package/dist/_chunks/{country-select-DQ8q7ypA.js → country-select-BfmX9y5i.js} +2 -2
- package/dist/_chunks/{country-select-DQ8q7ypA.js.map → country-select-BfmX9y5i.js.map} +1 -1
- package/dist/_chunks/{data-table-B_IcS0Ke.js → data-table-CqQgoNsU.js} +2 -2
- package/dist/_chunks/{data-table-B_IcS0Ke.js.map → data-table-CqQgoNsU.js.map} +1 -1
- package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
- package/dist/_chunks/{dependent-selector-C4kOgO8b.js.map → dependent-selector-CyNi7M_f.js.map} +1 -1
- package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
- package/dist/_chunks/{entity-summary-BLxzSSXK.js.map → entity-summary-B_bOloqP.js.map} +1 -1
- package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
- package/dist/_chunks/error-page-B0fGNTRB.js.map +1 -0
- package/dist/_chunks/{face-scheme-BgJGFDTa.js → face-scheme-BKSE98bo.js} +2 -2
- package/dist/_chunks/{face-scheme-BgJGFDTa.js.map → face-scheme-BKSE98bo.js.map} +1 -1
- package/dist/_chunks/{file-manager-C9YOT-Dn.js → file-manager-BnI1ZWZu.js} +2 -2
- package/dist/_chunks/{file-manager-C9YOT-Dn.js.map → file-manager-BnI1ZWZu.js.map} +1 -1
- package/dist/_chunks/{header-settings-BVhjndtV.js → header-settings-BeA2fnol.js} +24 -23
- package/dist/_chunks/header-settings-BeA2fnol.js.map +1 -0
- package/dist/_chunks/{heatmap-HTz3Jvzy.js → heatmap-fCxwNz2o.js} +2 -2
- package/dist/_chunks/{heatmap-HTz3Jvzy.js.map → heatmap-fCxwNz2o.js.map} +1 -1
- package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
- package/dist/_chunks/languages-CGLX6Qpe.js.map +1 -0
- package/dist/_chunks/link-DtCfnLnF.js +332 -0
- package/dist/_chunks/link-DtCfnLnF.js.map +1 -0
- package/dist/_chunks/{link-cell-renderer-C0ynDik7.js → link-cell-renderer-BS3V4LA6.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-C0ynDik7.js.map → link-cell-renderer-BS3V4LA6.js.map} +1 -1
- package/dist/_chunks/{login-dev-card-DYwbL5sD.js → login-dev-card-BZBR58mu.js} +2 -2
- package/dist/_chunks/{login-dev-card-DYwbL5sD.js.map → login-dev-card-BZBR58mu.js.map} +1 -1
- package/dist/_chunks/{map-view-Bvi06RVh.js → map-view-UrNgxBy3.js} +260 -237
- package/dist/_chunks/map-view-UrNgxBy3.js.map +1 -0
- package/dist/_chunks/{index.modern-BeRXQVdc.js → maps-core-gate-DkNqGkm3.js} +360 -319
- package/dist/_chunks/maps-core-gate-DkNqGkm3.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js → marketplace-app-shell-CJQtx3sv.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-x_abo_ye.js.map → marketplace-app-shell-CJQtx3sv.js.map} +1 -1
- package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
- package/dist/_chunks/{message-card-CvCnCssc.js.map → message-card-B6SduXJv.js.map} +1 -1
- package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
- package/dist/_chunks/{message-tray-IJYvy6Cf.js.map → message-tray-Cllf-v0G.js.map} +1 -1
- package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
- package/dist/_chunks/{nav-grid-Oc4aCPrg.js.map → nav-grid-D2xVcHTO.js.map} +1 -1
- package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
- package/dist/_chunks/{note-attachment-DIlIQ7JF.js.map → note-attachment-cnj2JRrg.js.map} +1 -1
- package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
- package/dist/_chunks/{note-timeline-KzL52MmB.js.map → note-timeline-BrjHBQfx.js.map} +1 -1
- package/dist/_chunks/{notes-panel-CZO1qsD-.js → notes-panel-ib7I3aNf.js} +3 -3
- package/dist/_chunks/{notes-panel-CZO1qsD-.js.map → notes-panel-ib7I3aNf.js.map} +1 -1
- package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
- package/dist/_chunks/operator-hero-C_5B-8Qp.js.map +1 -0
- package/dist/_chunks/{patient-details-D0P5eog5.js → patient-details-BjcUpD9S.js} +3 -3
- package/dist/_chunks/{patient-details-D0P5eog5.js.map → patient-details-BjcUpD9S.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-R73dZJY6.js → patient-field-row-B0tdiaWi.js} +6 -6
- package/dist/_chunks/{patient-field-row-R73dZJY6.js.map → patient-field-row-B0tdiaWi.js.map} +1 -1
- package/dist/_chunks/patient-search-Ca9j5cWb.js +1306 -0
- package/dist/_chunks/patient-search-Ca9j5cWb.js.map +1 -0
- package/dist/_chunks/{patient-summary-card-6U74-ivO.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
- package/dist/_chunks/{patient-summary-card-6U74-ivO.js.map → patient-summary-card-Cvv6_Ugk.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
- package/dist/_chunks/{payment-request-card-MndSlVoK.js.map → payment-request-card-BfGauFY0.js.map} +1 -1
- package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js → periodontal-diagnosis-DD3hrg9X.js} +2 -2
- package/dist/_chunks/{periodontal-diagnosis-B9YmmVmM.js.map → periodontal-diagnosis-DD3hrg9X.js.map} +1 -1
- package/dist/_chunks/{permission-matrix-BoQjENGV.js → permission-matrix-BJ6sg3Zp.js} +3 -3
- package/dist/_chunks/{permission-matrix-BoQjENGV.js.map → permission-matrix-BJ6sg3Zp.js.map} +1 -1
- package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
- package/dist/_chunks/practice-profile-hero-ClzE-4CB.js.map +1 -0
- package/dist/_chunks/{practice-results-B61krlwu.js → practice-results-CQ_KvEXK.js} +517 -514
- package/dist/_chunks/practice-results-CQ_KvEXK.js.map +1 -0
- package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
- package/dist/_chunks/{product-hub-panel-Blag8t8f.js.map → product-hub-panel-bHi7lkVD.js.map} +1 -1
- package/dist/_chunks/{province-select-CPdTwEob.js → province-select-D64whw0m.js} +2 -2
- package/dist/_chunks/{province-select-CPdTwEob.js.map → province-select-D64whw0m.js.map} +1 -1
- package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
- package/dist/_chunks/public-footer-IoRWoAMz.js.map +1 -0
- package/dist/_chunks/{registration-form-DmP3YUfp.js → registration-form-CRm6DaB9.js} +2 -2
- package/dist/_chunks/{registration-form-DmP3YUfp.js.map → registration-form-CRm6DaB9.js.map} +1 -1
- package/dist/_chunks/{reviews-panel-UzQQLb-z.js → reviews-panel-B7InBORU.js} +42 -41
- package/dist/_chunks/reviews-panel-B7InBORU.js.map +1 -0
- package/dist/_chunks/{rich-text-editor-BZTyxQBd.js → rich-text-editor-BfEu57dk.js} +3 -3
- package/dist/_chunks/{rich-text-editor-BZTyxQBd.js.map → rich-text-editor-BfEu57dk.js.map} +1 -1
- package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
- package/dist/_chunks/{signature-request-DjY-X62H.js.map → signature-request-DvhyrRpn.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
- package/dist/_chunks/{signed-out-frame-G-3ATOdu.js.map → signed-out-frame-CgRXOUzi.js.map} +1 -1
- package/dist/_chunks/{slot-grid-Bb13H9Rl.js → slot-grid-B-IAFX3C.js} +183 -170
- package/dist/_chunks/slot-grid-B-IAFX3C.js.map +1 -0
- package/dist/_chunks/{task-editor-BOETWbjU.js → task-editor-CI1SKUNc.js} +2 -2
- package/dist/_chunks/{task-editor-BOETWbjU.js.map → task-editor-CI1SKUNc.js.map} +1 -1
- package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
- package/dist/_chunks/{timeline-wUuTDFY_.js.map → timeline-BcYHdP56.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
- package/dist/_chunks/{use-appointment-details-read-CWN-nJCZ.js.map → use-appointment-details-read-D8vDg0sg.js.map} +1 -1
- package/dist/_chunks/{voice-control-panel-BziKE-KK.js → voice-control-panel-BP0otrID.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BziKE-KK.js.map → voice-control-panel-BP0otrID.js.map} +1 -1
- package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js → workflow-webhook-action-B_nBJ_ht.js} +2 -2
- package/dist/_chunks/{workflow-webhook-action-DulCpCRz.js.map → workflow-webhook-action-B_nBJ_ht.js.map} +1 -1
- package/dist/agent-catalog.json +3 -3
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/maps-core-gate.d.ts +18 -0
- package/dist/components/_shared/maps-core-gate.d.ts.map +1 -0
- package/dist/components/_shared/social-brand-icons.d.ts +29 -0
- package/dist/components/_shared/social-brand-icons.d.ts.map +1 -0
- package/dist/components/address-autocomplete/address-autocomplete.d.ts.map +1 -1
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/autocomplete/autocomplete.agent.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +14 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +26 -0
- package/dist/components/booking/booking-types.d.ts.map +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/details-form.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/slot-load-state.d.ts +11 -0
- package/dist/components/booking/slot-load-state.d.ts.map +1 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/header-settings/header-settings.d.ts +2 -1
- package/dist/components/header-settings/header-settings.d.ts.map +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +10 -1
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/social-url.d.ts +71 -0
- package/dist/components/link/social-url.d.ts.map +1 -0
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts.map +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +6 -0
- package/dist/components/operator-hero/operator-hero.d.ts.map +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts.map +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/periodontal-diagnosis/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +8 -2
- package/dist/components/practice-results/practice-results.d.ts.map +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +13 -1
- package/dist/components/public-footer/public-footer.d.ts.map +1 -1
- package/dist/components/public-footer/socials.d.ts +6 -5
- package/dist/components/public-footer/socials.d.ts.map +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/reviews-panel/reviews-panel.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/slot-grid/slot-grid.d.ts +2 -0
- package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/host-compat.css +1 -10
- package/dist/i18n/config.d.ts.map +1 -1
- package/dist/i18n/config.js +224 -96
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +4 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +4 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +4 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +3 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +4 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +4 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +4 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +4 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +4 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +4 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +4 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +4 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +4 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +4 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +3 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +4 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +4 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +4 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +3 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +4 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +68 -68
- package/dist/locales/ar.json +4 -1
- package/dist/locales/de.json +4 -1
- package/dist/locales/el.json +4 -1
- package/dist/locales/en.json +3 -0
- package/dist/locales/es.json +4 -1
- package/dist/locales/fr.json +4 -1
- package/dist/locales/hi.json +4 -1
- package/dist/locales/it.json +4 -1
- package/dist/locales/ja.json +4 -1
- package/dist/locales/nl.json +4 -1
- package/dist/locales/pl.json +4 -1
- package/dist/locales/pt.json +4 -1
- package/dist/locales/ro.json +4 -1
- package/dist/locales/ru.json +4 -1
- package/dist/locales/sq.json +4 -1
- package/dist/locales/sv.json +4 -1
- package/dist/locales/tr.json +4 -1
- package/dist/locales/zh.json +4 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/error-page-english.d.ts +71 -0
- package/dist/patterns/error-page/error-page-english.d.ts.map +1 -0
- package/dist/patterns/error-page/error-page.d.ts.map +1 -1
- package/dist/patterns/error-page/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/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/workflow-webhook-action/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/address-autocomplete-bPR2mNBt.js +0 -498
- package/dist/_chunks/address-autocomplete-bPR2mNBt.js.map +0 -1
- package/dist/_chunks/autocomplete-CnB1mHGc.js +0 -539
- package/dist/_chunks/autocomplete-CnB1mHGc.js.map +0 -1
- package/dist/_chunks/avatar-BPiPL7ND.js.map +0 -1
- package/dist/_chunks/booking-C0FoW8Yx.js +0 -4336
- package/dist/_chunks/booking-C0FoW8Yx.js.map +0 -1
- package/dist/_chunks/checkbox-BjDv-r3o.js.map +0 -1
- package/dist/_chunks/combobox-CDPm_n0p.js.map +0 -1
- package/dist/_chunks/contact-profile-card-Da1vmJQI.js.map +0 -1
- package/dist/_chunks/error-page-Bhai-spN.js +0 -344
- package/dist/_chunks/error-page-Bhai-spN.js.map +0 -1
- package/dist/_chunks/header-settings-BVhjndtV.js.map +0 -1
- package/dist/_chunks/index.modern-BeRXQVdc.js.map +0 -1
- package/dist/_chunks/languages-CZqBaPwI.js.map +0 -1
- package/dist/_chunks/link-N5_YpLtm.js +0 -138
- package/dist/_chunks/link-N5_YpLtm.js.map +0 -1
- package/dist/_chunks/map-view-Bvi06RVh.js.map +0 -1
- package/dist/_chunks/operator-hero-6aAIQaFZ.js.map +0 -1
- package/dist/_chunks/patient-search-CCOUZABE.js +0 -1196
- package/dist/_chunks/patient-search-CCOUZABE.js.map +0 -1
- package/dist/_chunks/practice-profile-hero-qfrsFQI_.js.map +0 -1
- package/dist/_chunks/practice-results-B61krlwu.js.map +0 -1
- package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
- package/dist/_chunks/public-footer-CXOrdAaS.js.map +0 -1
- package/dist/_chunks/reviews-panel-UzQQLb-z.js.map +0 -1
- package/dist/_chunks/slot-grid-Bb13H9Rl.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import M, { useMemo as w, useContext as R, useEffect as
|
|
1
|
+
import * as Se from "react";
|
|
2
|
+
import M, { useMemo as w, useContext as R, useEffect as b, useLayoutEffect as V, forwardRef as B, useImperativeHandle as z, useState as I, useReducer as _e, useCallback as ue, useRef as j, Children as ge, createContext as Ge } from "react";
|
|
3
3
|
import { createPortal as oe } from "react-dom";
|
|
4
4
|
import { g as He } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
5
|
-
var re,
|
|
6
|
-
function
|
|
7
|
-
return
|
|
5
|
+
var re, Ee;
|
|
6
|
+
function Je() {
|
|
7
|
+
return Ee || (Ee = 1, re = function e(n, t) {
|
|
8
8
|
if (n === t) return !0;
|
|
9
9
|
if (n && t && typeof n == "object" && typeof t == "object") {
|
|
10
10
|
if (n.constructor !== t.constructor) return !1;
|
|
@@ -30,8 +30,8 @@ function Ge() {
|
|
|
30
30
|
return n !== n && t !== t;
|
|
31
31
|
}), re;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
34
|
-
const W = /* @__PURE__ */ He(
|
|
33
|
+
var Ve = Je();
|
|
34
|
+
const W = /* @__PURE__ */ He(Ve), $e = "1.8.3";
|
|
35
35
|
function N(e, n) {
|
|
36
36
|
var t = {};
|
|
37
37
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
@@ -67,43 +67,43 @@ function Oe(e, n, t, o) {
|
|
|
67
67
|
c((o = o.apply(e, [])).next());
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function qe(e, n) {
|
|
71
71
|
e.src = n;
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const Ze = (e) => {
|
|
74
74
|
var n, t, o, r = "The Google Maps JavaScript API", i = "google", a = "importLibrary", s = "__ib__", g = document, c = window, l = c[i] || (c[i] = {}), h = l.maps || (l.maps = {}), f = /* @__PURE__ */ new Set(), u = new URLSearchParams(), p = () => n || (n = new Promise(async (y, d) => {
|
|
75
75
|
var m;
|
|
76
76
|
await (t = g.createElement("script")), u.set("libraries", [...f] + "");
|
|
77
77
|
for (o in e)
|
|
78
78
|
u.set(o.replace(/[A-Z]/g, (C) => "_" + C[0].toLowerCase()), e[o]);
|
|
79
|
-
u.set("callback", i + ".maps." + s),
|
|
79
|
+
u.set("callback", i + ".maps." + s), qe(t, "https://maps.googleapis.com/maps/api/js?" + u), h[s] = y, t.onerror = () => n = d(Error(r + " could not load.")), t.nonce = ((m = g.querySelector("script[nonce]")) == null ? void 0 : m.nonce) || "", g.head.append(t);
|
|
80
80
|
}));
|
|
81
81
|
h[a] ? console.warn(r + " only loads once. Ignoring:", e) : h[a] = (y, ...d) => f.add(y) && p().then(() => h[a](y, ...d));
|
|
82
|
-
},
|
|
82
|
+
}, We = (e) => `The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`, Ke = (e) => `The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`, Ye = "No options were set before calling importLibrary. Make sure to configure the loader using setOptions().", Xe = "There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.", Ie = process.env.NODE_ENV !== "production", fe = Ie ? (e) => {
|
|
83
83
|
console.warn(`[@googlemaps/js-api-loader] ${e}`);
|
|
84
84
|
} : () => {
|
|
85
|
-
},
|
|
85
|
+
}, Qe = Ie ? (e) => {
|
|
86
86
|
console.info(`[@googlemaps/js-api-loader] ${e}`);
|
|
87
87
|
} : () => {
|
|
88
|
-
},
|
|
88
|
+
}, en = process.env.NODE_ENV !== "production";
|
|
89
89
|
let ae = !1;
|
|
90
|
-
function
|
|
90
|
+
function nn(e) {
|
|
91
91
|
if (ae) {
|
|
92
|
-
fe(
|
|
92
|
+
fe(We(e));
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
on(e), ae = !0;
|
|
96
96
|
}
|
|
97
|
-
async function
|
|
97
|
+
async function tn(e) {
|
|
98
98
|
var n, t;
|
|
99
|
-
if (ae || fe(
|
|
99
|
+
if (ae || fe(Ye), !((t = (n = window == null ? void 0 : window.google) == null ? void 0 : n.maps) != null && t.importLibrary))
|
|
100
100
|
throw new Error("google.maps.importLibrary is not installed.");
|
|
101
101
|
return await google.maps.importLibrary(e);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function on(e) {
|
|
104
104
|
var t, o;
|
|
105
105
|
const n = !!((o = (t = window.google) == null ? void 0 : t.maps) != null && o.importLibrary);
|
|
106
|
-
n ?
|
|
106
|
+
n ? Qe(Ke(e)) : en && document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]') && fe(Xe), n || Ze(e);
|
|
107
107
|
}
|
|
108
108
|
const x = {
|
|
109
109
|
NOT_LOADED: "NOT_LOADED",
|
|
@@ -111,15 +111,15 @@ const x = {
|
|
|
111
111
|
LOADED: "LOADED",
|
|
112
112
|
FAILED: "FAILED",
|
|
113
113
|
AUTH_FAILURE: "AUTH_FAILURE"
|
|
114
|
-
},
|
|
115
|
-
`gmp_visgl_reactgooglemaps_v${
|
|
114
|
+
}, rn = "GMP_visgl_rgmlibrary_v1_default", an = [
|
|
115
|
+
`gmp_visgl_reactgooglemaps_v${$e}`
|
|
116
116
|
], $ = M.createContext(null);
|
|
117
117
|
let F = x.NOT_LOADED, Q;
|
|
118
118
|
const se = /* @__PURE__ */ new Set();
|
|
119
119
|
function ee(e) {
|
|
120
120
|
e !== F && (F = e, se.forEach((n) => n(F)));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function sn() {
|
|
123
123
|
const [e, n] = I({});
|
|
124
124
|
return { mapInstances: e, addMapInstance: (i, a = "default") => {
|
|
125
125
|
n((s) => Object.assign(Object.assign({}, s), { [a]: i }));
|
|
@@ -134,7 +134,7 @@ function an() {
|
|
|
134
134
|
n({});
|
|
135
135
|
} };
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function ln() {
|
|
138
138
|
const [e, n] = I({});
|
|
139
139
|
return {
|
|
140
140
|
map3dInstances: e,
|
|
@@ -154,8 +154,8 @@ function sn() {
|
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
const { onLoad: n, onError: t, apiKey: o, version: r, libraries: i = [], region: a, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: h } = e, [f, u] = I(F), [p, y] =
|
|
157
|
+
function cn(e) {
|
|
158
|
+
const { onLoad: n, onError: t, apiKey: o, version: r, libraries: i = [], region: a, language: s, authReferrerPolicy: g, channel: c, solutionChannel: l, fetchAppCheckToken: h } = e, [f, u] = I(F), [p, y] = _e((C, E) => C[E.name] ? C : Object.assign(Object.assign({}, C), { [E.name]: E.value }), {}), d = w(() => {
|
|
159
159
|
const C = {
|
|
160
160
|
apiKey: o,
|
|
161
161
|
version: r,
|
|
@@ -179,19 +179,19 @@ function ln(e) {
|
|
|
179
179
|
]), m = ue((C) => Oe(this, void 0, void 0, function* () {
|
|
180
180
|
if (p[C])
|
|
181
181
|
return p[C];
|
|
182
|
-
const
|
|
183
|
-
return y({ name: C, value:
|
|
182
|
+
const E = yield tn(C);
|
|
183
|
+
return y({ name: C, value: E }), E;
|
|
184
184
|
}), [p]);
|
|
185
|
-
return
|
|
185
|
+
return b(() => (se.add(u), u(F), () => {
|
|
186
186
|
se.delete(u);
|
|
187
|
-
}), []),
|
|
187
|
+
}), []), b(
|
|
188
188
|
() => {
|
|
189
189
|
Oe(this, void 0, void 0, function* () {
|
|
190
|
-
var C,
|
|
190
|
+
var C, E;
|
|
191
191
|
try {
|
|
192
192
|
Q && Q !== d && console.warn("The Google Maps JavaScript API has already been loaded with different parameters. The new parameters will be ignored. If you need to use different parameters, please refresh the page.");
|
|
193
193
|
const P = ["core", "maps", ...i];
|
|
194
|
-
if (!((
|
|
194
|
+
if (!((E = (C = window.google) === null || C === void 0 ? void 0 : C.maps) === null || E === void 0) && E.importLibrary) {
|
|
195
195
|
Q || ee(x.LOADED), yield Promise.all(P.map((v) => m(v))), n && n();
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
@@ -208,7 +208,7 @@ function ln(e) {
|
|
|
208
208
|
language: s,
|
|
209
209
|
authReferrerPolicy: g
|
|
210
210
|
}).filter(([, v]) => v !== void 0));
|
|
211
|
-
c !== void 0 && c >= 0 && c <= 999 && (A.channel = String(c)), l === void 0 ? A.solutionChannel =
|
|
211
|
+
c !== void 0 && c >= 0 && c <= 999 && (A.channel = String(c)), l === void 0 ? A.solutionChannel = rn : l !== "" && (A.solutionChannel = l), nn(A), yield Promise.all(P.map((v) => m(v))), ee(x.LOADED), n && n();
|
|
212
212
|
} catch (P) {
|
|
213
213
|
ee(x.FAILED), t ? t(P) : console.error("The Google Maps JavaScript API failed to load.", P);
|
|
214
214
|
}
|
|
@@ -216,7 +216,7 @@ function ln(e) {
|
|
|
216
216
|
},
|
|
217
217
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
218
218
|
[d, n, t, m, i]
|
|
219
|
-
),
|
|
219
|
+
), b(() => {
|
|
220
220
|
if (f !== x.LOADED)
|
|
221
221
|
return;
|
|
222
222
|
const C = google.maps.Settings.getInstance();
|
|
@@ -227,11 +227,11 @@ function ln(e) {
|
|
|
227
227
|
importLibrary: m
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
return w(() => e.disableUsageAttribution ? null :
|
|
230
|
+
function dn(e) {
|
|
231
|
+
return w(() => e.disableUsageAttribution ? null : an, [e.disableUsageAttribution]);
|
|
232
232
|
}
|
|
233
|
-
const
|
|
234
|
-
const { children: n } = e, t = N(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: i, clearMapInstances: a } =
|
|
233
|
+
const wt = (e) => {
|
|
234
|
+
const { children: n } = e, t = N(e, ["children"]), { mapInstances: o, addMapInstance: r, removeMapInstance: i, clearMapInstances: a } = sn(), { map3dInstances: s, addMap3DInstance: g, removeMap3DInstance: c, clearMap3DInstances: l } = ln(), { status: h, loadedLibraries: f, importLibrary: u } = cn(t), p = dn(t), y = w(() => ({
|
|
235
235
|
mapInstances: o,
|
|
236
236
|
addMapInstance: r,
|
|
237
237
|
removeMapInstance: i,
|
|
@@ -260,20 +260,20 @@ const _t = (e) => {
|
|
|
260
260
|
]);
|
|
261
261
|
return M.createElement($.Provider, { value: y }, n);
|
|
262
262
|
};
|
|
263
|
-
function
|
|
264
|
-
for (const t of
|
|
265
|
-
const o = n[t], r =
|
|
266
|
-
|
|
263
|
+
function un(e, n) {
|
|
264
|
+
for (const t of mn) {
|
|
265
|
+
const o = n[t], r = we[t];
|
|
266
|
+
b(() => {
|
|
267
267
|
if (!e || !o)
|
|
268
268
|
return;
|
|
269
269
|
const i = google.maps.event.addListener(e, r, (a) => {
|
|
270
|
-
o(
|
|
270
|
+
o(gn(r, e, a));
|
|
271
271
|
});
|
|
272
272
|
return () => i.remove();
|
|
273
273
|
}, [e, r, o]);
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function gn(e, n, t) {
|
|
277
277
|
var o;
|
|
278
278
|
const r = {
|
|
279
279
|
type: e,
|
|
@@ -283,7 +283,7 @@ function un(e, n, t) {
|
|
|
283
283
|
stop: () => {
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
if (
|
|
286
|
+
if (fn.includes(e)) {
|
|
287
287
|
const i = r, a = n.getCenter(), s = n.getZoom(), g = n.getHeading() || 0, c = n.getTilt() || 0, l = n.getBounds();
|
|
288
288
|
return (!a || !l || !Number.isFinite(s)) && console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), i.detail = {
|
|
289
289
|
center: (a == null ? void 0 : a.toJSON()) || { lat: 0, lng: 0 },
|
|
@@ -297,7 +297,7 @@ function un(e, n, t) {
|
|
|
297
297
|
west: -180
|
|
298
298
|
}
|
|
299
299
|
}, i;
|
|
300
|
-
} else if (
|
|
300
|
+
} else if (hn.includes(e)) {
|
|
301
301
|
if (!t)
|
|
302
302
|
throw new Error("[createEvent] mouse events must provide a srcEvent");
|
|
303
303
|
const i = r;
|
|
@@ -308,7 +308,7 @@ function un(e, n, t) {
|
|
|
308
308
|
}
|
|
309
309
|
return r;
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const we = {
|
|
312
312
|
onBoundsChanged: "bounds_changed",
|
|
313
313
|
onCenterChanged: "center_changed",
|
|
314
314
|
onClick: "click",
|
|
@@ -334,31 +334,31 @@ const Ie = {
|
|
|
334
334
|
// since that is going to be fired in every situation where the camera is
|
|
335
335
|
// updated.
|
|
336
336
|
onCameraChanged: "bounds_changed"
|
|
337
|
-
},
|
|
337
|
+
}, fn = [
|
|
338
338
|
"bounds_changed",
|
|
339
339
|
"center_changed",
|
|
340
340
|
"heading_changed",
|
|
341
341
|
"tilt_changed",
|
|
342
342
|
"zoom_changed"
|
|
343
|
-
],
|
|
343
|
+
], hn = [
|
|
344
344
|
"click",
|
|
345
345
|
"contextmenu",
|
|
346
346
|
"dblclick",
|
|
347
347
|
"mousemove",
|
|
348
348
|
"mouseout",
|
|
349
349
|
"mouseover"
|
|
350
|
-
],
|
|
350
|
+
], mn = Object.keys(we);
|
|
351
351
|
function K(e, n) {
|
|
352
352
|
const t = j(e);
|
|
353
353
|
return n(e, t.current) || (t.current = e), t.current;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
|
|
355
|
+
function pn(e, n, t) {
|
|
356
|
+
b(e, [K(n, t)]);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
|
|
358
|
+
function Te(e, n) {
|
|
359
|
+
pn(e, n, W);
|
|
360
360
|
}
|
|
361
|
-
const
|
|
361
|
+
const vn = /* @__PURE__ */ new Set([
|
|
362
362
|
"backgroundColor",
|
|
363
363
|
"clickableIcons",
|
|
364
364
|
"controlSize",
|
|
@@ -395,19 +395,19 @@ const pn = /* @__PURE__ */ new Set([
|
|
|
395
395
|
"zoomControl",
|
|
396
396
|
"zoomControlOptions"
|
|
397
397
|
]);
|
|
398
|
-
function
|
|
398
|
+
function yn(e, n) {
|
|
399
399
|
const t = {}, o = Object.keys(n);
|
|
400
400
|
for (const r of o)
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
vn.has(r) && (t[r] = n[r]);
|
|
402
|
+
Te(() => {
|
|
403
403
|
e && e.setOptions(t);
|
|
404
404
|
}, [t]);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Ne() {
|
|
407
407
|
var e;
|
|
408
408
|
return ((e = R($)) === null || e === void 0 ? void 0 : e.status) || x.NOT_LOADED;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Cn(e, n) {
|
|
411
411
|
const { viewport: t, viewState: o } = n, r = !!t;
|
|
412
412
|
return V(() => {
|
|
413
413
|
if (!e || !o)
|
|
@@ -421,17 +421,17 @@ function yn(e, n) {
|
|
|
421
421
|
});
|
|
422
422
|
}, [e, o]), r;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function bn(e) {
|
|
425
425
|
return !e || typeof e != "object" || !("lat" in e && "lng" in e) ? !1 : Number.isFinite(e.lat) && Number.isFinite(e.lng);
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function xe(e, n) {
|
|
428
428
|
if (!e || !n)
|
|
429
429
|
return !1;
|
|
430
430
|
const t = te(e), o = te(n);
|
|
431
431
|
return !(t.lat !== o.lat || t.lng !== o.lng);
|
|
432
432
|
}
|
|
433
433
|
function te(e) {
|
|
434
|
-
return
|
|
434
|
+
return bn(e) ? e : e.toJSON();
|
|
435
435
|
}
|
|
436
436
|
function Me(e) {
|
|
437
437
|
if ("north" in e && "south" in e && "east" in e && "west" in e)
|
|
@@ -450,29 +450,29 @@ function En(e, n) {
|
|
|
450
450
|
const t = Me(e), o = Me(n);
|
|
451
451
|
return t.north === o.north && t.south === o.south && t.east === o.east && t.west === o.west;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Re(e, n) {
|
|
454
454
|
if (!e || !n)
|
|
455
455
|
return e === n;
|
|
456
456
|
const t = "getArray" in n ? n.getArray() : n;
|
|
457
457
|
if (e.length !== t.length)
|
|
458
458
|
return !1;
|
|
459
459
|
for (let o = 0; o < e.length; o++)
|
|
460
|
-
if (!
|
|
460
|
+
if (!xe(e[o], t[o]))
|
|
461
461
|
return !1;
|
|
462
462
|
return !0;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function On(e, n) {
|
|
465
465
|
if (!e || !n)
|
|
466
466
|
return e === n;
|
|
467
467
|
const t = "getArray" in n ? n.getArray().map((o) => o.getArray()) : n;
|
|
468
468
|
if (e.length !== t.length)
|
|
469
469
|
return !1;
|
|
470
470
|
for (let o = 0; o < e.length; o++)
|
|
471
|
-
if (!
|
|
471
|
+
if (!Re(e[o], t[o]))
|
|
472
472
|
return !1;
|
|
473
473
|
return !0;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Mn(e, n, t) {
|
|
476
476
|
const o = t.center ? te(t.center) : null;
|
|
477
477
|
let r = null, i = null;
|
|
478
478
|
o && Number.isFinite(o.lat) && Number.isFinite(o.lng) && (r = o.lat, i = o.lng);
|
|
@@ -485,7 +485,7 @@ function On(e, n, t) {
|
|
|
485
485
|
r !== null && i !== null && (n.current.center.lat !== r || n.current.center.lng !== i) && (c.center = { lat: r, lng: i }, l = !0), a !== null && n.current.zoom !== a && (c.zoom = a, l = !0), s !== null && n.current.heading !== s && (c.heading = s, l = !0), g !== null && n.current.tilt !== g && (c.tilt = g, l = !0), l && e.moveCamera(c);
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
const
|
|
488
|
+
const Pn = () => {
|
|
489
489
|
const e = {
|
|
490
490
|
position: "absolute",
|
|
491
491
|
top: 0,
|
|
@@ -519,14 +519,14 @@ function le() {
|
|
|
519
519
|
const [e, n] = I(null), t = ue((o) => n(o), [n]);
|
|
520
520
|
return [e, t];
|
|
521
521
|
}
|
|
522
|
-
function Re() {
|
|
523
|
-
return Te() === x.LOADED;
|
|
524
|
-
}
|
|
525
522
|
function je() {
|
|
526
|
-
|
|
523
|
+
return Ne() === x.LOADED;
|
|
524
|
+
}
|
|
525
|
+
function Be() {
|
|
526
|
+
const [, e] = _e((n) => n + 1, 0);
|
|
527
527
|
return e;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function An(e, n) {
|
|
530
530
|
const t = e.getCenter(), o = e.getZoom(), r = e.getHeading() || 0, i = e.getTilt() || 0, a = e.getBounds();
|
|
531
531
|
(!t || !a || !Number.isFinite(o)) && console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"), Object.assign(n.current, {
|
|
532
532
|
center: (t == null ? void 0 : t.toJSON()) || { lat: 0, lng: 0 },
|
|
@@ -535,18 +535,18 @@ function Pn(e, n) {
|
|
|
535
535
|
tilt: i
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
const n =
|
|
538
|
+
function Ln(e) {
|
|
539
|
+
const n = Be(), t = j({
|
|
540
540
|
center: { lat: 0, lng: 0 },
|
|
541
541
|
heading: 0,
|
|
542
542
|
tilt: 0,
|
|
543
543
|
zoom: 0
|
|
544
544
|
});
|
|
545
|
-
return
|
|
545
|
+
return b(() => {
|
|
546
546
|
if (!e)
|
|
547
547
|
return;
|
|
548
548
|
const o = google.maps.event.addListener(e, "bounds_changed", () => {
|
|
549
|
-
|
|
549
|
+
An(e, t), n();
|
|
550
550
|
});
|
|
551
551
|
return () => o.remove();
|
|
552
552
|
}, [e, n]), t;
|
|
@@ -564,8 +564,8 @@ class ne {
|
|
|
564
564
|
}
|
|
565
565
|
ne.entries = {};
|
|
566
566
|
function kn(e, n) {
|
|
567
|
-
const t =
|
|
568
|
-
!c && (!C || !
|
|
567
|
+
const t = je(), [o, r] = I(null), [i, a] = le(), s = Ln(o), { id: g, defaultBounds: c, defaultCenter: l, defaultZoom: h, defaultHeading: f, defaultTilt: u, reuseMaps: p, renderingType: y, colorScheme: d } = e, m = N(e, ["id", "defaultBounds", "defaultCenter", "defaultZoom", "defaultHeading", "defaultTilt", "reuseMaps", "renderingType", "colorScheme"]), C = e.zoom !== void 0 || e.defaultZoom !== void 0, E = e.center !== void 0 || e.defaultCenter !== void 0;
|
|
568
|
+
!c && (!C || !E) && console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"), !m.center && l && (m.center = l), !m.zoom && Number.isFinite(h) && (m.zoom = h), !m.heading && Number.isFinite(f) && (m.heading = f), !m.tilt && Number.isFinite(u) && (m.tilt = u);
|
|
569
569
|
const P = m.internalUsageAttributionIds;
|
|
570
570
|
P == null ? m.internalUsageAttributionIds = n.internalUsageAttributionIds : m.internalUsageAttributionIds = [
|
|
571
571
|
...n.internalUsageAttributionIds || [],
|
|
@@ -574,26 +574,26 @@ function kn(e, n) {
|
|
|
574
574
|
for (const v of Object.keys(m))
|
|
575
575
|
m[v] === void 0 && delete m[v];
|
|
576
576
|
const A = j(void 0);
|
|
577
|
-
return
|
|
577
|
+
return b(
|
|
578
578
|
() => {
|
|
579
579
|
if (!i || !t)
|
|
580
580
|
return;
|
|
581
|
-
const { addMapInstance: v, removeMapInstance: O } = n, { mapId:
|
|
582
|
-
let
|
|
583
|
-
if (p && ne.has(S) ? (T = ne.pop(S),
|
|
581
|
+
const { addMapInstance: v, removeMapInstance: O } = n, { mapId: k } = e, S = `${k || "default"}:${y || "default"}:${d || "LIGHT"}`;
|
|
582
|
+
let L, T;
|
|
583
|
+
if (p && ne.has(S) ? (T = ne.pop(S), L = T.getDiv(), i.appendChild(L), T.setOptions(m), setTimeout(() => T.moveCamera({}), 0)) : (L = document.createElement("div"), L.style.height = "100%", i.appendChild(L), T = new google.maps.Map(L, Object.assign(Object.assign(Object.assign({}, m), y ? { renderingType: y } : {}), d ? { colorScheme: d } : {}))), r(T), v(T, g), c) {
|
|
584
584
|
const { padding: Y } = c, X = N(c, ["padding"]);
|
|
585
585
|
T.fitBounds(X, Y);
|
|
586
|
-
} else (!C || !
|
|
586
|
+
} else (!C || !E) && T.fitBounds({ east: 180, west: -180, south: -90, north: 90 });
|
|
587
587
|
if (A.current) {
|
|
588
588
|
const { mapId: Y, cameraState: X } = A.current;
|
|
589
|
-
Y !==
|
|
589
|
+
Y !== k && T.moveCamera(X);
|
|
590
590
|
}
|
|
591
591
|
return () => {
|
|
592
592
|
A.current = {
|
|
593
|
-
mapId:
|
|
593
|
+
mapId: k,
|
|
594
594
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
595
595
|
cameraState: s.current
|
|
596
|
-
},
|
|
596
|
+
}, L.remove(), p ? ne.push(S, T) : google.maps.event.clearInstanceListeners(T), r(null), O(g);
|
|
597
597
|
};
|
|
598
598
|
},
|
|
599
599
|
// some dependencies are ignored in the list below:
|
|
@@ -613,14 +613,14 @@ function kn(e, n) {
|
|
|
613
613
|
]
|
|
614
614
|
), [o, a, s];
|
|
615
615
|
}
|
|
616
|
-
const
|
|
617
|
-
const { children: n, id: t, className: o, style: r } = e, i = R($), a =
|
|
616
|
+
const Fe = M.createContext(null), Dn = (e) => {
|
|
617
|
+
const { children: n, id: t, className: o, style: r } = e, i = R($), a = Ne();
|
|
618
618
|
if (!i)
|
|
619
619
|
throw new Error("<Map> can only be used inside an <ApiProvider> component.");
|
|
620
620
|
const [s, g, c] = kn(e, i);
|
|
621
|
-
|
|
622
|
-
const l =
|
|
623
|
-
|
|
621
|
+
Mn(s, c, e), un(s, e), yn(s, e);
|
|
622
|
+
const l = Cn(s, e), h = !!e.controlled;
|
|
623
|
+
b(() => {
|
|
624
624
|
if (s)
|
|
625
625
|
return l && s.setOptions({ disableDefaultUI: !0 }), (l || h) && s.setOptions({
|
|
626
626
|
gestureHandling: "none",
|
|
@@ -642,11 +642,11 @@ const Be = M.createContext(null), Dn = (e) => {
|
|
|
642
642
|
let u = null, p = null;
|
|
643
643
|
f && Number.isFinite(f.lat) && Number.isFinite(f.lng) && (u = f.lat, p = f.lng);
|
|
644
644
|
const y = w(() => {
|
|
645
|
-
var C,
|
|
645
|
+
var C, E, P;
|
|
646
646
|
return {
|
|
647
647
|
center: { lat: u ?? 0, lng: p ?? 0 },
|
|
648
648
|
zoom: (C = e.zoom) !== null && C !== void 0 ? C : 0,
|
|
649
|
-
heading: (
|
|
649
|
+
heading: (E = e.heading) !== null && E !== void 0 ? E : 0,
|
|
650
650
|
tilt: (P = e.tilt) !== null && P !== void 0 ? P : 0
|
|
651
651
|
};
|
|
652
652
|
}, [u, p, e.zoom, e.heading, e.tilt]);
|
|
@@ -669,8 +669,8 @@ const Be = M.createContext(null), Dn = (e) => {
|
|
|
669
669
|
return a === x.AUTH_FAILURE ? M.createElement(
|
|
670
670
|
"div",
|
|
671
671
|
{ style: Object.assign({ position: "relative" }, o ? {} : d), className: o },
|
|
672
|
-
M.createElement(
|
|
673
|
-
) : M.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? M.createElement(
|
|
672
|
+
M.createElement(Pn, null)
|
|
673
|
+
) : M.createElement("div", Object.assign({ ref: g, "data-testid": "map", style: o ? void 0 : d, className: o }, t ? { id: t } : {}), s ? M.createElement(Fe.Provider, { value: m }, n) : null);
|
|
674
674
|
};
|
|
675
675
|
Dn.deckGLViewProps = !0;
|
|
676
676
|
const Pe = /* @__PURE__ */ new Set();
|
|
@@ -679,34 +679,34 @@ function Z(...e) {
|
|
|
679
679
|
Pe.has(n) || (Pe.add(n), console.error(...e));
|
|
680
680
|
}
|
|
681
681
|
const q = (e = null) => {
|
|
682
|
-
const n = R($), { map: t } = R(
|
|
682
|
+
const n = R($), { map: t } = R(Fe) || {};
|
|
683
683
|
if (n === null)
|
|
684
684
|
return Z("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."), null;
|
|
685
685
|
const { mapInstances: o } = n;
|
|
686
686
|
return e !== null ? o[e] || null : t || o.default || null;
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
const n =
|
|
690
|
-
return
|
|
688
|
+
function G(e) {
|
|
689
|
+
const n = je(), t = R($);
|
|
690
|
+
return b(() => {
|
|
691
691
|
!n || !t || t.importLibrary(e);
|
|
692
692
|
}, [n, t, e]), (t == null ? void 0 : t.loadedLibraries[e]) || null;
|
|
693
693
|
}
|
|
694
694
|
var ie;
|
|
695
|
-
const { useLayoutEffect:
|
|
696
|
-
function
|
|
695
|
+
const { useLayoutEffect: Sn, useRef: _n } = Se, In = (ie = Se.useInsertionEffect) !== null && ie !== void 0 ? ie : Sn;
|
|
696
|
+
function wn() {
|
|
697
697
|
throw new Error("useEffectEvent: invalid call during rendering.");
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
const n =
|
|
701
|
-
return
|
|
699
|
+
function Tn(e) {
|
|
700
|
+
const n = _n(wn);
|
|
701
|
+
return In(() => {
|
|
702
702
|
n.current = e;
|
|
703
703
|
}, [e]), ((...t) => n.current(...t));
|
|
704
704
|
}
|
|
705
|
-
const
|
|
705
|
+
const ze = Tn, Nn = () => {
|
|
706
706
|
};
|
|
707
|
-
function
|
|
708
|
-
const o =
|
|
709
|
-
|
|
707
|
+
function D(e, n, t) {
|
|
708
|
+
const o = ze(t ?? Nn), r = !!t;
|
|
709
|
+
b(() => {
|
|
710
710
|
if (!e || !n || !r)
|
|
711
711
|
return;
|
|
712
712
|
const i = google.maps.event.addListener(e, n, o);
|
|
@@ -714,22 +714,22 @@ function L(e, n, t) {
|
|
|
714
714
|
}, [e, n, r]);
|
|
715
715
|
}
|
|
716
716
|
function _(e, n, t) {
|
|
717
|
-
|
|
717
|
+
b(() => {
|
|
718
718
|
e && (e[n] = t);
|
|
719
719
|
}, [e, n, t]);
|
|
720
720
|
}
|
|
721
|
-
const
|
|
721
|
+
const xn = () => {
|
|
722
722
|
};
|
|
723
723
|
function ce(e, n, t) {
|
|
724
|
-
const o =
|
|
725
|
-
|
|
724
|
+
const o = ze(t ?? xn), r = !!t;
|
|
725
|
+
b(() => {
|
|
726
726
|
if (!e || !n || !r)
|
|
727
727
|
return;
|
|
728
728
|
const i = o;
|
|
729
729
|
return e.addEventListener(n, i), () => e.removeEventListener(n, i);
|
|
730
730
|
}, [e, n, r]);
|
|
731
731
|
}
|
|
732
|
-
class
|
|
732
|
+
class Rn {
|
|
733
733
|
constructor() {
|
|
734
734
|
this.renderedStyles = /* @__PURE__ */ new Set(), this.styleElement = null;
|
|
735
735
|
}
|
|
@@ -750,95 +750,95 @@ class xn {
|
|
|
750
750
|
this.styleElement && (this.styleElement.remove(), this.styleElement = null, this.renderedStyles.clear());
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
const
|
|
754
|
-
function
|
|
753
|
+
const jn = new Rn();
|
|
754
|
+
function Bn(e, n) {
|
|
755
755
|
var t;
|
|
756
756
|
if (!(!((t = google == null ? void 0 : google.maps) === null || t === void 0) && t.version))
|
|
757
757
|
return;
|
|
758
758
|
const o = google.maps.version.split("."), r = parseInt(o[0], 10), i = parseInt(o[1], 10);
|
|
759
759
|
return r > e || r === e && i >= n;
|
|
760
760
|
}
|
|
761
|
-
const he = M.createContext(null),
|
|
761
|
+
const he = M.createContext(null), Fn = {
|
|
762
762
|
BOTTOM: ["50%", "100%"]
|
|
763
|
-
},
|
|
764
|
-
const { children: t, style: o, className: r, anchorPoint: i } = e, [a, s] =
|
|
765
|
-
return z(n, () => a, [a]), s ? M.createElement(he.Provider, { value: g }, oe(M.createElement(
|
|
763
|
+
}, zn = B((e, n) => {
|
|
764
|
+
const { children: t, style: o, className: r, anchorPoint: i } = e, [a, s] = Gn(e), g = w(() => a ? { marker: a } : null, [a]);
|
|
765
|
+
return z(n, () => a, [a]), s ? M.createElement(he.Provider, { value: g }, oe(M.createElement(Un, { anchorPoint: i, styles: o, className: r }, t), s)) : null;
|
|
766
766
|
});
|
|
767
|
-
|
|
767
|
+
zn.displayName = "AdvancedMarker";
|
|
768
768
|
function de(e) {
|
|
769
769
|
return e.nodeType === Node.ELEMENT_NODE;
|
|
770
770
|
}
|
|
771
|
-
const
|
|
772
|
-
function
|
|
773
|
-
const [n, t] = I(null), [o, r] = I(null), i = q(), a =
|
|
774
|
-
return
|
|
771
|
+
const Un = ({ children: e, styles: n, className: t }) => M.createElement("div", { className: t, style: n }, e);
|
|
772
|
+
function Gn(e) {
|
|
773
|
+
const [n, t] = I(null), [o, r] = I(null), i = q(), a = G("marker"), { children: s, onClick: g, className: c, onMouseEnter: l, onMouseLeave: h, onDrag: f, onDragStart: u, onDragEnd: p, collisionBehavior: y, clickable: d, draggable: m, position: C, title: E, zIndex: P, anchorPoint: A, anchorLeft: v, anchorTop: O } = e, k = ge.count(s);
|
|
774
|
+
return b(() => {
|
|
775
775
|
if (!i || !a)
|
|
776
776
|
return;
|
|
777
777
|
const S = new a.AdvancedMarkerElement();
|
|
778
778
|
S.map = i, t(S);
|
|
779
|
-
let
|
|
780
|
-
return
|
|
781
|
-
S.map = null,
|
|
779
|
+
let L = null;
|
|
780
|
+
return k > 0 && (L = document.createElement("div"), S.content = L, r(L)), () => {
|
|
781
|
+
S.map = null, L == null || L.remove(), t(null), r(null);
|
|
782
782
|
};
|
|
783
|
-
}, [i, a,
|
|
784
|
-
!(n != null && n.content) || !de(n.content) ||
|
|
785
|
-
}, [n, c,
|
|
783
|
+
}, [i, a, k]), b(() => {
|
|
784
|
+
!(n != null && n.content) || !de(n.content) || k > 0 || (n.content.className = c ?? "");
|
|
785
|
+
}, [n, c, k]), Hn(n, A, v, O, k > 0), _(n, "position", C), _(n, "title", E ?? ""), _(n, "zIndex", P), _(n, "collisionBehavior", y), b(() => {
|
|
786
786
|
n && (m !== void 0 ? n.gmpDraggable = m : f || u || p ? n.gmpDraggable = !0 : n.gmpDraggable = !1);
|
|
787
|
-
}, [n, m, f, p, u]),
|
|
787
|
+
}, [n, m, f, p, u]), b(() => {
|
|
788
788
|
if (!n)
|
|
789
789
|
return;
|
|
790
790
|
const S = d !== void 0 ? d : !!g || !!l || !!h;
|
|
791
791
|
n.gmpClickable = S, S && (n != null && n.content) && de(n.content) && (n.content.style.pointerEvents = "all", g && (n.content.style.cursor = "pointer"));
|
|
792
|
-
}, [n, d, g, l, h]),
|
|
792
|
+
}, [n, d, g, l, h]), D(n, "click", g), D(n, "drag", f), D(n, "dragstart", u), D(n, "dragend", p), ce(n == null ? void 0 : n.element, "mouseenter", l), ce(n == null ? void 0 : n.element, "mouseleave", h), [n, o];
|
|
793
793
|
}
|
|
794
794
|
function Hn(e, n, t, o, r) {
|
|
795
|
-
|
|
795
|
+
b(() => {
|
|
796
796
|
if (!e || !r)
|
|
797
797
|
return;
|
|
798
|
-
const i =
|
|
798
|
+
const i = Bn(3, 62), a = e.content;
|
|
799
799
|
if (!(!a || !de(a))) {
|
|
800
800
|
if (t !== void 0 || o !== void 0) {
|
|
801
801
|
i || console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`), e.anchorLeft = t, e.anchorTop = o, n !== void 0 && console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
804
804
|
if (n !== void 0) {
|
|
805
|
-
const [s, g] = n ??
|
|
806
|
-
i ? (e.anchorLeft = c, e.anchorTop = l, a.style.transform = "") : (a.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm",
|
|
805
|
+
const [s, g] = n ?? Fn.BOTTOM, c = `calc(-1 * ${s})`, l = `calc(-1 * ${g})`;
|
|
806
|
+
i ? (e.anchorLeft = c, e.anchorTop = l, a.style.transform = "") : (a.style.transform = `translate(50%, 100%) translate(${c}, ${l})`, e.dataset.origin = "rgm", jn.addAdvancedMarkerPointerEventsOverwrite());
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
}, [e, n, t, o, r]);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Jn(e) {
|
|
812
812
|
var n, t, o;
|
|
813
|
-
const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: h, center: f, defaultCenter: u, radius: p, defaultRadius: y } = e, d = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [m, C] = I(null),
|
|
814
|
-
return
|
|
815
|
-
if (!
|
|
816
|
-
|
|
813
|
+
const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onRadiusChanged: l, onCenterChanged: h, center: f, defaultCenter: u, radius: p, defaultRadius: y } = e, d = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onRadiusChanged", "onCenterChanged", "center", "defaultCenter", "radius", "defaultRadius"]), [m, C] = I(null), E = q(), P = K(Object.assign(Object.assign({}, d), { clickable: (n = d.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = d.draggable) !== null && t !== void 0 ? t : !!(i || a || s || h), editable: (o = d.editable) !== null && o !== void 0 ? o : !!l }), W);
|
|
814
|
+
return b(() => {
|
|
815
|
+
if (!E) {
|
|
816
|
+
E === void 0 && console.error("<Circle> has to be inside a Map component.");
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
const A = new google.maps.Circle(Object.assign(Object.assign({}, P), { center: f ?? u, radius: p ?? y }));
|
|
820
|
-
return A.setMap(
|
|
820
|
+
return A.setMap(E), C(A), () => {
|
|
821
821
|
A.setMap(null), C(null);
|
|
822
822
|
};
|
|
823
|
-
}, [
|
|
823
|
+
}, [E]), D(m, "click", r), D(m, "drag", i), D(m, "dragstart", a), D(m, "dragend", s), D(m, "mouseover", g), D(m, "mouseout", c), D(m, "radius_changed", l ? () => {
|
|
824
824
|
const A = m == null ? void 0 : m.getRadius();
|
|
825
825
|
A !== void 0 && l(A);
|
|
826
|
-
} : null),
|
|
826
|
+
} : null), D(m, "center_changed", h ? () => {
|
|
827
827
|
h(m == null ? void 0 : m.getCenter());
|
|
828
|
-
} : null),
|
|
828
|
+
} : null), b(() => {
|
|
829
829
|
m && m.setOptions(P);
|
|
830
|
-
}, [m, P]),
|
|
831
|
-
!m || !f ||
|
|
832
|
-
}, [m, f]),
|
|
830
|
+
}, [m, P]), b(() => {
|
|
831
|
+
!m || !f || xe(f, m.getCenter()) || m.setCenter(f);
|
|
832
|
+
}, [m, f]), b(() => {
|
|
833
833
|
!m || p === void 0 || p !== m.getRadius() && m.setRadius(p);
|
|
834
834
|
}, [m, p]), m;
|
|
835
835
|
}
|
|
836
|
-
const
|
|
837
|
-
const t =
|
|
836
|
+
const Vn = B((e, n) => {
|
|
837
|
+
const t = Jn(e);
|
|
838
838
|
return z(n, () => t, [t]), M.createElement(M.Fragment, null);
|
|
839
839
|
});
|
|
840
|
-
|
|
841
|
-
function
|
|
840
|
+
Vn.displayName = "Circle";
|
|
841
|
+
function $n(e, n, t) {
|
|
842
842
|
if (n != null && typeof n != "object")
|
|
843
843
|
throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");
|
|
844
844
|
const o = e.style;
|
|
@@ -859,9 +859,9 @@ function Vn(e, n, t) {
|
|
|
859
859
|
}
|
|
860
860
|
function Ae(e, n, t) {
|
|
861
861
|
const o = n.indexOf("--") === 0;
|
|
862
|
-
t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !
|
|
862
|
+
t == null || typeof t == "boolean" || t === "" ? o ? e.setProperty(n, "") : n === "float" ? e.cssFloat = "" : e[n] = "" : o ? e.setProperty(n, t) : typeof t == "number" && t !== 0 && !Zn(n) ? e[n] = t + "px" : n === "float" ? e.cssFloat = t : e[n] = ("" + t).trim();
|
|
863
863
|
}
|
|
864
|
-
const
|
|
864
|
+
const qn = /* @__PURE__ */ new Set([
|
|
865
865
|
"animationIterationCount",
|
|
866
866
|
"aspectRatio",
|
|
867
867
|
"borderImageOutset",
|
|
@@ -908,19 +908,19 @@ const $n = /* @__PURE__ */ new Set([
|
|
|
908
908
|
"strokeOpacity",
|
|
909
909
|
"strokeWidth"
|
|
910
910
|
]);
|
|
911
|
-
function
|
|
912
|
-
return
|
|
911
|
+
function Zn(e) {
|
|
912
|
+
return qn.has(e);
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function Le(e) {
|
|
915
915
|
const n = e.getPaths(), t = [];
|
|
916
916
|
for (let o = 0; o < n.getLength(); o++)
|
|
917
917
|
t.push(n.getAt(o).getArray());
|
|
918
918
|
return t;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function Wn(e) {
|
|
921
921
|
var n, t, o;
|
|
922
|
-
const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: h, encodedPaths: f, paths: u, defaultPaths: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, m] = I(null), C = q(),
|
|
923
|
-
return
|
|
922
|
+
const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathsChanged: l, polygon: h, encodedPaths: f, paths: u, defaultPaths: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathsChanged", "polygon", "encodedPaths", "paths", "defaultPaths"]), [d, m] = I(null), C = q(), E = G("geometry"), P = j(!1), A = K(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), W);
|
|
923
|
+
return b(() => {
|
|
924
924
|
if (!C) {
|
|
925
925
|
C === void 0 && console.error("<Polygon> has to be inside a Map component.");
|
|
926
926
|
return;
|
|
@@ -931,33 +931,33 @@ function Zn(e) {
|
|
|
931
931
|
const O = u ?? p;
|
|
932
932
|
O && Array.isArray(O) && v.setPaths(O), v.setOptions(A);
|
|
933
933
|
} else {
|
|
934
|
-
const O = u ?? p,
|
|
935
|
-
O && Array.isArray(O) && (
|
|
934
|
+
const O = u ?? p, k = Object.assign({}, A);
|
|
935
|
+
O && Array.isArray(O) && (k.paths = O), v = new google.maps.Polygon(k);
|
|
936
936
|
}
|
|
937
937
|
return v.setMap(C), m(v), () => {
|
|
938
938
|
v.setMap(null), m(null);
|
|
939
939
|
};
|
|
940
|
-
}, [C, h]),
|
|
941
|
-
s == null || s(v), l && d && !P.current && l(
|
|
942
|
-
}),
|
|
940
|
+
}, [C, h]), D(d, "click", r), D(d, "drag", i), D(d, "dragstart", a), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
|
|
941
|
+
s == null || s(v), l && d && !P.current && l(Le(d));
|
|
942
|
+
}), b(() => {
|
|
943
943
|
if (!d || !l)
|
|
944
944
|
return;
|
|
945
945
|
const v = [], O = d.getPaths();
|
|
946
946
|
if (typeof O.getLength != "function" || typeof O.getAt != "function")
|
|
947
947
|
return;
|
|
948
|
-
const
|
|
949
|
-
P.current || l(
|
|
950
|
-
}, S = (
|
|
951
|
-
v.push(google.maps.event.addListener(
|
|
948
|
+
const k = () => {
|
|
949
|
+
P.current || l(Le(d));
|
|
950
|
+
}, S = (L) => {
|
|
951
|
+
v.push(google.maps.event.addListener(L, "insert_at", k)), v.push(google.maps.event.addListener(L, "remove_at", k)), v.push(google.maps.event.addListener(L, "set_at", k));
|
|
952
952
|
};
|
|
953
|
-
for (let
|
|
954
|
-
S(O.getAt(
|
|
955
|
-
return v.push(google.maps.event.addListener(O, "insert_at", (
|
|
956
|
-
S(O.getAt(
|
|
957
|
-
})), v.push(google.maps.event.addListener(O, "set_at", (
|
|
958
|
-
S(O.getAt(
|
|
959
|
-
})), v.push(google.maps.event.addListener(O, "remove_at",
|
|
960
|
-
v.forEach((
|
|
953
|
+
for (let L = 0; L < O.getLength(); L++)
|
|
954
|
+
S(O.getAt(L));
|
|
955
|
+
return v.push(google.maps.event.addListener(O, "insert_at", (L) => {
|
|
956
|
+
S(O.getAt(L)), k();
|
|
957
|
+
})), v.push(google.maps.event.addListener(O, "set_at", (L) => {
|
|
958
|
+
S(O.getAt(L)), k();
|
|
959
|
+
})), v.push(google.maps.event.addListener(O, "remove_at", k)), () => {
|
|
960
|
+
v.forEach((L) => L.remove());
|
|
961
961
|
};
|
|
962
962
|
}, [
|
|
963
963
|
d,
|
|
@@ -966,30 +966,30 @@ function Zn(e) {
|
|
|
966
966
|
f,
|
|
967
967
|
A.editable,
|
|
968
968
|
A.draggable
|
|
969
|
-
]),
|
|
969
|
+
]), b(() => {
|
|
970
970
|
d && d.setOptions(A);
|
|
971
|
-
}, [d, A]),
|
|
971
|
+
}, [d, A]), b(() => {
|
|
972
972
|
if (!d || !u || !Array.isArray(u))
|
|
973
973
|
return;
|
|
974
|
-
const v = u[0], O = Array.isArray(v) ? u : [u],
|
|
975
|
-
|
|
976
|
-
}, [d, u]),
|
|
977
|
-
if (!d || !f || !
|
|
974
|
+
const v = u[0], O = Array.isArray(v) ? u : [u], k = d.getPaths();
|
|
975
|
+
On(O, k) || (P.current = !0, d.setPaths(u), P.current = !1);
|
|
976
|
+
}, [d, u]), b(() => {
|
|
977
|
+
if (!d || !f || !E)
|
|
978
978
|
return;
|
|
979
979
|
P.current = !0;
|
|
980
|
-
const v = f.map((O) =>
|
|
980
|
+
const v = f.map((O) => E.encoding.decodePath(O));
|
|
981
981
|
d.setPaths(v), P.current = !1;
|
|
982
|
-
}, [d, f,
|
|
982
|
+
}, [d, f, E]), d;
|
|
983
983
|
}
|
|
984
|
-
const
|
|
985
|
-
const t =
|
|
984
|
+
const Kn = B((e, n) => {
|
|
985
|
+
const t = Wn(e);
|
|
986
986
|
return z(n, () => t, [t]), M.createElement(M.Fragment, null);
|
|
987
987
|
});
|
|
988
|
-
|
|
989
|
-
function
|
|
988
|
+
Kn.displayName = "Polygon";
|
|
989
|
+
function Yn(e) {
|
|
990
990
|
var n, t, o;
|
|
991
|
-
const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: h, encodedPath: f, path: u, defaultPath: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, m] = I(null), C = q(),
|
|
992
|
-
return
|
|
991
|
+
const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onPathChanged: l, polyline: h, encodedPath: f, path: u, defaultPath: p } = e, y = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onPathChanged", "polyline", "encodedPath", "path", "defaultPath"]), [d, m] = I(null), C = q(), E = G("geometry"), P = j(!1), A = K(Object.assign(Object.assign({}, y), { clickable: (n = y.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = y.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = y.editable) !== null && o !== void 0 ? o : !!l }), W);
|
|
992
|
+
return b(() => {
|
|
993
993
|
if (!C) {
|
|
994
994
|
C === void 0 && console.error("<Polyline> has to be inside a Map component.");
|
|
995
995
|
return;
|
|
@@ -1000,15 +1000,15 @@ function Kn(e) {
|
|
|
1000
1000
|
const O = u ?? p;
|
|
1001
1001
|
O && Array.isArray(O) && v.setPath(O), v.setOptions(A);
|
|
1002
1002
|
} else {
|
|
1003
|
-
const O = u ?? p,
|
|
1004
|
-
O && Array.isArray(O) && (
|
|
1003
|
+
const O = u ?? p, k = Object.assign({}, A);
|
|
1004
|
+
O && Array.isArray(O) && (k.path = O), v = new google.maps.Polyline(k);
|
|
1005
1005
|
}
|
|
1006
1006
|
return v.setMap(C), m(v), () => {
|
|
1007
1007
|
v.setMap(null), m(null);
|
|
1008
1008
|
};
|
|
1009
|
-
}, [C, h]),
|
|
1009
|
+
}, [C, h]), D(d, "click", r), D(d, "drag", i), D(d, "dragstart", a), D(d, "mouseover", g), D(d, "mouseout", c), D(d, "dragend", (v) => {
|
|
1010
1010
|
s == null || s(v), l && d && !P.current && l(d.getPath().getArray());
|
|
1011
|
-
}),
|
|
1011
|
+
}), b(() => {
|
|
1012
1012
|
if (!d || !l)
|
|
1013
1013
|
return;
|
|
1014
1014
|
const v = d.getPath();
|
|
@@ -1016,13 +1016,13 @@ function Kn(e) {
|
|
|
1016
1016
|
return;
|
|
1017
1017
|
const O = () => {
|
|
1018
1018
|
P.current || l(v.getArray());
|
|
1019
|
-
},
|
|
1019
|
+
}, k = [
|
|
1020
1020
|
google.maps.event.addListener(v, "insert_at", O),
|
|
1021
1021
|
google.maps.event.addListener(v, "remove_at", O),
|
|
1022
1022
|
google.maps.event.addListener(v, "set_at", O)
|
|
1023
1023
|
];
|
|
1024
1024
|
return () => {
|
|
1025
|
-
|
|
1025
|
+
k.forEach((S) => S.remove());
|
|
1026
1026
|
};
|
|
1027
1027
|
}, [
|
|
1028
1028
|
d,
|
|
@@ -1031,34 +1031,34 @@ function Kn(e) {
|
|
|
1031
1031
|
f,
|
|
1032
1032
|
A.editable,
|
|
1033
1033
|
A.draggable
|
|
1034
|
-
]),
|
|
1034
|
+
]), b(() => {
|
|
1035
1035
|
d && d.setOptions(A);
|
|
1036
|
-
}, [d, A]),
|
|
1036
|
+
}, [d, A]), b(() => {
|
|
1037
1037
|
if (!d || !u)
|
|
1038
1038
|
return;
|
|
1039
1039
|
const v = d.getPath();
|
|
1040
|
-
|
|
1041
|
-
}, [d, u]),
|
|
1042
|
-
if (!d || !f || !
|
|
1040
|
+
Re(u, v) || (P.current = !0, d.setPath(u), P.current = !1);
|
|
1041
|
+
}, [d, u]), b(() => {
|
|
1042
|
+
if (!d || !f || !E)
|
|
1043
1043
|
return;
|
|
1044
1044
|
P.current = !0;
|
|
1045
|
-
const v =
|
|
1045
|
+
const v = E.encoding.decodePath(f);
|
|
1046
1046
|
d.setPath(v), P.current = !1;
|
|
1047
|
-
}, [d, f,
|
|
1047
|
+
}, [d, f, E]), d;
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1050
|
-
const t =
|
|
1049
|
+
const Xn = B((e, n) => {
|
|
1050
|
+
const t = Yn(e);
|
|
1051
1051
|
return z(n, () => t, [t]), M.createElement(M.Fragment, null);
|
|
1052
1052
|
});
|
|
1053
|
-
|
|
1054
|
-
const
|
|
1053
|
+
Xn.displayName = "Polyline";
|
|
1054
|
+
const Qn = {
|
|
1055
1055
|
center: { lat: 0, lng: 0, altitude: 0 },
|
|
1056
1056
|
range: 0,
|
|
1057
1057
|
heading: 0,
|
|
1058
1058
|
tilt: 0,
|
|
1059
1059
|
roll: 0
|
|
1060
|
-
},
|
|
1061
|
-
function
|
|
1060
|
+
}, et = ["center", "range", "heading", "tilt", "roll"];
|
|
1061
|
+
function nt(e, n, t) {
|
|
1062
1062
|
const o = e[t];
|
|
1063
1063
|
if (o != null)
|
|
1064
1064
|
if (t === "center") {
|
|
@@ -1067,15 +1067,15 @@ function et(e, n, t) {
|
|
|
1067
1067
|
} else
|
|
1068
1068
|
n.current[t] = o;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const n =
|
|
1072
|
-
return
|
|
1070
|
+
function tt(e) {
|
|
1071
|
+
const n = Be(), t = j(Object.assign({}, Qn));
|
|
1072
|
+
return b(() => {
|
|
1073
1073
|
if (!e)
|
|
1074
1074
|
return;
|
|
1075
1075
|
const o = [];
|
|
1076
|
-
for (const r of
|
|
1076
|
+
for (const r of et) {
|
|
1077
1077
|
const i = `gmp-${r}change`, a = () => {
|
|
1078
|
-
|
|
1078
|
+
nt(e, t, r), n();
|
|
1079
1079
|
};
|
|
1080
1080
|
e.addEventListener(i, a), o.push(() => e.removeEventListener(i, a));
|
|
1081
1081
|
}
|
|
@@ -1085,13 +1085,13 @@ function nt(e) {
|
|
|
1085
1085
|
};
|
|
1086
1086
|
}, [e, n]), t;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
const n =
|
|
1090
|
-
return
|
|
1088
|
+
function ot(e) {
|
|
1089
|
+
const n = G("maps3d"), [t, o] = I(!1), [, r] = le(), [i, a] = le(), s = tt(i);
|
|
1090
|
+
return b(() => {
|
|
1091
1091
|
customElements.whenDefined("gmp-map-3d").then(() => {
|
|
1092
1092
|
o(!0);
|
|
1093
1093
|
});
|
|
1094
|
-
}, []),
|
|
1094
|
+
}, []), b(
|
|
1095
1095
|
() => {
|
|
1096
1096
|
if (!i)
|
|
1097
1097
|
return;
|
|
@@ -1107,24 +1107,24 @@ function tt(e) {
|
|
|
1107
1107
|
defaultRange: m,
|
|
1108
1108
|
defaultRoll: C,
|
|
1109
1109
|
// Non-element props to exclude
|
|
1110
|
-
id:
|
|
1110
|
+
id: E,
|
|
1111
1111
|
style: P,
|
|
1112
1112
|
className: A,
|
|
1113
1113
|
children: v,
|
|
1114
1114
|
onCenterChanged: O,
|
|
1115
|
-
onHeadingChanged:
|
|
1115
|
+
onHeadingChanged: k,
|
|
1116
1116
|
onTiltChanged: S,
|
|
1117
|
-
onRangeChanged:
|
|
1117
|
+
onRangeChanged: L,
|
|
1118
1118
|
onRollChanged: T,
|
|
1119
1119
|
onCameraChanged: Y,
|
|
1120
1120
|
onClick: X,
|
|
1121
|
-
onSteadyChange:
|
|
1122
|
-
onAnimationEnd:
|
|
1123
|
-
onError:
|
|
1124
|
-
mode:
|
|
1125
|
-
gestureHandling:
|
|
1126
|
-
} = e,
|
|
1127
|
-
pe && (
|
|
1121
|
+
onSteadyChange: Pt,
|
|
1122
|
+
onAnimationEnd: At,
|
|
1123
|
+
onError: Lt,
|
|
1124
|
+
mode: kt,
|
|
1125
|
+
gestureHandling: Dt
|
|
1126
|
+
} = e, Ue = N(e, ["center", "heading", "tilt", "range", "roll", "defaultCenter", "defaultHeading", "defaultTilt", "defaultRange", "defaultRoll", "id", "style", "className", "children", "onCenterChanged", "onHeadingChanged", "onTiltChanged", "onRangeChanged", "onRollChanged", "onCameraChanged", "onClick", "onSteadyChange", "onAnimationEnd", "onError", "mode", "gestureHandling"]), pe = c ?? p, ve = l ?? y, ye = h ?? d, Ce = f ?? m, be = u ?? C, H = Object.assign({}, Ue);
|
|
1127
|
+
pe && (H.center = pe), ve !== void 0 && (H.heading = ve), ye !== void 0 && (H.tilt = ye), Ce !== void 0 && (H.range = Ce), be !== void 0 && (H.roll = be), Object.assign(i, H);
|
|
1128
1128
|
},
|
|
1129
1129
|
// this effect should only run when the map3d element first becomes
|
|
1130
1130
|
// available, so we skip re-running it when other props change.
|
|
@@ -1132,25 +1132,25 @@ function tt(e) {
|
|
|
1132
1132
|
[i]
|
|
1133
1133
|
), [i, r, a, s, !!n && t];
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function rt(e) {
|
|
1136
1136
|
return e ? "toJSON" in e && typeof e.toJSON == "function" ? e.toJSON() : e : null;
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function it(e, n, t) {
|
|
1139
1139
|
var o, r, i, a, s, g, c;
|
|
1140
|
-
const l =
|
|
1140
|
+
const l = rt(t.center), h = (o = l == null ? void 0 : l.lat) !== null && o !== void 0 ? o : null, f = (r = l == null ? void 0 : l.lng) !== null && r !== void 0 ? r : null, u = (i = l == null ? void 0 : l.altitude) !== null && i !== void 0 ? i : null, p = (a = t.range) !== null && a !== void 0 ? a : null, y = (s = t.heading) !== null && s !== void 0 ? s : null, d = (g = t.tilt) !== null && g !== void 0 ? g : null, m = (c = t.roll) !== null && c !== void 0 ? c : null;
|
|
1141
1141
|
V(() => {
|
|
1142
1142
|
var C;
|
|
1143
1143
|
if (!e)
|
|
1144
1144
|
return;
|
|
1145
|
-
const
|
|
1146
|
-
h !== null && f !== null && (
|
|
1145
|
+
const E = n.current;
|
|
1146
|
+
h !== null && f !== null && (E.center.lat !== h || E.center.lng !== f || u !== null && E.center.altitude !== u) && (e.center = {
|
|
1147
1147
|
lat: h,
|
|
1148
1148
|
lng: f,
|
|
1149
|
-
altitude: (C = u ??
|
|
1150
|
-
}), p !== null &&
|
|
1149
|
+
altitude: (C = u ?? E.center.altitude) !== null && C !== void 0 ? C : 0
|
|
1150
|
+
}), p !== null && E.range !== p && (e.range = p), y !== null && E.heading !== y && (e.heading = y), d !== null && E.tilt !== d && (e.tilt = d), m !== null && E.roll !== m && (e.roll = m);
|
|
1151
1151
|
});
|
|
1152
1152
|
}
|
|
1153
|
-
const
|
|
1153
|
+
const ke = [
|
|
1154
1154
|
"gmp-centerchange",
|
|
1155
1155
|
"gmp-headingchange",
|
|
1156
1156
|
"gmp-tiltchange",
|
|
@@ -1172,7 +1172,7 @@ function J(e, n) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function at(e, n) {
|
|
1176
1176
|
const t = n;
|
|
1177
1177
|
return {
|
|
1178
1178
|
type: "gmp-click",
|
|
@@ -1183,7 +1183,7 @@ function it(e, n) {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function st(e, n) {
|
|
1187
1187
|
return {
|
|
1188
1188
|
type: "gmp-steadychange",
|
|
1189
1189
|
map3d: e,
|
|
@@ -1192,32 +1192,32 @@ function at(e, n) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
};
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function lt(e, n) {
|
|
1196
1196
|
const { onCenterChanged: t, onHeadingChanged: o, onTiltChanged: r, onRangeChanged: i, onRollChanged: a, onCameraChanged: s, onClick: g, onSteadyChange: c, onAnimationEnd: l, onError: h } = n;
|
|
1197
|
-
U(e, "gmp-centerchange", t, J), U(e, "gmp-headingchange", o, J), U(e, "gmp-tiltchange", r, J), U(e, "gmp-rangechange", i, J), U(e, "gmp-rollchange", a, J),
|
|
1197
|
+
U(e, "gmp-centerchange", t, J), U(e, "gmp-headingchange", o, J), U(e, "gmp-tiltchange", r, J), U(e, "gmp-rangechange", i, J), U(e, "gmp-rollchange", a, J), b(() => {
|
|
1198
1198
|
if (!e || !s)
|
|
1199
1199
|
return;
|
|
1200
1200
|
const f = () => {
|
|
1201
1201
|
s(J(e, "camerachange"));
|
|
1202
1202
|
};
|
|
1203
|
-
for (const u of
|
|
1203
|
+
for (const u of ke)
|
|
1204
1204
|
e.addEventListener(u, f);
|
|
1205
1205
|
return () => {
|
|
1206
|
-
for (const u of
|
|
1206
|
+
for (const u of ke)
|
|
1207
1207
|
e.removeEventListener(u, f);
|
|
1208
1208
|
};
|
|
1209
|
-
}, [e, s]),
|
|
1209
|
+
}, [e, s]), b(() => {
|
|
1210
1210
|
if (!e || !g)
|
|
1211
1211
|
return;
|
|
1212
1212
|
const f = (u) => {
|
|
1213
|
-
g(
|
|
1213
|
+
g(at(e, u));
|
|
1214
1214
|
};
|
|
1215
1215
|
return e.addEventListener("gmp-click", f), () => e.removeEventListener("gmp-click", f);
|
|
1216
|
-
}, [e, g]),
|
|
1216
|
+
}, [e, g]), b(() => {
|
|
1217
1217
|
if (!e || !c)
|
|
1218
1218
|
return;
|
|
1219
1219
|
const f = (u) => {
|
|
1220
|
-
c(
|
|
1220
|
+
c(st(e, u));
|
|
1221
1221
|
};
|
|
1222
1222
|
return e.addEventListener("gmp-steadychange", f), () => e.removeEventListener("gmp-steadychange", f);
|
|
1223
1223
|
}, [e, c]), U(e, "gmp-animationend", l, (f, u) => ({
|
|
@@ -1229,7 +1229,7 @@ function st(e, n) {
|
|
|
1229
1229
|
}));
|
|
1230
1230
|
}
|
|
1231
1231
|
function U(e, n, t, o) {
|
|
1232
|
-
|
|
1232
|
+
b(() => {
|
|
1233
1233
|
if (!e || !t)
|
|
1234
1234
|
return;
|
|
1235
1235
|
const r = () => {
|
|
@@ -1238,7 +1238,7 @@ function U(e, n, t, o) {
|
|
|
1238
1238
|
return e.addEventListener(n, r), () => e.removeEventListener(n, r);
|
|
1239
1239
|
}, [e, n, t, o]);
|
|
1240
1240
|
}
|
|
1241
|
-
const
|
|
1241
|
+
const ct = /* @__PURE__ */ new Set([
|
|
1242
1242
|
"bounds",
|
|
1243
1243
|
"defaultUIHidden",
|
|
1244
1244
|
"gestureHandling",
|
|
@@ -1251,31 +1251,31 @@ const lt = /* @__PURE__ */ new Set([
|
|
|
1251
1251
|
"minTilt",
|
|
1252
1252
|
"mode"
|
|
1253
1253
|
]);
|
|
1254
|
-
function
|
|
1254
|
+
function dt(e, n) {
|
|
1255
1255
|
const t = w(() => {
|
|
1256
1256
|
const o = {}, r = Object.keys(n);
|
|
1257
1257
|
for (const i of r) {
|
|
1258
|
-
if (!
|
|
1258
|
+
if (!ct.has(i))
|
|
1259
1259
|
continue;
|
|
1260
1260
|
const a = n[i];
|
|
1261
1261
|
a !== void 0 && (o[i] = a);
|
|
1262
1262
|
}
|
|
1263
1263
|
return o;
|
|
1264
1264
|
}, [n]);
|
|
1265
|
-
|
|
1265
|
+
Te(() => {
|
|
1266
1266
|
e && Object.assign(e, t);
|
|
1267
1267
|
}, [e, t]);
|
|
1268
1268
|
}
|
|
1269
|
-
const
|
|
1269
|
+
const ut = M.createContext(null), gt = {
|
|
1270
1270
|
width: "100%",
|
|
1271
1271
|
height: "100%",
|
|
1272
1272
|
position: "relative"
|
|
1273
|
-
},
|
|
1273
|
+
}, ft = B((e, n) => {
|
|
1274
1274
|
const { children: t, id: o, className: r, style: i } = e, a = R($);
|
|
1275
1275
|
if (!a)
|
|
1276
1276
|
throw new Error("<Map3D> can only be used inside an <APIProvider> component.");
|
|
1277
|
-
const { addMap3DInstance: s, removeMap3DInstance: g } = a, [c, l, h, f, u] =
|
|
1278
|
-
|
|
1277
|
+
const { addMap3DInstance: s, removeMap3DInstance: g } = a, [c, l, h, f, u] = ot(e);
|
|
1278
|
+
it(c, f, e), lt(c, e), dt(c, e), b(() => {
|
|
1279
1279
|
if (!c)
|
|
1280
1280
|
return;
|
|
1281
1281
|
const d = o ?? "default";
|
|
@@ -1294,56 +1294,56 @@ const dt = M.createContext(null), ut = {
|
|
|
1294
1294
|
c == null || c.stopCameraAnimation();
|
|
1295
1295
|
}
|
|
1296
1296
|
}), [c]);
|
|
1297
|
-
const p = w(() => Object.assign(Object.assign({},
|
|
1297
|
+
const p = w(() => Object.assign(Object.assign({}, gt), i), [i]), y = w(() => ({ map3d: c }), [c]);
|
|
1298
1298
|
return u ? M.createElement(
|
|
1299
1299
|
"div",
|
|
1300
1300
|
Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : p, className: r }, o ? { id: o } : {}),
|
|
1301
|
-
M.createElement("gmp-map-3d", { ref: h, style: { width: "100%", height: "100%" } }, c && M.createElement(
|
|
1301
|
+
M.createElement("gmp-map-3d", { ref: h, style: { width: "100%", height: "100%" } }, c && M.createElement(ut.Provider, { value: y }, t))
|
|
1302
1302
|
) : M.createElement("div", Object.assign({ ref: l, "data-testid": "map-3d", style: r ? void 0 : p, className: r }, o ? { id: o } : {}));
|
|
1303
1303
|
});
|
|
1304
|
-
|
|
1305
|
-
const me =
|
|
1306
|
-
const { children: o, onClick: r, position: i, altitudeMode: a, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: h, zIndex: f, title: u } = n, p = !!r, [y, d] = I(null), [m, C] = I(!1),
|
|
1304
|
+
ft.displayName = "Map3D";
|
|
1305
|
+
const me = Ge(null), ht = B(function(n, t) {
|
|
1306
|
+
const { children: o, onClick: r, position: i, altitudeMode: a, collisionBehavior: s, drawsWhenOccluded: g, extruded: c, label: l, sizePreserved: h, zIndex: f, title: u } = n, p = !!r, [y, d] = I(null), [m, C] = I(!1), E = w(() => {
|
|
1307
1307
|
const v = document.createElement("div");
|
|
1308
1308
|
return v.style.display = "none", document.body.appendChild(v), v;
|
|
1309
1309
|
}, []);
|
|
1310
|
-
|
|
1310
|
+
b(() => () => E.remove(), [E]);
|
|
1311
1311
|
const P = ue((v) => {
|
|
1312
1312
|
d(v), typeof t == "function" ? t(v) : t && (t.current = v);
|
|
1313
1313
|
}, [t]);
|
|
1314
1314
|
ce(y, "gmp-click", r), V(() => {
|
|
1315
|
-
if (m || !y || !
|
|
1315
|
+
if (m || !y || !E)
|
|
1316
1316
|
return;
|
|
1317
1317
|
for (; y.firstChild; )
|
|
1318
1318
|
y.removeChild(y.firstChild);
|
|
1319
|
-
const v = Array.from(
|
|
1319
|
+
const v = Array.from(E.childNodes);
|
|
1320
1320
|
for (const O of v) {
|
|
1321
1321
|
if (O.nodeType !== Node.ELEMENT_NODE)
|
|
1322
1322
|
continue;
|
|
1323
|
-
const
|
|
1323
|
+
const k = O, S = k.tagName.toLowerCase();
|
|
1324
1324
|
if (S === "img" || S === "svg") {
|
|
1325
|
-
const
|
|
1326
|
-
|
|
1325
|
+
const L = document.createElement("template");
|
|
1326
|
+
L.content.appendChild(k.cloneNode(!0)), y.appendChild(L);
|
|
1327
1327
|
} else
|
|
1328
|
-
y.appendChild(
|
|
1328
|
+
y.appendChild(k.cloneNode(!0));
|
|
1329
1329
|
}
|
|
1330
|
-
}, [y,
|
|
1330
|
+
}, [y, E, o, m]);
|
|
1331
1331
|
const A = w(() => ({ marker: y, setContentHandledExternally: C }), [y]);
|
|
1332
1332
|
return _(y, "position", i), _(y, "altitudeMode", a), _(y, "collisionBehavior", s), _(y, "drawsWhenOccluded", g), _(y, "extruded", c), _(y, "label", l), _(y, "sizePreserved", h), _(y, "zIndex", f), _(y, "title", u ?? ""), M.createElement(
|
|
1333
1333
|
me.Provider,
|
|
1334
1334
|
{ value: A },
|
|
1335
1335
|
p ? M.createElement("gmp-marker-3d-interactive", { ref: P }) : M.createElement("gmp-marker-3d", { ref: P }),
|
|
1336
|
-
oe(o,
|
|
1336
|
+
oe(o, E)
|
|
1337
1337
|
);
|
|
1338
1338
|
});
|
|
1339
|
-
|
|
1340
|
-
const
|
|
1339
|
+
ht.displayName = "Marker3D";
|
|
1340
|
+
const mt = B(function(n, t) {
|
|
1341
1341
|
var o;
|
|
1342
1342
|
const { children: r, headerContent: i, style: a, className: s, open: g = !0, position: c, anchor: l, anchorId: h, altitudeMode: f, lightDismissDisabled: u, autoPanDisabled: p, onClose: y } = n, [d, m] = I(null), C = j(null);
|
|
1343
|
-
z(t, () => d, [d]),
|
|
1344
|
-
const
|
|
1345
|
-
return _(d, "positionAnchor",
|
|
1346
|
-
d && (
|
|
1343
|
+
z(t, () => d, [d]), pt(d, g, y), _(d, "open", g ?? !1), _(d, "altitudeMode", f), _(d, "lightDismissDisabled", u), _(d, "autoPanDisabled", p);
|
|
1344
|
+
const E = (o = l ?? h) !== null && o !== void 0 ? o : c;
|
|
1345
|
+
return _(d, "positionAnchor", E), V(() => {
|
|
1346
|
+
d && ($n(d, a || null, C.current), C.current = a || null);
|
|
1347
1347
|
}, [d, a]), M.createElement(
|
|
1348
1348
|
"gmp-popover",
|
|
1349
1349
|
{ ref: m, className: s },
|
|
@@ -1351,12 +1351,12 @@ const ht = B(function(n, t) {
|
|
|
1351
1351
|
r
|
|
1352
1352
|
);
|
|
1353
1353
|
});
|
|
1354
|
-
|
|
1355
|
-
function
|
|
1354
|
+
mt.displayName = "Popover";
|
|
1355
|
+
function pt(e, n, t) {
|
|
1356
1356
|
const o = j(void 0), r = j(n);
|
|
1357
|
-
|
|
1357
|
+
b(() => {
|
|
1358
1358
|
r.current = n;
|
|
1359
|
-
}, [n]),
|
|
1359
|
+
}, [n]), b(() => {
|
|
1360
1360
|
if (!e || !t)
|
|
1361
1361
|
return;
|
|
1362
1362
|
const i = new MutationObserver((a) => {
|
|
@@ -1374,9 +1374,9 @@ function mt(e, n, t) {
|
|
|
1374
1374
|
};
|
|
1375
1375
|
}, [e, t]);
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function vt(e) {
|
|
1378
1378
|
const [n, t] = I(null), o = q(), { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c } = e, l = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut"]), { position: h, draggable: f } = l;
|
|
1379
|
-
return
|
|
1379
|
+
return b(() => {
|
|
1380
1380
|
if (!o) {
|
|
1381
1381
|
o === void 0 && console.error("<Marker> has to be inside a Map component.");
|
|
1382
1382
|
return;
|
|
@@ -1385,7 +1385,7 @@ function pt(e) {
|
|
|
1385
1385
|
return u.setMap(o), t(u), () => {
|
|
1386
1386
|
u.setMap(null), t(null);
|
|
1387
1387
|
};
|
|
1388
|
-
}, [o]),
|
|
1388
|
+
}, [o]), b(() => {
|
|
1389
1389
|
if (!n)
|
|
1390
1390
|
return;
|
|
1391
1391
|
const u = n, p = google.maps.event;
|
|
@@ -1401,23 +1401,23 @@ function pt(e) {
|
|
|
1401
1401
|
s,
|
|
1402
1402
|
g,
|
|
1403
1403
|
c
|
|
1404
|
-
]),
|
|
1404
|
+
]), b(() => {
|
|
1405
1405
|
n && l && n.setOptions(l);
|
|
1406
|
-
}, [n, l]),
|
|
1406
|
+
}, [n, l]), b(() => {
|
|
1407
1407
|
f || !h || !n || n.setPosition(h);
|
|
1408
1408
|
}, [f, h, n]), n;
|
|
1409
1409
|
}
|
|
1410
|
-
const
|
|
1411
|
-
const t =
|
|
1410
|
+
const yt = B((e, n) => {
|
|
1411
|
+
const t = vt(e);
|
|
1412
1412
|
return z(n, () => t, [t]), M.createElement(M.Fragment, null);
|
|
1413
1413
|
});
|
|
1414
|
-
|
|
1415
|
-
const
|
|
1416
|
-
const n = R(he), t = R(me), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, i = t == null ? void 0 : t.setContentHandledExternally, a = w(() => document.createElement("div"), []), s =
|
|
1417
|
-
return
|
|
1414
|
+
yt.displayName = "Marker";
|
|
1415
|
+
const Ct = (e) => {
|
|
1416
|
+
const n = R(he), t = R(me), o = n == null ? void 0 : n.marker, r = t == null ? void 0 : t.marker, i = t == null ? void 0 : t.setContentHandledExternally, a = w(() => document.createElement("div"), []), s = G("marker");
|
|
1417
|
+
return b(() => {
|
|
1418
1418
|
if (r && i)
|
|
1419
1419
|
return i(!0), () => i(!1);
|
|
1420
|
-
}, [r, i]),
|
|
1420
|
+
}, [r, i]), b(() => {
|
|
1421
1421
|
if (!r || !s)
|
|
1422
1422
|
return;
|
|
1423
1423
|
const g = Object.assign({}, e), c = new s.PinElement(g);
|
|
@@ -1425,7 +1425,7 @@ const yt = (e) => {
|
|
|
1425
1425
|
r.removeChild(r.firstChild);
|
|
1426
1426
|
return r.append(c), () => {
|
|
1427
1427
|
};
|
|
1428
|
-
}, [r, s, a, e]),
|
|
1428
|
+
}, [r, s, a, e]), b(() => {
|
|
1429
1429
|
var g;
|
|
1430
1430
|
if (r)
|
|
1431
1431
|
return;
|
|
@@ -1441,12 +1441,12 @@ const yt = (e) => {
|
|
|
1441
1441
|
h.removeChild(h.firstChild);
|
|
1442
1442
|
h && h.appendChild(l.element);
|
|
1443
1443
|
}, [o, a, r, e]), oe(e.children, a);
|
|
1444
|
-
},
|
|
1445
|
-
const { children: n } = e, t = R(he), o = R(me), r = t == null ? void 0 : t.marker, i = o == null ? void 0 : o.marker, a = o == null ? void 0 : o.setContentHandledExternally, s = w(() => document.createElement("div"), []), g =
|
|
1446
|
-
return
|
|
1444
|
+
}, bt = (e) => {
|
|
1445
|
+
const { children: n } = e, t = R(he), o = R(me), r = t == null ? void 0 : t.marker, i = o == null ? void 0 : o.marker, a = o == null ? void 0 : o.setContentHandledExternally, s = w(() => document.createElement("div"), []), g = G("marker");
|
|
1446
|
+
return b(() => {
|
|
1447
1447
|
if (i && a)
|
|
1448
1448
|
return a(!0), () => a(!1);
|
|
1449
|
-
}, [i, a]),
|
|
1449
|
+
}, [i, a]), b(() => {
|
|
1450
1450
|
if (!i || !g)
|
|
1451
1451
|
return;
|
|
1452
1452
|
const c = Object.assign({}, e), l = new g.PinElement(c);
|
|
@@ -1454,7 +1454,7 @@ const yt = (e) => {
|
|
|
1454
1454
|
i.removeChild(i.firstChild);
|
|
1455
1455
|
return i.appendChild(l), () => {
|
|
1456
1456
|
};
|
|
1457
|
-
}, [i, g, s, n, e]),
|
|
1457
|
+
}, [i, g, s, n, e]), b(() => {
|
|
1458
1458
|
var c;
|
|
1459
1459
|
if (i)
|
|
1460
1460
|
return;
|
|
@@ -1477,23 +1477,23 @@ const yt = (e) => {
|
|
|
1477
1477
|
n,
|
|
1478
1478
|
e
|
|
1479
1479
|
]), oe(n, s);
|
|
1480
|
-
},
|
|
1480
|
+
}, Tt = (e) => {
|
|
1481
1481
|
var n;
|
|
1482
|
-
const t =
|
|
1482
|
+
const t = G("marker"), o = w(() => t ? typeof customElements < "u" && customElements.get("gmp-pin") !== void 0 : !1, [t]);
|
|
1483
1483
|
if (!t)
|
|
1484
1484
|
return null;
|
|
1485
1485
|
if (o) {
|
|
1486
1486
|
const { glyph: r, glyphSrc: i, glyphText: a } = e, s = N(e, ["glyph", "glyphSrc", "glyphText"]), g = r instanceof URL || typeof r == "string" && r.startsWith("http"), c = a ?? (typeof r == "string" && !g ? r : void 0), l = i ?? (g ? String(r) : void 0);
|
|
1487
|
-
return M.createElement(
|
|
1487
|
+
return M.createElement(bt, Object.assign({}, s, { glyphText: c, glyphSrc: l }));
|
|
1488
1488
|
} else {
|
|
1489
1489
|
const { glyph: r, glyphSrc: i, glyphText: a } = e, s = N(e, ["glyph", "glyphSrc", "glyphText"]), g = (n = r ?? i) !== null && n !== void 0 ? n : a;
|
|
1490
|
-
return M.createElement(
|
|
1490
|
+
return M.createElement(Ct, Object.assign({}, s, { glyph: g }));
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
1493
|
function Et(e) {
|
|
1494
1494
|
var n, t, o;
|
|
1495
1495
|
const { onClick: r, onDrag: i, onDragStart: a, onDragEnd: s, onMouseOver: g, onMouseOut: c, onBoundsChanged: l, bounds: h, defaultBounds: f } = e, u = N(e, ["onClick", "onDrag", "onDragStart", "onDragEnd", "onMouseOver", "onMouseOut", "onBoundsChanged", "bounds", "defaultBounds"]), [p, y] = I(null), d = q(), m = K(Object.assign(Object.assign({}, u), { clickable: (n = u.clickable) !== null && n !== void 0 ? n : !!r, draggable: (t = u.draggable) !== null && t !== void 0 ? t : !!(i || a || s || l), editable: (o = u.editable) !== null && o !== void 0 ? o : !!l }), W);
|
|
1496
|
-
return
|
|
1496
|
+
return b(() => {
|
|
1497
1497
|
if (!d) {
|
|
1498
1498
|
d === void 0 && console.error("<Rectangle> has to be inside a Map component.");
|
|
1499
1499
|
return;
|
|
@@ -1502,29 +1502,70 @@ function Et(e) {
|
|
|
1502
1502
|
return C.setMap(d), y(C), () => {
|
|
1503
1503
|
C.setMap(null), y(null);
|
|
1504
1504
|
};
|
|
1505
|
-
}, [d]),
|
|
1505
|
+
}, [d]), D(p, "click", r), D(p, "drag", i), D(p, "dragstart", a), D(p, "dragend", s), D(p, "mouseover", g), D(p, "mouseout", c), D(p, "bounds_changed", l ? () => {
|
|
1506
1506
|
l(p == null ? void 0 : p.getBounds());
|
|
1507
|
-
} : null),
|
|
1507
|
+
} : null), b(() => {
|
|
1508
1508
|
p && p.setOptions(m);
|
|
1509
|
-
}, [p, m]),
|
|
1509
|
+
}, [p, m]), b(() => {
|
|
1510
1510
|
!p || !h || En(h, p.getBounds()) || p.setBounds(h);
|
|
1511
1511
|
}, [p, h]), p;
|
|
1512
1512
|
}
|
|
1513
|
-
const
|
|
1513
|
+
const Ot = B((e, n) => {
|
|
1514
1514
|
const t = Et(e);
|
|
1515
1515
|
return z(n, () => t, [
|
|
1516
1516
|
t
|
|
1517
1517
|
]), M.createElement(M.Fragment, null);
|
|
1518
1518
|
});
|
|
1519
|
-
|
|
1519
|
+
Ot.displayName = "Rectangle";
|
|
1520
|
+
const Mt = {
|
|
1521
|
+
core: "Settings",
|
|
1522
|
+
maps: "Map"
|
|
1523
|
+
}, De = (e) => {
|
|
1524
|
+
var t;
|
|
1525
|
+
const n = (t = globalThis.google) == null ? void 0 : t.maps;
|
|
1526
|
+
return !n || typeof n.importLibrary != "function" ? !0 : e.every((o) => {
|
|
1527
|
+
const r = Mt[o];
|
|
1528
|
+
return r !== void 0 && typeof n[r] == "function";
|
|
1529
|
+
});
|
|
1530
|
+
};
|
|
1531
|
+
function Nt({
|
|
1532
|
+
libraries: e = [],
|
|
1533
|
+
pending: n,
|
|
1534
|
+
children: t
|
|
1535
|
+
}) {
|
|
1536
|
+
const o = ["core", ...e.filter((s) => s !== "core")], r = o.join(","), [i, a] = I(() => ({
|
|
1537
|
+
status: De(o) ? "ready" : "pending"
|
|
1538
|
+
}));
|
|
1539
|
+
if (b(() => {
|
|
1540
|
+
var c;
|
|
1541
|
+
const s = (c = globalThis.google) == null ? void 0 : c.maps;
|
|
1542
|
+
if (!s || De(r.split(","))) {
|
|
1543
|
+
a({ status: "ready" });
|
|
1544
|
+
return;
|
|
1545
|
+
}
|
|
1546
|
+
let g = !1;
|
|
1547
|
+
return Promise.all(r.split(",").map((l) => {
|
|
1548
|
+
var h;
|
|
1549
|
+
return (h = s.importLibrary) == null ? void 0 : h.call(s, l);
|
|
1550
|
+
})).then(() => {
|
|
1551
|
+
g || a({ status: "ready" });
|
|
1552
|
+
}).catch((l) => {
|
|
1553
|
+
g || a({ status: "failed", error: l });
|
|
1554
|
+
}), () => {
|
|
1555
|
+
g = !0;
|
|
1556
|
+
};
|
|
1557
|
+
}, [r]), i.status === "failed") throw i.error;
|
|
1558
|
+
return i.status === "ready" ? t : n;
|
|
1559
|
+
}
|
|
1520
1560
|
export {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1561
|
+
wt as A,
|
|
1562
|
+
Nt as M,
|
|
1563
|
+
Tt as P,
|
|
1564
|
+
Dn as a,
|
|
1565
|
+
zn as b,
|
|
1566
|
+
yt as c,
|
|
1567
|
+
G as d,
|
|
1568
|
+
q as e,
|
|
1569
|
+
je as u
|
|
1529
1570
|
};
|
|
1530
|
-
//# sourceMappingURL=
|
|
1571
|
+
//# sourceMappingURL=maps-core-gate-DkNqGkm3.js.map
|