@clickview/lite 0.0.26-dev.1 → 0.0.26-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/0.chunk.css +2 -2
- package/dist/css/28.chunk.css +1 -1
- package/dist/css/36.chunk.css +1 -1
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +1 -0
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +1 -1
- package/dist/libs/common/src/react/hooks/UseViewModel.d.ts +8 -0
- package/dist/libs/shared/src/apps/playlists/utils/PlaylistSortHelper.d.ts +1 -0
- package/dist/libs/shared/src/apps/subjects/components/audience-filter/AudienceFilter.d.ts +3 -3
- package/dist/libs/shared/src/apps/subjects/hooks/useAudienceFilter.d.ts +10 -0
- package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnail.d.ts +1 -1
- package/dist/libs/shared/src/constants/SharedViewModelKeys.d.ts +1 -0
- package/dist/libs/shared/src/flight-requests/FavouriteVideoRequests.d.ts +1 -1
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +1 -1
- package/dist/projects/lite/src/app.d.ts +1 -0
- package/dist/projects/lite/src/apps/dashboard/flight-requests/DashboardRequests.d.ts +1 -0
- package/dist/projects/lite/src/apps/playlists/views/playlists/PlaylistsView.d.ts +1 -1
- package/dist/projects/lite/src/shared/constants/LiteViewModels.d.ts +1 -0
- package/dist/scripts/0-2d31d283ae.chunk.js +1 -0
- package/dist/scripts/{1-8027d5d7a2.chunk.js → 1-416147a365.chunk.js} +3 -3
- package/dist/scripts/{10-8b52a5b2a9.chunk.js → 10-6f924160d4.chunk.js} +1 -1
- package/dist/scripts/11-bb4335845c.chunk.js +1 -0
- package/dist/scripts/{12-5a9f0cff7a.chunk.js → 12-c98f636456.chunk.js} +1 -1
- package/dist/scripts/13-f440a979f2.chunk.js +1 -0
- package/dist/scripts/14-96e2ac4c4e.chunk.js +1 -0
- package/dist/scripts/17-ae3c652b7f.chunk.js +1 -0
- package/dist/scripts/18-70bed357d5.chunk.js +1 -0
- package/dist/scripts/19-fd97756828.chunk.js +1 -0
- package/dist/scripts/2-9458935561.chunk.js +1 -0
- package/dist/scripts/20-f660938e48.chunk.js +1 -0
- package/dist/scripts/21-6b5bac2388.chunk.js +1 -0
- package/dist/scripts/22-d2e93288e2.chunk.js +1 -0
- package/dist/scripts/{23-8fa9630961.chunk.js → 23-cef41d75a0.chunk.js} +1 -1
- package/dist/scripts/{24-1b298386e9.chunk.js → 24-bce9e631d6.chunk.js} +1 -1
- package/dist/scripts/25-db36457320.chunk.js +1 -0
- package/dist/scripts/26-5aed5ee0dd.chunk.js +1 -0
- package/dist/scripts/27-7f8deea7e3.chunk.js +1 -0
- package/dist/scripts/{28-992fa1d7d3.chunk.js → 28-5f765079fd.chunk.js} +1 -1
- package/dist/scripts/29-0b8214340f.chunk.js +1 -0
- package/dist/scripts/{3-0490c565bc.chunk.js → 3-96cf66c7ed.chunk.js} +1 -1
- package/dist/scripts/30-2f39246be7.chunk.js +1 -0
- package/dist/scripts/{31-35db520dd1.chunk.js → 31-29dea56635.chunk.js} +1 -1
- package/dist/scripts/32-bbaee512ce.chunk.js +1 -0
- package/dist/scripts/33-46803f3fef.chunk.js +1 -0
- package/dist/scripts/34-c017ae74c8.chunk.js +53 -0
- package/dist/scripts/{35-c03686c46a.chunk.js → 35-7da451a1c9.chunk.js} +1 -1
- package/dist/scripts/{36-83d6842746.chunk.js → 36-57ab543f4f.chunk.js} +1 -1
- package/dist/scripts/{37-c3430bac04.chunk.js → 37-80c7b6220d.chunk.js} +1 -1
- package/dist/scripts/38-50ed73316a.chunk.js +1 -0
- package/dist/scripts/39-3adf4ecd44.chunk.js +1 -0
- package/dist/scripts/4-6611628e1a.chunk.js +1 -0
- package/dist/scripts/40-3872135793.chunk.js +1 -0
- package/dist/scripts/{41-900e1bf0e1.chunk.js → 41-9a1c72850a.chunk.js} +1 -1
- package/dist/scripts/42-4932b5ac21.chunk.js +1 -0
- package/dist/scripts/{43-24d8ad0345.chunk.js → 43-22cf86a966.chunk.js} +1 -1
- package/dist/scripts/44-b62663ca9d.chunk.js +1 -0
- package/dist/scripts/45-0d8523abe9.chunk.js +1 -0
- package/dist/scripts/{46-b0dd9697cf.chunk.js → 46-fe9870ac23.chunk.js} +1 -1
- package/dist/scripts/{47-2b4a82f4ad.chunk.js → 47-6dffaed1d7.chunk.js} +1 -1
- package/dist/scripts/{48-982a605bb0.chunk.js → 48-7220efc4d6.chunk.js} +1 -1
- package/dist/scripts/{49-8226f8d1ba.chunk.js → 49-ae885df086.chunk.js} +1 -1
- package/dist/scripts/5-4177d478cc.chunk.js +1 -0
- package/dist/scripts/{50-dcc75825be.chunk.js → 50-f9157fe86a.chunk.js} +2 -2
- package/dist/scripts/{51-1f52bbeb15.chunk.js → 51-9c714f222a.chunk.js} +1 -1
- package/dist/scripts/{52-a15b2e7c02.chunk.js → 52-40b5bed763.chunk.js} +1 -1
- package/dist/scripts/{53-4cd55bd586.chunk.js → 53-b1a06f2260.chunk.js} +1 -1
- package/dist/scripts/{54-aa1a08cdbf.chunk.js → 54-adc0aca3b2.chunk.js} +1 -1
- package/dist/scripts/{55-c969a4fc28.chunk.js → 55-89cef329b2.chunk.js} +1 -1
- package/dist/scripts/{56-68fdf84a0d.chunk.js → 56-0dddea6e48.chunk.js} +1 -1
- package/dist/scripts/{57-db5bdeea30.chunk.js → 57-8fb86637a6.chunk.js} +1 -1
- package/dist/scripts/{58-df23c1a02e.chunk.js → 58-72d868bb97.chunk.js} +1 -1
- package/dist/scripts/{59-2d38ae02a6.chunk.js → 59-f186c23ddf.chunk.js} +1 -1
- package/dist/scripts/{6-1b789e45e3.chunk.js → 6-615cc3317e.chunk.js} +1 -1
- package/dist/scripts/{60-b5000feaed.chunk.js → 60-60ea3e256b.chunk.js} +1 -1
- package/dist/scripts/{61-280ba38bbf.chunk.js → 61-fba9617716.chunk.js} +1 -1
- package/dist/scripts/{62-9a61055529.chunk.js → 62-39c21de14e.chunk.js} +1 -1
- package/dist/scripts/{63-ecc242395a.chunk.js → 63-d1c111fcd5.chunk.js} +1 -1
- package/dist/scripts/{64-077f9961a9.chunk.js → 64-33b287c3c2.chunk.js} +1 -1
- package/dist/scripts/{65-0463ba68c3.chunk.js → 65-889dba985e.chunk.js} +1 -1
- package/dist/scripts/{66-851f0b0243.chunk.js → 66-00f7b4a21f.chunk.js} +1 -1
- package/dist/scripts/{67-103e97e558.chunk.js → 67-d923fb11ed.chunk.js} +1 -1
- package/dist/scripts/{68-7a80380425.chunk.js → 68-85a8867bd2.chunk.js} +1 -1
- package/dist/scripts/{69-7d9f3514e6.chunk.js → 69-0fc67deac3.chunk.js} +1 -1
- package/dist/scripts/7-79961729d4.chunk.js +1 -0
- package/dist/scripts/{70-fd6b603857.chunk.js → 70-8b68b786a9.chunk.js} +1 -1
- package/dist/scripts/{71-b002267371.chunk.js → 71-81cbd9cbe0.chunk.js} +1 -1
- package/dist/scripts/{72-7b99de33d0.chunk.js → 72-ea543ecb4d.chunk.js} +1 -1
- package/dist/scripts/73-32bacce3b9.chunk.js +1 -0
- package/dist/scripts/{74-72227ec214.chunk.js → 74-5b7c16baa1.chunk.js} +1 -1
- package/dist/scripts/{75-d463b7002b.chunk.js → 75-81b94320b7.chunk.js} +1 -1
- package/dist/scripts/{76-5780bbb319.chunk.js → 76-9e8154e3d1.chunk.js} +1 -1
- package/dist/scripts/{77-7ea0e086de.chunk.js → 77-d57229038b.chunk.js} +1 -1
- package/dist/scripts/{78-11cad53884.chunk.js → 78-cd93b07a63.chunk.js} +1 -1
- package/dist/scripts/{79-90eb976e11.chunk.js → 79-999b00ee35.chunk.js} +1 -1
- package/dist/scripts/{8-fe4d1fcbb5.chunk.js → 8-f1d54ac54a.chunk.js} +1 -1
- package/dist/scripts/80-7a85bbaf88.chunk.js +1 -0
- package/dist/scripts/81-a589326f2f.chunk.js +1 -0
- package/dist/scripts/{82-3326a696b2.chunk.js → 82-660d825e60.chunk.js} +1 -1
- package/dist/scripts/{9-753761ada2.chunk.js → 9-d2c18751ff.chunk.js} +1 -1
- package/dist/scripts/bundle-99c49275bf.min.js +31 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-b23c61c24c.min.js +1 -0
- package/package.json +3 -3
- package/dist/css/0.chunk.css.map +0 -1
- package/dist/css/1.chunk.css +0 -226
- package/dist/css/1.chunk.css.map +0 -1
- package/dist/css/10.chunk.css +0 -101
- package/dist/css/10.chunk.css.map +0 -1
- package/dist/css/11.chunk.css.map +0 -1
- package/dist/css/12.chunk.css.map +0 -1
- package/dist/css/13.chunk.css +0 -42
- package/dist/css/13.chunk.css.map +0 -1
- package/dist/css/14.chunk.css +0 -42
- package/dist/css/14.chunk.css.map +0 -1
- package/dist/css/15.chunk.css +0 -86
- package/dist/css/15.chunk.css.map +0 -1
- package/dist/css/16.chunk.css +0 -25
- package/dist/css/16.chunk.css.map +0 -1
- package/dist/css/17.chunk.css.map +0 -1
- package/dist/css/18.chunk.css.map +0 -1
- package/dist/css/19.chunk.css.map +0 -1
- package/dist/css/2.chunk.css.map +0 -1
- package/dist/css/20.chunk.css.map +0 -1
- package/dist/css/21.chunk.css.map +0 -1
- package/dist/css/22.chunk.css.map +0 -1
- package/dist/css/23.chunk.css.map +0 -1
- package/dist/css/24.chunk.css.map +0 -1
- package/dist/css/25.chunk.css.map +0 -1
- package/dist/css/26.chunk.css.map +0 -1
- package/dist/css/27.chunk.css.map +0 -1
- package/dist/css/28.chunk.css.map +0 -1
- package/dist/css/29.chunk.css.map +0 -1
- package/dist/css/3.chunk.css +0 -26
- package/dist/css/3.chunk.css.map +0 -1
- package/dist/css/30.chunk.css.map +0 -1
- package/dist/css/31.chunk.css.map +0 -1
- package/dist/css/32.chunk.css.map +0 -1
- package/dist/css/33.chunk.css.map +0 -1
- package/dist/css/34.chunk.css +0 -26
- package/dist/css/34.chunk.css.map +0 -1
- package/dist/css/35.chunk.css.map +0 -1
- package/dist/css/36.chunk.css.map +0 -1
- package/dist/css/37.chunk.css.map +0 -1
- package/dist/css/38.chunk.css.map +0 -1
- package/dist/css/39.chunk.css.map +0 -1
- package/dist/css/40.chunk.css.map +0 -1
- package/dist/css/41.chunk.css.map +0 -1
- package/dist/css/42.chunk.css.map +0 -1
- package/dist/css/43.chunk.css.map +0 -1
- package/dist/css/44.chunk.css.map +0 -1
- package/dist/css/45.chunk.css +0 -17
- package/dist/css/45.chunk.css.map +0 -1
- package/dist/css/46.chunk.css +0 -50
- package/dist/css/46.chunk.css.map +0 -1
- package/dist/css/47.chunk.css +0 -10
- package/dist/css/47.chunk.css.map +0 -1
- package/dist/css/48.chunk.css +0 -40
- package/dist/css/48.chunk.css.map +0 -1
- package/dist/css/49.chunk.css +0 -26
- package/dist/css/49.chunk.css.map +0 -1
- package/dist/css/5.chunk.css.map +0 -1
- package/dist/css/50.chunk.css +0 -14
- package/dist/css/50.chunk.css.map +0 -1
- package/dist/css/51.chunk.css +0 -17
- package/dist/css/51.chunk.css.map +0 -1
- package/dist/css/52.chunk.css +0 -14
- package/dist/css/52.chunk.css.map +0 -1
- package/dist/css/53.chunk.css +0 -6
- package/dist/css/53.chunk.css.map +0 -1
- package/dist/css/54.chunk.css.map +0 -1
- package/dist/css/56.chunk.css +0 -32
- package/dist/css/56.chunk.css.map +0 -1
- package/dist/css/57.chunk.css.map +0 -1
- package/dist/css/58.chunk.css +0 -52
- package/dist/css/58.chunk.css.map +0 -1
- package/dist/css/59.chunk.css.map +0 -1
- package/dist/css/6.chunk.css.map +0 -1
- package/dist/css/60.chunk.css.map +0 -1
- package/dist/css/61.chunk.css.map +0 -1
- package/dist/css/62.chunk.css +0 -52
- package/dist/css/62.chunk.css.map +0 -1
- package/dist/css/63.chunk.css +0 -14
- package/dist/css/63.chunk.css.map +0 -1
- package/dist/css/64.chunk.css.map +0 -1
- package/dist/css/65.chunk.css.map +0 -1
- package/dist/css/66.chunk.css +0 -52
- package/dist/css/66.chunk.css.map +0 -1
- package/dist/css/67.chunk.css +0 -52
- package/dist/css/67.chunk.css.map +0 -1
- package/dist/css/68.chunk.css +0 -14
- package/dist/css/68.chunk.css.map +0 -1
- package/dist/css/69.chunk.css +0 -14
- package/dist/css/69.chunk.css.map +0 -1
- package/dist/css/7.chunk.css.map +0 -1
- package/dist/css/70.chunk.css +0 -43
- package/dist/css/70.chunk.css.map +0 -1
- package/dist/css/71.chunk.css +0 -43
- package/dist/css/71.chunk.css.map +0 -1
- package/dist/css/72.chunk.css +0 -43
- package/dist/css/72.chunk.css.map +0 -1
- package/dist/css/73.chunk.css +0 -43
- package/dist/css/73.chunk.css.map +0 -1
- package/dist/css/78.chunk.css +0 -83
- package/dist/css/78.chunk.css.map +0 -1
- package/dist/css/8.chunk.css.map +0 -1
- package/dist/css/83.chunk.css +0 -9
- package/dist/css/83.chunk.css.map +0 -1
- package/dist/css/84.chunk.css +0 -38
- package/dist/css/84.chunk.css.map +0 -1
- package/dist/css/85.chunk.css +0 -68
- package/dist/css/85.chunk.css.map +0 -1
- package/dist/css/86.chunk.css +0 -5
- package/dist/css/86.chunk.css.map +0 -1
- package/dist/css/87.chunk.css +0 -5
- package/dist/css/87.chunk.css.map +0 -1
- package/dist/css/89.chunk.css +0 -40
- package/dist/css/89.chunk.css.map +0 -1
- package/dist/css/9.chunk.css.map +0 -1
- package/dist/css/90.chunk.css +0 -8
- package/dist/css/90.chunk.css.map +0 -1
- package/dist/css/91.chunk.css +0 -8
- package/dist/css/91.chunk.css.map +0 -1
- package/dist/css/92.chunk.css +0 -32
- package/dist/css/92.chunk.css.map +0 -1
- package/dist/css/93.chunk.css +0 -32
- package/dist/css/93.chunk.css.map +0 -1
- package/dist/css/94.chunk.css +0 -5
- package/dist/css/94.chunk.css.map +0 -1
- package/dist/css/lite-app.css.map +0 -1
- package/dist/libs/common/src/react/hooks/useViewModel.d.ts +0 -4
- package/dist/libs/shared/src/apps/subjects/hooks/useAudienceParams.d.ts +0 -5
- package/dist/libs/shared/src/apps/subjects/reducers/AudienceReducer.d.ts +0 -11
- package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +0 -5
- package/dist/libs/shared/src/interfaces/models/interactive.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/models/interactives/ActionableItem.d.ts +0 -6
- package/dist/libs/shared/src/interfaces/models/interactives/Interaction.d.ts +0 -16
- package/dist/libs/shared/src/interfaces/models/interactives/InteractionType.d.ts +0 -7
- package/dist/libs/shared/src/interfaces/models/interactives/InteractionTypeId.d.ts +0 -8
- package/dist/libs/shared/src/interfaces/models/interactives/Interactive.d.ts +0 -13
- package/dist/libs/shared/src/interfaces/models/interactives/Timepoint.d.ts +0 -9
- package/dist/libs/shared/src/interfaces/models/interactives/index.d.ts +0 -6
- package/dist/libs/shared/src/utils/DashboardHelper.d.ts +0 -9
- package/dist/projects/lite/src/apps/classrooms/components/classroom-group/ClassroomGroup.d.ts +0 -7
- package/dist/projects/lite/src/apps/classrooms/components/classroom-students-list/empty-state/ClassroomStudentsListEmptyState.d.ts +0 -2
- package/dist/projects/lite/src/apps/classrooms/components/tile-actions/TileActions.d.ts +0 -12
- package/dist/projects/lite/src/apps/classrooms/enums/GroupColour.d.ts +0 -10
- package/dist/projects/lite/src/apps/search/components/filter-types/radio-filter/year-level/YearLevelRadioFilter.d.ts +0 -8
- package/dist/projects/lite/src/apps/search/flight-requests/index.d.ts +0 -1
- package/dist/projects/lite/src/apps/share/components/sharee-item/ShareeItem.d.ts +0 -8
- package/dist/projects/lite/src/apps/share/views/main-view/MainShareView.d.ts +0 -11
- package/dist/projects/lite/src/apps/share/views/settings-view/ShareSettingsView.d.ts +0 -9
- package/dist/projects/lite/src/apps/user-manager/interfaces/mocks/MockClassroom.d.ts +0 -8
- package/dist/projects/lite/src/apps/user-manager/views/bulk-upload-users/BulkUploadUsersView.d.ts +0 -8
- package/dist/projects/lite/src/apps/user-manager/views/user-upload-duplicates/UserUploadDuplicatesView.d.ts +0 -8
- package/dist/projects/lite/src/apps/user-manager/views/user-upload-review/UserUploadReviewView.d.ts +0 -8
- package/dist/projects/lite/src/shared/components/share/copy-embed-html/CopyEmbedHtml.d.ts +0 -8
- package/dist/projects/lite/src/shared/components/share/result-templates/user/InstantUserTemplate.d.ts +0 -8
- package/dist/projects/lite/src/shared/components/share/sharee-item/ShareeItem.d.ts +0 -7
- package/dist/projects/lite/src/shared/components/share/tokenized-typeahead/InputSelection.d.ts +0 -8
- package/dist/projects/lite/src/shared/components/share/tokenized-typeahead/TokenizedTypeahead.d.ts +0 -21
- package/dist/projects/lite/src/shared/flight-requests/ShareRequests.d.ts +0 -5
- package/dist/projects/lite/src/shared/hooks/useGetEdgeToEdge.d.ts +0 -6
- package/dist/projects/lite/src/shared/interfaces/mocks/MockClassroomGroup.d.ts +0 -6
- package/dist/projects/lite/src/shared/interfaces/mocks/index.d.ts +0 -1
- package/dist/projects/lite/src/shared/services/SettingsDataService.d.ts +0 -10
- package/dist/projects/lite/src/shared/views/create-clip/CreateClipView.d.ts +0 -6
- package/dist/projects/lite/src/shared/views/left-nav/partial-loading/PartialLeftNavItem.d.ts +0 -2
- package/dist/projects/lite/src/shared/views/play-shared/PlaySharedView.d.ts +0 -6
- package/dist/projects/lite/src/shared/views/share/ShareView.d.ts +0 -9
- package/dist/projects/lite/src/shared/views/share/main-view/MainShareView.d.ts +0 -11
- package/dist/projects/lite/src/shared/views/share/settings-view/ShareSettingsView.d.ts +0 -9
- package/dist/projects/player/src/react/EmbeddedPlayer.d.ts +0 -7
- package/dist/scripts/0-e994a1b4d7.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -332
- package/dist/scripts/0.chunk.js.map +0 -1
- package/dist/scripts/1.chunk.js +0 -1130
- package/dist/scripts/1.chunk.js.map +0 -1
- package/dist/scripts/10.chunk.js +0 -2334
- package/dist/scripts/10.chunk.js.map +0 -1
- package/dist/scripts/100.chunk.js +0 -453
- package/dist/scripts/100.chunk.js.map +0 -1
- package/dist/scripts/101.chunk.js +0 -161
- package/dist/scripts/101.chunk.js.map +0 -1
- package/dist/scripts/102.chunk.js +0 -91
- package/dist/scripts/102.chunk.js.map +0 -1
- package/dist/scripts/103.chunk.js +0 -84
- package/dist/scripts/103.chunk.js.map +0 -1
- package/dist/scripts/11-7a8c344ea6.chunk.js +0 -1
- package/dist/scripts/11.chunk.js +0 -1682
- package/dist/scripts/11.chunk.js.map +0 -1
- package/dist/scripts/12.chunk.js +0 -484
- package/dist/scripts/12.chunk.js.map +0 -1
- package/dist/scripts/13-b5d5d7bdfa.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -260
- package/dist/scripts/13.chunk.js.map +0 -1
- package/dist/scripts/14-28375f71fa.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -1183
- package/dist/scripts/14.chunk.js.map +0 -1
- package/dist/scripts/15.chunk.js +0 -788
- package/dist/scripts/15.chunk.js.map +0 -1
- package/dist/scripts/16.chunk.js +0 -442
- package/dist/scripts/16.chunk.js.map +0 -1
- package/dist/scripts/17-b4479339d2.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -879
- package/dist/scripts/17.chunk.js.map +0 -1
- package/dist/scripts/18-60f3cd6ee4.chunk.js +0 -1
- package/dist/scripts/18.chunk.js +0 -1140
- package/dist/scripts/18.chunk.js.map +0 -1
- package/dist/scripts/19-df1dc3ef2f.chunk.js +0 -1
- package/dist/scripts/19.chunk.js +0 -541
- package/dist/scripts/19.chunk.js.map +0 -1
- package/dist/scripts/2-dbb770fac8.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -18795
- package/dist/scripts/2.chunk.js.map +0 -1
- package/dist/scripts/20-9615a8e5b8.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -369
- package/dist/scripts/20.chunk.js.map +0 -1
- package/dist/scripts/21-30ec979fe0.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -272
- package/dist/scripts/21.chunk.js.map +0 -1
- package/dist/scripts/22-b278cab988.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -2164
- package/dist/scripts/22.chunk.js.map +0 -1
- package/dist/scripts/23.chunk.js +0 -20753
- package/dist/scripts/23.chunk.js.map +0 -1
- package/dist/scripts/24.chunk.js +0 -2288
- package/dist/scripts/24.chunk.js.map +0 -1
- package/dist/scripts/25-888b6248ff.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -2110
- package/dist/scripts/25.chunk.js.map +0 -1
- package/dist/scripts/26-aaabbf241e.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -1603
- package/dist/scripts/26.chunk.js.map +0 -1
- package/dist/scripts/27-3dc1f5803f.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -770
- package/dist/scripts/27.chunk.js.map +0 -1
- package/dist/scripts/28.chunk.js +0 -1460
- package/dist/scripts/28.chunk.js.map +0 -1
- package/dist/scripts/29-ae81a5e250.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -899
- package/dist/scripts/29.chunk.js.map +0 -1
- package/dist/scripts/3.chunk.js +0 -741
- package/dist/scripts/3.chunk.js.map +0 -1
- package/dist/scripts/30-75d0f41d0f.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -792
- package/dist/scripts/30.chunk.js.map +0 -1
- package/dist/scripts/31.chunk.js +0 -825
- package/dist/scripts/31.chunk.js.map +0 -1
- package/dist/scripts/32-d62f3a69c0.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -848
- package/dist/scripts/32.chunk.js.map +0 -1
- package/dist/scripts/33-8ec9d596c5.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -793
- package/dist/scripts/33.chunk.js.map +0 -1
- package/dist/scripts/34-7f80fea1f9.chunk.js +0 -53
- package/dist/scripts/34.chunk.js +0 -817
- package/dist/scripts/34.chunk.js.map +0 -1
- package/dist/scripts/35.chunk.js +0 -520
- package/dist/scripts/35.chunk.js.map +0 -1
- package/dist/scripts/36.chunk.js +0 -717
- package/dist/scripts/36.chunk.js.map +0 -1
- package/dist/scripts/37.chunk.js +0 -538
- package/dist/scripts/37.chunk.js.map +0 -1
- package/dist/scripts/38-3e08037fa3.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -438
- package/dist/scripts/38.chunk.js.map +0 -1
- package/dist/scripts/39-bfb5d54572.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -408
- package/dist/scripts/39.chunk.js.map +0 -1
- package/dist/scripts/4-eef3251d84.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -403
- package/dist/scripts/4.chunk.js.map +0 -1
- package/dist/scripts/40-e0eafc5aec.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -533
- package/dist/scripts/40.chunk.js.map +0 -1
- package/dist/scripts/41.chunk.js +0 -814
- package/dist/scripts/41.chunk.js.map +0 -1
- package/dist/scripts/42-6b91ae0603.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -529
- package/dist/scripts/42.chunk.js.map +0 -1
- package/dist/scripts/43.chunk.js +0 -609
- package/dist/scripts/43.chunk.js.map +0 -1
- package/dist/scripts/44-f0664cf45b.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -563
- package/dist/scripts/44.chunk.js.map +0 -1
- package/dist/scripts/45-3173437bfb.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -674
- package/dist/scripts/45.chunk.js.map +0 -1
- package/dist/scripts/46.chunk.js +0 -409
- package/dist/scripts/46.chunk.js.map +0 -1
- package/dist/scripts/47.chunk.js +0 -401
- package/dist/scripts/47.chunk.js.map +0 -1
- package/dist/scripts/48.chunk.js +0 -217
- package/dist/scripts/48.chunk.js.map +0 -1
- package/dist/scripts/49.chunk.js +0 -282
- package/dist/scripts/49.chunk.js.map +0 -1
- package/dist/scripts/5-9cb873330d.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -309
- package/dist/scripts/5.chunk.js.map +0 -1
- package/dist/scripts/50.chunk.js +0 -450
- package/dist/scripts/50.chunk.js.map +0 -1
- package/dist/scripts/51.chunk.js +0 -338
- package/dist/scripts/51.chunk.js.map +0 -1
- package/dist/scripts/52.chunk.js +0 -447
- package/dist/scripts/52.chunk.js.map +0 -1
- package/dist/scripts/53.chunk.js +0 -440
- package/dist/scripts/53.chunk.js.map +0 -1
- package/dist/scripts/54.chunk.js +0 -1533
- package/dist/scripts/54.chunk.js.map +0 -1
- package/dist/scripts/55.chunk.js +0 -574
- package/dist/scripts/55.chunk.js.map +0 -1
- package/dist/scripts/56.chunk.js +0 -245
- package/dist/scripts/56.chunk.js.map +0 -1
- package/dist/scripts/57.chunk.js +0 -230
- package/dist/scripts/57.chunk.js.map +0 -1
- package/dist/scripts/58.chunk.js +0 -480
- package/dist/scripts/58.chunk.js.map +0 -1
- package/dist/scripts/59.chunk.js +0 -408
- package/dist/scripts/59.chunk.js.map +0 -1
- package/dist/scripts/6.chunk.js +0 -1172
- package/dist/scripts/6.chunk.js.map +0 -1
- package/dist/scripts/60.chunk.js +0 -241
- package/dist/scripts/60.chunk.js.map +0 -1
- package/dist/scripts/61.chunk.js +0 -249
- package/dist/scripts/61.chunk.js.map +0 -1
- package/dist/scripts/62.chunk.js +0 -132
- package/dist/scripts/62.chunk.js.map +0 -1
- package/dist/scripts/63.chunk.js +0 -318
- package/dist/scripts/63.chunk.js.map +0 -1
- package/dist/scripts/64.chunk.js +0 -212
- package/dist/scripts/64.chunk.js.map +0 -1
- package/dist/scripts/65.chunk.js +0 -195
- package/dist/scripts/65.chunk.js.map +0 -1
- package/dist/scripts/66.chunk.js +0 -230
- package/dist/scripts/66.chunk.js.map +0 -1
- package/dist/scripts/67.chunk.js +0 -108
- package/dist/scripts/67.chunk.js.map +0 -1
- package/dist/scripts/68.chunk.js +0 -209
- package/dist/scripts/68.chunk.js.map +0 -1
- package/dist/scripts/69.chunk.js +0 -211
- package/dist/scripts/69.chunk.js.map +0 -1
- package/dist/scripts/7-3adb578de5.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -613
- package/dist/scripts/7.chunk.js.map +0 -1
- package/dist/scripts/70.chunk.js +0 -115
- package/dist/scripts/70.chunk.js.map +0 -1
- package/dist/scripts/71.chunk.js +0 -449
- package/dist/scripts/71.chunk.js.map +0 -1
- package/dist/scripts/72.chunk.js +0 -161
- package/dist/scripts/72.chunk.js.map +0 -1
- package/dist/scripts/73-3d149ecedc.chunk.js +0 -1
- package/dist/scripts/73.chunk.js +0 -87
- package/dist/scripts/73.chunk.js.map +0 -1
- package/dist/scripts/74.chunk.js +0 -142
- package/dist/scripts/74.chunk.js.map +0 -1
- package/dist/scripts/75.chunk.js +0 -149
- package/dist/scripts/75.chunk.js.map +0 -1
- package/dist/scripts/76.chunk.js +0 -142
- package/dist/scripts/76.chunk.js.map +0 -1
- package/dist/scripts/77.chunk.js +0 -180
- package/dist/scripts/77.chunk.js.map +0 -1
- package/dist/scripts/78.chunk.js +0 -170
- package/dist/scripts/78.chunk.js.map +0 -1
- package/dist/scripts/79.chunk.js +0 -172
- package/dist/scripts/79.chunk.js.map +0 -1
- package/dist/scripts/8.chunk.js +0 -436
- package/dist/scripts/8.chunk.js.map +0 -1
- package/dist/scripts/80-f4b5d951b3.chunk.js +0 -1
- package/dist/scripts/80.chunk.js +0 -173
- package/dist/scripts/80.chunk.js.map +0 -1
- package/dist/scripts/81-8c42a24988.chunk.js +0 -1
- package/dist/scripts/81.chunk.js +0 -172
- package/dist/scripts/81.chunk.js.map +0 -1
- package/dist/scripts/82.chunk.js +0 -311
- package/dist/scripts/82.chunk.js.map +0 -1
- package/dist/scripts/83.chunk.js +0 -318
- package/dist/scripts/83.chunk.js.map +0 -1
- package/dist/scripts/84.chunk.js +0 -64
- package/dist/scripts/84.chunk.js.map +0 -1
- package/dist/scripts/85.chunk.js +0 -65
- package/dist/scripts/85.chunk.js.map +0 -1
- package/dist/scripts/86.chunk.js +0 -37
- package/dist/scripts/86.chunk.js.map +0 -1
- package/dist/scripts/87.chunk.js +0 -82
- package/dist/scripts/87.chunk.js.map +0 -1
- package/dist/scripts/88.chunk.js +0 -1001
- package/dist/scripts/88.chunk.js.map +0 -1
- package/dist/scripts/89.chunk.js +0 -24
- package/dist/scripts/89.chunk.js.map +0 -1
- package/dist/scripts/9.chunk.js +0 -445
- package/dist/scripts/9.chunk.js.map +0 -1
- package/dist/scripts/90.chunk.js +0 -36
- package/dist/scripts/90.chunk.js.map +0 -1
- package/dist/scripts/91.chunk.js +0 -36
- package/dist/scripts/91.chunk.js.map +0 -1
- package/dist/scripts/92.chunk.js +0 -69
- package/dist/scripts/92.chunk.js.map +0 -1
- package/dist/scripts/93.chunk.js +0 -441
- package/dist/scripts/93.chunk.js.map +0 -1
- package/dist/scripts/94.chunk.js +0 -740
- package/dist/scripts/94.chunk.js.map +0 -1
- package/dist/scripts/95.chunk.js +0 -221
- package/dist/scripts/95.chunk.js.map +0 -1
- package/dist/scripts/96.chunk.js +0 -230
- package/dist/scripts/96.chunk.js.map +0 -1
- package/dist/scripts/97.chunk.js +0 -241
- package/dist/scripts/97.chunk.js.map +0 -1
- package/dist/scripts/98.chunk.js +0 -249
- package/dist/scripts/98.chunk.js.map +0 -1
- package/dist/scripts/99.chunk.js +0 -212
- package/dist/scripts/99.chunk.js.map +0 -1
- package/dist/scripts/bundle-f4a1d3ab76.min.js +0 -31
- package/dist/scripts/bundle.js +0 -119288
- package/dist/scripts/bundle.js.map +0 -1
- package/dist/scripts/pdf.worker.entry.worker.js +0 -46239
- package/dist/scripts/pdf.worker.entry.worker.js.map +0 -1
- package/dist/scripts/polyfills-7ae776aac5.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -15254
- package/dist/scripts/polyfills.js.map +0 -1
package/dist/scripts/54.chunk.js
DELETED
|
@@ -1,1533 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp_clickview_lite"] = window["webpackJsonp_clickview_lite"] || []).push([[54],{
|
|
2
|
-
|
|
3
|
-
/***/ "../../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js":
|
|
4
|
-
/*!*************************************************************************************************************************!*\
|
|
5
|
-
!*** C:/ClickView/front-end/clickview/node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js ***!
|
|
6
|
-
\*************************************************************************************************************************/
|
|
7
|
-
/*! exports provided: default */
|
|
8
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
|
-
|
|
10
|
-
"use strict";
|
|
11
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
13
|
-
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
14
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
15
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
16
|
-
/* harmony import */ var use_latest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! use-latest */ "../../../node_modules/use-latest/dist/use-latest.esm.js");
|
|
17
|
-
/* harmony import */ var use_composed_ref__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! use-composed-ref */ "../../../node_modules/use-composed-ref/dist/use-composed-ref.esm.js");
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var HIDDEN_TEXTAREA_STYLE = {
|
|
25
|
-
'min-height': '0',
|
|
26
|
-
'max-height': 'none',
|
|
27
|
-
height: '0',
|
|
28
|
-
visibility: 'hidden',
|
|
29
|
-
overflow: 'hidden',
|
|
30
|
-
position: 'absolute',
|
|
31
|
-
'z-index': '-1000',
|
|
32
|
-
top: '0',
|
|
33
|
-
right: '0'
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
var forceHiddenStyles = function forceHiddenStyles(node) {
|
|
37
|
-
Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function (key) {
|
|
38
|
-
node.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], 'important');
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// export type CalculatedNodeHeights = [height: number, rowHeight: number];
|
|
43
|
-
// https://github.com/microsoft/TypeScript/issues/28259
|
|
44
|
-
|
|
45
|
-
var hiddenTextarea = null;
|
|
46
|
-
|
|
47
|
-
var getHeight = function getHeight(node, sizingData) {
|
|
48
|
-
var height = node.scrollHeight;
|
|
49
|
-
|
|
50
|
-
if (sizingData.sizingStyle.boxSizing === 'border-box') {
|
|
51
|
-
// border-box: add border, since height = content + padding + border
|
|
52
|
-
return height + sizingData.borderSize;
|
|
53
|
-
} // remove padding, since height = content
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return height - sizingData.paddingSize;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
function calculateNodeHeight(sizingData, value, minRows, maxRows) {
|
|
60
|
-
if (minRows === void 0) {
|
|
61
|
-
minRows = 1;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (maxRows === void 0) {
|
|
65
|
-
maxRows = Infinity;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (!hiddenTextarea) {
|
|
69
|
-
hiddenTextarea = document.createElement('textarea');
|
|
70
|
-
hiddenTextarea.setAttribute('tab-index', '-1');
|
|
71
|
-
hiddenTextarea.setAttribute('aria-hidden', 'true');
|
|
72
|
-
forceHiddenStyles(hiddenTextarea);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (hiddenTextarea.parentNode === null) {
|
|
76
|
-
document.body.appendChild(hiddenTextarea);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
var paddingSize = sizingData.paddingSize,
|
|
80
|
-
borderSize = sizingData.borderSize,
|
|
81
|
-
sizingStyle = sizingData.sizingStyle;
|
|
82
|
-
var boxSizing = sizingStyle.boxSizing;
|
|
83
|
-
Object.keys(sizingStyle).forEach(function (_key) {
|
|
84
|
-
var key = _key;
|
|
85
|
-
hiddenTextarea.style[key] = sizingStyle[key];
|
|
86
|
-
});
|
|
87
|
-
forceHiddenStyles(hiddenTextarea);
|
|
88
|
-
hiddenTextarea.value = value;
|
|
89
|
-
var height = getHeight(hiddenTextarea, sizingData); // measure height of a textarea with a single row
|
|
90
|
-
|
|
91
|
-
hiddenTextarea.value = 'x';
|
|
92
|
-
var rowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
93
|
-
var minHeight = rowHeight * minRows;
|
|
94
|
-
|
|
95
|
-
if (boxSizing === 'border-box') {
|
|
96
|
-
minHeight = minHeight + paddingSize + borderSize;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
height = Math.max(minHeight, height);
|
|
100
|
-
var maxHeight = rowHeight * maxRows;
|
|
101
|
-
|
|
102
|
-
if (boxSizing === 'border-box') {
|
|
103
|
-
maxHeight = maxHeight + paddingSize + borderSize;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
height = Math.min(maxHeight, height);
|
|
107
|
-
return [height, rowHeight];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
var noop = function noop() {};
|
|
111
|
-
var pick = function pick(props, obj) {
|
|
112
|
-
return props.reduce(function (acc, prop) {
|
|
113
|
-
acc[prop] = obj[prop];
|
|
114
|
-
return acc;
|
|
115
|
-
}, {});
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
var SIZING_STYLE = ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth', 'boxSizing', 'fontFamily', 'fontSize', 'fontStyle', 'fontWeight', 'letterSpacing', 'lineHeight', 'paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop', // non-standard
|
|
119
|
-
'tabSize', 'textIndent', // non-standard
|
|
120
|
-
'textRendering', 'textTransform', 'width'];
|
|
121
|
-
var isIE = !!document.documentElement.currentStyle ;
|
|
122
|
-
|
|
123
|
-
var getSizingData = function getSizingData(node) {
|
|
124
|
-
var style = window.getComputedStyle(node);
|
|
125
|
-
|
|
126
|
-
if (style === null) {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
var sizingStyle = pick(SIZING_STYLE, style);
|
|
131
|
-
var boxSizing = sizingStyle.boxSizing; // probably node is detached from DOM, can't read computed dimensions
|
|
132
|
-
|
|
133
|
-
if (boxSizing === '') {
|
|
134
|
-
return null;
|
|
135
|
-
} // IE (Edge has already correct behaviour) returns content width as computed width
|
|
136
|
-
// so we need to add manually padding and border widths
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (isIE && boxSizing === 'border-box') {
|
|
140
|
-
sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + 'px';
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop);
|
|
144
|
-
var borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth);
|
|
145
|
-
return {
|
|
146
|
-
sizingStyle: sizingStyle,
|
|
147
|
-
paddingSize: paddingSize,
|
|
148
|
-
borderSize: borderSize
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
var useWindowResizeListener = function useWindowResizeListener(listener) {
|
|
153
|
-
var latestListener = Object(use_latest__WEBPACK_IMPORTED_MODULE_3__["default"])(listener);
|
|
154
|
-
Object(react__WEBPACK_IMPORTED_MODULE_2__["useEffect"])(function () {
|
|
155
|
-
var handler = function handler(event) {
|
|
156
|
-
latestListener.current(event);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
window.addEventListener('resize', handler);
|
|
160
|
-
return function () {
|
|
161
|
-
window.removeEventListener('resize', handler);
|
|
162
|
-
};
|
|
163
|
-
}, []);
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
var TextareaAutosize = function TextareaAutosize(_ref, userRef) {
|
|
167
|
-
var cacheMeasurements = _ref.cacheMeasurements,
|
|
168
|
-
maxRows = _ref.maxRows,
|
|
169
|
-
minRows = _ref.minRows,
|
|
170
|
-
_ref$onChange = _ref.onChange,
|
|
171
|
-
onChange = _ref$onChange === void 0 ? noop : _ref$onChange,
|
|
172
|
-
_ref$onHeightChange = _ref.onHeightChange,
|
|
173
|
-
onHeightChange = _ref$onHeightChange === void 0 ? noop : _ref$onHeightChange,
|
|
174
|
-
props = Object(_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__["default"])(_ref, ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"]);
|
|
175
|
-
|
|
176
|
-
if ( true && props.style) {
|
|
177
|
-
if ('maxHeight' in props.style) {
|
|
178
|
-
throw new Error('Using `style.maxHeight` for <TextareaAutosize/> is not supported. Please use `maxRows`.');
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
if ('minHeight' in props.style) {
|
|
182
|
-
throw new Error('Using `style.minHeight` for <TextareaAutosize/> is not supported. Please use `minRows`.');
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
var isControlled = props.value !== undefined;
|
|
187
|
-
var libRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(null);
|
|
188
|
-
var ref = Object(use_composed_ref__WEBPACK_IMPORTED_MODULE_4__["default"])(libRef, userRef);
|
|
189
|
-
var heightRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])(0);
|
|
190
|
-
var measurementsCacheRef = Object(react__WEBPACK_IMPORTED_MODULE_2__["useRef"])();
|
|
191
|
-
|
|
192
|
-
var resizeTextarea = function resizeTextarea() {
|
|
193
|
-
var node = libRef.current;
|
|
194
|
-
var nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData(node);
|
|
195
|
-
|
|
196
|
-
if (!nodeSizingData) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
measurementsCacheRef.current = nodeSizingData;
|
|
201
|
-
|
|
202
|
-
var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node.value || node.placeholder || 'x', minRows, maxRows),
|
|
203
|
-
height = _calculateNodeHeight[0],
|
|
204
|
-
rowHeight = _calculateNodeHeight[1];
|
|
205
|
-
|
|
206
|
-
if (heightRef.current !== height) {
|
|
207
|
-
heightRef.current = height;
|
|
208
|
-
node.style.setProperty('height', height + "px", 'important');
|
|
209
|
-
onHeightChange(height, {
|
|
210
|
-
rowHeight: rowHeight
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
var handleChange = function handleChange(event) {
|
|
216
|
-
if (!isControlled) {
|
|
217
|
-
resizeTextarea();
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
onChange(event);
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
{
|
|
224
|
-
Object(react__WEBPACK_IMPORTED_MODULE_2__["useLayoutEffect"])(resizeTextarea);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
useWindowResizeListener(resizeTextarea);
|
|
228
|
-
return (/*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_2__["createElement"])("textarea", Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, {
|
|
229
|
-
onChange: handleChange,
|
|
230
|
-
ref: ref
|
|
231
|
-
}))
|
|
232
|
-
);
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
var index = /* #__PURE__ */Object(react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(TextareaAutosize);
|
|
236
|
-
|
|
237
|
-
/* harmony default export */ __webpack_exports__["default"] = (index);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
/***/ }),
|
|
241
|
-
|
|
242
|
-
/***/ "../../../node_modules/simplebar-react/dist/simplebar-react.esm.js":
|
|
243
|
-
/*!*************************************************************************************************!*\
|
|
244
|
-
!*** C:/ClickView/front-end/clickview/node_modules/simplebar-react/dist/simplebar-react.esm.js ***!
|
|
245
|
-
\*************************************************************************************************/
|
|
246
|
-
/*! exports provided: default */
|
|
247
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
248
|
-
|
|
249
|
-
"use strict";
|
|
250
|
-
__webpack_require__.r(__webpack_exports__);
|
|
251
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
252
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
253
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
254
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
255
|
-
/* harmony import */ var simplebar_dist_simplebar_core_esm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! simplebar/dist/simplebar-core.esm */ "../../../node_modules/simplebar/dist/simplebar-core.esm.js");
|
|
256
|
-
/**
|
|
257
|
-
* simplebar-react - v2.3.0
|
|
258
|
-
* React component for SimpleBar
|
|
259
|
-
* https://grsmto.github.io/simplebar/
|
|
260
|
-
*
|
|
261
|
-
* Made by Adrien Denat
|
|
262
|
-
* Under MIT License
|
|
263
|
-
*/
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
function _defineProperty(obj, key, value) {
|
|
270
|
-
if (key in obj) {
|
|
271
|
-
Object.defineProperty(obj, key, {
|
|
272
|
-
value: value,
|
|
273
|
-
enumerable: true,
|
|
274
|
-
configurable: true,
|
|
275
|
-
writable: true
|
|
276
|
-
});
|
|
277
|
-
} else {
|
|
278
|
-
obj[key] = value;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
return obj;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
function _extends() {
|
|
285
|
-
_extends = Object.assign || function (target) {
|
|
286
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
287
|
-
var source = arguments[i];
|
|
288
|
-
|
|
289
|
-
for (var key in source) {
|
|
290
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
291
|
-
target[key] = source[key];
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
return target;
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
return _extends.apply(this, arguments);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
function ownKeys(object, enumerableOnly) {
|
|
303
|
-
var keys = Object.keys(object);
|
|
304
|
-
|
|
305
|
-
if (Object.getOwnPropertySymbols) {
|
|
306
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
307
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
308
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
309
|
-
});
|
|
310
|
-
keys.push.apply(keys, symbols);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
return keys;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
function _objectSpread2(target) {
|
|
317
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
318
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
319
|
-
|
|
320
|
-
if (i % 2) {
|
|
321
|
-
ownKeys(source, true).forEach(function (key) {
|
|
322
|
-
_defineProperty(target, key, source[key]);
|
|
323
|
-
});
|
|
324
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
325
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
326
|
-
} else {
|
|
327
|
-
ownKeys(source).forEach(function (key) {
|
|
328
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return target;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
337
|
-
if (source == null) return {};
|
|
338
|
-
var target = {};
|
|
339
|
-
var sourceKeys = Object.keys(source);
|
|
340
|
-
var key, i;
|
|
341
|
-
|
|
342
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
343
|
-
key = sourceKeys[i];
|
|
344
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
345
|
-
target[key] = source[key];
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
return target;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
function _objectWithoutProperties(source, excluded) {
|
|
352
|
-
if (source == null) return {};
|
|
353
|
-
|
|
354
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
355
|
-
|
|
356
|
-
var key, i;
|
|
357
|
-
|
|
358
|
-
if (Object.getOwnPropertySymbols) {
|
|
359
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
360
|
-
|
|
361
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
362
|
-
key = sourceSymbolKeys[i];
|
|
363
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
364
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
365
|
-
target[key] = source[key];
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
return target;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/* Deprecated
|
|
373
|
-
* Hardcore this here until we can safely deprecated it.
|
|
374
|
-
* Helper function to retrieve options from element attributes
|
|
375
|
-
*/
|
|
376
|
-
|
|
377
|
-
var getOptions = function getOptions(obj) {
|
|
378
|
-
var options = Array.prototype.reduce.call(obj, function (acc, attribute) {
|
|
379
|
-
var option = attribute.name.match(/data-simplebar-(.+)/);
|
|
380
|
-
|
|
381
|
-
if (option) {
|
|
382
|
-
var key = option[1].replace(/\W+(.)/g, function (x, chr) {
|
|
383
|
-
return chr.toUpperCase();
|
|
384
|
-
});
|
|
385
|
-
|
|
386
|
-
switch (attribute.value) {
|
|
387
|
-
case 'true':
|
|
388
|
-
acc[key] = true;
|
|
389
|
-
break;
|
|
390
|
-
|
|
391
|
-
case 'false':
|
|
392
|
-
acc[key] = false;
|
|
393
|
-
break;
|
|
394
|
-
|
|
395
|
-
case undefined:
|
|
396
|
-
acc[key] = true;
|
|
397
|
-
break;
|
|
398
|
-
|
|
399
|
-
default:
|
|
400
|
-
acc[key] = attribute.value;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
return acc;
|
|
405
|
-
}, {});
|
|
406
|
-
return options;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
var SimpleBar = react__WEBPACK_IMPORTED_MODULE_0___default.a.forwardRef(function (_ref, ref) {
|
|
410
|
-
var children = _ref.children,
|
|
411
|
-
_ref$scrollableNodePr = _ref.scrollableNodeProps,
|
|
412
|
-
scrollableNodeProps = _ref$scrollableNodePr === void 0 ? {} : _ref$scrollableNodePr,
|
|
413
|
-
otherProps = _objectWithoutProperties(_ref, ["children", "scrollableNodeProps"]);
|
|
414
|
-
|
|
415
|
-
var instance;
|
|
416
|
-
var scrollableNodeRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
|
|
417
|
-
var elRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
|
|
418
|
-
var contentNodeRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
|
|
419
|
-
var options = {};
|
|
420
|
-
var rest = {};
|
|
421
|
-
var deprecatedOptions = [];
|
|
422
|
-
Object.keys(otherProps).forEach(function (key) {
|
|
423
|
-
if (Object.prototype.hasOwnProperty.call(simplebar_dist_simplebar_core_esm__WEBPACK_IMPORTED_MODULE_2__["default"].defaultOptions, key)) {
|
|
424
|
-
options[key] = otherProps[key];
|
|
425
|
-
} else if (key.match(/data-simplebar-(.+)/) && key !== 'data-simplebar-direction') {
|
|
426
|
-
deprecatedOptions.push({
|
|
427
|
-
name: key,
|
|
428
|
-
value: otherProps[key]
|
|
429
|
-
});
|
|
430
|
-
} else {
|
|
431
|
-
rest[key] = otherProps[key];
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
if (deprecatedOptions.length) {
|
|
436
|
-
console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' \u2014> 'autoHide=\"false\"'\n ");
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
|
|
440
|
-
scrollableNodeRef = scrollableNodeProps.ref || scrollableNodeRef;
|
|
441
|
-
|
|
442
|
-
if (elRef.current) {
|
|
443
|
-
instance = new simplebar_dist_simplebar_core_esm__WEBPACK_IMPORTED_MODULE_2__["default"](elRef.current, _objectSpread2({}, getOptions(deprecatedOptions), {}, options, {}, scrollableNodeRef && {
|
|
444
|
-
scrollableNode: scrollableNodeRef.current
|
|
445
|
-
}, {}, contentNodeRef.current && {
|
|
446
|
-
contentNode: contentNodeRef.current
|
|
447
|
-
}));
|
|
448
|
-
|
|
449
|
-
if (ref) {
|
|
450
|
-
ref.current = instance;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
return function () {
|
|
455
|
-
instance.unMount();
|
|
456
|
-
instance = null;
|
|
457
|
-
};
|
|
458
|
-
}, []);
|
|
459
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({
|
|
460
|
-
ref: elRef,
|
|
461
|
-
"data-simplebar": true
|
|
462
|
-
}, rest), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
463
|
-
className: "simplebar-wrapper"
|
|
464
|
-
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
465
|
-
className: "simplebar-height-auto-observer-wrapper"
|
|
466
|
-
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
467
|
-
className: "simplebar-height-auto-observer"
|
|
468
|
-
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
469
|
-
className: "simplebar-mask"
|
|
470
|
-
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
471
|
-
className: "simplebar-offset"
|
|
472
|
-
}, typeof children === 'function' ? children({
|
|
473
|
-
scrollableNodeRef: scrollableNodeRef,
|
|
474
|
-
contentNodeRef: contentNodeRef
|
|
475
|
-
}) : react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", _extends({}, scrollableNodeProps, {
|
|
476
|
-
className: "simplebar-content-wrapper".concat(scrollableNodeProps.className ? " ".concat(scrollableNodeProps.className) : '')
|
|
477
|
-
}), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
478
|
-
className: "simplebar-content"
|
|
479
|
-
}, children)))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
480
|
-
className: "simplebar-placeholder"
|
|
481
|
-
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
482
|
-
className: "simplebar-track simplebar-horizontal"
|
|
483
|
-
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
484
|
-
className: "simplebar-scrollbar"
|
|
485
|
-
})), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
486
|
-
className: "simplebar-track simplebar-vertical"
|
|
487
|
-
}, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
|
|
488
|
-
className: "simplebar-scrollbar"
|
|
489
|
-
})));
|
|
490
|
-
});
|
|
491
|
-
SimpleBar.displayName = 'SimpleBar';
|
|
492
|
-
SimpleBar.propTypes = {
|
|
493
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.node, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func]),
|
|
494
|
-
scrollableNodeProps: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
/* harmony default export */ __webpack_exports__["default"] = (SimpleBar);
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
/***/ }),
|
|
501
|
-
|
|
502
|
-
/***/ "../../../node_modules/simplebar/dist/simplebar-core.esm.js":
|
|
503
|
-
/*!******************************************************************************************!*\
|
|
504
|
-
!*** C:/ClickView/front-end/clickview/node_modules/simplebar/dist/simplebar-core.esm.js ***!
|
|
505
|
-
\******************************************************************************************/
|
|
506
|
-
/*! exports provided: default */
|
|
507
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
508
|
-
|
|
509
|
-
"use strict";
|
|
510
|
-
__webpack_require__.r(__webpack_exports__);
|
|
511
|
-
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "../../../node_modules/core-js/modules/es.array.filter.js");
|
|
512
|
-
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0__);
|
|
513
|
-
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.for-each */ "../../../node_modules/core-js/modules/es.array.for-each.js");
|
|
514
|
-
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__);
|
|
515
|
-
/* harmony import */ var core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.iterator */ "../../../node_modules/core-js/modules/es.array.iterator.js");
|
|
516
|
-
/* harmony import */ var core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_2__);
|
|
517
|
-
/* harmony import */ var core_js_modules_es_object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.assign */ "../../../node_modules/core-js/modules/es.object.assign.js");
|
|
518
|
-
/* harmony import */ var core_js_modules_es_object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign__WEBPACK_IMPORTED_MODULE_3__);
|
|
519
|
-
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ "../../../node_modules/core-js/modules/es.object.to-string.js");
|
|
520
|
-
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_4__);
|
|
521
|
-
/* harmony import */ var core_js_modules_es_parse_int__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.parse-int */ "../../../node_modules/core-js/modules/es.parse-int.js");
|
|
522
|
-
/* harmony import */ var core_js_modules_es_parse_int__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_parse_int__WEBPACK_IMPORTED_MODULE_5__);
|
|
523
|
-
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "../../../node_modules/core-js/modules/es.string.iterator.js");
|
|
524
|
-
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_6__);
|
|
525
|
-
/* harmony import */ var core_js_modules_es_weak_map__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.weak-map */ "../../../node_modules/core-js/modules/es.weak-map.js");
|
|
526
|
-
/* harmony import */ var core_js_modules_es_weak_map__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_weak_map__WEBPACK_IMPORTED_MODULE_7__);
|
|
527
|
-
/* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator */ "../../../node_modules/core-js/modules/web.dom-collections.iterator.js");
|
|
528
|
-
/* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_8__);
|
|
529
|
-
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash.throttle */ "../../../node_modules/lodash.throttle/index.js");
|
|
530
|
-
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_9__);
|
|
531
|
-
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash.debounce */ "../../../node_modules/lodash.debounce/index.js");
|
|
532
|
-
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_10__);
|
|
533
|
-
/* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash.memoize */ "../../../node_modules/lodash.memoize/index.js");
|
|
534
|
-
/* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_11__);
|
|
535
|
-
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! resize-observer-polyfill */ "../../../node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
|
|
536
|
-
/* harmony import */ var can_use_dom__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! can-use-dom */ "../../../node_modules/can-use-dom/index.js");
|
|
537
|
-
/* harmony import */ var can_use_dom__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(can_use_dom__WEBPACK_IMPORTED_MODULE_13__);
|
|
538
|
-
/* harmony import */ var core_js_modules_es_array_reduce__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.reduce */ "../../../node_modules/core-js/modules/es.array.reduce.js");
|
|
539
|
-
/* harmony import */ var core_js_modules_es_array_reduce__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce__WEBPACK_IMPORTED_MODULE_14__);
|
|
540
|
-
/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.function.name */ "../../../node_modules/core-js/modules/es.function.name.js");
|
|
541
|
-
/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_15__);
|
|
542
|
-
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.regexp.exec */ "../../../node_modules/core-js/modules/es.regexp.exec.js");
|
|
543
|
-
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_16__);
|
|
544
|
-
/* harmony import */ var core_js_modules_es_string_match__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.string.match */ "../../../node_modules/core-js/modules/es.string.match.js");
|
|
545
|
-
/* harmony import */ var core_js_modules_es_string_match__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match__WEBPACK_IMPORTED_MODULE_17__);
|
|
546
|
-
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.string.replace */ "../../../node_modules/core-js/modules/es.string.replace.js");
|
|
547
|
-
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_18__);
|
|
548
|
-
/**
|
|
549
|
-
* SimpleBar.js - v5.3.0
|
|
550
|
-
* Scrollbars, simpler.
|
|
551
|
-
* https://grsmto.github.io/simplebar/
|
|
552
|
-
*
|
|
553
|
-
* Made by Adrien Denat from a fork by Jonathan Nicol
|
|
554
|
-
* Under MIT License
|
|
555
|
-
*/
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
var cachedScrollbarWidth = null;
|
|
578
|
-
var cachedDevicePixelRatio = null;
|
|
579
|
-
|
|
580
|
-
if (can_use_dom__WEBPACK_IMPORTED_MODULE_13___default.a) {
|
|
581
|
-
window.addEventListener('resize', function () {
|
|
582
|
-
if (cachedDevicePixelRatio !== window.devicePixelRatio) {
|
|
583
|
-
cachedDevicePixelRatio = window.devicePixelRatio;
|
|
584
|
-
cachedScrollbarWidth = null;
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
function scrollbarWidth() {
|
|
590
|
-
if (cachedScrollbarWidth === null) {
|
|
591
|
-
if (typeof document === 'undefined') {
|
|
592
|
-
cachedScrollbarWidth = 0;
|
|
593
|
-
return cachedScrollbarWidth;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
var body = document.body;
|
|
597
|
-
var box = document.createElement('div');
|
|
598
|
-
box.classList.add('simplebar-hide-scrollbar');
|
|
599
|
-
body.appendChild(box);
|
|
600
|
-
var width = box.getBoundingClientRect().right;
|
|
601
|
-
body.removeChild(box);
|
|
602
|
-
cachedScrollbarWidth = width;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
return cachedScrollbarWidth;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
function getElementWindow(element) {
|
|
609
|
-
if (!element || !element.ownerDocument || !element.ownerDocument.defaultView) {
|
|
610
|
-
return window;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
return element.ownerDocument.defaultView;
|
|
614
|
-
}
|
|
615
|
-
function getElementDocument(element) {
|
|
616
|
-
if (!element || !element.ownerDocument) {
|
|
617
|
-
return document;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
return element.ownerDocument;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
var SimpleBar =
|
|
624
|
-
/*#__PURE__*/
|
|
625
|
-
function () {
|
|
626
|
-
function SimpleBar(element, options) {
|
|
627
|
-
var _this = this;
|
|
628
|
-
|
|
629
|
-
this.onScroll = function () {
|
|
630
|
-
var elWindow = getElementWindow(_this.el);
|
|
631
|
-
|
|
632
|
-
if (!_this.scrollXTicking) {
|
|
633
|
-
elWindow.requestAnimationFrame(_this.scrollX);
|
|
634
|
-
_this.scrollXTicking = true;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
if (!_this.scrollYTicking) {
|
|
638
|
-
elWindow.requestAnimationFrame(_this.scrollY);
|
|
639
|
-
_this.scrollYTicking = true;
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
this.scrollX = function () {
|
|
644
|
-
if (_this.axis.x.isOverflowing) {
|
|
645
|
-
_this.showScrollbar('x');
|
|
646
|
-
|
|
647
|
-
_this.positionScrollbar('x');
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
_this.scrollXTicking = false;
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
this.scrollY = function () {
|
|
654
|
-
if (_this.axis.y.isOverflowing) {
|
|
655
|
-
_this.showScrollbar('y');
|
|
656
|
-
|
|
657
|
-
_this.positionScrollbar('y');
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
_this.scrollYTicking = false;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
this.onMouseEnter = function () {
|
|
664
|
-
_this.showScrollbar('x');
|
|
665
|
-
|
|
666
|
-
_this.showScrollbar('y');
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
this.onMouseMove = function (e) {
|
|
670
|
-
_this.mouseX = e.clientX;
|
|
671
|
-
_this.mouseY = e.clientY;
|
|
672
|
-
|
|
673
|
-
if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
|
|
674
|
-
_this.onMouseMoveForAxis('x');
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
|
|
678
|
-
_this.onMouseMoveForAxis('y');
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
this.onMouseLeave = function () {
|
|
683
|
-
_this.onMouseMove.cancel();
|
|
684
|
-
|
|
685
|
-
if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
|
|
686
|
-
_this.onMouseLeaveForAxis('x');
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
|
|
690
|
-
_this.onMouseLeaveForAxis('y');
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
_this.mouseX = -1;
|
|
694
|
-
_this.mouseY = -1;
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
this.onWindowResize = function () {
|
|
698
|
-
// Recalculate scrollbarWidth in case it's a zoom
|
|
699
|
-
_this.scrollbarWidth = _this.getScrollbarWidth();
|
|
700
|
-
|
|
701
|
-
_this.hideNativeScrollbar();
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
this.hideScrollbars = function () {
|
|
705
|
-
_this.axis.x.track.rect = _this.axis.x.track.el.getBoundingClientRect();
|
|
706
|
-
_this.axis.y.track.rect = _this.axis.y.track.el.getBoundingClientRect();
|
|
707
|
-
|
|
708
|
-
if (!_this.isWithinBounds(_this.axis.y.track.rect)) {
|
|
709
|
-
_this.axis.y.scrollbar.el.classList.remove(_this.classNames.visible);
|
|
710
|
-
|
|
711
|
-
_this.axis.y.isVisible = false;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
if (!_this.isWithinBounds(_this.axis.x.track.rect)) {
|
|
715
|
-
_this.axis.x.scrollbar.el.classList.remove(_this.classNames.visible);
|
|
716
|
-
|
|
717
|
-
_this.axis.x.isVisible = false;
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
this.onPointerEvent = function (e) {
|
|
722
|
-
var isWithinTrackXBounds, isWithinTrackYBounds;
|
|
723
|
-
_this.axis.x.track.rect = _this.axis.x.track.el.getBoundingClientRect();
|
|
724
|
-
_this.axis.y.track.rect = _this.axis.y.track.el.getBoundingClientRect();
|
|
725
|
-
|
|
726
|
-
if (_this.axis.x.isOverflowing || _this.axis.x.forceVisible) {
|
|
727
|
-
isWithinTrackXBounds = _this.isWithinBounds(_this.axis.x.track.rect);
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
if (_this.axis.y.isOverflowing || _this.axis.y.forceVisible) {
|
|
731
|
-
isWithinTrackYBounds = _this.isWithinBounds(_this.axis.y.track.rect);
|
|
732
|
-
} // If any pointer event is called on the scrollbar
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
if (isWithinTrackXBounds || isWithinTrackYBounds) {
|
|
736
|
-
// Preventing the event's default action stops text being
|
|
737
|
-
// selectable during the drag.
|
|
738
|
-
e.preventDefault(); // Prevent event leaking
|
|
739
|
-
|
|
740
|
-
e.stopPropagation();
|
|
741
|
-
|
|
742
|
-
if (e.type === 'mousedown') {
|
|
743
|
-
if (isWithinTrackXBounds) {
|
|
744
|
-
_this.axis.x.scrollbar.rect = _this.axis.x.scrollbar.el.getBoundingClientRect();
|
|
745
|
-
|
|
746
|
-
if (_this.isWithinBounds(_this.axis.x.scrollbar.rect)) {
|
|
747
|
-
_this.onDragStart(e, 'x');
|
|
748
|
-
} else {
|
|
749
|
-
_this.onTrackClick(e, 'x');
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
if (isWithinTrackYBounds) {
|
|
754
|
-
_this.axis.y.scrollbar.rect = _this.axis.y.scrollbar.el.getBoundingClientRect();
|
|
755
|
-
|
|
756
|
-
if (_this.isWithinBounds(_this.axis.y.scrollbar.rect)) {
|
|
757
|
-
_this.onDragStart(e, 'y');
|
|
758
|
-
} else {
|
|
759
|
-
_this.onTrackClick(e, 'y');
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
this.drag = function (e) {
|
|
767
|
-
var eventOffset;
|
|
768
|
-
var track = _this.axis[_this.draggedAxis].track;
|
|
769
|
-
var trackSize = track.rect[_this.axis[_this.draggedAxis].sizeAttr];
|
|
770
|
-
var scrollbar = _this.axis[_this.draggedAxis].scrollbar;
|
|
771
|
-
var contentSize = _this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollSizeAttr];
|
|
772
|
-
var hostSize = parseInt(_this.elStyles[_this.axis[_this.draggedAxis].sizeAttr], 10);
|
|
773
|
-
e.preventDefault();
|
|
774
|
-
e.stopPropagation();
|
|
775
|
-
|
|
776
|
-
if (_this.draggedAxis === 'y') {
|
|
777
|
-
eventOffset = e.pageY;
|
|
778
|
-
} else {
|
|
779
|
-
eventOffset = e.pageX;
|
|
780
|
-
} // Calculate how far the user's mouse is from the top/left of the scrollbar (minus the dragOffset).
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
var dragPos = eventOffset - track.rect[_this.axis[_this.draggedAxis].offsetAttr] - _this.axis[_this.draggedAxis].dragOffset; // Convert the mouse position into a percentage of the scrollbar height/width.
|
|
784
|
-
|
|
785
|
-
var dragPerc = dragPos / (trackSize - scrollbar.size); // Scroll the content by the same percentage.
|
|
786
|
-
|
|
787
|
-
var scrollPos = dragPerc * (contentSize - hostSize); // Fix browsers inconsistency on RTL
|
|
788
|
-
|
|
789
|
-
if (_this.draggedAxis === 'x') {
|
|
790
|
-
scrollPos = _this.isRtl && SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? scrollPos - (trackSize + scrollbar.size) : scrollPos;
|
|
791
|
-
scrollPos = _this.isRtl && SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollPos : scrollPos;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
_this.contentWrapperEl[_this.axis[_this.draggedAxis].scrollOffsetAttr] = scrollPos;
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
this.onEndDrag = function (e) {
|
|
798
|
-
var elDocument = getElementDocument(_this.el);
|
|
799
|
-
var elWindow = getElementWindow(_this.el);
|
|
800
|
-
e.preventDefault();
|
|
801
|
-
e.stopPropagation();
|
|
802
|
-
|
|
803
|
-
_this.el.classList.remove(_this.classNames.dragging);
|
|
804
|
-
|
|
805
|
-
elDocument.removeEventListener('mousemove', _this.drag, true);
|
|
806
|
-
elDocument.removeEventListener('mouseup', _this.onEndDrag, true);
|
|
807
|
-
_this.removePreventClickId = elWindow.setTimeout(function () {
|
|
808
|
-
// Remove these asynchronously so we still suppress click events
|
|
809
|
-
// generated simultaneously with mouseup.
|
|
810
|
-
elDocument.removeEventListener('click', _this.preventClick, true);
|
|
811
|
-
elDocument.removeEventListener('dblclick', _this.preventClick, true);
|
|
812
|
-
_this.removePreventClickId = null;
|
|
813
|
-
});
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
this.preventClick = function (e) {
|
|
817
|
-
e.preventDefault();
|
|
818
|
-
e.stopPropagation();
|
|
819
|
-
};
|
|
820
|
-
|
|
821
|
-
this.el = element;
|
|
822
|
-
this.minScrollbarWidth = 20;
|
|
823
|
-
this.options = Object.assign({}, SimpleBar.defaultOptions, {}, options);
|
|
824
|
-
this.classNames = Object.assign({}, SimpleBar.defaultOptions.classNames, {}, this.options.classNames);
|
|
825
|
-
this.axis = {
|
|
826
|
-
x: {
|
|
827
|
-
scrollOffsetAttr: 'scrollLeft',
|
|
828
|
-
sizeAttr: 'width',
|
|
829
|
-
scrollSizeAttr: 'scrollWidth',
|
|
830
|
-
offsetSizeAttr: 'offsetWidth',
|
|
831
|
-
offsetAttr: 'left',
|
|
832
|
-
overflowAttr: 'overflowX',
|
|
833
|
-
dragOffset: 0,
|
|
834
|
-
isOverflowing: true,
|
|
835
|
-
isVisible: false,
|
|
836
|
-
forceVisible: false,
|
|
837
|
-
track: {},
|
|
838
|
-
scrollbar: {}
|
|
839
|
-
},
|
|
840
|
-
y: {
|
|
841
|
-
scrollOffsetAttr: 'scrollTop',
|
|
842
|
-
sizeAttr: 'height',
|
|
843
|
-
scrollSizeAttr: 'scrollHeight',
|
|
844
|
-
offsetSizeAttr: 'offsetHeight',
|
|
845
|
-
offsetAttr: 'top',
|
|
846
|
-
overflowAttr: 'overflowY',
|
|
847
|
-
dragOffset: 0,
|
|
848
|
-
isOverflowing: true,
|
|
849
|
-
isVisible: false,
|
|
850
|
-
forceVisible: false,
|
|
851
|
-
track: {},
|
|
852
|
-
scrollbar: {}
|
|
853
|
-
}
|
|
854
|
-
};
|
|
855
|
-
this.removePreventClickId = null; // Don't re-instantiate over an existing one
|
|
856
|
-
|
|
857
|
-
if (SimpleBar.instances.has(this.el)) {
|
|
858
|
-
return;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
this.recalculate = lodash_throttle__WEBPACK_IMPORTED_MODULE_9___default()(this.recalculate.bind(this), 64);
|
|
862
|
-
this.onMouseMove = lodash_throttle__WEBPACK_IMPORTED_MODULE_9___default()(this.onMouseMove.bind(this), 64);
|
|
863
|
-
this.hideScrollbars = lodash_debounce__WEBPACK_IMPORTED_MODULE_10___default()(this.hideScrollbars.bind(this), this.options.timeout);
|
|
864
|
-
this.onWindowResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_10___default()(this.onWindowResize.bind(this), 64, {
|
|
865
|
-
leading: true
|
|
866
|
-
});
|
|
867
|
-
SimpleBar.getRtlHelpers = lodash_memoize__WEBPACK_IMPORTED_MODULE_11___default()(SimpleBar.getRtlHelpers);
|
|
868
|
-
this.init();
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* Static properties
|
|
872
|
-
*/
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* Helper to fix browsers inconsistency on RTL:
|
|
876
|
-
* - Firefox inverts the scrollbar initial position
|
|
877
|
-
* - IE11 inverts both scrollbar position and scrolling offset
|
|
878
|
-
* Directly inspired by @KingSora's OverlayScrollbars https://github.com/KingSora/OverlayScrollbars/blob/master/js/OverlayScrollbars.js#L1634
|
|
879
|
-
*/
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
SimpleBar.getRtlHelpers = function getRtlHelpers() {
|
|
883
|
-
var dummyDiv = document.createElement('div');
|
|
884
|
-
dummyDiv.innerHTML = '<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';
|
|
885
|
-
var scrollbarDummyEl = dummyDiv.firstElementChild;
|
|
886
|
-
document.body.appendChild(scrollbarDummyEl);
|
|
887
|
-
var dummyContainerChild = scrollbarDummyEl.firstElementChild;
|
|
888
|
-
scrollbarDummyEl.scrollLeft = 0;
|
|
889
|
-
var dummyContainerOffset = SimpleBar.getOffset(scrollbarDummyEl);
|
|
890
|
-
var dummyContainerChildOffset = SimpleBar.getOffset(dummyContainerChild);
|
|
891
|
-
scrollbarDummyEl.scrollLeft = 999;
|
|
892
|
-
var dummyContainerScrollOffsetAfterScroll = SimpleBar.getOffset(dummyContainerChild);
|
|
893
|
-
return {
|
|
894
|
-
// determines if the scrolling is responding with negative values
|
|
895
|
-
isRtlScrollingInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left && dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left !== 0,
|
|
896
|
-
// determines if the origin scrollbar position is inverted or not (positioned on left or right)
|
|
897
|
-
isRtlScrollbarInverted: dummyContainerOffset.left !== dummyContainerChildOffset.left
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
|
|
901
|
-
SimpleBar.getOffset = function getOffset(el) {
|
|
902
|
-
var rect = el.getBoundingClientRect();
|
|
903
|
-
var elDocument = getElementDocument(el);
|
|
904
|
-
var elWindow = getElementWindow(el);
|
|
905
|
-
return {
|
|
906
|
-
top: rect.top + (elWindow.pageYOffset || elDocument.documentElement.scrollTop),
|
|
907
|
-
left: rect.left + (elWindow.pageXOffset || elDocument.documentElement.scrollLeft)
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
var _proto = SimpleBar.prototype;
|
|
912
|
-
|
|
913
|
-
_proto.init = function init() {
|
|
914
|
-
// Save a reference to the instance, so we know this DOM node has already been instancied
|
|
915
|
-
SimpleBar.instances.set(this.el, this); // We stop here on server-side
|
|
916
|
-
|
|
917
|
-
if (can_use_dom__WEBPACK_IMPORTED_MODULE_13___default.a) {
|
|
918
|
-
this.initDOM();
|
|
919
|
-
this.scrollbarWidth = this.getScrollbarWidth();
|
|
920
|
-
this.recalculate();
|
|
921
|
-
this.initListeners();
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
|
|
925
|
-
_proto.initDOM = function initDOM() {
|
|
926
|
-
var _this2 = this;
|
|
927
|
-
|
|
928
|
-
// make sure this element doesn't have the elements yet
|
|
929
|
-
if (Array.prototype.filter.call(this.el.children, function (child) {
|
|
930
|
-
return child.classList.contains(_this2.classNames.wrapper);
|
|
931
|
-
}).length) {
|
|
932
|
-
// assume that element has his DOM already initiated
|
|
933
|
-
this.wrapperEl = this.el.querySelector("." + this.classNames.wrapper);
|
|
934
|
-
this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector("." + this.classNames.contentWrapper);
|
|
935
|
-
this.contentEl = this.options.contentNode || this.el.querySelector("." + this.classNames.contentEl);
|
|
936
|
-
this.offsetEl = this.el.querySelector("." + this.classNames.offset);
|
|
937
|
-
this.maskEl = this.el.querySelector("." + this.classNames.mask);
|
|
938
|
-
this.placeholderEl = this.findChild(this.wrapperEl, "." + this.classNames.placeholder);
|
|
939
|
-
this.heightAutoObserverWrapperEl = this.el.querySelector("." + this.classNames.heightAutoObserverWrapperEl);
|
|
940
|
-
this.heightAutoObserverEl = this.el.querySelector("." + this.classNames.heightAutoObserverEl);
|
|
941
|
-
this.axis.x.track.el = this.findChild(this.el, "." + this.classNames.track + "." + this.classNames.horizontal);
|
|
942
|
-
this.axis.y.track.el = this.findChild(this.el, "." + this.classNames.track + "." + this.classNames.vertical);
|
|
943
|
-
} else {
|
|
944
|
-
// Prepare DOM
|
|
945
|
-
this.wrapperEl = document.createElement('div');
|
|
946
|
-
this.contentWrapperEl = document.createElement('div');
|
|
947
|
-
this.offsetEl = document.createElement('div');
|
|
948
|
-
this.maskEl = document.createElement('div');
|
|
949
|
-
this.contentEl = document.createElement('div');
|
|
950
|
-
this.placeholderEl = document.createElement('div');
|
|
951
|
-
this.heightAutoObserverWrapperEl = document.createElement('div');
|
|
952
|
-
this.heightAutoObserverEl = document.createElement('div');
|
|
953
|
-
this.wrapperEl.classList.add(this.classNames.wrapper);
|
|
954
|
-
this.contentWrapperEl.classList.add(this.classNames.contentWrapper);
|
|
955
|
-
this.offsetEl.classList.add(this.classNames.offset);
|
|
956
|
-
this.maskEl.classList.add(this.classNames.mask);
|
|
957
|
-
this.contentEl.classList.add(this.classNames.contentEl);
|
|
958
|
-
this.placeholderEl.classList.add(this.classNames.placeholder);
|
|
959
|
-
this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl);
|
|
960
|
-
this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);
|
|
961
|
-
|
|
962
|
-
while (this.el.firstChild) {
|
|
963
|
-
this.contentEl.appendChild(this.el.firstChild);
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
this.contentWrapperEl.appendChild(this.contentEl);
|
|
967
|
-
this.offsetEl.appendChild(this.contentWrapperEl);
|
|
968
|
-
this.maskEl.appendChild(this.offsetEl);
|
|
969
|
-
this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);
|
|
970
|
-
this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);
|
|
971
|
-
this.wrapperEl.appendChild(this.maskEl);
|
|
972
|
-
this.wrapperEl.appendChild(this.placeholderEl);
|
|
973
|
-
this.el.appendChild(this.wrapperEl);
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
if (!this.axis.x.track.el || !this.axis.y.track.el) {
|
|
977
|
-
var track = document.createElement('div');
|
|
978
|
-
var scrollbar = document.createElement('div');
|
|
979
|
-
track.classList.add(this.classNames.track);
|
|
980
|
-
scrollbar.classList.add(this.classNames.scrollbar);
|
|
981
|
-
track.appendChild(scrollbar);
|
|
982
|
-
this.axis.x.track.el = track.cloneNode(true);
|
|
983
|
-
this.axis.x.track.el.classList.add(this.classNames.horizontal);
|
|
984
|
-
this.axis.y.track.el = track.cloneNode(true);
|
|
985
|
-
this.axis.y.track.el.classList.add(this.classNames.vertical);
|
|
986
|
-
this.el.appendChild(this.axis.x.track.el);
|
|
987
|
-
this.el.appendChild(this.axis.y.track.el);
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
this.axis.x.scrollbar.el = this.axis.x.track.el.querySelector("." + this.classNames.scrollbar);
|
|
991
|
-
this.axis.y.scrollbar.el = this.axis.y.track.el.querySelector("." + this.classNames.scrollbar);
|
|
992
|
-
|
|
993
|
-
if (!this.options.autoHide) {
|
|
994
|
-
this.axis.x.scrollbar.el.classList.add(this.classNames.visible);
|
|
995
|
-
this.axis.y.scrollbar.el.classList.add(this.classNames.visible);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
this.el.setAttribute('data-simplebar', 'init');
|
|
999
|
-
};
|
|
1000
|
-
|
|
1001
|
-
_proto.initListeners = function initListeners() {
|
|
1002
|
-
var _this3 = this;
|
|
1003
|
-
|
|
1004
|
-
var elWindow = getElementWindow(this.el); // Event listeners
|
|
1005
|
-
|
|
1006
|
-
if (this.options.autoHide) {
|
|
1007
|
-
this.el.addEventListener('mouseenter', this.onMouseEnter);
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
['mousedown', 'click', 'dblclick'].forEach(function (e) {
|
|
1011
|
-
_this3.el.addEventListener(e, _this3.onPointerEvent, true);
|
|
1012
|
-
});
|
|
1013
|
-
['touchstart', 'touchend', 'touchmove'].forEach(function (e) {
|
|
1014
|
-
_this3.el.addEventListener(e, _this3.onPointerEvent, {
|
|
1015
|
-
capture: true,
|
|
1016
|
-
passive: true
|
|
1017
|
-
});
|
|
1018
|
-
});
|
|
1019
|
-
this.el.addEventListener('mousemove', this.onMouseMove);
|
|
1020
|
-
this.el.addEventListener('mouseleave', this.onMouseLeave);
|
|
1021
|
-
this.contentWrapperEl.addEventListener('scroll', this.onScroll); // Browser zoom triggers a window resize
|
|
1022
|
-
|
|
1023
|
-
elWindow.addEventListener('resize', this.onWindowResize); // Hack for https://github.com/WICG/ResizeObserver/issues/38
|
|
1024
|
-
|
|
1025
|
-
var resizeObserverStarted = false;
|
|
1026
|
-
var resizeObserver = elWindow.ResizeObserver || resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
1027
|
-
this.resizeObserver = new resizeObserver(function () {
|
|
1028
|
-
if (!resizeObserverStarted) return;
|
|
1029
|
-
|
|
1030
|
-
_this3.recalculate();
|
|
1031
|
-
});
|
|
1032
|
-
this.resizeObserver.observe(this.el);
|
|
1033
|
-
this.resizeObserver.observe(this.contentEl);
|
|
1034
|
-
elWindow.requestAnimationFrame(function () {
|
|
1035
|
-
resizeObserverStarted = true;
|
|
1036
|
-
}); // This is required to detect horizontal scroll. Vertical scroll only needs the resizeObserver.
|
|
1037
|
-
|
|
1038
|
-
this.mutationObserver = new elWindow.MutationObserver(this.recalculate);
|
|
1039
|
-
this.mutationObserver.observe(this.contentEl, {
|
|
1040
|
-
childList: true,
|
|
1041
|
-
subtree: true,
|
|
1042
|
-
characterData: true
|
|
1043
|
-
});
|
|
1044
|
-
};
|
|
1045
|
-
|
|
1046
|
-
_proto.recalculate = function recalculate() {
|
|
1047
|
-
var elWindow = getElementWindow(this.el);
|
|
1048
|
-
this.elStyles = elWindow.getComputedStyle(this.el);
|
|
1049
|
-
this.isRtl = this.elStyles.direction === 'rtl';
|
|
1050
|
-
var isHeightAuto = this.heightAutoObserverEl.offsetHeight <= 1;
|
|
1051
|
-
var isWidthAuto = this.heightAutoObserverEl.offsetWidth <= 1;
|
|
1052
|
-
var contentElOffsetWidth = this.contentEl.offsetWidth;
|
|
1053
|
-
var contentWrapperElOffsetWidth = this.contentWrapperEl.offsetWidth;
|
|
1054
|
-
var elOverflowX = this.elStyles.overflowX;
|
|
1055
|
-
var elOverflowY = this.elStyles.overflowY;
|
|
1056
|
-
this.contentEl.style.padding = this.elStyles.paddingTop + " " + this.elStyles.paddingRight + " " + this.elStyles.paddingBottom + " " + this.elStyles.paddingLeft;
|
|
1057
|
-
this.wrapperEl.style.margin = "-" + this.elStyles.paddingTop + " -" + this.elStyles.paddingRight + " -" + this.elStyles.paddingBottom + " -" + this.elStyles.paddingLeft;
|
|
1058
|
-
var contentElScrollHeight = this.contentEl.scrollHeight;
|
|
1059
|
-
var contentElScrollWidth = this.contentEl.scrollWidth;
|
|
1060
|
-
this.contentWrapperEl.style.height = isHeightAuto ? 'auto' : '100%'; // Determine placeholder size
|
|
1061
|
-
|
|
1062
|
-
this.placeholderEl.style.width = isWidthAuto ? contentElOffsetWidth + "px" : 'auto';
|
|
1063
|
-
this.placeholderEl.style.height = contentElScrollHeight + "px";
|
|
1064
|
-
var contentWrapperElOffsetHeight = this.contentWrapperEl.offsetHeight;
|
|
1065
|
-
this.axis.x.isOverflowing = contentElScrollWidth > contentElOffsetWidth;
|
|
1066
|
-
this.axis.y.isOverflowing = contentElScrollHeight > contentWrapperElOffsetHeight; // Set isOverflowing to false if user explicitely set hidden overflow
|
|
1067
|
-
|
|
1068
|
-
this.axis.x.isOverflowing = elOverflowX === 'hidden' ? false : this.axis.x.isOverflowing;
|
|
1069
|
-
this.axis.y.isOverflowing = elOverflowY === 'hidden' ? false : this.axis.y.isOverflowing;
|
|
1070
|
-
this.axis.x.forceVisible = this.options.forceVisible === 'x' || this.options.forceVisible === true;
|
|
1071
|
-
this.axis.y.forceVisible = this.options.forceVisible === 'y' || this.options.forceVisible === true;
|
|
1072
|
-
this.hideNativeScrollbar(); // Set isOverflowing to false if scrollbar is not necessary (content is shorter than offset)
|
|
1073
|
-
|
|
1074
|
-
var offsetForXScrollbar = this.axis.x.isOverflowing ? this.scrollbarWidth : 0;
|
|
1075
|
-
var offsetForYScrollbar = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
|
|
1076
|
-
this.axis.x.isOverflowing = this.axis.x.isOverflowing && contentElScrollWidth > contentWrapperElOffsetWidth - offsetForYScrollbar;
|
|
1077
|
-
this.axis.y.isOverflowing = this.axis.y.isOverflowing && contentElScrollHeight > contentWrapperElOffsetHeight - offsetForXScrollbar;
|
|
1078
|
-
this.axis.x.scrollbar.size = this.getScrollbarSize('x');
|
|
1079
|
-
this.axis.y.scrollbar.size = this.getScrollbarSize('y');
|
|
1080
|
-
this.axis.x.scrollbar.el.style.width = this.axis.x.scrollbar.size + "px";
|
|
1081
|
-
this.axis.y.scrollbar.el.style.height = this.axis.y.scrollbar.size + "px";
|
|
1082
|
-
this.positionScrollbar('x');
|
|
1083
|
-
this.positionScrollbar('y');
|
|
1084
|
-
this.toggleTrackVisibility('x');
|
|
1085
|
-
this.toggleTrackVisibility('y');
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Calculate scrollbar size
|
|
1089
|
-
*/
|
|
1090
|
-
;
|
|
1091
|
-
|
|
1092
|
-
_proto.getScrollbarSize = function getScrollbarSize(axis) {
|
|
1093
|
-
if (axis === void 0) {
|
|
1094
|
-
axis = 'y';
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
if (!this.axis[axis].isOverflowing) {
|
|
1098
|
-
return 0;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
var contentSize = this.contentEl[this.axis[axis].scrollSizeAttr];
|
|
1102
|
-
var trackSize = this.axis[axis].track.el[this.axis[axis].offsetSizeAttr];
|
|
1103
|
-
var scrollbarSize;
|
|
1104
|
-
var scrollbarRatio = trackSize / contentSize; // Calculate new height/position of drag handle.
|
|
1105
|
-
|
|
1106
|
-
scrollbarSize = Math.max(~~(scrollbarRatio * trackSize), this.options.scrollbarMinSize);
|
|
1107
|
-
|
|
1108
|
-
if (this.options.scrollbarMaxSize) {
|
|
1109
|
-
scrollbarSize = Math.min(scrollbarSize, this.options.scrollbarMaxSize);
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
return scrollbarSize;
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
|
-
_proto.positionScrollbar = function positionScrollbar(axis) {
|
|
1116
|
-
if (axis === void 0) {
|
|
1117
|
-
axis = 'y';
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
if (!this.axis[axis].isOverflowing) {
|
|
1121
|
-
return;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
var contentSize = this.contentWrapperEl[this.axis[axis].scrollSizeAttr];
|
|
1125
|
-
var trackSize = this.axis[axis].track.el[this.axis[axis].offsetSizeAttr];
|
|
1126
|
-
var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
|
|
1127
|
-
var scrollbar = this.axis[axis].scrollbar;
|
|
1128
|
-
var scrollOffset = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
|
|
1129
|
-
scrollOffset = axis === 'x' && this.isRtl && SimpleBar.getRtlHelpers().isRtlScrollingInverted ? -scrollOffset : scrollOffset;
|
|
1130
|
-
var scrollPourcent = scrollOffset / (contentSize - hostSize);
|
|
1131
|
-
var handleOffset = ~~((trackSize - scrollbar.size) * scrollPourcent);
|
|
1132
|
-
handleOffset = axis === 'x' && this.isRtl && SimpleBar.getRtlHelpers().isRtlScrollbarInverted ? handleOffset + (trackSize - scrollbar.size) : handleOffset;
|
|
1133
|
-
scrollbar.el.style.transform = axis === 'x' ? "translate3d(" + handleOffset + "px, 0, 0)" : "translate3d(0, " + handleOffset + "px, 0)";
|
|
1134
|
-
};
|
|
1135
|
-
|
|
1136
|
-
_proto.toggleTrackVisibility = function toggleTrackVisibility(axis) {
|
|
1137
|
-
if (axis === void 0) {
|
|
1138
|
-
axis = 'y';
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
var track = this.axis[axis].track.el;
|
|
1142
|
-
var scrollbar = this.axis[axis].scrollbar.el;
|
|
1143
|
-
|
|
1144
|
-
if (this.axis[axis].isOverflowing || this.axis[axis].forceVisible) {
|
|
1145
|
-
track.style.visibility = 'visible';
|
|
1146
|
-
this.contentWrapperEl.style[this.axis[axis].overflowAttr] = 'scroll';
|
|
1147
|
-
} else {
|
|
1148
|
-
track.style.visibility = 'hidden';
|
|
1149
|
-
this.contentWrapperEl.style[this.axis[axis].overflowAttr] = 'hidden';
|
|
1150
|
-
} // Even if forceVisible is enabled, scrollbar itself should be hidden
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
if (this.axis[axis].isOverflowing) {
|
|
1154
|
-
scrollbar.style.display = 'block';
|
|
1155
|
-
} else {
|
|
1156
|
-
scrollbar.style.display = 'none';
|
|
1157
|
-
}
|
|
1158
|
-
};
|
|
1159
|
-
|
|
1160
|
-
_proto.hideNativeScrollbar = function hideNativeScrollbar() {
|
|
1161
|
-
this.offsetEl.style[this.isRtl ? 'left' : 'right'] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "-" + this.scrollbarWidth + "px" : 0;
|
|
1162
|
-
this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "-" + this.scrollbarWidth + "px" : 0;
|
|
1163
|
-
}
|
|
1164
|
-
/**
|
|
1165
|
-
* On scroll event handling
|
|
1166
|
-
*/
|
|
1167
|
-
;
|
|
1168
|
-
|
|
1169
|
-
_proto.onMouseMoveForAxis = function onMouseMoveForAxis(axis) {
|
|
1170
|
-
if (axis === void 0) {
|
|
1171
|
-
axis = 'y';
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
this.axis[axis].track.rect = this.axis[axis].track.el.getBoundingClientRect();
|
|
1175
|
-
this.axis[axis].scrollbar.rect = this.axis[axis].scrollbar.el.getBoundingClientRect();
|
|
1176
|
-
var isWithinScrollbarBoundsX = this.isWithinBounds(this.axis[axis].scrollbar.rect);
|
|
1177
|
-
|
|
1178
|
-
if (isWithinScrollbarBoundsX) {
|
|
1179
|
-
this.axis[axis].scrollbar.el.classList.add(this.classNames.hover);
|
|
1180
|
-
} else {
|
|
1181
|
-
this.axis[axis].scrollbar.el.classList.remove(this.classNames.hover);
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
if (this.isWithinBounds(this.axis[axis].track.rect)) {
|
|
1185
|
-
this.showScrollbar(axis);
|
|
1186
|
-
this.axis[axis].track.el.classList.add(this.classNames.hover);
|
|
1187
|
-
} else {
|
|
1188
|
-
this.axis[axis].track.el.classList.remove(this.classNames.hover);
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
_proto.onMouseLeaveForAxis = function onMouseLeaveForAxis(axis) {
|
|
1193
|
-
if (axis === void 0) {
|
|
1194
|
-
axis = 'y';
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
this.axis[axis].track.el.classList.remove(this.classNames.hover);
|
|
1198
|
-
this.axis[axis].scrollbar.el.classList.remove(this.classNames.hover);
|
|
1199
|
-
};
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
1202
|
-
* Show scrollbar
|
|
1203
|
-
*/
|
|
1204
|
-
_proto.showScrollbar = function showScrollbar(axis) {
|
|
1205
|
-
if (axis === void 0) {
|
|
1206
|
-
axis = 'y';
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
var scrollbar = this.axis[axis].scrollbar.el;
|
|
1210
|
-
|
|
1211
|
-
if (!this.axis[axis].isVisible) {
|
|
1212
|
-
scrollbar.classList.add(this.classNames.visible);
|
|
1213
|
-
this.axis[axis].isVisible = true;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
if (this.options.autoHide) {
|
|
1217
|
-
this.hideScrollbars();
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
/**
|
|
1221
|
-
* Hide Scrollbar
|
|
1222
|
-
*/
|
|
1223
|
-
;
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* on scrollbar handle drag movement starts
|
|
1227
|
-
*/
|
|
1228
|
-
_proto.onDragStart = function onDragStart(e, axis) {
|
|
1229
|
-
if (axis === void 0) {
|
|
1230
|
-
axis = 'y';
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
var elDocument = getElementDocument(this.el);
|
|
1234
|
-
var elWindow = getElementWindow(this.el);
|
|
1235
|
-
var scrollbar = this.axis[axis].scrollbar; // Measure how far the user's mouse is from the top of the scrollbar drag handle.
|
|
1236
|
-
|
|
1237
|
-
var eventOffset = axis === 'y' ? e.pageY : e.pageX;
|
|
1238
|
-
this.axis[axis].dragOffset = eventOffset - scrollbar.rect[this.axis[axis].offsetAttr];
|
|
1239
|
-
this.draggedAxis = axis;
|
|
1240
|
-
this.el.classList.add(this.classNames.dragging);
|
|
1241
|
-
elDocument.addEventListener('mousemove', this.drag, true);
|
|
1242
|
-
elDocument.addEventListener('mouseup', this.onEndDrag, true);
|
|
1243
|
-
|
|
1244
|
-
if (this.removePreventClickId === null) {
|
|
1245
|
-
elDocument.addEventListener('click', this.preventClick, true);
|
|
1246
|
-
elDocument.addEventListener('dblclick', this.preventClick, true);
|
|
1247
|
-
} else {
|
|
1248
|
-
elWindow.clearTimeout(this.removePreventClickId);
|
|
1249
|
-
this.removePreventClickId = null;
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* Drag scrollbar handle
|
|
1254
|
-
*/
|
|
1255
|
-
;
|
|
1256
|
-
|
|
1257
|
-
_proto.onTrackClick = function onTrackClick(e, axis) {
|
|
1258
|
-
var _this4 = this;
|
|
1259
|
-
|
|
1260
|
-
if (axis === void 0) {
|
|
1261
|
-
axis = 'y';
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
if (!this.options.clickOnTrack) return;
|
|
1265
|
-
var elWindow = getElementWindow(this.el);
|
|
1266
|
-
this.axis[axis].scrollbar.rect = this.axis[axis].scrollbar.el.getBoundingClientRect();
|
|
1267
|
-
var scrollbar = this.axis[axis].scrollbar;
|
|
1268
|
-
var scrollbarOffset = scrollbar.rect[this.axis[axis].offsetAttr];
|
|
1269
|
-
var hostSize = parseInt(this.elStyles[this.axis[axis].sizeAttr], 10);
|
|
1270
|
-
var scrolled = this.contentWrapperEl[this.axis[axis].scrollOffsetAttr];
|
|
1271
|
-
var t = axis === 'y' ? this.mouseY - scrollbarOffset : this.mouseX - scrollbarOffset;
|
|
1272
|
-
var dir = t < 0 ? -1 : 1;
|
|
1273
|
-
var scrollSize = dir === -1 ? scrolled - hostSize : scrolled + hostSize;
|
|
1274
|
-
|
|
1275
|
-
var scrollTo = function scrollTo() {
|
|
1276
|
-
if (dir === -1) {
|
|
1277
|
-
if (scrolled > scrollSize) {
|
|
1278
|
-
var _this4$contentWrapper;
|
|
1279
|
-
|
|
1280
|
-
scrolled -= _this4.options.clickOnTrackSpeed;
|
|
1281
|
-
|
|
1282
|
-
_this4.contentWrapperEl.scrollTo((_this4$contentWrapper = {}, _this4$contentWrapper[_this4.axis[axis].offsetAttr] = scrolled, _this4$contentWrapper));
|
|
1283
|
-
|
|
1284
|
-
elWindow.requestAnimationFrame(scrollTo);
|
|
1285
|
-
}
|
|
1286
|
-
} else {
|
|
1287
|
-
if (scrolled < scrollSize) {
|
|
1288
|
-
var _this4$contentWrapper2;
|
|
1289
|
-
|
|
1290
|
-
scrolled += _this4.options.clickOnTrackSpeed;
|
|
1291
|
-
|
|
1292
|
-
_this4.contentWrapperEl.scrollTo((_this4$contentWrapper2 = {}, _this4$contentWrapper2[_this4.axis[axis].offsetAttr] = scrolled, _this4$contentWrapper2));
|
|
1293
|
-
|
|
1294
|
-
elWindow.requestAnimationFrame(scrollTo);
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
};
|
|
1298
|
-
|
|
1299
|
-
scrollTo();
|
|
1300
|
-
}
|
|
1301
|
-
/**
|
|
1302
|
-
* Getter for content element
|
|
1303
|
-
*/
|
|
1304
|
-
;
|
|
1305
|
-
|
|
1306
|
-
_proto.getContentElement = function getContentElement() {
|
|
1307
|
-
return this.contentEl;
|
|
1308
|
-
}
|
|
1309
|
-
/**
|
|
1310
|
-
* Getter for original scrolling element
|
|
1311
|
-
*/
|
|
1312
|
-
;
|
|
1313
|
-
|
|
1314
|
-
_proto.getScrollElement = function getScrollElement() {
|
|
1315
|
-
return this.contentWrapperEl;
|
|
1316
|
-
};
|
|
1317
|
-
|
|
1318
|
-
_proto.getScrollbarWidth = function getScrollbarWidth() {
|
|
1319
|
-
// Try/catch for FF 56 throwing on undefined computedStyles
|
|
1320
|
-
try {
|
|
1321
|
-
// Detect browsers supporting CSS scrollbar styling and do not calculate
|
|
1322
|
-
if (getComputedStyle(this.contentWrapperEl, '::-webkit-scrollbar').display === 'none' || 'scrollbarWidth' in document.documentElement.style || '-ms-overflow-style' in document.documentElement.style) {
|
|
1323
|
-
return 0;
|
|
1324
|
-
} else {
|
|
1325
|
-
return scrollbarWidth();
|
|
1326
|
-
}
|
|
1327
|
-
} catch (e) {
|
|
1328
|
-
return scrollbarWidth();
|
|
1329
|
-
}
|
|
1330
|
-
};
|
|
1331
|
-
|
|
1332
|
-
_proto.removeListeners = function removeListeners() {
|
|
1333
|
-
var _this5 = this;
|
|
1334
|
-
|
|
1335
|
-
var elWindow = getElementWindow(this.el); // Event listeners
|
|
1336
|
-
|
|
1337
|
-
if (this.options.autoHide) {
|
|
1338
|
-
this.el.removeEventListener('mouseenter', this.onMouseEnter);
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
['mousedown', 'click', 'dblclick'].forEach(function (e) {
|
|
1342
|
-
_this5.el.removeEventListener(e, _this5.onPointerEvent, true);
|
|
1343
|
-
});
|
|
1344
|
-
['touchstart', 'touchend', 'touchmove'].forEach(function (e) {
|
|
1345
|
-
_this5.el.removeEventListener(e, _this5.onPointerEvent, {
|
|
1346
|
-
capture: true,
|
|
1347
|
-
passive: true
|
|
1348
|
-
});
|
|
1349
|
-
});
|
|
1350
|
-
this.el.removeEventListener('mousemove', this.onMouseMove);
|
|
1351
|
-
this.el.removeEventListener('mouseleave', this.onMouseLeave);
|
|
1352
|
-
|
|
1353
|
-
if (this.contentWrapperEl) {
|
|
1354
|
-
this.contentWrapperEl.removeEventListener('scroll', this.onScroll);
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
elWindow.removeEventListener('resize', this.onWindowResize);
|
|
1358
|
-
|
|
1359
|
-
if (this.mutationObserver) {
|
|
1360
|
-
this.mutationObserver.disconnect();
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
if (this.resizeObserver) {
|
|
1364
|
-
this.resizeObserver.disconnect();
|
|
1365
|
-
} // Cancel all debounced functions
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
this.recalculate.cancel();
|
|
1369
|
-
this.onMouseMove.cancel();
|
|
1370
|
-
this.hideScrollbars.cancel();
|
|
1371
|
-
this.onWindowResize.cancel();
|
|
1372
|
-
}
|
|
1373
|
-
/**
|
|
1374
|
-
* UnMount mutation observer and delete SimpleBar instance from DOM element
|
|
1375
|
-
*/
|
|
1376
|
-
;
|
|
1377
|
-
|
|
1378
|
-
_proto.unMount = function unMount() {
|
|
1379
|
-
this.removeListeners();
|
|
1380
|
-
SimpleBar.instances.delete(this.el);
|
|
1381
|
-
}
|
|
1382
|
-
/**
|
|
1383
|
-
* Check if mouse is within bounds
|
|
1384
|
-
*/
|
|
1385
|
-
;
|
|
1386
|
-
|
|
1387
|
-
_proto.isWithinBounds = function isWithinBounds(bbox) {
|
|
1388
|
-
return this.mouseX >= bbox.left && this.mouseX <= bbox.left + bbox.width && this.mouseY >= bbox.top && this.mouseY <= bbox.top + bbox.height;
|
|
1389
|
-
}
|
|
1390
|
-
/**
|
|
1391
|
-
* Find element children matches query
|
|
1392
|
-
*/
|
|
1393
|
-
;
|
|
1394
|
-
|
|
1395
|
-
_proto.findChild = function findChild(el, query) {
|
|
1396
|
-
var matches = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;
|
|
1397
|
-
return Array.prototype.filter.call(el.children, function (child) {
|
|
1398
|
-
return matches.call(child, query);
|
|
1399
|
-
})[0];
|
|
1400
|
-
};
|
|
1401
|
-
|
|
1402
|
-
return SimpleBar;
|
|
1403
|
-
}();
|
|
1404
|
-
|
|
1405
|
-
SimpleBar.defaultOptions = {
|
|
1406
|
-
autoHide: true,
|
|
1407
|
-
forceVisible: false,
|
|
1408
|
-
clickOnTrack: true,
|
|
1409
|
-
clickOnTrackSpeed: 40,
|
|
1410
|
-
classNames: {
|
|
1411
|
-
contentEl: 'simplebar-content',
|
|
1412
|
-
contentWrapper: 'simplebar-content-wrapper',
|
|
1413
|
-
offset: 'simplebar-offset',
|
|
1414
|
-
mask: 'simplebar-mask',
|
|
1415
|
-
wrapper: 'simplebar-wrapper',
|
|
1416
|
-
placeholder: 'simplebar-placeholder',
|
|
1417
|
-
scrollbar: 'simplebar-scrollbar',
|
|
1418
|
-
track: 'simplebar-track',
|
|
1419
|
-
heightAutoObserverWrapperEl: 'simplebar-height-auto-observer-wrapper',
|
|
1420
|
-
heightAutoObserverEl: 'simplebar-height-auto-observer',
|
|
1421
|
-
visible: 'simplebar-visible',
|
|
1422
|
-
horizontal: 'simplebar-horizontal',
|
|
1423
|
-
vertical: 'simplebar-vertical',
|
|
1424
|
-
hover: 'simplebar-hover',
|
|
1425
|
-
dragging: 'simplebar-dragging'
|
|
1426
|
-
},
|
|
1427
|
-
scrollbarMinSize: 25,
|
|
1428
|
-
scrollbarMaxSize: 0,
|
|
1429
|
-
timeout: 1000
|
|
1430
|
-
};
|
|
1431
|
-
SimpleBar.instances = new WeakMap();
|
|
1432
|
-
|
|
1433
|
-
/* harmony default export */ __webpack_exports__["default"] = (SimpleBar);
|
|
1434
|
-
//# sourceMappingURL=simplebar-core.esm.js.map
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
/***/ }),
|
|
1438
|
-
|
|
1439
|
-
/***/ "../../../node_modules/use-composed-ref/dist/use-composed-ref.esm.js":
|
|
1440
|
-
/*!***************************************************************************************************!*\
|
|
1441
|
-
!*** C:/ClickView/front-end/clickview/node_modules/use-composed-ref/dist/use-composed-ref.esm.js ***!
|
|
1442
|
-
\***************************************************************************************************/
|
|
1443
|
-
/*! exports provided: default */
|
|
1444
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1445
|
-
|
|
1446
|
-
"use strict";
|
|
1447
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1448
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
1449
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
var updateRef = function updateRef(ref, value) {
|
|
1453
|
-
if (typeof ref === 'function') {
|
|
1454
|
-
ref(value);
|
|
1455
|
-
return;
|
|
1456
|
-
}
|
|
1457
|
-
ref.current = value;
|
|
1458
|
-
};
|
|
1459
|
-
|
|
1460
|
-
var useComposedRef = function useComposedRef(libRef, userRef) {
|
|
1461
|
-
var prevUserRef = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])();
|
|
1462
|
-
return Object(react__WEBPACK_IMPORTED_MODULE_0__["useCallback"])(function (instance) {
|
|
1463
|
-
libRef.current = instance;
|
|
1464
|
-
|
|
1465
|
-
if (prevUserRef.current) {
|
|
1466
|
-
updateRef(prevUserRef.current, null);
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
prevUserRef.current = userRef;
|
|
1470
|
-
|
|
1471
|
-
if (!userRef) {
|
|
1472
|
-
return;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
updateRef(userRef, instance);
|
|
1476
|
-
}, [userRef]);
|
|
1477
|
-
};
|
|
1478
|
-
|
|
1479
|
-
/* harmony default export */ __webpack_exports__["default"] = (useComposedRef);
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
/***/ }),
|
|
1483
|
-
|
|
1484
|
-
/***/ "../../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js":
|
|
1485
|
-
/*!***********************************************************************************************************************************!*\
|
|
1486
|
-
!*** C:/ClickView/front-end/clickview/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js ***!
|
|
1487
|
-
\***********************************************************************************************************************************/
|
|
1488
|
-
/*! exports provided: default */
|
|
1489
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1490
|
-
|
|
1491
|
-
"use strict";
|
|
1492
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1493
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
1494
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
var index = react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"] ;
|
|
1498
|
-
|
|
1499
|
-
/* harmony default export */ __webpack_exports__["default"] = (index);
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
/***/ }),
|
|
1503
|
-
|
|
1504
|
-
/***/ "../../../node_modules/use-latest/dist/use-latest.esm.js":
|
|
1505
|
-
/*!***************************************************************************************!*\
|
|
1506
|
-
!*** C:/ClickView/front-end/clickview/node_modules/use-latest/dist/use-latest.esm.js ***!
|
|
1507
|
-
\***************************************************************************************/
|
|
1508
|
-
/*! exports provided: default */
|
|
1509
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1510
|
-
|
|
1511
|
-
"use strict";
|
|
1512
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1513
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
1514
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1515
|
-
/* harmony import */ var use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! use-isomorphic-layout-effect */ "../../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js");
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
var useLatest = function useLatest(value) {
|
|
1520
|
-
var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(value);
|
|
1521
|
-
Object(use_isomorphic_layout_effect__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
|
|
1522
|
-
ref.current = value;
|
|
1523
|
-
});
|
|
1524
|
-
return ref;
|
|
1525
|
-
};
|
|
1526
|
-
|
|
1527
|
-
/* harmony default export */ __webpack_exports__["default"] = (useLatest);
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
/***/ })
|
|
1531
|
-
|
|
1532
|
-
}]);
|
|
1533
|
-
//# sourceMappingURL=54.chunk.js.map
|