@geotrekce/geotrek-rando-widget 0.30.2 → 0.30.4
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/cjs/{call-422e2bf4.js → call-c5b389c7.js} +2 -2
- package/dist/cjs/call-c5b389c7.js.br +0 -0
- package/dist/cjs/call-c5b389c7.js.gz +0 -0
- package/dist/cjs/{call-422e2bf4.js.map → call-c5b389c7.js.map} +1 -1
- package/dist/cjs/grw-app.cjs.entry.js +2 -2
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js +83 -69
- package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
- package/dist/cjs/{grw-db.service-dde227e0.js → grw-db.service-51e2fba4.js} +2 -2
- package/dist/cjs/grw-db.service-51e2fba4.js.br +0 -0
- package/dist/cjs/grw-db.service-51e2fba4.js.gz +0 -0
- package/dist/cjs/{grw-db.service-dde227e0.js.map → grw-db.service-51e2fba4.js.map} +1 -1
- package/dist/cjs/grw-details-modal_8.cjs.entry.js +25 -11
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filter.cjs.entry.js +2 -2
- package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js +5 -5
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js +3 -3
- package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +4 -4
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +1 -1
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
- package/dist/cjs/{outdoor-courses.service-083411f5.js → outdoor-courses.service-9ba0da7e.js} +2 -2
- package/dist/cjs/outdoor-courses.service-9ba0da7e.js.br +0 -0
- package/dist/cjs/outdoor-courses.service-9ba0da7e.js.gz +0 -0
- package/dist/cjs/{outdoor-courses.service-083411f5.js.map → outdoor-courses.service-9ba0da7e.js.map} +1 -1
- package/dist/cjs/{store-65aa11bc.js → store-8c47b811.js} +2 -2
- package/dist/cjs/store-8c47b811.js.br +0 -0
- package/dist/cjs/store-8c47b811.js.gz +0 -0
- package/dist/cjs/{store-65aa11bc.js.map → store-8c47b811.js.map} +1 -1
- package/dist/cjs/{treks.service-14b5765a.js → treks.service-ae2960c8.js} +4 -4
- package/dist/cjs/treks.service-ae2960c8.js.br +0 -0
- package/dist/cjs/treks.service-ae2960c8.js.gz +0 -0
- package/dist/cjs/{treks.service-14b5765a.js.map → treks.service-ae2960c8.js.map} +1 -1
- package/dist/cjs/{utils-5c5c3fee.js → utils-fef97420.js} +3 -3
- package/dist/cjs/utils-fef97420.js.br +0 -0
- package/dist/cjs/utils-fef97420.js.gz +0 -0
- package/dist/cjs/{utils-5c5c3fee.js.map → utils-fef97420.js.map} +1 -1
- package/dist/cjs/{web-87e6d345.js → web-e27fac22.js} +3 -3
- package/dist/cjs/web-e27fac22.js.br +0 -0
- package/dist/cjs/web-e27fac22.js.gz +0 -0
- package/dist/cjs/{web-87e6d345.js.map → web-e27fac22.js.map} +1 -1
- package/dist/collection/components/grw-map/grw-map.js +62 -56
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/store/grw-outdoor-site-provider.js +4 -4
- package/dist/collection/store/grw-outdoor-site-provider.js.br +0 -0
- package/dist/collection/store/grw-outdoor-site-provider.js.gz +0 -0
- package/dist/collection/store/grw-outdoor-site-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-content-provider.js +11 -3
- package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-event-provider.js +9 -3
- package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
- package/dist/collection/store/grw-trek-provider.js +11 -3
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/store.js +1 -1
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/esm/{call-c0c920b0.js → call-df62b17b.js} +2 -2
- package/dist/esm/call-df62b17b.js.br +0 -0
- package/dist/esm/call-df62b17b.js.gz +0 -0
- package/dist/esm/{call-c0c920b0.js.map → call-df62b17b.js.map} +1 -1
- package/dist/esm/grw-app.entry.js +2 -2
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js +83 -69
- package/dist/esm/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm/{grw-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
- package/dist/esm/grw-db.service-a2b2fc8e.js.br +0 -0
- package/dist/esm/grw-db.service-a2b2fc8e.js.gz +0 -0
- package/dist/esm/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +1 -1
- package/dist/esm/grw-details-modal_8.entry.js +25 -11
- package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm/grw-details-modal_8.entry.js.map +1 -1
- package/dist/esm/grw-filter.entry.js +2 -2
- package/dist/esm/grw-filter.entry.js.br +0 -0
- package/dist/esm/grw-filter.entry.js.gz +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js +5 -5
- package/dist/esm/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js +3 -3
- package/dist/esm/grw-poi_3.entry.js.br +0 -0
- package/dist/esm/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js +4 -4
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
- package/dist/esm/outdoor-courses.service-c7fe26df.js.br +0 -0
- package/dist/esm/outdoor-courses.service-c7fe26df.js.gz +0 -0
- package/dist/esm/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +1 -1
- package/dist/esm/{store-882ab9be.js → store-aa921ea2.js} +2 -2
- package/dist/esm/store-aa921ea2.js.br +0 -0
- package/dist/esm/store-aa921ea2.js.gz +0 -0
- package/dist/esm/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
- package/dist/esm/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +4 -4
- package/dist/esm/treks.service-0b98455e.js.br +0 -0
- package/dist/esm/treks.service-0b98455e.js.gz +0 -0
- package/dist/esm/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +1 -1
- package/dist/esm/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
- package/dist/esm/utils-b1ca48b3.js.br +0 -0
- package/dist/esm/utils-b1ca48b3.js.gz +0 -0
- package/dist/esm/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +1 -1
- package/dist/esm/{web-9ea89c85.js → web-08ea09e6.js} +3 -3
- package/dist/esm/web-08ea09e6.js.br +0 -0
- package/dist/esm/web-08ea09e6.js.gz +0 -0
- package/dist/esm/{web-9ea89c85.js.map → web-08ea09e6.js.map} +1 -1
- package/dist/esm-es5/{call-c0c920b0.js → call-df62b17b.js} +2 -2
- package/dist/esm-es5/call-df62b17b.js.br +0 -0
- package/dist/esm-es5/{call-c0c920b0.js.gz → call-df62b17b.js.gz} +0 -0
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js +2 -2
- package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm-es5/{grw-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
- package/dist/esm-es5/grw-db.service-a2b2fc8e.js.br +0 -0
- package/dist/esm-es5/grw-db.service-a2b2fc8e.js.gz +0 -0
- package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
- package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm-es5/grw-details-modal_8.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter.entry.js +1 -1
- package/dist/esm-es5/grw-filter.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js +1 -1
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js +1 -1
- package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +1 -1
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm-es5/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
- package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.br +0 -0
- package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.gz +0 -0
- package/dist/esm-es5/{store-882ab9be.js → store-aa921ea2.js} +2 -2
- package/dist/esm-es5/store-aa921ea2.js.br +0 -0
- package/dist/esm-es5/store-aa921ea2.js.gz +0 -0
- package/dist/esm-es5/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
- package/dist/esm-es5/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +2 -2
- package/dist/esm-es5/treks.service-0b98455e.js.br +0 -0
- package/dist/esm-es5/treks.service-0b98455e.js.gz +0 -0
- package/dist/esm-es5/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
- package/dist/esm-es5/utils-b1ca48b3.js.br +0 -0
- package/dist/esm-es5/utils-b1ca48b3.js.gz +0 -0
- package/dist/esm-es5/{web-9ea89c85.js → web-08ea09e6.js} +2 -2
- package/dist/esm-es5/web-08ea09e6.js.br +0 -0
- package/dist/esm-es5/web-08ea09e6.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-31cd5fb6.system.js → p-06ec8b64.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-06ec8b64.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-06ec8b64.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-e6471529.system.js → p-0e29bbf9.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-e6471529.system.js.map → p-0e29bbf9.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js → p-11622ab2.system.js} +3 -3
- package/dist/geotrek-rando-widget/p-11622ab2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-11622ab2.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js → p-28048cef.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-f0d965b9.system.entry.js → p-2939026a.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js → p-35fa0752.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-35fa0752.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.gz → p-35fa0752.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-0dc681ee.system.js → p-3834a184.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-3834a184.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3834a184.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-111e4a10.entry.js → p-4450a6e3.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-5517eb99.system.js +1 -1
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-c8f5ce61.js → p-5feca333.js} +2 -2
- package/dist/geotrek-rando-widget/p-5feca333.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5feca333.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js → p-643b34f4.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-844f4321.js → p-6d0668a6.js} +3 -3
- package/dist/geotrek-rando-widget/p-6d0668a6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6d0668a6.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d95cfb6f.js → p-7207c87a.js} +2 -2
- package/dist/geotrek-rando-widget/p-7207c87a.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7207c87a.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d95cfb6f.js.map → p-7207c87a.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js → p-722468a0.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-722468a0.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-722468a0.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-91d62770.entry.js → p-83e76a62.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-83e76a62.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-83e76a62.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-38d31358.entry.js → p-9ac8e3ac.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-20fa1207.entry.js → p-9c461972.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9c461972.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9c461972.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6287495f.entry.js → p-ad644267.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ad644267.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ad644267.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js → p-ad6e02a4.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-315f99d3.system.js → p-ae0a8dc1.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-fcbe4bb6.js → p-b0b7e072.js} +2 -2
- package/dist/geotrek-rando-widget/p-b0b7e072.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b0b7e072.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-b1ed0255.js → p-bc36f8a6.js} +2 -2
- package/dist/geotrek-rando-widget/p-bc36f8a6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bc36f8a6.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js → p-cf6d1b66.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js → p-d8126403.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-c61425f6.js → p-e5086616.js} +2 -2
- package/dist/geotrek-rando-widget/p-e5086616.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e5086616.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js → p-e9483fdf.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js → p-ec9a42ab.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js → p-f152b476.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-f152b476.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f152b476.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-76467e71.js → p-f92d0101.js} +2 -2
- package/dist/geotrek-rando-widget/p-f92d0101.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f92d0101.js.gz +0 -0
- package/package.json +1 -1
- package/dist/cjs/call-422e2bf4.js.br +0 -0
- package/dist/cjs/call-422e2bf4.js.gz +0 -0
- package/dist/cjs/grw-db.service-dde227e0.js.br +0 -0
- package/dist/cjs/grw-db.service-dde227e0.js.gz +0 -0
- package/dist/cjs/outdoor-courses.service-083411f5.js.br +0 -0
- package/dist/cjs/outdoor-courses.service-083411f5.js.gz +0 -0
- package/dist/cjs/store-65aa11bc.js.br +0 -0
- package/dist/cjs/store-65aa11bc.js.gz +0 -0
- package/dist/cjs/treks.service-14b5765a.js.br +0 -0
- package/dist/cjs/treks.service-14b5765a.js.gz +0 -0
- package/dist/cjs/utils-5c5c3fee.js.br +0 -0
- package/dist/cjs/utils-5c5c3fee.js.gz +0 -0
- package/dist/cjs/web-87e6d345.js.br +0 -0
- package/dist/cjs/web-87e6d345.js.gz +0 -0
- package/dist/esm/call-c0c920b0.js.br +0 -0
- package/dist/esm/call-c0c920b0.js.gz +0 -0
- package/dist/esm/grw-db.service-83da38c9.js.br +0 -0
- package/dist/esm/grw-db.service-83da38c9.js.gz +0 -0
- package/dist/esm/outdoor-courses.service-d2397066.js.br +0 -0
- package/dist/esm/outdoor-courses.service-d2397066.js.gz +0 -0
- package/dist/esm/store-882ab9be.js.br +0 -0
- package/dist/esm/store-882ab9be.js.gz +0 -0
- package/dist/esm/treks.service-a3ce33ef.js.br +0 -0
- package/dist/esm/treks.service-a3ce33ef.js.gz +0 -0
- package/dist/esm/utils-5feb9281.js.br +0 -0
- package/dist/esm/utils-5feb9281.js.gz +0 -0
- package/dist/esm/web-9ea89c85.js.br +0 -0
- package/dist/esm/web-9ea89c85.js.gz +0 -0
- package/dist/esm-es5/call-c0c920b0.js.br +0 -0
- package/dist/esm-es5/grw-db.service-83da38c9.js.br +0 -0
- package/dist/esm-es5/grw-db.service-83da38c9.js.gz +0 -0
- package/dist/esm-es5/outdoor-courses.service-d2397066.js.br +0 -0
- package/dist/esm-es5/outdoor-courses.service-d2397066.js.gz +0 -0
- package/dist/esm-es5/store-882ab9be.js.br +0 -0
- package/dist/esm-es5/store-882ab9be.js.gz +0 -0
- package/dist/esm-es5/treks.service-a3ce33ef.js.br +0 -0
- package/dist/esm-es5/treks.service-a3ce33ef.js.gz +0 -0
- package/dist/esm-es5/utils-5feb9281.js.br +0 -0
- package/dist/esm-es5/utils-5feb9281.js.gz +0 -0
- package/dist/esm-es5/web-9ea89c85.js.br +0 -0
- package/dist/esm-es5/web-9ea89c85.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0dc681ee.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0dc681ee.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-20fa1207.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-20fa1207.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-315f99d3.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-315f99d3.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-38d31358.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-38d31358.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6287495f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6287495f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-76467e71.js.br +0 -0
- package/dist/geotrek-rando-widget/p-76467e71.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-844f4321.js.br +0 -0
- package/dist/geotrek-rando-widget/p-844f4321.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-91d62770.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-91d62770.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b1ed0255.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b1ed0255.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c61425f6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c61425f6.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c8f5ce61.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c8f5ce61.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d95cfb6f.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d95cfb6f.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e6471529.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e6471529.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fcbe4bb6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fcbe4bb6.js.gz +0 -0
- /package/dist/esm-es5/{call-c0c920b0.js.map → call-df62b17b.js.map} +0 -0
- /package/dist/esm-es5/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +0 -0
- /package/dist/esm-es5/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +0 -0
- /package/dist/esm-es5/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +0 -0
- /package/dist/esm-es5/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +0 -0
- /package/dist/esm-es5/{web-9ea89c85.js.map → web-08ea09e6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-31cd5fb6.system.js.map → p-06ec8b64.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js.map → p-11622ab2.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js.map → p-28048cef.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.map → p-35fa0752.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-0dc681ee.system.js.map → p-3834a184.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-c8f5ce61.js.map → p-5feca333.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js.map → p-643b34f4.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-844f4321.js.map → p-6d0668a6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js.map → p-722468a0.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-91d62770.entry.js.map → p-83e76a62.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-38d31358.entry.js.map → p-9ac8e3ac.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-20fa1207.entry.js.map → p-9c461972.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6287495f.entry.js.map → p-ad644267.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js.map → p-ad6e02a4.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-315f99d3.system.js.map → p-ae0a8dc1.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-fcbe4bb6.js.map → p-b0b7e072.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-b1ed0255.js.map → p-bc36f8a6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js.map → p-cf6d1b66.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js.map → p-d8126403.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-c61425f6.js.map → p-e5086616.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js.map → p-e9483fdf.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js.map → p-ec9a42ab.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js.map → p-f152b476.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-76467e71.js.map → p-f92d0101.js.map} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};import{s as state}from"./store-
|
|
2
|
-
/*! Capacitor: https://capacitorjs.com/ - MIT License */var ExceptionCode;(function(e){e["Unimplemented"]="UNIMPLEMENTED";e["Unavailable"]="UNAVAILABLE"})(ExceptionCode||(ExceptionCode={}));var CapacitorException=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.message=t;i.code=r;i.data=n;return i}return t}(Error);var getPlatformId=function(e){var t,r;if(e===null||e===void 0?void 0:e.androidBridge){return"android"}else if((r=(t=e===null||e===void 0?void 0:e.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||r===void 0?void 0:r.bridge){return"ios"}else{return"web"}};var createCapacitor=function(e){var t,r,n,i,o;var a=e.CapacitorCustomPlatform||null;var u=e.Capacitor||{};var s=u.Plugins=u.Plugins||{};var c=e.CapacitorPlatforms;var f=function(){return a!==null?a.name:getPlatformId(e)};var l=((t=c===null||c===void 0?void 0:c.currentPlatform)===null||t===void 0?void 0:t.getPlatform)||f;var d=function(){return l()!=="web"};var v=((r=c===null||c===void 0?void 0:c.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||d;var p=function(e){var t=w.get(e);if(t===null||t===void 0?void 0:t.platforms.has(l())){return true}if(_(e)){return true}return false};var y=((n=c===null||c===void 0?void 0:c.currentPlatform)===null||n===void 0?void 0:n.isPluginAvailable)||p;var h=function(e){var t;return(t=u.PluginHeaders)===null||t===void 0?void 0:t.find((function(t){return t.name===e}))};var _=((i=c===null||c===void 0?void 0:c.currentPlatform)===null||i===void 0?void 0:i.getPluginHeader)||h;var m=function(t){return e.console.error(t)};var g=function(e,t,r){return Promise.reject("".concat(r,' does not have an implementation of "').concat(t,'".'))};var w=new Map;var A=function(e,t){if(t===void 0){t={}}var r=w.get(e);if(r){console.warn('Capacitor plugin "'.concat(e,'" already registered. Cannot register plugins twice.'));return r.proxy}var n=l();var i=_(e);var o;var c=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:if(!(!o&&n in t))return[3,4];if(!(typeof t[n]==="function"))return[3,2];return[4,t[n]()];case 1:e=o=i.sent();return[3,3];case 2:e=o=t[n];i.label=3;case 3:o=e;return[3,8];case 4:if(!(a!==null&&!o&&"web"in t))return[3,8];if(!(typeof t["web"]==="function"))return[3,6];return[4,t["web"]()];case 5:r=o=i.sent();return[3,7];case 6:r=o=t["web"];i.label=7;case 7:o=r;i.label=8;case 8:return[2,o]}}))}))};var f=function(t,r){var o,a;if(i){var s=i===null||i===void 0?void 0:i.methods.find((function(e){return r===e.name}));if(s){if(s.rtype==="promise"){return function(t){return u.nativePromise(e,r.toString(),t)}}else{return function(t,n){return u.nativeCallback(e,r.toString(),t,n)}}}else if(t){return(o=t[r])===null||o===void 0?void 0:o.bind(t)}}else if(t){return(a=t[r])===null||a===void 0?void 0:a.bind(t)}else{throw new CapacitorException('"'.concat(e,'" plugin is not implemented on ').concat(n),ExceptionCode.Unimplemented)}};var d=function(t){var r;var i=function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var a=c().then((function(o){var a=f(o,t);if(a){var u=a.apply(void 0,i);r=u===null||u===void 0?void 0:u.remove;return u}else{throw new CapacitorException('"'.concat(e,".").concat(t,'()" is not implemented on ').concat(n),ExceptionCode.Unimplemented)}}));if(t==="addListener"){a.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r()]}))}))}}return a};i.toString=function(){return"".concat(t.toString(),"() { [capacitor code] }")};Object.defineProperty(i,"name",{value:t,writable:false,configurable:false});return i};var v=d("addListener");var p=d("removeListener");var y=function(e,t){var r=v({eventName:e},t);var n=function(){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(i){switch(i.label){case 0:return[4,r];case 1:n=i.sent();p({eventName:e,callbackId:n},t);return[2]}}))}))};var i=new Promise((function(e){return r.then((function(){return e({remove:n})}))}));i.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,n()];case 1:e.sent();return[2]}}))}))};return i};var h=new Proxy({},{get:function(e,t){switch(t){case"$$typeof":return undefined;case"toJSON":return function(){return{}};case"addListener":return i?y:v;case"removeListener":return p;default:return d(t)}}});s[e]=h;w.set(e,{name:e,proxy:h,platforms:new Set(__spreadArray(__spreadArray([],Object.keys(t),true),i?[n]:[],true))});return h};var b=((o=c===null||c===void 0?void 0:c.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||A;if(!u.convertFileSrc){u.convertFileSrc=function(e){return e}}u.getPlatform=l;u.handleError=m;u.isNativePlatform=v;u.isPluginAvailable=y;u.pluginMethodNoop=g;u.registerPlugin=b;u.Exception=CapacitorException;u.DEBUG=!!u.DEBUG;u.isLoggingEnabled=!!u.isLoggingEnabled;u.platform=u.getPlatform();u.isNative=u.isNativePlatform();return u};var initCapacitorGlobal=function(e){return e.Capacitor=createCapacitor(e)};var Capacitor=initCapacitorGlobal(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:{});var registerPlugin=Capacitor.registerPlugin;var WebPlugin=function(){function e(e){this.listeners={};this.windowListeners={};if(e){console.warn('Capacitor WebPlugin "'.concat(e.name,'" config object was deprecated in v3 and will be removed in v4.'));this.config=e}}e.prototype.addListener=function(e,t){var r=this;var n=this.listeners[e];if(!n){this.listeners[e]=[]}this.listeners[e].push(t);var i=this.windowListeners[e];if(i&&!i.registered){this.addWindowListener(i)}var o=function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this.removeListener(e,t)]}))}))};var a=Promise.resolve({remove:o});Object.defineProperty(a,"remove",{value:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,o()];case 1:e.sent();return[2]}}))}))}});return a};e.prototype.removeAllListeners=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){this.listeners={};for(e in this.windowListeners){this.removeWindowListener(this.windowListeners[e])}this.windowListeners={};return[2]}))}))};e.prototype.notifyListeners=function(e,t){var r=this.listeners[e];if(r){r.forEach((function(e){return e(t)}))}};e.prototype.hasListeners=function(e){return!!this.listeners[e].length};e.prototype.registerWindowListener=function(e,t){var r=this;this.windowListeners[t]={registered:false,windowEventName:e,pluginEventName:t,handler:function(e){r.notifyListeners(t,e)}}};e.prototype.unimplemented=function(e){if(e===void 0){e="not implemented"}return new Capacitor.Exception(e,ExceptionCode.Unimplemented)};e.prototype.unavailable=function(e){if(e===void 0){e="not available"}return new Capacitor.Exception(e,ExceptionCode.Unavailable)};e.prototype.removeListener=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){r=this.listeners[e];if(!r){return[2]}n=r.indexOf(t);this.listeners[e].splice(n,1);if(!this.listeners[e].length){this.removeWindowListener(this.windowListeners[e])}return[2]}))}))};e.prototype.addWindowListener=function(e){window.addEventListener(e.windowEventName,e.handler);e.registered=true};e.prototype.removeWindowListener=function(e){if(!e){return}window.removeEventListener(e.windowEventName,e.handler);e.registered=false};return e}();var encode=function(e){return encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)};var decode=function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)};var CapacitorCookiesPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){e=document.cookie;t={};e.split(";").forEach((function(e){if(e.length<=0)return;var r=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE"),n=r[0],i=r[1];n=decode(n).trim();i=decode(i).trim();t[n]=i}));return[2,t]}))}))};t.prototype.setCookie=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o;return __generator(this,(function(a){try{t=encode(e.key);r=encode(e.value);n="; expires=".concat((e.expires||"").replace("expires=",""));i=(e.path||"/").replace("path=","");o=e.url!=null&&e.url.length>0?"domain=".concat(e.url):"";document.cookie="".concat(t,"=").concat(r||"").concat(n,"; path=").concat(i,"; ").concat(o,";")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.deleteCookie=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{document.cookie="".concat(e.key,"=; Max-Age=0")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){try{e=document.cookie.split(";")||[];for(t=0,r=e;t<r.length;t++){n=r[t];document.cookie=n.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat((new Date).toUTCString(),";path=/"))}}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearAllCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,this.clearCookies()];case 1:t.sent();return[3,3];case 2:e=t.sent();return[2,Promise.reject(e)];case 3:return[2]}}))}))};return t}(WebPlugin);registerPlugin("CapacitorCookies",{web:function(){return new CapacitorCookiesPluginWeb}});var readBlobAsBase64=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,new Promise((function(t,r){var n=new FileReader;n.onload=function(){var e=n.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)};n.onerror=function(e){return r(e)};n.readAsDataURL(e)}))]}))}))};var normalizeHttpHeaders=function(e){if(e===void 0){e={}}var t=Object.keys(e);var r=Object.keys(e).map((function(e){return e.toLocaleLowerCase()}));var n=r.reduce((function(r,n,i){r[n]=e[t[i]];return r}),{});return n};var buildUrlParams=function(e,t){if(t===void 0){t=true}if(!e)return null;var r=Object.entries(e).reduce((function(e,r){var n=r[0],i=r[1];var o;var a;if(Array.isArray(i)){a="";i.forEach((function(e){o=t?encodeURIComponent(e):e;a+="".concat(n,"=").concat(o,"&")}));a.slice(0,-1)}else{o=t?encodeURIComponent(i):i;a="".concat(n,"=").concat(o)}return"".concat(e,"&").concat(a)}),"");return r.substr(1)};var buildRequestInit=function(e,t){if(t===void 0){t={}}var r=Object.assign({method:e.method||"GET",headers:e.headers},t);var n=normalizeHttpHeaders(e.headers);var i=n["content-type"]||"";if(typeof e.data==="string"){r.body=e.data}else if(i.includes("application/x-www-form-urlencoded")){var o=new URLSearchParams;for(var a=0,u=Object.entries(e.data||{});a<u.length;a++){var s=u[a],c=s[0],f=s[1];o.set(c,f)}r.body=o.toString()}else if(i.includes("multipart/form-data")||e.data instanceof FormData){var l=new FormData;if(e.data instanceof FormData){e.data.forEach((function(e,t){l.append(t,e)}))}else{for(var d=0,v=Object.keys(e.data);d<v.length;d++){var c=v[d];l.append(c,e.data[c])}}r.body=l;var p=new Headers(r.headers);p.delete("content-type");r.headers=p}else if(i.includes("application/json")||typeof e.data==="object"){r.body=JSON.stringify(e.data)}return r};var CapacitorHttpPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.request=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,u,s,c,f,l;return __generator(this,(function(d){switch(d.label){case 0:t=buildRequestInit(e,e.webFetchExtra);r=buildUrlParams(e.params,e.shouldEncodeUrlParams);n=r?"".concat(e.url,"?").concat(r):e.url;return[4,fetch(n,t)];case 1:i=d.sent();o=i.headers.get("content-type")||"";a=(i.ok?e:{}).responseType,u=a===void 0?"text":a;if(o.includes("application/json")){u="json"}f=u;switch(f){case"arraybuffer":return[3,2];case"blob":return[3,2];case"json":return[3,5];case"document":return[3,7];case"text":return[3,7]}return[3,7];case 2:return[4,i.blob()];case 3:c=d.sent();return[4,readBlobAsBase64(c)];case 4:s=d.sent();return[3,9];case 5:return[4,i.json()];case 6:s=d.sent();return[3,9];case 7:return[4,i.text()];case 8:s=d.sent();d.label=9;case 9:l={};i.headers.forEach((function(e,t){l[t]=e}));return[2,{data:s,headers:l,status:i.status,url:i.url}]}}))}))};t.prototype.get=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"GET"}))]}))}))};t.prototype.post=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"POST"}))]}))}))};t.prototype.put=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PUT"}))]}))}))};t.prototype.patch=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))]}))}))};t.prototype.delete=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))]}))}))};return t}(WebPlugin);registerPlugin("CapacitorHttp",{web:function(){return new CapacitorHttpPluginWeb}});var Directory;(function(e){e["Documents"]="DOCUMENTS";e["Data"]="DATA";e["Library"]="LIBRARY";e["Cache"]="CACHE";e["External"]="EXTERNAL";e["ExternalStorage"]="EXTERNAL_STORAGE"})(Directory||(Directory={}));var Encoding;(function(e){e["UTF8"]="utf8";e["ASCII"]="ascii";e["UTF16"]="utf16"})(Encoding||(Encoding={}));var Filesystem=registerPlugin("Filesystem",{web:function(){return import("./web-9ea89c85.js").then((function(e){return new e.FilesystemWeb}))}});function formatDuration(e){var t="";if(e<24){if(Math.floor(e)!==0){t+="".concat(Math.floor(e),"h")}if(e%1>0){t+="".concat(Math.round(60*(e%1)),"min")}}else{t+="".concat(Math.round(e/24),"j")}return t}function formatLength(e){return"".concat(Math.round(e/1e3),"km")}function formatAscent(e){return"+".concat(e,"m")}function formatDescent(e){return"".concat(e,"m")}var treksFilters=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicContentsFilters=[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicEventsFilters=[{property:"touristicEventTypes",touristicEventProperty:"type",touristicEventPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicEventProperty:"cities",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicEventProperty:"districts",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var outdoorSitesFilters=[{property:"outdoorPractices",outdoorSiteProperty:"practice",outdoorSitePropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"outdoorSiteTypes",outdoorSiteProperty:"type",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",outdoorSiteProperty:"cities",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",outdoorSiteProperty:"districts",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"themes",outdoorSiteProperty:"themes",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedThemesFilters"}];function handleTreksFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.trekProperty]>=n.minValue&&e[r.trekProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.treks.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty]>=i&&e[r.trekProperty]<=o})),true)}}}};for(var n=0,i=treksFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.treks;a=a.filter((function(e){return!state.offlineTreks||state.offlineTreks&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicContentsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicContentProperty]>=n.minValue&&e[r.touristicContentProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicContents.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty]>=i&&e[r.touristicContentProperty]<=o})),true)}}}};for(var n=0,i=touristicContentsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicContents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicEventsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicEventProperty]>=n.minValue&&e[r.touristicEventProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicEvents.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty]>=i&&e[r.touristicEventProperty]<=o})),true)}}}};for(var n=0,i=touristicEventsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicEvents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleOutdoorSitesFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.outdoorSiteProperty]>=n.minValue&&e[r.outdoorSiteProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.outdoorSites.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty]>=i&&e[r.outdoorSiteProperty]<=o})),true)}}}};for(var n=0,i=outdoorSitesFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.outdoorSites;a=a.filter((function(e){return!state.offlineOutdoorSites||state.offlineOutdoorSites&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}var durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];var lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];var elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];function getFilesToStore(e,t,r,n){if(r===void 0){r=false}if(n===void 0){n=[]}var i=[];for(var o=0,a=Object.keys(e);o<a.length;o++){var u=a[o];if(e[u]){if(typeof e[u]==="object"&&(!Array.isArray(e[u])||!r)){i.push.apply(i,getFilesToStore(e[u],t,r,n))}else if(typeof e[u]==="string"&&t.test(e[u].toLowerCase())){if(!n.includes(u)){i.push(e[u])}}else if(typeof e[u]==="object"&&Array.isArray(e[u])&&r&&e[u].length>0){i.push.apply(i,getFilesToStore(e[u][0],t,r,n))}}}return __spreadArray([],new Set(i),true)}function setFilesFromStore(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,8];o=i[n];if(!e[o])return[3,7];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,7];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,7];if(!!r.includes(o))return[3,7];if(!!Capacitor.isNativePlatform())return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){e[o]=window.URL.createObjectURL(a.data)}return[3,7];case 5:return[4,Filesystem.getUri({path:e[o],directory:Directory.Data})];case 6:a=u.sent();if(a){e[o]=Capacitor.convertFileSrc(a.uri)}u.label=7;case 7:n++;return[3,1];case 8:return[2]}}))}))}function revokeObjectURL(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,6];o=i[n];if(!!r.includes(o))return[3,5];if(!e[o])return[3,5];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,5];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){URL.revokeObjectURL(e[o])}u.label=5;case 5:n++;return[3,1];case 6:return[2]}}))}))}var imagesRegExp=new RegExp("^(http(s)?://|www.).*(.png|.jpg|.jpeg|.svg)$");function getFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.readFile({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function checkFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.stat({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function getAllPaginatedResults(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,u,s;return __generator(this,(function(c){switch(c.label){case 0:return[4,fetch(e,t)];case 1:r=c.sent();return[4,r.json()];case 2:n=c.sent();i=n.results;o=n.next;c.label=3;case 3:if(!o)return[3,6];return[4,fetch(o,t)];case 4:a=c.sent();return[4,a.json()];case 5:u=c.sent();i=i.concat(u.results);o=u.next;return[3,3];case 6:s=new Response(JSON.stringify(Object.assign(Object.assign({},n),{results:i,next:null,count:i.length})));return[2,s]}}))}))}export{Capacitor as C,Directory as D,Encoding as E,Filesystem as F,WebPlugin as W,handleOutdoorSitesFiltersAndSearch as a,registerPlugin as b,checkFileInStore as c,getAllPaginatedResults as d,touristicContentsFilters as e,touristicEventsFilters as f,getFilesToStore as g,handleTreksFiltersAndSearch as h,imagesRegExp as i,handleTouristicContentsFiltersAndSearch as j,handleTouristicEventsFiltersAndSearch as k,getFileInStore as l,formatDuration as m,formatLength as n,outdoorSitesFilters as o,formatAscent as p,formatDescent as q,revokeObjectURL as r,setFilesFromStore as s,treksFilters as t,durations as u,lengths as v,elevations as w,buildRequestInit as x};
|
|
3
|
-
//# sourceMappingURL=utils-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};import{s as state}from"./store-aa921ea2.js";
|
|
2
|
+
/*! Capacitor: https://capacitorjs.com/ - MIT License */var ExceptionCode;(function(e){e["Unimplemented"]="UNIMPLEMENTED";e["Unavailable"]="UNAVAILABLE"})(ExceptionCode||(ExceptionCode={}));var CapacitorException=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.message=t;i.code=r;i.data=n;return i}return t}(Error);var getPlatformId=function(e){var t,r;if(e===null||e===void 0?void 0:e.androidBridge){return"android"}else if((r=(t=e===null||e===void 0?void 0:e.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||r===void 0?void 0:r.bridge){return"ios"}else{return"web"}};var createCapacitor=function(e){var t,r,n,i,o;var a=e.CapacitorCustomPlatform||null;var u=e.Capacitor||{};var s=u.Plugins=u.Plugins||{};var c=e.CapacitorPlatforms;var f=function(){return a!==null?a.name:getPlatformId(e)};var l=((t=c===null||c===void 0?void 0:c.currentPlatform)===null||t===void 0?void 0:t.getPlatform)||f;var d=function(){return l()!=="web"};var v=((r=c===null||c===void 0?void 0:c.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||d;var p=function(e){var t=w.get(e);if(t===null||t===void 0?void 0:t.platforms.has(l())){return true}if(_(e)){return true}return false};var y=((n=c===null||c===void 0?void 0:c.currentPlatform)===null||n===void 0?void 0:n.isPluginAvailable)||p;var h=function(e){var t;return(t=u.PluginHeaders)===null||t===void 0?void 0:t.find((function(t){return t.name===e}))};var _=((i=c===null||c===void 0?void 0:c.currentPlatform)===null||i===void 0?void 0:i.getPluginHeader)||h;var m=function(t){return e.console.error(t)};var g=function(e,t,r){return Promise.reject("".concat(r,' does not have an implementation of "').concat(t,'".'))};var w=new Map;var A=function(e,t){if(t===void 0){t={}}var r=w.get(e);if(r){console.warn('Capacitor plugin "'.concat(e,'" already registered. Cannot register plugins twice.'));return r.proxy}var n=l();var i=_(e);var o;var c=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,r;return __generator(this,(function(i){switch(i.label){case 0:if(!(!o&&n in t))return[3,4];if(!(typeof t[n]==="function"))return[3,2];return[4,t[n]()];case 1:e=o=i.sent();return[3,3];case 2:e=o=t[n];i.label=3;case 3:o=e;return[3,8];case 4:if(!(a!==null&&!o&&"web"in t))return[3,8];if(!(typeof t["web"]==="function"))return[3,6];return[4,t["web"]()];case 5:r=o=i.sent();return[3,7];case 6:r=o=t["web"];i.label=7;case 7:o=r;i.label=8;case 8:return[2,o]}}))}))};var f=function(t,r){var o,a;if(i){var s=i===null||i===void 0?void 0:i.methods.find((function(e){return r===e.name}));if(s){if(s.rtype==="promise"){return function(t){return u.nativePromise(e,r.toString(),t)}}else{return function(t,n){return u.nativeCallback(e,r.toString(),t,n)}}}else if(t){return(o=t[r])===null||o===void 0?void 0:o.bind(t)}}else if(t){return(a=t[r])===null||a===void 0?void 0:a.bind(t)}else{throw new CapacitorException('"'.concat(e,'" plugin is not implemented on ').concat(n),ExceptionCode.Unimplemented)}};var d=function(t){var r;var i=function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}var a=c().then((function(o){var a=f(o,t);if(a){var u=a.apply(void 0,i);r=u===null||u===void 0?void 0:u.remove;return u}else{throw new CapacitorException('"'.concat(e,".").concat(t,'()" is not implemented on ').concat(n),ExceptionCode.Unimplemented)}}));if(t==="addListener"){a.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r()]}))}))}}return a};i.toString=function(){return"".concat(t.toString(),"() { [capacitor code] }")};Object.defineProperty(i,"name",{value:t,writable:false,configurable:false});return i};var v=d("addListener");var p=d("removeListener");var y=function(e,t){var r=v({eventName:e},t);var n=function(){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(i){switch(i.label){case 0:return[4,r];case 1:n=i.sent();p({eventName:e,callbackId:n},t);return[2]}}))}))};var i=new Promise((function(e){return r.then((function(){return e({remove:n})}))}));i.remove=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,n()];case 1:e.sent();return[2]}}))}))};return i};var h=new Proxy({},{get:function(e,t){switch(t){case"$$typeof":return undefined;case"toJSON":return function(){return{}};case"addListener":return i?y:v;case"removeListener":return p;default:return d(t)}}});s[e]=h;w.set(e,{name:e,proxy:h,platforms:new Set(__spreadArray(__spreadArray([],Object.keys(t),true),i?[n]:[],true))});return h};var b=((o=c===null||c===void 0?void 0:c.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||A;if(!u.convertFileSrc){u.convertFileSrc=function(e){return e}}u.getPlatform=l;u.handleError=m;u.isNativePlatform=v;u.isPluginAvailable=y;u.pluginMethodNoop=g;u.registerPlugin=b;u.Exception=CapacitorException;u.DEBUG=!!u.DEBUG;u.isLoggingEnabled=!!u.isLoggingEnabled;u.platform=u.getPlatform();u.isNative=u.isNativePlatform();return u};var initCapacitorGlobal=function(e){return e.Capacitor=createCapacitor(e)};var Capacitor=initCapacitorGlobal(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:{});var registerPlugin=Capacitor.registerPlugin;var WebPlugin=function(){function e(e){this.listeners={};this.windowListeners={};if(e){console.warn('Capacitor WebPlugin "'.concat(e.name,'" config object was deprecated in v3 and will be removed in v4.'));this.config=e}}e.prototype.addListener=function(e,t){var r=this;var n=this.listeners[e];if(!n){this.listeners[e]=[]}this.listeners[e].push(t);var i=this.windowListeners[e];if(i&&!i.registered){this.addWindowListener(i)}var o=function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this.removeListener(e,t)]}))}))};var a=Promise.resolve({remove:o});Object.defineProperty(a,"remove",{value:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,o()];case 1:e.sent();return[2]}}))}))}});return a};e.prototype.removeAllListeners=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){this.listeners={};for(e in this.windowListeners){this.removeWindowListener(this.windowListeners[e])}this.windowListeners={};return[2]}))}))};e.prototype.notifyListeners=function(e,t){var r=this.listeners[e];if(r){r.forEach((function(e){return e(t)}))}};e.prototype.hasListeners=function(e){return!!this.listeners[e].length};e.prototype.registerWindowListener=function(e,t){var r=this;this.windowListeners[t]={registered:false,windowEventName:e,pluginEventName:t,handler:function(e){r.notifyListeners(t,e)}}};e.prototype.unimplemented=function(e){if(e===void 0){e="not implemented"}return new Capacitor.Exception(e,ExceptionCode.Unimplemented)};e.prototype.unavailable=function(e){if(e===void 0){e="not available"}return new Capacitor.Exception(e,ExceptionCode.Unavailable)};e.prototype.removeListener=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n;return __generator(this,(function(i){r=this.listeners[e];if(!r){return[2]}n=r.indexOf(t);this.listeners[e].splice(n,1);if(!this.listeners[e].length){this.removeWindowListener(this.windowListeners[e])}return[2]}))}))};e.prototype.addWindowListener=function(e){window.addEventListener(e.windowEventName,e.handler);e.registered=true};e.prototype.removeWindowListener=function(e){if(!e){return}window.removeEventListener(e.windowEventName,e.handler);e.registered=false};return e}();var encode=function(e){return encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)};var decode=function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)};var CapacitorCookiesPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.getCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){e=document.cookie;t={};e.split(";").forEach((function(e){if(e.length<=0)return;var r=e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE"),n=r[0],i=r[1];n=decode(n).trim();i=decode(i).trim();t[n]=i}));return[2,t]}))}))};t.prototype.setCookie=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o;return __generator(this,(function(a){try{t=encode(e.key);r=encode(e.value);n="; expires=".concat((e.expires||"").replace("expires=",""));i=(e.path||"/").replace("path=","");o=e.url!=null&&e.url.length>0?"domain=".concat(e.url):"";document.cookie="".concat(t,"=").concat(r||"").concat(n,"; path=").concat(i,"; ").concat(o,";")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.deleteCookie=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){try{document.cookie="".concat(e.key,"=; Max-Age=0")}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(i){try{e=document.cookie.split(";")||[];for(t=0,r=e;t<r.length;t++){n=r[t];document.cookie=n.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat((new Date).toUTCString(),";path=/"))}}catch(e){return[2,Promise.reject(e)]}return[2]}))}))};t.prototype.clearAllCookies=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,this.clearCookies()];case 1:t.sent();return[3,3];case 2:e=t.sent();return[2,Promise.reject(e)];case 3:return[2]}}))}))};return t}(WebPlugin);registerPlugin("CapacitorCookies",{web:function(){return new CapacitorCookiesPluginWeb}});var readBlobAsBase64=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,new Promise((function(t,r){var n=new FileReader;n.onload=function(){var e=n.result;t(e.indexOf(",")>=0?e.split(",")[1]:e)};n.onerror=function(e){return r(e)};n.readAsDataURL(e)}))]}))}))};var normalizeHttpHeaders=function(e){if(e===void 0){e={}}var t=Object.keys(e);var r=Object.keys(e).map((function(e){return e.toLocaleLowerCase()}));var n=r.reduce((function(r,n,i){r[n]=e[t[i]];return r}),{});return n};var buildUrlParams=function(e,t){if(t===void 0){t=true}if(!e)return null;var r=Object.entries(e).reduce((function(e,r){var n=r[0],i=r[1];var o;var a;if(Array.isArray(i)){a="";i.forEach((function(e){o=t?encodeURIComponent(e):e;a+="".concat(n,"=").concat(o,"&")}));a.slice(0,-1)}else{o=t?encodeURIComponent(i):i;a="".concat(n,"=").concat(o)}return"".concat(e,"&").concat(a)}),"");return r.substr(1)};var buildRequestInit=function(e,t){if(t===void 0){t={}}var r=Object.assign({method:e.method||"GET",headers:e.headers},t);var n=normalizeHttpHeaders(e.headers);var i=n["content-type"]||"";if(typeof e.data==="string"){r.body=e.data}else if(i.includes("application/x-www-form-urlencoded")){var o=new URLSearchParams;for(var a=0,u=Object.entries(e.data||{});a<u.length;a++){var s=u[a],c=s[0],f=s[1];o.set(c,f)}r.body=o.toString()}else if(i.includes("multipart/form-data")||e.data instanceof FormData){var l=new FormData;if(e.data instanceof FormData){e.data.forEach((function(e,t){l.append(t,e)}))}else{for(var d=0,v=Object.keys(e.data);d<v.length;d++){var c=v[d];l.append(c,e.data[c])}}r.body=l;var p=new Headers(r.headers);p.delete("content-type");r.headers=p}else if(i.includes("application/json")||typeof e.data==="object"){r.body=JSON.stringify(e.data)}return r};var CapacitorHttpPluginWeb=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.request=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,u,s,c,f,l;return __generator(this,(function(d){switch(d.label){case 0:t=buildRequestInit(e,e.webFetchExtra);r=buildUrlParams(e.params,e.shouldEncodeUrlParams);n=r?"".concat(e.url,"?").concat(r):e.url;return[4,fetch(n,t)];case 1:i=d.sent();o=i.headers.get("content-type")||"";a=(i.ok?e:{}).responseType,u=a===void 0?"text":a;if(o.includes("application/json")){u="json"}f=u;switch(f){case"arraybuffer":return[3,2];case"blob":return[3,2];case"json":return[3,5];case"document":return[3,7];case"text":return[3,7]}return[3,7];case 2:return[4,i.blob()];case 3:c=d.sent();return[4,readBlobAsBase64(c)];case 4:s=d.sent();return[3,9];case 5:return[4,i.json()];case 6:s=d.sent();return[3,9];case 7:return[4,i.text()];case 8:s=d.sent();d.label=9;case 9:l={};i.headers.forEach((function(e,t){l[t]=e}));return[2,{data:s,headers:l,status:i.status,url:i.url}]}}))}))};t.prototype.get=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"GET"}))]}))}))};t.prototype.post=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"POST"}))]}))}))};t.prototype.put=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PUT"}))]}))}))};t.prototype.patch=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))]}))}))};t.prototype.delete=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))]}))}))};return t}(WebPlugin);registerPlugin("CapacitorHttp",{web:function(){return new CapacitorHttpPluginWeb}});var Directory;(function(e){e["Documents"]="DOCUMENTS";e["Data"]="DATA";e["Library"]="LIBRARY";e["Cache"]="CACHE";e["External"]="EXTERNAL";e["ExternalStorage"]="EXTERNAL_STORAGE"})(Directory||(Directory={}));var Encoding;(function(e){e["UTF8"]="utf8";e["ASCII"]="ascii";e["UTF16"]="utf16"})(Encoding||(Encoding={}));var Filesystem=registerPlugin("Filesystem",{web:function(){return import("./web-08ea09e6.js").then((function(e){return new e.FilesystemWeb}))}});function formatDuration(e){var t="";if(e<24){if(Math.floor(e)!==0){t+="".concat(Math.floor(e),"h")}if(e%1>0){t+="".concat(Math.round(60*(e%1)),"min")}}else{t+="".concat(Math.round(e/24),"j")}return t}function formatLength(e){return"".concat(Math.round(e/1e3),"km")}function formatAscent(e){return"+".concat(e,"m")}function formatDescent(e){return"".concat(e,"m")}var treksFilters=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicContentsFilters=[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var touristicEventsFilters=[{property:"touristicEventTypes",touristicEventProperty:"type",touristicEventPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicEventProperty:"cities",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicEventProperty:"districts",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var outdoorSitesFilters=[{property:"outdoorPractices",outdoorSiteProperty:"practice",outdoorSitePropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"outdoorSiteTypes",outdoorSiteProperty:"type",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",outdoorSiteProperty:"cities",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",outdoorSiteProperty:"districts",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"themes",outdoorSiteProperty:"themes",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedThemesFilters"}];function handleTreksFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.trekProperty]>=n.minValue&&e[r.trekProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.trekPropertyIsArray){t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.treks.filter((function(e){return n.includes(e[r.trekProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.treks.filter((function(e){return e[r.trekProperty]>=i&&e[r.trekProperty]<=o})),true)}}}};for(var n=0,i=treksFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.treks;a=a.filter((function(e){return!state.offlineTreks||state.offlineTreks&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicContentsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicContentProperty]>=n.minValue&&e[r.touristicContentProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicContentPropertyIsArray){t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicContents.filter((function(e){return n.includes(e[r.touristicContentProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicContents.filter((function(e){return e[r.touristicContentProperty]>=i&&e[r.touristicContentProperty]<=o})),true)}}}};for(var n=0,i=touristicContentsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicContents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleTouristicEventsFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.touristicEventProperty]>=n.minValue&&e[r.touristicEventProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.touristicEventPropertyIsArray){t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.touristicEvents.filter((function(e){return n.includes(e[r.touristicEventProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.touristicEvents.filter((function(e){return e[r.touristicEventProperty]>=i&&e[r.touristicEventProperty]<=o})),true)}}}};for(var n=0,i=touristicEventsFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.touristicEvents;return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}function handleOutdoorSitesFiltersAndSearch(){var e=false;var t=[];var r=function(r){var n=state[r.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(n.length>0){if(t.length>0){if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var n=state[r.property].find((function(e){return e.id===t}));if(e[r.outdoorSiteProperty]>=n.minValue&&e[r.outdoorSiteProperty]<=n.maxValue){return{value:true}}};for(var i=0,o=n;i<o.length;i++){var a=o[i];var u=t(a);if(typeof u==="object")return u.value}return false})),true)}}else{if(!e){e=true}if(r.type==="include"){if(r.outdoorSitePropertyIsArray){t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty].some((function(e){return n.includes(e)}))})),true)}else{t=__spreadArray([],state.outdoorSites.filter((function(e){return n.includes(e[r.outdoorSiteProperty])})),true)}}else if(r.type==="interval"){var i;var o;var a=function(e){var t=state[r.property].find((function(t){return t.id===e}));if(isNaN(i)||t.minValue<i){i=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var u=0,s=n;u<s.length;u++){var c=s[u];a(c)}t=__spreadArray([],state.outdoorSites.filter((function(e){return e[r.outdoorSiteProperty]>=i&&e[r.outdoorSiteProperty]<=o})),true)}}}};for(var n=0,i=outdoorSitesFilters;n<i.length;n++){var o=i[n];r(o)}var a=e?t:state.outdoorSites;a=a.filter((function(e){return!state.offlineOutdoorSites||state.offlineOutdoorSites&&e.offline}));return Boolean(state.searchValue)?a.filter((function(e){return e.name.toLowerCase().includes(state.searchValue.toLowerCase())})):a}var durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];var lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];var elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];function getFilesToStore(e,t,r,n){if(r===void 0){r=false}if(n===void 0){n=[]}var i=[];for(var o=0,a=Object.keys(e);o<a.length;o++){var u=a[o];if(e[u]){if(typeof e[u]==="object"&&(!Array.isArray(e[u])||!r)){i.push.apply(i,getFilesToStore(e[u],t,r,n))}else if(typeof e[u]==="string"&&t.test(e[u].toLowerCase())){if(!n.includes(u)){i.push(e[u])}}else if(typeof e[u]==="object"&&Array.isArray(e[u])&&r&&e[u].length>0){i.push.apply(i,getFilesToStore(e[u][0],t,r,n))}}}return __spreadArray([],new Set(i),true)}function setFilesFromStore(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,8];o=i[n];if(!e[o])return[3,7];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,7];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,7];if(!!r.includes(o))return[3,7];if(!!Capacitor.isNativePlatform())return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){e[o]=window.URL.createObjectURL(a.data)}return[3,7];case 5:return[4,Filesystem.getUri({path:e[o],directory:Directory.Data})];case 6:a=u.sent();if(a){e[o]=Capacitor.convertFileSrc(a.uri)}u.label=7;case 7:n++;return[3,1];case 8:return[2]}}))}))}function revokeObjectURL(e,t){return __awaiter(this,arguments,void 0,(function(e,t,r){var n,i,o,a;if(r===void 0){r=[]}return __generator(this,(function(u){switch(u.label){case 0:n=0,i=Object.keys(e);u.label=1;case 1:if(!(n<i.length))return[3,6];o=i[n];if(!!r.includes(o))return[3,5];if(!e[o])return[3,5];if(!(typeof e[o]==="object"))return[3,3];return[4,setFilesFromStore(e[o],t)];case 2:u.sent();return[3,5];case 3:if(!(typeof e[o]==="string"&&t.test(e[o].toLowerCase())))return[3,5];return[4,getFileInStore(e[o])];case 4:a=u.sent();if(a){URL.revokeObjectURL(e[o])}u.label=5;case 5:n++;return[3,1];case 6:return[2]}}))}))}var imagesRegExp=new RegExp("^(http(s)?://|www.).*(.png|.jpg|.jpeg|.svg)$");function getFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.readFile({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function checkFileInStore(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Filesystem.stat({path:e,directory:Directory.Data}).catch((function(){return null}))];case 1:t=r.sent();return[2,t]}}))}))}function getAllPaginatedResults(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,u,s;return __generator(this,(function(c){switch(c.label){case 0:return[4,fetch(e,t)];case 1:r=c.sent();return[4,r.json()];case 2:n=c.sent();i=n.results;o=n.next;c.label=3;case 3:if(!o)return[3,6];return[4,fetch(o,t)];case 4:a=c.sent();return[4,a.json()];case 5:u=c.sent();i=i.concat(u.results);o=u.next;return[3,3];case 6:s=new Response(JSON.stringify(Object.assign(Object.assign({},n),{results:i,next:null,count:i.length})));return[2,s]}}))}))}export{Capacitor as C,Directory as D,Encoding as E,Filesystem as F,WebPlugin as W,handleOutdoorSitesFiltersAndSearch as a,registerPlugin as b,checkFileInStore as c,getAllPaginatedResults as d,touristicContentsFilters as e,touristicEventsFilters as f,getFilesToStore as g,handleTreksFiltersAndSearch as h,imagesRegExp as i,handleTouristicContentsFiltersAndSearch as j,handleTouristicEventsFiltersAndSearch as k,getFileInStore as l,formatDuration as m,formatLength as n,outdoorSitesFilters as o,formatAscent as p,formatDescent as q,revokeObjectURL as r,setFilesFromStore as s,treksFilters as t,durations as u,lengths as v,elevations as w,buildRequestInit as x};
|
|
3
|
+
//# sourceMappingURL=utils-b1ca48b3.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(r,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))t[e]=r[e]};return t(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,r,e,n){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?e(t.value):i(t.value).then(u,a)}s((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(e=0)),e)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1];o=a;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(a);break}if(o[2])e.ops.pop();e.trys.pop();continue}a=r.call(t,e)}catch(t){a=[6,t];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{W as WebPlugin,x as buildRequestInit,E as Encoding}from"./utils-5feb9281.js";import"./store-882ab9be.js";import"./index-83d78b30.js";function resolve(t){var r=t.split("/").filter((function(t){return t!=="."}));var e=[];r.forEach((function(t){if(t===".."&&e.length>0&&e[e.length-1]!==".."){e.pop()}else{e.push(t)}}));return e.join("/")}function isPathParent(t,r){t=resolve(t);r=resolve(r);var e=t.split("/");var n=r.split("/");return t!==r&&e.every((function(t,r){return t===n[r]}))}var FilesystemWeb=function(t){__extends(r,t);function r(){var r=t.apply(this,arguments)||this;r.DB_VERSION=1;r.DB_NAME="Disc";r._writeCmds=["add","put","delete"];r.downloadFile=function(t){return __awaiter(r,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b;return __generator(this,(function(m){switch(m.label){case 0:n=buildRequestInit(t,t.webFetchExtra);return[4,fetch(t.url,n)];case 1:i=m.sent();if(!!t.progress)return[3,3];return[4,i.blob()];case 2:o=m.sent();return[3,8];case 3:if(!!(i===null||i===void 0?void 0:i.body))return[3,4];o=new Blob;return[3,8];case 4:u=i.body.getReader();a=0;s=[];c=i.headers.get("content-type");f=parseInt(i.headers.get("content-length")||"0",10);m.label=5;case 5:if(!true)return[3,7];return[4,u.read()];case 6:h=m.sent(),d=h.done,v=h.value;if(d)return[3,7];s.push(v);a+=(v===null||v===void 0?void 0:v.length)||0;l={url:t.url,bytes:a,contentLength:f};this.notifyListeners("progress",l);return[3,5];case 7:_=new Uint8Array(a);w=0;for(y=0,p=s;y<p.length;y++){g=p[y];if(typeof g==="undefined")continue;_.set(g,w);w+=g.length}o=new Blob([_.buffer],{type:c||undefined});m.label=8;case 8:return[4,this.writeFile({path:t.path,directory:(r=t.directory)!==null&&r!==void 0?r:undefined,recursive:(e=t.recursive)!==null&&e!==void 0?e:false,data:o})];case 9:b=m.sent();return[2,{path:b.uri,blob:o}]}}))}))};return r}r.prototype.initDb=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this._db!==undefined){return[2,this._db]}if(!("indexedDB"in window)){throw this.unavailable("This browser doesn't support IndexedDB")}return[2,new Promise((function(e,n){var i=indexedDB.open(t.DB_NAME,t.DB_VERSION);i.onupgradeneeded=r.doUpgrade;i.onsuccess=function(){t._db=i.result;e(i.result)};i.onerror=function(){return n(i.error)};i.onblocked=function(){console.warn("db blocked")}}))]}))}))};r.doUpgrade=function(t){var r=t.target;var e=r.result;switch(t.oldVersion){case 0:case 1:default:{if(e.objectStoreNames.contains("FileStorage")){e.deleteObjectStore("FileStorage")}var n=e.createObjectStore("FileStorage",{keyPath:"path"});n.createIndex("by_folder","folder")}}};r.prototype.dbRequest=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=this._writeCmds.indexOf(t)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(n){return new Promise((function(i,o){var u=n.transaction(["FileStorage"],e);var a=u.objectStore("FileStorage");var s=a[t].apply(a,r);s.onsuccess=function(){return i(s.result)};s.onerror=function(){return o(s.error)}}))}))]}))}))};r.prototype.dbIndexRequest=function(t,r,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(i){n=this._writeCmds.indexOf(r)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(i){return new Promise((function(o,u){var a=i.transaction(["FileStorage"],n);var s=a.objectStore("FileStorage");var c=s.index(t);var f=c[r].apply(c,e);f.onsuccess=function(){return o(f.result)};f.onerror=function(){return u(f.error)}}))}))]}))}))};r.prototype.getPath=function(t,r){var e=r!==undefined?r.replace(/^[/]+|[/]+$/g,""):"";var n="";if(t!==undefined)n+="/"+t;if(r!=="")n+="/"+e;return n};r.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.initDb()];case 1:t=n.sent();r=t.transaction(["FileStorage"],"readwrite");e=r.objectStore("FileStorage");e.clear();return[2]}}))}))};r.prototype.readFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(e===undefined)throw Error("File does not exist.");return[2,{data:e.content?e.content:""}]}}))}))};r.prototype.writeFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=t.recursive;return[4,this.dbRequest("get",[r])];case 1:o=d.sent();if(o&&o.type==="directory")throw Error("The supplied path is a directory.");u=r.substr(0,r.lastIndexOf("/"));return[4,this.dbRequest("get",[u])];case 2:a=d.sent();if(!(a===undefined))return[3,4];s=u.indexOf("/",1);if(!(s!==-1))return[3,4];c=u.substr(s);return[4,this.mkdir({path:c,directory:t.directory,recursive:i})];case 3:d.sent();d.label=4;case 4:if(!n&&!(e instanceof Blob)){e=e.indexOf(",")>=0?e.split(",")[1]:e;if(!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.")}f=Date.now();h={path:r,folder:u,type:"file",size:e instanceof Blob?e.size:e.length,ctime:f,mtime:f,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2,{uri:h.path}]}}))}))};r.prototype.appendFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=r.substr(0,r.lastIndexOf("/"));o=Date.now();u=o;return[4,this.dbRequest("get",[r])];case 1:a=d.sent();if(a&&a.type==="directory")throw Error("The supplied path is a directory.");return[4,this.dbRequest("get",[i])];case 2:s=d.sent();if(!(s===undefined))return[3,4];c=i.indexOf("/",1);if(!(c!==-1))return[3,4];f=i.substr(c);return[4,this.mkdir({path:f,directory:t.directory,recursive:true})];case 3:d.sent();d.label=4;case 4:if(!n&&!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(a!==undefined){if(a.content instanceof Blob){throw Error("The occupied entry contains a Blob object which cannot be appended to.")}if(a.content!==undefined&&!n){e=btoa(atob(a.content)+atob(e))}else{e=a.content+e}u=a.ctime}h={path:r,folder:i,type:"file",size:e.length,ctime:u,mtime:o,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2]}}))}))};r.prototype.deleteFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n;return __generator(this,(function(i){switch(i.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=i.sent();if(e===undefined)throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=i.sent();if(n.length!==0)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[r])];case 3:i.sent();return[2]}}))}))};r.prototype.mkdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.getPath(t.directory,t.path);e=t.recursive;n=r.substr(0,r.lastIndexOf("/"));i=(r.match(/\//g)||[]).length;return[4,this.dbRequest("get",[n])];case 1:o=f.sent();return[4,this.dbRequest("get",[r])];case 2:u=f.sent();if(i===1)throw Error("Cannot create Root directory");if(u!==undefined)throw Error("Current directory does already exist.");if(!e&&i!==2&&o===undefined)throw Error("Parent directory must exist");if(!(e&&i!==2&&o===undefined))return[3,4];a=n.substr(n.indexOf("/",1));return[4,this.mkdir({path:a,directory:t.directory,recursive:e})];case 3:f.sent();f.label=4;case 4:s=Date.now();c={path:r,folder:n,type:"directory",size:0,ctime:s,mtime:s};return[4,this.dbRequest("put",[c])];case 5:f.sent();return[2]}}))}))};r.prototype.rmdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=t.path,e=t.directory,n=t.recursive;i=this.getPath(e,r);return[4,this.dbRequest("get",[i])];case 1:o=d.sent();if(o===undefined)throw Error("Folder does not exist.");if(o.type!=="directory")throw Error("Requested path is not a directory");return[4,this.readdir({path:r,directory:e})];case 2:u=d.sent();if(u.files.length!==0&&!n)throw Error("Folder is not empty");a=0,s=u.files;d.label=3;case 3:if(!(a<s.length))return[3,9];c=s[a];f="".concat(r,"/").concat(c.name);return[4,this.stat({path:f,directory:e})];case 4:h=d.sent();if(!(h.type==="file"))return[3,6];return[4,this.deleteFile({path:f,directory:e})];case 5:d.sent();return[3,8];case 6:return[4,this.rmdir({path:f,directory:e,recursive:n})];case 7:d.sent();d.label=8;case 8:a++;return[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:d.sent();return[2]}}))}))};r.prototype.readdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i;var o=this;return __generator(this,(function(u){switch(u.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=u.sent();if(t.path!==""&&e===undefined)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=u.sent();return[4,Promise.all(n.map((function(t){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.dbRequest("get",[t])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[t+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{name:t.substring(r.length+1),type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))})))];case 3:i=u.sent();return[2,{files:i}]}}))}))};r.prototype.getUri=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{uri:(e===null||e===void 0?void 0:e.path)||r}]}}))}))};r.prototype.stat=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:if(e===undefined)throw Error("Entry does not exist.");return[2,{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))};r.prototype.rename=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this._copy(t,true)];case 1:r.sent();return[2]}}))}))};r.prototype.copy=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this._copy(t,false)]}))}))};r.prototype.requestPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype.checkPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype._copy=function(t){return __awaiter(this,arguments,void 0,(function(t,r){var e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b,m,E,x,F;var P=this;if(r===void 0){r=false}return __generator(this,(function(S){switch(S.label){case 0:e=t.toDirectory;n=t.to,i=t.from,o=t.directory;if(!n||!i){throw Error("Both to and from must be provided")}if(!e){e=o}u=this.getPath(o,i);a=this.getPath(e,n);if(u===a){return[2,{uri:a}]}if(isPathParent(u,a)){throw Error("To path cannot contain the from path")}S.label=1;case 1:S.trys.push([1,3,,6]);return[4,this.stat({path:n,directory:e})];case 2:s=S.sent();return[3,6];case 3:c=S.sent();f=n.split("/");f.pop();h=f.join("/");if(!(f.length>0))return[3,5];return[4,this.stat({path:h,directory:e})];case 4:d=S.sent();if(d.type!=="directory"){throw new Error("Parent directory of the to path is a file")}S.label=5;case 5:return[3,6];case 6:if(s&&s.type==="directory"){throw new Error("Cannot overwrite a directory with a file")}return[4,this.stat({path:i,directory:o})];case 7:v=S.sent();l=function(t,r,n){return __awaiter(P,void 0,void 0,(function(){var i,o;return __generator(this,(function(u){switch(u.label){case 0:i=this.getPath(e,t);return[4,this.dbRequest("get",[i])];case 1:o=u.sent();o.ctime=r;o.mtime=n;return[4,this.dbRequest("put",[o])];case 2:u.sent();return[2]}}))}))};_=v.ctime?v.ctime:Date.now();w=v.type;switch(w){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:i,directory:o})];case 9:y=S.sent();if(!r)return[3,11];return[4,this.deleteFile({path:i,directory:o})];case 10:S.sent();S.label=11;case 11:p=void 0;if(!(y.data instanceof Blob)&&!this.isBase64String(y.data)){p=Encoding.UTF8}return[4,this.writeFile({path:n,directory:e,data:y.data,encoding:p})];case 12:g=S.sent();if(!r)return[3,14];return[4,l(n,_,v.mtime)];case 13:S.sent();S.label=14;case 14:return[2,g];case 15:if(s){throw Error("Cannot move a directory over an existing object")}S.label=16;case 16:S.trys.push([16,20,,21]);return[4,this.mkdir({path:n,directory:e,recursive:false})];case 17:S.sent();if(!r)return[3,19];return[4,l(n,_,v.mtime)];case 18:S.sent();S.label=19;case 19:return[3,21];case 20:b=S.sent();return[3,21];case 21:return[4,this.readdir({path:i,directory:o})];case 22:m=S.sent().files;E=0,x=m;S.label=23;case 23:if(!(E<x.length))return[3,26];F=x[E];return[4,this._copy({from:"".concat(i,"/").concat(F.name),to:"".concat(n,"/").concat(F.name),directory:o,toDirectory:e},r)];case 24:S.sent();S.label=25;case 25:E++;return[3,23];case 26:if(!r)return[3,28];return[4,this.rmdir({path:i,directory:o})];case 27:S.sent();S.label=28;case 28:return[2,{uri:a}]}}))}))};r.prototype.isBase64String=function(t){try{return btoa(atob(t))==t}catch(t){return false}};return r}(WebPlugin);FilesystemWeb._debug=true;export{FilesystemWeb};
|
|
2
|
-
//# sourceMappingURL=web-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(r,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))t[e]=r[e]};return t(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,r,e,n){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?e(t.value):i(t.value).then(u,a)}s((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(e=0)),e)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1];o=a;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(a);break}if(o[2])e.ops.pop();e.trys.pop();continue}a=r.call(t,e)}catch(t){a=[6,t];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{W as WebPlugin,x as buildRequestInit,E as Encoding}from"./utils-b1ca48b3.js";import"./store-aa921ea2.js";import"./index-83d78b30.js";function resolve(t){var r=t.split("/").filter((function(t){return t!=="."}));var e=[];r.forEach((function(t){if(t===".."&&e.length>0&&e[e.length-1]!==".."){e.pop()}else{e.push(t)}}));return e.join("/")}function isPathParent(t,r){t=resolve(t);r=resolve(r);var e=t.split("/");var n=r.split("/");return t!==r&&e.every((function(t,r){return t===n[r]}))}var FilesystemWeb=function(t){__extends(r,t);function r(){var r=t.apply(this,arguments)||this;r.DB_VERSION=1;r.DB_NAME="Disc";r._writeCmds=["add","put","delete"];r.downloadFile=function(t){return __awaiter(r,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b;return __generator(this,(function(m){switch(m.label){case 0:n=buildRequestInit(t,t.webFetchExtra);return[4,fetch(t.url,n)];case 1:i=m.sent();if(!!t.progress)return[3,3];return[4,i.blob()];case 2:o=m.sent();return[3,8];case 3:if(!!(i===null||i===void 0?void 0:i.body))return[3,4];o=new Blob;return[3,8];case 4:u=i.body.getReader();a=0;s=[];c=i.headers.get("content-type");f=parseInt(i.headers.get("content-length")||"0",10);m.label=5;case 5:if(!true)return[3,7];return[4,u.read()];case 6:h=m.sent(),d=h.done,v=h.value;if(d)return[3,7];s.push(v);a+=(v===null||v===void 0?void 0:v.length)||0;l={url:t.url,bytes:a,contentLength:f};this.notifyListeners("progress",l);return[3,5];case 7:_=new Uint8Array(a);w=0;for(y=0,p=s;y<p.length;y++){g=p[y];if(typeof g==="undefined")continue;_.set(g,w);w+=g.length}o=new Blob([_.buffer],{type:c||undefined});m.label=8;case 8:return[4,this.writeFile({path:t.path,directory:(r=t.directory)!==null&&r!==void 0?r:undefined,recursive:(e=t.recursive)!==null&&e!==void 0?e:false,data:o})];case 9:b=m.sent();return[2,{path:b.uri,blob:o}]}}))}))};return r}r.prototype.initDb=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this._db!==undefined){return[2,this._db]}if(!("indexedDB"in window)){throw this.unavailable("This browser doesn't support IndexedDB")}return[2,new Promise((function(e,n){var i=indexedDB.open(t.DB_NAME,t.DB_VERSION);i.onupgradeneeded=r.doUpgrade;i.onsuccess=function(){t._db=i.result;e(i.result)};i.onerror=function(){return n(i.error)};i.onblocked=function(){console.warn("db blocked")}}))]}))}))};r.doUpgrade=function(t){var r=t.target;var e=r.result;switch(t.oldVersion){case 0:case 1:default:{if(e.objectStoreNames.contains("FileStorage")){e.deleteObjectStore("FileStorage")}var n=e.createObjectStore("FileStorage",{keyPath:"path"});n.createIndex("by_folder","folder")}}};r.prototype.dbRequest=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=this._writeCmds.indexOf(t)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(n){return new Promise((function(i,o){var u=n.transaction(["FileStorage"],e);var a=u.objectStore("FileStorage");var s=a[t].apply(a,r);s.onsuccess=function(){return i(s.result)};s.onerror=function(){return o(s.error)}}))}))]}))}))};r.prototype.dbIndexRequest=function(t,r,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(i){n=this._writeCmds.indexOf(r)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(i){return new Promise((function(o,u){var a=i.transaction(["FileStorage"],n);var s=a.objectStore("FileStorage");var c=s.index(t);var f=c[r].apply(c,e);f.onsuccess=function(){return o(f.result)};f.onerror=function(){return u(f.error)}}))}))]}))}))};r.prototype.getPath=function(t,r){var e=r!==undefined?r.replace(/^[/]+|[/]+$/g,""):"";var n="";if(t!==undefined)n+="/"+t;if(r!=="")n+="/"+e;return n};r.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.initDb()];case 1:t=n.sent();r=t.transaction(["FileStorage"],"readwrite");e=r.objectStore("FileStorage");e.clear();return[2]}}))}))};r.prototype.readFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(e===undefined)throw Error("File does not exist.");return[2,{data:e.content?e.content:""}]}}))}))};r.prototype.writeFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=t.recursive;return[4,this.dbRequest("get",[r])];case 1:o=d.sent();if(o&&o.type==="directory")throw Error("The supplied path is a directory.");u=r.substr(0,r.lastIndexOf("/"));return[4,this.dbRequest("get",[u])];case 2:a=d.sent();if(!(a===undefined))return[3,4];s=u.indexOf("/",1);if(!(s!==-1))return[3,4];c=u.substr(s);return[4,this.mkdir({path:c,directory:t.directory,recursive:i})];case 3:d.sent();d.label=4;case 4:if(!n&&!(e instanceof Blob)){e=e.indexOf(",")>=0?e.split(",")[1]:e;if(!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.")}f=Date.now();h={path:r,folder:u,type:"file",size:e instanceof Blob?e.size:e.length,ctime:f,mtime:f,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2,{uri:h.path}]}}))}))};r.prototype.appendFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=r.substr(0,r.lastIndexOf("/"));o=Date.now();u=o;return[4,this.dbRequest("get",[r])];case 1:a=d.sent();if(a&&a.type==="directory")throw Error("The supplied path is a directory.");return[4,this.dbRequest("get",[i])];case 2:s=d.sent();if(!(s===undefined))return[3,4];c=i.indexOf("/",1);if(!(c!==-1))return[3,4];f=i.substr(c);return[4,this.mkdir({path:f,directory:t.directory,recursive:true})];case 3:d.sent();d.label=4;case 4:if(!n&&!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(a!==undefined){if(a.content instanceof Blob){throw Error("The occupied entry contains a Blob object which cannot be appended to.")}if(a.content!==undefined&&!n){e=btoa(atob(a.content)+atob(e))}else{e=a.content+e}u=a.ctime}h={path:r,folder:i,type:"file",size:e.length,ctime:u,mtime:o,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2]}}))}))};r.prototype.deleteFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n;return __generator(this,(function(i){switch(i.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=i.sent();if(e===undefined)throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=i.sent();if(n.length!==0)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[r])];case 3:i.sent();return[2]}}))}))};r.prototype.mkdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.getPath(t.directory,t.path);e=t.recursive;n=r.substr(0,r.lastIndexOf("/"));i=(r.match(/\//g)||[]).length;return[4,this.dbRequest("get",[n])];case 1:o=f.sent();return[4,this.dbRequest("get",[r])];case 2:u=f.sent();if(i===1)throw Error("Cannot create Root directory");if(u!==undefined)throw Error("Current directory does already exist.");if(!e&&i!==2&&o===undefined)throw Error("Parent directory must exist");if(!(e&&i!==2&&o===undefined))return[3,4];a=n.substr(n.indexOf("/",1));return[4,this.mkdir({path:a,directory:t.directory,recursive:e})];case 3:f.sent();f.label=4;case 4:s=Date.now();c={path:r,folder:n,type:"directory",size:0,ctime:s,mtime:s};return[4,this.dbRequest("put",[c])];case 5:f.sent();return[2]}}))}))};r.prototype.rmdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=t.path,e=t.directory,n=t.recursive;i=this.getPath(e,r);return[4,this.dbRequest("get",[i])];case 1:o=d.sent();if(o===undefined)throw Error("Folder does not exist.");if(o.type!=="directory")throw Error("Requested path is not a directory");return[4,this.readdir({path:r,directory:e})];case 2:u=d.sent();if(u.files.length!==0&&!n)throw Error("Folder is not empty");a=0,s=u.files;d.label=3;case 3:if(!(a<s.length))return[3,9];c=s[a];f="".concat(r,"/").concat(c.name);return[4,this.stat({path:f,directory:e})];case 4:h=d.sent();if(!(h.type==="file"))return[3,6];return[4,this.deleteFile({path:f,directory:e})];case 5:d.sent();return[3,8];case 6:return[4,this.rmdir({path:f,directory:e,recursive:n})];case 7:d.sent();d.label=8;case 8:a++;return[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:d.sent();return[2]}}))}))};r.prototype.readdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i;var o=this;return __generator(this,(function(u){switch(u.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=u.sent();if(t.path!==""&&e===undefined)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=u.sent();return[4,Promise.all(n.map((function(t){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.dbRequest("get",[t])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[t+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{name:t.substring(r.length+1),type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))})))];case 3:i=u.sent();return[2,{files:i}]}}))}))};r.prototype.getUri=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{uri:(e===null||e===void 0?void 0:e.path)||r}]}}))}))};r.prototype.stat=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:if(e===undefined)throw Error("Entry does not exist.");return[2,{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))};r.prototype.rename=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this._copy(t,true)];case 1:r.sent();return[2]}}))}))};r.prototype.copy=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this._copy(t,false)]}))}))};r.prototype.requestPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype.checkPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype._copy=function(t){return __awaiter(this,arguments,void 0,(function(t,r){var e,n,i,o,u,a,s,c,f,h,d,v,l,_,w,y,p,g,b,m,E,x,F;var P=this;if(r===void 0){r=false}return __generator(this,(function(S){switch(S.label){case 0:e=t.toDirectory;n=t.to,i=t.from,o=t.directory;if(!n||!i){throw Error("Both to and from must be provided")}if(!e){e=o}u=this.getPath(o,i);a=this.getPath(e,n);if(u===a){return[2,{uri:a}]}if(isPathParent(u,a)){throw Error("To path cannot contain the from path")}S.label=1;case 1:S.trys.push([1,3,,6]);return[4,this.stat({path:n,directory:e})];case 2:s=S.sent();return[3,6];case 3:c=S.sent();f=n.split("/");f.pop();h=f.join("/");if(!(f.length>0))return[3,5];return[4,this.stat({path:h,directory:e})];case 4:d=S.sent();if(d.type!=="directory"){throw new Error("Parent directory of the to path is a file")}S.label=5;case 5:return[3,6];case 6:if(s&&s.type==="directory"){throw new Error("Cannot overwrite a directory with a file")}return[4,this.stat({path:i,directory:o})];case 7:v=S.sent();l=function(t,r,n){return __awaiter(P,void 0,void 0,(function(){var i,o;return __generator(this,(function(u){switch(u.label){case 0:i=this.getPath(e,t);return[4,this.dbRequest("get",[i])];case 1:o=u.sent();o.ctime=r;o.mtime=n;return[4,this.dbRequest("put",[o])];case 2:u.sent();return[2]}}))}))};_=v.ctime?v.ctime:Date.now();w=v.type;switch(w){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:i,directory:o})];case 9:y=S.sent();if(!r)return[3,11];return[4,this.deleteFile({path:i,directory:o})];case 10:S.sent();S.label=11;case 11:p=void 0;if(!(y.data instanceof Blob)&&!this.isBase64String(y.data)){p=Encoding.UTF8}return[4,this.writeFile({path:n,directory:e,data:y.data,encoding:p})];case 12:g=S.sent();if(!r)return[3,14];return[4,l(n,_,v.mtime)];case 13:S.sent();S.label=14;case 14:return[2,g];case 15:if(s){throw Error("Cannot move a directory over an existing object")}S.label=16;case 16:S.trys.push([16,20,,21]);return[4,this.mkdir({path:n,directory:e,recursive:false})];case 17:S.sent();if(!r)return[3,19];return[4,l(n,_,v.mtime)];case 18:S.sent();S.label=19;case 19:return[3,21];case 20:b=S.sent();return[3,21];case 21:return[4,this.readdir({path:i,directory:o})];case 22:m=S.sent().files;E=0,x=m;S.label=23;case 23:if(!(E<x.length))return[3,26];F=x[E];return[4,this._copy({from:"".concat(i,"/").concat(F.name),to:"".concat(n,"/").concat(F.name),directory:o,toDirectory:e},r)];case 24:S.sent();S.label=25;case 25:E++;return[3,23];case 26:if(!r)return[3,28];return[4,this.rmdir({path:i,directory:o})];case 27:S.sent();S.label=28;case 28:return[2,{uri:a}]}}))}))};r.prototype.isBase64String=function(t){try{return btoa(atob(t))==t}catch(t){return false}};return r}(WebPlugin);FilesystemWeb._debug=true;export{FilesystemWeb};
|
|
2
|
+
//# sourceMappingURL=web-08ea09e6.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o,d as r,N as e,b as i}from"./p-421e9ebe.js";export{s as setNonce}from"./p-421e9ebe.js";import{g as n}from"./p-e1255160.js";var a=()=>{const i=Array.from(r.querySelectorAll("script")).find((o=>new RegExp(`/${e}(\\.esm)?\\.js($|\\?|#)`).test(o.src)||o.getAttribute("data-stencil-namespace")===e));const n=import.meta.url;const a=(i||{})["data-opts"]||{};if(n!==""){a.resourcesUrl=new URL(".",n).href}return o(a)};a().then((async o=>{await n();return i(JSON.parse('[["p-38d31358",[[0,"grw-app",{"appWidth":[1,"app-width"],"appHeight":[1,"app-height"],"api":[1],"languages":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"weather":[4],"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorPrimary":[1,"color-primary"],"colorOnPrimary":[1,"color-on-primary"],"colorSurface":[1,"color-surface"],"colorOnSurface":[1,"color-on-surface"],"colorSurfaceVariant":[1,"color-surface-variant"],"colorOnSurfaceVariant":[1,"color-on-surface-variant"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"colorSurfaceContainerHigh":[1,"color-surface-container-high"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"rounded":[4],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"largeViewSize":[2,"large-view-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"signages":[4],"arrowRepeat":[2,"arrow-repeat"],"showTrek":[32],"showTouristicContent":[32],"showTouristicEvent":[32],"showOutdoorSite":[32],"showOutdoorCourse":[32],"showOutdoorSiteMap":[32],"showOutdoorCourseMap":[32],"showHomeMap":[32],"showTrekMap":[32],"showTouristicContentMap":[32],"showTouristicEventMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32],"currentTouristicContentId":[32],"currentTouristicEventId":[32],"currentOutdoorSiteId":[32],"currentOutdoorCourseId":[32]},[[8,"trekCardPress","onTrekCardPress"],[8,"parentTrekPress","onParentTrekPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"outdoorSiteCardPress","onOutdoorSiteCardPress"],[8,"outdoorCourseCardPress","onOutdoorCourseCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]],{"isLargeView":["watchPropHandler"]}]]],["p-51c64ff4",[[4,"grw-toggle-slot-visibility",{"largeViewSize":[2,"large-view-size"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"slotEndHeight":[1,"slot-end-height"],"isLargeView":[32],"showStartSlot":[32],"showEndSlot":[32]},[[9,"resize","onWindowResize"]]]]],["p-eeedb77e",[[1,"grw-outdoor-courses-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}]]],["p-b4659481",[[1,"grw-extended-fab",{"action":[16],"icon":[16],"name":[16],"display":[1],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-f971e0f9",[[1,"grw-fab",{"action":[16],"icon":[16],"showTitle":[1,"show-title"],"hideTitle":[1,"hide-title"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-6287495f",[[1,"grw-filter",{"fontFamily":[1,"font-family"],"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterPlaceholder":[1,"filter-placeholder"],"filterNameProperty":[1,"filter-name-property"],"segment":[1]},[[8,"resetFilter","onResetFilter"]]]]],["p-91d62770",[[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}],[1,"grw-trek-card",{"trek":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isStep":[4,"is-step"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32],"isAvailableOffline":[32],"showDefaultImage":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-20fa1207",[[1,"grw-poi",{"poi":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showPoiDescriptionButton":[32],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"]]],[1,"grw-touristic-content-card",{"fontFamily":[1,"font-family"],"touristicContent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-event-card",{"fontFamily":[1,"font-family"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"touristicEvent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-111e4a10",[[1,"grw-outdoor-course-card",{"outdoorCourse":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[4,"grw-details-modal",{"fontFamily":[1,"font-family"],"colorBackground":[1,"color-background"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"rounded":[4]}],[1,"grw-information-desk",{"informationDesk":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showInformationDeskDescriptionButton":[32],"offline":[32],"showDefaultImage":[32]}],[1,"grw-outdoor-site-card",{"outdoorSite":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-content-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-content-provider",{"languages":[1],"api":[1],"touristicContentId":[2,"touristic-content-id"],"portals":[1]}],[1,"grw-touristic-event-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-event-provider",{"languages":[1],"api":[1],"touristicEventId":[2,"touristic-event-id"],"portals":[1]}]]],["p-c0721af7",[[1,"grw-outdoor-site-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"enableOffline":[4,"enable-offline"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"rounded":[4],"offline":[32],"displayFullscreen":[32],"currentOutdoorSite":[32],"sources":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-trek-detail",{"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"rounded":[4],"weather":[4],"isLargeView":[4,"is-large-view"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"labels":[32],"sources":[32],"accessibilities":[32],"accessibilityLevel":[32],"displayFullscreen":[32],"cities":[32],"options":[32],"offline":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-outdoor-course-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"currentOutdoorCourse":[32],"offline":[32]}],[1,"grw-filters",{"handleFilters":[16],"fontFamily":[1,"font-family"],"selectedSegment":[32]}],[1,"grw-map",{"maxZoom":[2,"max-zoom"],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorBackground":[1,"color-background"],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"largeViewSize":[2,"large-view-size"],"elevationDefaultState":[1,"elevation-default-state"],"isLargeView":[4,"is-large-view"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"arrowRepeat":[2,"arrow-repeat"],"mapIsReady":[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"stepsIsInViewport","stepsIsInViewport"],[8,"descriptionIsInViewport","descriptionIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationPlacesIsInViewport","onInformationPlacesIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"],[8,"touristicContentsIsInViewport","touristicContentsIsInViewport"],[8,"touristicEventsIsInViewport","touristicEventsIsInViewport"],[8,"sitesIsInViewport","sitesIsInViewport"],[8,"coursesIsInViewport","coursesIsInViewport"],[8,"cardTrekMouseOver","onCardTrekMouseOver"],[8,"cardTrekMouseLeave","onCardTrekMouseLeave"],[8,"cardTouristicContentMouseOver","onTouristicContentMouseOver"],[8,"cardTouristicContentMouseLeave","onTouristicContentMouseLeave"],[8,"cardTouristicEventMouseOver","onTouristicEventMouseOver"],[8,"cardTouristicEventMouseLeave","onTouristicEventMouseLeave"],[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[8,"cardOutdoorSiteMouseOver","onOutdoorSiteMouseOver"],[8,"cardOutdoorSiteMouseLeave","onOutdoorSiteMouseLeave"],[9,"resize","onWindowResize"]]],[1,"grw-outdoor-sites-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"outdoorSitesToDisplay":[32]}],[1,"grw-touristic-contents-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicContentsToDisplay":[32]}],[1,"grw-touristic-events-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicEventsToDisplay":[32]}],[1,"grw-treks-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayOnlyOfflineTreks":[4,"display-only-offline-treks"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"treksToDisplay":[32]}],[1,"grw-common-button",{"action":[16],"icon":[1],"name":[1],"fontFamily":[1,"font-family"]}],[1,"grw-loader",{"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"]}],[1,"grw-offline-confirm-modal",{"mode":[1],"showOfflineModal":[32],"showConfirmModal":[32],"showLoaderModal":[32],"showSuccessModal":[32],"showErrorModal":[32],"showConfirmDeleteModal":[32],"showDeletingMessage":[32],"showDeleteSuccessMessage":[32]},[[8,"downloadConfirm","onDownloadConfirm"],[8,"downloadedSuccessConfirm","onDownloadedSuccessConfirm"],[8,"downloadedErrorConfirm","downloadedErrorConfirm"],[8,"deleteConfirm","onDeleteConfirm"],[8,"deleteSuccessConfirm","onDeleteSuccessConfirm"],[8,"deleteErrorConfirm","deleteErrorConfirm"]]],[1,"grw-outdoor-course-provider",{"languages":[1],"api":[1],"outdoorCourseId":[2,"outdoor-course-id"],"portals":[1]}],[1,"grw-outdoor-site-provider",{"languages":[1],"api":[1],"outdoorSiteId":[2,"outdoor-site-id"],"portals":[1]}],[1,"grw-outdoor-sites-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"offline":[4]}],[1,"grw-search",{"fontFamily":[1,"font-family"]}],[1,"grw-segmented-segment",{"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"fontFamily":[1,"font-family"]}],[1,"grw-select-language"],[1,"grw-switch",{"action":[16],"fontFamily":[1,"font-family"],"checked":[4]}],[1,"grw-touristic-contents-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-touristic-events-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-trek-provider",{"languages":[1],"api":[1],"trekId":[2,"trek-id"],"portals":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"routes":[1],"practices":[1],"labels":[1],"signages":[4]}],[1,"grw-treks-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"offline":[4]}]]]]'),o)}));
|
|
1
|
+
import{p as o,d as r,N as e,b as i}from"./p-421e9ebe.js";export{s as setNonce}from"./p-421e9ebe.js";import{g as n}from"./p-e1255160.js";var a=()=>{const i=Array.from(r.querySelectorAll("script")).find((o=>new RegExp(`/${e}(\\.esm)?\\.js($|\\?|#)`).test(o.src)||o.getAttribute("data-stencil-namespace")===e));const n=import.meta.url;const a=(i||{})["data-opts"]||{};if(n!==""){a.resourcesUrl=new URL(".",n).href}return o(a)};a().then((async o=>{await n();return i(JSON.parse('[["p-9ac8e3ac",[[0,"grw-app",{"appWidth":[1,"app-width"],"appHeight":[1,"app-height"],"api":[1],"languages":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"weather":[4],"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorPrimary":[1,"color-primary"],"colorOnPrimary":[1,"color-on-primary"],"colorSurface":[1,"color-surface"],"colorOnSurface":[1,"color-on-surface"],"colorSurfaceVariant":[1,"color-surface-variant"],"colorOnSurfaceVariant":[1,"color-on-surface-variant"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorBackground":[1,"color-background"],"colorSurfaceContainerHigh":[1,"color-surface-container-high"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"rounded":[4],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"largeViewSize":[2,"large-view-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"signages":[4],"arrowRepeat":[2,"arrow-repeat"],"showTrek":[32],"showTouristicContent":[32],"showTouristicEvent":[32],"showOutdoorSite":[32],"showOutdoorCourse":[32],"showOutdoorSiteMap":[32],"showOutdoorCourseMap":[32],"showHomeMap":[32],"showTrekMap":[32],"showTouristicContentMap":[32],"showTouristicEventMap":[32],"showFilters":[32],"isLargeView":[32],"currentTrekId":[32],"currentTouristicContentId":[32],"currentTouristicEventId":[32],"currentOutdoorSiteId":[32],"currentOutdoorCourseId":[32]},[[8,"trekCardPress","onTrekCardPress"],[8,"parentTrekPress","onParentTrekPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"outdoorSiteCardPress","onOutdoorSiteCardPress"],[8,"outdoorCourseCardPress","onOutdoorCourseCardPress"],[9,"resize","onWindowResize"],[8,"centerOnMap","onCenterOnMap"]],{"isLargeView":["watchPropHandler"]}]]],["p-cf6d1b66",[[4,"grw-toggle-slot-visibility",{"largeViewSize":[2,"large-view-size"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"slotEndHeight":[1,"slot-end-height"],"isLargeView":[32],"showStartSlot":[32],"showEndSlot":[32]},[[9,"resize","onWindowResize"]]]]],["p-e9483fdf",[[1,"grw-outdoor-courses-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}]]],["p-b4659481",[[1,"grw-extended-fab",{"action":[16],"icon":[16],"name":[16],"display":[1],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-f971e0f9",[[1,"grw-fab",{"action":[16],"icon":[16],"showTitle":[1,"show-title"],"hideTitle":[1,"hide-title"],"fontFamily":[1,"font-family"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"]}]]],["p-ad644267",[[1,"grw-filter",{"fontFamily":[1,"font-family"],"filterType":[1,"filter-type"],"filterName":[1,"filter-name"],"filterPlaceholder":[1,"filter-placeholder"],"filterNameProperty":[1,"filter-name-property"],"segment":[1]},[[8,"resetFilter","onResetFilter"]]]]],["p-83e76a62",[[1,"grw-sensitive-area-detail",{"sensitiveArea":[16]}],[1,"grw-trek-card",{"trek":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isStep":[4,"is-step"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"departureCity":[32],"isAvailableOffline":[32],"showDefaultImage":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-9c461972",[[1,"grw-poi",{"poi":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showPoiDescriptionButton":[32],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"]]],[1,"grw-touristic-content-card",{"fontFamily":[1,"font-family"],"touristicContent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-event-card",{"fontFamily":[1,"font-family"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"touristicEvent":[16],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"displayFullscreen":[32],"offline":[32]},[[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]]]],["p-4450a6e3",[[1,"grw-outdoor-course-card",{"outdoorCourse":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[4,"grw-details-modal",{"fontFamily":[1,"font-family"],"colorBackground":[1,"color-background"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"rounded":[4]}],[1,"grw-information-desk",{"informationDesk":[16],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayShortDescription":[32],"showInformationDeskDescriptionButton":[32],"offline":[32],"showDefaultImage":[32]}],[1,"grw-outdoor-site-card",{"outdoorSite":[16],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"isInsideHorizontalList":[4,"is-inside-horizontal-list"],"offline":[32]},[[1,"mouseover","handleMouseOver"],[1,"mouseleave","handleMouseLeave"]]],[1,"grw-touristic-content-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-content-provider",{"languages":[1],"api":[1],"touristicContentId":[2,"touristic-content-id"],"portals":[1]}],[1,"grw-touristic-event-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"offline":[32]}],[1,"grw-touristic-event-provider",{"languages":[1],"api":[1],"touristicEventId":[2,"touristic-event-id"],"portals":[1]}]]],["p-551b6c64",[[1,"grw-outdoor-site-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"enableOffline":[4,"enable-offline"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"rounded":[4],"offline":[32],"displayFullscreen":[32],"currentOutdoorSite":[32],"sources":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-trek-detail",{"emergencyNumber":[2,"emergency-number"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"rounded":[4],"weather":[4],"isLargeView":[4,"is-large-view"],"defaultBackgroundLayerUrl":[8,"default-background-layer-url"],"defaultBackgroundLayerAttribution":[8,"default-background-layer-attribution"],"enableOffline":[4,"enable-offline"],"globalTilesMinZoomOffline":[2,"global-tiles-min-zoom-offline"],"globalTilesMaxZoomOffline":[2,"global-tiles-max-zoom-offline"],"tilesMinZoomOffline":[2,"tiles-min-zoom-offline"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"currentTrek":[32],"difficulty":[32],"route":[32],"practice":[32],"themes":[32],"labels":[32],"sources":[32],"accessibilities":[32],"accessibilityLevel":[32],"displayFullscreen":[32],"cities":[32],"options":[32],"offline":[32],"showTouristicContentDetailsModal":[32],"showTouristicEventDetailsModal":[32],"modalDetailsId":[32]},[[8,"closeDetailsModal","onCloseDetailsModal"],[8,"touristicEventCardPress","onTouristiceEventCardPress"],[8,"touristicContentCardPress","onTouristicContentCardPress"],[8,"downloadPress","onDownloadPress"],[8,"deletePress","onDeletePress"]]],[1,"grw-outdoor-course-detail",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"colorBackground":[1,"color-background"],"isLargeView":[4,"is-large-view"],"weather":[4],"grwApp":[4,"grw-app"],"displayFullscreen":[32],"currentOutdoorCourse":[32],"offline":[32]}],[1,"grw-filters",{"handleFilters":[16],"fontFamily":[1,"font-family"],"selectedSegment":[32]}],[1,"grw-map",{"maxZoom":[2,"max-zoom"],"nameLayer":[1,"name-layer"],"urlLayer":[1,"url-layer"],"attributionLayer":[1,"attribution-layer"],"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"],"colorBackground":[1,"color-background"],"colorTrekLine":[1,"color-trek-line"],"colorSensitiveArea":[1,"color-sensitive-area"],"colorMarkers":[8,"color-markers"],"colorClusters":[8,"color-clusters"],"colorOutdoorArea":[1,"color-outdoor-area"],"tilesMaxZoomOffline":[2,"tiles-max-zoom-offline"],"grwApp":[4,"grw-app"],"mainMarkerSize":[2,"main-marker-size"],"selectedMainMarkerSize":[2,"selected-main-marker-size"],"mainClusterSize":[2,"main-cluster-size"],"commonMarkerSize":[2,"common-marker-size"],"departureArrivalMarkerSize":[2,"departure-arrival-marker-size"],"pointReferenceMarkerSize":[2,"point-reference-marker-size"],"elevationHeight":[2,"elevation-height"],"mobileElevationHeight":[2,"mobile-elevation-height"],"largeViewSize":[2,"large-view-size"],"elevationDefaultState":[1,"elevation-default-state"],"isLargeView":[4,"is-large-view"],"fabBackgroundColor":[1,"fab-background-color"],"fabColor":[1,"fab-color"],"arrowRepeat":[2,"arrow-repeat"],"mapIsReady":[32]},[[8,"centerOnMap","onCenterOnMap"],[8,"stepsIsInViewport","stepsIsInViewport"],[8,"descriptionIsInViewport","descriptionIsInViewport"],[8,"parkingIsInViewport","parkingIsInViewport"],[8,"informationPlacesIsInViewport","onInformationPlacesIsInViewport"],[8,"sensitiveAreaIsInViewport","sensitiveAreaIsInViewport"],[8,"poiIsInViewport","poiIsInViewport"],[8,"touristicContentsIsInViewport","touristicContentsIsInViewport"],[8,"touristicEventsIsInViewport","touristicEventsIsInViewport"],[8,"sitesIsInViewport","sitesIsInViewport"],[8,"coursesIsInViewport","coursesIsInViewport"],[8,"cardTrekMouseOver","onCardTrekMouseOver"],[8,"cardTrekMouseLeave","onCardTrekMouseLeave"],[8,"cardTouristicContentMouseOver","onTouristicContentMouseOver"],[8,"cardTouristicContentMouseLeave","onTouristicContentMouseLeave"],[8,"cardTouristicEventMouseOver","onTouristicEventMouseOver"],[8,"cardTouristicEventMouseLeave","onTouristicEventMouseLeave"],[8,"trekDownloadedSuccessConfirm","onTrekDownloadedSuccessConfirm"],[8,"trekDeleteSuccessConfirm","onTrekDeleteSuccessConfirm"],[8,"cardOutdoorSiteMouseOver","onOutdoorSiteMouseOver"],[8,"cardOutdoorSiteMouseLeave","onOutdoorSiteMouseLeave"],[9,"resize","onWindowResize"]]],[1,"grw-outdoor-sites-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"outdoorSitesToDisplay":[32]}],[1,"grw-touristic-contents-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicContentsToDisplay":[32]}],[1,"grw-touristic-events-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"isLargeView":[4,"is-large-view"],"touristicEventsToDisplay":[32]}],[1,"grw-treks-list",{"fontFamily":[1,"font-family"],"colorPrimaryApp":[1,"color-primary-app"],"colorOnSurface":[1,"color-on-surface"],"colorSecondaryContainer":[1,"color-secondary-container"],"colorOnSecondaryContainer":[1,"color-on-secondary-container"],"colorSurfaceContainerLow":[1,"color-surface-container-low"],"displayOnlyOfflineTreks":[4,"display-only-offline-treks"],"isLargeView":[4,"is-large-view"],"grwApp":[4,"grw-app"],"treksToDisplay":[32]}],[1,"grw-common-button",{"action":[16],"icon":[1],"name":[1],"fontFamily":[1,"font-family"]}],[1,"grw-loader",{"colorPrimaryContainer":[1,"color-primary-container"],"colorOnPrimaryContainer":[1,"color-on-primary-container"]}],[1,"grw-offline-confirm-modal",{"mode":[1],"showOfflineModal":[32],"showConfirmModal":[32],"showLoaderModal":[32],"showSuccessModal":[32],"showErrorModal":[32],"showConfirmDeleteModal":[32],"showDeletingMessage":[32],"showDeleteSuccessMessage":[32]},[[8,"downloadConfirm","onDownloadConfirm"],[8,"downloadedSuccessConfirm","onDownloadedSuccessConfirm"],[8,"downloadedErrorConfirm","downloadedErrorConfirm"],[8,"deleteConfirm","onDeleteConfirm"],[8,"deleteSuccessConfirm","onDeleteSuccessConfirm"],[8,"deleteErrorConfirm","deleteErrorConfirm"]]],[1,"grw-outdoor-course-provider",{"languages":[1],"api":[1],"outdoorCourseId":[2,"outdoor-course-id"],"portals":[1]}],[1,"grw-outdoor-site-provider",{"languages":[1],"api":[1],"outdoorSiteId":[2,"outdoor-site-id"],"portals":[1]}],[1,"grw-outdoor-sites-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"offline":[4]}],[1,"grw-search",{"fontFamily":[1,"font-family"]}],[1,"grw-segmented-segment",{"treks":[4],"touristicContents":[4,"touristic-contents"],"touristicEvents":[4,"touristic-events"],"outdoor":[4],"fontFamily":[1,"font-family"]}],[1,"grw-select-language"],[1,"grw-switch",{"action":[16],"fontFamily":[1,"font-family"],"checked":[4]}],[1,"grw-touristic-contents-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-touristic-events-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1]}],[1,"grw-trek-provider",{"languages":[1],"api":[1],"trekId":[2,"trek-id"],"portals":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"routes":[1],"practices":[1],"labels":[1],"signages":[4]}],[1,"grw-treks-provider",{"languages":[1],"api":[1],"inBbox":[1,"in-bbox"],"cities":[1],"districts":[1],"structures":[1],"themes":[1],"portals":[1],"routes":[1],"practices":[1],"labels":[1],"offline":[4]}]]]]'),o)}));
|
|
2
2
|
//# sourceMappingURL=geotrek-rando-widget.esm.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(r,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))t[e]=r[e]};return t(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,r,e,n){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?e(t.value):i(t.value).then(u,a)}s((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(e=0)),e)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1];o=a;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(a);break}if(o[2])e.ops.pop();e.trys.pop();continue}a=r.call(t,e)}catch(t){a=[6,t];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-5a1c21ad.system.js","./p-e6471529.system.js","./p-e0867d29.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.W;e=t.x;n=t.E},function(){},function(){}],execute:function(){function i(t){var r=t.split("/").filter((function(t){return t!=="."}));var e=[];r.forEach((function(t){if(t===".."&&e.length>0&&e[e.length-1]!==".."){e.pop()}else{e.push(t)}}));return e.join("/")}function o(t,r){t=i(t);r=i(r);var e=t.split("/");var n=r.split("/");return t!==r&&e.every((function(t,r){return t===n[r]}))}var u=function(t){__extends(r,t);function r(){var r=t.apply(this,arguments)||this;r.DB_VERSION=1;r.DB_NAME="Disc";r._writeCmds=["add","put","delete"];r.downloadFile=function(t){return __awaiter(r,void 0,void 0,(function(){var r,n,i,o,u,a,s,c,f,h,d,v,_,l,w,y,p,g,b,m;return __generator(this,(function(E){switch(E.label){case 0:i=e(t,t.webFetchExtra);return[4,fetch(t.url,i)];case 1:o=E.sent();if(!!t.progress)return[3,3];return[4,o.blob()];case 2:u=E.sent();return[3,8];case 3:if(!!(o===null||o===void 0?void 0:o.body))return[3,4];u=new Blob;return[3,8];case 4:a=o.body.getReader();s=0;c=[];f=o.headers.get("content-type");h=parseInt(o.headers.get("content-length")||"0",10);E.label=5;case 5:if(!true)return[3,7];return[4,a.read()];case 6:d=E.sent(),v=d.done,_=d.value;if(v)return[3,7];c.push(_);s+=(_===null||_===void 0?void 0:_.length)||0;l={url:t.url,bytes:s,contentLength:h};this.notifyListeners("progress",l);return[3,5];case 7:w=new Uint8Array(s);y=0;for(p=0,g=c;p<g.length;p++){b=g[p];if(typeof b==="undefined")continue;w.set(b,y);y+=b.length}u=new Blob([w.buffer],{type:f||undefined});E.label=8;case 8:return[4,this.writeFile({path:t.path,directory:(r=t.directory)!==null&&r!==void 0?r:undefined,recursive:(n=t.recursive)!==null&&n!==void 0?n:false,data:u})];case 9:m=E.sent();return[2,{path:m.uri,blob:u}]}}))}))};return r}r.prototype.initDb=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this._db!==undefined){return[2,this._db]}if(!("indexedDB"in window)){throw this.unavailable("This browser doesn't support IndexedDB")}return[2,new Promise((function(e,n){var i=indexedDB.open(t.DB_NAME,t.DB_VERSION);i.onupgradeneeded=r.doUpgrade;i.onsuccess=function(){t._db=i.result;e(i.result)};i.onerror=function(){return n(i.error)};i.onblocked=function(){console.warn("db blocked")}}))]}))}))};r.doUpgrade=function(t){var r=t.target;var e=r.result;switch(t.oldVersion){case 0:case 1:default:{if(e.objectStoreNames.contains("FileStorage")){e.deleteObjectStore("FileStorage")}var n=e.createObjectStore("FileStorage",{keyPath:"path"});n.createIndex("by_folder","folder")}}};r.prototype.dbRequest=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=this._writeCmds.indexOf(t)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(n){return new Promise((function(i,o){var u=n.transaction(["FileStorage"],e);var a=u.objectStore("FileStorage");var s=a[t].apply(a,r);s.onsuccess=function(){return i(s.result)};s.onerror=function(){return o(s.error)}}))}))]}))}))};r.prototype.dbIndexRequest=function(t,r,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(i){n=this._writeCmds.indexOf(r)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(i){return new Promise((function(o,u){var a=i.transaction(["FileStorage"],n);var s=a.objectStore("FileStorage");var c=s.index(t);var f=c[r].apply(c,e);f.onsuccess=function(){return o(f.result)};f.onerror=function(){return u(f.error)}}))}))]}))}))};r.prototype.getPath=function(t,r){var e=r!==undefined?r.replace(/^[/]+|[/]+$/g,""):"";var n="";if(t!==undefined)n+="/"+t;if(r!=="")n+="/"+e;return n};r.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.initDb()];case 1:t=n.sent();r=t.transaction(["FileStorage"],"readwrite");e=r.objectStore("FileStorage");e.clear();return[2]}}))}))};r.prototype.readFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(e===undefined)throw Error("File does not exist.");return[2,{data:e.content?e.content:""}]}}))}))};r.prototype.writeFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=t.recursive;return[4,this.dbRequest("get",[r])];case 1:o=d.sent();if(o&&o.type==="directory")throw Error("The supplied path is a directory.");u=r.substr(0,r.lastIndexOf("/"));return[4,this.dbRequest("get",[u])];case 2:a=d.sent();if(!(a===undefined))return[3,4];s=u.indexOf("/",1);if(!(s!==-1))return[3,4];c=u.substr(s);return[4,this.mkdir({path:c,directory:t.directory,recursive:i})];case 3:d.sent();d.label=4;case 4:if(!n&&!(e instanceof Blob)){e=e.indexOf(",")>=0?e.split(",")[1]:e;if(!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.")}f=Date.now();h={path:r,folder:u,type:"file",size:e instanceof Blob?e.size:e.length,ctime:f,mtime:f,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2,{uri:h.path}]}}))}))};r.prototype.appendFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=r.substr(0,r.lastIndexOf("/"));o=Date.now();u=o;return[4,this.dbRequest("get",[r])];case 1:a=d.sent();if(a&&a.type==="directory")throw Error("The supplied path is a directory.");return[4,this.dbRequest("get",[i])];case 2:s=d.sent();if(!(s===undefined))return[3,4];c=i.indexOf("/",1);if(!(c!==-1))return[3,4];f=i.substr(c);return[4,this.mkdir({path:f,directory:t.directory,recursive:true})];case 3:d.sent();d.label=4;case 4:if(!n&&!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(a!==undefined){if(a.content instanceof Blob){throw Error("The occupied entry contains a Blob object which cannot be appended to.")}if(a.content!==undefined&&!n){e=btoa(atob(a.content)+atob(e))}else{e=a.content+e}u=a.ctime}h={path:r,folder:i,type:"file",size:e.length,ctime:u,mtime:o,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2]}}))}))};r.prototype.deleteFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n;return __generator(this,(function(i){switch(i.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=i.sent();if(e===undefined)throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=i.sent();if(n.length!==0)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[r])];case 3:i.sent();return[2]}}))}))};r.prototype.mkdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.getPath(t.directory,t.path);e=t.recursive;n=r.substr(0,r.lastIndexOf("/"));i=(r.match(/\//g)||[]).length;return[4,this.dbRequest("get",[n])];case 1:o=f.sent();return[4,this.dbRequest("get",[r])];case 2:u=f.sent();if(i===1)throw Error("Cannot create Root directory");if(u!==undefined)throw Error("Current directory does already exist.");if(!e&&i!==2&&o===undefined)throw Error("Parent directory must exist");if(!(e&&i!==2&&o===undefined))return[3,4];a=n.substr(n.indexOf("/",1));return[4,this.mkdir({path:a,directory:t.directory,recursive:e})];case 3:f.sent();f.label=4;case 4:s=Date.now();c={path:r,folder:n,type:"directory",size:0,ctime:s,mtime:s};return[4,this.dbRequest("put",[c])];case 5:f.sent();return[2]}}))}))};r.prototype.rmdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=t.path,e=t.directory,n=t.recursive;i=this.getPath(e,r);return[4,this.dbRequest("get",[i])];case 1:o=d.sent();if(o===undefined)throw Error("Folder does not exist.");if(o.type!=="directory")throw Error("Requested path is not a directory");return[4,this.readdir({path:r,directory:e})];case 2:u=d.sent();if(u.files.length!==0&&!n)throw Error("Folder is not empty");a=0,s=u.files;d.label=3;case 3:if(!(a<s.length))return[3,9];c=s[a];f="".concat(r,"/").concat(c.name);return[4,this.stat({path:f,directory:e})];case 4:h=d.sent();if(!(h.type==="file"))return[3,6];return[4,this.deleteFile({path:f,directory:e})];case 5:d.sent();return[3,8];case 6:return[4,this.rmdir({path:f,directory:e,recursive:n})];case 7:d.sent();d.label=8;case 8:a++;return[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:d.sent();return[2]}}))}))};r.prototype.readdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i;var o=this;return __generator(this,(function(u){switch(u.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=u.sent();if(t.path!==""&&e===undefined)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=u.sent();return[4,Promise.all(n.map((function(t){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.dbRequest("get",[t])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[t+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{name:t.substring(r.length+1),type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))})))];case 3:i=u.sent();return[2,{files:i}]}}))}))};r.prototype.getUri=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{uri:(e===null||e===void 0?void 0:e.path)||r}]}}))}))};r.prototype.stat=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:if(e===undefined)throw Error("Entry does not exist.");return[2,{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))};r.prototype.rename=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this._copy(t,true)];case 1:r.sent();return[2]}}))}))};r.prototype.copy=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this._copy(t,false)]}))}))};r.prototype.requestPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype.checkPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype._copy=function(t){return __awaiter(this,arguments,void 0,(function(t,r){var e,i,u,a,s,c,f,h,d,v,_,l,w,y,p,g,b,m,E,x,F,S,B;var D=this;if(r===void 0){r=false}return __generator(this,(function(T){switch(T.label){case 0:e=t.toDirectory;i=t.to,u=t.from,a=t.directory;if(!i||!u){throw Error("Both to and from must be provided")}if(!e){e=a}s=this.getPath(a,u);c=this.getPath(e,i);if(s===c){return[2,{uri:c}]}if(o(s,c)){throw Error("To path cannot contain the from path")}T.label=1;case 1:T.trys.push([1,3,,6]);return[4,this.stat({path:i,directory:e})];case 2:f=T.sent();return[3,6];case 3:h=T.sent();d=i.split("/");d.pop();v=d.join("/");if(!(d.length>0))return[3,5];return[4,this.stat({path:v,directory:e})];case 4:_=T.sent();if(_.type!=="directory"){throw new Error("Parent directory of the to path is a file")}T.label=5;case 5:return[3,6];case 6:if(f&&f.type==="directory"){throw new Error("Cannot overwrite a directory with a file")}return[4,this.stat({path:u,directory:a})];case 7:l=T.sent();w=function(t,r,n){return __awaiter(D,void 0,void 0,(function(){var i,o;return __generator(this,(function(u){switch(u.label){case 0:i=this.getPath(e,t);return[4,this.dbRequest("get",[i])];case 1:o=u.sent();o.ctime=r;o.mtime=n;return[4,this.dbRequest("put",[o])];case 2:u.sent();return[2]}}))}))};y=l.ctime?l.ctime:Date.now();p=l.type;switch(p){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:u,directory:a})];case 9:g=T.sent();if(!r)return[3,11];return[4,this.deleteFile({path:u,directory:a})];case 10:T.sent();T.label=11;case 11:b=void 0;if(!(g.data instanceof Blob)&&!this.isBase64String(g.data)){b=n.UTF8}return[4,this.writeFile({path:i,directory:e,data:g.data,encoding:b})];case 12:m=T.sent();if(!r)return[3,14];return[4,w(i,y,l.mtime)];case 13:T.sent();T.label=14;case 14:return[2,m];case 15:if(f){throw Error("Cannot move a directory over an existing object")}T.label=16;case 16:T.trys.push([16,20,,21]);return[4,this.mkdir({path:i,directory:e,recursive:false})];case 17:T.sent();if(!r)return[3,19];return[4,w(i,y,l.mtime)];case 18:T.sent();T.label=19;case 19:return[3,21];case 20:E=T.sent();return[3,21];case 21:return[4,this.readdir({path:u,directory:a})];case 22:x=T.sent().files;F=0,S=x;T.label=23;case 23:if(!(F<S.length))return[3,26];B=S[F];return[4,this._copy({from:"".concat(u,"/").concat(B.name),to:"".concat(i,"/").concat(B.name),directory:a,toDirectory:e},r)];case 24:T.sent();T.label=25;case 25:F++;return[3,23];case 26:if(!r)return[3,28];return[4,this.rmdir({path:u,directory:a})];case 27:T.sent();T.label=28;case 28:return[2,{uri:c}]}}))}))};r.prototype.isBase64String=function(t){try{return btoa(atob(t))==t}catch(t){return false}};return r}(r);t("FilesystemWeb",u);u._debug=true}}}));
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(r,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))t[e]=r[e]};return t(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(r,e);function n(){this.constructor=r}r.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,r,e,n){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n["throw"](t))}catch(t){o(t)}}function s(t){t.done?e(t.value):i(t.value).then(u,a)}s((n=n.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(e=0)),e)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;i=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1];o=a;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(a);break}if(o[2])e.ops.pop();e.trys.pop();continue}a=r.call(t,e)}catch(t){a=[6,t];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-11622ab2.system.js","./p-0e29bbf9.system.js","./p-e0867d29.system.js"],(function(t){"use strict";var r,e,n;return{setters:[function(t){r=t.W;e=t.x;n=t.E},function(){},function(){}],execute:function(){function i(t){var r=t.split("/").filter((function(t){return t!=="."}));var e=[];r.forEach((function(t){if(t===".."&&e.length>0&&e[e.length-1]!==".."){e.pop()}else{e.push(t)}}));return e.join("/")}function o(t,r){t=i(t);r=i(r);var e=t.split("/");var n=r.split("/");return t!==r&&e.every((function(t,r){return t===n[r]}))}var u=function(t){__extends(r,t);function r(){var r=t.apply(this,arguments)||this;r.DB_VERSION=1;r.DB_NAME="Disc";r._writeCmds=["add","put","delete"];r.downloadFile=function(t){return __awaiter(r,void 0,void 0,(function(){var r,n,i,o,u,a,s,c,f,h,d,v,_,l,w,y,p,g,b,m;return __generator(this,(function(E){switch(E.label){case 0:i=e(t,t.webFetchExtra);return[4,fetch(t.url,i)];case 1:o=E.sent();if(!!t.progress)return[3,3];return[4,o.blob()];case 2:u=E.sent();return[3,8];case 3:if(!!(o===null||o===void 0?void 0:o.body))return[3,4];u=new Blob;return[3,8];case 4:a=o.body.getReader();s=0;c=[];f=o.headers.get("content-type");h=parseInt(o.headers.get("content-length")||"0",10);E.label=5;case 5:if(!true)return[3,7];return[4,a.read()];case 6:d=E.sent(),v=d.done,_=d.value;if(v)return[3,7];c.push(_);s+=(_===null||_===void 0?void 0:_.length)||0;l={url:t.url,bytes:s,contentLength:h};this.notifyListeners("progress",l);return[3,5];case 7:w=new Uint8Array(s);y=0;for(p=0,g=c;p<g.length;p++){b=g[p];if(typeof b==="undefined")continue;w.set(b,y);y+=b.length}u=new Blob([w.buffer],{type:f||undefined});E.label=8;case 8:return[4,this.writeFile({path:t.path,directory:(r=t.directory)!==null&&r!==void 0?r:undefined,recursive:(n=t.recursive)!==null&&n!==void 0?n:false,data:u})];case 9:m=E.sent();return[2,{path:m.uri,blob:u}]}}))}))};return r}r.prototype.initDb=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this._db!==undefined){return[2,this._db]}if(!("indexedDB"in window)){throw this.unavailable("This browser doesn't support IndexedDB")}return[2,new Promise((function(e,n){var i=indexedDB.open(t.DB_NAME,t.DB_VERSION);i.onupgradeneeded=r.doUpgrade;i.onsuccess=function(){t._db=i.result;e(i.result)};i.onerror=function(){return n(i.error)};i.onblocked=function(){console.warn("db blocked")}}))]}))}))};r.doUpgrade=function(t){var r=t.target;var e=r.result;switch(t.oldVersion){case 0:case 1:default:{if(e.objectStoreNames.contains("FileStorage")){e.deleteObjectStore("FileStorage")}var n=e.createObjectStore("FileStorage",{keyPath:"path"});n.createIndex("by_folder","folder")}}};r.prototype.dbRequest=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=this._writeCmds.indexOf(t)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(n){return new Promise((function(i,o){var u=n.transaction(["FileStorage"],e);var a=u.objectStore("FileStorage");var s=a[t].apply(a,r);s.onsuccess=function(){return i(s.result)};s.onerror=function(){return o(s.error)}}))}))]}))}))};r.prototype.dbIndexRequest=function(t,r,e){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(i){n=this._writeCmds.indexOf(r)!==-1?"readwrite":"readonly";return[2,this.initDb().then((function(i){return new Promise((function(o,u){var a=i.transaction(["FileStorage"],n);var s=a.objectStore("FileStorage");var c=s.index(t);var f=c[r].apply(c,e);f.onsuccess=function(){return o(f.result)};f.onerror=function(){return u(f.error)}}))}))]}))}))};r.prototype.getPath=function(t,r){var e=r!==undefined?r.replace(/^[/]+|[/]+$/g,""):"";var n="";if(t!==undefined)n+="/"+t;if(r!=="")n+="/"+e;return n};r.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.initDb()];case 1:t=n.sent();r=t.transaction(["FileStorage"],"readwrite");e=r.objectStore("FileStorage");e.clear();return[2]}}))}))};r.prototype.readFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(e===undefined)throw Error("File does not exist.");return[2,{data:e.content?e.content:""}]}}))}))};r.prototype.writeFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=t.recursive;return[4,this.dbRequest("get",[r])];case 1:o=d.sent();if(o&&o.type==="directory")throw Error("The supplied path is a directory.");u=r.substr(0,r.lastIndexOf("/"));return[4,this.dbRequest("get",[u])];case 2:a=d.sent();if(!(a===undefined))return[3,4];s=u.indexOf("/",1);if(!(s!==-1))return[3,4];c=u.substr(s);return[4,this.mkdir({path:c,directory:t.directory,recursive:i})];case 3:d.sent();d.label=4;case 4:if(!n&&!(e instanceof Blob)){e=e.indexOf(",")>=0?e.split(",")[1]:e;if(!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.")}f=Date.now();h={path:r,folder:u,type:"file",size:e instanceof Blob?e.size:e.length,ctime:f,mtime:f,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2,{uri:h.path}]}}))}))};r.prototype.appendFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=this.getPath(t.directory,t.path);e=t.data;n=t.encoding;i=r.substr(0,r.lastIndexOf("/"));o=Date.now();u=o;return[4,this.dbRequest("get",[r])];case 1:a=d.sent();if(a&&a.type==="directory")throw Error("The supplied path is a directory.");return[4,this.dbRequest("get",[i])];case 2:s=d.sent();if(!(s===undefined))return[3,4];c=i.indexOf("/",1);if(!(c!==-1))return[3,4];f=i.substr(c);return[4,this.mkdir({path:f,directory:t.directory,recursive:true})];case 3:d.sent();d.label=4;case 4:if(!n&&!this.isBase64String(e))throw Error("The supplied data is not valid base64 content.");if(a!==undefined){if(a.content instanceof Blob){throw Error("The occupied entry contains a Blob object which cannot be appended to.")}if(a.content!==undefined&&!n){e=btoa(atob(a.content)+atob(e))}else{e=a.content+e}u=a.ctime}h={path:r,folder:i,type:"file",size:e.length,ctime:u,mtime:o,content:e};return[4,this.dbRequest("put",[h])];case 5:d.sent();return[2]}}))}))};r.prototype.deleteFile=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n;return __generator(this,(function(i){switch(i.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=i.sent();if(e===undefined)throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=i.sent();if(n.length!==0)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[r])];case 3:i.sent();return[2]}}))}))};r.prototype.mkdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.getPath(t.directory,t.path);e=t.recursive;n=r.substr(0,r.lastIndexOf("/"));i=(r.match(/\//g)||[]).length;return[4,this.dbRequest("get",[n])];case 1:o=f.sent();return[4,this.dbRequest("get",[r])];case 2:u=f.sent();if(i===1)throw Error("Cannot create Root directory");if(u!==undefined)throw Error("Current directory does already exist.");if(!e&&i!==2&&o===undefined)throw Error("Parent directory must exist");if(!(e&&i!==2&&o===undefined))return[3,4];a=n.substr(n.indexOf("/",1));return[4,this.mkdir({path:a,directory:t.directory,recursive:e})];case 3:f.sent();f.label=4;case 4:s=Date.now();c={path:r,folder:n,type:"directory",size:0,ctime:s,mtime:s};return[4,this.dbRequest("put",[c])];case 5:f.sent();return[2]}}))}))};r.prototype.rmdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i,o,u,a,s,c,f,h;return __generator(this,(function(d){switch(d.label){case 0:r=t.path,e=t.directory,n=t.recursive;i=this.getPath(e,r);return[4,this.dbRequest("get",[i])];case 1:o=d.sent();if(o===undefined)throw Error("Folder does not exist.");if(o.type!=="directory")throw Error("Requested path is not a directory");return[4,this.readdir({path:r,directory:e})];case 2:u=d.sent();if(u.files.length!==0&&!n)throw Error("Folder is not empty");a=0,s=u.files;d.label=3;case 3:if(!(a<s.length))return[3,9];c=s[a];f="".concat(r,"/").concat(c.name);return[4,this.stat({path:f,directory:e})];case 4:h=d.sent();if(!(h.type==="file"))return[3,6];return[4,this.deleteFile({path:f,directory:e})];case 5:d.sent();return[3,8];case 6:return[4,this.rmdir({path:f,directory:e,recursive:n})];case 7:d.sent();d.label=8;case 8:a++;return[3,3];case 9:return[4,this.dbRequest("delete",[i])];case 10:d.sent();return[2]}}))}))};r.prototype.readdir=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,n,i;var o=this;return __generator(this,(function(u){switch(u.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=u.sent();if(t.path!==""&&e===undefined)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(r)])];case 2:n=u.sent();return[4,Promise.all(n.map((function(t){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.dbRequest("get",[t])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[t+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{name:t.substring(r.length+1),type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))})))];case 3:i=u.sent();return[2,{files:i}]}}))}))};r.prototype.getUri=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:return[2,{uri:(e===null||e===void 0?void 0:e.path)||r}]}}))}))};r.prototype.stat=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(n){switch(n.label){case 0:r=this.getPath(t.directory,t.path);return[4,this.dbRequest("get",[r])];case 1:e=n.sent();if(!(e===undefined))return[3,3];return[4,this.dbRequest("get",[r+"/"])];case 2:e=n.sent();n.label=3;case 3:if(e===undefined)throw Error("Entry does not exist.");return[2,{type:e.type,size:e.size,ctime:e.ctime,mtime:e.mtime,uri:e.path}]}}))}))};r.prototype.rename=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this._copy(t,true)];case 1:r.sent();return[2]}}))}))};r.prototype.copy=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,this._copy(t,false)]}))}))};r.prototype.requestPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype.checkPermissions=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,{publicStorage:"granted"}]}))}))};r.prototype._copy=function(t){return __awaiter(this,arguments,void 0,(function(t,r){var e,i,u,a,s,c,f,h,d,v,_,l,w,y,p,g,b,m,E,x,F,S,B;var D=this;if(r===void 0){r=false}return __generator(this,(function(T){switch(T.label){case 0:e=t.toDirectory;i=t.to,u=t.from,a=t.directory;if(!i||!u){throw Error("Both to and from must be provided")}if(!e){e=a}s=this.getPath(a,u);c=this.getPath(e,i);if(s===c){return[2,{uri:c}]}if(o(s,c)){throw Error("To path cannot contain the from path")}T.label=1;case 1:T.trys.push([1,3,,6]);return[4,this.stat({path:i,directory:e})];case 2:f=T.sent();return[3,6];case 3:h=T.sent();d=i.split("/");d.pop();v=d.join("/");if(!(d.length>0))return[3,5];return[4,this.stat({path:v,directory:e})];case 4:_=T.sent();if(_.type!=="directory"){throw new Error("Parent directory of the to path is a file")}T.label=5;case 5:return[3,6];case 6:if(f&&f.type==="directory"){throw new Error("Cannot overwrite a directory with a file")}return[4,this.stat({path:u,directory:a})];case 7:l=T.sent();w=function(t,r,n){return __awaiter(D,void 0,void 0,(function(){var i,o;return __generator(this,(function(u){switch(u.label){case 0:i=this.getPath(e,t);return[4,this.dbRequest("get",[i])];case 1:o=u.sent();o.ctime=r;o.mtime=n;return[4,this.dbRequest("put",[o])];case 2:u.sent();return[2]}}))}))};y=l.ctime?l.ctime:Date.now();p=l.type;switch(p){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:u,directory:a})];case 9:g=T.sent();if(!r)return[3,11];return[4,this.deleteFile({path:u,directory:a})];case 10:T.sent();T.label=11;case 11:b=void 0;if(!(g.data instanceof Blob)&&!this.isBase64String(g.data)){b=n.UTF8}return[4,this.writeFile({path:i,directory:e,data:g.data,encoding:b})];case 12:m=T.sent();if(!r)return[3,14];return[4,w(i,y,l.mtime)];case 13:T.sent();T.label=14;case 14:return[2,m];case 15:if(f){throw Error("Cannot move a directory over an existing object")}T.label=16;case 16:T.trys.push([16,20,,21]);return[4,this.mkdir({path:i,directory:e,recursive:false})];case 17:T.sent();if(!r)return[3,19];return[4,w(i,y,l.mtime)];case 18:T.sent();T.label=19;case 19:return[3,21];case 20:E=T.sent();return[3,21];case 21:return[4,this.readdir({path:u,directory:a})];case 22:x=T.sent().files;F=0,S=x;T.label=23;case 23:if(!(F<S.length))return[3,26];B=S[F];return[4,this._copy({from:"".concat(u,"/").concat(B.name),to:"".concat(i,"/").concat(B.name),directory:a,toDirectory:e},r)];case 24:T.sent();T.label=25;case 25:F++;return[3,23];case 26:if(!r)return[3,28];return[4,this.rmdir({path:u,directory:a})];case 27:T.sent();T.label=28;case 28:return[2,{uri:c}]}}))}))};r.prototype.isBase64String=function(t){try{return btoa(atob(t))==t}catch(t){return false}};return r}(r);t("FilesystemWeb",u);u._debug=true}}}));
|
|
2
|
+
//# sourceMappingURL=p-06ec8b64.system.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./p-e0867d29.system.js"],(function(n){"use strict";var t,r;return{setters:[function(n){t=n.a;r=n.f}],execute:function(){var e=function(n,t,r){var e=n.get(t);if(!e){n.set(t,[r])}else if(!e.includes(r)){e.push(r)}};var u=function(n,t){var r;return function(){var e=[];for(var u=0;u<arguments.length;u++){e[u]=arguments[u]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;n.apply(void 0,e)}),t)}};var l=function(n){return!("isConnected"in n)||n.isConnected};var o=u((function(n){for(var t=0,r=n.keys();t<r.length;t++){var e=r[t];n.set(e,n.get(e).filter(l))}}),2e3);var i=function(){if(typeof t!=="function"){return{}}var n=new Map;return{dispose:function(){return n.clear()},get:function(r){var u=t();if(u){e(n,r,u)}},set:function(t){var e=n.get(t);if(e){n.set(t,e.filter(r))}o(n)},reset:function(){n.forEach((function(n){return n.forEach(r)}));o(n)}}};var s=function(n){return typeof n==="function"?n():n};var c=function(n,t){if(t===void 0){t=function(n,t){return n!==t}}var r=s(n);var e=new Map(Object.entries(r!==null&&r!==void 0?r:{}));var u={dispose:[],get:[],set:[],reset:[]};var l=function(){var t;e=new Map(Object.entries((t=s(n))!==null&&t!==void 0?t:{}));u.reset.forEach((function(n){return n()}))};var o=function(){u.dispose.forEach((function(n){return n()}));l()};var i=function(n){u.get.forEach((function(t){return t(n)}));return e.get(n)};var c=function(n,r){var l=e.get(n);if(t(r,l,n)){e.set(n,r);u.set.forEach((function(t){return t(n,r,l)}))}};var f=typeof Proxy==="undefined"?{}:new Proxy(r,{get:function(n,t){return i(t)},ownKeys:function(n){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(n,t){return e.has(t)},set:function(n,t,r){c(t,r);return true}});var d=function(n,t){u[n].push(t);return function(){a(u[n],t)}};var v=function(t,r){var e=d("set",(function(n,e){if(n===t){r(e)}}));var u=d("reset",(function(){return r(s(n)[t])}));return function(){e();u()}};var p=function(){var n=[];for(var t=0;t<arguments.length;t++){n[t]=arguments[t]}var r=n.reduce((function(n,t){if(t.set){n.push(d("set",t.set))}if(t.get){n.push(d("get",t.get))}if(t.reset){n.push(d("reset",t.reset))}if(t.dispose){n.push(d("dispose",t.dispose))}return n}),[]);return function(){return r.forEach((function(n){return n()}))}};var T=function(n){var t=e.get(n);u.set.forEach((function(r){return r(n,t,t)}))};return{state:f,get:i,set:c,on:d,onChange:v,use:p,dispose:o,reset:l,forceUpdate:T}};var a=function(n,t){var r=n.indexOf(t);if(r>=0){n[r]=n[n.length-1];n.length--}};var f=function(n,t){var r=c(n,t);r.use(i());return r};var d=f({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
System.register(["./p-e0867d29.system.js"],(function(n){"use strict";var t,r;return{setters:[function(n){t=n.a;r=n.f}],execute:function(){var e=function(n,t,r){var e=n.get(t);if(!e){n.set(t,[r])}else if(!e.includes(r)){e.push(r)}};var u=function(n,t){var r;return function(){var e=[];for(var u=0;u<arguments.length;u++){e[u]=arguments[u]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;n.apply(void 0,e)}),t)}};var l=function(n){return!("isConnected"in n)||n.isConnected};var o=u((function(n){for(var t=0,r=n.keys();t<r.length;t++){var e=r[t];n.set(e,n.get(e).filter(l))}}),2e3);var i=function(){if(typeof t!=="function"){return{}}var n=new Map;return{dispose:function(){return n.clear()},get:function(r){var u=t();if(u){e(n,r,u)}},set:function(t){var e=n.get(t);if(e){n.set(t,e.filter(r))}o(n)},reset:function(){n.forEach((function(n){return n.forEach(r)}));o(n)}}};var s=function(n){return typeof n==="function"?n():n};var c=function(n,t){if(t===void 0){t=function(n,t){return n!==t}}var r=s(n);var e=new Map(Object.entries(r!==null&&r!==void 0?r:{}));var u={dispose:[],get:[],set:[],reset:[]};var l=function(){var t;e=new Map(Object.entries((t=s(n))!==null&&t!==void 0?t:{}));u.reset.forEach((function(n){return n()}))};var o=function(){u.dispose.forEach((function(n){return n()}));l()};var i=function(n){u.get.forEach((function(t){return t(n)}));return e.get(n)};var c=function(n,r){var l=e.get(n);if(t(r,l,n)){e.set(n,r);u.set.forEach((function(t){return t(n,r,l)}))}};var f=typeof Proxy==="undefined"?{}:new Proxy(r,{get:function(n,t){return i(t)},ownKeys:function(n){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(n,t){return e.has(t)},set:function(n,t,r){c(t,r);return true}});var d=function(n,t){u[n].push(t);return function(){a(u[n],t)}};var v=function(t,r){var e=d("set",(function(n,e){if(n===t){r(e)}}));var u=d("reset",(function(){return r(s(n)[t])}));return function(){e();u()}};var p=function(){var n=[];for(var t=0;t<arguments.length;t++){n[t]=arguments[t]}var r=n.reduce((function(n,t){if(t.set){n.push(d("set",t.set))}if(t.get){n.push(d("get",t.get))}if(t.reset){n.push(d("reset",t.reset))}if(t.dispose){n.push(d("dispose",t.dispose))}return n}),[]);return function(){return r.forEach((function(n){return n()}))}};var T=function(n){var t=e.get(n);u.set.forEach((function(r){return r(n,t,t)}))};return{state:f,get:i,set:c,on:d,onChange:v,use:p,dispose:o,reset:l,forceUpdate:T}};var a=function(n,t){var r=n.indexOf(t);if(r>=0){n[r]=n[n.length-1];n.length--}};var f=function(n,t){var r=c(n,t);r.use(i());return r};var d=f({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:null,durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,ratings:null,ratingsScale:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,networkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null,selectedStepId:null,trekTouristicContents:null,touristicContents:null,currentTouristicContents:null,touristicContentsWithinBounds:null,touristicContentCategories:null,currentTouristicContent:null,trekTouristicEvents:null,touristicEvents:null,currentTouristicEvents:null,touristicEventsWithinBounds:null,touristicEventTypes:null,currentTouristicEvent:null,selectedTouristicContentId:null,selectedTouristicEventId:null,networks:null,portalsFromProviders:null,inBboxFromProviders:null,citiesFromProviders:null,districtsFromProviders:null,structuresFromProviders:null,themesFromProviders:null,routesFromProviders:null,practicesFromProviders:null,labelsFromProviders:null,offlineTreks:false,currentOutdoorSites:null,outdoorSites:null,outdoorSitesWithinBounds:null,currentOutdoorCourses:null,outdoorCourses:null,outdoorSiteTypes:null,outdoorPractices:null,selectedOutdoorSiteId:null,currentOutdoorSite:null,currentRelatedOutdoorSites:null,currentRelatedOutdoorCourses:null,selectedOutdoorCourseId:null,outdoorCourseTypes:null,currentOutdoorCourse:null,outdoorRatings:null,outdoorRatingsScale:null,offlineOutdoorSites:false,currentSignages:null,touristicContentsData:0,touristicEventsData:0,poisData:0}),v=d.state,p=d.onChange,T=d.reset;n({s:v,o:p,r:T})}}}));
|
|
2
|
+
//# sourceMappingURL=p-0e29bbf9.system.js.map
|
|
Binary file
|
|
Binary file
|