geoiq-frontend-ui-kit 2.0.0 → 2.0.2
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/components/atoms/badge/badge.styles.d.ts +2 -2
- package/dist/components/atoms/button/button.styles.d.ts +2 -2
- package/dist/components/atoms/checkbox/checkbox.styles.d.ts +2 -2
- package/dist/components/atoms/switch/switch.styles.d.ts +2 -2
- package/dist/components/molecules/alert/alert.styles.d.ts +1 -1
- package/dist/components/molecules/creatable-multi-combobox/creatable-multi-combobox.d.ts +4 -0
- package/dist/components/molecules/creatable-multi-combobox/creatable-multi-combobox.d.ts.map +1 -0
- package/dist/components/molecules/creatable-multi-combobox/creatable-multi-combobox.types.d.ts +49 -0
- package/dist/components/molecules/creatable-multi-combobox/creatable-multi-combobox.types.d.ts.map +1 -0
- package/dist/components/molecules/creatable-multi-combobox/index.d.ts +4 -0
- package/dist/components/molecules/creatable-multi-combobox/index.d.ts.map +1 -0
- package/dist/components/molecules/single-select/index.d.ts.map +1 -1
- package/dist/components/molecules/single-select/single-select-components.d.ts +3 -1
- package/dist/components/molecules/single-select/single-select-components.d.ts.map +1 -1
- package/dist/components/molecules/single-select/single-select.types.d.ts +9 -0
- package/dist/components/molecules/single-select/single-select.types.d.ts.map +1 -1
- package/dist/components/molecules/split-button/split-button.styles.d.ts +3 -3
- package/dist/components/molecules/swatch-grid/index.d.ts +3 -0
- package/dist/components/molecules/swatch-grid/index.d.ts.map +1 -0
- package/dist/components/molecules/swatch-grid/swatch-grid.d.ts +4 -0
- package/dist/components/molecules/swatch-grid/swatch-grid.d.ts.map +1 -0
- package/dist/components/molecules/swatch-grid/swatch-grid.types.d.ts +17 -0
- package/dist/components/molecules/swatch-grid/swatch-grid.types.d.ts.map +1 -0
- package/dist/components/molecules/tabs/tabs.d.ts.map +1 -1
- package/dist/components/molecules/tabs/tabs.styles.d.ts +2 -2
- package/dist/components/molecules/tabs/tabs.types.d.ts +1 -0
- package/dist/components/molecules/tabs/tabs.types.d.ts.map +1 -1
- package/dist/components/organisms/dialog/dialog.d.ts +1 -1
- package/dist/components/organisms/dialog/dialog.d.ts.map +1 -1
- package/dist/components/organisms/dialog/dialog.types.d.ts +9 -0
- package/dist/components/organisms/dialog/dialog.types.d.ts.map +1 -1
- package/dist/components/organisms/image-editor/components/color-picker.d.ts +7 -0
- package/dist/components/organisms/image-editor/components/color-picker.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/layers-list.d.ts +9 -0
- package/dist/components/organisms/image-editor/components/layers-list.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/panel-adjust.d.ts +9 -0
- package/dist/components/organisms/image-editor/components/panel-adjust.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/panel-crop.d.ts +9 -0
- package/dist/components/organisms/image-editor/components/panel-crop.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/panel-insert.d.ts +9 -0
- package/dist/components/organisms/image-editor/components/panel-insert.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/panel-selected.d.ts +9 -0
- package/dist/components/organisms/image-editor/components/panel-selected.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/panel.d.ts +9 -0
- package/dist/components/organisms/image-editor/components/panel.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/portal-context.d.ts +3 -0
- package/dist/components/organisms/image-editor/components/portal-context.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/ribbon.d.ts +9 -0
- package/dist/components/organisms/image-editor/components/ribbon.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/shape-icons.d.ts +4 -0
- package/dist/components/organisms/image-editor/components/shape-icons.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/stage.d.ts +18 -0
- package/dist/components/organisms/image-editor/components/stage.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/components/status-bar.d.ts +6 -0
- package/dist/components/organisms/image-editor/components/status-bar.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/image-editor-modal.d.ts +10 -0
- package/dist/components/organisms/image-editor/image-editor-modal.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/image-editor.d.ts +5 -0
- package/dist/components/organisms/image-editor/image-editor.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/image-editor.types.d.ts +182 -0
- package/dist/components/organisms/image-editor/image-editor.types.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/index.d.ts +4 -0
- package/dist/components/organisms/image-editor/index.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/native-bridge.d.ts +3 -0
- package/dist/components/organisms/image-editor/native-bridge.d.ts.map +1 -0
- package/dist/components/organisms/image-editor/picture-studio-engine.d.ts +16 -0
- package/dist/components/organisms/image-editor/use-image-editor.d.ts +4 -0
- package/dist/components/organisms/image-editor/use-image-editor.d.ts.map +1 -0
- package/dist/components/organisms/navbar/navbar-desktop.d.ts.map +1 -1
- package/dist/components/organisms/navbar/navbar-extended.d.ts.map +1 -1
- package/dist/components/organisms/navbar/navbar-mobile.d.ts.map +1 -1
- package/dist/components/organisms/navbar/navbar.types.d.ts +17 -0
- package/dist/components/organisms/navbar/navbar.types.d.ts.map +1 -1
- package/dist/components/organisms/sheet/sheet.d.ts +1 -1
- package/dist/components/organisms/sheet/sheet.d.ts.map +1 -1
- package/dist/components/organisms/sheet/sheet.types.d.ts +1 -0
- package/dist/components/organisms/sheet/sheet.types.d.ts.map +1 -1
- package/dist/components/organisms/sidebar/sidebar-components.d.ts +1 -1
- package/dist/components/ui/brand-switcher/brand-switcher.d.ts +5 -0
- package/dist/components/ui/brand-switcher/brand-switcher.d.ts.map +1 -0
- package/dist/components/ui/brand-switcher/brand-switcher.types.d.ts +29 -0
- package/dist/components/ui/brand-switcher/brand-switcher.types.d.ts.map +1 -0
- package/dist/components/ui/brand-switcher/index.d.ts +3 -0
- package/dist/components/ui/brand-switcher/index.d.ts.map +1 -0
- package/dist/components/ui/credit-sheet/credit-sheet.d.ts.map +1 -1
- package/dist/components/ui/credit-sheet/credit-sheet.types.d.ts +3 -0
- package/dist/components/ui/credit-sheet/credit-sheet.types.d.ts.map +1 -1
- package/dist/components/ui/credits-indicator/credits-indicator.d.ts +6 -0
- package/dist/components/ui/credits-indicator/credits-indicator.d.ts.map +1 -0
- package/dist/components/ui/credits-indicator/credits-indicator.styles.d.ts +7 -0
- package/dist/components/ui/credits-indicator/credits-indicator.styles.d.ts.map +1 -0
- package/dist/components/ui/credits-indicator/credits-indicator.types.d.ts +14 -0
- package/dist/components/ui/credits-indicator/credits-indicator.types.d.ts.map +1 -0
- package/dist/components/ui/credits-indicator/index.d.ts +3 -0
- package/dist/components/ui/credits-indicator/index.d.ts.map +1 -0
- package/dist/components/ui/form-renderer/components/form-fields/components/multi-image-picker/index.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/components/form-fields/components/single-image-picker/index.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/components/form-fields/components/taggable-multi-image-picker/index.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/components/form-fields/components/taggable-multi-image-picker-with-input/index.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/components/form-fields/index.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/components/form-read-only-view.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/context/form-values/form-values.context.d.ts +4 -0
- package/dist/components/ui/form-renderer/context/form-values/form-values.context.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/context/form-values/form-values.provider.d.ts +2 -0
- package/dist/components/ui/form-renderer/context/form-values/form-values.provider.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/form-renderer.d.ts +10 -0
- package/dist/components/ui/form-renderer/form-renderer.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/form.enums.d.ts +1 -0
- package/dist/components/ui/form-renderer/form.enums.d.ts.map +1 -1
- package/dist/components/ui/form-renderer/form.types.d.ts +20 -1
- package/dist/components/ui/form-renderer/form.types.d.ts.map +1 -1
- package/dist/components/ui/map-marker-hover-card/components/map-cluster-hover-card.d.ts +1 -1
- package/dist/components/ui/map-marker-hover-card/components/map-cluster-hover-card.d.ts.map +1 -1
- package/dist/components/ui/report-snippet-view/report-snippet-view-components.d.ts.map +1 -1
- package/dist/components/ui/request-credits-view/component/request-credit-dialog.d.ts.map +1 -1
- package/dist/components/ui/request-credits-view/component/request-credit-dialog.types.d.ts +3 -0
- package/dist/components/ui/request-credits-view/component/request-credit-dialog.types.d.ts.map +1 -1
- package/dist/components/ui/request-credits-view/index.d.ts +1 -0
- package/dist/components/ui/request-credits-view/index.d.ts.map +1 -1
- package/dist/components/ui/request-credits-view/request-credits-view.d.ts.map +1 -1
- package/dist/components/ui/request-credits-view/request-credits-view.types.d.ts +3 -0
- package/dist/components/ui/request-credits-view/request-credits-view.types.d.ts.map +1 -1
- package/dist/components/unstyled/spinner/spinner.styles.d.ts +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +210 -193
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +30 -23
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es100.js +120 -10
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +16 -97
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +41 -60
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js +13 -54
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es104.js +68 -5
- package/dist/index.es104.js.map +1 -1
- package/dist/index.es105.js +32 -9
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es106.js +19 -32
- package/dist/index.es106.js.map +1 -1
- package/dist/index.es107.js +18 -61
- package/dist/index.es107.js.map +1 -1
- package/dist/index.es108.js +12 -22
- package/dist/index.es108.js.map +1 -1
- package/dist/index.es109.js +98 -22
- package/dist/index.es109.js.map +1 -1
- package/dist/index.es11.js +77 -25
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es110.js +62 -21
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es111.js +48 -174
- package/dist/index.es111.js.map +1 -1
- package/dist/index.es112.js +39 -37
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js +10 -40
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es114.js +88 -37
- package/dist/index.es114.js.map +1 -1
- package/dist/index.es115.js +15 -13
- package/dist/index.es115.js.map +1 -1
- package/dist/index.es116.js +88 -261
- package/dist/index.es116.js.map +1 -1
- package/dist/index.es117.js +14 -9
- package/dist/index.es117.js.map +1 -1
- package/dist/index.es118.js +101 -67
- package/dist/index.es118.js.map +1 -1
- package/dist/index.es119.js +23 -185
- package/dist/index.es119.js.map +1 -1
- package/dist/index.es12.js +26 -14
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es120.js +25 -23
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es121.js +22 -177
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es122.js +43 -7
- package/dist/index.es122.js.map +1 -1
- package/dist/index.es123.js +32 -84
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es124.js +63 -37
- package/dist/index.es124.js.map +1 -1
- package/dist/index.es125.js +180 -11
- package/dist/index.es125.js.map +1 -1
- package/dist/index.es126.js +13 -35
- package/dist/index.es126.js.map +1 -1
- package/dist/index.es127.js +9 -16
- package/dist/index.es127.js.map +1 -1
- package/dist/index.es128.js +68 -5
- package/dist/index.es128.js.map +1 -1
- package/dist/index.es129.js +185 -10
- package/dist/index.es129.js.map +1 -1
- package/dist/index.es13.js +27 -19
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +22 -10
- package/dist/index.es130.js.map +1 -1
- package/dist/index.es131.js +203 -2
- package/dist/index.es131.js.map +1 -1
- package/dist/index.es132.js +40 -22
- package/dist/index.es132.js.map +1 -1
- package/dist/index.es133.js +11 -257
- package/dist/index.es133.js.map +1 -1
- package/dist/index.es134.js +7 -35
- package/dist/index.es134.js.map +1 -1
- package/dist/index.es135.js +34 -8
- package/dist/index.es135.js.map +1 -1
- package/dist/index.es136.js +36 -78
- package/dist/index.es136.js.map +1 -1
- package/dist/index.es137.js +2 -76
- package/dist/index.es137.js.map +1 -1
- package/dist/index.es138.js +21 -110
- package/dist/index.es138.js.map +1 -1
- package/dist/index.es139.js +14 -107
- package/dist/index.es139.js.map +1 -1
- package/dist/index.es14.js +16 -46
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es140.js +7 -87
- package/dist/index.es140.js.map +1 -1
- package/dist/index.es141.js +21 -128
- package/dist/index.es141.js.map +1 -1
- package/dist/index.es142.js +155 -114
- package/dist/index.es142.js.map +1 -1
- package/dist/index.es143.js +82 -6
- package/dist/index.es143.js.map +1 -1
- package/dist/index.es144.js +8 -0
- package/dist/index.es144.js.map +1 -0
- package/dist/index.es145.js +59 -0
- package/dist/index.es145.js.map +1 -0
- package/dist/index.es146.js +120 -0
- package/dist/index.es146.js.map +1 -0
- package/dist/index.es147.js +325 -0
- package/dist/index.es147.js.map +1 -0
- package/dist/index.es148.js +31 -0
- package/dist/index.es148.js.map +1 -0
- package/dist/index.es149.js +71 -0
- package/dist/index.es149.js.map +1 -0
- package/dist/index.es15.js +18 -21
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es150.js +35 -0
- package/dist/index.es150.js.map +1 -0
- package/dist/index.es151.js +28 -0
- package/dist/index.es151.js.map +1 -0
- package/dist/index.es152.js +41 -0
- package/dist/index.es152.js.map +1 -0
- package/dist/index.es153.js +146 -0
- package/dist/index.es153.js.map +1 -0
- package/dist/index.es154.js +147 -0
- package/dist/index.es154.js.map +1 -0
- package/dist/index.es155.js +50 -0
- package/dist/index.es155.js.map +1 -0
- package/dist/index.es156.js +15 -0
- package/dist/index.es156.js.map +1 -0
- package/dist/index.es157.js +47 -0
- package/dist/index.es157.js.map +1 -0
- package/dist/index.es158.js +8 -0
- package/dist/index.es158.js.map +1 -0
- package/dist/index.es159.js +14 -0
- package/dist/index.es159.js.map +1 -0
- package/dist/index.es16.js +44 -22
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es160.js +14 -0
- package/dist/index.es160.js.map +1 -0
- package/dist/index.es161.js +5 -0
- package/dist/index.es161.js.map +1 -0
- package/dist/index.es162.js +94 -0
- package/dist/index.es162.js.map +1 -0
- package/dist/index.es163.js +216 -0
- package/dist/index.es163.js.map +1 -0
- package/dist/index.es164.js +57 -0
- package/dist/index.es164.js.map +1 -0
- package/dist/index.es165.js +39 -0
- package/dist/index.es165.js.map +1 -0
- package/dist/index.es166.js +36 -0
- package/dist/index.es166.js.map +1 -0
- package/dist/index.es167.js +36 -0
- package/dist/index.es167.js.map +1 -0
- package/dist/index.es168.js +94 -0
- package/dist/index.es168.js.map +1 -0
- package/dist/index.es169.js +120 -0
- package/dist/index.es169.js.map +1 -0
- package/dist/index.es17.js +22 -20
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es170.js +289 -0
- package/dist/index.es170.js.map +1 -0
- package/dist/index.es171.js +38 -0
- package/dist/index.es171.js.map +1 -0
- package/dist/index.es172.js +14 -0
- package/dist/index.es172.js.map +1 -0
- package/dist/index.es173.js +87 -0
- package/dist/index.es173.js.map +1 -0
- package/dist/index.es174.js +79 -0
- package/dist/index.es174.js.map +1 -0
- package/dist/index.es175.js +118 -0
- package/dist/index.es175.js.map +1 -0
- package/dist/index.es176.js +112 -0
- package/dist/index.es176.js.map +1 -0
- package/dist/index.es177.js +90 -0
- package/dist/index.es177.js.map +1 -0
- package/dist/index.es178.js +133 -0
- package/dist/index.es178.js.map +1 -0
- package/dist/index.es179.js +133 -0
- package/dist/index.es179.js.map +1 -0
- package/dist/index.es18.js +23 -73
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es180.js +29 -0
- package/dist/index.es180.js.map +1 -0
- package/dist/index.es181.js +27 -0
- package/dist/index.es181.js.map +1 -0
- package/dist/index.es182.js +9 -0
- package/dist/index.es182.js.map +1 -0
- package/dist/index.es19.js +18 -48
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es2.js +120 -22
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es20.js +70 -45
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es21.js +43 -122
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +39 -96
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +113 -152
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +98 -64
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +160 -77
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +69 -51
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es27.js +82 -17
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +274 -2
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +55 -5
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +40 -41
- package/dist/index.es3.js.map +1 -1
- package/dist/index.es30.js +16 -75
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +2 -28
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +4 -84
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +72 -43
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +25 -68
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +85 -12
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +47 -85
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +63 -32
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +49 -40
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +12 -98
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +17 -17
- package/dist/index.es4.js.map +1 -1
- package/dist/index.es40.js +81 -156
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +39 -226
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +40 -269
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +97 -21
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +15 -9
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +64 -20
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +159 -61
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +226 -123
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +300 -109
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +19 -31
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +33 -31
- package/dist/index.es5.js.map +1 -1
- package/dist/index.es50.js +8 -142
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +18 -70
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +69 -21
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +143 -103
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +123 -11
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +103 -18
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +73 -11
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +141 -16
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +67 -40
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +22 -86
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +19 -23
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js +104 -7
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +11 -41
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +19 -79
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +10 -35
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +16 -86
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +43 -58
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +86 -69
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +7 -32
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +39 -65
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +79 -28
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es7.js +38 -43
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es70.js +66 -84
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +88 -11
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +59 -46
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +65 -108
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +30 -15
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +56 -35
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +18 -19
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +30 -38
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +85 -28
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +10 -94
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es8.js +26 -33
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es80.js +47 -2
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +113 -6
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +16 -26
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +42 -109
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js +27 -22
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js +39 -18
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es86.js +27 -18
- package/dist/index.es86.js.map +1 -1
- package/dist/index.es87.js +94 -18
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +1 -18
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es89.js +6 -49
- package/dist/index.es89.js.map +1 -1
- package/dist/index.es9.js +37 -72
- package/dist/index.es9.js.map +1 -1
- package/dist/index.es90.js +23 -84
- package/dist/index.es90.js.map +1 -1
- package/dist/index.es91.js +96 -99
- package/dist/index.es91.js.map +1 -1
- package/dist/index.es92.js +24 -16
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js +16 -22
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es94.js +17 -100
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js +16 -71
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js +16 -42
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +9 -32
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +269 -15
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js +85 -17
- package/dist/index.es99.js.map +1 -1
- package/dist/lib/constants.d.ts +2 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/styles.css +363 -31
- package/dist/ui-kit-preset.js +2 -1
- package/package.json +1 -1
package/dist/index.es106.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es106.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es106.js","sources":["../src/components/ui/agent-snippet-view/components/serving-states-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\n\nexport const ServingStatesSection: React.FC<{\n servingStates?: string[]\n}> = ({ servingStates }) =>\n servingStates && servingStates.length > 0 ? (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n Serving states\n </Typography>\n }\n content={\n <div className=\"flex flex-wrap gap-1\">\n {servingStates.map((state, idx) => (\n <Typography\n key={state + idx}\n variant=\"body4\"\n className=\"rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3\"\n >\n {state}\n </Typography>\n ))}\n </div>\n }\n triggerProps={{ className: 'cursor-pointer my-2' }}\n />\n ) : null\n"],"names":["ServingStatesSection","servingStates","React","Accordion","Typography","state","idx"],"mappings":";;;AAIO,MAAMA,IAER,CAAC,EAAE,eAAAC,QACNA,KAAiBA,EAAc,SAAS,IACtCC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,kBAAe,gBAErD;AAAA,IAEF,yCACG,OAAA,EAAI,WAAU,0BACZH,EAAc,IAAI,CAACI,GAAOC,MACzBJ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,KAAKC,IAAQC;AAAA,QACb,SAAQ;AAAA,QACR,WAAU;AAAA,MAAA;AAAA,MAETD;AAAA,IAAA,CAEJ,CACH;AAAA,IAEF,cAAc,EAAE,WAAW,sBAAA;AAAA,EAAsB;AACnD,IACE;"}
|
package/dist/index.es107.js
CHANGED
|
@@ -1,66 +1,23 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
isLoading: l = !1,
|
|
11
|
-
tags: d = [],
|
|
12
|
-
description: u,
|
|
13
|
-
score: r,
|
|
14
|
-
badge: m,
|
|
15
|
-
actions: s
|
|
16
|
-
}) {
|
|
17
|
-
return /* @__PURE__ */ e.createElement("div", { className: "w-[396px] border border-neutral-1 rounded-xl overflow-hidden bg-light-1" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-3 p-4" }, /* @__PURE__ */ e.createElement("div", { className: "flex items-center justify-center w-12 h-12 overflow-hidden rounded-full bg-light-3" }, l ? /* @__PURE__ */ e.createElement(t, { className: "w-12 h-12 rounded-full bg-light-4" }) : /* @__PURE__ */ e.createElement(
|
|
18
|
-
"img",
|
|
19
|
-
{
|
|
20
|
-
src: n || "https://frontend-static-files.geoiq.io/strapi/map_pin_ed26828f00.svg",
|
|
21
|
-
alt: "title",
|
|
22
|
-
className: g.img({ hasIcon: !!n })
|
|
23
|
-
}
|
|
24
|
-
)), /* @__PURE__ */ e.createElement("div", { className: "truncate max-w-[300px]" }, l ? /* @__PURE__ */ e.createElement(t, { className: "h-5 mb-2 w-[280px] bg-light-4 rounded-full" }) : /* @__PURE__ */ e.createElement(i, { variant: "h3", className: "truncate text-light-2" }, o), /* @__PURE__ */ e.createElement("div", { className: "flex flex-wrap gap-2" }, l ? /* @__PURE__ */ e.createElement(
|
|
25
|
-
t,
|
|
26
|
-
{
|
|
27
|
-
key: "header-badge",
|
|
28
|
-
className: "w-20 h-6 mb-1 rounded-full bg-light-4"
|
|
29
|
-
}
|
|
30
|
-
) : d.filter((a) => a.icon_url && a.name).map((a, f) => /* @__PURE__ */ e.createElement(
|
|
31
|
-
c,
|
|
32
|
-
{
|
|
33
|
-
key: f,
|
|
34
|
-
variant: "default",
|
|
35
|
-
showBorder: !0,
|
|
36
|
-
size: "sm",
|
|
37
|
-
className: "rounded-full pl-1.5 pr-3"
|
|
38
|
-
},
|
|
39
|
-
/* @__PURE__ */ e.createElement(
|
|
40
|
-
"img",
|
|
2
|
+
import { AccordionDemo as m } from "./index.es4.js";
|
|
3
|
+
import { Typography as a } from "./index.es19.js";
|
|
4
|
+
const i = ({ types: t }) => t && t.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
5
|
+
m,
|
|
6
|
+
{
|
|
7
|
+
trigger: /* @__PURE__ */ e.createElement(a, { variant: "body1", className: "text-light-2" }, "Types"),
|
|
8
|
+
content: /* @__PURE__ */ e.createElement("div", { className: "flex flex-wrap gap-1" }, t.map((r, o) => /* @__PURE__ */ e.createElement(
|
|
9
|
+
a,
|
|
41
10
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
className: "
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
variant: "body4",
|
|
52
|
-
className: "text-light-3 text-overflow: ellipsis"
|
|
53
|
-
},
|
|
54
|
-
u
|
|
55
|
-
)), (r || m) && /* @__PURE__ */ e.createElement("div", { className: "flex justify-between mb-4" }, l ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(t, { className: "w-24 h-5 rounded bg-light-4" }), /* @__PURE__ */ e.createElement(t, { className: "w-24 h-5 rounded bg-light-4" })) : /* @__PURE__ */ e.createElement(e.Fragment, null, r && /* @__PURE__ */ e.createElement(
|
|
56
|
-
h,
|
|
57
|
-
{
|
|
58
|
-
score: r?.value,
|
|
59
|
-
isLoading: r?.isLoading
|
|
60
|
-
}
|
|
61
|
-
), m && /* @__PURE__ */ e.createElement(c, { variant: "select", size: "sm", showBorder: !0 }, m)))), s && /* @__PURE__ */ e.createElement("div", { className: "flex items-center justify-center bg-light-3" }, s));
|
|
62
|
-
}
|
|
11
|
+
key: r + o,
|
|
12
|
+
variant: "body4",
|
|
13
|
+
className: "rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3"
|
|
14
|
+
},
|
|
15
|
+
r
|
|
16
|
+
))),
|
|
17
|
+
triggerProps: { className: "cursor-pointer my-2" }
|
|
18
|
+
}
|
|
19
|
+
) : null;
|
|
63
20
|
export {
|
|
64
|
-
|
|
21
|
+
i as TypeSection
|
|
65
22
|
};
|
|
66
23
|
//# sourceMappingURL=index.es107.js.map
|
package/dist/index.es107.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es107.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es107.js","sources":["../src/components/ui/agent-snippet-view/components/agent-type-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\n\nexport const TypeSection: React.FC<{\n types?: string[]\n}> = ({ types }) =>\n types && types.length > 0 ? (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n Types\n </Typography>\n }\n content={\n <div className=\"flex flex-wrap gap-1\">\n {types.map((type, idx) => (\n <Typography\n key={type + idx}\n variant=\"body4\"\n className=\"rounded bg-primary-1 px-2 py-0.5 text-xs text-light-3\"\n >\n {type}\n </Typography>\n ))}\n </div>\n }\n triggerProps={{ className: 'cursor-pointer my-2' }}\n />\n ) : null\n"],"names":["TypeSection","types","React","Accordion","Typography","type","idx"],"mappings":";;;AAIO,MAAMA,IAER,CAAC,EAAE,OAAAC,QACNA,KAASA,EAAM,SAAS,IACtBC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,kBAAe,OAErD;AAAA,IAEF,yCACG,OAAA,EAAI,WAAU,0BACZH,EAAM,IAAI,CAACI,GAAMC,MAChBJ,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,KAAKC,IAAOC;AAAA,QACZ,SAAQ;AAAA,QACR,WAAU;AAAA,MAAA;AAAA,MAETD;AAAA,IAAA,CAEJ,CACH;AAAA,IAEF,cAAc,EAAE,WAAW,sBAAA;AAAA,EAAsB;AACnD,IACE;"}
|
package/dist/index.es108.js
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
body5: "p",
|
|
13
|
-
body6: "p"
|
|
14
|
-
// overline1: 'p',
|
|
15
|
-
// overline2: 'p',
|
|
16
|
-
// overline3: 'p',
|
|
17
|
-
// 'cta-large': 'p',
|
|
18
|
-
// 'cta-normal': 'p',
|
|
19
|
-
// 'cta-small': 'p',
|
|
20
|
-
}, y = "body1";
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { AccordionDemo as r } from "./index.es4.js";
|
|
3
|
+
import { Typography as o } from "./index.es19.js";
|
|
4
|
+
const n = ({ sharedMarkets: t }) => t ? /* @__PURE__ */ e.createElement(
|
|
5
|
+
r,
|
|
6
|
+
{
|
|
7
|
+
trigger: /* @__PURE__ */ e.createElement(o, { variant: "body1", className: "text-light-2" }, "Shared markets"),
|
|
8
|
+
content: /* @__PURE__ */ e.createElement("div", null, t),
|
|
9
|
+
triggerProps: { className: "cursor-pointer my-2" }
|
|
10
|
+
}
|
|
11
|
+
) : null;
|
|
21
12
|
export {
|
|
22
|
-
|
|
23
|
-
p as variantElementMap
|
|
13
|
+
n as SharedMarketsSection
|
|
24
14
|
};
|
|
25
15
|
//# sourceMappingURL=index.es108.js.map
|
package/dist/index.es108.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es108.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es108.js","sources":["../src/components/ui/agent-snippet-view/components/shared-markets-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\n\nexport const SharedMarketsSection: React.FC<{\n sharedMarkets?: React.ReactNode\n}> = ({ sharedMarkets }) =>\n sharedMarkets ? (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n Shared markets\n </Typography>\n }\n content={<div>{sharedMarkets}</div>}\n triggerProps={{ className: 'cursor-pointer my-2' }}\n />\n ) : null\n"],"names":["SharedMarketsSection","sharedMarkets","React","Accordion","Typography"],"mappings":";;;AAIO,MAAMA,IAER,CAAC,EAAE,eAAAC,EAAA,MACNA,IACEC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,kBAAe,gBAErD;AAAA,IAEF,SAASF,gBAAAA,EAAA,cAAC,OAAA,MAAKD,CAAc;AAAA,IAC7B,cAAc,EAAE,WAAW,sBAAA;AAAA,EAAsB;AACnD,IACE;"}
|
package/dist/index.es109.js
CHANGED
|
@@ -1,25 +1,101 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import e, { useRef as m, useState as N, useEffect as b } from "react";
|
|
2
|
+
import { AccordionDemo as y } from "./index.es4.js";
|
|
3
|
+
import { Typography as r } from "./index.es19.js";
|
|
4
|
+
import { SearchIcon as w, ExternalLink as _ } from "lucide-react";
|
|
5
|
+
import { Button as S } from "./index.es9.js";
|
|
6
|
+
import { Input as k } from "./index.es11.js";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "tailwind-merge";
|
|
9
|
+
import "./index.es60.js";
|
|
10
|
+
import "./index.es90.js";
|
|
11
|
+
import "./index.es29.js";
|
|
12
|
+
import "./index.es35.js";
|
|
13
|
+
import { Spinner as z } from "./index.es64.js";
|
|
14
|
+
const G = ({
|
|
15
|
+
properties: n = [],
|
|
16
|
+
title: s = "Properties added",
|
|
17
|
+
property_count: i,
|
|
18
|
+
onRedirect: o,
|
|
19
|
+
onReachBottom: d,
|
|
20
|
+
onSearchChange: g,
|
|
21
|
+
loading: f = !1
|
|
22
|
+
}) => {
|
|
23
|
+
const c = m(null), p = m(!1), [u, h] = N(""), E = (t) => {
|
|
24
|
+
h(t.target.value), g?.(t.target.value), c.current && (c.current.scrollTop = 0);
|
|
25
|
+
};
|
|
26
|
+
b(() => {
|
|
27
|
+
p.current = !1;
|
|
28
|
+
}, [n]);
|
|
29
|
+
const x = (t) => {
|
|
30
|
+
const { scrollTop: l, scrollHeight: a, clientHeight: v } = t.currentTarget;
|
|
31
|
+
l + v >= a - 5 && d?.();
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ e.createElement(
|
|
34
|
+
y,
|
|
35
|
+
{
|
|
36
|
+
trigger: /* @__PURE__ */ e.createElement(r, { variant: "body1", className: "text-light-2" }, s, " (", i, ")"),
|
|
37
|
+
content: /* @__PURE__ */ e.createElement(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: c,
|
|
41
|
+
onScroll: x,
|
|
42
|
+
className: "max-h-[400px] overflow-y-auto"
|
|
43
|
+
},
|
|
44
|
+
/* @__PURE__ */ e.createElement("div", { className: "w-full sticky top-0 bg-light-1 z-50 pb-2" }, /* @__PURE__ */ e.createElement(
|
|
45
|
+
k,
|
|
46
|
+
{
|
|
47
|
+
placeholder: "Search properties",
|
|
48
|
+
prefix: /* @__PURE__ */ e.createElement(w, { className: "stroke-light-2", size: 20 }),
|
|
49
|
+
value: u,
|
|
50
|
+
onChange: E
|
|
51
|
+
}
|
|
52
|
+
)),
|
|
53
|
+
n.length === 0 ? /* @__PURE__ */ e.createElement("div", { className: "flex justify-center items-center h-20 text-light-3" }, "No property found") : /* @__PURE__ */ e.createElement(e.Fragment, null, n.map((t) => /* @__PURE__ */ e.createElement(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
key: t.id,
|
|
57
|
+
className: "rounded-[12px] border border-neutral-1 bg-light-2 p-3 mb-3 flex flex-col gap-2 "
|
|
58
|
+
},
|
|
59
|
+
/* @__PURE__ */ e.createElement("div", { className: "w-full flex justify-between items-start" }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-2 mb-3 p-0" }, /* @__PURE__ */ e.createElement(r, { variant: "body4", className: "text-light-2 " }, t.name), /* @__PURE__ */ e.createElement(
|
|
60
|
+
S,
|
|
61
|
+
{
|
|
62
|
+
variant: "secondary",
|
|
63
|
+
size: "sm",
|
|
64
|
+
className: "w-fit ml-auto",
|
|
65
|
+
onClick: () => o?.(t)
|
|
66
|
+
},
|
|
67
|
+
/* @__PURE__ */ e.createElement(
|
|
68
|
+
_,
|
|
69
|
+
{
|
|
70
|
+
size: 16,
|
|
71
|
+
className: "text-light-1 cursor-pointer bg-light-1"
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "flex w-[372px] rounded-lg p-3 bg-light-1" }, t.property_details && t.property_details.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "flex w-full rounded-lg p-0 bg-light-1" }, t.property_details && t.property_details.length > 0 && t.property_details.map(
|
|
75
|
+
(l, a) => /* @__PURE__ */ e.createElement(e.Fragment, { key: a }, /* @__PURE__ */ e.createElement("div", { className: "flex flex-col min-w-0" }, /* @__PURE__ */ e.createElement("div", { className: "truncate font-medium" }, /* @__PURE__ */ e.createElement(
|
|
76
|
+
r,
|
|
77
|
+
{
|
|
78
|
+
variant: "body6",
|
|
79
|
+
className: "text-light-4"
|
|
80
|
+
},
|
|
81
|
+
l.name
|
|
82
|
+
), " "), /* @__PURE__ */ e.createElement("div", { className: "truncate text-light-3" }, /* @__PURE__ */ e.createElement(
|
|
83
|
+
r,
|
|
84
|
+
{
|
|
85
|
+
variant: "body6",
|
|
86
|
+
className: "text-light-2"
|
|
87
|
+
},
|
|
88
|
+
l.value
|
|
89
|
+
))), t.property_details && a !== t.property_details.length - 1 && /* @__PURE__ */ e.createElement("div", { className: "h-auto w-px border-l mx-3 border-neutral-2" }))
|
|
90
|
+
)))))
|
|
91
|
+
)), f && /* @__PURE__ */ e.createElement("div", { className: "left-0 right-0 bottom-0 flex justify-center items-center py-4" }, /* @__PURE__ */ e.createElement(z, null)))
|
|
92
|
+
),
|
|
93
|
+
triggerProps: { className: "cursor-pointer my-2" },
|
|
94
|
+
contentProps: { className: "max-h-[400px] overflow-y-auto" }
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
};
|
|
22
98
|
export {
|
|
23
|
-
|
|
99
|
+
G as PropertiesAddedSection
|
|
24
100
|
};
|
|
25
101
|
//# sourceMappingURL=index.es109.js.map
|
package/dist/index.es109.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es109.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es109.js","sources":["../src/components/ui/agent-snippet-view/components/properties-added-section.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\nimport { Typography } from '@/components/atoms/typography'\nimport { ExternalLink, SearchIcon } from 'lucide-react'\nimport { PropertiesAddedSectionProps } from '../agent-snippet-view.types'\nimport { Button, Input, Spinner } from '@/index'\n\nexport const PropertiesAddedSection: React.FC<PropertiesAddedSectionProps> = ({\n properties = [],\n title = 'Properties added',\n property_count,\n onRedirect,\n onReachBottom,\n onSearchChange,\n loading = false,\n}) => {\n const contentRef = useRef<HTMLDivElement>(null)\n const isFetchingRef = useRef(false)\n const [search, setSearch] = useState('')\n\n const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearch(e.target.value)\n onSearchChange?.(e.target.value)\n if (contentRef.current) {\n contentRef.current.scrollTop = 0\n }\n }\n\n useEffect(() => {\n isFetchingRef.current = false\n }, [properties])\n\n const handleScroll = (e: React.UIEvent<HTMLDivElement>) => {\n const { scrollTop, scrollHeight, clientHeight } = e.currentTarget\n if (scrollTop + clientHeight >= scrollHeight - 5) {\n onReachBottom?.()\n }\n }\n return (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"text-light-2\">\n {title} ({property_count})\n </Typography>\n }\n content={\n <div\n ref={contentRef}\n onScroll={handleScroll}\n className=\"max-h-[400px] overflow-y-auto\"\n >\n <div className=\"w-full sticky top-0 bg-light-1 z-50 pb-2\">\n <Input\n placeholder=\"Search properties\"\n prefix={<SearchIcon className=\"stroke-light-2\" size={20} />}\n value={search}\n onChange={handleInputChange}\n />\n </div>\n {properties.length === 0 ? (\n <div className=\"flex justify-center items-center h-20 text-light-3\">\n No property found\n </div>\n ) : (\n <>\n {properties.map((property) => (\n <div\n key={property.id}\n className=\"rounded-[12px] border border-neutral-1 bg-light-2 p-3 mb-3 flex flex-col gap-2 \"\n >\n <div className=\"w-full flex justify-between items-start\">\n <div>\n <div className=\"flex items-center gap-2 mb-3 p-0\">\n <Typography variant=\"body4\" className=\"text-light-2 \">\n {property.name}\n </Typography>\n <Button\n variant=\"secondary\"\n size=\"sm\"\n className=\"w-fit ml-auto\"\n onClick={() => onRedirect?.(property)}\n >\n <ExternalLink\n size={16}\n className=\"text-light-1 cursor-pointer bg-light-1\"\n />\n </Button>\n </div>\n <div className=\"flex w-[372px] rounded-lg p-3 bg-light-1\">\n {/* Render features only */}\n {property.property_details &&\n property.property_details.length > 0 && (\n <div className=\"flex w-full rounded-lg p-0 bg-light-1\">\n {property.property_details &&\n property.property_details.length > 0 &&\n property.property_details.map(\n (feature, idx) => (\n <React.Fragment key={idx}>\n <div className=\"flex flex-col min-w-0\">\n <div className=\"truncate font-medium\">\n <Typography\n variant=\"body6\"\n className=\"text-light-4\"\n >\n {feature.name}\n </Typography>{' '}\n </div>\n <div className=\"truncate text-light-3\">\n <Typography\n variant=\"body6\"\n className=\"text-light-2\"\n >\n {feature.value}\n </Typography>\n </div>\n </div>\n {property.property_details &&\n idx !==\n property.property_details.length -\n 1 && (\n <div className=\"h-auto w-px border-l mx-3 border-neutral-2\" />\n )}\n </React.Fragment>\n )\n )}\n </div>\n )}\n </div>\n </div>\n </div>\n </div>\n ))}\n {loading && (\n <div className=\"left-0 right-0 bottom-0 flex justify-center items-center py-4\">\n <Spinner />\n </div>\n )}\n </>\n )}\n </div>\n }\n triggerProps={{ className: 'cursor-pointer my-2' }}\n contentProps={{ className: 'max-h-[400px] overflow-y-auto' }}\n />\n )\n}\n"],"names":["PropertiesAddedSection","properties","title","property_count","onRedirect","onReachBottom","onSearchChange","loading","contentRef","useRef","isFetchingRef","search","setSearch","useState","handleInputChange","e","useEffect","handleScroll","scrollTop","scrollHeight","clientHeight","React","Accordion","Typography","Input","SearchIcon","property","Button","ExternalLink","feature","idx","Spinner"],"mappings":";;;;;;;;;;;;;AAOO,MAAMA,IAAgE,CAAC;AAAA,EAC5E,YAAAC,IAAa,CAAA;AAAA,EACb,OAAAC,IAAQ;AAAA,EACR,gBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAAM;AACJ,QAAMC,IAAaC,EAAuB,IAAI,GACxCC,IAAgBD,EAAO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iB,SACxB,KACFL,gBAAAA,EAAA,cAAC,OAAA,EAAI,WAAU,8CAA6C,CAElE;AAAA,UAAA,CAGR,CAEN,CACF,CACF;AAAA,QAAA,CAEH,GACAd,KACCc,gBAAAA,EAAA,cAAC,OAAA,EAAI,WAAU,gEAAA,GACbA,gBAAAA,EAAA,cAACU,GAAA,IAAQ,CACX,CAEJ;AAAA,MAAA;AAAA,MAIN,cAAc,EAAE,WAAW,sBAAA;AAAA,MAC3B,cAAc,EAAE,WAAW,gCAAA;AAAA,IAAgC;AAAA,EAAA;AAGjE;"}
|
package/dist/index.es11.js
CHANGED
|
@@ -1,30 +1,82 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { cn as p } from "./index.es89.js";
|
|
3
|
+
import { InputVariants as g } from "./index.es122.js";
|
|
4
|
+
import { Typography as E } from "./index.es19.js";
|
|
5
|
+
import { XCircle as h } from "lucide-react";
|
|
6
|
+
const v = e.forwardRef(
|
|
7
|
+
({ className: i, type: u, isError: l, message: o, prefix: c, suffix: s, id: m, ...t }, f) => {
|
|
8
|
+
const d = e.useRef(null), r = f || d, [n, a] = e.useState(!1);
|
|
9
|
+
return e.useEffect(() => {
|
|
10
|
+
n && r.current?.focus();
|
|
11
|
+
}, [n]), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: p(
|
|
15
|
+
g({
|
|
16
|
+
isError: l,
|
|
17
|
+
isFocused: n,
|
|
18
|
+
disabled: t.disabled,
|
|
19
|
+
className: i
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
id: m
|
|
23
|
+
},
|
|
24
|
+
c && /* @__PURE__ */ e.createElement(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
onClick: () => {
|
|
28
|
+
a(!0);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
c
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e.createElement(
|
|
34
|
+
"input",
|
|
35
|
+
{
|
|
36
|
+
type: u,
|
|
37
|
+
className: "outline-0 w-full h-full disabled:bg-transparent disabled:cursor-not-allowed outline-none",
|
|
38
|
+
onFocus: () => a(!0),
|
|
39
|
+
onBlur: () => a(!1),
|
|
40
|
+
ref: r,
|
|
41
|
+
...t
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ e.createElement(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: "flex items-center cursor-pointer",
|
|
48
|
+
onClick: () => {
|
|
49
|
+
if (s) {
|
|
50
|
+
a(!0);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
s ?? /* @__PURE__ */ e.createElement(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: `${n ? "" : "opacity-0"} hover:opacity-100`,
|
|
59
|
+
onClick: () => {
|
|
60
|
+
t.onChange && t.onChange({
|
|
61
|
+
target: { value: "" }
|
|
62
|
+
}), r.current?.focus();
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
/* @__PURE__ */ e.createElement(h, { size: 16, className: "stroke-light-2" })
|
|
66
|
+
)
|
|
67
|
+
)
|
|
68
|
+
), o && /* @__PURE__ */ e.createElement(
|
|
69
|
+
E,
|
|
70
|
+
{
|
|
71
|
+
variant: "body2",
|
|
72
|
+
className: `${l ? "text-danger-1" : "text-light-3"} mt-1.5`
|
|
73
|
+
},
|
|
74
|
+
o
|
|
75
|
+
));
|
|
11
76
|
}
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
const c = e.forwardRef(({ className: r, ...t }, o) => /* @__PURE__ */ e.createElement(
|
|
15
|
-
a.Item,
|
|
16
|
-
{
|
|
17
|
-
ref: o,
|
|
18
|
-
className: d(i({ className: r })),
|
|
19
|
-
...t
|
|
20
|
-
},
|
|
21
|
-
t.children,
|
|
22
|
-
/* @__PURE__ */ e.createElement(a.Indicator, { className: "flex data=[state=unchecked]:hover:bg-primary-1 data-[state=checked]:bg-rest-p1 data-[state=checked]:hover:bg-hover-p1 h-2.5 w-2.5 rounded-full t-7 l-y disabled:opacity-50 items-center justify-center border-none" })
|
|
23
|
-
));
|
|
24
|
-
c.displayName = a.Item.displayName;
|
|
77
|
+
);
|
|
78
|
+
v.displayName = "Input";
|
|
25
79
|
export {
|
|
26
|
-
|
|
27
|
-
c as RadioGroupItem,
|
|
28
|
-
i as RadioGroupVariants
|
|
80
|
+
v as Input
|
|
29
81
|
};
|
|
30
82
|
//# sourceMappingURL=index.es11.js.map
|
package/dist/index.es11.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es11.js","sources":["../src/components/atoms/
|
|
1
|
+
{"version":3,"file":"index.es11.js","sources":["../src/components/atoms/input/input.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { InputProps } from './input.types'\nimport { InputVariants } from './input.styles'\nimport { Typography } from '../typography'\nimport { XCircle } from 'lucide-react'\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n (\n { className, type, isError, message, prefix, suffix, id, ...props },\n ref\n ) => {\n const innerRef = React.useRef<HTMLInputElement>(null)\n const inputRef = (ref as React.RefObject<HTMLInputElement>) || innerRef\n const [isFocused, setIsFocused] = React.useState(false)\n\n React.useEffect(() => {\n if (isFocused) {\n inputRef.current?.focus()\n }\n }, [isFocused])\n return (\n <>\n <div\n className={cn(\n InputVariants({\n isError,\n isFocused,\n disabled: props.disabled,\n className,\n })\n )}\n id={id}\n >\n {prefix && (\n <div\n onClick={() => {\n setIsFocused(true)\n }}\n >\n {prefix}\n </div>\n )}\n\n <input\n type={type}\n className={`outline-0 w-full h-full disabled:bg-transparent disabled:cursor-not-allowed outline-none`}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}\n ref={inputRef}\n {...props}\n ></input>\n\n <div\n className=\"flex items-center cursor-pointer\"\n onClick={() => {\n if (suffix) {\n setIsFocused(true)\n return\n }\n }}\n >\n {suffix ?? (\n <div\n className={`${!isFocused ? 'opacity-0' : ''} hover:opacity-100`}\n onClick={() => {\n if (props.onChange)\n props.onChange({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>)\n inputRef.current?.focus()\n }}\n >\n <XCircle size={16} className=\"stroke-light-2\" />\n </div>\n )}\n </div>\n </div>\n\n {message && (\n <Typography\n variant={'body2'}\n className={`${isError ? 'text-danger-1' : 'text-light-3'} mt-1.5`}\n >\n {message}\n </Typography>\n )}\n </>\n )\n }\n)\nInput.displayName = 'Input'\n\nexport { Input }\n"],"names":["Input","React","className","type","isError","message","prefix","suffix","id","props","ref","innerRef","inputRef","isFocused","setIsFocused","cn","InputVariants","XCircle","Typography"],"mappings":";;;;;AAQA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CACE,EAAE,WAAAC,GAAW,MAAAC,GAAM,SAAAC,GAAS,SAAAC,GAAS,QAAAC,GAAQ,QAAAC,GAAQ,IAAAC,GAAI,GAAGC,EAAA,GAC5DC,MACG;AACH,UAAMC,IAAWV,EAAM,OAAyB,IAAI,GAC9CW,IAAYF,KAA6CC,GACzD,CAACE,GAAWC,CAAY,IAAIb,EAAM,SAAS,EAAK;AAEtD,WAAAA,EAAM,UAAU,MAAM;AACpB,MAAIY,KACFD,EAAS,SAAS,MAAA;AAAA,IAEtB,GAAG,CAACC,CAAS,CAAC,GAEZ,gBAAAZ,EAAA,cAAAA,EAAA,UAAA,MACE,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWc;AAAA,UACTC,EAAc;AAAA,YACZ,SAAAZ;AAAA,YACA,WAAAS;AAAA,YACA,UAAUJ,EAAM;AAAA,YAChB,WAAAP;AAAA,U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
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { AccordionDemo as c } from "./index.es4.js";
|
|
3
|
+
import { Typography as a } from "./index.es19.js";
|
|
4
|
+
import { Button as p } from "./index.es9.js";
|
|
5
|
+
import { FileText as d } from "lucide-react";
|
|
6
|
+
import { Spinner as g } from "./index.es64.js";
|
|
7
|
+
import { AvatarDemo as f } from "./index.es6.js";
|
|
8
|
+
import "clsx";
|
|
9
|
+
import "tailwind-merge";
|
|
10
|
+
import "./index.es60.js";
|
|
11
|
+
import "./index.es90.js";
|
|
12
|
+
import "./index.es29.js";
|
|
13
|
+
import "./index.es35.js";
|
|
14
|
+
const D = ({ notes: r, onAddNote: l, notesLoading: o }) => /* @__PURE__ */ e.createElement(
|
|
15
|
+
c,
|
|
8
16
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
trigger: /* @__PURE__ */ e.createElement(a, { variant: "body1", className: "my-2 text-light-2" }, "Call history & notes"),
|
|
18
|
+
content: /* @__PURE__ */ e.createElement("div", null, l && /* @__PURE__ */ e.createElement("div", { className: "w-full sticky top-0 bg-light-1 z-50 pb-2" }, /* @__PURE__ */ e.createElement(
|
|
19
|
+
p,
|
|
20
|
+
{
|
|
21
|
+
variant: "secondary",
|
|
22
|
+
size: "sm",
|
|
23
|
+
className: "flex w-fit justify-start",
|
|
24
|
+
onClick: l
|
|
25
|
+
},
|
|
26
|
+
/* @__PURE__ */ e.createElement(d, { size: 16, className: "mr-1" }),
|
|
27
|
+
"Add notes"
|
|
28
|
+
)), o && /* @__PURE__ */ e.createElement("div", { className: "flex justify-center items-center py-2" }, /* @__PURE__ */ e.createElement(g, null)), r.length === 0 ? /* @__PURE__ */ e.createElement("div", { className: "py-4 text-start text-light-4" }, "Nothing here yet. Add a note to begin.") : r.map((t, m) => {
|
|
29
|
+
const i = new Date(t.timestamp), n = i.toLocaleDateString("en-GB"), s = i.toLocaleTimeString("en-US", {
|
|
30
|
+
hour: "2-digit",
|
|
31
|
+
minute: "2-digit"
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ e.createElement(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
key: m,
|
|
37
|
+
className: `flex items-start gap-3 py-3 ${m !== r.length - 1 ? "border-b border-neutral-2" : ""}`
|
|
38
|
+
},
|
|
39
|
+
/* @__PURE__ */ e.createElement(
|
|
40
|
+
f,
|
|
41
|
+
{
|
|
42
|
+
imageSrc: t.user.image_url || "",
|
|
43
|
+
alt: t.user.first_name,
|
|
44
|
+
fallback: t.user.first_name?.[0]?.toUpperCase() || "",
|
|
45
|
+
size: "md"
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ e.createElement("div", { className: "mr-3 flex w-full justify-between" }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
49
|
+
a,
|
|
50
|
+
{
|
|
51
|
+
variant: "body2",
|
|
52
|
+
className: "mt-1 max-w-[250px] whitespace-pre-line break-words text-light-3"
|
|
53
|
+
},
|
|
54
|
+
t.note
|
|
55
|
+
), t.call_duration && /* @__PURE__ */ e.createElement(a, { variant: "body6", className: "text-light-4 mt-1" }, t.call_duration)), /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-1" }, /* @__PURE__ */ e.createElement(a, { variant: "body6", className: "text-light-2" }, n), /* @__PURE__ */ e.createElement(a, { variant: "body6", className: "text-light-4" }, s)))
|
|
56
|
+
);
|
|
57
|
+
})),
|
|
58
|
+
triggerProps: {
|
|
59
|
+
className: "cursor-pointer my-2"
|
|
60
|
+
},
|
|
61
|
+
contentProps: { className: "max-h-[400px] overflow-y-auto" }
|
|
20
62
|
}
|
|
21
|
-
|
|
63
|
+
);
|
|
22
64
|
export {
|
|
23
|
-
|
|
24
|
-
e as MAP_LAYER_TYPES
|
|
65
|
+
D as NotesSection
|
|
25
66
|
};
|
|
26
67
|
//# sourceMappingURL=index.es110.js.map
|
package/dist/index.es110.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es110.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es110.js","sources":["../src/components/ui/agent-snippet-view/components/notes-section.tsx"],"sourcesContent":["import React from 'react'\nimport { Accordion } from '@/components/atoms/accordion'\n// import { Avatar } from '@/components/atoms/avatar'\nimport { Typography } from '@/components/atoms/typography'\nimport { Button } from '@/components/atoms/button'\nimport { FileText } from 'lucide-react'\nimport type { Note } from '../agent-snippet-view.types'\nimport { Spinner } from '@/components/unstyled/spinner'\nimport { Avatar } from '@/index'\n\nexport const NotesSection: React.FC<{\n notes: Note[]\n onAddNote?: () => void\n notesLoading?: boolean\n}> = ({ notes, onAddNote, notesLoading }) => (\n <Accordion\n trigger={\n <Typography variant=\"body1\" className=\"my-2 text-light-2\">\n Call history & notes\n </Typography>\n }\n content={\n <div>\n {onAddNote && (\n <div className=\"w-full sticky top-0 bg-light-1 z-50 pb-2\">\n <Button\n variant=\"secondary\"\n size=\"sm\"\n className=\"flex w-fit justify-start\"\n onClick={onAddNote}\n >\n <FileText size={16} className=\"mr-1\" />\n Add notes\n </Button>\n </div>\n )}\n {notesLoading && (\n <div className=\"flex justify-center items-center py-2\">\n <Spinner />\n </div>\n )}\n {notes.length === 0 ? (\n <div className=\"py-4 text-start text-light-4\">\n Nothing here yet. Add a note to begin.\n </div>\n ) : (\n notes.map((item, idx) => {\n const date = new Date(item.timestamp)\n const dateStr = date.toLocaleDateString('en-GB')\n const timeStr = date.toLocaleTimeString('en-US', {\n hour: '2-digit',\n minute: '2-digit',\n })\n // const fallback = item.user.first_name?.[0]?.toUpperCase() || ''\n return (\n <div\n key={idx}\n className={`flex items-start gap-3 py-3 ${idx !== notes.length - 1 ? 'border-b border-neutral-2' : ''}`}\n >\n <Avatar\n imageSrc={item.user.image_url || ''}\n alt={item.user.first_name}\n fallback={item.user.first_name?.[0]?.toUpperCase() || ''}\n size=\"md\"\n />\n <div className=\"mr-3 flex w-full justify-between\">\n <div>\n <Typography\n variant=\"body2\"\n className=\"mt-1 max-w-[250px] whitespace-pre-line break-words text-light-3\"\n >\n {item.note}\n </Typography>\n {item.call_duration && (\n <Typography variant=\"body6\" className=\"text-light-4 mt-1\">\n {item.call_duration}\n </Typography>\n )}\n </div>\n <div className=\"flex flex-col gap-1\">\n <Typography variant=\"body6\" className=\"text-light-2\">\n {dateStr}\n </Typography>\n <Typography variant=\"body6\" className=\"text-light-4\">\n {timeStr}\n </Typography>\n </div>\n </div>\n </div>\n )\n })\n )}\n </div>\n }\n triggerProps={{\n className: 'cursor-pointer my-2',\n }}\n contentProps={{ className: 'max-h-[400px] overflow-y-auto' }}\n />\n)\n"],"names":["NotesSection","notes","onAddNote","notesLoading","React","Accordion","Typography","Button","FileText","Spinner","item","idx","date","dateStr","timeStr","Avatar"],"mappings":";;;;;;;;;;;;;AAUO,MAAMA,IAIR,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,cAAAC,QACxBC,gBAAAA,EAAA;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACED,gBAAAA,EAAA,cAACE,GAAA,EAAW,SAAQ,SAAQ,WAAU,uBAAoB,sBAE1D;AAAA,IAEF,SACEF,gBAAAA,EAAA,cAAC,OAAA,MACEF,KACCE,gBAAAA,EAAA,cAAC,OAAA,EAAI,WAAU,2CAAA,GACbA,gBAAAA,EAAA;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAASL;AAAA,MAAA;AAAA,MAETE,gBAAAA,EAAA,cAACI,GAAA,EAAS,MAAM,IAAI,WAAU,QAAO;AAAA,MAAE;AAAA,IAAA,CAG3C,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